index-af4a10b3-1694098095353.js 523 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497
  1. import {
  2. d as Kr,
  3. r as dt,
  4. y as $i,
  5. f as k,
  6. t as It,
  7. F as rn,
  8. u as ca,
  9. a as to,
  10. e as wr,
  11. z as eu,
  12. n as en,
  13. c as va,
  14. A as nu,
  15. B as pa,
  16. b as au,
  17. k as Gt,
  18. N as iu,
  19. g as En,
  20. x as Gn,
  21. h as ou,
  22. C as su,
  23. D as uu,
  24. E as lu,
  25. G as fu,
  26. H as ei,
  27. I as cu,
  28. J as ro,
  29. K as vu,
  30. v as Rr,
  31. m as pu,
  32. L as ni,
  33. M as ai,
  34. O as du,
  35. Q as gu,
  36. T as hu,
  37. R as Au
  38. } from './index-c6117d5a-1694098095353.js';
  39. import { d as ii } from './teacherIcon-b8e3946d-1694098095353.js';
  40. import { F as mu } from './forgotPassword-7bd9b367-1694098095353.js';
  41. import { C as Su } from './index-594251d9-1694098095353.js';
  42. import { p as Cu } from './index-e0b82089-1694098095353.js';
  43. import { P as oi, a as Eu, T as yu } from './index-fb73b38f-1694098095353.js';
  44. import { v as Du } from './urlUtils-b7caaee8-1694098095353.js';
  45. import { P as bu } from './updateSubject-3de55e1e-1694098095353.js';
  46. import { A as xu } from './index-33b17e0f-1694098095353.js';
  47. import './api-6715507e-1694098095353.js';
  48. import './api-bc585431-1694098095353.js';
  49. import './contants-bcad6247-1694098095353.js';
  50. import './Slider-9142c741-1694098095353.js';
  51. import './index-67525603-1694098095353.js';
  52. import './isCollaose-22cdac63-1694098095353.js';
  53. import './index-2a4e5e1e-1694098095353.js';
  54. import './index-8aa6eda1-1694098095353.js';
  55. import './index-685d9c6b-1694098095353.js';
  56. import './index-8e662bc5-1694098095353.js';
  57. import './catchData-94fc1d75-1694098095353.js';
  58. import './index-cb198c02-1694098095353.js';
  59. import './ding-8e9054d5-1694098095353.js';
  60. import './state-1d9c0747-1694098095353.js';
  61. import './index.module-c3699557-1694098095353.js';
  62. import './api-dea43a19-1694098095353.js';
  63. import './index-1ebe8776-1694098095353.js';
  64. const wu = '_wrap_1vggn_1',
  65. Ru = '_WrapcoreView_1vggn_9',
  66. Bu = '_silder_1vggn_14',
  67. Mu = '_logoWrap_1vggn_23',
  68. Iu = '_logo_1vggn_23',
  69. Tu = '_sliderList_1vggn_30',
  70. Ou = '_silderItem_1vggn_33',
  71. Pu = '_radiusIcon_1vggn_44',
  72. ku = '_isActiveItem_1vggn_63',
  73. Gu = '_Wrapcore_1vggn_9',
  74. Nu = '_layoutTop_1vggn_74',
  75. Fu = '_layoutLeft_1vggn_84',
  76. zu = '_schoolIcon_1vggn_89',
  77. Hu = '_layoutRight_1vggn_101',
  78. Lu = '_messageBadge_1vggn_106',
  79. Uu = '_messageIcon_1vggn_109',
  80. Vu = '_animation_1vggn_114',
  81. Wu = '_Tada_1vggn_1',
  82. Yu = '_messageBadgeNo_1vggn_120',
  83. Qu = '_messageBadgeHide_1vggn_121',
  84. Xu = '_line_1vggn_147',
  85. qu = '_mesgWrap_1vggn_153',
  86. Ku = '_teacherIcon_1vggn_159',
  87. Ju = '_rotueLeft_1vggn_165',
  88. ju = '_rotueRight_1vggn_170',
  89. Zu = '_optons_1vggn_175',
  90. _u = '_propWrap_1vggn_197',
  91. $u = '_teacherInfo_1vggn_206',
  92. tl = '_teacherName_1vggn_220',
  93. rl = '_propWrapList_1vggn_230',
  94. el = '_propWrapItem_1vggn_235',
  95. nl = '_smallIcon_1vggn_247',
  96. al = '_smallTitle_1vggn_253',
  97. il = '_logoutInfo_1vggn_258',
  98. ol = '_toolboxImg_1vggn_273',
  99. sl = '_isDragIng_1vggn_282',
  100. ul = '_booxToolWrap_1vggn_292',
  101. ll = '_booxToolItem_1vggn_307',
  102. fl = '_booxToolDisabled_1vggn_316',
  103. cl = '_setTimeImage_1vggn_332',
  104. vl = '_beatImage_1vggn_338',
  105. pl = '_changePwdModal_1vggn_344',
  106. dl = '_imChatModal_1vggn_347',
  107. gl = '_modeWrap_1vggn_350',
  108. hl = '_imGroupContainer_1vggn_355',
  109. Al = '_container_1vggn_356',
  110. ml = '_hideModal_1vggn_362',
  111. Sl = '_showClass_1vggn_365',
  112. Cl = '_showModalTone_1vggn_370',
  113. El = '_studentRemove_1vggn_373',
  114. yl = '_suggestWrap_1vggn_385',
  115. q = {
  116. wrap: wu,
  117. WrapcoreView: Ru,
  118. silder: Bu,
  119. logoWrap: Mu,
  120. logo: Iu,
  121. sliderList: Tu,
  122. silderItem: Ou,
  123. radiusIcon: Pu,
  124. isActiveItem: ku,
  125. Wrapcore: Gu,
  126. layoutTop: Nu,
  127. layoutLeft: Fu,
  128. schoolIcon: zu,
  129. layoutRight: Hu,
  130. messageBadge: Lu,
  131. messageIcon: Uu,
  132. animation: Vu,
  133. Tada: Wu,
  134. messageBadgeNo: Yu,
  135. messageBadgeHide: Qu,
  136. line: Xu,
  137. mesgWrap: qu,
  138. teacherIcon: Ku,
  139. rotueLeft: Ju,
  140. rotueRight: ju,
  141. optons: Zu,
  142. propWrap: _u,
  143. teacherInfo: $u,
  144. teacherName: tl,
  145. propWrapList: rl,
  146. propWrapItem: el,
  147. smallIcon: nl,
  148. smallTitle: al,
  149. logoutInfo: il,
  150. toolboxImg: ol,
  151. isDragIng: sl,
  152. booxToolWrap: ul,
  153. booxToolItem: ll,
  154. booxToolDisabled: fl,
  155. setTimeImage: cl,
  156. beatImage: vl,
  157. changePwdModal: pl,
  158. imChatModal: dl,
  159. modeWrap: gl,
  160. imGroupContainer: hl,
  161. container: Al,
  162. hideModal: ml,
  163. showClass: Sl,
  164. showModalTone: Cl,
  165. studentRemove: El,
  166. suggestWrap: yl
  167. },
  168. Dl = '' + new URL('logo-654be404.png', import.meta.url).href,
  169. bl =
  170. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABg9JREFUaN7tmk+IVVUcxz+/c9846sxoWRY6FIiJo+mimoQgMAnb5yIkAnNT4K59C6N2Qm0iDBoMWtSmvZuEhFB3lVqYuoiY0vyvOc343j2nxZz7PPN7v3PvG5tavQOXe+a88/vd8/39/907MBiDMRiDkQxp3PF1WEfJFoSVABTJb614L9TfwiU2cJpNMmfy/CGMcJdJCsayvPQc/qLgHFvljwcD9EXYjHAYwksI4OLu3FyvFdJG+Ig1vMekzAB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37zqxWqrbasTrZg9nNitFUJT6UqNhqzkauUbb9SDiy59qOmH1iSH8g35wgLkDO37RfRD1CdXW0M+89ZlOGqoNBzUMoc6k7PorX4o9NFP9d0P6eAworTjM+8D4vzEzV48J6430OdMMddPubo81DFyThphVhh5weXXjl6F41cDIcxfx68Ejl5Wey0eOh817eurfbDeHays10hPtBPYeQrGY703PZOpmJv6oTI5eF21bgLKVbsu7taOafmB6m2m25l+p99+qFAJ16tkmwXkCN1qIRitxJARALSd+4bis59+yGoncv2Q657Y1NDvZgHoVX+k38C4mhbBavSc8d6gLnnW9UOOS/mgsI0ziFzLmmA745SW0+acOEe/mPXu33KDCU7nAb0tbeBQ1q/uqUrX/B6UrFlVdV2lrembo+lBdkmnvn1YyyFEjpmgbqtsXzRoqe6SGi33xU++4y0+tgqRheOgeEbZAzLV89stRVk0HLJOO4WhJetjl0Xfkike4xVE/OI+Gh8ILyK8QWACGKUA3ozRzvIxz0P4sHFBX1OqcKuTdZCLeG4u2JNG2k43MM3g+Qn4ktfl2wf/Cr6Y8VtYwZ+cIoTtZrcbdBMnZ1nNju5H5SUYbkkBPSF/s5w9OLmwwKwssxG5SItXlxLM0gMCeFousJpJCpmikLme6FfIPQqZosXz7LQ/zf+3/3jxb8b5sJY7vEzJxvjR+AxwnB1yicEYjMEYjP9j/AOshrOJdrDqdgAAAABJRU5ErkJggg==',
  171. xl =
  172. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAALpQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8hwkwQAAAD10Uk5TAAECBAUHCwwOERcYGR4iIycxMjM1Ojw9P0BJTFFTWF5mbW93goyQl5mor7O8vb/AxszR1Nnc6O3u9fj9/ikUCf8AAAFLSURBVEjH7ZZpc4IwEIYR8KQWz5YaRfBW8MAbkf//t9otQhLDCJnRfinvt312X5Ld2RkiC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gn0KL6BCUEIE6qE/gekpmXJaPYNjW+Soh0ywHmpAQhHF4PnOqYxOZ5zSAAllFu43oSzBvq9vBNBGOY2Rfu9B1WBiS3GOdpSvvxDntpHwGrH084ycbqy3rfRUXaUrpQMpEopScrqsvM1HH3vpexpv1pfZ5W0uKnA06bhIyq5ndX0kI/FMo43Z1TigJrajYmoCmg1sf8pJggTsx6eKoZMICXVZxdDE9sYBbZIDwOY6IJW4tD/xeONRD0UpthaxmTX1Pe1850NTWY+RzmBk/ykBl2U7ca7axu/1asBJJ7NYP/oDrw1SIqINIx11jqEMnAX2pqhHnAIg5CRCkoulg5g2VkhpbI4k1+nDGDYiuqiOoQeA+Q2en+Y+H5Ju4E0ek+/H5xT8Nb0VYT7CVEh2EeB+YIGVGeM8lzxjae9gkBL7eUSOM3FNXNfu9S+4Sk49123KbgAAAABJRU5ErkJggg==',
  175. Rl =
  176. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAATJQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////LddBWgAAAGV0Uk5TAAIDBAUGBwkKDhASExQVGBkdHyMmKC0uLzEyOj0+P0BGS0xNVVheYGNmaWprbHF7fYGGkZOUlZaXmZqfo6aorbC0tba5u7y9v8DBx8jKy8zN0tTb3N3f4+nq7fDx8vP3+Pn6/f6FbYleAAACEklEQVQYGdXB10IaURQF0I2IBQELdkXsSrEiSKwktomJIjYGE7HA/v9fyLkXaQIz5NG18CW5VnYuLnZWXPgPy4/UHpfRLneKFSk32jL5wBoPk2hD6JVK8f6+SOU1BDs9B9R+jQFjv6kd9MDSyC21WCdEZ4za7QgsLOWpPC/iw+IzlfwSWnHFqWWGUTGcoRZ3oamhK2r73ajRvU/taghNzD1ReVnFJ6svVJ7m8FnHdpHK3TgajN9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iPjFOpD1rtnPh1fg4Lzy+L3w8RJ8crl+R5HZ6dCivEiVFq0BEWUHmO5OQ61y5jKcWYrUImT6BF7m7ZXrKecxFCCby5UtCrBhsupUS6tyNKHKhIxEPbSSlVTXeDmvEvV2M2Q8I6Z1lSsbxK0AVtKAChb6Op2WricCYRiiLCBjP6GhnhJXugs5lZtHpLPWV7B01diQl+JLQqVCgwMIDfHNLSKlw0bm0277VvfkdFJCK4l8K+duy0TSWWbcd5nI7Qav0zzd3+8ejEPjzCLScQFdA/5uyJDLFsx7c0KiTkqOSYexwb7cIKDjsggcRsQ/K1hqwdywgbN0GpC5TSmkouAweweb9n6mcELOAvtdSf3Sgjkne3DHUpLOgSqlwzj7ecZv1qdTnxNylnG2I3KyD9iiaWHlKs7SqZlKZ10bexmTDoWcpGA7T/pg2h94Pa8TwAxdphGmOABsarEud9jVzbjz/jkrCAtsZp5tzQdeIxrR//LQOKaXdCeBOUp2UWoYMOwyYfBt/y+AIBXKRcY4wg75Zhj2wjq2YA7V3aiGoc5SNXHi4M7TALqbVeaGZS+sQ6rbksch5PvObpZe+S3dmrb+94CUd93Ta00cajWd9WA6s/3A3huWvXJoQBt4juvyBbALqTdEW1ipJp7jebfn3LKhnbwzcnMjGtGI7oj+BaDf7wKbOrbiAAAAAElFTkSuQmCC',
  183. Tl =
  184. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAJxQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kyDQZAAAADN0Uk5TAAIECQsMDxsjJygtMjU3P0hLTE9VWltdY2Z+f4WKjo+Rk5eZmq24vMTM3+Tp8PH2+Pr9lQIL0gAAAQBJREFUSMftln0TgUAQxgsRSeQlF0IKFVL3/b8bHSK6rtsxZsz0/Lc7+5trnr3bTRAqvUvW9AJp8ichmT5myDelLKMGuIQCNcOEuJTCF0oKcEkFzy+ckYSLioxAL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3G3pXXi4fiiM5RxLurcPWdUEZGZlQOI+LtlQbaGMpQhiFSGZFZYTvwmiIis+ZXhiIiYmspI8QiRnNi4zWYTa/HNpcyEugie+PG3IDnwrImjmcaLAXJ54Qn/pmoXE1BZeSxrWTB2XVP/CNQqNBVR1X0JGGFOJ2pO6NIoFwqv3c5SViBTrZbbGIngGqsU33e3KFl7kH4ZHFl4h8BQnQ/tSBgmuWDOHpp4p/a3pgyPQ4fo1zc2zYTo6KYpEMDXiJClucPNnrwdMpL2KKEOyFLyhEaftma7GJLWLUSbsH3n/Pp6HCzT1WzfAzpMZEunxpGgp9e7DM0ItQOq7FYXl7JEIf3t9XifA9+6ydh1JPDcXmfhNCgb55/pkn2ERwvxaiuBzU/HQ+llDKUUsrZF7Tzfw/2oj4epKrFMjL0O5CAb17tIXrq7QhJH30FF35DCkmhUEiSdPvrHixaW4bMxirw63z5oNVzxbB3ypP/+hdQkdw4WB9R+AAAAABJRU5ErkJggg==',
  187. Pl =
  188. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAAXNSR0IArs4c6QAAAFRQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////MF88lgAAABt0Uk5TAAgKExofJjI/QEFMTWFlaYKip6irsLjo7PX2C7BfrQAAAM1JREFUSMftltsOwiAMQOu8oJbLZN75//80JKKwjg1Qoyb0rSc7GevabgB/EAx7wQhfz3qONiQ04ZdleB8zEIzwQyDhkISE76YlASACcJpTqX0+c2tzBaB83i8E3o8T5E7yOCz2x1Wu1JyNuTaZ0tbmm0wpuK5KL0tTbeQ4jjWsBJCR7o9LHICPSYlD+ODRce8s7yJrwC0QobyQ3C0WLn0ukH1p7+Ufr6QQRSUvernlbVTUsHXcq/SBvUc+1CldjnH+3r2nx3jyD1XAfztuUOl9K6RVlMIAAAAASUVORK5CYII=',
  189. kl =
  190. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAA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8lulDC2p/FopQzY79HulDNmw4LBShmoDse/Z7/6i7hSOVytmqG5z/O/yWeD3oXQhs2zbs+jEd6Wom1xWCDSUlUpI+0goJBpZtZBQVioh7SOhkGhk1UJCWalwHxNgAkyACZSVwP8hUI3VVMubnwAAAABJRU5ErkJggg==',
  199. Hl = Kr({
  200. emits: ['checkNavBar'],
  201. props: ['item'],
  202. name: 'layoutSilder',
  203. setup(t, { emit: r }) {
  204. const e = a => {
  205. r('checkNavBar', a);
  206. },
  207. n = dt(t.item);
  208. return (
  209. $i(
  210. () => t.item,
  211. a => {
  212. n.value = a;
  213. },
  214. { deep: !0 }
  215. ),
  216. () =>
  217. k(rn, null, [
  218. k(
  219. 'div',
  220. {
  221. onClick: () => e(n.value),
  222. class: [q.silderItem, n.value.isActive ? q.isActiveItem : '']
  223. },
  224. [
  225. k(
  226. It,
  227. {
  228. width: '26',
  229. height: '26',
  230. src: n.value.isActive
  231. ? n.value.activeIcon
  232. : n.value.normalIcon,
  233. 'preview-disabled': !0
  234. },
  235. null
  236. ),
  237. k('p', null, [n.value.name]),
  238. n.value.isActive
  239. ? k(
  240. It,
  241. { src: zl, class: q.radiusIcon, previewDisabled: !0 },
  242. null
  243. )
  244. : null
  245. ]
  246. )
  247. ])
  248. );
  249. }
  250. }),
  251. Ll =
  252. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACUhJREFUaEPtmnuM1cUVxz/n3rsPQJbdAq5LQRYBF1hAliVQIlFCgCCikVZohfSBLSL+URMpDbWoaK1SQMGm5dmA4WErWKQNVSqi1raGLQ+JQJG3rxIQFBewFXf3TjN3f7M7O3d+v3u9wbQx/pLNfc3Mbz5zzvmeM/Nb4Qt2yReMhy+B/t8tmp2FlMpjL7dA6m8QQieUuswLp4DtwBuAfm8u8z4JKb/Qn/WryAXgBIqdCJsYwCamSV2uC5cZaI8aj2I+qO4tHNTuad7XA38BjlsweuIGxgbUM9ZwL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SR9tdJHJBm0wcfHjTkkJ6e6tTyUZXn5bI8A8HZCMq8geW2Fd24DEBvvvTuEpGuIfWSgAD0B4PDIEifKESR/L/HOngBeT8K0S9Izy8B3HJCkslLZRJLORWV7ZymAeOO7EDqyqora0UJjiFTveq9Eli8leUgFGN869PK3oNNDcaqWe0dLwZJSNu1zzN4kvZ/SQOAylunQztGHx0n62qVSOlqsl/QkgMMia24lOaXCO9MBXBV984XyHiQ/zAZkRUlr7TpFkis0nvmeoQAM8imzxDs+ZvsoEZPTmSSnNQLjbx298JIUUyUnxo1Ietmly20BgJOiP82mHaZXtgwoeKnulaTD73KSP8YGSDKRHBz950zvkNwrkspqCueQTG8jSrGt4aEAyAenupfGns1DSZqR/7fGJF/XF/Vq/zWV5Ozou0+rT/mCLbLWNQUHDnu0qZQCCoP3x7X+wyR7AUjyHrghsuqBQH8mADjaExDtsUJtHMn0zqoSWCWgyFN1Hl6kgLyc4lcijlw+QlQV+meTnNrULZFCQ0DRUnAF009jnANyn8aULTmfPF0LGJRh5GI/LSgLGo3aZgGKgOU+XioNCsHrLhDe28AoJ9MZAPw+oc8hL2MSBuZ5mSS/Hbo6HNaK85M9sriMNeQAKXRa8lArHefohrKuj+pNrxpz+rPOgALKNbIVvX8BKm+RU9txS+kAAAAASUVORK5CYII=',
  255. Vl = Kr({
  256. name: 'layoutSilder',
  257. setup() {
  258. const t = ca(),
  259. r = to(),
  260. e = wr([
  261. {
  262. activeIcon: wl,
  263. name: '主页',
  264. normalIcon: Rl,
  265. isActive: !0,
  266. id: 1,
  267. path: '/'
  268. },
  269. {
  270. activeIcon: bl,
  271. name: '班级',
  272. normalIcon: xl,
  273. isActive: !1,
  274. id: 3,
  275. path: '/classList',
  276. lightList: [
  277. '/classDetail',
  278. '/classStudentRecode',
  279. '/afterWorkDetail',
  280. '/classStudentDetail'
  281. ]
  282. },
  283. {
  284. activeIcon: kl,
  285. name: '学生',
  286. normalIcon: Gl,
  287. isActive: !1,
  288. id: 2,
  289. path: '/studentList',
  290. lightList: ['/studentDetail']
  291. },
  292. {
  293. activeIcon: Il,
  294. name: '备课',
  295. normalIcon: Tl,
  296. isActive: !1,
  297. id: 4,
  298. path: '/prepare-lessons'
  299. },
  300. {
  301. activeIcon: Ll,
  302. name: '制谱',
  303. normalIcon: Ul,
  304. isActive: !1,
  305. id: 8,
  306. path: '/notation'
  307. },
  308. {
  309. activeIcon: Bl,
  310. name: 'AI学练',
  311. normalIcon: Ml,
  312. isActive: !1,
  313. id: 5,
  314. lightList: ['/xiaoku-music'],
  315. path: '/xiaoku-ai'
  316. },
  317. {
  318. activeIcon: Ol,
  319. name: '资源',
  320. normalIcon: Pl,
  321. isActive: !1,
  322. id: 6,
  323. path: '/natural-resources'
  324. },
  325. {
  326. activeIcon: Nl,
  327. name: '数据',
  328. normalIcon: Fl,
  329. isActive: !1,
  330. id: 7,
  331. path: '/data-module'
  332. }
  333. ]),
  334. n = i => {
  335. e.forEach(o => {
  336. (o.isActive = !1),
  337. o.id == i.id && ((o.isActive = !0), i.path && t.push(i.path));
  338. });
  339. };
  340. eu(i => {
  341. a(i.path);
  342. });
  343. const a = i => {
  344. e.forEach(o => {
  345. var s;
  346. (o.isActive = !1),
  347. (o.path === i || ((s = o.lightList) != null && s.includes(i))) &&
  348. (o.isActive = !0);
  349. });
  350. };
  351. return (
  352. en(() => {
  353. a(r.path);
  354. }),
  355. () =>
  356. k(rn, null, [
  357. k('div', { class: q.silder }, [
  358. k('div', { class: q.logoWrap }, [
  359. k(It, { class: q.logo, src: Dl, previewDisabled: !0 }, null)
  360. ]),
  361. k('div', { class: q.sliderList }, [
  362. e.map(i => k(Hl, { onCheckNavBar: n, item: i }, null))
  363. ])
  364. ])
  365. ])
  366. );
  367. }
  368. }),
  369. Wl =
  370. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAADlZJREFUeF7tWm2MVNUZfs7M7JewgkWLYnSBFUWwxlBFayWE+Fmo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K4n+RQh5SSm19lICc843IuIL+ZiMsRlBEBwoCSyEaDXGdDiiXy6lfOtSAgshlhljbHPUvyil86SUneWAHzDG7HUyvFQptaMWYM75HkScHb+hvUqpOTXaL0HEdgd4tpTy03IanhSGodt4rNNab6gloP0Ooijq75MZYytd/SXx43meLWvrHQ1PzuVyh0sCe553MwD84TjeprV+Okmgwdrjed42AHjK8XeL1vrPksB2dBFC/IOIw+INWmvNBwsmiR/P82yHOCWW1Hkp5XXuKHbRScc5/wQRC7qjlI6VUp5IEmyge4QQY4wxx51vaI9Saq7rtxTwckR8w9m0Umu9ZaAwSew9z7MtZWFOJIQ8qZQqVIz+rBc7EkLcZozpzv9HCDmRTqfHl2uok4Ak2WMHht7e3qOIOCbej5TS0VLKkxUzbP/knO9GxEJrRwh5TilVaIiSANS6h3O+GhFfceTQoZSaX+ynZD9s560oig4jIosNTsezlnts18pUdr/v++Pj2bF/KieERIyxSblc7kgi4DjL2xHRXpr0L0LID+l0emo2mz01aKQA0NLScmNvb+9XiHi3E6tdKfVEqThlZ7pMJjMyDEM7Eo12HGXT6fSCwYKOYT9CxBYHrjuVSk0pN+hWG/O5MWY/Il7rZtqe70EQDEgeVga2bynK7DlKqW127FBaciW5SLH3ve8XWdubmo3pdHprrdUjrgYrENF2ge5NkpXdw9Xuk6sCx3peBADtbqZjXZ9AxM2U0o+qHS7xobCAELLKKV357+McANhGq+rldyJg69X3fR5F0W5X00VZt0dqDgB+JYTYOg6IaPU/yl702IG6zFvuZozNryQD1y4xsDWyH2IURRsB4HGn5NVVNGzpAoCdjLG1lW6SEpe1ShRxnd4U313U9NA28YSQTsbYmlJ1ttrT1xrsAn/2GI9PxAcBYKbT5V2wjxBi78k+B4CPCSEdxcdtNci6JVHJsW1NOeeNqVRqtDGmv3ZTSrvDMOxWSvWUuq2vBbRQVusxupw2A5LE5QC/CjzUWf8PyxXKTdCDFSYAAAAASUVORK5CYII=',
  375. Xl =
  376. 'data:image/png;base64,iVBORw0KGgoAAAANSUhE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/2VmS7C0wU5nS1g5u07Ojwx0769bassgczMA0hOXs+Nw1rgrTYD2r8tSiQSZGUdh8kvvyQWxcVFHGnmfnmz7gMCAkZDpVJygzl/Ph8DB+q/FnW1B61YsRy5uTlaEXaxUV5+06h4d0x7s5fAnNkf4vqN65wddiHR2cOFMVRLP4nH2TN52p9ZYkNJSVmnot0N/uUSEP48vmvXDrA/XWPJS1nfH8OIt/x4BR+LFy9Cfn5bUhpLeioqumqg9yrAA6RRVIIEe/ObNCkYLCtM1xwdHREdHYP3gsbAq0OGiEzmqI3PdfkD0R9FcqHrG/37I/9CgR4BrwY8yxFkCRIiU2Q6enJTn37I4CE4djwbCoU7wsPnoaSkpM0HyOWYEDwRz58/x4sXL7T/q6oqwTJBdM1SDs9gjCxFRmySFDPGtjJGBN+2fkMyFkZEov0SMKXbbeC1DoAcMStNjtnIPnEMaZvT8OTJY1NYkJGxDyEhk7Q6iatNJ6R3K3gA2jQ5SyRKsszQs+fOoKigAJVVlQaZouyEFho6BXFx8RxJGRnf4sjRw3hcWwvmP2QyJzg6OkDm5ASZgyN8fHywJH4pAgICTRIrRoBLlGTKlkqVFTMQa+lwqbJsAL0+WVpLgqohx26Lo4ROo47p8ky/1xdMMBJ6dcmMbhYpleqve1rFmA6byaIpJviybG5TT6scIyBpCoXzFybL5nRs9drCyfYOtc0xtqTZazEVIfhZKnFIEFU6254IeyyeplJJCiuKMrVD8qoe/99B9rzy+f8ACU1JpSzL2oEAAAAASUVORK5CYII=';
  383. const jl = Kr({
  384. name: 'imGroup',
  385. setup() {
  386. const t = va();
  387. dt(!1);
  388. const r = dt(),
  389. e = dt(!1),
  390. n = /(localhost|192)/.test(location.host)
  391. ? 'https://test.lexiaoya.cn'
  392. : /online.lexiaoya.cn/.test(location.href)
  393. ? 'https://kt.colexiu.com'
  394. : location.origin,
  395. a = ''
  396. .concat(n, '/classroom-im/?userID=')
  397. .concat(t.getUserInfo.imUserId, '&Authorization=')
  398. .concat(t.getToken, '&t=')
  399. .concat(+new Date());
  400. return () =>
  401. k('div', { class: q.imGroupContainer }, [
  402. k(
  403. nu,
  404. { show: !e.value },
  405. {
  406. default: () => [
  407. k(
  408. 'iframe',
  409. {
  410. ref: r,
  411. onLoad: () => {
  412. e.value = !0;
  413. },
  414. class: [q.container],
  415. frameborder: '0',
  416. src: a
  417. },
  418. null
  419. )
  420. ]
  421. }
  422. )
  423. ]);
  424. }
  425. }),
  426. Zl = '_suggestOption_j4g0v_1',
  427. _l = '_updateBtnGroup_j4g0v_1',
  428. $l = '_suggestSelect_j4g0v_10',
  429. tf = '_inBack_j4g0v_69',
  430. rf = '_isAni_j4g0v_78',
  431. ef = '_reversal_j4g0v_1',
  432. nf = '_inBackBottom_j4g0v_81',
  433. af = '_inFront_j4g0v_90',
  434. of = '_submitBtn_j4g0v_97',
  435. sf = '_updatePassword_j4g0v_108',
  436. uf = '_forUp_j4g0v_1',
  437. lf = '_endRoute_j4g0v_1',
  438. ff = '_formWrap_j4g0v_118',
  439. cf = '_forDown_j4g0v_1',
  440. vf = '_sealing_j4g0v_121',
  441. pf = '_stamp_j4g0v_1',
  442. df = '_formTitle_j4g0v_145',
  443. gf = '_bgLine_j4g0v_149',
  444. hf = '_formWrapInfo_j4g0v_159',
  445. Af = '_closeBtn_j4g0v_162',
  446. mf = '_countInput_j4g0v_171',
  447. Sf = '_addInput_j4g0v_196',
  448. Cf = '_messageWrap_j4g0v_228',
  449. bt = {
  450. suggestOption: Zl,
  451. updateBtnGroup: _l,
  452. suggestSelect: $l,
  453. inBack: tf,
  454. isAni: rf,
  455. reversal: ef,
  456. inBackBottom: nf,
  457. inFront: af,
  458. submitBtn: of,
  459. updatePassword: sf,
  460. forUp: uf,
  461. endRoute: lf,
  462. formWrap: ff,
  463. forDown: cf,
  464. sealing: vf,
  465. stamp: pf,
  466. formTitle: df,
  467. bgLine: gf,
  468. formWrapInfo: hf,
  469. closeBtn: Af,
  470. countInput: mf,
  471. addInput: Sf,
  472. messageWrap: Cf
  473. },
  474. Ef = '' + new URL('bg-line-7cb142ce.png', import.meta.url).href,
  475. yf =
  476. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAAAXNSR0IArs4c6QAACbpJREFUeF7tm39wFPUVwN/bzSaXEglMHA/5UdsRW9oqlNEKgre7l6N1AMkMba/+aK2OnUIVFCVip7TjpGM7TCkRFCsz1BlamFrb2KmAGMhwye53nUp/UG1pLSoUtBC8BskwCCG5232dL3OX7m32bvcud5eL5vtn9n3f973Pve93377vC8LYcCWAY1zcCYyByRIZY2A+SmBmbqdxp3tgHRAsJQQJAXYF6mDNv5fjWb9Hx4cyYia30m4iujUTArLuZlARkfzA+dCBmfoE3Wha9Ec350UB1ROrUf9ogmmlb5hEO9ycFxDvP9mMW8oCZsGCBfWJRKIRAD5BRA1EVMwovCgIwl5d1//sxxkuM6WV7rGItrnJI+Kq7mZ8yo+ugp2QZfmTRPRjAPgqAEh+FitQxgKARYZh7PMzf0TBKIoStSzrlwBQ68fYIsjsMAzjm370jBgYRVHusCzrVwBQcLT5cdAug4gtjLEf+pk3ImDC4fCnk8nka9kiBREvEhEP/WKNfkR8ORAILO/o6DjvR+mIgJFl+XdE9GWHgWcQ8VFBEPZpmnbCj/GllCk7GFVVJ5mm2e3YQj2SJM3u7Ow8WUpn7bqnPE0NmIDrLDPrgX8LATW7vpUAnwGAF12fiWCSBW93N+N/+HNf50Q4HL4+mUyuAoC7HHv/64yx58oBpYVI2PoEbCKAlVDclCDDfET8+YRpsDInmEgk8tmBgYEnAWCBi/M0ceLE+l27dp0rB5gprbTaImotx1r8sM8KRlGUJUT0HBHVZTHmXcMwriqHoXyNya30VyKaXY71EPCoKxhFUW6yLEsDgOochhw1DGN6OQzla1y5gY4DUFl+CEQ8MwSMqqoB0zTfBICPO51GxDgRvYaIfQBwijG2ooxgtgNQxhlXqrUR8cUhYEKh0EMAsNGxaI8oiss0TXM90UtloF3vtM00OdkPfyh11CDiqSqEm93A/AUArk8bhYimK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qgzjyZa3IAnGPVg/tOvHqIHWZ27Z9wLAGrZqlbqAtnsd3cJ/uDHFvAfRZDWs2Kl3fIsQasmlVY1vxlkhOTe8fjv2bsARebWJPj4yQf9t/kyrKQGMAKy8XnyciaTQPOv6SJAly4jbpZ5Ucx23+cQU4cYNUstcfL6sJms5HPHnIiAatm5U9P5PAQgZ+YIbs86MQC7jP5Us+Tt4R9gsK+r8SzROIBF+6X1TGZX5v75cFfsmEBuHfIbkYTgMd0HF2NZ38dxoCLTSucT1ab+tQz5or/DJse3JekyjRwvA1NAjwSRc6QOH2rhiXgosCFxDBPRJn9J2rYwxpw77Cdz+OFdXFJ1qYTekUALsy0VUa+H4rgoTjm1gwLesUALgpYSKC6Ps5ZcoOEXXGA+8y2G3jxlioRSc29Qq9YwEqw/LPmPXiAFlYn8R0UTqBXNOCiQOq26oM2LCHwo6S/MmggdAO4jyLqvVDdx/AAgcbh8oY3A7jEOJd/UtWChSCakv5CTgPY5kKmXq1rESsA3J3E2ysD2MlM5dImg/tBLAVY77Ba5MUMYA8IVII3AEsJ3A1yvAcT2qoYwD6krlvLUWfOYx6Ar1KwAOQ4H+ZCqWoABySrejkJBXewB/dAMJfkxIBM+zJjAPuSr3Tlhlamd3fgelqYR+R7+HUgI9E6EqchaBprk3VrOflsN26F4CbLgtr2O1vXRkEDOIKvxqzNHHv0KG6AhZsIfIbALAAzwujlBnAEgEu5rN/AcR+cwyctYpYIriVQJ8B0ENMJjvYapgHsVTlN9dSq2oyNmNJ9HjPYg+kUTAGhcplMErn4s/C3Sn0xikCVCKqKv/8fYSl83YHzUrUAAAAASUVORK5CYII=',
  479. bf = '' + new URL('inFront-5893f599.png', import.meta.url).href,
  480. xf = '' + new URL('submitBtn-eeef99db.png', import.meta.url).href,
  481. wf = '' + new URL('sealing-3ca78c97.png', import.meta.url).href,
  482. Rf = '' + new URL('boxBg-7cf5b952.png', import.meta.url).href,
  483. Bf = t => pa.post('/edu-app/sysSuggestion/save', { data: t }),
  484. Mf = t => pa.post('/edu-app/sysSuggestionType/page', { data: t }),
  485. If = t => pa.post('/edu-app/sysParamConfig/page', { data: t }),
  486. Tf = Kr({
  487. name: 'train-update',
  488. emits: ['close', 'submit'],
  489. setup(t, { emit: r }) {
  490. const e = au(),
  491. n = va(),
  492. a = wr({
  493. suggestionTypeId: null,
  494. clientType: 'TEACHER',
  495. content: '',
  496. attachmentUrls: '',
  497. type: 'APP',
  498. mobileNo: n.getUserInfo.phone
  499. }),
  500. i = wr([]),
  501. o = dt(!1),
  502. s = dt([]),
  503. u = 'https://gyt.ks3-cn-beijing.ksyuncs.com/',
  504. l = dt(),
  505. f = dt([]),
  506. c = dt(),
  507. v = dt(!1);
  508. dt();
  509. const p = dt(''),
  510. d = dt(''),
  511. g = async () => {
  512. var b;
  513. (b = c.value) == null ||
  514. b.validate(async C => {
  515. if (C) return;
  516. const D = f.value
  517. .map(x => {
  518. console.log(x, 'item');
  519. const w = x.name,
  520. T = ''.concat(x.id + w);
  521. return u + T;
  522. })
  523. .join(',');
  524. try {
  525. const x = await Bf({ ...a, attachmentUrls: D });
  526. (o.value = !0),
  527. setTimeout(() => {
  528. r('close');
  529. }, 3e3);
  530. } catch (x) {
  531. console.log(x);
  532. }
  533. console.log('onSubmit');
  534. });
  535. },
  536. h = async b => {
  537. console.log(b, 'onBeforeUpload');
  538. const C = b.file;
  539. let S = !0;
  540. const D = 2;
  541. if (((S = C.file.size / 1024 / 1024 < D), !S))
  542. return e.error('文件大小不能超过'.concat(D, 'M')), !1;
  543. if (!S) return S;
  544. try {
  545. v.value = !0;
  546. const x = C.file.name,
  547. w = ''.concat(C.id + x),
  548. T = {
  549. filename: w,
  550. bucketName: 'gyt',
  551. postData: {
  552. filename: w,
  553. acl: 'public-read',
  554. key: w,
  555. unknowValueField: []
  556. }
  557. },
  558. { data: I } = await Cu(T);
  559. i.push({
  560. id: C.id,
  561. tempFiileBuffer: C.file,
  562. policy: I.policy,
  563. signature: I.signature,
  564. acl: 'public-read',
  565. key: w,
  566. KSSAccessKeyId: I.kssAccessKeyId,
  567. name: w
  568. });
  569. } catch (x) {
  570. return (v.value = !1), !1;
  571. }
  572. return !0;
  573. },
  574. A = b => {
  575. const C = b.file.name;
  576. ''.concat(b.file.id + C);
  577. },
  578. m = async b => {
  579. console.log(b), (v.value = !1);
  580. },
  581. E = async () => {
  582. try {
  583. const b = await Mf({ rows: 9999, page: 1 });
  584. s.value = b.data.rows;
  585. } catch (b) {
  586. console.log(b);
  587. }
  588. },
  589. y = async () => {
  590. try {
  591. const { data: b } = await If({
  592. page: 1,
  593. rows: 999,
  594. group: 'OTHER'
  595. }),
  596. C = b.rows || [];
  597. (p.value = C.find(
  598. S => S.paramName == 'customer_service_email'
  599. ).paramValue),
  600. (d.value = C.find(
  601. S => S.paramName == 'customer_service_phone'
  602. ).paramValue),
  603. console.log(p.value, d.value);
  604. } catch (b) {
  605. console.log('请求报错'), console.log(b);
  606. }
  607. };
  608. return (
  609. en(() => {
  610. E(), y();
  611. }),
  612. () =>
  613. k('div', { class: bt.suggestOption }, [
  614. k('div', { class: [bt.updatePassword, o.value ? bt.isAni : ''] }, [
  615. k('div', { class: [bt.formWrap, o.value ? bt.isAni : ''] }, [
  616. k(
  617. It,
  618. {
  619. class: bt.closeBtn,
  620. src: Df,
  621. previewDisabled: !0,
  622. onClick: () => r('close')
  623. },
  624. null
  625. ),
  626. k(It, { class: bt.bgLine, src: Ef, previewDisabled: !0 }, null),
  627. k('h2', { class: bt.formTitle }, [Gt('意见反馈')]),
  628. k('div', { class: bt.formWrapInfo }, [
  629. k(
  630. iu,
  631. {
  632. labelAlign: 'right',
  633. labelPlacement: 'left',
  634. labelWidth: 'auto',
  635. ref: c,
  636. model: a,
  637. requireMarkPlacement: 'left'
  638. },
  639. {
  640. default: () => [
  641. k(
  642. En,
  643. {
  644. rule: [{ required: !0, message: '请选择反馈类型' }],
  645. path: 'suggestionTypeId'
  646. },
  647. {
  648. default: () => [
  649. k(
  650. Su,
  651. Gn(
  652. {
  653. class: bt.suggestSelect,
  654. 'value-field': 'id',
  655. 'label-field': 'name',
  656. style: { width: '227px!important' }
  657. },
  658. {
  659. options: s.value,
  660. placeholder: '反馈类型(必选)',
  661. clearable: !0,
  662. inline: !0
  663. },
  664. {
  665. value: a.suggestionTypeId,
  666. 'onUpdate:value': b =>
  667. (a.suggestionTypeId = b)
  668. }
  669. ),
  670. null
  671. )
  672. ]
  673. }
  674. ),
  675. k(
  676. En,
  677. {
  678. path: 'content',
  679. rule: [{ required: !0, message: '请输入反馈内容' }]
  680. },
  681. {
  682. default: () => [
  683. k(
  684. ou,
  685. {
  686. class: bt.countInput,
  687. type: 'textarea',
  688. rows: 5,
  689. placeholder: '请输入反馈内容',
  690. maxlength: 200,
  691. resizable: !1,
  692. showCount: !0,
  693. value: a.content,
  694. 'onUpdate:value': b => (a.content = b)
  695. },
  696. null
  697. )
  698. ]
  699. }
  700. ),
  701. k(En, null, {
  702. default: () => [
  703. k(
  704. su,
  705. {
  706. 'list-type': 'image-card',
  707. accept: '.jpg,jpeg,.png',
  708. fileList: f.value,
  709. 'onUpdate:fileList': b => (f.value = b),
  710. ref: l,
  711. multiple: !0,
  712. max: 5,
  713. data: b => {
  714. const C = i.find(w => w.id == b.file.id),
  715. { id: S, tempFiileBuffer: D, ...x } = C;
  716. return { ...x };
  717. },
  718. showPreviewButton: !0,
  719. action: u,
  720. onBeforeUpload: b => h(b),
  721. onRemove: b => m(b),
  722. onFinish: b => A(b)
  723. },
  724. {
  725. default: () => [
  726. k('div', { class: bt.addInput }, [
  727. k(
  728. It,
  729. { previewDisabled: !0, src: yf },
  730. null
  731. ),
  732. k('p', null, [Gt(' 点击上传图片')]),
  733. k('p', null, [Gt('(最多五张)')])
  734. ])
  735. ]
  736. }
  737. )
  738. ]
  739. })
  740. ]
  741. }
  742. )
  743. ])
  744. ]),
  745. k('div', { class: [bt.inBack, o.value ? bt.isAni : ''] }, null),
  746. k(
  747. It,
  748. { src: Rf, class: bt.inBackBottom, previewDisabled: !0 },
  749. null
  750. ),
  751. k(It, { src: bf, class: bt.inFront, previewDisabled: !0 }, null),
  752. k(
  753. It,
  754. {
  755. src: wf,
  756. class: [bt.sealing, o.value ? bt.isAni : ''],
  757. previewDisabled: !0
  758. },
  759. null
  760. ),
  761. o.value
  762. ? null
  763. : k(rn, null, [
  764. k(
  765. It,
  766. {
  767. src: xf,
  768. onClick: () => {
  769. g();
  770. },
  771. class: bt.submitBtn,
  772. previewDisabled: !0
  773. },
  774. null
  775. ),
  776. k('div', { class: bt.messageWrap }, [
  777. d.value
  778. ? k('p', null, [Gt('客服电话:'), d.value])
  779. : null,
  780. p.value ? k('p', null, [Gt('邮箱:'), p.value]) : null
  781. ])
  782. ])
  783. ])
  784. ])
  785. );
  786. }
  787. }),
  788. Of = Kr({
  789. name: 'layoutTop',
  790. setup() {
  791. const t = ca(),
  792. r = dt(0),
  793. e = dt(!1),
  794. n = dt(!1),
  795. a = dt(!0),
  796. i = dt(!1),
  797. o = va(),
  798. s = dt(!1),
  799. { info: u } = uu(o),
  800. l = () => {
  801. t.push({ path: '/setting', query: { activeTab: 'person' } });
  802. },
  803. f = () => {
  804. t.push({ path: '/setting', query: { activeTab: 'school' } });
  805. },
  806. c = () => {
  807. s.value = !0;
  808. },
  809. v = document.querySelector('body');
  810. v && (v.className = 'myBody body'),
  811. en(() => {
  812. window.addEventListener('message', p),
  813. (n.value = !0),
  814. lu(() => {
  815. setTimeout(() => {
  816. n.value = !1;
  817. }, 50),
  818. setTimeout(() => {
  819. (a.value = !1), v && (v.className = 'myBody');
  820. }, 1e3);
  821. });
  822. });
  823. const p = d => {
  824. d.data.api === 'onImClose'
  825. ? (n.value = !1)
  826. : d.data.api === 'getNoReadMessageCount' &&
  827. (console.log(d, 'onMessage'), (r.value = d.data.count || 0));
  828. };
  829. return (
  830. fu(() => {
  831. window.removeEventListener('message', p);
  832. }),
  833. () => {
  834. var d, g;
  835. return k(rn, null, [
  836. k('div', { class: q.layoutTop }, [
  837. k('div', { class: q.layoutLeft }, [
  838. k(
  839. It,
  840. { src: Wl, class: q.schoolIcon, previewDisabled: !0 },
  841. null
  842. ),
  843. k('p', null, [
  844. ((g = (d = u.value) == null ? void 0 : d.schoolInfos[0]) ==
  845. null
  846. ? void 0
  847. : g.name) || '',
  848. '22:52'
  849. ])
  850. ]),
  851. k('div', { class: q.layoutRight }, [
  852. k(ei, null, {
  853. trigger: () =>
  854. k(
  855. 'div',
  856. { class: q.optons, onClick: () => (i.value = !0) },
  857. [k(It, { src: Jl, previewDisabled: !0 }, null)]
  858. ),
  859. default: '意见反馈'
  860. }),
  861. k('div', { onClick: () => (n.value = !0) }, [
  862. k(
  863. cu,
  864. Gn(
  865. {
  866. value: r.value,
  867. max: 99,
  868. class: [
  869. r.value > 0 ? '' : q.messageBadgeHide,
  870. q.messageBadge,
  871. r.value > 0 ? '' : q.messageBadgeNo
  872. ]
  873. },
  874. { id: 'home-2' },
  875. { color: '#FF1036' }
  876. ),
  877. {
  878. default: () => [
  879. k(
  880. It,
  881. {
  882. class: [
  883. q.messageIcon,
  884. r.value > 0 ? q.animation : ''
  885. ],
  886. 'preview-disabled': !0,
  887. src: Yl
  888. },
  889. null
  890. )
  891. ]
  892. }
  893. )
  894. ]),
  895. k('div', { class: q.line }, null),
  896. k(
  897. ro,
  898. {
  899. 'show-arrow': !1,
  900. trigger: 'click',
  901. 'onUpdate:show': h => {
  902. e.value = h;
  903. },
  904. class: q.popoverHeader,
  905. placement: 'bottom-end',
  906. raw: !0
  907. },
  908. {
  909. default: () => [
  910. k('div', { class: q.propWrap }, [
  911. k('div', { class: q.teacherInfo }, [
  912. k(
  913. It,
  914. {
  915. class: q.teacherIcon,
  916. src: u.value.avatar ? u.value.avatar : ii,
  917. previewDisabled: !0
  918. },
  919. null
  920. ),
  921. k(
  922. ei,
  923. { class: q.nameTool },
  924. {
  925. trigger: () =>
  926. k('p', { class: q.teacherName }, [
  927. u.value.nickname
  928. ]),
  929. default: () => u.value.nickname
  930. }
  931. )
  932. ]),
  933. k('div', { class: q.propWrapList }, [
  934. k(
  935. 'div',
  936. { class: q.propWrapItem, onClick: () => l() },
  937. [
  938. ' ',
  939. k(
  940. It,
  941. {
  942. class: q.smallIcon,
  943. src: Kl,
  944. previewDisabled: !0
  945. },
  946. null
  947. ),
  948. k('p', { class: q.smallTitle }, [Gt('个人信息')])
  949. ]
  950. ),
  951. u.value.isSuperAdmin
  952. ? k(
  953. 'div',
  954. {
  955. class: q.propWrapItem,
  956. onClick: () => {
  957. f();
  958. }
  959. },
  960. [
  961. ' ',
  962. k(
  963. It,
  964. {
  965. class: q.smallIcon,
  966. src: ql,
  967. previewDisabled: !0
  968. },
  969. null
  970. ),
  971. k('p', { class: q.smallTitle }, [
  972. Gt('学校信息')
  973. ])
  974. ]
  975. )
  976. : null,
  977. k(
  978. 'div',
  979. { class: q.propWrapItem, onClick: () => c() },
  980. [
  981. ' ',
  982. k(
  983. It,
  984. {
  985. class: q.smallIcon,
  986. src: Xl,
  987. previewDisabled: !0
  988. },
  989. null
  990. ),
  991. k('p', { class: q.smallTitle }, [Gt('修改密码')])
  992. ]
  993. )
  994. ]),
  995. k(
  996. 'div',
  997. {
  998. class: q.logoutInfo,
  999. onClick: () => {
  1000. o.logout(), t.replace('/login');
  1001. }
  1002. },
  1003. [
  1004. k('div', { class: q.propWrapItem }, [
  1005. k(
  1006. It,
  1007. {
  1008. class: q.smallIcon,
  1009. src: Ql,
  1010. previewDisabled: !0
  1011. },
  1012. null
  1013. ),
  1014. k('p', { class: q.smallTitle }, [Gt('退出登录')])
  1015. ])
  1016. ]
  1017. )
  1018. ])
  1019. ],
  1020. trigger: () =>
  1021. k('div', { class: q.mesgWrap }, [
  1022. k(
  1023. It,
  1024. {
  1025. 'preview-disabled': !0,
  1026. class: q.teacherIcon,
  1027. src: u.value.avatar ? u.value.avatar : ii
  1028. },
  1029. null
  1030. ),
  1031. k(
  1032. vu,
  1033. { class: e.value ? q.rotueLeft : q.rotueRight },
  1034. {
  1035. default: () => [
  1036. k(
  1037. 'svg',
  1038. {
  1039. xmlns: 'http://www.w3.org/2000/svg',
  1040. viewBox: '0 0 24 24'
  1041. },
  1042. [
  1043. k(
  1044. 'path',
  1045. {
  1046. d: 'M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z',
  1047. fill: 'currentColor'
  1048. },
  1049. null
  1050. )
  1051. ]
  1052. )
  1053. ]
  1054. }
  1055. )
  1056. ])
  1057. }
  1058. )
  1059. ]),
  1060. k(
  1061. Rr,
  1062. {
  1063. class: q.changePwdModal,
  1064. show: s.value,
  1065. 'onUpdate:show': h => (s.value = h),
  1066. preset: 'dialog',
  1067. showIcon: !1,
  1068. title: '修改密码'
  1069. },
  1070. {
  1071. default: () => [
  1072. k(
  1073. mu,
  1074. {
  1075. phone: u.value.phone,
  1076. onClose: () => {
  1077. s.value = !1;
  1078. }
  1079. },
  1080. null
  1081. )
  1082. ]
  1083. }
  1084. ),
  1085. k(
  1086. Rr,
  1087. Gn(
  1088. {
  1089. show: n.value,
  1090. 'onUpdate:show': h => (n.value = h),
  1091. showIcon: !1,
  1092. class: a.value ? q.hideModal : ''
  1093. },
  1094. { id: 'imGroupDiv' },
  1095. { displayDirective: 'show' }
  1096. ),
  1097. { default: () => [k(jl, null, null)] }
  1098. ),
  1099. k(
  1100. Rr,
  1101. {
  1102. class: ['modalTitle', 'background', q.suggestWrap],
  1103. show: i.value,
  1104. 'onUpdate:show': h => (i.value = h),
  1105. preset: 'card',
  1106. showIcon: !1
  1107. },
  1108. {
  1109. default: () => [
  1110. k(Tf, { onClose: () => (i.value = !1) }, null)
  1111. ]
  1112. }
  1113. )
  1114. ])
  1115. ]);
  1116. }
  1117. );
  1118. }
  1119. });
  1120. function Pf(t) {
  1121. for (var r = [], e = 1; e < arguments.length; e++) r[e - 1] = arguments[e];
  1122. return r
  1123. .map(function (n) {
  1124. return n
  1125. .split(' ')
  1126. .map(function (a) {
  1127. return a ? '' + t + a : '';
  1128. })
  1129. .join(' ');
  1130. })
  1131. .join(' ');
  1132. }
  1133. function kf(t, r) {
  1134. return r.replace(/([^}{]*){/gm, function (e, n) {
  1135. return n.replace(/\.([^{,\s\d.]+)/g, '.' + t + '$1') + '{';
  1136. });
  1137. }
  1138. function or(t, r) {
  1139. return function (e) {
  1140. e && (t[r] = e);
  1141. };
  1142. }
  1143. function eo(t, r, e) {
  1144. return function (n) {
  1145. n && (t[r][e] = n);
  1146. };
  1147. }
  1148. function si(t, r) {
  1149. return function (e) {
  1150. var n = e.prototype;
  1151. t.forEach(function (a) {
  1152. r(n, a);
  1153. });
  1154. };
  1155. }
  1156. function Gf(t, r) {
  1157. return (
  1158. r === void 0 && (r = {}),
  1159. function (e, n) {
  1160. t.forEach(function (a) {
  1161. var i = r[a] || a;
  1162. i in e ||
  1163. (e[i] = function () {
  1164. for (var o, s = [], u = 0; u < arguments.length; u++)
  1165. s[u] = arguments[u];
  1166. var l = (o = this[n])[a].apply(o, s);
  1167. return l === this[n] ? this : l;
  1168. });
  1169. });
  1170. }
  1171. );
  1172. }
  1173. var Nf = 'function',
  1174. Ff = 'object',
  1175. zf = 'string',
  1176. Hf = 'number',
  1177. da = 'undefined',
  1178. no = typeof window !== da,
  1179. Lf = typeof document !== da && document,
  1180. Uf = [
  1181. { open: '(', close: ')' },
  1182. { open: '"', close: '"' },
  1183. { open: "'", close: "'" },
  1184. { open: '\\"', close: '\\"' },
  1185. { open: "\\'", close: "\\'" }
  1186. ],
  1187. wt = 1e-7,
  1188. we = {
  1189. cm: function (t) {
  1190. return (t * 96) / 2.54;
  1191. },
  1192. mm: function (t) {
  1193. return (t * 96) / 254;
  1194. },
  1195. in: function (t) {
  1196. return t * 96;
  1197. },
  1198. pt: function (t) {
  1199. return (t * 96) / 72;
  1200. },
  1201. pc: function (t) {
  1202. return (t * 96) / 6;
  1203. },
  1204. '%': function (t, r) {
  1205. return (t * r) / 100;
  1206. },
  1207. vw: function (t, r) {
  1208. return r === void 0 && (r = window.innerWidth), (t / 100) * r;
  1209. },
  1210. vh: function (t, r) {
  1211. return r === void 0 && (r = window.innerHeight), (t / 100) * r;
  1212. },
  1213. vmax: function (t, r) {
  1214. return (
  1215. r === void 0 && (r = Math.max(window.innerWidth, window.innerHeight)),
  1216. (t / 100) * r
  1217. );
  1218. },
  1219. vmin: function (t, r) {
  1220. return (
  1221. r === void 0 && (r = Math.min(window.innerWidth, window.innerHeight)),
  1222. (t / 100) * r
  1223. );
  1224. }
  1225. };
  1226. /*! *****************************************************************************
  1227. Copyright (c) Microsoft Corporation.
  1228. Permission to use, copy, modify, and/or distribute this software for any
  1229. purpose with or without fee is hereby granted.
  1230. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1231. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1232. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1233. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1234. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1235. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1236. PERFORMANCE OF THIS SOFTWARE.
  1237. ***************************************************************************** */ function Vf() {
  1238. for (var t = 0, r = 0, e = arguments.length; r < e; r++)
  1239. t += arguments[r].length;
  1240. for (var n = Array(t), a = 0, r = 0; r < e; r++)
  1241. for (var i = arguments[r], o = 0, s = i.length; o < s; o++, a++)
  1242. n[a] = i[o];
  1243. return n;
  1244. }
  1245. function Er(t, r, e, n) {
  1246. return (t * n + r * e) / (e + n);
  1247. }
  1248. function nn(t) {
  1249. return typeof t === da;
  1250. }
  1251. function tr(t) {
  1252. return t && typeof t === Ff;
  1253. }
  1254. function Rt(t) {
  1255. return Array.isArray(t);
  1256. }
  1257. function Wt(t) {
  1258. return typeof t === zf;
  1259. }
  1260. function Ur(t) {
  1261. return typeof t === Hf;
  1262. }
  1263. function ga(t) {
  1264. return typeof t === Nf;
  1265. }
  1266. function Wf(t, r) {
  1267. var e = t === '' || t == ' ',
  1268. n = r === '' || r == ' ';
  1269. return (n && e) || t === r;
  1270. }
  1271. function ao(t, r, e, n, a) {
  1272. var i = ha(t, r, e);
  1273. return i ? e : Yf(t, r, e + 1, n, a);
  1274. }
  1275. function ha(t, r, e) {
  1276. if (!t.ignore) return null;
  1277. var n = r.slice(Math.max(e - 3, 0), e + 3).join('');
  1278. return new RegExp(t.ignore).exec(n);
  1279. }
  1280. function Yf(t, r, e, n, a) {
  1281. for (
  1282. var i = function (l) {
  1283. var f = r[l].trim();
  1284. if (f === t.close && !ha(t, r, l)) return { value: l };
  1285. var c = l,
  1286. v = Kt(a, function (p) {
  1287. var d = p.open;
  1288. return d === f;
  1289. });
  1290. if ((v && (c = ao(v, r, l, n, a)), c === -1)) return (o = l), 'break';
  1291. (l = c), (o = l);
  1292. },
  1293. o,
  1294. s = e;
  1295. s < n;
  1296. ++s
  1297. ) {
  1298. var u = i(s);
  1299. if (((s = o), typeof u == 'object')) return u.value;
  1300. if (u === 'break') break;
  1301. }
  1302. return -1;
  1303. }
  1304. function Aa(t, r) {
  1305. var e = Wt(r) ? { separator: r } : r,
  1306. n = e.separator,
  1307. a = n === void 0 ? ',' : n,
  1308. i = e.isSeparateFirst,
  1309. o = e.isSeparateOnlyOpenClose,
  1310. s = e.isSeparateOpenClose,
  1311. u = s === void 0 ? o : s,
  1312. l = e.openCloseCharacters,
  1313. f = l === void 0 ? Uf : l,
  1314. c = f
  1315. .map(function (S) {
  1316. var D = S.open,
  1317. x = S.close;
  1318. return D === x ? D : D + '|' + x;
  1319. })
  1320. .join('|'),
  1321. v = '(\\s*' + a + '\\s*|' + c + '|\\s+)',
  1322. p = new RegExp(v, 'g'),
  1323. d = t.split(p).filter(function (S) {
  1324. return S && S !== 'undefined';
  1325. }),
  1326. g = d.length,
  1327. h = [],
  1328. A = [];
  1329. function m() {
  1330. return A.length ? (h.push(A.join('')), (A = []), !0) : !1;
  1331. }
  1332. for (
  1333. var E = function (S) {
  1334. var D = d[S].trim(),
  1335. x = S,
  1336. w = Kt(f, function (M) {
  1337. var O = M.open;
  1338. return O === D;
  1339. }),
  1340. T = Kt(f, function (M) {
  1341. var O = M.close;
  1342. return O === D;
  1343. });
  1344. if (w) {
  1345. if (((x = ao(w, d, S, g, f)), x !== -1 && u))
  1346. return (m() && i) ||
  1347. (h.push(d.slice(S, x + 1).join('')), (S = x), i)
  1348. ? ((y = S), 'break')
  1349. : ((y = S), 'continue');
  1350. } else if (T && !ha(T, d, S)) {
  1351. var I = Vf(f);
  1352. return (
  1353. I.splice(f.indexOf(T), 1),
  1354. {
  1355. value: Aa(t, {
  1356. separator: a,
  1357. isSeparateFirst: i,
  1358. isSeparateOnlyOpenClose: o,
  1359. isSeparateOpenClose: u,
  1360. openCloseCharacters: I
  1361. })
  1362. }
  1363. );
  1364. } else if (Wf(D, a) && !o)
  1365. return m(), i ? ((y = S), 'break') : ((y = S), 'continue');
  1366. x === -1 && (x = g - 1),
  1367. A.push(d.slice(S, x + 1).join('')),
  1368. (S = x),
  1369. (y = S);
  1370. },
  1371. y,
  1372. b = 0;
  1373. b < g;
  1374. ++b
  1375. ) {
  1376. var C = E(b);
  1377. if (((b = y), typeof C == 'object')) return C.value;
  1378. if (C === 'break') break;
  1379. }
  1380. return A.length && h.push(A.join('')), h;
  1381. }
  1382. function Ar(t) {
  1383. return Aa(t, '');
  1384. }
  1385. function Br(t) {
  1386. return Aa(t, ',');
  1387. }
  1388. function io(t) {
  1389. var r = /([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t);
  1390. return !r || r.length < 4 ? {} : { prefix: r[1], value: r[2], suffix: r[3] };
  1391. }
  1392. function ge(t) {
  1393. var r = /^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);
  1394. if (!r) return { prefix: '', unit: '', value: NaN };
  1395. var e = r[1],
  1396. n = r[2],
  1397. a = r[3];
  1398. return { prefix: e, unit: a, value: parseFloat(n) };
  1399. }
  1400. function Qf(t) {
  1401. return t.replace(/[\s-_]+([^\s-_])/g, function (r, e) {
  1402. return e.toUpperCase();
  1403. });
  1404. }
  1405. function Le(t, r) {
  1406. return (
  1407. r === void 0 && (r = '-'),
  1408. t.replace(/([a-z])([A-Z])/g, function (e, n, a) {
  1409. return '' + n + r + a.toLowerCase();
  1410. })
  1411. );
  1412. }
  1413. function fe() {
  1414. return Date.now ? Date.now() : new Date().getTime();
  1415. }
  1416. function lr(t, r, e) {
  1417. e === void 0 && (e = -1);
  1418. for (var n = t.length, a = 0; a < n; ++a) if (r(t[a], a, t)) return a;
  1419. return e;
  1420. }
  1421. function Kt(t, r, e) {
  1422. var n = lr(t, r);
  1423. return n > -1 ? t[n] : e;
  1424. }
  1425. var oo = (function () {
  1426. var t = fe(),
  1427. r =
  1428. no &&
  1429. (window.requestAnimationFrame ||
  1430. window.webkitRequestAnimationFrame ||
  1431. window.mozRequestAnimationFrame ||
  1432. window.msRequestAnimationFrame);
  1433. return r
  1434. ? r.bind(window)
  1435. : function (e) {
  1436. var n = fe(),
  1437. a = setTimeout(function () {
  1438. e(n - t);
  1439. }, 1e3 / 60);
  1440. return a;
  1441. };
  1442. })(),
  1443. Xf = (function () {
  1444. var t =
  1445. no &&
  1446. (window.cancelAnimationFrame ||
  1447. window.webkitCancelAnimationFrame ||
  1448. window.mozCancelAnimationFrame ||
  1449. window.msCancelAnimationFrame);
  1450. return t
  1451. ? t.bind(window)
  1452. : function (r) {
  1453. clearTimeout(r);
  1454. };
  1455. })();
  1456. function fr(t) {
  1457. return Object.keys(t);
  1458. }
  1459. function qf(t) {
  1460. var r = fr(t);
  1461. return r.map(function (e) {
  1462. return t[e];
  1463. });
  1464. }
  1465. function gt(t, r) {
  1466. var e = ge(t),
  1467. n = e.value,
  1468. a = e.unit;
  1469. if (tr(r)) {
  1470. var i = r[a];
  1471. if (i) {
  1472. if (ga(i)) return i(n);
  1473. if (we[a]) return we[a](n, i);
  1474. }
  1475. } else if (a === '%') return (n * r) / 100;
  1476. return we[a] ? we[a](n) : n;
  1477. }
  1478. function Nn(t, r, e) {
  1479. return Math.max(r, Math.min(t, e));
  1480. }
  1481. function ui(t, r, e, n) {
  1482. return (
  1483. n === void 0 && (n = t[0] / t[1]),
  1484. [
  1485. [nt(r[0], wt), nt(r[0] / n, wt)],
  1486. [nt(r[1] * n, wt), nt(r[1], wt)]
  1487. ].filter(function (a) {
  1488. return a.every(function (i, o) {
  1489. var s = r[o],
  1490. u = nt(s, wt);
  1491. return e ? i <= s || i <= u : i >= s || i >= u;
  1492. });
  1493. })[0] || t
  1494. );
  1495. }
  1496. function so(t, r, e, n) {
  1497. if (!n)
  1498. return t.map(function (p, d) {
  1499. return Nn(p, r[d], e[d]);
  1500. });
  1501. var a = t[0],
  1502. i = t[1],
  1503. o = n === !0 ? a / i : n,
  1504. s = ui(t, r, !1, o),
  1505. u = s[0],
  1506. l = s[1],
  1507. f = ui(t, e, !0, o),
  1508. c = f[0],
  1509. v = f[1];
  1510. return (
  1511. a < u || i < l
  1512. ? ((a = u), (i = l))
  1513. : (a > c || i > v) && ((a = c), (i = v)),
  1514. [a, i]
  1515. );
  1516. }
  1517. function Kf(t) {
  1518. for (var r = t.length, e = 0, n = r - 1; n >= 0; --n) e += t[n];
  1519. return e;
  1520. }
  1521. function Fn(t) {
  1522. for (var r = t.length, e = 0, n = r - 1; n >= 0; --n) e += t[n];
  1523. return r ? e / r : 0;
  1524. }
  1525. function Et(t, r) {
  1526. var e = r[0] - t[0],
  1527. n = r[1] - t[1],
  1528. a = Math.atan2(n, e);
  1529. return a >= 0 ? a : a + Math.PI * 2;
  1530. }
  1531. function Jf(t) {
  1532. return [0, 1].map(function (r) {
  1533. return Fn(
  1534. t.map(function (e) {
  1535. return e[r];
  1536. })
  1537. );
  1538. });
  1539. }
  1540. function li(t) {
  1541. var r = Jf(t),
  1542. e = Et(r, t[0]),
  1543. n = Et(r, t[1]);
  1544. return (e < n && n - e < Math.PI) || (e > n && n - e < -Math.PI) ? 1 : -1;
  1545. }
  1546. function sr(t, r) {
  1547. return Math.sqrt(
  1548. Math.pow((r ? r[0] : 0) - t[0], 2) + Math.pow((r ? r[1] : 0) - t[1], 2)
  1549. );
  1550. }
  1551. function nt(t, r) {
  1552. if (!r) return t;
  1553. var e = 1 / r;
  1554. return Math.round(t / r) / e;
  1555. }
  1556. function fi(t, r) {
  1557. return (
  1558. t.forEach(function (e, n) {
  1559. t[n] = nt(t[n], r);
  1560. }),
  1561. t
  1562. );
  1563. }
  1564. function jf(t) {
  1565. for (var r = [], e = 0; e < t; ++e) r.push(e);
  1566. return r;
  1567. }
  1568. function Zf(t) {
  1569. return t.reduce(function (r, e) {
  1570. return r.concat(e);
  1571. }, []);
  1572. }
  1573. function uo(t, r) {
  1574. t.indexOf(r) === -1 && t.push(r);
  1575. }
  1576. function Tt(t, r) {
  1577. return t.classList
  1578. ? t.classList.contains(r)
  1579. : !!t.className.match(new RegExp('(\\s|^)' + r + '(\\s|$)'));
  1580. }
  1581. function lo(t, r) {
  1582. t.classList ? t.classList.add(r) : (t.className += ' ' + r);
  1583. }
  1584. function fo(t, r) {
  1585. if (t.classList) t.classList.remove(r);
  1586. else {
  1587. var e = new RegExp('(\\s|^)' + r + '(\\s|$)');
  1588. t.className = t.className.replace(e, ' ');
  1589. }
  1590. }
  1591. function Pt(t, r, e, n) {
  1592. t.addEventListener(r, e, n);
  1593. }
  1594. function Mt(t, r, e, n) {
  1595. t.removeEventListener(r, e, n);
  1596. }
  1597. function Jr(t) {
  1598. return (t == null ? void 0 : t.ownerDocument) || Lf;
  1599. }
  1600. function ma(t) {
  1601. return Jr(t).documentElement;
  1602. }
  1603. function Cr(t) {
  1604. return Jr(t).body;
  1605. }
  1606. function hr(t) {
  1607. var r;
  1608. return (
  1609. ((r = t == null ? void 0 : t.ownerDocument) === null || r === void 0
  1610. ? void 0
  1611. : r.defaultView) || window
  1612. );
  1613. }
  1614. function co(t) {
  1615. return t && 'postMessage' in t && 'blur' in t && 'self' in t;
  1616. }
  1617. function jr(t) {
  1618. return tr(t) && t.nodeName && t.nodeType && 'ownerDocument' in t;
  1619. }
  1620. var _f = (function () {
  1621. function t() {
  1622. (this.keys = []), (this.values = []);
  1623. }
  1624. var r = t.prototype;
  1625. return (
  1626. (r.get = function (e) {
  1627. return this.values[this.keys.indexOf(e)];
  1628. }),
  1629. (r.set = function (e, n) {
  1630. var a = this.keys,
  1631. i = this.values,
  1632. o = a.indexOf(e),
  1633. s = o === -1 ? a.length : o;
  1634. (a[s] = e), (i[s] = n);
  1635. }),
  1636. t
  1637. );
  1638. })(),
  1639. $f = (function () {
  1640. function t() {
  1641. this.object = {};
  1642. }
  1643. var r = t.prototype;
  1644. return (
  1645. (r.get = function (e) {
  1646. return this.object[e];
  1647. }),
  1648. (r.set = function (e, n) {
  1649. this.object[e] = n;
  1650. }),
  1651. t
  1652. );
  1653. })(),
  1654. tc = typeof Map == 'function',
  1655. rc = (function () {
  1656. function t() {}
  1657. var r = t.prototype;
  1658. return (
  1659. (r.connect = function (e, n) {
  1660. (this.prev = e),
  1661. (this.next = n),
  1662. e && (e.next = this),
  1663. n && (n.prev = this);
  1664. }),
  1665. (r.disconnect = function () {
  1666. var e = this.prev,
  1667. n = this.next;
  1668. e && (e.next = n), n && (n.prev = e);
  1669. }),
  1670. (r.getIndex = function () {
  1671. for (var e = this, n = -1; e; ) (e = e.prev), ++n;
  1672. return n;
  1673. }),
  1674. t
  1675. );
  1676. })();
  1677. function ec(t, r) {
  1678. var e = [],
  1679. n = [];
  1680. return (
  1681. t.forEach(function (a) {
  1682. var i = a[0],
  1683. o = a[1],
  1684. s = new rc();
  1685. (e[i] = s), (n[o] = s);
  1686. }),
  1687. e.forEach(function (a, i) {
  1688. a.connect(e[i - 1]);
  1689. }),
  1690. t
  1691. .filter(function (a, i) {
  1692. return !r[i];
  1693. })
  1694. .map(function (a, i) {
  1695. var o = a[0],
  1696. s = a[1];
  1697. if (o === s) return [0, 0];
  1698. var u = e[o],
  1699. l = n[s - 1],
  1700. f = u.getIndex();
  1701. u.disconnect(), l ? u.connect(l, l.next) : u.connect(void 0, e[0]);
  1702. var c = u.getIndex();
  1703. return [f, c];
  1704. })
  1705. );
  1706. }
  1707. var nc = (function () {
  1708. function t(e, n, a, i, o, s, u, l) {
  1709. (this.prevList = e),
  1710. (this.list = n),
  1711. (this.added = a),
  1712. (this.removed = i),
  1713. (this.changed = o),
  1714. (this.maintained = s),
  1715. (this.changedBeforeAdded = u),
  1716. (this.fixed = l);
  1717. }
  1718. var r = t.prototype;
  1719. return (
  1720. Object.defineProperty(r, 'ordered', {
  1721. get: function () {
  1722. return this.cacheOrdered || this.caculateOrdered(), this.cacheOrdered;
  1723. },
  1724. enumerable: !0,
  1725. configurable: !0
  1726. }),
  1727. Object.defineProperty(r, 'pureChanged', {
  1728. get: function () {
  1729. return (
  1730. this.cachePureChanged || this.caculateOrdered(), this.cachePureChanged
  1731. );
  1732. },
  1733. enumerable: !0,
  1734. configurable: !0
  1735. }),
  1736. (r.caculateOrdered = function () {
  1737. var e = ec(this.changedBeforeAdded, this.fixed),
  1738. n = this.changed,
  1739. a = [];
  1740. (this.cacheOrdered = e.filter(function (i, o) {
  1741. var s = i[0],
  1742. u = i[1],
  1743. l = n[o],
  1744. f = l[0],
  1745. c = l[1];
  1746. if (s !== u) return a.push([f, c]), !0;
  1747. })),
  1748. (this.cachePureChanged = a);
  1749. }),
  1750. t
  1751. );
  1752. })();
  1753. function he(t, r, e) {
  1754. var n = tc ? Map : e ? $f : _f,
  1755. a =
  1756. e ||
  1757. function (m) {
  1758. return m;
  1759. },
  1760. i = [],
  1761. o = [],
  1762. s = [],
  1763. u = t.map(a),
  1764. l = r.map(a),
  1765. f = new n(),
  1766. c = new n(),
  1767. v = [],
  1768. p = [],
  1769. d = {},
  1770. g = [],
  1771. h = 0,
  1772. A = 0;
  1773. return (
  1774. u.forEach(function (m, E) {
  1775. f.set(m, E);
  1776. }),
  1777. l.forEach(function (m, E) {
  1778. c.set(m, E);
  1779. }),
  1780. u.forEach(function (m, E) {
  1781. var y = c.get(m);
  1782. typeof y > 'u' ? (++A, o.push(E)) : (d[y] = A);
  1783. }),
  1784. l.forEach(function (m, E) {
  1785. var y = f.get(m);
  1786. typeof y > 'u'
  1787. ? (i.push(E), ++h)
  1788. : (s.push([y, E]),
  1789. (A = d[E] || 0),
  1790. v.push([y - A, E - h]),
  1791. p.push(E === y),
  1792. y !== E && g.push([y, E]));
  1793. }),
  1794. o.reverse(),
  1795. new nc(t, r, i, o, g, s, v, p)
  1796. );
  1797. }
  1798. var ac = (function () {
  1799. function t(e, n) {
  1800. e === void 0 && (e = []),
  1801. (this.findKeyCallback = n),
  1802. (this.list = [].slice.call(e));
  1803. }
  1804. var r = t.prototype;
  1805. return (
  1806. (r.update = function (e) {
  1807. var n = [].slice.call(e),
  1808. a = he(this.list, n, this.findKeyCallback);
  1809. return (this.list = n), a;
  1810. }),
  1811. t
  1812. );
  1813. })(),
  1814. zn = function (t, r) {
  1815. return (
  1816. (zn =
  1817. Object.setPrototypeOf ||
  1818. ({ __proto__: [] } instanceof Array &&
  1819. function (e, n) {
  1820. e.__proto__ = n;
  1821. }) ||
  1822. function (e, n) {
  1823. for (var a in n)
  1824. Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
  1825. }),
  1826. zn(t, r)
  1827. );
  1828. };
  1829. function Ae(t, r) {
  1830. if (typeof r != 'function' && r !== null)
  1831. throw new TypeError(
  1832. 'Class extends value ' + String(r) + ' is not a constructor or null'
  1833. );
  1834. zn(t, r);
  1835. function e() {
  1836. this.constructor = t;
  1837. }
  1838. t.prototype =
  1839. r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
  1840. }
  1841. var er = function () {
  1842. return (
  1843. (er =
  1844. Object.assign ||
  1845. function (r) {
  1846. for (var e, n = 1, a = arguments.length; n < a; n++) {
  1847. e = arguments[n];
  1848. for (var i in e)
  1849. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  1850. }
  1851. return r;
  1852. }),
  1853. er.apply(this, arguments)
  1854. );
  1855. };
  1856. function vo(t, r) {
  1857. var e = {};
  1858. for (var n in t)
  1859. Object.prototype.hasOwnProperty.call(t, n) &&
  1860. r.indexOf(n) < 0 &&
  1861. (e[n] = t[n]);
  1862. if (t != null && typeof Object.getOwnPropertySymbols == 'function')
  1863. for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
  1864. r.indexOf(n[a]) < 0 &&
  1865. Object.prototype.propertyIsEnumerable.call(t, n[a]) &&
  1866. (e[n[a]] = t[n[a]]);
  1867. return e;
  1868. }
  1869. function ci(t, r, e) {
  1870. if (e || arguments.length === 2)
  1871. for (var n = 0, a = r.length, i; n < a; n++)
  1872. (i || !(n in r)) &&
  1873. (i || (i = Array.prototype.slice.call(r, 0, n)), (i[n] = r[n]));
  1874. return t.concat(i || Array.prototype.slice.call(r));
  1875. }
  1876. function vi(t) {
  1877. var r = 0;
  1878. return t.map(function (e) {
  1879. return e == null ? '$compat'.concat(++r) : ''.concat(e);
  1880. });
  1881. }
  1882. function po(t) {
  1883. var r = [];
  1884. return (
  1885. t.forEach(function (e) {
  1886. r = r.concat(Rt(e) ? po(e) : e);
  1887. }),
  1888. r
  1889. );
  1890. }
  1891. function yn(t, r) {
  1892. if (!r) return t;
  1893. for (var e in r) nn(t[e]) && (t[e] = r[e]);
  1894. return t;
  1895. }
  1896. function Ve(t, r) {
  1897. if (t === r) return !1;
  1898. for (var e in t) if (!(e in r)) return !0;
  1899. for (var e in r) if (t[e] !== r[e]) return !0;
  1900. return !1;
  1901. }
  1902. function pi(t) {
  1903. var r = t.className,
  1904. e = vo(t, ['className']);
  1905. return r != null && (e.class = r), delete e.style, delete e.children, e;
  1906. }
  1907. function di(t) {
  1908. var r = {},
  1909. e = {};
  1910. for (var n in t) n.indexOf('on') === 0 ? (e[n] = t[n]) : (r[n] = t[n]);
  1911. return [r, e];
  1912. }
  1913. function an(t) {
  1914. if (!t) return null;
  1915. var r = t.b;
  1916. return jr(r) ? r : an(t.c);
  1917. }
  1918. function go(t) {
  1919. var r = t.parentNode;
  1920. r && r.removeChild(t);
  1921. }
  1922. function ho(t) {
  1923. t.forEach(function (r) {
  1924. r();
  1925. });
  1926. }
  1927. function ic() {
  1928. return this.constructor(this.props, this.context);
  1929. }
  1930. var Sa = 0,
  1931. on = (function () {
  1932. function t(e, n, a, i, o, s, u) {
  1933. u === void 0 && (u = {}),
  1934. (this.t = e),
  1935. (this.d = n),
  1936. (this.k = a),
  1937. (this.i = i),
  1938. (this.c = o),
  1939. (this.ref = s),
  1940. (this.ps = u),
  1941. (this.typ = 'prov'),
  1942. (this._ps = []),
  1943. (this._cs = {}),
  1944. (this._hyd = null),
  1945. (this._sel = !1);
  1946. }
  1947. var r = t.prototype;
  1948. return (
  1949. (r.s = function () {
  1950. return !0;
  1951. }),
  1952. (r.u = function (e, n, a, i, o) {
  1953. var s = this,
  1954. u = s.d,
  1955. l = qf(n).filter(function (d) {
  1956. return d.$_req;
  1957. }),
  1958. f = po(
  1959. l.map(function (d) {
  1960. return d.$_subs;
  1961. })
  1962. ),
  1963. c = Kt(f, function (d) {
  1964. return d.d === u;
  1965. });
  1966. if (s.b && !Wt(a) && !o && !s.s(a.props, i) && !c) {
  1967. var v = f.reduce(function (d, g) {
  1968. var h = g.d;
  1969. return d[0] ? d[0].d === h && d.push(g) : h > u && d.push(g), d;
  1970. }, []);
  1971. return (
  1972. v.forEach(function (d) {
  1973. me(d, d._ps, [d.o], e, n, !0);
  1974. }),
  1975. !1
  1976. );
  1977. }
  1978. (s.o = a), s.ss(i);
  1979. var p = s.ps;
  1980. return (
  1981. Wt(a) || ((s.ps = a.props), (s.ref = a.ref)),
  1982. Ca(this),
  1983. s.r(e, n, s.b ? p : {}, i),
  1984. !0
  1985. );
  1986. }),
  1987. (r.md = function () {
  1988. this.rr();
  1989. }),
  1990. (r.ss = function () {}),
  1991. (r.ud = function () {
  1992. this.rr();
  1993. }),
  1994. (r.rr = function () {
  1995. var e = this,
  1996. n = e.ref,
  1997. a = e.fr;
  1998. n && n(a ? a.current : e.b);
  1999. }),
  2000. t
  2001. );
  2002. })();
  2003. function Ao() {
  2004. return Object.__CROACT_CURRENT_INSTNACE__;
  2005. }
  2006. function oc() {
  2007. return Sa;
  2008. }
  2009. function sc(t) {
  2010. Sa = t;
  2011. }
  2012. function Ca(t) {
  2013. return (Object.__CROACT_CURRENT_INSTNACE__ = t), (Sa = 0), t;
  2014. }
  2015. var Ea = (function () {
  2016. function t(e, n) {
  2017. e === void 0 && (e = {}),
  2018. (this.props = e),
  2019. (this.context = n),
  2020. (this.state = {}),
  2021. (this.$_timer = 0),
  2022. (this.$_state = {}),
  2023. (this.$_subs = []),
  2024. (this.$_cs = {});
  2025. }
  2026. var r = t.prototype;
  2027. return (
  2028. (r.render = function () {
  2029. return null;
  2030. }),
  2031. (r.shouldComponentUpdate = function (e, n) {
  2032. return this.props !== e || this.state !== n;
  2033. }),
  2034. (r.setState = function (e, n, a) {
  2035. var i = this;
  2036. i.$_timer || (i.$_state = {}),
  2037. clearTimeout(i.$_timer),
  2038. (i.$_timer = 0),
  2039. (i.$_state = er(er({}, i.$_state), e)),
  2040. a
  2041. ? i.$_setState(n, a)
  2042. : (i.$_timer = window.setTimeout(function () {
  2043. (i.$_timer = 0), i.$_setState(n, a);
  2044. }));
  2045. }),
  2046. (r.forceUpdate = function (e) {
  2047. this.setState({}, e, !0);
  2048. }),
  2049. (r.componentDidMount = function () {}),
  2050. (r.componentDidUpdate = function (e, n) {}),
  2051. (r.componentWillUnmount = function () {}),
  2052. (r.$_setState = function (e, n) {
  2053. var a = [],
  2054. i = this.$_p,
  2055. o = me(
  2056. i.c,
  2057. [i],
  2058. [i.o],
  2059. a,
  2060. i._cs,
  2061. er(er({}, this.state), this.$_state),
  2062. n
  2063. );
  2064. o && (e && a.push(e), ho(a), Ca(null));
  2065. }),
  2066. t
  2067. );
  2068. })(),
  2069. mo = (function (t) {
  2070. Ae(r, t);
  2071. function r() {
  2072. return (t !== null && t.apply(this, arguments)) || this;
  2073. }
  2074. var e = r.prototype;
  2075. return (
  2076. (e.shouldComponentUpdate = function (n, a) {
  2077. return Ve(this.props, n) || Ve(this.state, a);
  2078. }),
  2079. r
  2080. );
  2081. })(Ea);
  2082. function So(t) {
  2083. var r = function (e) {
  2084. r.current = e;
  2085. };
  2086. return (r.current = t), r;
  2087. }
  2088. function uc(t) {
  2089. return (t._fr = !0), t;
  2090. }
  2091. function lc(t, r, e, n) {
  2092. var a, i;
  2093. return (
  2094. !((a = t == null ? void 0 : t.prototype) === null || a === void 0) &&
  2095. a.render
  2096. ? (i = new t(r, e))
  2097. : ((i = new Ea(r, e)),
  2098. (i.constructor = t),
  2099. t._fr
  2100. ? ((n.fr = So()),
  2101. (i.render = function () {
  2102. return this.constructor(this.props, n.fr);
  2103. }))
  2104. : (i.render = ic)),
  2105. (i.$_p = n),
  2106. i
  2107. );
  2108. }
  2109. var fc = (function (t) {
  2110. Ae(r, t);
  2111. function r(n, a, i, o, s, u, l) {
  2112. l === void 0 && (l = {});
  2113. var f = t.call(this, n, a, i, o, s, u, yn(l, n.defaultProps)) || this;
  2114. return (f.typ = 'comp'), (f._usefs = []), (f._uefs = []), (f._defs = []), f;
  2115. }
  2116. var e = r.prototype;
  2117. return (
  2118. (e.s = function (n, a) {
  2119. var i = this.b;
  2120. return (
  2121. i.shouldComponentUpdate(yn(n, this.t.defaultProps), a || i.state) !== !1
  2122. );
  2123. }),
  2124. (e.r = function (n, a, i) {
  2125. var o,
  2126. s,
  2127. u = this,
  2128. l = u.t;
  2129. u.ps = yn(u.ps, u.t.defaultProps);
  2130. var f = u.ps,
  2131. c = !u.b,
  2132. v = l.contextType,
  2133. p = u.b,
  2134. d = v == null ? void 0 : v.get(u);
  2135. (u._cs = a),
  2136. c
  2137. ? ((p = lc(l, f, d, u)), (u.b = p))
  2138. : ((p.props = f), (p.context = d));
  2139. var g = p.state;
  2140. (u._usefs = []), (u._uefs = []);
  2141. var h = p.render();
  2142. ((s =
  2143. (o = h == null ? void 0 : h.props) === null || o === void 0
  2144. ? void 0
  2145. : o.children) === null || s === void 0
  2146. ? void 0
  2147. : s.length) === 0 && (h.props.children = u.ps.children);
  2148. var A = er(er({}, a), p.$_cs);
  2149. me(u, u._ps, h ? [h] : [], n, A),
  2150. c
  2151. ? u._uefs.push(function () {
  2152. v == null || v.register(u), p.componentDidMount();
  2153. })
  2154. : u._uefs.push(function () {
  2155. p.componentDidUpdate(i, g);
  2156. }),
  2157. n.push(function () {
  2158. u._usefs.forEach(function (m) {
  2159. m();
  2160. }),
  2161. c ? u.md() : u.ud(),
  2162. (u._defs = u._uefs.map(function (m) {
  2163. return m();
  2164. }));
  2165. });
  2166. }),
  2167. (e.ss = function (n) {
  2168. var a = this.b;
  2169. !a || !n || (a.state = n);
  2170. }),
  2171. (e.un = function () {
  2172. var n,
  2173. a = this;
  2174. a._ps.forEach(function (o) {
  2175. o.un();
  2176. });
  2177. var i = a.t;
  2178. (n = i.contextType) === null || n === void 0 || n.unregister(a),
  2179. clearTimeout(a.b.$_timer),
  2180. a._defs.forEach(function (o) {
  2181. o && o();
  2182. }),
  2183. a.b.componentWillUnmount();
  2184. }),
  2185. r
  2186. );
  2187. })(on);
  2188. function cc(t, r, e) {
  2189. var n = ya(pi(t), pi(r)),
  2190. a = n.added,
  2191. i = n.removed,
  2192. o = n.changed;
  2193. for (var s in a) e.setAttribute(s, a[s]);
  2194. for (var u in o) e.setAttribute(u, o[u][1]);
  2195. for (var l in i) e.removeAttribute(l);
  2196. }
  2197. function vc(t, r, e) {
  2198. var n = ya(t, r),
  2199. a = n.added,
  2200. i = n.removed;
  2201. for (var o in i) e.e(o, !0);
  2202. for (var s in a) e.e(s);
  2203. }
  2204. function ya(t, r) {
  2205. var e = fr(t),
  2206. n = fr(r),
  2207. a = he(e, n, function (u) {
  2208. return u;
  2209. }),
  2210. i = {},
  2211. o = {},
  2212. s = {};
  2213. return (
  2214. a.added.forEach(function (u) {
  2215. var l = n[u];
  2216. i[l] = r[l];
  2217. }),
  2218. a.removed.forEach(function (u) {
  2219. var l = e[u];
  2220. o[l] = t[l];
  2221. }),
  2222. a.maintained.forEach(function (u) {
  2223. var l = u[0],
  2224. f = e[l],
  2225. c = [t[f], r[f]];
  2226. t[f] !== r[f] && (s[f] = c);
  2227. }),
  2228. { added: i, removed: o, changed: s }
  2229. );
  2230. }
  2231. function pc(t, r, e) {
  2232. var n = e.style,
  2233. a = ya(t, r),
  2234. i = a.added,
  2235. o = a.removed,
  2236. s = a.changed;
  2237. for (var u in i) {
  2238. var l = Le(u, '-');
  2239. n.setProperty(l, i[u]);
  2240. }
  2241. for (var u in s) {
  2242. var f = Le(u, '-');
  2243. n.setProperty(f, s[u][1]);
  2244. }
  2245. for (var u in o) {
  2246. var c = Le(u, '-');
  2247. n.removeProperty(c);
  2248. }
  2249. }
  2250. function dc(t) {
  2251. return t.replace(/^on/g, '').toLowerCase();
  2252. }
  2253. var gc = (function (t) {
  2254. Ae(r, t);
  2255. function r() {
  2256. var n = (t !== null && t.apply(this, arguments)) || this;
  2257. return (n.typ = 'elem'), (n._es = {}), (n._svg = !1), n;
  2258. }
  2259. var e = r.prototype;
  2260. return (
  2261. (e.e = function (n, a) {
  2262. var i = this,
  2263. o = i._es,
  2264. s = i.b,
  2265. u = dc(n);
  2266. a
  2267. ? (Mt(s, u, o[n]), delete o[n])
  2268. : ((o[n] = function (l) {
  2269. var f, c;
  2270. (c = (f = i.ps)[n]) === null || c === void 0 || c.call(f, l);
  2271. }),
  2272. Pt(s, u, o[n]));
  2273. }),
  2274. (e.s = function (n) {
  2275. return Ve(this.ps, n);
  2276. }),
  2277. (e.r = function (n, a, i) {
  2278. var o,
  2279. s = this,
  2280. u = !s.b,
  2281. l = s.ps;
  2282. if (u) {
  2283. var f = an(s.c),
  2284. c = !1;
  2285. s._svg || s.t === 'svg' ? (c = !0) : (c = f && f.ownerSVGElement),
  2286. (s._svg = c);
  2287. var v =
  2288. (o = s._hyd) === null || o === void 0 ? void 0 : o.splice(0, 1)[0],
  2289. p = s.t;
  2290. if (v) s._hyd = [].slice.call(v.children || []);
  2291. else {
  2292. var d = Jr(f);
  2293. c
  2294. ? (v = d.createElementNS('http://www.w3.org/2000/svg', p))
  2295. : (v = d.createElement(p));
  2296. }
  2297. s.b = v;
  2298. }
  2299. me(s, s._ps, l.children, n, a);
  2300. var g = s.b,
  2301. h = di(i),
  2302. A = h[0],
  2303. m = h[1],
  2304. E = di(l),
  2305. y = E[0],
  2306. b = E[1];
  2307. return (
  2308. cc(A, y, g),
  2309. vc(m, b, s),
  2310. pc(i.style || {}, l.style || {}, g),
  2311. n.push(function () {
  2312. u ? s.md() : s.ud();
  2313. }),
  2314. !0
  2315. );
  2316. }),
  2317. (e.un = function () {
  2318. var n = this,
  2319. a = n._es,
  2320. i = n.b;
  2321. for (var o in a) Mt(i, o, a[o]);
  2322. n._ps.forEach(function (s) {
  2323. s.un();
  2324. }),
  2325. (n._es = {}),
  2326. n._sel || go(i);
  2327. }),
  2328. r
  2329. );
  2330. })(on);
  2331. function ce(t) {
  2332. if (!t || jr(t)) return t;
  2333. var r = t.$_p._ps;
  2334. return r.length ? ce(r[0].b) : null;
  2335. }
  2336. function Co(t) {
  2337. if (t) {
  2338. if (t.b && jr(t.b)) return t;
  2339. var r = t._ps;
  2340. return r.length ? Co(r[0]) : null;
  2341. }
  2342. }
  2343. function _t(t, r) {
  2344. for (var e = [], n = 2; n < arguments.length; n++) e[n - 2] = arguments[n];
  2345. var a = r || {},
  2346. i = a.key,
  2347. o = a.ref,
  2348. s = vo(a, ['key', 'ref']);
  2349. return {
  2350. type: t,
  2351. key: i,
  2352. ref: o,
  2353. props: er(er({}, s), {
  2354. children: Zf(e).filter(function (u) {
  2355. return u != null && u !== !1;
  2356. })
  2357. })
  2358. };
  2359. }
  2360. var Eo = (function (t) {
  2361. Ae(r, t);
  2362. function r(n, a) {
  2363. a === void 0 && (a = 0);
  2364. var i = t.call(this, 'container', a, 'container', 0, null) || this;
  2365. return (i.typ = 'container'), (i.b = n), i;
  2366. }
  2367. var e = r.prototype;
  2368. return (
  2369. (e.r = function () {
  2370. return !0;
  2371. }),
  2372. (e.un = function () {}),
  2373. r
  2374. );
  2375. })(on),
  2376. hc = (function (t) {
  2377. Ae(r, t);
  2378. function r() {
  2379. var n = (t !== null && t.apply(this, arguments)) || this;
  2380. return (n.typ = 'text'), n;
  2381. }
  2382. var e = r.prototype;
  2383. return (
  2384. (e.r = function (n) {
  2385. var a,
  2386. i = this,
  2387. o = !i.b;
  2388. if (o) {
  2389. var s = an(i.c),
  2390. u =
  2391. (a = i._hyd) === null || a === void 0
  2392. ? void 0
  2393. : a.splice(0, 1)[0];
  2394. i.b = u || Jr(s).createTextNode(i.t.replace('text_', ''));
  2395. }
  2396. return (
  2397. n.push(function () {
  2398. o ? i.md() : i.ud();
  2399. }),
  2400. !0
  2401. );
  2402. }),
  2403. (e.un = function () {
  2404. go(this.b);
  2405. }),
  2406. r
  2407. );
  2408. })(on);
  2409. function Ac(t, r, e) {
  2410. var n = e.map(function (u) {
  2411. return Wt(u) ? null : u.key;
  2412. }),
  2413. a = vi(
  2414. r.map(function (u) {
  2415. return u.k;
  2416. })
  2417. ),
  2418. i = vi(n),
  2419. o = he(a, i, function (u) {
  2420. return u;
  2421. });
  2422. o.removed.forEach(function (u) {
  2423. r.splice(u, 1)[0].un();
  2424. }),
  2425. o.ordered.forEach(function (u) {
  2426. var l = u[0],
  2427. f = u[1],
  2428. c = r.splice(l, 1)[0];
  2429. r.splice(f, 0, c);
  2430. var v = ce(c.b),
  2431. p = ce(r[f + 1] && r[f + 1].b);
  2432. v && v.parentNode.insertBefore(v, p);
  2433. }),
  2434. o.added.forEach(function (u) {
  2435. r.splice(u, 0, gi(e[u], n[u], u, t));
  2436. });
  2437. var s = o.maintained.filter(function (u) {
  2438. u[0];
  2439. var l = u[1],
  2440. f = e[l],
  2441. c = r[l],
  2442. v = Wt(f) ? 'text_'.concat(f) : f.type;
  2443. return v !== c.t
  2444. ? (c.un(), r.splice(l, 1, gi(f, n[l], l, t)), !0)
  2445. : ((c.i = l), !1);
  2446. });
  2447. return ci(
  2448. ci([], o.added, !0),
  2449. s.map(function (u) {
  2450. u[0];
  2451. var l = u[1];
  2452. return l;
  2453. }),
  2454. !0
  2455. );
  2456. }
  2457. function mc(t, r) {
  2458. for (var e = t._ps, n = e.length, a = r.i + 1; a < n; ++a) {
  2459. var i = ce(e[a].b);
  2460. if (i) return i;
  2461. }
  2462. return null;
  2463. }
  2464. function gi(t, r, e, n) {
  2465. var a = n.d + 1;
  2466. if (Wt(t) || Ur(t)) return new hc('text_'.concat(t), a, r, e, n, null, {});
  2467. var i = t.type,
  2468. o = typeof i == 'string' ? gc : fc;
  2469. return new o(i, a, r, e, n, t.ref, t.props);
  2470. }
  2471. function me(t, r, e, n, a, i, o) {
  2472. var s = Ac(t, r, e),
  2473. u = t._hyd,
  2474. l = r.filter(function (c, v) {
  2475. return (c._hyd = u), c.u(n, a, e[v], i, o);
  2476. });
  2477. t.typ === 'container' &&
  2478. t._sel &&
  2479. r.forEach(function (c) {
  2480. var v = Co(c);
  2481. v && (v._sel = !0);
  2482. }),
  2483. (t._hyd = null);
  2484. var f = an(t);
  2485. return (
  2486. f &&
  2487. s.reverse().forEach(function (c) {
  2488. var v = r[c],
  2489. p = ce(v.b);
  2490. if (p && f !== p && !p.parentNode) {
  2491. var d = mc(t, v);
  2492. f.insertBefore(p, d);
  2493. }
  2494. }),
  2495. l.length > 0
  2496. );
  2497. }
  2498. function Sc(t, r, e, n) {
  2499. e === void 0 && (e = r.__CROACT__), n === void 0 && (n = {});
  2500. var a = !!e;
  2501. e || (e = new Eo(r));
  2502. var i = [];
  2503. return (
  2504. me(e, e._ps, t ? [t] : [], i, n, void 0, void 0),
  2505. ho(i),
  2506. Ca(null),
  2507. a || (r.__CROACT__ = e),
  2508. e
  2509. );
  2510. }
  2511. function hi(t, r, e) {
  2512. return (
  2513. !e && t && ((e = new Eo(r.parentElement)), (e._hyd = [r]), (e._sel = !0)),
  2514. Sc(t, r, e),
  2515. e
  2516. );
  2517. }
  2518. function yo(t) {
  2519. var r = Ao(),
  2520. e = r._hs || (r._hs = []),
  2521. n = oc(),
  2522. a = e[n];
  2523. if ((sc(n + 1), a)) {
  2524. if (!Ve(a.deps, t.deps)) return (a.updated = !1), a;
  2525. e[n] = t;
  2526. } else e.push(t);
  2527. return (t.value = t.func()), (t.updated = !0), t;
  2528. }
  2529. function Cc(t, r) {
  2530. var e = yo({ func: t, deps: r });
  2531. return e.value;
  2532. }
  2533. function Ec(t) {
  2534. return Cc(function () {
  2535. return So(t);
  2536. }, []);
  2537. }
  2538. function Do(t, r, e) {
  2539. var n = Ao(),
  2540. a = yo({
  2541. func: function () {
  2542. return t;
  2543. },
  2544. deps: r
  2545. }),
  2546. i = e ? n._usefs : n._uefs;
  2547. a.updated
  2548. ? i.push(function () {
  2549. return a.effect && a.effect(), (a.effect = t()), a.effect;
  2550. })
  2551. : i.push(function () {
  2552. return a.effect;
  2553. });
  2554. }
  2555. function yc(t, r, e) {
  2556. Do(
  2557. function () {
  2558. t == null || t(r());
  2559. },
  2560. e,
  2561. !0
  2562. );
  2563. }
  2564. function Da(t, r) {
  2565. for (var e = t.length, n = 0; n < e; ++n) if (r(t[n], n)) return !0;
  2566. return !1;
  2567. }
  2568. function bo(t, r) {
  2569. for (var e = t.length, n = 0; n < e; ++n) if (r(t[n], n)) return t[n];
  2570. return null;
  2571. }
  2572. function xo(t) {
  2573. var r = t;
  2574. if (typeof r > 'u') {
  2575. if (typeof navigator > 'u' || !navigator) return '';
  2576. r = navigator.userAgent || '';
  2577. }
  2578. return r.toLowerCase();
  2579. }
  2580. function ba(t, r) {
  2581. try {
  2582. return new RegExp(t, 'g').exec(r);
  2583. } catch (e) {
  2584. return null;
  2585. }
  2586. }
  2587. function Dc() {
  2588. if (typeof navigator > 'u' || !navigator || !navigator.userAgentData)
  2589. return !1;
  2590. var t = navigator.userAgentData,
  2591. r = t.brands || t.uaList;
  2592. return !!(r && r.length);
  2593. }
  2594. function bc(t, r) {
  2595. var e = ba('(' + t + ')((?:\\/|\\s|:)([0-9|\\.|_]+))', r);
  2596. return e ? e[3] : '';
  2597. }
  2598. function Hn(t) {
  2599. return t.replace(/_/g, '.');
  2600. }
  2601. function re(t, r) {
  2602. var e = null,
  2603. n = '-1';
  2604. return (
  2605. Da(t, function (a) {
  2606. var i = ba('(' + a.test + ')((?:\\/|\\s|:)([0-9|\\.|_]+))?', r);
  2607. return !i || a.brand
  2608. ? !1
  2609. : ((e = a),
  2610. (n = i[3] || '-1'),
  2611. a.versionAlias
  2612. ? (n = a.versionAlias)
  2613. : a.versionTest && (n = bc(a.versionTest.toLowerCase(), r) || n),
  2614. (n = Hn(n)),
  2615. !0);
  2616. }),
  2617. { preset: e, version: n }
  2618. );
  2619. }
  2620. function te(t, r) {
  2621. var e = { brand: '', version: '-1' };
  2622. return (
  2623. Da(t, function (n) {
  2624. var a = wo(r, n);
  2625. return a
  2626. ? ((e.brand = n.id),
  2627. (e.version = n.versionAlias || a.version),
  2628. e.version !== '-1')
  2629. : !1;
  2630. }),
  2631. e
  2632. );
  2633. }
  2634. function wo(t, r) {
  2635. return bo(t, function (e) {
  2636. var n = e.brand;
  2637. return ba('' + r.test, n.toLowerCase());
  2638. });
  2639. }
  2640. var Ln = [
  2641. { test: 'phantomjs', id: 'phantomjs' },
  2642. { test: 'whale', id: 'whale' },
  2643. { test: 'edgios|edge|edg', id: 'edge' },
  2644. {
  2645. test: 'msie|trident|windows phone',
  2646. id: 'ie',
  2647. versionTest: 'iemobile|msie|rv'
  2648. },
  2649. { test: 'miuibrowser', id: 'miui browser' },
  2650. { test: 'samsungbrowser', id: 'samsung internet' },
  2651. { test: 'samsung', id: 'samsung internet', versionTest: 'version' },
  2652. { test: 'chrome|crios', id: 'chrome' },
  2653. { test: 'firefox|fxios', id: 'firefox' },
  2654. { test: 'android', id: 'android browser', versionTest: 'version' },
  2655. { test: 'safari|iphone|ipad|ipod', id: 'safari', versionTest: 'version' }
  2656. ],
  2657. Ro = [
  2658. {
  2659. test: '(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)',
  2660. id: 'chrome',
  2661. versionTest: 'chrome'
  2662. },
  2663. { test: 'chromium', id: 'chrome' },
  2664. { test: 'whale', id: 'chrome', versionAlias: '-1', brand: !0 }
  2665. ],
  2666. Un = [
  2667. { test: 'applewebkit', id: 'webkit', versionTest: 'applewebkit|safari' }
  2668. ],
  2669. Bo = [
  2670. { test: '(?=(iphone|ipad))(?!(.*version))', id: 'webview' },
  2671. { test: '(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))', id: 'webview' },
  2672. { test: 'webview', id: 'webview' }
  2673. ],
  2674. Mo = [
  2675. { test: 'windows phone', id: 'windows phone' },
  2676. { test: 'windows 2000', id: 'window', versionAlias: '5.0' },
  2677. { test: 'windows nt', id: 'window' },
  2678. { test: 'win32|windows', id: 'window' },
  2679. { test: 'iphone|ipad|ipod', id: 'ios', versionTest: 'iphone os|cpu os' },
  2680. { test: 'macos|macintel|mac os x', id: 'mac' },
  2681. { test: 'android|linux armv81', id: 'android' },
  2682. { test: 'tizen', id: 'tizen' },
  2683. { test: 'webos|web0s', id: 'webos' }
  2684. ];
  2685. function Io(t) {
  2686. return !!re(Bo, t).preset;
  2687. }
  2688. function xc(t) {
  2689. var r = xo(t),
  2690. e = !!/mobi/g.exec(r),
  2691. n = {
  2692. name: 'unknown',
  2693. version: '-1',
  2694. majorVersion: -1,
  2695. webview: Io(r),
  2696. chromium: !1,
  2697. chromiumVersion: '-1',
  2698. webkit: !1,
  2699. webkitVersion: '-1'
  2700. },
  2701. a = { name: 'unknown', version: '-1', majorVersion: -1 },
  2702. i = re(Ln, r),
  2703. o = i.preset,
  2704. s = i.version,
  2705. u = re(Mo, r),
  2706. l = u.preset,
  2707. f = u.version,
  2708. c = re(Ro, r);
  2709. if (
  2710. ((n.chromium = !!c.preset), (n.chromiumVersion = c.version), !n.chromium)
  2711. ) {
  2712. var v = re(Un, r);
  2713. (n.webkit = !!v.preset), (n.webkitVersion = v.version);
  2714. }
  2715. return (
  2716. l && ((a.name = l.id), (a.version = f), (a.majorVersion = parseInt(f, 10))),
  2717. o &&
  2718. ((n.name = o.id),
  2719. (n.version = s),
  2720. n.webview && a.name === 'ios' && n.name !== 'safari' && (n.webview = !1)),
  2721. (n.majorVersion = parseInt(n.version, 10)),
  2722. { browser: n, os: a, isMobile: e, isHints: !1 }
  2723. );
  2724. }
  2725. function wc(t) {
  2726. var r = navigator.userAgentData,
  2727. e = (r.uaList || r.brands).slice(),
  2728. n = t && t.fullVersionList,
  2729. a = r.mobile || !1,
  2730. i = e[0],
  2731. o = ((t && t.platform) || r.platform || navigator.platform).toLowerCase(),
  2732. s = {
  2733. name: i.brand,
  2734. version: i.version,
  2735. majorVersion: -1,
  2736. webkit: !1,
  2737. webkitVersion: '-1',
  2738. chromium: !1,
  2739. chromiumVersion: '-1',
  2740. webview: !!te(Bo, e).brand || Io(xo())
  2741. },
  2742. u = { name: 'unknown', version: '-1', majorVersion: -1 };
  2743. s.webkit =
  2744. !s.chromium &&
  2745. Da(Un, function (d) {
  2746. return wo(e, d);
  2747. });
  2748. var l = te(Ro, e);
  2749. if (
  2750. ((s.chromium = !!l.brand), (s.chromiumVersion = l.version), !s.chromium)
  2751. ) {
  2752. var f = te(Un, e);
  2753. (s.webkit = !!f.brand), (s.webkitVersion = f.version);
  2754. }
  2755. var c = bo(Mo, function (d) {
  2756. return new RegExp('' + d.test, 'g').exec(o);
  2757. });
  2758. if (
  2759. ((u.name = c ? c.id : ''),
  2760. t && (u.version = t.platformVersion),
  2761. n && n.length)
  2762. ) {
  2763. var v = te(Ln, n);
  2764. (s.name = v.brand || s.name), (s.version = v.version || s.version);
  2765. } else {
  2766. var p = te(Ln, e);
  2767. (s.name = p.brand || s.name),
  2768. (s.version = p.brand && t ? t.uaFullVersion : p.version);
  2769. }
  2770. return (
  2771. s.webkit && (u.name = a ? 'ios' : 'mac'),
  2772. u.name === 'ios' && s.webview && (s.version = '-1'),
  2773. (u.version = Hn(u.version)),
  2774. (s.version = Hn(s.version)),
  2775. (u.majorVersion = parseInt(u.version, 10)),
  2776. (s.majorVersion = parseInt(s.version, 10)),
  2777. { browser: s, os: u, isMobile: a, isHints: !0 }
  2778. );
  2779. }
  2780. function Rc(t) {
  2781. return typeof t > 'u' && Dc() ? wc() : xc(t);
  2782. }
  2783. function Bc(t, r, e, n, a, i) {
  2784. for (var o = 0; o < a; ++o) {
  2785. var s = e + o * a,
  2786. u = n + o * a;
  2787. (t[s] += t[u] * i), (r[s] += r[u] * i);
  2788. }
  2789. }
  2790. function Mc(t, r, e, n, a) {
  2791. for (var i = 0; i < a; ++i) {
  2792. var o = e + i * a,
  2793. s = n + i * a,
  2794. u = t[o],
  2795. l = r[o];
  2796. (t[o] = t[s]), (t[s] = u), (r[o] = r[s]), (r[s] = l);
  2797. }
  2798. }
  2799. function Ic(t, r, e, n, a) {
  2800. for (var i = 0; i < n; ++i) {
  2801. var o = e + i * n;
  2802. (t[o] /= a), (r[o] /= a);
  2803. }
  2804. }
  2805. function To(t, r, e) {
  2806. e === void 0 && (e = Math.sqrt(t.length));
  2807. for (var n = t.slice(), a = 0; a < e; ++a)
  2808. (n[a * e + r - 1] = 0), (n[(r - 1) * e + a] = 0);
  2809. return (n[(r - 1) * (e + 1)] = 1), n;
  2810. }
  2811. function ar(t, r) {
  2812. r === void 0 && (r = Math.sqrt(t.length));
  2813. for (var e = t.slice(), n = St(r), a = 0; a < r; ++a) {
  2814. var i = r * a + a;
  2815. if (!nt(e[i], wt)) {
  2816. for (var o = a + 1; o < r; ++o)
  2817. if (e[r * a + o]) {
  2818. Mc(e, n, a, o, r);
  2819. break;
  2820. }
  2821. }
  2822. if (!nt(e[i], wt)) return [];
  2823. Ic(e, n, a, r, e[i]);
  2824. for (var o = 0; o < r; ++o) {
  2825. var s = o,
  2826. u = o + a * r,
  2827. l = e[u];
  2828. !nt(l, wt) || a === o || Bc(e, n, s, a, r, -l);
  2829. }
  2830. }
  2831. return n;
  2832. }
  2833. function Tc(t, r) {
  2834. r === void 0 && (r = Math.sqrt(t.length));
  2835. for (var e = [], n = 0; n < r; ++n)
  2836. for (var a = 0; a < r; ++a) e[a * r + n] = t[r * n + a];
  2837. return e;
  2838. }
  2839. function Oo(t, r) {
  2840. r === void 0 && (r = Math.sqrt(t.length));
  2841. for (var e = [], n = t[r * r - 1], a = 0; a < r - 1; ++a)
  2842. e[a] = t[r * (r - 1) + a] / n;
  2843. return (e[r - 1] = 0), e;
  2844. }
  2845. function Oc(t, r) {
  2846. for (var e = St(r), n = 0; n < r - 1; ++n) e[r * (r - 1) + n] = t[n] || 0;
  2847. return e;
  2848. }
  2849. function Mr(t, r) {
  2850. for (var e = t.slice(), n = t.length; n < r - 1; ++n) e[n] = 0;
  2851. return (e[r - 1] = 1), e;
  2852. }
  2853. function rr(t, r, e) {
  2854. if ((r === void 0 && (r = Math.sqrt(t.length)), r === e)) return t;
  2855. for (var n = St(e), a = Math.min(r, e), i = 0; i < a - 1; ++i) {
  2856. for (var o = 0; o < a - 1; ++o) n[i * e + o] = t[i * r + o];
  2857. (n[(i + 1) * e - 1] = t[(i + 1) * r - 1]),
  2858. (n[(e - 1) * e + i] = t[(r - 1) * r + i]);
  2859. }
  2860. return (n[e * e - 1] = t[r * r - 1]), n;
  2861. }
  2862. function We(t) {
  2863. for (var r = [], e = 1; e < arguments.length; e++) r[e - 1] = arguments[e];
  2864. var n = St(t);
  2865. return (
  2866. r.forEach(function (a) {
  2867. n = ht(n, a, t);
  2868. }),
  2869. n
  2870. );
  2871. }
  2872. function ht(t, r, e) {
  2873. e === void 0 && (e = Math.sqrt(t.length));
  2874. var n = [],
  2875. a = t.length / e,
  2876. i = r.length / a;
  2877. if (a) {
  2878. if (!i) return t;
  2879. } else return r;
  2880. for (var o = 0; o < e; ++o)
  2881. for (var s = 0; s < i; ++s) {
  2882. n[s * e + o] = 0;
  2883. for (var u = 0; u < a; ++u) n[s * e + o] += t[u * e + o] * r[s * a + u];
  2884. }
  2885. return n;
  2886. }
  2887. function ft(t, r) {
  2888. for (var e = Math.min(t.length, r.length), n = t.slice(), a = 0; a < e; ++a)
  2889. n[a] = n[a] + r[a];
  2890. return n;
  2891. }
  2892. function tt(t, r) {
  2893. for (var e = Math.min(t.length, r.length), n = t.slice(), a = 0; a < e; ++a)
  2894. n[a] = n[a] - r[a];
  2895. return n;
  2896. }
  2897. function Pc(t, r) {
  2898. return (
  2899. r === void 0 && (r = t.length === 6),
  2900. r ? [t[0], t[1], 0, t[2], t[3], 0, t[4], t[5], 1] : t
  2901. );
  2902. }
  2903. function Po(t, r) {
  2904. return (
  2905. r === void 0 && (r = t.length === 9),
  2906. r ? [t[0], t[1], t[3], t[4], t[6], t[7]] : t
  2907. );
  2908. }
  2909. function Nt(t, r, e) {
  2910. e === void 0 && (e = r.length);
  2911. var n = ht(t, r, e),
  2912. a = n[e - 1];
  2913. return n.map(function (i) {
  2914. return i / a;
  2915. });
  2916. }
  2917. function kc(t, r) {
  2918. return ht(
  2919. t,
  2920. [
  2921. 1,
  2922. 0,
  2923. 0,
  2924. 0,
  2925. 0,
  2926. Math.cos(r),
  2927. Math.sin(r),
  2928. 0,
  2929. 0,
  2930. -Math.sin(r),
  2931. Math.cos(r),
  2932. 0,
  2933. 0,
  2934. 0,
  2935. 0,
  2936. 1
  2937. ],
  2938. 4
  2939. );
  2940. }
  2941. function Gc(t, r) {
  2942. return ht(
  2943. t,
  2944. [
  2945. Math.cos(r),
  2946. 0,
  2947. -Math.sin(r),
  2948. 0,
  2949. 0,
  2950. 1,
  2951. 0,
  2952. 0,
  2953. Math.sin(r),
  2954. 0,
  2955. Math.cos(r),
  2956. 0,
  2957. 0,
  2958. 0,
  2959. 0,
  2960. 1
  2961. ],
  2962. 4
  2963. );
  2964. }
  2965. function Nc(t, r) {
  2966. return ht(t, Ce(r, 4));
  2967. }
  2968. function Re(t, r) {
  2969. var e = r[0],
  2970. n = e === void 0 ? 1 : e,
  2971. a = r[1],
  2972. i = a === void 0 ? 1 : a,
  2973. o = r[2],
  2974. s = o === void 0 ? 1 : o;
  2975. return ht(t, [n, 0, 0, 0, 0, i, 0, 0, 0, 0, s, 0, 0, 0, 0, 1], 4);
  2976. }
  2977. function Se(t, r) {
  2978. return Nt(Ce(r, 3), Mr(t, 3));
  2979. }
  2980. function Dn(t, r) {
  2981. var e = r[0],
  2982. n = e === void 0 ? 0 : e,
  2983. a = r[1],
  2984. i = a === void 0 ? 0 : a,
  2985. o = r[2],
  2986. s = o === void 0 ? 0 : o;
  2987. return ht(t, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, n, i, s, 1], 4);
  2988. }
  2989. function Ai(t, r) {
  2990. return ht(t, r, 4);
  2991. }
  2992. function Ce(t, r) {
  2993. var e = Math.cos(t),
  2994. n = Math.sin(t),
  2995. a = St(r);
  2996. return (a[0] = e), (a[1] = n), (a[r] = -n), (a[r + 1] = e), a;
  2997. }
  2998. function St(t) {
  2999. for (var r = t * t, e = [], n = 0; n < r; ++n) e[n] = n % (t + 1) ? 0 : 1;
  3000. return e;
  3001. }
  3002. function Ye(t, r) {
  3003. for (var e = St(r), n = Math.min(t.length, r - 1), a = 0; a < n; ++a)
  3004. e[(r + 1) * a] = t[a];
  3005. return e;
  3006. }
  3007. function Ir(t, r) {
  3008. for (var e = St(r), n = Math.min(t.length, r - 1), a = 0; a < n; ++a)
  3009. e[r * (r - 1) + a] = t[a];
  3010. return e;
  3011. }
  3012. function xa(t, r, e, n, a, i, o, s) {
  3013. var u = t[0],
  3014. l = t[1],
  3015. f = r[0],
  3016. c = r[1],
  3017. v = e[0],
  3018. p = e[1],
  3019. d = n[0],
  3020. g = n[1],
  3021. h = a[0],
  3022. A = a[1],
  3023. m = i[0],
  3024. E = i[1],
  3025. y = o[0],
  3026. b = o[1],
  3027. C = s[0],
  3028. S = s[1],
  3029. D = [
  3030. u,
  3031. 0,
  3032. f,
  3033. 0,
  3034. v,
  3035. 0,
  3036. d,
  3037. 0,
  3038. l,
  3039. 0,
  3040. c,
  3041. 0,
  3042. p,
  3043. 0,
  3044. g,
  3045. 0,
  3046. 1,
  3047. 0,
  3048. 1,
  3049. 0,
  3050. 1,
  3051. 0,
  3052. 1,
  3053. 0,
  3054. 0,
  3055. u,
  3056. 0,
  3057. f,
  3058. 0,
  3059. v,
  3060. 0,
  3061. d,
  3062. 0,
  3063. l,
  3064. 0,
  3065. c,
  3066. 0,
  3067. p,
  3068. 0,
  3069. g,
  3070. 0,
  3071. 1,
  3072. 0,
  3073. 1,
  3074. 0,
  3075. 1,
  3076. 0,
  3077. 1,
  3078. -h * u,
  3079. -A * u,
  3080. -m * f,
  3081. -E * f,
  3082. -y * v,
  3083. -b * v,
  3084. -C * d,
  3085. -S * d,
  3086. -h * l,
  3087. -A * l,
  3088. -m * c,
  3089. -E * c,
  3090. -y * p,
  3091. -b * p,
  3092. -C * g,
  3093. -S * g
  3094. ],
  3095. x = ar(D, 8);
  3096. if (!x.length) return [];
  3097. var w = ht(x, [h, A, m, E, y, b, C, S], 8);
  3098. return (w[8] = 1), rr(Tc(w), 3, 4);
  3099. }
  3100. var ae = function () {
  3101. return (
  3102. (ae =
  3103. Object.assign ||
  3104. function (r) {
  3105. for (var e, n = 1, a = arguments.length; n < a; n++) {
  3106. e = arguments[n];
  3107. for (var i in e)
  3108. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  3109. }
  3110. return r;
  3111. }),
  3112. ae.apply(this, arguments)
  3113. );
  3114. };
  3115. function Fc() {
  3116. return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
  3117. }
  3118. function Qe(t, r) {
  3119. return r === void 0 && (r = 0), Nr(Vr(t, r));
  3120. }
  3121. function zc(t, r) {
  3122. var e = Nt(t, [r[0], r[1] || 0, r[2] || 0, 1], 4),
  3123. n = e[3] || 1;
  3124. return [e[0] / n, e[1] / n, e[2] / n];
  3125. }
  3126. function Nr(t) {
  3127. var r = Fc();
  3128. return (
  3129. t.forEach(function (e) {
  3130. var n = e.matrixFunction,
  3131. a = e.functionValue;
  3132. n && (r = n(r, a));
  3133. }),
  3134. r
  3135. );
  3136. }
  3137. function Vr(t, r) {
  3138. r === void 0 && (r = 0);
  3139. var e = Rt(t) ? t : Ar(t);
  3140. return e.map(function (n) {
  3141. var a = io(n),
  3142. i = a.prefix,
  3143. o = a.value,
  3144. s = null,
  3145. u = i,
  3146. l = '';
  3147. if (i === 'translate' || i === 'translateX' || i === 'translate3d') {
  3148. var f = tr(r) ? ae(ae({}, r), { 'o%': r['%'] }) : { '%': r, 'o%': r },
  3149. c = Br(o).map(function (M, O) {
  3150. return (
  3151. O === 0 && 'x%' in f
  3152. ? (f['%'] = r['x%'])
  3153. : O === 1 && 'y%' in f
  3154. ? (f['%'] = r['y%'])
  3155. : (f['%'] = r['o%']),
  3156. gt(M, f)
  3157. );
  3158. }),
  3159. v = c[0],
  3160. p = c[1],
  3161. d = p === void 0 ? 0 : p,
  3162. g = c[2],
  3163. h = g === void 0 ? 0 : g;
  3164. (s = Dn), (l = [v, d, h]);
  3165. } else if (i === 'translateY') {
  3166. var A = tr(r) ? ae({ '%': r['y%'] }, r) : { '%': r },
  3167. d = gt(o, A);
  3168. (s = Dn), (l = [0, d, 0]);
  3169. } else if (i === 'translateZ') {
  3170. var h = parseFloat(o);
  3171. (s = Dn), (l = [0, 0, h]);
  3172. } else if (i === 'scale' || i === 'scale3d') {
  3173. var m = Br(o).map(function (M) {
  3174. return parseFloat(M);
  3175. }),
  3176. E = m[0],
  3177. y = m[1],
  3178. b = y === void 0 ? E : y,
  3179. C = m[2],
  3180. S = C === void 0 ? 1 : C;
  3181. (s = Re), (l = [E, b, S]);
  3182. } else if (i === 'scaleX') {
  3183. var E = parseFloat(o);
  3184. (s = Re), (l = [E, 1, 1]);
  3185. } else if (i === 'scaleY') {
  3186. var b = parseFloat(o);
  3187. (s = Re), (l = [1, b, 1]);
  3188. } else if (i === 'scaleZ') {
  3189. var S = parseFloat(o);
  3190. (s = Re), (l = [1, 1, S]);
  3191. } else if (
  3192. i === 'rotate' ||
  3193. i === 'rotateZ' ||
  3194. i === 'rotateX' ||
  3195. i === 'rotateY'
  3196. ) {
  3197. var D = ge(o),
  3198. x = D.unit,
  3199. w = D.value,
  3200. T = x === 'rad' ? w : (w * Math.PI) / 180;
  3201. i === 'rotate' || i === 'rotateZ'
  3202. ? ((u = 'rotateZ'), (s = Nc))
  3203. : i === 'rotateX'
  3204. ? (s = kc)
  3205. : i === 'rotateY' && (s = Gc),
  3206. (l = T);
  3207. } else if (i === 'matrix3d')
  3208. (s = Ai),
  3209. (l = Br(o).map(function (M) {
  3210. return parseFloat(M);
  3211. }));
  3212. else if (i === 'matrix') {
  3213. var I = Br(o).map(function (M) {
  3214. return parseFloat(M);
  3215. });
  3216. (s = Ai),
  3217. (l = [
  3218. I[0],
  3219. I[1],
  3220. 0,
  3221. 0,
  3222. I[2],
  3223. I[3],
  3224. 0,
  3225. 0,
  3226. 0,
  3227. 0,
  3228. 1,
  3229. 0,
  3230. I[4],
  3231. I[5],
  3232. 0,
  3233. 1
  3234. ]);
  3235. } else u = '';
  3236. return {
  3237. name: i,
  3238. functionName: u,
  3239. value: o,
  3240. matrixFunction: s,
  3241. functionValue: l
  3242. };
  3243. });
  3244. }
  3245. /*! *****************************************************************************
  3246. Copyright (c) Microsoft Corporation. All rights reserved.
  3247. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  3248. this file except in compliance with the License. You may obtain a copy of the
  3249. License at http://www.apache.org/licenses/LICENSE-2.0
  3250. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  3251. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  3252. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  3253. MERCHANTABLITY OR NON-INFRINGEMENT.
  3254. See the Apache Version 2.0 License for specific language governing permissions
  3255. and limitations under the License.
  3256. ***************************************************************************** */ var Vn =
  3257. function (t, r) {
  3258. return (
  3259. (Vn =
  3260. Object.setPrototypeOf ||
  3261. ({ __proto__: [] } instanceof Array &&
  3262. function (e, n) {
  3263. e.__proto__ = n;
  3264. }) ||
  3265. function (e, n) {
  3266. for (var a in n) n.hasOwnProperty(a) && (e[a] = n[a]);
  3267. }),
  3268. Vn(t, r)
  3269. );
  3270. };
  3271. function Hc(t, r) {
  3272. Vn(t, r);
  3273. function e() {
  3274. this.constructor = t;
  3275. }
  3276. t.prototype =
  3277. r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
  3278. }
  3279. var ko =
  3280. typeof Map == 'function'
  3281. ? void 0
  3282. : (function () {
  3283. var t = 0;
  3284. return function (r) {
  3285. return r.__DIFF_KEY__ || (r.__DIFF_KEY__ = ++t);
  3286. };
  3287. })(),
  3288. Lc = (function (t) {
  3289. Hc(r, t);
  3290. function r(e) {
  3291. return e === void 0 && (e = []), t.call(this, e, ko) || this;
  3292. }
  3293. return r;
  3294. })(ac);
  3295. function Uc(t, r) {
  3296. return he(t, r, ko);
  3297. }
  3298. const Go = Lc;
  3299. /*! *****************************************************************************
  3300. Copyright (c) Microsoft Corporation.
  3301. Permission to use, copy, modify, and/or distribute this software for any
  3302. purpose with or without fee is hereby granted.
  3303. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3304. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3305. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3306. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3307. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3308. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  3309. PERFORMANCE OF THIS SOFTWARE.
  3310. ***************************************************************************** */ var Wn =
  3311. function () {
  3312. return (
  3313. (Wn =
  3314. Object.assign ||
  3315. function (r) {
  3316. for (var e, n = 1, a = arguments.length; n < a; n++) {
  3317. e = arguments[n];
  3318. for (var i in e)
  3319. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  3320. }
  3321. return r;
  3322. }),
  3323. Wn.apply(this, arguments)
  3324. );
  3325. };
  3326. function Vc() {
  3327. for (var t = 0, r = 0, e = arguments.length; r < e; r++)
  3328. t += arguments[r].length;
  3329. for (var n = Array(t), a = 0, r = 0; r < e; r++)
  3330. for (var i = arguments[r], o = 0, s = i.length; o < s; o++, a++)
  3331. n[a] = i[o];
  3332. return n;
  3333. }
  3334. var Wc = (function () {
  3335. function t() {
  3336. this._events = {};
  3337. }
  3338. var r = t.prototype;
  3339. return (
  3340. (r.on = function (e, n) {
  3341. if (tr(e)) for (var a in e) this.on(a, e[a]);
  3342. else this._addEvent(e, n, {});
  3343. return this;
  3344. }),
  3345. (r.off = function (e, n) {
  3346. if (!e) this._events = {};
  3347. else if (tr(e)) for (var a in e) this.off(a);
  3348. else if (!n) this._events[e] = [];
  3349. else {
  3350. var i = this._events[e];
  3351. if (i) {
  3352. var o = lr(i, function (s) {
  3353. return s.listener === n;
  3354. });
  3355. o > -1 && i.splice(o, 1);
  3356. }
  3357. }
  3358. return this;
  3359. }),
  3360. (r.once = function (e, n) {
  3361. var a = this;
  3362. return (
  3363. n && this._addEvent(e, n, { once: !0 }),
  3364. new Promise(function (i) {
  3365. a._addEvent(e, i, { once: !0 });
  3366. })
  3367. );
  3368. }),
  3369. (r.emit = function (e, n) {
  3370. var a = this;
  3371. n === void 0 && (n = {});
  3372. var i = this._events[e];
  3373. if (!e || !i) return !0;
  3374. var o = !1;
  3375. return (
  3376. (n.eventType = e),
  3377. (n.stop = function () {
  3378. o = !0;
  3379. }),
  3380. (n.currentTarget = this),
  3381. Vc(i).forEach(function (s) {
  3382. s.listener(n), s.once && a.off(e, s.listener);
  3383. }),
  3384. !o
  3385. );
  3386. }),
  3387. (r.trigger = function (e, n) {
  3388. return n === void 0 && (n = {}), this.emit(e, n);
  3389. }),
  3390. (r._addEvent = function (e, n, a) {
  3391. var i = this._events;
  3392. i[e] = i[e] || [];
  3393. var o = i[e];
  3394. o.push(Wn({ listener: n }, a));
  3395. }),
  3396. t
  3397. );
  3398. })();
  3399. const sn = Wc;
  3400. /*! *****************************************************************************
  3401. Copyright (c) Microsoft Corporation.
  3402. Permission to use, copy, modify, and/or distribute this software for any
  3403. purpose with or without fee is hereby granted.
  3404. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3405. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3406. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3407. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3408. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3409. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  3410. PERFORMANCE OF THIS SOFTWARE.
  3411. ***************************************************************************** */ var Yn =
  3412. function (t, r) {
  3413. return (
  3414. (Yn =
  3415. Object.setPrototypeOf ||
  3416. ({ __proto__: [] } instanceof Array &&
  3417. function (e, n) {
  3418. e.__proto__ = n;
  3419. }) ||
  3420. function (e, n) {
  3421. for (var a in n) n.hasOwnProperty(a) && (e[a] = n[a]);
  3422. }),
  3423. Yn(t, r)
  3424. );
  3425. };
  3426. function Yc(t, r) {
  3427. Yn(t, r);
  3428. function e() {
  3429. this.constructor = t;
  3430. }
  3431. t.prototype =
  3432. r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
  3433. }
  3434. var Fr = function () {
  3435. return (
  3436. (Fr =
  3437. Object.assign ||
  3438. function (r) {
  3439. for (var e, n = 1, a = arguments.length; n < a; n++) {
  3440. e = arguments[n];
  3441. for (var i in e)
  3442. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  3443. }
  3444. return r;
  3445. }),
  3446. Fr.apply(this, arguments)
  3447. );
  3448. };
  3449. function Qc(t) {
  3450. var r = t.container;
  3451. return r === document.body
  3452. ? [
  3453. r.scrollLeft || document.documentElement.scrollLeft,
  3454. r.scrollTop || document.documentElement.scrollTop
  3455. ]
  3456. : [r.scrollLeft, r.scrollTop];
  3457. }
  3458. function mi(t, r) {
  3459. return (
  3460. t.addEventListener('scroll', r),
  3461. function () {
  3462. t.removeEventListener('scroll', r);
  3463. }
  3464. );
  3465. }
  3466. function Be(t) {
  3467. if (t) {
  3468. if (Wt(t)) return document.querySelector(t);
  3469. } else return null;
  3470. if (ga(t)) return t();
  3471. if (t instanceof Element) return t;
  3472. if ('current' in t) return t.current;
  3473. if ('value' in t) return t.value;
  3474. }
  3475. var Xc = (function (t) {
  3476. Yc(r, t);
  3477. function r() {
  3478. var n = (t !== null && t.apply(this, arguments)) || this;
  3479. return (
  3480. (n._startRect = null),
  3481. (n._startPos = []),
  3482. (n._prevTime = 0),
  3483. (n._timer = 0),
  3484. (n._prevScrollPos = [0, 0]),
  3485. (n._isWait = !1),
  3486. (n._flag = !1),
  3487. (n._currentOptions = null),
  3488. (n._lock = !1),
  3489. (n._unregister = null),
  3490. (n._onScroll = function () {
  3491. var a = n._currentOptions;
  3492. n._lock ||
  3493. !a ||
  3494. n.emit('scrollDrag', {
  3495. next: function (i) {
  3496. n.checkScroll({ container: a.container, inputEvent: i });
  3497. }
  3498. });
  3499. }),
  3500. n
  3501. );
  3502. }
  3503. var e = r.prototype;
  3504. return (
  3505. (e.dragStart = function (n, a) {
  3506. var i = Be(a.container);
  3507. if (!i) {
  3508. this._flag = !1;
  3509. return;
  3510. }
  3511. var o = 0,
  3512. s = 0,
  3513. u = 0,
  3514. l = 0;
  3515. if (i === document.body)
  3516. (u = window.innerWidth), (l = window.innerHeight);
  3517. else {
  3518. var f = i.getBoundingClientRect();
  3519. (o = f.top), (s = f.left), (u = f.width), (l = f.height);
  3520. }
  3521. (this._flag = !0),
  3522. (this._startPos = [n.clientX, n.clientY]),
  3523. (this._startRect = { top: o, left: s, width: u, height: l }),
  3524. (this._prevScrollPos = this._getScrollPosition([0, 0], a)),
  3525. (this._currentOptions = a),
  3526. this._registerScrollEvent(a);
  3527. }),
  3528. (e.drag = function (n, a) {
  3529. if ((clearTimeout(this._timer), !!this._flag)) {
  3530. var i = n.clientX,
  3531. o = n.clientY,
  3532. s = a.threshold,
  3533. u = s === void 0 ? 0 : s,
  3534. l = this,
  3535. f = l._startRect,
  3536. c = l._startPos;
  3537. this._currentOptions = a;
  3538. var v = [0, 0];
  3539. return (
  3540. f.top > o - u
  3541. ? (c[1] > f.top || o < c[1]) && (v[1] = -1)
  3542. : f.top + f.height < o + u &&
  3543. (c[1] < f.top + f.height || o > c[1]) &&
  3544. (v[1] = 1),
  3545. f.left > i - u
  3546. ? (c[0] > f.left || i < c[0]) && (v[0] = -1)
  3547. : f.left + f.width < i + u &&
  3548. (c[0] < f.left + f.width || i > c[0]) &&
  3549. (v[0] = 1),
  3550. !v[0] && !v[1]
  3551. ? !1
  3552. : this._continueDrag(
  3553. Fr(Fr({}, a), { direction: v, inputEvent: n, isDrag: !0 })
  3554. )
  3555. );
  3556. }
  3557. }),
  3558. (e.checkScroll = function (n) {
  3559. var a = this;
  3560. if (this._isWait) return !1;
  3561. var i = n.prevScrollPos,
  3562. o = i === void 0 ? this._prevScrollPos : i,
  3563. s = n.direction,
  3564. u = n.throttleTime,
  3565. l = u === void 0 ? 0 : u,
  3566. f = n.inputEvent,
  3567. c = n.isDrag,
  3568. v = this._getScrollPosition(s || [0, 0], n),
  3569. p = v[0] - o[0],
  3570. d = v[1] - o[1],
  3571. g = s || [p ? Math.abs(p) / p : 0, d ? Math.abs(d) / d : 0];
  3572. return (
  3573. (this._prevScrollPos = v),
  3574. (this._lock = !1),
  3575. !p && !d
  3576. ? !1
  3577. : (this.emit('move', {
  3578. offsetX: g[0] ? p : 0,
  3579. offsetY: g[1] ? d : 0,
  3580. inputEvent: f
  3581. }),
  3582. l &&
  3583. c &&
  3584. (clearTimeout(this._timer),
  3585. (this._timer = window.setTimeout(function () {
  3586. a._continueDrag(n);
  3587. }, l))),
  3588. !0)
  3589. );
  3590. }),
  3591. (e.dragEnd = function () {
  3592. (this._flag = !1),
  3593. (this._lock = !1),
  3594. clearTimeout(this._timer),
  3595. this._unregisterScrollEvent();
  3596. }),
  3597. (e._getScrollPosition = function (n, a) {
  3598. var i = a.container,
  3599. o = a.getScrollPosition,
  3600. s = o === void 0 ? Qc : o;
  3601. return s({ container: Be(i), direction: n });
  3602. }),
  3603. (e._continueDrag = function (n) {
  3604. var a = this,
  3605. i,
  3606. o = n.container,
  3607. s = n.direction,
  3608. u = n.throttleTime,
  3609. l = n.useScroll,
  3610. f = n.isDrag,
  3611. c = n.inputEvent;
  3612. if (!(!this._flag || (f && this._isWait))) {
  3613. var v = fe(),
  3614. p = Math.max(u + this._prevTime - v, 0);
  3615. if (p > 0)
  3616. return (
  3617. clearTimeout(this._timer),
  3618. (this._timer = window.setTimeout(function () {
  3619. a._continueDrag(n);
  3620. }, p)),
  3621. !1
  3622. );
  3623. this._prevTime = v;
  3624. var d = this._getScrollPosition(s, n);
  3625. (this._prevScrollPos = d),
  3626. f && (this._isWait = !0),
  3627. l || (this._lock = !0);
  3628. var g = { container: Be(o), direction: s, inputEvent: c };
  3629. return (
  3630. (i = n.requestScroll) === null || i === void 0 || i.call(n, g),
  3631. this.emit('scroll', g),
  3632. (this._isWait = !1),
  3633. l ||
  3634. this.checkScroll(
  3635. Fr(Fr({}, n), { prevScrollPos: d, direction: s, inputEvent: c })
  3636. )
  3637. );
  3638. }
  3639. }),
  3640. (e._registerScrollEvent = function (n) {
  3641. this._unregisterScrollEvent();
  3642. var a = n.checkScrollEvent;
  3643. if (a) {
  3644. var i = a === !0 ? mi : a,
  3645. o = Be(n.container);
  3646. a === !0 && (o === document.body || o === document.documentElement)
  3647. ? (this._unregister = mi(window, this._onScroll))
  3648. : (this._unregister = i(o, this._onScroll));
  3649. }
  3650. }),
  3651. (e._unregisterScrollEvent = function () {
  3652. var n;
  3653. (n = this._unregister) === null || n === void 0 || n.call(this),
  3654. (this._unregister = null);
  3655. }),
  3656. r
  3657. );
  3658. })(sn);
  3659. const qc = Xc;
  3660. /*! *****************************************************************************
  3661. Copyright (c) Microsoft Corporation.
  3662. Permission to use, copy, modify, and/or distribute this software for any
  3663. purpose with or without fee is hereby granted.
  3664. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  3665. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3666. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  3667. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  3668. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  3669. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  3670. PERFORMANCE OF THIS SOFTWARE.
  3671. ***************************************************************************** */ function Kc() {
  3672. for (var t = 0, r = 0, e = arguments.length; r < e; r++)
  3673. t += arguments[r].length;
  3674. for (var n = Array(t), a = 0, r = 0; r < e; r++)
  3675. for (var i = arguments[r], o = 0, s = i.length; o < s; o++, a++)
  3676. n[a] = i[o];
  3677. return n;
  3678. }
  3679. function Vt(t) {
  3680. return nt(t, wt);
  3681. }
  3682. function Jc(t, r) {
  3683. return t.every(function (e, n) {
  3684. return Vt(e - r[n]) === 0;
  3685. });
  3686. }
  3687. function jc(t, r) {
  3688. return !Vt(t[0] - r[0]) && !Vt(t[1] - r[1]);
  3689. }
  3690. function No(t) {
  3691. return t.length < 3
  3692. ? 0
  3693. : Math.abs(
  3694. Kf(
  3695. t.map(function (r, e) {
  3696. var n = t[e + 1] || t[0];
  3697. return r[0] * n[1] - n[0] * r[1];
  3698. })
  3699. )
  3700. ) / 2;
  3701. }
  3702. function Si(t, r) {
  3703. var e = r.width,
  3704. n = r.height,
  3705. a = r.left,
  3706. i = r.top,
  3707. o = Tr(t),
  3708. s = o.minX,
  3709. u = o.minY,
  3710. l = o.maxX,
  3711. f = o.maxY,
  3712. c = e / (l - s),
  3713. v = n / (f - u);
  3714. return t.map(function (p) {
  3715. return [a + (p[0] - s) * c, i + (p[1] - u) * v];
  3716. });
  3717. }
  3718. function Tr(t) {
  3719. var r = t.map(function (n) {
  3720. return n[0];
  3721. }),
  3722. e = t.map(function (n) {
  3723. return n[1];
  3724. });
  3725. return {
  3726. minX: Math.min.apply(Math, r),
  3727. minY: Math.min.apply(Math, e),
  3728. maxX: Math.max.apply(Math, r),
  3729. maxY: Math.max.apply(Math, e)
  3730. };
  3731. }
  3732. function Qn(t, r, e) {
  3733. var n = t[0],
  3734. a = t[1],
  3735. i = Tr(r),
  3736. o = i.minX,
  3737. s = i.maxX,
  3738. u = [
  3739. [o, a],
  3740. [s, a]
  3741. ],
  3742. l = Xe(u[0], u[1]),
  3743. f = Xn(r),
  3744. c = [];
  3745. if (
  3746. (f.forEach(function (d) {
  3747. var g = Xe(d[0], d[1]),
  3748. h = d[0];
  3749. if (Jc(l, g)) c.push({ pos: t, line: d, type: 'line' });
  3750. else {
  3751. var A = Fo(wa(l, g), [u, d]);
  3752. A.forEach(function (m) {
  3753. d.some(function (E) {
  3754. return jc(E, m);
  3755. })
  3756. ? c.push({ pos: m, line: d, type: 'point' })
  3757. : Vt(h[1] - a) !== 0 &&
  3758. c.push({ pos: m, line: d, type: 'intersection' });
  3759. });
  3760. }
  3761. }),
  3762. !e &&
  3763. Kt(c, function (d) {
  3764. return d[0] === n;
  3765. }))
  3766. )
  3767. return !0;
  3768. var v = 0,
  3769. p = {};
  3770. return (
  3771. c.forEach(function (d) {
  3772. var g = d.pos,
  3773. h = d.type,
  3774. A = d.line;
  3775. if (!(g[0] > n))
  3776. if (h === 'intersection') ++v;
  3777. else {
  3778. if (h === 'line') return;
  3779. if (h === 'point') {
  3780. var m = Kt(A, function (b) {
  3781. return b[1] !== a;
  3782. }),
  3783. E = p[g[0]],
  3784. y = m[1] > a ? 1 : -1;
  3785. E ? E !== y && ++v : (p[g[0]] = y);
  3786. }
  3787. }
  3788. }),
  3789. v % 2 === 1
  3790. );
  3791. }
  3792. function Xe(t, r) {
  3793. var e = t[0],
  3794. n = t[1],
  3795. a = r[0],
  3796. i = r[1],
  3797. o = a - e,
  3798. s = i - n;
  3799. Math.abs(o) < wt && (o = 0), Math.abs(s) < wt && (s = 0);
  3800. var u = 0,
  3801. l = 0,
  3802. f = 0;
  3803. return (
  3804. o
  3805. ? s
  3806. ? ((u = -s / o), (l = 1), (f = -u * e - n))
  3807. : ((l = 1), (f = -n))
  3808. : s && ((u = -1), (f = e)),
  3809. [u, l, f]
  3810. );
  3811. }
  3812. function wa(t, r) {
  3813. var e = t[0],
  3814. n = t[1],
  3815. a = t[2],
  3816. i = r[0],
  3817. o = r[1],
  3818. s = r[2],
  3819. u = e === 0 && i === 0,
  3820. l = n === 0 && o === 0,
  3821. f = [];
  3822. if (u && l) return [];
  3823. if (u) {
  3824. var c = -a / n,
  3825. v = -s / o;
  3826. return c !== v
  3827. ? []
  3828. : [
  3829. [-1 / 0, c],
  3830. [1 / 0, c]
  3831. ];
  3832. } else if (l) {
  3833. var p = -a / e,
  3834. d = -s / i;
  3835. return p !== d
  3836. ? []
  3837. : [
  3838. [p, -1 / 0],
  3839. [p, 1 / 0]
  3840. ];
  3841. } else if (e === 0) {
  3842. var g = -a / n,
  3843. h = -(o * g + s) / i;
  3844. f = [[h, g]];
  3845. } else if (i === 0) {
  3846. var g = -s / o,
  3847. h = -(n * g + a) / e;
  3848. f = [[h, g]];
  3849. } else if (n === 0) {
  3850. var h = -a / e,
  3851. g = -(i * h + s) / o;
  3852. f = [[h, g]];
  3853. } else if (o === 0) {
  3854. var h = -s / i,
  3855. g = -(e * h + a) / n;
  3856. f = [[h, g]];
  3857. } else {
  3858. var h = (n * s - o * a) / (o * e - n * i),
  3859. g = -(e * h + a) / n;
  3860. f = [[h, g]];
  3861. }
  3862. return f.map(function (A) {
  3863. return [A[0], A[1]];
  3864. });
  3865. }
  3866. function Fo(t, r) {
  3867. var e = r.map(function (c) {
  3868. return [0, 1].map(function (v) {
  3869. return [Math.min(c[0][v], c[1][v]), Math.max(c[0][v], c[1][v])];
  3870. });
  3871. }),
  3872. n = [];
  3873. if (t.length === 2) {
  3874. var a = t[0],
  3875. i = a[0],
  3876. o = a[1];
  3877. if (Vt(i - t[1][0])) {
  3878. if (!Vt(o - t[1][1])) {
  3879. var l = Math.max.apply(
  3880. Math,
  3881. e.map(function (c) {
  3882. return c[0][0];
  3883. })
  3884. ),
  3885. f = Math.min.apply(
  3886. Math,
  3887. e.map(function (c) {
  3888. return c[0][1];
  3889. })
  3890. );
  3891. if (Vt(l - f) > 0) return [];
  3892. n = [
  3893. [l, o],
  3894. [f, o]
  3895. ];
  3896. }
  3897. } else {
  3898. var s = Math.max.apply(
  3899. Math,
  3900. e.map(function (c) {
  3901. return c[1][0];
  3902. })
  3903. ),
  3904. u = Math.min.apply(
  3905. Math,
  3906. e.map(function (c) {
  3907. return c[1][1];
  3908. })
  3909. );
  3910. if (Vt(s - u) > 0) return [];
  3911. n = [
  3912. [i, s],
  3913. [i, u]
  3914. ];
  3915. }
  3916. }
  3917. return (
  3918. n.length ||
  3919. (n = t.filter(function (c) {
  3920. var v = c[0],
  3921. p = c[1];
  3922. return e.every(function (d) {
  3923. return (
  3924. 0 <= Vt(v - d[0][0]) &&
  3925. 0 <= Vt(d[0][1] - v) &&
  3926. 0 <= Vt(p - d[1][0]) &&
  3927. 0 <= Vt(d[1][1] - p)
  3928. );
  3929. });
  3930. })),
  3931. n.map(function (c) {
  3932. return [Vt(c[0]), Vt(c[1])];
  3933. })
  3934. );
  3935. }
  3936. function Xn(t) {
  3937. return Kc(t.slice(1), [t[0]]).map(function (r, e) {
  3938. return [t[e], r];
  3939. });
  3940. }
  3941. function Zc(t, r) {
  3942. var e = t.slice(),
  3943. n = r.slice();
  3944. li(e) === -1 && e.reverse(), li(n) === -1 && n.reverse();
  3945. var a = Xn(e),
  3946. i = Xn(n),
  3947. o = a.map(function (f) {
  3948. return Xe(f[0], f[1]);
  3949. }),
  3950. s = i.map(function (f) {
  3951. return Xe(f[0], f[1]);
  3952. }),
  3953. u = [];
  3954. o.forEach(function (f, c) {
  3955. var v = a[c],
  3956. p = [];
  3957. s.forEach(function (d, g) {
  3958. var h = wa(f, d),
  3959. A = Fo(h, [v, i[g]]);
  3960. p.push.apply(
  3961. p,
  3962. A.map(function (m) {
  3963. return { index1: c, index2: g, pos: m, type: 'intersection' };
  3964. })
  3965. );
  3966. }),
  3967. p.sort(function (d, g) {
  3968. return sr(v[0], d.pos) - sr(v[0], g.pos);
  3969. }),
  3970. u.push.apply(u, p),
  3971. Qn(v[1], n) &&
  3972. u.push({ index1: c, index2: -1, pos: v[1], type: 'inside' });
  3973. }),
  3974. i.forEach(function (f, c) {
  3975. if (Qn(f[1], e)) {
  3976. var v = !1,
  3977. p = lr(u, function (d) {
  3978. var g = d.index2;
  3979. return g === c ? ((v = !0), !1) : !!v;
  3980. });
  3981. p === -1 &&
  3982. ((v = !1),
  3983. (p = lr(u, function (d) {
  3984. var g = d.index1,
  3985. h = d.index2;
  3986. return g === -1 && h + 1 === c ? ((v = !0), !1) : !!v;
  3987. }))),
  3988. p === -1
  3989. ? u.push({ index1: -1, index2: c, pos: f[1], type: 'inside' })
  3990. : u.splice(p, 0, {
  3991. index1: -1,
  3992. index2: c,
  3993. pos: f[1],
  3994. type: 'inside'
  3995. });
  3996. }
  3997. });
  3998. var l = {};
  3999. return u.filter(function (f) {
  4000. var c = f.pos,
  4001. v = c[0] + 'x' + c[1];
  4002. return l[v] ? !1 : ((l[v] = !0), !0);
  4003. });
  4004. }
  4005. function _c(t, r) {
  4006. var e = Zc(t, r);
  4007. return e.map(function (n) {
  4008. var a = n.pos;
  4009. return a;
  4010. });
  4011. }
  4012. function $c(t, r) {
  4013. var e = _c(t, r);
  4014. return No(e);
  4015. }
  4016. /*! *****************************************************************************
  4017. Copyright (c) Microsoft Corporation.
  4018. Permission to use, copy, modify, and/or distribute this software for any
  4019. purpose with or without fee is hereby granted.
  4020. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  4021. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  4022. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  4023. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  4024. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  4025. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  4026. PERFORMANCE OF THIS SOFTWARE.
  4027. ***************************************************************************** */ var qn =
  4028. function (t, r) {
  4029. return (
  4030. (qn =
  4031. Object.setPrototypeOf ||
  4032. ({ __proto__: [] } instanceof Array &&
  4033. function (e, n) {
  4034. e.__proto__ = n;
  4035. }) ||
  4036. function (e, n) {
  4037. for (var a in n) n.hasOwnProperty(a) && (e[a] = n[a]);
  4038. }),
  4039. qn(t, r)
  4040. );
  4041. };
  4042. function tv(t, r) {
  4043. qn(t, r);
  4044. function e() {
  4045. this.constructor = t;
  4046. }
  4047. t.prototype =
  4048. r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
  4049. }
  4050. var xt = function () {
  4051. return (
  4052. (xt =
  4053. Object.assign ||
  4054. function (r) {
  4055. for (var e, n = 1, a = arguments.length; n < a; n++) {
  4056. e = arguments[n];
  4057. for (var i in e)
  4058. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  4059. }
  4060. return r;
  4061. }),
  4062. xt.apply(this, arguments)
  4063. );
  4064. };
  4065. function rv(t, r) {
  4066. var e = r[0] - t[0],
  4067. n = r[1] - t[1],
  4068. a = Math.atan2(n, e);
  4069. return a >= 0 ? a : a + Math.PI * 2;
  4070. }
  4071. function bn(t) {
  4072. return (
  4073. (rv([t[0].clientX, t[0].clientY], [t[1].clientX, t[1].clientY]) / Math.PI) *
  4074. 180
  4075. );
  4076. }
  4077. function ev(t) {
  4078. return t.touches && t.touches.length >= 2;
  4079. }
  4080. function Me(t) {
  4081. return t ? (t.touches ? av(t.touches) : [zo(t)]) : [];
  4082. }
  4083. function nv(t) {
  4084. return t && (t.type.indexOf('mouse') > -1 || 'button' in t);
  4085. }
  4086. function Ci(t, r, e) {
  4087. var n = e.length,
  4088. a = ie(t, n),
  4089. i = a.clientX,
  4090. o = a.clientY,
  4091. s = a.originalClientX,
  4092. u = a.originalClientY,
  4093. l = ie(r, n),
  4094. f = l.clientX,
  4095. c = l.clientY,
  4096. v = ie(e, n),
  4097. p = v.clientX,
  4098. d = v.clientY,
  4099. g = i - f,
  4100. h = o - c,
  4101. A = i - p,
  4102. m = o - d;
  4103. return { clientX: s, clientY: u, deltaX: g, deltaY: h, distX: A, distY: m };
  4104. }
  4105. function xn(t) {
  4106. return Math.sqrt(
  4107. Math.pow(t[0].clientX - t[1].clientX, 2) +
  4108. Math.pow(t[0].clientY - t[1].clientY, 2)
  4109. );
  4110. }
  4111. function av(t) {
  4112. for (var r = Math.min(t.length, 2), e = [], n = 0; n < r; ++n)
  4113. e.push(zo(t[n]));
  4114. return e;
  4115. }
  4116. function zo(t) {
  4117. return { clientX: t.clientX, clientY: t.clientY };
  4118. }
  4119. function ie(t, r) {
  4120. r === void 0 && (r = t.length);
  4121. for (
  4122. var e = { clientX: 0, clientY: 0, originalClientX: 0, originalClientY: 0 },
  4123. n = 0;
  4124. n < r;
  4125. ++n
  4126. ) {
  4127. var a = t[n];
  4128. (e.originalClientX +=
  4129. 'originalClientX' in a ? a.originalClientX : a.clientX),
  4130. (e.originalClientY +=
  4131. 'originalClientY' in a ? a.originalClientY : a.clientY),
  4132. (e.clientX += a.clientX),
  4133. (e.clientY += a.clientY);
  4134. }
  4135. return r
  4136. ? {
  4137. clientX: e.clientX / r,
  4138. clientY: e.clientY / r,
  4139. originalClientX: e.originalClientX / r,
  4140. originalClientY: e.originalClientY / r
  4141. }
  4142. : e;
  4143. }
  4144. var wn = (function () {
  4145. function t(r) {
  4146. (this.prevClients = []),
  4147. (this.startClients = []),
  4148. (this.movement = 0),
  4149. (this.length = 0),
  4150. (this.startClients = r),
  4151. (this.prevClients = r),
  4152. (this.length = r.length);
  4153. }
  4154. return (
  4155. (t.prototype.getAngle = function (r) {
  4156. return r === void 0 && (r = this.prevClients), bn(r);
  4157. }),
  4158. (t.prototype.getRotation = function (r) {
  4159. return (
  4160. r === void 0 && (r = this.prevClients), bn(r) - bn(this.startClients)
  4161. );
  4162. }),
  4163. (t.prototype.getPosition = function (r, e) {
  4164. r === void 0 && (r = this.prevClients);
  4165. var n = Ci(r || this.prevClients, this.prevClients, this.startClients),
  4166. a = n.deltaX,
  4167. i = n.deltaY;
  4168. return (
  4169. (this.movement += Math.sqrt(a * a + i * i)), (this.prevClients = r), n
  4170. );
  4171. }),
  4172. (t.prototype.getPositions = function (r) {
  4173. r === void 0 && (r = this.prevClients);
  4174. var e = this.prevClients;
  4175. return this.startClients.map(function (n, a) {
  4176. return Ci([r[a]], [e[a]], [n]);
  4177. });
  4178. }),
  4179. (t.prototype.getMovement = function (r) {
  4180. var e = this.movement;
  4181. if (!r) return e;
  4182. var n = ie(r, this.length),
  4183. a = ie(this.prevClients, this.length),
  4184. i = n.clientX - a.clientX,
  4185. o = n.clientY - a.clientY;
  4186. return Math.sqrt(i * i + o * o) + e;
  4187. }),
  4188. (t.prototype.getDistance = function (r) {
  4189. return r === void 0 && (r = this.prevClients), xn(r);
  4190. }),
  4191. (t.prototype.getScale = function (r) {
  4192. return (
  4193. r === void 0 && (r = this.prevClients), xn(r) / xn(this.startClients)
  4194. );
  4195. }),
  4196. (t.prototype.move = function (r, e) {
  4197. this.startClients.forEach(function (n) {
  4198. (n.clientX -= r), (n.clientY -= e);
  4199. }),
  4200. this.prevClients.forEach(function (n) {
  4201. (n.clientX -= r), (n.clientY -= e);
  4202. });
  4203. }),
  4204. t
  4205. );
  4206. })(),
  4207. Ei = ['textarea', 'input'],
  4208. iv = (function (t) {
  4209. tv(r, t);
  4210. function r(e, n) {
  4211. n === void 0 && (n = {});
  4212. var a = t.call(this) || this;
  4213. (a.options = {}),
  4214. (a.flag = !1),
  4215. (a.pinchFlag = !1),
  4216. (a.data = {}),
  4217. (a.isDrag = !1),
  4218. (a.isPinch = !1),
  4219. (a.clientStores = []),
  4220. (a.targets = []),
  4221. (a.prevTime = 0),
  4222. (a.doubleFlag = !1),
  4223. (a._useMouse = !1),
  4224. (a._useTouch = !1),
  4225. (a._useDrag = !1),
  4226. (a._dragFlag = !1),
  4227. (a._isTrusted = !1),
  4228. (a._isMouseEvent = !1),
  4229. (a._isSecondaryButton = !1),
  4230. (a._preventMouseEvent = !1),
  4231. (a._prevInputEvent = null),
  4232. (a._isDragAPI = !1),
  4233. (a._isIdle = !0),
  4234. (a._window = window),
  4235. (a.onDragStart = function (v, p) {
  4236. if ((p === void 0 && (p = !0), !(!a.flag && v.cancelable === !1))) {
  4237. var d = v.type.indexOf('drag') >= -1;
  4238. if (!(a.flag && d)) {
  4239. a._isDragAPI = !0;
  4240. var g = a.options,
  4241. h = g.container,
  4242. A = g.pinchOutside,
  4243. m = g.preventWheelClick,
  4244. E = g.preventRightClick,
  4245. y = g.preventDefault,
  4246. b = g.checkInput,
  4247. C = g.dragFocusedInput,
  4248. S = g.preventClickEventOnDragStart,
  4249. D = g.preventClickEventOnDrag,
  4250. x = g.preventClickEventByCondition,
  4251. w = a._useTouch,
  4252. T = !a.flag;
  4253. if (
  4254. ((a._isSecondaryButton = v.which === 3 || v.button === 2),
  4255. (m && (v.which === 2 || v.button === 1)) ||
  4256. (E && (v.which === 3 || v.button === 2)))
  4257. )
  4258. return a.stop(), !1;
  4259. if (T) {
  4260. var I = a._window.document.activeElement,
  4261. M = v.target;
  4262. if (M) {
  4263. var O = M.tagName.toLowerCase(),
  4264. P = Ei.indexOf(O) > -1,
  4265. z = M.isContentEditable;
  4266. if (P || z) {
  4267. if (b || (!C && I === M)) return !1;
  4268. if (
  4269. I &&
  4270. (I === M || (z && I.isContentEditable && I.contains(M)))
  4271. )
  4272. if (C) M.blur();
  4273. else return !1;
  4274. } else if ((y || v.type === 'touchstart') && I) {
  4275. var H = I.tagName.toLowerCase();
  4276. (I.isContentEditable || Ei.indexOf(H) > -1) && I.blur();
  4277. }
  4278. (S || D || x) && Pt(a._window, 'click', a._onClick, !0);
  4279. }
  4280. (a.clientStores = [new wn(Me(v))]),
  4281. (a._isIdle = !1),
  4282. (a.flag = !0),
  4283. (a.isDrag = !1),
  4284. (a._isTrusted = p),
  4285. (a._dragFlag = !0),
  4286. (a._prevInputEvent = v),
  4287. (a.data = {}),
  4288. (a.doubleFlag = fe() - a.prevTime < 200),
  4289. (a._isMouseEvent = nv(v)),
  4290. !a._isMouseEvent &&
  4291. a._preventMouseEvent &&
  4292. (a._preventMouseEvent = !1);
  4293. var G =
  4294. a._preventMouseEvent ||
  4295. a.emit(
  4296. 'dragStart',
  4297. xt(
  4298. xt(
  4299. {
  4300. data: a.data,
  4301. datas: a.data,
  4302. inputEvent: v,
  4303. isMouseEvent: a._isMouseEvent,
  4304. isSecondaryButton: a._isSecondaryButton,
  4305. isTrusted: p,
  4306. isDouble: a.doubleFlag
  4307. },
  4308. a.getCurrentStore().getPosition()
  4309. ),
  4310. {
  4311. preventDefault: function () {
  4312. v.preventDefault();
  4313. },
  4314. preventDrag: function () {
  4315. a._dragFlag = !1;
  4316. }
  4317. }
  4318. )
  4319. );
  4320. G === !1 && a.stop(),
  4321. a._isMouseEvent && a.flag && y && v.preventDefault();
  4322. }
  4323. if (!a.flag) return !1;
  4324. var L = 0;
  4325. if (
  4326. (T
  4327. ? (a._attchDragEvent(),
  4328. w &&
  4329. A &&
  4330. (L = setTimeout(function () {
  4331. Pt(h, 'touchstart', a.onDragStart, { passive: !1 });
  4332. })))
  4333. : w && A && Mt(h, 'touchstart', a.onDragStart),
  4334. a.flag && ev(v))
  4335. ) {
  4336. if (
  4337. (clearTimeout(L),
  4338. T && v.touches.length !== v.changedTouches.length)
  4339. )
  4340. return;
  4341. a.pinchFlag || a.onPinchStart(v);
  4342. }
  4343. }
  4344. }
  4345. }),
  4346. (a.onDrag = function (v, p) {
  4347. if (a.flag) {
  4348. var d = a.options.preventDefault;
  4349. !a._isMouseEvent && d && v.preventDefault(),
  4350. (a._prevInputEvent = v);
  4351. var g = Me(v),
  4352. h = a.moveClients(g, v, !1);
  4353. if (a._dragFlag) {
  4354. if (a.pinchFlag || h.deltaX || h.deltaY) {
  4355. var A =
  4356. a._preventMouseEvent ||
  4357. a.emit(
  4358. 'drag',
  4359. xt(xt({}, h), { isScroll: !!p, inputEvent: v })
  4360. );
  4361. if (A === !1) {
  4362. a.stop();
  4363. return;
  4364. }
  4365. }
  4366. a.pinchFlag && a.onPinch(v, g);
  4367. }
  4368. a.getCurrentStore().getPosition(g, !0);
  4369. }
  4370. }),
  4371. (a.onDragEnd = function (v) {
  4372. if (a.flag) {
  4373. var p = a.options,
  4374. d = p.pinchOutside,
  4375. g = p.container,
  4376. h = p.preventClickEventOnDrag,
  4377. A = p.preventClickEventOnDragStart,
  4378. m = p.preventClickEventByCondition,
  4379. E = a.isDrag;
  4380. (h || A || m) &&
  4381. requestAnimationFrame(function () {
  4382. a._allowClickEvent();
  4383. }),
  4384. !m && !A && h && !E && a._allowClickEvent(),
  4385. a._useTouch && d && Mt(g, 'touchstart', a.onDragStart),
  4386. a.pinchFlag && a.onPinchEnd(v);
  4387. var y = v != null && v.touches ? Me(v) : [],
  4388. b = y.length;
  4389. b === 0 || !a.options.keepDragging
  4390. ? (a.flag = !1)
  4391. : a._addStore(new wn(y));
  4392. var C = a._getPosition(),
  4393. S = fe(),
  4394. D = !E && a.doubleFlag;
  4395. (a._prevInputEvent = null),
  4396. (a.prevTime = E || D ? 0 : S),
  4397. a.flag ||
  4398. (a._dettachDragEvent(),
  4399. a._preventMouseEvent ||
  4400. a.emit(
  4401. 'dragEnd',
  4402. xt(
  4403. {
  4404. data: a.data,
  4405. datas: a.data,
  4406. isDouble: D,
  4407. isDrag: E,
  4408. isClick: !E,
  4409. isMouseEvent: a._isMouseEvent,
  4410. isSecondaryButton: a._isSecondaryButton,
  4411. inputEvent: v,
  4412. isTrusted: a._isTrusted
  4413. },
  4414. C
  4415. )
  4416. ),
  4417. (a.clientStores = []),
  4418. a._isMouseEvent ||
  4419. ((a._preventMouseEvent = !0),
  4420. requestAnimationFrame(function () {
  4421. requestAnimationFrame(function () {
  4422. a._preventMouseEvent = !1;
  4423. });
  4424. })),
  4425. (a._isIdle = !0));
  4426. }
  4427. }),
  4428. (a.onBlur = function () {
  4429. a.onDragEnd();
  4430. }),
  4431. (a._allowClickEvent = function () {
  4432. Mt(a._window, 'click', a._onClick, !0);
  4433. }),
  4434. (a._onClick = function (v) {
  4435. a._allowClickEvent(), (a._preventMouseEvent = !1);
  4436. var p = a.options.preventClickEventByCondition;
  4437. (p != null && p(v)) || (v.stopPropagation(), v.preventDefault());
  4438. }),
  4439. (a._onContextMenu = function (v) {
  4440. var p = a.options;
  4441. p.preventRightClick ? a.onDragEnd(v) : v.preventDefault();
  4442. }),
  4443. (a._passCallback = function () {});
  4444. var i = [].concat(e),
  4445. o = i[0];
  4446. (a._window = co(o) ? o : hr(o)),
  4447. (a.options = xt(
  4448. {
  4449. checkInput: !1,
  4450. container: o && !('document' in o) ? hr(o) : o,
  4451. preventRightClick: !0,
  4452. preventWheelClick: !0,
  4453. preventClickEventOnDragStart: !1,
  4454. preventClickEventOnDrag: !1,
  4455. preventClickEventByCondition: null,
  4456. preventDefault: !0,
  4457. checkWindowBlur: !1,
  4458. keepDragging: !1,
  4459. pinchThreshold: 0,
  4460. events: ['touch', 'mouse']
  4461. },
  4462. n
  4463. ));
  4464. var s = a.options,
  4465. u = s.container,
  4466. l = s.events,
  4467. f = s.checkWindowBlur;
  4468. if (
  4469. ((a._useDrag = l.indexOf('drag') > -1),
  4470. (a._useTouch = l.indexOf('touch') > -1),
  4471. (a._useMouse = l.indexOf('mouse') > -1),
  4472. (a.targets = i),
  4473. a._useDrag &&
  4474. i.forEach(function (v) {
  4475. Pt(v, 'dragstart', a.onDragStart);
  4476. }),
  4477. a._useMouse &&
  4478. (i.forEach(function (v) {
  4479. Pt(v, 'mousedown', a.onDragStart),
  4480. Pt(v, 'mousemove', a._passCallback);
  4481. }),
  4482. Pt(u, 'contextmenu', a._onContextMenu)),
  4483. f && Pt(hr(), 'blur', a.onBlur),
  4484. a._useTouch)
  4485. ) {
  4486. var c = { passive: !1 };
  4487. i.forEach(function (v) {
  4488. Pt(v, 'touchstart', a.onDragStart, c),
  4489. Pt(v, 'touchmove', a._passCallback, c);
  4490. });
  4491. }
  4492. return a;
  4493. }
  4494. return (
  4495. (r.prototype.stop = function () {
  4496. (this.isDrag = !1),
  4497. (this.data = {}),
  4498. (this.clientStores = []),
  4499. (this.pinchFlag = !1),
  4500. (this.doubleFlag = !1),
  4501. (this.prevTime = 0),
  4502. (this.flag = !1),
  4503. (this._isIdle = !0),
  4504. this._allowClickEvent(),
  4505. this._dettachDragEvent(),
  4506. (this._isDragAPI = !1);
  4507. }),
  4508. (r.prototype.getMovement = function (e) {
  4509. return (
  4510. this.getCurrentStore().getMovement(e) +
  4511. this.clientStores.slice(1).reduce(function (n, a) {
  4512. return n + a.movement;
  4513. }, 0)
  4514. );
  4515. }),
  4516. (r.prototype.isDragging = function () {
  4517. return this.isDrag;
  4518. }),
  4519. (r.prototype.isIdle = function () {
  4520. return this._isIdle;
  4521. }),
  4522. (r.prototype.isFlag = function () {
  4523. return this.flag;
  4524. }),
  4525. (r.prototype.isPinchFlag = function () {
  4526. return this.pinchFlag;
  4527. }),
  4528. (r.prototype.isDoubleFlag = function () {
  4529. return this.doubleFlag;
  4530. }),
  4531. (r.prototype.isPinching = function () {
  4532. return this.isPinch;
  4533. }),
  4534. (r.prototype.scrollBy = function (e, n, a, i) {
  4535. i === void 0 && (i = !0),
  4536. this.flag &&
  4537. (this.clientStores[0].move(e, n), i && this.onDrag(a, !0));
  4538. }),
  4539. (r.prototype.move = function (e, n) {
  4540. var a = e[0],
  4541. i = e[1],
  4542. o = this.getCurrentStore(),
  4543. s = o.prevClients;
  4544. return this.moveClients(
  4545. s.map(function (u) {
  4546. var l = u.clientX,
  4547. f = u.clientY;
  4548. return {
  4549. clientX: l + a,
  4550. clientY: f + i,
  4551. originalClientX: l,
  4552. originalClientY: f
  4553. };
  4554. }),
  4555. n,
  4556. !0
  4557. );
  4558. }),
  4559. (r.prototype.triggerDragStart = function (e) {
  4560. this.onDragStart(e, !1);
  4561. }),
  4562. (r.prototype.setEventData = function (e) {
  4563. var n = this.data;
  4564. for (var a in e) n[a] = e[a];
  4565. return this;
  4566. }),
  4567. (r.prototype.setEventDatas = function (e) {
  4568. return this.setEventData(e);
  4569. }),
  4570. (r.prototype.getCurrentEvent = function (e) {
  4571. return (
  4572. e === void 0 && (e = this._prevInputEvent),
  4573. xt(xt({ data: this.data, datas: this.data }, this._getPosition()), {
  4574. movement: this.getMovement(),
  4575. isDrag: this.isDrag,
  4576. isPinch: this.isPinch,
  4577. isScroll: !1,
  4578. inputEvent: e
  4579. })
  4580. );
  4581. }),
  4582. (r.prototype.getEventData = function () {
  4583. return this.data;
  4584. }),
  4585. (r.prototype.getEventDatas = function () {
  4586. return this.data;
  4587. }),
  4588. (r.prototype.unset = function () {
  4589. var e = this,
  4590. n = this.targets,
  4591. a = this.options.container;
  4592. this.off(),
  4593. Mt(this._window, 'blur', this.onBlur),
  4594. this._useDrag &&
  4595. n.forEach(function (i) {
  4596. Mt(i, 'dragstart', e.onDragStart);
  4597. }),
  4598. this._useMouse &&
  4599. (n.forEach(function (i) {
  4600. Mt(i, 'mousedown', e.onDragStart);
  4601. }),
  4602. Mt(a, 'contextmenu', this._onContextMenu)),
  4603. this._useTouch &&
  4604. (n.forEach(function (i) {
  4605. Mt(i, 'touchstart', e.onDragStart);
  4606. }),
  4607. Mt(a, 'touchstart', this.onDragStart)),
  4608. (this._prevInputEvent = null),
  4609. this._allowClickEvent(),
  4610. this._dettachDragEvent();
  4611. }),
  4612. (r.prototype.onPinchStart = function (e) {
  4613. var n = this,
  4614. a = this.options.pinchThreshold;
  4615. if (!(this.isDrag && this.getMovement() > a)) {
  4616. var i = new wn(Me(e));
  4617. (this.pinchFlag = !0), this._addStore(i);
  4618. var o = this.emit(
  4619. 'pinchStart',
  4620. xt(
  4621. xt(
  4622. {
  4623. data: this.data,
  4624. datas: this.data,
  4625. angle: i.getAngle(),
  4626. touches: this.getCurrentStore().getPositions()
  4627. },
  4628. i.getPosition()
  4629. ),
  4630. {
  4631. inputEvent: e,
  4632. isTrusted: this._isTrusted,
  4633. preventDefault: function () {
  4634. e.preventDefault();
  4635. },
  4636. preventDrag: function () {
  4637. n._dragFlag = !1;
  4638. }
  4639. }
  4640. )
  4641. );
  4642. o === !1 && (this.pinchFlag = !1);
  4643. }
  4644. }),
  4645. (r.prototype.onPinch = function (e, n) {
  4646. if (!(!this.flag || !this.pinchFlag || n.length < 2)) {
  4647. var a = this.getCurrentStore();
  4648. (this.isPinch = !0),
  4649. this.emit(
  4650. 'pinch',
  4651. xt(
  4652. xt(
  4653. {
  4654. data: this.data,
  4655. datas: this.data,
  4656. movement: this.getMovement(n),
  4657. angle: a.getAngle(n),
  4658. rotation: a.getRotation(n),
  4659. touches: a.getPositions(n),
  4660. scale: a.getScale(n),
  4661. distance: a.getDistance(n)
  4662. },
  4663. a.getPosition(n)
  4664. ),
  4665. { inputEvent: e, isTrusted: this._isTrusted }
  4666. )
  4667. );
  4668. }
  4669. }),
  4670. (r.prototype.onPinchEnd = function (e) {
  4671. if (this.pinchFlag) {
  4672. var n = this.isPinch;
  4673. (this.isPinch = !1), (this.pinchFlag = !1);
  4674. var a = this.getCurrentStore();
  4675. this.emit(
  4676. 'pinchEnd',
  4677. xt(
  4678. xt(
  4679. {
  4680. data: this.data,
  4681. datas: this.data,
  4682. isPinch: n,
  4683. touches: a.getPositions()
  4684. },
  4685. a.getPosition()
  4686. ),
  4687. { inputEvent: e }
  4688. )
  4689. );
  4690. }
  4691. }),
  4692. (r.prototype.getCurrentStore = function () {
  4693. return this.clientStores[0];
  4694. }),
  4695. (r.prototype.moveClients = function (e, n, a) {
  4696. var i = this._getPosition(e, a),
  4697. o = this.isDrag;
  4698. (i.deltaX || i.deltaY) && (this.isDrag = !0);
  4699. var s = !1;
  4700. return (
  4701. !o && this.isDrag && (s = !0),
  4702. xt(xt({ data: this.data, datas: this.data }, i), {
  4703. movement: this.getMovement(e),
  4704. isDrag: this.isDrag,
  4705. isPinch: this.isPinch,
  4706. isScroll: !1,
  4707. isMouseEvent: this._isMouseEvent,
  4708. isSecondaryButton: this._isSecondaryButton,
  4709. inputEvent: n,
  4710. isTrusted: this._isTrusted,
  4711. isFirstDrag: s
  4712. })
  4713. );
  4714. }),
  4715. (r.prototype._addStore = function (e) {
  4716. this.clientStores.splice(0, 0, e);
  4717. }),
  4718. (r.prototype._getPosition = function (e, n) {
  4719. var a = this.getCurrentStore(),
  4720. i = a.getPosition(e, n),
  4721. o = this.clientStores.slice(1).reduce(function (l, f) {
  4722. var c = f.getPosition();
  4723. return (l.distX += c.distX), (l.distY += c.distY), l;
  4724. }, i),
  4725. s = o.distX,
  4726. u = o.distY;
  4727. return xt(xt({}, i), { distX: s, distY: u });
  4728. }),
  4729. (r.prototype._attchDragEvent = function () {
  4730. var e = this._window,
  4731. n = this.options.container,
  4732. a = { passive: !1 };
  4733. this._isDragAPI &&
  4734. (Pt(n, 'dragover', this.onDrag, a), Pt(e, 'dragend', this.onDragEnd)),
  4735. this._useMouse &&
  4736. (Pt(n, 'mousemove', this.onDrag), Pt(e, 'mouseup', this.onDragEnd)),
  4737. this._useTouch &&
  4738. (Pt(n, 'touchmove', this.onDrag, a),
  4739. Pt(e, 'touchend', this.onDragEnd, a),
  4740. Pt(e, 'touchcancel', this.onDragEnd, a));
  4741. }),
  4742. (r.prototype._dettachDragEvent = function () {
  4743. var e = this._window,
  4744. n = this.options.container;
  4745. this._isDragAPI &&
  4746. (Mt(n, 'dragover', this.onDrag), Mt(e, 'dragend', this.onDragEnd)),
  4747. this._useMouse &&
  4748. (Mt(n, 'mousemove', this.onDrag), Mt(e, 'mouseup', this.onDragEnd)),
  4749. this._useTouch &&
  4750. (Mt(n, 'touchstart', this.onDragStart),
  4751. Mt(n, 'touchmove', this.onDrag),
  4752. Mt(e, 'touchend', this.onDragEnd),
  4753. Mt(e, 'touchcancel', this.onDragEnd));
  4754. }),
  4755. r
  4756. );
  4757. })(sn);
  4758. function ov(t) {
  4759. for (var r = 5381, e = t.length; e; ) r = (r * 33) ^ t.charCodeAt(--e);
  4760. return r >>> 0;
  4761. }
  4762. var sv = ov;
  4763. function uv(t) {
  4764. return sv(t).toString(36);
  4765. }
  4766. function lv(t) {
  4767. if (t && t.getRootNode) {
  4768. var r = t.getRootNode();
  4769. if (r.nodeType === 11) return r;
  4770. }
  4771. }
  4772. function fv(t, r, e) {
  4773. return e.original
  4774. ? r
  4775. : r.replace(/([^};{\s}][^};{]*|^\s*){/gm, function (n, a) {
  4776. var i = a.trim();
  4777. return (
  4778. (i ? Br(i) : [''])
  4779. .map(function (o) {
  4780. var s = o.trim();
  4781. return s.indexOf('@') === 0
  4782. ? s
  4783. : s.indexOf(':global') > -1
  4784. ? s.replace(/\:global/g, '')
  4785. : s.indexOf(':host') > -1
  4786. ? ''.concat(s.replace(/\:host/g, '.'.concat(t)))
  4787. : s
  4788. ? '.'.concat(t, ' ').concat(s)
  4789. : '.'.concat(t);
  4790. })
  4791. .join(', ') + ' {'
  4792. );
  4793. });
  4794. }
  4795. function cv(t, r, e, n, a) {
  4796. var i = Jr(n),
  4797. o = i.createElement('style');
  4798. return (
  4799. o.setAttribute('type', 'text/css'),
  4800. o.setAttribute('data-styled-id', t),
  4801. o.setAttribute('data-styled-count', '1'),
  4802. e.nonce && o.setAttribute('nonce', e.nonce),
  4803. (o.innerHTML = fv(t, r, e)),
  4804. (a || i.head || i.body).appendChild(o),
  4805. o
  4806. );
  4807. }
  4808. function vv(t) {
  4809. var r = 'rCS' + uv(t);
  4810. return {
  4811. className: r,
  4812. inject: function (e, n) {
  4813. n === void 0 && (n = {});
  4814. var a = lv(e),
  4815. i = (a || e.ownerDocument || document).querySelector(
  4816. 'style[data-styled-id="'.concat(r, '"]')
  4817. );
  4818. if (!i) i = cv(r, t, n, e, a);
  4819. else {
  4820. var o = parseFloat(i.getAttribute('data-styled-count')) || 0;
  4821. i.setAttribute('data-styled-count', ''.concat(o + 1));
  4822. }
  4823. return {
  4824. destroy: function () {
  4825. var s,
  4826. u = parseFloat(i.getAttribute('data-styled-count')) || 0;
  4827. u <= 1
  4828. ? (i.remove
  4829. ? i.remove()
  4830. : (s = i.parentNode) === null ||
  4831. s === void 0 ||
  4832. s.removeChild(i),
  4833. (i = null))
  4834. : i.setAttribute('data-styled-count', ''.concat(u - 1));
  4835. }
  4836. };
  4837. }
  4838. };
  4839. }
  4840. var Kn = function () {
  4841. return (
  4842. (Kn =
  4843. Object.assign ||
  4844. function (r) {
  4845. for (var e, n = 1, a = arguments.length; n < a; n++) {
  4846. e = arguments[n];
  4847. for (var i in e)
  4848. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  4849. }
  4850. return r;
  4851. }),
  4852. Kn.apply(this, arguments)
  4853. );
  4854. };
  4855. function pv(t, r) {
  4856. var e = {};
  4857. for (var n in t)
  4858. Object.prototype.hasOwnProperty.call(t, n) &&
  4859. r.indexOf(n) < 0 &&
  4860. (e[n] = t[n]);
  4861. if (t != null && typeof Object.getOwnPropertySymbols == 'function')
  4862. for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
  4863. r.indexOf(n[a]) < 0 &&
  4864. Object.prototype.propertyIsEnumerable.call(t, n[a]) &&
  4865. (e[n[a]] = t[n[a]]);
  4866. return e;
  4867. }
  4868. function Ho(t, r) {
  4869. var e = vv(r),
  4870. n = e.className;
  4871. return uc(function (a, i) {
  4872. var o = a.className,
  4873. s = o === void 0 ? '' : o;
  4874. a.cspNonce;
  4875. var u = pv(a, ['className', 'cspNonce']),
  4876. l = Ec();
  4877. return (
  4878. yc(
  4879. i,
  4880. function () {
  4881. return l.current;
  4882. },
  4883. []
  4884. ),
  4885. Do(function () {
  4886. var f = e.inject(l.current, { nonce: a.cspNonce });
  4887. return function () {
  4888. f.destroy();
  4889. };
  4890. }, []),
  4891. _t(
  4892. t,
  4893. Kn(
  4894. {
  4895. ref: l,
  4896. 'data-styled-id': n,
  4897. className: ''.concat(s, ' ').concat(n)
  4898. },
  4899. u
  4900. )
  4901. )
  4902. );
  4903. });
  4904. }
  4905. var Jn = function (t, r) {
  4906. return (
  4907. (Jn =
  4908. Object.setPrototypeOf ||
  4909. ({ __proto__: [] } instanceof Array &&
  4910. function (e, n) {
  4911. e.__proto__ = n;
  4912. }) ||
  4913. function (e, n) {
  4914. for (var a in n)
  4915. Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
  4916. }),
  4917. Jn(t, r)
  4918. );
  4919. };
  4920. function Ee(t, r) {
  4921. if (typeof r != 'function' && r !== null)
  4922. throw new TypeError(
  4923. 'Class extends value ' + String(r) + ' is not a constructor or null'
  4924. );
  4925. Jn(t, r);
  4926. function e() {
  4927. this.constructor = t;
  4928. }
  4929. t.prototype =
  4930. r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
  4931. }
  4932. var R = function () {
  4933. return (
  4934. (R =
  4935. Object.assign ||
  4936. function (r) {
  4937. for (var e, n = 1, a = arguments.length; n < a; n++) {
  4938. e = arguments[n];
  4939. for (var i in e)
  4940. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  4941. }
  4942. return r;
  4943. }),
  4944. R.apply(this, arguments)
  4945. );
  4946. };
  4947. function dv(t, r) {
  4948. var e = {};
  4949. for (var n in t)
  4950. Object.prototype.hasOwnProperty.call(t, n) &&
  4951. r.indexOf(n) < 0 &&
  4952. (e[n] = t[n]);
  4953. if (t != null && typeof Object.getOwnPropertySymbols == 'function')
  4954. for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
  4955. r.indexOf(n[a]) < 0 &&
  4956. Object.prototype.propertyIsEnumerable.call(t, n[a]) &&
  4957. (e[n[a]] = t[n[a]]);
  4958. return e;
  4959. }
  4960. function gv(t, r, e, n) {
  4961. var a = arguments.length,
  4962. i =
  4963. a < 3 ? r : n === null ? (n = Object.getOwnPropertyDescriptor(r, e)) : n,
  4964. o;
  4965. if (typeof Reflect == 'object' && typeof Reflect.decorate == 'function')
  4966. i = Reflect.decorate(t, r, e, n);
  4967. else
  4968. for (var s = t.length - 1; s >= 0; s--)
  4969. (o = t[s]) && (i = (a < 3 ? o(i) : a > 3 ? o(r, e, i) : o(r, e)) || i);
  4970. return a > 3 && i && Object.defineProperty(r, e, i), i;
  4971. }
  4972. function hv(t) {
  4973. var r = typeof Symbol == 'function' && Symbol.iterator,
  4974. e = r && t[r],
  4975. n = 0;
  4976. if (e) return e.call(t);
  4977. if (t && typeof t.length == 'number')
  4978. return {
  4979. next: function () {
  4980. return (
  4981. t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t }
  4982. );
  4983. }
  4984. };
  4985. throw new TypeError(
  4986. r ? 'Object is not iterable.' : 'Symbol.iterator is not defined.'
  4987. );
  4988. }
  4989. function B(t, r) {
  4990. var e = typeof Symbol == 'function' && t[Symbol.iterator];
  4991. if (!e) return t;
  4992. var n = e.call(t),
  4993. a,
  4994. i = [],
  4995. o;
  4996. try {
  4997. for (; (r === void 0 || r-- > 0) && !(a = n.next()).done; ) i.push(a.value);
  4998. } catch (s) {
  4999. o = { error: s };
  5000. } finally {
  5001. try {
  5002. a && !a.done && (e = n.return) && e.call(n);
  5003. } finally {
  5004. if (o) throw o.error;
  5005. }
  5006. }
  5007. return i;
  5008. }
  5009. function U(t, r, e) {
  5010. if (e || arguments.length === 2)
  5011. for (var n = 0, a = r.length, i; n < a; n++)
  5012. (i || !(n in r)) &&
  5013. (i || (i = Array.prototype.slice.call(r, 0, n)), (i[n] = r[n]));
  5014. return t.concat(i || Array.prototype.slice.call(r));
  5015. }
  5016. function ye(t, r) {
  5017. return R({ events: [], props: [], name: t }, r);
  5018. }
  5019. var Av = ['n', 'w', 's', 'e'],
  5020. Ra = ['n', 'w', 's', 'e', 'nw', 'ne', 'sw', 'se'];
  5021. function mv(t, r) {
  5022. return 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'
  5023. .concat(32 * t, 'px" height="')
  5024. .concat(
  5025. 32 * t,
  5026. 'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate('
  5027. )
  5028. .concat(r, 'deg);transform-origin: 16px 16px"></path></svg>');
  5029. }
  5030. function Sv(t) {
  5031. var r = mv(1, t),
  5032. e = (Math.round(t / 45) * 45) % 180,
  5033. n = 'ns-resize';
  5034. return (
  5035. e === 135
  5036. ? (n = 'nwse-resize')
  5037. : e === 45
  5038. ? (n = 'nesw-resize')
  5039. : e === 90 && (n = 'ew-resize'),
  5040. 'cursor:'.concat(n, ";cursor: url('").concat(r, "') 16 16, ").concat(n, ';')
  5041. );
  5042. }
  5043. var Zr = Rc(),
  5044. Lo = Zr.browser.webkit,
  5045. Uo =
  5046. Lo &&
  5047. (function () {
  5048. var t = typeof window > 'u' ? { userAgent: '' } : window.navigator,
  5049. r = /applewebkit\/([^\s]+)/g.exec(t.userAgent.toLowerCase());
  5050. return r ? parseFloat(r[1]) < 605 : !1;
  5051. })(),
  5052. Vo = Zr.browser.name,
  5053. Wo = parseInt(Zr.browser.version, 10),
  5054. Cv = Vo === 'chrome',
  5055. Ev = Zr.browser.chromium,
  5056. yv = parseInt(Zr.browser.chromiumVersion, 10) || 0,
  5057. Dv = (Cv && Wo >= 109) || (Ev && yv >= 109),
  5058. bv = Vo === 'firefox',
  5059. xv = parseInt(Zr.browser.webkitVersion, 10) >= 612 || Wo >= 15,
  5060. Ba = 'moveable-',
  5061. wv = Ra.map(function (t) {
  5062. var r = '',
  5063. e = '',
  5064. n = 'center',
  5065. a = 'center',
  5066. i = 'calc(var(--moveable-control-padding, 20) * -1px)';
  5067. return (
  5068. t.indexOf('n') > -1 && ((r = 'top: '.concat(i, ';')), (a = 'bottom')),
  5069. t.indexOf('s') > -1 && ((r = 'top: 0px;'), (a = 'top')),
  5070. t.indexOf('w') > -1 && ((e = 'left: '.concat(i, ';')), (n = 'right')),
  5071. t.indexOf('e') > -1 && ((e = 'left: 0px;'), (n = 'left')),
  5072. '.around-control[data-direction*="'
  5073. .concat(t, '"] {\n ')
  5074. .concat(e)
  5075. .concat(r, '\n transform-origin: ')
  5076. .concat(n, ' ')
  5077. .concat(a, ';\n }')
  5078. );
  5079. }).join('\n'),
  5080. Rv =
  5081. '\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n'
  5082. .concat(
  5083. wv,
  5084. '\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n'
  5085. )
  5086. .concat(
  5087. [0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165]
  5088. .map(function (t) {
  5089. return '\n.direction[data-rotation="'
  5090. .concat(t, '"], :global .view-control-rotation')
  5091. .concat(t, ' {\n')
  5092. .concat(Sv(t), '\n}\n');
  5093. })
  5094. .join('\n'),
  5095. '\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n'
  5096. )
  5097. .concat(
  5098. Uo
  5099. ? ':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}'
  5100. : '',
  5101. '\n'
  5102. ),
  5103. Bv = [
  5104. [0, 1, 2],
  5105. [1, 0, 3],
  5106. [2, 0, 3],
  5107. [3, 1, 2]
  5108. ],
  5109. jn = 1e-4,
  5110. Ut = 1e-7,
  5111. Ie = 1e-9,
  5112. Zn = Math.pow(10, 10),
  5113. yi = -Zn,
  5114. Mv = {
  5115. n: [0, -1],
  5116. e: [1, 0],
  5117. s: [0, 1],
  5118. w: [-1, 0],
  5119. nw: [-1, -1],
  5120. ne: [1, -1],
  5121. sw: [-1, 1],
  5122. se: [1, 1]
  5123. },
  5124. Ma = {
  5125. n: [0, 1],
  5126. e: [1, 3],
  5127. s: [3, 2],
  5128. w: [2, 0],
  5129. nw: [0],
  5130. ne: [1],
  5131. sw: [2],
  5132. se: [3]
  5133. },
  5134. Yo = { n: 0, s: 180, w: 270, e: 90, nw: 315, ne: 45, sw: 225, se: 135 },
  5135. Qo = [
  5136. 'isMoveableElement',
  5137. 'updateRect',
  5138. 'updateTarget',
  5139. 'destroy',
  5140. 'dragStart',
  5141. 'isInside',
  5142. 'hitTest',
  5143. 'setState',
  5144. 'getRect',
  5145. 'request',
  5146. 'isDragging',
  5147. 'getManager',
  5148. 'forceUpdate',
  5149. 'waitToChangeTarget',
  5150. 'updateSelectors',
  5151. 'getTargets',
  5152. 'stopDrag',
  5153. 'getControlBoxElement'
  5154. ];
  5155. function De(t, r, e, n, a, i) {
  5156. var o, s;
  5157. i === void 0 && (i = 'draggable');
  5158. var u =
  5159. (s =
  5160. (o = r.gestos[i]) === null || o === void 0
  5161. ? void 0
  5162. : o.move(e, t.inputEvent)) !== null && s !== void 0
  5163. ? s
  5164. : {},
  5165. l = u.originalDatas || u.datas,
  5166. f = l[i] || (l[i] = {});
  5167. return R(R({}, a ? Ts(r, u) : u), {
  5168. isPinch: !!n,
  5169. parentEvent: !0,
  5170. datas: f,
  5171. originalDatas: t.originalDatas
  5172. });
  5173. }
  5174. var Wr = (function () {
  5175. function t(r) {
  5176. var e;
  5177. r === void 0 && (r = 'draggable'),
  5178. (this.ableName = r),
  5179. (this.prevX = 0),
  5180. (this.prevY = 0),
  5181. (this.startX = 0),
  5182. (this.startY = 0),
  5183. (this.isDrag = !1),
  5184. (this.isFlag = !1),
  5185. (this.datas = { draggable: {} }),
  5186. (this.datas = ((e = {}), (e[r] = {}), e));
  5187. }
  5188. return (
  5189. (t.prototype.dragStart = function (r, e) {
  5190. (this.isDrag = !1), (this.isFlag = !1);
  5191. var n = e.originalDatas;
  5192. return (
  5193. (this.datas = n),
  5194. n[this.ableName] || (n[this.ableName] = {}),
  5195. R(R({}, this.move(r, e.inputEvent)), { type: 'dragstart' })
  5196. );
  5197. }),
  5198. (t.prototype.drag = function (r, e) {
  5199. return this.move([r[0] - this.prevX, r[1] - this.prevY], e);
  5200. }),
  5201. (t.prototype.move = function (r, e) {
  5202. var n,
  5203. a,
  5204. i = !1;
  5205. if (!this.isFlag)
  5206. (this.prevX = r[0]),
  5207. (this.prevY = r[1]),
  5208. (this.startX = r[0]),
  5209. (this.startY = r[1]),
  5210. (n = r[0]),
  5211. (a = r[1]),
  5212. (this.isFlag = !0);
  5213. else {
  5214. var o = this.isDrag;
  5215. (n = this.prevX + r[0]),
  5216. (a = this.prevY + r[1]),
  5217. (r[0] || r[1]) && (this.isDrag = !0),
  5218. !o && this.isDrag && (i = !0);
  5219. }
  5220. return (
  5221. (this.prevX = n),
  5222. (this.prevY = a),
  5223. {
  5224. type: 'drag',
  5225. clientX: n,
  5226. clientY: a,
  5227. inputEvent: e,
  5228. isFirstDrag: i,
  5229. isDrag: this.isDrag,
  5230. distX: n - this.startX,
  5231. distY: a - this.startY,
  5232. deltaX: r[0],
  5233. deltaY: r[1],
  5234. datas: this.datas[this.ableName],
  5235. originalDatas: this.datas,
  5236. parentEvent: !0,
  5237. parentGesto: this
  5238. }
  5239. );
  5240. }),
  5241. t
  5242. );
  5243. })();
  5244. function Lr(t, r, e, n) {
  5245. var a = t.length === 16,
  5246. i = a ? 4 : 3,
  5247. o = kr(t, e, n, i),
  5248. s = B(o, 4),
  5249. u = B(s[0], 2),
  5250. l = u[0],
  5251. f = u[1],
  5252. c = B(s[1], 2),
  5253. v = c[0],
  5254. p = c[1],
  5255. d = B(s[2], 2),
  5256. g = d[0],
  5257. h = d[1],
  5258. A = B(s[3], 2),
  5259. m = A[0],
  5260. E = A[1],
  5261. y = B(Ct(t, r, i), 2),
  5262. b = y[0],
  5263. C = y[1],
  5264. S = Math.min(l, v, g, m),
  5265. D = Math.min(f, p, h, E),
  5266. x = Math.max(l, v, g, m),
  5267. w = Math.max(f, p, h, E);
  5268. (l = l - S || 0),
  5269. (v = v - S || 0),
  5270. (g = g - S || 0),
  5271. (m = m - S || 0),
  5272. (f = f - D || 0),
  5273. (p = p - D || 0),
  5274. (h = h - D || 0),
  5275. (E = E - D || 0),
  5276. (b = b - S || 0),
  5277. (C = C - D || 0);
  5278. var T = t[0],
  5279. I = t[i + 1],
  5280. M = Xt(T * I);
  5281. return {
  5282. left: S,
  5283. top: D,
  5284. right: x,
  5285. bottom: w,
  5286. origin: [b, C],
  5287. pos1: [l, f],
  5288. pos2: [v, p],
  5289. pos3: [g, h],
  5290. pos4: [m, E],
  5291. direction: M
  5292. };
  5293. }
  5294. function Xo(t, r) {
  5295. var e = r.clientX,
  5296. n = r.clientY,
  5297. a = r.datas,
  5298. i = t.state,
  5299. o = i.moveableClientRect,
  5300. s = i.rootMatrix,
  5301. u = i.is3d,
  5302. l = i.pos1,
  5303. f = o.left,
  5304. c = o.top,
  5305. v = u ? 4 : 3,
  5306. p = B(tt(Xr(s, [e - f, n - c], v), l), 2),
  5307. d = p[0],
  5308. g = p[1],
  5309. h = B(ir({ datas: a, distX: d, distY: g }), 2),
  5310. A = h[0],
  5311. m = h[1];
  5312. return [A, m];
  5313. }
  5314. function Pr(t, r) {
  5315. var e = r.datas,
  5316. n = t.state,
  5317. a = n.allMatrix,
  5318. i = n.beforeMatrix,
  5319. o = n.is3d,
  5320. s = n.left,
  5321. u = n.top,
  5322. l = n.origin,
  5323. f = n.offsetMatrix,
  5324. c = n.targetMatrix,
  5325. v = n.transformOrigin,
  5326. p = o ? 4 : 3;
  5327. (e.is3d = o),
  5328. (e.matrix = a),
  5329. (e.targetMatrix = c),
  5330. (e.beforeMatrix = i),
  5331. (e.offsetMatrix = f),
  5332. (e.transformOrigin = v),
  5333. (e.inverseMatrix = ar(a, p)),
  5334. (e.inverseBeforeMatrix = ar(i, p)),
  5335. (e.absoluteOrigin = Mr(ft([s, u], l), p)),
  5336. (e.startDragBeforeDist = Nt(e.inverseBeforeMatrix, e.absoluteOrigin, p)),
  5337. (e.startDragDist = Nt(e.inverseMatrix, e.absoluteOrigin, p));
  5338. }
  5339. function Iv(t) {
  5340. return Lr(t.datas.beforeTransform, [50, 50], 100, 100).direction;
  5341. }
  5342. function un(t, r) {
  5343. var e = t.datas,
  5344. n = t.originalDatas.beforeRenderable,
  5345. a = e.transformIndex,
  5346. i = n.nextTransforms,
  5347. o = i.length,
  5348. s = n.nextTransformAppendedIndexes,
  5349. u = -1;
  5350. a === -1
  5351. ? (r === 'translate'
  5352. ? (u = 0)
  5353. : r === 'rotate' &&
  5354. (u = lr(i, function (v) {
  5355. return v.match(/scale\(/g);
  5356. })),
  5357. u === -1 && (u = i.length),
  5358. (e.transformIndex = u))
  5359. : Kt(s, function (v) {
  5360. return v.index === a && v.functionName === r;
  5361. })
  5362. ? (u = a)
  5363. : (u =
  5364. a +
  5365. s.filter(function (v) {
  5366. return v.index < a;
  5367. }).length);
  5368. var l = td(i, u),
  5369. f = l.targetFunction,
  5370. c = r === 'rotate' ? 'rotateZ' : r;
  5371. (e.beforeFunctionTexts = l.beforeFunctionTexts),
  5372. (e.afterFunctionTexts = l.afterFunctionTexts),
  5373. (e.beforeTransform = l.beforeFunctionMatrix),
  5374. (e.beforeTransform2 = l.beforeFunctionMatrix2),
  5375. (e.targetTansform = l.targetFunctionMatrix),
  5376. (e.afterTransform = l.afterFunctionMatrix),
  5377. (e.afterTransform2 = l.afterFunctionMatrix2),
  5378. (e.targetAllTransform = l.allFunctionMatrix),
  5379. f.functionName === c
  5380. ? (e.afterFunctionTexts.splice(0, 1), (e.isAppendTransform = !1))
  5381. : o > u &&
  5382. ((e.isAppendTransform = !0),
  5383. (n.nextTransformAppendedIndexes = U(
  5384. U([], B(s), !1),
  5385. [{ functionName: r, index: u, isAppend: !0 }],
  5386. !1
  5387. )));
  5388. }
  5389. function ln(t, r, e) {
  5390. return ''
  5391. .concat(t.beforeFunctionTexts.join(' '), ' ')
  5392. .concat(t.isAppendTransform ? e : r, ' ')
  5393. .concat(t.afterFunctionTexts.join(' '));
  5394. }
  5395. function Tv(t) {
  5396. var r = t.datas,
  5397. e = t.distX,
  5398. n = t.distY,
  5399. a = B(Ko({ datas: r, distX: e, distY: n }), 2),
  5400. i = a[0],
  5401. o = a[1],
  5402. s = qo(r, Oc([i, o], 4));
  5403. return Nt(s, Mr([0, 0, 0], 4), 4);
  5404. }
  5405. function qo(t, r, e) {
  5406. var n = t.beforeTransform,
  5407. a = t.afterTransform,
  5408. i = t.beforeTransform2,
  5409. o = t.afterTransform2,
  5410. s = t.targetAllTransform,
  5411. u = e ? ht(s, r, 4) : ht(r, s, 4),
  5412. l = ht(ar(e ? i : n, 4), u, 4),
  5413. f = ht(l, ar(e ? o : a, 4), 4);
  5414. return f;
  5415. }
  5416. function Ko(t) {
  5417. var r = t.datas,
  5418. e = t.distX,
  5419. n = t.distY,
  5420. a = r.inverseBeforeMatrix,
  5421. i = r.is3d,
  5422. o = r.startDragBeforeDist,
  5423. s = r.absoluteOrigin,
  5424. u = i ? 4 : 3;
  5425. return tt(Nt(a, ft(s, [e, n]), u), o);
  5426. }
  5427. function ir(t, r) {
  5428. var e = t.datas,
  5429. n = t.distX,
  5430. a = t.distY,
  5431. i = e.inverseBeforeMatrix,
  5432. o = e.inverseMatrix,
  5433. s = e.is3d,
  5434. u = e.startDragBeforeDist,
  5435. l = e.startDragDist,
  5436. f = e.absoluteOrigin,
  5437. c = s ? 4 : 3;
  5438. return tt(Nt(r ? i : o, ft(f, [n, a]), c), r ? u : l);
  5439. }
  5440. function Ov(t, r) {
  5441. var e = t.datas,
  5442. n = t.distX,
  5443. a = t.distY,
  5444. i = e.beforeMatrix,
  5445. o = e.matrix,
  5446. s = e.is3d,
  5447. u = e.startDragBeforeDist,
  5448. l = e.startDragDist,
  5449. f = e.absoluteOrigin,
  5450. c = s ? 4 : 3;
  5451. return tt(Nt(r ? i : o, ft(r ? u : l, [n, a]), c), f);
  5452. }
  5453. function Pv(t, r, e, n, a, i) {
  5454. return (
  5455. n === void 0 && (n = r),
  5456. a === void 0 && (a = e),
  5457. i === void 0 && (i = [0, 0]),
  5458. t
  5459. ? t.map(function (o, s) {
  5460. var u = ge(o),
  5461. l = u.value,
  5462. f = u.unit,
  5463. c = s ? a : n,
  5464. v = s ? e : r;
  5465. if (o === '%' || isNaN(l)) {
  5466. var p = c ? i[s] / c : 0;
  5467. return v * p;
  5468. } else if (f !== '%') return l;
  5469. return (v * l) / 100;
  5470. })
  5471. : i
  5472. );
  5473. }
  5474. function Jo(t) {
  5475. var r = [];
  5476. return (
  5477. t[1] >= 0 && (t[0] >= 0 && r.push(3), t[0] <= 0 && r.push(2)),
  5478. t[1] <= 0 && (t[0] >= 0 && r.push(1), t[0] <= 0 && r.push(0)),
  5479. r
  5480. );
  5481. }
  5482. function kv(t, r) {
  5483. return Jo(r).map(function (e) {
  5484. return t[e];
  5485. });
  5486. }
  5487. function Ot(t, r) {
  5488. var e = (r[0] + 1) / 2,
  5489. n = (r[1] + 1) / 2,
  5490. a = [Er(t[0][0], t[1][0], e, 1 - e), Er(t[0][1], t[1][1], e, 1 - e)],
  5491. i = [Er(t[2][0], t[3][0], e, 1 - e), Er(t[2][1], t[3][1], e, 1 - e)];
  5492. return [Er(a[0], i[0], n, 1 - n), Er(a[1], i[1], n, 1 - n)];
  5493. }
  5494. function Gv(t, r, e, n, a, i) {
  5495. var o = kr(r, e, n, a),
  5496. s = Ot(o, i),
  5497. u = t[0] - s[0],
  5498. l = t[1] - s[1];
  5499. return [u, l];
  5500. }
  5501. function be(t, r, e, n) {
  5502. return ht(t, se(r, n, e), n);
  5503. }
  5504. function Nv(t, r, e, n) {
  5505. var a = t.transformOrigin,
  5506. i = t.offsetMatrix,
  5507. o = t.is3d,
  5508. s = o ? 4 : 3,
  5509. u;
  5510. if (Wt(e)) {
  5511. var l = r.beforeTransform,
  5512. f = r.afterTransform;
  5513. n ? (u = rr(Qe(e), 4, s)) : (u = rr(ht(ht(l, Qe([e]), 4), f, 4), 4, s));
  5514. } else u = e;
  5515. return be(i, u, a, s);
  5516. }
  5517. function Fv(t, r) {
  5518. var e = t.transformOrigin,
  5519. n = t.offsetMatrix,
  5520. a = t.is3d,
  5521. i = t.targetMatrix,
  5522. o = t.targetAllTransform,
  5523. s = a ? 4 : 3;
  5524. return be(n, ht(o || i, Ye(r, s), s), e, s);
  5525. }
  5526. function fn(t) {
  5527. var r = _r(t);
  5528. return {
  5529. setTransform: function (e, n) {
  5530. n === void 0 && (n = -1),
  5531. (r.startTransforms = Rt(e) ? e : Ar(e)),
  5532. _n(t, n);
  5533. },
  5534. setTransformIndex: function (e) {
  5535. _n(t, e);
  5536. }
  5537. };
  5538. }
  5539. function cn(t, r) {
  5540. var e = _r(t),
  5541. n = e.startTransforms;
  5542. _n(
  5543. t,
  5544. lr(n, function (a) {
  5545. return a.indexOf(''.concat(r, '(')) === 0;
  5546. })
  5547. );
  5548. }
  5549. function _n(t, r) {
  5550. var e = _r(t),
  5551. n = t.datas;
  5552. if (((n.transformIndex = r), r !== -1)) {
  5553. var a = e.startTransforms[r];
  5554. if (a) {
  5555. var i = Vr([a]);
  5556. n.startValue = i[0].functionValue;
  5557. }
  5558. }
  5559. }
  5560. function Ia(t, r) {
  5561. var e = _r(t);
  5562. e.nextTransforms = Ar(r);
  5563. }
  5564. function _r(t) {
  5565. return t.originalDatas.beforeRenderable;
  5566. }
  5567. function qe(t) {
  5568. var r = t.originalDatas.beforeRenderable;
  5569. return r.nextTransforms;
  5570. }
  5571. function Te(t) {
  5572. return (qe(t) || []).join(' ');
  5573. }
  5574. function Oe(t) {
  5575. return _r(t).nextStyle;
  5576. }
  5577. function jo(t, r, e, n, a) {
  5578. Ia(a, r);
  5579. var i = Ht.drag(t, De(a, t.state, e, n, !1)),
  5580. o = i ? i.transform : r;
  5581. return R(R({ transform: r, drag: i }, Lt({ transform: o }, a)), {
  5582. afterTransform: o
  5583. });
  5584. }
  5585. function Ta(t, r, e, n, a, i) {
  5586. var o = Nv(t.state, a, r, i),
  5587. s = Lv(t, e, n, o);
  5588. return s;
  5589. }
  5590. function Zo(t, r, e, n, a, i, o) {
  5591. var s = Ta(t, r, e, a, i, o),
  5592. u = t.state,
  5593. l = u.left,
  5594. f = u.top,
  5595. c = t.props.groupable,
  5596. v = c ? l : 0,
  5597. p = c ? f : 0,
  5598. d = tt(n, s);
  5599. return tt(d, [v, p]);
  5600. }
  5601. function zv(t, r, e, n, a, i, o) {
  5602. var s = Zo(t, r, e, n, a, i, o);
  5603. return s;
  5604. }
  5605. function Hv(t, r, e) {
  5606. return [r ? -1 + t[0] / (r / 2) : 0, e ? -1 + t[1] / (e / 2) : 0];
  5607. }
  5608. function Lv(t, r, e, n) {
  5609. n === void 0 && (n = t.state.allMatrix);
  5610. var a = t.state,
  5611. i = a.width,
  5612. o = a.height,
  5613. s = a.is3d,
  5614. u = s ? 4 : 3,
  5615. l = [(i / 2) * (1 + r[0]) + e[0], (o / 2) * (1 + r[1]) + e[1]];
  5616. return Ct(n, l, u);
  5617. }
  5618. function Uv(t, r, e) {
  5619. var n = e.fixedDirection,
  5620. a = e.fixedPosition,
  5621. i = e.fixedOffset;
  5622. return Zo(t, 'rotate('.concat(r, 'deg)'), n, a, i, e);
  5623. }
  5624. function Vv(t, r, e, n, a, i) {
  5625. var o = t.props.groupable,
  5626. s = t.state,
  5627. u = s.transformOrigin,
  5628. l = s.offsetMatrix,
  5629. f = s.is3d,
  5630. c = s.width,
  5631. v = s.height,
  5632. p = s.left,
  5633. d = s.top,
  5634. g = i.fixedDirection,
  5635. h = i.nextTargetMatrix || s.targetMatrix,
  5636. A = f ? 4 : 3,
  5637. m = Pv(a, r, e, c, v, u),
  5638. E = o ? p : 0,
  5639. y = o ? d : 0,
  5640. b = be(l, h, m, A),
  5641. C = Gv(n, b, r, e, A, g);
  5642. return tt(C, [E, y]);
  5643. }
  5644. function Wv(t, r) {
  5645. return Ot(jt(t.state), r);
  5646. }
  5647. function Yv(t, r) {
  5648. var e = t.targetGesto,
  5649. n = t.controlGesto,
  5650. a;
  5651. return (
  5652. e != null && e.isFlag() && (a = e.getEventData()[r]),
  5653. !a && n != null && n.isFlag() && (a = n.getEventData()[r]),
  5654. a || {}
  5655. );
  5656. }
  5657. function Qv(t) {
  5658. if (t && t.getRootNode) {
  5659. var r = t.getRootNode();
  5660. if (r.nodeType === 11) return r;
  5661. }
  5662. }
  5663. function _o(t, r, e) {
  5664. for (
  5665. var n = t,
  5666. a = [],
  5667. i = ma(t) || Cr(t),
  5668. o = (!e && t === r) || t === i,
  5669. s = o,
  5670. u = !1,
  5671. l = 3,
  5672. f,
  5673. c,
  5674. v,
  5675. p = !1,
  5676. d = pe(r, r, !0).offsetParent,
  5677. g = 1;
  5678. n && !s;
  5679. ) {
  5680. s = o;
  5681. var h = Yt(n),
  5682. A = h('position'),
  5683. m = h('scale'),
  5684. E = Cs(n),
  5685. y = A === 'fixed',
  5686. b = Pc(Up(E)),
  5687. C = void 0,
  5688. S = !1,
  5689. D = !1,
  5690. x = 0,
  5691. w = 0,
  5692. T = 0,
  5693. I = 0,
  5694. M = { hasTransform: !1, fixedContainer: null };
  5695. y && ((p = !0), (M = Xp(n)), (d = M.fixedContainer));
  5696. var O = b.length;
  5697. !u && O === 16 && ((u = !0), (l = 4), aa(a), v && (v = rr(v, 3, 4))),
  5698. u && O === 9 && (b = rr(b, 3, 4));
  5699. var P = Qp(n, t),
  5700. z = P.tagName,
  5701. H = P.hasOffset,
  5702. G = P.isSVG,
  5703. L = P.origin,
  5704. V = P.targetOrigin,
  5705. F = P.offset,
  5706. Q = B(F, 2),
  5707. j = Q[0],
  5708. K = Q[1];
  5709. z === 'svg' &&
  5710. v &&
  5711. (a.push({ type: 'target', target: n, matrix: qp(n, l) }),
  5712. a.push({ type: 'offset', target: n, matrix: St(l) }));
  5713. var X = parseFloat(h('zoom')) || 1;
  5714. if (y) (C = M.fixedContainer), (S = !0);
  5715. else {
  5716. var W = pe(n, r, !1, !0, h),
  5717. _ = W.offsetZoom;
  5718. if (
  5719. ((C = W.offsetParent),
  5720. (S = W.isEnd),
  5721. (D = W.isStatic),
  5722. (g *= _),
  5723. (W.isCustomElement || _ !== 1) && D)
  5724. )
  5725. (j -= C.offsetLeft), (K -= C.offsetTop);
  5726. else if (bv || Dv) {
  5727. var rt = W.parentSlotElement;
  5728. if (rt) {
  5729. for (var lt = C, et = 0, Z = 0; lt && Qv(lt); )
  5730. (et += lt.offsetLeft), (Z += lt.offsetTop), (lt = lt.offsetParent);
  5731. (j -= et), (K -= Z);
  5732. }
  5733. }
  5734. }
  5735. if (
  5736. (Lo &&
  5737. !xv &&
  5738. H &&
  5739. !G &&
  5740. D &&
  5741. (A === 'relative' || A === 'static') &&
  5742. ((j -= C.offsetLeft), (K -= C.offsetTop), (o = o || S)),
  5743. y)
  5744. )
  5745. H && M.hasTransform && ((T = C.clientLeft), (I = C.clientTop));
  5746. else if (
  5747. (H && d !== C && ((x = C.clientLeft), (w = C.clientTop)), H && C === i)
  5748. ) {
  5749. var J = Es(n, !1);
  5750. (j += J[0]), (K += J[1]);
  5751. }
  5752. if (
  5753. (a.push({ type: 'target', target: n, matrix: se(b, l, L) }),
  5754. m && m !== '1' && m !== 'none')
  5755. ) {
  5756. var vt = B(
  5757. m.split(' ').map(function (yt) {
  5758. return parseFloat(yt);
  5759. }),
  5760. 2
  5761. ),
  5762. at = vt[0],
  5763. it = vt[1],
  5764. ut = it === void 0 ? at : it,
  5765. At = Ye([at, ut], l);
  5766. a.push({ type: 'offset', target: n, matrix: St(l) }),
  5767. a.push({ type: 'target', target: n, matrix: se(At, l, L) });
  5768. }
  5769. if (H) {
  5770. var pt = n === t,
  5771. st = pt ? 0 : n.scrollLeft,
  5772. ct = pt ? 0 : n.scrollTop;
  5773. a.push({
  5774. type: 'offset',
  5775. target: n,
  5776. matrix: Ir([j - st + x - T, K - ct + w - I], l)
  5777. });
  5778. } else a.push({ type: 'offset', target: n, origin: L });
  5779. if (
  5780. (X !== 1 &&
  5781. a.push({
  5782. type: 'zoom',
  5783. target: n,
  5784. matrix: se(Ye([X, X], l), l, [0, 0])
  5785. }),
  5786. v || (v = b),
  5787. f || (f = L),
  5788. c || (c = V),
  5789. s || y)
  5790. )
  5791. break;
  5792. (n = C), (o = S), (!e || n === i) && (s = o);
  5793. }
  5794. return (
  5795. v || (v = St(l)),
  5796. f || (f = [0, 0]),
  5797. c || (c = [0, 0]),
  5798. {
  5799. zoom: g,
  5800. offsetContainer: d,
  5801. matrixes: a,
  5802. targetMatrix: v,
  5803. transformOrigin: f,
  5804. targetOrigin: c,
  5805. is3d: u,
  5806. hasFixed: p
  5807. }
  5808. );
  5809. }
  5810. var yr = null,
  5811. Dr = null,
  5812. zr = null;
  5813. function Yr(t) {
  5814. t
  5815. ? (window.Map && ((yr = new Map()), (Dr = new Map())), (zr = []))
  5816. : ((yr = null), (zr = null), (Dr = null));
  5817. }
  5818. function Xv(t) {
  5819. var r = Dr == null ? void 0 : Dr.get(t);
  5820. if (r) return r;
  5821. var e = ue(t, !0);
  5822. return Dr && Dr.set(t, e), e;
  5823. }
  5824. function qv(t, r) {
  5825. if (zr) {
  5826. var e = Kt(zr, function (a) {
  5827. return a[0][0] == t && a[0][1] == r;
  5828. });
  5829. if (e) return e[1];
  5830. }
  5831. var n = _o(t, r, !0);
  5832. return zr && zr.push([[t, r], n]), n;
  5833. }
  5834. function Yt(t) {
  5835. var r = yr == null ? void 0 : yr.get(t);
  5836. if (!r) {
  5837. var e = hr(t).getComputedStyle(t);
  5838. if (!yr)
  5839. return function (i) {
  5840. return e[i];
  5841. };
  5842. (r = { style: e, cached: {} }), yr.set(t, r);
  5843. }
  5844. var n = r.cached,
  5845. a = r.style;
  5846. return function (i) {
  5847. return i in n || (n[i] = a[i]), n[i];
  5848. };
  5849. }
  5850. function $t(t, r, e) {
  5851. var n = e.originalDatas;
  5852. n.groupable = n.groupable || {};
  5853. var a = n.groupable;
  5854. a.childDatas = a.childDatas || [];
  5855. var i = a.childDatas;
  5856. return t.moveables.map(function (o, s) {
  5857. return (
  5858. (i[s] = i[s] || {}),
  5859. (i[s][r] = i[s][r] || {}),
  5860. R(R({}, e), { datas: i[s][r], originalDatas: i[s] })
  5861. );
  5862. });
  5863. }
  5864. function Rn(t, r, e, n, a, i, o) {
  5865. var s = !!e.match(/Start$/g),
  5866. u = !!e.match(/End$/g),
  5867. l = a.isPinch,
  5868. f = a.datas,
  5869. c = $t(t, r.name, a),
  5870. v = t.moveables,
  5871. p = c.map(function (d, g) {
  5872. var h = v[g],
  5873. A = h.state,
  5874. m = A.gestos,
  5875. E = d;
  5876. if (s) E = new Wr(o).dragStart(n, d);
  5877. else {
  5878. if ((m[o] || (m[o] = f.childGestos[g]), !m[o])) return;
  5879. E = De(d, A, n, l, i, o);
  5880. }
  5881. var y = r[e](h, R(R({}, E), { parentFlag: !0 }));
  5882. return u && (m[o] = null), y;
  5883. });
  5884. return (
  5885. s &&
  5886. (f.childGestos = v.map(function (d) {
  5887. return d.state.gestos[o];
  5888. })),
  5889. p
  5890. );
  5891. }
  5892. function ur(t, r, e, n, a, i) {
  5893. a === void 0 &&
  5894. (a = function (f, c) {
  5895. return c;
  5896. });
  5897. var o = !!e.match(/End$/g),
  5898. s = $t(t, r.name, n),
  5899. u = t.moveables,
  5900. l = s.map(function (f, c) {
  5901. var v = u[c],
  5902. p = f;
  5903. p = a(v, f);
  5904. var d = r[e](v, R(R({}, p), { parentFlag: !0 }));
  5905. return d && i && i(v, f, d, c), o && (v.state.gestos = {}), d;
  5906. });
  5907. return l;
  5908. }
  5909. function Ke(t, r, e, n) {
  5910. var a = e.fixedDirection,
  5911. i = e.fixedPosition,
  5912. o = n.datas.startPositions || jt(r.state),
  5913. s = Ot(o, a),
  5914. u = B(
  5915. Nt(
  5916. Ce((-t.rotation / 180) * Math.PI, 3),
  5917. [s[0] - i[0], s[1] - i[1], 1],
  5918. 3
  5919. ),
  5920. 2
  5921. ),
  5922. l = u[0],
  5923. f = u[1];
  5924. return (n.datas.originalX = l), (n.datas.originalY = f), n;
  5925. }
  5926. function $o(t, r, e, n) {
  5927. var a = t.getState(),
  5928. i = a.renderPoses,
  5929. o = a.rotation,
  5930. s = a.direction,
  5931. u = Or(t.props, r).zoom,
  5932. l = oe((o / Math.PI) * 180),
  5933. f = {},
  5934. c = t.renderState;
  5935. c.renderDirectionMap || (c.renderDirectionMap = {});
  5936. var v = c.renderDirectionMap;
  5937. e.forEach(function (d) {
  5938. var g = d.dir;
  5939. f[g] = !0;
  5940. });
  5941. var p = Xt(s);
  5942. return e.map(function (d) {
  5943. var g = d.data,
  5944. h = d.classNames,
  5945. A = d.dir,
  5946. m = Ma[A];
  5947. if (!m || !f[A]) return null;
  5948. v[A] = !0;
  5949. var E = (nt(l, 15) + p * Yo[A] + 720) % 180,
  5950. y = {};
  5951. return (
  5952. fr(g).forEach(function (b) {
  5953. y['data-'.concat(b)] = g[b];
  5954. }),
  5955. n.createElement(
  5956. 'div',
  5957. R(
  5958. {
  5959. className: $.apply(
  5960. void 0,
  5961. U(['control', 'direction', A, r], B(h), !1)
  5962. ),
  5963. 'data-rotation': E,
  5964. 'data-direction': A
  5965. },
  5966. y,
  5967. {
  5968. key: 'direction-'.concat(A),
  5969. style: _e.apply(
  5970. void 0,
  5971. U(
  5972. [o, u],
  5973. B(
  5974. m.map(function (b) {
  5975. return i[b];
  5976. })
  5977. ),
  5978. !1
  5979. )
  5980. )
  5981. }
  5982. )
  5983. )
  5984. );
  5985. });
  5986. }
  5987. function ts(t, r, e, n) {
  5988. var a = Or(t.props, e),
  5989. i = a.renderDirections,
  5990. o = i === void 0 ? r : i,
  5991. s = a.displayAroundControls;
  5992. if (!o) return [];
  5993. var u = o === !0 ? Ra : o;
  5994. return U(
  5995. U([], B(s ? as(t, n, e, u) : []), !1),
  5996. B(
  5997. $o(
  5998. t,
  5999. e,
  6000. u.map(function (l) {
  6001. return { data: {}, classNames: [], dir: l };
  6002. }),
  6003. n
  6004. )
  6005. ),
  6006. !1
  6007. );
  6008. }
  6009. function ve(t, r, e, n, a, i) {
  6010. for (var o = [], s = 6; s < arguments.length; s++) o[s - 6] = arguments[s];
  6011. var u = Et(e, n),
  6012. l = r ? nt((u / Math.PI) * 180, 15) % 180 : -1;
  6013. return t.createElement('div', {
  6014. key: 'line-'.concat(i),
  6015. className: $.apply(
  6016. void 0,
  6017. U(['line', 'direction', r ? 'edge' : '', r], B(o), !1)
  6018. ),
  6019. 'data-rotation': l,
  6020. 'data-line-key': i,
  6021. 'data-direction': r,
  6022. style: ne(e, n, a, u)
  6023. });
  6024. }
  6025. function rs(t, r, e, n, a) {
  6026. var i = e === !0 ? Av : e;
  6027. return i
  6028. .map(function (o, s) {
  6029. var u = B(Ma[o], 2),
  6030. l = u[0],
  6031. f = u[1];
  6032. if (f != null)
  6033. return ve(t, o, n[l], n[f], a, ''.concat(r, 'Edge').concat(s), r);
  6034. })
  6035. .filter(Boolean);
  6036. }
  6037. function es(t) {
  6038. return function (r, e) {
  6039. var n = Or(r.props, t).edge;
  6040. return n && (n === !0 || n.length)
  6041. ? U(
  6042. U([], B(rs(e, t, n, r.getState().renderPoses, r.props.zoom)), !1),
  6043. B(Kv(r, t, e)),
  6044. !1
  6045. )
  6046. : ns(r, t, e);
  6047. };
  6048. }
  6049. function ns(t, r, e) {
  6050. return ts(t, Ra, r, e);
  6051. }
  6052. function Kv(t, r, e) {
  6053. return ts(t, ['nw', 'ne', 'sw', 'se'], r, e);
  6054. }
  6055. function as(t, r, e, n) {
  6056. var a = t.renderState;
  6057. a.renderDirectionMap || (a.renderDirectionMap = {});
  6058. var i = t.getState(),
  6059. o = i.renderPoses,
  6060. s = i.rotation,
  6061. u = i.direction,
  6062. l = a.renderDirectionMap,
  6063. f = t.props.zoom,
  6064. c = Xt(u),
  6065. v = (s / Math.PI) * 180;
  6066. return (n || fr(l)).map(function (p) {
  6067. var d = Ma[p];
  6068. if (!d) return null;
  6069. var g = (nt(v, 15) + c * Yo[p] + 720) % 180,
  6070. h = ['around-control'];
  6071. return (
  6072. e && h.push('direction', e),
  6073. r.createElement('div', {
  6074. className: $.apply(void 0, U([], B(h), !1)),
  6075. 'data-rotation': g,
  6076. 'data-direction': p,
  6077. key: 'direction-around-'.concat(p),
  6078. style: _e.apply(
  6079. void 0,
  6080. U(
  6081. [s, f],
  6082. B(
  6083. d.map(function (A) {
  6084. return o[A];
  6085. })
  6086. ),
  6087. !1
  6088. )
  6089. )
  6090. })
  6091. );
  6092. });
  6093. }
  6094. function Oa(t, r, e) {
  6095. var n = t || {},
  6096. a = n.position,
  6097. i = a === void 0 ? 'client' : a,
  6098. o = n.left,
  6099. s = o === void 0 ? -1 / 0 : o,
  6100. u = n.top,
  6101. l = u === void 0 ? -1 / 0 : u,
  6102. f = n.right,
  6103. c = f === void 0 ? 1 / 0 : f,
  6104. v = n.bottom,
  6105. p = v === void 0 ? 1 / 0 : v,
  6106. d = { position: i, left: s, top: l, right: c, bottom: p };
  6107. return { vertical: Di(d, r, !0), horizontal: Di(d, e, !1) };
  6108. }
  6109. function vn(t, r) {
  6110. var e = t.state,
  6111. n = e.containerClientRect,
  6112. a = n.clientHeight,
  6113. i = n.clientWidth,
  6114. o = n.clientLeft,
  6115. s = n.clientTop,
  6116. u = e.snapOffset,
  6117. l = u.left,
  6118. f = u.top,
  6119. c = u.right,
  6120. v = u.bottom,
  6121. p = r || t.props.bounds || {},
  6122. d = p.position || 'client',
  6123. g = d === 'css',
  6124. h = p.left,
  6125. A = h === void 0 ? -1 / 0 : h,
  6126. m = p.top,
  6127. E = m === void 0 ? -1 / 0 : m,
  6128. y = p.right,
  6129. b = y === void 0 ? (g ? -1 / 0 : 1 / 0) : y,
  6130. C = p.bottom,
  6131. S = C === void 0 ? (g ? -1 / 0 : 1 / 0) : C;
  6132. return (
  6133. g && ((b = i + c - l - b), (S = a + v - f - S)),
  6134. { left: A + l - o, right: b + l - o, top: E + f - s, bottom: S + f - s }
  6135. );
  6136. }
  6137. function Jv(t, r, e) {
  6138. var n = vn(t),
  6139. a = n.left,
  6140. i = n.top,
  6141. o = n.right,
  6142. s = n.bottom,
  6143. u = B(e, 2),
  6144. l = u[0],
  6145. f = u[1],
  6146. c = B(tt(e, r), 2),
  6147. v = c[0],
  6148. p = c[1];
  6149. N(v) < Ut && (v = 0), N(p) < Ut && (p = 0);
  6150. var d = p > 0,
  6151. g = v > 0,
  6152. h = { isBound: !1, offset: 0, pos: 0 },
  6153. A = { isBound: !1, offset: 0, pos: 0 };
  6154. if (v === 0 && p === 0) return { vertical: h, horizontal: A };
  6155. if (v === 0)
  6156. d
  6157. ? s < f && ((A.pos = s), (A.offset = f - s))
  6158. : i > f && ((A.pos = i), (A.offset = f - i));
  6159. else if (p === 0)
  6160. g
  6161. ? o < l && ((h.pos = o), (h.offset = l - o))
  6162. : a > l && ((h.pos = a), (h.offset = l - a));
  6163. else {
  6164. var m = p / v,
  6165. E = e[1] - m * l,
  6166. y = 0,
  6167. b = 0,
  6168. C = !1;
  6169. g && o <= l
  6170. ? ((y = m * o + E), (b = o), (C = !0))
  6171. : !g && l <= a && ((y = m * a + E), (b = a), (C = !0)),
  6172. C && (y < i || y > s) && (C = !1),
  6173. C ||
  6174. (d && s <= f
  6175. ? ((y = s), (b = (y - E) / m), (C = !0))
  6176. : !d && f <= i && ((y = i), (b = (y - E) / m), (C = !0))),
  6177. C &&
  6178. ((h.isBound = !0),
  6179. (h.pos = b),
  6180. (h.offset = l - b),
  6181. (A.isBound = !0),
  6182. (A.pos = y),
  6183. (A.offset = f - y));
  6184. }
  6185. return { vertical: h, horizontal: A };
  6186. }
  6187. function Di(t, r, e) {
  6188. var n = t[e ? 'left' : 'top'],
  6189. a = t[e ? 'right' : 'bottom'],
  6190. i = Math.min.apply(Math, U([], B(r), !1)),
  6191. o = Math.max.apply(Math, U([], B(r), !1)),
  6192. s = [];
  6193. return (
  6194. n + 1 > i && s.push({ isBound: !0, offset: i - n, pos: n }),
  6195. a - 1 < o && s.push({ isBound: !0, offset: o - a, pos: a }),
  6196. s.length || s.push({ isBound: !1, offset: 0, pos: 0 }),
  6197. s.sort(function (u, l) {
  6198. return N(l.offset) - N(u.offset);
  6199. })
  6200. );
  6201. }
  6202. function bi(t, r, e) {
  6203. var n = e
  6204. ? t.map(function (a) {
  6205. return Se(a, e);
  6206. })
  6207. : t;
  6208. return n.some(function (a) {
  6209. return (
  6210. (a[0] < r.left && N(a[0] - r.left) > 0.1) ||
  6211. (a[0] > r.right && N(a[0] - r.right) > 0.1) ||
  6212. (a[1] < r.top && N(a[1] - r.top) > 0.1) ||
  6213. (a[1] > r.bottom && N(a[1] - r.bottom) > 0.1)
  6214. );
  6215. });
  6216. }
  6217. function jv(t, r, e) {
  6218. var n = Jt(t),
  6219. a = Math.sqrt(n * n - r * r) || 0;
  6220. return [a, -a]
  6221. .sort(function (i, o) {
  6222. return N(i - t[e ? 0 : 1]) - N(o - t[e ? 0 : 1]);
  6223. })
  6224. .map(function (i) {
  6225. return Et([0, 0], e ? [i, r] : [r, i]);
  6226. });
  6227. }
  6228. function Zv(t, r, e, n, a) {
  6229. if (!t.props.bounds) return [];
  6230. var i = (a * Math.PI) / 180,
  6231. o = vn(t),
  6232. s = o.left,
  6233. u = o.top,
  6234. l = o.right,
  6235. f = o.bottom,
  6236. c = s - n[0],
  6237. v = l - n[0],
  6238. p = u - n[1],
  6239. d = f - n[1],
  6240. g = { left: c, top: p, right: v, bottom: d };
  6241. if (!bi(e, g, 0)) return [];
  6242. var h = [];
  6243. return (
  6244. [
  6245. [c, 0],
  6246. [v, 0],
  6247. [p, 1],
  6248. [d, 1]
  6249. ].forEach(function (A) {
  6250. var m = B(A, 2),
  6251. E = m[0],
  6252. y = m[1];
  6253. e.forEach(function (b) {
  6254. var C = Et([0, 0], b);
  6255. h.push.apply(
  6256. h,
  6257. U(
  6258. [],
  6259. B(
  6260. jv(b, E, y)
  6261. .map(function (S) {
  6262. return i + S - C;
  6263. })
  6264. .filter(function (S) {
  6265. return !bi(r, g, S);
  6266. })
  6267. .map(function (S) {
  6268. return nt((S * 180) / Math.PI, Ut);
  6269. })
  6270. ),
  6271. !1
  6272. )
  6273. );
  6274. });
  6275. }),
  6276. h
  6277. );
  6278. }
  6279. var _v = ['left', 'right', 'center'],
  6280. $v = ['top', 'bottom', 'middle'],
  6281. mr = { start: 'left', end: 'right', center: 'center' },
  6282. Sr = { start: 'top', end: 'bottom', center: 'middle' };
  6283. function $r(t, r) {
  6284. var e = t.props,
  6285. n = e.snappable,
  6286. a = e.bounds,
  6287. i = e.innerBounds,
  6288. o = e.verticalGuidelines,
  6289. s = e.horizontalGuidelines,
  6290. u = e.snapGridWidth,
  6291. l = e.snapGridHeight,
  6292. f = t.state,
  6293. c = f.guidelines,
  6294. v = f.enableSnap;
  6295. return !n || !v || (r && n !== !0 && n.indexOf(r) < 0)
  6296. ? !1
  6297. : !!(
  6298. u ||
  6299. l ||
  6300. a ||
  6301. i ||
  6302. (c && c.length) ||
  6303. (o && o.length) ||
  6304. (s && s.length)
  6305. );
  6306. }
  6307. function Pa(t) {
  6308. return t === !1
  6309. ? {}
  6310. : t === !0 || !t
  6311. ? { left: !0, right: !0, top: !0, bottom: !0 }
  6312. : t;
  6313. }
  6314. function tp(t, r) {
  6315. var e = Pa(t),
  6316. n = {};
  6317. for (var a in e) a in r && e[a] && (n[a] = r[a]);
  6318. return n;
  6319. }
  6320. function ka(t, r) {
  6321. var e = tp(t, r),
  6322. n = $v.filter(function (i) {
  6323. return i in e;
  6324. }),
  6325. a = _v.filter(function (i) {
  6326. return i in e;
  6327. });
  6328. return {
  6329. horizontalNames: n,
  6330. verticalNames: a,
  6331. horizontal: n.map(function (i) {
  6332. return e[i];
  6333. }),
  6334. vertical: a.map(function (i) {
  6335. return e[i];
  6336. })
  6337. };
  6338. }
  6339. function rp(t, r, e) {
  6340. var n = Ct(t, [r.clientLeft, r.clientTop], e);
  6341. return [r.left + n[0], r.top + n[1]];
  6342. }
  6343. function ep(t) {
  6344. var r = B(t, 2),
  6345. e = r[0],
  6346. n = r[1],
  6347. a = n[0] - e[0],
  6348. i = n[1] - e[1];
  6349. Math.abs(a) < wt && (a = 0), Math.abs(i) < wt && (i = 0);
  6350. var o = 0,
  6351. s = 0,
  6352. u = 0;
  6353. return (
  6354. a
  6355. ? i
  6356. ? ((o = -i / a), (s = 1), (u = o * e[0] - e[1]))
  6357. : ((s = 1), (u = -e[1]))
  6358. : ((o = -1), (u = e[0])),
  6359. [o, s, u].map(function (l) {
  6360. return nt(l, wt);
  6361. })
  6362. );
  6363. }
  6364. function pn(t, r, e, n, a, i) {
  6365. n === void 0 && (n = []), a === void 0 && (a = []);
  6366. var o = t.props,
  6367. s = _p(i, o.snapThreshold, 5);
  6368. return is(t.state.guidelines, r, e, n, a, s);
  6369. }
  6370. function is(t, r, e, n, a, i) {
  6371. return {
  6372. vertical: wi(t, 'vertical', r, i, n),
  6373. horizontal: wi(t, 'horizontal', e, i, a)
  6374. };
  6375. }
  6376. function np(t, r, e) {
  6377. var n = B(e, 2),
  6378. a = n[0],
  6379. i = n[1],
  6380. o = B(r, 2),
  6381. s = o[0],
  6382. u = o[1],
  6383. l = B(tt(e, r), 2),
  6384. f = l[0],
  6385. c = l[1],
  6386. v = c > 0,
  6387. p = f > 0;
  6388. (f = $e(f)), (c = $e(c));
  6389. var d = { isSnap: !1, offset: 0, pos: 0 },
  6390. g = { isSnap: !1, offset: 0, pos: 0 };
  6391. if (f === 0 && c === 0) return { vertical: d, horizontal: g };
  6392. var h = pn(t, f ? [a] : [], c ? [i] : []),
  6393. A = h.vertical,
  6394. m = h.horizontal;
  6395. A.posInfos.filter(function (z) {
  6396. var H = z.pos;
  6397. return p ? H >= s : H <= s;
  6398. }),
  6399. m.posInfos.filter(function (z) {
  6400. var H = z.pos;
  6401. return v ? H >= u : H <= u;
  6402. }),
  6403. (A.isSnap = A.posInfos.length > 0),
  6404. (m.isSnap = m.posInfos.length > 0);
  6405. var E = $n(A),
  6406. y = E.isSnap,
  6407. b = E.guideline,
  6408. C = $n(m),
  6409. S = C.isSnap,
  6410. D = C.guideline,
  6411. x = S ? D.pos[1] : 0,
  6412. w = y ? b.pos[0] : 0;
  6413. if (f === 0)
  6414. S && ((g.isSnap = !0), (g.pos = D.pos[1]), (g.offset = i - g.pos));
  6415. else if (c === 0) y && ((d.isSnap = !0), (d.pos = w), (d.offset = a - w));
  6416. else {
  6417. var T = c / f,
  6418. I = e[1] - T * a,
  6419. M = 0,
  6420. O = 0,
  6421. P = !1;
  6422. y
  6423. ? ((O = w), (M = T * O + I), (P = !0))
  6424. : S && ((M = x), (O = (M - I) / T), (P = !0)),
  6425. P &&
  6426. ((d.isSnap = !0),
  6427. (d.pos = O),
  6428. (d.offset = a - O),
  6429. (g.isSnap = !0),
  6430. (g.pos = M),
  6431. (g.offset = i - M));
  6432. }
  6433. return { vertical: d, horizontal: g };
  6434. }
  6435. function dr(t) {
  6436. var r = '';
  6437. return (
  6438. t === -1 || t === 'top' || t === 'left'
  6439. ? (r = 'start')
  6440. : t === 0 || t === 'center' || t === 'middle'
  6441. ? (r = 'center')
  6442. : (t === 1 || t === 'right' || t === 'bottom') && (r = 'end'),
  6443. r
  6444. );
  6445. }
  6446. function xi(t, r, e) {
  6447. var n = ka(t.props.snapDirections, r),
  6448. a = pn(
  6449. t,
  6450. n.vertical,
  6451. n.horizontal,
  6452. n.verticalNames.map(function (s) {
  6453. return dr(s);
  6454. }),
  6455. n.horizontalNames.map(function (s) {
  6456. return dr(s);
  6457. }),
  6458. e
  6459. ),
  6460. i = dr(n.horizontalNames[a.horizontal.index]),
  6461. o = dr(n.verticalNames[a.vertical.index]);
  6462. return {
  6463. vertical: R(R({}, a.vertical), { direction: o }),
  6464. horizontal: R(R({}, a.horizontal), { direction: i })
  6465. };
  6466. }
  6467. function $n(t) {
  6468. var r = t.isSnap;
  6469. if (!r) return { isSnap: !1, offset: 0, dist: -1, pos: 0, guideline: null };
  6470. var e = t.posInfos[0],
  6471. n = e.guidelineInfos[0],
  6472. a = n.offset,
  6473. i = n.dist,
  6474. o = n.guideline;
  6475. return { isSnap: r, offset: a, dist: i, pos: e.pos, guideline: o };
  6476. }
  6477. function wi(t, r, e, n, a) {
  6478. var i, o;
  6479. if ((a === void 0 && (a = []), !t || !t.length))
  6480. return { isSnap: !1, index: -1, direction: '', posInfos: [] };
  6481. var s = r === 'vertical',
  6482. u = s ? 0 : 1,
  6483. l = e
  6484. .map(function (c, v) {
  6485. var p = a[v] || '',
  6486. d = t
  6487. .map(function (g) {
  6488. var h = g.pos,
  6489. A = c - h[u];
  6490. return { offset: A, dist: N(A), guideline: g, direction: p };
  6491. })
  6492. .filter(function (g) {
  6493. var h = g.guideline,
  6494. A = g.dist,
  6495. m = h.type;
  6496. return !(m !== r || A > n);
  6497. })
  6498. .sort(function (g, h) {
  6499. return g.dist - h.dist;
  6500. });
  6501. return { pos: c, index: v, guidelineInfos: d, direction: p };
  6502. })
  6503. .filter(function (c) {
  6504. return c.guidelineInfos.length > 0;
  6505. })
  6506. .sort(function (c, v) {
  6507. return c.guidelineInfos[0].dist - v.guidelineInfos[0].dist;
  6508. }),
  6509. f = l.length > 0;
  6510. return {
  6511. isSnap: f,
  6512. index: f ? l[0].index : -1,
  6513. direction:
  6514. (o = (i = l[0]) === null || i === void 0 ? void 0 : i.direction) !==
  6515. null && o !== void 0
  6516. ? o
  6517. : '',
  6518. posInfos: l
  6519. };
  6520. }
  6521. function ap(t, r, e, n) {
  6522. n === void 0 && (n = 1);
  6523. var a = [];
  6524. e[0] && e[1]
  6525. ? (a = [e, [-e[0], e[1]], [e[0], -e[1]]])
  6526. : !e[0] && !e[1]
  6527. ? [
  6528. [-1, -1],
  6529. [1, -1],
  6530. [1, 1],
  6531. [-1, 1]
  6532. ].forEach(function (c, v, p) {
  6533. var d = p[v + 1] || p[0];
  6534. a.push(c), a.push([(c[0] + d[0]) / 2, (c[1] + d[1]) / 2]);
  6535. })
  6536. : t.props.keepRatio
  6537. ? a.push([-1, -1], [-1, 1], [1, -1], [1, 1], e)
  6538. : (a.push.apply(
  6539. a,
  6540. U(
  6541. [],
  6542. B(
  6543. kv(
  6544. [
  6545. [-1, -1],
  6546. [1, -1],
  6547. [-1, -1],
  6548. [1, 1]
  6549. ],
  6550. e
  6551. )
  6552. ),
  6553. !1
  6554. )
  6555. ),
  6556. a.length > 1 &&
  6557. a.push([(a[0][0] + a[1][0]) / 2, (a[0][1] + a[1][1]) / 2]));
  6558. var i = a.map(function (c) {
  6559. return Ot(r, c);
  6560. }),
  6561. o = i.map(function (c) {
  6562. return c[0];
  6563. }),
  6564. s = i.map(function (c) {
  6565. return c[1];
  6566. }),
  6567. u = pn(
  6568. t,
  6569. o,
  6570. s,
  6571. a.map(function (c) {
  6572. return dr(c[0]);
  6573. }),
  6574. a.map(function (c) {
  6575. return dr(c[1]);
  6576. }),
  6577. n
  6578. ),
  6579. l = dr(
  6580. a.map(function (c) {
  6581. return c[0];
  6582. })[u.vertical.index]
  6583. ),
  6584. f = dr(
  6585. a.map(function (c) {
  6586. return c[1];
  6587. })[u.horizontal.index]
  6588. );
  6589. return {
  6590. vertical: R(R({}, u.vertical), { direction: l }),
  6591. horizontal: R(R({}, u.horizontal), { direction: f })
  6592. };
  6593. }
  6594. function os(t, r) {
  6595. var e = N(t.offset),
  6596. n = N(r.offset);
  6597. return t.isBound && r.isBound
  6598. ? n - e
  6599. : t.isBound
  6600. ? -1
  6601. : r.isBound
  6602. ? 1
  6603. : t.isSnap && r.isSnap
  6604. ? n - e
  6605. : t.isSnap
  6606. ? -1
  6607. : r.isSnap || e < Ut
  6608. ? 1
  6609. : n < Ut
  6610. ? -1
  6611. : e - n;
  6612. }
  6613. function Je(t, r) {
  6614. return t.slice().sort(function (e, n) {
  6615. var a = e.sign[r],
  6616. i = n.sign[r],
  6617. o = e.offset[r],
  6618. s = n.offset[r];
  6619. if (a) {
  6620. if (!i) return -1;
  6621. } else return 1;
  6622. return os(
  6623. { isBound: e.isBound, isSnap: e.isSnap, offset: o },
  6624. { isBound: n.isBound, isSnap: n.isSnap, offset: s }
  6625. );
  6626. })[0];
  6627. }
  6628. function ip(t, r, e) {
  6629. var n = [];
  6630. if (e)
  6631. N(r[0]) !== 1 || N(r[1]) !== 1
  6632. ? n.push([r, [-1, -1]], [r, [-1, 1]], [r, [1, -1]], [r, [1, 1]])
  6633. : n.push([r, [t[0], -t[1]]], [r, [-t[0], t[1]]]),
  6634. n.push([r, t]);
  6635. else if ((t[0] && t[1]) || (!t[0] && !t[1])) {
  6636. var a = t[0] ? t : [1, 1];
  6637. [1, -1].forEach(function (o) {
  6638. [1, -1].forEach(function (s) {
  6639. var u = [o * a[0], s * a[1]];
  6640. (r[0] === u[0] && r[1] === u[1]) || n.push([r, u]);
  6641. });
  6642. });
  6643. } else if (t[0]) {
  6644. var i = N(r[0]) === 1 ? [1] : [1, -1];
  6645. i.forEach(function (o) {
  6646. n.push(
  6647. [
  6648. [r[0], -1],
  6649. [o * t[0], -1]
  6650. ],
  6651. [
  6652. [r[0], 0],
  6653. [o * t[0], 0]
  6654. ],
  6655. [
  6656. [r[0], 1],
  6657. [o * t[0], 1]
  6658. ]
  6659. );
  6660. });
  6661. } else if (t[1]) {
  6662. var i = N(r[1]) === 1 ? [1] : [1, -1];
  6663. i.forEach(function (s) {
  6664. n.push(
  6665. [
  6666. [-1, r[1]],
  6667. [-1, s * t[1]]
  6668. ],
  6669. [
  6670. [0, r[1]],
  6671. [0, s * t[1]]
  6672. ],
  6673. [
  6674. [1, r[1]],
  6675. [1, s * t[1]]
  6676. ]
  6677. );
  6678. });
  6679. }
  6680. return n;
  6681. }
  6682. function ss(t, r) {
  6683. var e = Fn([r[0][0], r[1][0]]),
  6684. n = Fn([r[0][1], r[1][1]]);
  6685. return { vertical: e <= t[0], horizontal: n <= t[1] };
  6686. }
  6687. function Ga(t, r) {
  6688. var e = B(r, 2),
  6689. n = e[0],
  6690. a = e[1],
  6691. i = a[0] - n[0],
  6692. o = a[1] - n[1];
  6693. N(i) < Ut && (i = 0), N(o) < Ut && (o = 0);
  6694. var s, u;
  6695. if (!i) (s = n[0]), (u = t[0]);
  6696. else if (!o) (s = n[1]), (u = t[1]);
  6697. else {
  6698. var l = o / i;
  6699. (s = l * (t[0] - n[0]) + n[1]), (u = t[1]);
  6700. }
  6701. return s - u;
  6702. }
  6703. function us(t, r, e, n) {
  6704. return (
  6705. n === void 0 && (n = Ut),
  6706. t.every(function (a) {
  6707. var i = Ga(a, r),
  6708. o = i <= 0;
  6709. return o === e || N(i) <= n;
  6710. })
  6711. );
  6712. }
  6713. function Ri(t, r, e, n, a) {
  6714. return (
  6715. a === void 0 && (a = 0),
  6716. (n && r - a <= t) || (!n && t <= e + a)
  6717. ? { isBound: !0, offset: n ? r - t : e - t }
  6718. : { isBound: !1, offset: 0 }
  6719. );
  6720. }
  6721. function op(t, r) {
  6722. var e = r.line,
  6723. n = r.centerSign,
  6724. a = r.verticalSign,
  6725. i = r.horizontalSign,
  6726. o = r.lineConstants,
  6727. s = t.props.innerBounds;
  6728. if (!s)
  6729. return {
  6730. isAllBound: !1,
  6731. isBound: !1,
  6732. isVerticalBound: !1,
  6733. isHorizontalBound: !1,
  6734. offset: [0, 0]
  6735. };
  6736. var u = s.left,
  6737. l = s.top,
  6738. f = s.width,
  6739. c = s.height,
  6740. v = [
  6741. [u, l],
  6742. [u, l + c]
  6743. ],
  6744. p = [
  6745. [u, l],
  6746. [u + f, l]
  6747. ],
  6748. d = [
  6749. [u + f, l],
  6750. [u + f, l + c]
  6751. ],
  6752. g = [
  6753. [u, l + c],
  6754. [u + f, l + c]
  6755. ];
  6756. if (
  6757. us(
  6758. [
  6759. [u, l],
  6760. [u + f, l],
  6761. [u, l + c],
  6762. [u + f, l + c]
  6763. ],
  6764. e,
  6765. n
  6766. )
  6767. )
  6768. return {
  6769. isAllBound: !1,
  6770. isBound: !1,
  6771. isVerticalBound: !1,
  6772. isHorizontalBound: !1,
  6773. offset: [0, 0]
  6774. };
  6775. var h = gr(e, o, p, a),
  6776. A = gr(e, o, g, a),
  6777. m = gr(e, o, v, i),
  6778. E = gr(e, o, d, i),
  6779. y = h.isBound && A.isBound,
  6780. b = h.isBound || A.isBound,
  6781. C = m.isBound && E.isBound,
  6782. S = m.isBound || E.isBound,
  6783. D = Qr(h.offset, A.offset),
  6784. x = Qr(m.offset, E.offset),
  6785. w = [0, 0],
  6786. T = !1,
  6787. I = !1;
  6788. return (
  6789. N(x) < N(D)
  6790. ? ((w = [D, 0]), (T = b), (I = y))
  6791. : ((w = [0, x]), (T = S), (I = C)),
  6792. {
  6793. isAllBound: I,
  6794. isVerticalBound: b,
  6795. isHorizontalBound: S,
  6796. isBound: T,
  6797. offset: w
  6798. }
  6799. );
  6800. }
  6801. function gr(t, r, e, n, a, i) {
  6802. var o = B(r, 2),
  6803. s = o[0],
  6804. u = o[1],
  6805. l = t[0],
  6806. f = e[0],
  6807. c = e[1],
  6808. v = $e(c[1] - f[1]),
  6809. p = $e(c[0] - f[0]),
  6810. d = u,
  6811. g = s,
  6812. h = -s / u;
  6813. if (p) {
  6814. if (!v) {
  6815. if (i && !d) return { isBound: !1, offset: 0 };
  6816. if (g) {
  6817. var y = (f[1] - l[1]) / h + l[0];
  6818. return Ri(y, f[0], c[0], n, a);
  6819. } else {
  6820. var m = f[1] - l[1],
  6821. E = N(m) <= (a || 0);
  6822. return { isBound: E, offset: E ? m : 0 };
  6823. }
  6824. }
  6825. } else {
  6826. if (i && !g) return { isBound: !1, offset: 0 };
  6827. if (d) {
  6828. var A = h * (f[0] - l[0]) + l[1];
  6829. return Ri(A, f[1], c[1], n, a);
  6830. } else {
  6831. var m = f[0] - l[0],
  6832. E = N(m) <= (a || 0);
  6833. return { isBound: E, offset: E ? m : 0 };
  6834. }
  6835. }
  6836. return { isBound: !1, offset: 0 };
  6837. }
  6838. function ls(t, r, e) {
  6839. return r.map(function (n) {
  6840. var a = op(t, n),
  6841. i = a.isBound,
  6842. o = a.offset,
  6843. s = a.isVerticalBound,
  6844. u = a.isHorizontalBound,
  6845. l = n.multiple,
  6846. f = ir({ datas: e, distX: o[0], distY: o[1] }).map(function (c, v) {
  6847. return c * (l[v] ? 2 / l[v] : 0);
  6848. });
  6849. return {
  6850. sign: l,
  6851. isBound: i,
  6852. isVerticalBound: s,
  6853. isHorizontalBound: u,
  6854. isSnap: !1,
  6855. offset: f
  6856. };
  6857. });
  6858. }
  6859. function sp(t, r, e) {
  6860. var n,
  6861. a = Na(t, r, [0, 0], !1).map(function (v) {
  6862. return R(R({}, v), {
  6863. multiple: v.multiple.map(function (p) {
  6864. return N(p) * 2;
  6865. })
  6866. });
  6867. }),
  6868. i = ls(t, a, e),
  6869. o = Je(i, 0),
  6870. s = Je(i, 1),
  6871. u = 0,
  6872. l = 0,
  6873. f = o.isVerticalBound || s.isVerticalBound,
  6874. c = o.isHorizontalBound || s.isHorizontalBound;
  6875. return (
  6876. (f || c) &&
  6877. ((n = B(Ov({ datas: e, distX: -o.offset[0], distY: -s.offset[1] }), 2)),
  6878. (u = n[0]),
  6879. (l = n[1])),
  6880. {
  6881. vertical: { isBound: f, offset: u },
  6882. horizontal: { isBound: c, offset: l }
  6883. }
  6884. );
  6885. }
  6886. function up(t, r) {
  6887. var e = [],
  6888. n = t[0],
  6889. a = t[1];
  6890. return (
  6891. n && a
  6892. ? e.push([[0, a * 2], t, [-n, a]], [[n * 2, 0], t, [n, -a]])
  6893. : n
  6894. ? (e.push([
  6895. [n * 2, 0],
  6896. [n, 1],
  6897. [n, -1]
  6898. ]),
  6899. r &&
  6900. e.push(
  6901. [
  6902. [0, -1],
  6903. [n, -1],
  6904. [-n, -1]
  6905. ],
  6906. [
  6907. [0, 1],
  6908. [n, 1],
  6909. [-n, 1]
  6910. ]
  6911. ))
  6912. : a
  6913. ? (e.push([
  6914. [0, a * 2],
  6915. [1, a],
  6916. [-1, a]
  6917. ]),
  6918. r &&
  6919. e.push(
  6920. [
  6921. [-1, 0],
  6922. [-1, a],
  6923. [-1, -a]
  6924. ],
  6925. [
  6926. [1, 0],
  6927. [1, a],
  6928. [1, -a]
  6929. ]
  6930. ))
  6931. : e.push(
  6932. [
  6933. [-1, 0],
  6934. [-1, -1],
  6935. [-1, 1]
  6936. ],
  6937. [
  6938. [1, 0],
  6939. [1, -1],
  6940. [1, 1]
  6941. ],
  6942. [
  6943. [0, -1],
  6944. [-1, -1],
  6945. [1, -1]
  6946. ],
  6947. [
  6948. [0, 1],
  6949. [-1, 1],
  6950. [1, 1]
  6951. ]
  6952. ),
  6953. e
  6954. );
  6955. }
  6956. function Na(t, r, e, n) {
  6957. var a = t.state,
  6958. i = a.allMatrix,
  6959. o = a.is3d,
  6960. s = kr(i, 100, 100, o ? 4 : 3),
  6961. u = Ot(s, [0, 0]);
  6962. return up(e, n).map(function (l) {
  6963. var f = B(l, 3),
  6964. c = f[0],
  6965. v = f[1],
  6966. p = f[2],
  6967. d = [Ot(s, v), Ot(s, p)],
  6968. g = ep(d),
  6969. h = ss(u, d),
  6970. A = h.vertical,
  6971. m = h.horizontal,
  6972. E = Ga(u, d) <= 0;
  6973. return {
  6974. multiple: c,
  6975. centerSign: E,
  6976. verticalSign: A,
  6977. horizontalSign: m,
  6978. lineConstants: g,
  6979. line: [Ot(r, v), Ot(r, p)]
  6980. };
  6981. });
  6982. }
  6983. function Bi(t, r, e, n) {
  6984. var a = n
  6985. ? t.map(function (i) {
  6986. return Se(i, n);
  6987. })
  6988. : t;
  6989. return [
  6990. [a[0], a[1]],
  6991. [a[1], a[3]],
  6992. [a[3], a[2]],
  6993. [a[2], a[0]]
  6994. ].some(function (i) {
  6995. var o = Ga(e, i) <= 0;
  6996. return !us(r, i, o);
  6997. });
  6998. }
  6999. function lp(t) {
  7000. var r = B(t, 2),
  7001. e = r[0],
  7002. n = r[1],
  7003. a = n[0] - e[0],
  7004. i = n[1] - e[1];
  7005. if (!a) return N(e[0]);
  7006. if (!i) return N(e[1]);
  7007. var o = i / a;
  7008. return N((-o * e[0] + e[1]) / Math.sqrt(Math.pow(o, 2) + 1));
  7009. }
  7010. function fp(t) {
  7011. var r = B(t, 2),
  7012. e = r[0],
  7013. n = r[1],
  7014. a = n[0] - e[0],
  7015. i = n[1] - e[1];
  7016. if (!a) return [e[0], 0];
  7017. if (!i) return [0, e[1]];
  7018. var o = i / a,
  7019. s = -o * e[0] + e[1];
  7020. return [-s / (o + 1 / o), s / (o * o + 1)];
  7021. }
  7022. function cp(t, r, e, n, a) {
  7023. var i = t.props.innerBounds,
  7024. o = (a * Math.PI) / 180;
  7025. if (!i) return [];
  7026. var s = i.left,
  7027. u = i.top,
  7028. l = i.width,
  7029. f = i.height,
  7030. c = s - n[0],
  7031. v = s + l - n[0],
  7032. p = u - n[1],
  7033. d = u + f - n[1],
  7034. g = [
  7035. [c, p],
  7036. [v, p],
  7037. [c, d],
  7038. [v, d]
  7039. ],
  7040. h = Ot(e, [0, 0]);
  7041. if (!Bi(e, g, h, 0)) return [];
  7042. var A = [],
  7043. m = g.map(function (E) {
  7044. return [Jt(E), Et([0, 0], E)];
  7045. });
  7046. return (
  7047. [
  7048. [e[0], e[1]],
  7049. [e[1], e[3]],
  7050. [e[3], e[2]],
  7051. [e[2], e[0]]
  7052. ].forEach(function (E) {
  7053. var y = Et([0, 0], fp(E)),
  7054. b = lp(E);
  7055. A.push.apply(
  7056. A,
  7057. U(
  7058. [],
  7059. B(
  7060. m
  7061. .filter(function (C) {
  7062. var S = B(C, 1),
  7063. D = S[0];
  7064. return D && b <= D;
  7065. })
  7066. .map(function (C) {
  7067. var S = B(C, 2),
  7068. D = S[0],
  7069. x = S[1],
  7070. w = Math.acos(D ? b / D : 0),
  7071. T = x + w,
  7072. I = x - w;
  7073. return [o + T - y, o + I - y];
  7074. })
  7075. .reduce(function (C, S) {
  7076. return C.push.apply(C, U([], B(S), !1)), C;
  7077. }, [])
  7078. .filter(function (C) {
  7079. return !Bi(r, g, h, C);
  7080. })
  7081. .map(function (C) {
  7082. return nt((C * 180) / Math.PI, Ut);
  7083. })
  7084. ),
  7085. !1
  7086. )
  7087. );
  7088. }),
  7089. A
  7090. );
  7091. }
  7092. function vp(t) {
  7093. var r = t.props.innerBounds;
  7094. if (!r) return { vertical: [], horizontal: [] };
  7095. var e = t.getRect(),
  7096. n = e.pos1,
  7097. a = e.pos2,
  7098. i = e.pos3,
  7099. o = e.pos4,
  7100. s = [n, a, i, o],
  7101. u = Ot(s, [0, 0]),
  7102. l = r.left,
  7103. f = r.top,
  7104. c = r.width,
  7105. v = r.height,
  7106. p = [
  7107. [l, f],
  7108. [l, f + v]
  7109. ],
  7110. d = [
  7111. [l, f],
  7112. [l + c, f]
  7113. ],
  7114. g = [
  7115. [l + c, f],
  7116. [l + c, f + v]
  7117. ],
  7118. h = [
  7119. [l, f + v],
  7120. [l + c, f + v]
  7121. ],
  7122. A = Na(t, s, [0, 0], !1),
  7123. m = [],
  7124. E = [],
  7125. y = { top: !1, bottom: !1, left: !1, right: !1 };
  7126. return (
  7127. A.forEach(function (b) {
  7128. var C = b.line,
  7129. S = b.lineConstants,
  7130. D = ss(u, C),
  7131. x = D.horizontal,
  7132. w = D.vertical,
  7133. T = gr(C, S, d, w, 1, !0),
  7134. I = gr(C, S, h, w, 1, !0),
  7135. M = gr(C, S, p, x, 1, !0),
  7136. O = gr(C, S, g, x, 1, !0);
  7137. T.isBound && !y.top && (m.push(f), (y.top = !0)),
  7138. I.isBound && !y.bottom && (m.push(f + v), (y.bottom = !0)),
  7139. M.isBound && !y.left && (E.push(l), (y.left = !0)),
  7140. O.isBound && !y.right && (E.push(l + c), (y.right = !0));
  7141. }),
  7142. { horizontal: m, vertical: E }
  7143. );
  7144. }
  7145. function pp(t, r, e, n) {
  7146. var a = r[0] - t[0],
  7147. i = r[1] - t[1];
  7148. if ((N(a) < wt && (a = 0), N(i) < wt && (i = 0), !a))
  7149. return n ? [0, 0] : [0, e];
  7150. if (!i) return n ? [e, 0] : [0, 0];
  7151. var o = i / a,
  7152. s = t[1] - o * t[0];
  7153. if (n) {
  7154. var u = o * (r[0] + e) + s;
  7155. return [e, u - r[1]];
  7156. } else {
  7157. var l = (r[1] + e - s) / o;
  7158. return [l - r[0], e];
  7159. }
  7160. }
  7161. function ta(t, r, e, n, a) {
  7162. var i = pp(t, r, e, n);
  7163. if (!i) return { isOutside: !1, offset: [0, 0] };
  7164. var o = sr(t, r),
  7165. s = sr(i, t),
  7166. u = sr(i, r),
  7167. l = s > o || u > o,
  7168. f = B(ir({ datas: a, distX: i[0], distY: i[1] }), 2),
  7169. c = f[0],
  7170. v = f[1];
  7171. return { offset: [c, v], isOutside: l };
  7172. }
  7173. function je(t, r) {
  7174. return t.isBound ? t.offset : r.isSnap ? $n(r).offset : 0;
  7175. }
  7176. function dp(t, r, e, n, a) {
  7177. var i = B(r, 2),
  7178. o = i[0],
  7179. s = i[1],
  7180. u = B(e, 2),
  7181. l = u[0],
  7182. f = u[1],
  7183. c = B(n, 2),
  7184. v = c[0],
  7185. p = c[1],
  7186. d = B(a, 2),
  7187. g = d[0],
  7188. h = d[1],
  7189. A = -g,
  7190. m = -h;
  7191. if (t && o && s) {
  7192. (A = 0), (m = 0);
  7193. var E = [];
  7194. if (
  7195. (l && f
  7196. ? E.push([0, h], [g, 0])
  7197. : l
  7198. ? E.push([g, 0])
  7199. : f
  7200. ? E.push([0, h])
  7201. : v && p
  7202. ? E.push([0, h], [g, 0])
  7203. : v
  7204. ? E.push([g, 0])
  7205. : p && E.push([0, h]),
  7206. E.length)
  7207. ) {
  7208. E.sort(function (S, D) {
  7209. return Jt(tt([o, s], S)) - Jt(tt([o, s], D));
  7210. });
  7211. var y = E[0];
  7212. if (y[0] && N(o) > wt) (A = -y[0]), (m = (s * N(o + A)) / N(o) - s);
  7213. else if (y[1] && N(s) > wt) {
  7214. var b = s;
  7215. (m = -y[1]), (A = (o * N(s + m)) / N(b) - o);
  7216. }
  7217. if (t && f && l)
  7218. if (N(A) > wt && N(A) < N(g)) {
  7219. var C = N(g) / N(A);
  7220. (A *= C), (m *= C);
  7221. } else if (N(m) > wt && N(m) < N(h)) {
  7222. var C = N(h) / N(m);
  7223. (A *= C), (m *= C);
  7224. } else (A = Qr(-g, A)), (m = Qr(-h, m));
  7225. }
  7226. } else (A = o || l ? -g : 0), (m = s || f ? -h : 0);
  7227. return [A, m];
  7228. }
  7229. function gp(t, r, e, n, a, i) {
  7230. if (!$r(t, 'draggable'))
  7231. return [
  7232. { isSnap: !1, isBound: !1, offset: 0 },
  7233. { isSnap: !1, isBound: !1, offset: 0 }
  7234. ];
  7235. var o = Ha(i.absolutePoses, [r, e]),
  7236. s = qt(o),
  7237. u = s.left,
  7238. l = s.right,
  7239. f = s.top,
  7240. c = s.bottom,
  7241. v = {
  7242. horizontal: o.map(function (O) {
  7243. return O[1];
  7244. }),
  7245. vertical: o.map(function (O) {
  7246. return O[0];
  7247. })
  7248. },
  7249. p = Pa(t.props.snapDirections),
  7250. d = ka(p, {
  7251. left: u,
  7252. right: l,
  7253. top: f,
  7254. bottom: c,
  7255. center: (u + l) / 2,
  7256. middle: (f + c) / 2
  7257. }),
  7258. g = dn(t, a, d, v),
  7259. h = g.vertical,
  7260. A = g.horizontal,
  7261. m = sp(t, o, i),
  7262. E = m.vertical,
  7263. y = m.horizontal,
  7264. b = h.isSnap,
  7265. C = A.isSnap,
  7266. S = h.isBound || E.isBound,
  7267. D = A.isBound || y.isBound,
  7268. x = Qr(h.offset, E.offset),
  7269. w = Qr(A.offset, y.offset),
  7270. T = B(dp(n, [r, e], [S, D], [b, C], [x, w]), 2),
  7271. I = T[0],
  7272. M = T[1];
  7273. return [
  7274. { isBound: S, isSnap: b, offset: I },
  7275. { isBound: D, isSnap: C, offset: M }
  7276. ];
  7277. }
  7278. function dn(t, r, e, n) {
  7279. n === void 0 && (n = e);
  7280. var a = Oa(vn(t), n.vertical, n.horizontal),
  7281. i = a.horizontal,
  7282. o = a.vertical,
  7283. s = r
  7284. ? {
  7285. horizontal: { isSnap: !1, index: -1 },
  7286. vertical: { isSnap: !1, index: -1 }
  7287. }
  7288. : pn(t, e.vertical, e.horizontal),
  7289. u = s.horizontal,
  7290. l = s.vertical,
  7291. f = je(i[0], u),
  7292. c = je(o[0], l),
  7293. v = N(f),
  7294. p = N(c);
  7295. return {
  7296. horizontal: {
  7297. isBound: i[0].isBound,
  7298. isSnap: u.isSnap,
  7299. snapIndex: u.index,
  7300. offset: f,
  7301. dist: v,
  7302. bounds: i,
  7303. snap: u
  7304. },
  7305. vertical: {
  7306. isBound: o[0].isBound,
  7307. isSnap: l.isSnap,
  7308. snapIndex: l.index,
  7309. offset: c,
  7310. dist: p,
  7311. bounds: o,
  7312. snap: l
  7313. }
  7314. };
  7315. }
  7316. function Mi(t, r, e, n, a) {
  7317. var i = Oa(r, e, n),
  7318. o = i.horizontal,
  7319. s = i.vertical,
  7320. u = is(t, e, n, [], [], a),
  7321. l = u.horizontal,
  7322. f = u.vertical,
  7323. c = je(o[0], l),
  7324. v = je(s[0], f),
  7325. p = N(c),
  7326. d = N(v);
  7327. return {
  7328. horizontal: {
  7329. isBound: o[0].isBound,
  7330. isSnap: l.isSnap,
  7331. snapIndex: l.index,
  7332. offset: c,
  7333. dist: p,
  7334. bounds: o,
  7335. snap: l
  7336. },
  7337. vertical: {
  7338. isBound: s[0].isBound,
  7339. isSnap: f.isSnap,
  7340. snapIndex: f.index,
  7341. offset: v,
  7342. dist: d,
  7343. bounds: s,
  7344. snap: f
  7345. }
  7346. };
  7347. }
  7348. function hp(t, r, e, n) {
  7349. var a = (Et(t, r) / Math.PI) * 180,
  7350. i = e.vertical,
  7351. o = i.isBound,
  7352. s = i.isSnap,
  7353. u = i.dist,
  7354. l = e.horizontal,
  7355. f = l.isBound,
  7356. c = l.isSnap,
  7357. v = l.dist,
  7358. p = a % 180,
  7359. d = p < 3 || p > 177,
  7360. g = p > 87 && p < 93;
  7361. return v < u && (o || (s && !g && (!n || !d)))
  7362. ? 'vertical'
  7363. : f || (c && !d && (!n || !g))
  7364. ? 'horizontal'
  7365. : '';
  7366. }
  7367. function Ap(t, r, e, n, a, i) {
  7368. return e.map(function (o) {
  7369. var s = B(o, 2),
  7370. u = s[0],
  7371. l = s[1],
  7372. f = Ot(r, u),
  7373. c = Ot(r, l),
  7374. v = n
  7375. ? mp(t, f, c, a)
  7376. : dn(t, a, { vertical: [c[0]], horizontal: [c[1]] }),
  7377. p = v.horizontal,
  7378. d = p.offset,
  7379. g = p.isBound,
  7380. h = p.isSnap,
  7381. A = v.vertical,
  7382. m = A.offset,
  7383. E = A.isBound,
  7384. y = A.isSnap,
  7385. b = tt(l, u);
  7386. if (!m && !d)
  7387. return { isBound: E || g, isSnap: y || h, sign: b, offset: [0, 0] };
  7388. var C = hp(f, c, v, n);
  7389. if (!C) return { sign: b, isBound: !1, isSnap: !1, offset: [0, 0] };
  7390. var S = C === 'vertical',
  7391. D = [0, 0];
  7392. return (
  7393. !n && N(l[0]) === 1 && N(l[1]) === 1 && u[0] !== l[0] && u[1] !== l[1]
  7394. ? (D = ir({ datas: i, distX: -m, distY: -d }))
  7395. : (D = ta(f, c, -(S ? m : d), S, i).offset),
  7396. (D = D.map(function (x, w) {
  7397. return x * (b[w] ? 2 / b[w] : 0);
  7398. })),
  7399. { sign: b, isBound: S ? E : g, isSnap: S ? y : h, offset: D }
  7400. );
  7401. });
  7402. }
  7403. function Ii(t, r) {
  7404. return t.isBound ? t.offset : r.isSnap ? r.offset : 0;
  7405. }
  7406. function mp(t, r, e, n) {
  7407. var a = Jv(t, r, e),
  7408. i = a.horizontal,
  7409. o = a.vertical,
  7410. s = n
  7411. ? { horizontal: { isSnap: !1 }, vertical: { isSnap: !1 } }
  7412. : np(t, r, e),
  7413. u = s.horizontal,
  7414. l = s.vertical,
  7415. f = Ii(i, u),
  7416. c = Ii(o, l),
  7417. v = N(f),
  7418. p = N(c);
  7419. return {
  7420. horizontal: { isBound: i.isBound, isSnap: u.isSnap, offset: f, dist: v },
  7421. vertical: { isBound: o.isBound, isSnap: l.isSnap, offset: c, dist: p }
  7422. };
  7423. }
  7424. function Sp(t, r, e, n, a) {
  7425. var i = [-e[0], -e[1]],
  7426. o = t.state,
  7427. s = o.width,
  7428. u = o.height,
  7429. l = t.props.bounds,
  7430. f = 1 / 0,
  7431. c = 1 / 0;
  7432. if (l) {
  7433. var v = [
  7434. [e[0], -e[1]],
  7435. [-e[0], e[1]]
  7436. ],
  7437. p = l.left,
  7438. d = p === void 0 ? -1 / 0 : p,
  7439. g = l.top,
  7440. h = g === void 0 ? -1 / 0 : g,
  7441. A = l.right,
  7442. m = A === void 0 ? 1 / 0 : A,
  7443. E = l.bottom,
  7444. y = E === void 0 ? 1 / 0 : E;
  7445. v.forEach(function (b) {
  7446. var C = b[0] !== i[0],
  7447. S = b[1] !== i[1],
  7448. D = Ot(r, b),
  7449. x = (Et(n, D) * 360) / Math.PI;
  7450. if (S) {
  7451. var w = D.slice();
  7452. (N(x - 360) < 2 || N(x - 180) < 2) && (w[1] = n[1]);
  7453. var T = ta(n, w, (n[1] < D[1] ? y : h) - D[1], !1, a),
  7454. I = B(T.offset, 2),
  7455. M = I[1],
  7456. O = T.isOutside;
  7457. isNaN(M) || (c = u + (O ? 1 : -1) * N(M));
  7458. }
  7459. if (C) {
  7460. var w = D.slice();
  7461. (N(x - 90) < 2 || N(x - 270) < 2) && (w[0] = n[0]);
  7462. var P = ta(n, w, (n[0] < D[0] ? m : d) - D[0], !0, a),
  7463. z = B(P.offset, 1),
  7464. H = z[0],
  7465. G = P.isOutside;
  7466. isNaN(H) || (f = s + (G ? 1 : -1) * N(H));
  7467. }
  7468. });
  7469. }
  7470. return { maxWidth: f, maxHeight: c };
  7471. }
  7472. var Ht = {
  7473. name: 'draggable',
  7474. props: [
  7475. 'draggable',
  7476. 'throttleDrag',
  7477. 'throttleDragRotate',
  7478. 'hideThrottleDragRotateLine',
  7479. 'startDragRotate',
  7480. 'edgeDraggable'
  7481. ],
  7482. events: [
  7483. 'dragStart',
  7484. 'drag',
  7485. 'dragEnd',
  7486. 'dragGroupStart',
  7487. 'dragGroup',
  7488. 'dragGroupEnd'
  7489. ],
  7490. requestStyle: function () {
  7491. return ['left', 'top', 'right', 'bottom'];
  7492. },
  7493. requestChildStyle: function () {
  7494. return ['left', 'top', 'right', 'bottom'];
  7495. },
  7496. render: function (t, r) {
  7497. var e = t.props,
  7498. n = e.hideThrottleDragRotateLine,
  7499. a = e.throttleDragRotate,
  7500. i = e.zoom,
  7501. o = t.getState(),
  7502. s = o.dragInfo,
  7503. u = o.beforeOrigin;
  7504. if (n || !a || !s) return [];
  7505. var l = s.dist;
  7506. if (!l[0] && !l[1]) return [];
  7507. var f = Jt(l),
  7508. c = Et(l, [0, 0]);
  7509. return [
  7510. r.createElement('div', {
  7511. className: $('line', 'horizontal', 'dragline', 'dashed'),
  7512. key: 'dragRotateGuideline',
  7513. style: {
  7514. width: ''.concat(f, 'px'),
  7515. transform: 'translate('
  7516. .concat(u[0], 'px, ')
  7517. .concat(u[1], 'px) rotate(')
  7518. .concat(c, 'rad) scaleY(')
  7519. .concat(i, ')')
  7520. }
  7521. })
  7522. ];
  7523. },
  7524. dragStart: function (t, r) {
  7525. var e = r.datas,
  7526. n = r.parentEvent,
  7527. a = r.parentGesto,
  7528. i = t.state,
  7529. o = i.gestos,
  7530. s = i.style;
  7531. if (o.draggable) return !1;
  7532. (o.draggable = a || t.targetGesto),
  7533. (e.datas = {}),
  7534. (e.left = parseFloat(s.left || '') || 0),
  7535. (e.top = parseFloat(s.top || '') || 0),
  7536. (e.bottom = parseFloat(s.bottom || '') || 0),
  7537. (e.right = parseFloat(s.right || '') || 0),
  7538. (e.startValue = [0, 0]),
  7539. Pr(t, r),
  7540. cn(r, 'translate'),
  7541. Fp(t, e),
  7542. (e.prevDist = [0, 0]),
  7543. (e.prevBeforeDist = [0, 0]),
  7544. (e.isDrag = !1),
  7545. (e.deltaOffset = [0, 0]);
  7546. var u = ot(
  7547. t,
  7548. r,
  7549. R(
  7550. {
  7551. set: function (f) {
  7552. e.startValue = f;
  7553. }
  7554. },
  7555. fn(r)
  7556. )
  7557. ),
  7558. l = n || Y(t, 'onDragStart', u);
  7559. return (
  7560. l !== !1
  7561. ? ((e.isDrag = !0),
  7562. (t.state.dragInfo = { startRect: t.getRect(), dist: [0, 0] }))
  7563. : ((o.draggable = null), (e.isPinch = !1)),
  7564. e.isDrag ? u : !1
  7565. );
  7566. },
  7567. drag: function (t, r) {
  7568. if (r) {
  7569. un(r, 'translate');
  7570. var e = r.datas,
  7571. n = r.parentEvent,
  7572. a = r.parentFlag,
  7573. i = r.isPinch,
  7574. o = r.deltaOffset,
  7575. s = r.useSnap,
  7576. u = r.isRequest,
  7577. l = r.distX,
  7578. f = r.distY,
  7579. c = e.isDrag,
  7580. v = e.prevDist,
  7581. p = e.prevBeforeDist,
  7582. d = e.startValue;
  7583. if (c) {
  7584. o && ((l += o[0]), (f += o[1]));
  7585. var g = t.props,
  7586. h = g.parentMoveable,
  7587. A = n ? 0 : g.throttleDrag || 0,
  7588. m = n ? 0 : g.throttleDragRotate || 0,
  7589. E = 0,
  7590. y = !1,
  7591. b = !1,
  7592. C = !1,
  7593. S = !1;
  7594. if (!n && m > 0 && (l || f)) {
  7595. var D = g.startDragRotate || 0,
  7596. x = nt(D + (Et([0, 0], [l, f]) * 180) / Math.PI, m) - D,
  7597. w = f * Math.abs(Math.cos(((x - 90) / 180) * Math.PI)),
  7598. T = l * Math.abs(Math.cos((x / 180) * Math.PI)),
  7599. I = Jt([T, w]);
  7600. (E = (x * Math.PI) / 180),
  7601. (l = I * Math.cos(E)),
  7602. (f = I * Math.sin(E));
  7603. }
  7604. if (!i && !n && !a) {
  7605. var M = B(gp(t, l, f, m, (!s && u) || o, e), 2),
  7606. O = M[0],
  7607. P = M[1];
  7608. (y = O.isSnap), (b = O.isBound), (C = P.isSnap), (S = P.isBound);
  7609. var z = O.offset,
  7610. H = P.offset;
  7611. (l += z), (f += H);
  7612. }
  7613. var G = ft(Ko({ datas: e, distX: l, distY: f }), d),
  7614. L = ft(Tv({ datas: e, distX: l, distY: f }), d);
  7615. fi(L, Ut),
  7616. fi(G, Ut),
  7617. m ||
  7618. (!y && !b && ((L[0] = nt(L[0], A)), (G[0] = nt(G[0], A))),
  7619. !C && !S && ((L[1] = nt(L[1], A)), (G[1] = nt(G[1], A))));
  7620. var V = tt(G, d),
  7621. F = tt(L, d),
  7622. Q = tt(F, v),
  7623. j = tt(V, p);
  7624. (e.prevDist = F),
  7625. (e.prevBeforeDist = V),
  7626. (e.passDelta = Q),
  7627. (e.passDist = F);
  7628. var K = e.left + V[0],
  7629. X = e.top + V[1],
  7630. W = e.right - V[0],
  7631. _ = e.bottom - V[1],
  7632. rt = ln(
  7633. e,
  7634. 'translate('.concat(L[0], 'px, ').concat(L[1], 'px)'),
  7635. 'translate('.concat(F[0], 'px, ').concat(F[1], 'px)')
  7636. );
  7637. if (
  7638. (Ia(r, rt),
  7639. (t.state.dragInfo.dist = n ? [0, 0] : F),
  7640. !(
  7641. !n &&
  7642. !h &&
  7643. Q.every(function (vt) {
  7644. return !vt;
  7645. }) &&
  7646. j.some(function (vt) {
  7647. return !vt;
  7648. })
  7649. ))
  7650. ) {
  7651. var lt = t.state,
  7652. et = lt.width,
  7653. Z = lt.height,
  7654. J = ot(
  7655. t,
  7656. r,
  7657. R(
  7658. {
  7659. transform: rt,
  7660. dist: F,
  7661. delta: Q,
  7662. translate: L,
  7663. beforeDist: V,
  7664. beforeDelta: j,
  7665. beforeTranslate: G,
  7666. left: K,
  7667. top: X,
  7668. right: W,
  7669. bottom: _,
  7670. width: et,
  7671. height: Z,
  7672. isPinch: i
  7673. },
  7674. Lt({ transform: rt }, r)
  7675. )
  7676. );
  7677. return !n && Y(t, 'onDrag', J), J;
  7678. }
  7679. }
  7680. }
  7681. },
  7682. dragAfter: function (t, r) {
  7683. var e = r.datas,
  7684. n = e.deltaOffset;
  7685. return n[0] || n[1]
  7686. ? ((e.deltaOffset = [0, 0]),
  7687. this.drag(t, R(R({}, r), { deltaOffset: n })))
  7688. : !1;
  7689. },
  7690. dragEnd: function (t, r) {
  7691. var e = r.parentEvent,
  7692. n = r.datas;
  7693. if (((t.state.dragInfo = null), !!n.isDrag)) {
  7694. n.isDrag = !1;
  7695. var a = Qt(t, r, {});
  7696. return !e && Y(t, 'onDragEnd', a), a;
  7697. }
  7698. },
  7699. dragGroupStart: function (t, r) {
  7700. var e = r.datas,
  7701. n = r.clientX,
  7702. a = r.clientY,
  7703. i = this.dragStart(t, r);
  7704. if (!i) return !1;
  7705. var o = Rn(t, this, 'dragStart', [n || 0, a || 0], r, !1, 'draggable'),
  7706. s = R(R({}, i), { targets: t.props.targets, events: o }),
  7707. u = Y(t, 'onDragGroupStart', s);
  7708. return (e.isDrag = u !== !1), e.isDrag ? i : !1;
  7709. },
  7710. dragGroup: function (t, r) {
  7711. var e = r.datas;
  7712. if (e.isDrag) {
  7713. var n = this.drag(t, r),
  7714. a = r.datas.passDelta,
  7715. i = Rn(t, this, 'drag', a, r, !1, 'draggable');
  7716. if (n) {
  7717. var o = R({ targets: t.props.targets, events: i }, n);
  7718. return Y(t, 'onDragGroup', o), o;
  7719. }
  7720. }
  7721. },
  7722. dragGroupEnd: function (t, r) {
  7723. var e = r.isDrag,
  7724. n = r.datas;
  7725. if (n.isDrag) {
  7726. this.dragEnd(t, r);
  7727. var a = Rn(t, this, 'dragEnd', [0, 0], r, !1, 'draggable');
  7728. return (
  7729. Y(
  7730. t,
  7731. 'onDragGroupEnd',
  7732. Qt(t, r, { targets: t.props.targets, events: a })
  7733. ),
  7734. e
  7735. );
  7736. }
  7737. },
  7738. request: function (t) {
  7739. var r = {},
  7740. e = t.getRect(),
  7741. n = 0,
  7742. a = 0,
  7743. i = !1;
  7744. return {
  7745. isControl: !1,
  7746. requestStart: function (o) {
  7747. return (i = o.useSnap), { datas: r, useSnap: i };
  7748. },
  7749. request: function (o) {
  7750. return (
  7751. 'x' in o ? (n = o.x - e.left) : 'deltaX' in o && (n += o.deltaX),
  7752. 'y' in o ? (a = o.y - e.top) : 'deltaY' in o && (a += o.deltaY),
  7753. { datas: r, distX: n, distY: a, useSnap: i }
  7754. );
  7755. },
  7756. requestEnd: function () {
  7757. return { datas: r, isDrag: !0, useSnap: i };
  7758. }
  7759. };
  7760. },
  7761. unset: function (t) {
  7762. (t.state.gestos.draggable = null), (t.state.dragInfo = null);
  7763. }
  7764. };
  7765. function fs(t, r) {
  7766. var e = Ot(t, r),
  7767. n = [0, 0];
  7768. return { fixedPosition: e, fixedDirection: r, fixedOffset: n };
  7769. }
  7770. function Cp(t, r) {
  7771. var e = t.allMatrix,
  7772. n = t.is3d,
  7773. a = t.width,
  7774. i = t.height,
  7775. o = n ? 4 : 3,
  7776. s = [(a / 2) * (1 + r[0]), (i / 2) * (1 + r[1])],
  7777. u = Ct(e, s, o),
  7778. l = [0, 0];
  7779. return { fixedPosition: u, fixedDirection: r, fixedOffset: l };
  7780. }
  7781. function cs(t, r) {
  7782. var e = t.allMatrix,
  7783. n = t.is3d,
  7784. a = t.width,
  7785. i = t.height,
  7786. o = n ? 4 : 3,
  7787. s = Hv(r, a, i),
  7788. u = Ct(e, r, o),
  7789. l = [a ? 0 : r[0], i ? 0 : r[1]];
  7790. return { fixedPosition: u, fixedDirection: s, fixedOffset: l };
  7791. }
  7792. var Ti = Va('resizable'),
  7793. ra = {
  7794. name: 'resizable',
  7795. ableGroup: 'size',
  7796. canPinch: !0,
  7797. props: [
  7798. 'resizable',
  7799. 'throttleResize',
  7800. 'renderDirections',
  7801. 'displayAroundControls',
  7802. 'keepRatio',
  7803. 'resizeFormat',
  7804. 'keepRatioFinally',
  7805. 'edge',
  7806. 'checkResizableError'
  7807. ],
  7808. events: [
  7809. 'resizeStart',
  7810. 'beforeResize',
  7811. 'resize',
  7812. 'resizeEnd',
  7813. 'resizeGroupStart',
  7814. 'beforeResizeGroup',
  7815. 'resizeGroup',
  7816. 'resizeGroupEnd'
  7817. ],
  7818. render: es('resizable'),
  7819. dragControlCondition: Ti,
  7820. viewClassName: Ua('resizable'),
  7821. dragControlStart: function (t, r) {
  7822. var e,
  7823. n = r.inputEvent,
  7824. a = r.isPinch,
  7825. i = r.isGroup,
  7826. o = r.parentDirection,
  7827. s = r.parentGesto,
  7828. u = r.datas,
  7829. l = r.parentFixedDirection,
  7830. f = r.parentEvent,
  7831. c = ws(o, a, n, u),
  7832. v = t.state,
  7833. p = v.target,
  7834. d = v.width,
  7835. g = v.height,
  7836. h = v.gestos;
  7837. if (!c || !p || h.resizable) return !1;
  7838. (h.resizable = s || t.controlGesto),
  7839. !a && Pr(t, r),
  7840. (u.datas = {}),
  7841. (u.direction = c),
  7842. (u.startOffsetWidth = d),
  7843. (u.startOffsetHeight = g),
  7844. (u.prevWidth = 0),
  7845. (u.prevHeight = 0),
  7846. (u.minSize = [0, 0]),
  7847. (u.startWidth = v.inlineCSSWidth || v.cssWidth),
  7848. (u.startHeight = v.inlineCSSHeight || v.cssHeight),
  7849. (u.maxSize = [1 / 0, 1 / 0]),
  7850. i ||
  7851. ((u.minSize = [v.minOffsetWidth, v.minOffsetHeight]),
  7852. (u.maxSize = [v.maxOffsetWidth, v.maxOffsetHeight]));
  7853. var A = t.props.transformOrigin || '% %';
  7854. (u.transformOrigin = A && Wt(A) ? A.split(' ') : A),
  7855. (u.startOffsetMatrix = v.offsetMatrix),
  7856. (u.startTransformOrigin = v.transformOrigin),
  7857. (u.isWidth =
  7858. (e = r == null ? void 0 : r.parentIsWidth) !== null && e !== void 0
  7859. ? e
  7860. : (!c[0] && !c[1]) || c[0] || !c[1]);
  7861. function m(x) {
  7862. u.ratio = x && isFinite(x) ? x : 0;
  7863. }
  7864. u.startPositions = jt(t.state);
  7865. function E(x) {
  7866. var w = fs(u.startPositions, x);
  7867. (u.fixedDirection = w.fixedDirection),
  7868. (u.fixedPosition = w.fixedPosition),
  7869. (u.fixedOffset = w.fixedOffset);
  7870. }
  7871. function y(x) {
  7872. var w = cs(t.state, x);
  7873. (u.fixedDirection = w.fixedDirection),
  7874. (u.fixedPosition = w.fixedPosition),
  7875. (u.fixedOffset = w.fixedOffset);
  7876. }
  7877. function b(x) {
  7878. u.minSize = [gt(''.concat(x[0]), 0) || 0, gt(''.concat(x[1]), 0) || 0];
  7879. }
  7880. function C(x) {
  7881. var w = [x[0] || 1 / 0, x[1] || 1 / 0];
  7882. (!Ur(w[0]) || isFinite(w[0])) &&
  7883. (w[0] = gt(''.concat(w[0]), 0) || 1 / 0),
  7884. (!Ur(w[1]) || isFinite(w[1])) &&
  7885. (w[1] = gt(''.concat(w[1]), 0) || 1 / 0),
  7886. (u.maxSize = w);
  7887. }
  7888. m(d / g),
  7889. E(l || [-c[0], -c[1]]),
  7890. (u.setFixedDirection = E),
  7891. (u.setFixedPosition = y),
  7892. (u.setMin = b),
  7893. (u.setMax = C);
  7894. var S = ot(t, r, {
  7895. direction: c,
  7896. startRatio: u.ratio,
  7897. set: function (x) {
  7898. var w = B(x, 2),
  7899. T = w[0],
  7900. I = w[1];
  7901. (u.startWidth = T), (u.startHeight = I);
  7902. },
  7903. setMin: b,
  7904. setMax: C,
  7905. setRatio: m,
  7906. setFixedDirection: E,
  7907. setFixedPosition: y,
  7908. setOrigin: function (x) {
  7909. u.transformOrigin = x;
  7910. },
  7911. dragStart: Ht.dragStart(t, new Wr().dragStart([0, 0], r))
  7912. }),
  7913. D = f || Y(t, 'onResizeStart', S);
  7914. return (
  7915. (u.startFixedDirection = u.fixedDirection),
  7916. (u.startFixedPosition = u.fixedPosition),
  7917. D !== !1 &&
  7918. ((u.isResize = !0),
  7919. (t.state.snapRenderInfo = { request: r.isRequest, direction: c })),
  7920. u.isResize ? S : !1
  7921. );
  7922. },
  7923. dragControl: function (t, r) {
  7924. var e,
  7925. n = r.datas,
  7926. a = r.parentFlag,
  7927. i = r.isPinch,
  7928. o = r.parentKeepRatio,
  7929. s = r.dragClient,
  7930. u = r.parentDist,
  7931. l = r.useSnap,
  7932. f = r.isRequest,
  7933. c = r.isGroup,
  7934. v = r.parentEvent,
  7935. p = r.resolveMatrix,
  7936. d = n.isResize,
  7937. g = n.transformOrigin,
  7938. h = n.startWidth,
  7939. A = n.startHeight,
  7940. m = n.prevWidth,
  7941. E = n.prevHeight,
  7942. y = n.minSize,
  7943. b = n.maxSize,
  7944. C = n.ratio,
  7945. S = n.startOffsetWidth,
  7946. D = n.startOffsetHeight,
  7947. x = n.isWidth;
  7948. if (!d) return;
  7949. if (p) {
  7950. var w = t.state.is3d,
  7951. T = n.startOffsetMatrix,
  7952. I = n.startTransformOrigin,
  7953. M = w ? 4 : 3,
  7954. O = Qe(qe(r)),
  7955. P = Math.sqrt(O.length);
  7956. M !== P && (O = rr(O, P, M));
  7957. var z = be(T, O, I, M),
  7958. H = kr(z, S, D, M);
  7959. (n.startPositions = H), (n.nextTargetMatrix = O), (n.nextAllMatrix = z);
  7960. }
  7961. var G = Or(t.props, 'resizable'),
  7962. L = G.resizeFormat,
  7963. V = G.throttleResize,
  7964. F = V === void 0 ? (a ? 0 : 1) : V,
  7965. Q = G.parentMoveable,
  7966. j = G.keepRatioFinally,
  7967. K = n.direction,
  7968. X = K,
  7969. W = 0,
  7970. _ = 0;
  7971. !K[0] && !K[1] && (X = [1, 1]);
  7972. var rt = (C && (o != null ? o : G.keepRatio)) || !1;
  7973. function lt() {
  7974. var Dt = n.fixedDirection,
  7975. Bt = Ps(X, rt, n, r);
  7976. (W = Bt.distWidth), (_ = Bt.distHeight);
  7977. var cr = X[0] - Dt[0] || rt ? Math.max(S + W, Ut) : S,
  7978. vr = X[1] - Dt[1] || rt ? Math.max(D + _, Ut) : D;
  7979. return rt && S && D && (x ? (vr = cr / C) : (cr = vr * C)), [cr, vr];
  7980. }
  7981. var et = B(lt(), 2),
  7982. Z = et[0],
  7983. J = et[1];
  7984. v ||
  7985. (n.setFixedDirection(n.fixedDirection),
  7986. Y(
  7987. t,
  7988. 'onBeforeResize',
  7989. ot(
  7990. t,
  7991. r,
  7992. {
  7993. startFixedDirection: n.startFixedDirection,
  7994. startFixedPosition: n.startFixedPosition,
  7995. setFixedDirection: function (Dt) {
  7996. var Bt;
  7997. return (
  7998. n.setFixedDirection(Dt),
  7999. (Bt = B(lt(), 2)),
  8000. (Z = Bt[0]),
  8001. (J = Bt[1]),
  8002. [Z, J]
  8003. );
  8004. },
  8005. setFixedPosition: function (Dt) {
  8006. var Bt;
  8007. return (
  8008. n.setFixedPosition(Dt),
  8009. (Bt = B(lt(), 2)),
  8010. (Z = Bt[0]),
  8011. (J = Bt[1]),
  8012. [Z, J]
  8013. );
  8014. },
  8015. boundingWidth: Z,
  8016. boundingHeight: J,
  8017. setSize: function (Dt) {
  8018. var Bt;
  8019. (Bt = B(Dt, 2)), (Z = Bt[0]), (J = Bt[1]);
  8020. }
  8021. },
  8022. !0
  8023. )
  8024. ));
  8025. var vt = s;
  8026. s || (!a && i ? (vt = Wv(t, [0, 0])) : (vt = n.fixedPosition));
  8027. var at = [0, 0];
  8028. i || (at = Gp(t, Z, J, K, vt, !l && f, n)),
  8029. u && (!u[0] && (at[0] = 0), !u[1] && (at[1] = 0));
  8030. function it() {
  8031. var Dt;
  8032. L && ((Dt = B(L([Z, J]), 2)), (Z = Dt[0]), (J = Dt[1])),
  8033. (Z = nt(Z, F)),
  8034. (J = nt(J, F));
  8035. }
  8036. if (rt) {
  8037. X[0] &&
  8038. X[1] &&
  8039. at[0] &&
  8040. at[1] &&
  8041. (N(at[0]) > N(at[1]) ? (at[1] = 0) : (at[0] = 0));
  8042. var ut = !at[0] && !at[1];
  8043. ut && it(),
  8044. (X[0] && !X[1]) || (at[0] && !at[1]) || (ut && x)
  8045. ? ((Z += at[0]), (J = Z / C))
  8046. : ((!X[0] && X[1]) || (!at[0] && at[1]) || (ut && !x)) &&
  8047. ((J += at[1]), (Z = J * C));
  8048. } else
  8049. (Z += at[0]), (J += at[1]), (Z = Math.max(0, Z)), (J = Math.max(0, J));
  8050. (e = B(so([Z, J], y, b, rt ? C : !1), 2)),
  8051. (Z = e[0]),
  8052. (J = e[1]),
  8053. it(),
  8054. rt && (c || j) && (x ? (J = Z / C) : (Z = J * C)),
  8055. (W = Z - S),
  8056. (_ = J - D);
  8057. var At = [W - m, _ - E];
  8058. (n.prevWidth = W), (n.prevHeight = _);
  8059. var pt = Vv(t, Z, J, vt, g, n);
  8060. if (
  8061. !(
  8062. !Q &&
  8063. At.every(function (Dt) {
  8064. return !Dt;
  8065. }) &&
  8066. pt.every(function (Dt) {
  8067. return !Dt;
  8068. })
  8069. )
  8070. ) {
  8071. var st = Ht.drag(t, De(r, t.state, pt, !!i, !1, 'draggable')),
  8072. ct = st.transform,
  8073. yt = h + W,
  8074. Ft = A + _,
  8075. kt = ot(
  8076. t,
  8077. r,
  8078. R(
  8079. {
  8080. width: yt,
  8081. height: Ft,
  8082. offsetWidth: Math.round(Z),
  8083. offsetHeight: Math.round(J),
  8084. startRatio: C,
  8085. boundingWidth: Z,
  8086. boundingHeight: J,
  8087. direction: K,
  8088. dist: [W, _],
  8089. delta: At,
  8090. isPinch: !!i,
  8091. drag: st
  8092. },
  8093. Bs(
  8094. {
  8095. style: {
  8096. width: ''.concat(yt, 'px'),
  8097. height: ''.concat(Ft, 'px')
  8098. },
  8099. transform: ct
  8100. },
  8101. st,
  8102. r
  8103. )
  8104. )
  8105. );
  8106. return !v && Y(t, 'onResize', kt), kt;
  8107. }
  8108. },
  8109. dragControlAfter: function (t, r) {
  8110. var e = r.datas,
  8111. n = e.isResize,
  8112. a = e.startOffsetWidth,
  8113. i = e.startOffsetHeight,
  8114. o = e.prevWidth,
  8115. s = e.prevHeight;
  8116. if (!(!n || t.props.checkResizableError === !1)) {
  8117. var u = t.state,
  8118. l = u.width,
  8119. f = u.height,
  8120. c = l - (a + o),
  8121. v = f - (i + s),
  8122. p = N(c) > 3,
  8123. d = N(v) > 3;
  8124. if (
  8125. (p &&
  8126. ((e.startWidth += c),
  8127. (e.startOffsetWidth += c),
  8128. (e.prevWidth += c)),
  8129. d &&
  8130. ((e.startHeight += v),
  8131. (e.startOffsetHeight += v),
  8132. (e.prevHeight += v)),
  8133. p || d)
  8134. )
  8135. return this.dragControl(t, r);
  8136. }
  8137. },
  8138. dragControlEnd: function (t, r) {
  8139. var e = r.datas,
  8140. n = r.parentEvent;
  8141. if (e.isResize) {
  8142. e.isResize = !1;
  8143. var a = Qt(t, r, {});
  8144. return !n && Y(t, 'onResizeEnd', a), a;
  8145. }
  8146. },
  8147. dragGroupControlCondition: Ti,
  8148. dragGroupControlStart: function (t, r) {
  8149. var e = r.datas,
  8150. n = this.dragControlStart(t, R(R({}, r), { isGroup: !0 }));
  8151. if (!n) return !1;
  8152. var a = $t(t, 'resizable', r),
  8153. i = e.startOffsetWidth,
  8154. o = e.startOffsetHeight;
  8155. function s() {
  8156. var p = e.minSize;
  8157. a.forEach(function (d) {
  8158. var g = d.datas,
  8159. h = g.minSize,
  8160. A = g.startOffsetWidth,
  8161. m = g.startOffsetHeight,
  8162. E = i * (A ? h[0] / A : 0),
  8163. y = o * (m ? h[1] / m : 0);
  8164. (p[0] = Math.max(p[0], E)), (p[1] = Math.max(p[1], y));
  8165. });
  8166. }
  8167. function u() {
  8168. var p = e.maxSize;
  8169. a.forEach(function (d) {
  8170. var g = d.datas,
  8171. h = g.maxSize,
  8172. A = g.startOffsetWidth,
  8173. m = g.startOffsetHeight,
  8174. E = i * (A ? h[0] / A : 0),
  8175. y = o * (m ? h[1] / m : 0);
  8176. (p[0] = Math.min(p[0], E)), (p[1] = Math.min(p[1], y));
  8177. });
  8178. }
  8179. var l = ur(t, this, 'dragControlStart', r, function (p, d) {
  8180. return Ke(t, p, e, d);
  8181. });
  8182. s(), u();
  8183. var f = function (p) {
  8184. n.setFixedDirection(p),
  8185. l.forEach(function (d, g) {
  8186. d.setFixedDirection(p), Ke(t, d.moveable, e, a[g]);
  8187. });
  8188. };
  8189. e.setFixedDirection = f;
  8190. var c = R(R({}, n), {
  8191. targets: t.props.targets,
  8192. events: l.map(function (p) {
  8193. return R(R({}, p), {
  8194. setMin: function (d) {
  8195. p.setMin(d), s();
  8196. },
  8197. setMax: function (d) {
  8198. p.setMax(d), u();
  8199. }
  8200. });
  8201. }),
  8202. setFixedDirection: f,
  8203. setMin: function (p) {
  8204. n.setMin(p), s();
  8205. },
  8206. setMax: function (p) {
  8207. n.setMax(p), u();
  8208. }
  8209. }),
  8210. v = Y(t, 'onResizeGroupStart', c);
  8211. return (e.isResize = v !== !1), e.isResize ? n : !1;
  8212. },
  8213. dragGroupControl: function (t, r) {
  8214. var e = r.datas;
  8215. if (e.isResize) {
  8216. var n = Or(t.props, 'resizable');
  8217. hn(t, 'onBeforeResize', function (p) {
  8218. Y(
  8219. t,
  8220. 'onBeforeResizeGroup',
  8221. ot(t, r, R(R({}, p), { targets: n.targets }), !0)
  8222. );
  8223. });
  8224. var a = this.dragControl(t, R(R({}, r), { isGroup: !0 }));
  8225. if (a) {
  8226. var i = a.boundingWidth,
  8227. o = a.boundingHeight,
  8228. s = a.dist,
  8229. u = n.keepRatio,
  8230. l = [i / (i - s[0]), o / (o - s[1])],
  8231. f = e.fixedPosition,
  8232. c = ur(t, this, 'dragControl', r, function (p, d) {
  8233. var g = B(
  8234. Nt(
  8235. Ce((t.rotation / 180) * Math.PI, 3),
  8236. [d.datas.originalX * l[0], d.datas.originalY * l[1], 1],
  8237. 3
  8238. ),
  8239. 2
  8240. ),
  8241. h = g[0],
  8242. A = g[1];
  8243. return R(R({}, d), {
  8244. parentDist: null,
  8245. parentScale: l,
  8246. dragClient: ft(f, [h, A]),
  8247. parentKeepRatio: u
  8248. });
  8249. }),
  8250. v = R({ targets: n.targets, events: c }, a);
  8251. return Y(t, 'onResizeGroup', v), v;
  8252. }
  8253. }
  8254. },
  8255. dragGroupControlEnd: function (t, r) {
  8256. var e = r.isDrag,
  8257. n = r.datas;
  8258. if (n.isResize) {
  8259. this.dragControlEnd(t, r);
  8260. var a = ur(t, this, 'dragControlEnd', r),
  8261. i = Qt(t, r, { targets: t.props.targets, events: a });
  8262. return Y(t, 'onResizeGroupEnd', i), e;
  8263. }
  8264. },
  8265. request: function (t) {
  8266. var r = {},
  8267. e = 0,
  8268. n = 0,
  8269. a = !1,
  8270. i = t.getRect();
  8271. return {
  8272. isControl: !0,
  8273. requestStart: function (o) {
  8274. var s;
  8275. return (
  8276. (a = o.useSnap),
  8277. {
  8278. datas: r,
  8279. parentDirection: o.direction || [1, 1],
  8280. parentIsWidth:
  8281. (s = o == null ? void 0 : o.horizontal) !== null && s !== void 0
  8282. ? s
  8283. : !0,
  8284. useSnap: a
  8285. }
  8286. );
  8287. },
  8288. request: function (o) {
  8289. return (
  8290. 'offsetWidth' in o
  8291. ? (e = o.offsetWidth - i.offsetWidth)
  8292. : 'deltaWidth' in o && (e += o.deltaWidth),
  8293. 'offsetHeight' in o
  8294. ? (n = o.offsetHeight - i.offsetHeight)
  8295. : 'deltaHeight' in o && (n += o.deltaHeight),
  8296. {
  8297. datas: r,
  8298. parentDist: [e, n],
  8299. parentKeepRatio: o.keepRatio,
  8300. useSnap: a
  8301. }
  8302. );
  8303. },
  8304. requestEnd: function () {
  8305. return { datas: r, isDrag: !0, useSnap: a };
  8306. }
  8307. };
  8308. },
  8309. unset: function (t) {
  8310. t.state.gestos.resizable = null;
  8311. }
  8312. };
  8313. function Bn(t, r, e, n, a) {
  8314. var i = t.props.groupable,
  8315. o = t.state,
  8316. s = o.is3d ? 4 : 3,
  8317. u = r.origin,
  8318. l = Ct(
  8319. t.state.rootMatrix,
  8320. tt([u[0], u[1]], i ? [0, 0] : [o.left, o.top]),
  8321. s
  8322. ),
  8323. f = ft([a.left, a.top], l);
  8324. (r.startAbsoluteOrigin = f),
  8325. (r.prevDeg = (Et(f, [e, n]) / Math.PI) * 180),
  8326. (r.defaultDeg = r.prevDeg),
  8327. (r.prevSnapDeg = 0),
  8328. (r.loop = 0),
  8329. (r.startDist = sr(f, [e, n]));
  8330. }
  8331. function Ue(t, r, e) {
  8332. var n = e.defaultDeg,
  8333. a = e.prevDeg,
  8334. i = a % 360,
  8335. o = Math.floor(a / 360);
  8336. i < 0 && (i += 360),
  8337. i > t && i > 270 && t < 90 ? ++o : i < t && i < 90 && t > 270 && --o;
  8338. var s = r * (o * 360 + t - n);
  8339. return (e.prevDeg = n + s), s;
  8340. }
  8341. function Mn(t, r, e, n) {
  8342. return Ue((Et(n.startAbsoluteOrigin, [t, r]) / Math.PI) * 180, e, n);
  8343. }
  8344. function In(t, r, e, n, a, i) {
  8345. var o = t.props.throttleRotate,
  8346. s = o === void 0 ? 0 : o,
  8347. u = e.prevSnapDeg,
  8348. l = 0,
  8349. f = !1;
  8350. if (i) {
  8351. var c = kp(t, r, n, a + n);
  8352. (f = c.isSnap), (l = a + c.dist);
  8353. }
  8354. f || (l = nt(a + n, s));
  8355. var v = l - a;
  8356. return (e.prevSnapDeg = v), [v - u, v, l];
  8357. }
  8358. function vs(t, r, e) {
  8359. var n = B(r, 4),
  8360. a = n[0],
  8361. i = n[1],
  8362. o = n[2],
  8363. s = n[3];
  8364. if (t === 'none') return [];
  8365. if (Rt(t))
  8366. return t.map(function (h) {
  8367. return vs(h, [a, i, o, s], e)[0];
  8368. });
  8369. var u = B((t || 'top').split('-'), 2),
  8370. l = u[0],
  8371. f = u[1],
  8372. c = [a, i];
  8373. l === 'left'
  8374. ? (c = [o, a])
  8375. : l === 'right'
  8376. ? (c = [i, s])
  8377. : l === 'bottom' && (c = [s, o]);
  8378. var v = [(c[0][0] + c[1][0]) / 2, (c[0][1] + c[1][1]) / 2],
  8379. p = bs(c, e);
  8380. if (f) {
  8381. var d = f === 'top' || f === 'left',
  8382. g = l === 'bottom' || l === 'left';
  8383. v = c[(d && !g) || (!d && g) ? 0 : 1];
  8384. }
  8385. return [[v, p]];
  8386. }
  8387. function ea(t, r) {
  8388. if (r.isRequest) return r.requestAble === 'rotatable';
  8389. var e = r.inputEvent.target;
  8390. if (
  8391. Tt(e, $('rotation-control')) ||
  8392. (t.props.rotateAroundControls && Tt(e, $('around-control'))) ||
  8393. (Tt(e, $('control')) && Tt(e, $('rotatable')))
  8394. )
  8395. return !0;
  8396. var n = t.props.rotationTarget;
  8397. return n
  8398. ? Wa(n, !0).some(function (a) {
  8399. return a ? e === a || e.contains(a) : !1;
  8400. })
  8401. : !1;
  8402. }
  8403. var Ep =
  8404. '.rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n',
  8405. yp = {
  8406. name: 'rotatable',
  8407. canPinch: !0,
  8408. props: [
  8409. 'rotatable',
  8410. 'rotationPosition',
  8411. 'throttleRotate',
  8412. 'renderDirections',
  8413. 'rotationTarget',
  8414. 'rotateAroundControls',
  8415. 'edge',
  8416. 'resolveAblesWithRotatable',
  8417. 'displayAroundControls'
  8418. ],
  8419. events: [
  8420. 'rotateStart',
  8421. 'beforeRotate',
  8422. 'rotate',
  8423. 'rotateEnd',
  8424. 'rotateGroupStart',
  8425. 'beforeRotateGroup',
  8426. 'rotateGroup',
  8427. 'rotateGroupEnd'
  8428. ],
  8429. css: [Ep],
  8430. viewClassName: function (t) {
  8431. return t.isDragging('rotatable') ? $('view-rotation-dragging') : '';
  8432. },
  8433. render: function (t, r) {
  8434. var e = Or(t.props, 'rotatable'),
  8435. n = e.rotatable,
  8436. a = e.rotationPosition,
  8437. i = e.zoom,
  8438. o = e.renderDirections,
  8439. s = e.rotateAroundControls,
  8440. u = e.resolveAblesWithRotatable,
  8441. l = t.getState(),
  8442. f = l.renderPoses,
  8443. c = l.direction;
  8444. if (!n) return null;
  8445. var v = vs(a, f, c),
  8446. p = [];
  8447. if (
  8448. (v.forEach(function (A, m) {
  8449. var E = B(A, 2),
  8450. y = E[0],
  8451. b = E[1];
  8452. p.push(
  8453. r.createElement(
  8454. 'div',
  8455. {
  8456. key: 'rotation'.concat(m),
  8457. className: $('rotation'),
  8458. style: {
  8459. transform: 'translate(-50%) translate('
  8460. .concat(y[0], 'px, ')
  8461. .concat(y[1], 'px) rotate(')
  8462. .concat(b, 'rad)')
  8463. }
  8464. },
  8465. r.createElement('div', {
  8466. className: $('line rotation-line'),
  8467. style: { transform: 'scaleX('.concat(i, ')') }
  8468. }),
  8469. r.createElement('div', {
  8470. className: $('control rotation-control'),
  8471. style: { transform: 'translate(0.5px) scale('.concat(i, ')') }
  8472. })
  8473. )
  8474. );
  8475. }),
  8476. o)
  8477. ) {
  8478. var d = fr(u || {}),
  8479. g = {};
  8480. d.forEach(function (A) {
  8481. u[A].forEach(function (m) {
  8482. g[m] = A;
  8483. });
  8484. });
  8485. var h = [];
  8486. Rt(o) &&
  8487. (h = o.map(function (A) {
  8488. var m = g[A];
  8489. return {
  8490. data: m ? { resolve: m } : {},
  8491. classNames: m ? ['move'] : [],
  8492. dir: A
  8493. };
  8494. })),
  8495. p.push.apply(p, U([], B($o(t, 'rotatable', h, r)), !1));
  8496. }
  8497. return s && p.push.apply(p, U([], B(as(t, r)), !1)), p;
  8498. },
  8499. dragControlCondition: ea,
  8500. dragControlStart: function (t, r) {
  8501. var e,
  8502. n,
  8503. a = r.datas,
  8504. i = r.clientX,
  8505. o = r.clientY,
  8506. s = r.parentRotate,
  8507. u = r.parentFlag,
  8508. l = r.isPinch,
  8509. f = r.isRequest,
  8510. c = t.state,
  8511. v = c.target,
  8512. p = c.left,
  8513. d = c.top,
  8514. g = c.direction,
  8515. h = c.beforeDirection,
  8516. A = c.targetTransform,
  8517. m = c.moveableClientRect,
  8518. E = c.offsetMatrix,
  8519. y = c.targetMatrix,
  8520. b = c.allMatrix,
  8521. C = c.width,
  8522. S = c.height;
  8523. if (!f && !v) return !1;
  8524. var D = t.getRect();
  8525. (a.rect = D), (a.transform = A), (a.left = p), (a.top = d);
  8526. var x = function (X) {
  8527. var W = cs(t.state, X);
  8528. (a.fixedDirection = W.fixedDirection),
  8529. (a.fixedOffset = W.fixedOffset),
  8530. (a.fixedPosition = W.fixedPosition),
  8531. F && F.setFixedPosition(X);
  8532. },
  8533. w = function (X) {
  8534. var W = Cp(t.state, X);
  8535. (a.fixedDirection = W.fixedDirection),
  8536. (a.fixedOffset = W.fixedOffset),
  8537. (a.fixedPosition = W.fixedPosition),
  8538. F && F.setFixedDirection(X);
  8539. },
  8540. T = i,
  8541. I = o;
  8542. if (f || l || u) {
  8543. var M = s || 0;
  8544. (a.beforeInfo = {
  8545. origin: D.beforeOrigin,
  8546. prevDeg: M,
  8547. defaultDeg: M,
  8548. prevSnapDeg: 0,
  8549. startDist: 0
  8550. }),
  8551. (a.afterInfo = R(R({}, a.beforeInfo), { origin: D.origin })),
  8552. (a.absoluteInfo = R(R({}, a.beforeInfo), {
  8553. origin: D.origin,
  8554. startValue: M
  8555. }));
  8556. } else {
  8557. var O = (n = r.inputEvent) === null || n === void 0 ? void 0 : n.target;
  8558. if (O) {
  8559. var P = O.getAttribute('data-direction') || '',
  8560. z = Mv[P];
  8561. if (z) {
  8562. (a.isControl = !0),
  8563. (a.isAroundControl = Tt(O, $('around-control'))),
  8564. (a.controlDirection = z);
  8565. var H = O.getAttribute('data-resolve');
  8566. H && (a.resolveAble = H);
  8567. var G = jp(c.rootMatrix, c.renderPoses, m);
  8568. (e = B(Ot(G, z), 2)), (T = e[0]), (I = e[1]);
  8569. }
  8570. }
  8571. (a.beforeInfo = { origin: D.beforeOrigin }),
  8572. (a.afterInfo = { origin: D.origin }),
  8573. (a.absoluteInfo = { origin: D.origin, startValue: D.rotation });
  8574. var L = x;
  8575. (x = function (X) {
  8576. var W = c.is3d ? 4 : 3,
  8577. _ = B(ft(Oo(y, W), X), 2),
  8578. rt = _[0],
  8579. lt = _[1],
  8580. et = Nt(E, Mr([rt, lt], W)),
  8581. Z = Nt(b, Mr([X[0], X[1]], W));
  8582. L(X);
  8583. var J = c.posDelta;
  8584. (a.beforeInfo.origin = tt(et, J)),
  8585. (a.afterInfo.origin = tt(Z, J)),
  8586. (a.absoluteInfo.origin = tt(Z, J)),
  8587. Bn(t, a.beforeInfo, T, I, m),
  8588. Bn(t, a.afterInfo, T, I, m),
  8589. Bn(t, a.absoluteInfo, T, I, m);
  8590. }),
  8591. (w = function (X) {
  8592. var W = Ot(
  8593. [
  8594. [0, 0],
  8595. [C, 0],
  8596. [0, S],
  8597. [C, S]
  8598. ],
  8599. X
  8600. );
  8601. x(W);
  8602. });
  8603. }
  8604. (a.startClientX = T),
  8605. (a.startClientY = I),
  8606. (a.direction = g),
  8607. (a.beforeDirection = h),
  8608. (a.startValue = 0),
  8609. (a.datas = {}),
  8610. cn(r, 'rotate');
  8611. var V = !1,
  8612. F = !1;
  8613. if (a.isControl && a.resolveAble) {
  8614. var Q = a.resolveAble;
  8615. Q === 'resizable' &&
  8616. (F = ra.dragControlStart(
  8617. t,
  8618. R(R({}, new Wr('resizable').dragStart([0, 0], r)), {
  8619. parentPosition: a.controlPosition,
  8620. parentFixedPosition: a.fixedPosition
  8621. })
  8622. ));
  8623. }
  8624. F || (V = Ht.dragStart(t, new Wr().dragStart([0, 0], r))), x(Zp(t));
  8625. var j = ot(
  8626. t,
  8627. r,
  8628. R(
  8629. R(
  8630. {
  8631. set: function (X) {
  8632. a.startValue = (X * Math.PI) / 180;
  8633. },
  8634. setFixedDirection: w,
  8635. setFixedPosition: x
  8636. },
  8637. fn(r)
  8638. ),
  8639. { dragStart: V, resizeStart: F }
  8640. )
  8641. ),
  8642. K = Y(t, 'onRotateStart', j);
  8643. return (
  8644. (a.isRotate = K !== !1),
  8645. (c.snapRenderInfo = { request: r.isRequest }),
  8646. a.isRotate ? j : !1
  8647. );
  8648. },
  8649. dragControl: function (t, r) {
  8650. var e,
  8651. n,
  8652. a,
  8653. i = r.datas,
  8654. o = r.clientDistX,
  8655. s = r.clientDistY,
  8656. u = r.parentRotate,
  8657. l = r.parentFlag,
  8658. f = r.isPinch,
  8659. c = r.groupDelta,
  8660. v = r.resolveMatrix,
  8661. p = i.beforeDirection,
  8662. d = i.beforeInfo,
  8663. g = i.afterInfo,
  8664. h = i.absoluteInfo,
  8665. A = i.isRotate,
  8666. m = i.startValue,
  8667. E = i.rect,
  8668. y = i.startClientX,
  8669. b = i.startClientY;
  8670. if (A) {
  8671. un(r, 'rotate');
  8672. var C = Iv(r),
  8673. S = p * C,
  8674. D = t.props.parentMoveable,
  8675. x = 0,
  8676. w,
  8677. T,
  8678. I = 0,
  8679. M,
  8680. O,
  8681. P = 0,
  8682. z,
  8683. H,
  8684. G = (180 / Math.PI) * m,
  8685. L = h.startValue,
  8686. V = !1,
  8687. F = y + o,
  8688. Q = b + s;
  8689. if (!l && 'parentDist' in r) {
  8690. var j = r.parentDist;
  8691. (w = j), (M = j), (z = j);
  8692. } else
  8693. f || l
  8694. ? ((w = Ue(u, p, d)), (M = Ue(u, S, g)), (z = Ue(u, S, h)))
  8695. : ((w = Mn(F, Q, p, d)),
  8696. (M = Mn(F, Q, S, g)),
  8697. (z = Mn(F, Q, S, h)),
  8698. (V = !0));
  8699. if (
  8700. ((T = G + w),
  8701. (O = G + M),
  8702. (H = L + z),
  8703. Y(
  8704. t,
  8705. 'onBeforeRotate',
  8706. ot(
  8707. t,
  8708. r,
  8709. {
  8710. beforeRotation: T,
  8711. rotation: O,
  8712. absoluteRotation: H,
  8713. setRotation: function (vt) {
  8714. (M = vt - G), (w = M), (z = M);
  8715. }
  8716. },
  8717. !0
  8718. )
  8719. ),
  8720. (e = B(In(t, E, d, w, G, V), 3)),
  8721. (x = e[0]),
  8722. (w = e[1]),
  8723. (T = e[2]),
  8724. (n = B(In(t, E, g, M, G, V), 3)),
  8725. (I = n[0]),
  8726. (M = n[1]),
  8727. (O = n[2]),
  8728. (a = B(In(t, E, h, z, L, V), 3)),
  8729. (P = a[0]),
  8730. (z = a[1]),
  8731. (H = a[2]),
  8732. !(!P && !I && !x && !D && !v))
  8733. ) {
  8734. var K = ln(
  8735. i,
  8736. 'rotate('.concat(O, 'deg)'),
  8737. 'rotate('.concat(M, 'deg)')
  8738. );
  8739. v &&
  8740. (i.fixedPosition = Ta(
  8741. t,
  8742. i.targetAllTransform,
  8743. i.fixedDirection,
  8744. i.fixedOffset,
  8745. i
  8746. ));
  8747. var X = Uv(t, M, i),
  8748. W = tt(ft(c || [0, 0], X), i.prevInverseDist || [0, 0]);
  8749. (i.prevInverseDist = X), (i.requestValue = null);
  8750. var _ = jo(t, K, W, f, r),
  8751. rt = _,
  8752. lt = sr([F, Q], h.startAbsoluteOrigin) - h.startDist,
  8753. et = void 0;
  8754. if (i.resolveAble === 'resizable') {
  8755. var Z = ra.dragControl(
  8756. t,
  8757. R(
  8758. R(
  8759. {},
  8760. De(r, t.state, [r.deltaX, r.deltaY], !!f, !1, 'resizable')
  8761. ),
  8762. { resolveMatrix: !0, parentDistance: lt }
  8763. )
  8764. );
  8765. Z && ((et = Z), (rt = Bs(rt, Z, r)));
  8766. }
  8767. var J = ot(
  8768. t,
  8769. r,
  8770. R(
  8771. R(
  8772. {
  8773. delta: I,
  8774. dist: M,
  8775. rotate: O,
  8776. rotation: O,
  8777. beforeDist: w,
  8778. beforeDelta: x,
  8779. beforeRotate: T,
  8780. beforeRotation: T,
  8781. absoluteDist: z,
  8782. absoluteDelta: P,
  8783. absoluteRotate: H,
  8784. absoluteRotation: H,
  8785. isPinch: !!f,
  8786. resize: et
  8787. },
  8788. _
  8789. ),
  8790. rt
  8791. )
  8792. );
  8793. return Y(t, 'onRotate', J), J;
  8794. }
  8795. }
  8796. },
  8797. dragControlEnd: function (t, r) {
  8798. var e = r.datas;
  8799. if (e.isRotate) {
  8800. e.isRotate = !1;
  8801. var n = Qt(t, r, {});
  8802. return Y(t, 'onRotateEnd', n), n;
  8803. }
  8804. },
  8805. dragGroupControlCondition: ea,
  8806. dragGroupControlStart: function (t, r) {
  8807. var e = r.datas,
  8808. n = t.state,
  8809. a = n.left,
  8810. i = n.top,
  8811. o = n.beforeOrigin,
  8812. s = this.dragControlStart(t, r);
  8813. if (!s) return !1;
  8814. s.set(e.beforeDirection * t.rotation);
  8815. var u = ur(t, this, 'dragControlStart', r, function (c, v) {
  8816. var p = c.state,
  8817. d = p.left,
  8818. g = p.top,
  8819. h = p.beforeOrigin,
  8820. A = ft(tt([d, g], [a, i]), tt(h, o));
  8821. return (
  8822. (v.datas.startGroupClient = A),
  8823. (v.datas.groupClient = A),
  8824. R(R({}, v), { parentRotate: 0 })
  8825. );
  8826. }),
  8827. l = R(R({}, s), { targets: t.props.targets, events: u }),
  8828. f = Y(t, 'onRotateGroupStart', l);
  8829. return (e.isRotate = f !== !1), e.isRotate ? s : !1;
  8830. },
  8831. dragGroupControl: function (t, r) {
  8832. var e = r.datas;
  8833. if (e.isRotate) {
  8834. hn(t, 'onBeforeRotate', function (l) {
  8835. Y(
  8836. t,
  8837. 'onBeforeRotateGroup',
  8838. ot(t, r, R(R({}, l), { targets: t.props.targets }), !0)
  8839. );
  8840. });
  8841. var n = this.dragControl(t, r);
  8842. if (n) {
  8843. var a = e.beforeDirection,
  8844. i = n.beforeDist,
  8845. o = (i / 180) * Math.PI,
  8846. s = ur(t, this, 'dragControl', r, function (l, f) {
  8847. var c = f.datas.startGroupClient,
  8848. v = B(f.datas.groupClient, 2),
  8849. p = v[0],
  8850. d = v[1],
  8851. g = B(Se(c, o * a), 2),
  8852. h = g[0],
  8853. A = g[1],
  8854. m = [h - p, A - d];
  8855. return (
  8856. (f.datas.groupClient = [h, A]),
  8857. R(R({}, f), { parentRotate: i, groupDelta: m })
  8858. );
  8859. });
  8860. t.rotation = a * n.beforeRotation;
  8861. var u = R(
  8862. {
  8863. targets: t.props.targets,
  8864. events: s,
  8865. set: function (l) {
  8866. t.rotation = l;
  8867. },
  8868. setGroupRotation: function (l) {
  8869. t.rotation = l;
  8870. }
  8871. },
  8872. n
  8873. );
  8874. return Y(t, 'onRotateGroup', u), u;
  8875. }
  8876. }
  8877. },
  8878. dragGroupControlEnd: function (t, r) {
  8879. var e = r.isDrag,
  8880. n = r.datas;
  8881. if (n.isRotate) {
  8882. this.dragControlEnd(t, r);
  8883. var a = ur(t, this, 'dragControlEnd', r),
  8884. i = Qt(t, r, { targets: t.props.targets, events: a });
  8885. return Y(t, 'onRotateGroupEnd', i), e;
  8886. }
  8887. },
  8888. request: function (t) {
  8889. var r = {},
  8890. e = 0,
  8891. n = t.getRotation();
  8892. return {
  8893. isControl: !0,
  8894. requestStart: function () {
  8895. return { datas: r };
  8896. },
  8897. request: function (a) {
  8898. return (
  8899. 'deltaRotate' in a
  8900. ? (e += a.deltaRotate)
  8901. : 'rotate' in a && (e = a.rotate - n),
  8902. { datas: r, parentDist: e }
  8903. );
  8904. },
  8905. requestEnd: function () {
  8906. return { datas: r, isDrag: !0 };
  8907. }
  8908. };
  8909. }
  8910. };
  8911. function Dp(t, r) {
  8912. var e,
  8913. n = t.direction,
  8914. a = t.classNames,
  8915. i = t.size,
  8916. o = t.pos,
  8917. s = t.zoom,
  8918. u = t.key,
  8919. l = n === 'horizontal',
  8920. f = l ? 'Y' : 'X';
  8921. return r.createElement('div', {
  8922. key: u,
  8923. className: a.join(' '),
  8924. style:
  8925. ((e = {}),
  8926. (e[l ? 'width' : 'height'] = ''.concat(i)),
  8927. (e.transform = 'translate('
  8928. .concat(o[0], ', ')
  8929. .concat(o[1], ') translate')
  8930. .concat(f, '(-50%) scale')
  8931. .concat(f, '(')
  8932. .concat(s, ')')),
  8933. e)
  8934. });
  8935. }
  8936. function Fa(t, r) {
  8937. return Dp(
  8938. R(R({}, t), {
  8939. classNames: U(
  8940. [$('line', 'guideline', t.direction)],
  8941. B(t.classNames),
  8942. !1
  8943. ).filter(function (e) {
  8944. return e;
  8945. }),
  8946. size: t.size || ''.concat(t.sizeValue, 'px'),
  8947. pos:
  8948. t.pos ||
  8949. t.posValue.map(function (e) {
  8950. return ''.concat(nt(e, 0.1), 'px');
  8951. })
  8952. }),
  8953. r
  8954. );
  8955. }
  8956. function Oi(t, r, e, n, a, i, o, s) {
  8957. var u = t.props.zoom;
  8958. return e.map(function (l, f) {
  8959. var c = l.type,
  8960. v = l.pos,
  8961. p = [0, 0];
  8962. return (
  8963. (p[o] = n),
  8964. (p[o ? 0 : 1] = -a + v),
  8965. Fa(
  8966. {
  8967. key: ''.concat(r, 'TargetGuideline').concat(f),
  8968. classNames: [$('target', 'bold', c)],
  8969. posValue: p,
  8970. sizeValue: i,
  8971. zoom: u,
  8972. direction: r
  8973. },
  8974. s
  8975. )
  8976. );
  8977. });
  8978. }
  8979. function Pi(t, r, e, n, a, i) {
  8980. var o = t.props,
  8981. s = o.zoom,
  8982. u = o.isDisplayInnerSnapDigit,
  8983. l = r === 'horizontal' ? mr : Sr,
  8984. f = a[l.start],
  8985. c = a[l.end];
  8986. return e
  8987. .filter(function (v) {
  8988. var p = v.hide,
  8989. d = v.elementRect;
  8990. if (p) return !1;
  8991. if (u && d) {
  8992. var g = d.rect;
  8993. if (g[l.start] <= f && c <= g[l.end]) return !1;
  8994. }
  8995. return !0;
  8996. })
  8997. .map(function (v, p) {
  8998. var d = v.pos,
  8999. g = v.size,
  9000. h = v.element,
  9001. A = v.className,
  9002. m = [-n[0] + d[0], -n[1] + d[1]];
  9003. return Fa(
  9004. {
  9005. key: ''.concat(r, '-default-guideline-').concat(p),
  9006. classNames: h ? [$('bold'), A] : [$('normal'), A],
  9007. direction: r,
  9008. posValue: m,
  9009. sizeValue: g,
  9010. zoom: s
  9011. },
  9012. i
  9013. );
  9014. });
  9015. }
  9016. function ee(t, r, e, n, a, i, o, s) {
  9017. var u,
  9018. l = t.props,
  9019. f = l.snapDigit,
  9020. c = f === void 0 ? 0 : f,
  9021. v = l.isDisplaySnapDigit,
  9022. p = v === void 0 ? !0 : v,
  9023. d = l.snapDistFormat,
  9024. g =
  9025. d === void 0
  9026. ? function (b, C) {
  9027. return b;
  9028. }
  9029. : d,
  9030. h = l.zoom,
  9031. A = r === 'horizontal' ? 'X' : 'Y',
  9032. m = r === 'vertical' ? 'height' : 'width',
  9033. E = Math.abs(a),
  9034. y = p ? parseFloat(E.toFixed(c)) : 0;
  9035. return s.createElement(
  9036. 'div',
  9037. {
  9038. key: ''.concat(r, '-').concat(e, '-guideline-').concat(n),
  9039. className: $('guideline-group', r),
  9040. style:
  9041. ((u = { left: ''.concat(i[0], 'px'), top: ''.concat(i[1], 'px') }),
  9042. (u[m] = ''.concat(E, 'px')),
  9043. u)
  9044. },
  9045. Fa(
  9046. {
  9047. direction: r,
  9048. classNames: [$(e), o],
  9049. size: '100%',
  9050. posValue: [0, 0],
  9051. sizeValue: E,
  9052. zoom: h
  9053. },
  9054. s
  9055. ),
  9056. s.createElement(
  9057. 'div',
  9058. {
  9059. className: $('size-value', 'gap'),
  9060. style: {
  9061. transform: 'translate'.concat(A, '(-50%) scale(').concat(h, ')')
  9062. }
  9063. },
  9064. y > 0 ? g(y, r) : ''
  9065. )
  9066. );
  9067. }
  9068. function bp(t, r, e, n) {
  9069. var a = t === 'vertical' ? 0 : 1,
  9070. i = t === 'vertical' ? 1 : 0,
  9071. o = a ? mr : Sr,
  9072. s = e[o.start],
  9073. u = e[o.end];
  9074. return Ms(r, function (l) {
  9075. return l.pos[a];
  9076. }).map(function (l) {
  9077. var f = [],
  9078. c = [],
  9079. v = [];
  9080. return (
  9081. l.forEach(function (p) {
  9082. var d,
  9083. g,
  9084. h = p.element,
  9085. A = p.elementRect.rect;
  9086. if (A[o.end] < s) f.push(p);
  9087. else if (u < A[o.start]) c.push(p);
  9088. else if (A[o.start] <= s && u <= A[o.end] && n) {
  9089. var m = p.pos,
  9090. E = {
  9091. element: h,
  9092. rect: R(R({}, A), ((d = {}), (d[o.end] = A[o.start]), d))
  9093. },
  9094. y = {
  9095. element: h,
  9096. rect: R(R({}, A), ((g = {}), (g[o.start] = A[o.end]), g))
  9097. },
  9098. b = [0, 0],
  9099. C = [0, 0];
  9100. (b[a] = m[a]),
  9101. (b[i] = m[i]),
  9102. (C[a] = m[a]),
  9103. (C[i] = m[i] + p.size),
  9104. f.push({ type: t, pos: b, size: 0, elementRect: E, direction: '' }),
  9105. c.push({ type: t, pos: C, size: 0, elementRect: y, direction: '' });
  9106. }
  9107. }),
  9108. f.sort(function (p, d) {
  9109. return d.pos[i] - p.pos[i];
  9110. }),
  9111. c.sort(function (p, d) {
  9112. return p.pos[i] - d.pos[i];
  9113. }),
  9114. { total: l, start: f, end: c, inner: v }
  9115. );
  9116. });
  9117. }
  9118. function xp(t, r, e, n, a) {
  9119. var i = t.props.isDisplayInnerSnapDigit,
  9120. o = [];
  9121. return (
  9122. ['vertical', 'horizontal'].forEach(function (s) {
  9123. var u = r.filter(function (h) {
  9124. return h.type === s;
  9125. }),
  9126. l = s === 'vertical' ? 1 : 0,
  9127. f = l ? 0 : 1,
  9128. c = bp(s, u, n, i),
  9129. v = l ? Sr : mr,
  9130. p = l ? mr : Sr,
  9131. d = n[v.start],
  9132. g = n[v.end];
  9133. c.forEach(function (h) {
  9134. var A = h.total,
  9135. m = h.start,
  9136. E = h.end,
  9137. y = h.inner,
  9138. b = e[f] + A[0].pos[f] - n[p.start],
  9139. C = n;
  9140. m.forEach(function (S) {
  9141. var D = S.elementRect.rect,
  9142. x = C[v.start] - D[v.end];
  9143. if (x > 0) {
  9144. var w = [0, 0];
  9145. (w[l] = e[l] + C[v.start] - d - x),
  9146. (w[f] = b),
  9147. o.push(ee(t, s, 'dashed', o.length, x, w, S.className, a));
  9148. }
  9149. C = D;
  9150. }),
  9151. (C = n),
  9152. E.forEach(function (S) {
  9153. var D = S.elementRect.rect,
  9154. x = D[v.start] - C[v.end];
  9155. if (x > 0) {
  9156. var w = [0, 0];
  9157. (w[l] = e[l] + C[v.end] - d),
  9158. (w[f] = b),
  9159. o.push(ee(t, s, 'dashed', o.length, x, w, S.className, a));
  9160. }
  9161. C = D;
  9162. }),
  9163. y.forEach(function (S) {
  9164. var D = S.elementRect.rect,
  9165. x = d - D[v.start],
  9166. w = D[v.end] - g,
  9167. T = [0, 0],
  9168. I = [0, 0];
  9169. (T[l] = e[l] - x),
  9170. (T[f] = b),
  9171. (I[l] = e[l] + g - d),
  9172. (I[f] = b),
  9173. o.push(ee(t, s, 'dashed', o.length, x, T, S.className, a)),
  9174. o.push(ee(t, s, 'dashed', o.length, w, I, S.className, a));
  9175. });
  9176. });
  9177. }),
  9178. o
  9179. );
  9180. }
  9181. function wp(t, r, e, n, a) {
  9182. var i = [];
  9183. return (
  9184. ['horizontal', 'vertical'].forEach(function (o) {
  9185. var s = r
  9186. .filter(function (h) {
  9187. return h.type === o;
  9188. })
  9189. .slice(0, 1),
  9190. u = o === 'vertical' ? 0 : 1,
  9191. l = u ? 0 : 1,
  9192. f = u ? Sr : mr,
  9193. c = u ? mr : Sr,
  9194. v = n[f.start],
  9195. p = n[f.end],
  9196. d = n[c.start],
  9197. g = n[c.end];
  9198. s.forEach(function (h) {
  9199. var A = h.gap,
  9200. m = h.gapRects,
  9201. E = Math.max.apply(
  9202. Math,
  9203. U(
  9204. [d],
  9205. B(
  9206. m.map(function (C) {
  9207. var S = C.rect;
  9208. return S[c.start];
  9209. })
  9210. ),
  9211. !1
  9212. )
  9213. ),
  9214. y = Math.min.apply(
  9215. Math,
  9216. U(
  9217. [g],
  9218. B(
  9219. m.map(function (C) {
  9220. var S = C.rect;
  9221. return S[c.end];
  9222. })
  9223. ),
  9224. !1
  9225. )
  9226. ),
  9227. b = (E + y) / 2;
  9228. E === y ||
  9229. b === (d + g) / 2 ||
  9230. m.forEach(function (C) {
  9231. var S = C.rect,
  9232. D = C.className,
  9233. x = [e[0], e[1]];
  9234. if (S[f.end] < v) x[u] += S[f.end] - v;
  9235. else if (p < S[f.start]) x[u] += S[f.start] - v - A;
  9236. else return;
  9237. (x[l] += b - d),
  9238. i.push(
  9239. ee(
  9240. t,
  9241. u ? 'vertical' : 'horizontal',
  9242. 'gap',
  9243. i.length,
  9244. A,
  9245. x,
  9246. D,
  9247. a
  9248. )
  9249. );
  9250. });
  9251. });
  9252. }),
  9253. i
  9254. );
  9255. }
  9256. function na(t) {
  9257. var r = t.state,
  9258. e = r.containerClientRect,
  9259. n = r.hasFixed,
  9260. a = e.overflow,
  9261. i = e.scrollHeight,
  9262. o = e.scrollWidth,
  9263. s = e.clientHeight,
  9264. u = e.clientWidth,
  9265. l = e.clientLeft,
  9266. f = e.clientTop,
  9267. c = t.props,
  9268. v = c.snapGap,
  9269. p = v === void 0 ? !0 : v,
  9270. d = c.verticalGuidelines,
  9271. g = c.horizontalGuidelines,
  9272. h = c.snapThreshold,
  9273. A = h === void 0 ? 5 : h,
  9274. m = c.snapGridWidth,
  9275. E = m === void 0 ? 0 : m,
  9276. y = c.snapGridHeight,
  9277. b = y === void 0 ? 0 : y,
  9278. C = c.maxSnapElementGuidelineDistance,
  9279. S = C === void 0 ? 1 / 0 : C,
  9280. D = c.isDisplayGridGuidelines,
  9281. x = qt(jt(t.state)),
  9282. w = x.top,
  9283. T = x.left,
  9284. I = x.bottom,
  9285. M = x.right,
  9286. O = {
  9287. top: w,
  9288. left: T,
  9289. bottom: I,
  9290. right: M,
  9291. center: (T + M) / 2,
  9292. middle: (w + I) / 2
  9293. },
  9294. P = Mp(t),
  9295. z = U([], B(P), !1);
  9296. p && z.push.apply(z, U([], B(Rp(t, O, A)), !1));
  9297. var H = R({}, r.snapOffset || { left: 0, top: 0, bottom: 0, right: 0 });
  9298. if (
  9299. (z.push.apply(z, U([], B(Bp(E, b, a ? o : u, a ? i : s, l, f, H, D)), !1)),
  9300. n)
  9301. ) {
  9302. var G = e.left,
  9303. L = e.top;
  9304. (H.left += G), (H.top += L), (H.right += G), (H.bottom += L);
  9305. }
  9306. return (
  9307. z.push.apply(
  9308. z,
  9309. U([], B(ds(g || !1, d || !1, a ? o : u, a ? i : s, l, f, H)), !1)
  9310. ),
  9311. (z = z.filter(function (V) {
  9312. var F = V.element,
  9313. Q = V.elementRect,
  9314. j = V.type;
  9315. if (!F || !Q) return !0;
  9316. var K = Q.rect;
  9317. return ps(O, K, j, S);
  9318. })),
  9319. z
  9320. );
  9321. }
  9322. function Rp(t, r, e) {
  9323. var n = t.props,
  9324. a = n.maxSnapElementGuidelineDistance,
  9325. i = a === void 0 ? 1 / 0 : a,
  9326. o = n.maxSnapElementGapDistance,
  9327. s = o === void 0 ? 1 / 0 : o,
  9328. u = t.state.elementRects,
  9329. l = [];
  9330. return (
  9331. [
  9332. ['vertical', mr, Sr],
  9333. ['horizontal', Sr, mr]
  9334. ].forEach(function (f) {
  9335. var c = B(f, 3),
  9336. v = c[0],
  9337. p = c[1],
  9338. d = c[2],
  9339. g = r[p.start],
  9340. h = r[p.end],
  9341. A = r[p.center],
  9342. m = r[d.start],
  9343. E = r[d.end];
  9344. function y(S) {
  9345. var D = S.rect;
  9346. return D[p.end] < g + e
  9347. ? g - D[p.end]
  9348. : h - e < D[p.start]
  9349. ? D[p.start] - h
  9350. : -1;
  9351. }
  9352. var b = u
  9353. .filter(function (S) {
  9354. var D = S.rect;
  9355. return D[d.start] > E || D[d.end] < m ? !1 : y(S) > 0;
  9356. })
  9357. .sort(function (S, D) {
  9358. return y(S) - y(D);
  9359. }),
  9360. C = [];
  9361. b.forEach(function (S) {
  9362. b.forEach(function (D) {
  9363. if (S !== D) {
  9364. var x = S.rect,
  9365. w = D.rect,
  9366. T = x[d.start],
  9367. I = x[d.end],
  9368. M = w[d.start],
  9369. O = w[d.end];
  9370. T > O || M > I || C.push([S, D]);
  9371. }
  9372. });
  9373. }),
  9374. C.forEach(function (S) {
  9375. var D = B(S, 2),
  9376. x = D[0],
  9377. w = D[1],
  9378. T = x.rect,
  9379. I = w.rect,
  9380. M = T[p.start],
  9381. O = T[p.end],
  9382. P = I[p.start],
  9383. z = I[p.end],
  9384. H = 0,
  9385. G = 0,
  9386. L = !1,
  9387. V = !1,
  9388. F = !1;
  9389. if (O <= g && h <= P) {
  9390. if (
  9391. ((V = !0),
  9392. (H = (P - O - (h - g)) / 2),
  9393. (G = O + H + (h - g) / 2),
  9394. N(G - A) > e)
  9395. )
  9396. return;
  9397. } else if (O < P && z < g + e) {
  9398. if (((L = !0), (H = P - O), (G = z + H), N(G - g) > e)) return;
  9399. } else if (O < P && h - e < M) {
  9400. if (((F = !0), (H = P - O), (G = M - H), N(G - h) > e)) return;
  9401. } else return;
  9402. H &&
  9403. ps(r, I, v, i) &&
  9404. (H > s ||
  9405. l.push({
  9406. type: v,
  9407. pos: v === 'vertical' ? [G, 0] : [0, G],
  9408. element: w.element,
  9409. size: 0,
  9410. className: w.className,
  9411. isStart: L,
  9412. isCenter: V,
  9413. isEnd: F,
  9414. gap: H,
  9415. hide: !0,
  9416. gapRects: [x, w],
  9417. direction: ''
  9418. }));
  9419. });
  9420. }),
  9421. l
  9422. );
  9423. }
  9424. function Bp(t, r, e, n, a, i, o, s) {
  9425. a === void 0 && (a = 0), i === void 0 && (i = 0);
  9426. var u = [],
  9427. l = o.left,
  9428. f = o.top;
  9429. if (r)
  9430. for (var c = 0; c <= n; c += r)
  9431. u.push({
  9432. type: 'horizontal',
  9433. pos: [l, nt(c - i + f, 0.1)],
  9434. className: $('grid-guideline'),
  9435. size: e,
  9436. hide: !s,
  9437. direction: ''
  9438. });
  9439. if (t)
  9440. for (var c = 0; c <= e; c += t)
  9441. u.push({
  9442. type: 'vertical',
  9443. pos: [nt(c - a + l, 0.1), f],
  9444. className: $('grid-guideline'),
  9445. size: n,
  9446. hide: !s,
  9447. direction: ''
  9448. });
  9449. return u;
  9450. }
  9451. function ps(t, r, e, n) {
  9452. return e === 'horizontal'
  9453. ? N(t.right - r.left) <= n ||
  9454. N(t.left - r.right) <= n ||
  9455. (t.left <= r.right && r.left <= t.right)
  9456. : e === 'vertical'
  9457. ? N(t.bottom - r.top) <= n ||
  9458. N(t.top - r.bottom) <= n ||
  9459. (t.top <= r.bottom && r.top <= t.bottom)
  9460. : !0;
  9461. }
  9462. function Mp(t) {
  9463. var r = t.state,
  9464. e = t.props.elementGuidelines,
  9465. n = e === void 0 ? [] : e;
  9466. if (!n.length) return (r.elementRects = []), [];
  9467. var a = (r.elementRects || []).filter(function (v) {
  9468. return !v.refresh;
  9469. }),
  9470. i = n
  9471. .map(function (v) {
  9472. return tr(v) && 'element' in v
  9473. ? R(R({}, v), { element: nr(v.element, !0) })
  9474. : { element: nr(v, !0) };
  9475. })
  9476. .filter(function (v) {
  9477. return v.element;
  9478. }),
  9479. o = Uc(
  9480. a.map(function (v) {
  9481. return v.element;
  9482. }),
  9483. i.map(function (v) {
  9484. return v.element;
  9485. })
  9486. ),
  9487. s = o.maintained,
  9488. u = o.added,
  9489. l = [];
  9490. s.forEach(function (v) {
  9491. var p = B(v, 2),
  9492. d = p[0],
  9493. g = p[1];
  9494. l[g] = a[d];
  9495. }),
  9496. Ip(
  9497. t,
  9498. u.map(function (v) {
  9499. return i[v];
  9500. })
  9501. ).map(function (v, p) {
  9502. l[u[p]] = v;
  9503. }),
  9504. (r.elementRects = l);
  9505. var f = Pa(t.props.elementSnapDirections),
  9506. c = [];
  9507. return (
  9508. l.forEach(function (v) {
  9509. var p = v.element,
  9510. d = v.top,
  9511. g = d === void 0 ? f.top : d,
  9512. h = v.left,
  9513. A = h === void 0 ? f.left : h,
  9514. m = v.right,
  9515. E = m === void 0 ? f.right : m,
  9516. y = v.bottom,
  9517. b = y === void 0 ? f.bottom : y,
  9518. C = v.center,
  9519. S = C === void 0 ? f.center : C,
  9520. D = v.middle,
  9521. x = D === void 0 ? f.middle : D,
  9522. w = v.className,
  9523. T = v.rect,
  9524. I = ka(
  9525. { top: g, right: E, left: A, bottom: b, center: S, middle: x },
  9526. T
  9527. ),
  9528. M = I.horizontal,
  9529. O = I.vertical,
  9530. P = T.top,
  9531. z = T.left,
  9532. H = T.right - z,
  9533. G = T.bottom - P,
  9534. L = [H, G];
  9535. O.forEach(function (V) {
  9536. c.push({
  9537. type: 'vertical',
  9538. element: p,
  9539. pos: [nt(V, 0.1), P],
  9540. size: G,
  9541. sizes: L,
  9542. className: w,
  9543. elementRect: v,
  9544. direction: ''
  9545. });
  9546. }),
  9547. M.forEach(function (V) {
  9548. c.push({
  9549. type: 'horizontal',
  9550. element: p,
  9551. pos: [z, nt(V, 0.1)],
  9552. size: H,
  9553. sizes: L,
  9554. className: w,
  9555. elementRect: v,
  9556. direction: ''
  9557. });
  9558. });
  9559. }),
  9560. c
  9561. );
  9562. }
  9563. function ki(t, r) {
  9564. return t
  9565. ? t.map(function (e) {
  9566. var n = tr(e) ? e : { pos: e },
  9567. a = n.pos;
  9568. return Ur(a) ? n : R(R({}, n), { pos: gt(a, r) });
  9569. })
  9570. : [];
  9571. }
  9572. function ds(t, r, e, n, a, i, o) {
  9573. a === void 0 && (a = 0),
  9574. i === void 0 && (i = 0),
  9575. o === void 0 && (o = { left: 0, top: 0, right: 0, bottom: 0 });
  9576. var s = [],
  9577. u = o.left,
  9578. l = o.top,
  9579. f = o.bottom,
  9580. c = o.right,
  9581. v = e + c - u,
  9582. p = n + f - l;
  9583. return (
  9584. ki(t, p).forEach(function (d) {
  9585. s.push({
  9586. type: 'horizontal',
  9587. pos: [u, nt(d.pos - i + l, 0.1)],
  9588. size: v,
  9589. className: d.className,
  9590. direction: ''
  9591. });
  9592. }),
  9593. ki(r, v).forEach(function (d) {
  9594. s.push({
  9595. type: 'vertical',
  9596. pos: [nt(d.pos - a + u, 0.1), l],
  9597. size: p,
  9598. className: d.className,
  9599. direction: ''
  9600. });
  9601. }),
  9602. s
  9603. );
  9604. }
  9605. function Ip(t, r) {
  9606. if (!r.length) return [];
  9607. var e = t.props.groupable,
  9608. n = t.state,
  9609. a = n.containerClientRect,
  9610. i = n.rootMatrix,
  9611. o = n.is3d,
  9612. s = n.offsetDelta,
  9613. u = o ? 4 : 3,
  9614. l = B(rp(i, a, u), 2),
  9615. f = l[0],
  9616. c = l[1],
  9617. v = e ? 0 : s[0],
  9618. p = e ? 0 : s[1];
  9619. return r.map(function (d) {
  9620. var g = d.element.getBoundingClientRect(),
  9621. h = g.left - f - v,
  9622. A = g.top - c - p,
  9623. m = A + g.height,
  9624. E = h + g.width,
  9625. y = B(Xr(i, [h, A], u), 2),
  9626. b = y[0],
  9627. C = y[1],
  9628. S = B(Xr(i, [E, m], u), 2),
  9629. D = S[0],
  9630. x = S[1];
  9631. return R(R({}, d), {
  9632. rect: {
  9633. left: b,
  9634. right: D,
  9635. top: C,
  9636. bottom: x,
  9637. center: (b + D) / 2,
  9638. middle: (C + x) / 2
  9639. }
  9640. });
  9641. });
  9642. }
  9643. function Pe(t) {
  9644. var r = t.state,
  9645. e = r.container,
  9646. n = t.props.snapContainer || e;
  9647. if (r.snapContainer === n && r.guidelines && r.guidelines.length) return !1;
  9648. var a = r.containerClientRect,
  9649. i = { left: 0, top: 0, bottom: 0, right: 0 };
  9650. if (e !== n) {
  9651. var o = nr(n, !0);
  9652. if (o) {
  9653. var s = ue(o),
  9654. u = Hi(r, [s.left - a.left, s.top - a.top]),
  9655. l = Hi(r, [s.right - a.right, s.bottom - a.bottom]);
  9656. (i.left = nt(u[0], 1e-5)),
  9657. (i.top = nt(u[1], 1e-5)),
  9658. (i.right = nt(l[0], 1e-5)),
  9659. (i.bottom = nt(l[1], 1e-5));
  9660. }
  9661. }
  9662. return (
  9663. (r.snapContainer = n),
  9664. (r.snapOffset = i),
  9665. (r.guidelines = na(t)),
  9666. (r.enableSnap = !0),
  9667. !0
  9668. );
  9669. }
  9670. function gs(t, r, e, n, a, i) {
  9671. var o = kr(t, r, e, i ? 4 : 3),
  9672. s = Ot(o, n);
  9673. return Ha(o, tt(a, s));
  9674. }
  9675. function Gi(t) {
  9676. return t ? t / N(t) : 0;
  9677. }
  9678. function Tp(t, r, e, n, a, i) {
  9679. var o = i.fixedDirection,
  9680. s = ip(e, o, n),
  9681. u = Na(t, r, e, n),
  9682. l = U(U([], B(Ap(t, r, s, n, a, i)), !1), B(ls(t, u, i)), !1),
  9683. f = Je(l, 0),
  9684. c = Je(l, 1);
  9685. return {
  9686. width: { isBound: f.isBound, offset: f.offset[0] },
  9687. height: { isBound: c.isBound, offset: c.offset[1] }
  9688. };
  9689. }
  9690. function Op(t, r, e, n, a, i, o, s, u) {
  9691. var l = Ot(r, o),
  9692. f = dn(t, s, { vertical: [l[0]], horizontal: [l[1]] }),
  9693. c = f.horizontal.offset,
  9694. v = f.vertical.offset;
  9695. if (nt(v, jn) || nt(c, jn)) {
  9696. var p = B(ir({ datas: u, distX: -v, distY: -c }), 2),
  9697. d = p[0],
  9698. g = p[1],
  9699. h = Math.min(a || 1 / 0, e + o[0] * d),
  9700. A = Math.min(i || 1 / 0, n + o[1] * g);
  9701. return [h - e, A - n];
  9702. }
  9703. return [0, 0];
  9704. }
  9705. function hs(t, r, e, n, a, i, o, s) {
  9706. for (
  9707. var u = jt(t.state), l = t.props.keepRatio, f = 0, c = 0, v = 0;
  9708. v < 2;
  9709. ++v
  9710. ) {
  9711. var p = r(f, c),
  9712. d = Tp(t, p, a, l, o, s),
  9713. g = d.width,
  9714. h = d.height,
  9715. A = g.isBound,
  9716. m = h.isBound,
  9717. E = g.offset,
  9718. y = h.offset;
  9719. if ((v === 1 && (A || (E = 0), m || (y = 0)), v === 0 && o && !A && !m))
  9720. return [0, 0];
  9721. if (l) {
  9722. var b = N(E) * (e ? 1 / e : 1),
  9723. C = N(y) * (n ? 1 / n : 1),
  9724. S = A && m ? b < C : m || (!A && b < C);
  9725. S ? (E = (e * y) / n) : (y = (n * E) / e);
  9726. }
  9727. (f += E), (c += y);
  9728. }
  9729. if (a[0] && a[1]) {
  9730. var D = Sp(t, u, a, i, s),
  9731. x = D.maxWidth,
  9732. w = D.maxHeight,
  9733. T = B(
  9734. Op(
  9735. t,
  9736. r(f, c).map(function (O) {
  9737. return O.map(function (P) {
  9738. return nt(P, jn);
  9739. });
  9740. }),
  9741. e + f,
  9742. n + c,
  9743. x,
  9744. w,
  9745. a,
  9746. o,
  9747. s
  9748. ),
  9749. 2
  9750. ),
  9751. E = T[0],
  9752. y = T[1];
  9753. (f += E), (c += y);
  9754. }
  9755. return [f, c];
  9756. }
  9757. function oe(t) {
  9758. return t < 0 && (t = (t % 360) + 360), (t %= 360), t;
  9759. }
  9760. function Pp(t, r) {
  9761. r = oe(r);
  9762. var e = Math.floor(t / 360),
  9763. n = e * 360 + 360 - r,
  9764. a = e * 360 + r;
  9765. return N(t - n) < N(t - a) ? n : a;
  9766. }
  9767. function Tn(t, r) {
  9768. (t = oe(t)), (r = oe(r));
  9769. var e = oe(t - r);
  9770. return Math.min(e, 360 - e);
  9771. }
  9772. function kp(t, r, e, n) {
  9773. var a,
  9774. i = t.props,
  9775. o = (a = i[As]) !== null && a !== void 0 ? a : 5,
  9776. s = i[ms];
  9777. if ($r(t, 'rotatable')) {
  9778. var u = r.pos1,
  9779. l = r.pos2,
  9780. f = r.pos3,
  9781. c = r.pos4,
  9782. v = r.origin,
  9783. p = (e * Math.PI) / 180,
  9784. d = [u, l, f, c].map(function (y) {
  9785. return tt(y, v);
  9786. }),
  9787. g = d.map(function (y) {
  9788. return Se(y, p);
  9789. }),
  9790. h = U(U([], B(Zv(t, d, g, v, e)), !1), B(cp(t, d, g, v, e)), !1);
  9791. h.sort(function (y, b) {
  9792. return N(y - e) - N(b - e);
  9793. });
  9794. var A = h.length > 0;
  9795. if (A) return { isSnap: A, dist: A ? h[0] : e };
  9796. }
  9797. if (s != null && s.length && o) {
  9798. var m = s.slice().sort(function (y, b) {
  9799. return Tn(y, n) - Tn(b, n);
  9800. }),
  9801. E = m[0];
  9802. if (Tn(E, n) <= o) return { isSnap: !0, dist: e + Pp(n, E) - n };
  9803. }
  9804. return { isSnap: !1, dist: e };
  9805. }
  9806. function Gp(t, r, e, n, a, i, o) {
  9807. if (!$r(t, 'resizable')) return [0, 0];
  9808. var s = o.fixedDirection,
  9809. u = o.nextAllMatrix,
  9810. l = t.state,
  9811. f = l.allMatrix,
  9812. c = l.is3d;
  9813. return hs(
  9814. t,
  9815. function (v, p) {
  9816. return gs(u || f, r + v, e + p, s, a, c);
  9817. },
  9818. r,
  9819. e,
  9820. n,
  9821. a,
  9822. i,
  9823. o
  9824. );
  9825. }
  9826. function Np(t, r, e, n, a) {
  9827. if (!$r(t, 'scalable')) return [0, 0];
  9828. var i = a.startOffsetWidth,
  9829. o = a.startOffsetHeight,
  9830. s = a.fixedPosition,
  9831. u = a.fixedDirection,
  9832. l = a.is3d,
  9833. f = hs(
  9834. t,
  9835. function (c, v) {
  9836. return gs(Fv(a, ft(r, [c / i, v / o])), i, o, u, s, l);
  9837. },
  9838. i,
  9839. o,
  9840. e,
  9841. s,
  9842. n,
  9843. a
  9844. );
  9845. return [f[0] / i, f[1] / o];
  9846. }
  9847. function Fp(t, r) {
  9848. r.absolutePoses = jt(t.state);
  9849. }
  9850. function Ni(t) {
  9851. var r = [];
  9852. return (
  9853. t.forEach(function (e) {
  9854. e.guidelineInfos.forEach(function (n) {
  9855. var a = n.guideline;
  9856. Kt(r, function (i) {
  9857. return i.guideline === a;
  9858. }) || ((a.direction = ''), r.push({ guideline: a, posInfo: e }));
  9859. });
  9860. }),
  9861. r.map(function (e) {
  9862. var n = e.guideline,
  9863. a = e.posInfo;
  9864. return R(R({}, n), { direction: a.direction });
  9865. })
  9866. );
  9867. }
  9868. function Fi(t, r, e, n, a, i) {
  9869. var o = Oa(vn(t, i), r, e),
  9870. s = o.vertical,
  9871. u = o.horizontal;
  9872. s.forEach(function (v) {
  9873. v.isBound && n.push({ type: 'bounds', pos: v.pos });
  9874. }),
  9875. u.forEach(function (v) {
  9876. v.isBound && a.push({ type: 'bounds', pos: v.pos });
  9877. });
  9878. var l = vp(t),
  9879. f = l.vertical,
  9880. c = l.horizontal;
  9881. f.forEach(function (v) {
  9882. lr(n, function (p) {
  9883. var d = p.type,
  9884. g = p.pos;
  9885. return d === 'bounds' && g === v;
  9886. }) >= 0 || n.push({ type: 'bounds', pos: v });
  9887. }),
  9888. c.forEach(function (v) {
  9889. lr(a, function (p) {
  9890. var d = p.type,
  9891. g = p.pos;
  9892. return d === 'bounds' && g === v;
  9893. }) >= 0 || a.push({ type: 'bounds', pos: v });
  9894. });
  9895. }
  9896. var zp = Va('', ['resizable', 'scalable']),
  9897. As = 'snapRotationThreshold',
  9898. ms = 'snapRotationDegrees',
  9899. Hp = {
  9900. name: 'snappable',
  9901. dragRelation: 'strong',
  9902. props: [
  9903. 'snappable',
  9904. 'snapContainer',
  9905. 'snapDirections',
  9906. 'elementSnapDirections',
  9907. 'snapGap',
  9908. 'snapGridWidth',
  9909. 'snapGridHeight',
  9910. 'isDisplaySnapDigit',
  9911. 'isDisplayInnerSnapDigit',
  9912. 'isDisplayGridGuidelines',
  9913. 'snapDigit',
  9914. 'snapThreshold',
  9915. 'snapRenderThreshold',
  9916. As,
  9917. ms,
  9918. 'horizontalGuidelines',
  9919. 'verticalGuidelines',
  9920. 'elementGuidelines',
  9921. 'bounds',
  9922. 'innerBounds',
  9923. 'snapDistFormat',
  9924. 'maxSnapElementGuidelineDistance',
  9925. 'maxSnapElementGapDistance'
  9926. ],
  9927. events: ['snap'],
  9928. css: [
  9929. ':host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n'
  9930. ],
  9931. render: function (t, r) {
  9932. var e = t.state,
  9933. n = e.top,
  9934. a = e.left,
  9935. i = e.pos1,
  9936. o = e.pos2,
  9937. s = e.pos3,
  9938. u = e.pos4,
  9939. l = e.snapRenderInfo,
  9940. f = t.props.snapRenderThreshold,
  9941. c = f === void 0 ? 1 : f;
  9942. if (!l || !l.render || !$r(t, '')) return [];
  9943. e.guidelines = na(t);
  9944. var v = Math.min(i[0], o[0], s[0], u[0]),
  9945. p = Math.min(i[1], o[1], s[1], u[1]),
  9946. d = l.externalPoses || [],
  9947. g = jt(t.state),
  9948. h = [],
  9949. A = [],
  9950. m = [],
  9951. E = [],
  9952. y = [],
  9953. b = qt(g),
  9954. C = b.width,
  9955. S = b.height,
  9956. D = b.top,
  9957. x = b.left,
  9958. w = b.bottom,
  9959. T = b.right,
  9960. I = {
  9961. left: x,
  9962. right: T,
  9963. top: D,
  9964. bottom: w,
  9965. center: (x + T) / 2,
  9966. middle: (D + w) / 2
  9967. },
  9968. M = d.length > 0,
  9969. O = M ? qt(d) : {};
  9970. if (!l.request) {
  9971. if ((l.direction && y.push(ap(t, g, l.direction, c)), l.snap)) {
  9972. var P = qt(g);
  9973. l.center &&
  9974. ((P.middle = (P.top + P.bottom) / 2),
  9975. (P.center = (P.left + P.right) / 2)),
  9976. y.push(xi(t, P, c));
  9977. }
  9978. M &&
  9979. (l.center &&
  9980. ((O.middle = (O.top + O.bottom) / 2),
  9981. (O.center = (O.left + O.right) / 2)),
  9982. y.push(xi(t, O, c))),
  9983. y.forEach(function (L) {
  9984. var V = L.vertical.posInfos,
  9985. F = L.horizontal.posInfos;
  9986. h.push.apply(
  9987. h,
  9988. U(
  9989. [],
  9990. B(
  9991. V.filter(function (Q) {
  9992. var j = Q.guidelineInfos;
  9993. return j.some(function (K) {
  9994. var X = K.guideline;
  9995. return !X.hide;
  9996. });
  9997. }).map(function (Q) {
  9998. return { type: 'snap', pos: Q.pos };
  9999. })
  10000. ),
  10001. !1
  10002. )
  10003. ),
  10004. A.push.apply(
  10005. A,
  10006. U(
  10007. [],
  10008. B(
  10009. F.filter(function (Q) {
  10010. var j = Q.guidelineInfos;
  10011. return j.some(function (K) {
  10012. var X = K.guideline;
  10013. return !X.hide;
  10014. });
  10015. }).map(function (Q) {
  10016. return { type: 'snap', pos: Q.pos };
  10017. })
  10018. ),
  10019. !1
  10020. )
  10021. ),
  10022. m.push.apply(m, U([], B(Ni(V)), !1)),
  10023. E.push.apply(E, U([], B(Ni(F)), !1));
  10024. });
  10025. }
  10026. Fi(t, [x, T], [D, w], h, A),
  10027. M &&
  10028. Fi(t, [O.left, O.right], [O.top, O.bottom], h, A, l.externalBounds);
  10029. var z = U(U([], B(m), !1), B(E), !1),
  10030. H = z.filter(function (L) {
  10031. return L.element && !L.gapRects;
  10032. }),
  10033. G = z
  10034. .filter(function (L) {
  10035. return L.gapRects;
  10036. })
  10037. .sort(function (L, V) {
  10038. return L.gap - V.gap;
  10039. });
  10040. return (
  10041. Y(
  10042. t,
  10043. 'onSnap',
  10044. {
  10045. guidelines: z.filter(function (L) {
  10046. var V = L.element;
  10047. return !V;
  10048. }),
  10049. elements: H,
  10050. gaps: G
  10051. },
  10052. !0
  10053. ),
  10054. U(
  10055. U(
  10056. U(
  10057. U(
  10058. U(
  10059. U([], B(xp(t, H, [v, p], I, r)), !1),
  10060. B(wp(t, G, [v, p], I, r)),
  10061. !1
  10062. ),
  10063. B(Pi(t, 'horizontal', E, [a, n], I, r)),
  10064. !1
  10065. ),
  10066. B(Pi(t, 'vertical', m, [a, n], I, r)),
  10067. !1
  10068. ),
  10069. B(Oi(t, 'horizontal', A, v, n, C, 0, r)),
  10070. !1
  10071. ),
  10072. B(Oi(t, 'vertical', h, p, a, S, 1, r)),
  10073. !1
  10074. )
  10075. );
  10076. },
  10077. dragStart: function (t, r) {
  10078. (t.state.snapRenderInfo = { request: r.isRequest, snap: !0, center: !0 }),
  10079. Pe(t);
  10080. },
  10081. drag: function (t) {
  10082. var r = t.state;
  10083. Pe(t) || (r.guidelines = na(t)),
  10084. r.snapRenderInfo && (r.snapRenderInfo.render = !0);
  10085. },
  10086. pinchStart: function (t) {
  10087. this.unset(t);
  10088. },
  10089. dragEnd: function (t) {
  10090. this.unset(t);
  10091. },
  10092. dragControlCondition: function (t, r) {
  10093. if (zp(t, r) || ea(t, r)) return !0;
  10094. if (!r.isRequest && r.inputEvent)
  10095. return Tt(r.inputEvent.target, $('snap-control'));
  10096. },
  10097. dragControlStart: function (t) {
  10098. (t.state.snapRenderInfo = null), Pe(t);
  10099. },
  10100. dragControl: function (t) {
  10101. this.drag(t);
  10102. },
  10103. dragControlEnd: function (t) {
  10104. this.unset(t);
  10105. },
  10106. dragGroupStart: function (t, r) {
  10107. this.dragStart(t, r);
  10108. },
  10109. dragGroup: function (t) {
  10110. this.drag(t);
  10111. },
  10112. dragGroupEnd: function (t) {
  10113. this.unset(t);
  10114. },
  10115. dragGroupControlStart: function (t) {
  10116. (t.state.snapRenderInfo = null), Pe(t);
  10117. },
  10118. dragGroupControl: function (t) {
  10119. this.drag(t);
  10120. },
  10121. dragGroupControlEnd: function (t) {
  10122. this.unset(t);
  10123. },
  10124. unset: function (t) {
  10125. var r = t.state;
  10126. (r.enableSnap = !1),
  10127. (r.guidelines = []),
  10128. (r.snapRenderInfo = null),
  10129. (r.elementRects = []);
  10130. }
  10131. };
  10132. function Lp(t, r) {
  10133. return [t[0] * r[0], t[1] * r[1]];
  10134. }
  10135. function $() {
  10136. for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
  10137. return Pf.apply(void 0, U([Ba], B(t), !1));
  10138. }
  10139. function Ss(t) {
  10140. t();
  10141. }
  10142. function Up(t) {
  10143. return !t || t === 'none' ? [1, 0, 0, 1, 0, 0] : tr(t) ? t : Qe(t);
  10144. }
  10145. function se(t, r, e) {
  10146. return We(
  10147. r,
  10148. Ir(e, r),
  10149. t,
  10150. Ir(
  10151. e.map(function (n) {
  10152. return -n;
  10153. }),
  10154. r
  10155. )
  10156. );
  10157. }
  10158. function Vp(t, r, e) {
  10159. if (r === '%') {
  10160. var n = za(t.ownerSVGElement);
  10161. return n[e ? 'width' : 'height'] / 100;
  10162. }
  10163. return 1;
  10164. }
  10165. function Wp(t) {
  10166. var r = Yp(La(t, ':before'));
  10167. return r.map(function (e, n) {
  10168. var a = ge(e),
  10169. i = a.value,
  10170. o = a.unit;
  10171. return i * Vp(t, o, n === 0);
  10172. });
  10173. }
  10174. function Ze(t) {
  10175. return t ? t.split(' ') : ['0', '0'];
  10176. }
  10177. function Yp(t) {
  10178. return Ze(t.transformOrigin);
  10179. }
  10180. function Cs(t) {
  10181. var r = Yt(t),
  10182. e = r('transform');
  10183. if (e && e !== 'none') return e;
  10184. if ('transform' in t) {
  10185. var n = t.transform,
  10186. a = n.baseVal;
  10187. if (!a) return '';
  10188. var i = a.length;
  10189. if (!i) return '';
  10190. for (
  10191. var o = [],
  10192. s = function (l) {
  10193. var f = a[l].matrix;
  10194. o.push(
  10195. 'matrix('.concat(
  10196. ['a', 'b', 'c', 'd', 'e', 'f']
  10197. .map(function (c) {
  10198. return f[c];
  10199. })
  10200. .join(', '),
  10201. ')'
  10202. )
  10203. );
  10204. },
  10205. u = 0;
  10206. u < i;
  10207. ++u
  10208. )
  10209. s(u);
  10210. return o.join(' ');
  10211. }
  10212. return '';
  10213. }
  10214. function pe(t, r, e, n, a) {
  10215. var i,
  10216. o,
  10217. s = ma(t) || Cr(t),
  10218. u = !1,
  10219. l,
  10220. f;
  10221. if (!t || e) l = t;
  10222. else {
  10223. var c =
  10224. (i = t == null ? void 0 : t.assignedSlot) === null || i === void 0
  10225. ? void 0
  10226. : i.parentElement,
  10227. v = t.parentElement;
  10228. c ? ((u = !0), (f = v), (l = c)) : (l = v);
  10229. }
  10230. for (
  10231. var p = !1,
  10232. d = t === r || l === r,
  10233. g = 'relative',
  10234. h = 1,
  10235. A = parseFloat(a == null ? void 0 : a('zoom')) || 1,
  10236. m = a == null ? void 0 : a('position');
  10237. l && l !== s;
  10238. ) {
  10239. r === l && (d = !0);
  10240. var E = Yt(l),
  10241. y = l.tagName.toLowerCase(),
  10242. b = Cs(l),
  10243. C = E('willChange'),
  10244. S = parseFloat(E('zoom')) || 1;
  10245. if (((g = E('position')), n && S !== 1)) {
  10246. h = S;
  10247. break;
  10248. }
  10249. if (
  10250. (!e && n && A !== 1 && m && m !== 'absolute') ||
  10251. y === 'svg' ||
  10252. g !== 'static' ||
  10253. (b && b !== 'none') ||
  10254. C === 'transform'
  10255. )
  10256. break;
  10257. var D =
  10258. (o = t == null ? void 0 : t.assignedSlot) === null || o === void 0
  10259. ? void 0
  10260. : o.parentNode,
  10261. x = l.parentNode;
  10262. D && ((u = !0), (f = x));
  10263. var w = x;
  10264. if (w && w.nodeType === 11) {
  10265. (l = w.host), (p = !0), (g = Yt(l)('position'));
  10266. break;
  10267. }
  10268. (l = w), (g = 'relative');
  10269. }
  10270. return {
  10271. offsetZoom: h,
  10272. hasSlot: u,
  10273. parentSlotElement: f,
  10274. isCustomElement: p,
  10275. isStatic: g === 'static',
  10276. isEnd: d || !l || l === s,
  10277. offsetParent: l || s
  10278. };
  10279. }
  10280. function Qp(t, r) {
  10281. var e,
  10282. n = t.tagName.toLowerCase(),
  10283. a = t.offsetLeft,
  10284. i = t.offsetTop,
  10285. o = Yt(t),
  10286. s = nn(a),
  10287. u = !s,
  10288. l,
  10289. f;
  10290. return (
  10291. !u && n !== 'svg'
  10292. ? ((l = Uo
  10293. ? Wp(t)
  10294. : Ze(o('transformOrigin')).map(function (c) {
  10295. return parseFloat(c);
  10296. })),
  10297. (f = l.slice()),
  10298. (u = !0),
  10299. (e = B(Kp(t, l, t === r && r.tagName.toLowerCase() === 'g'), 4)),
  10300. (a = e[0]),
  10301. (i = e[1]),
  10302. (l[0] = e[2]),
  10303. (l[1] = e[3]))
  10304. : ((l = Ze(o('transformOrigin')).map(function (c) {
  10305. return parseFloat(c);
  10306. })),
  10307. (f = l.slice())),
  10308. {
  10309. tagName: n,
  10310. isSVG: s,
  10311. hasOffset: u,
  10312. offset: [a || 0, i || 0],
  10313. origin: l,
  10314. targetOrigin: f
  10315. }
  10316. );
  10317. }
  10318. function Es(t, r) {
  10319. var e = Yt(t),
  10320. n = Yt(Cr(t)),
  10321. a = n('position');
  10322. if (!r && (!a || a === 'static')) return [0, 0];
  10323. var i = parseInt(n('marginLeft'), 10),
  10324. o = parseInt(n('marginTop'), 10);
  10325. return (
  10326. e('position') === 'absolute' &&
  10327. ((e('top') !== 'auto' || e('bottom') !== 'auto') && (o = 0),
  10328. (e('left') !== 'auto' || e('right') !== 'auto') && (i = 0)),
  10329. [i, o]
  10330. );
  10331. }
  10332. function aa(t) {
  10333. t.forEach(function (r) {
  10334. var e = r.matrix;
  10335. e && (r.matrix = rr(e, 3, 4));
  10336. });
  10337. }
  10338. function Xp(t) {
  10339. for (var r = t.parentElement, e = !1, n = Cr(t); r; ) {
  10340. var a = La(r).transform;
  10341. if (a && a !== 'none') {
  10342. e = !0;
  10343. break;
  10344. }
  10345. if (r === n) break;
  10346. r = r.parentElement;
  10347. }
  10348. return { fixedContainer: r || n, hasTransform: e };
  10349. }
  10350. function gn(t, r) {
  10351. return (
  10352. r === void 0 && (r = t.length > 9),
  10353. ''.concat(r ? 'matrix3d' : 'matrix', '(').concat(Po(t, !r).join(','), ')')
  10354. );
  10355. }
  10356. function za(t) {
  10357. var r = t.clientWidth,
  10358. e = t.clientHeight;
  10359. if (!t)
  10360. return { x: 0, y: 0, width: 0, height: 0, clientWidth: r, clientHeight: e };
  10361. var n = t.viewBox,
  10362. a = (n && n.baseVal) || { x: 0, y: 0, width: 0, height: 0 };
  10363. return {
  10364. x: a.x,
  10365. y: a.y,
  10366. width: a.width || r,
  10367. height: a.height || e,
  10368. clientWidth: r,
  10369. clientHeight: e
  10370. };
  10371. }
  10372. function qp(t, r) {
  10373. var e,
  10374. n = za(t),
  10375. a = n.width,
  10376. i = n.height,
  10377. o = n.clientWidth,
  10378. s = n.clientHeight,
  10379. u = o / a,
  10380. l = s / i,
  10381. f = t.preserveAspectRatio.baseVal,
  10382. c = f.align,
  10383. v = f.meetOrSlice,
  10384. p = [0, 0],
  10385. d = [u, l],
  10386. g = [0, 0];
  10387. if (c !== 1) {
  10388. var h = (c - 2) % 3,
  10389. A = Math.floor((c - 2) / 3);
  10390. (p[0] = (a * h) / 2), (p[1] = (i * A) / 2);
  10391. var m = v === 2 ? Math.max(l, u) : Math.min(u, l);
  10392. (d[0] = m),
  10393. (d[1] = m),
  10394. (g[0] = ((o - a) / 2) * h),
  10395. (g[1] = ((s - i) / 2) * A);
  10396. }
  10397. var E = Ye(d, r);
  10398. return (
  10399. (e = B(g, 2)),
  10400. (E[r * (r - 1)] = e[0]),
  10401. (E[r * (r - 1) + 1] = e[1]),
  10402. se(E, r, p)
  10403. );
  10404. }
  10405. function Kp(t, r, e) {
  10406. if (!t.getBBox || (!e && t.tagName.toLowerCase() === 'g'))
  10407. return [0, 0, 0, 0];
  10408. var n = t.getBBox(),
  10409. a = za(t.ownerSVGElement),
  10410. i = n.x - a.x,
  10411. o = n.y - a.y;
  10412. return [i, o, r[0] - i, r[1] - o];
  10413. }
  10414. function Ct(t, r, e) {
  10415. return Nt(t, Mr(r, e), e);
  10416. }
  10417. function kr(t, r, e, n) {
  10418. return [
  10419. [0, 0],
  10420. [r, 0],
  10421. [0, e],
  10422. [r, e]
  10423. ].map(function (a) {
  10424. return Ct(t, a, n);
  10425. });
  10426. }
  10427. function qt(t) {
  10428. var r = t.map(function (l) {
  10429. return l[0];
  10430. }),
  10431. e = t.map(function (l) {
  10432. return l[1];
  10433. }),
  10434. n = Math.min.apply(Math, U([], B(r), !1)),
  10435. a = Math.min.apply(Math, U([], B(e), !1)),
  10436. i = Math.max.apply(Math, U([], B(r), !1)),
  10437. o = Math.max.apply(Math, U([], B(e), !1)),
  10438. s = i - n,
  10439. u = o - a;
  10440. return { left: n, top: a, right: i, bottom: o, width: s, height: u };
  10441. }
  10442. function zi(t, r, e, n) {
  10443. var a = kr(t, r, e, n);
  10444. return qt(a);
  10445. }
  10446. function Jp(t, r, e, n, a) {
  10447. var i,
  10448. o = t.target,
  10449. s = t.origin,
  10450. u = r.matrix,
  10451. l = Ds(o),
  10452. f = l.offsetWidth,
  10453. c = l.offsetHeight,
  10454. v = e.getBoundingClientRect(),
  10455. p = [0, 0];
  10456. e === Cr(e) && (p = Es(o, !0));
  10457. for (
  10458. var d = o.getBoundingClientRect(),
  10459. g = d.left - v.left + e.scrollLeft - (e.clientLeft || 0) + p[0],
  10460. h = d.top - v.top + e.scrollTop - (e.clientTop || 0) + p[1],
  10461. A = d.width,
  10462. m = d.height,
  10463. E = We(n, a, u),
  10464. y = zi(E, f, c, n),
  10465. b = y.left,
  10466. C = y.top,
  10467. S = y.width,
  10468. D = y.height,
  10469. x = Ct(E, s, n),
  10470. w = tt(x, [b, C]),
  10471. T = [g + (w[0] * A) / S, h + (w[1] * m) / D],
  10472. I = [0, 0],
  10473. M = 0;
  10474. ++M < 10;
  10475. ) {
  10476. var O = ar(a, n);
  10477. (i = B(tt(Ct(O, T, n), Ct(O, x, n)), 2)), (I[0] = i[0]), (I[1] = i[1]);
  10478. var P = We(n, a, Ir(I, n), u),
  10479. z = zi(P, f, c, n),
  10480. H = z.left,
  10481. G = z.top,
  10482. L = H - g,
  10483. V = G - h;
  10484. if (N(L) < 2 && N(V) < 2) break;
  10485. (T[0] -= L), (T[1] -= V);
  10486. }
  10487. return I.map(function (F) {
  10488. return Math.round(F);
  10489. });
  10490. }
  10491. function jp(t, r, e) {
  10492. var n = t.length === 16,
  10493. a = n ? 4 : 3,
  10494. i = r.map(function (u) {
  10495. return Ct(t, u, a);
  10496. }),
  10497. o = e.left,
  10498. s = e.top;
  10499. return i.map(function (u) {
  10500. return [u[0] + o, u[1] + s];
  10501. });
  10502. }
  10503. function Jt(t) {
  10504. return Math.sqrt(t[0] * t[0] + t[1] * t[1]);
  10505. }
  10506. function ys(t, r) {
  10507. return Jt([r[0] - t[0], r[1] - t[1]]);
  10508. }
  10509. function ne(t, r, e, n) {
  10510. e === void 0 && (e = 1), n === void 0 && (n = Et(t, r));
  10511. var a = ys(t, r);
  10512. return {
  10513. transform: 'translateY(-50%) translate('
  10514. .concat(t[0], 'px, ')
  10515. .concat(t[1], 'px) rotate(')
  10516. .concat(n, 'rad) scaleY(')
  10517. .concat(e, ')'),
  10518. width: ''.concat(a, 'px')
  10519. };
  10520. }
  10521. function _e(t, r) {
  10522. for (var e = [], n = 2; n < arguments.length; n++) e[n - 2] = arguments[n];
  10523. var a = e.length,
  10524. i =
  10525. e.reduce(function (s, u) {
  10526. return s + u[0];
  10527. }, 0) / a,
  10528. o =
  10529. e.reduce(function (s, u) {
  10530. return s + u[1];
  10531. }, 0) / a;
  10532. return {
  10533. transform: 'translateZ(0px) translate('
  10534. .concat(i, 'px, ')
  10535. .concat(o, 'px) rotate(')
  10536. .concat(t, 'rad) scale(')
  10537. .concat(r, ')')
  10538. };
  10539. }
  10540. function Or(t, r) {
  10541. var e = t[r];
  10542. return tr(e) ? R(R({}, t), e) : t;
  10543. }
  10544. function Ds(t) {
  10545. var r = t && !nn(t.offsetWidth),
  10546. e = 0,
  10547. n = 0,
  10548. a = 0,
  10549. i = 0,
  10550. o = 0,
  10551. s = 0,
  10552. u = 0,
  10553. l = 0,
  10554. f = 0,
  10555. c = 0,
  10556. v = 0,
  10557. p = 0,
  10558. d = 1 / 0,
  10559. g = 1 / 0,
  10560. h = 1 / 0,
  10561. A = 1 / 0,
  10562. m = 0,
  10563. E = 0,
  10564. y = !1;
  10565. if (t)
  10566. if (!r && t.tagName.toLowerCase() !== 'svg') {
  10567. var b = t.getBBox();
  10568. (y = !0),
  10569. (e = b.width),
  10570. (n = b.height),
  10571. (o = e),
  10572. (s = n),
  10573. (u = e),
  10574. (l = n),
  10575. (a = e),
  10576. (i = n);
  10577. } else {
  10578. var C = Yt(t),
  10579. S = t.style,
  10580. D = C('boxSizing') === 'border-box',
  10581. x = parseFloat(C('borderLeftWidth')) || 0,
  10582. w = parseFloat(C('borderRightWidth')) || 0,
  10583. T = parseFloat(C('borderTopWidth')) || 0,
  10584. I = parseFloat(C('borderBottomWidth')) || 0,
  10585. M = parseFloat(C('paddingLeft')) || 0,
  10586. O = parseFloat(C('paddingRight')) || 0,
  10587. P = parseFloat(C('paddingTop')) || 0,
  10588. z = parseFloat(C('paddingBottom')) || 0,
  10589. H = M + O,
  10590. G = P + z,
  10591. L = x + w,
  10592. V = T + I,
  10593. F = H + L,
  10594. Q = G + V,
  10595. j = C('position'),
  10596. K = 0,
  10597. X = 0;
  10598. if ('clientLeft' in t) {
  10599. var W = null;
  10600. if (j === 'absolute') {
  10601. var _ = pe(t, Cr(t));
  10602. W = _.offsetParent;
  10603. } else W = t.parentElement;
  10604. if (W) {
  10605. var rt = Yt(W);
  10606. (K = parseFloat(rt('width'))), (X = parseFloat(rt('height')));
  10607. }
  10608. }
  10609. (f = Math.max(H, gt(C('minWidth'), K) || 0)),
  10610. (c = Math.max(G, gt(C('minHeight'), X) || 0)),
  10611. (d = gt(C('maxWidth'), K)),
  10612. (g = gt(C('maxHeight'), X)),
  10613. isNaN(d) && (d = 1 / 0),
  10614. isNaN(g) && (g = 1 / 0),
  10615. (m = gt(S.width, 0) || 0),
  10616. (E = gt(S.height, 0) || 0),
  10617. (o = parseFloat(C('width')) || 0),
  10618. (s = parseFloat(C('height')) || 0),
  10619. (u = N(o - m) < 1 ? Nn(f, m || o, d) : o),
  10620. (l = N(s - E) < 1 ? Nn(c, E || s, g) : s),
  10621. (e = u),
  10622. (n = l),
  10623. (a = u),
  10624. (i = l),
  10625. D
  10626. ? ((h = d), (A = g), (v = f), (p = c), (u = e - F), (l = n - Q))
  10627. : ((h = d + F),
  10628. (A = g + Q),
  10629. (v = f + F),
  10630. (p = c + Q),
  10631. (e = u + F),
  10632. (n = l + Q)),
  10633. (a = u + H),
  10634. (i = l + G);
  10635. }
  10636. return {
  10637. svg: y,
  10638. offsetWidth: e,
  10639. offsetHeight: n,
  10640. clientWidth: a,
  10641. clientHeight: i,
  10642. contentWidth: u,
  10643. contentHeight: l,
  10644. inlineCSSWidth: m,
  10645. inlineCSSHeight: E,
  10646. cssWidth: o,
  10647. cssHeight: s,
  10648. minWidth: f,
  10649. minHeight: c,
  10650. maxWidth: d,
  10651. maxHeight: g,
  10652. minOffsetWidth: v,
  10653. minOffsetHeight: p,
  10654. maxOffsetWidth: h,
  10655. maxOffsetHeight: A
  10656. };
  10657. }
  10658. function bs(t, r) {
  10659. return Et(r > 0 ? t[0] : t[1], r > 0 ? t[1] : t[0]);
  10660. }
  10661. function ke() {
  10662. return {
  10663. left: 0,
  10664. top: 0,
  10665. width: 0,
  10666. height: 0,
  10667. right: 0,
  10668. bottom: 0,
  10669. clientLeft: 0,
  10670. clientTop: 0,
  10671. clientWidth: 0,
  10672. clientHeight: 0,
  10673. scrollWidth: 0,
  10674. scrollHeight: 0
  10675. };
  10676. }
  10677. function xs(t, r) {
  10678. var e = t === Cr(t) || t === ma(t),
  10679. n = {
  10680. clientLeft: t.clientLeft,
  10681. clientTop: t.clientTop,
  10682. clientWidth: t.clientWidth,
  10683. clientHeight: t.clientHeight,
  10684. scrollWidth: t.scrollWidth,
  10685. scrollHeight: t.scrollHeight,
  10686. overflow: !1
  10687. };
  10688. return (
  10689. e &&
  10690. ((n.clientHeight = Math.max(r.height, n.clientHeight)),
  10691. (n.scrollHeight = Math.max(r.height, n.scrollHeight))),
  10692. (n.overflow = Yt(t)('overflow') !== 'visible'),
  10693. R(R({}, r), n)
  10694. );
  10695. }
  10696. function On(t, r, e, n) {
  10697. var a = t.left,
  10698. i = t.right,
  10699. o = t.top,
  10700. s = t.bottom,
  10701. u = r.top,
  10702. l = r.left,
  10703. f = {
  10704. left: l + a,
  10705. top: u + o,
  10706. right: l + i,
  10707. bottom: u + s,
  10708. width: i - a,
  10709. height: s - o
  10710. };
  10711. return e && n ? xs(e, f) : f;
  10712. }
  10713. function ue(t, r) {
  10714. var e = 0,
  10715. n = 0,
  10716. a = 0,
  10717. i = 0;
  10718. if (t) {
  10719. var o = t.getBoundingClientRect();
  10720. (e = o.left), (n = o.top), (a = o.width), (i = o.height);
  10721. }
  10722. var s = { left: e, top: n, width: a, height: i, right: e + a, bottom: n + i };
  10723. return t && r ? xs(t, s) : s;
  10724. }
  10725. function Zp(t) {
  10726. var r = t.props,
  10727. e = r.groupable,
  10728. n = r.svgOrigin,
  10729. a = t.getState(),
  10730. i = a.offsetWidth,
  10731. o = a.offsetHeight,
  10732. s = a.svg,
  10733. u = a.transformOrigin;
  10734. return !e && s && n ? Ya(n, i, o) : u;
  10735. }
  10736. function ws(t, r, e, n) {
  10737. var a;
  10738. if (t) a = t;
  10739. else if (r) a = [0, 0];
  10740. else {
  10741. var i = e.target;
  10742. a = Rs(i, n);
  10743. }
  10744. return a;
  10745. }
  10746. function Rs(t, r) {
  10747. if (t) {
  10748. var e = t.getAttribute('data-rotation') || '',
  10749. n = t.getAttribute('data-direction');
  10750. if (((r.deg = e), !!n)) {
  10751. var a = [0, 0];
  10752. return (
  10753. n.indexOf('w') > -1 && (a[0] = -1),
  10754. n.indexOf('e') > -1 && (a[0] = 1),
  10755. n.indexOf('n') > -1 && (a[1] = -1),
  10756. n.indexOf('s') > -1 && (a[1] = 1),
  10757. a
  10758. );
  10759. }
  10760. }
  10761. }
  10762. function Ha(t, r) {
  10763. return [ft(r, t[0]), ft(r, t[1]), ft(r, t[2]), ft(r, t[3])];
  10764. }
  10765. function jt(t) {
  10766. var r = t.left,
  10767. e = t.top,
  10768. n = t.pos1,
  10769. a = t.pos2,
  10770. i = t.pos3,
  10771. o = t.pos4;
  10772. return Ha([n, a, i, o], [r, e]);
  10773. }
  10774. function ia(t, r) {
  10775. t[r ? 'controlAbles' : 'targetAbles'].forEach(function (e) {
  10776. e.unset && e.unset(t);
  10777. });
  10778. }
  10779. function Hr(t, r) {
  10780. var e = r ? 'controlGesto' : 'targetGesto',
  10781. n = t[e];
  10782. (n == null ? void 0 : n.isIdle()) === !1 && ia(t, r),
  10783. n == null || n.unset(),
  10784. (t[e] = null);
  10785. }
  10786. function Lt(t, r) {
  10787. if (r) {
  10788. var e = _r(r);
  10789. e.nextStyle = R(R({}, e.nextStyle), t);
  10790. }
  10791. return {
  10792. style: t,
  10793. cssText: fr(t)
  10794. .map(function (n) {
  10795. return ''.concat(Le(n, '-'), ': ').concat(t[n], ';');
  10796. })
  10797. .join('')
  10798. };
  10799. }
  10800. function Bs(t, r, e) {
  10801. var n = r.afterTransform || r.transform;
  10802. return R(R({}, Lt(R(R(R({}, t.style), r.style), { transform: n }), e)), {
  10803. afterTransform: n,
  10804. transform: t.transform
  10805. });
  10806. }
  10807. function ot(t, r, e, n) {
  10808. var a = r.datas;
  10809. a.datas || (a.datas = {});
  10810. var i = R(R({}, e), {
  10811. target: t.state.target,
  10812. clientX: r.clientX,
  10813. clientY: r.clientY,
  10814. inputEvent: r.inputEvent,
  10815. currentTarget: t,
  10816. moveable: t,
  10817. datas: a.datas,
  10818. isFirstDrag: !!r.isFirstDrag,
  10819. isTrusted: r.isTrusted !== !1,
  10820. stopAble: function () {
  10821. a.isEventStart = !1;
  10822. },
  10823. stopDrag: function () {
  10824. var o;
  10825. (o = r.stop) === null || o === void 0 || o.call(r);
  10826. }
  10827. });
  10828. return a.isStartEvent ? n || (a.lastEvent = i) : (a.isStartEvent = !0), i;
  10829. }
  10830. function Qt(t, r, e) {
  10831. var n = r.datas,
  10832. a = 'isDrag' in e ? e.isDrag : r.isDrag;
  10833. return (
  10834. n.datas || (n.datas = {}),
  10835. R(R({ isDrag: a }, e), {
  10836. moveable: t,
  10837. target: t.state.target,
  10838. clientX: r.clientX,
  10839. clientY: r.clientY,
  10840. inputEvent: r.inputEvent,
  10841. currentTarget: t,
  10842. lastEvent: n.lastEvent,
  10843. isDouble: r.isDouble,
  10844. datas: n.datas,
  10845. isFirstDrag: !!r.isFirstDrag
  10846. })
  10847. );
  10848. }
  10849. function hn(t, r, e) {
  10850. t._emitter.on(r, e);
  10851. }
  10852. function Y(t, r, e, n) {
  10853. return t.triggerEvent(r, e, n);
  10854. }
  10855. function La(t, r) {
  10856. return hr(t).getComputedStyle(t, r);
  10857. }
  10858. function Ge(t, r, e) {
  10859. var n = {},
  10860. a = {};
  10861. return t.filter(function (i) {
  10862. var o = i.name;
  10863. if (
  10864. n[o] ||
  10865. !r.some(function (s) {
  10866. return i[s];
  10867. })
  10868. )
  10869. return !1;
  10870. if (!e && i.ableGroup) {
  10871. if (a[i.ableGroup]) return !1;
  10872. a[i.ableGroup] = !0;
  10873. }
  10874. return (n[o] = !0), !0;
  10875. });
  10876. }
  10877. function oa(t, r) {
  10878. return t === r || (t == null && r == null);
  10879. }
  10880. function _p() {
  10881. for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
  10882. for (var e = t.length - 1, n = 0; n < e; ++n) {
  10883. var a = t[n];
  10884. if (!nn(a)) return a;
  10885. }
  10886. return t[e];
  10887. }
  10888. function Ms(t, r) {
  10889. var e = [],
  10890. n = [];
  10891. return (
  10892. t.forEach(function (a, i) {
  10893. var o = r(a, i, t),
  10894. s = n.indexOf(o),
  10895. u = e[s] || [];
  10896. s === -1 && (n.push(o), e.push(u)), u.push(a);
  10897. }),
  10898. e
  10899. );
  10900. }
  10901. function $p(t, r) {
  10902. var e = [],
  10903. n = {};
  10904. return (
  10905. t.forEach(function (a, i) {
  10906. var o = r(a, i, t),
  10907. s = n[o];
  10908. s || ((s = []), (n[o] = s), e.push(s)), s.push(a);
  10909. }),
  10910. e
  10911. );
  10912. }
  10913. function Is(t) {
  10914. return t.reduce(function (r, e) {
  10915. return r.concat(e);
  10916. }, []);
  10917. }
  10918. function Qr() {
  10919. for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r];
  10920. return (
  10921. t.sort(function (e, n) {
  10922. return N(n) - N(e);
  10923. }),
  10924. t[0]
  10925. );
  10926. }
  10927. function Xr(t, r, e) {
  10928. return Nt(ar(t, e), Mr(r, e), e);
  10929. }
  10930. function Ts(t, r) {
  10931. var e,
  10932. n = t.is3d,
  10933. a = t.rootMatrix,
  10934. i = n ? 4 : 3;
  10935. return (
  10936. (e = B(Xr(a, [r.distX, r.distY], i), 2)),
  10937. (r.distX = e[0]),
  10938. (r.distY = e[1]),
  10939. r
  10940. );
  10941. }
  10942. function Ne(t, r, e, n) {
  10943. if (!e[0] && !e[1]) return r;
  10944. var a = Ct(t, [Gi(e[0]), 0], n),
  10945. i = Ct(t, [0, Gi(e[1])], n),
  10946. o = Ct(t, [e[0] / Jt(a), e[1] / Jt(i)], n);
  10947. return ft(r, o);
  10948. }
  10949. function Zt(t, r, e) {
  10950. return e ? ''.concat((t / r) * 100, '%') : ''.concat(t, 'px');
  10951. }
  10952. function $e(t) {
  10953. return N(t) <= Ut ? 0 : t;
  10954. }
  10955. function Ua(t) {
  10956. return function (r) {
  10957. if (!r.isDragging(t)) return '';
  10958. var e = Yv(r, t),
  10959. n = e.deg;
  10960. return n ? $('view-control-rotation'.concat(n)) : '';
  10961. };
  10962. }
  10963. function Va(t, r) {
  10964. return (
  10965. r === void 0 && (r = [t]),
  10966. function (e, n) {
  10967. if (n.isRequest)
  10968. return r.some(function (i) {
  10969. return n.requestAble === i;
  10970. })
  10971. ? n.parentDirection
  10972. : !1;
  10973. var a = n.inputEvent.target;
  10974. return Tt(a, $('direction')) && (!t || Tt(a, $(t)));
  10975. }
  10976. );
  10977. }
  10978. function td(t, r) {
  10979. var e,
  10980. n = Vr(t),
  10981. a = t.slice(0, r < 0 ? void 0 : r),
  10982. i = t.slice(0, r < 0 ? void 0 : r + 1),
  10983. o = t[r] || '',
  10984. s = r < 0 ? [] : t.slice(r),
  10985. u = r < 0 ? [] : t.slice(r + 1),
  10986. l = n.slice(0, r < 0 ? void 0 : r),
  10987. f = n.slice(0, r < 0 ? void 0 : r + 1),
  10988. c = (e = n[r]) !== null && e !== void 0 ? e : Vr([''])[0],
  10989. v = r < 0 ? [] : n.slice(r),
  10990. p = r < 0 ? [] : n.slice(r + 1),
  10991. d = c ? [c] : [],
  10992. g = Nr(l),
  10993. h = Nr(f),
  10994. A = Nr(v),
  10995. m = Nr(p),
  10996. E = ht(g, A, 4);
  10997. return {
  10998. transforms: t,
  10999. beforeFunctionMatrix: g,
  11000. beforeFunctionMatrix2: h,
  11001. targetFunctionMatrix: Nr(d),
  11002. afterFunctionMatrix: A,
  11003. afterFunctionMatrix2: m,
  11004. allFunctionMatrix: E,
  11005. beforeFunctions: l,
  11006. beforeFunctions2: f,
  11007. targetFunction: d[0],
  11008. afterFunctions: v,
  11009. afterFunctions2: p,
  11010. beforeFunctionTexts: a,
  11011. beforeFunctionTexts2: i,
  11012. targetFunctionText: o,
  11013. afterFunctionTexts: s,
  11014. afterFunctionTexts2: u
  11015. };
  11016. }
  11017. function rd(t) {
  11018. return !t || !tr(t) || jr(t) ? !1 : Rt(t) || 'length' in t;
  11019. }
  11020. function nr(t, r) {
  11021. return t
  11022. ? jr(t)
  11023. ? t
  11024. : Wt(t)
  11025. ? r
  11026. ? document.querySelector(t)
  11027. : t
  11028. : ga(t)
  11029. ? t()
  11030. : co(t)
  11031. ? t
  11032. : 'current' in t
  11033. ? t.current
  11034. : t
  11035. : null;
  11036. }
  11037. function Wa(t, r) {
  11038. if (!t) return [];
  11039. var e = rd(t) ? [].slice.call(t) : [t];
  11040. return e.reduce(function (n, a) {
  11041. return Wt(a) && r
  11042. ? U(U([], B(n), !1), B([].slice.call(document.querySelectorAll(a))), !1)
  11043. : (Rt(a) ? n.push(Wa(a, r)) : n.push(nr(a, r)), n);
  11044. }, []);
  11045. }
  11046. function ed(t, r, e) {
  11047. var n = (Et(t, r) / Math.PI) * 180;
  11048. return (n = e >= 0 ? n : 180 - n), (n = n >= 0 ? n : 360 + n), n;
  11049. }
  11050. function Hi(t, r) {
  11051. var e = t.rootMatrix,
  11052. n = t.is3d,
  11053. a = n ? 4 : 3,
  11054. i = ar(e, a);
  11055. return (
  11056. n || (i = rr(i, 3, 4)), (i[12] = 0), (i[13] = 0), (i[14] = 0), zc(i, r)
  11057. );
  11058. }
  11059. function Os(t, r, e, n, a) {
  11060. var i = B(t, 2),
  11061. o = i[0],
  11062. s = i[1],
  11063. u = 0,
  11064. l = 0;
  11065. if (a && o && s) {
  11066. var f = Et([0, 0], r),
  11067. c = Et([0, 0], n),
  11068. v = Jt(r),
  11069. p = Math.cos(f - c) * v;
  11070. if (!n[0]) (l = p), (u = l * e);
  11071. else if (!n[1]) (u = p), (l = u / e);
  11072. else {
  11073. var d = n[0] * o,
  11074. g = n[1] * s,
  11075. h = Math.atan2(d + r[0], g + r[1]),
  11076. A = Math.atan2(d, g);
  11077. h < 0 && (h += Math.PI * 2), A < 0 && (A += Math.PI * 2);
  11078. var m = 0;
  11079. N(h - A) < Math.PI / 2 || N(h - A) > (Math.PI / 2) * 3 || (A += Math.PI),
  11080. (m = h - A),
  11081. m > Math.PI * 2
  11082. ? (m -= Math.PI * 2)
  11083. : m > Math.PI
  11084. ? (m = 2 * Math.PI - m)
  11085. : m < -Math.PI && (m = -2 * Math.PI - m);
  11086. var E = Jt([d + r[0], g + r[1]]) * Math.cos(m);
  11087. (u = E * Math.sin(A) - d),
  11088. (l = E * Math.cos(A) - g),
  11089. n[0] < 0 && (u *= -1),
  11090. n[1] < 0 && (l *= -1);
  11091. }
  11092. } else (u = n[0] * r[0]), (l = n[1] * r[1]);
  11093. return [u, l];
  11094. }
  11095. function Ps(t, r, e, n) {
  11096. var a,
  11097. i = e.ratio,
  11098. o = e.startOffsetWidth,
  11099. s = e.startOffsetHeight,
  11100. u = 0,
  11101. l = 0,
  11102. f = n.distX,
  11103. c = n.distY,
  11104. v = n.pinchScale,
  11105. p = n.parentDistance,
  11106. d = n.parentDist,
  11107. g = n.parentScale,
  11108. h = e.fixedDirection,
  11109. A = [0, 1].map(function (S) {
  11110. return N(t[S] - h[S]);
  11111. }),
  11112. m = [0, 1].map(function (S) {
  11113. var D = A[S];
  11114. return D !== 0 && (D = 2 / D), D;
  11115. });
  11116. if (d) (u = d[0]), (l = d[1]), r && (u ? l || (l = u / i) : (u = l * i));
  11117. else if (Ur(v)) (u = (v - 1) * o), (l = (v - 1) * s);
  11118. else if (g) (u = (g[0] - 1) * o), (l = (g[1] - 1) * s);
  11119. else if (p) {
  11120. var E = o * A[0],
  11121. y = s * A[1],
  11122. b = Jt([E, y]);
  11123. (u = (p / b) * E * m[0]), (l = (p / b) * y * m[1]);
  11124. } else {
  11125. var C = ir({ datas: e, distX: f, distY: c });
  11126. (C = m.map(function (S, D) {
  11127. return C[D] * S;
  11128. })),
  11129. (a = B(Os([o, s], C, i, t, r), 2)),
  11130. (u = a[0]),
  11131. (l = a[1]);
  11132. }
  11133. return { distWidth: u, distHeight: l };
  11134. }
  11135. function sa(t, r) {
  11136. if (r) {
  11137. if (t === 'left') return { x: '0%', y: '50%' };
  11138. if (t === 'top') return { x: '50%', y: '50%' };
  11139. if (t === 'center') return { x: '50%', y: '50%' };
  11140. if (t === 'right') return { x: '100%', y: '50%' };
  11141. if (t === 'bottom') return { x: '50%', y: '100%' };
  11142. var e = B(t.split(' '), 2),
  11143. n = e[0],
  11144. a = e[1],
  11145. i = sa(n || ''),
  11146. o = sa(a || ''),
  11147. s = R(R({}, i), o),
  11148. u = { x: '50%', y: '50%' };
  11149. return (
  11150. s.x && (u.x = s.x),
  11151. s.y && (u.y = s.y),
  11152. s.value &&
  11153. (s.x && !s.y && (u.y = s.value), !s.x && s.y && (u.x = s.value)),
  11154. u
  11155. );
  11156. }
  11157. return t === 'left'
  11158. ? { x: '0%' }
  11159. : t === 'right'
  11160. ? { x: '100%' }
  11161. : t === 'top'
  11162. ? { y: '0%' }
  11163. : t === 'bottom'
  11164. ? { y: '100%' }
  11165. : t
  11166. ? t === 'center'
  11167. ? { value: '50%' }
  11168. : { value: t }
  11169. : {};
  11170. }
  11171. function Ya(t, r, e) {
  11172. var n = sa(t, !0),
  11173. a = n.x,
  11174. i = n.y;
  11175. return [gt(a, r) || 0, gt(i, e) || 0];
  11176. }
  11177. function nd(t, r, e) {
  11178. var n = t.map(function (i) {
  11179. return tt(i, r);
  11180. }),
  11181. a = n.map(function (i) {
  11182. return Se(i, e);
  11183. });
  11184. return {
  11185. prev: n,
  11186. next: a,
  11187. result: a.map(function (i) {
  11188. return ft(i, r);
  11189. })
  11190. };
  11191. }
  11192. function ks(t, r) {
  11193. return (
  11194. t.length === r.length &&
  11195. t.every(function (e, n) {
  11196. var a = r[n],
  11197. i = Rt(e),
  11198. o = Rt(a);
  11199. return i && o ? ks(e, a) : !i && !o ? e === a : !1;
  11200. })
  11201. );
  11202. }
  11203. function Li(t, r, e, n) {
  11204. var a = t[r];
  11205. return r in t && (a === e || n(a) === n(e)) ? a : ((t[r] = e), e);
  11206. }
  11207. function Xt(t) {
  11208. return t >= 0 ? 1 : -1;
  11209. }
  11210. function N(t) {
  11211. return Math.abs(t);
  11212. }
  11213. function Pn(t, r) {
  11214. return jf(t).map(function (e) {
  11215. return r(e);
  11216. });
  11217. }
  11218. function Gs(t) {
  11219. return Ur(t)
  11220. ? { top: t, left: t, right: t, bottom: t }
  11221. : {
  11222. left: t.left || 0,
  11223. top: t.top || 0,
  11224. right: t.right || 0,
  11225. bottom: t.bottom || 0
  11226. };
  11227. }
  11228. var ad = ye('pinchable', {
  11229. props: ['pinchable'],
  11230. events: [
  11231. 'pinchStart',
  11232. 'pinch',
  11233. 'pinchEnd',
  11234. 'pinchGroupStart',
  11235. 'pinchGroup',
  11236. 'pinchGroupEnd'
  11237. ],
  11238. dragStart: function () {
  11239. return !0;
  11240. },
  11241. pinchStart: function (t, r) {
  11242. var e = r.datas,
  11243. n = r.targets,
  11244. a = r.angle,
  11245. i = r.originalDatas,
  11246. o = t.props,
  11247. s = o.pinchable,
  11248. u = o.ables;
  11249. if (!s) return !1;
  11250. var l = 'onPinch'.concat(n ? 'Group' : '', 'Start'),
  11251. f = 'drag'.concat(n ? 'Group' : '', 'ControlStart'),
  11252. c = (
  11253. s === !0
  11254. ? t.controlAbles
  11255. : u.filter(function (g) {
  11256. return s.indexOf(g.name) > -1;
  11257. })
  11258. ).filter(function (g) {
  11259. return g.canPinch && g[f];
  11260. }),
  11261. v = ot(t, r, {});
  11262. n && (v.targets = n);
  11263. var p = Y(t, l, v);
  11264. (e.isPinch = p !== !1), (e.ables = c);
  11265. var d = e.isPinch;
  11266. return d
  11267. ? (c.forEach(function (g) {
  11268. if (((i[g.name] = i[g.name] || {}), !!g[f])) {
  11269. var h = R(R({}, r), {
  11270. datas: i[g.name],
  11271. parentRotate: a,
  11272. isPinch: !0
  11273. });
  11274. g[f](t, h);
  11275. }
  11276. }),
  11277. (t.state.snapRenderInfo = {
  11278. request: r.isRequest,
  11279. direction: [0, 0]
  11280. }),
  11281. d)
  11282. : !1;
  11283. },
  11284. pinch: function (t, r) {
  11285. var e = r.datas,
  11286. n = r.scale,
  11287. a = r.distance,
  11288. i = r.originalDatas,
  11289. o = r.inputEvent,
  11290. s = r.targets,
  11291. u = r.angle;
  11292. if (e.isPinch) {
  11293. var l = a * (1 - 1 / n),
  11294. f = ot(t, r, {});
  11295. s && (f.targets = s);
  11296. var c = 'onPinch'.concat(s ? 'Group' : '');
  11297. Y(t, c, f);
  11298. var v = e.ables,
  11299. p = 'drag'.concat(s ? 'Group' : '', 'Control');
  11300. return (
  11301. v.forEach(function (d) {
  11302. d[p] &&
  11303. d[p](
  11304. t,
  11305. R(R({}, r), {
  11306. datas: i[d.name],
  11307. inputEvent: o,
  11308. resolveMatrix: !0,
  11309. pinchScale: n,
  11310. parentDistance: l,
  11311. parentRotate: u,
  11312. isPinch: !0
  11313. })
  11314. );
  11315. }),
  11316. f
  11317. );
  11318. }
  11319. },
  11320. pinchEnd: function (t, r) {
  11321. var e = r.datas,
  11322. n = r.isPinch,
  11323. a = r.inputEvent,
  11324. i = r.targets,
  11325. o = r.originalDatas;
  11326. if (e.isPinch) {
  11327. var s = 'onPinch'.concat(i ? 'Group' : '', 'End'),
  11328. u = Qt(t, r, { isDrag: n });
  11329. i && (u.targets = i), Y(t, s, u);
  11330. var l = e.ables,
  11331. f = 'drag'.concat(i ? 'Group' : '', 'ControlEnd');
  11332. return (
  11333. l.forEach(function (c) {
  11334. c[f] &&
  11335. c[f](
  11336. t,
  11337. R(R({}, r), {
  11338. isDrag: n,
  11339. datas: o[c.name],
  11340. inputEvent: a,
  11341. isPinch: !0
  11342. })
  11343. );
  11344. }),
  11345. n
  11346. );
  11347. }
  11348. },
  11349. pinchGroupStart: function (t, r) {
  11350. return this.pinchStart(t, R(R({}, r), { targets: t.props.targets }));
  11351. },
  11352. pinchGroup: function (t, r) {
  11353. return this.pinch(t, R(R({}, r), { targets: t.props.targets }));
  11354. },
  11355. pinchGroupEnd: function (t, r) {
  11356. return this.pinchEnd(t, R(R({}, r), { targets: t.props.targets }));
  11357. }
  11358. }),
  11359. Ui = Va('scalable'),
  11360. id = {
  11361. name: 'scalable',
  11362. ableGroup: 'size',
  11363. canPinch: !0,
  11364. props: [
  11365. 'scalable',
  11366. 'throttleScale',
  11367. 'renderDirections',
  11368. 'keepRatio',
  11369. 'edge',
  11370. 'displayAroundControls'
  11371. ],
  11372. events: [
  11373. 'scaleStart',
  11374. 'beforeScale',
  11375. 'scale',
  11376. 'scaleEnd',
  11377. 'scaleGroupStart',
  11378. 'beforeScaleGroup',
  11379. 'scaleGroup',
  11380. 'scaleGroupEnd'
  11381. ],
  11382. render: es('scalable'),
  11383. dragControlCondition: Ui,
  11384. viewClassName: Ua('scalable'),
  11385. dragControlStart: function (t, r) {
  11386. var e = r.datas,
  11387. n = r.isPinch,
  11388. a = r.inputEvent,
  11389. i = r.parentDirection,
  11390. o = ws(i, n, a, e),
  11391. s = t.state,
  11392. u = s.width,
  11393. l = s.height,
  11394. f = s.targetTransform,
  11395. c = s.target,
  11396. v = s.pos1,
  11397. p = s.pos2,
  11398. d = s.pos4;
  11399. if (!o || !c) return !1;
  11400. n || Pr(t, r),
  11401. (e.datas = {}),
  11402. (e.transform = f),
  11403. (e.prevDist = [1, 1]),
  11404. (e.direction = o),
  11405. (e.startOffsetWidth = u),
  11406. (e.startOffsetHeight = l),
  11407. (e.startValue = [1, 1]);
  11408. var g = (!o[0] && !o[1]) || o[0] || !o[1];
  11409. cn(r, 'scale'), (e.isWidth = g);
  11410. function h(C) {
  11411. e.ratio = C && isFinite(C) ? C : 0;
  11412. }
  11413. e.startPositions = jt(t.state);
  11414. function A(C) {
  11415. var S = fs(e.startPositions, C);
  11416. (e.fixedDirection = S.fixedDirection),
  11417. (e.fixedPosition = S.fixedPosition),
  11418. (e.fixedOffset = S.fixedOffset);
  11419. }
  11420. (e.setFixedDirection = A), h(sr(v, p) / sr(p, d)), A([-o[0], -o[1]]);
  11421. var m = function (C) {
  11422. e.minScaleSize = C;
  11423. },
  11424. E = function (C) {
  11425. e.maxScaleSize = C;
  11426. };
  11427. m([-1 / 0, -1 / 0]), E([1 / 0, 1 / 0]);
  11428. var y = ot(
  11429. t,
  11430. r,
  11431. R(
  11432. R(
  11433. {
  11434. direction: o,
  11435. set: function (C) {
  11436. e.startValue = C;
  11437. },
  11438. setRatio: h,
  11439. setFixedDirection: A,
  11440. setMinScaleSize: m,
  11441. setMaxScaleSize: E
  11442. },
  11443. fn(r)
  11444. ),
  11445. { dragStart: Ht.dragStart(t, new Wr().dragStart([0, 0], r)) }
  11446. )
  11447. ),
  11448. b = Y(t, 'onScaleStart', y);
  11449. return (
  11450. (e.startFixedDirection = e.fixedDirection),
  11451. b !== !1 &&
  11452. ((e.isScale = !0),
  11453. (t.state.snapRenderInfo = { request: r.isRequest, direction: o })),
  11454. e.isScale ? y : !1
  11455. );
  11456. },
  11457. dragControl: function (t, r) {
  11458. un(r, 'scale');
  11459. var e = r.datas,
  11460. n = r.parentKeepRatio,
  11461. a = r.parentFlag,
  11462. i = r.isPinch,
  11463. o = r.dragClient,
  11464. s = r.isRequest,
  11465. u = r.useSnap,
  11466. l = r.resolveMatrix,
  11467. f = e.prevDist,
  11468. c = e.direction,
  11469. v = e.startOffsetWidth,
  11470. p = e.startOffsetHeight,
  11471. d = e.isScale,
  11472. g = e.startValue,
  11473. h = e.isWidth,
  11474. A = e.ratio;
  11475. if (!d) return !1;
  11476. var m = t.props,
  11477. E = m.throttleScale,
  11478. y = m.parentMoveable,
  11479. b = c;
  11480. !c[0] && !c[1] && (b = [1, 1]);
  11481. var C = (A && (n != null ? n : m.keepRatio)) || !1,
  11482. S = t.state,
  11483. D = [g[0], g[1]];
  11484. function x() {
  11485. var et = Ps(b, C, e, r),
  11486. Z = et.distWidth,
  11487. J = et.distHeight,
  11488. vt = v ? (v + Z) / v : 1,
  11489. at = p ? (p + J) / p : 1;
  11490. g[0] || (D[0] = Z / v), g[1] || (D[1] = J / p);
  11491. var it = (b[0] || C ? vt : 1) * D[0],
  11492. ut = (b[1] || C ? at : 1) * D[1];
  11493. return (
  11494. it === 0 && (it = Xt(f[0]) * Ie),
  11495. ut === 0 && (ut = Xt(f[1]) * Ie),
  11496. [it, ut]
  11497. );
  11498. }
  11499. var w = x();
  11500. if (!i && t.props.groupable) {
  11501. var T = S.snapRenderInfo || {},
  11502. I = T.direction;
  11503. Rt(I) &&
  11504. (I[0] || I[1]) &&
  11505. (S.snapRenderInfo = { direction: c, request: r.isRequest });
  11506. }
  11507. Y(
  11508. t,
  11509. 'onBeforeScale',
  11510. ot(
  11511. t,
  11512. r,
  11513. {
  11514. scale: w,
  11515. setFixedDirection: function (et) {
  11516. return e.setFixedDirection(et), (w = x()), w;
  11517. },
  11518. startFixedDirection: e.startFixedDirection,
  11519. setScale: function (et) {
  11520. w = et;
  11521. }
  11522. },
  11523. !0
  11524. )
  11525. );
  11526. var M = [w[0] / D[0], w[1] / D[1]],
  11527. O = o,
  11528. P = [0, 0],
  11529. z = !o && !a && i;
  11530. if (
  11531. (z || l
  11532. ? (O = Ta(t, e.targetAllTransform, [0, 0], [0, 0], e))
  11533. : o || (O = e.fixedPosition),
  11534. i || (P = Np(t, M, c, !u && s, e)),
  11535. C)
  11536. ) {
  11537. b[0] &&
  11538. b[1] &&
  11539. P[0] &&
  11540. P[1] &&
  11541. (Math.abs(P[0] * v) > Math.abs(P[1] * p) ? (P[1] = 0) : (P[0] = 0));
  11542. var H = !P[0] && !P[1];
  11543. if (
  11544. (H &&
  11545. (h
  11546. ? (M[0] = nt(M[0] * D[0], E) / D[0])
  11547. : (M[1] = nt(M[1] * D[1], E) / D[1])),
  11548. (b[0] && !b[1]) || (P[0] && !P[1]) || (H && h))
  11549. ) {
  11550. M[0] += P[0];
  11551. var G = (v * M[0] * D[0]) / A;
  11552. M[1] = G / p / D[1];
  11553. } else if ((!b[0] && b[1]) || (!P[0] && P[1]) || (H && !h)) {
  11554. M[1] += P[1];
  11555. var L = p * M[1] * D[1] * A;
  11556. M[0] = L / v / D[0];
  11557. }
  11558. } else
  11559. (M[0] += P[0]),
  11560. (M[1] += P[1]),
  11561. P[0] || (M[0] = nt(M[0] * D[0], E) / D[0]),
  11562. P[1] || (M[1] = nt(M[1] * D[1], E) / D[1]);
  11563. M[0] === 0 && (M[0] = Xt(f[0]) * Ie),
  11564. M[1] === 0 && (M[1] = Xt(f[1]) * Ie),
  11565. (w = Lp(M, [D[0], D[1]]));
  11566. var V = [v, p],
  11567. F = [v * w[0], p * w[1]];
  11568. (F = so(F, e.minScaleSize, e.maxScaleSize, C ? A : !1)),
  11569. (w = Pn(2, function (et) {
  11570. return V[et] ? F[et] / V[et] : F[et];
  11571. })),
  11572. (M = Pn(2, function (et) {
  11573. return w[et] / D[et];
  11574. }));
  11575. var Q = Pn(2, function (et) {
  11576. return f[et] ? M[et] / f[et] : M[et];
  11577. }),
  11578. j = 'scale('.concat(M.join(', '), ')'),
  11579. K = 'scale('.concat(w.join(', '), ')'),
  11580. X = ln(e, K, j),
  11581. W = !g[0] || !g[1],
  11582. _ = zv(t, W ? K : j, e.fixedDirection, O, e.fixedOffset, e, W),
  11583. rt = z ? _ : tt(_, e.prevInverseDist || [0, 0]);
  11584. if (
  11585. ((e.prevDist = M),
  11586. (e.prevInverseDist = _),
  11587. w[0] === f[0] &&
  11588. w[1] === f[1] &&
  11589. rt.every(function (et) {
  11590. return !et;
  11591. }) &&
  11592. !y &&
  11593. !z)
  11594. )
  11595. return !1;
  11596. var lt = ot(
  11597. t,
  11598. r,
  11599. R(
  11600. {
  11601. offsetWidth: v,
  11602. offsetHeight: p,
  11603. direction: c,
  11604. scale: w,
  11605. dist: M,
  11606. delta: Q,
  11607. isPinch: !!i
  11608. },
  11609. jo(t, X, rt, i, r)
  11610. )
  11611. );
  11612. return Y(t, 'onScale', lt), lt;
  11613. },
  11614. dragControlEnd: function (t, r) {
  11615. var e = r.datas;
  11616. if (!e.isScale) return !1;
  11617. e.isScale = !1;
  11618. var n = Qt(t, r, {});
  11619. return Y(t, 'onScaleEnd', n), n;
  11620. },
  11621. dragGroupControlCondition: Ui,
  11622. dragGroupControlStart: function (t, r) {
  11623. var e = r.datas,
  11624. n = this.dragControlStart(t, r);
  11625. if (!n) return !1;
  11626. var a = $t(t, 'resizable', r);
  11627. e.moveableScale = t.scale;
  11628. var i = ur(t, this, 'dragControlStart', r, function (l, f) {
  11629. return Ke(t, l, e, f);
  11630. }),
  11631. o = function (l) {
  11632. n.setFixedDirection(l),
  11633. i.forEach(function (f, c) {
  11634. f.setFixedDirection(l), Ke(t, f.moveable, e, a[c]);
  11635. });
  11636. };
  11637. e.setFixedDirection = o;
  11638. var s = R(R({}, n), {
  11639. targets: t.props.targets,
  11640. events: i,
  11641. setFixedDirection: o
  11642. }),
  11643. u = Y(t, 'onScaleGroupStart', s);
  11644. return (e.isScale = u !== !1), e.isScale ? s : !1;
  11645. },
  11646. dragGroupControl: function (t, r) {
  11647. var e = r.datas;
  11648. if (e.isScale) {
  11649. hn(t, 'onBeforeScale', function (f) {
  11650. Y(
  11651. t,
  11652. 'onBeforeScaleGroup',
  11653. ot(t, r, R(R({}, f), { targets: t.props.targets }), !0)
  11654. );
  11655. });
  11656. var n = this.dragControl(t, r);
  11657. if (n) {
  11658. var a = n.dist,
  11659. i = e.moveableScale;
  11660. t.scale = [a[0] * i[0], a[1] * i[1]];
  11661. var o = t.props.keepRatio,
  11662. s = e.fixedPosition,
  11663. u = ur(t, this, 'dragControl', r, function (f, c) {
  11664. var v = B(
  11665. Nt(
  11666. Ce((t.rotation / 180) * Math.PI, 3),
  11667. [c.datas.originalX * a[0], c.datas.originalY * a[1], 1],
  11668. 3
  11669. ),
  11670. 2
  11671. ),
  11672. p = v[0],
  11673. d = v[1];
  11674. return R(R({}, c), {
  11675. parentDist: null,
  11676. parentScale: a,
  11677. parentKeepRatio: o,
  11678. dragClient: ft(s, [p, d])
  11679. });
  11680. }),
  11681. l = R({ targets: t.props.targets, events: u }, n);
  11682. return Y(t, 'onScaleGroup', l), l;
  11683. }
  11684. }
  11685. },
  11686. dragGroupControlEnd: function (t, r) {
  11687. var e = r.isDrag,
  11688. n = r.datas;
  11689. if (n.isScale) {
  11690. this.dragControlEnd(t, r);
  11691. var a = ur(t, this, 'dragControlEnd', r),
  11692. i = Qt(t, r, { targets: t.props.targets, events: a });
  11693. return Y(t, 'onScaleGroupEnd', i), e;
  11694. }
  11695. },
  11696. request: function () {
  11697. var t = {},
  11698. r = 0,
  11699. e = 0,
  11700. n = !1;
  11701. return {
  11702. isControl: !0,
  11703. requestStart: function (a) {
  11704. return (
  11705. (n = a.useSnap),
  11706. { datas: t, parentDirection: a.direction || [1, 1], useSnap: n }
  11707. );
  11708. },
  11709. request: function (a) {
  11710. return (
  11711. (r += a.deltaWidth),
  11712. (e += a.deltaHeight),
  11713. {
  11714. datas: t,
  11715. parentDist: [r, e],
  11716. parentKeepRatio: a.keepRatio,
  11717. useSnap: n
  11718. }
  11719. );
  11720. },
  11721. requestEnd: function () {
  11722. return { datas: t, isDrag: !0, useSnap: n };
  11723. }
  11724. };
  11725. }
  11726. };
  11727. function pr(t, r) {
  11728. return t.map(function (e, n) {
  11729. return Er(e, r[n], 1, 2);
  11730. });
  11731. }
  11732. function Vi(t, r, e) {
  11733. var n = Et(t, r),
  11734. a = Et(t, e),
  11735. i = a - n;
  11736. return i >= 0 ? i : i + 2 * Math.PI;
  11737. }
  11738. function od(t, r) {
  11739. var e = Vi(t[0], t[1], t[2]),
  11740. n = Vi(r[0], r[1], r[2]),
  11741. a = Math.PI;
  11742. return !((e >= a && n <= a) || (e <= a && n >= a));
  11743. }
  11744. var sd = {
  11745. name: 'warpable',
  11746. ableGroup: 'size',
  11747. props: ['warpable', 'renderDirections', 'edge', 'displayAroundControls'],
  11748. events: ['warpStart', 'warp', 'warpEnd'],
  11749. viewClassName: Ua('warpable'),
  11750. render: function (t, r) {
  11751. var e = t.props,
  11752. n = e.resizable,
  11753. a = e.scalable,
  11754. i = e.warpable,
  11755. o = e.zoom;
  11756. if (n || a || !i) return [];
  11757. var s = t.state,
  11758. u = s.pos1,
  11759. l = s.pos2,
  11760. f = s.pos3,
  11761. c = s.pos4,
  11762. v = pr(u, l),
  11763. p = pr(l, u),
  11764. d = pr(u, f),
  11765. g = pr(f, u),
  11766. h = pr(f, c),
  11767. A = pr(c, f),
  11768. m = pr(l, c),
  11769. E = pr(c, l);
  11770. return U(
  11771. [
  11772. r.createElement('div', {
  11773. className: $('line'),
  11774. key: 'middeLine1',
  11775. style: ne(v, h, o)
  11776. }),
  11777. r.createElement('div', {
  11778. className: $('line'),
  11779. key: 'middeLine2',
  11780. style: ne(p, A, o)
  11781. }),
  11782. r.createElement('div', {
  11783. className: $('line'),
  11784. key: 'middeLine3',
  11785. style: ne(d, m, o)
  11786. }),
  11787. r.createElement('div', {
  11788. className: $('line'),
  11789. key: 'middeLine4',
  11790. style: ne(g, E, o)
  11791. })
  11792. ],
  11793. B(ns(t, 'warpable', r)),
  11794. !1
  11795. );
  11796. },
  11797. dragControlCondition: function (t, r) {
  11798. if (r.isRequest) return !1;
  11799. var e = r.inputEvent.target;
  11800. return Tt(e, $('direction')) && Tt(e, $('warpable'));
  11801. },
  11802. dragControlStart: function (t, r) {
  11803. var e = r.datas,
  11804. n = r.inputEvent,
  11805. a = t.props.target,
  11806. i = n.target,
  11807. o = Rs(i, e);
  11808. if (!o || !a) return !1;
  11809. var s = t.state,
  11810. u = s.transformOrigin,
  11811. l = s.is3d,
  11812. f = s.targetTransform,
  11813. c = s.targetMatrix,
  11814. v = s.width,
  11815. p = s.height,
  11816. d = s.left,
  11817. g = s.top;
  11818. (e.datas = {}),
  11819. (e.targetTransform = f),
  11820. (e.warpTargetMatrix = l ? c : rr(c, 3, 4)),
  11821. (e.targetInverseMatrix = To(ar(e.warpTargetMatrix, 4), 3, 4)),
  11822. (e.direction = o),
  11823. (e.left = d),
  11824. (e.top = g),
  11825. (e.poses = [
  11826. [0, 0],
  11827. [v, 0],
  11828. [0, p],
  11829. [v, p]
  11830. ].map(function (m) {
  11831. return tt(m, u);
  11832. })),
  11833. (e.nextPoses = e.poses.map(function (m) {
  11834. var E = B(m, 2),
  11835. y = E[0],
  11836. b = E[1];
  11837. return Nt(e.warpTargetMatrix, [y, b, 0, 1], 4);
  11838. })),
  11839. (e.startValue = St(4)),
  11840. (e.prevMatrix = St(4)),
  11841. (e.absolutePoses = jt(s)),
  11842. (e.posIndexes = Jo(o)),
  11843. Pr(t, r),
  11844. cn(r, 'matrix3d'),
  11845. (s.snapRenderInfo = { request: r.isRequest, direction: o });
  11846. var h = ot(
  11847. t,
  11848. r,
  11849. R(
  11850. {
  11851. set: function (m) {
  11852. e.startValue = m;
  11853. }
  11854. },
  11855. fn(r)
  11856. )
  11857. ),
  11858. A = Y(t, 'onWarpStart', h);
  11859. return A !== !1 && (e.isWarp = !0), e.isWarp;
  11860. },
  11861. dragControl: function (t, r) {
  11862. var e = r.datas,
  11863. n = r.isRequest,
  11864. a = r.distX,
  11865. i = r.distY,
  11866. o = e.targetInverseMatrix,
  11867. s = e.prevMatrix,
  11868. u = e.isWarp,
  11869. l = e.startValue,
  11870. f = e.poses,
  11871. c = e.posIndexes,
  11872. v = e.absolutePoses;
  11873. if (!u) return !1;
  11874. if ((un(r, 'matrix3d'), $r(t, 'warpable'))) {
  11875. var p = c.map(function (x) {
  11876. return v[x];
  11877. });
  11878. p.length > 1 &&
  11879. p.push([(p[0][0] + p[1][0]) / 2, (p[0][1] + p[1][1]) / 2]);
  11880. var d = dn(t, n, {
  11881. horizontal: p.map(function (x) {
  11882. return x[1] + i;
  11883. }),
  11884. vertical: p.map(function (x) {
  11885. return x[0] + a;
  11886. })
  11887. }),
  11888. g = d.horizontal,
  11889. h = d.vertical;
  11890. (i -= g.offset), (a -= h.offset);
  11891. }
  11892. var A = ir({ datas: e, distX: a, distY: i }, !0),
  11893. m = e.nextPoses.slice();
  11894. if (
  11895. (c.forEach(function (x) {
  11896. m[x] = ft(m[x], A);
  11897. }),
  11898. !Bv.every(function (x) {
  11899. return od(
  11900. x.map(function (w) {
  11901. return f[w];
  11902. }),
  11903. x.map(function (w) {
  11904. return m[w];
  11905. })
  11906. );
  11907. }))
  11908. )
  11909. return !1;
  11910. var E = xa(f[0], f[2], f[1], f[3], m[0], m[2], m[1], m[3]);
  11911. if (!E.length) return !1;
  11912. var y = ht(o, E, 4),
  11913. b = qo(e, y, !0),
  11914. C = ht(ar(s, 4), b, 4);
  11915. e.prevMatrix = b;
  11916. var S = ht(l, b, 4),
  11917. D = ln(
  11918. e,
  11919. 'matrix3d('.concat(S.join(', '), ')'),
  11920. 'matrix3d('.concat(b.join(', '), ')')
  11921. );
  11922. return (
  11923. Ia(r, D),
  11924. Y(
  11925. t,
  11926. 'onWarp',
  11927. ot(
  11928. t,
  11929. r,
  11930. R(
  11931. { delta: C, matrix: S, dist: b, multiply: ht, transform: D },
  11932. Lt({ transform: D }, r)
  11933. )
  11934. )
  11935. ),
  11936. !0
  11937. );
  11938. },
  11939. dragControlEnd: function (t, r) {
  11940. var e = r.datas,
  11941. n = r.isDrag;
  11942. return e.isWarp
  11943. ? ((e.isWarp = !1), Y(t, 'onWarpEnd', Qt(t, r, {})), n)
  11944. : !1;
  11945. }
  11946. },
  11947. ud = $('area-pieces'),
  11948. Fe = $('area-piece'),
  11949. Ns = $('avoid'),
  11950. ld = $('view-dragging');
  11951. function kn(t) {
  11952. var r = t.areaElement;
  11953. if (r) {
  11954. var e = t.state,
  11955. n = e.width,
  11956. a = e.height;
  11957. fo(r, Ns),
  11958. (r.style.cssText += 'left: 0px; top: 0px; width: '
  11959. .concat(n, 'px; height: ')
  11960. .concat(a, 'px'));
  11961. }
  11962. }
  11963. function Wi(t) {
  11964. return t.createElement(
  11965. 'div',
  11966. { key: 'area_pieces', className: ud },
  11967. t.createElement('div', { className: Fe }),
  11968. t.createElement('div', { className: Fe }),
  11969. t.createElement('div', { className: Fe }),
  11970. t.createElement('div', { className: Fe })
  11971. );
  11972. }
  11973. var Fs = {
  11974. name: 'dragArea',
  11975. props: ['dragArea', 'passDragArea'],
  11976. events: ['click', 'clickGroup'],
  11977. render: function (t, r) {
  11978. var e = t.props,
  11979. n = e.target,
  11980. a = e.dragArea,
  11981. i = e.groupable,
  11982. o = e.passDragArea,
  11983. s = t.getState(),
  11984. u = s.width,
  11985. l = s.height,
  11986. f = s.renderPoses,
  11987. c = o ? $('area', 'pass') : $('area');
  11988. if (i)
  11989. return [
  11990. r.createElement('div', {
  11991. key: 'area',
  11992. ref: or(t, 'areaElement'),
  11993. className: c
  11994. }),
  11995. Wi(r)
  11996. ];
  11997. if (!n || !a) return [];
  11998. var v = xa([0, 0], [u, 0], [0, l], [u, l], f[0], f[1], f[2], f[3]),
  11999. p = v.length ? gn(v, !0) : 'none';
  12000. return [
  12001. r.createElement('div', {
  12002. key: 'area',
  12003. ref: or(t, 'areaElement'),
  12004. className: c,
  12005. style: {
  12006. top: '0px',
  12007. left: '0px',
  12008. width: ''.concat(u, 'px'),
  12009. height: ''.concat(l, 'px'),
  12010. transformOrigin: '0 0',
  12011. transform: p
  12012. }
  12013. }),
  12014. Wi(r)
  12015. ];
  12016. },
  12017. dragStart: function (t, r) {
  12018. var e = r.datas,
  12019. n = r.clientX,
  12020. a = r.clientY,
  12021. i = r.inputEvent;
  12022. if (!i) return !1;
  12023. e.isDragArea = !1;
  12024. var o = t.areaElement,
  12025. s = t.state,
  12026. u = s.moveableClientRect,
  12027. l = s.renderPoses,
  12028. f = s.rootMatrix,
  12029. c = s.is3d,
  12030. v = u.left,
  12031. p = u.top,
  12032. d = qt(l),
  12033. g = d.left,
  12034. h = d.top,
  12035. A = d.width,
  12036. m = d.height,
  12037. E = c ? 4 : 3,
  12038. y = B(Xr(f, [n - v, a - p], E), 2),
  12039. b = y[0],
  12040. C = y[1];
  12041. (b -= g), (C -= h);
  12042. var S = [
  12043. { left: g, top: h, width: A, height: C - 10 },
  12044. { left: g, top: h, width: b - 10, height: m },
  12045. { left: g, top: h + C + 10, width: A, height: m - C - 10 },
  12046. { left: g + b + 10, top: h, width: A - b - 10, height: m }
  12047. ],
  12048. D = [].slice.call(o.nextElementSibling.children);
  12049. S.forEach(function (x, w) {
  12050. D[w].style.cssText = 'left: '
  12051. .concat(x.left, 'px;top: ')
  12052. .concat(x.top, 'px; width: ')
  12053. .concat(x.width, 'px; height: ')
  12054. .concat(x.height, 'px;');
  12055. }),
  12056. lo(o, Ns),
  12057. (s.disableNativeEvent = !0);
  12058. },
  12059. drag: function (t, r) {
  12060. var e = r.datas,
  12061. n = r.inputEvent;
  12062. if ((this.enableNativeEvent(t), !n)) return !1;
  12063. e.isDragArea || ((e.isDragArea = !0), kn(t));
  12064. },
  12065. dragEnd: function (t, r) {
  12066. this.enableNativeEvent(t);
  12067. var e = r.inputEvent,
  12068. n = r.datas;
  12069. if (!e) return !1;
  12070. n.isDragArea || kn(t);
  12071. },
  12072. dragGroupStart: function (t, r) {
  12073. return this.dragStart(t, r);
  12074. },
  12075. dragGroup: function (t, r) {
  12076. return this.drag(t, r);
  12077. },
  12078. dragGroupEnd: function (t, r) {
  12079. return this.dragEnd(t, r);
  12080. },
  12081. unset: function (t) {
  12082. kn(t), (t.state.disableNativeEvent = !1);
  12083. },
  12084. enableNativeEvent: function (t) {
  12085. var r = t.state;
  12086. r.disableNativeEvent &&
  12087. oo(function () {
  12088. r.disableNativeEvent = !1;
  12089. });
  12090. }
  12091. },
  12092. fd = ye('origin', {
  12093. props: ['origin', 'svgOrigin'],
  12094. render: function (t, r) {
  12095. var e = t.props,
  12096. n = e.zoom,
  12097. a = e.svgOrigin,
  12098. i = e.groupable,
  12099. o = t.getState(),
  12100. s = o.beforeOrigin,
  12101. u = o.rotation,
  12102. l = o.svg,
  12103. f = o.allMatrix,
  12104. c = o.is3d,
  12105. v = o.left,
  12106. p = o.top,
  12107. d = o.offsetWidth,
  12108. g = o.offsetHeight,
  12109. h;
  12110. if (!i && l && a) {
  12111. var A = B(Ya(a, d, g), 2),
  12112. m = A[0],
  12113. E = A[1],
  12114. y = c ? 4 : 3,
  12115. b = Ct(f, [m, E], y);
  12116. h = _e(u, n, tt(b, [v, p]));
  12117. } else h = _e(u, n, s);
  12118. return [
  12119. r.createElement('div', {
  12120. className: $('control', 'origin'),
  12121. style: h,
  12122. key: 'beforeOrigin'
  12123. })
  12124. ];
  12125. }
  12126. });
  12127. function cd(t) {
  12128. var r = t.scrollContainer;
  12129. return [r.scrollLeft, r.scrollTop];
  12130. }
  12131. var vd = {
  12132. name: 'scrollable',
  12133. canPinch: !0,
  12134. props: [
  12135. 'scrollable',
  12136. 'scrollContainer',
  12137. 'scrollThreshold',
  12138. 'scrollThrottleTime',
  12139. 'getScrollPosition',
  12140. 'scrollOptions'
  12141. ],
  12142. events: ['scroll', 'scrollGroup'],
  12143. dragRelation: 'strong',
  12144. dragStart: function (t, r) {
  12145. var e = t.props,
  12146. n = e.scrollContainer,
  12147. a = n === void 0 ? t.getContainer() : n,
  12148. i = e.scrollOptions,
  12149. o = new qc(),
  12150. s = nr(a, !0);
  12151. (r.datas.dragScroll = o), (t.state.dragScroll = o);
  12152. var u = r.isControl ? 'controlGesto' : 'targetGesto',
  12153. l = r.targets;
  12154. o
  12155. .on('scroll', function (f) {
  12156. var c = f.container,
  12157. v = f.direction,
  12158. p = ot(t, r, { scrollContainer: c, direction: v }),
  12159. d = l ? 'onScrollGroup' : 'onScroll';
  12160. l && (p.targets = l), Y(t, d, p);
  12161. })
  12162. .on('move', function (f) {
  12163. var c = f.offsetX,
  12164. v = f.offsetY,
  12165. p = f.inputEvent;
  12166. t[u].scrollBy(c, v, p.inputEvent, !0);
  12167. })
  12168. .on('scrollDrag', function (f) {
  12169. var c = f.next;
  12170. c(t[u].getCurrentEvent());
  12171. }),
  12172. o.dragStart(r, R({ container: s }, i));
  12173. },
  12174. checkScroll: function (t, r) {
  12175. var e = r.datas.dragScroll;
  12176. if (e) {
  12177. var n = t.props,
  12178. a = n.scrollContainer,
  12179. i = a === void 0 ? t.getContainer() : a,
  12180. o = n.scrollThreshold,
  12181. s = o === void 0 ? 0 : o,
  12182. u = n.scrollThrottleTime,
  12183. l = u === void 0 ? 0 : u,
  12184. f = n.getScrollPosition,
  12185. c = f === void 0 ? cd : f,
  12186. v = n.scrollOptions;
  12187. return (
  12188. e.drag(
  12189. r,
  12190. R(
  12191. {
  12192. container: i,
  12193. threshold: s,
  12194. throttleTime: l,
  12195. getScrollPosition: function (p) {
  12196. return c({
  12197. scrollContainer: p.container,
  12198. direction: p.direction
  12199. });
  12200. }
  12201. },
  12202. v
  12203. )
  12204. ),
  12205. !0
  12206. );
  12207. }
  12208. },
  12209. drag: function (t, r) {
  12210. return this.checkScroll(t, r);
  12211. },
  12212. dragEnd: function (t, r) {
  12213. r.datas.dragScroll.dragEnd(), (r.datas.dragScroll = null);
  12214. },
  12215. dragControlStart: function (t, r) {
  12216. return this.dragStart(t, R(R({}, r), { isControl: !0 }));
  12217. },
  12218. dragControl: function (t, r) {
  12219. return this.drag(t, r);
  12220. },
  12221. dragControlEnd: function (t, r) {
  12222. return this.dragEnd(t, r);
  12223. },
  12224. dragGroupStart: function (t, r) {
  12225. return this.dragStart(t, R(R({}, r), { targets: t.props.targets }));
  12226. },
  12227. dragGroup: function (t, r) {
  12228. return this.drag(t, R(R({}, r), { targets: t.props.targets }));
  12229. },
  12230. dragGroupEnd: function (t, r) {
  12231. return this.dragEnd(t, R(R({}, r), { targets: t.props.targets }));
  12232. },
  12233. dragGroupControlStart: function (t, r) {
  12234. return this.dragStart(
  12235. t,
  12236. R(R({}, r), { targets: t.props.targets, isControl: !0 })
  12237. );
  12238. },
  12239. dragGroupControl: function (t, r) {
  12240. return this.drag(t, R(R({}, r), { targets: t.props.targets }));
  12241. },
  12242. dragGroupControEnd: function (t, r) {
  12243. return this.dragEnd(t, R(R({}, r), { targets: t.props.targets }));
  12244. },
  12245. unset: function (t) {
  12246. var r,
  12247. e = t.state;
  12248. (r = e.dragScroll) === null || r === void 0 || r.dragEnd(),
  12249. (e.dragScroll = null);
  12250. }
  12251. },
  12252. zs = {
  12253. name: '',
  12254. props: [
  12255. 'target',
  12256. 'dragTarget',
  12257. 'dragContainer',
  12258. 'container',
  12259. 'warpSelf',
  12260. 'rootContainer',
  12261. 'useResizeObserver',
  12262. 'useMutationObserver',
  12263. 'zoom',
  12264. 'dragFocusedInput',
  12265. 'transformOrigin',
  12266. 'ables',
  12267. 'className',
  12268. 'pinchThreshold',
  12269. 'pinchOutside',
  12270. 'triggerAblesSimultaneously',
  12271. 'checkInput',
  12272. 'cspNonce',
  12273. 'translateZ',
  12274. 'hideDefaultLines',
  12275. 'props',
  12276. 'flushSync',
  12277. 'stopPropagation',
  12278. 'preventClickEventOnDrag',
  12279. 'preventClickDefault',
  12280. 'viewContainer',
  12281. 'persistData',
  12282. 'useAccuratePosition',
  12283. 'firstRenderState',
  12284. 'linePadding',
  12285. 'controlPadding',
  12286. 'preventDefault',
  12287. 'requestStyles'
  12288. ],
  12289. events: ['changeTargets']
  12290. },
  12291. pd = ye('padding', {
  12292. props: ['padding'],
  12293. render: function (t, r) {
  12294. var e = t.props;
  12295. if (e.dragArea) return [];
  12296. var n = Gs(e.padding || {}),
  12297. a = n.left,
  12298. i = n.top,
  12299. o = n.right,
  12300. s = n.bottom,
  12301. u = t.getState(),
  12302. l = u.renderPoses,
  12303. f = u.pos1,
  12304. c = u.pos2,
  12305. v = u.pos3,
  12306. p = u.pos4,
  12307. d = [f, c, v, p],
  12308. g = [];
  12309. return (
  12310. a > 0 && g.push([0, 2]),
  12311. i > 0 && g.push([0, 1]),
  12312. o > 0 && g.push([1, 3]),
  12313. s > 0 && g.push([2, 3]),
  12314. g.map(function (h, A) {
  12315. var m = B(h, 2),
  12316. E = m[0],
  12317. y = m[1],
  12318. b = d[E],
  12319. C = d[y],
  12320. S = l[E],
  12321. D = l[y],
  12322. x = xa([0, 0], [100, 0], [0, 100], [100, 100], b, C, S, D);
  12323. if (x.length)
  12324. return r.createElement('div', {
  12325. key: 'padding'.concat(A),
  12326. className: $('padding'),
  12327. style: { transform: gn(x, !0) }
  12328. });
  12329. })
  12330. );
  12331. }
  12332. }),
  12333. Yi = ['nw', 'ne', 'se', 'sw'];
  12334. function ze(t, r) {
  12335. var e = t[0] + t[1],
  12336. n = e > r ? r / e : 1;
  12337. return (t[0] *= n), (t[1] = r - t[1] * n), t;
  12338. }
  12339. var dd = [1, 2, 5, 6],
  12340. gd = [0, 3, 4, 7],
  12341. br = [1, -1, -1, 1],
  12342. xr = [1, 1, -1, -1];
  12343. function Qa(t, r, e, n, a, i, o, s) {
  12344. a === void 0 && (a = 0),
  12345. i === void 0 && (i = 0),
  12346. o === void 0 && (o = e),
  12347. s === void 0 && (s = n);
  12348. var u = [],
  12349. l = !1,
  12350. f = t.filter(function (v) {
  12351. return !v.virtual;
  12352. }),
  12353. c = f.map(function (v) {
  12354. var p = v.horizontal,
  12355. d = v.vertical,
  12356. g = v.pos;
  12357. if ((d && !l && ((l = !0), u.push('/')), l)) {
  12358. var h = Math.max(0, d === 1 ? g[1] - i : s - g[1]);
  12359. return u.push(Zt(h, n, r)), h;
  12360. } else {
  12361. var h = Math.max(0, p === 1 ? g[0] - a : o - g[0]);
  12362. return u.push(Zt(h, e, r)), h;
  12363. }
  12364. });
  12365. return { radiusPoses: f, styles: u, raws: c };
  12366. }
  12367. function Hs(t) {
  12368. for (var r = [0, 0], e = [0, 0], n = t.length, a = 0; a < n; ++a) {
  12369. var i = t[a];
  12370. i.sub &&
  12371. (i.horizontal &&
  12372. (r[1] === 0 && (r[0] = a), (r[1] = a - r[0] + 1), (e[0] = a + 1)),
  12373. i.vertical && (e[1] === 0 && (e[0] = a), (e[1] = a - e[0] + 1)));
  12374. }
  12375. return { horizontalRange: r, verticalRange: e };
  12376. }
  12377. function Ls(t, r, e, n, a, i, o) {
  12378. var s, u, l, f;
  12379. i === void 0 && (i = [0, 0]), o === void 0 && (o = !1);
  12380. var c = t.indexOf('/'),
  12381. v = (c > -1 ? t.slice(0, c) : t).length,
  12382. p = t.slice(0, v),
  12383. d = t.slice(v + 1),
  12384. g = p.length,
  12385. h = d.length,
  12386. A = h > 0,
  12387. m = B(p, 4),
  12388. E = m[0],
  12389. y = E === void 0 ? '0px' : E,
  12390. b = m[1],
  12391. C = b === void 0 ? y : b,
  12392. S = m[2],
  12393. D = S === void 0 ? y : S,
  12394. x = m[3],
  12395. w = x === void 0 ? C : x,
  12396. T = B(d, 4),
  12397. I = T[0],
  12398. M = I === void 0 ? y : I,
  12399. O = T[1],
  12400. P = O === void 0 ? (A ? M : C) : O,
  12401. z = T[2],
  12402. H = z === void 0 ? (A ? M : D) : z,
  12403. G = T[3],
  12404. L = G === void 0 ? (A ? P : w) : G,
  12405. V = [y, C, D, w].map(function (W) {
  12406. return gt(W, r);
  12407. }),
  12408. F = [M, P, H, L].map(function (W) {
  12409. return gt(W, e);
  12410. }),
  12411. Q = V.slice(),
  12412. j = F.slice();
  12413. (s = B(ze([Q[0], Q[1]], r), 2)),
  12414. (Q[0] = s[0]),
  12415. (Q[1] = s[1]),
  12416. (u = B(ze([Q[3], Q[2]], r), 2)),
  12417. (Q[3] = u[0]),
  12418. (Q[2] = u[1]),
  12419. (l = B(ze([j[0], j[3]], e), 2)),
  12420. (j[0] = l[0]),
  12421. (j[3] = l[1]),
  12422. (f = B(ze([j[1], j[2]], e), 2)),
  12423. (j[1] = f[0]),
  12424. (j[2] = f[1]);
  12425. var K = o ? Q : Q.slice(0, Math.max(i[0], g)),
  12426. X = o ? j : j.slice(0, Math.max(i[1], h));
  12427. return U(
  12428. U(
  12429. [],
  12430. B(
  12431. K.map(function (W, _) {
  12432. var rt = Yi[_];
  12433. return {
  12434. virtual: _ >= g,
  12435. horizontal: br[_],
  12436. vertical: 0,
  12437. pos: [n + W, a + (xr[_] === -1 ? e : 0)],
  12438. sub: !0,
  12439. raw: V[_],
  12440. direction: rt
  12441. };
  12442. })
  12443. ),
  12444. !1
  12445. ),
  12446. B(
  12447. X.map(function (W, _) {
  12448. var rt = Yi[_];
  12449. return {
  12450. virtual: _ >= h,
  12451. horizontal: 0,
  12452. vertical: xr[_],
  12453. pos: [n + (br[_] === -1 ? r : 0), a + W],
  12454. sub: !0,
  12455. raw: F[_],
  12456. direction: rt
  12457. };
  12458. })
  12459. ),
  12460. !1
  12461. );
  12462. }
  12463. function hd(t, r, e, n, a) {
  12464. a === void 0 && (a = r.length);
  12465. var i = Hs(t.slice(n)),
  12466. o = i.horizontalRange,
  12467. s = i.verticalRange,
  12468. u = e - n,
  12469. l = 0;
  12470. if (u === 0) l = a;
  12471. else if (u > 0 && u < o[1]) l = o[1] - u;
  12472. else if (u >= s[0]) l = s[0] + s[1] - u;
  12473. else return;
  12474. t.splice(e, l), r.splice(e, l);
  12475. }
  12476. function Ad(t, r, e, n, a, i, o, s, u, l, f) {
  12477. l === void 0 && (l = 0), f === void 0 && (f = 0);
  12478. var c = Hs(t.slice(e)),
  12479. v = c.horizontalRange,
  12480. p = c.verticalRange;
  12481. if (n > -1)
  12482. for (var d = br[n] === 1 ? i - l : s - i, g = v[1]; g <= n; ++g) {
  12483. var h = xr[g] === 1 ? f : u,
  12484. A = 0;
  12485. if (
  12486. (n === g
  12487. ? (A = i)
  12488. : g === 0
  12489. ? (A = l + d)
  12490. : br[g] === -1 && (A = s - (r[e][0] - l)),
  12491. t.splice(e + g, 0, { horizontal: br[g], vertical: 0, pos: [A, h] }),
  12492. r.splice(e + g, 0, [A, h]),
  12493. g === 0)
  12494. )
  12495. break;
  12496. }
  12497. else if (a > -1) {
  12498. var m = xr[a] === 1 ? o - f : u - o;
  12499. if (v[1] === 0 && p[1] === 0) {
  12500. var E = [l + m, f];
  12501. t.push({ horizontal: br[0], vertical: 0, pos: E }), r.push(E);
  12502. }
  12503. for (var y = p[0], g = p[1]; g <= a; ++g) {
  12504. var A = br[g] === 1 ? l : s,
  12505. h = 0;
  12506. if (
  12507. (a === g
  12508. ? (h = o)
  12509. : g === 0
  12510. ? (h = f + m)
  12511. : xr[g] === 1
  12512. ? (h = r[e + y][1])
  12513. : xr[g] === -1 && (h = u - (r[e + y][1] - f)),
  12514. t.push({ horizontal: 0, vertical: xr[g], pos: [A, h] }),
  12515. r.push([A, h]),
  12516. g === 0)
  12517. )
  12518. break;
  12519. }
  12520. }
  12521. }
  12522. function md(t, r) {
  12523. r === void 0 &&
  12524. (r = t.map(function (a) {
  12525. return a.raw;
  12526. }));
  12527. var e = t
  12528. .map(function (a, i) {
  12529. return a.horizontal ? r[i] : null;
  12530. })
  12531. .filter(function (a) {
  12532. return a != null;
  12533. }),
  12534. n = t
  12535. .map(function (a, i) {
  12536. return a.vertical ? r[i] : null;
  12537. })
  12538. .filter(function (a) {
  12539. return a != null;
  12540. });
  12541. return { horizontals: e, verticals: n };
  12542. }
  12543. var Sd = [
  12544. [0, -1, 'n'],
  12545. [1, 0, 'e']
  12546. ],
  12547. Cd = [
  12548. [-1, -1, 'nw'],
  12549. [0, -1, 'n'],
  12550. [1, -1, 'ne'],
  12551. [1, 0, 'e'],
  12552. [1, 1, 'se'],
  12553. [0, 1, 's'],
  12554. [-1, 1, 'sw'],
  12555. [-1, 0, 'w']
  12556. ];
  12557. function Xa(t, r, e) {
  12558. var n = t.props.clipRelative,
  12559. a = t.state,
  12560. i = a.width,
  12561. o = a.height,
  12562. s = r,
  12563. u = s.type,
  12564. l = s.poses,
  12565. f = u === 'rect',
  12566. c = u === 'circle';
  12567. if (u === 'polygon')
  12568. return e.map(function (C) {
  12569. return ''.concat(Zt(C[0], i, n), ' ').concat(Zt(C[1], o, n));
  12570. });
  12571. if (f || u === 'inset') {
  12572. var v = e[1][1],
  12573. p = e[3][0],
  12574. d = e[7][0],
  12575. g = e[5][1];
  12576. if (f)
  12577. return [v, p, g, d].map(function (C) {
  12578. return ''.concat(C, 'px');
  12579. });
  12580. var h = [v, i - p, o - g, d].map(function (C, S) {
  12581. return Zt(C, S % 2 ? i : o, n);
  12582. });
  12583. if (e.length > 8) {
  12584. var A = B(tt(e[4], e[0]), 2),
  12585. m = A[0],
  12586. E = A[1];
  12587. h.push.apply(
  12588. h,
  12589. U(
  12590. ['round'],
  12591. B(
  12592. Qa(
  12593. l.slice(8).map(function (C, S) {
  12594. return R(R({}, C), { pos: e[S] });
  12595. }),
  12596. n,
  12597. m,
  12598. E,
  12599. d,
  12600. v,
  12601. p,
  12602. g
  12603. ).styles
  12604. ),
  12605. !1
  12606. )
  12607. );
  12608. }
  12609. return h;
  12610. } else if (c || u === 'ellipse') {
  12611. var y = e[0],
  12612. b = Zt(N(e[1][1] - y[1]), c ? Math.sqrt((i * i + o * o) / 2) : o, n),
  12613. h = c ? [b] : [Zt(N(e[2][0] - y[0]), i, n), b];
  12614. return h.push('at', Zt(y[0], i, n), Zt(y[1], o, n)), h;
  12615. }
  12616. }
  12617. function tn(t, r, e, n) {
  12618. var a = [n, (n + r) / 2, r],
  12619. i = [t, (t + e) / 2, e];
  12620. return Cd.map(function (o) {
  12621. var s = B(o, 3),
  12622. u = s[0],
  12623. l = s[1],
  12624. f = s[2],
  12625. c = a[u + 1],
  12626. v = i[l + 1];
  12627. return { vertical: N(l), horizontal: N(u), direction: f, pos: [c, v] };
  12628. });
  12629. }
  12630. function Us(t) {
  12631. var r = [1 / 0, -1 / 0],
  12632. e = [1 / 0, -1 / 0];
  12633. return (
  12634. t.forEach(function (n) {
  12635. var a = n.pos;
  12636. (r[0] = Math.min(r[0], a[0])),
  12637. (r[1] = Math.max(r[1], a[0])),
  12638. (e[0] = Math.min(e[0], a[1])),
  12639. (e[1] = Math.max(e[1], a[1]));
  12640. }),
  12641. [N(r[1] - r[0]), N(e[1] - e[0])]
  12642. );
  12643. }
  12644. function Qi(t, r, e, n, a) {
  12645. var i, o, s, u, l, f, c, v, p;
  12646. if (t) {
  12647. var d = a;
  12648. if (!d) {
  12649. var g = Yt(t),
  12650. h = g('clipPath');
  12651. d = h !== 'none' ? h : g('clip');
  12652. }
  12653. if (!((!d || d === 'none' || d === 'auto') && ((d = n), !d))) {
  12654. var A = io(d),
  12655. m = A.prefix,
  12656. E = m === void 0 ? d : m,
  12657. y = A.value,
  12658. b = y === void 0 ? '' : y,
  12659. C = E === 'circle',
  12660. S = ' ';
  12661. if (E === 'polygon') {
  12662. var D = Br(b || '0% 0%, 100% 0%, 100% 100%, 0% 100%');
  12663. S = ',';
  12664. var x = D.map(function (yt) {
  12665. var Ft = B(yt.split(' '), 2),
  12666. kt = Ft[0],
  12667. Dt = Ft[1];
  12668. return { vertical: 1, horizontal: 1, pos: [gt(kt, r), gt(Dt, e)] };
  12669. }),
  12670. w = Tr(
  12671. x.map(function (yt) {
  12672. return yt.pos;
  12673. })
  12674. );
  12675. return {
  12676. type: E,
  12677. clipText: d,
  12678. poses: x,
  12679. splitter: S,
  12680. left: w.minX,
  12681. right: w.maxX,
  12682. top: w.minY,
  12683. bottom: w.maxY
  12684. };
  12685. } else if (C || E === 'ellipse') {
  12686. var T = '',
  12687. I = '',
  12688. M = 0,
  12689. O = 0,
  12690. D = Ar(b);
  12691. if (C) {
  12692. var P = '';
  12693. (i = B(D, 4)),
  12694. (o = i[0]),
  12695. (P = o === void 0 ? '50%' : o),
  12696. (s = i[2]),
  12697. (T = s === void 0 ? '50%' : s),
  12698. (u = i[3]),
  12699. (I = u === void 0 ? '50%' : u),
  12700. (M = gt(P, Math.sqrt((r * r + e * e) / 2))),
  12701. (O = M);
  12702. } else {
  12703. var z = '',
  12704. H = '';
  12705. (l = B(D, 5)),
  12706. (f = l[0]),
  12707. (z = f === void 0 ? '50%' : f),
  12708. (c = l[1]),
  12709. (H = c === void 0 ? '50%' : c),
  12710. (v = l[3]),
  12711. (T = v === void 0 ? '50%' : v),
  12712. (p = l[4]),
  12713. (I = p === void 0 ? '50%' : p),
  12714. (M = gt(z, r)),
  12715. (O = gt(H, e));
  12716. }
  12717. var G = [gt(T, r), gt(I, e)],
  12718. x = U(
  12719. [{ vertical: 1, horizontal: 1, pos: G, direction: 'nesw' }],
  12720. B(
  12721. Sd.slice(0, C ? 1 : 2).map(function (kt) {
  12722. return {
  12723. vertical: N(kt[1]),
  12724. horizontal: kt[0],
  12725. direction: kt[2],
  12726. sub: !0,
  12727. pos: [G[0] + kt[0] * M, G[1] + kt[1] * O]
  12728. };
  12729. })
  12730. ),
  12731. !1
  12732. );
  12733. return {
  12734. type: E,
  12735. clipText: d,
  12736. radiusX: M,
  12737. radiusY: O,
  12738. left: G[0] - M,
  12739. top: G[1] - O,
  12740. right: G[0] + M,
  12741. bottom: G[1] + O,
  12742. poses: x,
  12743. splitter: S
  12744. };
  12745. } else if (E === 'inset') {
  12746. var D = Ar(b || '0 0 0 0'),
  12747. L = D.indexOf('round'),
  12748. V = (L > -1 ? D.slice(0, L) : D).length,
  12749. F = D.slice(V + 1),
  12750. Q = B(D.slice(0, V), 4),
  12751. j = Q[0],
  12752. K = Q[1],
  12753. X = K === void 0 ? j : K,
  12754. W = Q[2],
  12755. _ = W === void 0 ? j : W,
  12756. rt = Q[3],
  12757. lt = rt === void 0 ? X : rt,
  12758. et = B(
  12759. [j, _].map(function (kt) {
  12760. return gt(kt, e);
  12761. }),
  12762. 2
  12763. ),
  12764. Z = et[0],
  12765. J = et[1],
  12766. vt = B(
  12767. [lt, X].map(function (kt) {
  12768. return gt(kt, r);
  12769. }),
  12770. 2
  12771. ),
  12772. at = vt[0],
  12773. it = vt[1],
  12774. ut = r - it,
  12775. At = e - J,
  12776. pt = Ls(F, ut - at, At - Z, at, Z),
  12777. x = U(U([], B(tn(Z, ut, At, at)), !1), B(pt), !1);
  12778. return {
  12779. type: 'inset',
  12780. clipText: d,
  12781. poses: x,
  12782. top: Z,
  12783. left: at,
  12784. right: ut,
  12785. bottom: At,
  12786. radius: F,
  12787. splitter: S
  12788. };
  12789. } else if (E === 'rect') {
  12790. var D = Br(b || '0px, '.concat(r, 'px, ').concat(e, 'px, 0px'));
  12791. S = ',';
  12792. var st = B(
  12793. D.map(function (cr) {
  12794. var vr = ge(cr).value;
  12795. return vr;
  12796. }),
  12797. 4
  12798. ),
  12799. ct = st[0],
  12800. it = st[1],
  12801. J = st[2],
  12802. at = st[3],
  12803. x = tn(ct, it, J, at);
  12804. return {
  12805. type: 'rect',
  12806. clipText: d,
  12807. poses: x,
  12808. top: ct,
  12809. right: it,
  12810. bottom: J,
  12811. left: at,
  12812. values: D,
  12813. splitter: S
  12814. };
  12815. }
  12816. }
  12817. }
  12818. }
  12819. function Ed(t, r, e, n, a) {
  12820. var i = t[r],
  12821. o = i.direction,
  12822. s = i.sub,
  12823. u = t.map(function () {
  12824. return [0, 0];
  12825. }),
  12826. l = o ? o.split('') : [];
  12827. if (n && r < 8) {
  12828. var f = l.filter(function (M) {
  12829. return M === 'w' || M === 'e';
  12830. }),
  12831. c = l.filter(function (M) {
  12832. return M === 'n' || M === 's';
  12833. }),
  12834. v = f[0],
  12835. p = c[0];
  12836. u[r] = e;
  12837. var d = B(Us(t), 2),
  12838. g = d[0],
  12839. h = d[1],
  12840. A = g && h ? g / h : 0;
  12841. if (A && a) {
  12842. var m = (r + 4) % 8,
  12843. E = t[m].pos,
  12844. y = [0, 0];
  12845. o.indexOf('w') > -1 ? (y[0] = -1) : o.indexOf('e') > -1 && (y[0] = 1),
  12846. o.indexOf('n') > -1 ? (y[1] = -1) : o.indexOf('s') > -1 && (y[1] = 1);
  12847. var b = Os([g, h], e, A, y, !0),
  12848. C = g + b[0],
  12849. S = h + b[1],
  12850. D = E[1],
  12851. x = E[1],
  12852. w = E[0],
  12853. T = E[0];
  12854. y[0] === -1
  12855. ? (w = T - C)
  12856. : y[0] === 1
  12857. ? (T = w + C)
  12858. : ((w = w - C / 2), (T = T + C / 2)),
  12859. y[1] === -1
  12860. ? (D = x - S)
  12861. : (y[1] === 1 || (D = x - S / 2), (x = D + S));
  12862. var I = tn(D, T, x, w);
  12863. t.forEach(function (M, O) {
  12864. (u[O][0] = I[O].pos[0] - M.pos[0]), (u[O][1] = I[O].pos[1] - M.pos[1]);
  12865. });
  12866. } else
  12867. t.forEach(function (M, O) {
  12868. var P = M.direction;
  12869. P &&
  12870. (P.indexOf(v) > -1 && (u[O][0] = e[0]),
  12871. P.indexOf(p) > -1 && (u[O][1] = e[1]));
  12872. }),
  12873. v && ((u[1][0] = e[0] / 2), (u[5][0] = e[0] / 2)),
  12874. p && ((u[3][1] = e[1] / 2), (u[7][1] = e[1] / 2));
  12875. } else
  12876. o && !s
  12877. ? l.forEach(function (M) {
  12878. var O = M === 'n' || M === 's';
  12879. t.forEach(function (P, z) {
  12880. var H = P.direction,
  12881. G = P.horizontal,
  12882. L = P.vertical;
  12883. !H ||
  12884. H.indexOf(M) === -1 ||
  12885. (u[z] = [O || !G ? 0 : e[0], !O || !L ? 0 : e[1]]);
  12886. });
  12887. })
  12888. : (u[r] = e);
  12889. return u;
  12890. }
  12891. function yd(t, r) {
  12892. var e = B(Xo(t, r), 2),
  12893. n = e[0],
  12894. a = e[1],
  12895. i = r.datas,
  12896. o = i.clipPath,
  12897. s = i.clipIndex,
  12898. u = o,
  12899. l = u.type,
  12900. f = u.poses,
  12901. c = u.splitter,
  12902. v = f.map(function (m) {
  12903. return m.pos;
  12904. });
  12905. if (l === 'polygon') v.splice(s, 0, [n, a]);
  12906. else if (l === 'inset') {
  12907. var p = dd.indexOf(s),
  12908. d = gd.indexOf(s),
  12909. g = f.length;
  12910. if (
  12911. (Ad(f, v, 8, p, d, n, a, v[4][0], v[4][1], v[0][0], v[0][1]),
  12912. g === f.length)
  12913. )
  12914. return;
  12915. } else return;
  12916. var h = Xa(t, o, v),
  12917. A = ''.concat(l, '(').concat(h.join(c), ')');
  12918. Y(
  12919. t,
  12920. 'onClip',
  12921. ot(
  12922. t,
  12923. r,
  12924. R(
  12925. {
  12926. clipEventType: 'added',
  12927. clipType: l,
  12928. poses: v,
  12929. clipStyles: h,
  12930. clipStyle: A,
  12931. distX: 0,
  12932. distY: 0
  12933. },
  12934. Lt({ clipPath: A }, r)
  12935. )
  12936. )
  12937. );
  12938. }
  12939. function Dd(t, r) {
  12940. var e = r.datas,
  12941. n = e.clipPath,
  12942. a = e.clipIndex,
  12943. i = n,
  12944. o = i.type,
  12945. s = i.poses,
  12946. u = i.splitter,
  12947. l = s.map(function (p) {
  12948. return p.pos;
  12949. }),
  12950. f = l.length;
  12951. if (o === 'polygon') s.splice(a, 1), l.splice(a, 1);
  12952. else if (o === 'inset') {
  12953. if (a < 8 || (hd(s, l, a, 8, f), f === s.length)) return;
  12954. } else return;
  12955. var c = Xa(t, n, l),
  12956. v = ''.concat(o, '(').concat(c.join(u), ')');
  12957. Y(
  12958. t,
  12959. 'onClip',
  12960. ot(
  12961. t,
  12962. r,
  12963. R(
  12964. {
  12965. clipEventType: 'removed',
  12966. clipType: o,
  12967. poses: l,
  12968. clipStyles: c,
  12969. clipStyle: v,
  12970. distX: 0,
  12971. distY: 0
  12972. },
  12973. Lt({ clipPath: v }, r)
  12974. )
  12975. )
  12976. );
  12977. }
  12978. var bd = {
  12979. name: 'clippable',
  12980. props: [
  12981. 'clippable',
  12982. 'defaultClipPath',
  12983. 'customClipPath',
  12984. 'keepRatio',
  12985. 'clipRelative',
  12986. 'clipArea',
  12987. 'dragWithClip',
  12988. 'clipTargetBounds',
  12989. 'clipVerticalGuidelines',
  12990. 'clipHorizontalGuidelines',
  12991. 'clipSnapThreshold'
  12992. ],
  12993. events: ['clipStart', 'clip', 'clipEnd'],
  12994. css: [
  12995. '.control.clip-control {\nbackground: #6d6;\ncursor: pointer;\n}\n.control.clip-control.clip-radius {\nbackground: #d66;\n}\n.line.clip-line {\nbackground: #6e6;\ncursor: move;\nz-index: 1;\n}\n.clip-area {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.clip-ellipse {\nposition: absolute;\ncursor: move;\nborder: 1px solid #6d6;\nborder: var(--zoompx) solid #6d6;\nborder-radius: 50%;\ntransform-origin: 0px 0px;\n}',
  12996. ':host {\n--bounds-color: #d66;\n}',
  12997. '.guideline {\npointer-events: none;\nz-index: 2;\n}',
  12998. '.line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}'
  12999. ],
  13000. render: function (t, r) {
  13001. var e = t.props,
  13002. n = e.customClipPath,
  13003. a = e.defaultClipPath,
  13004. i = e.clipArea,
  13005. o = e.zoom,
  13006. s = e.groupable,
  13007. u = t.getState(),
  13008. l = u.target,
  13009. f = u.width,
  13010. c = u.height,
  13011. v = u.allMatrix,
  13012. p = u.is3d,
  13013. d = u.left,
  13014. g = u.top,
  13015. h = u.pos1,
  13016. A = u.pos2,
  13017. m = u.pos3,
  13018. E = u.pos4,
  13019. y = u.clipPathState,
  13020. b = u.snapBoundInfos,
  13021. C = u.rotation;
  13022. if (!l || s) return [];
  13023. var S = Qi(l, f, c, a || 'inset', y || n);
  13024. if (!S) return [];
  13025. var D = p ? 4 : 3,
  13026. x = S.type,
  13027. w = S.poses,
  13028. T = w.map(function (it) {
  13029. var ut = Ct(v, it.pos, D);
  13030. return [ut[0] - d, ut[1] - g];
  13031. }),
  13032. I = [],
  13033. M = [],
  13034. O = x === 'rect',
  13035. P = x === 'inset',
  13036. z = x === 'polygon';
  13037. if (O || P || z) {
  13038. var H = P ? T.slice(0, 8) : T;
  13039. M = H.map(function (it, ut) {
  13040. var At = ut === 0 ? H[H.length - 1] : H[ut - 1],
  13041. pt = Et(At, it),
  13042. st = ys(At, it);
  13043. return r.createElement('div', {
  13044. key: 'clipLine'.concat(ut),
  13045. className: $('line', 'clip-line', 'snap-control'),
  13046. 'data-clip-index': ut,
  13047. style: {
  13048. width: ''.concat(st, 'px'),
  13049. transform: 'translate('
  13050. .concat(At[0], 'px, ')
  13051. .concat(At[1], 'px) rotate(')
  13052. .concat(pt, 'rad) scaleY(')
  13053. .concat(o, ')')
  13054. }
  13055. });
  13056. });
  13057. }
  13058. if (
  13059. ((I = T.map(function (it, ut) {
  13060. return r.createElement('div', {
  13061. key: 'clipControl'.concat(ut),
  13062. className: $('control', 'clip-control', 'snap-control'),
  13063. 'data-clip-index': ut,
  13064. style: {
  13065. transform: 'translate('
  13066. .concat(it[0], 'px, ')
  13067. .concat(it[1], 'px) rotate(')
  13068. .concat(C, 'rad) scale(')
  13069. .concat(o, ')')
  13070. }
  13071. });
  13072. })),
  13073. P &&
  13074. I.push.apply(
  13075. I,
  13076. U(
  13077. [],
  13078. B(
  13079. T.slice(8).map(function (it, ut) {
  13080. return r.createElement('div', {
  13081. key: 'clipRadiusControl'.concat(ut),
  13082. className: $(
  13083. 'control',
  13084. 'clip-control',
  13085. 'clip-radius',
  13086. 'snap-control'
  13087. ),
  13088. 'data-clip-index': 8 + ut,
  13089. style: {
  13090. transform: 'translate('
  13091. .concat(it[0], 'px, ')
  13092. .concat(it[1], 'px) rotate(')
  13093. .concat(C, 'rad) scale(')
  13094. .concat(o, ')')
  13095. }
  13096. });
  13097. })
  13098. ),
  13099. !1
  13100. )
  13101. ),
  13102. x === 'circle' || x === 'ellipse')
  13103. ) {
  13104. var G = S.left,
  13105. L = S.top,
  13106. V = S.radiusX,
  13107. F = S.radiusY,
  13108. Q = B(tt(Ct(v, [G, L], D), Ct(v, [0, 0], D)), 2),
  13109. j = Q[0],
  13110. K = Q[1],
  13111. X = 'none';
  13112. if (!i) {
  13113. for (
  13114. var W = Math.max(10, V / 5, F / 5), _ = [], rt = 0;
  13115. rt <= W;
  13116. ++rt
  13117. ) {
  13118. var lt = ((Math.PI * 2) / W) * rt;
  13119. _.push([V + (V - o) * Math.cos(lt), F + (F - o) * Math.sin(lt)]);
  13120. }
  13121. _.push([V, -2]),
  13122. _.push([-2, -2]),
  13123. _.push([-2, F * 2 + 2]),
  13124. _.push([V * 2 + 2, F * 2 + 2]),
  13125. _.push([V * 2 + 2, -2]),
  13126. _.push([V, -2]),
  13127. (X = 'polygon('.concat(
  13128. _.map(function (it) {
  13129. return ''.concat(it[0], 'px ').concat(it[1], 'px');
  13130. }).join(', '),
  13131. ')'
  13132. ));
  13133. }
  13134. I.push(
  13135. r.createElement('div', {
  13136. key: 'clipEllipse',
  13137. className: $('clip-ellipse', 'snap-control'),
  13138. style: {
  13139. width: ''.concat(V * 2, 'px'),
  13140. height: ''.concat(F * 2, 'px'),
  13141. clipPath: X,
  13142. transform: 'translate('
  13143. .concat(-d + j, 'px, ')
  13144. .concat(-g + K, 'px) ')
  13145. .concat(gn(v))
  13146. }
  13147. })
  13148. );
  13149. }
  13150. if (i) {
  13151. var et = qt(U([h, A, m, E], B(T), !1)),
  13152. Z = et.width,
  13153. J = et.height,
  13154. vt = et.left,
  13155. at = et.top;
  13156. if (z || O || P) {
  13157. var _ = P ? T.slice(0, 8) : T;
  13158. I.push(
  13159. r.createElement('div', {
  13160. key: 'clipArea',
  13161. className: $('clip-area', 'snap-control'),
  13162. style: {
  13163. width: ''.concat(Z, 'px'),
  13164. height: ''.concat(J, 'px'),
  13165. transform: 'translate('.concat(vt, 'px, ').concat(at, 'px)'),
  13166. clipPath: 'polygon('.concat(
  13167. _.map(function (ut) {
  13168. return ''
  13169. .concat(ut[0] - vt, 'px ')
  13170. .concat(ut[1] - at, 'px');
  13171. }).join(', '),
  13172. ')'
  13173. )
  13174. }
  13175. })
  13176. );
  13177. }
  13178. }
  13179. return (
  13180. b &&
  13181. ['vertical', 'horizontal'].forEach(function (it) {
  13182. var ut = b[it],
  13183. At = it === 'horizontal';
  13184. ut.isSnap &&
  13185. M.push.apply(
  13186. M,
  13187. U(
  13188. [],
  13189. B(
  13190. ut.snap.posInfos.map(function (pt, st) {
  13191. var ct = pt.pos,
  13192. yt = tt(Ct(v, At ? [0, ct] : [ct, 0], D), [d, g]),
  13193. Ft = tt(Ct(v, At ? [f, ct] : [ct, c], D), [d, g]);
  13194. return ve(
  13195. r,
  13196. '',
  13197. yt,
  13198. Ft,
  13199. o,
  13200. 'clip'.concat(it, 'snap').concat(st),
  13201. 'guideline'
  13202. );
  13203. })
  13204. ),
  13205. !1
  13206. )
  13207. ),
  13208. ut.isBound &&
  13209. M.push.apply(
  13210. M,
  13211. U(
  13212. [],
  13213. B(
  13214. ut.bounds.map(function (pt, st) {
  13215. var ct = pt.pos,
  13216. yt = tt(Ct(v, At ? [0, ct] : [ct, 0], D), [d, g]),
  13217. Ft = tt(Ct(v, At ? [f, ct] : [ct, c], D), [d, g]);
  13218. return ve(
  13219. r,
  13220. '',
  13221. yt,
  13222. Ft,
  13223. o,
  13224. 'clip'.concat(it, 'bounds').concat(st),
  13225. 'guideline',
  13226. 'bounds',
  13227. 'bold'
  13228. );
  13229. })
  13230. ),
  13231. !1
  13232. )
  13233. );
  13234. }),
  13235. U(U([], B(I), !1), B(M), !1)
  13236. );
  13237. },
  13238. dragControlCondition: function (t, r) {
  13239. return (
  13240. r.inputEvent &&
  13241. (r.inputEvent.target.getAttribute('class') || '').indexOf('clip') > -1
  13242. );
  13243. },
  13244. dragStart: function (t, r) {
  13245. var e = t.props,
  13246. n = e.dragWithClip,
  13247. a = n === void 0 ? !0 : n;
  13248. return a ? !1 : this.dragControlStart(t, r);
  13249. },
  13250. drag: function (t, r) {
  13251. return this.dragControl(t, R(R({}, r), { isDragTarget: !0 }));
  13252. },
  13253. dragEnd: function (t, r) {
  13254. return this.dragControlEnd(t, r);
  13255. },
  13256. dragControlStart: function (t, r) {
  13257. var e = t.state,
  13258. n = t.props,
  13259. a = n.defaultClipPath,
  13260. i = n.customClipPath,
  13261. o = e.target,
  13262. s = e.width,
  13263. u = e.height,
  13264. l = r.inputEvent ? r.inputEvent.target : null,
  13265. f = (l && l.getAttribute('class')) || '',
  13266. c = r.datas,
  13267. v = Qi(o, s, u, a || 'inset', i);
  13268. if (!v) return !1;
  13269. var p = v.clipText,
  13270. d = v.type,
  13271. g = v.poses,
  13272. h = Y(
  13273. t,
  13274. 'onClipStart',
  13275. ot(t, r, {
  13276. clipType: d,
  13277. clipStyle: p,
  13278. poses: g.map(function (A) {
  13279. return A.pos;
  13280. })
  13281. })
  13282. );
  13283. return h === !1
  13284. ? ((c.isClipStart = !1), !1)
  13285. : ((c.isControl = f && f.indexOf('clip-control') > -1),
  13286. (c.isLine = f.indexOf('clip-line') > -1),
  13287. (c.isArea =
  13288. f.indexOf('clip-area') > -1 || f.indexOf('clip-ellipse') > -1),
  13289. (c.clipIndex = l
  13290. ? parseInt(l.getAttribute('data-clip-index'), 10)
  13291. : -1),
  13292. (c.clipPath = v),
  13293. (c.isClipStart = !0),
  13294. (e.clipPathState = p),
  13295. Pr(t, r),
  13296. !0);
  13297. },
  13298. dragControl: function (t, r) {
  13299. var e,
  13300. n,
  13301. a,
  13302. i = r.datas,
  13303. o = r.originalDatas,
  13304. s = r.isDragTarget;
  13305. if (!i.isClipStart) return !1;
  13306. var u = i,
  13307. l = u.isControl,
  13308. f = u.isLine,
  13309. c = u.isArea,
  13310. v = u.clipIndex,
  13311. p = u.clipPath;
  13312. if (!p) return !1;
  13313. var d = Or(t.props, 'clippable'),
  13314. g = d.keepRatio,
  13315. h = 0,
  13316. A = 0,
  13317. m = o.draggable,
  13318. E = ir(r);
  13319. s && m
  13320. ? ((e = B(m.prevBeforeDist, 2)), (h = e[0]), (A = e[1]))
  13321. : ((n = B(E, 2)), (h = n[0]), (A = n[1]));
  13322. var y = [h, A],
  13323. b = t.state,
  13324. C = b.width,
  13325. S = b.height,
  13326. D = !c && !l && !f,
  13327. x = p.type,
  13328. w = p.poses,
  13329. T = p.splitter,
  13330. I = w.map(function (mt) {
  13331. return mt.pos;
  13332. });
  13333. D && ((h = -h), (A = -A));
  13334. var M = !l || w[v].direction === 'nesw',
  13335. O = x === 'inset' || x === 'rect',
  13336. P = w.map(function () {
  13337. return [0, 0];
  13338. });
  13339. if (l && !M) {
  13340. var z = w[v],
  13341. H = z.horizontal,
  13342. G = z.vertical,
  13343. L = [h * N(H), A * N(G)];
  13344. P = Ed(w, v, L, O, g);
  13345. } else
  13346. M &&
  13347. (P = I.map(function () {
  13348. return [h, A];
  13349. }));
  13350. var V = I.map(function (mt, zt) {
  13351. return ft(mt, P[zt]);
  13352. }),
  13353. F = U([], B(V), !1);
  13354. b.snapBoundInfos = null;
  13355. var Q = p.type === 'circle',
  13356. j = p.type === 'ellipse';
  13357. if (Q || j) {
  13358. var K = qt(V),
  13359. X = N(K.bottom - K.top),
  13360. W = N(j ? K.right - K.left : X),
  13361. _ = V[0][1] + X,
  13362. rt = V[0][0] - W,
  13363. lt = V[0][0] + W;
  13364. Q && (F.push([lt, K.bottom]), P.push([1, 0])),
  13365. F.push([K.left, _]),
  13366. P.push([0, 1]),
  13367. F.push([rt, K.bottom]),
  13368. P.push([1, 0]);
  13369. }
  13370. var et = ds(
  13371. (d.clipHorizontalGuidelines || []).map(function (mt) {
  13372. return gt(''.concat(mt), S);
  13373. }),
  13374. (d.clipVerticalGuidelines || []).map(function (mt) {
  13375. return gt(''.concat(mt), C);
  13376. }),
  13377. C,
  13378. S
  13379. ),
  13380. Z = [],
  13381. J = [];
  13382. if (Q || j) (Z = [F[4][0], F[2][0]]), (J = [F[1][1], F[3][1]]);
  13383. else if (O) {
  13384. var vt = [F[0], F[2], F[4], F[6]],
  13385. at = [P[0], P[2], P[4], P[6]];
  13386. (Z = vt
  13387. .filter(function (mt, zt) {
  13388. return at[zt][0];
  13389. })
  13390. .map(function (mt) {
  13391. return mt[0];
  13392. })),
  13393. (J = vt
  13394. .filter(function (mt, zt) {
  13395. return at[zt][1];
  13396. })
  13397. .map(function (mt) {
  13398. return mt[1];
  13399. }));
  13400. } else
  13401. (Z = F.filter(function (mt, zt) {
  13402. return P[zt][0];
  13403. }).map(function (mt) {
  13404. return mt[0];
  13405. })),
  13406. (J = F.filter(function (mt, zt) {
  13407. return P[zt][1];
  13408. }).map(function (mt) {
  13409. return mt[1];
  13410. }));
  13411. var it = [0, 0],
  13412. ut = Mi(
  13413. et,
  13414. d.clipTargetBounds && { left: 0, top: 0, right: C, bottom: S },
  13415. Z,
  13416. J,
  13417. 5
  13418. ),
  13419. At = ut.horizontal,
  13420. pt = ut.vertical,
  13421. st = At.offset,
  13422. ct = pt.offset;
  13423. if (
  13424. (At.isBound && (it[1] += st),
  13425. pt.isBound && (it[0] += ct),
  13426. (j || Q) && P[0][0] === 0 && P[0][1] === 0)
  13427. ) {
  13428. var K = qt(V),
  13429. yt = K.bottom - K.top,
  13430. Ft = j ? K.right - K.left : yt,
  13431. kt = pt.isBound ? N(ct) : pt.snapIndex === 0 ? -ct : ct,
  13432. Dt = At.isBound ? N(st) : At.snapIndex === 0 ? -st : st;
  13433. (Ft -= kt),
  13434. (yt -= Dt),
  13435. Q && ((yt = os(pt, At) > 0 ? yt : Ft), (Ft = yt));
  13436. var Bt = F[0];
  13437. (F[1][1] = Bt[1] - yt),
  13438. (F[2][0] = Bt[0] + Ft),
  13439. (F[3][1] = Bt[1] + yt),
  13440. (F[4][0] = Bt[0] - Ft);
  13441. } else if (O && g && l) {
  13442. var cr = B(Us(w), 2),
  13443. vr = cr[0],
  13444. Za = cr[1],
  13445. _a = vr && Za ? vr / Za : 0,
  13446. js = w[v],
  13447. xe = js.direction || '',
  13448. An = F[1][1],
  13449. _ = F[5][1],
  13450. rt = F[7][0],
  13451. lt = F[3][0];
  13452. N(st) <= N(ct)
  13453. ? (st = (Xt(st) * N(ct)) / _a)
  13454. : (ct = Xt(ct) * N(st) * _a),
  13455. xe.indexOf('w') > -1
  13456. ? (rt -= ct)
  13457. : xe.indexOf('e') > -1
  13458. ? (lt -= ct)
  13459. : ((rt += ct / 2), (lt -= ct / 2)),
  13460. xe.indexOf('n') > -1
  13461. ? (An -= st)
  13462. : xe.indexOf('s') > -1
  13463. ? (_ -= st)
  13464. : ((An += st / 2), (_ -= st / 2));
  13465. var Zs = tn(An, lt, _, rt);
  13466. F.forEach(function (ri, ru) {
  13467. var Cn;
  13468. (Cn = B(Zs[ru].pos, 2)), (ri[0] = Cn[0]), (ri[1] = Cn[1]);
  13469. });
  13470. } else
  13471. F.forEach(function (mt, zt) {
  13472. var ti = P[zt];
  13473. ti[0] && (mt[0] -= ct), ti[1] && (mt[1] -= st);
  13474. });
  13475. var $a = Xa(t, p, V),
  13476. mn = ''.concat(x, '(').concat($a.join(T), ')');
  13477. if (((b.clipPathState = mn), Q || j))
  13478. (Z = [F[4][0], F[2][0]]), (J = [F[1][1], F[3][1]]);
  13479. else if (O) {
  13480. var vt = [F[0], F[2], F[4], F[6]];
  13481. (Z = vt.map(function (zt) {
  13482. return zt[0];
  13483. })),
  13484. (J = vt.map(function (zt) {
  13485. return zt[1];
  13486. }));
  13487. } else
  13488. (Z = F.map(function (mt) {
  13489. return mt[0];
  13490. })),
  13491. (J = F.map(function (mt) {
  13492. return mt[1];
  13493. }));
  13494. if (
  13495. ((b.snapBoundInfos = Mi(
  13496. et,
  13497. d.clipTargetBounds && { left: 0, top: 0, right: C, bottom: S },
  13498. Z,
  13499. J,
  13500. 1
  13501. )),
  13502. m)
  13503. ) {
  13504. var _s = b.is3d,
  13505. $s = b.allMatrix,
  13506. tu = _s ? 4 : 3,
  13507. Sn = it;
  13508. s && (Sn = [y[0] + it[0] - E[0], y[1] + it[1] - E[1]]),
  13509. (m.deltaOffset = ht($s, [Sn[0], Sn[1], 0, 0], tu));
  13510. }
  13511. return (
  13512. Y(
  13513. t,
  13514. 'onClip',
  13515. ot(
  13516. t,
  13517. r,
  13518. R(
  13519. {
  13520. clipEventType: 'changed',
  13521. clipType: x,
  13522. poses: V,
  13523. clipStyle: mn,
  13524. clipStyles: $a,
  13525. distX: h,
  13526. distY: A
  13527. },
  13528. Lt(((a = {}), (a[x === 'rect' ? 'clip' : 'clipPath'] = mn), a), r)
  13529. )
  13530. )
  13531. ),
  13532. !0
  13533. );
  13534. },
  13535. dragControlEnd: function (t, r) {
  13536. this.unset(t);
  13537. var e = r.isDrag,
  13538. n = r.datas,
  13539. a = r.isDouble,
  13540. i = n.isLine,
  13541. o = n.isClipStart,
  13542. s = n.isControl;
  13543. return o
  13544. ? (Y(t, 'onClipEnd', Qt(t, r, {})),
  13545. a && (s ? Dd(t, r) : i && yd(t, r)),
  13546. a || e)
  13547. : !1;
  13548. },
  13549. unset: function (t) {
  13550. (t.state.clipPathState = ''), (t.state.snapBoundInfos = null);
  13551. }
  13552. },
  13553. xd = {
  13554. name: 'originDraggable',
  13555. props: ['originDraggable', 'originRelative'],
  13556. events: ['dragOriginStart', 'dragOrigin', 'dragOriginEnd'],
  13557. css: [
  13558. ':host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}'
  13559. ],
  13560. dragControlCondition: function (t, r) {
  13561. return r.isRequest
  13562. ? r.requestAble === 'originDraggable'
  13563. : Tt(r.inputEvent.target, $('origin'));
  13564. },
  13565. dragControlStart: function (t, r) {
  13566. var e = r.datas;
  13567. Pr(t, r);
  13568. var n = ot(t, r, {
  13569. dragStart: Ht.dragStart(t, new Wr().dragStart([0, 0], r))
  13570. }),
  13571. a = Y(t, 'onDragOriginStart', n);
  13572. return (
  13573. (e.startOrigin = t.state.transformOrigin),
  13574. (e.startTargetOrigin = t.state.targetOrigin),
  13575. (e.prevOrigin = [0, 0]),
  13576. (e.isDragOrigin = !0),
  13577. a === !1 ? ((e.isDragOrigin = !1), !1) : n
  13578. );
  13579. },
  13580. dragControl: function (t, r) {
  13581. var e = r.datas,
  13582. n = r.isPinch,
  13583. a = r.isRequest;
  13584. if (!e.isDragOrigin) return !1;
  13585. var i = B(ir(r), 2),
  13586. o = i[0],
  13587. s = i[1],
  13588. u = t.state,
  13589. l = u.width,
  13590. f = u.height,
  13591. c = u.offsetMatrix,
  13592. v = u.targetMatrix,
  13593. p = u.is3d,
  13594. d = t.props.originRelative,
  13595. g = d === void 0 ? !0 : d,
  13596. h = p ? 4 : 3,
  13597. A = [o, s];
  13598. if (a) {
  13599. var m = r.distOrigin;
  13600. (m[0] || m[1]) && (A = m);
  13601. }
  13602. var E = ft(e.startOrigin, A),
  13603. y = ft(e.startTargetOrigin, A),
  13604. b = tt(A, e.prevOrigin),
  13605. C = be(c, v, E, h),
  13606. S = t.getRect(),
  13607. D = qt(kr(C, l, f, h)),
  13608. x = [S.left - D.left, S.top - D.top];
  13609. e.prevOrigin = A;
  13610. var w = [Zt(y[0], l, g), Zt(y[1], f, g)].join(' '),
  13611. T = Ht.drag(t, De(r, t.state, x, !!n, !1)),
  13612. I = ot(
  13613. t,
  13614. r,
  13615. R(
  13616. R(
  13617. {
  13618. width: l,
  13619. height: f,
  13620. origin: E,
  13621. dist: A,
  13622. delta: b,
  13623. transformOrigin: w,
  13624. drag: T
  13625. },
  13626. Lt({ transformOrigin: w, transform: T.transform }, r)
  13627. ),
  13628. { afterTransform: T.transform }
  13629. )
  13630. );
  13631. return Y(t, 'onDragOrigin', I), I;
  13632. },
  13633. dragControlEnd: function (t, r) {
  13634. var e = r.datas;
  13635. return e.isDragOrigin ? (Y(t, 'onDragOriginEnd', Qt(t, r, {})), !0) : !1;
  13636. },
  13637. dragGroupControlCondition: function (t, r) {
  13638. return this.dragControlCondition(t, r);
  13639. },
  13640. dragGroupControlStart: function (t, r) {
  13641. var e = this.dragControlStart(t, r);
  13642. return !!e;
  13643. },
  13644. dragGroupControl: function (t, r) {
  13645. var e = this.dragControl(t, r);
  13646. return e ? ((t.transformOrigin = e.transformOrigin), !0) : !1;
  13647. },
  13648. request: function (t) {
  13649. var r = {},
  13650. e = t.getRect(),
  13651. n = 0,
  13652. a = 0,
  13653. i = e.transformOrigin,
  13654. o = [0, 0];
  13655. return {
  13656. isControl: !0,
  13657. requestStart: function () {
  13658. return { datas: r };
  13659. },
  13660. request: function (s) {
  13661. return (
  13662. 'deltaOrigin' in s
  13663. ? ((o[0] += s.deltaOrigin[0]), (o[1] += s.deltaOrigin[1]))
  13664. : 'origin' in s
  13665. ? ((o[0] = s.origin[0] - i[0]), (o[1] = s.origin[1] - i[1]))
  13666. : ('x' in s
  13667. ? (n = s.x - e.left)
  13668. : 'deltaX' in s && (n += s.deltaX),
  13669. 'y' in s
  13670. ? (a = s.y - e.top)
  13671. : 'deltaY' in s && (a += s.deltaY)),
  13672. { datas: r, distX: n, distY: a, distOrigin: o }
  13673. );
  13674. },
  13675. requestEnd: function () {
  13676. return { datas: r, isDrag: !0 };
  13677. }
  13678. };
  13679. }
  13680. };
  13681. function wd(t, r, e, n) {
  13682. var a = t.filter(function (u) {
  13683. var l = u.virtual,
  13684. f = u.horizontal;
  13685. return f && !l;
  13686. }).length,
  13687. i = t.filter(function (u) {
  13688. var l = u.virtual,
  13689. f = u.vertical;
  13690. return f && !l;
  13691. }).length,
  13692. o = -1;
  13693. if (
  13694. (r === 0 && (a === 0 ? (o = 0) : a === 1 && (o = 1)),
  13695. r === 2 && (a <= 2 ? (o = 2) : a <= 3 && (o = 3)),
  13696. r === 3 && (i === 0 ? (o = 4) : i < 4 && (o = 7)),
  13697. r === 1 && (i <= 1 ? (o = 5) : i <= 2 && (o = 6)),
  13698. !(o === -1 || !t[o].virtual))
  13699. ) {
  13700. var s = t[o];
  13701. Rd(t, o), o < 4 ? (s.pos[0] = e) : (s.pos[1] = n);
  13702. }
  13703. }
  13704. function Rd(t, r) {
  13705. r < 4
  13706. ? t.slice(0, r + 1).forEach(function (e) {
  13707. e.virtual = !1;
  13708. })
  13709. : (t[0].virtual && (t[0].virtual = !1),
  13710. t.slice(4, r + 1).forEach(function (e) {
  13711. e.virtual = !1;
  13712. }));
  13713. }
  13714. function Bd(t, r) {
  13715. r < 4
  13716. ? t.slice(r, 4).forEach(function (e) {
  13717. e.virtual = !0;
  13718. })
  13719. : t.slice(r).forEach(function (e) {
  13720. e.virtual = !0;
  13721. });
  13722. }
  13723. function Xi(t, r, e, n, a) {
  13724. n === void 0 && (n = [0, 0]);
  13725. var i = [];
  13726. return !t || t === '0px' ? (i = []) : (i = Ar(t)), Ls(i, r, e, 0, 0, n, a);
  13727. }
  13728. function qi(t, r, e, n, a) {
  13729. var i = t.state,
  13730. o = i.width,
  13731. s = i.height,
  13732. u = Qa(a, t.props.roundRelative, o, s),
  13733. l = u.raws,
  13734. f = u.styles,
  13735. c = u.radiusPoses,
  13736. v = md(c, l),
  13737. p = v.horizontals,
  13738. d = v.verticals,
  13739. g = f.join(' ');
  13740. i.borderRadiusState = g;
  13741. var h = ot(
  13742. t,
  13743. r,
  13744. R(
  13745. {
  13746. horizontals: p,
  13747. verticals: d,
  13748. borderRadius: g,
  13749. width: o,
  13750. height: s,
  13751. delta: n,
  13752. dist: e
  13753. },
  13754. Lt({ borderRadius: g }, r)
  13755. )
  13756. );
  13757. return Y(t, 'onRound', h), h;
  13758. }
  13759. function Ki(t) {
  13760. var r,
  13761. e,
  13762. n = t.getState().style,
  13763. a = n.borderRadius || '';
  13764. if (!a && t.props.groupable) {
  13765. var i = t.moveables[0],
  13766. o = t.getTargets()[0];
  13767. o &&
  13768. ((i == null ? void 0 : i.props.target) === o
  13769. ? ((a =
  13770. (e =
  13771. (r = t.moveables[0]) === null || r === void 0
  13772. ? void 0
  13773. : r.state.style.borderRadius) !== null && e !== void 0
  13774. ? e
  13775. : ''),
  13776. (n.borderRadius = a))
  13777. : ((a = La(o).borderRadius), (n.borderRadius = a)));
  13778. }
  13779. return a;
  13780. }
  13781. var Md = {
  13782. name: 'roundable',
  13783. props: [
  13784. 'roundable',
  13785. 'roundRelative',
  13786. 'minRoundControls',
  13787. 'maxRoundControls',
  13788. 'roundClickable',
  13789. 'roundPadding',
  13790. 'isDisplayShadowRoundControls'
  13791. ],
  13792. events: [
  13793. 'roundStart',
  13794. 'round',
  13795. 'roundEnd',
  13796. 'roundGroupStart',
  13797. 'roundGroup',
  13798. 'roundGroupEnd'
  13799. ],
  13800. css: [
  13801. '.control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}',
  13802. '.control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}',
  13803. '.control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}',
  13804. ':host.round-line-clickable .line.direction {\ncursor: pointer;\n}'
  13805. ],
  13806. className: function (t) {
  13807. var r = t.props.roundClickable;
  13808. return r === !0 || r === 'line' ? $('round-line-clickable') : '';
  13809. },
  13810. requestStyle: function () {
  13811. return ['borderRadius'];
  13812. },
  13813. requestChildStyle: function () {
  13814. return ['borderRadius'];
  13815. },
  13816. render: function (t, r) {
  13817. var e = t.getState(),
  13818. n = e.target,
  13819. a = e.width,
  13820. i = e.height,
  13821. o = e.allMatrix,
  13822. s = e.is3d,
  13823. u = e.left,
  13824. l = e.top,
  13825. f = e.borderRadiusState,
  13826. c = t.props,
  13827. v = c.minRoundControls,
  13828. p = v === void 0 ? [0, 0] : v,
  13829. d = c.maxRoundControls,
  13830. g = d === void 0 ? [4, 4] : d,
  13831. h = c.zoom,
  13832. A = c.roundPadding,
  13833. m = A === void 0 ? 0 : A,
  13834. E = c.isDisplayShadowRoundControls,
  13835. y = c.groupable;
  13836. if (!n) return null;
  13837. var b = f || Ki(t),
  13838. C = s ? 4 : 3,
  13839. S = Xi(b, a, i, p, !0);
  13840. if (!S) return null;
  13841. var D = 0,
  13842. x = 0,
  13843. w = y ? [0, 0] : [u, l];
  13844. return S.map(function (T, I) {
  13845. var M = T.horizontal,
  13846. O = T.vertical,
  13847. P = T.direction || '',
  13848. z = U([], B(T.pos), !1);
  13849. (x += Math.abs(M)),
  13850. (D += Math.abs(O)),
  13851. M && P.indexOf('n') > -1 && (z[1] -= m),
  13852. O && P.indexOf('w') > -1 && (z[0] -= m),
  13853. M && P.indexOf('s') > -1 && (z[1] += m),
  13854. O && P.indexOf('e') > -1 && (z[0] += m);
  13855. var H = tt(Ct(o, z, C), w),
  13856. G = T.vertical
  13857. ? D <= g[1] && (E || !T.virtual)
  13858. : x <= g[0] && (E || !T.virtual);
  13859. return r.createElement('div', {
  13860. key: 'borderRadiusControl'.concat(I),
  13861. className: $(
  13862. 'control',
  13863. 'border-radius',
  13864. T.vertical ? 'vertical' : '',
  13865. T.virtual ? 'virtual' : ''
  13866. ),
  13867. 'data-radius-index': I,
  13868. style: {
  13869. display: G ? 'block' : 'none',
  13870. transform: 'translate('
  13871. .concat(H[0], 'px, ')
  13872. .concat(H[1], 'px) scale(')
  13873. .concat(h, ')')
  13874. }
  13875. });
  13876. });
  13877. },
  13878. dragControlCondition: function (t, r) {
  13879. if (!r.inputEvent || r.isRequest) return !1;
  13880. var e = r.inputEvent.target.getAttribute('class') || '';
  13881. return (
  13882. e.indexOf('border-radius') > -1 ||
  13883. (e.indexOf('moveable-line') > -1 && e.indexOf('moveable-direction') > -1)
  13884. );
  13885. },
  13886. dragGroupControlCondition: function (t, r) {
  13887. return this.dragControlCondition(t, r);
  13888. },
  13889. dragControlStart: function (t, r) {
  13890. var e = r.inputEvent,
  13891. n = r.datas,
  13892. a = e.target,
  13893. i = a.getAttribute('class') || '',
  13894. o = i.indexOf('border-radius') > -1,
  13895. s =
  13896. i.indexOf('moveable-line') > -1 && i.indexOf('moveable-direction') > -1,
  13897. u = o ? parseInt(a.getAttribute('data-radius-index'), 10) : -1,
  13898. l = -1;
  13899. if (s) {
  13900. var f = a.getAttribute('data-line-key') || '';
  13901. f &&
  13902. ((l = parseInt(f.replace(/render-line-/g, ''), 10)),
  13903. isNaN(l) && (l = -1));
  13904. }
  13905. if (!o && !s) return !1;
  13906. var c = ot(t, r, {}),
  13907. v = Y(t, 'onRoundStart', c);
  13908. if (v === !1) return !1;
  13909. (n.lineIndex = l),
  13910. (n.controlIndex = u),
  13911. (n.isControl = o),
  13912. (n.isLine = s),
  13913. Pr(t, r);
  13914. var p = t.props,
  13915. d = p.roundRelative,
  13916. g = p.minRoundControls,
  13917. h = g === void 0 ? [0, 0] : g,
  13918. A = t.state,
  13919. m = A.width,
  13920. E = A.height;
  13921. (n.isRound = !0), (n.prevDist = [0, 0]);
  13922. var y = Ki(t),
  13923. b = Xi(y || '', m, E, h, !0) || [];
  13924. return (
  13925. (n.controlPoses = b),
  13926. (A.borderRadiusState = Qa(b, d, m, E).styles.join(' ')),
  13927. c
  13928. );
  13929. },
  13930. dragControl: function (t, r) {
  13931. var e = r.datas,
  13932. n = e.controlPoses;
  13933. if (!e.isRound || !e.isControl || !n.length) return !1;
  13934. var a = e.controlIndex,
  13935. i = B(ir(r), 2),
  13936. o = i[0],
  13937. s = i[1],
  13938. u = [o, s],
  13939. l = tt(u, e.prevDist),
  13940. f = t.props.maxRoundControls,
  13941. c = f === void 0 ? [4, 4] : f,
  13942. v = t.state,
  13943. p = v.width,
  13944. d = v.height,
  13945. g = n[a],
  13946. h = g.vertical,
  13947. A = g.horizontal,
  13948. m = n.map(function (y) {
  13949. var b = y.horizontal,
  13950. C = y.vertical,
  13951. S = [b * A * u[0], C * h * u[1]];
  13952. if (b) {
  13953. if (c[0] === 1) return S;
  13954. if (c[0] < 4 && b !== A) return S;
  13955. } else {
  13956. if (c[1] === 0) return (S[1] = ((C * A * u[0]) / p) * d), S;
  13957. if (h) {
  13958. if (c[1] === 1) return S;
  13959. if (c[1] < 4 && C !== h) return S;
  13960. }
  13961. }
  13962. return [0, 0];
  13963. });
  13964. m[a] = u;
  13965. var E = n.map(function (y, b) {
  13966. return R(R({}, y), { pos: ft(y.pos, m[b]) });
  13967. });
  13968. return (
  13969. a < 4
  13970. ? E.slice(0, a + 1).forEach(function (y) {
  13971. y.virtual = !1;
  13972. })
  13973. : E.slice(4, a + 1).forEach(function (y) {
  13974. y.virtual = !1;
  13975. }),
  13976. (e.prevDist = [o, s]),
  13977. qi(t, r, u, l, E)
  13978. );
  13979. },
  13980. dragControlEnd: function (t, r) {
  13981. var e = t.state;
  13982. e.borderRadiusState = '';
  13983. var n = r.datas,
  13984. a = r.isDouble;
  13985. if (!n.isRound) return !1;
  13986. var i = n.isControl,
  13987. o = n.controlIndex,
  13988. s = n.isLine,
  13989. u = n.lineIndex,
  13990. l = n.controlPoses,
  13991. f = l.filter(function (A) {
  13992. var m = A.virtual;
  13993. return m;
  13994. }).length,
  13995. c = t.props.roundClickable,
  13996. v = c === void 0 ? !0 : c;
  13997. if (a && v) {
  13998. if (i && (v === !0 || v === 'control')) Bd(l, o);
  13999. else if (s && (v === !0 || v === 'line')) {
  14000. var p = B(Xo(t, r), 2),
  14001. d = p[0],
  14002. g = p[1];
  14003. wd(l, u, d, g);
  14004. }
  14005. f !==
  14006. l.filter(function (A) {
  14007. var m = A.virtual;
  14008. return m;
  14009. }).length && qi(t, r, [0, 0], [0, 0], l);
  14010. }
  14011. var h = Qt(t, r, {});
  14012. return Y(t, 'onRoundEnd', h), (e.borderRadiusState = ''), h;
  14013. },
  14014. dragGroupControlStart: function (t, r) {
  14015. var e = this.dragControlStart(t, r);
  14016. if (!e) return !1;
  14017. var n = t.moveables,
  14018. a = t.props.targets,
  14019. i = $t(t, 'roundable', r),
  14020. o = R(
  14021. {
  14022. targets: t.props.targets,
  14023. events: i.map(function (s, u) {
  14024. return R(R({}, s), {
  14025. target: a[u],
  14026. moveable: n[u],
  14027. currentTarget: n[u]
  14028. });
  14029. })
  14030. },
  14031. e
  14032. );
  14033. return Y(t, 'onRoundGroupStart', o), e;
  14034. },
  14035. dragGroupControl: function (t, r) {
  14036. var e = this.dragControl(t, r);
  14037. if (!e) return !1;
  14038. var n = t.moveables,
  14039. a = t.props.targets,
  14040. i = $t(t, 'roundable', r),
  14041. o = R(
  14042. {
  14043. targets: t.props.targets,
  14044. events: i.map(function (s, u) {
  14045. return R(
  14046. R(R({}, s), {
  14047. target: a[u],
  14048. moveable: n[u],
  14049. currentTarget: n[u]
  14050. }),
  14051. Lt({ borderRadius: e.borderRadius }, s)
  14052. );
  14053. })
  14054. },
  14055. e
  14056. );
  14057. return Y(t, 'onRoundGroup', o), o;
  14058. },
  14059. dragGroupControlEnd: function (t, r) {
  14060. var e = t.moveables,
  14061. n = t.props.targets,
  14062. a = $t(t, 'roundable', r);
  14063. hn(t, 'onRound', function (s) {
  14064. var u = R(
  14065. {
  14066. targets: t.props.targets,
  14067. events: a.map(function (l, f) {
  14068. return R(
  14069. R(R({}, l), {
  14070. target: n[f],
  14071. moveable: e[f],
  14072. currentTarget: e[f]
  14073. }),
  14074. Lt({ borderRadius: s.borderRadius }, l)
  14075. );
  14076. })
  14077. },
  14078. s
  14079. );
  14080. Y(t, 'onRoundGroup', u);
  14081. });
  14082. var i = this.dragControlEnd(t, r);
  14083. if (!i) return !1;
  14084. var o = R(
  14085. {
  14086. targets: t.props.targets,
  14087. events: a.map(function (s, u) {
  14088. var l;
  14089. return R(R({}, s), {
  14090. target: n[u],
  14091. moveable: e[u],
  14092. currentTarget: e[u],
  14093. lastEvent:
  14094. (l = s.datas) === null || l === void 0 ? void 0 : l.lastEvent
  14095. });
  14096. })
  14097. },
  14098. i
  14099. );
  14100. return Y(t, 'onRoundGroupEnd', o), o;
  14101. },
  14102. unset: function (t) {
  14103. t.state.borderRadiusState = '';
  14104. }
  14105. };
  14106. function Id(t, r) {
  14107. var e = r ? 4 : 3,
  14108. n = St(e),
  14109. a = 'matrix'.concat(r ? '3d' : '', '(').concat(n.join(','), ')');
  14110. return t === a || t === 'matrix(1,0,0,1,0,0)';
  14111. }
  14112. var Vs = {
  14113. isPinch: !0,
  14114. name: 'beforeRenderable',
  14115. props: [],
  14116. events: [
  14117. 'beforeRenderStart',
  14118. 'beforeRender',
  14119. 'beforeRenderEnd',
  14120. 'beforeRenderGroupStart',
  14121. 'beforeRenderGroup',
  14122. 'beforeRenderGroupEnd'
  14123. ],
  14124. dragRelation: 'weak',
  14125. setTransform: function (t, r) {
  14126. var e = t.state,
  14127. n = e.is3d,
  14128. a = e.targetMatrix,
  14129. i = e.inlineTransform,
  14130. o = n
  14131. ? 'matrix3d('.concat(a.join(','), ')')
  14132. : 'matrix('.concat(Po(a, !0), ')'),
  14133. s = !i || i === 'none' ? o : i;
  14134. r.datas.startTransforms = Id(s, n) ? [] : Ar(s);
  14135. },
  14136. resetStyle: function (t) {
  14137. var r = t.datas;
  14138. (r.nextStyle = {}),
  14139. (r.nextTransforms = t.datas.startTransforms),
  14140. (r.nextTransformAppendedIndexes = []);
  14141. },
  14142. fillDragStartParams: function (t, r) {
  14143. return ot(t, r, {
  14144. setTransform: function (e) {
  14145. r.datas.startTransforms = Rt(e) ? e : Ar(e);
  14146. },
  14147. isPinch: !!r.isPinch
  14148. });
  14149. },
  14150. fillDragParams: function (t, r) {
  14151. return ot(t, r, { isPinch: !!r.isPinch });
  14152. },
  14153. dragStart: function (t, r) {
  14154. this.setTransform(t, r),
  14155. this.resetStyle(r),
  14156. Y(t, 'onBeforeRenderStart', this.fillDragStartParams(t, r));
  14157. },
  14158. drag: function (t, r) {
  14159. r.datas.startTransforms || this.setTransform(t, r),
  14160. this.resetStyle(r),
  14161. Y(t, 'onBeforeRender', ot(t, r, { isPinch: !!r.isPinch }));
  14162. },
  14163. dragEnd: function (t, r) {
  14164. r.datas.startTransforms || (this.setTransform(t, r), this.resetStyle(r)),
  14165. Y(
  14166. t,
  14167. 'onBeforeRenderEnd',
  14168. ot(t, r, { isPinch: !!r.isPinch, isDrag: r.isDrag })
  14169. );
  14170. },
  14171. dragGroupStart: function (t, r) {
  14172. var e = this;
  14173. this.dragStart(t, r);
  14174. var n = $t(t, 'beforeRenderable', r),
  14175. a = t.moveables,
  14176. i = n.map(function (o, s) {
  14177. var u = a[s];
  14178. return (
  14179. e.setTransform(u, o), e.resetStyle(o), e.fillDragStartParams(u, o)
  14180. );
  14181. });
  14182. Y(
  14183. t,
  14184. 'onBeforeRenderGroupStart',
  14185. ot(t, r, {
  14186. isPinch: !!r.isPinch,
  14187. targets: t.props.targets,
  14188. setTransform: function () {},
  14189. events: i
  14190. })
  14191. );
  14192. },
  14193. dragGroup: function (t, r) {
  14194. var e = this;
  14195. this.drag(t, r);
  14196. var n = $t(t, 'beforeRenderable', r),
  14197. a = t.moveables,
  14198. i = n.map(function (o, s) {
  14199. var u = a[s];
  14200. return e.resetStyle(o), e.fillDragParams(u, o);
  14201. });
  14202. Y(
  14203. t,
  14204. 'onBeforeRenderGroup',
  14205. ot(t, r, { isPinch: !!r.isPinch, targets: t.props.targets, events: i })
  14206. );
  14207. },
  14208. dragGroupEnd: function (t, r) {
  14209. this.dragEnd(t, r),
  14210. Y(
  14211. t,
  14212. 'onBeforeRenderGroupEnd',
  14213. ot(t, r, {
  14214. isPinch: !!r.isPinch,
  14215. isDrag: r.isDrag,
  14216. targets: t.props.targets
  14217. })
  14218. );
  14219. },
  14220. dragControlStart: function (t, r) {
  14221. return this.dragStart(t, r);
  14222. },
  14223. dragControl: function (t, r) {
  14224. return this.drag(t, r);
  14225. },
  14226. dragControlEnd: function (t, r) {
  14227. return this.dragEnd(t, r);
  14228. },
  14229. dragGroupControlStart: function (t, r) {
  14230. return this.dragGroupStart(t, r);
  14231. },
  14232. dragGroupControl: function (t, r) {
  14233. return this.dragGroup(t, r);
  14234. },
  14235. dragGroupControlEnd: function (t, r) {
  14236. return this.dragGroupEnd(t, r);
  14237. }
  14238. },
  14239. Ws = {
  14240. name: 'renderable',
  14241. props: [],
  14242. events: [
  14243. 'renderStart',
  14244. 'render',
  14245. 'renderEnd',
  14246. 'renderGroupStart',
  14247. 'renderGroup',
  14248. 'renderGroupEnd'
  14249. ],
  14250. dragRelation: 'weak',
  14251. dragStart: function (t, r) {
  14252. Y(t, 'onRenderStart', ot(t, r, { isPinch: !!r.isPinch }));
  14253. },
  14254. drag: function (t, r) {
  14255. Y(t, 'onRender', this.fillDragParams(t, r));
  14256. },
  14257. dragAfter: function (t, r) {
  14258. return this.drag(t, r);
  14259. },
  14260. dragEnd: function (t, r) {
  14261. Y(t, 'onRenderEnd', this.fillDragEndParams(t, r));
  14262. },
  14263. dragGroupStart: function (t, r) {
  14264. Y(
  14265. t,
  14266. 'onRenderGroupStart',
  14267. ot(t, r, { isPinch: !!r.isPinch, targets: t.props.targets })
  14268. );
  14269. },
  14270. dragGroup: function (t, r) {
  14271. var e = this,
  14272. n = $t(t, 'beforeRenderable', r),
  14273. a = t.moveables,
  14274. i = n.map(function (o, s) {
  14275. var u = a[s];
  14276. return e.fillDragParams(u, o);
  14277. });
  14278. Y(
  14279. t,
  14280. 'onRenderGroup',
  14281. ot(
  14282. t,
  14283. r,
  14284. R(
  14285. R(
  14286. {
  14287. isPinch: !!r.isPinch,
  14288. targets: t.props.targets,
  14289. transform: Te(r),
  14290. transformObject: {}
  14291. },
  14292. Lt(Oe(r))
  14293. ),
  14294. { events: i }
  14295. )
  14296. )
  14297. );
  14298. },
  14299. dragGroupEnd: function (t, r) {
  14300. var e = this,
  14301. n = $t(t, 'beforeRenderable', r),
  14302. a = t.moveables,
  14303. i = n.map(function (o, s) {
  14304. var u = a[s];
  14305. return e.fillDragEndParams(u, o);
  14306. });
  14307. Y(
  14308. t,
  14309. 'onRenderGroupEnd',
  14310. ot(
  14311. t,
  14312. r,
  14313. R(
  14314. {
  14315. isPinch: !!r.isPinch,
  14316. isDrag: r.isDrag,
  14317. targets: t.props.targets,
  14318. events: i,
  14319. transformObject: {},
  14320. transform: Te(r)
  14321. },
  14322. Lt(Oe(r))
  14323. )
  14324. )
  14325. );
  14326. },
  14327. dragControlStart: function (t, r) {
  14328. return this.dragStart(t, r);
  14329. },
  14330. dragControl: function (t, r) {
  14331. return this.drag(t, r);
  14332. },
  14333. dragControlAfter: function (t, r) {
  14334. return this.dragAfter(t, r);
  14335. },
  14336. dragControlEnd: function (t, r) {
  14337. return this.dragEnd(t, r);
  14338. },
  14339. dragGroupControlStart: function (t, r) {
  14340. return this.dragGroupStart(t, r);
  14341. },
  14342. dragGroupControl: function (t, r) {
  14343. return this.dragGroup(t, r);
  14344. },
  14345. dragGroupControlEnd: function (t, r) {
  14346. return this.dragGroupEnd(t, r);
  14347. },
  14348. fillDragParams: function (t, r) {
  14349. var e = {};
  14350. return (
  14351. Vr(qe(r) || []).forEach(function (n) {
  14352. e[n.name] = n.functionValue;
  14353. }),
  14354. ot(
  14355. t,
  14356. r,
  14357. R(
  14358. { isPinch: !!r.isPinch, transformObject: e, transform: Te(r) },
  14359. Lt(Oe(r))
  14360. )
  14361. )
  14362. );
  14363. },
  14364. fillDragEndParams: function (t, r) {
  14365. var e = {};
  14366. return (
  14367. Vr(qe(r) || []).forEach(function (n) {
  14368. e[n.name] = n.functionValue;
  14369. }),
  14370. ot(
  14371. t,
  14372. r,
  14373. R(
  14374. {
  14375. isPinch: !!r.isPinch,
  14376. isDrag: r.isDrag,
  14377. transformObject: e,
  14378. transform: Te(r)
  14379. },
  14380. Lt(Oe(r))
  14381. )
  14382. )
  14383. );
  14384. }
  14385. };
  14386. function le(t, r, e, n, a, i, o) {
  14387. (i.clientDistX = i.distX), (i.clientDistY = i.distY);
  14388. var s = a === 'Start',
  14389. u = a === 'End',
  14390. l = a === 'After',
  14391. f = t.state.target,
  14392. c = i.isRequest,
  14393. v = n.indexOf('Control') > -1;
  14394. if (!f || (s && v && !c && t.areaElement === i.inputEvent.target)) return !1;
  14395. var p = U([], B(t[r]), !1);
  14396. if (c) {
  14397. var d = i.requestAble;
  14398. p.some(function (I) {
  14399. return I.name === d;
  14400. }) ||
  14401. p.push.apply(
  14402. p,
  14403. U(
  14404. [],
  14405. B(
  14406. t.props.ables.filter(function (I) {
  14407. return I.name === d;
  14408. })
  14409. ),
  14410. !1
  14411. )
  14412. );
  14413. }
  14414. if (
  14415. !p.length ||
  14416. p.every(function (I) {
  14417. return I.dragRelation;
  14418. })
  14419. )
  14420. return !1;
  14421. var g = i.inputEvent,
  14422. h;
  14423. u && g && (h = document.elementFromPoint(i.clientX, i.clientY) || g.target);
  14424. var A = !1,
  14425. m = function () {
  14426. var I;
  14427. (A = !0), (I = i.stop) === null || I === void 0 || I.call(i);
  14428. },
  14429. E =
  14430. s &&
  14431. (!t.targetGesto ||
  14432. !t.controlGesto ||
  14433. !t.targetGesto.isFlag() ||
  14434. !t.controlGesto.isFlag());
  14435. E && t.updateRect(a, !0, !1);
  14436. var y = i.datas,
  14437. b = v ? 'controlGesto' : 'targetGesto',
  14438. C = t[b],
  14439. S = function (I, M, O) {
  14440. if (!(M in I) || C !== t[b]) return !1;
  14441. var P = I.name,
  14442. z = y[P] || (y[P] = {});
  14443. if ((s && (z.isEventStart = !O || !I[O] || I[O](t, i)), !z.isEventStart))
  14444. return !1;
  14445. var H = I[M](
  14446. t,
  14447. R(R({}, i), { stop: m, datas: z, originalDatas: y, inputTarget: h })
  14448. );
  14449. return t._emitter.off(), s && H === !1 && (z.isEventStart = !1), H;
  14450. };
  14451. E &&
  14452. p.forEach(function (I) {
  14453. I.unset && I.unset(t);
  14454. }),
  14455. S(Vs, 'drag'.concat(n).concat(a));
  14456. var D = 0,
  14457. x = 0;
  14458. e.forEach(function (I) {
  14459. if (A) return !1;
  14460. var M = ''.concat(I).concat(n).concat(a),
  14461. O = ''.concat(I).concat(n, 'Condition');
  14462. a === '' && !c && Ts(t.state, i);
  14463. var P = p.filter(function (G) {
  14464. return G[M];
  14465. });
  14466. P = P.filter(function (G, L) {
  14467. return G.name && P.indexOf(G) === L;
  14468. });
  14469. var z = P.filter(function (G) {
  14470. return S(G, M, O);
  14471. }),
  14472. H = z.length;
  14473. A && ++D,
  14474. H && ++x,
  14475. !A &&
  14476. s &&
  14477. P.length &&
  14478. !H &&
  14479. (D += P.filter(function (G) {
  14480. var L = G.name,
  14481. V = y[L];
  14482. return V.isEventStart ? G.dragRelation !== 'strong' : !1;
  14483. }).length
  14484. ? 1
  14485. : 0);
  14486. }),
  14487. (!l || x) && S(Ws, 'drag'.concat(n).concat(a));
  14488. var w = C !== t[b] || D === e.length;
  14489. if (
  14490. ((u || A || w) &&
  14491. ((t.state.gestos = {}),
  14492. t.moveables &&
  14493. t.moveables.forEach(function (I) {
  14494. I.state.gestos = {};
  14495. }),
  14496. p.forEach(function (I) {
  14497. I.unset && I.unset(t);
  14498. })),
  14499. s &&
  14500. !w &&
  14501. !c &&
  14502. x &&
  14503. t.props.preventDefault &&
  14504. (i == null || i.preventDefault()),
  14505. t.isUnmounted || w)
  14506. )
  14507. return !1;
  14508. if ((!s && x && !o) || u) {
  14509. var T = t.props.flushSync || Ss;
  14510. T(function () {
  14511. t.updateRect(u ? a : '', !0, !1), t.forceUpdate();
  14512. });
  14513. }
  14514. return !s && !u && !l && x && !o && le(t, r, e, n, a + 'After', i), !0;
  14515. }
  14516. function ua(t) {
  14517. return function (r) {
  14518. var e,
  14519. n = r.inputEvent.target,
  14520. a = t.areaElement,
  14521. i = t._dragTarget;
  14522. return !i ||
  14523. (!((e = t.controlGesto) === null || e === void 0) && e.isFlag())
  14524. ? !1
  14525. : n === i ||
  14526. i.contains(n) ||
  14527. n === a ||
  14528. (!t.isMoveableElement(n) && !t.controlBox.contains(n)) ||
  14529. Tt(n, 'moveable-area') ||
  14530. Tt(n, 'moveable-padding') ||
  14531. Tt(n, 'moveable-edgeDraggable');
  14532. };
  14533. }
  14534. function Ys(t, r, e) {
  14535. var n = t.controlBox,
  14536. a = [],
  14537. i = t.props.dragTarget;
  14538. return (
  14539. a.push(n),
  14540. (!t.props.dragArea || i) && a.push(r),
  14541. qa(t, a, 'targetAbles', e, { dragStart: ua(t), pinchStart: ua(t) })
  14542. );
  14543. }
  14544. function qa(t, r, e, n, a) {
  14545. a === void 0 && (a = {});
  14546. var i = e === 'targetAbles',
  14547. o = t.props,
  14548. s = o.pinchOutside,
  14549. u = o.pinchThreshold,
  14550. l = o.preventClickEventOnDrag,
  14551. f = o.preventClickDefault,
  14552. c = o.checkInput,
  14553. v = o.dragFocusedInput,
  14554. p = o.preventDefault,
  14555. d = p === void 0 ? !0 : p,
  14556. g = o.dragContainer,
  14557. h = nr(g, !0),
  14558. A = {
  14559. preventDefault: d,
  14560. preventRightClick: !0,
  14561. preventWheelClick: !0,
  14562. container: h || hr(t.getControlBoxElement()),
  14563. pinchThreshold: u,
  14564. pinchOutside: s,
  14565. preventClickEventOnDrag: i ? l : !1,
  14566. preventClickEventOnDragStart: i ? f : !1,
  14567. preventClickEventByCondition: i
  14568. ? null
  14569. : function (y) {
  14570. return t.controlBox.contains(y.target);
  14571. },
  14572. checkInput: i ? c : !1,
  14573. dragFocusedInput: v
  14574. },
  14575. m = new iv(r, A),
  14576. E = n === 'Control';
  14577. return (
  14578. ['drag', 'pinch'].forEach(function (y) {
  14579. ['Start', '', 'End'].forEach(function (b) {
  14580. m.on(''.concat(y).concat(b), function (C) {
  14581. var S,
  14582. D = C.eventType,
  14583. x = y === 'drag' && C.isPinch;
  14584. if (a[D] && !a[D](C)) {
  14585. C.stop();
  14586. return;
  14587. }
  14588. if (!x) {
  14589. var w = y === 'drag' ? [y] : ['drag', y],
  14590. T = le(t, e, w, n, b, C);
  14591. T
  14592. ? (t.props.stopPropagation || (b === 'Start' && E)) &&
  14593. ((S = C == null ? void 0 : C.inputEvent) === null ||
  14594. S === void 0 ||
  14595. S.stopPropagation())
  14596. : C.stop();
  14597. }
  14598. });
  14599. });
  14600. }),
  14601. m
  14602. );
  14603. }
  14604. var Td = (function () {
  14605. function t(r, e, n) {
  14606. var a = this;
  14607. (this.target = r),
  14608. (this.moveable = e),
  14609. (this.eventName = n),
  14610. (this.ables = []),
  14611. (this._onEvent = function (i) {
  14612. var o = a.eventName,
  14613. s = a.moveable;
  14614. s.state.disableNativeEvent ||
  14615. a.ables.forEach(function (u) {
  14616. u[o](s, { inputEvent: i });
  14617. });
  14618. }),
  14619. r.addEventListener(n.toLowerCase(), this._onEvent);
  14620. }
  14621. return (
  14622. (t.prototype.setAbles = function (r) {
  14623. this.ables = r;
  14624. }),
  14625. (t.prototype.destroy = function () {
  14626. this.target.removeEventListener(
  14627. this.eventName.toLowerCase(),
  14628. this._onEvent
  14629. ),
  14630. (this.target = null),
  14631. (this.moveable = null);
  14632. }),
  14633. t
  14634. );
  14635. })();
  14636. function Od(t, r, e, n) {
  14637. var a;
  14638. e === void 0 && (e = r);
  14639. var i = _o(t, r),
  14640. o = i.matrixes,
  14641. s = i.is3d,
  14642. u = i.targetMatrix,
  14643. l = i.transformOrigin,
  14644. f = i.targetOrigin,
  14645. c = i.offsetContainer,
  14646. v = i.hasFixed,
  14647. p = i.zoom,
  14648. d = qv(c, e),
  14649. g = d.matrixes,
  14650. h = d.is3d,
  14651. A = d.offsetContainer,
  14652. m = d.zoom,
  14653. E = n || h || s,
  14654. y = E ? 4 : 3,
  14655. b = t.tagName.toLowerCase() !== 'svg' && 'ownerSVGElement' in t,
  14656. C = u,
  14657. S = St(y),
  14658. D = St(y),
  14659. x = St(y),
  14660. w = St(y),
  14661. T = o.length,
  14662. I = g
  14663. .map(function (L) {
  14664. return R(R({}, L), {
  14665. matrix: L.matrix ? U([], B(L.matrix), !1) : void 0
  14666. });
  14667. })
  14668. .reverse();
  14669. o.reverse(),
  14670. !s && E && ((C = rr(C, 3, 4)), aa(o)),
  14671. !h && E && aa(I),
  14672. I.forEach(function (L) {
  14673. D = ht(D, L.matrix, y);
  14674. });
  14675. var M = e || Cr(t),
  14676. O =
  14677. ((a = I[0]) === null || a === void 0 ? void 0 : a.target) ||
  14678. pe(M, M, !0).offsetParent,
  14679. P = I.slice(1).reduce(function (L, V) {
  14680. return ht(L, V.matrix, y);
  14681. }, St(y));
  14682. o.forEach(function (L, V) {
  14683. if (
  14684. (T - 2 === V && (x = S.slice()),
  14685. T - 1 === V && (w = S.slice()),
  14686. !L.matrix)
  14687. ) {
  14688. var F = o[V + 1],
  14689. Q = Jp(L, F, O, y, ht(P, S, y));
  14690. L.matrix = Ir(Q, y);
  14691. }
  14692. S = ht(S, L.matrix, y);
  14693. });
  14694. var z = !b && s;
  14695. C || (C = St(z ? 4 : 3));
  14696. var H = gn(b && C.length === 16 ? rr(C, 4, 3) : C, z),
  14697. G = D;
  14698. return (
  14699. (D = To(D, y, y)),
  14700. {
  14701. hasZoom: p !== 1 || m !== 1,
  14702. hasFixed: v,
  14703. matrixes: o,
  14704. rootMatrix: D,
  14705. originalRootMatrix: G,
  14706. beforeMatrix: x,
  14707. offsetMatrix: w,
  14708. allMatrix: S,
  14709. targetMatrix: C,
  14710. targetTransform: H,
  14711. inlineTransform: t.style.transform,
  14712. transformOrigin: l,
  14713. targetOrigin: f,
  14714. is3d: E,
  14715. offsetContainer: c,
  14716. offsetRootContainer: A
  14717. }
  14718. );
  14719. }
  14720. function Pd(t, r, e, n) {
  14721. e === void 0 && (e = r);
  14722. var a = 0,
  14723. i = 0,
  14724. o = 0,
  14725. s = {},
  14726. u = Ds(t);
  14727. if ((t && ((a = u.offsetWidth), (i = u.offsetHeight)), t)) {
  14728. var l = Od(t, r, e, n),
  14729. f = Lr(l.allMatrix, l.transformOrigin, a, i);
  14730. s = R(R({}, l), f);
  14731. var c = Lr(l.allMatrix, [50, 50], 100, 100);
  14732. o = bs([c.pos1, c.pos2], c.direction);
  14733. }
  14734. var v = n ? 4 : 3;
  14735. return R(
  14736. R(R({ hasZoom: !1, width: a, height: i, rotation: o }, u), {
  14737. originalRootMatrix: St(v),
  14738. rootMatrix: St(v),
  14739. beforeMatrix: St(v),
  14740. offsetMatrix: St(v),
  14741. allMatrix: St(v),
  14742. targetMatrix: St(v),
  14743. targetTransform: '',
  14744. inlineTransform: '',
  14745. transformOrigin: [0, 0],
  14746. targetOrigin: [0, 0],
  14747. is3d: !!n,
  14748. left: 0,
  14749. top: 0,
  14750. right: 0,
  14751. bottom: 0,
  14752. origin: [0, 0],
  14753. pos1: [0, 0],
  14754. pos2: [0, 0],
  14755. pos3: [0, 0],
  14756. pos4: [0, 0],
  14757. direction: 1,
  14758. hasFixed: !1,
  14759. offsetContainer: null,
  14760. offsetRootContainer: null,
  14761. matrixes: []
  14762. }),
  14763. s
  14764. );
  14765. }
  14766. function la(t, r, e, n, a, i) {
  14767. i === void 0 && (i = []);
  14768. var o = 1,
  14769. s = [0, 0],
  14770. u = ke(),
  14771. l = ke(),
  14772. f = ke(),
  14773. c = ke(),
  14774. v = [0, 0],
  14775. p = {},
  14776. d = Pd(r, e, a, !0);
  14777. if (r) {
  14778. var g = Yt(r);
  14779. i.forEach(function (I) {
  14780. p[I] = g(I);
  14781. });
  14782. var h = d.is3d ? 4 : 3,
  14783. A = Lr(
  14784. d.offsetMatrix,
  14785. ft(d.transformOrigin, Oo(d.targetMatrix, h)),
  14786. d.width,
  14787. d.height
  14788. );
  14789. (o = A.direction),
  14790. (s = ft(A.origin, [A.left - d.left, A.top - d.top])),
  14791. (c = ue(d.offsetRootContainer));
  14792. var m = pe(n, n, !0).offsetParent || d.offsetRootContainer;
  14793. if (d.hasZoom) {
  14794. var E = Lr(
  14795. ht(d.originalRootMatrix, d.allMatrix),
  14796. d.transformOrigin,
  14797. d.width,
  14798. d.height
  14799. ),
  14800. y = Lr(
  14801. d.originalRootMatrix,
  14802. Ze(Yt(m)('transformOrigin')).map(function (I) {
  14803. return parseFloat(I);
  14804. }),
  14805. m.offsetWidth,
  14806. m.offsetHeight
  14807. );
  14808. if (((u = On(E, c)), (f = On(y, c, m, !0)), t)) {
  14809. var b = E.left,
  14810. C = E.top;
  14811. l = On({ left: b, top: C, bottom: C, right: C }, c);
  14812. }
  14813. } else {
  14814. (u = ue(r)), (f = Xv(m)), t && (l = ue(t));
  14815. var S = f.left,
  14816. D = f.top,
  14817. x = f.clientLeft,
  14818. w = f.clientTop,
  14819. T = [u.left - S, u.top - D];
  14820. v = tt(Xr(d.rootMatrix, T, 4), [x + d.left, w + d.top]);
  14821. }
  14822. }
  14823. return R(
  14824. {
  14825. targetClientRect: u,
  14826. containerClientRect: f,
  14827. moveableClientRect: l,
  14828. rootContainerClientRect: c,
  14829. beforeDirection: o,
  14830. beforeOrigin: s,
  14831. originalBeforeOrigin: s,
  14832. target: r,
  14833. style: p,
  14834. offsetDelta: v
  14835. },
  14836. d
  14837. );
  14838. }
  14839. function Ji(t) {
  14840. var r = t.pos1,
  14841. e = t.pos2,
  14842. n = t.pos3,
  14843. a = t.pos4;
  14844. if (!r || !e || !n || !a) return null;
  14845. var i = Tr([r, e, n, a]),
  14846. o = [i.minX, i.minY],
  14847. s = tt(t.origin, o);
  14848. return (
  14849. (r = tt(r, o)),
  14850. (e = tt(e, o)),
  14851. (n = tt(n, o)),
  14852. (a = tt(a, o)),
  14853. R(R({}, t), {
  14854. left: t.left,
  14855. top: t.top,
  14856. posDelta: o,
  14857. pos1: r,
  14858. pos2: e,
  14859. pos3: n,
  14860. pos4: a,
  14861. origin: s,
  14862. beforeOrigin: s,
  14863. isPersisted: !0
  14864. })
  14865. );
  14866. }
  14867. var qr = (function (t) {
  14868. Ee(r, t);
  14869. function r() {
  14870. var e = (t !== null && t.apply(this, arguments)) || this;
  14871. return (
  14872. (e.state = R(
  14873. {
  14874. container: null,
  14875. gestos: {},
  14876. renderPoses: [
  14877. [0, 0],
  14878. [0, 0],
  14879. [0, 0],
  14880. [0, 0]
  14881. ],
  14882. disableNativeEvent: !1,
  14883. posDelta: [0, 0]
  14884. },
  14885. la(null)
  14886. )),
  14887. (e.renderState = {}),
  14888. (e.enabledAbles = []),
  14889. (e.targetAbles = []),
  14890. (e.controlAbles = []),
  14891. (e.rotation = 0),
  14892. (e.scale = [1, 1]),
  14893. (e.isMoveableMounted = !1),
  14894. (e.isUnmounted = !1),
  14895. (e.events = { mouseEnter: null, mouseLeave: null }),
  14896. (e._emitter = new sn()),
  14897. (e._prevOriginalDragTarget = null),
  14898. (e._originalDragTarget = null),
  14899. (e._prevDragTarget = null),
  14900. (e._dragTarget = null),
  14901. (e._prevDragArea = !1),
  14902. (e._isPropTargetChanged = !1),
  14903. (e._hasFirstTarget = !1),
  14904. (e._reiszeObserver = null),
  14905. (e._observerId = 0),
  14906. (e._mutationObserver = null),
  14907. (e._rootContainer = null),
  14908. (e._viewContainer = null),
  14909. (e._viewClassNames = []),
  14910. (e._store = {}),
  14911. (e.checkUpdateRect = function () {
  14912. if (!e.isDragging()) {
  14913. var n = e.props.parentMoveable;
  14914. if (n) {
  14915. n.checkUpdateRect();
  14916. return;
  14917. }
  14918. Xf(e._observerId),
  14919. (e._observerId = oo(function () {
  14920. e.isDragging() || e.updateRect();
  14921. }));
  14922. }
  14923. }),
  14924. (e._onPreventClick = function (n) {
  14925. n.stopPropagation(), n.preventDefault();
  14926. }),
  14927. e
  14928. );
  14929. }
  14930. return (
  14931. (r.prototype.render = function () {
  14932. var e = this.props,
  14933. n = this.getState(),
  14934. a = e.parentPosition,
  14935. i = e.className,
  14936. o = e.target,
  14937. s = e.zoom,
  14938. u = e.cspNonce,
  14939. l = e.translateZ,
  14940. f = e.cssStyled,
  14941. c = e.groupable,
  14942. v = e.linePadding,
  14943. p = e.controlPadding;
  14944. this._checkUpdateRootContainer(),
  14945. this.checkUpdate(),
  14946. this.updateRenderPoses();
  14947. var d = B(a || [0, 0], 2),
  14948. g = d[0],
  14949. h = d[1],
  14950. A = n.left,
  14951. m = n.top,
  14952. E = n.target,
  14953. y = n.direction,
  14954. b = n.hasFixed,
  14955. C = n.offsetDelta,
  14956. S = e.targets,
  14957. D = this.isDragging(),
  14958. x = {};
  14959. this.getEnabledAbles().forEach(function (P) {
  14960. x['data-able-'.concat(P.name.toLowerCase())] = !0;
  14961. });
  14962. var w = this._getAbleClassName(),
  14963. T =
  14964. (S && S.length && (E || c)) ||
  14965. o ||
  14966. (!this._hasFirstTarget && this.state.isPersisted),
  14967. I =
  14968. this.controlBox ||
  14969. this.props.firstRenderState ||
  14970. this.props.persistData,
  14971. M = [A - g, m - h];
  14972. !c && e.useAccuratePosition && ((M[0] += C[0]), (M[1] += C[1]));
  14973. var O = {
  14974. position: b ? 'fixed' : 'absolute',
  14975. display: T ? 'block' : 'none',
  14976. visibility: I ? 'visible' : 'hidden',
  14977. transform: 'translate3d('
  14978. .concat(M[0], 'px, ')
  14979. .concat(M[1], 'px, ')
  14980. .concat(l, ')'),
  14981. '--zoom': s,
  14982. '--zoompx': ''.concat(s, 'px')
  14983. };
  14984. return (
  14985. v && (O['--moveable-line-padding'] = v),
  14986. p && (O['--moveable-control-padding'] = p),
  14987. _t(
  14988. f,
  14989. R(
  14990. {
  14991. cspNonce: u,
  14992. ref: or(this, 'controlBox'),
  14993. className: ''
  14994. .concat(
  14995. $(
  14996. 'control-box',
  14997. y === -1 ? 'reverse' : '',
  14998. D ? 'dragging' : ''
  14999. ),
  15000. ' '
  15001. )
  15002. .concat(w, ' ')
  15003. .concat(i)
  15004. },
  15005. x,
  15006. { onClick: this._onPreventClick, style: O }
  15007. ),
  15008. this.renderAbles(),
  15009. this._renderLines()
  15010. )
  15011. );
  15012. }),
  15013. (r.prototype.componentDidMount = function () {
  15014. (this.isMoveableMounted = !0), (this.isUnmounted = !1);
  15015. var e = this.props,
  15016. n = e.parentMoveable,
  15017. a = e.container;
  15018. this._checkUpdateRootContainer(),
  15019. this._checkUpdateViewContainer(),
  15020. this._updateTargets(),
  15021. this._updateNativeEvents(),
  15022. this._updateEvents(),
  15023. this.updateCheckInput(),
  15024. this._updateObserver(this.props),
  15025. !a &&
  15026. !n &&
  15027. !this.state.isPersisted &&
  15028. (this.updateRect('', !1, !1), this.forceUpdate());
  15029. }),
  15030. (r.prototype.componentDidUpdate = function (e) {
  15031. this._checkUpdateRootContainer(),
  15032. this._checkUpdateViewContainer(),
  15033. this._updateNativeEvents(),
  15034. this._updateTargets(),
  15035. this._updateEvents(),
  15036. this.updateCheckInput(),
  15037. this._updateObserver(e);
  15038. }),
  15039. (r.prototype.componentWillUnmount = function () {
  15040. var e, n;
  15041. (this.isMoveableMounted = !1),
  15042. (this.isUnmounted = !0),
  15043. this._emitter.off(),
  15044. (e = this._reiszeObserver) === null || e === void 0 || e.disconnect(),
  15045. (n = this._mutationObserver) === null ||
  15046. n === void 0 ||
  15047. n.disconnect();
  15048. var a = this._viewContainer;
  15049. a && this._changeAbleViewClassNames([]), Hr(this, !1), Hr(this, !0);
  15050. var i = this.events;
  15051. for (var o in i) {
  15052. var s = i[o];
  15053. s && s.destroy();
  15054. }
  15055. }),
  15056. (r.prototype.getTargets = function () {
  15057. var e = this.props.target;
  15058. return e ? [e] : [];
  15059. }),
  15060. (r.prototype.getAble = function (e) {
  15061. var n = this.props.ables || [];
  15062. return Kt(n, function (a) {
  15063. return a.name === e;
  15064. });
  15065. }),
  15066. (r.prototype.getContainer = function () {
  15067. var e = this.props,
  15068. n = e.parentMoveable,
  15069. a = e.wrapperMoveable,
  15070. i = e.container;
  15071. return (
  15072. i ||
  15073. (a && a.getContainer()) ||
  15074. (n && n.getContainer()) ||
  15075. this.controlBox.parentElement
  15076. );
  15077. }),
  15078. (r.prototype.getControlBoxElement = function () {
  15079. return this.controlBox;
  15080. }),
  15081. (r.prototype.isMoveableElement = function (e) {
  15082. var n;
  15083. return (
  15084. e &&
  15085. (
  15086. ((n = e.getAttribute) === null || n === void 0
  15087. ? void 0
  15088. : n.call(e, 'class')) || ''
  15089. ).indexOf(Ba) > -1
  15090. );
  15091. }),
  15092. (r.prototype.dragStart = function (e) {
  15093. var n = this.targetGesto,
  15094. a = this.controlGesto;
  15095. return (
  15096. n && ua(this)({ inputEvent: e })
  15097. ? n.isFlag() || n.triggerDragStart(e)
  15098. : a &&
  15099. this.isMoveableElement(e.target) &&
  15100. (a.isFlag() || a.triggerDragStart(e)),
  15101. this
  15102. );
  15103. }),
  15104. (r.prototype.hitTest = function (e) {
  15105. var n = this.state,
  15106. a = n.target,
  15107. i = n.pos1,
  15108. o = n.pos2,
  15109. s = n.pos3,
  15110. u = n.pos4,
  15111. l = n.targetClientRect;
  15112. if (!a) return 0;
  15113. var f;
  15114. if (jr(e)) {
  15115. var c = e.getBoundingClientRect();
  15116. f = { left: c.left, top: c.top, width: c.width, height: c.height };
  15117. } else f = R({ width: 0, height: 0 }, e);
  15118. var v = f.left,
  15119. p = f.top,
  15120. d = f.width,
  15121. g = f.height,
  15122. h = Si([i, o, u, s], l),
  15123. A = $c(h, [
  15124. [v, p],
  15125. [v + d, p],
  15126. [v + d, p + g],
  15127. [v, p + g]
  15128. ]),
  15129. m = No(h);
  15130. return !A || !m ? 0 : Math.min(100, (A / m) * 100);
  15131. }),
  15132. (r.prototype.isInside = function (e, n) {
  15133. var a = this.state,
  15134. i = a.target,
  15135. o = a.pos1,
  15136. s = a.pos2,
  15137. u = a.pos3,
  15138. l = a.pos4,
  15139. f = a.targetClientRect;
  15140. return i ? Qn([e, n], Si([o, s, l, u], f)) : !1;
  15141. }),
  15142. (r.prototype.updateRect = function (e, n, a) {
  15143. a === void 0 && (a = !0);
  15144. var i = this.props,
  15145. o = !i.parentPosition && !i.wrapperMoveable;
  15146. o && Yr(!0);
  15147. var s = i.parentMoveable,
  15148. u = this.state,
  15149. l = u.target || i.target,
  15150. f = this.getContainer(),
  15151. c = s ? s._rootContainer : this._rootContainer,
  15152. v = la(this.controlBox, l, f, f, c || f, this._getRequestStyles());
  15153. if (!l && this._hasFirstTarget && i.persistData) {
  15154. var p = Ji(i.persistData);
  15155. for (var d in p) v[d] = p[d];
  15156. }
  15157. o && Yr(), this.updateState(v, s ? !1 : a);
  15158. }),
  15159. (r.prototype.isDragging = function (e) {
  15160. var n,
  15161. a,
  15162. i = this.targetGesto,
  15163. o = this.controlGesto;
  15164. if (i != null && i.isFlag()) {
  15165. if (!e) return !0;
  15166. var s = i.getEventData();
  15167. return !!(!((n = s[e]) === null || n === void 0) && n.isEventStart);
  15168. }
  15169. if (o != null && o.isFlag()) {
  15170. if (!e) return !0;
  15171. var s = o.getEventData();
  15172. return !!(!((a = s[e]) === null || a === void 0) && a.isEventStart);
  15173. }
  15174. return !1;
  15175. }),
  15176. (r.prototype.updateTarget = function (e) {
  15177. this.updateRect(e, !0);
  15178. }),
  15179. (r.prototype.getRect = function () {
  15180. var e = this.state,
  15181. n = jt(this.state),
  15182. a = B(n, 4),
  15183. i = a[0],
  15184. o = a[1],
  15185. s = a[2],
  15186. u = a[3],
  15187. l = qt(n),
  15188. f = e.width,
  15189. c = e.height,
  15190. v = l.width,
  15191. p = l.height,
  15192. d = l.left,
  15193. g = l.top,
  15194. h = [e.left, e.top],
  15195. A = ft(h, e.origin),
  15196. m = ft(h, e.beforeOrigin),
  15197. E = e.transformOrigin;
  15198. return {
  15199. width: v,
  15200. height: p,
  15201. left: d,
  15202. top: g,
  15203. pos1: i,
  15204. pos2: o,
  15205. pos3: s,
  15206. pos4: u,
  15207. offsetWidth: f,
  15208. offsetHeight: c,
  15209. beforeOrigin: m,
  15210. origin: A,
  15211. transformOrigin: E,
  15212. rotation: this.getRotation()
  15213. };
  15214. }),
  15215. (r.prototype.getManager = function () {
  15216. return this;
  15217. }),
  15218. (r.prototype.stopDrag = function (e) {
  15219. if (!e || e === 'target') {
  15220. var n = this.targetGesto;
  15221. (n == null ? void 0 : n.isIdle()) === !1 && ia(this, !1),
  15222. n == null || n.stop();
  15223. }
  15224. if (!e || e === 'control') {
  15225. var n = this.controlGesto;
  15226. (n == null ? void 0 : n.isIdle()) === !1 && ia(this, !0),
  15227. n == null || n.stop();
  15228. }
  15229. }),
  15230. (r.prototype.getRotation = function () {
  15231. var e = this.state,
  15232. n = e.pos1,
  15233. a = e.pos2,
  15234. i = e.direction;
  15235. return ed(n, a, i);
  15236. }),
  15237. (r.prototype.request = function (e, n, a) {
  15238. n === void 0 && (n = {});
  15239. var i = this.props,
  15240. o = i.ables,
  15241. s = i.groupable,
  15242. u = o.filter(function (g) {
  15243. return g.name === e;
  15244. })[0];
  15245. if (this.isDragging() || !u || !u.request)
  15246. return {
  15247. request: function () {
  15248. return this;
  15249. },
  15250. requestEnd: function () {
  15251. return this;
  15252. }
  15253. };
  15254. var l = this,
  15255. f = u.request(this),
  15256. c = a || n.isInstant,
  15257. v = f.isControl ? 'controlAbles' : 'targetAbles',
  15258. p = ''.concat(s ? 'Group' : '').concat(f.isControl ? 'Control' : ''),
  15259. d = {
  15260. request: function (g) {
  15261. return (
  15262. le(
  15263. l,
  15264. v,
  15265. ['drag'],
  15266. p,
  15267. '',
  15268. R(R({}, f.request(g)), { requestAble: e, isRequest: !0 }),
  15269. c
  15270. ),
  15271. this
  15272. );
  15273. },
  15274. requestEnd: function () {
  15275. return (
  15276. le(
  15277. l,
  15278. v,
  15279. ['drag'],
  15280. p,
  15281. 'End',
  15282. R(R({}, f.requestEnd()), { requestAble: e, isRequest: !0 }),
  15283. c
  15284. ),
  15285. this
  15286. );
  15287. }
  15288. };
  15289. return (
  15290. le(
  15291. l,
  15292. v,
  15293. ['drag'],
  15294. p,
  15295. 'Start',
  15296. R(R({}, f.requestStart(n)), { requestAble: e, isRequest: !0 }),
  15297. c
  15298. ),
  15299. c ? d.request(n).requestEnd() : d
  15300. );
  15301. }),
  15302. (r.prototype.destroy = function () {
  15303. this.componentWillUnmount();
  15304. }),
  15305. (r.prototype.updateRenderPoses = function () {
  15306. var e = this.getState(),
  15307. n = this.props,
  15308. a = n.padding,
  15309. i = e.originalBeforeOrigin,
  15310. o = e.transformOrigin,
  15311. s = e.allMatrix,
  15312. u = e.is3d,
  15313. l = e.pos1,
  15314. f = e.pos2,
  15315. c = e.pos3,
  15316. v = e.pos4,
  15317. p = e.left,
  15318. d = e.top,
  15319. g = e.isPersisted;
  15320. if (!a) {
  15321. e.renderPoses = [l, f, c, v];
  15322. return;
  15323. }
  15324. var h = Gs(a),
  15325. A = h.left,
  15326. m = h.top,
  15327. E = h.bottom,
  15328. y = h.right,
  15329. b = u ? 4 : 3,
  15330. C = [];
  15331. g
  15332. ? (C = o)
  15333. : this.controlBox && n.groupable
  15334. ? (C = i)
  15335. : (C = ft(i, [p, d]));
  15336. var S = We(
  15337. b,
  15338. Ir(
  15339. C.map(function (D) {
  15340. return -D;
  15341. }),
  15342. b
  15343. ),
  15344. s,
  15345. Ir(o, b)
  15346. );
  15347. e.renderPoses = [
  15348. Ne(S, l, [-A, -m], b),
  15349. Ne(S, f, [y, -m], b),
  15350. Ne(S, c, [-A, E], b),
  15351. Ne(S, v, [y, E], b)
  15352. ];
  15353. }),
  15354. (r.prototype.checkUpdate = function () {
  15355. this._isPropTargetChanged = !1;
  15356. var e = this.props,
  15357. n = e.target,
  15358. a = e.container,
  15359. i = e.parentMoveable,
  15360. o = this.state,
  15361. s = o.target,
  15362. u = o.container;
  15363. if (!(!s && !n)) {
  15364. this.updateAbles();
  15365. var l = !oa(s, n),
  15366. f = l || !oa(u, a);
  15367. if (f) {
  15368. var c = a || this.controlBox;
  15369. c && this.unsetAbles(),
  15370. this.updateState({ target: n, container: a }),
  15371. !i && c && this.updateRect('End', !1, !1),
  15372. (this._isPropTargetChanged = l);
  15373. }
  15374. }
  15375. }),
  15376. (r.prototype.waitToChangeTarget = function () {
  15377. return new Promise(function () {});
  15378. }),
  15379. (r.prototype.triggerEvent = function (e, n) {
  15380. this._emitter.trigger(e, n);
  15381. var a = this.props[e];
  15382. return a && a(n);
  15383. }),
  15384. (r.prototype.useCSS = function (e, n) {
  15385. var a = this.props.customStyledMap,
  15386. i = e + n;
  15387. return a[i] || (a[i] = Ho(e, n)), a[i];
  15388. }),
  15389. (r.prototype.getState = function () {
  15390. var e,
  15391. n = this.props;
  15392. (n.target ||
  15393. (!((e = n.targets) === null || e === void 0) && e.length)) &&
  15394. (this._hasFirstTarget = !0);
  15395. var a = this.controlBox,
  15396. i = n.persistData,
  15397. o = n.firstRenderState;
  15398. if (o && !a) return o;
  15399. if (!this._hasFirstTarget && i) {
  15400. var s = Ji(i);
  15401. if (s) return this.updateState(s, !1), this.state;
  15402. }
  15403. return (this.state.isPersisted = !1), this.state;
  15404. }),
  15405. (r.prototype.updateSelectors = function () {}),
  15406. (r.prototype.unsetAbles = function () {
  15407. var e = this;
  15408. this.targetAbles.forEach(function (n) {
  15409. n.unset && n.unset(e);
  15410. });
  15411. }),
  15412. (r.prototype.updateAbles = function (e, n) {
  15413. e === void 0 && (e = this.props.ables), n === void 0 && (n = '');
  15414. var a = this.props,
  15415. i = a.triggerAblesSimultaneously,
  15416. o = this.getEnabledAbles(e),
  15417. s = 'drag'.concat(n, 'Start'),
  15418. u = 'pinch'.concat(n, 'Start'),
  15419. l = 'drag'.concat(n, 'ControlStart'),
  15420. f = Ge(o, [s, u], i),
  15421. c = Ge(o, [l], i);
  15422. (this.enabledAbles = o),
  15423. (this.targetAbles = f),
  15424. (this.controlAbles = c);
  15425. }),
  15426. (r.prototype.updateState = function (e, n) {
  15427. if (n) {
  15428. if (this.isUnmounted) return;
  15429. this.setState(e);
  15430. } else {
  15431. var a = this.state;
  15432. for (var i in e) a[i] = e[i];
  15433. }
  15434. }),
  15435. (r.prototype.getEnabledAbles = function (e) {
  15436. e === void 0 && (e = this.props.ables);
  15437. var n = this.props;
  15438. return e.filter(function (a) {
  15439. return a && ((a.always && n[a.name] !== !1) || n[a.name]);
  15440. });
  15441. }),
  15442. (r.prototype.renderAbles = function () {
  15443. var e = this,
  15444. n = this.props,
  15445. a = n.triggerAblesSimultaneously,
  15446. i = { createElement: _t };
  15447. return (
  15448. (this.renderState = {}),
  15449. $p(
  15450. Is(
  15451. Ge(this.getEnabledAbles(), ['render'], a).map(function (o) {
  15452. var s = o.render;
  15453. return s(e, i) || [];
  15454. })
  15455. ).filter(function (o) {
  15456. return o;
  15457. }),
  15458. function (o) {
  15459. var s = o.key;
  15460. return s;
  15461. }
  15462. ).map(function (o) {
  15463. return o[0];
  15464. })
  15465. );
  15466. }),
  15467. (r.prototype.updateCheckInput = function () {
  15468. this.targetGesto &&
  15469. (this.targetGesto.options.checkInput = this.props.checkInput);
  15470. }),
  15471. (r.prototype._getRequestStyles = function () {
  15472. var e = this.getEnabledAbles().reduce(function (n, a) {
  15473. var i,
  15474. o,
  15475. s =
  15476. (o =
  15477. (i = a.requestStyle) === null || i === void 0
  15478. ? void 0
  15479. : i.call(a)) !== null && o !== void 0
  15480. ? o
  15481. : [];
  15482. return U(U([], B(n), !1), B(s), !1);
  15483. }, U([], B(this.props.requestStyles || []), !1));
  15484. return e;
  15485. }),
  15486. (r.prototype._updateObserver = function (e) {
  15487. this._updateResizeObserver(e), this._updateMutationObserver(e);
  15488. }),
  15489. (r.prototype._updateEvents = function () {
  15490. var e = this.controlBox,
  15491. n = this.targetAbles.length,
  15492. a = this.controlAbles.length,
  15493. i = this._dragTarget,
  15494. o = (!n && this.targetGesto) || this._isTargetChanged(!0);
  15495. o && (Hr(this, !1), this.updateState({ gestos: {} })),
  15496. a || Hr(this, !0),
  15497. i && n && !this.targetGesto && (this.targetGesto = Ys(this, i, '')),
  15498. !this.controlGesto &&
  15499. a &&
  15500. (this.controlGesto = qa(this, e, 'controlAbles', 'Control'));
  15501. }),
  15502. (r.prototype._updateTargets = function () {
  15503. var e = this.props;
  15504. (this._prevDragTarget = this._dragTarget),
  15505. (this._prevOriginalDragTarget = this._originalDragTarget),
  15506. (this._originalDragTarget = e.dragTarget || e.target),
  15507. (this._dragTarget = nr(this._originalDragTarget, !0)),
  15508. (this._prevDragArea = e.dragArea);
  15509. }),
  15510. (r.prototype._renderLines = function () {
  15511. var e = this.props,
  15512. n = e,
  15513. a = n.zoom,
  15514. i = n.hideDefaultLines,
  15515. o = n.hideChildMoveableDefaultLines,
  15516. s = n.parentMoveable;
  15517. if (i || (s && o)) return [];
  15518. var u = this.getState().renderPoses,
  15519. l = { createElement: _t };
  15520. return [
  15521. [0, 1],
  15522. [1, 3],
  15523. [3, 2],
  15524. [2, 0]
  15525. ].map(function (f, c) {
  15526. var v = B(f, 2),
  15527. p = v[0],
  15528. d = v[1];
  15529. return ve(l, '', u[p], u[d], a, 'render-line-'.concat(c));
  15530. });
  15531. }),
  15532. (r.prototype._isTargetChanged = function (e) {
  15533. var n = this.props,
  15534. a = n.dragTarget || n.target,
  15535. i = this._prevOriginalDragTarget,
  15536. o = this._prevDragArea,
  15537. s = n.dragArea,
  15538. u = !s && i !== a,
  15539. l = (e || s) && o !== s;
  15540. return u || l;
  15541. }),
  15542. (r.prototype._updateNativeEvents = function () {
  15543. var e = this,
  15544. n = this.props,
  15545. a = n.dragArea ? this.areaElement : this.state.target,
  15546. i = this.events,
  15547. o = fr(i);
  15548. if (this._isTargetChanged())
  15549. for (var s in i) {
  15550. var u = i[s];
  15551. u && u.destroy(), (i[s] = null);
  15552. }
  15553. if (a) {
  15554. var l = this.enabledAbles;
  15555. o.forEach(function (f) {
  15556. var c = Ge(l, [f]),
  15557. v = c.length > 0,
  15558. p = i[f];
  15559. if (!v) {
  15560. p && (p.destroy(), (i[f] = null));
  15561. return;
  15562. }
  15563. p || ((p = new Td(a, e, f)), (i[f] = p)), p.setAbles(c);
  15564. });
  15565. }
  15566. }),
  15567. (r.prototype._checkUpdateRootContainer = function () {
  15568. var e = this.props.rootContainer;
  15569. !this._rootContainer && e && (this._rootContainer = nr(e, !0));
  15570. }),
  15571. (r.prototype._checkUpdateViewContainer = function () {
  15572. var e = this.props.viewContainer;
  15573. !this._viewContainer && e && (this._viewContainer = nr(e, !0));
  15574. var n = this._viewContainer;
  15575. n &&
  15576. this._changeAbleViewClassNames(
  15577. U(
  15578. U([], B(this._getAbleViewClassNames()), !1),
  15579. [this.isDragging() ? ld : ''],
  15580. !1
  15581. )
  15582. );
  15583. }),
  15584. (r.prototype._changeAbleViewClassNames = function (e) {
  15585. var n = this._viewContainer,
  15586. a = Ms(e.filter(Boolean), function (l) {
  15587. return l;
  15588. }).map(function (l) {
  15589. var f = B(l, 1),
  15590. c = f[0];
  15591. return c;
  15592. }),
  15593. i = this._viewClassNames,
  15594. o = he(i, a),
  15595. s = o.removed,
  15596. u = o.added;
  15597. s.forEach(function (l) {
  15598. fo(n, i[l]);
  15599. }),
  15600. u.forEach(function (l) {
  15601. lo(n, a[l]);
  15602. }),
  15603. (this._viewClassNames = a);
  15604. }),
  15605. (r.prototype._getAbleViewClassNames = function () {
  15606. var e = this;
  15607. return (
  15608. this.getEnabledAbles()
  15609. .map(function (n) {
  15610. var a;
  15611. return (
  15612. ((a = n.viewClassName) === null || a === void 0
  15613. ? void 0
  15614. : a.call(n, e)) || ''
  15615. );
  15616. })
  15617. .join(' ') + ' '.concat(this._getAbleClassName('-view'))
  15618. ).split(/\s+/g);
  15619. }),
  15620. (r.prototype._getAbleClassName = function (e) {
  15621. var n = this;
  15622. e === void 0 && (e = '');
  15623. var a = this.getEnabledAbles(),
  15624. i = this.targetGesto,
  15625. o = this.controlGesto,
  15626. s = i != null && i.isFlag() ? i.getEventData() : {},
  15627. u = o != null && o.isFlag() ? o.getEventData() : {};
  15628. return a
  15629. .map(function (l) {
  15630. var f,
  15631. c,
  15632. v,
  15633. p = l.name,
  15634. d =
  15635. ((f = l.className) === null || f === void 0
  15636. ? void 0
  15637. : f.call(l, n)) || '';
  15638. return (
  15639. ((!((c = s[p]) === null || c === void 0) && c.isEventStart) ||
  15640. (!((v = u[p]) === null || v === void 0) && v.isEventStart)) &&
  15641. (d += ' '.concat($(''.concat(p).concat(e, '-dragging')))),
  15642. d.trim()
  15643. );
  15644. })
  15645. .filter(Boolean)
  15646. .join(' ');
  15647. }),
  15648. (r.prototype._updateResizeObserver = function (e) {
  15649. var n,
  15650. a = this.props,
  15651. i = a.target,
  15652. o = hr(this.getControlBoxElement());
  15653. if (!o.ResizeObserver || !i || !a.useResizeObserver) {
  15654. (n = this._reiszeObserver) === null || n === void 0 || n.disconnect();
  15655. return;
  15656. }
  15657. if (!(e.target === i && this._reiszeObserver)) {
  15658. var s = new o.ResizeObserver(this.checkUpdateRect);
  15659. s.observe(i, { box: 'border-box' }), (this._reiszeObserver = s);
  15660. }
  15661. }),
  15662. (r.prototype._updateMutationObserver = function (e) {
  15663. var n = this,
  15664. a,
  15665. i = this.props,
  15666. o = i.target,
  15667. s = hr(this.getControlBoxElement());
  15668. if (!s.MutationObserver || !o || !i.useMutationObserver) {
  15669. (a = this._mutationObserver) === null ||
  15670. a === void 0 ||
  15671. a.disconnect();
  15672. return;
  15673. }
  15674. if (!(e.target === o && this._mutationObserver)) {
  15675. var u = new s.MutationObserver(function (l) {
  15676. var f, c;
  15677. try {
  15678. for (var v = hv(l), p = v.next(); !p.done; p = v.next()) {
  15679. var d = p.value;
  15680. d.type === 'attributes' &&
  15681. d.attributeName === 'style' &&
  15682. n.checkUpdateRect();
  15683. }
  15684. } catch (g) {
  15685. f = { error: g };
  15686. } finally {
  15687. try {
  15688. p && !p.done && (c = v.return) && c.call(v);
  15689. } finally {
  15690. if (f) throw f.error;
  15691. }
  15692. }
  15693. });
  15694. u.observe(o, { attributes: !0 }), (this._mutationObserver = u);
  15695. }
  15696. }),
  15697. (r.defaultProps = {
  15698. target: null,
  15699. dragTarget: null,
  15700. container: null,
  15701. rootContainer: null,
  15702. origin: !0,
  15703. parentMoveable: null,
  15704. wrapperMoveable: null,
  15705. isWrapperMounted: !1,
  15706. parentPosition: null,
  15707. warpSelf: !1,
  15708. svgOrigin: '',
  15709. dragContainer: null,
  15710. useResizeObserver: !1,
  15711. useMutationObserver: !1,
  15712. preventDefault: !0,
  15713. linePadding: 0,
  15714. controlPadding: 0,
  15715. ables: [],
  15716. pinchThreshold: 20,
  15717. dragArea: !1,
  15718. passDragArea: !1,
  15719. transformOrigin: '',
  15720. className: '',
  15721. zoom: 1,
  15722. triggerAblesSimultaneously: !1,
  15723. padding: {},
  15724. pinchOutside: !0,
  15725. checkInput: !1,
  15726. dragFocusedInput: !1,
  15727. groupable: !1,
  15728. hideDefaultLines: !1,
  15729. cspNonce: '',
  15730. translateZ: 0,
  15731. cssStyled: null,
  15732. customStyledMap: {},
  15733. props: {},
  15734. stopPropagation: !1,
  15735. preventClickDefault: !1,
  15736. preventClickEventOnDrag: !0,
  15737. flushSync: Ss,
  15738. firstRenderState: null,
  15739. persistData: null,
  15740. viewContainer: null,
  15741. requestStyles: [],
  15742. useAccuratePosition: !1
  15743. }),
  15744. r
  15745. );
  15746. })(mo),
  15747. Ka = {
  15748. name: 'groupable',
  15749. props: [
  15750. 'defaultGroupRotate',
  15751. 'useDefaultGroupRotate',
  15752. 'defaultGroupOrigin',
  15753. 'groupable',
  15754. 'groupableProps',
  15755. 'targetGroups',
  15756. 'hideChildMoveableDefaultLines'
  15757. ],
  15758. events: [],
  15759. render: function (t, r) {
  15760. var e,
  15761. n = t.props,
  15762. a = n.targets || [],
  15763. i = t.getState(),
  15764. o = i.left,
  15765. s = i.top,
  15766. u = i.isPersisted,
  15767. l = n.zoom || 1,
  15768. f = t.renderGroupRects,
  15769. c =
  15770. ((e = n.persistData) === null || e === void 0
  15771. ? void 0
  15772. : e.children) || [];
  15773. u
  15774. ? (a = c.map(function () {
  15775. return null;
  15776. }))
  15777. : (c = []);
  15778. var v = t._store,
  15779. p = Li(v, 'parentPosition', [o, s], function (g) {
  15780. return g.join(',');
  15781. }),
  15782. d = Li(v, 'requestStyles', t.getRequestChildStyles(), function (g) {
  15783. return g.join(',');
  15784. });
  15785. return (
  15786. (t.moveables = t.moveables.slice(0, a.length)),
  15787. U(
  15788. U(
  15789. [],
  15790. B(
  15791. a.map(function (g, h) {
  15792. return r.createElement(qr, {
  15793. key: 'moveable' + h,
  15794. ref: eo(t, 'moveables', h),
  15795. target: g,
  15796. origin: !1,
  15797. requestStyles: d,
  15798. cssStyled: n.cssStyled,
  15799. customStyledMap: n.customStyledMap,
  15800. useResizeObserver: n.useResizeObserver,
  15801. useMutationObserver: n.useMutationObserver,
  15802. hideChildMoveableDefaultLines:
  15803. n.hideChildMoveableDefaultLines,
  15804. parentMoveable: t,
  15805. parentPosition: [o, s],
  15806. persistData: c[h],
  15807. zoom: l
  15808. });
  15809. })
  15810. ),
  15811. !1
  15812. ),
  15813. B(
  15814. Is(
  15815. f.map(function (g, h) {
  15816. var A = g.pos1,
  15817. m = g.pos2,
  15818. E = g.pos3,
  15819. y = g.pos4,
  15820. b = [A, m, E, y];
  15821. return [
  15822. [0, 1],
  15823. [1, 3],
  15824. [3, 2],
  15825. [2, 0]
  15826. ].map(function (C, S) {
  15827. var D = B(C, 2),
  15828. x = D[0],
  15829. w = D[1];
  15830. return ve(
  15831. r,
  15832. '',
  15833. tt(b[x], p),
  15834. tt(b[w], p),
  15835. l,
  15836. 'group-rect-'.concat(h, '-').concat(S)
  15837. );
  15838. });
  15839. })
  15840. )
  15841. ),
  15842. !1
  15843. )
  15844. );
  15845. }
  15846. },
  15847. kd = ye('clickable', {
  15848. props: ['clickable'],
  15849. events: ['click', 'clickGroup'],
  15850. always: !0,
  15851. dragRelation: 'weak',
  15852. dragStart: function () {},
  15853. dragControlStart: function () {},
  15854. dragGroupStart: function (t, r) {
  15855. r.datas.inputTarget = r.inputEvent && r.inputEvent.target;
  15856. },
  15857. dragEnd: function (t, r) {
  15858. var e = t.props.target,
  15859. n = r.inputEvent,
  15860. a = r.inputTarget,
  15861. i = t.isMoveableElement(a),
  15862. o = !i && t.controlBox.contains(a);
  15863. if (!(!n || !a || r.isDrag || t.isMoveableElement(a) || o)) {
  15864. var s = e.contains(a);
  15865. Y(
  15866. t,
  15867. 'onClick',
  15868. ot(t, r, {
  15869. isDouble: r.isDouble,
  15870. inputTarget: a,
  15871. isTarget: e === a,
  15872. moveableTarget: t.props.target,
  15873. containsTarget: s
  15874. })
  15875. );
  15876. }
  15877. },
  15878. dragGroupEnd: function (t, r) {
  15879. var e = r.inputEvent,
  15880. n = r.inputTarget;
  15881. if (
  15882. !(
  15883. !e ||
  15884. !n ||
  15885. r.isDrag ||
  15886. t.isMoveableElement(n) ||
  15887. r.datas.inputTarget === n
  15888. )
  15889. ) {
  15890. var a = t.props.targets,
  15891. i = a.indexOf(n),
  15892. o = i > -1,
  15893. s = !1;
  15894. i === -1 &&
  15895. ((i = lr(a, function (u) {
  15896. return u.contains(n);
  15897. })),
  15898. (s = i > -1)),
  15899. Y(
  15900. t,
  15901. 'onClickGroup',
  15902. ot(t, r, {
  15903. isDouble: r.isDouble,
  15904. targets: a,
  15905. inputTarget: n,
  15906. targetIndex: i,
  15907. isTarget: o,
  15908. containsTarget: s,
  15909. moveableTarget: a[i]
  15910. })
  15911. );
  15912. }
  15913. },
  15914. dragControlEnd: function (t, r) {
  15915. this.dragEnd(t, r);
  15916. },
  15917. dragGroupControlEnd: function (t, r) {
  15918. this.dragEnd(t, r);
  15919. }
  15920. });
  15921. function Gr(t) {
  15922. var r = t.originalDatas.draggable;
  15923. return (
  15924. r || ((t.originalDatas.draggable = {}), (r = t.originalDatas.draggable)),
  15925. R(R({}, t), { datas: r })
  15926. );
  15927. }
  15928. var Gd = ye('edgeDraggable', {
  15929. css: ['.edge.edgeDraggable.line {\ncursor: move;\n}'],
  15930. render: function (t, r) {
  15931. var e = t.props,
  15932. n = e.edgeDraggable;
  15933. return n
  15934. ? rs(r, 'edgeDraggable', n, t.getState().renderPoses, e.zoom)
  15935. : [];
  15936. },
  15937. dragCondition: function (t, r) {
  15938. var e,
  15939. n = t.props,
  15940. a = (e = r.inputEvent) === null || e === void 0 ? void 0 : e.target;
  15941. return !n.edgeDraggable || !a
  15942. ? !1
  15943. : !n.draggable &&
  15944. Tt(a, $('direction')) &&
  15945. Tt(a, $('edge')) &&
  15946. Tt(a, $('edgeDraggable'));
  15947. },
  15948. dragStart: function (t, r) {
  15949. return Ht.dragStart(t, Gr(r));
  15950. },
  15951. drag: function (t, r) {
  15952. return Ht.drag(t, Gr(r));
  15953. },
  15954. dragEnd: function (t, r) {
  15955. return Ht.dragEnd(t, Gr(r));
  15956. },
  15957. dragGroupCondition: function (t, r) {
  15958. var e,
  15959. n = t.props,
  15960. a = (e = r.inputEvent) === null || e === void 0 ? void 0 : e.target;
  15961. return !n.edgeDraggable || !a
  15962. ? !1
  15963. : !n.draggable && Tt(a, $('direction')) && Tt(a, $('line'));
  15964. },
  15965. dragGroupStart: function (t, r) {
  15966. return Ht.dragGroupStart(t, Gr(r));
  15967. },
  15968. dragGroup: function (t, r) {
  15969. return Ht.dragGroup(t, Gr(r));
  15970. },
  15971. dragGroupEnd: function (t, r) {
  15972. return Ht.dragGroupEnd(t, Gr(r));
  15973. },
  15974. unset: function (t) {
  15975. return Ht.unset(t);
  15976. }
  15977. }),
  15978. Qs = {
  15979. name: 'individualGroupable',
  15980. props: ['individualGroupable', 'individualGroupableProps'],
  15981. events: []
  15982. },
  15983. Ja = [
  15984. Vs,
  15985. zs,
  15986. Hp,
  15987. ad,
  15988. Ht,
  15989. Gd,
  15990. ra,
  15991. id,
  15992. sd,
  15993. yp,
  15994. vd,
  15995. pd,
  15996. fd,
  15997. xd,
  15998. bd,
  15999. Md,
  16000. Ka,
  16001. Qs,
  16002. kd,
  16003. Fs,
  16004. Ws
  16005. ],
  16006. Nd = Ja.reduce(function (t, r) {
  16007. return (
  16008. (r.events || []).forEach(function (e) {
  16009. uo(t, e);
  16010. }),
  16011. t
  16012. );
  16013. }, []),
  16014. Fd = Ja.reduce(function (t, r) {
  16015. return (
  16016. (r.props || []).forEach(function (e) {
  16017. uo(t, e);
  16018. }),
  16019. t
  16020. );
  16021. }, []);
  16022. function ji(t, r) {
  16023. var e = B(t, 3),
  16024. n = e[0],
  16025. a = e[1],
  16026. i = e[2];
  16027. return (n * r[0] + a * r[1] + i) / Math.sqrt(n * n + a * a);
  16028. }
  16029. function He(t, r) {
  16030. var e = B(t, 2),
  16031. n = e[0],
  16032. a = e[1];
  16033. return -n * r[0] - a * r[1];
  16034. }
  16035. function Zi(t, r) {
  16036. return Math.max.apply(
  16037. Math,
  16038. U(
  16039. [],
  16040. B(
  16041. t.map(function (e) {
  16042. var n = B(e, 4),
  16043. a = n[0],
  16044. i = n[1],
  16045. o = n[2],
  16046. s = n[3];
  16047. return Math.max(a[r], i[r], o[r], s[r]);
  16048. })
  16049. ),
  16050. !1
  16051. )
  16052. );
  16053. }
  16054. function _i(t, r) {
  16055. return Math.min.apply(
  16056. Math,
  16057. U(
  16058. [],
  16059. B(
  16060. t.map(function (e) {
  16061. var n = B(e, 4),
  16062. a = n[0],
  16063. i = n[1],
  16064. o = n[2],
  16065. s = n[3];
  16066. return Math.min(a[r], i[r], o[r], s[r]);
  16067. })
  16068. ),
  16069. !1
  16070. )
  16071. );
  16072. }
  16073. function zd(t, r) {
  16074. var e,
  16075. n,
  16076. a,
  16077. i = [0, 0],
  16078. o = [0, 0],
  16079. s = [0, 0],
  16080. u = [0, 0],
  16081. l = 0,
  16082. f = 0;
  16083. if (!t.length)
  16084. return {
  16085. pos1: i,
  16086. pos2: o,
  16087. pos3: s,
  16088. pos4: u,
  16089. minX: 0,
  16090. minY: 0,
  16091. maxX: 0,
  16092. maxY: 0,
  16093. width: l,
  16094. height: f,
  16095. rotation: r
  16096. };
  16097. var c = nt(r, Ut);
  16098. if (c % 90) {
  16099. var v = (c / 180) * Math.PI,
  16100. p = Math.tan(v),
  16101. d = -1 / p,
  16102. g = [Zn, yi],
  16103. h = [
  16104. [0, 0],
  16105. [0, 0]
  16106. ],
  16107. A = [Zn, yi],
  16108. m = [
  16109. [0, 0],
  16110. [0, 0]
  16111. ];
  16112. t.forEach(function (j) {
  16113. j.forEach(function (K) {
  16114. var X = ji([-p, 1, 0], K),
  16115. W = ji([-d, 1, 0], K);
  16116. g[0] > X && ((h[0] = K), (g[0] = X)),
  16117. g[1] < X && ((h[1] = K), (g[1] = X)),
  16118. A[0] > W && ((m[0] = K), (A[0] = W)),
  16119. A[1] < W && ((m[1] = K), (A[1] = W));
  16120. });
  16121. });
  16122. var E = B(h, 2),
  16123. y = E[0],
  16124. b = E[1],
  16125. C = B(m, 2),
  16126. S = C[0],
  16127. D = C[1],
  16128. x = [-p, 1, He([-p, 1], y)],
  16129. w = [-p, 1, He([-p, 1], b)],
  16130. T = [-d, 1, He([-d, 1], S)],
  16131. I = [-d, 1, He([-d, 1], D)];
  16132. (e = B(
  16133. [
  16134. [x, T],
  16135. [x, I],
  16136. [w, T],
  16137. [w, I]
  16138. ].map(function (j) {
  16139. var K = B(j, 2),
  16140. X = K[0],
  16141. W = K[1];
  16142. return wa(X, W)[0];
  16143. }),
  16144. 4
  16145. )),
  16146. (i = e[0]),
  16147. (o = e[1]),
  16148. (s = e[2]),
  16149. (u = e[3]),
  16150. (l = A[1] - A[0]),
  16151. (f = g[1] - g[0]);
  16152. } else {
  16153. var M = _i(t, 0),
  16154. O = _i(t, 1),
  16155. P = Zi(t, 0),
  16156. z = Zi(t, 1);
  16157. if (
  16158. ((i = [M, O]),
  16159. (o = [P, O]),
  16160. (s = [M, z]),
  16161. (u = [P, z]),
  16162. (l = P - M),
  16163. (f = z - O),
  16164. c % 180)
  16165. ) {
  16166. var H = [s, i, u, o];
  16167. (n = B(H, 4)),
  16168. (i = n[0]),
  16169. (o = n[1]),
  16170. (s = n[2]),
  16171. (u = n[3]),
  16172. (l = z - O),
  16173. (f = P - M);
  16174. }
  16175. }
  16176. if (c % 360 > 180) {
  16177. var H = [u, s, o, i];
  16178. (a = B(H, 4)), (i = a[0]), (o = a[1]), (s = a[2]), (u = a[3]);
  16179. }
  16180. var G = Tr([i, o, s, u]),
  16181. L = G.minX,
  16182. V = G.minY,
  16183. F = G.maxX,
  16184. Q = G.maxY;
  16185. return {
  16186. pos1: i,
  16187. pos2: o,
  16188. pos3: s,
  16189. pos4: u,
  16190. width: l,
  16191. height: f,
  16192. minX: L,
  16193. minY: V,
  16194. maxX: F,
  16195. maxY: Q,
  16196. rotation: r
  16197. };
  16198. }
  16199. function Xs(t, r) {
  16200. var e = r
  16201. .map(function (n) {
  16202. if (Rt(n)) {
  16203. var a = Xs(t, n),
  16204. i = a.length;
  16205. return i > 1 ? a : i === 1 ? a[0] : null;
  16206. } else {
  16207. var o = Kt(t, function (s) {
  16208. var u = s.manager;
  16209. return u.props.target === n;
  16210. });
  16211. return o ? ((o.finded = !0), o.manager) : null;
  16212. }
  16213. })
  16214. .filter(Boolean);
  16215. return e.length === 1 && Rt(e[0]) ? e[0] : e;
  16216. }
  16217. var Hd = (function (t) {
  16218. Ee(r, t);
  16219. function r() {
  16220. var e = (t !== null && t.apply(this, arguments)) || this;
  16221. return (
  16222. (e.differ = new Go()),
  16223. (e.moveables = []),
  16224. (e.transformOrigin = '50% 50%'),
  16225. (e.renderGroupRects = []),
  16226. (e._targetGroups = []),
  16227. (e._hasFirstTargets = !1),
  16228. e
  16229. );
  16230. }
  16231. return (
  16232. (r.prototype.componentDidMount = function () {
  16233. t.prototype.componentDidMount.call(this);
  16234. }),
  16235. (r.prototype.checkUpdate = function () {
  16236. (this._isPropTargetChanged = !1), this.updateAbles();
  16237. }),
  16238. (r.prototype.getTargets = function () {
  16239. return this.props.targets;
  16240. }),
  16241. (r.prototype.updateRect = function (e, n, a) {
  16242. var i;
  16243. a === void 0 && (a = !0);
  16244. var o = this.state;
  16245. if (!this.controlBox || o.isPersisted) return;
  16246. Yr(!0),
  16247. this.moveables.forEach(function (rt) {
  16248. rt.updateRect(e, !1, !1);
  16249. });
  16250. var s = this.props,
  16251. u = this.moveables,
  16252. l = o.target || s.target,
  16253. f = u.map(function (rt) {
  16254. return { finded: !1, manager: rt };
  16255. }),
  16256. c = this.props.targetGroups || [],
  16257. v = Xs(f, c),
  16258. p = s.useDefaultGroupRotate;
  16259. v.push.apply(
  16260. v,
  16261. U(
  16262. [],
  16263. B(
  16264. f
  16265. .filter(function (rt) {
  16266. var lt = rt.finded;
  16267. return !lt;
  16268. })
  16269. .map(function (rt) {
  16270. var lt = rt.manager;
  16271. return lt;
  16272. })
  16273. ),
  16274. !1
  16275. )
  16276. );
  16277. var d = [],
  16278. g = !n || (e !== '' && s.updateGroup),
  16279. h = s.defaultGroupRotate || 0;
  16280. if (!this._hasFirstTargets) {
  16281. var A =
  16282. (i = s.persistData) === null || i === void 0 ? void 0 : i.rotation;
  16283. A != null && (h = A);
  16284. }
  16285. function m(rt, lt, et) {
  16286. var Z = rt.map(function (pt) {
  16287. if (Rt(pt)) {
  16288. var st = m(pt, lt),
  16289. ct = [st.pos1, st.pos2, st.pos3, st.pos4];
  16290. return d.push(st), { poses: ct, rotation: st.rotation };
  16291. } else return { poses: jt(pt.state), rotation: pt.getRotation() };
  16292. }),
  16293. J = Z.map(function (pt) {
  16294. var st = pt.rotation;
  16295. return st;
  16296. }),
  16297. vt = 0,
  16298. at = J[0],
  16299. it = J.every(function (pt) {
  16300. return Math.abs(at - pt) < 0.1;
  16301. });
  16302. g ? (vt = !p && it ? at : h) : (vt = !p && !et && it ? at : lt);
  16303. var ut = Z.map(function (pt) {
  16304. var st = pt.poses;
  16305. return st;
  16306. }),
  16307. At = zd(ut, vt);
  16308. return At;
  16309. }
  16310. var E = m(v, this.rotation, !0);
  16311. g &&
  16312. ((this.rotation = E.rotation),
  16313. (this.transformOrigin = s.defaultGroupOrigin || '50% 50%'),
  16314. (this.scale = [1, 1])),
  16315. (this._targetGroups = c),
  16316. (this.renderGroupRects = d);
  16317. var y = this.transformOrigin,
  16318. b = this.rotation,
  16319. C = this.scale,
  16320. S = E.width,
  16321. D = E.height,
  16322. x = E.minX,
  16323. w = E.minY,
  16324. T = nd(
  16325. [
  16326. [0, 0],
  16327. [S, 0],
  16328. [0, D],
  16329. [S, D]
  16330. ],
  16331. Ya(y, S, D),
  16332. (this.rotation / 180) * Math.PI
  16333. ),
  16334. I = Tr(T.result),
  16335. M = I.minX,
  16336. O = I.minY,
  16337. P =
  16338. ' rotate('.concat(b, 'deg)') +
  16339. ' scale('.concat(Xt(C[0]), ', ').concat(Xt(C[1]), ')'),
  16340. z = 'translate('.concat(-M, 'px, ').concat(-O, 'px)').concat(P);
  16341. (this.controlBox.style.transform = 'translate3d('
  16342. .concat(x, 'px, ')
  16343. .concat(w, 'px, ')
  16344. .concat(this.props.translateZ || 0, ')')),
  16345. (l.style.cssText +=
  16346. 'left:0px;top:0px;' +
  16347. 'transform-origin:'.concat(y, ';') +
  16348. 'width:'.concat(S, 'px;height:').concat(D, 'px;') +
  16349. 'transform: '.concat(z)),
  16350. (o.width = S),
  16351. (o.height = D);
  16352. var H = this.getContainer(),
  16353. G = la(
  16354. this.controlBox,
  16355. l,
  16356. this.controlBox,
  16357. this.getContainer(),
  16358. this._rootContainer || H,
  16359. []
  16360. ),
  16361. L = [G.left, G.top],
  16362. V = B(jt(G), 4),
  16363. F = V[0],
  16364. Q = V[1],
  16365. j = V[2],
  16366. K = V[3],
  16367. X = Tr([F, Q, j, K]),
  16368. W = [X.minX, X.minY],
  16369. _ = Xt(C[0] * C[1]);
  16370. (G.pos1 = tt(F, W)),
  16371. (G.pos2 = tt(Q, W)),
  16372. (G.pos3 = tt(j, W)),
  16373. (G.pos4 = tt(K, W)),
  16374. (G.left = x - G.left + W[0]),
  16375. (G.top = w - G.top + W[1]),
  16376. (G.origin = tt(ft(L, G.origin), W)),
  16377. (G.beforeOrigin = tt(ft(L, G.beforeOrigin), W)),
  16378. (G.originalBeforeOrigin = ft(L, G.originalBeforeOrigin)),
  16379. (G.transformOrigin = tt(ft(L, G.transformOrigin), W)),
  16380. (l.style.transform =
  16381. 'translate('.concat(-M - W[0], 'px, ').concat(-O - W[1], 'px)') +
  16382. P),
  16383. Yr(),
  16384. this.updateState(
  16385. R(R({}, G), { posDelta: W, direction: _, beforeDirection: _ }),
  16386. a
  16387. );
  16388. }),
  16389. (r.prototype.getRect = function () {
  16390. return R(R({}, t.prototype.getRect.call(this)), {
  16391. children: this.moveables.map(function (e) {
  16392. return e.getRect();
  16393. })
  16394. });
  16395. }),
  16396. (r.prototype.triggerEvent = function (e, n, a) {
  16397. if (a || e.indexOf('Group') > -1)
  16398. return t.prototype.triggerEvent.call(this, e, n);
  16399. this._emitter.trigger(e, n);
  16400. }),
  16401. (r.prototype.getRequestChildStyles = function () {
  16402. var e = this.getEnabledAbles().reduce(function (n, a) {
  16403. var i,
  16404. o,
  16405. s =
  16406. (o =
  16407. (i = a.requestChildStyle) === null || i === void 0
  16408. ? void 0
  16409. : i.call(a)) !== null && o !== void 0
  16410. ? o
  16411. : [];
  16412. return U(U([], B(n), !1), B(s), !1);
  16413. }, []);
  16414. return e;
  16415. }),
  16416. (r.prototype.updateAbles = function () {
  16417. t.prototype.updateAbles.call(
  16418. this,
  16419. U(U([], B(this.props.ables), !1), [Ka], !1),
  16420. 'Group'
  16421. );
  16422. }),
  16423. (r.prototype._updateTargets = function () {
  16424. t.prototype._updateTargets.call(this),
  16425. (this._originalDragTarget =
  16426. this.props.dragTarget || this.areaElement),
  16427. (this._dragTarget = nr(this._originalDragTarget, !0));
  16428. }),
  16429. (r.prototype._updateEvents = function () {
  16430. var e = this.state,
  16431. n = this.props,
  16432. a = this._prevDragTarget,
  16433. i = n.dragTarget || this.areaElement,
  16434. o = n.targets,
  16435. s = this.differ.update(o),
  16436. u = s.added,
  16437. l = s.changed,
  16438. f = s.removed,
  16439. c = u.length || f.length;
  16440. (c || a !== i) &&
  16441. (Hr(this, !1), Hr(this, !0), this.updateState({ gestos: {} })),
  16442. a !== i && (e.target = null),
  16443. e.target ||
  16444. ((e.target = this.areaElement),
  16445. (this.controlBox.style.display = 'block')),
  16446. e.target &&
  16447. (this.targetGesto ||
  16448. (this.targetGesto = Ys(this, this._dragTarget, 'Group')),
  16449. this.controlGesto ||
  16450. (this.controlGesto = qa(
  16451. this,
  16452. this.controlBox,
  16453. 'controlAbles',
  16454. 'GroupControl'
  16455. )));
  16456. var v = !oa(e.container, n.container);
  16457. v && (e.container = n.container),
  16458. (v ||
  16459. c ||
  16460. this.transformOrigin !== (n.defaultGroupOrigin || '50% 50%') ||
  16461. l.length ||
  16462. (o.length && !ks(this._targetGroups, n.targetGroups || []))) &&
  16463. (this.updateRect(), (this._hasFirstTargets = !0)),
  16464. (this._isPropTargetChanged = !!c);
  16465. }),
  16466. (r.prototype._updateObserver = function () {}),
  16467. (r.defaultProps = R(R({}, qr.defaultProps), {
  16468. transformOrigin: ['50%', '50%'],
  16469. groupable: !0,
  16470. dragArea: !0,
  16471. keepRatio: !0,
  16472. targets: [],
  16473. defaultGroupRotate: 0,
  16474. defaultGroupOrigin: '50% 50%'
  16475. })),
  16476. r
  16477. );
  16478. })(qr),
  16479. Ld = (function (t) {
  16480. Ee(r, t);
  16481. function r() {
  16482. var e = (t !== null && t.apply(this, arguments)) || this;
  16483. return (e.moveables = []), e;
  16484. }
  16485. return (
  16486. (r.prototype.render = function () {
  16487. var e = this,
  16488. n,
  16489. a = this.props,
  16490. i = a.cspNonce,
  16491. o = a.cssStyled,
  16492. s = a.persistData,
  16493. u = a.targets || [],
  16494. l = u.length,
  16495. f = this.isUnmounted || !l,
  16496. c =
  16497. (n = s == null ? void 0 : s.children) !== null && n !== void 0
  16498. ? n
  16499. : [];
  16500. return (
  16501. f && !l && c.length
  16502. ? (u = c.map(function () {
  16503. return null;
  16504. }))
  16505. : f || (c = []),
  16506. _t(
  16507. o,
  16508. {
  16509. cspNonce: i,
  16510. ref: or(this, 'controlBox'),
  16511. className: $('control-box')
  16512. },
  16513. u.map(function (v, p) {
  16514. var d,
  16515. g,
  16516. h =
  16517. (g =
  16518. (d = a.individualGroupableProps) === null || d === void 0
  16519. ? void 0
  16520. : d.call(a, v, p)) !== null && g !== void 0
  16521. ? g
  16522. : {};
  16523. return _t(
  16524. qr,
  16525. R({ key: 'moveable' + p, ref: eo(e, 'moveables', p) }, a, h, {
  16526. target: v,
  16527. wrapperMoveable: e,
  16528. isWrapperMounted: e.isMoveableMounted,
  16529. persistData: c[p]
  16530. })
  16531. );
  16532. })
  16533. )
  16534. );
  16535. }),
  16536. (r.prototype.componentDidMount = function () {}),
  16537. (r.prototype.componentDidUpdate = function () {}),
  16538. (r.prototype.getTargets = function () {
  16539. return this.props.targets;
  16540. }),
  16541. (r.prototype.updateRect = function (e, n, a) {
  16542. a === void 0 && (a = !0),
  16543. Yr(!0),
  16544. this.moveables.forEach(function (i) {
  16545. i.updateRect(e, n, a);
  16546. }),
  16547. Yr();
  16548. }),
  16549. (r.prototype.getRect = function () {
  16550. return R(R({}, t.prototype.getRect.call(this)), {
  16551. children: this.moveables.map(function (e) {
  16552. return e.getRect();
  16553. })
  16554. });
  16555. }),
  16556. (r.prototype.request = function () {
  16557. return {
  16558. request: function () {
  16559. return this;
  16560. },
  16561. requestEnd: function () {
  16562. return this;
  16563. }
  16564. };
  16565. }),
  16566. (r.prototype.dragStart = function () {
  16567. return this;
  16568. }),
  16569. (r.prototype.hitTest = function () {
  16570. return 0;
  16571. }),
  16572. (r.prototype.isInside = function () {
  16573. return !1;
  16574. }),
  16575. (r.prototype.isDragging = function () {
  16576. return !1;
  16577. }),
  16578. (r.prototype.updateRenderPoses = function () {}),
  16579. (r.prototype.checkUpdate = function () {}),
  16580. (r.prototype.triggerEvent = function () {}),
  16581. (r.prototype.updateAbles = function () {}),
  16582. (r.prototype._updateEvents = function () {}),
  16583. (r.prototype._updateObserver = function () {}),
  16584. r
  16585. );
  16586. })(qr);
  16587. function qs(t, r) {
  16588. var e = [];
  16589. return (
  16590. t.forEach(function (n) {
  16591. if (n) {
  16592. if (Wt(n)) {
  16593. r[n] && e.push.apply(e, U([], B(r[n]), !1));
  16594. return;
  16595. }
  16596. Rt(n) ? e.push.apply(e, U([], B(qs(n, r)), !1)) : e.push(n);
  16597. }
  16598. }),
  16599. e
  16600. );
  16601. }
  16602. function Ks(t, r) {
  16603. var e = [];
  16604. return (
  16605. t.forEach(function (n) {
  16606. if (n) {
  16607. if (Wt(n)) {
  16608. r[n] && e.push.apply(e, U([], B(r[n]), !1));
  16609. return;
  16610. }
  16611. Rt(n) ? e.push(Ks(n, r)) : e.push(n);
  16612. }
  16613. }),
  16614. e
  16615. );
  16616. }
  16617. function Js(t, r) {
  16618. return (
  16619. t.length !== r.length ||
  16620. t.some(function (e, n) {
  16621. var a = r[n];
  16622. return !e && !a ? !1 : e != a ? (Rt(e) && Rt(a) ? Js(e, a) : !0) : !1;
  16623. })
  16624. );
  16625. }
  16626. var Ud = (function (t) {
  16627. Ee(r, t);
  16628. function r() {
  16629. var e = (t !== null && t.apply(this, arguments)) || this;
  16630. return (
  16631. (e.refTargets = []),
  16632. (e.selectorMap = {}),
  16633. (e._differ = new Go()),
  16634. (e._elementTargets = []),
  16635. (e._onChangeTargets = null),
  16636. e
  16637. );
  16638. }
  16639. return (
  16640. (r.makeStyled = function () {
  16641. var e = {},
  16642. n = this.getTotalAbles();
  16643. n.forEach(function (i) {
  16644. var o = i.css;
  16645. o &&
  16646. o.forEach(function (s) {
  16647. e[s] = !0;
  16648. });
  16649. });
  16650. var a = fr(e).join('\n');
  16651. this.defaultStyled = Ho('div', kf(Ba, Rv + a));
  16652. }),
  16653. (r.getTotalAbles = function () {
  16654. return U([zs, Ka, Qs, Fs], B(this.defaultAbles), !1);
  16655. }),
  16656. (r.prototype.render = function () {
  16657. var e,
  16658. n = this.constructor;
  16659. n.defaultStyled || n.makeStyled();
  16660. var a = this.props,
  16661. i = a.ables,
  16662. o = a.props,
  16663. s = dv(a, ['ables', 'props']),
  16664. u = this._updateRefs(!0),
  16665. l = qs(u, this.selectorMap),
  16666. f = l.length > 1,
  16667. c = n.getTotalAbles(),
  16668. v = U(U([], B(c), !1), B(i || []), !1),
  16669. p = R(R(R({}, s), o || {}), {
  16670. ables: v,
  16671. cssStyled: n.defaultStyled,
  16672. customStyledMap: n.customStyledMap
  16673. });
  16674. this._elementTargets = l;
  16675. var d = null,
  16676. g = this.moveable,
  16677. h = s.persistData;
  16678. if ((h != null && h.children && (f = !0), s.individualGroupable))
  16679. return _t(
  16680. Ld,
  16681. R({ key: 'individual-group', ref: or(this, 'moveable') }, p, {
  16682. target: null,
  16683. targets: l
  16684. })
  16685. );
  16686. if (f) {
  16687. var A = Ks(u, this.selectorMap);
  16688. if (g && !g.props.groupable && !g.props.individualGroupable) {
  16689. var m = g.props.target;
  16690. m && l.indexOf(m) > -1 && (d = R({}, g.state));
  16691. }
  16692. return _t(
  16693. Hd,
  16694. R(
  16695. { key: 'group', ref: or(this, 'moveable') },
  16696. p,
  16697. (e = s.groupableProps) !== null && e !== void 0 ? e : {},
  16698. { target: null, targets: l, targetGroups: A, firstRenderState: d }
  16699. )
  16700. );
  16701. } else {
  16702. var E = l[0];
  16703. if (g && (g.props.groupable || g.props.individualGroupable)) {
  16704. var y = g.moveables || [],
  16705. b = Kt(y, function (C) {
  16706. return C.props.target === E;
  16707. });
  16708. b && (d = R({}, b.state));
  16709. }
  16710. return _t(
  16711. qr,
  16712. R({ key: 'single', ref: or(this, 'moveable') }, p, {
  16713. target: E,
  16714. firstRenderState: d
  16715. })
  16716. );
  16717. }
  16718. }),
  16719. (r.prototype.componentDidMount = function () {
  16720. this._checkChangeTargets(), this._updateRefs();
  16721. }),
  16722. (r.prototype.componentDidUpdate = function () {
  16723. this._checkChangeTargets();
  16724. }),
  16725. (r.prototype.componentWillUnmount = function () {
  16726. (this.selectorMap = {}), (this.refTargets = []);
  16727. }),
  16728. (r.prototype.getTargets = function () {
  16729. var e, n;
  16730. return (n =
  16731. (e = this.moveable) === null || e === void 0
  16732. ? void 0
  16733. : e.getTargets()) !== null && n !== void 0
  16734. ? n
  16735. : [];
  16736. }),
  16737. (r.prototype.updateSelectors = function () {
  16738. (this.selectorMap = {}), this._updateRefs();
  16739. }),
  16740. (r.prototype.waitToChangeTarget = function () {
  16741. var e = this,
  16742. n;
  16743. return (
  16744. (this._onChangeTargets = function () {
  16745. (e._onChangeTargets = null), n();
  16746. }),
  16747. new Promise(function (a) {
  16748. n = a;
  16749. })
  16750. );
  16751. }),
  16752. (r.prototype.waitToChangeTargets = function () {
  16753. return this.waitToChangeTarget();
  16754. }),
  16755. (r.prototype.getManager = function () {
  16756. return this.moveable;
  16757. }),
  16758. (r.prototype._updateRefs = function (e) {
  16759. var n = this.refTargets,
  16760. a = Wa(this.props.target || this.props.targets),
  16761. i = typeof document < 'u',
  16762. o = Js(n, a),
  16763. s = this.selectorMap,
  16764. u = {};
  16765. return (
  16766. this.refTargets.forEach(function l(f) {
  16767. if (Wt(f)) {
  16768. var c = s[f];
  16769. c
  16770. ? (u[f] = s[f])
  16771. : i &&
  16772. ((o = !0),
  16773. (u[f] = [].slice.call(document.querySelectorAll(f))));
  16774. } else Rt(f) && f.forEach(l);
  16775. }),
  16776. (this.refTargets = a),
  16777. (this.selectorMap = u),
  16778. !e && o && this.forceUpdate(),
  16779. a
  16780. );
  16781. }),
  16782. (r.prototype._checkChangeTargets = function () {
  16783. var e,
  16784. n,
  16785. a,
  16786. i = this._differ.update(this._elementTargets),
  16787. o = i.added,
  16788. s = i.removed,
  16789. u = o.length || s.length;
  16790. u &&
  16791. ((n = (e = this.props).onChangeTargets) === null ||
  16792. n === void 0 ||
  16793. n.call(e, {
  16794. moveable: this.moveable,
  16795. targets: this._elementTargets
  16796. }),
  16797. (a = this._onChangeTargets) === null || a === void 0 || a.call(this)),
  16798. this._updateRefs();
  16799. }),
  16800. (r.defaultAbles = []),
  16801. (r.customStyledMap = {}),
  16802. (r.defaultStyled = null),
  16803. gv([Gf(Qo)], r.prototype, 'moveable', void 0),
  16804. r
  16805. );
  16806. })(mo),
  16807. Vd = (function (t) {
  16808. Ee(r, t);
  16809. function r() {
  16810. return (t !== null && t.apply(this, arguments)) || this;
  16811. }
  16812. return (r.defaultAbles = Ja), r;
  16813. })(Ud),
  16814. fa = function (t, r) {
  16815. return (
  16816. (fa =
  16817. Object.setPrototypeOf ||
  16818. ({ __proto__: [] } instanceof Array &&
  16819. function (e, n) {
  16820. e.__proto__ = n;
  16821. }) ||
  16822. function (e, n) {
  16823. for (var a in n)
  16824. Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
  16825. }),
  16826. fa(t, r)
  16827. );
  16828. };
  16829. function ja(t, r) {
  16830. if (typeof r != 'function' && r !== null)
  16831. throw new TypeError(
  16832. 'Class extends value ' + String(r) + ' is not a constructor or null'
  16833. );
  16834. fa(t, r);
  16835. function e() {
  16836. this.constructor = t;
  16837. }
  16838. t.prototype =
  16839. r === null ? Object.create(r) : ((e.prototype = r.prototype), new e());
  16840. }
  16841. var de = function () {
  16842. return (
  16843. (de =
  16844. Object.assign ||
  16845. function (r) {
  16846. for (var e, n = 1, a = arguments.length; n < a; n++) {
  16847. e = arguments[n];
  16848. for (var i in e)
  16849. Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
  16850. }
  16851. return r;
  16852. }),
  16853. de.apply(this, arguments)
  16854. );
  16855. };
  16856. function Wd(t, r, e, n) {
  16857. var a = arguments.length,
  16858. i =
  16859. a < 3 ? r : n === null ? (n = Object.getOwnPropertyDescriptor(r, e)) : n,
  16860. o;
  16861. if (typeof Reflect == 'object' && typeof Reflect.decorate == 'function')
  16862. i = Reflect.decorate(t, r, e, n);
  16863. else
  16864. for (var s = t.length - 1; s >= 0; s--)
  16865. (o = t[s]) && (i = (a < 3 ? o(i) : a > 3 ? o(r, e, i) : o(r, e)) || i);
  16866. return a > 3 && i && Object.defineProperty(r, e, i), i;
  16867. }
  16868. var Yd = (function (t) {
  16869. ja(r, t);
  16870. function r(n) {
  16871. var a = t.call(this, n) || this;
  16872. return (a.state = {}), (a.state = a.props), a;
  16873. }
  16874. var e = r.prototype;
  16875. return (
  16876. (e.render = function () {
  16877. return _t(Vd, de({ ref: or(this, 'moveable') }, this.state));
  16878. }),
  16879. r
  16880. );
  16881. })(Ea),
  16882. Qd = Fd,
  16883. Xd = Qo,
  16884. qd = Nd,
  16885. Kd = (function (t) {
  16886. ja(r, t);
  16887. function r(n, a) {
  16888. a === void 0 && (a = {});
  16889. var i = t.call(this) || this;
  16890. (i.containerProvider = null), (i.selfElement = null), (i._warp = !1);
  16891. var o = de({}, a),
  16892. s = {};
  16893. qd.forEach(function (f) {
  16894. s[Qf('on '.concat(f))] = function (c) {
  16895. return i.trigger(f, c);
  16896. };
  16897. });
  16898. var u;
  16899. a.warpSelf
  16900. ? (delete a.warpSelf, (i._warp = !0), (u = n))
  16901. : ((u = Jr(n).createElement('div')), n.appendChild(u)),
  16902. (i.containerProvider = hi(
  16903. _t(Yd, de({ ref: or(i, 'innerMoveable') }, o, s)),
  16904. u
  16905. )),
  16906. (i.selfElement = u);
  16907. var l = o.target;
  16908. return Rt(l) && l.length > 1 && i.updateRect(), i;
  16909. }
  16910. var e = r.prototype;
  16911. return (
  16912. (e.setState = function (n, a) {
  16913. this.innerMoveable.setState(n, a);
  16914. }),
  16915. (e.forceUpdate = function (n) {
  16916. this.innerMoveable.forceUpdate(n);
  16917. }),
  16918. (e.dragStart = function (n) {
  16919. var a = this.innerMoveable;
  16920. a.$_timer && this.forceUpdate(), this.getMoveable().dragStart(n);
  16921. }),
  16922. (e.destroy = function () {
  16923. var n,
  16924. a = this.selfElement;
  16925. hi(null, a, this.containerProvider),
  16926. this._warp ||
  16927. (n = a == null ? void 0 : a.parentElement) === null ||
  16928. n === void 0 ||
  16929. n.removeChild(a),
  16930. (this.containerProvider = null),
  16931. this.off(),
  16932. (this.selfElement = null),
  16933. (this.innerMoveable = null);
  16934. }),
  16935. (e.getMoveable = function () {
  16936. return this.innerMoveable.moveable;
  16937. }),
  16938. (r = Wd(
  16939. [
  16940. si(Xd, function (n, a) {
  16941. n[a] ||
  16942. (n[a] = function () {
  16943. for (var i = [], o = 0; o < arguments.length; o++)
  16944. i[o] = arguments[o];
  16945. var s = this.getMoveable();
  16946. if (!(!s || !s[a])) return s[a].apply(s, i);
  16947. });
  16948. }),
  16949. si(Qd, function (n, a) {
  16950. Object.defineProperty(n, a, {
  16951. get: function () {
  16952. return this.getMoveable().props[a];
  16953. },
  16954. set: function (i) {
  16955. var o;
  16956. this.setState(((o = {}), (o[a] = i), o));
  16957. },
  16958. enumerable: !0,
  16959. configurable: !0
  16960. });
  16961. })
  16962. ],
  16963. r
  16964. )),
  16965. r
  16966. );
  16967. })(sn),
  16968. Jd = (function (t) {
  16969. ja(r, t);
  16970. function r() {
  16971. return (t !== null && t.apply(this, arguments)) || this;
  16972. }
  16973. return r;
  16974. })(Kd);
  16975. const jd =
  16976. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAADaxJREFUeF7tXQ2QVVUd/523q+iyT6EkYdnGnGGMqbEsv7Ks1AkqI4EsywKTDIKyD5nUhoCIjxBCpC8TyDBFbfoSphQFDRpsZKMZM8NMPpatu7swA4K7y7LL7r5/87/vnOXs4Zx773t7d99l976Znb3vvfvuPef/O///7/9x7jkCMbyI6OyGVoyjHK4VhLEEjBHAcBLIgnBmDLdIziUETghCMwFHBLCHBF4VGWytqsAWIcTx3jZUFHuBo0TDW45hoiBMBDCeCBXFXmsg/E4ItALYTAIbK4di4zAhjhTTr4IBaSCqyLVgtiDcRUC2mJsO9N8IoJkElmcqsbJKCAYq8isyIERU1tiM23ICC0AYFfkOg/lEgcYMYcGoLB4UQnRFEUUkQA610uj2Tmwg4LIoF03P6SkBAfx9SDkmnVch6sNkEwrIgVa6srMLT6RaESbKkO8FGsvLMHlkhagJOjMQkIYWmpIjrAXhrF42J/05S0CgLSMwvapSrHcJxAmID0YOj6SSjF8CmQymukCxAiLN1LZUM+IHw7+iQFt5Ga6xma9TAGECb+vCzpQz+ggMdVmBxrPKcLlJ9D0AYde2oRk7Um+qj8GQl2fvqyqL9+kucQ9AGppoRg5Y3T/NSe/CEsgAX6k6R6w5qTjySEbge1JT1c8DhYPHSoxREX23hnjNNBeERf3cnPR2eZKfV50Vi/OHADhReKwZdWluqjTjg3NfQ7O4gBOSPiBeC92KHNaVpjnpXX0JZDCtulI85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mwi19U5QFQvneD1YzXSCznP9Xs9NlHnyOtXnQV86nxgiMooFCrJmM6PHZCY2jVoL5MCkjDoU0ASB0i6CGZyIOFFMNNlYpOEBy8Tmy6knBxEAH8h5XSp8YRAkl9qPF2MPyFw+DHaqnS7iuTAkd+uIt3QJRmIdG/ows1JtzwqPSjdWx5xU9JNwUoPSI9NwdJt80oLyCnb5vlakm4sWTpUzI0luSXp1qslwsO19aoPSro5cb+j4tyc2K/TpNt39ysgodt3c2vSDe77CZMoG9yrphxopSs7u7AN5D8NmL7iloBAW3kZrhlZIWrMSzvnvDS00JRcDo/E3Zb0ekAmg6lVlWK9TRaBk5B8UAhrU02JaRgJtGUEprvA4LuEzgqT5usJkL8gRvoqVgICjeVlmGwzU/olQwFRRN/eCV5Biuetp68CJcDe1JByTDqvQtSH/TQSIMolbmzGbTmBBam2hIlVfs9BH2HBqCweFEKo5aIDfxwZEHUVGdHPFoS7CMhGbNqgOo1zUySwPFOJlVVC8LqpkV8FA6KuzAnJlmNcUMFEAOOJ/Ec5B+2L6xkANpPAxsqh2DhMCPVkfUEyKRoQ/S5+kasV4yiHawVhLAFjBDCcBLIDbp9dnqpD4BXhjwhgDwm8KjLYWlWBLUII3uOhV6//A2nUuK3w7m5SAAAAAElFTkSuQmCC',
  16977. Zd = '' + new URL('toolbox-b154b72c.png', import.meta.url).href,
  16978. _d = '' + new URL('setTimeIcon-7c3b5a37.png', import.meta.url).href,
  16979. $d = '' + new URL('beatIcon-902ff81a.png', import.meta.url).href,
  16980. tg = '' + new URL('toneIcon-f58dd6e3.png', import.meta.url).href,
  16981. rg =
  16982. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAB71BMVEUAAAD/9d3//+X/9tz/9t3/9t3/9tz/9dz/9tz/9t3/9dz/9tz/9t3/99z/9dz/99z/997/9d7/9t//9uP//+H/9dz/////vjn/pSX/wTv/si//oCH/mBv/hw7/ry3/tDD/qSj/lBn/iRH/hA3/nR//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0kEYYmZ+wQYOMgmLYZjxvCABZd1Ew60v3VTbVorFMPYQBemCFOSuxKWImA2LxSeXlKSjoN1evBeTjc5163O5653DjIIWrwYbnWZbtuubcUBAsqBgB+L9fDDdfJ7N5xsv4Xjzw9Jw8znVNvrhND9ONpvJcX46vE7Nt9GtHAhYOdqwckhj47jJysGZlSNAG4eZVo5lbRww2zgqt3Lob+P6go2LGDaulNi4HGPjmo+FC0s2rl5Zv0Rm5TrcH7lNubIoVSvAAAAAAElFTkSuQmCC',
  16987. Ig = Kr({
  16988. name: 'layoutView',
  16989. setup() {
  16990. const t = ca(),
  16991. r = dt(!1),
  16992. e = dt({}),
  16993. n = dt('left'),
  16994. a = dt(!1),
  16995. i = dt(!1),
  16996. o = dt(!1),
  16997. s = dt(!1);
  16998. dt(!1), pu();
  16999. const u = wr({
  17000. isBoundary: !1,
  17001. isBoundaryType: '',
  17002. mainWidth: '',
  17003. mainHeight: '',
  17004. subWidth: '',
  17005. subHeight: ''
  17006. });
  17007. wr({
  17008. isBoundary: !0,
  17009. isBoundaryType: 'right',
  17010. mainWidth: '',
  17011. mainHeight: '',
  17012. subWidth: '',
  17013. subHeight: ''
  17014. });
  17015. const l = to(),
  17016. f = dt(!1),
  17017. c = dt(),
  17018. v = async () => {
  17019. document.querySelector('.wrap') &&
  17020. new Jd(document.querySelector('.wrap'), {
  17021. target: document.querySelector('#moveNPopover'),
  17022. container: document.querySelector('.wrap'),
  17023. draggable: !0,
  17024. resizable: !1,
  17025. scalable: !1,
  17026. rotatable: !1,
  17027. warpable: !1,
  17028. pinchable: !1,
  17029. origin: !1,
  17030. keepRatio: !1,
  17031. edge: !1,
  17032. throttleDrag: 0,
  17033. throttleResize: 0,
  17034. throttleScale: 0,
  17035. throttleRotate: 0
  17036. })
  17037. .on(
  17038. 'drag',
  17039. ({ target: D, left: x, top: w, right: T, bottom: I }) => {
  17040. (f.value = !0), c.value && c.value.setShow(!1);
  17041. const M = document.getElementById('moveNPopover'),
  17042. O = getComputedStyle(M, null),
  17043. P = {
  17044. left: Number(O.left.replace('px', '')),
  17045. top: Number(O.top.replace('px', '')),
  17046. width: Number(O.width.replace('px', '')),
  17047. height: Number(O.height.replace('px', ''))
  17048. },
  17049. z =
  17050. parseInt(
  17051. window.getComputedStyle(document.querySelector('.wrap'))
  17052. .width
  17053. ) - P.width,
  17054. H =
  17055. parseInt(
  17056. window.getComputedStyle(document.querySelector('.wrap'))
  17057. .height
  17058. ) - P.height;
  17059. (M.style.transition = ''),
  17060. (u.isBoundary = !1),
  17061. (u.isBoundaryType = ''),
  17062. (u.mainHeight = H),
  17063. (u.mainWidth = z),
  17064. (u.subWidth = P.width),
  17065. (u.subHeight = P.height),
  17066. x < 0 &&
  17067. ((x = 2),
  17068. (u.isBoundary = !0),
  17069. (u.isBoundaryType = 'left')),
  17070. w < 0 &&
  17071. ((w = 2),
  17072. (u.isBoundary = !0),
  17073. (u.isBoundaryType = 'top')),
  17074. T < 0 && (T = 2),
  17075. I < 0 && (I = 2),
  17076. x > z - 2 &&
  17077. ((x = z - 2),
  17078. (u.isBoundary = !0),
  17079. (u.isBoundaryType = 'right')),
  17080. w > H - 2 &&
  17081. ((w = H - 2),
  17082. (u.isBoundary = !0),
  17083. (u.isBoundaryType = 'bottom')),
  17084. (D.style.left = ''.concat(x, 'px')),
  17085. (D.style.top = ''.concat(w, 'px'));
  17086. }
  17087. )
  17088. .on('dragEnd', async ({ target: D, clientX: x }) => {
  17089. document.body.clientWidth / 2 - x > 0
  17090. ? (n.value = 'right')
  17091. : (n.value = 'left'),
  17092. (f.value = !1),
  17093. u.isBoundary &&
  17094. ((D.style.transition = '.3s'), y(D, u.isBoundaryType));
  17095. });
  17096. };
  17097. $i(
  17098. () => l.path,
  17099. S => {
  17100. const D = document.getElementById('WrapcoreViewWrap');
  17101. D && (D.scrollTo(0, 0), window.scrollTo(0, 0));
  17102. }
  17103. );
  17104. const p = wr({ baseListTab: '' }),
  17105. d = ni(() => {
  17106. const S = l.path,
  17107. D = [
  17108. '/classDetail',
  17109. '/classStudentDetail',
  17110. '/notation',
  17111. '/xiaoku-ai'
  17112. ];
  17113. return l.path === '/setting'
  17114. ? p.baseListTab === 'school'
  17115. : !D.includes(S);
  17116. }),
  17117. g = ni(() => {
  17118. const S = l.path;
  17119. return (
  17120. console.log(S, 'routePath', S), !['/prepare-lessons'].includes(S)
  17121. );
  17122. });
  17123. en(() => {
  17124. v();
  17125. const S = document.getElementById('moveNPopover');
  17126. A(S, u),
  17127. b(S, u),
  17128. window.addEventListener('resize', h),
  17129. ai.on('base-setting-emit', D => {
  17130. p.baseListTab = D;
  17131. });
  17132. });
  17133. const h = () => {
  17134. const S = document.getElementById('moveNPopover');
  17135. (S.style.display = 'none'),
  17136. c.value && c.value.setShow(!1),
  17137. setTimeout(() => {
  17138. (S.style.transition = ''),
  17139. b(S, u),
  17140. A(S, u),
  17141. console.log('resize'),
  17142. (S.style.display = 'block');
  17143. }, 100);
  17144. };
  17145. du(() => {
  17146. window.removeEventListener('resize', h);
  17147. });
  17148. const A = (S, D) => {
  17149. S.addEventListener('mouseover', () => {
  17150. D.isBoundary &&
  17151. (D.isBoundaryType == 'left'
  17152. ? (S.style.left = '2px')
  17153. : D.isBoundaryType == 'right'
  17154. ? (S.style.left = ''.concat(D.mainWidth - 2, 'px'))
  17155. : D.isBoundaryType == 'top'
  17156. ? (S.style.top = '2px')
  17157. : D.isBoundaryType == 'bottom' &&
  17158. (S.style.top = ''.concat(D.mainHeight - 2, 'px'))),
  17159. E(S, 0);
  17160. }),
  17161. S.addEventListener('mouseout', () => {
  17162. D.isBoundary &&
  17163. (D.isBoundaryType == 'left'
  17164. ? y(S, 'left')
  17165. : D.isBoundaryType == 'right'
  17166. ? y(S, 'right')
  17167. : D.isBoundaryType == 'top'
  17168. ? y(S, 'top')
  17169. : D.isBoundaryType == 'bottom' && y(S, 'bottom'));
  17170. });
  17171. },
  17172. m = S => {
  17173. S == 'setTimeIcon' && (s.value = !0),
  17174. S == 'beatIcon' && (i.value = !0),
  17175. S == 'toneIcon' && (o.value = !0),
  17176. S == 'iconNote' &&
  17177. (c.value && c.value.setShow(!1),
  17178. console.log(l.name, 'guideInfo'),
  17179. ai.emit('teacher-guideInfo', l.name)),
  17180. S == 'iconWhiteBorad' &&
  17181. ((C.whiteboardShow = !0),
  17182. (C.type = 'whiteboard'),
  17183. (C.homeStatus = !1),
  17184. c.value && c.value.setShow(!1)),
  17185. S == 'iconPen' &&
  17186. ((C.penShow = !0),
  17187. (C.type = 'pen'),
  17188. (C.homeStatus = !1),
  17189. c.value && c.value.setShow(!1));
  17190. },
  17191. E = (S, D) => {
  17192. S.style.transform = ' rotate(' + D + ')';
  17193. },
  17194. y = (S, D) => {
  17195. switch (D) {
  17196. case 'left':
  17197. E(S, '90deg'),
  17198. (S.style.left = ''.concat(2 - u.subWidth / 2, 'px')),
  17199. (S.style.top = ''.concat(top, 'px'));
  17200. break;
  17201. case 'right':
  17202. E(S, '-90deg'),
  17203. (S.style.left = ''.concat(
  17204. u.mainWidth - 2 + u.subWidth / 2,
  17205. 'px'
  17206. )),
  17207. (S.style.top = ''.concat(top, 'px'));
  17208. break;
  17209. case 'top':
  17210. (S.style.top = ''.concat(2 - u.subHeight / 2, 'px')),
  17211. E(S, '-180deg');
  17212. break;
  17213. case 'bottom':
  17214. S.style.top = ''.concat(u.mainHeight - 2 + u.subHeight / 2, 'px');
  17215. break;
  17216. default:
  17217. E(S, '-0');
  17218. break;
  17219. }
  17220. },
  17221. b = (S, D) => {
  17222. const x = getComputedStyle(S, null),
  17223. w = {
  17224. left: Number(x.left.replace('px', '')),
  17225. top: Number(x.top.replace('px', '')),
  17226. width: Number(x.width.replace('px', '')),
  17227. height: Number(x.height.replace('px', ''))
  17228. },
  17229. T =
  17230. parseInt(
  17231. window.getComputedStyle(document.querySelector('.wrap')).width
  17232. ) - w.width,
  17233. I =
  17234. parseInt(
  17235. window.getComputedStyle(document.querySelector('.wrap')).height
  17236. ) - w.height;
  17237. (D.mainHeight = I),
  17238. (D.mainWidth = T),
  17239. (D.subWidth = w.width),
  17240. (D.subHeight = w.height),
  17241. (S.style.transition = '.3s .3s');
  17242. },
  17243. C = wr({ homeStatus: !0, type: '', penShow: !1, whiteboardShow: !1 });
  17244. return () =>
  17245. k('div', { class: [q.wrap, 'wrap'] }, [
  17246. k('div', null, [k(Vl, null, null)]),
  17247. k('div', { class: q.Wrapcore }, [
  17248. k(Of, null, null),
  17249. k('div', { class: q.WrapcoreView, id: 'WrapcoreViewWrap' }, [
  17250. k(gu('router-view'), null, {
  17251. default: S =>
  17252. k(
  17253. hu,
  17254. { name: 'fade-slide', mode: 'out-in' },
  17255. { default: () => [k(S.Component, null, null)] }
  17256. )
  17257. })
  17258. ])
  17259. ]),
  17260. k(
  17261. ro,
  17262. {
  17263. raw: !0,
  17264. trigger: 'click',
  17265. ref: c,
  17266. 'show-arrow': !1,
  17267. placement: n.value
  17268. },
  17269. {
  17270. default: () => [
  17271. k('div', { class: q.booxToolWrap }, [
  17272. k('div', null, [
  17273. k(
  17274. 'div',
  17275. { class: q.booxToolItem, onClick: () => m('beatIcon') },
  17276. [k('img', { src: $d, alt: '' }, null), Gt('节拍器')]
  17277. ),
  17278. k(
  17279. 'div',
  17280. { class: q.booxToolItem, onClick: () => m('toneIcon') },
  17281. [k('img', { src: tg, alt: '' }, null), Gt('调音器')]
  17282. ),
  17283. k(
  17284. 'div',
  17285. {
  17286. class: q.booxToolItem,
  17287. onClick: () => m('setTimeIcon')
  17288. },
  17289. [k('img', { src: _d, alt: '' }, null), Gt('计时器')]
  17290. ),
  17291. k(
  17292. 'div',
  17293. {
  17294. class: [q.booxToolItem, !g.value && q.booxToolDisabled],
  17295. onClick: () => {
  17296. g.value && (a.value = !0);
  17297. }
  17298. },
  17299. [
  17300. k(
  17301. 'img',
  17302. { src: jd, class: [q.toolClassImg], alt: '' },
  17303. null
  17304. ),
  17305. Gt('开始上课')
  17306. ]
  17307. )
  17308. ]),
  17309. k('div', null, [
  17310. k(
  17311. 'div',
  17312. {
  17313. class: [q.booxToolItem, !d.value && q.booxToolDisabled],
  17314. onClick: () => {
  17315. d.value && m('iconNote');
  17316. }
  17317. },
  17318. [k('img', { src: ng, alt: '' }, null), Gt('帮助指引')]
  17319. ),
  17320. k(
  17321. 'div',
  17322. { class: q.booxToolItem, onClick: () => m('iconPen') },
  17323. [k('img', { src: rg, alt: '' }, null), Gt('批注')]
  17324. ),
  17325. k(
  17326. 'div',
  17327. {
  17328. class: q.booxToolItem,
  17329. onClick: () => m('iconWhiteBorad')
  17330. },
  17331. [k('img', { src: eg, alt: '' }, null), Gt('白板')]
  17332. )
  17333. ])
  17334. ])
  17335. ],
  17336. trigger: () =>
  17337. k(
  17338. 'img',
  17339. {
  17340. src: Zd,
  17341. id: 'moveNPopover',
  17342. style: { display: C.homeStatus ? 'block' : 'none' },
  17343. class: [
  17344. q.toolboxImg,
  17345. 'moveNPopover',
  17346. f.value ? q.isDragIng : ''
  17347. ],
  17348. alt: ''
  17349. },
  17350. null
  17351. )
  17352. }
  17353. ),
  17354. C.penShow &&
  17355. k(
  17356. oi,
  17357. {
  17358. show: C.type === 'pen',
  17359. type: C.type,
  17360. close: () => {
  17361. (C.type = 'init'), (C.homeStatus = !0);
  17362. }
  17363. },
  17364. null
  17365. ),
  17366. C.whiteboardShow &&
  17367. k(
  17368. oi,
  17369. {
  17370. show: C.type === 'whiteboard',
  17371. type: C.type,
  17372. close: () => {
  17373. (C.type = 'init'), (C.homeStatus = !0);
  17374. }
  17375. },
  17376. null
  17377. ),
  17378. k(
  17379. Rr,
  17380. {
  17381. class: ['modalTitle background'],
  17382. style: { width: '687px' },
  17383. title: '节拍器',
  17384. preset: 'card',
  17385. show: i.value,
  17386. 'onUpdate:show': S => (i.value = S)
  17387. },
  17388. {
  17389. default: () => [
  17390. k('div', { class: q.modeWrap }, [
  17391. k(
  17392. 'iframe',
  17393. {
  17394. src: ''
  17395. .concat(Du(), '/metronome/?id=')
  17396. .concat(new Date().getTime()),
  17397. scrolling: 'no',
  17398. frameborder: '0',
  17399. width: '100%',
  17400. height: '650px'
  17401. },
  17402. null
  17403. )
  17404. ])
  17405. ]
  17406. }
  17407. ),
  17408. k(
  17409. Rr,
  17410. {
  17411. show: o.value,
  17412. 'onUpdate:show': S => (o.value = S),
  17413. class: ['background']
  17414. },
  17415. {
  17416. default: () => [
  17417. k('div', null, [
  17418. k(
  17419. Eu,
  17420. {
  17421. onClose: () => {
  17422. o.value = !1;
  17423. }
  17424. },
  17425. null
  17426. )
  17427. ])
  17428. ]
  17429. }
  17430. ),
  17431. k(
  17432. Rr,
  17433. {
  17434. show: s.value,
  17435. 'onUpdate:show': S => (s.value = S),
  17436. class: ['modalTitle background'],
  17437. title: '计时器',
  17438. preset: 'card',
  17439. style: { width: Au(772) }
  17440. },
  17441. { default: () => [k('div', null, [k(yu, null, null)])] }
  17442. ),
  17443. k(
  17444. Rr,
  17445. {
  17446. show: a.value,
  17447. 'onUpdate:show': S => (a.value = S),
  17448. class: ['modalTitle background', q.showClass],
  17449. preset: 'card',
  17450. title: '开始上课'
  17451. },
  17452. {
  17453. default: () => [
  17454. k(
  17455. xu,
  17456. {
  17457. onClose: () => (a.value = !1),
  17458. type: 'change',
  17459. onConfirm: S => {
  17460. (a.value = !1),
  17461. t.push({ path: '/prepare-lessons', query: { ...S } });
  17462. }
  17463. },
  17464. null
  17465. )
  17466. ]
  17467. }
  17468. ),
  17469. k(
  17470. bu,
  17471. {
  17472. show: r.value,
  17473. 'onUpdate:show': S => (r.value = S),
  17474. type: 'attend',
  17475. params: e.value
  17476. },
  17477. null
  17478. )
  17479. ]);
  17480. }
  17481. });
  17482. export { Ig as default };