vendor-legacy.9ba3db9d.js 1.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835
  1. ;(function(){var _excluded=["trigger"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty2(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _inherits2(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf2(subClass,superClass);}function _createSuper2(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct2();return function _createSuperInternal(){var Super=_getPrototypeOf2(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf2(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn2(this,result);};}function _possibleConstructorReturn2(self,call){if(call&&(_typeof2(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized2(self);}function _assertThisInitialized2(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _wrapNativeSuper2(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper2=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction2(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct2(Class,arguments,_getPrototypeOf2(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf2(Wrapper,Class);};return _wrapNativeSuper2(Class);}function _construct2(Parent,args,Class){if(_isNativeReflectConstruct2()){_construct2=Reflect.construct;}else{_construct2=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf2(instance,Class.prototype);return instance;};}return _construct2.apply(null,arguments);}function _isNativeReflectConstruct2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _isNativeFunction2(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _setPrototypeOf2(o,p){_setPrototypeOf2=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf2(o,p);}function _getPrototypeOf2(o){_getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf2(o);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray2(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _classCallCheck2(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass2(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _typeof2(obj){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof2(obj);}function _defineProperty2(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray2(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _toConsumableArray2(arr){return _arrayWithoutHoles2(arr)||_iterableToArray2(arr)||_unsupportedIterableToArray2(arr)||_nonIterableSpread2();}function _nonIterableSpread2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray2(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray2(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(o,minLen);}function _iterableToArray2(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles2(arr){if(Array.isArray(arr))return _arrayLikeToArray2(arr);}function _arrayLikeToArray2(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}System.register([],function(exports){'use strict';return{execute:function execute(){var _inputEmits,_checkboxEmits,_radioEmits,_dialogEmits,_tabsEmits;exports({$:resolveComponent,L:createRouter,M:createWebHashHistory,S:watch,U:h,V:ref,X:provide,_:computed,a:createTextVNode,a5:onDeactivated,a9:isVNode,an:onActivated,ao:unref,aq:isRef,ar:inject,at:mergeProps,av:withDirectives,ay:resolveDirective,d:defineComponent,f:useRouter,m:mitt,n:nextTick,r:reactive,t:toRefs,u:useRoute});/**
  2. * Make a map and return a function for checking if a key
  3. * is in that map.
  4. * IMPORTANT: all calls of this function must be prefixed with
  5. * \/\*#\_\_PURE\_\_\*\/
  6. * So that rollup can tree-shake them if necessary.
  7. */function makeMap(str,expectsLowerCase){var map=Object.create(null);var list=str.split(',');for(var _i2=0;_i2<list.length;_i2++){map[list[_i2]]=true;}return expectsLowerCase?function(val){return!!map[val.toLowerCase()];}:function(val){return!!map[val];};}/**
  8. * On the client we only need to offer special cases for boolean attributes that
  9. * have different names from their corresponding dom properties:
  10. * - itemscope -> N/A
  11. * - allowfullscreen -> allowFullscreen
  12. * - formnovalidate -> formNoValidate
  13. * - ismap -> isMap
  14. * - nomodule -> noModule
  15. * - novalidate -> noValidate
  16. * - readonly -> readOnly
  17. */var specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var isSpecialBooleanAttr=/*#__PURE__*/makeMap(specialBooleanAttrs);/**
  18. * Boolean attributes should be included if the value is truthy or ''.
  19. * e.g. `<select multiple>` compiles to `{ multiple: '' }`
  20. */function includeBooleanAttr(value){return!!value||value==='';}function normalizeStyle(value){if(isArray$7(value)){var res={};for(var _i3=0;_i3<value.length;_i3++){var item=value[_i3];var normalized=isString$2(item)?parseStringStyle(item):normalizeStyle(item);if(normalized){for(var key in normalized){res[key]=normalized[key];}}}return res;}else if(isString$2(value)){return value;}else if(isObject$2(value)){return value;}}var listDelimiterRE=/;(?![^(]*\))/g;var propertyDelimiterRE=/:(.+)/;function parseStringStyle(cssText){var ret={};cssText.split(listDelimiterRE).forEach(function(item){if(item){var tmp=item.split(propertyDelimiterRE);tmp.length>1&&(ret[tmp[0].trim()]=tmp[1].trim());}});return ret;}function normalizeClass(value){var res='';if(isString$2(value)){res=value;}else if(isArray$7(value)){for(var _i4=0;_i4<value.length;_i4++){var normalized=normalizeClass(value[_i4]);if(normalized){res+=normalized+' ';}}}else if(isObject$2(value)){for(var name in value){if(value[name]){res+=name+' ';}}}return res.trim();}function normalizeProps(props){if(!props)return null;var klass=props.class,style=props.style;if(klass&&!isString$2(klass)){props.class=normalizeClass(klass);}if(style){props.style=normalizeStyle(style);}return props;}function looseCompareArrays(a,b){if(a.length!==b.length)return false;var equal=true;for(var _i5=0;equal&&_i5<a.length;_i5++){equal=looseEqual(a[_i5],b[_i5]);}return equal;}function looseEqual(a,b){if(a===b)return true;var aValidType=isDate$2(a);var bValidType=isDate$2(b);if(aValidType||bValidType){return aValidType&&bValidType?a.getTime()===b.getTime():false;}aValidType=isArray$7(a);bValidType=isArray$7(b);if(aValidType||bValidType){return aValidType&&bValidType?looseCompareArrays(a,b):false;}aValidType=isObject$2(a);bValidType=isObject$2(b);if(aValidType||bValidType){/* istanbul ignore if: this if will probably never be called */if(!aValidType||!bValidType){return false;}var aKeysCount=Object.keys(a).length;var bKeysCount=Object.keys(b).length;if(aKeysCount!==bKeysCount){return false;}for(var key in a){var aHasKey=a.hasOwnProperty(key);var bHasKey=b.hasOwnProperty(key);if(aHasKey&&!bHasKey||!aHasKey&&bHasKey||!looseEqual(a[key],b[key])){return false;}}}return String(a)===String(b);}function looseIndexOf(arr,val){return arr.findIndex(function(item){return looseEqual(item,val);});}/**
  21. * For converting {{ interpolation }} values to displayed strings.
  22. * @private
  23. */var toDisplayString=function toDisplayString(val){return val==null?'':isArray$7(val)||isObject$2(val)&&(val.toString===objectToString$3||!isFunction$1(val.toString))?JSON.stringify(val,replacer,2):String(val);};var replacer=function replacer(_key,val){// can't use isRef here since @vue/shared has no deps
  24. if(val&&val.__v_isRef){return replacer(_key,val.value);}else if(isMap$3(val)){return _defineProperty2({},"Map(".concat(val.size,")"),_toConsumableArray2(val.entries()).reduce(function(entries,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],val=_ref4[1];entries["".concat(key," =>")]=val;return entries;},{}));}else if(isSet$3(val)){return _defineProperty2({},"Set(".concat(val.size,")"),_toConsumableArray2(val.values()));}else if(isObject$2(val)&&!isArray$7(val)&&!isPlainObject$2(val)){return String(val);}return val;};var EMPTY_OBJ={};var EMPTY_ARR=[];var NOOP=function NOOP(){};/**
  25. * Always return false.
  26. */var NO=function NO(){return false;};var onRE=/^on[^a-z]/;var isOn=function isOn(key){return onRE.test(key);};var isModelListener=function isModelListener(key){return key.startsWith('onUpdate:');};var extend$1=Object.assign;var remove=function remove(arr,el){var i=arr.indexOf(el);if(i>-1){arr.splice(i,1);}};var hasOwnProperty$d=Object.prototype.hasOwnProperty;var hasOwn$2=function hasOwn$2(val,key){return hasOwnProperty$d.call(val,key);};var isArray$7=Array.isArray;var isMap$3=function isMap$3(val){return toTypeString(val)==='[object Map]';};var isSet$3=function isSet$3(val){return toTypeString(val)==='[object Set]';};var isDate$2=function isDate$2(val){return val instanceof Date;};var isFunction$1=function isFunction$1(val){return typeof val==='function';};var isString$2=function isString$2(val){return typeof val==='string';};var isSymbol$2=function isSymbol$2(val){return _typeof2(val)==='symbol';};var isObject$2=function isObject$2(val){return val!==null&&_typeof2(val)==='object';};var isPromise=function isPromise(val){return isObject$2(val)&&isFunction$1(val.then)&&isFunction$1(val.catch);};var objectToString$3=Object.prototype.toString;var toTypeString=function toTypeString(value){return objectToString$3.call(value);};var toRawType=function toRawType(value){// extract "RawType" from strings like "[object RawType]"
  27. return toTypeString(value).slice(8,-1);};var isPlainObject$2=function isPlainObject$2(val){return toTypeString(val)==='[object Object]';};var isIntegerKey=function isIntegerKey(key){return isString$2(key)&&key!=='NaN'&&key[0]!=='-'&&''+parseInt(key,10)===key;};var isReservedProp=/*#__PURE__*/makeMap(// the leading comma is intentional so empty string "" is also included
  28. ',key,ref,ref_for,ref_key,'+'onVnodeBeforeMount,onVnodeMounted,'+'onVnodeBeforeUpdate,onVnodeUpdated,'+'onVnodeBeforeUnmount,onVnodeUnmounted');var cacheStringFunction=function cacheStringFunction(fn){var cache=Object.create(null);return function(str){var hit=cache[str];return hit||(cache[str]=fn(str));};};var camelizeRE=/-(\w)/g;/**
  29. * @private
  30. */var camelize=cacheStringFunction(function(str){return str.replace(camelizeRE,function(_,c){return c?c.toUpperCase():'';});});var hyphenateRE=/\B([A-Z])/g;/**
  31. * @private
  32. */var hyphenate=cacheStringFunction(function(str){return str.replace(hyphenateRE,'-$1').toLowerCase();});/**
  33. * @private
  34. */var capitalize=cacheStringFunction(function(str){return str.charAt(0).toUpperCase()+str.slice(1);});/**
  35. * @private
  36. */var toHandlerKey=cacheStringFunction(function(str){return str?"on".concat(capitalize(str)):"";});// compare whether a value has changed, accounting for NaN.
  37. var hasChanged=function hasChanged(value,oldValue){return!Object.is(value,oldValue);};var invokeArrayFns=function invokeArrayFns(fns,arg){for(var _i6=0;_i6<fns.length;_i6++){fns[_i6](arg);}};var def=function def(obj,key,value){Object.defineProperty(obj,key,{configurable:true,enumerable:false,value:value});};var toNumber$1=function toNumber$1(val){var n=parseFloat(val);return isNaN(n)?val:n;};var _globalThis;var getGlobalThis=function getGlobalThis(){return _globalThis||(_globalThis=typeof globalThis!=='undefined'?globalThis:typeof self!=='undefined'?self:typeof window!=='undefined'?window:typeof global!=='undefined'?global:{});};var activeEffectScope;var effectScopeStack=[];var EffectScope=/*#__PURE__*/function(){function EffectScope(){var detached=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;_classCallCheck2(this,EffectScope);this.active=true;this.effects=[];this.cleanups=[];if(!detached&&activeEffectScope){this.parent=activeEffectScope;this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1;}}_createClass2(EffectScope,[{key:"run",value:function run(fn){if(this.active){try{this.on();return fn();}finally{this.off();}}}},{key:"on",value:function on(){if(this.active){effectScopeStack.push(this);activeEffectScope=this;}}},{key:"off",value:function off(){if(this.active){effectScopeStack.pop();activeEffectScope=effectScopeStack[effectScopeStack.length-1];}}},{key:"stop",value:function stop(fromParent){if(this.active){this.effects.forEach(function(e){return e.stop();});this.cleanups.forEach(function(cleanup){return cleanup();});if(this.scopes){this.scopes.forEach(function(e){return e.stop(true);});}// nested scope, dereference from parent to avoid memory leaks
  38. if(this.parent&&!fromParent){// optimized O(1) removal
  39. var last=this.parent.scopes.pop();if(last&&last!==this){this.parent.scopes[this.index]=last;last.index=this.index;}}this.active=false;}}}]);return EffectScope;}();function effectScope(detached){return new EffectScope(detached);}function recordEffectScope(effect,scope){scope=scope||activeEffectScope;if(scope&&scope.active){scope.effects.push(effect);}}function getCurrentScope(){return activeEffectScope;}function onScopeDispose(fn){if(activeEffectScope){activeEffectScope.cleanups.push(fn);}}var createDep=function createDep(effects){var dep=new Set(effects);dep.w=0;dep.n=0;return dep;};var wasTracked=function wasTracked(dep){return(dep.w&trackOpBit)>0;};var newTracked=function newTracked(dep){return(dep.n&trackOpBit)>0;};var initDepMarkers=function initDepMarkers(_ref7){var deps=_ref7.deps;if(deps.length){for(var _i7=0;_i7<deps.length;_i7++){deps[_i7].w|=trackOpBit;// set was tracked
  40. }}};var finalizeDepMarkers=function finalizeDepMarkers(effect){var deps=effect.deps;if(deps.length){var ptr=0;for(var _i8=0;_i8<deps.length;_i8++){var dep=deps[_i8];if(wasTracked(dep)&&!newTracked(dep)){dep.delete(effect);}else{deps[ptr++]=dep;}// clear bits
  41. dep.w&=~trackOpBit;dep.n&=~trackOpBit;}deps.length=ptr;}};var targetMap=new WeakMap();// The number of effects currently being tracked recursively.
  42. var effectTrackDepth=0;var trackOpBit=1;/**
  43. * The bitwise track markers support at most 30 levels of recursion.
  44. * This value is chosen to enable modern JS engines to use a SMI on all platforms.
  45. * When recursion depth is greater, fall back to using a full cleanup.
  46. */var maxMarkerBits=30;var effectStack=[];var activeEffect;var ITERATE_KEY=Symbol('');var MAP_KEY_ITERATE_KEY=Symbol('');var ReactiveEffect=/*#__PURE__*/function(){function ReactiveEffect(fn){var scheduler=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var scope=arguments.length>2?arguments[2]:undefined;_classCallCheck2(this,ReactiveEffect);this.fn=fn;this.scheduler=scheduler;this.active=true;this.deps=[];recordEffectScope(this,scope);}_createClass2(ReactiveEffect,[{key:"run",value:function run(){if(!this.active){return this.fn();}if(!effectStack.includes(this)){try{effectStack.push(activeEffect=this);enableTracking();trackOpBit=1<<++effectTrackDepth;if(effectTrackDepth<=maxMarkerBits){initDepMarkers(this);}else{cleanupEffect(this);}return this.fn();}finally{if(effectTrackDepth<=maxMarkerBits){finalizeDepMarkers(this);}trackOpBit=1<<--effectTrackDepth;resetTracking();effectStack.pop();var n=effectStack.length;activeEffect=n>0?effectStack[n-1]:undefined;}}}},{key:"stop",value:function stop(){if(this.active){cleanupEffect(this);if(this.onStop){this.onStop();}this.active=false;}}}]);return ReactiveEffect;}();function cleanupEffect(effect){var deps=effect.deps;if(deps.length){for(var _i9=0;_i9<deps.length;_i9++){deps[_i9].delete(effect);}deps.length=0;}}var shouldTrack=true;var trackStack=[];function pauseTracking(){trackStack.push(shouldTrack);shouldTrack=false;}function enableTracking(){trackStack.push(shouldTrack);shouldTrack=true;}function resetTracking(){var last=trackStack.pop();shouldTrack=last===undefined?true:last;}function track(target,type,key){if(!isTracking()){return;}var depsMap=targetMap.get(target);if(!depsMap){targetMap.set(target,depsMap=new Map());}var dep=depsMap.get(key);if(!dep){depsMap.set(key,dep=createDep());}trackEffects(dep);}function isTracking(){return shouldTrack&&activeEffect!==undefined;}function trackEffects(dep,debuggerEventExtraInfo){var shouldTrack=false;if(effectTrackDepth<=maxMarkerBits){if(!newTracked(dep)){dep.n|=trackOpBit;// set newly tracked
  47. shouldTrack=!wasTracked(dep);}}else{// Full cleanup mode.
  48. shouldTrack=!dep.has(activeEffect);}if(shouldTrack){dep.add(activeEffect);activeEffect.deps.push(dep);}}function trigger$1(target,type,key,newValue,oldValue,oldTarget){var depsMap=targetMap.get(target);if(!depsMap){// never been tracked
  49. return;}var deps=[];if(type==="clear"/* CLEAR */){// collection being cleared
  50. // trigger all effects for target
  51. deps=_toConsumableArray2(depsMap.values());}else if(key==='length'&&isArray$7(target)){depsMap.forEach(function(dep,key){if(key==='length'||key>=newValue){deps.push(dep);}});}else{// schedule runs for SET | ADD | DELETE
  52. if(key!==void 0){deps.push(depsMap.get(key));}// also run for iteration key on ADD | DELETE | Map.SET
  53. switch(type){case"add"/* ADD */:if(!isArray$7(target)){deps.push(depsMap.get(ITERATE_KEY));if(isMap$3(target)){deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));}}else if(isIntegerKey(key)){// new index added to array -> length changes
  54. deps.push(depsMap.get('length'));}break;case"delete"/* DELETE */:if(!isArray$7(target)){deps.push(depsMap.get(ITERATE_KEY));if(isMap$3(target)){deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));}}break;case"set"/* SET */:if(isMap$3(target)){deps.push(depsMap.get(ITERATE_KEY));}break;}}if(deps.length===1){if(deps[0]){{triggerEffects(deps[0]);}}}else{var effects=[];var _iterator=_createForOfIteratorHelper(deps),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var dep=_step.value;if(dep){effects.push.apply(effects,_toConsumableArray2(dep));}}}catch(err){_iterator.e(err);}finally{_iterator.f();}{triggerEffects(createDep(effects));}}}function triggerEffects(dep,debuggerEventExtraInfo){// spread into array for stabilization
  55. var _iterator2=_createForOfIteratorHelper(isArray$7(dep)?dep:_toConsumableArray2(dep)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var effect=_step2.value;if(effect!==activeEffect||effect.allowRecurse){if(effect.scheduler){effect.scheduler();}else{effect.run();}}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}var isNonTrackableKeys=/*#__PURE__*/makeMap("__proto__,__v_isRef,__isVue");var builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(function(key){return Symbol[key];}).filter(isSymbol$2));var get$1=/*#__PURE__*/createGetter();var shallowGet=/*#__PURE__*/createGetter(false,true);var readonlyGet=/*#__PURE__*/createGetter(true);var arrayInstrumentations=/*#__PURE__*/createArrayInstrumentations();function createArrayInstrumentations(){var instrumentations={};['includes','indexOf','lastIndexOf'].forEach(function(key){instrumentations[key]=function(){var arr=toRaw(this);for(var _i10=0,l=this.length;_i10<l;_i10++){track(arr,"get"/* GET */,_i10+'');}// we run the method using the original args first (which may be reactive)
  56. for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}var res=arr[key].apply(arr,args);if(res===-1||res===false){// if that didn't work, run it again using raw values.
  57. return arr[key].apply(arr,_toConsumableArray2(args.map(toRaw)));}else{return res;}};});['push','pop','shift','unshift','splice'].forEach(function(key){instrumentations[key]=function(){pauseTracking();for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3];}var res=toRaw(this)[key].apply(this,args);resetTracking();return res;};});return instrumentations;}function createGetter(){var isReadonly=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var shallow=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return function get(target,key,receiver){if(key==="__v_isReactive"/* IS_REACTIVE */){return!isReadonly;}else if(key==="__v_isReadonly"/* IS_READONLY */){return isReadonly;}else if(key==="__v_raw"/* RAW */&&receiver===(isReadonly?shallow?shallowReadonlyMap:readonlyMap:shallow?shallowReactiveMap:reactiveMap).get(target)){return target;}var targetIsArray=isArray$7(target);if(!isReadonly&&targetIsArray&&hasOwn$2(arrayInstrumentations,key)){return Reflect.get(arrayInstrumentations,key,receiver);}var res=Reflect.get(target,key,receiver);if(isSymbol$2(key)?builtInSymbols.has(key):isNonTrackableKeys(key)){return res;}if(!isReadonly){track(target,"get"/* GET */,key);}if(shallow){return res;}if(isRef(res)){// ref unwrapping - does not apply for Array + integer key.
  58. var shouldUnwrap=!targetIsArray||!isIntegerKey(key);return shouldUnwrap?res.value:res;}if(isObject$2(res)){// Convert returned value into a proxy as well. we do the isObject check
  59. // here to avoid invalid value warning. Also need to lazy access readonly
  60. // and reactive here to avoid circular dependency.
  61. return isReadonly?readonly(res):reactive(res);}return res;};}var set$1=/*#__PURE__*/createSetter();var shallowSet=/*#__PURE__*/createSetter(true);function createSetter(){var shallow=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;return function set(target,key,value,receiver){var oldValue=target[key];if(!shallow&&!isReadonly(value)){value=toRaw(value);oldValue=toRaw(oldValue);if(!isArray$7(target)&&isRef(oldValue)&&!isRef(value)){oldValue.value=value;return true;}}var hadKey=isArray$7(target)&&isIntegerKey(key)?Number(key)<target.length:hasOwn$2(target,key);var result=Reflect.set(target,key,value,receiver);// don't trigger if target is something up in the prototype chain of original
  62. if(target===toRaw(receiver)){if(!hadKey){trigger$1(target,"add"/* ADD */,key,value);}else if(hasChanged(value,oldValue)){trigger$1(target,"set"/* SET */,key,value);}}return result;};}function deleteProperty(target,key){var hadKey=hasOwn$2(target,key);target[key];var result=Reflect.deleteProperty(target,key);if(result&&hadKey){trigger$1(target,"delete"/* DELETE */,key,undefined);}return result;}function has$4(target,key){var result=Reflect.has(target,key);if(!isSymbol$2(key)||!builtInSymbols.has(key)){track(target,"has"/* HAS */,key);}return result;}function ownKeys$1(target){track(target,"iterate"/* ITERATE */,isArray$7(target)?'length':ITERATE_KEY);return Reflect.ownKeys(target);}var mutableHandlers={get:get$1,set:set$1,deleteProperty:deleteProperty,has:has$4,ownKeys:ownKeys$1};var readonlyHandlers={get:readonlyGet,set:function set(target,key){return true;},deleteProperty:function deleteProperty(target,key){return true;}};var shallowReactiveHandlers=/*#__PURE__*/extend$1({},mutableHandlers,{get:shallowGet,set:shallowSet});var toShallow=function toShallow(value){return value;};var getProto$1=function getProto$1(v){return Reflect.getPrototypeOf(v);};function get$1$1(target,key){var isReadonly=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var isShallow=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;// #1772: readonly(reactive(Map)) should return readonly + reactive version
  63. // of the value
  64. target=target["__v_raw"/* RAW */];var rawTarget=toRaw(target);var rawKey=toRaw(key);if(key!==rawKey){!isReadonly&&track(rawTarget,"get"/* GET */,key);}!isReadonly&&track(rawTarget,"get"/* GET */,rawKey);var _getProto$=getProto$1(rawTarget),has=_getProto$.has;var wrap=isShallow?toShallow:isReadonly?toReadonly:toReactive;if(has.call(rawTarget,key)){return wrap(target.get(key));}else if(has.call(rawTarget,rawKey)){return wrap(target.get(rawKey));}else if(target!==rawTarget){// #3602 readonly(reactive(Map))
  65. // ensure that the nested reactive `Map` can do tracking for itself
  66. target.get(key);}}function has$1$1(key){var isReadonly=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var target=this["__v_raw"/* RAW */];var rawTarget=toRaw(target);var rawKey=toRaw(key);if(key!==rawKey){!isReadonly&&track(rawTarget,"has"/* HAS */,key);}!isReadonly&&track(rawTarget,"has"/* HAS */,rawKey);return key===rawKey?target.has(key):target.has(key)||target.has(rawKey);}function size(target){var isReadonly=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;target=target["__v_raw"/* RAW */];!isReadonly&&track(toRaw(target),"iterate"/* ITERATE */,ITERATE_KEY);return Reflect.get(target,'size',target);}function add(value){value=toRaw(value);var target=toRaw(this);var proto=getProto$1(target);var hadKey=proto.has.call(target,value);if(!hadKey){target.add(value);trigger$1(target,"add"/* ADD */,value,value);}return this;}function set$1$1(key,value){value=toRaw(value);var target=toRaw(this);var _getProto$2=getProto$1(target),has=_getProto$2.has,get=_getProto$2.get;var hadKey=has.call(target,key);if(!hadKey){key=toRaw(key);hadKey=has.call(target,key);}var oldValue=get.call(target,key);target.set(key,value);if(!hadKey){trigger$1(target,"add"/* ADD */,key,value);}else if(hasChanged(value,oldValue)){trigger$1(target,"set"/* SET */,key,value);}return this;}function deleteEntry(key){var target=toRaw(this);var _getProto$3=getProto$1(target),has=_getProto$3.has,get=_getProto$3.get;var hadKey=has.call(target,key);if(!hadKey){key=toRaw(key);hadKey=has.call(target,key);}get?get.call(target,key):undefined;// forward the operation before queueing reactions
  67. var result=target.delete(key);if(hadKey){trigger$1(target,"delete"/* DELETE */,key,undefined);}return result;}function clear(){var target=toRaw(this);var hadItems=target.size!==0;// forward the operation before queueing reactions
  68. var result=target.clear();if(hadItems){trigger$1(target,"clear"/* CLEAR */,undefined,undefined);}return result;}function createForEach(isReadonly,isShallow){return function forEach(callback,thisArg){var observed=this;var target=observed["__v_raw"/* RAW */];var rawTarget=toRaw(target);var wrap=isShallow?toShallow:isReadonly?toReadonly:toReactive;!isReadonly&&track(rawTarget,"iterate"/* ITERATE */,ITERATE_KEY);return target.forEach(function(value,key){// important: make sure the callback is
  69. // 1. invoked with the reactive map as `this` and 3rd arg
  70. // 2. the value received should be a corresponding reactive/readonly.
  71. return callback.call(thisArg,wrap(value),wrap(key),observed);});};}function createIterableMethod(method,isReadonly,isShallow){return function(){var target=this["__v_raw"/* RAW */];var rawTarget=toRaw(target);var targetIsMap=isMap$3(rawTarget);var isPair=method==='entries'||method===Symbol.iterator&&targetIsMap;var isKeyOnly=method==='keys'&&targetIsMap;var innerIterator=target[method].apply(target,arguments);var wrap=isShallow?toShallow:isReadonly?toReadonly:toReactive;!isReadonly&&track(rawTarget,"iterate"/* ITERATE */,isKeyOnly?MAP_KEY_ITERATE_KEY:ITERATE_KEY);// return a wrapped iterator which returns observed versions of the
  72. // values emitted from the real iterator
  73. return _defineProperty2({// iterator protocol
  74. next:function next(){var _innerIterator$next=innerIterator.next(),value=_innerIterator$next.value,done=_innerIterator$next.done;return done?{value:value,done:done}:{value:isPair?[wrap(value[0]),wrap(value[1])]:wrap(value),done:done};}},Symbol.iterator,function(){return this;});};}function createReadonlyMethod(type){return function(){return type==="delete"/* DELETE */?false:this;};}function createInstrumentations(){var mutableInstrumentations={get:function get(key){return get$1$1(this,key);},get size(){return size(this);},has:has$1$1,add:add,set:set$1$1,delete:deleteEntry,clear:clear,forEach:createForEach(false,false)};var shallowInstrumentations={get:function get(key){return get$1$1(this,key,false,true);},get size(){return size(this);},has:has$1$1,add:add,set:set$1$1,delete:deleteEntry,clear:clear,forEach:createForEach(false,true)};var readonlyInstrumentations={get:function get(key){return get$1$1(this,key,true);},get size(){return size(this,true);},has:function has(key){return has$1$1.call(this,key,true);},add:createReadonlyMethod("add"/* ADD */),set:createReadonlyMethod("set"/* SET */),delete:createReadonlyMethod("delete"/* DELETE */),clear:createReadonlyMethod("clear"/* CLEAR */),forEach:createForEach(true,false)};var shallowReadonlyInstrumentations={get:function get(key){return get$1$1(this,key,true,true);},get size(){return size(this,true);},has:function has(key){return has$1$1.call(this,key,true);},add:createReadonlyMethod("add"/* ADD */),set:createReadonlyMethod("set"/* SET */),delete:createReadonlyMethod("delete"/* DELETE */),clear:createReadonlyMethod("clear"/* CLEAR */),forEach:createForEach(true,true)};var iteratorMethods=['keys','values','entries',Symbol.iterator];iteratorMethods.forEach(function(method){mutableInstrumentations[method]=createIterableMethod(method,false,false);readonlyInstrumentations[method]=createIterableMethod(method,true,false);shallowInstrumentations[method]=createIterableMethod(method,false,true);shallowReadonlyInstrumentations[method]=createIterableMethod(method,true,true);});return[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations];}var _createInstrumentatio=/* #__PURE__*/createInstrumentations(),_createInstrumentatio2=_slicedToArray(_createInstrumentatio,4),mutableInstrumentations=_createInstrumentatio2[0],readonlyInstrumentations=_createInstrumentatio2[1],shallowInstrumentations=_createInstrumentatio2[2],shallowReadonlyInstrumentations=_createInstrumentatio2[3];function createInstrumentationGetter(isReadonly,shallow){var instrumentations=shallow?isReadonly?shallowReadonlyInstrumentations:shallowInstrumentations:isReadonly?readonlyInstrumentations:mutableInstrumentations;return function(target,key,receiver){if(key==="__v_isReactive"/* IS_REACTIVE */){return!isReadonly;}else if(key==="__v_isReadonly"/* IS_READONLY */){return isReadonly;}else if(key==="__v_raw"/* RAW */){return target;}return Reflect.get(hasOwn$2(instrumentations,key)&&key in target?instrumentations:target,key,receiver);};}var mutableCollectionHandlers={get:/*#__PURE__*/createInstrumentationGetter(false,false)};var shallowCollectionHandlers={get:/*#__PURE__*/createInstrumentationGetter(false,true)};var readonlyCollectionHandlers={get:/*#__PURE__*/createInstrumentationGetter(true,false)};var reactiveMap=new WeakMap();var shallowReactiveMap=new WeakMap();var readonlyMap=new WeakMap();var shallowReadonlyMap=new WeakMap();function targetTypeMap(rawType){switch(rawType){case'Object':case'Array':return 1/* COMMON */;case'Map':case'Set':case'WeakMap':case'WeakSet':return 2/* COLLECTION */;default:return 0/* INVALID */;}}function getTargetType(value){return value["__v_skip"/* SKIP */]||!Object.isExtensible(value)?0/* INVALID */:targetTypeMap(toRawType(value));}function reactive(target){// if trying to observe a readonly proxy, return the readonly version.
  75. if(target&&target["__v_isReadonly"/* IS_READONLY */]){return target;}return createReactiveObject(target,false,mutableHandlers,mutableCollectionHandlers,reactiveMap);}/**
  76. * Return a shallowly-reactive copy of the original object, where only the root
  77. * level properties are reactive. It also does not auto-unwrap refs (even at the
  78. * root level).
  79. */function shallowReactive(target){return createReactiveObject(target,false,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap);}/**
  80. * Creates a readonly copy of the original object. Note the returned copy is not
  81. * made reactive, but `readonly` can be called on an already reactive object.
  82. */function readonly(target){return createReactiveObject(target,true,readonlyHandlers,readonlyCollectionHandlers,readonlyMap);}function createReactiveObject(target,isReadonly,baseHandlers,collectionHandlers,proxyMap){if(!isObject$2(target)){return target;}// target is already a Proxy, return it.
  83. // exception: calling readonly() on a reactive object
  84. if(target["__v_raw"/* RAW */]&&!(isReadonly&&target["__v_isReactive"/* IS_REACTIVE */])){return target;}// target already has corresponding Proxy
  85. var existingProxy=proxyMap.get(target);if(existingProxy){return existingProxy;}// only a whitelist of value types can be observed.
  86. var targetType=getTargetType(target);if(targetType===0/* INVALID */){return target;}var proxy=new Proxy(target,targetType===2/* COLLECTION */?collectionHandlers:baseHandlers);proxyMap.set(target,proxy);return proxy;}function isReactive(value){if(isReadonly(value)){return isReactive(value["__v_raw"/* RAW */]);}return!!(value&&value["__v_isReactive"/* IS_REACTIVE */]);}function isReadonly(value){return!!(value&&value["__v_isReadonly"/* IS_READONLY */]);}function isProxy(value){return isReactive(value)||isReadonly(value);}function toRaw(observed){var raw=observed&&observed["__v_raw"/* RAW */];return raw?toRaw(raw):observed;}function markRaw(value){def(value,"__v_skip"/* SKIP */,true);return value;}var toReactive=function toReactive(value){return isObject$2(value)?reactive(value):value;};var toReadonly=function toReadonly(value){return isObject$2(value)?readonly(value):value;};function trackRefValue(ref){if(isTracking()){ref=toRaw(ref);if(!ref.dep){ref.dep=createDep();}{trackEffects(ref.dep);}}}function triggerRefValue(ref,newVal){ref=toRaw(ref);if(ref.dep){{triggerEffects(ref.dep);}}}function isRef(r){return Boolean(r&&r.__v_isRef===true);}function ref(value){return createRef(value,false);}function shallowRef(value){return createRef(value,true);}function createRef(rawValue,shallow){if(isRef(rawValue)){return rawValue;}return new RefImpl(rawValue,shallow);}var RefImpl=/*#__PURE__*/function(){function RefImpl(value,_shallow){_classCallCheck2(this,RefImpl);this._shallow=_shallow;this.dep=undefined;this.__v_isRef=true;this._rawValue=_shallow?value:toRaw(value);this._value=_shallow?value:toReactive(value);}_createClass2(RefImpl,[{key:"value",get:function get(){trackRefValue(this);return this._value;},set:function set(newVal){newVal=this._shallow?newVal:toRaw(newVal);if(hasChanged(newVal,this._rawValue)){this._rawValue=newVal;this._value=this._shallow?newVal:toReactive(newVal);triggerRefValue(this);}}}]);return RefImpl;}();function triggerRef(ref){triggerRefValue(ref);}function unref(ref){return isRef(ref)?ref.value:ref;}var shallowUnwrapHandlers={get:function get(target,key,receiver){return unref(Reflect.get(target,key,receiver));},set:function set(target,key,value,receiver){var oldValue=target[key];if(isRef(oldValue)&&!isRef(value)){oldValue.value=value;return true;}else{return Reflect.set(target,key,value,receiver);}}};function proxyRefs(objectWithRefs){return isReactive(objectWithRefs)?objectWithRefs:new Proxy(objectWithRefs,shallowUnwrapHandlers);}function toRefs(object){var ret=isArray$7(object)?new Array(object.length):{};for(var key in object){ret[key]=toRef(object,key);}return ret;}var ObjectRefImpl=/*#__PURE__*/function(){function ObjectRefImpl(_object,_key,_defaultValue){_classCallCheck2(this,ObjectRefImpl);this._object=_object;this._key=_key;this._defaultValue=_defaultValue;this.__v_isRef=true;}_createClass2(ObjectRefImpl,[{key:"value",get:function get(){var val=this._object[this._key];return val===undefined?this._defaultValue:val;},set:function set(newVal){this._object[this._key]=newVal;}}]);return ObjectRefImpl;}();function toRef(object,key,defaultValue){var val=object[key];return isRef(val)?val:new ObjectRefImpl(object,key,defaultValue);}var ComputedRefImpl=/*#__PURE__*/function(){function ComputedRefImpl(getter,_setter,isReadonly){var _this4=this;_classCallCheck2(this,ComputedRefImpl);this._setter=_setter;this.dep=undefined;this._dirty=true;this.__v_isRef=true;this.effect=new ReactiveEffect(getter,function(){if(!_this4._dirty){_this4._dirty=true;triggerRefValue(_this4);}});this["__v_isReadonly"/* IS_READONLY */]=isReadonly;}_createClass2(ComputedRefImpl,[{key:"value",get:function get(){// the computed ref may get wrapped by other proxies e.g. readonly() #3376
  87. var self=toRaw(this);trackRefValue(self);if(self._dirty){self._dirty=false;self._value=self.effect.run();}return self._value;},set:function set(newValue){this._setter(newValue);}}]);return ComputedRefImpl;}();function computed(getterOrOptions,debugOptions){var getter;var setter;var onlyGetter=isFunction$1(getterOrOptions);if(onlyGetter){getter=getterOrOptions;setter=NOOP;}else{getter=getterOrOptions.get;setter=getterOrOptions.set;}var cRef=new ComputedRefImpl(getter,setter,onlyGetter||!setter);return cRef;}Promise.resolve();function emit$1(instance,event){var props=instance.vnode.props||EMPTY_OBJ;for(var _len4=arguments.length,rawArgs=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++){rawArgs[_key4-2]=arguments[_key4];}var args=rawArgs;var isModelListener=event.startsWith('update:');// for v-model update:xxx events, apply modifiers on args
  88. var modelArg=isModelListener&&event.slice(7);if(modelArg&&modelArg in props){var modifiersKey="".concat(modelArg==='modelValue'?'model':modelArg,"Modifiers");var _ref9=props[modifiersKey]||EMPTY_OBJ,_number=_ref9.number,trim=_ref9.trim;if(trim){args=rawArgs.map(function(a){return a.trim();});}else if(_number){args=rawArgs.map(toNumber$1);}}var handlerName;var handler=props[handlerName=toHandlerKey(event)]||// also try camelCase event handler (#2249)
  89. props[handlerName=toHandlerKey(camelize(event))];// for v-model update:xxx events, also trigger kebab-case equivalent
  90. // for props passed via kebab-case
  91. if(!handler&&isModelListener){handler=props[handlerName=toHandlerKey(hyphenate(event))];}if(handler){callWithAsyncErrorHandling(handler,instance,6/* COMPONENT_EVENT_HANDLER */,args);}var onceHandler=props[handlerName+"Once"];if(onceHandler){if(!instance.emitted){instance.emitted={};}else if(instance.emitted[handlerName]){return;}instance.emitted[handlerName]=true;callWithAsyncErrorHandling(onceHandler,instance,6/* COMPONENT_EVENT_HANDLER */,args);}}function normalizeEmitsOptions(comp,appContext){var asMixin=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var cache=appContext.emitsCache;var cached=cache.get(comp);if(cached!==undefined){return cached;}var raw=comp.emits;var normalized={};// apply mixin/extends props
  92. var hasExtends=false;if(!isFunction$1(comp)){var extendEmits=function extendEmits(raw){var normalizedFromExtend=normalizeEmitsOptions(raw,appContext,true);if(normalizedFromExtend){hasExtends=true;extend$1(normalized,normalizedFromExtend);}};if(!asMixin&&appContext.mixins.length){appContext.mixins.forEach(extendEmits);}if(comp.extends){extendEmits(comp.extends);}if(comp.mixins){comp.mixins.forEach(extendEmits);}}if(!raw&&!hasExtends){cache.set(comp,null);return null;}if(isArray$7(raw)){raw.forEach(function(key){return normalized[key]=null;});}else{extend$1(normalized,raw);}cache.set(comp,normalized);return normalized;}// Check if an incoming prop key is a declared emit event listener.
  93. // e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are
  94. // both considered matched listeners.
  95. function isEmitListener(options,key){if(!options||!isOn(key)){return false;}key=key.slice(2).replace(/Once$/,'');return hasOwn$2(options,key[0].toLowerCase()+key.slice(1))||hasOwn$2(options,hyphenate(key))||hasOwn$2(options,key);}/**
  96. * mark the current rendering instance for asset resolution (e.g.
  97. * resolveComponent, resolveDirective) during render
  98. */var currentRenderingInstance=null;var currentScopeId=null;/**
  99. * Note: rendering calls maybe nested. The function returns the parent rendering
  100. * instance if present, which should be restored after the render is done:
  101. *
  102. * ```js
  103. * const prev = setCurrentRenderingInstance(i)
  104. * // ...render
  105. * setCurrentRenderingInstance(prev)
  106. * ```
  107. */function setCurrentRenderingInstance(instance){var prev=currentRenderingInstance;currentRenderingInstance=instance;currentScopeId=instance&&instance.type.__scopeId||null;return prev;}/**
  108. * Wrap a slot function to memoize current rendering instance
  109. * @private compiler helper
  110. */function withCtx(fn){var ctx=arguments.length>1&&arguments[1]!==undefined?arguments[1]:currentRenderingInstance;var isNonScopedSlot// false only
  111. =arguments.length>2?arguments[2]:undefined;if(!ctx)return fn;// already normalized
  112. if(fn._n){return fn;}var renderFnWithContext=function renderFnWithContext(){// If a user calls a compiled slot inside a template expression (#1745), it
  113. // can mess up block tracking, so by default we disable block tracking and
  114. // force bail out when invoking a compiled slot (indicated by the ._d flag).
  115. // This isn't necessary if rendering a compiled `<slot>`, so we flip the
  116. // ._d flag off when invoking the wrapped fn inside `renderSlot`.
  117. if(renderFnWithContext._d){setBlockTracking(-1);}var prevInstance=setCurrentRenderingInstance(ctx);var res=fn.apply(void 0,arguments);setCurrentRenderingInstance(prevInstance);if(renderFnWithContext._d){setBlockTracking(1);}return res;};// mark normalized to avoid duplicated wrapping
  118. renderFnWithContext._n=true;// mark this as compiled by default
  119. // this is used in vnode.ts -> normalizeChildren() to set the slot
  120. // rendering flag.
  121. renderFnWithContext._c=true;// disable block tracking by default
  122. renderFnWithContext._d=true;return renderFnWithContext;}function markAttrsAccessed(){}function renderComponentRoot(instance){var Component=instance.type,vnode=instance.vnode,proxy=instance.proxy,withProxy=instance.withProxy,props=instance.props,_instance$propsOption=_slicedToArray(instance.propsOptions,1),propsOptions=_instance$propsOption[0],slots=instance.slots,attrs=instance.attrs,emit=instance.emit,render=instance.render,renderCache=instance.renderCache,data=instance.data,setupState=instance.setupState,ctx=instance.ctx,inheritAttrs=instance.inheritAttrs;var result;var fallthroughAttrs;var prev=setCurrentRenderingInstance(instance);try{if(vnode.shapeFlag&4/* STATEFUL_COMPONENT */){// withProxy is a proxy with a different `has` trap only for
  123. // runtime-compiled render functions using `with` block.
  124. var proxyToUse=withProxy||proxy;result=normalizeVNode(render.call(proxyToUse,proxyToUse,renderCache,props,setupState,data,ctx));fallthroughAttrs=attrs;}else{// functional
  125. var _render=Component;// in dev, mark attrs accessed if optional props (attrs === props)
  126. if("production"!=='production'&&attrs===props);result=normalizeVNode(_render.length>1?_render(props,"production"!=='production'?{get attrs(){markAttrsAccessed();return attrs;},slots:slots,emit:emit}:{attrs:attrs,slots:slots,emit:emit}):_render(props,null/* we know it doesn't need it */));fallthroughAttrs=Component.props?attrs:getFunctionalFallthrough(attrs);}}catch(err){blockStack.length=0;handleError(err,instance,1/* RENDER_FUNCTION */);result=createVNode(Comment);}// attr merging
  127. // in dev mode, comments are preserved, and it's possible for a template
  128. // to have comments along side the root element which makes it a fragment
  129. var root=result;if(fallthroughAttrs&&inheritAttrs!==false){var _keys=Object.keys(fallthroughAttrs);var _root=root,shapeFlag=_root.shapeFlag;if(_keys.length){if(shapeFlag&(1/* ELEMENT */|6/* COMPONENT */)){if(propsOptions&&_keys.some(isModelListener)){// If a v-model listener (onUpdate:xxx) has a corresponding declared
  130. // prop, it indicates this component expects to handle v-model and
  131. // it should not fallthrough.
  132. // related: #1543, #1643, #1989
  133. fallthroughAttrs=filterModelListeners(fallthroughAttrs,propsOptions);}root=cloneVNode(root,fallthroughAttrs);}}}// inherit directives
  134. if(vnode.dirs){root.dirs=root.dirs?root.dirs.concat(vnode.dirs):vnode.dirs;}// inherit transition data
  135. if(vnode.transition){root.transition=vnode.transition;}{result=root;}setCurrentRenderingInstance(prev);return result;}var getFunctionalFallthrough=function getFunctionalFallthrough(attrs){var res;for(var key in attrs){if(key==='class'||key==='style'||isOn(key)){(res||(res={}))[key]=attrs[key];}}return res;};var filterModelListeners=function filterModelListeners(attrs,props){var res={};for(var key in attrs){if(!isModelListener(key)||!(key.slice(9)in props)){res[key]=attrs[key];}}return res;};function shouldUpdateComponent(prevVNode,nextVNode,optimized){var prevProps=prevVNode.props,prevChildren=prevVNode.children,component=prevVNode.component;var nextProps=nextVNode.props,nextChildren=nextVNode.children,patchFlag=nextVNode.patchFlag;var emits=component.emitsOptions;// force child update for runtime directive or transition on component vnode.
  136. if(nextVNode.dirs||nextVNode.transition){return true;}if(optimized&&patchFlag>=0){if(patchFlag&1024/* DYNAMIC_SLOTS */){// slot content that references values that might have changed,
  137. // e.g. in a v-for
  138. return true;}if(patchFlag&16/* FULL_PROPS */){if(!prevProps){return!!nextProps;}// presence of this flag indicates props are always non-null
  139. return hasPropsChanged(prevProps,nextProps,emits);}else if(patchFlag&8/* PROPS */){var dynamicProps=nextVNode.dynamicProps;for(var _i11=0;_i11<dynamicProps.length;_i11++){var key=dynamicProps[_i11];if(nextProps[key]!==prevProps[key]&&!isEmitListener(emits,key)){return true;}}}}else{// this path is only taken by manually written render functions
  140. // so presence of any children leads to a forced update
  141. if(prevChildren||nextChildren){if(!nextChildren||!nextChildren.$stable){return true;}}if(prevProps===nextProps){return false;}if(!prevProps){return!!nextProps;}if(!nextProps){return true;}return hasPropsChanged(prevProps,nextProps,emits);}return false;}function hasPropsChanged(prevProps,nextProps,emitsOptions){var nextKeys=Object.keys(nextProps);if(nextKeys.length!==Object.keys(prevProps).length){return true;}for(var _i12=0;_i12<nextKeys.length;_i12++){var key=nextKeys[_i12];if(nextProps[key]!==prevProps[key]&&!isEmitListener(emitsOptions,key)){return true;}}return false;}function updateHOCHostEl(_ref10,el// HostNode
  142. ){var vnode=_ref10.vnode,parent=_ref10.parent;while(parent&&parent.subTree===vnode){(vnode=parent.vnode).el=el;parent=parent.parent;}}var isSuspense=function isSuspense(type){return type.__isSuspense;};function queueEffectWithSuspense(fn,suspense){if(suspense&&suspense.pendingBranch){if(isArray$7(fn)){var _suspense$effects;(_suspense$effects=suspense.effects).push.apply(_suspense$effects,_toConsumableArray2(fn));}else{suspense.effects.push(fn);}}else{queuePostFlushCb(fn);}}function provide(key,value){if(!currentInstance);else{var provides=currentInstance.provides;// by default an instance inherits its parent's provides object
  143. // but when it needs to provide values of its own, it creates its
  144. // own provides object using parent provides object as prototype.
  145. // this way in `inject` we can simply look up injections from direct
  146. // parent and let the prototype chain do the work.
  147. var parentProvides=currentInstance.parent&&currentInstance.parent.provides;if(parentProvides===provides){provides=currentInstance.provides=Object.create(parentProvides);}// TS doesn't allow symbol as index type
  148. provides[key]=value;}}function inject(key,defaultValue){var treatDefaultAsFactory=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;// fallback to `currentRenderingInstance` so that this can be called in
  149. // a functional component
  150. var instance=currentInstance||currentRenderingInstance;if(instance){// #2400
  151. // to support `app.use` plugins,
  152. // fallback to appContext's `provides` if the intance is at root
  153. var provides=instance.parent==null?instance.vnode.appContext&&instance.vnode.appContext.provides:instance.parent.provides;if(provides&&key in provides){// TS doesn't allow symbol as index type
  154. return provides[key];}else if(arguments.length>1){return treatDefaultAsFactory&&isFunction$1(defaultValue)?defaultValue.call(instance.proxy):defaultValue;}else;}}function useTransitionState(){var state={isMounted:false,isLeaving:false,isUnmounting:false,leavingVNodes:new Map()};onMounted(function(){state.isMounted=true;});onBeforeUnmount(function(){state.isUnmounting=true;});return state;}var TransitionHookValidator=[Function,Array];var BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,// enter
  155. onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,// leave
  156. onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,// appear
  157. onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup:function setup(props,_ref11){var slots=_ref11.slots;var instance=getCurrentInstance();var state=useTransitionState();var prevTransitionKey;return function(){var children=slots.default&&getTransitionRawChildren(slots.default(),true);if(!children||!children.length){return;}// there's no need to track reactivity for these props so use the raw
  158. // props for a bit better perf
  159. var rawProps=toRaw(props);var mode=rawProps.mode;// at this point children has a guaranteed length of 1.
  160. var child=children[0];if(state.isLeaving){return emptyPlaceholder(child);}// in the case of <transition><keep-alive/></transition>, we need to
  161. // compare the type of the kept-alive children.
  162. var innerChild=getKeepAliveChild(child);if(!innerChild){return emptyPlaceholder(child);}var enterHooks=resolveTransitionHooks(innerChild,rawProps,state,instance);setTransitionHooks(innerChild,enterHooks);var oldChild=instance.subTree;var oldInnerChild=oldChild&&getKeepAliveChild(oldChild);var transitionKeyChanged=false;var getTransitionKey=innerChild.type.getTransitionKey;if(getTransitionKey){var key=getTransitionKey();if(prevTransitionKey===undefined){prevTransitionKey=key;}else if(key!==prevTransitionKey){prevTransitionKey=key;transitionKeyChanged=true;}}// handle mode
  163. if(oldInnerChild&&oldInnerChild.type!==Comment&&(!isSameVNodeType(innerChild,oldInnerChild)||transitionKeyChanged)){var leavingHooks=resolveTransitionHooks(oldInnerChild,rawProps,state,instance);// update old tree's hooks in case of dynamic transition
  164. setTransitionHooks(oldInnerChild,leavingHooks);// switching between different views
  165. if(mode==='out-in'){state.isLeaving=true;// return placeholder node and queue update when leave finishes
  166. leavingHooks.afterLeave=function(){state.isLeaving=false;instance.update();};return emptyPlaceholder(child);}else if(mode==='in-out'&&innerChild.type!==Comment){leavingHooks.delayLeave=function(el,earlyRemove,delayedLeave){var leavingVNodesCache=getLeavingNodesForType(state,oldInnerChild);leavingVNodesCache[String(oldInnerChild.key)]=oldInnerChild;// early removal callback
  167. el._leaveCb=function(){earlyRemove();el._leaveCb=undefined;delete enterHooks.delayedLeave;};enterHooks.delayedLeave=delayedLeave;};}}return child;};}};// export the public type for h/tsx inference
  168. // also to avoid inline import() in generated d.ts files
  169. var BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(state,vnode){var leavingVNodes=state.leavingVNodes;var leavingVNodesCache=leavingVNodes.get(vnode.type);if(!leavingVNodesCache){leavingVNodesCache=Object.create(null);leavingVNodes.set(vnode.type,leavingVNodesCache);}return leavingVNodesCache;}// The transition hooks are attached to the vnode as vnode.transition
  170. // and will be called at appropriate timing in the renderer.
  171. function resolveTransitionHooks(vnode,props,state,instance){var appear=props.appear,mode=props.mode,_props$persisted=props.persisted,persisted=_props$persisted===void 0?false:_props$persisted,onBeforeEnter=props.onBeforeEnter,onEnter=props.onEnter,onAfterEnter=props.onAfterEnter,onEnterCancelled=props.onEnterCancelled,onBeforeLeave=props.onBeforeLeave,onLeave=props.onLeave,onAfterLeave=props.onAfterLeave,onLeaveCancelled=props.onLeaveCancelled,onBeforeAppear=props.onBeforeAppear,onAppear=props.onAppear,onAfterAppear=props.onAfterAppear,onAppearCancelled=props.onAppearCancelled;var key=String(vnode.key);var leavingVNodesCache=getLeavingNodesForType(state,vnode);var callHook=function callHook(hook,args){hook&&callWithAsyncErrorHandling(hook,instance,9/* TRANSITION_HOOK */,args);};var hooks={mode:mode,persisted:persisted,beforeEnter:function beforeEnter(el){var hook=onBeforeEnter;if(!state.isMounted){if(appear){hook=onBeforeAppear||onBeforeEnter;}else{return;}}// for same element (v-show)
  172. if(el._leaveCb){el._leaveCb(true/* cancelled */);}// for toggled element with same key (v-if)
  173. var leavingVNode=leavingVNodesCache[key];if(leavingVNode&&isSameVNodeType(vnode,leavingVNode)&&leavingVNode.el._leaveCb){// force early removal (not cancelled)
  174. leavingVNode.el._leaveCb();}callHook(hook,[el]);},enter:function enter(el){var hook=onEnter;var afterHook=onAfterEnter;var cancelHook=onEnterCancelled;if(!state.isMounted){if(appear){hook=onAppear||onEnter;afterHook=onAfterAppear||onAfterEnter;cancelHook=onAppearCancelled||onEnterCancelled;}else{return;}}var called=false;var done=el._enterCb=function(cancelled){if(called)return;called=true;if(cancelled){callHook(cancelHook,[el]);}else{callHook(afterHook,[el]);}if(hooks.delayedLeave){hooks.delayedLeave();}el._enterCb=undefined;};if(hook){hook(el,done);if(hook.length<=1){done();}}else{done();}},leave:function leave(el,remove){var key=String(vnode.key);if(el._enterCb){el._enterCb(true/* cancelled */);}if(state.isUnmounting){return remove();}callHook(onBeforeLeave,[el]);var called=false;var done=el._leaveCb=function(cancelled){if(called)return;called=true;remove();if(cancelled){callHook(onLeaveCancelled,[el]);}else{callHook(onAfterLeave,[el]);}el._leaveCb=undefined;if(leavingVNodesCache[key]===vnode){delete leavingVNodesCache[key];}};leavingVNodesCache[key]=vnode;if(onLeave){onLeave(el,done);if(onLeave.length<=1){done();}}else{done();}},clone:function clone(vnode){return resolveTransitionHooks(vnode,props,state,instance);}};return hooks;}// the placeholder really only handles one special case: KeepAlive
  175. // in the case of a KeepAlive in a leave phase we need to return a KeepAlive
  176. // placeholder with empty content to avoid the KeepAlive instance from being
  177. // unmounted.
  178. function emptyPlaceholder(vnode){if(isKeepAlive(vnode)){vnode=cloneVNode(vnode);vnode.children=null;return vnode;}}function getKeepAliveChild(vnode){return isKeepAlive(vnode)?vnode.children?vnode.children[0]:undefined:vnode;}function setTransitionHooks(vnode,hooks){if(vnode.shapeFlag&6/* COMPONENT */&&vnode.component){setTransitionHooks(vnode.component.subTree,hooks);}else if(vnode.shapeFlag&128/* SUSPENSE */){vnode.ssContent.transition=hooks.clone(vnode.ssContent);vnode.ssFallback.transition=hooks.clone(vnode.ssFallback);}else{vnode.transition=hooks;}}function getTransitionRawChildren(children){var keepComment=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var ret=[];var keyedFragmentCount=0;for(var _i13=0;_i13<children.length;_i13++){var child=children[_i13];// handle fragment children case, e.g. v-for
  179. if(child.type===Fragment){if(child.patchFlag&128/* KEYED_FRAGMENT */)keyedFragmentCount++;ret=ret.concat(getTransitionRawChildren(child.children,keepComment));}// comment placeholders should be skipped, e.g. v-if
  180. else if(keepComment||child.type!==Comment){ret.push(child);}}// #1126 if a transition children list contains multiple sub fragments, these
  181. // fragments will be merged into a flat children array. Since each v-for
  182. // fragment may contain different static bindings inside, we need to de-op
  183. // these children to force full diffs to ensure correct behavior.
  184. if(keyedFragmentCount>1){for(var _i14=0;_i14<ret.length;_i14++){ret[_i14].patchFlag=-2/* BAIL */;}}return ret;}// implementation, close to no-op
  185. function defineComponent(options){return isFunction$1(options)?{setup:options,name:options.name}:options;}var isAsyncWrapper=function isAsyncWrapper(i){return!!i.type.__asyncLoader;};var isKeepAlive=function isKeepAlive(vnode){return vnode.type.__isKeepAlive;};function onActivated(hook,target){registerKeepAliveHook(hook,"a"/* ACTIVATED */,target);}function onDeactivated(hook,target){registerKeepAliveHook(hook,"da"/* DEACTIVATED */,target);}function registerKeepAliveHook(hook,type){var target=arguments.length>2&&arguments[2]!==undefined?arguments[2]:currentInstance;// cache the deactivate branch check wrapper for injected hooks so the same
  186. // hook can be properly deduped by the scheduler. "__wdc" stands for "with
  187. // deactivation check".
  188. var wrappedHook=hook.__wdc||(hook.__wdc=function(){// only fire the hook if the target instance is NOT in a deactivated branch.
  189. var current=target;while(current){if(current.isDeactivated){return;}current=current.parent;}return hook();});injectHook(type,wrappedHook,target);// In addition to registering it on the target instance, we walk up the parent
  190. // chain and register it on all ancestor instances that are keep-alive roots.
  191. // This avoids the need to walk the entire component tree when invoking these
  192. // hooks, and more importantly, avoids the need to track child components in
  193. // arrays.
  194. if(target){var current=target.parent;while(current&&current.parent){if(isKeepAlive(current.parent.vnode)){injectToKeepAliveRoot(wrappedHook,type,target,current);}current=current.parent;}}}function injectToKeepAliveRoot(hook,type,target,keepAliveRoot){// injectHook wraps the original for error handling, so make sure to remove
  195. // the wrapped version.
  196. var injected=injectHook(type,hook,keepAliveRoot,true/* prepend */);onUnmounted(function(){remove(keepAliveRoot[type],injected);},target);}function injectHook(type,hook){var target=arguments.length>2&&arguments[2]!==undefined?arguments[2]:currentInstance;var prepend=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(target){var hooks=target[type]||(target[type]=[]);// cache the error handling wrapper for injected hooks so the same hook
  197. // can be properly deduped by the scheduler. "__weh" stands for "with error
  198. // handling".
  199. var wrappedHook=hook.__weh||(hook.__weh=function(){if(target.isUnmounted){return;}// disable tracking inside all lifecycle hooks
  200. // since they can potentially be called inside effects.
  201. pauseTracking();// Set currentInstance during hook invocation.
  202. // This assumes the hook does not synchronously trigger other hooks, which
  203. // can only be false when the user does something really funky.
  204. setCurrentInstance(target);for(var _len5=arguments.length,args=new Array(_len5),_key5=0;_key5<_len5;_key5++){args[_key5]=arguments[_key5];}var res=callWithAsyncErrorHandling(hook,target,type,args);unsetCurrentInstance();resetTracking();return res;});if(prepend){hooks.unshift(wrappedHook);}else{hooks.push(wrappedHook);}return wrappedHook;}}var createHook=function createHook(lifecycle){return function(hook){var target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:currentInstance;return(// post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
  205. (!isInSSRComponentSetup||lifecycle==="sp"/* SERVER_PREFETCH */)&&injectHook(lifecycle,hook,target));};};var onBeforeMount=createHook("bm"/* BEFORE_MOUNT */);var onMounted=exports('o',createHook("m"/* MOUNTED */));var onBeforeUpdate=exports('Z',createHook("bu"/* BEFORE_UPDATE */));var onUpdated=exports('W',createHook("u"/* UPDATED */));var onBeforeUnmount=exports('Y',createHook("bum"/* BEFORE_UNMOUNT */));var onUnmounted=exports('ap',createHook("um"/* UNMOUNTED */));var onServerPrefetch=createHook("sp"/* SERVER_PREFETCH */);var onRenderTriggered=createHook("rtg"/* RENDER_TRIGGERED */);var onRenderTracked=createHook("rtc"/* RENDER_TRACKED */);function onErrorCaptured(hook){var target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:currentInstance;injectHook("ec"/* ERROR_CAPTURED */,hook,target);}var shouldCacheAccess=true;function applyOptions(instance){var options=resolveMergedOptions(instance);var publicThis=instance.proxy;var ctx=instance.ctx;// do not cache property access on public proxy during state initialization
  206. shouldCacheAccess=false;// call beforeCreate first before accessing other options since
  207. // the hook may mutate resolved options (#2791)
  208. if(options.beforeCreate){callHook$1(options.beforeCreate,instance,"bc"/* BEFORE_CREATE */);}var dataOptions=options.data,computedOptions=options.computed,methods=options.methods,watchOptions=options.watch,provideOptions=options.provide,injectOptions=options.inject,created=options.created,beforeMount=options.beforeMount,mounted=options.mounted,beforeUpdate=options.beforeUpdate,updated=options.updated,activated=options.activated,deactivated=options.deactivated,beforeDestroy=options.beforeDestroy,beforeUnmount=options.beforeUnmount,destroyed=options.destroyed,unmounted=options.unmounted,render=options.render,renderTracked=options.renderTracked,renderTriggered=options.renderTriggered,errorCaptured=options.errorCaptured,serverPrefetch=options.serverPrefetch,expose=options.expose,inheritAttrs=options.inheritAttrs,components=options.components,directives=options.directives,filters=options.filters;var checkDuplicateProperties=null;// options initialization order (to be consistent with Vue 2):
  209. // - props (already done outside of this function)
  210. // - inject
  211. // - methods
  212. // - data (deferred since it relies on `this` access)
  213. // - computed
  214. // - watch (deferred since it relies on `this` access)
  215. if(injectOptions){resolveInjections(injectOptions,ctx,checkDuplicateProperties,instance.appContext.config.unwrapInjectedRef);}if(methods){for(var key in methods){var methodHandler=methods[key];if(isFunction$1(methodHandler)){// In dev mode, we use the `createRenderContext` function to define
  216. // methods to the proxy target, and those are read-only but
  217. // reconfigurable, so it needs to be redefined here
  218. {ctx[key]=methodHandler.bind(publicThis);}}}}if(dataOptions){var data=dataOptions.call(publicThis,publicThis);if(!isObject$2(data));else{instance.data=reactive(data);}}// state initialization complete at this point - start caching access
  219. shouldCacheAccess=true;if(computedOptions){var _loop=function _loop(_key6){var opt=computedOptions[_key6];var get=isFunction$1(opt)?opt.bind(publicThis,publicThis):isFunction$1(opt.get)?opt.get.bind(publicThis,publicThis):NOOP;var set=!isFunction$1(opt)&&isFunction$1(opt.set)?opt.set.bind(publicThis):NOOP;var c=computed({get:get,set:set});Object.defineProperty(ctx,_key6,{enumerable:true,configurable:true,get:function get(){return c.value;},set:function set(v){return c.value=v;}});};for(var _key6 in computedOptions){_loop(_key6);}}if(watchOptions){for(var _key7 in watchOptions){createWatcher(watchOptions[_key7],ctx,publicThis,_key7);}}if(provideOptions){var provides=isFunction$1(provideOptions)?provideOptions.call(publicThis):provideOptions;Reflect.ownKeys(provides).forEach(function(key){provide(key,provides[key]);});}if(created){callHook$1(created,instance,"c"/* CREATED */);}function registerLifecycleHook(register,hook){if(isArray$7(hook)){hook.forEach(function(_hook){return register(_hook.bind(publicThis));});}else if(hook){register(hook.bind(publicThis));}}registerLifecycleHook(onBeforeMount,beforeMount);registerLifecycleHook(onMounted,mounted);registerLifecycleHook(onBeforeUpdate,beforeUpdate);registerLifecycleHook(onUpdated,updated);registerLifecycleHook(onActivated,activated);registerLifecycleHook(onDeactivated,deactivated);registerLifecycleHook(onErrorCaptured,errorCaptured);registerLifecycleHook(onRenderTracked,renderTracked);registerLifecycleHook(onRenderTriggered,renderTriggered);registerLifecycleHook(onBeforeUnmount,beforeUnmount);registerLifecycleHook(onUnmounted,unmounted);registerLifecycleHook(onServerPrefetch,serverPrefetch);if(isArray$7(expose)){if(expose.length){var exposed=instance.exposed||(instance.exposed={});expose.forEach(function(key){Object.defineProperty(exposed,key,{get:function get(){return publicThis[key];},set:function set(val){return publicThis[key]=val;}});});}else if(!instance.exposed){instance.exposed={};}}// options that are handled when creating the instance but also need to be
  220. // applied from mixins
  221. if(render&&instance.render===NOOP){instance.render=render;}if(inheritAttrs!=null){instance.inheritAttrs=inheritAttrs;}// asset options.
  222. if(components)instance.components=components;if(directives)instance.directives=directives;}function resolveInjections(injectOptions,ctx){var checkDuplicateProperties=arguments.length>2&&arguments[2]!==undefined?arguments[2]:NOOP;var unwrapRef=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(isArray$7(injectOptions)){injectOptions=normalizeInject(injectOptions);}var _loop2=function _loop2(key){var opt=injectOptions[key];var injected=void 0;if(isObject$2(opt)){if('default'in opt){injected=inject(opt.from||key,opt.default,true/* treat default function as factory */);}else{injected=inject(opt.from||key);}}else{injected=inject(opt);}if(isRef(injected)){// TODO remove the check in 3.3
  223. if(unwrapRef){Object.defineProperty(ctx,key,{enumerable:true,configurable:true,get:function get(){return injected.value;},set:function set(v){return injected.value=v;}});}else{ctx[key]=injected;}}else{ctx[key]=injected;}};for(var key in injectOptions){_loop2(key);}}function callHook$1(hook,instance,type){callWithAsyncErrorHandling(isArray$7(hook)?hook.map(function(h){return h.bind(instance.proxy);}):hook.bind(instance.proxy),instance,type);}function createWatcher(raw,ctx,publicThis,key){var getter=key.includes('.')?createPathGetter(publicThis,key):function(){return publicThis[key];};if(isString$2(raw)){var handler=ctx[raw];if(isFunction$1(handler)){watch(getter,handler);}}else if(isFunction$1(raw)){watch(getter,raw.bind(publicThis));}else if(isObject$2(raw)){if(isArray$7(raw)){raw.forEach(function(r){return createWatcher(r,ctx,publicThis,key);});}else{var _handler=isFunction$1(raw.handler)?raw.handler.bind(publicThis):ctx[raw.handler];if(isFunction$1(_handler)){watch(getter,_handler,raw);}}}else;}/**
  224. * Resolve merged options and cache it on the component.
  225. * This is done only once per-component since the merging does not involve
  226. * instances.
  227. */function resolveMergedOptions(instance){var base=instance.type;var mixins=base.mixins,extendsOptions=base.extends;var _instance$appContext=instance.appContext,globalMixins=_instance$appContext.mixins,cache=_instance$appContext.optionsCache,optionMergeStrategies=_instance$appContext.config.optionMergeStrategies;var cached=cache.get(base);var resolved;if(cached){resolved=cached;}else if(!globalMixins.length&&!mixins&&!extendsOptions){{resolved=base;}}else{resolved={};if(globalMixins.length){globalMixins.forEach(function(m){return mergeOptions$1(resolved,m,optionMergeStrategies,true);});}mergeOptions$1(resolved,base,optionMergeStrategies);}cache.set(base,resolved);return resolved;}function mergeOptions$1(to,from,strats){var asMixin=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var mixins=from.mixins,extendsOptions=from.extends;if(extendsOptions){mergeOptions$1(to,extendsOptions,strats,true);}if(mixins){mixins.forEach(function(m){return mergeOptions$1(to,m,strats,true);});}for(var key in from){if(asMixin&&key==='expose');else{var strat=internalOptionMergeStrats[key]||strats&&strats[key];to[key]=strat?strat(to[key],from[key]):from[key];}}return to;}var internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,// objects
  228. methods:mergeObjectOptions,computed:mergeObjectOptions,// lifecycle
  229. beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,// assets
  230. components:mergeObjectOptions,directives:mergeObjectOptions,// watch
  231. watch:mergeWatchOptions,// provide / inject
  232. provide:mergeDataFn,inject:mergeInject};function mergeDataFn(to,from){if(!from){return to;}if(!to){return from;}return function mergedDataFn(){return extend$1(isFunction$1(to)?to.call(this,this):to,isFunction$1(from)?from.call(this,this):from);};}function mergeInject(to,from){return mergeObjectOptions(normalizeInject(to),normalizeInject(from));}function normalizeInject(raw){if(isArray$7(raw)){var res={};for(var _i15=0;_i15<raw.length;_i15++){res[raw[_i15]]=raw[_i15];}return res;}return raw;}function mergeAsArray(to,from){return to?_toConsumableArray2(new Set([].concat(to,from))):from;}function mergeObjectOptions(to,from){return to?extend$1(extend$1(Object.create(null),to),from):from;}function mergeWatchOptions(to,from){if(!to)return from;if(!from)return to;var merged=extend$1(Object.create(null),to);for(var key in from){merged[key]=mergeAsArray(to[key],from[key]);}return merged;}function initProps(instance,rawProps,isStateful){var isSSR=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var props={};var attrs={};def(attrs,InternalObjectKey,1);instance.propsDefaults=Object.create(null);setFullProps(instance,rawProps,props,attrs);// ensure all declared prop keys are present
  233. for(var key in instance.propsOptions[0]){if(!(key in props)){props[key]=undefined;}}if(isStateful){// stateful
  234. instance.props=isSSR?props:shallowReactive(props);}else{if(!instance.type.props){// functional w/ optional props, props === attrs
  235. instance.props=attrs;}else{// functional w/ declared props
  236. instance.props=props;}}instance.attrs=attrs;}function updateProps(instance,rawProps,rawPrevProps,optimized){var props=instance.props,attrs=instance.attrs,patchFlag=instance.vnode.patchFlag;var rawCurrentProps=toRaw(props);var _instance$propsOption2=_slicedToArray(instance.propsOptions,1),options=_instance$propsOption2[0];var hasAttrsChanged=false;if(// always force full diff in dev
  237. // - #1942 if hmr is enabled with sfc component
  238. // - vite#872 non-sfc component used by sfc component
  239. (optimized||patchFlag>0)&&!(patchFlag&16/* FULL_PROPS */)){if(patchFlag&8/* PROPS */){// Compiler-generated props & no keys change, just set the updated
  240. // the props.
  241. var propsToUpdate=instance.vnode.dynamicProps;for(var _i16=0;_i16<propsToUpdate.length;_i16++){var key=propsToUpdate[_i16];// PROPS flag guarantees rawProps to be non-null
  242. var value=rawProps[key];if(options){// attr / props separation was done on init and will be consistent
  243. // in this code path, so just check if attrs have it.
  244. if(hasOwn$2(attrs,key)){if(value!==attrs[key]){attrs[key]=value;hasAttrsChanged=true;}}else{var camelizedKey=camelize(key);props[camelizedKey]=resolvePropValue(options,rawCurrentProps,camelizedKey,value,instance,false/* isAbsent */);}}else{if(value!==attrs[key]){attrs[key]=value;hasAttrsChanged=true;}}}}}else{// full props update.
  245. if(setFullProps(instance,rawProps,props,attrs)){hasAttrsChanged=true;}// in case of dynamic props, check if we need to delete keys from
  246. // the props object
  247. var kebabKey;for(var _key8 in rawCurrentProps){if(!rawProps||// for camelCase
  248. !hasOwn$2(rawProps,_key8)&&(// it's possible the original props was passed in as kebab-case
  249. // and converted to camelCase (#955)
  250. (kebabKey=hyphenate(_key8))===_key8||!hasOwn$2(rawProps,kebabKey))){if(options){if(rawPrevProps&&(// for camelCase
  251. rawPrevProps[_key8]!==undefined||// for kebab-case
  252. rawPrevProps[kebabKey]!==undefined)){props[_key8]=resolvePropValue(options,rawCurrentProps,_key8,undefined,instance,true/* isAbsent */);}}else{delete props[_key8];}}}// in the case of functional component w/o props declaration, props and
  253. // attrs point to the same object so it should already have been updated.
  254. if(attrs!==rawCurrentProps){for(var _key9 in attrs){if(!rawProps||!hasOwn$2(rawProps,_key9)){delete attrs[_key9];hasAttrsChanged=true;}}}}// trigger updates for $attrs in case it's used in component slots
  255. if(hasAttrsChanged){trigger$1(instance,"set"/* SET */,'$attrs');}}function setFullProps(instance,rawProps,props,attrs){var _instance$propsOption3=_slicedToArray(instance.propsOptions,2),options=_instance$propsOption3[0],needCastKeys=_instance$propsOption3[1];var hasAttrsChanged=false;var rawCastValues;if(rawProps){for(var key in rawProps){// key, ref are reserved and never passed down
  256. if(isReservedProp(key)){continue;}var value=rawProps[key];// prop option names are camelized during normalization, so to support
  257. // kebab -> camel conversion here we need to camelize the key.
  258. var camelKey=void 0;if(options&&hasOwn$2(options,camelKey=camelize(key))){if(!needCastKeys||!needCastKeys.includes(camelKey)){props[camelKey]=value;}else{(rawCastValues||(rawCastValues={}))[camelKey]=value;}}else if(!isEmitListener(instance.emitsOptions,key)){if(!(key in attrs)||value!==attrs[key]){attrs[key]=value;hasAttrsChanged=true;}}}}if(needCastKeys){var rawCurrentProps=toRaw(props);var castValues=rawCastValues||EMPTY_OBJ;for(var _i17=0;_i17<needCastKeys.length;_i17++){var _key10=needCastKeys[_i17];props[_key10]=resolvePropValue(options,rawCurrentProps,_key10,castValues[_key10],instance,!hasOwn$2(castValues,_key10));}}return hasAttrsChanged;}function resolvePropValue(options,props,key,value,instance,isAbsent){var opt=options[key];if(opt!=null){var hasDefault=hasOwn$2(opt,'default');// default values
  259. if(hasDefault&&value===undefined){var defaultValue=opt.default;if(opt.type!==Function&&isFunction$1(defaultValue)){var propsDefaults=instance.propsDefaults;if(key in propsDefaults){value=propsDefaults[key];}else{setCurrentInstance(instance);value=propsDefaults[key]=defaultValue.call(null,props);unsetCurrentInstance();}}else{value=defaultValue;}}// boolean casting
  260. if(opt[0/* shouldCast */]){if(isAbsent&&!hasDefault){value=false;}else if(opt[1/* shouldCastTrue */]&&(value===''||value===hyphenate(key))){value=true;}}}return value;}function normalizePropsOptions(comp,appContext){var asMixin=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var cache=appContext.propsCache;var cached=cache.get(comp);if(cached){return cached;}var raw=comp.props;var normalized={};var needCastKeys=[];// apply mixin/extends props
  261. var hasExtends=false;if(!isFunction$1(comp)){var extendProps=function extendProps(raw){hasExtends=true;var _normalizePropsOption=normalizePropsOptions(raw,appContext,true),_normalizePropsOption2=_slicedToArray(_normalizePropsOption,2),props=_normalizePropsOption2[0],keys=_normalizePropsOption2[1];extend$1(normalized,props);if(keys)needCastKeys.push.apply(needCastKeys,_toConsumableArray2(keys));};if(!asMixin&&appContext.mixins.length){appContext.mixins.forEach(extendProps);}if(comp.extends){extendProps(comp.extends);}if(comp.mixins){comp.mixins.forEach(extendProps);}}if(!raw&&!hasExtends){cache.set(comp,EMPTY_ARR);return EMPTY_ARR;}if(isArray$7(raw)){for(var _i18=0;_i18<raw.length;_i18++){var normalizedKey=camelize(raw[_i18]);if(validatePropName(normalizedKey)){normalized[normalizedKey]=EMPTY_OBJ;}}}else if(raw){for(var key in raw){var _normalizedKey=camelize(key);if(validatePropName(_normalizedKey)){var opt=raw[key];var prop=normalized[_normalizedKey]=isArray$7(opt)||isFunction$1(opt)?{type:opt}:opt;if(prop){var booleanIndex=getTypeIndex(Boolean,prop.type);var stringIndex=getTypeIndex(String,prop.type);prop[0/* shouldCast */]=booleanIndex>-1;prop[1/* shouldCastTrue */]=stringIndex<0||booleanIndex<stringIndex;// if the prop needs boolean casting or default value
  262. if(booleanIndex>-1||hasOwn$2(prop,'default')){needCastKeys.push(_normalizedKey);}}}}}var res=[normalized,needCastKeys];cache.set(comp,res);return res;}function validatePropName(key){if(key[0]!=='$'){return true;}return false;}// use function string name to check type constructors
  263. // so that it works across vms / iframes.
  264. function getType(ctor){var match=ctor&&ctor.toString().match(/^\s*function (\w+)/);return match?match[1]:ctor===null?'null':'';}function isSameType(a,b){return getType(a)===getType(b);}function getTypeIndex(type,expectedTypes){if(isArray$7(expectedTypes)){return expectedTypes.findIndex(function(t){return isSameType(t,type);});}else if(isFunction$1(expectedTypes)){return isSameType(expectedTypes,type)?0:-1;}return-1;}var isInternalKey=function isInternalKey(key){return key[0]==='_'||key==='$stable';};var normalizeSlotValue=function normalizeSlotValue(value){return isArray$7(value)?value.map(normalizeVNode):[normalizeVNode(value)];};var normalizeSlot$1=function normalizeSlot$1(key,rawSlot,ctx){var normalized=withCtx(function(){return normalizeSlotValue(rawSlot.apply(void 0,arguments));},ctx);normalized._c=false;return normalized;};var normalizeObjectSlots=function normalizeObjectSlots(rawSlots,slots,instance){var ctx=rawSlots._ctx;for(var key in rawSlots){if(isInternalKey(key))continue;var value=rawSlots[key];if(isFunction$1(value)){slots[key]=normalizeSlot$1(key,value,ctx);}else if(value!=null){(function(){var normalized=normalizeSlotValue(value);slots[key]=function(){return normalized;};})();}}};var normalizeVNodeSlots=function normalizeVNodeSlots(instance,children){var normalized=normalizeSlotValue(children);instance.slots.default=function(){return normalized;};};var initSlots=function initSlots(instance,children){if(instance.vnode.shapeFlag&32/* SLOTS_CHILDREN */){var _type2=children._;if(_type2){// users can get the shallow readonly version of the slots object through `this.$slots`,
  265. // we should avoid the proxy object polluting the slots of the internal instance
  266. instance.slots=toRaw(children);// make compiler marker non-enumerable
  267. def(children,'_',_type2);}else{normalizeObjectSlots(children,instance.slots={});}}else{instance.slots={};if(children){normalizeVNodeSlots(instance,children);}}def(instance.slots,InternalObjectKey,1);};var updateSlots=function updateSlots(instance,children,optimized){var vnode=instance.vnode,slots=instance.slots;var needDeletionCheck=true;var deletionComparisonTarget=EMPTY_OBJ;if(vnode.shapeFlag&32/* SLOTS_CHILDREN */){var _type3=children._;if(_type3){// compiled slots.
  268. if(optimized&&_type3===1/* STABLE */){// compiled AND stable.
  269. // no need to update, and skip stale slots removal.
  270. needDeletionCheck=false;}else{// compiled but dynamic (v-if/v-for on slots) - update slots, but skip
  271. // normalization.
  272. extend$1(slots,children);// #2893
  273. // when rendering the optimized slots by manually written render function,
  274. // we need to delete the `slots._` flag if necessary to make subsequent updates reliable,
  275. // i.e. let the `renderSlot` create the bailed Fragment
  276. if(!optimized&&_type3===1/* STABLE */){delete slots._;}}}else{needDeletionCheck=!children.$stable;normalizeObjectSlots(children,slots);}deletionComparisonTarget=children;}else if(children){// non slot object children (direct value) passed to a component
  277. normalizeVNodeSlots(instance,children);deletionComparisonTarget={default:1};}// delete stale slots
  278. if(needDeletionCheck){for(var key in slots){if(!isInternalKey(key)&&!(key in deletionComparisonTarget)){delete slots[key];}}}};/**
  279. * Adds directives to a VNode.
  280. */function withDirectives(vnode,directives){var internalInstance=currentRenderingInstance;if(internalInstance===null){return vnode;}var instance=internalInstance.proxy;var bindings=vnode.dirs||(vnode.dirs=[]);for(var _i19=0;_i19<directives.length;_i19++){var _directives$_i=_slicedToArray(directives[_i19],4),dir=_directives$_i[0],value=_directives$_i[1],arg=_directives$_i[2],_directives$_i$=_directives$_i[3],modifiers=_directives$_i$===void 0?EMPTY_OBJ:_directives$_i$;if(isFunction$1(dir)){dir={mounted:dir,updated:dir};}if(dir.deep){traverse(value);}bindings.push({dir:dir,instance:instance,value:value,oldValue:void 0,arg:arg,modifiers:modifiers});}return vnode;}function invokeDirectiveHook(vnode,prevVNode,instance,name){var bindings=vnode.dirs;var oldBindings=prevVNode&&prevVNode.dirs;for(var _i20=0;_i20<bindings.length;_i20++){var binding=bindings[_i20];if(oldBindings){binding.oldValue=oldBindings[_i20].value;}var hook=binding.dir[name];if(hook){// disable tracking inside all lifecycle hooks
  281. // since they can potentially be called inside effects.
  282. pauseTracking();callWithAsyncErrorHandling(hook,instance,8/* DIRECTIVE_HOOK */,[vnode.el,binding,vnode,prevVNode]);resetTracking();}}}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:false,globalProperties:{},optionMergeStrategies:{},errorHandler:undefined,warnHandler:undefined,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap(),propsCache:new WeakMap(),emitsCache:new WeakMap()};}var uid=0;function createAppAPI(render,hydrate){return function createApp(rootComponent){var rootProps=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(rootProps!=null&&!isObject$2(rootProps)){rootProps=null;}var context=createAppContext();var installedPlugins=new Set();var isMounted=false;var app=context.app={_uid:uid++,_component:rootComponent,_props:rootProps,_container:null,_context:context,_instance:null,version:version,get config(){return context.config;},set config(v){},use:function use(plugin){for(var _len6=arguments.length,options=new Array(_len6>1?_len6-1:0),_key11=1;_key11<_len6;_key11++){options[_key11-1]=arguments[_key11];}if(installedPlugins.has(plugin));else if(plugin&&isFunction$1(plugin.install)){installedPlugins.add(plugin);plugin.install.apply(plugin,[app].concat(options));}else if(isFunction$1(plugin)){installedPlugins.add(plugin);plugin.apply(void 0,[app].concat(options));}else;return app;},mixin:function mixin(_mixin){{if(!context.mixins.includes(_mixin)){context.mixins.push(_mixin);}}return app;},component:function component(name,_component){if(!_component){return context.components[name];}context.components[name]=_component;return app;},directive:function directive(name,_directive){if(!_directive){return context.directives[name];}context.directives[name]=_directive;return app;},mount:function mount(rootContainer,isHydrate,isSVG){if(!isMounted){var vnode=createVNode(rootComponent,rootProps);// store app context on the root VNode.
  283. // this will be set on the root instance on initial mount.
  284. vnode.appContext=context;if(isHydrate&&hydrate){hydrate(vnode,rootContainer);}else{render(vnode,rootContainer,isSVG);}isMounted=true;app._container=rootContainer;rootContainer.__vue_app__=app;return getExposeProxy(vnode.component)||vnode.component.proxy;}},unmount:function unmount(){if(isMounted){render(null,app._container);delete app._container.__vue_app__;}},provide:function provide(key,value){// TypeScript doesn't allow symbols as index type
  285. // https://github.com/Microsoft/TypeScript/issues/24587
  286. context.provides[key]=value;return app;}};return app;};}/**
  287. * Function for handling a template ref
  288. */function setRef(rawRef,oldRawRef,parentSuspense,vnode){var isUnmount=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;if(isArray$7(rawRef)){rawRef.forEach(function(r,i){return setRef(r,oldRawRef&&(isArray$7(oldRawRef)?oldRawRef[i]:oldRawRef),parentSuspense,vnode,isUnmount);});return;}if(isAsyncWrapper(vnode)&&!isUnmount){// when mounting async components, nothing needs to be done,
  289. // because the template ref is forwarded to inner component
  290. return;}var refValue=vnode.shapeFlag&4/* STATEFUL_COMPONENT */?getExposeProxy(vnode.component)||vnode.component.proxy:vnode.el;var value=isUnmount?null:refValue;var owner=rawRef.i,ref=rawRef.r;var oldRef=oldRawRef&&oldRawRef.r;var refs=owner.refs===EMPTY_OBJ?owner.refs={}:owner.refs;var setupState=owner.setupState;// dynamic ref changed. unset old ref
  291. if(oldRef!=null&&oldRef!==ref){if(isString$2(oldRef)){refs[oldRef]=null;if(hasOwn$2(setupState,oldRef)){setupState[oldRef]=null;}}else if(isRef(oldRef)){oldRef.value=null;}}if(isFunction$1(ref)){callWithErrorHandling(ref,owner,12/* FUNCTION_REF */,[value,refs]);}else{var _isString=isString$2(ref);var _isRef=isRef(ref);if(_isString||_isRef){var doSet=function doSet(){if(rawRef.f){var existing=_isString?refs[ref]:ref.value;if(isUnmount){isArray$7(existing)&&remove(existing,refValue);}else{if(!isArray$7(existing)){if(_isString){refs[ref]=[refValue];}else{ref.value=[refValue];if(rawRef.k)refs[rawRef.k]=ref.value;}}else if(!existing.includes(refValue)){existing.push(refValue);}}}else if(_isString){refs[ref]=value;if(hasOwn$2(setupState,ref)){setupState[ref]=value;}}else if(isRef(ref)){ref.value=value;if(rawRef.k)refs[rawRef.k]=value;}else;};if(value){doSet.id=-1;queuePostRenderEffect(doSet,parentSuspense);}else{doSet();}}}}var queuePostRenderEffect=queueEffectWithSuspense;/**
  292. * The createRenderer function accepts two generic arguments:
  293. * HostNode and HostElement, corresponding to Node and Element types in the
  294. * host environment. For example, for runtime-dom, HostNode would be the DOM
  295. * `Node` interface and HostElement would be the DOM `Element` interface.
  296. *
  297. * Custom renderers can pass in the platform specific types like this:
  298. *
  299. * ``` js
  300. * const { render, createApp } = createRenderer<Node, Element>({
  301. * patchProp,
  302. * ...nodeOps
  303. * })
  304. * ```
  305. */function createRenderer(options){return baseCreateRenderer(options);}// implementation
  306. function baseCreateRenderer(options,createHydrationFns){var target=getGlobalThis();target.__VUE__=true;var hostInsert=options.insert,hostRemove=options.remove,hostPatchProp=options.patchProp,hostCreateElement=options.createElement,hostCreateText=options.createText,hostCreateComment=options.createComment,hostSetText=options.setText,hostSetElementText=options.setElementText,hostParentNode=options.parentNode,hostNextSibling=options.nextSibling,_options$setScopeId=options.setScopeId,hostSetScopeId=_options$setScopeId===void 0?NOOP:_options$setScopeId,hostCloneNode=options.cloneNode,hostInsertStaticContent=options.insertStaticContent;// Note: functions inside this closure should use `const xxx = () => {}`
  307. // style in order to prevent being inlined by minifiers.
  308. var patch=function patch(n1,n2,container){var anchor=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var parentComponent=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;var parentSuspense=arguments.length>5&&arguments[5]!==undefined?arguments[5]:null;var isSVG=arguments.length>6&&arguments[6]!==undefined?arguments[6]:false;var slotScopeIds=arguments.length>7&&arguments[7]!==undefined?arguments[7]:null;var optimized=arguments.length>8&&arguments[8]!==undefined?arguments[8]:!!n2.dynamicChildren;if(n1===n2){return;}// patching & not same type, unmount old tree
  309. if(n1&&!isSameVNodeType(n1,n2)){anchor=getNextHostNode(n1);unmount(n1,parentComponent,parentSuspense,true);n1=null;}if(n2.patchFlag===-2/* BAIL */){optimized=false;n2.dynamicChildren=null;}var type=n2.type,ref=n2.ref,shapeFlag=n2.shapeFlag;switch(type){case Text:processText(n1,n2,container,anchor);break;case Comment:processCommentNode(n1,n2,container,anchor);break;case Static:if(n1==null){mountStaticNode(n2,container,anchor,isSVG);}break;case Fragment:processFragment(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);break;default:if(shapeFlag&1/* ELEMENT */){processElement(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else if(shapeFlag&6/* COMPONENT */){processComponent(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else if(shapeFlag&64/* TELEPORT */){type.process(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized,internals);}else if(shapeFlag&128/* SUSPENSE */){type.process(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized,internals);}else;}// set ref
  310. if(ref!=null&&parentComponent){setRef(ref,n1&&n1.ref,parentSuspense,n2||n1,!n2);}};var processText=function processText(n1,n2,container,anchor){if(n1==null){hostInsert(n2.el=hostCreateText(n2.children),container,anchor);}else{var el=n2.el=n1.el;if(n2.children!==n1.children){hostSetText(el,n2.children);}}};var processCommentNode=function processCommentNode(n1,n2,container,anchor){if(n1==null){hostInsert(n2.el=hostCreateComment(n2.children||''),container,anchor);}else{// there's no support for dynamic comments
  311. n2.el=n1.el;}};var mountStaticNode=function mountStaticNode(n2,container,anchor,isSVG){var _hostInsertStaticCont=hostInsertStaticContent(n2.children,container,anchor,isSVG);var _hostInsertStaticCont2=_slicedToArray(_hostInsertStaticCont,2);n2.el=_hostInsertStaticCont2[0];n2.anchor=_hostInsertStaticCont2[1];};var moveStaticNode=function moveStaticNode(_ref12,container,nextSibling){var el=_ref12.el,anchor=_ref12.anchor;var next;while(el&&el!==anchor){next=hostNextSibling(el);hostInsert(el,container,nextSibling);el=next;}hostInsert(anchor,container,nextSibling);};var removeStaticNode=function removeStaticNode(_ref13){var el=_ref13.el,anchor=_ref13.anchor;var next;while(el&&el!==anchor){next=hostNextSibling(el);hostRemove(el);el=next;}hostRemove(anchor);};var processElement=function processElement(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){isSVG=isSVG||n2.type==='svg';if(n1==null){mountElement(n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else{patchElement(n1,n2,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}};var mountElement=function mountElement(vnode,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){var el;var vnodeHook;var type=vnode.type,props=vnode.props,shapeFlag=vnode.shapeFlag,transition=vnode.transition,patchFlag=vnode.patchFlag,dirs=vnode.dirs;if(vnode.el&&hostCloneNode!==undefined&&patchFlag===-1/* HOISTED */){// If a vnode has non-null el, it means it's being reused.
  312. // Only static vnodes can be reused, so its mounted DOM nodes should be
  313. // exactly the same, and we can simply do a clone here.
  314. // only do this in production since cloned trees cannot be HMR updated.
  315. el=vnode.el=hostCloneNode(vnode.el);}else{el=vnode.el=hostCreateElement(vnode.type,isSVG,props&&props.is,props);// mount children first, since some props may rely on child content
  316. // being already rendered, e.g. `<select value>`
  317. if(shapeFlag&8/* TEXT_CHILDREN */){hostSetElementText(el,vnode.children);}else if(shapeFlag&16/* ARRAY_CHILDREN */){mountChildren(vnode.children,el,null,parentComponent,parentSuspense,isSVG&&type!=='foreignObject',slotScopeIds,optimized);}if(dirs){invokeDirectiveHook(vnode,null,parentComponent,'created');}// props
  318. if(props){for(var key in props){if(key!=='value'&&!isReservedProp(key)){hostPatchProp(el,key,null,props[key],isSVG,vnode.children,parentComponent,parentSuspense,unmountChildren);}}/**
  319. * Special case for setting value on DOM elements:
  320. * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024)
  321. * - it needs to be forced (#1471)
  322. * #2353 proposes adding another renderer option to configure this, but
  323. * the properties affects are so finite it is worth special casing it
  324. * here to reduce the complexity. (Special casing it also should not
  325. * affect non-DOM renderers)
  326. */if('value'in props){hostPatchProp(el,'value',null,props.value);}if(vnodeHook=props.onVnodeBeforeMount){invokeVNodeHook(vnodeHook,parentComponent,vnode);}}// scopeId
  327. setScopeId(el,vnode,vnode.scopeId,slotScopeIds,parentComponent);}if(dirs){invokeDirectiveHook(vnode,null,parentComponent,'beforeMount');}// #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved
  328. // #1689 For inside suspense + suspense resolved case, just call it
  329. var needCallTransitionHooks=(!parentSuspense||parentSuspense&&!parentSuspense.pendingBranch)&&transition&&!transition.persisted;if(needCallTransitionHooks){transition.beforeEnter(el);}hostInsert(el,container,anchor);if((vnodeHook=props&&props.onVnodeMounted)||needCallTransitionHooks||dirs){queuePostRenderEffect(function(){vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode);needCallTransitionHooks&&transition.enter(el);dirs&&invokeDirectiveHook(vnode,null,parentComponent,'mounted');},parentSuspense);}};var setScopeId=function setScopeId(el,vnode,scopeId,slotScopeIds,parentComponent){if(scopeId){hostSetScopeId(el,scopeId);}if(slotScopeIds){for(var _i21=0;_i21<slotScopeIds.length;_i21++){hostSetScopeId(el,slotScopeIds[_i21]);}}if(parentComponent){var subTree=parentComponent.subTree;if(vnode===subTree){var parentVNode=parentComponent.vnode;setScopeId(el,parentVNode,parentVNode.scopeId,parentVNode.slotScopeIds,parentComponent.parent);}}};var mountChildren=function mountChildren(children,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){var start=arguments.length>8&&arguments[8]!==undefined?arguments[8]:0;for(var _i22=start;_i22<children.length;_i22++){var child=children[_i22]=optimized?cloneIfMounted(children[_i22]):normalizeVNode(children[_i22]);patch(null,child,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}};var patchElement=function patchElement(n1,n2,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){var el=n2.el=n1.el;var patchFlag=n2.patchFlag,dynamicChildren=n2.dynamicChildren,dirs=n2.dirs;// #1426 take the old vnode's patch flag into account since user may clone a
  330. // compiler-generated vnode, which de-opts to FULL_PROPS
  331. patchFlag|=n1.patchFlag&16/* FULL_PROPS */;var oldProps=n1.props||EMPTY_OBJ;var newProps=n2.props||EMPTY_OBJ;var vnodeHook;// disable recurse in beforeUpdate hooks
  332. parentComponent&&toggleRecurse(parentComponent,false);if(vnodeHook=newProps.onVnodeBeforeUpdate){invokeVNodeHook(vnodeHook,parentComponent,n2,n1);}if(dirs){invokeDirectiveHook(n2,n1,parentComponent,'beforeUpdate');}parentComponent&&toggleRecurse(parentComponent,true);var areChildrenSVG=isSVG&&n2.type!=='foreignObject';if(dynamicChildren){patchBlockChildren(n1.dynamicChildren,dynamicChildren,el,parentComponent,parentSuspense,areChildrenSVG,slotScopeIds);}else if(!optimized){// full diff
  333. patchChildren(n1,n2,el,null,parentComponent,parentSuspense,areChildrenSVG,slotScopeIds,false);}if(patchFlag>0){// the presence of a patchFlag means this element's render code was
  334. // generated by the compiler and can take the fast path.
  335. // in this path old node and new node are guaranteed to have the same shape
  336. // (i.e. at the exact same position in the source template)
  337. if(patchFlag&16/* FULL_PROPS */){// element props contain dynamic keys, full diff needed
  338. patchProps(el,n2,oldProps,newProps,parentComponent,parentSuspense,isSVG);}else{// class
  339. // this flag is matched when the element has dynamic class bindings.
  340. if(patchFlag&2/* CLASS */){if(oldProps.class!==newProps.class){hostPatchProp(el,'class',null,newProps.class,isSVG);}}// style
  341. // this flag is matched when the element has dynamic style bindings
  342. if(patchFlag&4/* STYLE */){hostPatchProp(el,'style',oldProps.style,newProps.style,isSVG);}// props
  343. // This flag is matched when the element has dynamic prop/attr bindings
  344. // other than class and style. The keys of dynamic prop/attrs are saved for
  345. // faster iteration.
  346. // Note dynamic keys like :[foo]="bar" will cause this optimization to
  347. // bail out and go through a full diff because we need to unset the old key
  348. if(patchFlag&8/* PROPS */){// if the flag is present then dynamicProps must be non-null
  349. var propsToUpdate=n2.dynamicProps;for(var _i23=0;_i23<propsToUpdate.length;_i23++){var key=propsToUpdate[_i23];var prev=oldProps[key];var next=newProps[key];// #1471 force patch value
  350. if(next!==prev||key==='value'){hostPatchProp(el,key,prev,next,isSVG,n1.children,parentComponent,parentSuspense,unmountChildren);}}}}// text
  351. // This flag is matched when the element has only dynamic text children.
  352. if(patchFlag&1/* TEXT */){if(n1.children!==n2.children){hostSetElementText(el,n2.children);}}}else if(!optimized&&dynamicChildren==null){// unoptimized, full diff
  353. patchProps(el,n2,oldProps,newProps,parentComponent,parentSuspense,isSVG);}if((vnodeHook=newProps.onVnodeUpdated)||dirs){queuePostRenderEffect(function(){vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,n2,n1);dirs&&invokeDirectiveHook(n2,n1,parentComponent,'updated');},parentSuspense);}};// The fast path for blocks.
  354. var patchBlockChildren=function patchBlockChildren(oldChildren,newChildren,fallbackContainer,parentComponent,parentSuspense,isSVG,slotScopeIds){for(var _i24=0;_i24<newChildren.length;_i24++){var oldVNode=oldChildren[_i24];var newVNode=newChildren[_i24];// Determine the container (parent element) for the patch.
  355. var container=// oldVNode may be an errored async setup() component inside Suspense
  356. // which will not have a mounted element
  357. oldVNode.el&&(// - In the case of a Fragment, we need to provide the actual parent
  358. // of the Fragment itself so it can move its children.
  359. oldVNode.type===Fragment||// - In the case of different nodes, there is going to be a replacement
  360. // which also requires the correct parent container
  361. !isSameVNodeType(oldVNode,newVNode)||// - In the case of a component, it could contain anything.
  362. oldVNode.shapeFlag&(6/* COMPONENT */|64/* TELEPORT */))?hostParentNode(oldVNode.el):// In other cases, the parent container is not actually used so we
  363. // just pass the block element here to avoid a DOM parentNode call.
  364. fallbackContainer;patch(oldVNode,newVNode,container,null,parentComponent,parentSuspense,isSVG,slotScopeIds,true);}};var patchProps=function patchProps(el,vnode,oldProps,newProps,parentComponent,parentSuspense,isSVG){if(oldProps!==newProps){for(var key in newProps){// empty string is not valid prop
  365. if(isReservedProp(key))continue;var next=newProps[key];var prev=oldProps[key];// defer patching value
  366. if(next!==prev&&key!=='value'){hostPatchProp(el,key,prev,next,isSVG,vnode.children,parentComponent,parentSuspense,unmountChildren);}}if(oldProps!==EMPTY_OBJ){for(var _key12 in oldProps){if(!isReservedProp(_key12)&&!(_key12 in newProps)){hostPatchProp(el,_key12,oldProps[_key12],null,isSVG,vnode.children,parentComponent,parentSuspense,unmountChildren);}}}if('value'in newProps){hostPatchProp(el,'value',oldProps.value,newProps.value);}}};var processFragment=function processFragment(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){var fragmentStartAnchor=n2.el=n1?n1.el:hostCreateText('');var fragmentEndAnchor=n2.anchor=n1?n1.anchor:hostCreateText('');var patchFlag=n2.patchFlag,dynamicChildren=n2.dynamicChildren,fragmentSlotScopeIds=n2.slotScopeIds;// check if this is a slot fragment with :slotted scope ids
  367. if(fragmentSlotScopeIds){slotScopeIds=slotScopeIds?slotScopeIds.concat(fragmentSlotScopeIds):fragmentSlotScopeIds;}if(n1==null){hostInsert(fragmentStartAnchor,container,anchor);hostInsert(fragmentEndAnchor,container,anchor);// a fragment can only have array children
  368. // since they are either generated by the compiler, or implicitly created
  369. // from arrays.
  370. mountChildren(n2.children,container,fragmentEndAnchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else{if(patchFlag>0&&patchFlag&64/* STABLE_FRAGMENT */&&dynamicChildren&&// #2715 the previous fragment could've been a BAILed one as a result
  371. // of renderSlot() with no valid children
  372. n1.dynamicChildren){// a stable fragment (template root or <template v-for>) doesn't need to
  373. // patch children order, but it may contain dynamicChildren.
  374. patchBlockChildren(n1.dynamicChildren,dynamicChildren,container,parentComponent,parentSuspense,isSVG,slotScopeIds);if(// #2080 if the stable fragment has a key, it's a <template v-for> that may
  375. // get moved around. Make sure all root level vnodes inherit el.
  376. // #2134 or if it's a component root, it may also get moved around
  377. // as the component is being moved.
  378. n2.key!=null||parentComponent&&n2===parentComponent.subTree){traverseStaticChildren(n1,n2,true/* shallow */);}}else{// keyed / unkeyed, or manual fragments.
  379. // for keyed & unkeyed, since they are compiler generated from v-for,
  380. // each child is guaranteed to be a block so the fragment will never
  381. // have dynamicChildren.
  382. patchChildren(n1,n2,container,fragmentEndAnchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}}};var processComponent=function processComponent(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){n2.slotScopeIds=slotScopeIds;if(n1==null){if(n2.shapeFlag&512/* COMPONENT_KEPT_ALIVE */){parentComponent.ctx.activate(n2,container,anchor,isSVG,optimized);}else{mountComponent(n2,container,anchor,parentComponent,parentSuspense,isSVG,optimized);}}else{updateComponent(n1,n2,optimized);}};var mountComponent=function mountComponent(initialVNode,container,anchor,parentComponent,parentSuspense,isSVG,optimized){var instance=initialVNode.component=createComponentInstance(initialVNode,parentComponent,parentSuspense);// inject renderer internals for keepAlive
  383. if(isKeepAlive(initialVNode)){instance.ctx.renderer=internals;}// resolve props and slots for setup context
  384. {setupComponent(instance);}// setup() is async. This component relies on async logic to be resolved
  385. // before proceeding
  386. if(instance.asyncDep){parentSuspense&&parentSuspense.registerDep(instance,setupRenderEffect);// Give it a placeholder if this is not hydration
  387. // TODO handle self-defined fallback
  388. if(!initialVNode.el){var placeholder=instance.subTree=createVNode(Comment);processCommentNode(null,placeholder,container,anchor);}return;}setupRenderEffect(instance,initialVNode,container,anchor,parentSuspense,isSVG,optimized);};var updateComponent=function updateComponent(n1,n2,optimized){var instance=n2.component=n1.component;if(shouldUpdateComponent(n1,n2,optimized)){if(instance.asyncDep&&!instance.asyncResolved){updateComponentPreRender(instance,n2,optimized);return;}else{// normal update
  389. instance.next=n2;// in case the child component is also queued, remove it to avoid
  390. // double updating the same child component in the same flush.
  391. invalidateJob(instance.update);// instance.update is the reactive effect.
  392. instance.update();}}else{// no update needed. just copy over properties
  393. n2.component=n1.component;n2.el=n1.el;instance.vnode=n2;}};var setupRenderEffect=function setupRenderEffect(instance,initialVNode,container,anchor,parentSuspense,isSVG,optimized){var componentUpdateFn=function componentUpdateFn(){if(!instance.isMounted){var vnodeHook;var _initialVNode=initialVNode,el=_initialVNode.el,props=_initialVNode.props;var bm=instance.bm,m=instance.m,parent=instance.parent;var isAsyncWrapperVNode=isAsyncWrapper(initialVNode);toggleRecurse(instance,false);// beforeMount hook
  394. if(bm){invokeArrayFns(bm);}// onVnodeBeforeMount
  395. if(!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeBeforeMount)){invokeVNodeHook(vnodeHook,parent,initialVNode);}toggleRecurse(instance,true);if(el&&hydrateNode){// vnode has adopted host node - perform hydration instead of mount.
  396. var hydrateSubTree=function hydrateSubTree(){instance.subTree=renderComponentRoot(instance);hydrateNode(el,instance.subTree,instance,parentSuspense,null);};if(isAsyncWrapperVNode){initialVNode.type.__asyncLoader().then(// note: we are moving the render call into an async callback,
  397. // which means it won't track dependencies - but it's ok because
  398. // a server-rendered async wrapper is already in resolved state
  399. // and it will never need to change.
  400. function(){return!instance.isUnmounted&&hydrateSubTree();});}else{hydrateSubTree();}}else{var subTree=instance.subTree=renderComponentRoot(instance);patch(null,subTree,container,anchor,instance,parentSuspense,isSVG);initialVNode.el=subTree.el;}// mounted hook
  401. if(m){queuePostRenderEffect(m,parentSuspense);}// onVnodeMounted
  402. if(!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeMounted)){var scopedInitialVNode=initialVNode;queuePostRenderEffect(function(){return invokeVNodeHook(vnodeHook,parent,scopedInitialVNode);},parentSuspense);}// activated hook for keep-alive roots.
  403. // #1742 activated hook must be accessed after first render
  404. // since the hook may be injected by a child keep-alive
  405. if(initialVNode.shapeFlag&256/* COMPONENT_SHOULD_KEEP_ALIVE */){instance.a&&queuePostRenderEffect(instance.a,parentSuspense);}instance.isMounted=true;// #2458: deference mount-only object parameters to prevent memleaks
  406. initialVNode=container=anchor=null;}else{// updateComponent
  407. // This is triggered by mutation of component's own state (next: null)
  408. // OR parent calling processComponent (next: VNode)
  409. var next=instance.next,bu=instance.bu,u=instance.u,_parent=instance.parent,vnode=instance.vnode;var originNext=next;var _vnodeHook;// Disallow component effect recursion during pre-lifecycle hooks.
  410. toggleRecurse(instance,false);if(next){next.el=vnode.el;updateComponentPreRender(instance,next,optimized);}else{next=vnode;}// beforeUpdate hook
  411. if(bu){invokeArrayFns(bu);}// onVnodeBeforeUpdate
  412. if(_vnodeHook=next.props&&next.props.onVnodeBeforeUpdate){invokeVNodeHook(_vnodeHook,_parent,next,vnode);}toggleRecurse(instance,true);var nextTree=renderComponentRoot(instance);var prevTree=instance.subTree;instance.subTree=nextTree;patch(prevTree,nextTree,// parent may have changed if it's in a teleport
  413. hostParentNode(prevTree.el),// anchor may have changed if it's in a fragment
  414. getNextHostNode(prevTree),instance,parentSuspense,isSVG);next.el=nextTree.el;if(originNext===null){// self-triggered update. In case of HOC, update parent component
  415. // vnode el. HOC is indicated by parent instance's subTree pointing
  416. // to child component's vnode
  417. updateHOCHostEl(instance,nextTree.el);}// updated hook
  418. if(u){queuePostRenderEffect(u,parentSuspense);}// onVnodeUpdated
  419. if(_vnodeHook=next.props&&next.props.onVnodeUpdated){queuePostRenderEffect(function(){return invokeVNodeHook(_vnodeHook,_parent,next,vnode);},parentSuspense);}}};// create reactive effect for rendering
  420. var effect=instance.effect=new ReactiveEffect(componentUpdateFn,function(){return queueJob(instance.update);},instance.scope// track it in component's effect scope
  421. );var update=instance.update=effect.run.bind(effect);update.id=instance.uid;// allowRecurse
  422. // #1801, #2043 component render effects should allow recursive updates
  423. toggleRecurse(instance,true);update();};var updateComponentPreRender=function updateComponentPreRender(instance,nextVNode,optimized){nextVNode.component=instance;var prevProps=instance.vnode.props;instance.vnode=nextVNode;instance.next=null;updateProps(instance,nextVNode.props,prevProps,optimized);updateSlots(instance,nextVNode.children,optimized);pauseTracking();// props update may have triggered pre-flush watchers.
  424. // flush them before the render update.
  425. flushPreFlushCbs(undefined,instance.update);resetTracking();};var patchChildren=function patchChildren(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds){var optimized=arguments.length>8&&arguments[8]!==undefined?arguments[8]:false;var c1=n1&&n1.children;var prevShapeFlag=n1?n1.shapeFlag:0;var c2=n2.children;var patchFlag=n2.patchFlag,shapeFlag=n2.shapeFlag;// fast path
  426. if(patchFlag>0){if(patchFlag&128/* KEYED_FRAGMENT */){// this could be either fully-keyed or mixed (some keyed some not)
  427. // presence of patchFlag means children are guaranteed to be arrays
  428. patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);return;}else if(patchFlag&256/* UNKEYED_FRAGMENT */){// unkeyed
  429. patchUnkeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);return;}}// children has 3 possibilities: text, array or no children.
  430. if(shapeFlag&8/* TEXT_CHILDREN */){// text children fast path
  431. if(prevShapeFlag&16/* ARRAY_CHILDREN */){unmountChildren(c1,parentComponent,parentSuspense);}if(c2!==c1){hostSetElementText(container,c2);}}else{if(prevShapeFlag&16/* ARRAY_CHILDREN */){// prev children was array
  432. if(shapeFlag&16/* ARRAY_CHILDREN */){// two arrays, cannot assume anything, do full diff
  433. patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else{// no new children, just unmount old
  434. unmountChildren(c1,parentComponent,parentSuspense,true);}}else{// prev children was text OR null
  435. // new children is array OR null
  436. if(prevShapeFlag&8/* TEXT_CHILDREN */){hostSetElementText(container,'');}// mount new if array
  437. if(shapeFlag&16/* ARRAY_CHILDREN */){mountChildren(c2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}}}};var patchUnkeyedChildren=function patchUnkeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){c1=c1||EMPTY_ARR;c2=c2||EMPTY_ARR;var oldLength=c1.length;var newLength=c2.length;var commonLength=Math.min(oldLength,newLength);var i;for(i=0;i<commonLength;i++){var nextChild=c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]);patch(c1[i],nextChild,container,null,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}if(oldLength>newLength){// remove old
  438. unmountChildren(c1,parentComponent,parentSuspense,true,false,commonLength);}else{// mount new
  439. mountChildren(c2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized,commonLength);}};// can be all-keyed or mixed
  440. var patchKeyedChildren=function patchKeyedChildren(c1,c2,container,parentAnchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized){var i=0;var l2=c2.length;var e1=c1.length-1;// prev ending index
  441. var e2=l2-1;// next ending index
  442. // 1. sync from start
  443. // (a b) c
  444. // (a b) d e
  445. while(i<=e1&&i<=e2){var n1=c1[i];var n2=c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]);if(isSameVNodeType(n1,n2)){patch(n1,n2,container,null,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else{break;}i++;}// 2. sync from end
  446. // a (b c)
  447. // d e (b c)
  448. while(i<=e1&&i<=e2){var _n2=c1[e1];var _n3=c2[e2]=optimized?cloneIfMounted(c2[e2]):normalizeVNode(c2[e2]);if(isSameVNodeType(_n2,_n3)){patch(_n2,_n3,container,null,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else{break;}e1--;e2--;}// 3. common sequence + mount
  449. // (a b)
  450. // (a b) c
  451. // i = 2, e1 = 1, e2 = 2
  452. // (a b)
  453. // c (a b)
  454. // i = 0, e1 = -1, e2 = 0
  455. if(i>e1){if(i<=e2){var nextPos=e2+1;var anchor=nextPos<l2?c2[nextPos].el:parentAnchor;while(i<=e2){patch(null,c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]),container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);i++;}}}// 4. common sequence + unmount
  456. // (a b) c
  457. // (a b)
  458. // i = 2, e1 = 2, e2 = 1
  459. // a (b c)
  460. // (b c)
  461. // i = 0, e1 = 0, e2 = -1
  462. else if(i>e2){while(i<=e1){unmount(c1[i],parentComponent,parentSuspense,true);i++;}}// 5. unknown sequence
  463. // [i ... e1 + 1]: a b [c d e] f g
  464. // [i ... e2 + 1]: a b [e d c h] f g
  465. // i = 2, e1 = 4, e2 = 5
  466. else{var s1=i;// prev starting index
  467. var s2=i;// next starting index
  468. // 5.1 build key:index map for newChildren
  469. var keyToNewIndexMap=new Map();for(i=s2;i<=e2;i++){var nextChild=c2[i]=optimized?cloneIfMounted(c2[i]):normalizeVNode(c2[i]);if(nextChild.key!=null){keyToNewIndexMap.set(nextChild.key,i);}}// 5.2 loop through old children left to be patched and try to patch
  470. // matching nodes & remove nodes that are no longer present
  471. var j;var patched=0;var toBePatched=e2-s2+1;var moved=false;// used to track whether any node has moved
  472. var maxNewIndexSoFar=0;// works as Map<newIndex, oldIndex>
  473. // Note that oldIndex is offset by +1
  474. // and oldIndex = 0 is a special value indicating the new node has
  475. // no corresponding old node.
  476. // used for determining longest stable subsequence
  477. var newIndexToOldIndexMap=new Array(toBePatched);for(i=0;i<toBePatched;i++){newIndexToOldIndexMap[i]=0;}for(i=s1;i<=e1;i++){var prevChild=c1[i];if(patched>=toBePatched){// all new children have been patched so this can only be a removal
  478. unmount(prevChild,parentComponent,parentSuspense,true);continue;}var newIndex=void 0;if(prevChild.key!=null){newIndex=keyToNewIndexMap.get(prevChild.key);}else{// key-less node, try to locate a key-less node of the same type
  479. for(j=s2;j<=e2;j++){if(newIndexToOldIndexMap[j-s2]===0&&isSameVNodeType(prevChild,c2[j])){newIndex=j;break;}}}if(newIndex===undefined){unmount(prevChild,parentComponent,parentSuspense,true);}else{newIndexToOldIndexMap[newIndex-s2]=i+1;if(newIndex>=maxNewIndexSoFar){maxNewIndexSoFar=newIndex;}else{moved=true;}patch(prevChild,c2[newIndex],container,null,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);patched++;}}// 5.3 move and mount
  480. // generate longest stable subsequence only when nodes have moved
  481. var increasingNewIndexSequence=moved?getSequence(newIndexToOldIndexMap):EMPTY_ARR;j=increasingNewIndexSequence.length-1;// looping backwards so that we can use last patched node as anchor
  482. for(i=toBePatched-1;i>=0;i--){var nextIndex=s2+i;var _nextChild=c2[nextIndex];var _anchor=nextIndex+1<l2?c2[nextIndex+1].el:parentAnchor;if(newIndexToOldIndexMap[i]===0){// mount new
  483. patch(null,_nextChild,container,_anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}else if(moved){// move if:
  484. // There is no stable subsequence (e.g. a reverse)
  485. // OR current node is not among the stable sequence
  486. if(j<0||i!==increasingNewIndexSequence[j]){move(_nextChild,container,_anchor,2/* REORDER */);}else{j--;}}}}};var move=function move(vnode,container,anchor,moveType){var parentSuspense=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;var el=vnode.el,type=vnode.type,transition=vnode.transition,children=vnode.children,shapeFlag=vnode.shapeFlag;if(shapeFlag&6/* COMPONENT */){move(vnode.component.subTree,container,anchor,moveType);return;}if(shapeFlag&128/* SUSPENSE */){vnode.suspense.move(container,anchor,moveType);return;}if(shapeFlag&64/* TELEPORT */){type.move(vnode,container,anchor,internals);return;}if(type===Fragment){hostInsert(el,container,anchor);for(var _i25=0;_i25<children.length;_i25++){move(children[_i25],container,anchor,moveType);}hostInsert(vnode.anchor,container,anchor);return;}if(type===Static){moveStaticNode(vnode,container,anchor);return;}// single nodes
  487. var needTransition=moveType!==2/* REORDER */&&shapeFlag&1/* ELEMENT */&&transition;if(needTransition){if(moveType===0/* ENTER */){transition.beforeEnter(el);hostInsert(el,container,anchor);queuePostRenderEffect(function(){return transition.enter(el);},parentSuspense);}else{var leave=transition.leave,delayLeave=transition.delayLeave,afterLeave=transition.afterLeave;var _remove=function _remove(){return hostInsert(el,container,anchor);};var performLeave=function performLeave(){leave(el,function(){_remove();afterLeave&&afterLeave();});};if(delayLeave){delayLeave(el,_remove,performLeave);}else{performLeave();}}}else{hostInsert(el,container,anchor);}};var unmount=function unmount(vnode,parentComponent,parentSuspense){var doRemove=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var optimized=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var type=vnode.type,props=vnode.props,ref=vnode.ref,children=vnode.children,dynamicChildren=vnode.dynamicChildren,shapeFlag=vnode.shapeFlag,patchFlag=vnode.patchFlag,dirs=vnode.dirs;// unset ref
  488. if(ref!=null){setRef(ref,null,parentSuspense,vnode,true);}if(shapeFlag&256/* COMPONENT_SHOULD_KEEP_ALIVE */){parentComponent.ctx.deactivate(vnode);return;}var shouldInvokeDirs=shapeFlag&1/* ELEMENT */&&dirs;var shouldInvokeVnodeHook=!isAsyncWrapper(vnode);var vnodeHook;if(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeBeforeUnmount)){invokeVNodeHook(vnodeHook,parentComponent,vnode);}if(shapeFlag&6/* COMPONENT */){unmountComponent(vnode.component,parentSuspense,doRemove);}else{if(shapeFlag&128/* SUSPENSE */){vnode.suspense.unmount(parentSuspense,doRemove);return;}if(shouldInvokeDirs){invokeDirectiveHook(vnode,null,parentComponent,'beforeUnmount');}if(shapeFlag&64/* TELEPORT */){vnode.type.remove(vnode,parentComponent,parentSuspense,optimized,internals,doRemove);}else if(dynamicChildren&&(// #1153: fast path should not be taken for non-stable (v-for) fragments
  489. type!==Fragment||patchFlag>0&&patchFlag&64/* STABLE_FRAGMENT */)){// fast path for block nodes: only need to unmount dynamic children.
  490. unmountChildren(dynamicChildren,parentComponent,parentSuspense,false,true);}else if(type===Fragment&&patchFlag&(128/* KEYED_FRAGMENT */|256/* UNKEYED_FRAGMENT */)||!optimized&&shapeFlag&16/* ARRAY_CHILDREN */){unmountChildren(children,parentComponent,parentSuspense);}if(doRemove){remove(vnode);}}if(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeUnmounted)||shouldInvokeDirs){queuePostRenderEffect(function(){vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode);shouldInvokeDirs&&invokeDirectiveHook(vnode,null,parentComponent,'unmounted');},parentSuspense);}};var remove=function remove(vnode){var type=vnode.type,el=vnode.el,anchor=vnode.anchor,transition=vnode.transition;if(type===Fragment){removeFragment(el,anchor);return;}if(type===Static){removeStaticNode(vnode);return;}var performRemove=function performRemove(){hostRemove(el);if(transition&&!transition.persisted&&transition.afterLeave){transition.afterLeave();}};if(vnode.shapeFlag&1/* ELEMENT */&&transition&&!transition.persisted){var leave=transition.leave,delayLeave=transition.delayLeave;var performLeave=function performLeave(){return leave(el,performRemove);};if(delayLeave){delayLeave(vnode.el,performRemove,performLeave);}else{performLeave();}}else{performRemove();}};var removeFragment=function removeFragment(cur,end){// For fragments, directly remove all contained DOM nodes.
  491. // (fragment child nodes cannot have transition)
  492. var next;while(cur!==end){next=hostNextSibling(cur);hostRemove(cur);cur=next;}hostRemove(end);};var unmountComponent=function unmountComponent(instance,parentSuspense,doRemove){var bum=instance.bum,scope=instance.scope,update=instance.update,subTree=instance.subTree,um=instance.um;// beforeUnmount hook
  493. if(bum){invokeArrayFns(bum);}// stop effects in component scope
  494. scope.stop();// update may be null if a component is unmounted before its async
  495. // setup has resolved.
  496. if(update){// so that scheduler will no longer invoke it
  497. update.active=false;unmount(subTree,instance,parentSuspense,doRemove);}// unmounted hook
  498. if(um){queuePostRenderEffect(um,parentSuspense);}queuePostRenderEffect(function(){instance.isUnmounted=true;},parentSuspense);// A component with async dep inside a pending suspense is unmounted before
  499. // its async dep resolves. This should remove the dep from the suspense, and
  500. // cause the suspense to resolve immediately if that was the last dep.
  501. if(parentSuspense&&parentSuspense.pendingBranch&&!parentSuspense.isUnmounted&&instance.asyncDep&&!instance.asyncResolved&&instance.suspenseId===parentSuspense.pendingId){parentSuspense.deps--;if(parentSuspense.deps===0){parentSuspense.resolve();}}};var unmountChildren=function unmountChildren(children,parentComponent,parentSuspense){var doRemove=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var optimized=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var start=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;for(var _i26=start;_i26<children.length;_i26++){unmount(children[_i26],parentComponent,parentSuspense,doRemove,optimized);}};var getNextHostNode=function getNextHostNode(vnode){if(vnode.shapeFlag&6/* COMPONENT */){return getNextHostNode(vnode.component.subTree);}if(vnode.shapeFlag&128/* SUSPENSE */){return vnode.suspense.next();}return hostNextSibling(vnode.anchor||vnode.el);};var render=function render(vnode,container,isSVG){if(vnode==null){if(container._vnode){unmount(container._vnode,null,null,true);}}else{patch(container._vnode||null,vnode,container,null,null,null,isSVG);}flushPostFlushCbs();container._vnode=vnode;};var internals={p:patch,um:unmount,m:move,r:remove,mt:mountComponent,mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,n:getNextHostNode,o:options};var hydrate;var hydrateNode;if(createHydrationFns){var _createHydrationFns=createHydrationFns(internals);var _createHydrationFns2=_slicedToArray(_createHydrationFns,2);hydrate=_createHydrationFns2[0];hydrateNode=_createHydrationFns2[1];}return{render:render,hydrate:hydrate,createApp:createAppAPI(render,hydrate)};}function toggleRecurse(_ref14,allowed){var effect=_ref14.effect,update=_ref14.update;effect.allowRecurse=update.allowRecurse=allowed;}/**
  502. * #1156
  503. * When a component is HMR-enabled, we need to make sure that all static nodes
  504. * inside a block also inherit the DOM element from the previous tree so that
  505. * HMR updates (which are full updates) can retrieve the element for patching.
  506. *
  507. * #2080
  508. * Inside keyed `template` fragment static children, if a fragment is moved,
  509. * the children will always be moved. Therefore, in order to ensure correct move
  510. * position, el should be inherited from previous nodes.
  511. */function traverseStaticChildren(n1,n2){var shallow=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var ch1=n1.children;var ch2=n2.children;if(isArray$7(ch1)&&isArray$7(ch2)){for(var _i27=0;_i27<ch1.length;_i27++){// this is only called in the optimized path so array children are
  512. // guaranteed to be vnodes
  513. var c1=ch1[_i27];var c2=ch2[_i27];if(c2.shapeFlag&1/* ELEMENT */&&!c2.dynamicChildren){if(c2.patchFlag<=0||c2.patchFlag===32/* HYDRATE_EVENTS */){c2=ch2[_i27]=cloneIfMounted(ch2[_i27]);c2.el=c1.el;}if(!shallow)traverseStaticChildren(c1,c2);}}}}// https://en.wikipedia.org/wiki/Longest_increasing_subsequence
  514. function getSequence(arr){var p=arr.slice();var result=[0];var i,j,u,v,c;var len=arr.length;for(i=0;i<len;i++){var arrI=arr[i];if(arrI!==0){j=result[result.length-1];if(arr[j]<arrI){p[i]=j;result.push(i);continue;}u=0;v=result.length-1;while(u<v){c=u+v>>1;if(arr[result[c]]<arrI){u=c+1;}else{v=c;}}if(arrI<arr[result[u]]){if(u>0){p[i]=result[u-1];}result[u]=i;}}}u=result.length;v=result[u-1];while(u-->0){result[u]=v;v=p[v];}return result;}var isTeleport=function isTeleport(type){return type.__isTeleport;};var isTeleportDisabled=function isTeleportDisabled(props){return props&&(props.disabled||props.disabled==='');};var isTargetSVG=function isTargetSVG(target){return typeof SVGElement!=='undefined'&&target instanceof SVGElement;};var resolveTarget=function resolveTarget(props,select){var targetSelector=props&&props.to;if(isString$2(targetSelector)){if(!select){return null;}else{var target=select(targetSelector);return target;}}else{return targetSelector;}};var TeleportImpl={__isTeleport:true,process:function process(n1,n2,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized,internals){var mountChildren=internals.mc,patchChildren=internals.pc,patchBlockChildren=internals.pbc,_internals$o=internals.o,insert=_internals$o.insert,querySelector=_internals$o.querySelector,createText=_internals$o.createText,createComment=_internals$o.createComment;var disabled=isTeleportDisabled(n2.props);var shapeFlag=n2.shapeFlag,children=n2.children,dynamicChildren=n2.dynamicChildren;if(n1==null){// insert anchors in the main view
  515. var placeholder=n2.el=createText('');var mainAnchor=n2.anchor=createText('');insert(placeholder,container,anchor);insert(mainAnchor,container,anchor);var target=n2.target=resolveTarget(n2.props,querySelector);var targetAnchor=n2.targetAnchor=createText('');if(target){insert(targetAnchor,target);// #2652 we could be teleporting from a non-SVG tree into an SVG tree
  516. isSVG=isSVG||isTargetSVG(target);}var mount=function mount(container,anchor){// Teleport *always* has Array children. This is enforced in both the
  517. // compiler and vnode children normalization.
  518. if(shapeFlag&16/* ARRAY_CHILDREN */){mountChildren(children,container,anchor,parentComponent,parentSuspense,isSVG,slotScopeIds,optimized);}};if(disabled){mount(container,mainAnchor);}else if(target){mount(target,targetAnchor);}}else{// update content
  519. n2.el=n1.el;var _mainAnchor=n2.anchor=n1.anchor;var _target=n2.target=n1.target;var _targetAnchor=n2.targetAnchor=n1.targetAnchor;var wasDisabled=isTeleportDisabled(n1.props);var currentContainer=wasDisabled?container:_target;var currentAnchor=wasDisabled?_mainAnchor:_targetAnchor;isSVG=isSVG||isTargetSVG(_target);if(dynamicChildren){// fast path when the teleport happens to be a block root
  520. patchBlockChildren(n1.dynamicChildren,dynamicChildren,currentContainer,parentComponent,parentSuspense,isSVG,slotScopeIds);// even in block tree mode we need to make sure all root-level nodes
  521. // in the teleport inherit previous DOM references so that they can
  522. // be moved in future patches.
  523. traverseStaticChildren(n1,n2,true);}else if(!optimized){patchChildren(n1,n2,currentContainer,currentAnchor,parentComponent,parentSuspense,isSVG,slotScopeIds,false);}if(disabled){if(!wasDisabled){// enabled -> disabled
  524. // move into main container
  525. moveTeleport(n2,container,_mainAnchor,internals,1/* TOGGLE */);}}else{// target changed
  526. if((n2.props&&n2.props.to)!==(n1.props&&n1.props.to)){var nextTarget=n2.target=resolveTarget(n2.props,querySelector);if(nextTarget){moveTeleport(n2,nextTarget,null,internals,0/* TARGET_CHANGE */);}}else if(wasDisabled){// disabled -> enabled
  527. // move into teleport target
  528. moveTeleport(n2,_target,_targetAnchor,internals,1/* TOGGLE */);}}}},remove:function remove(vnode,parentComponent,parentSuspense,optimized,_ref15,doRemove){var unmount=_ref15.um,hostRemove=_ref15.o.remove;var shapeFlag=vnode.shapeFlag,children=vnode.children,anchor=vnode.anchor,targetAnchor=vnode.targetAnchor,target=vnode.target,props=vnode.props;if(target){hostRemove(targetAnchor);}// an unmounted teleport should always remove its children if not disabled
  529. if(doRemove||!isTeleportDisabled(props)){hostRemove(anchor);if(shapeFlag&16/* ARRAY_CHILDREN */){for(var _i28=0;_i28<children.length;_i28++){var child=children[_i28];unmount(child,parentComponent,parentSuspense,true,!!child.dynamicChildren);}}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(vnode,container,parentAnchor,_ref16){var insert=_ref16.o.insert,move=_ref16.m;var moveType=arguments.length>4&&arguments[4]!==undefined?arguments[4]:2;// move target anchor if this is a target change.
  530. if(moveType===0/* TARGET_CHANGE */){insert(vnode.targetAnchor,container,parentAnchor);}var el=vnode.el,anchor=vnode.anchor,shapeFlag=vnode.shapeFlag,children=vnode.children,props=vnode.props;var isReorder=moveType===2/* REORDER */;// move main view anchor if this is a re-order.
  531. if(isReorder){insert(el,container,parentAnchor);}// if this is a re-order and teleport is enabled (content is in target)
  532. // do not move children. So the opposite is: only move children if this
  533. // is not a reorder, or the teleport is disabled
  534. if(!isReorder||isTeleportDisabled(props)){// Teleport has either Array children or no children.
  535. if(shapeFlag&16/* ARRAY_CHILDREN */){for(var _i29=0;_i29<children.length;_i29++){move(children[_i29],container,parentAnchor,2/* REORDER */);}}}// move main view anchor if this is a re-order.
  536. if(isReorder){insert(anchor,container,parentAnchor);}}function hydrateTeleport(node,vnode,parentComponent,parentSuspense,slotScopeIds,optimized,_ref17,hydrateChildren){var _ref17$o=_ref17.o,nextSibling=_ref17$o.nextSibling,parentNode=_ref17$o.parentNode,querySelector=_ref17$o.querySelector;var target=vnode.target=resolveTarget(vnode.props,querySelector);if(target){// if multiple teleports rendered to the same target element, we need to
  537. // pick up from where the last teleport finished instead of the first node
  538. var targetNode=target._lpa||target.firstChild;if(vnode.shapeFlag&16/* ARRAY_CHILDREN */){if(isTeleportDisabled(vnode.props)){vnode.anchor=hydrateChildren(nextSibling(node),vnode,parentNode(node),parentComponent,parentSuspense,slotScopeIds,optimized);vnode.targetAnchor=targetNode;}else{vnode.anchor=nextSibling(node);vnode.targetAnchor=hydrateChildren(targetNode,vnode,target,parentComponent,parentSuspense,slotScopeIds,optimized);}target._lpa=vnode.targetAnchor&&nextSibling(vnode.targetAnchor);}}return vnode.anchor&&nextSibling(vnode.anchor);}// Force-casted public typing for h and TSX props inference
  539. var Teleport=exports('ax',TeleportImpl);var COMPONENTS='components';var DIRECTIVES='directives';/**
  540. * @private
  541. */function resolveComponent(name,maybeSelfReference){return resolveAsset(COMPONENTS,name,true,maybeSelfReference)||name;}var NULL_DYNAMIC_COMPONENT=Symbol();/**
  542. * @private
  543. */function resolveDynamicComponent(component){if(isString$2(component)){return resolveAsset(COMPONENTS,component,false)||component;}else{// invalid types will fallthrough to createVNode and raise warning
  544. return component||NULL_DYNAMIC_COMPONENT;}}/**
  545. * @private
  546. */function resolveDirective(name){return resolveAsset(DIRECTIVES,name);}// implementation
  547. function resolveAsset(type,name){var warnMissing=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var maybeSelfReference=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var instance=currentRenderingInstance||currentInstance;if(instance){var Component=instance.type;// explicit self name has highest priority
  548. if(type===COMPONENTS){var selfName=getComponentName(Component);if(selfName&&(selfName===name||selfName===camelize(name)||selfName===capitalize(camelize(name)))){return Component;}}var res=// local registration
  549. // check instance[type] first which is resolved for options API
  550. resolve(instance[type]||Component[type],name)||// global registration
  551. resolve(instance.appContext[type],name);if(!res&&maybeSelfReference){// fallback to implicit self-reference
  552. return Component;}return res;}}function resolve(registry,name){return registry&&(registry[name]||registry[camelize(name)]||registry[capitalize(camelize(name))]);}var Fragment=exports('F',Symbol(undefined));var Text=Symbol(undefined);var Comment=Symbol(undefined);var Static=Symbol(undefined);// Since v-if and v-for are the two possible ways node structure can dynamically
  553. // change, once we consider v-if branches and each v-for fragment a block, we
  554. // can divide a template into nested blocks, and within each block the node
  555. // structure would be stable. This allows us to skip most children diffing
  556. // and only worry about the dynamic nodes (indicated by patch flags).
  557. var blockStack=[];var currentBlock=null;/**
  558. * Open a block.
  559. * This must be called before `createBlock`. It cannot be part of `createBlock`
  560. * because the children of the block are evaluated before `createBlock` itself
  561. * is called. The generated code typically looks like this:
  562. *
  563. * ```js
  564. * function render() {
  565. * return (openBlock(),createBlock('div', null, [...]))
  566. * }
  567. * ```
  568. * disableTracking is true when creating a v-for fragment block, since a v-for
  569. * fragment always diffs its children.
  570. *
  571. * @private
  572. */function openBlock(){var disableTracking=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;blockStack.push(currentBlock=disableTracking?null:[]);}function closeBlock(){blockStack.pop();currentBlock=blockStack[blockStack.length-1]||null;}// Whether we should be tracking dynamic child nodes inside a block.
  573. // Only tracks when this value is > 0
  574. // We are not using a simple boolean because this value may need to be
  575. // incremented/decremented by nested usage of v-once (see below)
  576. var isBlockTreeEnabled=1;/**
  577. * Block tracking sometimes needs to be disabled, for example during the
  578. * creation of a tree that needs to be cached by v-once. The compiler generates
  579. * code like this:
  580. *
  581. * ``` js
  582. * _cache[1] || (
  583. * setBlockTracking(-1),
  584. * _cache[1] = createVNode(...),
  585. * setBlockTracking(1),
  586. * _cache[1]
  587. * )
  588. * ```
  589. *
  590. * @private
  591. */function setBlockTracking(value){isBlockTreeEnabled+=value;}function setupBlock(vnode){// save current block children on the block vnode
  592. vnode.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null;// close block
  593. closeBlock();// a block is always going to be patched, so track it as a child of its
  594. // parent block
  595. if(isBlockTreeEnabled>0&&currentBlock){currentBlock.push(vnode);}return vnode;}/**
  596. * @private
  597. */function createElementBlock(type,props,children,patchFlag,dynamicProps,shapeFlag){return setupBlock(createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,true/* isBlock */));}/**
  598. * Create a block root vnode. Takes the same exact arguments as `createVNode`.
  599. * A block root keeps track of dynamic nodes within the block in the
  600. * `dynamicChildren` array.
  601. *
  602. * @private
  603. */function createBlock(type,props,children,patchFlag,dynamicProps){return setupBlock(createVNode(type,props,children,patchFlag,dynamicProps,true/* isBlock: prevent a block from tracking itself */));}function isVNode(value){return value?value.__v_isVNode===true:false;}function isSameVNodeType(n1,n2){return n1.type===n2.type&&n1.key===n2.key;}var InternalObjectKey="__vInternal";var normalizeKey=function normalizeKey(_ref18){var key=_ref18.key;return key!=null?key:null;};var normalizeRef=function normalizeRef(_ref19){var ref=_ref19.ref,ref_key=_ref19.ref_key,ref_for=_ref19.ref_for;return ref!=null?isString$2(ref)||isRef(ref)||isFunction$1(ref)?{i:currentRenderingInstance,r:ref,k:ref_key,f:!!ref_for}:ref:null;};function createBaseVNode(type){var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var children=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var patchFlag=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var dynamicProps=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;var shapeFlag=arguments.length>5&&arguments[5]!==undefined?arguments[5]:type===Fragment?0:1;var isBlockNode=arguments.length>6&&arguments[6]!==undefined?arguments[6]:false;var needFullChildrenNormalization=arguments.length>7&&arguments[7]!==undefined?arguments[7]:false;var vnode={__v_isVNode:true,__v_skip:true,type:type,props:props,key:props&&normalizeKey(props),ref:props&&normalizeRef(props),scopeId:currentScopeId,slotScopeIds:null,children:children,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:shapeFlag,patchFlag:patchFlag,dynamicProps:dynamicProps,dynamicChildren:null,appContext:null};if(needFullChildrenNormalization){normalizeChildren(vnode,children);// normalize suspense children
  604. if(shapeFlag&128/* SUSPENSE */){type.normalize(vnode);}}else if(children){// compiled element vnode - if children is passed, only possible types are
  605. // string or Array.
  606. vnode.shapeFlag|=isString$2(children)?8/* TEXT_CHILDREN */:16/* ARRAY_CHILDREN */;}// track vnode for block tree
  607. if(isBlockTreeEnabled>0&&// avoid a block node from tracking itself
  608. !isBlockNode&&// has current parent block
  609. currentBlock&&(// presence of a patch flag indicates this node needs patching on updates.
  610. // component nodes also should always be patched, because even if the
  611. // component doesn't need to update, it needs to persist the instance on to
  612. // the next vnode so that it can be properly unmounted later.
  613. vnode.patchFlag>0||shapeFlag&6/* COMPONENT */)&&// the EVENTS flag is only for hydration and if it is the only flag, the
  614. // vnode should not be considered dynamic due to handler caching.
  615. vnode.patchFlag!==32/* HYDRATE_EVENTS */){currentBlock.push(vnode);}return vnode;}var createVNode=exports('c',_createVNode);function _createVNode(type){var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var children=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var patchFlag=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var dynamicProps=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;var isBlockNode=arguments.length>5&&arguments[5]!==undefined?arguments[5]:false;if(!type||type===NULL_DYNAMIC_COMPONENT){type=Comment;}if(isVNode(type)){// createVNode receiving an existing vnode. This happens in cases like
  616. // <component :is="vnode"/>
  617. // #2078 make sure to merge refs during the clone instead of overwriting it
  618. var cloned=cloneVNode(type,props,true/* mergeRef: true */);if(children){normalizeChildren(cloned,children);}return cloned;}// class component normalization.
  619. if(isClassComponent(type)){type=type.__vccOpts;}// class & style normalization.
  620. if(props){// for reactive or proxy objects, we need to clone it to enable mutation.
  621. props=guardReactiveProps(props);var _props=props,klass=_props.class,style=_props.style;if(klass&&!isString$2(klass)){props.class=normalizeClass(klass);}if(isObject$2(style)){// reactive state objects need to be cloned since they are likely to be
  622. // mutated
  623. if(isProxy(style)&&!isArray$7(style)){style=extend$1({},style);}props.style=normalizeStyle(style);}}// encode the vnode type information into a bitmap
  624. var shapeFlag=isString$2(type)?1/* ELEMENT */:isSuspense(type)?128/* SUSPENSE */:isTeleport(type)?64/* TELEPORT */:isObject$2(type)?4/* STATEFUL_COMPONENT */:isFunction$1(type)?2/* FUNCTIONAL_COMPONENT */:0;return createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,isBlockNode,true);}function guardReactiveProps(props){if(!props)return null;return isProxy(props)||InternalObjectKey in props?extend$1({},props):props;}function cloneVNode(vnode,extraProps){var mergeRef=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;// This is intentionally NOT using spread or extend to avoid the runtime
  625. // key enumeration cost.
  626. var props=vnode.props,ref=vnode.ref,patchFlag=vnode.patchFlag,children=vnode.children;var mergedProps=extraProps?mergeProps(props||{},extraProps):props;var cloned={__v_isVNode:true,__v_skip:true,type:vnode.type,props:mergedProps,key:mergedProps&&normalizeKey(mergedProps),ref:extraProps&&extraProps.ref?// #2078 in the case of <component :is="vnode" ref="extra"/>
  627. // if the vnode itself already has a ref, cloneVNode will need to merge
  628. // the refs so the single vnode can be set on multiple refs
  629. mergeRef&&ref?isArray$7(ref)?ref.concat(normalizeRef(extraProps)):[ref,normalizeRef(extraProps)]:normalizeRef(extraProps):ref,scopeId:vnode.scopeId,slotScopeIds:vnode.slotScopeIds,children:children,target:vnode.target,targetAnchor:vnode.targetAnchor,staticCount:vnode.staticCount,shapeFlag:vnode.shapeFlag,// if the vnode is cloned with extra props, we can no longer assume its
  630. // existing patch flag to be reliable and need to add the FULL_PROPS flag.
  631. // note: perserve flag for fragments since they use the flag for children
  632. // fast paths only.
  633. patchFlag:extraProps&&vnode.type!==Fragment?patchFlag===-1// hoisted node
  634. ?16/* FULL_PROPS */:patchFlag|16/* FULL_PROPS */:patchFlag,dynamicProps:vnode.dynamicProps,dynamicChildren:vnode.dynamicChildren,appContext:vnode.appContext,dirs:vnode.dirs,transition:vnode.transition,// These should technically only be non-null on mounted VNodes. However,
  635. // they *should* be copied for kept-alive vnodes. So we just always copy
  636. // them since them being non-null during a mount doesn't affect the logic as
  637. // they will simply be overwritten.
  638. component:vnode.component,suspense:vnode.suspense,ssContent:vnode.ssContent&&cloneVNode(vnode.ssContent),ssFallback:vnode.ssFallback&&cloneVNode(vnode.ssFallback),el:vnode.el,anchor:vnode.anchor};return cloned;}/**
  639. * @private
  640. */function createTextVNode(){var text=arguments.length>0&&arguments[0]!==undefined?arguments[0]:' ';var flag=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return createVNode(Text,null,text,flag);}/**
  641. * @private
  642. */function createStaticVNode(content,numberOfNodes){// A static vnode can contain multiple stringified elements, and the number
  643. // of elements is necessary for hydration.
  644. var vnode=createVNode(Static,null,content);vnode.staticCount=numberOfNodes;return vnode;}/**
  645. * @private
  646. */function createCommentVNode(){var text=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var asBlock=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return asBlock?(openBlock(),createBlock(Comment,null,text)):createVNode(Comment,null,text);}function normalizeVNode(child){if(child==null||typeof child==='boolean'){// empty placeholder
  647. return createVNode(Comment);}else if(isArray$7(child)){// fragment
  648. return createVNode(Fragment,null,// #3666, avoid reference pollution when reusing vnode
  649. child.slice());}else if(_typeof2(child)==='object'){// already vnode, this should be the most common since compiled templates
  650. // always produce all-vnode children arrays
  651. return cloneIfMounted(child);}else{// strings and numbers
  652. return createVNode(Text,null,String(child));}}// optimized normalization for template-compiled render fns
  653. function cloneIfMounted(child){return child.el===null||child.memo?child:cloneVNode(child);}function normalizeChildren(vnode,children){var type=0;var shapeFlag=vnode.shapeFlag;if(children==null){children=null;}else if(isArray$7(children)){type=16/* ARRAY_CHILDREN */;}else if(_typeof2(children)==='object'){if(shapeFlag&(1/* ELEMENT */|64/* TELEPORT */)){// Normalize slot to plain children for plain element and Teleport
  654. var slot=children.default;if(slot){// _c marker is added by withCtx() indicating this is a compiled slot
  655. slot._c&&(slot._d=false);normalizeChildren(vnode,slot());slot._c&&(slot._d=true);}return;}else{type=32/* SLOTS_CHILDREN */;var slotFlag=children._;if(!slotFlag&&!(InternalObjectKey in children)){children._ctx=currentRenderingInstance;}else if(slotFlag===3/* FORWARDED */&&currentRenderingInstance){// a child component receives forwarded slots from the parent.
  656. // its slot type is determined by its parent's slot type.
  657. if(currentRenderingInstance.slots._===1/* STABLE */){children._=1/* STABLE */;}else{children._=2/* DYNAMIC */;vnode.patchFlag|=1024/* DYNAMIC_SLOTS */;}}}}else if(isFunction$1(children)){children={default:children,_ctx:currentRenderingInstance};type=32/* SLOTS_CHILDREN */;}else{children=String(children);// force teleport children to array so it can be moved around
  658. if(shapeFlag&64/* TELEPORT */){type=16/* ARRAY_CHILDREN */;children=[createTextVNode(children)];}else{type=8/* TEXT_CHILDREN */;}}vnode.children=children;vnode.shapeFlag|=type;}function mergeProps(){var ret={};for(var _i30=0;_i30<arguments.length;_i30++){var toMerge=_i30<0||arguments.length<=_i30?undefined:arguments[_i30];for(var key in toMerge){if(key==='class'){if(ret.class!==toMerge.class){ret.class=normalizeClass([ret.class,toMerge.class]);}}else if(key==='style'){ret.style=normalizeStyle([ret.style,toMerge.style]);}else if(isOn(key)){var existing=ret[key];var incoming=toMerge[key];if(existing!==incoming&&!(isArray$7(existing)&&existing.includes(incoming))){ret[key]=existing?[].concat(existing,incoming):incoming;}}else if(key!==''){ret[key]=toMerge[key];}}}return ret;}function invokeVNodeHook(hook,instance,vnode){var prevVNode=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;callWithAsyncErrorHandling(hook,instance,7/* VNODE_HOOK */,[vnode,prevVNode]);}/**
  659. * Actual implementation
  660. */function renderList(source,renderItem,cache,index){var ret;var cached=cache&&cache[index];if(isArray$7(source)||isString$2(source)){ret=new Array(source.length);for(var _i31=0,l=source.length;_i31<l;_i31++){ret[_i31]=renderItem(source[_i31],_i31,undefined,cached&&cached[_i31]);}}else if(typeof source==='number'){ret=new Array(source);for(var _i32=0;_i32<source;_i32++){ret[_i32]=renderItem(_i32+1,_i32,undefined,cached&&cached[_i32]);}}else if(isObject$2(source)){if(source[Symbol.iterator]){ret=Array.from(source,function(item,i){return renderItem(item,i,undefined,cached&&cached[i]);});}else{var _keys2=Object.keys(source);ret=new Array(_keys2.length);for(var _i33=0,_l=_keys2.length;_i33<_l;_i33++){var key=_keys2[_i33];ret[_i33]=renderItem(source[key],key,_i33,cached&&cached[_i33]);}}}else{ret=[];}if(cache){cache[index]=ret;}return ret;}/**
  661. * Compiler runtime helper for creating dynamic slots object
  662. * @private
  663. */function createSlots(slots,dynamicSlots){for(var _i34=0;_i34<dynamicSlots.length;_i34++){var slot=dynamicSlots[_i34];// array of dynamic slot generated by <template v-for="..." #[...]>
  664. if(isArray$7(slot)){for(var j=0;j<slot.length;j++){slots[slot[j].name]=slot[j].fn;}}else if(slot){// conditional single slot generated by <template v-if="..." #foo>
  665. slots[slot.name]=slot.fn;}}return slots;}/**
  666. * Compiler runtime helper for rendering `<slot/>`
  667. * @private
  668. */function renderSlot(slots,name){var props=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var// this is not a user-facing function, so the fallback is always generated by
  669. // the compiler and guaranteed to be a function returning an array
  670. fallback=arguments.length>3?arguments[3]:undefined;var noSlotted=arguments.length>4?arguments[4]:undefined;if(currentRenderingInstance.isCE){return createVNode('slot',name==='default'?null:{name:name},fallback&&fallback());}var slot=slots[name];// a compiled slot disables block tracking by default to avoid manual
  671. // invocation interfering with template-based block tracking, but in
  672. // `renderSlot` we can be sure that it's template-based so we can force
  673. // enable it.
  674. if(slot&&slot._c){slot._d=false;}openBlock();var validSlotContent=slot&&ensureValidVNode(slot(props));var rendered=createBlock(Fragment,{key:props.key||"_".concat(name)},validSlotContent||(fallback?fallback():[]),validSlotContent&&slots._===1/* STABLE */?64/* STABLE_FRAGMENT */:-2/* BAIL */);if(!noSlotted&&rendered.scopeId){rendered.slotScopeIds=[rendered.scopeId+'-s'];}if(slot&&slot._c){slot._d=true;}return rendered;}function ensureValidVNode(vnodes){return vnodes.some(function(child){if(!isVNode(child))return true;if(child.type===Comment)return false;if(child.type===Fragment&&!ensureValidVNode(child.children))return false;return true;})?vnodes:null;}/**
  675. * #2437 In Vue 3, functional components do not have a public instance proxy but
  676. * they exist in the internal parent chain. For code that relies on traversing
  677. * public $parent chains, skip functional ones and go to the parent instead.
  678. */var getPublicInstance=function getPublicInstance(i){if(!i)return null;if(isStatefulComponent(i))return getExposeProxy(i)||i.proxy;return getPublicInstance(i.parent);};var publicPropertiesMap=extend$1(Object.create(null),{$:function $(i){return i;},$el:function $el(i){return i.vnode.el;},$data:function $data(i){return i.data;},$props:function $props(i){return i.props;},$attrs:function $attrs(i){return i.attrs;},$slots:function $slots(i){return i.slots;},$refs:function $refs(i){return i.refs;},$parent:function $parent(i){return getPublicInstance(i.parent);},$root:function $root(i){return getPublicInstance(i.root);},$emit:function $emit(i){return i.emit;},$options:function $options(i){return resolveMergedOptions(i);},$forceUpdate:function $forceUpdate(i){return function(){return queueJob(i.update);};},$nextTick:function $nextTick(i){return nextTick.bind(i.proxy);},$watch:function $watch(i){return instanceWatch.bind(i);}});var PublicInstanceProxyHandlers={get:function get(_ref20,key){var instance=_ref20._;var ctx=instance.ctx,setupState=instance.setupState,data=instance.data,props=instance.props,accessCache=instance.accessCache,type=instance.type,appContext=instance.appContext;// data / props / ctx
  679. // This getter gets called for every property access on the render context
  680. // during render and is a major hotspot. The most expensive part of this
  681. // is the multiple hasOwn() calls. It's much faster to do a simple property
  682. // access on a plain object, so we use an accessCache object (with null
  683. // prototype) to memoize what access type a key corresponds to.
  684. var normalizedProps;if(key[0]!=='$'){var n=accessCache[key];if(n!==undefined){switch(n){case 1/* SETUP */:return setupState[key];case 2/* DATA */:return data[key];case 4/* CONTEXT */:return ctx[key];case 3/* PROPS */:return props[key];// default: just fallthrough
  685. }}else if(setupState!==EMPTY_OBJ&&hasOwn$2(setupState,key)){accessCache[key]=1/* SETUP */;return setupState[key];}else if(data!==EMPTY_OBJ&&hasOwn$2(data,key)){accessCache[key]=2/* DATA */;return data[key];}else if(// only cache other properties when instance has declared (thus stable)
  686. // props
  687. (normalizedProps=instance.propsOptions[0])&&hasOwn$2(normalizedProps,key)){accessCache[key]=3/* PROPS */;return props[key];}else if(ctx!==EMPTY_OBJ&&hasOwn$2(ctx,key)){accessCache[key]=4/* CONTEXT */;return ctx[key];}else if(shouldCacheAccess){accessCache[key]=0/* OTHER */;}}var publicGetter=publicPropertiesMap[key];var cssModule,globalProperties;// public $xxx properties
  688. if(publicGetter){if(key==='$attrs'){track(instance,"get"/* GET */,key);}return publicGetter(instance);}else if(// css module (injected by vue-loader)
  689. (cssModule=type.__cssModules)&&(cssModule=cssModule[key])){return cssModule;}else if(ctx!==EMPTY_OBJ&&hasOwn$2(ctx,key)){// user may set custom properties to `this` that start with `$`
  690. accessCache[key]=4/* CONTEXT */;return ctx[key];}else if(// global properties
  691. globalProperties=appContext.config.globalProperties,hasOwn$2(globalProperties,key)){{return globalProperties[key];}}else;},set:function set(_ref21,key,value){var instance=_ref21._;var data=instance.data,setupState=instance.setupState,ctx=instance.ctx;if(setupState!==EMPTY_OBJ&&hasOwn$2(setupState,key)){setupState[key]=value;}else if(data!==EMPTY_OBJ&&hasOwn$2(data,key)){data[key]=value;}else if(hasOwn$2(instance.props,key)){return false;}if(key[0]==='$'&&key.slice(1)in instance){return false;}else{{ctx[key]=value;}}return true;},has:function has(_ref22,key){var _ref22$_=_ref22._,data=_ref22$_.data,setupState=_ref22$_.setupState,accessCache=_ref22$_.accessCache,ctx=_ref22$_.ctx,appContext=_ref22$_.appContext,propsOptions=_ref22$_.propsOptions;var normalizedProps;return!!accessCache[key]||data!==EMPTY_OBJ&&hasOwn$2(data,key)||setupState!==EMPTY_OBJ&&hasOwn$2(setupState,key)||(normalizedProps=propsOptions[0])&&hasOwn$2(normalizedProps,key)||hasOwn$2(ctx,key)||hasOwn$2(publicPropertiesMap,key)||hasOwn$2(appContext.config.globalProperties,key);}};var emptyAppContext=createAppContext();var uid$1=0;function createComponentInstance(vnode,parent,suspense){var type=vnode.type;// inherit parent app context - or - if root, adopt from root vnode
  692. var appContext=(parent?parent.appContext:vnode.appContext)||emptyAppContext;var instance={uid:uid$1++,vnode:vnode,type:type,parent:parent,appContext:appContext,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(true/* detached */),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:parent?parent.provides:Object.create(appContext.provides),accessCache:null,renderCache:[],// local resovled assets
  693. components:null,directives:null,// resolved props and emits options
  694. propsOptions:normalizePropsOptions(type,appContext),emitsOptions:normalizeEmitsOptions(type,appContext),// emit
  695. emit:null,emitted:null,// props default value
  696. propsDefaults:EMPTY_OBJ,// inheritAttrs
  697. inheritAttrs:type.inheritAttrs,// state
  698. ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,// suspense related
  699. suspense:suspense,suspenseId:suspense?suspense.pendingId:0,asyncDep:null,asyncResolved:false,// lifecycle hooks
  700. // not using enums here because it results in computed properties
  701. isMounted:false,isUnmounted:false,isDeactivated:false,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};{instance.ctx={_:instance};}instance.root=parent?parent.root:instance;instance.emit=emit$1.bind(null,instance);// apply custom element special handling
  702. if(vnode.ce){vnode.ce(instance);}return instance;}var currentInstance=null;var getCurrentInstance=exports('as',function(){return currentInstance||currentRenderingInstance;});var setCurrentInstance=function setCurrentInstance(instance){currentInstance=instance;instance.scope.on();};var unsetCurrentInstance=function unsetCurrentInstance(){currentInstance&&currentInstance.scope.off();currentInstance=null;};function isStatefulComponent(instance){return instance.vnode.shapeFlag&4/* STATEFUL_COMPONENT */;}var isInSSRComponentSetup=false;function setupComponent(instance){var isSSR=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;isInSSRComponentSetup=isSSR;var _instance$vnode=instance.vnode,props=_instance$vnode.props,children=_instance$vnode.children;var isStateful=isStatefulComponent(instance);initProps(instance,props,isStateful,isSSR);initSlots(instance,children);var setupResult=isStateful?setupStatefulComponent(instance,isSSR):undefined;isInSSRComponentSetup=false;return setupResult;}function setupStatefulComponent(instance,isSSR){var Component=instance.type;// 0. create render proxy property access cache
  703. instance.accessCache=Object.create(null);// 1. create public instance / render proxy
  704. // also mark it raw so it's never observed
  705. instance.proxy=markRaw(new Proxy(instance.ctx,PublicInstanceProxyHandlers));// 2. call setup()
  706. var setup=Component.setup;if(setup){var setupContext=instance.setupContext=setup.length>1?createSetupContext(instance):null;setCurrentInstance(instance);pauseTracking();var setupResult=callWithErrorHandling(setup,instance,0/* SETUP_FUNCTION */,[instance.props,setupContext]);resetTracking();unsetCurrentInstance();if(isPromise(setupResult)){setupResult.then(unsetCurrentInstance,unsetCurrentInstance);if(isSSR){// return the promise so server-renderer can wait on it
  707. return setupResult.then(function(resolvedResult){handleSetupResult(instance,resolvedResult,isSSR);}).catch(function(e){handleError(e,instance,0/* SETUP_FUNCTION */);});}else{// async setup returned Promise.
  708. // bail here and wait for re-entry.
  709. instance.asyncDep=setupResult;}}else{handleSetupResult(instance,setupResult,isSSR);}}else{finishComponentSetup(instance,isSSR);}}function handleSetupResult(instance,setupResult,isSSR){if(isFunction$1(setupResult)){// setup returned an inline render function
  710. if(instance.type.__ssrInlineRender){// when the function's name is `ssrRender` (compiled by SFC inline mode),
  711. // set it as ssrRender instead.
  712. instance.ssrRender=setupResult;}else{instance.render=setupResult;}}else if(isObject$2(setupResult)){instance.setupState=proxyRefs(setupResult);}else;finishComponentSetup(instance,isSSR);}var compile;function finishComponentSetup(instance,isSSR,skipOptions){var Component=instance.type;// template / render function normalization
  713. // could be already set when returned from setup()
  714. if(!instance.render){// only do on-the-fly compile if not in SSR - SSR on-the-fly compliation
  715. // is done by server-renderer
  716. if(!isSSR&&compile&&!Component.render){var template=Component.template;if(template){var _instance$appContext$=instance.appContext.config,isCustomElement=_instance$appContext$.isCustomElement,compilerOptions=_instance$appContext$.compilerOptions;var delimiters=Component.delimiters,componentCompilerOptions=Component.compilerOptions;var finalCompilerOptions=extend$1(extend$1({isCustomElement:isCustomElement,delimiters:delimiters},compilerOptions),componentCompilerOptions);Component.render=compile(template,finalCompilerOptions);}}instance.render=Component.render||NOOP;}// support for 2.x options
  717. {setCurrentInstance(instance);pauseTracking();applyOptions(instance);resetTracking();unsetCurrentInstance();}}function createAttrsProxy(instance){return new Proxy(instance.attrs,{get:function get(target,key){track(instance,"get"/* GET */,'$attrs');return target[key];}});}function createSetupContext(instance){var expose=function expose(exposed){instance.exposed=exposed||{};};var attrs;{return{get attrs(){return attrs||(attrs=createAttrsProxy(instance));},slots:instance.slots,emit:instance.emit,expose:expose};}}function getExposeProxy(instance){if(instance.exposed){return instance.exposeProxy||(instance.exposeProxy=new Proxy(proxyRefs(markRaw(instance.exposed)),{get:function get(target,key){if(key in target){return target[key];}else if(key in publicPropertiesMap){return publicPropertiesMap[key](instance);}}}));}}var classifyRE=/(?:^|[-_])(\w)/g;var classify=function classify(str){return str.replace(classifyRE,function(c){return c.toUpperCase();}).replace(/[-_]/g,'');};function getComponentName(Component){return isFunction$1(Component)?Component.displayName||Component.name:Component.name;}/* istanbul ignore next */function formatComponentName(instance,Component){var isRoot=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var name=getComponentName(Component);if(!name&&Component.__file){var _match=Component.__file.match(/([^/\\]+)\.\w+$/);if(_match){name=_match[1];}}if(!name&&instance&&instance.parent){// try to infer the name based on reverse resolution
  718. var inferFromRegistry=function inferFromRegistry(registry){for(var key in registry){if(registry[key]===Component){return key;}}};name=inferFromRegistry(instance.components||instance.parent.type.components)||inferFromRegistry(instance.appContext.components);}return name?classify(name):isRoot?"App":"Anonymous";}function isClassComponent(value){return isFunction$1(value)&&'__vccOpts'in value;}var stack=[];function warn(msg){// avoid props formatting or warn handler tracking deps that might be mutated
  719. // during patch, leading to infinite recursion.
  720. pauseTracking();var instance=stack.length?stack[stack.length-1].component:null;var appWarnHandler=instance&&instance.appContext.config.warnHandler;var trace=getComponentTrace();for(var _len7=arguments.length,args=new Array(_len7>1?_len7-1:0),_key13=1;_key13<_len7;_key13++){args[_key13-1]=arguments[_key13];}if(appWarnHandler){callWithErrorHandling(appWarnHandler,instance,11/* APP_WARN_HANDLER */,[msg+args.join(''),instance&&instance.proxy,trace.map(function(_ref23){var vnode=_ref23.vnode;return"at <".concat(formatComponentName(instance,vnode.type),">");}).join('\n'),trace]);}else{var _console;var warnArgs=["[Vue warn]: ".concat(msg)].concat(args);/* istanbul ignore if */if(trace.length&&// avoid spamming console during tests
  721. !false){warnArgs.push.apply(warnArgs,["\n"].concat(_toConsumableArray2(formatTrace(trace))));}(_console=console).warn.apply(_console,_toConsumableArray2(warnArgs));}resetTracking();}function getComponentTrace(){var currentVNode=stack[stack.length-1];if(!currentVNode){return[];}// we can't just use the stack because it will be incomplete during updates
  722. // that did not start from the root. Re-construct the parent chain using
  723. // instance parent pointers.
  724. var normalizedStack=[];while(currentVNode){var last=normalizedStack[0];if(last&&last.vnode===currentVNode){last.recurseCount++;}else{normalizedStack.push({vnode:currentVNode,recurseCount:0});}var parentInstance=currentVNode.component&&currentVNode.component.parent;currentVNode=parentInstance&&parentInstance.vnode;}return normalizedStack;}/* istanbul ignore next */function formatTrace(trace){var logs=[];trace.forEach(function(entry,i){logs.push.apply(logs,_toConsumableArray2(i===0?[]:["\n"]).concat(_toConsumableArray2(formatTraceEntry(entry))));});return logs;}function formatTraceEntry(_ref24){var vnode=_ref24.vnode,recurseCount=_ref24.recurseCount;var postfix=recurseCount>0?"... (".concat(recurseCount," recursive calls)"):"";var isRoot=vnode.component?vnode.component.parent==null:false;var open=" at <".concat(formatComponentName(vnode.component,vnode.type,isRoot));var close=">"+postfix;return vnode.props?[open].concat(_toConsumableArray2(formatProps(vnode.props)),[close]):[open+close];}/* istanbul ignore next */function formatProps(props){var res=[];var keys=Object.keys(props);keys.slice(0,3).forEach(function(key){res.push.apply(res,_toConsumableArray2(formatProp(key,props[key])));});if(keys.length>3){res.push(" ...");}return res;}/* istanbul ignore next */function formatProp(key,value,raw){if(isString$2(value)){value=JSON.stringify(value);return raw?value:["".concat(key,"=").concat(value)];}else if(typeof value==='number'||typeof value==='boolean'||value==null){return raw?value:["".concat(key,"=").concat(value)];}else if(isRef(value)){value=formatProp(key,toRaw(value.value),true);return raw?value:["".concat(key,"=Ref<"),value,">"];}else if(isFunction$1(value)){return["".concat(key,"=fn").concat(value.name?"<".concat(value.name,">"):"")];}else{value=toRaw(value);return raw?value:["".concat(key,"="),value];}}function callWithErrorHandling(fn,instance,type,args){var res;try{res=args?fn.apply(void 0,_toConsumableArray2(args)):fn();}catch(err){handleError(err,instance,type);}return res;}function callWithAsyncErrorHandling(fn,instance,type,args){if(isFunction$1(fn)){var res=callWithErrorHandling(fn,instance,type,args);if(res&&isPromise(res)){res.catch(function(err){handleError(err,instance,type);});}return res;}var values=[];for(var _i35=0;_i35<fn.length;_i35++){values.push(callWithAsyncErrorHandling(fn[_i35],instance,type,args));}return values;}function handleError(err,instance,type){var throwInDev=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var contextVNode=instance?instance.vnode:null;if(instance){var cur=instance.parent;// the exposed instance is the render proxy to keep it consistent with 2.x
  725. var exposedInstance=instance.proxy;// in production the hook receives only the error code
  726. var errorInfo=type;while(cur){var errorCapturedHooks=cur.ec;if(errorCapturedHooks){for(var _i36=0;_i36<errorCapturedHooks.length;_i36++){if(errorCapturedHooks[_i36](err,exposedInstance,errorInfo)===false){return;}}}cur=cur.parent;}// app-level handling
  727. var appErrorHandler=instance.appContext.config.errorHandler;if(appErrorHandler){callWithErrorHandling(appErrorHandler,null,10/* APP_ERROR_HANDLER */,[err,exposedInstance,errorInfo]);return;}}logError(err,type,contextVNode,throwInDev);}function logError(err,type,contextVNode){var throwInDev=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;{// recover in prod to reduce the impact on end-user
  728. console.error(err);}}var isFlushing=false;var isFlushPending=false;var queue=[];var flushIndex=0;var pendingPreFlushCbs=[];var activePreFlushCbs=null;var preFlushIndex=0;var pendingPostFlushCbs=[];var activePostFlushCbs=null;var postFlushIndex=0;var resolvedPromise=Promise.resolve();var currentFlushPromise=null;var currentPreFlushParentJob=null;function nextTick(fn){var p=currentFlushPromise||resolvedPromise;return fn?p.then(this?fn.bind(this):fn):p;}// #2768
  729. // Use binary-search to find a suitable position in the queue,
  730. // so that the queue maintains the increasing order of job's id,
  731. // which can prevent the job from being skipped and also can avoid repeated patching.
  732. function findInsertionIndex(id){// the start index should be `flushIndex + 1`
  733. var start=flushIndex+1;var end=queue.length;while(start<end){var middle=start+end>>>1;var middleJobId=getId(queue[middle]);middleJobId<id?start=middle+1:end=middle;}return start;}function queueJob(job){// the dedupe search uses the startIndex argument of Array.includes()
  734. // by default the search index includes the current job that is being run
  735. // so it cannot recursively trigger itself again.
  736. // if the job is a watch() callback, the search will start with a +1 index to
  737. // allow it recursively trigger itself - it is the user's responsibility to
  738. // ensure it doesn't end up in an infinite loop.
  739. if((!queue.length||!queue.includes(job,isFlushing&&job.allowRecurse?flushIndex+1:flushIndex))&&job!==currentPreFlushParentJob){if(job.id==null){queue.push(job);}else{queue.splice(findInsertionIndex(job.id),0,job);}queueFlush();}}function queueFlush(){if(!isFlushing&&!isFlushPending){isFlushPending=true;currentFlushPromise=resolvedPromise.then(flushJobs);}}function invalidateJob(job){var i=queue.indexOf(job);if(i>flushIndex){queue.splice(i,1);}}function queueCb(cb,activeQueue,pendingQueue,index){if(!isArray$7(cb)){if(!activeQueue||!activeQueue.includes(cb,cb.allowRecurse?index+1:index)){pendingQueue.push(cb);}}else{// if cb is an array, it is a component lifecycle hook which can only be
  740. // triggered by a job, which is already deduped in the main queue, so
  741. // we can skip duplicate check here to improve perf
  742. pendingQueue.push.apply(pendingQueue,_toConsumableArray2(cb));}queueFlush();}function queuePreFlushCb(cb){queueCb(cb,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex);}function queuePostFlushCb(cb){queueCb(cb,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex);}function flushPreFlushCbs(seen){var parentJob=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(pendingPreFlushCbs.length){currentPreFlushParentJob=parentJob;activePreFlushCbs=_toConsumableArray2(new Set(pendingPreFlushCbs));pendingPreFlushCbs.length=0;for(preFlushIndex=0;preFlushIndex<activePreFlushCbs.length;preFlushIndex++){activePreFlushCbs[preFlushIndex]();}activePreFlushCbs=null;preFlushIndex=0;currentPreFlushParentJob=null;// recursively flush until it drains
  743. flushPreFlushCbs(seen,parentJob);}}function flushPostFlushCbs(seen){if(pendingPostFlushCbs.length){var deduped=_toConsumableArray2(new Set(pendingPostFlushCbs));pendingPostFlushCbs.length=0;// #1947 already has active queue, nested flushPostFlushCbs call
  744. if(activePostFlushCbs){var _activePostFlushCbs;(_activePostFlushCbs=activePostFlushCbs).push.apply(_activePostFlushCbs,_toConsumableArray2(deduped));return;}activePostFlushCbs=deduped;activePostFlushCbs.sort(function(a,b){return getId(a)-getId(b);});for(postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){activePostFlushCbs[postFlushIndex]();}activePostFlushCbs=null;postFlushIndex=0;}}var getId=function getId(job){return job.id==null?Infinity:job.id;};function flushJobs(seen){isFlushPending=false;isFlushing=true;flushPreFlushCbs(seen);// Sort queue before flush.
  745. // This ensures that:
  746. // 1. Components are updated from parent to child. (because parent is always
  747. // created before the child so its render effect will have smaller
  748. // priority number)
  749. // 2. If a component is unmounted during a parent component's update,
  750. // its update can be skipped.
  751. queue.sort(function(a,b){return getId(a)-getId(b);});// conditional usage of checkRecursiveUpdate must be determined out of
  752. // try ... catch block since Rollup by default de-optimizes treeshaking
  753. // inside try-catch. This can leave all warning code unshaked. Although
  754. // they would get eventually shaken by a minifier like terser, some minifiers
  755. // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)
  756. var check=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){var job=queue[flushIndex];if(job&&job.active!==false){if("production"!=='production'&&check(job));// console.log(`running:`, job.id)
  757. callWithErrorHandling(job,null,14/* SCHEDULER */);}}}finally{flushIndex=0;queue.length=0;flushPostFlushCbs();isFlushing=false;currentFlushPromise=null;// some postFlushCb queued jobs!
  758. // keep flushing until it drains.
  759. if(queue.length||pendingPreFlushCbs.length||pendingPostFlushCbs.length){flushJobs(seen);}}}// Simple effect.
  760. function watchEffect(effect,options){return doWatch(effect,null,options);}// initial value for watchers to trigger on undefined initial values
  761. var INITIAL_WATCHER_VALUE={};// implementation
  762. function watch(source,cb,options){return doWatch(source,cb,options);}function doWatch(source,cb){var _ref25=arguments.length>2&&arguments[2]!==undefined?arguments[2]:EMPTY_OBJ,immediate=_ref25.immediate,deep=_ref25.deep,flush=_ref25.flush,onTrack=_ref25.onTrack,onTrigger=_ref25.onTrigger;var instance=currentInstance;var getter;var forceTrigger=false;var isMultiSource=false;if(isRef(source)){getter=function getter(){return source.value;};forceTrigger=!!source._shallow;}else if(isReactive(source)){getter=function getter(){return source;};deep=true;}else if(isArray$7(source)){isMultiSource=true;forceTrigger=source.some(isReactive);getter=function getter(){return source.map(function(s){if(isRef(s)){return s.value;}else if(isReactive(s)){return traverse(s);}else if(isFunction$1(s)){return callWithErrorHandling(s,instance,2/* WATCH_GETTER */);}else;});};}else if(isFunction$1(source)){if(cb){// getter with cb
  763. getter=function getter(){return callWithErrorHandling(source,instance,2/* WATCH_GETTER */);};}else{// no cb -> simple effect
  764. getter=function getter(){if(instance&&instance.isUnmounted){return;}if(cleanup){cleanup();}return callWithAsyncErrorHandling(source,instance,3/* WATCH_CALLBACK */,[onInvalidate]);};}}else{getter=NOOP;}if(cb&&deep){var baseGetter=getter;getter=function getter(){return traverse(baseGetter());};}var cleanup;var onInvalidate=function onInvalidate(fn){cleanup=effect.onStop=function(){callWithErrorHandling(fn,instance,4/* WATCH_CLEANUP */);};};// in SSR there is no need to setup an actual effect, and it should be noop
  765. // unless it's eager
  766. if(isInSSRComponentSetup){// we will also not call the invalidate callback (+ runner is not set up)
  767. onInvalidate=NOOP;if(!cb){getter();}else if(immediate){callWithAsyncErrorHandling(cb,instance,3/* WATCH_CALLBACK */,[getter(),isMultiSource?[]:undefined,onInvalidate]);}return NOOP;}var oldValue=isMultiSource?[]:INITIAL_WATCHER_VALUE;var job=function job(){if(!effect.active){return;}if(cb){// watch(source, cb)
  768. var newValue=effect.run();if(deep||forceTrigger||(isMultiSource?newValue.some(function(v,i){return hasChanged(v,oldValue[i]);}):hasChanged(newValue,oldValue))||false){// cleanup before running cb again
  769. if(cleanup){cleanup();}callWithAsyncErrorHandling(cb,instance,3/* WATCH_CALLBACK */,[newValue,// pass undefined as the old value when it's changed for the first time
  770. oldValue===INITIAL_WATCHER_VALUE?undefined:oldValue,onInvalidate]);oldValue=newValue;}}else{// watchEffect
  771. effect.run();}};// important: mark the job as a watcher callback so that scheduler knows
  772. // it is allowed to self-trigger (#1727)
  773. job.allowRecurse=!!cb;var scheduler;if(flush==='sync'){scheduler=job;// the scheduler function gets called directly
  774. }else if(flush==='post'){scheduler=function scheduler(){return queuePostRenderEffect(job,instance&&instance.suspense);};}else{// default: 'pre'
  775. scheduler=function scheduler(){if(!instance||instance.isMounted){queuePreFlushCb(job);}else{// with 'pre' option, the first call must happen before
  776. // the component is mounted so it is called synchronously.
  777. job();}};}var effect=new ReactiveEffect(getter,scheduler);// initial run
  778. if(cb){if(immediate){job();}else{oldValue=effect.run();}}else if(flush==='post'){queuePostRenderEffect(effect.run.bind(effect),instance&&instance.suspense);}else{effect.run();}return function(){effect.stop();if(instance&&instance.scope){remove(instance.scope.effects,effect);}};}// this.$watch
  779. function instanceWatch(source,value,options){var publicThis=this.proxy;var getter=isString$2(source)?source.includes('.')?createPathGetter(publicThis,source):function(){return publicThis[source];}:source.bind(publicThis,publicThis);var cb;if(isFunction$1(value)){cb=value;}else{cb=value.handler;options=value;}var cur=currentInstance;setCurrentInstance(this);var res=doWatch(getter,cb.bind(publicThis),options);if(cur){setCurrentInstance(cur);}else{unsetCurrentInstance();}return res;}function createPathGetter(ctx,path){var segments=path.split('.');return function(){var cur=ctx;for(var _i37=0;_i37<segments.length&&cur;_i37++){cur=cur[segments[_i37]];}return cur;};}function traverse(value,seen){if(!isObject$2(value)||value["__v_skip"/* SKIP */]){return value;}seen=seen||new Set();if(seen.has(value)){return value;}seen.add(value);if(isRef(value)){traverse(value.value,seen);}else if(isArray$7(value)){for(var _i38=0;_i38<value.length;_i38++){traverse(value[_i38],seen);}}else if(isSet$3(value)||isMap$3(value)){value.forEach(function(v){traverse(v,seen);});}else if(isPlainObject$2(value)){for(var key in value){traverse(value[key],seen);}}return value;}function useSlots(){return getContext().slots;}function useAttrs$1(){return getContext().attrs;}function getContext(){var i=getCurrentInstance();return i.setupContext||(i.setupContext=createSetupContext(i));}// Actual implementation
  780. function h(type,propsOrChildren,children){var l=arguments.length;if(l===2){if(isObject$2(propsOrChildren)&&!isArray$7(propsOrChildren)){// single vnode without props
  781. if(isVNode(propsOrChildren)){return createVNode(type,null,[propsOrChildren]);}// props without children
  782. return createVNode(type,propsOrChildren);}else{// omit props
  783. return createVNode(type,null,propsOrChildren);}}else{if(l>3){children=Array.prototype.slice.call(arguments,2);}else if(l===3&&isVNode(children)){children=[children];}return createVNode(type,propsOrChildren,children);}}// Core API ------------------------------------------------------------------
  784. var version="3.2.26";var svgNS='http://www.w3.org/2000/svg';var doc=typeof document!=='undefined'?document:null;var staticTemplateCache=new Map();var nodeOps={insert:function insert(child,parent,anchor){parent.insertBefore(child,anchor||null);},remove:function remove(child){var parent=child.parentNode;if(parent){parent.removeChild(child);}},createElement:function createElement(tag,isSVG,is,props){var el=isSVG?doc.createElementNS(svgNS,tag):doc.createElement(tag,is?{is:is}:undefined);if(tag==='select'&&props&&props.multiple!=null){el.setAttribute('multiple',props.multiple);}return el;},createText:function createText(text){return doc.createTextNode(text);},createComment:function createComment(text){return doc.createComment(text);},setText:function setText(node,text){node.nodeValue=text;},setElementText:function setElementText(el,text){el.textContent=text;},parentNode:function parentNode(node){return node.parentNode;},nextSibling:function nextSibling(node){return node.nextSibling;},querySelector:function querySelector(selector){return doc.querySelector(selector);},setScopeId:function setScopeId(el,id){el.setAttribute(id,'');},cloneNode:function cloneNode(el){var cloned=el.cloneNode(true);// #3072
  785. // - in `patchDOMProp`, we store the actual value in the `el._value` property.
  786. // - normally, elements using `:value` bindings will not be hoisted, but if
  787. // the bound value is a constant, e.g. `:value="true"` - they do get
  788. // hoisted.
  789. // - in production, hoisted nodes are cloned when subsequent inserts, but
  790. // cloneNode() does not copy the custom property we attached.
  791. // - This may need to account for other custom DOM properties we attach to
  792. // elements in addition to `_value` in the future.
  793. if("_value"in el){cloned._value=el._value;}return cloned;},// __UNSAFE__
  794. // Reason: innerHTML.
  795. // Static content here can only come from compiled templates.
  796. // As long as the user only uses trusted templates, this is safe.
  797. insertStaticContent:function insertStaticContent(content,parent,anchor,isSVG){// <parent> before | first ... last | anchor </parent>
  798. var before=anchor?anchor.previousSibling:parent.lastChild;var template=staticTemplateCache.get(content);if(!template){var t=doc.createElement('template');t.innerHTML=isSVG?"<svg>".concat(content,"</svg>"):content;template=t.content;if(isSVG){// remove outer svg wrapper
  799. var wrapper=template.firstChild;while(wrapper.firstChild){template.appendChild(wrapper.firstChild);}template.removeChild(wrapper);}staticTemplateCache.set(content,template);}parent.insertBefore(template.cloneNode(true),anchor);return[// first
  800. before?before.nextSibling:parent.firstChild,// last
  801. anchor?anchor.previousSibling:parent.lastChild];}};// compiler should normalize class + :class bindings on the same element
  802. // into a single binding ['staticClass', dynamic]
  803. function patchClass(el,value,isSVG){// directly setting className should be faster than setAttribute in theory
  804. // if this is an element during a transition, take the temporary transition
  805. // classes into account.
  806. var transitionClasses=el._vtc;if(transitionClasses){value=(value?[value].concat(_toConsumableArray2(transitionClasses)):_toConsumableArray2(transitionClasses)).join(' ');}if(value==null){el.removeAttribute('class');}else if(isSVG){el.setAttribute('class',value);}else{el.className=value;}}function patchStyle(el,prev,next){var style=el.style;var isCssString=isString$2(next);if(next&&!isCssString){for(var key in next){setStyle(style,key,next[key]);}if(prev&&!isString$2(prev)){for(var _key14 in prev){if(next[_key14]==null){setStyle(style,_key14,'');}}}}else{var currentDisplay=style.display;if(isCssString){if(prev!==next){style.cssText=next;}}else if(prev){el.removeAttribute('style');}// indicates that the `display` of the element is controlled by `v-show`,
  807. // so we always keep the current `display` value regardless of the `style`
  808. // value, thus handing over control to `v-show`.
  809. if('_vod'in el){style.display=currentDisplay;}}}var importantRE=/\s*!important$/;function setStyle(style,name,val){if(isArray$7(val)){val.forEach(function(v){return setStyle(style,name,v);});}else{if(name.startsWith('--')){// custom property definition
  810. style.setProperty(name,val);}else{var prefixed=autoPrefix(style,name);if(importantRE.test(val)){// !important
  811. style.setProperty(hyphenate(prefixed),val.replace(importantRE,''),'important');}else{style[prefixed]=val;}}}}var prefixes=['Webkit','Moz','ms'];var prefixCache={};function autoPrefix(style,rawName){var cached=prefixCache[rawName];if(cached){return cached;}var name=camelize(rawName);if(name!=='filter'&&name in style){return prefixCache[rawName]=name;}name=capitalize(name);for(var _i39=0;_i39<prefixes.length;_i39++){var prefixed=prefixes[_i39]+name;if(prefixed in style){return prefixCache[rawName]=prefixed;}}return rawName;}var xlinkNS='http://www.w3.org/1999/xlink';function patchAttr(el,key,value,isSVG,instance){if(isSVG&&key.startsWith('xlink:')){if(value==null){el.removeAttributeNS(xlinkNS,key.slice(6,key.length));}else{el.setAttributeNS(xlinkNS,key,value);}}else{// note we are only checking boolean attributes that don't have a
  812. // corresponding dom prop of the same name here.
  813. var _isBoolean=isSpecialBooleanAttr(key);if(value==null||_isBoolean&&!includeBooleanAttr(value)){el.removeAttribute(key);}else{el.setAttribute(key,_isBoolean?'':value);}}}// __UNSAFE__
  814. // functions. The user is responsible for using them with only trusted content.
  815. function patchDOMProp(el,key,value,// the following args are passed only due to potential innerHTML/textContent
  816. // overriding existing VNodes, in which case the old tree must be properly
  817. // unmounted.
  818. prevChildren,parentComponent,parentSuspense,unmountChildren){if(key==='innerHTML'||key==='textContent'){if(prevChildren){unmountChildren(prevChildren,parentComponent,parentSuspense);}el[key]=value==null?'':value;return;}if(key==='value'&&el.tagName!=='PROGRESS'&&// custom elements may use _value internally
  819. !el.tagName.includes('-')){// store value as _value as well since
  820. // non-string values will be stringified.
  821. el._value=value;var newValue=value==null?'':value;if(el.value!==newValue||// #4956: always set for OPTION elements because its value falls back to
  822. // textContent if no value attribute is present. And setting .value for
  823. // OPTION has no side effect
  824. el.tagName==='OPTION'){el.value=newValue;}if(value==null){el.removeAttribute(key);}return;}if(value===''||value==null){var _type4=_typeof2(el[key]);if(_type4==='boolean'){// e.g. <select multiple> compiles to { multiple: '' }
  825. el[key]=includeBooleanAttr(value);return;}else if(value==null&&_type4==='string'){// e.g. <div :id="null">
  826. el[key]='';el.removeAttribute(key);return;}else if(_type4==='number'){// e.g. <img :width="null">
  827. // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error
  828. try{el[key]=0;}catch(_a){}el.removeAttribute(key);return;}}// some properties perform value validation and throw
  829. try{el[key]=value;}catch(e){}}// Async edge case fix requires storing an event listener's attach timestamp.
  830. var _getNow=Date.now;var skipTimestampCheck=false;if(typeof window!=='undefined'){// Determine what event timestamp the browser is using. Annoyingly, the
  831. // timestamp can either be hi-res (relative to page load) or low-res
  832. // (relative to UNIX epoch), so in order to compare time we have to use the
  833. // same timestamp type when saving the flush timestamp.
  834. if(_getNow()>document.createEvent('Event').timeStamp){// if the low-res timestamp which is bigger than the event timestamp
  835. // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
  836. // and we need to use the hi-res version for event listeners as well.
  837. _getNow=function _getNow(){return performance.now();};}// #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
  838. // and does not fire microtasks in between event propagation, so safe to exclude.
  839. var ffMatch=navigator.userAgent.match(/firefox\/(\d+)/i);skipTimestampCheck=!!(ffMatch&&Number(ffMatch[1])<=53);}// To avoid the overhead of repeatedly calling performance.now(), we cache
  840. // and use the same timestamp for all event listeners attached in the same tick.
  841. var cachedNow=0;var p=Promise.resolve();var reset=function reset(){cachedNow=0;};var getNow=function getNow(){return cachedNow||(p.then(reset),cachedNow=_getNow());};function addEventListener(el,event,handler,options){el.addEventListener(event,handler,options);}function removeEventListener(el,event,handler,options){el.removeEventListener(event,handler,options);}function patchEvent(el,rawName,prevValue,nextValue){var instance=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;// vei = vue event invokers
  842. var invokers=el._vei||(el._vei={});var existingInvoker=invokers[rawName];if(nextValue&&existingInvoker){// patch
  843. existingInvoker.value=nextValue;}else{var _parseName=parseName(rawName),_parseName2=_slicedToArray(_parseName,2),name=_parseName2[0],options=_parseName2[1];if(nextValue){// add
  844. var invoker=invokers[rawName]=createInvoker(nextValue,instance);addEventListener(el,name,invoker,options);}else if(existingInvoker){// remove
  845. removeEventListener(el,name,existingInvoker,options);invokers[rawName]=undefined;}}}var optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(name){var options;if(optionsModifierRE.test(name)){options={};var m;while(m=name.match(optionsModifierRE)){name=name.slice(0,name.length-m[0].length);options[m[0].toLowerCase()]=true;}}return[hyphenate(name.slice(2)),options];}function createInvoker(initialValue,instance){var invoker=function invoker(e){// async edge case #6566: inner click event triggers patch, event handler
  846. // attached to outer element during patch, and triggered again. This
  847. // happens because browsers fire microtask ticks between event propagation.
  848. // the solution is simple: we save the timestamp when a handler is attached,
  849. // and the handler would only fire if the event passed to it was fired
  850. // AFTER it was attached.
  851. var timeStamp=e.timeStamp||_getNow();if(skipTimestampCheck||timeStamp>=invoker.attached-1){callWithAsyncErrorHandling(patchStopImmediatePropagation(e,invoker.value),instance,5/* NATIVE_EVENT_HANDLER */,[e]);}};invoker.value=initialValue;invoker.attached=getNow();return invoker;}function patchStopImmediatePropagation(e,value){if(isArray$7(value)){var originalStop=e.stopImmediatePropagation;e.stopImmediatePropagation=function(){originalStop.call(e);e._stopped=true;};return value.map(function(fn){return function(e){return!e._stopped&&fn(e);};});}else{return value;}}var nativeOnRE=/^on[a-z]/;var patchProp=function patchProp(el,key,prevValue,nextValue){var isSVG=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var prevChildren=arguments.length>5?arguments[5]:undefined;var parentComponent=arguments.length>6?arguments[6]:undefined;var parentSuspense=arguments.length>7?arguments[7]:undefined;var unmountChildren=arguments.length>8?arguments[8]:undefined;if(key==='class'){patchClass(el,nextValue,isSVG);}else if(key==='style'){patchStyle(el,prevValue,nextValue);}else if(isOn(key)){// ignore v-model listeners
  852. if(!isModelListener(key)){patchEvent(el,key,prevValue,nextValue,parentComponent);}}else if(key[0]==='.'?(key=key.slice(1),true):key[0]==='^'?(key=key.slice(1),false):shouldSetAsProp(el,key,nextValue,isSVG)){patchDOMProp(el,key,nextValue,prevChildren,parentComponent,parentSuspense,unmountChildren);}else{// special case for <input v-model type="checkbox"> with
  853. // :true-value & :false-value
  854. // store value as dom properties since non-string values will be
  855. // stringified.
  856. if(key==='true-value'){el._trueValue=nextValue;}else if(key==='false-value'){el._falseValue=nextValue;}patchAttr(el,key,nextValue,isSVG);}};function shouldSetAsProp(el,key,value,isSVG){if(isSVG){// most keys must be set as attribute on svg elements to work
  857. // ...except innerHTML & textContent
  858. if(key==='innerHTML'||key==='textContent'){return true;}// or native onclick with function values
  859. if(key in el&&nativeOnRE.test(key)&&isFunction$1(value)){return true;}return false;}// spellcheck and draggable are numerated attrs, however their
  860. // corresponding DOM properties are actually booleans - this leads to
  861. // setting it with a string "false" value leading it to be coerced to
  862. // `true`, so we need to always treat them as attributes.
  863. // Note that `contentEditable` doesn't have this problem: its DOM
  864. // property is also enumerated string values.
  865. if(key==='spellcheck'||key==='draggable'){return false;}// #1787, #2840 form property on form elements is readonly and must be set as
  866. // attribute.
  867. if(key==='form'){return false;}// #1526 <input list> must be set as attribute
  868. if(key==='list'&&el.tagName==='INPUT'){return false;}// #2766 <textarea type> must be set as attribute
  869. if(key==='type'&&el.tagName==='TEXTAREA'){return false;}// native onclick with string value, must be set as attribute
  870. if(nativeOnRE.test(key)&&isString$2(value)){return false;}return key in el;}var TRANSITION='transition';var ANIMATION='animation';// DOM Transition is a higher-order-component based on the platform-agnostic
  871. // base Transition component, with DOM-specific logic.
  872. var Transition=exports('au',function(props,_ref26){var slots=_ref26.slots;return h(BaseTransition,resolveTransitionProps(props),slots);});Transition.displayName='Transition';var DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:true},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};var TransitionPropsValidators=Transition.props=/*#__PURE__*/extend$1({},BaseTransition.props,DOMTransitionPropsValidators);/**
  873. * #3227 Incoming hooks may be merged into arrays when wrapping Transition
  874. * with custom HOCs.
  875. */var callHook=function callHook(hook){var args=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(isArray$7(hook)){hook.forEach(function(h){return h.apply(void 0,_toConsumableArray2(args));});}else if(hook){hook.apply(void 0,_toConsumableArray2(args));}};/**
  876. * Check if a hook expects a callback (2nd arg), which means the user
  877. * intends to explicitly control the end of the transition.
  878. */var hasExplicitCallback=function hasExplicitCallback(hook){return hook?isArray$7(hook)?hook.some(function(h){return h.length>1;}):hook.length>1:false;};function resolveTransitionProps(rawProps){var baseProps={};for(var key in rawProps){if(!(key in DOMTransitionPropsValidators)){baseProps[key]=rawProps[key];}}if(rawProps.css===false){return baseProps;}var _rawProps$name=rawProps.name,name=_rawProps$name===void 0?'v':_rawProps$name,type=rawProps.type,duration=rawProps.duration,_rawProps$enterFromCl=rawProps.enterFromClass,enterFromClass=_rawProps$enterFromCl===void 0?"".concat(name,"-enter-from"):_rawProps$enterFromCl,_rawProps$enterActive=rawProps.enterActiveClass,enterActiveClass=_rawProps$enterActive===void 0?"".concat(name,"-enter-active"):_rawProps$enterActive,_rawProps$enterToClas=rawProps.enterToClass,enterToClass=_rawProps$enterToClas===void 0?"".concat(name,"-enter-to"):_rawProps$enterToClas,_rawProps$appearFromC=rawProps.appearFromClass,appearFromClass=_rawProps$appearFromC===void 0?enterFromClass:_rawProps$appearFromC,_rawProps$appearActiv=rawProps.appearActiveClass,appearActiveClass=_rawProps$appearActiv===void 0?enterActiveClass:_rawProps$appearActiv,_rawProps$appearToCla=rawProps.appearToClass,appearToClass=_rawProps$appearToCla===void 0?enterToClass:_rawProps$appearToCla,_rawProps$leaveFromCl=rawProps.leaveFromClass,leaveFromClass=_rawProps$leaveFromCl===void 0?"".concat(name,"-leave-from"):_rawProps$leaveFromCl,_rawProps$leaveActive=rawProps.leaveActiveClass,leaveActiveClass=_rawProps$leaveActive===void 0?"".concat(name,"-leave-active"):_rawProps$leaveActive,_rawProps$leaveToClas=rawProps.leaveToClass,leaveToClass=_rawProps$leaveToClas===void 0?"".concat(name,"-leave-to"):_rawProps$leaveToClas;var durations=normalizeDuration(duration);var enterDuration=durations&&durations[0];var leaveDuration=durations&&durations[1];var _onBeforeEnter=baseProps.onBeforeEnter,onEnter=baseProps.onEnter,_onEnterCancelled=baseProps.onEnterCancelled,_onLeave=baseProps.onLeave,_onLeaveCancelled=baseProps.onLeaveCancelled,_baseProps$onBeforeAp=baseProps.onBeforeAppear,_onBeforeAppear=_baseProps$onBeforeAp===void 0?_onBeforeEnter:_baseProps$onBeforeAp,_baseProps$onAppear=baseProps.onAppear,onAppear=_baseProps$onAppear===void 0?onEnter:_baseProps$onAppear,_baseProps$onAppearCa=baseProps.onAppearCancelled,_onAppearCancelled=_baseProps$onAppearCa===void 0?_onEnterCancelled:_baseProps$onAppearCa;var finishEnter=function finishEnter(el,isAppear,done){removeTransitionClass(el,isAppear?appearToClass:enterToClass);removeTransitionClass(el,isAppear?appearActiveClass:enterActiveClass);done&&done();};var finishLeave=function finishLeave(el,done){removeTransitionClass(el,leaveToClass);removeTransitionClass(el,leaveActiveClass);done&&done();};var makeEnterHook=function makeEnterHook(isAppear){return function(el,done){var hook=isAppear?onAppear:onEnter;var resolve=function resolve(){return finishEnter(el,isAppear,done);};callHook(hook,[el,resolve]);nextFrame(function(){removeTransitionClass(el,isAppear?appearFromClass:enterFromClass);addTransitionClass(el,isAppear?appearToClass:enterToClass);if(!hasExplicitCallback(hook)){whenTransitionEnds(el,type,enterDuration,resolve);}});};};return extend$1(baseProps,{onBeforeEnter:function onBeforeEnter(el){callHook(_onBeforeEnter,[el]);addTransitionClass(el,enterFromClass);addTransitionClass(el,enterActiveClass);},onBeforeAppear:function onBeforeAppear(el){callHook(_onBeforeAppear,[el]);addTransitionClass(el,appearFromClass);addTransitionClass(el,appearActiveClass);},onEnter:makeEnterHook(false),onAppear:makeEnterHook(true),onLeave:function onLeave(el,done){var resolve=function resolve(){return finishLeave(el,done);};addTransitionClass(el,leaveFromClass);// force reflow so *-leave-from classes immediately take effect (#2593)
  879. forceReflow();addTransitionClass(el,leaveActiveClass);nextFrame(function(){removeTransitionClass(el,leaveFromClass);addTransitionClass(el,leaveToClass);if(!hasExplicitCallback(_onLeave)){whenTransitionEnds(el,type,leaveDuration,resolve);}});callHook(_onLeave,[el,resolve]);},onEnterCancelled:function onEnterCancelled(el){finishEnter(el,false);callHook(_onEnterCancelled,[el]);},onAppearCancelled:function onAppearCancelled(el){finishEnter(el,true);callHook(_onAppearCancelled,[el]);},onLeaveCancelled:function onLeaveCancelled(el){finishLeave(el);callHook(_onLeaveCancelled,[el]);}});}function normalizeDuration(duration){if(duration==null){return null;}else if(isObject$2(duration)){return[NumberOf(duration.enter),NumberOf(duration.leave)];}else{var n=NumberOf(duration);return[n,n];}}function NumberOf(val){var res=toNumber$1(val);return res;}function addTransitionClass(el,cls){cls.split(/\s+/).forEach(function(c){return c&&el.classList.add(c);});(el._vtc||(el._vtc=new Set())).add(cls);}function removeTransitionClass(el,cls){cls.split(/\s+/).forEach(function(c){return c&&el.classList.remove(c);});var _vtc=el._vtc;if(_vtc){_vtc.delete(cls);if(!_vtc.size){el._vtc=undefined;}}}function nextFrame(cb){requestAnimationFrame(function(){requestAnimationFrame(cb);});}var endId=0;function whenTransitionEnds(el,expectedType,explicitTimeout,resolve){var id=el._endId=++endId;var resolveIfNotStale=function resolveIfNotStale(){if(id===el._endId){resolve();}};if(explicitTimeout){return setTimeout(resolveIfNotStale,explicitTimeout);}var _getTransitionInfo=getTransitionInfo(el,expectedType),type=_getTransitionInfo.type,timeout=_getTransitionInfo.timeout,propCount=_getTransitionInfo.propCount;if(!type){return resolve();}var endEvent=type+'end';var ended=0;var end=function end(){el.removeEventListener(endEvent,onEnd);resolveIfNotStale();};var onEnd=function onEnd(e){if(e.target===el&&++ended>=propCount){end();}};setTimeout(function(){if(ended<propCount){end();}},timeout+1);el.addEventListener(endEvent,onEnd);}function getTransitionInfo(el,expectedType){var styles=window.getComputedStyle(el);// JSDOM may return undefined for transition properties
  880. var getStyleProperties=function getStyleProperties(key){return(styles[key]||'').split(', ');};var transitionDelays=getStyleProperties(TRANSITION+'Delay');var transitionDurations=getStyleProperties(TRANSITION+'Duration');var transitionTimeout=getTimeout(transitionDelays,transitionDurations);var animationDelays=getStyleProperties(ANIMATION+'Delay');var animationDurations=getStyleProperties(ANIMATION+'Duration');var animationTimeout=getTimeout(animationDelays,animationDurations);var type=null;var timeout=0;var propCount=0;/* istanbul ignore if */if(expectedType===TRANSITION){if(transitionTimeout>0){type=TRANSITION;timeout=transitionTimeout;propCount=transitionDurations.length;}}else if(expectedType===ANIMATION){if(animationTimeout>0){type=ANIMATION;timeout=animationTimeout;propCount=animationDurations.length;}}else{timeout=Math.max(transitionTimeout,animationTimeout);type=timeout>0?transitionTimeout>animationTimeout?TRANSITION:ANIMATION:null;propCount=type?type===TRANSITION?transitionDurations.length:animationDurations.length:0;}var hasTransform=type===TRANSITION&&/\b(transform|all)(,|$)/.test(styles[TRANSITION+'Property']);return{type:type,timeout:timeout,propCount:propCount,hasTransform:hasTransform};}function getTimeout(delays,durations){while(delays.length<durations.length){delays=delays.concat(delays);}return Math.max.apply(Math,_toConsumableArray2(durations.map(function(d,i){return toMs(d)+toMs(delays[i]);})));}// Old versions of Chromium (below 61.0.3163.100) formats floating pointer
  881. // numbers in a locale-dependent way, using a comma instead of a dot.
  882. // If comma is not replaced with a dot, the input will be rounded down
  883. // (i.e. acting as a floor function) causing unexpected behaviors
  884. function toMs(s){return Number(s.slice(0,-1).replace(',','.'))*1000;}// synchronously force layout to put elements into a certain state
  885. function forceReflow(){return document.body.offsetHeight;}var positionMap=new WeakMap();var newPositionMap=new WeakMap();var TransitionGroupImpl={name:'TransitionGroup',props:/*#__PURE__*/extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup:function setup(props,_ref27){var slots=_ref27.slots;var instance=getCurrentInstance();var state=useTransitionState();var prevChildren;var children;onUpdated(function(){// children is guaranteed to exist after initial render
  886. if(!prevChildren.length){return;}var moveClass=props.moveClass||"".concat(props.name||'v',"-move");if(!hasCSSTransform(prevChildren[0].el,instance.vnode.el,moveClass)){return;}// we divide the work into three loops to avoid mixing DOM reads and writes
  887. // in each iteration - which helps prevent layout thrashing.
  888. prevChildren.forEach(callPendingCbs);prevChildren.forEach(recordPosition);var movedChildren=prevChildren.filter(applyTranslation);// force reflow to put everything in position
  889. forceReflow();movedChildren.forEach(function(c){var el=c.el;var style=el.style;addTransitionClass(el,moveClass);style.transform=style.webkitTransform=style.transitionDuration='';var cb=el._moveCb=function(e){if(e&&e.target!==el){return;}if(!e||/transform$/.test(e.propertyName)){el.removeEventListener('transitionend',cb);el._moveCb=null;removeTransitionClass(el,moveClass);}};el.addEventListener('transitionend',cb);});});return function(){var rawProps=toRaw(props);var cssTransitionProps=resolveTransitionProps(rawProps);var tag=rawProps.tag||Fragment;prevChildren=children;children=slots.default?getTransitionRawChildren(slots.default()):[];for(var _i40=0;_i40<children.length;_i40++){var child=children[_i40];if(child.key!=null){setTransitionHooks(child,resolveTransitionHooks(child,cssTransitionProps,state,instance));}}if(prevChildren){for(var _i41=0;_i41<prevChildren.length;_i41++){var _child=prevChildren[_i41];setTransitionHooks(_child,resolveTransitionHooks(_child,cssTransitionProps,state,instance));positionMap.set(_child,_child.el.getBoundingClientRect());}}return createVNode(tag,null,children);};}};var TransitionGroup=TransitionGroupImpl;function callPendingCbs(c){var el=c.el;if(el._moveCb){el._moveCb();}if(el._enterCb){el._enterCb();}}function recordPosition(c){newPositionMap.set(c,c.el.getBoundingClientRect());}function applyTranslation(c){var oldPos=positionMap.get(c);var newPos=newPositionMap.get(c);var dx=oldPos.left-newPos.left;var dy=oldPos.top-newPos.top;if(dx||dy){var s=c.el.style;s.transform=s.webkitTransform="translate(".concat(dx,"px,").concat(dy,"px)");s.transitionDuration='0s';return c;}}function hasCSSTransform(el,root,moveClass){// Detect whether an element with the move class applied has
  890. // CSS transitions. Since the element may be inside an entering
  891. // transition at this very moment, we make a clone of it and remove
  892. // all other transition classes applied to ensure only the move class
  893. // is applied.
  894. var clone=el.cloneNode();if(el._vtc){el._vtc.forEach(function(cls){cls.split(/\s+/).forEach(function(c){return c&&clone.classList.remove(c);});});}moveClass.split(/\s+/).forEach(function(c){return c&&clone.classList.add(c);});clone.style.display='none';var container=root.nodeType===1?root:root.parentNode;container.appendChild(clone);var _getTransitionInfo2=getTransitionInfo(clone),hasTransform=_getTransitionInfo2.hasTransform;container.removeChild(clone);return hasTransform;}var getModelAssigner=function getModelAssigner(vnode){var fn=vnode.props['onUpdate:modelValue'];return isArray$7(fn)?function(value){return invokeArrayFns(fn,value);}:fn;};function onCompositionStart(e){e.target.composing=true;}function onCompositionEnd(e){var target=e.target;if(target.composing){target.composing=false;trigger(target,'input');}}function trigger(el,type){var e=document.createEvent('HTMLEvents');e.initEvent(type,true,true);el.dispatchEvent(e);}// We are exporting the v-model runtime directly as vnode hooks so that it can
  895. // be tree-shaken in case v-model is never used.
  896. var vModelText={created:function created(el,_ref28,vnode){var _ref28$modifiers=_ref28.modifiers,lazy=_ref28$modifiers.lazy,trim=_ref28$modifiers.trim,number=_ref28$modifiers.number;el._assign=getModelAssigner(vnode);var castToNumber=number||vnode.props&&vnode.props.type==='number';addEventListener(el,lazy?'change':'input',function(e){if(e.target.composing)return;var domValue=el.value;if(trim){domValue=domValue.trim();}else if(castToNumber){domValue=toNumber$1(domValue);}el._assign(domValue);});if(trim){addEventListener(el,'change',function(){el.value=el.value.trim();});}if(!lazy){addEventListener(el,'compositionstart',onCompositionStart);addEventListener(el,'compositionend',onCompositionEnd);// Safari < 10.2 & UIWebView doesn't fire compositionend when
  897. // switching focus before confirming composition choice
  898. // this also fixes the issue where some browsers e.g. iOS Chrome
  899. // fires "change" instead of "input" on autocomplete.
  900. addEventListener(el,'change',onCompositionEnd);}},// set value on mounted so it's after min/max for type="range"
  901. mounted:function mounted(el,_ref29){var value=_ref29.value;el.value=value==null?'':value;},beforeUpdate:function beforeUpdate(el,_ref30,vnode){var value=_ref30.value,_ref30$modifiers=_ref30.modifiers,lazy=_ref30$modifiers.lazy,trim=_ref30$modifiers.trim,number=_ref30$modifiers.number;el._assign=getModelAssigner(vnode);// avoid clearing unresolved text. #2302
  902. if(el.composing)return;if(document.activeElement===el){if(lazy){return;}if(trim&&el.value.trim()===value){return;}if((number||el.type==='number')&&toNumber$1(el.value)===value){return;}}var newValue=value==null?'':value;if(el.value!==newValue){el.value=newValue;}}};var vModelCheckbox={// #4096 array checkboxes need to be deep traversed
  903. deep:true,created:function created(el,_,vnode){el._assign=getModelAssigner(vnode);addEventListener(el,'change',function(){var modelValue=el._modelValue;var elementValue=getValue$2(el);var checked=el.checked;var assign=el._assign;if(isArray$7(modelValue)){var index=looseIndexOf(modelValue,elementValue);var found=index!==-1;if(checked&&!found){assign(modelValue.concat(elementValue));}else if(!checked&&found){var filtered=_toConsumableArray2(modelValue);filtered.splice(index,1);assign(filtered);}}else if(isSet$3(modelValue)){var cloned=new Set(modelValue);if(checked){cloned.add(elementValue);}else{cloned.delete(elementValue);}assign(cloned);}else{assign(getCheckboxValue(el,checked));}});},// set initial checked on mount to wait for true-value/false-value
  904. mounted:setChecked,beforeUpdate:function beforeUpdate(el,binding,vnode){el._assign=getModelAssigner(vnode);setChecked(el,binding,vnode);}};function setChecked(el,_ref31,vnode){var value=_ref31.value,oldValue=_ref31.oldValue;el._modelValue=value;if(isArray$7(value)){el.checked=looseIndexOf(value,vnode.props.value)>-1;}else if(isSet$3(value)){el.checked=value.has(vnode.props.value);}else if(value!==oldValue){el.checked=looseEqual(value,getCheckboxValue(el,true));}}var vModelRadio={created:function created(el,_ref32,vnode){var value=_ref32.value;el.checked=looseEqual(value,vnode.props.value);el._assign=getModelAssigner(vnode);addEventListener(el,'change',function(){el._assign(getValue$2(el));});},beforeUpdate:function beforeUpdate(el,_ref33,vnode){var value=_ref33.value,oldValue=_ref33.oldValue;el._assign=getModelAssigner(vnode);if(value!==oldValue){el.checked=looseEqual(value,vnode.props.value);}}};// retrieve raw value set via :value bindings
  905. function getValue$2(el){return'_value'in el?el._value:el.value;}// retrieve raw value for true-value and false-value set via :true-value or :false-value bindings
  906. function getCheckboxValue(el,checked){var key=checked?'_trueValue':'_falseValue';return key in el?el[key]:checked;}var systemModifiers=['ctrl','shift','alt','meta'];var modifierGuards={stop:function stop(e){return e.stopPropagation();},prevent:function prevent(e){return e.preventDefault();},self:function self(e){return e.target!==e.currentTarget;},ctrl:function ctrl(e){return!e.ctrlKey;},shift:function shift(e){return!e.shiftKey;},alt:function alt(e){return!e.altKey;},meta:function meta(e){return!e.metaKey;},left:function left(e){return'button'in e&&e.button!==0;},middle:function middle(e){return'button'in e&&e.button!==1;},right:function right(e){return'button'in e&&e.button!==2;},exact:function exact(e,modifiers){return systemModifiers.some(function(m){return e["".concat(m,"Key")]&&!modifiers.includes(m);});}};/**
  907. * @private
  908. */var withModifiers=function withModifiers(fn,modifiers){return function(event){for(var _i42=0;_i42<modifiers.length;_i42++){var guard=modifierGuards[modifiers[_i42]];if(guard&&guard(event,modifiers))return;}for(var _len8=arguments.length,args=new Array(_len8>1?_len8-1:0),_key15=1;_key15<_len8;_key15++){args[_key15-1]=arguments[_key15];}return fn.apply(void 0,[event].concat(args));};};// Kept for 2.x compat.
  909. // Note: IE11 compat for `spacebar` and `del` is removed for now.
  910. var keyNames={esc:'escape',space:' ',up:'arrow-up',left:'arrow-left',right:'arrow-right',down:'arrow-down',delete:'backspace'};/**
  911. * @private
  912. */var withKeys=function withKeys(fn,modifiers){return function(event){if(!('key'in event)){return;}var eventKey=hyphenate(event.key);if(modifiers.some(function(k){return k===eventKey||keyNames[k]===eventKey;})){return fn(event);}};};var vShow=exports('aw',{beforeMount:function beforeMount(el,_ref34,_ref35){var value=_ref34.value;var transition=_ref35.transition;el._vod=el.style.display==='none'?'':el.style.display;if(transition&&value){transition.beforeEnter(el);}else{setDisplay(el,value);}},mounted:function mounted(el,_ref36,_ref37){var value=_ref36.value;var transition=_ref37.transition;if(transition&&value){transition.enter(el);}},updated:function updated(el,_ref38,_ref39){var value=_ref38.value,oldValue=_ref38.oldValue;var transition=_ref39.transition;if(!value===!oldValue)return;if(transition){if(value){transition.beforeEnter(el);setDisplay(el,true);transition.enter(el);}else{transition.leave(el,function(){setDisplay(el,false);});}}else{setDisplay(el,value);}},beforeUnmount:function beforeUnmount(el,_ref40){var value=_ref40.value;setDisplay(el,value);}});function setDisplay(el,value){el.style.display=value?el._vod:'none';}var rendererOptions=extend$1({patchProp:patchProp},nodeOps);// lazy create the renderer - this makes core renderer logic tree-shakable
  913. // in case the user only imports reactivity utilities from Vue.
  914. var renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions));}// use explicit type casts here to avoid import() calls in rolled-up d.ts
  915. var render=function render(){var _ensureRenderer;(_ensureRenderer=ensureRenderer()).render.apply(_ensureRenderer,arguments);};var createApp=exports('N',function(){var _ensureRenderer2;var app=(_ensureRenderer2=ensureRenderer()).createApp.apply(_ensureRenderer2,arguments);var mount=app.mount;app.mount=function(containerOrSelector){var container=normalizeContainer(containerOrSelector);if(!container)return;var component=app._component;if(!isFunction$1(component)&&!component.render&&!component.template){// __UNSAFE__
  916. // Reason: potential execution of JS expressions in in-DOM template.
  917. // The user must make sure the in-DOM template is trusted. If it's
  918. // rendered by the server, the template should not contain any user data.
  919. component.template=container.innerHTML;}// clear content before mounting
  920. container.innerHTML='';var proxy=mount(container,false,container instanceof SVGElement);if(container instanceof Element){container.removeAttribute('v-cloak');container.setAttribute('data-v-app','');}return proxy;};return app;});function normalizeContainer(container){if(isString$2(container)){var res=document.querySelector(container);return res;}return container;}/** Detect free variable `global` from Node.js. */var freeGlobal=(typeof global==="undefined"?"undefined":_typeof2(global))=='object'&&global&&global.Object===Object&&global;var freeGlobal$1=freeGlobal;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal$1||freeSelf||Function('return this')();var root$1=root;/** Built-in value references. */var Symbol$1=root$1.Symbol;var Symbol$2=Symbol$1;/** Used for built-in method references. */var objectProto$f=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$c=objectProto$f.hasOwnProperty;/**
  921. * Used to resolve the
  922. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  923. * of values.
  924. */var nativeObjectToString$1=objectProto$f.toString;/** Built-in value references. */var symToStringTag$1=Symbol$2?Symbol$2.toStringTag:undefined;/**
  925. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  926. *
  927. * @private
  928. * @param {*} value The value to query.
  929. * @returns {string} Returns the raw `toStringTag`.
  930. */function getRawTag(value){var isOwn=hasOwnProperty$c.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=undefined;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else{delete value[symToStringTag$1];}}return result;}/** Used for built-in method references. */var objectProto$e=Object.prototype;/**
  931. * Used to resolve the
  932. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  933. * of values.
  934. */var nativeObjectToString=objectProto$e.toString;/**
  935. * Converts `value` to a string using `Object.prototype.toString`.
  936. *
  937. * @private
  938. * @param {*} value The value to convert.
  939. * @returns {string} Returns the converted string.
  940. */function objectToString$2(value){return nativeObjectToString.call(value);}/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=Symbol$2?Symbol$2.toStringTag:undefined;/**
  941. * The base implementation of `getTag` without fallbacks for buggy environments.
  942. *
  943. * @private
  944. * @param {*} value The value to query.
  945. * @returns {string} Returns the `toStringTag`.
  946. */function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString$2(value);}/**
  947. * Checks if `value` is object-like. A value is object-like if it's not `null`
  948. * and has a `typeof` result of "object".
  949. *
  950. * @static
  951. * @memberOf _
  952. * @since 4.0.0
  953. * @category Lang
  954. * @param {*} value The value to check.
  955. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  956. * @example
  957. *
  958. * _.isObjectLike({});
  959. * // => true
  960. *
  961. * _.isObjectLike([1, 2, 3]);
  962. * // => true
  963. *
  964. * _.isObjectLike(_.noop);
  965. * // => false
  966. *
  967. * _.isObjectLike(null);
  968. * // => false
  969. */function isObjectLike$1(value){return value!=null&&_typeof2(value)=='object';}/** `Object#toString` result references. */var symbolTag$3='[object Symbol]';/**
  970. * Checks if `value` is classified as a `Symbol` primitive or object.
  971. *
  972. * @static
  973. * @memberOf _
  974. * @since 4.0.0
  975. * @category Lang
  976. * @param {*} value The value to check.
  977. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  978. * @example
  979. *
  980. * _.isSymbol(Symbol.iterator);
  981. * // => true
  982. *
  983. * _.isSymbol('abc');
  984. * // => false
  985. */function isSymbol$1(value){return _typeof2(value)=='symbol'||isObjectLike$1(value)&&baseGetTag(value)==symbolTag$3;}/**
  986. * A specialized version of `_.map` for arrays without support for iteratee
  987. * shorthands.
  988. *
  989. * @private
  990. * @param {Array} [array] The array to iterate over.
  991. * @param {Function} iteratee The function invoked per iteration.
  992. * @returns {Array} Returns the new mapped array.
  993. */function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array);}return result;}/**
  994. * Checks if `value` is classified as an `Array` object.
  995. *
  996. * @static
  997. * @memberOf _
  998. * @since 0.1.0
  999. * @category Lang
  1000. * @param {*} value The value to check.
  1001. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  1002. * @example
  1003. *
  1004. * _.isArray([1, 2, 3]);
  1005. * // => true
  1006. *
  1007. * _.isArray(document.body.children);
  1008. * // => false
  1009. *
  1010. * _.isArray('abc');
  1011. * // => false
  1012. *
  1013. * _.isArray(_.noop);
  1014. * // => false
  1015. */var isArray$5=Array.isArray;var isArray$6=isArray$5;/** Used as references for various `Number` constants. */var INFINITY$1=1/0;/** Used to convert symbols to primitives and strings. */var symbolProto$2=Symbol$2?Symbol$2.prototype:undefined,symbolToString=symbolProto$2?symbolProto$2.toString:undefined;/**
  1016. * The base implementation of `_.toString` which doesn't convert nullish
  1017. * values to empty strings.
  1018. *
  1019. * @private
  1020. * @param {*} value The value to process.
  1021. * @returns {string} Returns the string.
  1022. */function baseToString(value){// Exit early for strings to avoid a performance hit in some environments.
  1023. if(typeof value=='string'){return value;}if(isArray$6(value)){// Recursively convert values (susceptible to call stack limits).
  1024. return arrayMap(value,baseToString)+'';}if(isSymbol$1(value)){return symbolToString?symbolToString.call(value):'';}var result=value+'';return result=='0'&&1/value==-INFINITY$1?'-0':result;}/** Used to match a single whitespace character. */var reWhitespace=/\s/;/**
  1025. * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
  1026. * character of `string`.
  1027. *
  1028. * @private
  1029. * @param {string} string The string to inspect.
  1030. * @returns {number} Returns the index of the last non-whitespace character.
  1031. */function trimmedEndIndex(string){var index=string.length;while(index--&&reWhitespace.test(string.charAt(index))){}return index;}/** Used to match leading whitespace. */var reTrimStart=/^\s+/;/**
  1032. * The base implementation of `_.trim`.
  1033. *
  1034. * @private
  1035. * @param {string} string The string to trim.
  1036. * @returns {string} Returns the trimmed string.
  1037. */function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,''):string;}/**
  1038. * Checks if `value` is the
  1039. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  1040. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  1041. *
  1042. * @static
  1043. * @memberOf _
  1044. * @since 0.1.0
  1045. * @category Lang
  1046. * @param {*} value The value to check.
  1047. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  1048. * @example
  1049. *
  1050. * _.isObject({});
  1051. * // => true
  1052. *
  1053. * _.isObject([1, 2, 3]);
  1054. * // => true
  1055. *
  1056. * _.isObject(_.noop);
  1057. * // => true
  1058. *
  1059. * _.isObject(null);
  1060. * // => false
  1061. */function isObject$1(value){var type=_typeof2(value);return value!=null&&(type=='object'||type=='function');}/** Used as references for various `Number` constants. */var NAN=0/0;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Built-in method references without a dependency on `root`. */var freeParseInt=parseInt;/**
  1062. * Converts `value` to a number.
  1063. *
  1064. * @static
  1065. * @memberOf _
  1066. * @since 4.0.0
  1067. * @category Lang
  1068. * @param {*} value The value to process.
  1069. * @returns {number} Returns the number.
  1070. * @example
  1071. *
  1072. * _.toNumber(3.2);
  1073. * // => 3.2
  1074. *
  1075. * _.toNumber(Number.MIN_VALUE);
  1076. * // => 5e-324
  1077. *
  1078. * _.toNumber(Infinity);
  1079. * // => Infinity
  1080. *
  1081. * _.toNumber('3.2');
  1082. * // => 3.2
  1083. */function toNumber(value){if(typeof value=='number'){return value;}if(isSymbol$1(value)){return NAN;}if(isObject$1(value)){var other=typeof value.valueOf=='function'?value.valueOf():value;value=isObject$1(other)?other+'':other;}if(typeof value!='string'){return value===0?value:+value;}value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}/** `Object#toString` result references. */var asyncTag='[object AsyncFunction]',funcTag$2='[object Function]',genTag$1='[object GeneratorFunction]',proxyTag='[object Proxy]';/**
  1084. * Checks if `value` is classified as a `Function` object.
  1085. *
  1086. * @static
  1087. * @memberOf _
  1088. * @since 0.1.0
  1089. * @category Lang
  1090. * @param {*} value The value to check.
  1091. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  1092. * @example
  1093. *
  1094. * _.isFunction(_);
  1095. * // => true
  1096. *
  1097. * _.isFunction(/abc/);
  1098. * // => false
  1099. */function isFunction(value){if(!isObject$1(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator
  1100. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  1101. var tag=baseGetTag(value);return tag==funcTag$2||tag==genTag$1||tag==asyncTag||tag==proxyTag;}/** Used to detect overreaching core-js shims. */var coreJsData=root$1['__core-js_shared__'];var coreJsData$1=coreJsData;/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/**
  1102. * Checks if `func` has its source masked.
  1103. *
  1104. * @private
  1105. * @param {Function} func The function to check.
  1106. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  1107. */function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/** Used for built-in method references. */var funcProto$2=Function.prototype;/** Used to resolve the decompiled source of functions. */var funcToString$2=funcProto$2.toString;/**
  1108. * Converts `func` to its source code.
  1109. *
  1110. * @private
  1111. * @param {Function} func The function to convert.
  1112. * @returns {string} Returns the source code.
  1113. */function toSource(func){if(func!=null){try{return funcToString$2.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}/**
  1114. * Used to match `RegExp`
  1115. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  1116. */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used for built-in method references. */var funcProto$1=Function.prototype,objectProto$d=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString$1=funcProto$1.toString;/** Used to check objects for own properties. */var hasOwnProperty$b=objectProto$d.hasOwnProperty;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString$1.call(hasOwnProperty$b).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/**
  1117. * The base implementation of `_.isNative` without bad shim checks.
  1118. *
  1119. * @private
  1120. * @param {*} value The value to check.
  1121. * @returns {boolean} Returns `true` if `value` is a native function,
  1122. * else `false`.
  1123. */function baseIsNative(value){if(!isObject$1(value)||isMasked(value)){return false;}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
  1124. * Gets the value at `key` of `object`.
  1125. *
  1126. * @private
  1127. * @param {Object} [object] The object to query.
  1128. * @param {string} key The key of the property to get.
  1129. * @returns {*} Returns the property value.
  1130. */function getValue$1(object,key){return object==null?undefined:object[key];}/**
  1131. * Gets the native function at `key` of `object`.
  1132. *
  1133. * @private
  1134. * @param {Object} object The object to query.
  1135. * @param {string} key The key of the method to get.
  1136. * @returns {*} Returns the function if it's native, else `undefined`.
  1137. */function getNative(object,key){var value=getValue$1(object,key);return baseIsNative(value)?value:undefined;}/* Built-in method references that are verified to be native. */var WeakMap$1=getNative(root$1,'WeakMap');var WeakMap$2=WeakMap$1;/** Built-in value references. */var objectCreate=Object.create;/**
  1138. * The base implementation of `_.create` without support for assigning
  1139. * properties to the created object.
  1140. *
  1141. * @private
  1142. * @param {Object} proto The object to inherit from.
  1143. * @returns {Object} Returns the new object.
  1144. */var baseCreate=function(){function object(){}return function(proto){if(!isObject$1(proto)){return{};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined;return result;};}();var baseCreate$1=baseCreate;/**
  1145. * Copies the values of `source` to `array`.
  1146. *
  1147. * @private
  1148. * @param {Array} source The array to copy values from.
  1149. * @param {Array} [array=[]] The array to copy values to.
  1150. * @returns {Array} Returns `array`.
  1151. */function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();var defineProperty$1=defineProperty;/**
  1152. * A specialized version of `_.forEach` for arrays without support for
  1153. * iteratee shorthands.
  1154. *
  1155. * @private
  1156. * @param {Array} [array] The array to iterate over.
  1157. * @param {Function} iteratee The function invoked per iteration.
  1158. * @returns {Array} Returns `array`.
  1159. */function arrayEach(array,iteratee){var index=-1,length=array==null?0:array.length;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER$1=9007199254740991;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/**
  1160. * Checks if `value` is a valid array-like index.
  1161. *
  1162. * @private
  1163. * @param {*} value The value to check.
  1164. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  1165. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  1166. */function isIndex(value,length){var type=_typeof2(value);length=length==null?MAX_SAFE_INTEGER$1:length;return!!length&&(type=='number'||type!='symbol'&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}/**
  1167. * The base implementation of `assignValue` and `assignMergeValue` without
  1168. * value checks.
  1169. *
  1170. * @private
  1171. * @param {Object} object The object to modify.
  1172. * @param {string} key The key of the property to assign.
  1173. * @param {*} value The value to assign.
  1174. */function baseAssignValue(object,key,value){if(key=='__proto__'&&defineProperty$1){defineProperty$1(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else{object[key]=value;}}/**
  1175. * Performs a
  1176. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  1177. * comparison between two values to determine if they are equivalent.
  1178. *
  1179. * @static
  1180. * @memberOf _
  1181. * @since 4.0.0
  1182. * @category Lang
  1183. * @param {*} value The value to compare.
  1184. * @param {*} other The other value to compare.
  1185. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  1186. * @example
  1187. *
  1188. * var object = { 'a': 1 };
  1189. * var other = { 'a': 1 };
  1190. *
  1191. * _.eq(object, object);
  1192. * // => true
  1193. *
  1194. * _.eq(object, other);
  1195. * // => false
  1196. *
  1197. * _.eq('a', 'a');
  1198. * // => true
  1199. *
  1200. * _.eq('a', Object('a'));
  1201. * // => false
  1202. *
  1203. * _.eq(NaN, NaN);
  1204. * // => true
  1205. */function eq(value,other){return value===other||value!==value&&other!==other;}/** Used for built-in method references. */var objectProto$c=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$a=objectProto$c.hasOwnProperty;/**
  1206. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  1207. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  1208. * for equality comparisons.
  1209. *
  1210. * @private
  1211. * @param {Object} object The object to modify.
  1212. * @param {string} key The key of the property to assign.
  1213. * @param {*} value The value to assign.
  1214. */function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty$a.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}/**
  1215. * Copies properties of `source` to `object`.
  1216. *
  1217. * @private
  1218. * @param {Object} source The object to copy properties from.
  1219. * @param {Array} props The property identifiers to copy.
  1220. * @param {Object} [object={}] The object to copy properties to.
  1221. * @param {Function} [customizer] The function to customize copied values.
  1222. * @returns {Object} Returns `object`.
  1223. */function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/**
  1224. * Checks if `value` is a valid array-like length.
  1225. *
  1226. * **Note:** This method is loosely based on
  1227. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  1228. *
  1229. * @static
  1230. * @memberOf _
  1231. * @since 4.0.0
  1232. * @category Lang
  1233. * @param {*} value The value to check.
  1234. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  1235. * @example
  1236. *
  1237. * _.isLength(3);
  1238. * // => true
  1239. *
  1240. * _.isLength(Number.MIN_VALUE);
  1241. * // => false
  1242. *
  1243. * _.isLength(Infinity);
  1244. * // => false
  1245. *
  1246. * _.isLength('3');
  1247. * // => false
  1248. */function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
  1249. * Checks if `value` is array-like. A value is considered array-like if it's
  1250. * not a function and has a `value.length` that's an integer greater than or
  1251. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  1252. *
  1253. * @static
  1254. * @memberOf _
  1255. * @since 4.0.0
  1256. * @category Lang
  1257. * @param {*} value The value to check.
  1258. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  1259. * @example
  1260. *
  1261. * _.isArrayLike([1, 2, 3]);
  1262. * // => true
  1263. *
  1264. * _.isArrayLike(document.body.children);
  1265. * // => true
  1266. *
  1267. * _.isArrayLike('abc');
  1268. * // => true
  1269. *
  1270. * _.isArrayLike(_.noop);
  1271. * // => false
  1272. */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/** Used for built-in method references. */var objectProto$b=Object.prototype;/**
  1273. * Checks if `value` is likely a prototype object.
  1274. *
  1275. * @private
  1276. * @param {*} value The value to check.
  1277. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  1278. */function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto$b;return value===proto;}/**
  1279. * The base implementation of `_.times` without support for iteratee shorthands
  1280. * or max array length checks.
  1281. *
  1282. * @private
  1283. * @param {number} n The number of times to invoke `iteratee`.
  1284. * @param {Function} iteratee The function invoked per iteration.
  1285. * @returns {Array} Returns the array of results.
  1286. */function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/** `Object#toString` result references. */var argsTag$3='[object Arguments]';/**
  1287. * The base implementation of `_.isArguments`.
  1288. *
  1289. * @private
  1290. * @param {*} value The value to check.
  1291. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  1292. */function baseIsArguments(value){return isObjectLike$1(value)&&baseGetTag(value)==argsTag$3;}/** Used for built-in method references. */var objectProto$a=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$9=objectProto$a.hasOwnProperty;/** Built-in value references. */var propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable;/**
  1293. * Checks if `value` is likely an `arguments` object.
  1294. *
  1295. * @static
  1296. * @memberOf _
  1297. * @since 0.1.0
  1298. * @category Lang
  1299. * @param {*} value The value to check.
  1300. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  1301. * else `false`.
  1302. * @example
  1303. *
  1304. * _.isArguments(function() { return arguments; }());
  1305. * // => true
  1306. *
  1307. * _.isArguments([1, 2, 3]);
  1308. * // => false
  1309. */var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$1(value)&&hasOwnProperty$9.call(value,'callee')&&!propertyIsEnumerable$1.call(value,'callee');};var isArguments$1=isArguments;/**
  1310. * This method returns `false`.
  1311. *
  1312. * @static
  1313. * @memberOf _
  1314. * @since 4.13.0
  1315. * @category Util
  1316. * @returns {boolean} Returns `false`.
  1317. * @example
  1318. *
  1319. * _.times(2, _.stubFalse);
  1320. * // => [false, false]
  1321. */function stubFalse(){return false;}/** Detect free variable `exports`. */var freeExports$2=_typeof2(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule$2=freeExports$2&&(typeof module==="undefined"?"undefined":_typeof2(module))=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2;/** Built-in value references. */var Buffer$1=moduleExports$2?root$1.Buffer:undefined;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:undefined;/**
  1322. * Checks if `value` is a buffer.
  1323. *
  1324. * @static
  1325. * @memberOf _
  1326. * @since 4.3.0
  1327. * @category Lang
  1328. * @param {*} value The value to check.
  1329. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  1330. * @example
  1331. *
  1332. * _.isBuffer(new Buffer(2));
  1333. * // => true
  1334. *
  1335. * _.isBuffer(new Uint8Array(2));
  1336. * // => false
  1337. */var isBuffer$1=nativeIsBuffer||stubFalse;var isBuffer$2=isBuffer$1;/** `Object#toString` result references. */var argsTag$2='[object Arguments]',arrayTag$2='[object Array]',boolTag$3='[object Boolean]',dateTag$3='[object Date]',errorTag$2='[object Error]',funcTag$1='[object Function]',mapTag$5='[object Map]',numberTag$3='[object Number]',objectTag$4='[object Object]',regexpTag$3='[object RegExp]',setTag$5='[object Set]',stringTag$3='[object String]',weakMapTag$2='[object WeakMap]';var arrayBufferTag$3='[object ArrayBuffer]',dataViewTag$4='[object DataView]',float32Tag$2='[object Float32Array]',float64Tag$2='[object Float64Array]',int8Tag$2='[object Int8Array]',int16Tag$2='[object Int16Array]',int32Tag$2='[object Int32Array]',uint8Tag$2='[object Uint8Array]',uint8ClampedTag$2='[object Uint8ClampedArray]',uint16Tag$2='[object Uint16Array]',uint32Tag$2='[object Uint32Array]';/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=true;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=false;/**
  1338. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  1339. *
  1340. * @private
  1341. * @param {*} value The value to check.
  1342. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  1343. */function baseIsTypedArray(value){return isObjectLike$1(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)];}/**
  1344. * The base implementation of `_.unary` without support for storing metadata.
  1345. *
  1346. * @private
  1347. * @param {Function} func The function to cap arguments for.
  1348. * @returns {Function} Returns the new capped function.
  1349. */function baseUnary(func){return function(value){return func(value);};}/** Detect free variable `exports`. */var freeExports$1=_typeof2(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule$1=freeExports$1&&(typeof module==="undefined"?"undefined":_typeof2(module))=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports$1&&freeGlobal$1.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
  1350. var types=freeModule$1&&freeModule$1.require&&freeModule$1.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
  1351. return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();var nodeUtil$1=nodeUtil;/* Node.js helper references. */var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray;/**
  1352. * Checks if `value` is classified as a typed array.
  1353. *
  1354. * @static
  1355. * @memberOf _
  1356. * @since 3.0.0
  1357. * @category Lang
  1358. * @param {*} value The value to check.
  1359. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  1360. * @example
  1361. *
  1362. * _.isTypedArray(new Uint8Array);
  1363. * // => true
  1364. *
  1365. * _.isTypedArray([]);
  1366. * // => false
  1367. */var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var isTypedArray$1=isTypedArray;/** Used for built-in method references. */var objectProto$9=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$8=objectProto$9.hasOwnProperty;/**
  1368. * Creates an array of the enumerable property names of the array-like `value`.
  1369. *
  1370. * @private
  1371. * @param {*} value The value to query.
  1372. * @param {boolean} inherited Specify returning inherited property names.
  1373. * @returns {Array} Returns the array of property names.
  1374. */function arrayLikeKeys(value,inherited){var isArr=isArray$6(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty$8.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
  1375. key=='length'||// Node.js 0.10 has enumerable non-index properties on buffers.
  1376. isBuff&&(key=='offset'||key=='parent')||// PhantomJS 2 has enumerable non-index properties on typed arrays.
  1377. isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index properties.
  1378. isIndex(key,length)))){result.push(key);}}return result;}/**
  1379. * Creates a unary function that invokes `func` with its argument transformed.
  1380. *
  1381. * @private
  1382. * @param {Function} func The function to wrap.
  1383. * @param {Function} transform The argument transform.
  1384. * @returns {Function} Returns the new function.
  1385. */function overArg$1(func,transform){return function(arg){return func(transform(arg));};}/* Built-in method references for those with the same name as other `lodash` methods. */var nativeKeys=overArg$1(Object.keys,Object);var nativeKeys$1=nativeKeys;/** Used for built-in method references. */var objectProto$8=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$7=objectProto$8.hasOwnProperty;/**
  1386. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  1387. *
  1388. * @private
  1389. * @param {Object} object The object to query.
  1390. * @returns {Array} Returns the array of property names.
  1391. */function baseKeys(object){if(!isPrototype(object)){return nativeKeys$1(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty$7.call(object,key)&&key!='constructor'){result.push(key);}}return result;}/**
  1392. * Creates an array of the own enumerable property names of `object`.
  1393. *
  1394. * **Note:** Non-object values are coerced to objects. See the
  1395. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  1396. * for more details.
  1397. *
  1398. * @static
  1399. * @since 0.1.0
  1400. * @memberOf _
  1401. * @category Object
  1402. * @param {Object} object The object to query.
  1403. * @returns {Array} Returns the array of property names.
  1404. * @example
  1405. *
  1406. * function Foo() {
  1407. * this.a = 1;
  1408. * this.b = 2;
  1409. * }
  1410. *
  1411. * Foo.prototype.c = 3;
  1412. *
  1413. * _.keys(new Foo);
  1414. * // => ['a', 'b'] (iteration order is not guaranteed)
  1415. *
  1416. * _.keys('hi');
  1417. * // => ['0', '1']
  1418. */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/**
  1419. * This function is like
  1420. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  1421. * except that it includes inherited enumerable properties.
  1422. *
  1423. * @private
  1424. * @param {Object} object The object to query.
  1425. * @returns {Array} Returns the array of property names.
  1426. */function nativeKeysIn(object){var result=[];if(object!=null){for(var key in Object(object)){result.push(key);}}return result;}/** Used for built-in method references. */var objectProto$7=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$6=objectProto$7.hasOwnProperty;/**
  1427. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  1428. *
  1429. * @private
  1430. * @param {Object} object The object to query.
  1431. * @returns {Array} Returns the array of property names.
  1432. */function baseKeysIn(object){if(!isObject$1(object)){return nativeKeysIn(object);}var isProto=isPrototype(object),result=[];for(var key in object){if(!(key=='constructor'&&(isProto||!hasOwnProperty$6.call(object,key)))){result.push(key);}}return result;}/**
  1433. * Creates an array of the own and inherited enumerable property names of `object`.
  1434. *
  1435. * **Note:** Non-object values are coerced to objects.
  1436. *
  1437. * @static
  1438. * @memberOf _
  1439. * @since 3.0.0
  1440. * @category Object
  1441. * @param {Object} object The object to query.
  1442. * @returns {Array} Returns the array of property names.
  1443. * @example
  1444. *
  1445. * function Foo() {
  1446. * this.a = 1;
  1447. * this.b = 2;
  1448. * }
  1449. *
  1450. * Foo.prototype.c = 3;
  1451. *
  1452. * _.keysIn(new Foo);
  1453. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  1454. */function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;/**
  1455. * Checks if `value` is a property name and not a property path.
  1456. *
  1457. * @private
  1458. * @param {*} value The value to check.
  1459. * @param {Object} [object] The object to query keys on.
  1460. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  1461. */function isKey(value,object){if(isArray$6(value)){return false;}var type=_typeof2(value);if(type=='number'||type=='symbol'||type=='boolean'||value==null||isSymbol$1(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object);}/* Built-in method references that are verified to be native. */var nativeCreate=getNative(Object,'create');var nativeCreate$1=nativeCreate;/**
  1462. * Removes all key-value entries from the hash.
  1463. *
  1464. * @private
  1465. * @name clear
  1466. * @memberOf Hash
  1467. */function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{};this.size=0;}/**
  1468. * Removes `key` and its value from the hash.
  1469. *
  1470. * @private
  1471. * @name delete
  1472. * @memberOf Hash
  1473. * @param {Object} hash The hash to modify.
  1474. * @param {string} key The key of the value to remove.
  1475. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  1476. */function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED$2='__lodash_hash_undefined__';/** Used for built-in method references. */var objectProto$6=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$5=objectProto$6.hasOwnProperty;/**
  1477. * Gets the hash value for `key`.
  1478. *
  1479. * @private
  1480. * @name get
  1481. * @memberOf Hash
  1482. * @param {string} key The key of the value to get.
  1483. * @returns {*} Returns the entry value.
  1484. */function hashGet(key){var data=this.__data__;if(nativeCreate$1){var result=data[key];return result===HASH_UNDEFINED$2?undefined:result;}return hasOwnProperty$5.call(data,key)?data[key]:undefined;}/** Used for built-in method references. */var objectProto$5=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$4=objectProto$5.hasOwnProperty;/**
  1485. * Checks if a hash value for `key` exists.
  1486. *
  1487. * @private
  1488. * @name has
  1489. * @memberOf Hash
  1490. * @param {string} key The key of the entry to check.
  1491. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  1492. */function hashHas(key){var data=this.__data__;return nativeCreate$1?data[key]!==undefined:hasOwnProperty$4.call(data,key);}/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED$1='__lodash_hash_undefined__';/**
  1493. * Sets the hash `key` to `value`.
  1494. *
  1495. * @private
  1496. * @name set
  1497. * @memberOf Hash
  1498. * @param {string} key The key of the value to set.
  1499. * @param {*} value The value to set.
  1500. * @returns {Object} Returns the hash instance.
  1501. */function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate$1&&value===undefined?HASH_UNDEFINED$1:value;return this;}/**
  1502. * Creates a hash object.
  1503. *
  1504. * @private
  1505. * @constructor
  1506. * @param {Array} [entries] The key-value pairs to cache.
  1507. */function Hash(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `Hash`.
  1508. Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/**
  1509. * Removes all key-value entries from the list cache.
  1510. *
  1511. * @private
  1512. * @name clear
  1513. * @memberOf ListCache
  1514. */function listCacheClear(){this.__data__=[];this.size=0;}/**
  1515. * Gets the index at which the `key` is found in `array` of key-value pairs.
  1516. *
  1517. * @private
  1518. * @param {Array} array The array to inspect.
  1519. * @param {*} key The key to search for.
  1520. * @returns {number} Returns the index of the matched value, else `-1`.
  1521. */function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}/** Used for built-in method references. */var arrayProto=Array.prototype;/** Built-in value references. */var splice=arrayProto.splice;/**
  1522. * Removes `key` and its value from the list cache.
  1523. *
  1524. * @private
  1525. * @name delete
  1526. * @memberOf ListCache
  1527. * @param {string} key The key of the value to remove.
  1528. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  1529. */function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}--this.size;return true;}/**
  1530. * Gets the list cache value for `key`.
  1531. *
  1532. * @private
  1533. * @name get
  1534. * @memberOf ListCache
  1535. * @param {string} key The key of the value to get.
  1536. * @returns {*} Returns the entry value.
  1537. */function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
  1538. * Checks if a list cache value for `key` exists.
  1539. *
  1540. * @private
  1541. * @name has
  1542. * @memberOf ListCache
  1543. * @param {string} key The key of the entry to check.
  1544. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  1545. */function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
  1546. * Sets the list cache `key` to `value`.
  1547. *
  1548. * @private
  1549. * @name set
  1550. * @memberOf ListCache
  1551. * @param {string} key The key of the value to set.
  1552. * @param {*} value The value to set.
  1553. * @returns {Object} Returns the list cache instance.
  1554. */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else{data[index][1]=value;}return this;}/**
  1555. * Creates an list cache object.
  1556. *
  1557. * @private
  1558. * @constructor
  1559. * @param {Array} [entries] The key-value pairs to cache.
  1560. */function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `ListCache`.
  1561. ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/* Built-in method references that are verified to be native. */var Map$1=getNative(root$1,'Map');var Map$2=Map$1;/**
  1562. * Removes all key-value entries from the map.
  1563. *
  1564. * @private
  1565. * @name clear
  1566. * @memberOf MapCache
  1567. */function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map$2||ListCache)(),'string':new Hash()};}/**
  1568. * Checks if `value` is suitable for use as unique object key.
  1569. *
  1570. * @private
  1571. * @param {*} value The value to check.
  1572. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  1573. */function isKeyable(value){var type=_typeof2(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}/**
  1574. * Gets the data for `map`.
  1575. *
  1576. * @private
  1577. * @param {Object} map The map to query.
  1578. * @param {string} key The reference key.
  1579. * @returns {*} Returns the map data.
  1580. */function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}/**
  1581. * Removes `key` and its value from the map.
  1582. *
  1583. * @private
  1584. * @name delete
  1585. * @memberOf MapCache
  1586. * @param {string} key The key of the value to remove.
  1587. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  1588. */function mapCacheDelete(key){var result=getMapData(this,key)['delete'](key);this.size-=result?1:0;return result;}/**
  1589. * Gets the map value for `key`.
  1590. *
  1591. * @private
  1592. * @name get
  1593. * @memberOf MapCache
  1594. * @param {string} key The key of the value to get.
  1595. * @returns {*} Returns the entry value.
  1596. */function mapCacheGet(key){return getMapData(this,key).get(key);}/**
  1597. * Checks if a map value for `key` exists.
  1598. *
  1599. * @private
  1600. * @name has
  1601. * @memberOf MapCache
  1602. * @param {string} key The key of the entry to check.
  1603. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  1604. */function mapCacheHas(key){return getMapData(this,key).has(key);}/**
  1605. * Sets the map `key` to `value`.
  1606. *
  1607. * @private
  1608. * @name set
  1609. * @memberOf MapCache
  1610. * @param {string} key The key of the value to set.
  1611. * @param {*} value The value to set.
  1612. * @returns {Object} Returns the map cache instance.
  1613. */function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}/**
  1614. * Creates a map cache object to store key-value pairs.
  1615. *
  1616. * @private
  1617. * @constructor
  1618. * @param {Array} [entries] The key-value pairs to cache.
  1619. */function MapCache$1(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `MapCache`.
  1620. MapCache$1.prototype.clear=mapCacheClear;MapCache$1.prototype['delete']=mapCacheDelete;MapCache$1.prototype.get=mapCacheGet;MapCache$1.prototype.has=mapCacheHas;MapCache$1.prototype.set=mapCacheSet;/** Error message constants. */var FUNC_ERROR_TEXT$2='Expected a function';/**
  1621. * Creates a function that memoizes the result of `func`. If `resolver` is
  1622. * provided, it determines the cache key for storing the result based on the
  1623. * arguments provided to the memoized function. By default, the first argument
  1624. * provided to the memoized function is used as the map cache key. The `func`
  1625. * is invoked with the `this` binding of the memoized function.
  1626. *
  1627. * **Note:** The cache is exposed as the `cache` property on the memoized
  1628. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  1629. * constructor with one whose instances implement the
  1630. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  1631. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  1632. *
  1633. * @static
  1634. * @memberOf _
  1635. * @since 0.1.0
  1636. * @category Function
  1637. * @param {Function} func The function to have its output memoized.
  1638. * @param {Function} [resolver] The function to resolve the cache key.
  1639. * @returns {Function} Returns the new memoized function.
  1640. * @example
  1641. *
  1642. * var object = { 'a': 1, 'b': 2 };
  1643. * var other = { 'c': 3, 'd': 4 };
  1644. *
  1645. * var values = _.memoize(_.values);
  1646. * values(object);
  1647. * // => [1, 2]
  1648. *
  1649. * values(other);
  1650. * // => [3, 4]
  1651. *
  1652. * object.a = 2;
  1653. * values(object);
  1654. * // => [1, 2]
  1655. *
  1656. * // Modify the result cache.
  1657. * values.cache.set(object, ['a', 'b']);
  1658. * values(object);
  1659. * // => ['a', 'b']
  1660. *
  1661. * // Replace `_.memoize.Cache`.
  1662. * _.memoize.Cache = WeakMap;
  1663. */function memoize(func,resolver){if(typeof func!='function'||resolver!=null&&typeof resolver!='function'){throw new TypeError(FUNC_ERROR_TEXT$2);}var memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);memoized.cache=cache.set(key,result)||cache;return result;};memoized.cache=new(memoize.Cache||MapCache$1)();return memoized;}// Expose `MapCache`.
  1664. memoize.Cache=MapCache$1;/** Used as the maximum memoize cache size. */var MAX_MEMOIZE_SIZE=500;/**
  1665. * A specialized version of `_.memoize` which clears the memoized function's
  1666. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  1667. *
  1668. * @private
  1669. * @param {Function} func The function to have its output memoized.
  1670. * @returns {Function} Returns the new memoized function.
  1671. */function memoizeCapped(func){var result=memoize(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear();}return key;});var cache=result.cache;return result;}/** Used to match property names within property paths. */var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/** Used to match backslashes in property paths. */var reEscapeChar$1=/\\(\\)?/g;/**
  1672. * Converts `string` to a property path array.
  1673. *
  1674. * @private
  1675. * @param {string} string The string to convert.
  1676. * @returns {Array} Returns the property path array.
  1677. */var stringToPath$1=memoizeCapped(function(string){var result=[];if(string.charCodeAt(0)===46/* . */){result.push('');}string.replace(rePropName$1,function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar$1,'$1'):number||match);});return result;});var stringToPath$2=stringToPath$1;/**
  1678. * Converts `value` to a string. An empty string is returned for `null`
  1679. * and `undefined` values. The sign of `-0` is preserved.
  1680. *
  1681. * @static
  1682. * @memberOf _
  1683. * @since 4.0.0
  1684. * @category Lang
  1685. * @param {*} value The value to convert.
  1686. * @returns {string} Returns the converted string.
  1687. * @example
  1688. *
  1689. * _.toString(null);
  1690. * // => ''
  1691. *
  1692. * _.toString(-0);
  1693. * // => '-0'
  1694. *
  1695. * _.toString([1, 2, 3]);
  1696. * // => '1,2,3'
  1697. */function toString$1(value){return value==null?'':baseToString(value);}/**
  1698. * Casts `value` to a path array if it's not one.
  1699. *
  1700. * @private
  1701. * @param {*} value The value to inspect.
  1702. * @param {Object} [object] The object to query keys on.
  1703. * @returns {Array} Returns the cast property path array.
  1704. */function castPath(value,object){if(isArray$6(value)){return value;}return isKey(value,object)?[value]:stringToPath$2(toString$1(value));}/** Used as references for various `Number` constants. */var INFINITY=1/0;/**
  1705. * Converts `value` to a string key if it's not a string or symbol.
  1706. *
  1707. * @private
  1708. * @param {*} value The value to inspect.
  1709. * @returns {string|symbol} Returns the key.
  1710. */function toKey(value){if(typeof value=='string'||isSymbol$1(value)){return value;}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}/**
  1711. * The base implementation of `_.get` without support for default values.
  1712. *
  1713. * @private
  1714. * @param {Object} object The object to query.
  1715. * @param {Array|string} path The path of the property to get.
  1716. * @returns {*} Returns the resolved value.
  1717. */function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])];}return index&&index==length?object:undefined;}/**
  1718. * Gets the value at `path` of `object`. If the resolved value is
  1719. * `undefined`, the `defaultValue` is returned in its place.
  1720. *
  1721. * @static
  1722. * @memberOf _
  1723. * @since 3.7.0
  1724. * @category Object
  1725. * @param {Object} object The object to query.
  1726. * @param {Array|string} path The path of the property to get.
  1727. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  1728. * @returns {*} Returns the resolved value.
  1729. * @example
  1730. *
  1731. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  1732. *
  1733. * _.get(object, 'a[0].b.c');
  1734. * // => 3
  1735. *
  1736. * _.get(object, ['a', '0', 'b', 'c']);
  1737. * // => 3
  1738. *
  1739. * _.get(object, 'a.b.c', 'default');
  1740. * // => 'default'
  1741. */function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result;}/**
  1742. * Appends the elements of `values` to `array`.
  1743. *
  1744. * @private
  1745. * @param {Array} array The array to modify.
  1746. * @param {Array} values The values to append.
  1747. * @returns {Array} Returns `array`.
  1748. */function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}/** Built-in value references. */var getPrototype$1=overArg$1(Object.getPrototypeOf,Object);var getPrototype$2=getPrototype$1;/**
  1749. * Casts `value` as an array if it's not one.
  1750. *
  1751. * @static
  1752. * @memberOf _
  1753. * @since 4.4.0
  1754. * @category Lang
  1755. * @param {*} value The value to inspect.
  1756. * @returns {Array} Returns the cast array.
  1757. * @example
  1758. *
  1759. * _.castArray(1);
  1760. * // => [1]
  1761. *
  1762. * _.castArray({ 'a': 1 });
  1763. * // => [{ 'a': 1 }]
  1764. *
  1765. * _.castArray('abc');
  1766. * // => ['abc']
  1767. *
  1768. * _.castArray(null);
  1769. * // => [null]
  1770. *
  1771. * _.castArray(undefined);
  1772. * // => [undefined]
  1773. *
  1774. * _.castArray();
  1775. * // => []
  1776. *
  1777. * var array = [1, 2, 3];
  1778. * console.log(_.castArray(array) === array);
  1779. * // => true
  1780. */function castArray$1(){if(!arguments.length){return[];}var value=arguments[0];return isArray$6(value)?value:[value];}/**
  1781. * Removes all key-value entries from the stack.
  1782. *
  1783. * @private
  1784. * @name clear
  1785. * @memberOf Stack
  1786. */function stackClear(){this.__data__=new ListCache();this.size=0;}/**
  1787. * Removes `key` and its value from the stack.
  1788. *
  1789. * @private
  1790. * @name delete
  1791. * @memberOf Stack
  1792. * @param {string} key The key of the value to remove.
  1793. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  1794. */function stackDelete(key){var data=this.__data__,result=data['delete'](key);this.size=data.size;return result;}/**
  1795. * Gets the stack value for `key`.
  1796. *
  1797. * @private
  1798. * @name get
  1799. * @memberOf Stack
  1800. * @param {string} key The key of the value to get.
  1801. * @returns {*} Returns the entry value.
  1802. */function stackGet(key){return this.__data__.get(key);}/**
  1803. * Checks if a stack value for `key` exists.
  1804. *
  1805. * @private
  1806. * @name has
  1807. * @memberOf Stack
  1808. * @param {string} key The key of the entry to check.
  1809. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  1810. */function stackHas(key){return this.__data__.has(key);}/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/**
  1811. * Sets the stack `key` to `value`.
  1812. *
  1813. * @private
  1814. * @name set
  1815. * @memberOf Stack
  1816. * @param {string} key The key of the value to set.
  1817. * @param {*} value The value to set.
  1818. * @returns {Object} Returns the stack cache instance.
  1819. */function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map$2||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache$1(pairs);}data.set(key,value);this.size=data.size;return this;}/**
  1820. * Creates a stack cache object to store key-value pairs.
  1821. *
  1822. * @private
  1823. * @constructor
  1824. * @param {Array} [entries] The key-value pairs to cache.
  1825. */function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}// Add methods to `Stack`.
  1826. Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/**
  1827. * The base implementation of `_.assign` without support for multiple sources
  1828. * or `customizer` functions.
  1829. *
  1830. * @private
  1831. * @param {Object} object The destination object.
  1832. * @param {Object} source The source object.
  1833. * @returns {Object} Returns `object`.
  1834. */function baseAssign(object,source){return object&&copyObject(source,keys(source),object);}/**
  1835. * The base implementation of `_.assignIn` without support for multiple sources
  1836. * or `customizer` functions.
  1837. *
  1838. * @private
  1839. * @param {Object} object The destination object.
  1840. * @param {Object} source The source object.
  1841. * @returns {Object} Returns `object`.
  1842. */function baseAssignIn(object,source){return object&&copyObject(source,keysIn(source),object);}/** Detect free variable `exports`. */var freeExports=_typeof2(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&(typeof module==="undefined"?"undefined":_typeof2(module))=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Built-in value references. */var Buffer=moduleExports?root$1.Buffer:undefined,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined;/**
  1843. * Creates a clone of `buffer`.
  1844. *
  1845. * @private
  1846. * @param {Buffer} buffer The buffer to clone.
  1847. * @param {boolean} [isDeep] Specify a deep clone.
  1848. * @returns {Buffer} Returns the cloned buffer.
  1849. */function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);buffer.copy(result);return result;}/**
  1850. * A specialized version of `_.filter` for arrays without support for
  1851. * iteratee shorthands.
  1852. *
  1853. * @private
  1854. * @param {Array} [array] The array to iterate over.
  1855. * @param {Function} predicate The function invoked per iteration.
  1856. * @returns {Array} Returns the new filtered array.
  1857. */function arrayFilter(array,predicate){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[resIndex++]=value;}}return result;}/**
  1858. * This method returns a new empty array.
  1859. *
  1860. * @static
  1861. * @memberOf _
  1862. * @since 4.13.0
  1863. * @category Util
  1864. * @returns {Array} Returns the new empty array.
  1865. * @example
  1866. *
  1867. * var arrays = _.times(2, _.stubArray);
  1868. *
  1869. * console.log(arrays);
  1870. * // => [[], []]
  1871. *
  1872. * console.log(arrays[0] === arrays[1]);
  1873. * // => false
  1874. */function stubArray(){return[];}/** Used for built-in method references. */var objectProto$4=Object.prototype;/** Built-in value references. */var propertyIsEnumerable=objectProto$4.propertyIsEnumerable;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols$1=Object.getOwnPropertySymbols;/**
  1875. * Creates an array of the own enumerable symbols of `object`.
  1876. *
  1877. * @private
  1878. * @param {Object} object The object to query.
  1879. * @returns {Array} Returns the array of symbols.
  1880. */var getSymbols=!nativeGetSymbols$1?stubArray:function(object){if(object==null){return[];}object=Object(object);return arrayFilter(nativeGetSymbols$1(object),function(symbol){return propertyIsEnumerable.call(object,symbol);});};var getSymbols$1=getSymbols;/**
  1881. * Copies own symbols of `source` to `object`.
  1882. *
  1883. * @private
  1884. * @param {Object} source The object to copy symbols from.
  1885. * @param {Object} [object={}] The object to copy symbols to.
  1886. * @returns {Object} Returns `object`.
  1887. */function copySymbols(source,object){return copyObject(source,getSymbols$1(source),object);}/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols;/**
  1888. * Creates an array of the own and inherited enumerable symbols of `object`.
  1889. *
  1890. * @private
  1891. * @param {Object} object The object to query.
  1892. * @returns {Array} Returns the array of symbols.
  1893. */var getSymbolsIn=!nativeGetSymbols?stubArray:function(object){var result=[];while(object){arrayPush(result,getSymbols$1(object));object=getPrototype$2(object);}return result;};var getSymbolsIn$1=getSymbolsIn;/**
  1894. * Copies own and inherited symbols of `source` to `object`.
  1895. *
  1896. * @private
  1897. * @param {Object} source The object to copy symbols from.
  1898. * @param {Object} [object={}] The object to copy symbols to.
  1899. * @returns {Object} Returns `object`.
  1900. */function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn$1(source),object);}/**
  1901. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  1902. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  1903. * symbols of `object`.
  1904. *
  1905. * @private
  1906. * @param {Object} object The object to query.
  1907. * @param {Function} keysFunc The function to get the keys of `object`.
  1908. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  1909. * @returns {Array} Returns the array of property names and symbols.
  1910. */function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$6(object)?result:arrayPush(result,symbolsFunc(object));}/**
  1911. * Creates an array of own enumerable property names and symbols of `object`.
  1912. *
  1913. * @private
  1914. * @param {Object} object The object to query.
  1915. * @returns {Array} Returns the array of property names and symbols.
  1916. */function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols$1);}/**
  1917. * Creates an array of own and inherited enumerable property names and
  1918. * symbols of `object`.
  1919. *
  1920. * @private
  1921. * @param {Object} object The object to query.
  1922. * @returns {Array} Returns the array of property names and symbols.
  1923. */function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn$1);}/* Built-in method references that are verified to be native. */var DataView$1=getNative(root$1,'DataView');var DataView$2=DataView$1;/* Built-in method references that are verified to be native. */var Promise$1=getNative(root$1,'Promise');var Promise$2=Promise$1;/* Built-in method references that are verified to be native. */var Set$1=getNative(root$1,'Set');var Set$2=Set$1;/** `Object#toString` result references. */var mapTag$4='[object Map]',objectTag$3='[object Object]',promiseTag='[object Promise]',setTag$4='[object Set]',weakMapTag$1='[object WeakMap]';var dataViewTag$3='[object DataView]';/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView$2),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$2);/**
  1924. * Gets the `toStringTag` of `value`.
  1925. *
  1926. * @private
  1927. * @param {*} value The value to query.
  1928. * @returns {string} Returns the `toStringTag`.
  1929. */var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  1930. if(DataView$2&&getTag(new DataView$2(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2())!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2())!=setTag$4||WeakMap$2&&getTag(new WeakMap$2())!=weakMapTag$1){getTag=function getTag(value){var result=baseGetTag(value),Ctor=result==objectTag$3?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):'';if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1;}}return result;};}var getTag$1=getTag;/** Used for built-in method references. */var objectProto$3=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$3=objectProto$3.hasOwnProperty;/**
  1931. * Initializes an array clone.
  1932. *
  1933. * @private
  1934. * @param {Array} array The array to clone.
  1935. * @returns {Array} Returns the initialized clone.
  1936. */function initCloneArray(array){var length=array.length,result=new array.constructor(length);// Add properties assigned by `RegExp#exec`.
  1937. if(length&&typeof array[0]=='string'&&hasOwnProperty$3.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}/** Built-in value references. */var Uint8Array$1=root$1.Uint8Array;var Uint8Array$2=Uint8Array$1;/**
  1938. * Creates a clone of `arrayBuffer`.
  1939. *
  1940. * @private
  1941. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  1942. * @returns {ArrayBuffer} Returns the cloned array buffer.
  1943. */function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));return result;}/**
  1944. * Creates a clone of `dataView`.
  1945. *
  1946. * @private
  1947. * @param {Object} dataView The data view to clone.
  1948. * @param {boolean} [isDeep] Specify a deep clone.
  1949. * @returns {Object} Returns the cloned data view.
  1950. */function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}/** Used to match `RegExp` flags from their coerced string values. */var reFlags=/\w*$/;/**
  1951. * Creates a clone of `regexp`.
  1952. *
  1953. * @private
  1954. * @param {Object} regexp The regexp to clone.
  1955. * @returns {Object} Returns the cloned regexp.
  1956. */function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}/** Used to convert symbols to primitives and strings. */var symbolProto$1=Symbol$2?Symbol$2.prototype:undefined,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:undefined;/**
  1957. * Creates a clone of the `symbol` object.
  1958. *
  1959. * @private
  1960. * @param {Object} symbol The symbol object to clone.
  1961. * @returns {Object} Returns the cloned symbol object.
  1962. */function cloneSymbol(symbol){return symbolValueOf$1?Object(symbolValueOf$1.call(symbol)):{};}/**
  1963. * Creates a clone of `typedArray`.
  1964. *
  1965. * @private
  1966. * @param {Object} typedArray The typed array to clone.
  1967. * @param {boolean} [isDeep] Specify a deep clone.
  1968. * @returns {Object} Returns the cloned typed array.
  1969. */function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/** `Object#toString` result references. */var boolTag$2='[object Boolean]',dateTag$2='[object Date]',mapTag$3='[object Map]',numberTag$2='[object Number]',regexpTag$2='[object RegExp]',setTag$3='[object Set]',stringTag$2='[object String]',symbolTag$2='[object Symbol]';var arrayBufferTag$2='[object ArrayBuffer]',dataViewTag$2='[object DataView]',float32Tag$1='[object Float32Array]',float64Tag$1='[object Float64Array]',int8Tag$1='[object Int8Array]',int16Tag$1='[object Int16Array]',int32Tag$1='[object Int32Array]',uint8Tag$1='[object Uint8Array]',uint8ClampedTag$1='[object Uint8ClampedArray]',uint16Tag$1='[object Uint16Array]',uint32Tag$1='[object Uint32Array]';/**
  1970. * Initializes an object clone based on its `toStringTag`.
  1971. *
  1972. * **Note:** This function only supports cloning values with tags of
  1973. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  1974. *
  1975. * @private
  1976. * @param {Object} object The object to clone.
  1977. * @param {string} tag The `toStringTag` of the object to clone.
  1978. * @param {boolean} [isDeep] Specify a deep clone.
  1979. * @returns {Object} Returns the initialized clone.
  1980. */function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag$2:return cloneArrayBuffer(object);case boolTag$2:case dateTag$2:return new Ctor(+object);case dataViewTag$2:return cloneDataView(object,isDeep);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(object,isDeep);case mapTag$3:return new Ctor();case numberTag$2:case stringTag$2:return new Ctor(object);case regexpTag$2:return cloneRegExp(object);case setTag$3:return new Ctor();case symbolTag$2:return cloneSymbol(object);}}/**
  1981. * Initializes an object clone.
  1982. *
  1983. * @private
  1984. * @param {Object} object The object to clone.
  1985. * @returns {Object} Returns the initialized clone.
  1986. */function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate$1(getPrototype$2(object)):{};}/** `Object#toString` result references. */var mapTag$2='[object Map]';/**
  1987. * The base implementation of `_.isMap` without Node.js optimizations.
  1988. *
  1989. * @private
  1990. * @param {*} value The value to check.
  1991. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  1992. */function baseIsMap(value){return isObjectLike$1(value)&&getTag$1(value)==mapTag$2;}/* Node.js helper references. */var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap;/**
  1993. * Checks if `value` is classified as a `Map` object.
  1994. *
  1995. * @static
  1996. * @memberOf _
  1997. * @since 4.3.0
  1998. * @category Lang
  1999. * @param {*} value The value to check.
  2000. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  2001. * @example
  2002. *
  2003. * _.isMap(new Map);
  2004. * // => true
  2005. *
  2006. * _.isMap(new WeakMap);
  2007. * // => false
  2008. */var isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;var isMap$2=isMap$1;/** `Object#toString` result references. */var setTag$2='[object Set]';/**
  2009. * The base implementation of `_.isSet` without Node.js optimizations.
  2010. *
  2011. * @private
  2012. * @param {*} value The value to check.
  2013. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  2014. */function baseIsSet(value){return isObjectLike$1(value)&&getTag$1(value)==setTag$2;}/* Node.js helper references. */var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet;/**
  2015. * Checks if `value` is classified as a `Set` object.
  2016. *
  2017. * @static
  2018. * @memberOf _
  2019. * @since 4.3.0
  2020. * @category Lang
  2021. * @param {*} value The value to check.
  2022. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  2023. * @example
  2024. *
  2025. * _.isSet(new Set);
  2026. * // => true
  2027. *
  2028. * _.isSet(new WeakSet);
  2029. * // => false
  2030. */var isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;var isSet$2=isSet$1;/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4;/** `Object#toString` result references. */var argsTag$1='[object Arguments]',arrayTag$1='[object Array]',boolTag$1='[object Boolean]',dateTag$1='[object Date]',errorTag$1='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag$1='[object Map]',numberTag$1='[object Number]',objectTag$2='[object Object]',regexpTag$1='[object RegExp]',setTag$1='[object Set]',stringTag$1='[object String]',symbolTag$1='[object Symbol]',weakMapTag='[object WeakMap]';var arrayBufferTag$1='[object ArrayBuffer]',dataViewTag$1='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$2]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/**
  2031. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  2032. * traversed objects.
  2033. *
  2034. * @private
  2035. * @param {*} value The value to clone.
  2036. * @param {boolean} bitmask The bitmask flags.
  2037. * 1 - Deep clone
  2038. * 2 - Flatten inherited properties
  2039. * 4 - Clone symbols
  2040. * @param {Function} [customizer] The function to customize cloning.
  2041. * @param {string} [key] The key of `value`.
  2042. * @param {Object} [object] The parent object of `value`.
  2043. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  2044. * @returns {*} Returns the cloned value.
  2045. */function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG$1;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject$1(value)){return value;}var isArr=isArray$6(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else{var tag=getTag$1(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer$2(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag$2||tag==argsTag$1||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
  2046. stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet$2(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap$2(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
  2047. assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));});return result;}/** Used to compose bitmasks for cloning. */var CLONE_SYMBOLS_FLAG=4;/**
  2048. * Creates a shallow clone of `value`.
  2049. *
  2050. * **Note:** This method is loosely based on the
  2051. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  2052. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  2053. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  2054. * arrays. The own enumerable properties of `arguments` objects are cloned
  2055. * as plain objects. An empty object is returned for uncloneable values such
  2056. * as error objects, functions, DOM nodes, and WeakMaps.
  2057. *
  2058. * @static
  2059. * @memberOf _
  2060. * @since 0.1.0
  2061. * @category Lang
  2062. * @param {*} value The value to clone.
  2063. * @returns {*} Returns the cloned value.
  2064. * @see _.cloneDeep
  2065. * @example
  2066. *
  2067. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  2068. *
  2069. * var shallow = _.clone(objects);
  2070. * console.log(shallow[0] === objects[0]);
  2071. * // => true
  2072. */function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/**
  2073. * Adds `value` to the array cache.
  2074. *
  2075. * @private
  2076. * @name add
  2077. * @memberOf SetCache
  2078. * @alias push
  2079. * @param {*} value The value to cache.
  2080. * @returns {Object} Returns the cache instance.
  2081. */function setCacheAdd(value){this.__data__.set(value,HASH_UNDEFINED);return this;}/**
  2082. * Checks if `value` is in the array cache.
  2083. *
  2084. * @private
  2085. * @name has
  2086. * @memberOf SetCache
  2087. * @param {*} value The value to search for.
  2088. * @returns {number} Returns `true` if `value` is found, else `false`.
  2089. */function setCacheHas(value){return this.__data__.has(value);}/**
  2090. *
  2091. * Creates an array cache object to store unique values.
  2092. *
  2093. * @private
  2094. * @constructor
  2095. * @param {Array} [values] The values to cache.
  2096. */function SetCache(values){var index=-1,length=values==null?0:values.length;this.__data__=new MapCache$1();while(++index<length){this.add(values[index]);}}// Add methods to `SetCache`.
  2097. SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;/**
  2098. * A specialized version of `_.some` for arrays without support for iteratee
  2099. * shorthands.
  2100. *
  2101. * @private
  2102. * @param {Array} [array] The array to iterate over.
  2103. * @param {Function} predicate The function invoked per iteration.
  2104. * @returns {boolean} Returns `true` if any element passes the predicate check,
  2105. * else `false`.
  2106. */function arraySome(array,predicate){var index=-1,length=array==null?0:array.length;while(++index<length){if(predicate(array[index],index,array)){return true;}}return false;}/**
  2107. * Checks if a `cache` value for `key` exists.
  2108. *
  2109. * @private
  2110. * @param {Object} cache The cache to query.
  2111. * @param {string} key The key of the entry to check.
  2112. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2113. */function cacheHas(cache,key){return cache.has(key);}/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;/**
  2114. * A specialized version of `baseIsEqualDeep` for arrays with support for
  2115. * partial deep comparisons.
  2116. *
  2117. * @private
  2118. * @param {Array} array The array to compare.
  2119. * @param {Array} other The other array to compare.
  2120. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  2121. * @param {Function} customizer The function to customize comparisons.
  2122. * @param {Function} equalFunc The function to determine equivalents of values.
  2123. * @param {Object} stack Tracks traversed `array` and `other` objects.
  2124. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  2125. */function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}// Check that cyclic values are equal.
  2126. var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG$1?new SetCache():undefined;stack.set(array,other);stack.set(other,array);// Ignore non-index properties.
  2127. while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);}if(compared!==undefined){if(compared){continue;}result=false;break;}// Recursively compare arrays (susceptible to call stack limits).
  2128. if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack['delete'](array);stack['delete'](other);return result;}/**
  2129. * Converts `map` to its key-value pairs.
  2130. *
  2131. * @private
  2132. * @param {Object} map The map to convert.
  2133. * @returns {Array} Returns the key-value pairs.
  2134. */function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/**
  2135. * Converts `set` to an array of its values.
  2136. *
  2137. * @private
  2138. * @param {Object} set The set to convert.
  2139. * @returns {Array} Returns the values.
  2140. */function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value;});return result;}/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2;/** `Object#toString` result references. */var boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',mapTag='[object Map]',numberTag='[object Number]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]';/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol$2?Symbol$2.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;/**
  2141. * A specialized version of `baseIsEqualDeep` for comparing objects of
  2142. * the same `toStringTag`.
  2143. *
  2144. * **Note:** This function only supports comparing values with tags of
  2145. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  2146. *
  2147. * @private
  2148. * @param {Object} object The object to compare.
  2149. * @param {Object} other The other object to compare.
  2150. * @param {string} tag The `toStringTag` of the objects to compare.
  2151. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  2152. * @param {Function} customizer The function to customize comparisons.
  2153. * @param {Function} equalFunc The function to determine equivalents of values.
  2154. * @param {Object} stack Tracks traversed `object` and `other` objects.
  2155. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  2156. */function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array$2(object),new Uint8Array$2(other))){return false;}return true;case boolTag:case dateTag:case numberTag:// Coerce booleans to `1` or `0` and dates to milliseconds.
  2157. // Invalid dates are coerced to `NaN`.
  2158. return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:// Coerce regexes to strings and treat strings, primitives and objects,
  2159. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  2160. // for more details.
  2161. return object==other+'';case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG$2;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}// Assume cyclic values are equal.
  2162. var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG;// Recursively compare objects (susceptible to call stack limits).
  2163. stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack['delete'](object);return result;case symbolTag:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG$1=1;/** Used for built-in method references. */var objectProto$2=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$2=objectProto$2.hasOwnProperty;/**
  2164. * A specialized version of `baseIsEqualDeep` for objects with support for
  2165. * partial deep comparisons.
  2166. *
  2167. * @private
  2168. * @param {Object} object The object to compare.
  2169. * @param {Object} other The other object to compare.
  2170. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  2171. * @param {Function} customizer The function to customize comparisons.
  2172. * @param {Function} equalFunc The function to determine equivalents of values.
  2173. * @param {Object} stack Tracks traversed `object` and `other` objects.
  2174. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  2175. */function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$1,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index=objLength;while(index--){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty$2.call(other,key))){return false;}}// Check that cyclic values are equal.
  2176. var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index<objLength){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}// Recursively compare objects (susceptible to call stack limits).
  2177. if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=='constructor');}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;// Non `Object` object instances with different constructors are not equal.
  2178. if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof objCtor=='function'&&objCtor instanceof objCtor&&typeof othCtor=='function'&&othCtor instanceof othCtor)){result=false;}}stack['delete'](object);stack['delete'](other);return result;}/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG=1;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',objectTag$1='[object Object]';/** Used for built-in method references. */var objectProto$1=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$1=objectProto$1.hasOwnProperty;/**
  2179. * A specialized version of `baseIsEqual` for arrays and objects which performs
  2180. * deep comparisons and tracks traversed objects enabling objects with circular
  2181. * references to be compared.
  2182. *
  2183. * @private
  2184. * @param {Object} object The object to compare.
  2185. * @param {Object} other The other object to compare.
  2186. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  2187. * @param {Function} customizer The function to customize comparisons.
  2188. * @param {Function} equalFunc The function to determine equivalents of values.
  2189. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  2190. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  2191. */function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray$6(object),othIsArr=isArray$6(other),objTag=objIsArr?arrayTag:getTag$1(object),othTag=othIsArr?arrayTag:getTag$1(other);objTag=objTag==argsTag?objectTag$1:objTag;othTag=othTag==argsTag?objectTag$1:othTag;var objIsObj=objTag==objectTag$1,othIsObj=othTag==objectTag$1,isSameTag=objTag==othTag;if(isSameTag&&isBuffer$2(object)){if(!isBuffer$2(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack());return objIsArr||isTypedArray$1(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty$1.call(object,'__wrapped__'),othIsWrapped=othIsObj&&hasOwnProperty$1.call(other,'__wrapped__');if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack());return equalObjects(object,other,bitmask,customizer,equalFunc,stack);}/**
  2192. * The base implementation of `_.isEqual` which supports partial comparisons
  2193. * and tracks traversed objects.
  2194. *
  2195. * @private
  2196. * @param {*} value The value to compare.
  2197. * @param {*} other The other value to compare.
  2198. * @param {boolean} bitmask The bitmask flags.
  2199. * 1 - Unordered comparison
  2200. * 2 - Partial comparison
  2201. * @param {Function} [customizer] The function to customize comparisons.
  2202. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  2203. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  2204. */function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike$1(value)&&!isObjectLike$1(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack);}/**
  2205. * Gets the timestamp of the number of milliseconds that have elapsed since
  2206. * the Unix epoch (1 January 1970 00:00:00 UTC).
  2207. *
  2208. * @static
  2209. * @memberOf _
  2210. * @since 2.4.0
  2211. * @category Date
  2212. * @returns {number} Returns the timestamp.
  2213. * @example
  2214. *
  2215. * _.defer(function(stamp) {
  2216. * console.log(_.now() - stamp);
  2217. * }, _.now());
  2218. * // => Logs the number of milliseconds it took for the deferred invocation.
  2219. */var now=function now(){return root$1.Date.now();};var now$1=now;/** Error message constants. */var FUNC_ERROR_TEXT$1='Expected a function';/* Built-in method references for those with the same name as other `lodash` methods. */var nativeMax=Math.max,nativeMin=Math.min;/**
  2220. * Creates a debounced function that delays invoking `func` until after `wait`
  2221. * milliseconds have elapsed since the last time the debounced function was
  2222. * invoked. The debounced function comes with a `cancel` method to cancel
  2223. * delayed `func` invocations and a `flush` method to immediately invoke them.
  2224. * Provide `options` to indicate whether `func` should be invoked on the
  2225. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  2226. * with the last arguments provided to the debounced function. Subsequent
  2227. * calls to the debounced function return the result of the last `func`
  2228. * invocation.
  2229. *
  2230. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  2231. * invoked on the trailing edge of the timeout only if the debounced function
  2232. * is invoked more than once during the `wait` timeout.
  2233. *
  2234. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  2235. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  2236. *
  2237. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  2238. * for details over the differences between `_.debounce` and `_.throttle`.
  2239. *
  2240. * @static
  2241. * @memberOf _
  2242. * @since 0.1.0
  2243. * @category Function
  2244. * @param {Function} func The function to debounce.
  2245. * @param {number} [wait=0] The number of milliseconds to delay.
  2246. * @param {Object} [options={}] The options object.
  2247. * @param {boolean} [options.leading=false]
  2248. * Specify invoking on the leading edge of the timeout.
  2249. * @param {number} [options.maxWait]
  2250. * The maximum time `func` is allowed to be delayed before it's invoked.
  2251. * @param {boolean} [options.trailing=true]
  2252. * Specify invoking on the trailing edge of the timeout.
  2253. * @returns {Function} Returns the new debounced function.
  2254. * @example
  2255. *
  2256. * // Avoid costly calculations while the window size is in flux.
  2257. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  2258. *
  2259. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  2260. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  2261. * 'leading': true,
  2262. * 'trailing': false
  2263. * }));
  2264. *
  2265. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  2266. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  2267. * var source = new EventSource('/stream');
  2268. * jQuery(source).on('message', debounced);
  2269. *
  2270. * // Cancel the trailing debounced invocation.
  2271. * jQuery(window).on('popstate', debounced.cancel);
  2272. */function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT$1);}wait=toNumber(wait)||0;if(isObject$1(options)){leading=!!options.leading;maxing='maxWait'in options;maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing='trailing'in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined;lastInvokeTime=time;result=func.apply(thisArg,args);return result;}function leadingEdge(time){// Reset any `maxWait` timer.
  2273. lastInvokeTime=time;// Start the timer for the trailing edge.
  2274. timerId=setTimeout(timerExpired,wait);// Invoke the leading edge.
  2275. return leading?invokeFunc(time):result;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;// Either this is the first call, activity has stopped and we're at the
  2276. // trailing edge, the system time has gone backwards and we're treating
  2277. // it as the trailing edge, or we've hit the `maxWait` limit.
  2278. return lastCallTime===undefined||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now$1();if(shouldInvoke(time)){return trailingEdge(time);}// Restart the timer.
  2279. timerId=setTimeout(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined;// Only invoke if we have `lastArgs` which means `func` has been
  2280. // debounced at least once.
  2281. if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined;return result;}function cancel(){if(timerId!==undefined){clearTimeout(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined;}function flush(){return timerId===undefined?result:trailingEdge(now$1());}function debounced(){var time=now$1(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined){return leadingEdge(lastCallTime);}if(maxing){// Handle invocations in a tight loop.
  2282. clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined){timerId=setTimeout(timerExpired,wait);}return result;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}/**
  2283. * The inverse of `_.toPairs`; this method returns an object composed
  2284. * from key-value `pairs`.
  2285. *
  2286. * @static
  2287. * @memberOf _
  2288. * @since 4.0.0
  2289. * @category Array
  2290. * @param {Array} pairs The key-value pairs.
  2291. * @returns {Object} Returns the new object.
  2292. * @example
  2293. *
  2294. * _.fromPairs([['a', 1], ['b', 2]]);
  2295. * // => { 'a': 1, 'b': 2 }
  2296. */function fromPairs(pairs){var index=-1,length=pairs==null?0:pairs.length,result={};while(++index<length){var pair=pairs[index];result[pair[0]]=pair[1];}return result;}/**
  2297. * Performs a deep comparison between two values to determine if they are
  2298. * equivalent.
  2299. *
  2300. * **Note:** This method supports comparing arrays, array buffers, booleans,
  2301. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  2302. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  2303. * by their own, not inherited, enumerable properties. Functions and DOM
  2304. * nodes are compared by strict equality, i.e. `===`.
  2305. *
  2306. * @static
  2307. * @memberOf _
  2308. * @since 0.1.0
  2309. * @category Lang
  2310. * @param {*} value The value to compare.
  2311. * @param {*} other The other value to compare.
  2312. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  2313. * @example
  2314. *
  2315. * var object = { 'a': 1 };
  2316. * var other = { 'a': 1 };
  2317. *
  2318. * _.isEqual(object, other);
  2319. * // => true
  2320. *
  2321. * object === other;
  2322. * // => false
  2323. */function isEqual(value,other){return baseIsEqual(value,other);}/**
  2324. * Checks if `value` is `null` or `undefined`.
  2325. *
  2326. * @static
  2327. * @memberOf _
  2328. * @since 4.0.0
  2329. * @category Lang
  2330. * @param {*} value The value to check.
  2331. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  2332. * @example
  2333. *
  2334. * _.isNil(null);
  2335. * // => true
  2336. *
  2337. * _.isNil(void 0);
  2338. * // => true
  2339. *
  2340. * _.isNil(NaN);
  2341. * // => false
  2342. */function isNil(value){return value==null;}/**
  2343. * The base implementation of `_.set`.
  2344. *
  2345. * @private
  2346. * @param {Object} object The object to modify.
  2347. * @param {Array|string} path The path of the property to set.
  2348. * @param {*} value The value to set.
  2349. * @param {Function} [customizer] The function to customize path creation.
  2350. * @returns {Object} Returns `object`.
  2351. */function baseSet(object,path,value,customizer){if(!isObject$1(object)){return object;}path=castPath(path,object);var index=-1,length=path.length,lastIndex=length-1,nested=object;while(nested!=null&&++index<length){var key=toKey(path[index]),newValue=value;if(key==='__proto__'||key==='constructor'||key==='prototype'){return object;}if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined;if(newValue===undefined){newValue=isObject$1(objValue)?objValue:isIndex(path[index+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}/**
  2352. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  2353. * it's created. Arrays are created for missing index properties while objects
  2354. * are created for all other missing properties. Use `_.setWith` to customize
  2355. * `path` creation.
  2356. *
  2357. * **Note:** This method mutates `object`.
  2358. *
  2359. * @static
  2360. * @memberOf _
  2361. * @since 3.7.0
  2362. * @category Object
  2363. * @param {Object} object The object to modify.
  2364. * @param {Array|string} path The path of the property to set.
  2365. * @param {*} value The value to set.
  2366. * @returns {Object} Returns `object`.
  2367. * @example
  2368. *
  2369. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  2370. *
  2371. * _.set(object, 'a[0].b.c', 4);
  2372. * console.log(object.a[0].b.c);
  2373. * // => 4
  2374. *
  2375. * _.set(object, ['x', '0', 'y', 'z'], 5);
  2376. * console.log(object.x[0].y.z);
  2377. * // => 5
  2378. */function set(object,path,value){return object==null?object:baseSet(object,path,value);}/** Error message constants. */var FUNC_ERROR_TEXT='Expected a function';/**
  2379. * Creates a throttled function that only invokes `func` at most once per
  2380. * every `wait` milliseconds. The throttled function comes with a `cancel`
  2381. * method to cancel delayed `func` invocations and a `flush` method to
  2382. * immediately invoke them. Provide `options` to indicate whether `func`
  2383. * should be invoked on the leading and/or trailing edge of the `wait`
  2384. * timeout. The `func` is invoked with the last arguments provided to the
  2385. * throttled function. Subsequent calls to the throttled function return the
  2386. * result of the last `func` invocation.
  2387. *
  2388. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  2389. * invoked on the trailing edge of the timeout only if the throttled function
  2390. * is invoked more than once during the `wait` timeout.
  2391. *
  2392. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  2393. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  2394. *
  2395. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  2396. * for details over the differences between `_.throttle` and `_.debounce`.
  2397. *
  2398. * @static
  2399. * @memberOf _
  2400. * @since 0.1.0
  2401. * @category Function
  2402. * @param {Function} func The function to throttle.
  2403. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  2404. * @param {Object} [options={}] The options object.
  2405. * @param {boolean} [options.leading=true]
  2406. * Specify invoking on the leading edge of the timeout.
  2407. * @param {boolean} [options.trailing=true]
  2408. * Specify invoking on the trailing edge of the timeout.
  2409. * @returns {Function} Returns the new throttled function.
  2410. * @example
  2411. *
  2412. * // Avoid excessively updating the position while scrolling.
  2413. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  2414. *
  2415. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  2416. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  2417. * jQuery(element).on('click', throttled);
  2418. *
  2419. * // Cancel the trailing throttled invocation.
  2420. * jQuery(window).on('popstate', throttled.cancel);
  2421. */function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(isObject$1(options)){leading='leading'in options?!!options.leading:leading;trailing='trailing'in options?!!options.trailing:trailing;}return debounce(func,wait,{'leading':leading,'maxWait':wait,'trailing':trailing});}var FOCUSABLE_ELEMENT_SELECTORS="a[href],button:not([disabled]),button:not([hidden]),:not([tabindex=\"-1\"]),input:not([disabled]),input:not([type=\"hidden\"]),select:not([disabled]),textarea:not([disabled])";var isVisible=function isVisible(element){var computed=getComputedStyle(element);return computed.position==="fixed"?false:element.offsetParent!==null;};var obtainAllFocusableElements$1=function obtainAllFocusableElements$1(element){return Array.from(element.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(function(item){return isFocusable(item)&&isVisible(item);});};var isFocusable=function isFocusable(element){if(element.tabIndex>0||element.tabIndex===0&&element.getAttribute("tabIndex")!==null){return true;}if(element.disabled){return false;}switch(element.nodeName){case"A":{return!!element.href&&element.rel!=="ignore";}case"INPUT":{return!(element.type==="hidden"||element.type==="file");}case"BUTTON":case"SELECT":case"TEXTAREA":{return true;}default:{return false;}}};var on$1=function on$1(element,event,handler){var useCapture=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(element&&event&&handler){element==null?void 0:element.addEventListener(event,handler,useCapture);}};var off=function off(element,event,handler){var useCapture=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(element&&event&&handler){element==null?void 0:element.removeEventListener(event,handler,useCapture);}};var once=function once(el,event,fn){var listener=function listener(){if(fn){for(var _len9=arguments.length,args=new Array(_len9),_key16=0;_key16<_len9;_key16++){args[_key16]=arguments[_key16];}fn.apply(this,args);}off(el,event,listener);};on$1(el,event,listener);};var composeEventHandlers=function composeEventHandlers(theirsHandler,oursHandler){var _ref41=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref41$checkForDefaul=_ref41.checkForDefaultPrevented,checkForDefaultPrevented=_ref41$checkForDefaul===void 0?true:_ref41$checkForDefaul;var handleEvent=function handleEvent(event){var shouldPrevent=theirsHandler==null?void 0:theirsHandler(event);if(checkForDefaultPrevented===false||!shouldPrevent){return oursHandler==null?void 0:oursHandler(event);}};return handleEvent;};var whenMouse=function whenMouse(handler){return function(e){return e.pointerType==="mouse"?handler(e):void 0;};};var __defProp$9=Object.defineProperty;var __defProps$6=Object.defineProperties;var __getOwnPropDescs$6=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols$b=Object.getOwnPropertySymbols;var __hasOwnProp$b=Object.prototype.hasOwnProperty;var __propIsEnum$b=Object.prototype.propertyIsEnumerable;var __defNormalProp$9=function __defNormalProp$9(obj,key,value){return key in obj?__defProp$9(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues$9=function __spreadValues$9(a,b){for(var prop in b||(b={})){if(__hasOwnProp$b.call(b,prop))__defNormalProp$9(a,prop,b[prop]);}if(__getOwnPropSymbols$b){var _iterator3=_createForOfIteratorHelper(__getOwnPropSymbols$b(b)),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var prop=_step3.value;if(__propIsEnum$b.call(b,prop))__defNormalProp$9(a,prop,b[prop]);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}return a;};var __spreadProps$6=function __spreadProps$6(a,b){return __defProps$6(a,__getOwnPropDescs$6(b));};function computedEager(fn,options){var _a;var result=shallowRef();watchEffect(function(){result.value=fn();},__spreadProps$6(__spreadValues$9({},options),{flush:(_a=options==null?void 0:options.flush)!=null?_a:"sync"}));return readonly(result);}var _a;var isClient=typeof window!=="undefined";var isBoolean$1=function isBoolean$1(val){return typeof val==="boolean";};var isNumber$1=function isNumber$1(val){return typeof val==="number";};var isString$1=function isString$1(val){return typeof val==="string";};var noop$1=function noop$1(){};isClient&&((_a=window==null?void 0:window.navigator)==null?void 0:_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function createFilterWrapper(filter,fn){function wrapper(){var _this5=this;for(var _len10=arguments.length,args=new Array(_len10),_key17=0;_key17<_len10;_key17++){args[_key17]=arguments[_key17];}filter(function(){return fn.apply(_this5,args);},{fn:fn,thisArg:this,args:args});}return wrapper;}function debounceFilter(ms){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var timer;var maxTimer;var filter=function filter(invoke){var duration=unref(ms);var maxDuration=unref(options.maxWait);if(timer)clearTimeout(timer);if(duration<=0||maxDuration!==void 0&&maxDuration<=0){if(maxTimer){clearTimeout(maxTimer);maxTimer=null;}return invoke();}if(maxDuration&&!maxTimer){maxTimer=setTimeout(function(){if(timer)clearTimeout(timer);maxTimer=null;invoke();},maxDuration);}timer=setTimeout(function(){if(maxTimer)clearTimeout(maxTimer);maxTimer=null;invoke();},duration);};return filter;}function throttleFilter(ms){var trailing=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var leading=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var lastExec=0;var timer;var isLeading=true;var clear=function clear(){if(timer){clearTimeout(timer);timer=void 0;}};var filter=function filter(invoke){var duration=unref(ms);var elapsed=Date.now()-lastExec;clear();if(duration<=0){lastExec=Date.now();return invoke();}if(elapsed>duration&&(leading||!isLeading)){lastExec=Date.now();invoke();}else if(trailing){timer=setTimeout(function(){lastExec=Date.now();isLeading=true;clear();invoke();},duration);}if(!leading&&!timer)timer=setTimeout(function(){return isLeading=true;},duration);isLeading=false;};return filter;}function tryOnScopeDispose(fn){if(getCurrentScope()){onScopeDispose(fn);return true;}return false;}function useDebounceFn(fn){var ms=arguments.length>1&&arguments[1]!==undefined?arguments[1]:200;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return createFilterWrapper(debounceFilter(ms,options),fn);}function refDebounced(value){var ms=arguments.length>1&&arguments[1]!==undefined?arguments[1]:200;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(ms<=0)return value;var debounced=ref(value.value);var updater=useDebounceFn(function(){debounced.value=value.value;},ms,options);watch(value,function(){return updater();});return debounced;}function useThrottleFn(fn){var ms=arguments.length>1&&arguments[1]!==undefined?arguments[1]:200;var trailing=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var leading=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;return createFilterWrapper(throttleFilter(ms,trailing,leading),fn);}function useTimeoutFn(cb,interval){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _options$immediate=options.immediate,immediate=_options$immediate===void 0?true:_options$immediate;var isPending=ref(false);var timer=null;function clear(){if(timer){clearTimeout(timer);timer=null;}}function stop(){isPending.value=false;clear();}function start(){for(var _len11=arguments.length,args=new Array(_len11),_key18=0;_key18<_len11;_key18++){args[_key18]=arguments[_key18];}clear();isPending.value=true;timer=setTimeout(function(){isPending.value=false;timer=null;cb.apply(void 0,args);},unref(interval));}if(immediate){isPending.value=true;if(isClient)start();}tryOnScopeDispose(stop);return{isPending:isPending,start:start,stop:stop};}function unrefElement(elRef){var _a;var plain=unref(elRef);return(_a=plain==null?void 0:plain.$el)!=null?_a:plain;}var defaultWindow=isClient?window:void 0;var defaultDocument=isClient?window.document:void 0;function useEventListener(){var target;var event;var listener;var options;for(var _len12=arguments.length,args=new Array(_len12),_key19=0;_key19<_len12;_key19++){args[_key19]=arguments[_key19];}if(isString$1(args[0])){event=args[0];listener=args[1];options=args[2];target=defaultWindow;}else{target=args[0];event=args[1];listener=args[2];options=args[3];}if(!target)return noop$1;var _cleanup=noop$1;var stopWatch=watch(function(){return unrefElement(target);},function(el){_cleanup();if(!el)return;el.addEventListener(event,listener,options);_cleanup=function cleanup(){el.removeEventListener(event,listener,options);_cleanup=noop$1;};},{immediate:true,flush:"post"});var stop=function stop(){stopWatch();_cleanup();};tryOnScopeDispose(stop);return stop;}function onClickOutside(target,handler){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _options$window=options.window,window=_options$window===void 0?defaultWindow:_options$window,ignore=options.ignore,_options$capture=options.capture,capture=_options$capture===void 0?true:_options$capture;if(!window)return;var shouldListen=ref(true);var fallback;var listener=function listener(event){window.clearTimeout(fallback);var el=unrefElement(target);var composedPath=event.composedPath();if(!el||el===event.target||composedPath.includes(el)||!shouldListen.value)return;if(ignore&&ignore.length>0){if(ignore.some(function(target2){var el2=unrefElement(target2);return el2&&(event.target===el2||composedPath.includes(el2));}))return;}handler(event);};var cleanup=[useEventListener(window,"click",listener,{passive:true,capture:capture}),useEventListener(window,"pointerdown",function(e){var el=unrefElement(target);shouldListen.value=!!el&&!e.composedPath().includes(el);},{passive:true}),useEventListener(window,"pointerup",function(e){if(e.button===0){var path=e.composedPath();e.composedPath=function(){return path;};fallback=window.setTimeout(function(){return listener(e);},50);}},{passive:true})];var stop=function stop(){return cleanup.forEach(function(fn){return fn();});};return stop;}var _global=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};_global[globalKey];function useDocumentVisibility(){var _ref42=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref42$document=_ref42.document,document=_ref42$document===void 0?defaultDocument:_ref42$document;if(!document)return ref("visible");var visibility=ref(document.visibilityState);useEventListener(document,"visibilitychange",function(){visibility.value=document.visibilityState;});return visibility;}var __getOwnPropSymbols$e=Object.getOwnPropertySymbols;var __hasOwnProp$e=Object.prototype.hasOwnProperty;var __propIsEnum$e=Object.prototype.propertyIsEnumerable;var __objRest$2=function __objRest$2(source,exclude){var target={};for(var prop in source){if(__hasOwnProp$e.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];}if(source!=null&&__getOwnPropSymbols$e){var _iterator4=_createForOfIteratorHelper(__getOwnPropSymbols$e(source)),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var prop=_step4.value;if(exclude.indexOf(prop)<0&&__propIsEnum$e.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}return target;};function useResizeObserver(target,callback){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _a=options,_a$window=_a.window,window=_a$window===void 0?defaultWindow:_a$window,observerOptions=__objRest$2(_a,["window"]);var observer;var isSupported=window&&"ResizeObserver"in window;var cleanup=function cleanup(){if(observer){observer.disconnect();observer=void 0;}};var stopWatch=watch(function(){return unrefElement(target);},function(el){cleanup();if(isSupported&&window&&el){observer=new ResizeObserver(callback);observer.observe(el,observerOptions);}},{immediate:true,flush:"post"});var stop=function stop(){cleanup();stopWatch();};tryOnScopeDispose(stop);return{isSupported:isSupported,stop:stop};}var SwipeDirection;(function(SwipeDirection2){SwipeDirection2["UP"]="UP";SwipeDirection2["RIGHT"]="RIGHT";SwipeDirection2["DOWN"]="DOWN";SwipeDirection2["LEFT"]="LEFT";SwipeDirection2["NONE"]="NONE";})(SwipeDirection||(SwipeDirection={}));function useWindowFocus(){var _ref43=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref43$window=_ref43.window,window=_ref43$window===void 0?defaultWindow:_ref43$window;if(!window)return ref(false);var focused=ref(window.document.hasFocus());useEventListener(window,"blur",function(){focused.value=false;});useEventListener(window,"focus",function(){focused.value=true;});return focused;}var isInContainer=function isInContainer(el,container){if(!isClient||!el||!container)return false;var elRect=el.getBoundingClientRect();var containerRect;if(container instanceof Element){containerRect=container.getBoundingClientRect();}else{containerRect={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0};}return elRect.top<containerRect.bottom&&elRect.bottom>containerRect.top&&elRect.right>containerRect.left&&elRect.left<containerRect.right;};var isUndefined=function isUndefined(val){return val===void 0;};var isEmpty$1=function isEmpty$1(val){return!val&&val!==0||isArray$7(val)&&val.length===0||isObject$2(val)&&!Object.keys(val).length;};var isElement$1=function isElement$1(e){if(typeof Element==="undefined")return false;return e instanceof Element;};var escapeStringRegexp=function escapeStringRegexp(){var string=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return string.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");};var keysOf=function keysOf(arr){return Object.keys(arr);};var entriesOf=function entriesOf(arr){return Object.entries(arr);};var getProp=function getProp(obj,path,defaultValue){return{get value(){return get(obj,path,defaultValue);},set value(val){set(obj,path,val);}};};var ElementPlusError=/*#__PURE__*/function(_Error3){_inherits2(ElementPlusError,_Error3);var _super3=_createSuper2(ElementPlusError);function ElementPlusError(m){var _this6;_classCallCheck2(this,ElementPlusError);_this6=_super3.call(this,m);_this6.name="ElementPlusError";return _this6;}return _createClass2(ElementPlusError);}(/*#__PURE__*/_wrapNativeSuper2(Error));function throwError(scope,m){throw new ElementPlusError("[".concat(scope,"] ").concat(m));}function debugWarn(scope,message){}var classNameToArray=function classNameToArray(){var cls=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return cls.split(" ").filter(function(item){return!!item.trim();});};var hasClass=function hasClass(el,cls){if(!el||!cls)return false;if(cls.includes(" "))throw new Error("className should not contain space.");return el.classList.contains(cls);};var addClass=function addClass(el,cls){var _el$classList;if(!el||!cls.trim())return;(_el$classList=el.classList).add.apply(_el$classList,_toConsumableArray2(classNameToArray(cls)));};var removeClass=function removeClass(el,cls){var _el$classList2;if(!el||!cls.trim())return;(_el$classList2=el.classList).remove.apply(_el$classList2,_toConsumableArray2(classNameToArray(cls)));};var getStyle=function getStyle(element,styleName){var _a;if(!isClient||!element||!styleName)return"";var key=camelize(styleName);if(key==="float")key="cssFloat";try{var style=element.style[key];if(style)return style;var _computed=(_a=document.defaultView)==null?void 0:_a.getComputedStyle(element,"");return _computed?_computed[key]:"";}catch(e){return element.style[key];}};function addUnit(value){var defaultUnit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"px";if(!value)return"";if(isString$2(value)){return value;}else if(isNumber$1(value)){return"".concat(value).concat(defaultUnit);}}var isScroll=function isScroll(el,isVertical){if(!isClient)return false;var key={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(isVertical)];var overflow=getStyle(el,key);return["scroll","auto","overlay"].some(function(s){return overflow.includes(s);});};var getScrollContainer=function getScrollContainer(el,isVertical){if(!isClient)return;var parent=el;while(parent){if([window,document,document.documentElement].includes(parent))return window;if(isScroll(parent,isVertical))return parent;parent=parent.parentNode;}return parent;};var scrollBarWidth;var getScrollBarWidth=function getScrollBarWidth(){var _a;if(!isClient)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;var outer=document.createElement("div");outer.className="el-scrollbar__wrap";outer.style.visibility="hidden";outer.style.width="100px";outer.style.position="absolute";outer.style.top="-9999px";document.body.appendChild(outer);var widthNoScroll=outer.offsetWidth;outer.style.overflow="scroll";var inner=document.createElement("div");inner.style.width="100%";outer.appendChild(inner);var widthWithScroll=inner.offsetWidth;(_a=outer.parentNode)==null?void 0:_a.removeChild(outer);scrollBarWidth=widthNoScroll-widthWithScroll;return scrollBarWidth;};function scrollIntoView(container,selected){if(!isClient)return;if(!selected){container.scrollTop=0;return;}var offsetParents=[];var pointer=selected.offsetParent;while(pointer!==null&&container!==pointer&&container.contains(pointer)){offsetParents.push(pointer);pointer=pointer.offsetParent;}var top=selected.offsetTop+offsetParents.reduce(function(prev,curr){return prev+curr.offsetTop;},0);var bottom=top+selected.offsetHeight;var viewRectTop=container.scrollTop;var viewRectBottom=viewRectTop+container.clientHeight;if(top<viewRectTop){container.scrollTop=top;}else if(bottom>viewRectBottom){container.scrollTop=bottom-container.clientHeight;}}/*! Element Plus Icons Vue v2.0.6 */ // unplugin-vue:/plugin-vue/export-helper
  2422. var export_helper_default=function export_helper_default(sfc,props){var target=sfc.__vccOpts||sfc;var _iterator5=_createForOfIteratorHelper(props),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),key=_step5$value[0],val=_step5$value[1];target[key]=val;}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}return target;};// src/components/add-location.vue
  2423. var _sfc_main$1b={name:"AddLocation"},_hoisted_1$E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$o=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3$e=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_4$7=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"},null,-1),_hoisted_5$4=[_hoisted_2$o,_hoisted_3$e,_hoisted_4$7];function _sfc_render$l(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1$E,_hoisted_5$4);}var add_location_default=/* @__PURE__ */export_helper_default(_sfc_main$1b,[["render",_sfc_render$l],["__file","add-location.vue"]]);var _sfc_main2={name:"Aim"},_hoisted_12={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_22=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_32=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),_hoisted_42=[_hoisted_22,_hoisted_32];function _sfc_render2(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_12,_hoisted_42);}var aim_default=/* @__PURE__ */export_helper_default(_sfc_main2,[["render",_sfc_render2],["__file","aim.vue"]]);var _sfc_main3={name:"AlarmClock"},_hoisted_13={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_23=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),_hoisted_33=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),_hoisted_43=[_hoisted_23,_hoisted_33];function _sfc_render3(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_13,_hoisted_43);}var alarm_clock_default=/* @__PURE__ */export_helper_default(_sfc_main3,[["render",_sfc_render3],["__file","alarm-clock.vue"]]);var _sfc_main4={name:"Apple"},_hoisted_14={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_24=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),_hoisted_34=[_hoisted_24];function _sfc_render4(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_14,_hoisted_34);}var apple_default=/* @__PURE__ */export_helper_default(_sfc_main4,[["render",_sfc_render4],["__file","apple.vue"]]);var _sfc_main5={name:"ArrowDownBold"},_hoisted_15={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_25=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),_hoisted_35=[_hoisted_25];function _sfc_render5(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_15,_hoisted_35);}var arrow_down_bold_default=/* @__PURE__ */export_helper_default(_sfc_main5,[["render",_sfc_render5],["__file","arrow-down-bold.vue"]]);var _sfc_main6={name:"ArrowDown"},_hoisted_16={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_26=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_36=[_hoisted_26];function _sfc_render6(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_16,_hoisted_36);}var arrow_down_default=exports('aB',/* @__PURE__ */export_helper_default(_sfc_main6,[["render",_sfc_render6],["__file","arrow-down.vue"]]));var _sfc_main7={name:"ArrowLeftBold"},_hoisted_17={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_27=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),_hoisted_37=[_hoisted_27];function _sfc_render7(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_17,_hoisted_37);}var arrow_left_bold_default=/* @__PURE__ */export_helper_default(_sfc_main7,[["render",_sfc_render7],["__file","arrow-left-bold.vue"]]);var _sfc_main8={name:"ArrowLeft"},_hoisted_18={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_28=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_18,_hoisted_38);}var arrow_left_default=/* @__PURE__ */export_helper_default(_sfc_main8,[["render",_sfc_render8],["__file","arrow-left.vue"]]);var _sfc_main9={name:"ArrowRightBold"},_hoisted_19={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_29=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1),_hoisted_39=[_hoisted_29];function _sfc_render9(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_19,_hoisted_39);}var arrow_right_bold_default=/* @__PURE__ */export_helper_default(_sfc_main9,[["render",_sfc_render9],["__file","arrow-right-bold.vue"]]);var _sfc_main10={name:"ArrowRight"},_hoisted_110={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_210=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_310=[_hoisted_210];function _sfc_render10(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_110,_hoisted_310);}var arrow_right_default=exports('aA',/* @__PURE__ */export_helper_default(_sfc_main10,[["render",_sfc_render10],["__file","arrow-right.vue"]]));var _sfc_main11={name:"ArrowUpBold"},_hoisted_111={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_211=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1),_hoisted_311=[_hoisted_211];function _sfc_render11(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_111,_hoisted_311);}var arrow_up_bold_default=/* @__PURE__ */export_helper_default(_sfc_main11,[["render",_sfc_render11],["__file","arrow-up-bold.vue"]]);var _sfc_main12={name:"ArrowUp"},_hoisted_112={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_212=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_312=[_hoisted_212];function _sfc_render12(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_112,_hoisted_312);}var arrow_up_default=/* @__PURE__ */export_helper_default(_sfc_main12,[["render",_sfc_render12],["__file","arrow-up.vue"]]);var _sfc_main13={name:"Avatar"},_hoisted_113={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_213=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),_hoisted_313=[_hoisted_213];function _sfc_render13(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_113,_hoisted_313);}var avatar_default=/* @__PURE__ */export_helper_default(_sfc_main13,[["render",_sfc_render13],["__file","avatar.vue"]]);var _sfc_main14={name:"Back"},_hoisted_114={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_214=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_314=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),_hoisted_44=[_hoisted_214,_hoisted_314];function _sfc_render14(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_114,_hoisted_44);}var back_default=/* @__PURE__ */export_helper_default(_sfc_main14,[["render",_sfc_render14],["__file","back.vue"]]);var _sfc_main15={name:"Baseball"},_hoisted_115={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_215=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"},null,-1),_hoisted_315=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"},null,-1),_hoisted_45=[_hoisted_215,_hoisted_315];function _sfc_render15(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_115,_hoisted_45);}var baseball_default=/* @__PURE__ */export_helper_default(_sfc_main15,[["render",_sfc_render15],["__file","baseball.vue"]]);var _sfc_main16={name:"Basketball"},_hoisted_116={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_216=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"},null,-1),_hoisted_316=[_hoisted_216];function _sfc_render16(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_116,_hoisted_316);}var basketball_default=/* @__PURE__ */export_helper_default(_sfc_main16,[["render",_sfc_render16],["__file","basketball.vue"]]);var _sfc_main17={name:"BellFilled"},_hoisted_117={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_217=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"},null,-1),_hoisted_317=[_hoisted_217];function _sfc_render17(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_117,_hoisted_317);}var bell_filled_default=/* @__PURE__ */export_helper_default(_sfc_main17,[["render",_sfc_render17],["__file","bell-filled.vue"]]);var _sfc_main18={name:"Bell"},_hoisted_118={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_218=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"},null,-1),_hoisted_318=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"},null,-1),_hoisted_46=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"},null,-1),_hoisted_52=[_hoisted_218,_hoisted_318,_hoisted_46];function _sfc_render18(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_118,_hoisted_52);}var bell_default=/* @__PURE__ */export_helper_default(_sfc_main18,[["render",_sfc_render18],["__file","bell.vue"]]);var _sfc_main19={name:"Bicycle"},_hoisted_119={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_219=/* @__PURE__ */createStaticVNode('<path fill="currentColor" d="M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"></path><path fill="currentColor" d="M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z"></path><path fill="currentColor" d="m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"></path>',5),_hoisted_7=[_hoisted_219];function _sfc_render19(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_119,_hoisted_7);}var bicycle_default=/* @__PURE__ */export_helper_default(_sfc_main19,[["render",_sfc_render19],["__file","bicycle.vue"]]);var _sfc_main20={name:"BottomLeft"},_hoisted_120={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_220=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"},null,-1),_hoisted_319=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"},null,-1),_hoisted_47=[_hoisted_220,_hoisted_319];function _sfc_render20(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_120,_hoisted_47);}var bottom_left_default=/* @__PURE__ */export_helper_default(_sfc_main20,[["render",_sfc_render20],["__file","bottom-left.vue"]]);var _sfc_main21={name:"BottomRight"},_hoisted_121={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_221=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"},null,-1),_hoisted_320=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"},null,-1),_hoisted_48=[_hoisted_221,_hoisted_320];function _sfc_render21(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_121,_hoisted_48);}var bottom_right_default=/* @__PURE__ */export_helper_default(_sfc_main21,[["render",_sfc_render21],["__file","bottom-right.vue"]]);var _sfc_main22={name:"Bottom"},_hoisted_122={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_222=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1),_hoisted_321=[_hoisted_222];function _sfc_render22(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_122,_hoisted_321);}var bottom_default=/* @__PURE__ */export_helper_default(_sfc_main22,[["render",_sfc_render22],["__file","bottom.vue"]]);var _sfc_main23={name:"Bowl"},_hoisted_123={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_223=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"},null,-1),_hoisted_322=[_hoisted_223];function _sfc_render23(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_123,_hoisted_322);}var bowl_default=/* @__PURE__ */export_helper_default(_sfc_main23,[["render",_sfc_render23],["__file","bowl.vue"]]);var _sfc_main24={name:"Box"},_hoisted_124={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_224=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"},null,-1),_hoisted_323=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64z"},null,-1),_hoisted_49=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"},null,-1),_hoisted_53=[_hoisted_224,_hoisted_323,_hoisted_49];function _sfc_render24(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_124,_hoisted_53);}var box_default=/* @__PURE__ */export_helper_default(_sfc_main24,[["render",_sfc_render24],["__file","box.vue"]]);var _sfc_main25={name:"Briefcase"},_hoisted_125={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_225=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"},null,-1),_hoisted_324=[_hoisted_225];function _sfc_render25(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_125,_hoisted_324);}var briefcase_default=/* @__PURE__ */export_helper_default(_sfc_main25,[["render",_sfc_render25],["__file","briefcase.vue"]]);var _sfc_main26={name:"BrushFilled"},_hoisted_126={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_226=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"},null,-1),_hoisted_325=[_hoisted_226];function _sfc_render26(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_126,_hoisted_325);}var brush_filled_default=/* @__PURE__ */export_helper_default(_sfc_main26,[["render",_sfc_render26],["__file","brush-filled.vue"]]);var _sfc_main27={name:"Brush"},_hoisted_127={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_227=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"},null,-1),_hoisted_326=[_hoisted_227];function _sfc_render27(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_127,_hoisted_326);}var brush_default=/* @__PURE__ */export_helper_default(_sfc_main27,[["render",_sfc_render27],["__file","brush.vue"]]);var _sfc_main28={name:"Burger"},_hoisted_128={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_228=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"},null,-1),_hoisted_327=[_hoisted_228];function _sfc_render28(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_128,_hoisted_327);}var burger_default=/* @__PURE__ */export_helper_default(_sfc_main28,[["render",_sfc_render28],["__file","burger.vue"]]);var _sfc_main29={name:"Calendar"},_hoisted_129={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_229=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_328=[_hoisted_229];function _sfc_render29(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_129,_hoisted_328);}var calendar_default=/* @__PURE__ */export_helper_default(_sfc_main29,[["render",_sfc_render29],["__file","calendar.vue"]]);var _sfc_main30={name:"CameraFilled"},_hoisted_130={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_230=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),_hoisted_329=[_hoisted_230];function _sfc_render30(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_130,_hoisted_329);}var camera_filled_default=/* @__PURE__ */export_helper_default(_sfc_main30,[["render",_sfc_render30],["__file","camera-filled.vue"]]);var _sfc_main31={name:"Camera"},_hoisted_131={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_231=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1),_hoisted_330=[_hoisted_231];function _sfc_render31(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_131,_hoisted_330);}var camera_default=/* @__PURE__ */export_helper_default(_sfc_main31,[["render",_sfc_render31],["__file","camera.vue"]]);var _sfc_main32={name:"CaretBottom"},_hoisted_132={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_232=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),_hoisted_331=[_hoisted_232];function _sfc_render32(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_132,_hoisted_331);}var caret_bottom_default=/* @__PURE__ */export_helper_default(_sfc_main32,[["render",_sfc_render32],["__file","caret-bottom.vue"]]);var _sfc_main33={name:"CaretLeft"},_hoisted_133={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_233=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"},null,-1),_hoisted_332=[_hoisted_233];function _sfc_render33(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_133,_hoisted_332);}var caret_left_default=/* @__PURE__ */export_helper_default(_sfc_main33,[["render",_sfc_render33],["__file","caret-left.vue"]]);var _sfc_main34={name:"CaretRight"},_hoisted_134={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_234=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_333=[_hoisted_234];function _sfc_render34(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_134,_hoisted_333);}var caret_right_default=/* @__PURE__ */export_helper_default(_sfc_main34,[["render",_sfc_render34],["__file","caret-right.vue"]]);var _sfc_main35={name:"CaretTop"},_hoisted_135={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_235=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_334=[_hoisted_235];function _sfc_render35(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_135,_hoisted_334);}var caret_top_default=/* @__PURE__ */export_helper_default(_sfc_main35,[["render",_sfc_render35],["__file","caret-top.vue"]]);var _sfc_main36={name:"Cellphone"},_hoisted_136={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_236=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),_hoisted_335=[_hoisted_236];function _sfc_render36(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_136,_hoisted_335);}var cellphone_default=/* @__PURE__ */export_helper_default(_sfc_main36,[["render",_sfc_render36],["__file","cellphone.vue"]]);var _sfc_main37={name:"ChatDotRound"},_hoisted_137={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_237=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),_hoisted_336=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),_hoisted_410=[_hoisted_237,_hoisted_336];function _sfc_render37(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_137,_hoisted_410);}var chat_dot_round_default=/* @__PURE__ */export_helper_default(_sfc_main37,[["render",_sfc_render37],["__file","chat-dot-round.vue"]]);var _sfc_main38={name:"ChatDotSquare"},_hoisted_138={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_238=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),_hoisted_337=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),_hoisted_411=[_hoisted_238,_hoisted_337];function _sfc_render38(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_138,_hoisted_411);}var chat_dot_square_default=/* @__PURE__ */export_helper_default(_sfc_main38,[["render",_sfc_render38],["__file","chat-dot-square.vue"]]);var _sfc_main39={name:"ChatLineRound"},_hoisted_139={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_239=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),_hoisted_338=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),_hoisted_412=[_hoisted_239,_hoisted_338];function _sfc_render39(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_139,_hoisted_412);}var chat_line_round_default=/* @__PURE__ */export_helper_default(_sfc_main39,[["render",_sfc_render39],["__file","chat-line-round.vue"]]);var _sfc_main40={name:"ChatLineSquare"},_hoisted_140={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_240=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),_hoisted_339=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),_hoisted_413=[_hoisted_240,_hoisted_339];function _sfc_render40(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_140,_hoisted_413);}var chat_line_square_default=/* @__PURE__ */export_helper_default(_sfc_main40,[["render",_sfc_render40],["__file","chat-line-square.vue"]]);var _sfc_main41={name:"ChatRound"},_hoisted_141={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_241=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"},null,-1),_hoisted_340=[_hoisted_241];function _sfc_render41(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_141,_hoisted_340);}var chat_round_default=/* @__PURE__ */export_helper_default(_sfc_main41,[["render",_sfc_render41],["__file","chat-round.vue"]]);var _sfc_main42={name:"ChatSquare"},_hoisted_142={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_242=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),_hoisted_341=[_hoisted_242];function _sfc_render42(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_142,_hoisted_341);}var chat_square_default=/* @__PURE__ */export_helper_default(_sfc_main42,[["render",_sfc_render42],["__file","chat-square.vue"]]);var _sfc_main43={name:"Check"},_hoisted_143={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_243=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_hoisted_342=[_hoisted_243];function _sfc_render43(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_143,_hoisted_342);}var check_default=/* @__PURE__ */export_helper_default(_sfc_main43,[["render",_sfc_render43],["__file","check.vue"]]);var _sfc_main44={name:"Checked"},_hoisted_144={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_244=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"},null,-1),_hoisted_343=[_hoisted_244];function _sfc_render44(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_144,_hoisted_343);}var checked_default=/* @__PURE__ */export_helper_default(_sfc_main44,[["render",_sfc_render44],["__file","checked.vue"]]);var _sfc_main45={name:"Cherry"},_hoisted_145={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_245=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"},null,-1),_hoisted_344=[_hoisted_245];function _sfc_render45(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_145,_hoisted_344);}var cherry_default=/* @__PURE__ */export_helper_default(_sfc_main45,[["render",_sfc_render45],["__file","cherry.vue"]]);var _sfc_main46={name:"Chicken"},_hoisted_146={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_246=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"},null,-1),_hoisted_345=[_hoisted_246];function _sfc_render46(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_146,_hoisted_345);}var chicken_default=/* @__PURE__ */export_helper_default(_sfc_main46,[["render",_sfc_render46],["__file","chicken.vue"]]);var _sfc_main47={name:"CircleCheckFilled"},_hoisted_147={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_247=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_346=[_hoisted_247];function _sfc_render47(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_147,_hoisted_346);}var circle_check_filled_default=/* @__PURE__ */export_helper_default(_sfc_main47,[["render",_sfc_render47],["__file","circle-check-filled.vue"]]);var _sfc_main48={name:"CircleCheck"},_hoisted_148={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_248=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_347=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),_hoisted_414=[_hoisted_248,_hoisted_347];function _sfc_render48(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_148,_hoisted_414);}var circle_check_default=exports('B',/* @__PURE__ */export_helper_default(_sfc_main48,[["render",_sfc_render48],["__file","circle-check.vue"]]));var _sfc_main49={name:"CircleCloseFilled"},_hoisted_149={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_249=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_348=[_hoisted_249];function _sfc_render49(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_149,_hoisted_348);}var circle_close_filled_default=/* @__PURE__ */export_helper_default(_sfc_main49,[["render",_sfc_render49],["__file","circle-close-filled.vue"]]);var _sfc_main50={name:"CircleClose"},_hoisted_150={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_250=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),_hoisted_349=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_415=[_hoisted_250,_hoisted_349];function _sfc_render50(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_150,_hoisted_415);}var circle_close_default=/* @__PURE__ */export_helper_default(_sfc_main50,[["render",_sfc_render50],["__file","circle-close.vue"]]);var _sfc_main51={name:"CirclePlusFilled"},_hoisted_151={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_251=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"},null,-1),_hoisted_350=[_hoisted_251];function _sfc_render51(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_151,_hoisted_350);}var circle_plus_filled_default=/* @__PURE__ */export_helper_default(_sfc_main51,[["render",_sfc_render51],["__file","circle-plus-filled.vue"]]);var _sfc_main52={name:"CirclePlus"},_hoisted_152={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_252=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_351=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),_hoisted_416=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_54=[_hoisted_252,_hoisted_351,_hoisted_416];function _sfc_render52(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_152,_hoisted_54);}var circle_plus_default=/* @__PURE__ */export_helper_default(_sfc_main52,[["render",_sfc_render52],["__file","circle-plus.vue"]]);var _sfc_main53={name:"Clock"},_hoisted_153={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_253=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_352=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_417=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_55=[_hoisted_253,_hoisted_352,_hoisted_417];function _sfc_render53(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_153,_hoisted_55);}var clock_default=/* @__PURE__ */export_helper_default(_sfc_main53,[["render",_sfc_render53],["__file","clock.vue"]]);var _sfc_main54={name:"CloseBold"},_hoisted_154={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_254=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1),_hoisted_353=[_hoisted_254];function _sfc_render54(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_154,_hoisted_353);}var close_bold_default=exports('G',/* @__PURE__ */export_helper_default(_sfc_main54,[["render",_sfc_render54],["__file","close-bold.vue"]]));var _sfc_main55={name:"Close"},_hoisted_155={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_255=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_354=[_hoisted_255];function _sfc_render55(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_155,_hoisted_354);}var close_default=exports('p',/* @__PURE__ */export_helper_default(_sfc_main55,[["render",_sfc_render55],["__file","close.vue"]]));var _sfc_main56={name:"Cloudy"},_hoisted_156={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_256=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_156,_hoisted_355);}var cloudy_default=/* @__PURE__ */export_helper_default(_sfc_main56,[["render",_sfc_render56],["__file","cloudy.vue"]]);var _sfc_main57={name:"CoffeeCup"},_hoisted_157={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_257=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),_hoisted_356=[_hoisted_257];function _sfc_render57(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_157,_hoisted_356);}var coffee_cup_default=/* @__PURE__ */export_helper_default(_sfc_main57,[["render",_sfc_render57],["__file","coffee-cup.vue"]]);var _sfc_main58={name:"Coffee"},_hoisted_158={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_258=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1),_hoisted_357=[_hoisted_258];function _sfc_render58(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_158,_hoisted_357);}var coffee_default=/* @__PURE__ */export_helper_default(_sfc_main58,[["render",_sfc_render58],["__file","coffee.vue"]]);var _sfc_main59={name:"Coin"},_hoisted_159={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_259=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),_hoisted_358=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),_hoisted_418=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),_hoisted_56=[_hoisted_259,_hoisted_358,_hoisted_418];function _sfc_render59(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_159,_hoisted_56);}var coin_default=/* @__PURE__ */export_helper_default(_sfc_main59,[["render",_sfc_render59],["__file","coin.vue"]]);var _sfc_main60={name:"ColdDrink"},_hoisted_160={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_260=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"},null,-1),_hoisted_359=[_hoisted_260];function _sfc_render60(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_160,_hoisted_359);}var cold_drink_default=/* @__PURE__ */export_helper_default(_sfc_main60,[["render",_sfc_render60],["__file","cold-drink.vue"]]);var _sfc_main61={name:"CollectionTag"},_hoisted_161={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_261=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_360=[_hoisted_261];function _sfc_render61(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_161,_hoisted_360);}var collection_tag_default=/* @__PURE__ */export_helper_default(_sfc_main61,[["render",_sfc_render61],["__file","collection-tag.vue"]]);var _sfc_main62={name:"Collection"},_hoisted_162={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_262=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),_hoisted_361=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),_hoisted_419=[_hoisted_262,_hoisted_361];function _sfc_render62(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_162,_hoisted_419);}var collection_default=/* @__PURE__ */export_helper_default(_sfc_main62,[["render",_sfc_render62],["__file","collection.vue"]]);var _sfc_main63={name:"Comment"},_hoisted_163={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_263=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1),_hoisted_362=[_hoisted_263];function _sfc_render63(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_163,_hoisted_362);}var comment_default=/* @__PURE__ */export_helper_default(_sfc_main63,[["render",_sfc_render63],["__file","comment.vue"]]);var _sfc_main64={name:"Compass"},_hoisted_164={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_264=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_363=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"},null,-1),_hoisted_420=[_hoisted_264,_hoisted_363];function _sfc_render64(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_164,_hoisted_420);}var compass_default=/* @__PURE__ */export_helper_default(_sfc_main64,[["render",_sfc_render64],["__file","compass.vue"]]);var _sfc_main65={name:"Connection"},_hoisted_165={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_265=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"},null,-1),_hoisted_364=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"},null,-1),_hoisted_421=[_hoisted_265,_hoisted_364];function _sfc_render65(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_165,_hoisted_421);}var connection_default=/* @__PURE__ */export_helper_default(_sfc_main65,[["render",_sfc_render65],["__file","connection.vue"]]);var _sfc_main66={name:"Coordinate"},_hoisted_166={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_266=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 512h64v320h-64z"},null,-1),_hoisted_365=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),_hoisted_422=[_hoisted_266,_hoisted_365];function _sfc_render66(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_166,_hoisted_422);}var coordinate_default=/* @__PURE__ */export_helper_default(_sfc_main66,[["render",_sfc_render66],["__file","coordinate.vue"]]);var _sfc_main67={name:"CopyDocument"},_hoisted_167={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_267=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),_hoisted_366=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),_hoisted_423=[_hoisted_267,_hoisted_366];function _sfc_render67(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_167,_hoisted_423);}var copy_document_default=/* @__PURE__ */export_helper_default(_sfc_main67,[["render",_sfc_render67],["__file","copy-document.vue"]]);var _sfc_main68={name:"Cpu"},_hoisted_168={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_268=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"},null,-1),_hoisted_367=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"},null,-1),_hoisted_424=[_hoisted_268,_hoisted_367];function _sfc_render68(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_168,_hoisted_424);}var cpu_default=/* @__PURE__ */export_helper_default(_sfc_main68,[["render",_sfc_render68],["__file","cpu.vue"]]);var _sfc_main69={name:"CreditCard"},_hoisted_169={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_269=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"},null,-1),_hoisted_368=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"},null,-1),_hoisted_425=[_hoisted_269,_hoisted_368];function _sfc_render69(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_169,_hoisted_425);}var credit_card_default=/* @__PURE__ */export_helper_default(_sfc_main69,[["render",_sfc_render69],["__file","credit-card.vue"]]);var _sfc_main70={name:"Crop"},_hoisted_170={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_270=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"},null,-1),_hoisted_369=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"},null,-1),_hoisted_426=[_hoisted_270,_hoisted_369];function _sfc_render70(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_170,_hoisted_426);}var crop_default=/* @__PURE__ */export_helper_default(_sfc_main70,[["render",_sfc_render70],["__file","crop.vue"]]);var _sfc_main71={name:"DArrowLeft"},_hoisted_171={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_271=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),_hoisted_370=[_hoisted_271];function _sfc_render71(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_171,_hoisted_370);}var d_arrow_left_default=/* @__PURE__ */export_helper_default(_sfc_main71,[["render",_sfc_render71],["__file","d-arrow-left.vue"]]);var _sfc_main72={name:"DArrowRight"},_hoisted_172={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_272=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_371=[_hoisted_272];function _sfc_render72(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_172,_hoisted_371);}var d_arrow_right_default=/* @__PURE__ */export_helper_default(_sfc_main72,[["render",_sfc_render72],["__file","d-arrow-right.vue"]]);var _sfc_main73={name:"DCaret"},_hoisted_173={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_273=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z"},null,-1),_hoisted_372=[_hoisted_273];function _sfc_render73(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_173,_hoisted_372);}var d_caret_default=/* @__PURE__ */export_helper_default(_sfc_main73,[["render",_sfc_render73],["__file","d-caret.vue"]]);var _sfc_main74={name:"DataAnalysis"},_hoisted_174={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_274=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"},null,-1),_hoisted_373=[_hoisted_274];function _sfc_render74(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_174,_hoisted_373);}var data_analysis_default=/* @__PURE__ */export_helper_default(_sfc_main74,[["render",_sfc_render74],["__file","data-analysis.vue"]]);var _sfc_main75={name:"DataBoard"},_hoisted_175={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_275=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M32 128h960v64H32z"},null,-1),_hoisted_374=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"},null,-1),_hoisted_427=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"},null,-1),_hoisted_57=[_hoisted_275,_hoisted_374,_hoisted_427];function _sfc_render75(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_175,_hoisted_57);}var data_board_default=/* @__PURE__ */export_helper_default(_sfc_main75,[["render",_sfc_render75],["__file","data-board.vue"]]);var _sfc_main76={name:"DataLine"},_hoisted_176={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_276=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"},null,-1),_hoisted_375=[_hoisted_276];function _sfc_render76(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_176,_hoisted_375);}var data_line_default=/* @__PURE__ */export_helper_default(_sfc_main76,[["render",_sfc_render76],["__file","data-line.vue"]]);var _sfc_main77={name:"DeleteFilled"},_hoisted_177={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_277=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1),_hoisted_376=[_hoisted_277];function _sfc_render77(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_177,_hoisted_376);}var delete_filled_default=/* @__PURE__ */export_helper_default(_sfc_main77,[["render",_sfc_render77],["__file","delete-filled.vue"]]);var _sfc_main78={name:"DeleteLocation"},_hoisted_178={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_278=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_377=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_428=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),_hoisted_58=[_hoisted_278,_hoisted_377,_hoisted_428];function _sfc_render78(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_178,_hoisted_58);}var delete_location_default=/* @__PURE__ */export_helper_default(_sfc_main78,[["render",_sfc_render78],["__file","delete-location.vue"]]);var _sfc_main79={name:"Delete"},_hoisted_179={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_279=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_378=[_hoisted_279];function _sfc_render79(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_179,_hoisted_378);}var delete_default=/* @__PURE__ */export_helper_default(_sfc_main79,[["render",_sfc_render79],["__file","delete.vue"]]);var _sfc_main80={name:"Dessert"},_hoisted_180={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_280=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_180,_hoisted_379);}var dessert_default=/* @__PURE__ */export_helper_default(_sfc_main80,[["render",_sfc_render80],["__file","dessert.vue"]]);var _sfc_main81={name:"Discount"},_hoisted_181={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_281=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),_hoisted_380=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_429=[_hoisted_281,_hoisted_380];function _sfc_render81(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_181,_hoisted_429);}var discount_default=/* @__PURE__ */export_helper_default(_sfc_main81,[["render",_sfc_render81],["__file","discount.vue"]]);var _sfc_main82={name:"DishDot"},_hoisted_182={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_282=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"},null,-1),_hoisted_381=[_hoisted_282];function _sfc_render82(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_182,_hoisted_381);}var dish_dot_default=/* @__PURE__ */export_helper_default(_sfc_main82,[["render",_sfc_render82],["__file","dish-dot.vue"]]);var _sfc_main83={name:"Dish"},_hoisted_183={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_283=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"},null,-1),_hoisted_382=[_hoisted_283];function _sfc_render83(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_183,_hoisted_382);}var dish_default=/* @__PURE__ */export_helper_default(_sfc_main83,[["render",_sfc_render83],["__file","dish.vue"]]);var _sfc_main84={name:"DocumentAdd"},_hoisted_184={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_284=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"},null,-1),_hoisted_383=[_hoisted_284];function _sfc_render84(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_184,_hoisted_383);}var document_add_default=/* @__PURE__ */export_helper_default(_sfc_main84,[["render",_sfc_render84],["__file","document-add.vue"]]);var _sfc_main85={name:"DocumentChecked"},_hoisted_185={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_285=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"},null,-1),_hoisted_384=[_hoisted_285];function _sfc_render85(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_185,_hoisted_384);}var document_checked_default=/* @__PURE__ */export_helper_default(_sfc_main85,[["render",_sfc_render85],["__file","document-checked.vue"]]);var _sfc_main86={name:"DocumentCopy"},_hoisted_186={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_286=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1),_hoisted_385=[_hoisted_286];function _sfc_render86(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_186,_hoisted_385);}var document_copy_default=/* @__PURE__ */export_helper_default(_sfc_main86,[["render",_sfc_render86],["__file","document-copy.vue"]]);var _sfc_main87={name:"DocumentDelete"},_hoisted_187={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_287=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"},null,-1),_hoisted_386=[_hoisted_287];function _sfc_render87(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_187,_hoisted_386);}var document_delete_default=/* @__PURE__ */export_helper_default(_sfc_main87,[["render",_sfc_render87],["__file","document-delete.vue"]]);var _sfc_main88={name:"DocumentRemove"},_hoisted_188={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_288=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"},null,-1),_hoisted_387=[_hoisted_288];function _sfc_render88(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_188,_hoisted_387);}var document_remove_default=/* @__PURE__ */export_helper_default(_sfc_main88,[["render",_sfc_render88],["__file","document-remove.vue"]]);var _sfc_main89={name:"Document"},_hoisted_189={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_289=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_388=[_hoisted_289];function _sfc_render89(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_189,_hoisted_388);}var document_default=exports('ai',/* @__PURE__ */export_helper_default(_sfc_main89,[["render",_sfc_render89],["__file","document.vue"]]));var _sfc_main90={name:"Download"},_hoisted_190={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_290=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),_hoisted_389=[_hoisted_290];function _sfc_render90(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_190,_hoisted_389);}var download_default=/* @__PURE__ */export_helper_default(_sfc_main90,[["render",_sfc_render90],["__file","download.vue"]]);var _sfc_main91={name:"Drizzling"},_hoisted_191={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_291=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"},null,-1),_hoisted_390=[_hoisted_291];function _sfc_render91(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_191,_hoisted_390);}var drizzling_default=/* @__PURE__ */export_helper_default(_sfc_main91,[["render",_sfc_render91],["__file","drizzling.vue"]]);var _sfc_main92={name:"EditPen"},_hoisted_192={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_292=/* @__PURE__ */createBaseVNode("path",{d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z",fill:"currentColor"},null,-1),_hoisted_391=[_hoisted_292];function _sfc_render92(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_192,_hoisted_391);}var edit_pen_default=/* @__PURE__ */export_helper_default(_sfc_main92,[["render",_sfc_render92],["__file","edit-pen.vue"]]);var _sfc_main93={name:"Edit"},_hoisted_193={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_293=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),_hoisted_392=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),_hoisted_430=[_hoisted_293,_hoisted_392];function _sfc_render93(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_193,_hoisted_430);}var edit_default=/* @__PURE__ */export_helper_default(_sfc_main93,[["render",_sfc_render93],["__file","edit.vue"]]);var _sfc_main94={name:"ElemeFilled"},_hoisted_194={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_294=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"},null,-1),_hoisted_393=[_hoisted_294];function _sfc_render94(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_194,_hoisted_393);}var eleme_filled_default=/* @__PURE__ */export_helper_default(_sfc_main94,[["render",_sfc_render94],["__file","eleme-filled.vue"]]);var _sfc_main95={name:"Eleme"},_hoisted_195={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_295=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"},null,-1),_hoisted_394=[_hoisted_295];function _sfc_render95(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_195,_hoisted_394);}var eleme_default=/* @__PURE__ */export_helper_default(_sfc_main95,[["render",_sfc_render95],["__file","eleme.vue"]]);var _sfc_main96={name:"ElementPlus"},_hoisted_196={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_296=/* @__PURE__ */createBaseVNode("path",{d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z",fill:"currentColor"},null,-1),_hoisted_395=[_hoisted_296];function _sfc_render96(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_196,_hoisted_395);}var element_plus_default=/* @__PURE__ */export_helper_default(_sfc_main96,[["render",_sfc_render96],["__file","element-plus.vue"]]);var _sfc_main97={name:"Expand"},_hoisted_197={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_297=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1),_hoisted_396=[_hoisted_297];function _sfc_render97(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_197,_hoisted_396);}var expand_default=/* @__PURE__ */export_helper_default(_sfc_main97,[["render",_sfc_render97],["__file","expand.vue"]]);var _sfc_main98={name:"Failed"},_hoisted_198={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_298=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"},null,-1),_hoisted_397=[_hoisted_298];function _sfc_render98(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_198,_hoisted_397);}var failed_default=/* @__PURE__ */export_helper_default(_sfc_main98,[["render",_sfc_render98],["__file","failed.vue"]]);var _sfc_main99={name:"Female"},_hoisted_199={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_299=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_hoisted_398=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"},null,-1),_hoisted_431=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),_hoisted_59=[_hoisted_299,_hoisted_398,_hoisted_431];function _sfc_render99(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_199,_hoisted_59);}var female_default=/* @__PURE__ */export_helper_default(_sfc_main99,[["render",_sfc_render99],["__file","female.vue"]]);var _sfc_main100={name:"Files"},_hoisted_1100={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2100=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1),_hoisted_399=[_hoisted_2100];function _sfc_render100(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1100,_hoisted_399);}var files_default=/* @__PURE__ */export_helper_default(_sfc_main100,[["render",_sfc_render100],["__file","files.vue"]]);var _sfc_main101={name:"Film"},_hoisted_1101={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2101=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),_hoisted_3100=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"},null,-1),_hoisted_432=[_hoisted_2101,_hoisted_3100];function _sfc_render101(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1101,_hoisted_432);}var film_default=/* @__PURE__ */export_helper_default(_sfc_main101,[["render",_sfc_render101],["__file","film.vue"]]);var _sfc_main102={name:"Filter"},_hoisted_1102={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2102=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"},null,-1),_hoisted_3101=[_hoisted_2102];function _sfc_render102(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1102,_hoisted_3101);}var filter_default=/* @__PURE__ */export_helper_default(_sfc_main102,[["render",_sfc_render102],["__file","filter.vue"]]);var _sfc_main103={name:"Finished"},_hoisted_1103={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2103=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1),_hoisted_3102=[_hoisted_2103];function _sfc_render103(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1103,_hoisted_3102);}var finished_default=/* @__PURE__ */export_helper_default(_sfc_main103,[["render",_sfc_render103],["__file","finished.vue"]]);var _sfc_main104={name:"FirstAidKit"},_hoisted_1104={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2104=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),_hoisted_3103=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_433=[_hoisted_2104,_hoisted_3103];function _sfc_render104(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1104,_hoisted_433);}var first_aid_kit_default=/* @__PURE__ */export_helper_default(_sfc_main104,[["render",_sfc_render104],["__file","first-aid-kit.vue"]]);var _sfc_main105={name:"Flag"},_hoisted_1105={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2105=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96v64z"},null,-1),_hoisted_3104=[_hoisted_2105];function _sfc_render105(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1105,_hoisted_3104);}var flag_default=/* @__PURE__ */export_helper_default(_sfc_main105,[["render",_sfc_render105],["__file","flag.vue"]]);var _sfc_main106={name:"Fold"},_hoisted_1106={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2106=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1),_hoisted_3105=[_hoisted_2106];function _sfc_render106(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1106,_hoisted_3105);}var fold_default=/* @__PURE__ */export_helper_default(_sfc_main106,[["render",_sfc_render106],["__file","fold.vue"]]);var _sfc_main107={name:"FolderAdd"},_hoisted_1107={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2107=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"},null,-1),_hoisted_3106=[_hoisted_2107];function _sfc_render107(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1107,_hoisted_3106);}var folder_add_default=/* @__PURE__ */export_helper_default(_sfc_main107,[["render",_sfc_render107],["__file","folder-add.vue"]]);var _sfc_main108={name:"FolderChecked"},_hoisted_1108={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2108=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"},null,-1),_hoisted_3107=[_hoisted_2108];function _sfc_render108(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1108,_hoisted_3107);}var folder_checked_default=/* @__PURE__ */export_helper_default(_sfc_main108,[["render",_sfc_render108],["__file","folder-checked.vue"]]);var _sfc_main109={name:"FolderDelete"},_hoisted_1109={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2109=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"},null,-1),_hoisted_3108=[_hoisted_2109];function _sfc_render109(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1109,_hoisted_3108);}var folder_delete_default=/* @__PURE__ */export_helper_default(_sfc_main109,[["render",_sfc_render109],["__file","folder-delete.vue"]]);var _sfc_main110={name:"FolderOpened"},_hoisted_1110={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2110=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),_hoisted_3109=[_hoisted_2110];function _sfc_render110(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1110,_hoisted_3109);}var folder_opened_default=/* @__PURE__ */export_helper_default(_sfc_main110,[["render",_sfc_render110],["__file","folder-opened.vue"]]);var _sfc_main111={name:"FolderRemove"},_hoisted_1111={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2111=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"},null,-1),_hoisted_3110=[_hoisted_2111];function _sfc_render111(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1111,_hoisted_3110);}var folder_remove_default=/* @__PURE__ */export_helper_default(_sfc_main111,[["render",_sfc_render111],["__file","folder-remove.vue"]]);var _sfc_main112={name:"Folder"},_hoisted_1112={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2112=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),_hoisted_3111=[_hoisted_2112];function _sfc_render112(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1112,_hoisted_3111);}var folder_default=/* @__PURE__ */export_helper_default(_sfc_main112,[["render",_sfc_render112],["__file","folder.vue"]]);var _sfc_main113={name:"Food"},_hoisted_1113={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2113=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"},null,-1),_hoisted_3112=[_hoisted_2113];function _sfc_render113(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1113,_hoisted_3112);}var food_default=/* @__PURE__ */export_helper_default(_sfc_main113,[["render",_sfc_render113],["__file","food.vue"]]);var _sfc_main114={name:"Football"},_hoisted_1114={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2114=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"},null,-1),_hoisted_3113=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"},null,-1),_hoisted_434=[_hoisted_2114,_hoisted_3113];function _sfc_render114(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1114,_hoisted_434);}var football_default=/* @__PURE__ */export_helper_default(_sfc_main114,[["render",_sfc_render114],["__file","football.vue"]]);var _sfc_main115={name:"ForkSpoon"},_hoisted_1115={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2115=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"},null,-1),_hoisted_3114=[_hoisted_2115];function _sfc_render115(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1115,_hoisted_3114);}var fork_spoon_default=/* @__PURE__ */export_helper_default(_sfc_main115,[["render",_sfc_render115],["__file","fork-spoon.vue"]]);var _sfc_main116={name:"Fries"},_hoisted_1116={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2116=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"},null,-1),_hoisted_3115=[_hoisted_2116];function _sfc_render116(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1116,_hoisted_3115);}var fries_default=/* @__PURE__ */export_helper_default(_sfc_main116,[["render",_sfc_render116],["__file","fries.vue"]]);var _sfc_main117={name:"FullScreen"},_hoisted_1117={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2117=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3116=[_hoisted_2117];function _sfc_render117(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1117,_hoisted_3116);}var full_screen_default=/* @__PURE__ */export_helper_default(_sfc_main117,[["render",_sfc_render117],["__file","full-screen.vue"]]);var _sfc_main118={name:"GobletFull"},_hoisted_1118={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2118=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"},null,-1),_hoisted_3117=[_hoisted_2118];function _sfc_render118(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1118,_hoisted_3117);}var goblet_full_default=/* @__PURE__ */export_helper_default(_sfc_main118,[["render",_sfc_render118],["__file","goblet-full.vue"]]);var _sfc_main119={name:"GobletSquareFull"},_hoisted_1119={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2119=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"},null,-1),_hoisted_3118=[_hoisted_2119];function _sfc_render119(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1119,_hoisted_3118);}var goblet_square_full_default=/* @__PURE__ */export_helper_default(_sfc_main119,[["render",_sfc_render119],["__file","goblet-square-full.vue"]]);var _sfc_main120={name:"GobletSquare"},_hoisted_1120={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2120=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"},null,-1),_hoisted_3119=[_hoisted_2120];function _sfc_render120(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1120,_hoisted_3119);}var goblet_square_default=/* @__PURE__ */export_helper_default(_sfc_main120,[["render",_sfc_render120],["__file","goblet-square.vue"]]);var _sfc_main121={name:"Goblet"},_hoisted_1121={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2121=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"},null,-1),_hoisted_3120=[_hoisted_2121];function _sfc_render121(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1121,_hoisted_3120);}var goblet_default=/* @__PURE__ */export_helper_default(_sfc_main121,[["render",_sfc_render121],["__file","goblet.vue"]]);var _sfc_main122={name:"GoodsFilled"},_hoisted_1122={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2122=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"},null,-1),_hoisted_3121=[_hoisted_2122];function _sfc_render122(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1122,_hoisted_3121);}var goods_filled_default=/* @__PURE__ */export_helper_default(_sfc_main122,[["render",_sfc_render122],["__file","goods-filled.vue"]]);var _sfc_main123={name:"Goods"},_hoisted_1123={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2123=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"},null,-1),_hoisted_3122=[_hoisted_2123];function _sfc_render123(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1123,_hoisted_3122);}var goods_default=/* @__PURE__ */export_helper_default(_sfc_main123,[["render",_sfc_render123],["__file","goods.vue"]]);var _sfc_main124={name:"Grape"},_hoisted_1124={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2124=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),_hoisted_3123=[_hoisted_2124];function _sfc_render124(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1124,_hoisted_3123);}var grape_default=/* @__PURE__ */export_helper_default(_sfc_main124,[["render",_sfc_render124],["__file","grape.vue"]]);var _sfc_main125={name:"Grid"},_hoisted_1125={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2125=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"},null,-1),_hoisted_3124=[_hoisted_2125];function _sfc_render125(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1125,_hoisted_3124);}var grid_default=/* @__PURE__ */export_helper_default(_sfc_main125,[["render",_sfc_render125],["__file","grid.vue"]]);var _sfc_main126={name:"Guide"},_hoisted_1126={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2126=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"},null,-1),_hoisted_3125=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"},null,-1),_hoisted_435=[_hoisted_2126,_hoisted_3125];function _sfc_render126(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1126,_hoisted_435);}var guide_default=/* @__PURE__ */export_helper_default(_sfc_main126,[["render",_sfc_render126],["__file","guide.vue"]]);var _sfc_main127={name:"Headset"},_hoisted_1127={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2127=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"},null,-1),_hoisted_3126=[_hoisted_2127];function _sfc_render127(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1127,_hoisted_3126);}var headset_default=/* @__PURE__ */export_helper_default(_sfc_main127,[["render",_sfc_render127],["__file","headset.vue"]]);var _sfc_main128={name:"HelpFilled"},_hoisted_1128={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2128=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"},null,-1),_hoisted_3127=[_hoisted_2128];function _sfc_render128(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1128,_hoisted_3127);}var help_filled_default=/* @__PURE__ */export_helper_default(_sfc_main128,[["render",_sfc_render128],["__file","help-filled.vue"]]);var _sfc_main129={name:"Help"},_hoisted_1129={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2129=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3128=[_hoisted_2129];function _sfc_render129(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1129,_hoisted_3128);}var help_default=/* @__PURE__ */export_helper_default(_sfc_main129,[["render",_sfc_render129],["__file","help.vue"]]);var _sfc_main130={name:"Hide"},_hoisted_1130={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2130=/* @__PURE__ */createBaseVNode("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),_hoisted_3129=/* @__PURE__ */createBaseVNode("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),_hoisted_436=[_hoisted_2130,_hoisted_3129];function _sfc_render130(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1130,_hoisted_436);}var hide_default=/* @__PURE__ */export_helper_default(_sfc_main130,[["render",_sfc_render130],["__file","hide.vue"]]);var _sfc_main131={name:"Histogram"},_hoisted_1131={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2131=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1),_hoisted_3130=[_hoisted_2131];function _sfc_render131(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1131,_hoisted_3130);}var histogram_default=/* @__PURE__ */export_helper_default(_sfc_main131,[["render",_sfc_render131],["__file","histogram.vue"]]);var _sfc_main132={name:"HomeFilled"},_hoisted_1132={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2132=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"},null,-1),_hoisted_3131=[_hoisted_2132];function _sfc_render132(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1132,_hoisted_3131);}var home_filled_default=/* @__PURE__ */export_helper_default(_sfc_main132,[["render",_sfc_render132],["__file","home-filled.vue"]]);var _sfc_main133={name:"HotWater"},_hoisted_1133={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2133=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"},null,-1),_hoisted_3132=[_hoisted_2133];function _sfc_render133(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1133,_hoisted_3132);}var hot_water_default=/* @__PURE__ */export_helper_default(_sfc_main133,[["render",_sfc_render133],["__file","hot-water.vue"]]);var _sfc_main134={name:"House"},_hoisted_1134={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2134=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"},null,-1),_hoisted_3133=[_hoisted_2134];function _sfc_render134(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1134,_hoisted_3133);}var house_default=/* @__PURE__ */export_helper_default(_sfc_main134,[["render",_sfc_render134],["__file","house.vue"]]);var _sfc_main135={name:"IceCreamRound"},_hoisted_1135={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2135=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"},null,-1),_hoisted_3134=[_hoisted_2135];function _sfc_render135(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1135,_hoisted_3134);}var ice_cream_round_default=/* @__PURE__ */export_helper_default(_sfc_main135,[["render",_sfc_render135],["__file","ice-cream-round.vue"]]);var _sfc_main136={name:"IceCreamSquare"},_hoisted_1136={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2136=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"},null,-1),_hoisted_3135=[_hoisted_2136];function _sfc_render136(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1136,_hoisted_3135);}var ice_cream_square_default=/* @__PURE__ */export_helper_default(_sfc_main136,[["render",_sfc_render136],["__file","ice-cream-square.vue"]]);var _sfc_main137={name:"IceCream"},_hoisted_1137={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2137=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"},null,-1),_hoisted_3136=[_hoisted_2137];function _sfc_render137(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1137,_hoisted_3136);}var ice_cream_default=/* @__PURE__ */export_helper_default(_sfc_main137,[["render",_sfc_render137],["__file","ice-cream.vue"]]);var _sfc_main138={name:"IceDrink"},_hoisted_1138={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2138=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"},null,-1),_hoisted_3137=[_hoisted_2138];function _sfc_render138(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1138,_hoisted_3137);}var ice_drink_default=/* @__PURE__ */export_helper_default(_sfc_main138,[["render",_sfc_render138],["__file","ice-drink.vue"]]);var _sfc_main139={name:"IceTea"},_hoisted_1139={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2139=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"},null,-1),_hoisted_3138=[_hoisted_2139];function _sfc_render139(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1139,_hoisted_3138);}var ice_tea_default=/* @__PURE__ */export_helper_default(_sfc_main139,[["render",_sfc_render139],["__file","ice-tea.vue"]]);var _sfc_main140={name:"InfoFilled"},_hoisted_1140={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2140=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3139=[_hoisted_2140];function _sfc_render140(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1140,_hoisted_3139);}var info_filled_default=/* @__PURE__ */export_helper_default(_sfc_main140,[["render",_sfc_render140],["__file","info-filled.vue"]]);var _sfc_main141={name:"Iphone"},_hoisted_1141={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2141=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"},null,-1),_hoisted_3140=[_hoisted_2141];function _sfc_render141(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1141,_hoisted_3140);}var iphone_default=/* @__PURE__ */export_helper_default(_sfc_main141,[["render",_sfc_render141],["__file","iphone.vue"]]);var _sfc_main142={name:"Key"},_hoisted_1142={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2142=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),_hoisted_3141=[_hoisted_2142];function _sfc_render142(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1142,_hoisted_3141);}var key_default=/* @__PURE__ */export_helper_default(_sfc_main142,[["render",_sfc_render142],["__file","key.vue"]]);var _sfc_main143={name:"KnifeFork"},_hoisted_1143={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2143=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1143,_hoisted_3142);}var knife_fork_default=/* @__PURE__ */export_helper_default(_sfc_main143,[["render",_sfc_render143],["__file","knife-fork.vue"]]);var _sfc_main144={name:"Lightning"},_hoisted_1144={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2144=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"},null,-1),_hoisted_3143=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"},null,-1),_hoisted_437=[_hoisted_2144,_hoisted_3143];function _sfc_render144(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1144,_hoisted_437);}var lightning_default=/* @__PURE__ */export_helper_default(_sfc_main144,[["render",_sfc_render144],["__file","lightning.vue"]]);var _sfc_main145={name:"Link"},_hoisted_1145={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2145=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),_hoisted_3144=[_hoisted_2145];function _sfc_render145(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1145,_hoisted_3144);}var link_default=/* @__PURE__ */export_helper_default(_sfc_main145,[["render",_sfc_render145],["__file","link.vue"]]);var _sfc_main146={name:"List"},_hoisted_1146={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2146=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"},null,-1),_hoisted_3145=[_hoisted_2146];function _sfc_render146(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1146,_hoisted_3145);}var list_default=/* @__PURE__ */export_helper_default(_sfc_main146,[["render",_sfc_render146],["__file","list.vue"]]);var _sfc_main147={name:"Loading"},_hoisted_1147={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2147=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),_hoisted_3146=[_hoisted_2147];function _sfc_render147(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1147,_hoisted_3146);}var loading_default=/* @__PURE__ */export_helper_default(_sfc_main147,[["render",_sfc_render147],["__file","loading.vue"]]);var _sfc_main148={name:"LocationFilled"},_hoisted_1148={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2148=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"},null,-1),_hoisted_3147=[_hoisted_2148];function _sfc_render148(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1148,_hoisted_3147);}var location_filled_default=/* @__PURE__ */export_helper_default(_sfc_main148,[["render",_sfc_render148],["__file","location-filled.vue"]]);var _sfc_main149={name:"LocationInformation"},_hoisted_1149={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2149=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3148=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_438=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),_hoisted_510=[_hoisted_2149,_hoisted_3148,_hoisted_438];function _sfc_render149(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1149,_hoisted_510);}var location_information_default=/* @__PURE__ */export_helper_default(_sfc_main149,[["render",_sfc_render149],["__file","location-information.vue"]]);var _sfc_main150={name:"Location"},_hoisted_1150={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2150=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_3149=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),_hoisted_439=[_hoisted_2150,_hoisted_3149];function _sfc_render150(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1150,_hoisted_439);}var location_default=/* @__PURE__ */export_helper_default(_sfc_main150,[["render",_sfc_render150],["__file","location.vue"]]);var _sfc_main151={name:"Lock"},_hoisted_1151={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2151=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),_hoisted_3150=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"},null,-1),_hoisted_440=[_hoisted_2151,_hoisted_3150];function _sfc_render151(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1151,_hoisted_440);}var lock_default=/* @__PURE__ */export_helper_default(_sfc_main151,[["render",_sfc_render151],["__file","lock.vue"]]);var _sfc_main152={name:"Lollipop"},_hoisted_1152={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2152=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"},null,-1),_hoisted_3151=[_hoisted_2152];function _sfc_render152(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1152,_hoisted_3151);}var lollipop_default=/* @__PURE__ */export_helper_default(_sfc_main152,[["render",_sfc_render152],["__file","lollipop.vue"]]);var _sfc_main153={name:"MagicStick"},_hoisted_1153={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2153=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),_hoisted_3152=[_hoisted_2153];function _sfc_render153(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1153,_hoisted_3152);}var magic_stick_default=/* @__PURE__ */export_helper_default(_sfc_main153,[["render",_sfc_render153],["__file","magic-stick.vue"]]);var _sfc_main154={name:"Magnet"},_hoisted_1154={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2154=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"},null,-1),_hoisted_3153=[_hoisted_2154];function _sfc_render154(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1154,_hoisted_3153);}var magnet_default=/* @__PURE__ */export_helper_default(_sfc_main154,[["render",_sfc_render154],["__file","magnet.vue"]]);var _sfc_main155={name:"Male"},_hoisted_1155={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2155=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"},null,-1),_hoisted_3154=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"},null,-1),_hoisted_441=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"},null,-1),_hoisted_511=[_hoisted_2155,_hoisted_3154,_hoisted_441];function _sfc_render155(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1155,_hoisted_511);}var male_default=/* @__PURE__ */export_helper_default(_sfc_main155,[["render",_sfc_render155],["__file","male.vue"]]);var _sfc_main156={name:"Management"},_hoisted_1156={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2156=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"},null,-1),_hoisted_3155=[_hoisted_2156];function _sfc_render156(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1156,_hoisted_3155);}var management_default=/* @__PURE__ */export_helper_default(_sfc_main156,[["render",_sfc_render156],["__file","management.vue"]]);var _sfc_main157={name:"MapLocation"},_hoisted_1157={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2157=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_3156=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"},null,-1),_hoisted_442=[_hoisted_2157,_hoisted_3156];function _sfc_render157(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1157,_hoisted_442);}var map_location_default=/* @__PURE__ */export_helper_default(_sfc_main157,[["render",_sfc_render157],["__file","map-location.vue"]]);var _sfc_main158={name:"Medal"},_hoisted_1158={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2158=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_hoisted_3157=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"},null,-1),_hoisted_443=[_hoisted_2158,_hoisted_3157];function _sfc_render158(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1158,_hoisted_443);}var medal_default=/* @__PURE__ */export_helper_default(_sfc_main158,[["render",_sfc_render158],["__file","medal.vue"]]);var _sfc_main159={name:"Menu"},_hoisted_1159={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2159=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"},null,-1),_hoisted_3158=[_hoisted_2159];function _sfc_render159(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1159,_hoisted_3158);}var menu_default=/* @__PURE__ */export_helper_default(_sfc_main159,[["render",_sfc_render159],["__file","menu.vue"]]);var _sfc_main160={name:"MessageBox"},_hoisted_1160={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2160=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"},null,-1),_hoisted_3159=[_hoisted_2160];function _sfc_render160(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1160,_hoisted_3159);}var message_box_default=/* @__PURE__ */export_helper_default(_sfc_main160,[["render",_sfc_render160],["__file","message-box.vue"]]);var _sfc_main161={name:"Message"},_hoisted_1161={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2161=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"},null,-1),_hoisted_3160=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"},null,-1),_hoisted_444=[_hoisted_2161,_hoisted_3160];function _sfc_render161(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1161,_hoisted_444);}var message_default=/* @__PURE__ */export_helper_default(_sfc_main161,[["render",_sfc_render161],["__file","message.vue"]]);var _sfc_main162={name:"Mic"},_hoisted_1162={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2162=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1),_hoisted_3161=[_hoisted_2162];function _sfc_render162(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1162,_hoisted_3161);}var mic_default=/* @__PURE__ */export_helper_default(_sfc_main162,[["render",_sfc_render162],["__file","mic.vue"]]);var _sfc_main163={name:"Microphone"},_hoisted_1163={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2163=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"},null,-1),_hoisted_3162=[_hoisted_2163];function _sfc_render163(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1163,_hoisted_3162);}var microphone_default=/* @__PURE__ */export_helper_default(_sfc_main163,[["render",_sfc_render163],["__file","microphone.vue"]]);var _sfc_main164={name:"MilkTea"},_hoisted_1164={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2164=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"},null,-1),_hoisted_3163=[_hoisted_2164];function _sfc_render164(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1164,_hoisted_3163);}var milk_tea_default=/* @__PURE__ */export_helper_default(_sfc_main164,[["render",_sfc_render164],["__file","milk-tea.vue"]]);var _sfc_main165={name:"Minus"},_hoisted_1165={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2165=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3164=[_hoisted_2165];function _sfc_render165(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1165,_hoisted_3164);}var minus_default=/* @__PURE__ */export_helper_default(_sfc_main165,[["render",_sfc_render165],["__file","minus.vue"]]);var _sfc_main166={name:"Money"},_hoisted_1166={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2166=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),_hoisted_3165=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),_hoisted_445=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),_hoisted_512=[_hoisted_2166,_hoisted_3165,_hoisted_445];function _sfc_render166(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1166,_hoisted_512);}var money_default=/* @__PURE__ */export_helper_default(_sfc_main166,[["render",_sfc_render166],["__file","money.vue"]]);var _sfc_main167={name:"Monitor"},_hoisted_1167={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2167=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"},null,-1),_hoisted_3166=[_hoisted_2167];function _sfc_render167(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1167,_hoisted_3166);}var monitor_default=/* @__PURE__ */export_helper_default(_sfc_main167,[["render",_sfc_render167],["__file","monitor.vue"]]);var _sfc_main168={name:"MoonNight"},_hoisted_1168={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2168=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),_hoisted_3167=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1),_hoisted_446=[_hoisted_2168,_hoisted_3167];function _sfc_render168(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1168,_hoisted_446);}var moon_night_default=/* @__PURE__ */export_helper_default(_sfc_main168,[["render",_sfc_render168],["__file","moon-night.vue"]]);var _sfc_main169={name:"Moon"},_hoisted_1169={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2169=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1),_hoisted_3168=[_hoisted_2169];function _sfc_render169(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1169,_hoisted_3168);}var moon_default=/* @__PURE__ */export_helper_default(_sfc_main169,[["render",_sfc_render169],["__file","moon.vue"]]);var _sfc_main170={name:"MoreFilled"},_hoisted_1170={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2170=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3169=[_hoisted_2170];function _sfc_render170(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1170,_hoisted_3169);}var more_filled_default=/* @__PURE__ */export_helper_default(_sfc_main170,[["render",_sfc_render170],["__file","more-filled.vue"]]);var _sfc_main171={name:"More"},_hoisted_1171={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2171=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3170=[_hoisted_2171];function _sfc_render171(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1171,_hoisted_3170);}var more_default=/* @__PURE__ */export_helper_default(_sfc_main171,[["render",_sfc_render171],["__file","more.vue"]]);var _sfc_main172={name:"MostlyCloudy"},_hoisted_1172={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2172=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"},null,-1),_hoisted_3171=[_hoisted_2172];function _sfc_render172(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1172,_hoisted_3171);}var mostly_cloudy_default=/* @__PURE__ */export_helper_default(_sfc_main172,[["render",_sfc_render172],["__file","mostly-cloudy.vue"]]);var _sfc_main173={name:"Mouse"},_hoisted_1173={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2173=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"},null,-1),_hoisted_3172=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"},null,-1),_hoisted_447=[_hoisted_2173,_hoisted_3172];function _sfc_render173(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1173,_hoisted_447);}var mouse_default=/* @__PURE__ */export_helper_default(_sfc_main173,[["render",_sfc_render173],["__file","mouse.vue"]]);var _sfc_main174={name:"Mug"},_hoisted_1174={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2174=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"},null,-1),_hoisted_3173=[_hoisted_2174];function _sfc_render174(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1174,_hoisted_3173);}var mug_default=/* @__PURE__ */export_helper_default(_sfc_main174,[["render",_sfc_render174],["__file","mug.vue"]]);var _sfc_main175={name:"MuteNotification"},_hoisted_1175={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2175=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"},null,-1),_hoisted_3174=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),_hoisted_448=[_hoisted_2175,_hoisted_3174];function _sfc_render175(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1175,_hoisted_448);}var mute_notification_default=/* @__PURE__ */export_helper_default(_sfc_main175,[["render",_sfc_render175],["__file","mute-notification.vue"]]);var _sfc_main176={name:"Mute"},_hoisted_1176={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2176=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"},null,-1),_hoisted_3175=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),_hoisted_449=[_hoisted_2176,_hoisted_3175];function _sfc_render176(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1176,_hoisted_449);}var mute_default=/* @__PURE__ */export_helper_default(_sfc_main176,[["render",_sfc_render176],["__file","mute.vue"]]);var _sfc_main177={name:"NoSmoking"},_hoisted_1177={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2177=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),_hoisted_3176=[_hoisted_2177];function _sfc_render177(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1177,_hoisted_3176);}var no_smoking_default=/* @__PURE__ */export_helper_default(_sfc_main177,[["render",_sfc_render177],["__file","no-smoking.vue"]]);var _sfc_main178={name:"Notebook"},_hoisted_1178={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2178=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3177=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),_hoisted_450=[_hoisted_2178,_hoisted_3177];function _sfc_render178(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1178,_hoisted_450);}var notebook_default=/* @__PURE__ */export_helper_default(_sfc_main178,[["render",_sfc_render178],["__file","notebook.vue"]]);var _sfc_main179={name:"Notification"},_hoisted_1179={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2179=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"},null,-1),_hoisted_3178=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"},null,-1),_hoisted_451=[_hoisted_2179,_hoisted_3178];function _sfc_render179(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1179,_hoisted_451);}var notification_default=/* @__PURE__ */export_helper_default(_sfc_main179,[["render",_sfc_render179],["__file","notification.vue"]]);var _sfc_main180={name:"Odometer"},_hoisted_1180={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2180=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3179=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"},null,-1),_hoisted_452=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"},null,-1),_hoisted_513=[_hoisted_2180,_hoisted_3179,_hoisted_452];function _sfc_render180(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1180,_hoisted_513);}var odometer_default=/* @__PURE__ */export_helper_default(_sfc_main180,[["render",_sfc_render180],["__file","odometer.vue"]]);var _sfc_main181={name:"OfficeBuilding"},_hoisted_1181={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2181=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3180=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"},null,-1),_hoisted_453=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"},null,-1),_hoisted_514=[_hoisted_2181,_hoisted_3180,_hoisted_453];function _sfc_render181(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1181,_hoisted_514);}var office_building_default=/* @__PURE__ */export_helper_default(_sfc_main181,[["render",_sfc_render181],["__file","office-building.vue"]]);var _sfc_main182={name:"Open"},_hoisted_1182={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2182=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),_hoisted_3181=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),_hoisted_454=[_hoisted_2182,_hoisted_3181];function _sfc_render182(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1182,_hoisted_454);}var open_default=/* @__PURE__ */export_helper_default(_sfc_main182,[["render",_sfc_render182],["__file","open.vue"]]);var _sfc_main183={name:"Operation"},_hoisted_1183={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2183=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1),_hoisted_3182=[_hoisted_2183];function _sfc_render183(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1183,_hoisted_3182);}var operation_default=/* @__PURE__ */export_helper_default(_sfc_main183,[["render",_sfc_render183],["__file","operation.vue"]]);var _sfc_main184={name:"Opportunity"},_hoisted_1184={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2184=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1),_hoisted_3183=[_hoisted_2184];function _sfc_render184(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1184,_hoisted_3183);}var opportunity_default=/* @__PURE__ */export_helper_default(_sfc_main184,[["render",_sfc_render184],["__file","opportunity.vue"]]);var _sfc_main185={name:"Orange"},_hoisted_1185={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2185=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"},null,-1),_hoisted_3184=[_hoisted_2185];function _sfc_render185(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1185,_hoisted_3184);}var orange_default=/* @__PURE__ */export_helper_default(_sfc_main185,[["render",_sfc_render185],["__file","orange.vue"]]);var _sfc_main186={name:"Paperclip"},_hoisted_1186={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2186=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1),_hoisted_3185=[_hoisted_2186];function _sfc_render186(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1186,_hoisted_3185);}var paperclip_default=/* @__PURE__ */export_helper_default(_sfc_main186,[["render",_sfc_render186],["__file","paperclip.vue"]]);var _sfc_main187={name:"PartlyCloudy"},_hoisted_1187={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2187=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),_hoisted_3186=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"},null,-1),_hoisted_455=[_hoisted_2187,_hoisted_3186];function _sfc_render187(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1187,_hoisted_455);}var partly_cloudy_default=/* @__PURE__ */export_helper_default(_sfc_main187,[["render",_sfc_render187],["__file","partly-cloudy.vue"]]);var _sfc_main188={name:"Pear"},_hoisted_1188={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2188=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"},null,-1),_hoisted_3187=[_hoisted_2188];function _sfc_render188(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1188,_hoisted_3187);}var pear_default=/* @__PURE__ */export_helper_default(_sfc_main188,[["render",_sfc_render188],["__file","pear.vue"]]);var _sfc_main189={name:"PhoneFilled"},_hoisted_1189={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2189=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"},null,-1),_hoisted_3188=[_hoisted_2189];function _sfc_render189(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1189,_hoisted_3188);}var phone_filled_default=/* @__PURE__ */export_helper_default(_sfc_main189,[["render",_sfc_render189],["__file","phone-filled.vue"]]);var _sfc_main190={name:"Phone"},_hoisted_1190={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2190=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"},null,-1),_hoisted_3189=[_hoisted_2190];function _sfc_render190(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1190,_hoisted_3189);}var phone_default=/* @__PURE__ */export_helper_default(_sfc_main190,[["render",_sfc_render190],["__file","phone.vue"]]);var _sfc_main191={name:"PictureFilled"},_hoisted_1191={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2191=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3190=[_hoisted_2191];function _sfc_render191(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1191,_hoisted_3190);}var picture_filled_default=/* @__PURE__ */export_helper_default(_sfc_main191,[["render",_sfc_render191],["__file","picture-filled.vue"]]);var _sfc_main192={name:"PictureRounded"},_hoisted_1192={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2192=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z"},null,-1),_hoisted_3191=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"},null,-1),_hoisted_456=[_hoisted_2192,_hoisted_3191];function _sfc_render192(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1192,_hoisted_456);}var picture_rounded_default=/* @__PURE__ */export_helper_default(_sfc_main192,[["render",_sfc_render192],["__file","picture-rounded.vue"]]);var _sfc_main193={name:"Picture"},_hoisted_1193={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2193=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),_hoisted_3192=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1),_hoisted_457=[_hoisted_2193,_hoisted_3192];function _sfc_render193(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1193,_hoisted_457);}var picture_default=/* @__PURE__ */export_helper_default(_sfc_main193,[["render",_sfc_render193],["__file","picture.vue"]]);var _sfc_main194={name:"PieChart"},_hoisted_1194={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2194=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"},null,-1),_hoisted_3193=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"},null,-1),_hoisted_458=[_hoisted_2194,_hoisted_3193];function _sfc_render194(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1194,_hoisted_458);}var pie_chart_default=/* @__PURE__ */export_helper_default(_sfc_main194,[["render",_sfc_render194],["__file","pie-chart.vue"]]);var _sfc_main195={name:"Place"},_hoisted_1195={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2195=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),_hoisted_3194=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"},null,-1),_hoisted_459=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"},null,-1),_hoisted_515=[_hoisted_2195,_hoisted_3194,_hoisted_459];function _sfc_render195(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1195,_hoisted_515);}var place_default=/* @__PURE__ */export_helper_default(_sfc_main195,[["render",_sfc_render195],["__file","place.vue"]]);var _sfc_main196={name:"Platform"},_hoisted_1196={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2196=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"},null,-1),_hoisted_3195=[_hoisted_2196];function _sfc_render196(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1196,_hoisted_3195);}var platform_default=/* @__PURE__ */export_helper_default(_sfc_main196,[["render",_sfc_render196],["__file","platform.vue"]]);var _sfc_main197={name:"Plus"},_hoisted_1197={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2197=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),_hoisted_3196=[_hoisted_2197];function _sfc_render197(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1197,_hoisted_3196);}var plus_default=/* @__PURE__ */export_helper_default(_sfc_main197,[["render",_sfc_render197],["__file","plus.vue"]]);var _sfc_main198={name:"Pointer"},_hoisted_1198={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2198=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"},null,-1),_hoisted_3197=[_hoisted_2198];function _sfc_render198(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1198,_hoisted_3197);}var pointer_default=/* @__PURE__ */export_helper_default(_sfc_main198,[["render",_sfc_render198],["__file","pointer.vue"]]);var _sfc_main199={name:"Position"},_hoisted_1199={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2199=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1),_hoisted_3198=[_hoisted_2199];function _sfc_render199(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1199,_hoisted_3198);}var position_default=/* @__PURE__ */export_helper_default(_sfc_main199,[["render",_sfc_render199],["__file","position.vue"]]);var _sfc_main200={name:"Postcard"},_hoisted_1200={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2200=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),_hoisted_3199=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_460=[_hoisted_2200,_hoisted_3199];function _sfc_render200(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1200,_hoisted_460);}var postcard_default=/* @__PURE__ */export_helper_default(_sfc_main200,[["render",_sfc_render200],["__file","postcard.vue"]]);var _sfc_main201={name:"Pouring"},_hoisted_1201={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2201=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3200=[_hoisted_2201];function _sfc_render201(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1201,_hoisted_3200);}var pouring_default=/* @__PURE__ */export_helper_default(_sfc_main201,[["render",_sfc_render201],["__file","pouring.vue"]]);var _sfc_main202={name:"Present"},_hoisted_1202={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2202=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"},null,-1),_hoisted_3201=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),_hoisted_461=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_516=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_6=[_hoisted_2202,_hoisted_3201,_hoisted_461,_hoisted_516];function _sfc_render202(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1202,_hoisted_6);}var present_default=/* @__PURE__ */export_helper_default(_sfc_main202,[["render",_sfc_render202],["__file","present.vue"]]);var _sfc_main203={name:"PriceTag"},_hoisted_1203={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2203=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),_hoisted_3202=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_462=[_hoisted_2203,_hoisted_3202];function _sfc_render203(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1203,_hoisted_462);}var price_tag_default=/* @__PURE__ */export_helper_default(_sfc_main203,[["render",_sfc_render203],["__file","price-tag.vue"]]);var _sfc_main204={name:"Printer"},_hoisted_1204={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2204=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1),_hoisted_3203=[_hoisted_2204];function _sfc_render204(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1204,_hoisted_3203);}var printer_default=/* @__PURE__ */export_helper_default(_sfc_main204,[["render",_sfc_render204],["__file","printer.vue"]]);var _sfc_main205={name:"Promotion"},_hoisted_1205={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2205=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),_hoisted_3204=[_hoisted_2205];function _sfc_render205(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1205,_hoisted_3204);}var promotion_default=/* @__PURE__ */export_helper_default(_sfc_main205,[["render",_sfc_render205],["__file","promotion.vue"]]);var _sfc_main206={name:"QuestionFilled"},_hoisted_1206={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2206=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3205=[_hoisted_2206];function _sfc_render206(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1206,_hoisted_3205);}var question_filled_default=/* @__PURE__ */export_helper_default(_sfc_main206,[["render",_sfc_render206],["__file","question-filled.vue"]]);var _sfc_main207={name:"Rank"},_hoisted_1207={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2207=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"},null,-1),_hoisted_3206=[_hoisted_2207];function _sfc_render207(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1207,_hoisted_3206);}var rank_default=/* @__PURE__ */export_helper_default(_sfc_main207,[["render",_sfc_render207],["__file","rank.vue"]]);var _sfc_main208={name:"ReadingLamp"},_hoisted_1208={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2208=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"},null,-1),_hoisted_3207=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"},null,-1),_hoisted_463=[_hoisted_2208,_hoisted_3207];function _sfc_render208(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1208,_hoisted_463);}var reading_lamp_default=/* @__PURE__ */export_helper_default(_sfc_main208,[["render",_sfc_render208],["__file","reading-lamp.vue"]]);var _sfc_main209={name:"Reading"},_hoisted_1209={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2209=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"},null,-1),_hoisted_3208=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 192h64v704h-64z"},null,-1),_hoisted_464=[_hoisted_2209,_hoisted_3208];function _sfc_render209(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1209,_hoisted_464);}var reading_default=/* @__PURE__ */export_helper_default(_sfc_main209,[["render",_sfc_render209],["__file","reading.vue"]]);var _sfc_main210={name:"RefreshLeft"},_hoisted_1210={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2210=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),_hoisted_3209=[_hoisted_2210];function _sfc_render210(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1210,_hoisted_3209);}var refresh_left_default=/* @__PURE__ */export_helper_default(_sfc_main210,[["render",_sfc_render210],["__file","refresh-left.vue"]]);var _sfc_main211={name:"RefreshRight"},_hoisted_1211={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2211=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),_hoisted_3210=[_hoisted_2211];function _sfc_render211(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1211,_hoisted_3210);}var refresh_right_default=/* @__PURE__ */export_helper_default(_sfc_main211,[["render",_sfc_render211],["__file","refresh-right.vue"]]);var _sfc_main212={name:"Refresh"},_hoisted_1212={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2212=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),_hoisted_3211=[_hoisted_2212];function _sfc_render212(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1212,_hoisted_3211);}var refresh_default=/* @__PURE__ */export_helper_default(_sfc_main212,[["render",_sfc_render212],["__file","refresh.vue"]]);var _sfc_main213={name:"Refrigerator"},_hoisted_1213={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2213=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"},null,-1),_hoisted_3212=[_hoisted_2213];function _sfc_render213(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1213,_hoisted_3212);}var refrigerator_default=/* @__PURE__ */export_helper_default(_sfc_main213,[["render",_sfc_render213],["__file","refrigerator.vue"]]);var _sfc_main214={name:"RemoveFilled"},_hoisted_1214={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2214=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"},null,-1),_hoisted_3213=[_hoisted_2214];function _sfc_render214(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1214,_hoisted_3213);}var remove_filled_default=/* @__PURE__ */export_helper_default(_sfc_main214,[["render",_sfc_render214],["__file","remove-filled.vue"]]);var _sfc_main215={name:"Remove"},_hoisted_1215={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2215=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3214=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_465=[_hoisted_2215,_hoisted_3214];function _sfc_render215(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1215,_hoisted_465);}var remove_default=/* @__PURE__ */export_helper_default(_sfc_main215,[["render",_sfc_render215],["__file","remove.vue"]]);var _sfc_main216={name:"Right"},_hoisted_1216={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2216=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1),_hoisted_3215=[_hoisted_2216];function _sfc_render216(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1216,_hoisted_3215);}var right_default=/* @__PURE__ */export_helper_default(_sfc_main216,[["render",_sfc_render216],["__file","right.vue"]]);var _sfc_main217={name:"ScaleToOriginal"},_hoisted_1217={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2217=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3216=[_hoisted_2217];function _sfc_render217(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1217,_hoisted_3216);}var scale_to_original_default=/* @__PURE__ */export_helper_default(_sfc_main217,[["render",_sfc_render217],["__file","scale-to-original.vue"]]);var _sfc_main218={name:"School"},_hoisted_1218={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2218=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3217=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"},null,-1),_hoisted_466=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"},null,-1),_hoisted_517=[_hoisted_2218,_hoisted_3217,_hoisted_466];function _sfc_render218(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1218,_hoisted_517);}var school_default=/* @__PURE__ */export_helper_default(_sfc_main218,[["render",_sfc_render218],["__file","school.vue"]]);var _sfc_main219={name:"Scissor"},_hoisted_1219={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2219=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"},null,-1),_hoisted_3218=[_hoisted_2219];function _sfc_render219(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1219,_hoisted_3218);}var scissor_default=/* @__PURE__ */export_helper_default(_sfc_main219,[["render",_sfc_render219],["__file","scissor.vue"]]);var _sfc_main220={name:"Search"},_hoisted_1220={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2220=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3219=[_hoisted_2220];function _sfc_render220(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1220,_hoisted_3219);}var search_default=/* @__PURE__ */export_helper_default(_sfc_main220,[["render",_sfc_render220],["__file","search.vue"]]);var _sfc_main221={name:"Select"},_hoisted_1221={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2221=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"},null,-1),_hoisted_3220=[_hoisted_2221];function _sfc_render221(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1221,_hoisted_3220);}var select_default=/* @__PURE__ */export_helper_default(_sfc_main221,[["render",_sfc_render221],["__file","select.vue"]]);var _sfc_main222={name:"Sell"},_hoisted_1222={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2222=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"},null,-1),_hoisted_3221=[_hoisted_2222];function _sfc_render222(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1222,_hoisted_3221);}var sell_default=/* @__PURE__ */export_helper_default(_sfc_main222,[["render",_sfc_render222],["__file","sell.vue"]]);var _sfc_main223={name:"SemiSelect"},_hoisted_1223={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2223=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"},null,-1),_hoisted_3222=[_hoisted_2223];function _sfc_render223(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1223,_hoisted_3222);}var semi_select_default=/* @__PURE__ */export_helper_default(_sfc_main223,[["render",_sfc_render223],["__file","semi-select.vue"]]);var _sfc_main224={name:"Service"},_hoisted_1224={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2224=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"},null,-1),_hoisted_3223=[_hoisted_2224];function _sfc_render224(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1224,_hoisted_3223);}var service_default=/* @__PURE__ */export_helper_default(_sfc_main224,[["render",_sfc_render224],["__file","service.vue"]]);var _sfc_main225={name:"SetUp"},_hoisted_1225={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2225=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"},null,-1),_hoisted_3224=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_467=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_518=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_62=[_hoisted_2225,_hoisted_3224,_hoisted_467,_hoisted_518];function _sfc_render225(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1225,_hoisted_62);}var set_up_default=/* @__PURE__ */export_helper_default(_sfc_main225,[["render",_sfc_render225],["__file","set-up.vue"]]);var _sfc_main226={name:"Setting"},_hoisted_1226={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2226=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),_hoisted_3225=[_hoisted_2226];function _sfc_render226(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1226,_hoisted_3225);}var setting_default=/* @__PURE__ */export_helper_default(_sfc_main226,[["render",_sfc_render226],["__file","setting.vue"]]);var _sfc_main227={name:"Share"},_hoisted_1227={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2227=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1),_hoisted_3226=[_hoisted_2227];function _sfc_render227(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1227,_hoisted_3226);}var share_default=/* @__PURE__ */export_helper_default(_sfc_main227,[["render",_sfc_render227],["__file","share.vue"]]);var _sfc_main228={name:"Ship"},_hoisted_1228={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2228=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"},null,-1),_hoisted_3227=[_hoisted_2228];function _sfc_render228(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1228,_hoisted_3227);}var ship_default=/* @__PURE__ */export_helper_default(_sfc_main228,[["render",_sfc_render228],["__file","ship.vue"]]);var _sfc_main229={name:"Shop"},_hoisted_1229={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2229=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"},null,-1),_hoisted_3228=[_hoisted_2229];function _sfc_render229(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1229,_hoisted_3228);}var shop_default=/* @__PURE__ */export_helper_default(_sfc_main229,[["render",_sfc_render229],["__file","shop.vue"]]);var _sfc_main230={name:"ShoppingBag"},_hoisted_1230={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2230=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"},null,-1),_hoisted_3229=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 704h640v64H192z"},null,-1),_hoisted_468=[_hoisted_2230,_hoisted_3229];function _sfc_render230(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1230,_hoisted_468);}var shopping_bag_default=/* @__PURE__ */export_helper_default(_sfc_main230,[["render",_sfc_render230],["__file","shopping-bag.vue"]]);var _sfc_main231={name:"ShoppingCartFull"},_hoisted_1231={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2231=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),_hoisted_3230=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"},null,-1),_hoisted_469=[_hoisted_2231,_hoisted_3230];function _sfc_render231(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1231,_hoisted_469);}var shopping_cart_full_default=/* @__PURE__ */export_helper_default(_sfc_main231,[["render",_sfc_render231],["__file","shopping-cart-full.vue"]]);var _sfc_main232={name:"ShoppingCart"},_hoisted_1232={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2232=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),_hoisted_3231=[_hoisted_2232];function _sfc_render232(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1232,_hoisted_3231);}var shopping_cart_default=/* @__PURE__ */export_helper_default(_sfc_main232,[["render",_sfc_render232],["__file","shopping-cart.vue"]]);var _sfc_main233={name:"Smoking"},_hoisted_1233={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2233=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"},null,-1),_hoisted_3232=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),_hoisted_470=[_hoisted_2233,_hoisted_3232];function _sfc_render233(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1233,_hoisted_470);}var smoking_default=/* @__PURE__ */export_helper_default(_sfc_main233,[["render",_sfc_render233],["__file","smoking.vue"]]);var _sfc_main234={name:"Soccer"},_hoisted_1234={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2234=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"},null,-1),_hoisted_3233=[_hoisted_2234];function _sfc_render234(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1234,_hoisted_3233);}var soccer_default=/* @__PURE__ */export_helper_default(_sfc_main234,[["render",_sfc_render234],["__file","soccer.vue"]]);var _sfc_main235={name:"SoldOut"},_hoisted_1235={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2235=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"},null,-1),_hoisted_3234=[_hoisted_2235];function _sfc_render235(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1235,_hoisted_3234);}var sold_out_default=/* @__PURE__ */export_helper_default(_sfc_main235,[["render",_sfc_render235],["__file","sold-out.vue"]]);var _sfc_main236={name:"SortDown"},_hoisted_1236={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2236=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_hoisted_3235=[_hoisted_2236];function _sfc_render236(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1236,_hoisted_3235);}var sort_down_default=/* @__PURE__ */export_helper_default(_sfc_main236,[["render",_sfc_render236],["__file","sort-down.vue"]]);var _sfc_main237={name:"SortUp"},_hoisted_1237={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2237=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),_hoisted_3236=[_hoisted_2237];function _sfc_render237(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1237,_hoisted_3236);}var sort_up_default=/* @__PURE__ */export_helper_default(_sfc_main237,[["render",_sfc_render237],["__file","sort-up.vue"]]);var _sfc_main238={name:"Sort"},_hoisted_1238={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2238=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"},null,-1),_hoisted_3237=[_hoisted_2238];function _sfc_render238(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1238,_hoisted_3237);}var sort_default=/* @__PURE__ */export_helper_default(_sfc_main238,[["render",_sfc_render238],["__file","sort.vue"]]);var _sfc_main239={name:"Stamp"},_hoisted_1239={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2239=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"},null,-1),_hoisted_3238=[_hoisted_2239];function _sfc_render239(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1239,_hoisted_3238);}var stamp_default=/* @__PURE__ */export_helper_default(_sfc_main239,[["render",_sfc_render239],["__file","stamp.vue"]]);var _sfc_main240={name:"StarFilled"},_hoisted_1240={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2240=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),_hoisted_3239=[_hoisted_2240];function _sfc_render240(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1240,_hoisted_3239);}var star_filled_default=/* @__PURE__ */export_helper_default(_sfc_main240,[["render",_sfc_render240],["__file","star-filled.vue"]]);var _sfc_main241={name:"Star"},_hoisted_1241={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2241=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),_hoisted_3240=[_hoisted_2241];function _sfc_render241(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1241,_hoisted_3240);}var star_default=/* @__PURE__ */export_helper_default(_sfc_main241,[["render",_sfc_render241],["__file","star.vue"]]);var _sfc_main242={name:"Stopwatch"},_hoisted_1242={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2242=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3241=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"},null,-1),_hoisted_471=[_hoisted_2242,_hoisted_3241];function _sfc_render242(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1242,_hoisted_471);}var stopwatch_default=/* @__PURE__ */export_helper_default(_sfc_main242,[["render",_sfc_render242],["__file","stopwatch.vue"]]);var _sfc_main243={name:"SuccessFilled"},_hoisted_1243={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2243=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3242=[_hoisted_2243];function _sfc_render243(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1243,_hoisted_3242);}var success_filled_default=/* @__PURE__ */export_helper_default(_sfc_main243,[["render",_sfc_render243],["__file","success-filled.vue"]]);var _sfc_main244={name:"Sugar"},_hoisted_1244={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2244=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1),_hoisted_3243=[_hoisted_2244];function _sfc_render244(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1244,_hoisted_3243);}var sugar_default=/* @__PURE__ */export_helper_default(_sfc_main244,[["render",_sfc_render244],["__file","sugar.vue"]]);var _sfc_main245={name:"Suitcase"},_hoisted_1245={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2245=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),_hoisted_3244=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"},null,-1),_hoisted_472=[_hoisted_2245,_hoisted_3244];function _sfc_render245(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1245,_hoisted_472);}var suitcase_default=/* @__PURE__ */export_helper_default(_sfc_main245,[["render",_sfc_render245],["__file","suitcase.vue"]]);var _sfc_main246={name:"Sunny"},_hoisted_1246={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2246=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1),_hoisted_3245=[_hoisted_2246];function _sfc_render246(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1246,_hoisted_3245);}var sunny_default=/* @__PURE__ */export_helper_default(_sfc_main246,[["render",_sfc_render246],["__file","sunny.vue"]]);var _sfc_main247={name:"Sunrise"},_hoisted_1247={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2247=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"},null,-1),_hoisted_3246=[_hoisted_2247];function _sfc_render247(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1247,_hoisted_3246);}var sunrise_default=/* @__PURE__ */export_helper_default(_sfc_main247,[["render",_sfc_render247],["__file","sunrise.vue"]]);var _sfc_main248={name:"Sunset"},_hoisted_1248={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2248=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3247=[_hoisted_2248];function _sfc_render248(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1248,_hoisted_3247);}var sunset_default=/* @__PURE__ */export_helper_default(_sfc_main248,[["render",_sfc_render248],["__file","sunset.vue"]]);var _sfc_main249={name:"SwitchButton"},_hoisted_1249={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2249=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"},null,-1),_hoisted_3248=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"},null,-1),_hoisted_473=[_hoisted_2249,_hoisted_3248];function _sfc_render249(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1249,_hoisted_473);}var switch_button_default=/* @__PURE__ */export_helper_default(_sfc_main249,[["render",_sfc_render249],["__file","switch-button.vue"]]);var _sfc_main250={name:"Switch"},_hoisted_1250={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2250=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1),_hoisted_3249=[_hoisted_2250];function _sfc_render250(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1250,_hoisted_3249);}var switch_default=/* @__PURE__ */export_helper_default(_sfc_main250,[["render",_sfc_render250],["__file","switch.vue"]]);var _sfc_main251={name:"TakeawayBox"},_hoisted_1251={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2251=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"},null,-1),_hoisted_3250=[_hoisted_2251];function _sfc_render251(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1251,_hoisted_3250);}var takeaway_box_default=/* @__PURE__ */export_helper_default(_sfc_main251,[["render",_sfc_render251],["__file","takeaway-box.vue"]]);var _sfc_main252={name:"Ticket"},_hoisted_1252={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2252=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"},null,-1),_hoisted_3251=[_hoisted_2252];function _sfc_render252(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1252,_hoisted_3251);}var ticket_default=/* @__PURE__ */export_helper_default(_sfc_main252,[["render",_sfc_render252],["__file","ticket.vue"]]);var _sfc_main253={name:"Tickets"},_hoisted_1253={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2253=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_3252=[_hoisted_2253];function _sfc_render253(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1253,_hoisted_3252);}var tickets_default=/* @__PURE__ */export_helper_default(_sfc_main253,[["render",_sfc_render253],["__file","tickets.vue"]]);var _sfc_main254={name:"Timer"},_hoisted_1254={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2254=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),_hoisted_3253=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"},null,-1),_hoisted_474=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"},null,-1),_hoisted_519=[_hoisted_2254,_hoisted_3253,_hoisted_474];function _sfc_render254(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1254,_hoisted_519);}var timer_default=/* @__PURE__ */export_helper_default(_sfc_main254,[["render",_sfc_render254],["__file","timer.vue"]]);var _sfc_main255={name:"ToiletPaper"},_hoisted_1255={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2255=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"},null,-1),_hoisted_3254=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"},null,-1),_hoisted_475=[_hoisted_2255,_hoisted_3254];function _sfc_render255(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1255,_hoisted_475);}var toilet_paper_default=/* @__PURE__ */export_helper_default(_sfc_main255,[["render",_sfc_render255],["__file","toilet-paper.vue"]]);var _sfc_main256={name:"Tools"},_hoisted_1256={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2256=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1),_hoisted_3255=[_hoisted_2256];function _sfc_render256(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1256,_hoisted_3255);}var tools_default=/* @__PURE__ */export_helper_default(_sfc_main256,[["render",_sfc_render256],["__file","tools.vue"]]);var _sfc_main257={name:"TopLeft"},_hoisted_1257={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2257=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"},null,-1),_hoisted_3256=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"},null,-1),_hoisted_476=[_hoisted_2257,_hoisted_3256];function _sfc_render257(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1257,_hoisted_476);}var top_left_default=/* @__PURE__ */export_helper_default(_sfc_main257,[["render",_sfc_render257],["__file","top-left.vue"]]);var _sfc_main258={name:"TopRight"},_hoisted_1258={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2258=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"},null,-1),_hoisted_3257=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"},null,-1),_hoisted_477=[_hoisted_2258,_hoisted_3257];function _sfc_render258(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1258,_hoisted_477);}var top_right_default=/* @__PURE__ */export_helper_default(_sfc_main258,[["render",_sfc_render258],["__file","top-right.vue"]]);var _sfc_main259={name:"Top"},_hoisted_1259={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2259=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1),_hoisted_3258=[_hoisted_2259];function _sfc_render259(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1259,_hoisted_3258);}var top_default=/* @__PURE__ */export_helper_default(_sfc_main259,[["render",_sfc_render259],["__file","top.vue"]]);var _sfc_main260={name:"TrendCharts"},_hoisted_1260={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2260=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1),_hoisted_3259=[_hoisted_2260];function _sfc_render260(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1260,_hoisted_3259);}var trend_charts_default=/* @__PURE__ */export_helper_default(_sfc_main260,[["render",_sfc_render260],["__file","trend-charts.vue"]]);var _sfc_main261={name:"Trophy"},_hoisted_1261={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2261=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"},null,-1),_hoisted_3260=[_hoisted_2261];function _sfc_render261(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1261,_hoisted_3260);}var trophy_default=/* @__PURE__ */export_helper_default(_sfc_main261,[["render",_sfc_render261],["__file","trophy.vue"]]);var _sfc_main262={name:"TurnOff"},_hoisted_1262={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2262=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),_hoisted_3261=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),_hoisted_478=[_hoisted_2262,_hoisted_3261];function _sfc_render262(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1262,_hoisted_478);}var turn_off_default=/* @__PURE__ */export_helper_default(_sfc_main262,[["render",_sfc_render262],["__file","turn-off.vue"]]);var _sfc_main263={name:"Umbrella"},_hoisted_1263={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2263=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"},null,-1),_hoisted_3262=[_hoisted_2263];function _sfc_render263(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1263,_hoisted_3262);}var umbrella_default=/* @__PURE__ */export_helper_default(_sfc_main263,[["render",_sfc_render263],["__file","umbrella.vue"]]);var _sfc_main264={name:"Unlock"},_hoisted_1264={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2264=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),_hoisted_3263=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"},null,-1),_hoisted_479=[_hoisted_2264,_hoisted_3263];function _sfc_render264(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1264,_hoisted_479);}var unlock_default=/* @__PURE__ */export_helper_default(_sfc_main264,[["render",_sfc_render264],["__file","unlock.vue"]]);var _sfc_main265={name:"UploadFilled"},_hoisted_1265={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2265=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1),_hoisted_3264=[_hoisted_2265];function _sfc_render265(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1265,_hoisted_3264);}var upload_filled_default=/* @__PURE__ */export_helper_default(_sfc_main265,[["render",_sfc_render265],["__file","upload-filled.vue"]]);var _sfc_main266={name:"Upload"},_hoisted_1266={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2266=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),_hoisted_3265=[_hoisted_2266];function _sfc_render266(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1266,_hoisted_3265);}var upload_default=/* @__PURE__ */export_helper_default(_sfc_main266,[["render",_sfc_render266],["__file","upload.vue"]]);var _sfc_main267={name:"UserFilled"},_hoisted_1267={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2267=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1),_hoisted_3266=[_hoisted_2267];function _sfc_render267(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1267,_hoisted_3266);}var user_filled_default=/* @__PURE__ */export_helper_default(_sfc_main267,[["render",_sfc_render267],["__file","user-filled.vue"]]);var _sfc_main268={name:"User"},_hoisted_1268={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2268=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),_hoisted_3267=[_hoisted_2268];function _sfc_render268(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1268,_hoisted_3267);}var user_default=/* @__PURE__ */export_helper_default(_sfc_main268,[["render",_sfc_render268],["__file","user.vue"]]);var _sfc_main269={name:"Van"},_hoisted_1269={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2269=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"},null,-1),_hoisted_3268=[_hoisted_2269];function _sfc_render269(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1269,_hoisted_3268);}var van_default=/* @__PURE__ */export_helper_default(_sfc_main269,[["render",_sfc_render269],["__file","van.vue"]]);var _sfc_main270={name:"VideoCameraFilled"},_hoisted_1270={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2270=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"},null,-1),_hoisted_3269=[_hoisted_2270];function _sfc_render270(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1270,_hoisted_3269);}var video_camera_filled_default=/* @__PURE__ */export_helper_default(_sfc_main270,[["render",_sfc_render270],["__file","video-camera-filled.vue"]]);var _sfc_main271={name:"VideoCamera"},_hoisted_1271={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2271=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"},null,-1),_hoisted_3270=[_hoisted_2271];function _sfc_render271(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1271,_hoisted_3270);}var video_camera_default=/* @__PURE__ */export_helper_default(_sfc_main271,[["render",_sfc_render271],["__file","video-camera.vue"]]);var _sfc_main272={name:"VideoPause"},_hoisted_1272={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2272=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),_hoisted_3271=[_hoisted_2272];function _sfc_render272(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1272,_hoisted_3271);}var video_pause_default=/* @__PURE__ */export_helper_default(_sfc_main272,[["render",_sfc_render272],["__file","video-pause.vue"]]);var _sfc_main273={name:"VideoPlay"},_hoisted_1273={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2273=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),_hoisted_3272=[_hoisted_2273];function _sfc_render273(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1273,_hoisted_3272);}var video_play_default=/* @__PURE__ */export_helper_default(_sfc_main273,[["render",_sfc_render273],["__file","video-play.vue"]]);var _sfc_main274={name:"View"},_hoisted_1274={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2274=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3273=[_hoisted_2274];function _sfc_render274(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1274,_hoisted_3273);}var view_default=/* @__PURE__ */export_helper_default(_sfc_main274,[["render",_sfc_render274],["__file","view.vue"]]);var _sfc_main275={name:"WalletFilled"},_hoisted_1275={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2275=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"},null,-1),_hoisted_3274=[_hoisted_2275];function _sfc_render275(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1275,_hoisted_3274);}var wallet_filled_default=/* @__PURE__ */export_helper_default(_sfc_main275,[["render",_sfc_render275],["__file","wallet-filled.vue"]]);var _sfc_main276={name:"Wallet"},_hoisted_1276={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2276=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"},null,-1),_hoisted_3275=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_480=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),_hoisted_520=[_hoisted_2276,_hoisted_3275,_hoisted_480];function _sfc_render276(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1276,_hoisted_520);}var wallet_default=/* @__PURE__ */export_helper_default(_sfc_main276,[["render",_sfc_render276],["__file","wallet.vue"]]);var _sfc_main277={name:"WarningFilled"},_hoisted_1277={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2277=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3276=[_hoisted_2277];function _sfc_render277(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1277,_hoisted_3276);}var warning_filled_default=/* @__PURE__ */export_helper_default(_sfc_main277,[["render",_sfc_render277],["__file","warning-filled.vue"]]);var _sfc_main278={name:"Warning"},_hoisted_1278={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2278=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_3277=[_hoisted_2278];function _sfc_render278(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1278,_hoisted_3277);}var warning_default=/* @__PURE__ */export_helper_default(_sfc_main278,[["render",_sfc_render278],["__file","warning.vue"]]);var _sfc_main279={name:"Watch"},_hoisted_1279={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2279=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_hoisted_3278=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"},null,-1),_hoisted_481=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"},null,-1),_hoisted_521=[_hoisted_2279,_hoisted_3278,_hoisted_481];function _sfc_render279(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1279,_hoisted_521);}var watch_default=/* @__PURE__ */export_helper_default(_sfc_main279,[["render",_sfc_render279],["__file","watch.vue"]]);var _sfc_main280={name:"Watermelon"},_hoisted_1280={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2280=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"},null,-1),_hoisted_3279=[_hoisted_2280];function _sfc_render280(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1280,_hoisted_3279);}var watermelon_default=/* @__PURE__ */export_helper_default(_sfc_main280,[["render",_sfc_render280],["__file","watermelon.vue"]]);var _sfc_main281={name:"WindPower"},_hoisted_1281={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2281=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"},null,-1),_hoisted_3280=[_hoisted_2281];function _sfc_render281(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1281,_hoisted_3280);}var wind_power_default=/* @__PURE__ */export_helper_default(_sfc_main281,[["render",_sfc_render281],["__file","wind-power.vue"]]);var _sfc_main282={name:"ZoomIn"},_hoisted_1282={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2282=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),_hoisted_3281=[_hoisted_2282];function _sfc_render282(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1282,_hoisted_3281);}var zoom_in_default=/* @__PURE__ */export_helper_default(_sfc_main282,[["render",_sfc_render282],["__file","zoom-in.vue"]]);var _sfc_main283={name:"ZoomOut"},_hoisted_1283={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2283=/* @__PURE__ */createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("svg",_hoisted_1283,_hoisted_3282);}var zoom_out_default=/* @__PURE__ */export_helper_default(_sfc_main283,[["render",_sfc_render283],["__file","zoom-out.vue"]]);var ElementPlusIconsVue=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,AddLocation:add_location_default,Aim:aim_default,AlarmClock:alarm_clock_default,Apple:apple_default,ArrowDown:arrow_down_default,ArrowDownBold:arrow_down_bold_default,ArrowLeft:arrow_left_default,ArrowLeftBold:arrow_left_bold_default,ArrowRight:arrow_right_default,ArrowRightBold:arrow_right_bold_default,ArrowUp:arrow_up_default,ArrowUpBold:arrow_up_bold_default,Avatar:avatar_default,Back:back_default,Baseball:baseball_default,Basketball:basketball_default,Bell:bell_default,BellFilled:bell_filled_default,Bicycle:bicycle_default,Bottom:bottom_default,BottomLeft:bottom_left_default,BottomRight:bottom_right_default,Bowl:bowl_default,Box:box_default,Briefcase:briefcase_default,Brush:brush_default,BrushFilled:brush_filled_default,Burger:burger_default,Calendar:calendar_default,Camera:camera_default,CameraFilled:camera_filled_default,CaretBottom:caret_bottom_default,CaretLeft:caret_left_default,CaretRight:caret_right_default,CaretTop:caret_top_default,Cellphone:cellphone_default,ChatDotRound:chat_dot_round_default,ChatDotSquare:chat_dot_square_default,ChatLineRound:chat_line_round_default,ChatLineSquare:chat_line_square_default,ChatRound:chat_round_default,ChatSquare:chat_square_default,Check:check_default,Checked:checked_default,Cherry:cherry_default,Chicken:chicken_default,CircleCheck:circle_check_default,CircleCheckFilled:circle_check_filled_default,CircleClose:circle_close_default,CircleCloseFilled:circle_close_filled_default,CirclePlus:circle_plus_default,CirclePlusFilled:circle_plus_filled_default,Clock:clock_default,Close:close_default,CloseBold:close_bold_default,Cloudy:cloudy_default,Coffee:coffee_default,CoffeeCup:coffee_cup_default,Coin:coin_default,ColdDrink:cold_drink_default,Collection:collection_default,CollectionTag:collection_tag_default,Comment:comment_default,Compass:compass_default,Connection:connection_default,Coordinate:coordinate_default,CopyDocument:copy_document_default,Cpu:cpu_default,CreditCard:credit_card_default,Crop:crop_default,DArrowLeft:d_arrow_left_default,DArrowRight:d_arrow_right_default,DCaret:d_caret_default,DataAnalysis:data_analysis_default,DataBoard:data_board_default,DataLine:data_line_default,Delete:delete_default,DeleteFilled:delete_filled_default,DeleteLocation:delete_location_default,Dessert:dessert_default,Discount:discount_default,Dish:dish_default,DishDot:dish_dot_default,Document:document_default,DocumentAdd:document_add_default,DocumentChecked:document_checked_default,DocumentCopy:document_copy_default,DocumentDelete:document_delete_default,DocumentRemove:document_remove_default,Download:download_default,Drizzling:drizzling_default,Edit:edit_default,EditPen:edit_pen_default,Eleme:eleme_default,ElemeFilled:eleme_filled_default,ElementPlus:element_plus_default,Expand:expand_default,Failed:failed_default,Female:female_default,Files:files_default,Film:film_default,Filter:filter_default,Finished:finished_default,FirstAidKit:first_aid_kit_default,Flag:flag_default,Fold:fold_default,Folder:folder_default,FolderAdd:folder_add_default,FolderChecked:folder_checked_default,FolderDelete:folder_delete_default,FolderOpened:folder_opened_default,FolderRemove:folder_remove_default,Food:food_default,Football:football_default,ForkSpoon:fork_spoon_default,Fries:fries_default,FullScreen:full_screen_default,Goblet:goblet_default,GobletFull:goblet_full_default,GobletSquare:goblet_square_default,GobletSquareFull:goblet_square_full_default,Goods:goods_default,GoodsFilled:goods_filled_default,Grape:grape_default,Grid:grid_default,Guide:guide_default,Headset:headset_default,Help:help_default,HelpFilled:help_filled_default,Hide:hide_default,Histogram:histogram_default,HomeFilled:home_filled_default,HotWater:hot_water_default,House:house_default,IceCream:ice_cream_default,IceCreamRound:ice_cream_round_default,IceCreamSquare:ice_cream_square_default,IceDrink:ice_drink_default,IceTea:ice_tea_default,InfoFilled:info_filled_default,Iphone:iphone_default,Key:key_default,KnifeFork:knife_fork_default,Lightning:lightning_default,Link:link_default,List:list_default,Loading:loading_default,Location:location_default,LocationFilled:location_filled_default,LocationInformation:location_information_default,Lock:lock_default,Lollipop:lollipop_default,MagicStick:magic_stick_default,Magnet:magnet_default,Male:male_default,Management:management_default,MapLocation:map_location_default,Medal:medal_default,Menu:menu_default,Message:message_default,MessageBox:message_box_default,Mic:mic_default,Microphone:microphone_default,MilkTea:milk_tea_default,Minus:minus_default,Money:money_default,Monitor:monitor_default,Moon:moon_default,MoonNight:moon_night_default,More:more_default,MoreFilled:more_filled_default,MostlyCloudy:mostly_cloudy_default,Mouse:mouse_default,Mug:mug_default,Mute:mute_default,MuteNotification:mute_notification_default,NoSmoking:no_smoking_default,Notebook:notebook_default,Notification:notification_default,Odometer:odometer_default,OfficeBuilding:office_building_default,Open:open_default,Operation:operation_default,Opportunity:opportunity_default,Orange:orange_default,Paperclip:paperclip_default,PartlyCloudy:partly_cloudy_default,Pear:pear_default,Phone:phone_default,PhoneFilled:phone_filled_default,Picture:picture_default,PictureFilled:picture_filled_default,PictureRounded:picture_rounded_default,PieChart:pie_chart_default,Place:place_default,Platform:platform_default,Plus:plus_default,Pointer:pointer_default,Position:position_default,Postcard:postcard_default,Pouring:pouring_default,Present:present_default,PriceTag:price_tag_default,Printer:printer_default,Promotion:promotion_default,QuestionFilled:question_filled_default,Rank:rank_default,Reading:reading_default,ReadingLamp:reading_lamp_default,Refresh:refresh_default,RefreshLeft:refresh_left_default,RefreshRight:refresh_right_default,Refrigerator:refrigerator_default,Remove:remove_default,RemoveFilled:remove_filled_default,Right:right_default,ScaleToOriginal:scale_to_original_default,School:school_default,Scissor:scissor_default,Search:search_default,Select:select_default,Sell:sell_default,SemiSelect:semi_select_default,Service:service_default,SetUp:set_up_default,Setting:setting_default,Share:share_default,Ship:ship_default,Shop:shop_default,ShoppingBag:shopping_bag_default,ShoppingCart:shopping_cart_default,ShoppingCartFull:shopping_cart_full_default,Smoking:smoking_default,Soccer:soccer_default,SoldOut:sold_out_default,Sort:sort_default,SortDown:sort_down_default,SortUp:sort_up_default,Stamp:stamp_default,Star:star_default,StarFilled:star_filled_default,Stopwatch:stopwatch_default,SuccessFilled:success_filled_default,Sugar:sugar_default,Suitcase:suitcase_default,Sunny:sunny_default,Sunrise:sunrise_default,Sunset:sunset_default,Switch:switch_default,SwitchButton:switch_button_default,TakeawayBox:takeaway_box_default,Ticket:ticket_default,Tickets:tickets_default,Timer:timer_default,ToiletPaper:toilet_paper_default,Tools:tools_default,Top:top_default,TopLeft:top_left_default,TopRight:top_right_default,TrendCharts:trend_charts_default,Trophy:trophy_default,TurnOff:turn_off_default,Umbrella:umbrella_default,Unlock:unlock_default,Upload:upload_default,UploadFilled:upload_filled_default,User:user_default,UserFilled:user_filled_default,Van:van_default,VideoCamera:video_camera_default,VideoCameraFilled:video_camera_filled_default,VideoPause:video_pause_default,VideoPlay:video_play_default,View:view_default,Wallet:wallet_default,WalletFilled:wallet_filled_default,Warning:warning_default,WarningFilled:warning_filled_default,Watch:watch_default,Watermelon:watermelon_default,WindPower:wind_power_default,ZoomIn:zoom_in_default,ZoomOut:zoom_out_default},Symbol.toStringTag,{value:'Module'}));exports('O',ElementPlusIconsVue);var epPropKey="__epPropKey";var definePropType=function definePropType(val){return val;};var isEpProp=function isEpProp(val){return isObject$2(val)&&!!val[epPropKey];};var buildProp=function buildProp(prop,key){if(!isObject$2(prop)||isEpProp(prop))return prop;var values=prop.values,required=prop.required,defaultValue=prop.default,type=prop.type,validator=prop.validator;var _validator=values||validator?function(val){var valid=false;var allowedValues=[];if(values){allowedValues=Array.from(values);if(hasOwn$2(prop,"default")){allowedValues.push(defaultValue);}valid||(valid=allowedValues.includes(val));}if(validator)valid||(valid=validator(val));if(!valid&&allowedValues.length>0){var allowValuesText=_toConsumableArray2(new Set(allowedValues)).map(function(value){return JSON.stringify(value);}).join(", ");warn("Invalid prop: validation failed".concat(key?" for prop \"".concat(key,"\""):"",". Expected one of [").concat(allowValuesText,"], got value ").concat(JSON.stringify(val),"."));}return valid;}:void 0;var epProp=_defineProperty2({type:type,required:!!required,validator:_validator},epPropKey,true);if(hasOwn$2(prop,"default"))epProp.default=defaultValue;return epProp;};var buildProps=function buildProps(props){return fromPairs(Object.entries(props).map(function(_ref44){var _ref45=_slicedToArray(_ref44,2),key=_ref45[0],option=_ref45[1];return[key,buildProp(option,key)];}));};var iconPropType=definePropType([String,Object,Function]);var CloseComponents={Close:close_default};var TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default};var TypeComponentsMap={success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default};var ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default};var withInstall=function withInstall(main,extra){main.install=function(app){for(var _i43=0,_arr2=[main].concat(_toConsumableArray2(Object.values(extra!=null?extra:{})));_i43<_arr2.length;_i43++){var comp=_arr2[_i43];app.component(comp.name,comp);}};if(extra){for(var _i44=0,_Object$entries=Object.entries(extra);_i44<_Object$entries.length;_i44++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i44],2),key=_Object$entries$_i[0],comp=_Object$entries$_i[1];main[key]=comp;}}return main;};var withInstallFunction=function withInstallFunction(fn,name){fn.install=function(app){fn._context=app._context;app.config.globalProperties[name]=fn;};return fn;};var withNoopInstall=function withNoopInstall(component){component.install=NOOP;return component;};var composeRefs=function composeRefs(){for(var _len13=arguments.length,refs=new Array(_len13),_key20=0;_key20<_len13;_key20++){refs[_key20]=arguments[_key20];}return function(el){refs.forEach(function(ref){if(isFunction$1(ref)){ref(el);}else{ref.value=el;}});};};var EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};var datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"];var UPDATE_MODEL_EVENT="update:modelValue";var CHANGE_EVENT="change";var componentSizes=["","default","small","large"];var componentSizeMap={large:40,default:32,small:24};var getComponentSize=function getComponentSize(size){return componentSizeMap[size||"default"];};var isValidComponentSize=function isValidComponentSize(val){return[""].concat(componentSizes).includes(val);};var PatchFlags=/* @__PURE__ */function(PatchFlags2){PatchFlags2[PatchFlags2["TEXT"]=1]="TEXT";PatchFlags2[PatchFlags2["CLASS"]=2]="CLASS";PatchFlags2[PatchFlags2["STYLE"]=4]="STYLE";PatchFlags2[PatchFlags2["PROPS"]=8]="PROPS";PatchFlags2[PatchFlags2["FULL_PROPS"]=16]="FULL_PROPS";PatchFlags2[PatchFlags2["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS";PatchFlags2[PatchFlags2["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT";PatchFlags2[PatchFlags2["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT";PatchFlags2[PatchFlags2["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT";PatchFlags2[PatchFlags2["NEED_PATCH"]=512]="NEED_PATCH";PatchFlags2[PatchFlags2["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS";PatchFlags2[PatchFlags2["HOISTED"]=-1]="HOISTED";PatchFlags2[PatchFlags2["BAIL"]=-2]="BAIL";return PatchFlags2;}(PatchFlags||{});var castArray=function castArray(arr){if(!arr&&arr!==0)return[];return Array.isArray(arr)?arr:[arr];};var isFirefox=function isFirefox(){return isClient&&/firefox/i.test(window.navigator.userAgent);};var isKorean=function isKorean(text){return /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(text);};var generateId=function generateId(){return Math.floor(Math.random()*1e4);};var mutable=function mutable(val){return val;};var DEFAULT_EXCLUDE_KEYS=["class","style"];var LISTENER_PREFIX=/^on[A-Z]/;var useAttrs=function useAttrs(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _params$excludeListen=params.excludeListeners,excludeListeners=_params$excludeListen===void 0?false:_params$excludeListen,excludeKeys=params.excludeKeys;var allExcludeKeys=computed(function(){return((excludeKeys==null?void 0:excludeKeys.value)||[]).concat(DEFAULT_EXCLUDE_KEYS);});var instance=getCurrentInstance();if(!instance){return computed(function(){return{};});}return computed(function(){var _a;return fromPairs(Object.entries((_a=instance.proxy)==null?void 0:_a.$attrs).filter(function(_ref46){var _ref47=_slicedToArray(_ref46,1),key=_ref47[0];return!allExcludeKeys.value.includes(key)&&!(excludeListeners&&LISTENER_PREFIX.test(key));}));});};var buttonGroupContextKey=Symbol("buttonGroupContextKey");var carouselContextKey=Symbol("carouselContextKey");var configProviderContextKey=Symbol();var dialogInjectionKey=Symbol("dialogInjectionKey");var formContextKey=Symbol("formContextKey");var formItemContextKey=Symbol("formItemContextKey");var elPaginationKey=Symbol("elPaginationKey");var radioGroupKey=Symbol("radioGroupKey");var rowContextKey=Symbol("rowContextKey");var scrollbarContextKey=Symbol("scrollbarContextKey");var tabsRootContextKey=Symbol("tabsRootContextKey");var uploadContextKey=Symbol("uploadContextKey");var POPPER_INJECTION_KEY=Symbol("popper");var POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent");var ROOT_PICKER_INJECTION_KEY=Symbol();var useProp=function useProp(name){var vm=getCurrentInstance();return computed(function(){var _a,_b;return(_b=((_a=vm.proxy)==null?void 0:_a.$props)[name])!=null?_b:void 0;});};var globalConfig=ref();function useGlobalConfig(key){var defaultValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:void 0;var config=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;if(key){return computed(function(){var _a,_b;return(_b=(_a=config.value)==null?void 0:_a[key])!=null?_b:defaultValue;});}else{return config;}}var provideGlobalConfig=function provideGlobalConfig(config,app){var global=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var _a;var inSetup=!!getCurrentInstance();var oldConfig=inSetup?useGlobalConfig():void 0;var provideFn=(_a=app==null?void 0:app.provide)!=null?_a:inSetup?provide:void 0;if(!provideFn){return;}var context=computed(function(){var cfg=unref(config);if(!(oldConfig==null?void 0:oldConfig.value))return cfg;return mergeConfig(oldConfig.value,cfg);});provideFn(configProviderContextKey,context);if(global||!globalConfig.value){globalConfig.value=context.value;}return context;};var mergeConfig=function mergeConfig(a,b){var _a;var keys=_toConsumableArray2(/* @__PURE__ */new Set([].concat(_toConsumableArray2(keysOf(a)),_toConsumableArray2(keysOf(b)))));var obj={};var _iterator6=_createForOfIteratorHelper(keys),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var key=_step6.value;obj[key]=(_a=b[key])!=null?_a:a[key];}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}return obj;};var useSizeProp=buildProp({type:String,values:componentSizes,required:false});var useSize=function useSize(fallback){var ignore=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var emptyRef=ref(void 0);var size=ignore.prop?emptyRef:useProp("size");var globalConfig=ignore.global?emptyRef:useGlobalConfig("size");var form=ignore.form?{size:void 0}:inject(formContextKey,void 0);var formItem=ignore.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(function(){return size.value||unref(fallback)||(formItem==null?void 0:formItem.size)||(form==null?void 0:form.size)||globalConfig.value||"";});};var useDisabled$1=function useDisabled$1(fallback){var disabled=useProp("disabled");var form=inject(formContextKey,void 0);return computed(function(){return disabled.value||unref(fallback)||(form==null?void 0:form.disabled)||false;});};var useDeprecated=function useDeprecated(_ref48,condition){var from=_ref48.from,replacement=_ref48.replacement,scope=_ref48.scope,version=_ref48.version,ref=_ref48.ref,_ref48$type=_ref48.type,type=_ref48$type===void 0?"API":_ref48$type;watch(function(){return unref(condition);},function(val){},{immediate:true});};var useDraggable=function useDraggable(targetRef,dragRef,draggable){var transform={offsetX:0,offsetY:0};var onMousedown=function onMousedown(e){var downX=e.clientX;var downY=e.clientY;var _transform=transform,offsetX=_transform.offsetX,offsetY=_transform.offsetY;var targetRect=targetRef.value.getBoundingClientRect();var targetLeft=targetRect.left;var targetTop=targetRect.top;var targetWidth=targetRect.width;var targetHeight=targetRect.height;var clientWidth=document.documentElement.clientWidth;var clientHeight=document.documentElement.clientHeight;var minLeft=-targetLeft+offsetX;var minTop=-targetTop+offsetY;var maxLeft=clientWidth-targetLeft-targetWidth+offsetX;var maxTop=clientHeight-targetTop-targetHeight+offsetY;var onMousemove=function onMousemove(e2){var moveX=Math.min(Math.max(offsetX+e2.clientX-downX,minLeft),maxLeft);var moveY=Math.min(Math.max(offsetY+e2.clientY-downY,minTop),maxTop);transform={offsetX:moveX,offsetY:moveY};targetRef.value.style.transform="translate(".concat(addUnit(moveX),", ").concat(addUnit(moveY),")");};var onMouseup=function onMouseup(){document.removeEventListener("mousemove",onMousemove);document.removeEventListener("mouseup",onMouseup);};document.addEventListener("mousemove",onMousemove);document.addEventListener("mouseup",onMouseup);};var onDraggable=function onDraggable(){if(dragRef.value&&targetRef.value){dragRef.value.addEventListener("mousedown",onMousedown);}};var offDraggable=function offDraggable(){if(dragRef.value&&targetRef.value){dragRef.value.removeEventListener("mousedown",onMousedown);}};onMounted(function(){watchEffect(function(){if(draggable.value){onDraggable();}else{offDraggable();}});});onBeforeUnmount(function(){offDraggable();});};var useFocus=function useFocus(el){return{focus:function focus(){var _a,_b;(_b=(_a=el.value)==null?void 0:_a.focus)==null?void 0:_b.call(_a);}};};var defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0};var ID_INJECTION_KEY=Symbol("elIdInjection");var useId=function useId(deterministicId){var idInjection=inject(ID_INJECTION_KEY,defaultIdInjection);var idRef=computed(function(){return unref(deterministicId)||"el-id-".concat(idInjection.prefix,"-").concat(idInjection.current++);});return idRef;};var useFormItem=function useFormItem(){var form=inject(formContextKey,void 0);var formItem=inject(formItemContextKey,void 0);return{form:form,formItem:formItem};};var useFormItemInputId=function useFormItemInputId(props,_ref49){var formItemContext=_ref49.formItemContext,disableIdGeneration=_ref49.disableIdGeneration,disableIdManagement=_ref49.disableIdManagement;if(!disableIdGeneration){disableIdGeneration=ref(false);}if(!disableIdManagement){disableIdManagement=ref(false);}var inputId=ref();var idUnwatch=void 0;var isLabeledByFormItem=computed(function(){var _a;return!!(!props.label&&formItemContext&&formItemContext.inputIds&&((_a=formItemContext.inputIds)==null?void 0:_a.length)<=1);});onMounted(function(){idUnwatch=watch([toRef(props,"id"),disableIdGeneration],function(_ref50){var _ref51=_slicedToArray(_ref50,2),id=_ref51[0],disableIdGeneration2=_ref51[1];var newId=id!=null?id:!disableIdGeneration2?useId().value:void 0;if(newId!==inputId.value){if(formItemContext==null?void 0:formItemContext.removeInputId){inputId.value&&formItemContext.removeInputId(inputId.value);if(!(disableIdManagement==null?void 0:disableIdManagement.value)&&!disableIdGeneration2&&newId){formItemContext.addInputId(newId);}}inputId.value=newId;}},{immediate:true});});onUnmounted(function(){idUnwatch&&idUnwatch();if(formItemContext==null?void 0:formItemContext.removeInputId){inputId.value&&formItemContext.removeInputId(inputId.value);}});return{isLabeledByFormItem:isLabeledByFormItem,inputId:inputId};};var English={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};var buildTranslator=function buildTranslator(locale){return function(path,option){return translate(path,option,unref(locale));};};var translate=function translate(path,option,locale){return get(locale,path,path).replace(/\{(\w+)\}/g,function(_,key){var _a;return"".concat((_a=option==null?void 0:option[key])!=null?_a:"{".concat(key,"}"));});};var buildLocaleContext=function buildLocaleContext(locale){var lang=computed(function(){return unref(locale).name;});var localeRef=isRef(locale)?locale:ref(locale);return{lang:lang,locale:localeRef,t:buildTranslator(locale)};};var useLocale=function useLocale(){var locale=useGlobalConfig("locale");return buildLocaleContext(computed(function(){return locale.value||English;}));};var useLockscreen=function useLockscreen(trigger){if(!isRef(trigger)){throwError("[useLockscreen]","You need to pass a ref param to this function");}if(!isClient||hasClass(document.body,"el-popup-parent--hidden")){return;}var scrollBarWidth=0;var withoutHiddenClass=false;var bodyPaddingRight="0";var computedBodyPaddingRight=0;var cleanup=function cleanup(){removeClass(document.body,"el-popup-parent--hidden");if(withoutHiddenClass){document.body.style.paddingRight=bodyPaddingRight;}};watch(trigger,function(val){if(!val){cleanup();return;}withoutHiddenClass=!hasClass(document.body,"el-popup-parent--hidden");if(withoutHiddenClass){bodyPaddingRight=document.body.style.paddingRight;computedBodyPaddingRight=Number.parseInt(getStyle(document.body,"paddingRight"),10);}scrollBarWidth=getScrollBarWidth();var bodyHasOverflow=document.documentElement.clientHeight<document.body.scrollHeight;var bodyOverflowY=getStyle(document.body,"overflowY");if(scrollBarWidth>0&&(bodyHasOverflow||bodyOverflowY==="scroll")&&withoutHiddenClass){document.body.style.paddingRight="".concat(computedBodyPaddingRight+scrollBarWidth,"px");}addClass(document.body,"el-popup-parent--hidden");});onScopeDispose(function(){return cleanup();});};var _prop=buildProp({type:definePropType(Boolean),default:null});var _event=buildProp({type:definePropType(Function)});var createModelToggleComposable=function createModelToggleComposable(name){var _useModelToggleProps;var updateEventKey="update:".concat(name);var updateEventKeyRaw="onUpdate:".concat(name);var useModelToggleEmits2=[updateEventKey];var useModelToggleProps2=(_useModelToggleProps={},_defineProperty2(_useModelToggleProps,name,_prop),_defineProperty2(_useModelToggleProps,updateEventKeyRaw,_event),_useModelToggleProps);var useModelToggle2=function useModelToggle2(_ref52){var indicator=_ref52.indicator,toggleReason=_ref52.toggleReason,shouldHideWhenRouteChanges=_ref52.shouldHideWhenRouteChanges,shouldProceed=_ref52.shouldProceed,onShow=_ref52.onShow,onHide=_ref52.onHide;var instance=getCurrentInstance();var emit=instance.emit;var props=instance.props;var hasUpdateHandler=computed(function(){return isFunction$1(props[updateEventKeyRaw]);});var isModelBindingAbsent=computed(function(){return props[name]===null;});var doShow=function doShow(event){if(indicator.value===true){return;}indicator.value=true;if(toggleReason){toggleReason.value=event;}if(isFunction$1(onShow)){onShow(event);}};var doHide=function doHide(event){if(indicator.value===false){return;}indicator.value=false;if(toggleReason){toggleReason.value=event;}if(isFunction$1(onHide)){onHide(event);}};var show=function show(event){if(props.disabled===true||isFunction$1(shouldProceed)&&!shouldProceed())return;var shouldEmit=hasUpdateHandler.value&&isClient;if(shouldEmit){emit(updateEventKey,true);}if(isModelBindingAbsent.value||!shouldEmit){doShow(event);}};var hide=function hide(event){if(props.disabled===true||!isClient)return;var shouldEmit=hasUpdateHandler.value&&isClient;if(shouldEmit){emit(updateEventKey,false);}if(isModelBindingAbsent.value||!shouldEmit){doHide(event);}};var onChange=function onChange(val){if(!isBoolean$1(val))return;if(props.disabled&&val){if(hasUpdateHandler.value){emit(updateEventKey,false);}}else if(indicator.value!==val){if(val){doShow();}else{doHide();}}};var toggle=function toggle(){if(indicator.value){hide();}else{show();}};watch(function(){return props[name];},onChange);if(shouldHideWhenRouteChanges&&instance.appContext.config.globalProperties.$route!==void 0){watch(function(){return _objectSpread({},instance.proxy.$route);},function(){if(shouldHideWhenRouteChanges.value&&indicator.value){hide();}});}onMounted(function(){onChange(props[name]);});return{hide:hide,show:show,toggle:toggle};};return{useModelToggle:useModelToggle2,useModelToggleProps:useModelToggleProps2,useModelToggleEmits:useModelToggleEmits2};};var useRestoreActive=function useRestoreActive(toggle,initialFocus){var previousActive;watch(function(){return toggle.value;},function(val){var _a,_b;if(val){previousActive=document.activeElement;if(isRef(initialFocus)){(_b=(_a=initialFocus.value).focus)==null?void 0:_b.call(_a);}}else{{previousActive.focus();}}});};var useSameTarget=function useSameTarget(handleClick){if(!handleClick){return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};}var mousedownTarget=false;var mouseupTarget=false;var onClick=function onClick(e){if(mousedownTarget&&mouseupTarget){handleClick(e);}mousedownTarget=mouseupTarget=false;};var onMousedown=function onMousedown(e){mousedownTarget=e.target===e.currentTarget;};var onMouseup=function onMouseup(e){mouseupTarget=e.target===e.currentTarget;};return{onClick:onClick,onMousedown:onMousedown,onMouseup:onMouseup};};var useThrottleRender=function useThrottleRender(loading){var throttle=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(throttle===0)return loading;var throttled=ref(false);var timeoutHandle=0;var dispatchThrottling=function dispatchThrottling(){if(timeoutHandle){clearTimeout(timeoutHandle);}timeoutHandle=window.setTimeout(function(){throttled.value=loading.value;},throttle);};onMounted(dispatchThrottling);watch(function(){return loading.value;},function(val){if(val){dispatchThrottling();}else{throttled.value=val;}});return throttled;};function useTimeout(){var timeoutHandle;var registerTimeout=function registerTimeout(fn,delay){cancelTimeout();timeoutHandle=window.setTimeout(fn,delay);};var cancelTimeout=function cancelTimeout(){return window.clearTimeout(timeoutHandle);};tryOnScopeDispose(function(){return cancelTimeout();});return{registerTimeout:registerTimeout,cancelTimeout:cancelTimeout};}var registeredEscapeHandlers=[];var useEscapeKeydown=function useEscapeKeydown(handler){var cachedHandler=function cachedHandler(e){var event=e;if(event.key===EVENT_CODE.esc){registeredEscapeHandlers.forEach(function(registeredHandler){return registeredHandler(event);});}};onMounted(function(){if(registeredEscapeHandlers.length===0){document.addEventListener("keydown",cachedHandler);}if(isClient)registeredEscapeHandlers.push(handler);});onBeforeUnmount(function(){registeredEscapeHandlers=registeredEscapeHandlers.filter(function(registeredHandler){return registeredHandler!==handler;});if(registeredEscapeHandlers.length===0){if(isClient)document.removeEventListener("keydown",cachedHandler);}});};var cachedContainer;var POPPER_CONTAINER_ID="el-popper-container-".concat(generateId());var POPPER_CONTAINER_SELECTOR="#".concat(POPPER_CONTAINER_ID);var createContainer=function createContainer(){var container=document.createElement("div");container.id=POPPER_CONTAINER_ID;document.body.appendChild(container);return container;};var usePopperContainer=function usePopperContainer(){onBeforeMount(function(){if(!isClient)return;if(!cachedContainer||!document.body.querySelector(POPPER_CONTAINER_SELECTOR)){cachedContainer=createContainer();}});};var useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}});var useDelayedToggle=function useDelayedToggle(_ref53){var showAfter=_ref53.showAfter,hideAfter=_ref53.hideAfter,open=_ref53.open,close=_ref53.close;var _useTimeout=useTimeout(),registerTimeout=_useTimeout.registerTimeout;var onOpen=function onOpen(event){registerTimeout(function(){open(event);},unref(showAfter));};var onClose=function onClose(event){registerTimeout(function(){close(event);},unref(hideAfter));};return{onOpen:onOpen,onClose:onClose};};var FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef");var useForwardRef=function useForwardRef(forwardRef){var setForwardRef=function setForwardRef(el){forwardRef.value=el;};provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:setForwardRef});};var useForwardRefDirective=function useForwardRefDirective(setForwardRef){return{mounted:function mounted(el){setForwardRef(el);},updated:function updated(el){setForwardRef(el);},unmounted:function unmounted(){setForwardRef(null);}};};var defaultNamespace="el";var statePrefix="is-";var _bem=function _bem(namespace,block,blockSuffix,element,modifier){var cls="".concat(namespace,"-").concat(block);if(blockSuffix){cls+="-".concat(blockSuffix);}if(element){cls+="__".concat(element);}if(modifier){cls+="--".concat(modifier);}return cls;};var useNamespace=function useNamespace(block){var globalConfig=useGlobalConfig("namespace");var namespace=computed(function(){return globalConfig.value||defaultNamespace;});var b=function b(){var blockSuffix=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return _bem(unref(namespace),block,blockSuffix,"","");};var e=function e(element){return element?_bem(unref(namespace),block,"",element,""):"";};var m=function m(modifier){return modifier?_bem(unref(namespace),block,"","",modifier):"";};var be=function be(blockSuffix,element){return blockSuffix&&element?_bem(unref(namespace),block,blockSuffix,element,""):"";};var em=function em(element,modifier){return element&&modifier?_bem(unref(namespace),block,"",element,modifier):"";};var bm=function bm(blockSuffix,modifier){return blockSuffix&&modifier?_bem(unref(namespace),block,blockSuffix,"",modifier):"";};var bem=function bem(blockSuffix,element,modifier){return blockSuffix&&element&&modifier?_bem(unref(namespace),block,blockSuffix,element,modifier):"";};var is=function is(name){var state=(arguments.length<=1?0:arguments.length-1)>=1?arguments.length<=1?undefined:arguments[1]:true;return name&&state?"".concat(statePrefix).concat(name):"";};var cssVar=function cssVar(object){var styles={};for(var key in object){styles["--".concat(namespace.value,"-").concat(key)]=object[key];}return styles;};var cssVarBlock=function cssVarBlock(object){var styles={};for(var key in object){styles["--".concat(namespace.value,"-").concat(block,"-").concat(key)]=object[key];}return styles;};var cssVarName=function cssVarName(name){return"--".concat(namespace.value,"-").concat(name);};var cssVarBlockName=function cssVarBlockName(name){return"--".concat(namespace.value,"-").concat(block,"-").concat(name);};return{namespace:namespace,b:b,e:e,m:m,be:be,em:em,bm:bm,bem:bem,is:is,cssVar:cssVar,cssVarName:cssVarName,cssVarBlock:cssVarBlock,cssVarBlockName:cssVarBlockName};};var zIndex=ref(0);var useZIndex=function useZIndex(){var initialZIndex=useGlobalConfig("zIndex",2e3);var currentZIndex=computed(function(){return initialZIndex.value+zIndex.value;});var nextZIndex=function nextZIndex(){zIndex.value++;return currentZIndex.value;};return{initialZIndex:initialZIndex,currentZIndex:currentZIndex,nextZIndex:nextZIndex};};function useCursor(input){var selectionRef=ref();function recordCursor(){if(input.value==void 0)return;var _input$value=input.value,selectionStart=_input$value.selectionStart,selectionEnd=_input$value.selectionEnd,value=_input$value.value;if(selectionStart==null||selectionEnd==null)return;var beforeTxt=value.slice(0,Math.max(0,selectionStart));var afterTxt=value.slice(Math.max(0,selectionEnd));selectionRef.value={selectionStart:selectionStart,selectionEnd:selectionEnd,value:value,beforeTxt:beforeTxt,afterTxt:afterTxt};}function setCursor(){if(input.value==void 0||selectionRef.value==void 0)return;var value=input.value.value;var _selectionRef$value=selectionRef.value,beforeTxt=_selectionRef$value.beforeTxt,afterTxt=_selectionRef$value.afterTxt,selectionStart=_selectionRef$value.selectionStart;if(beforeTxt==void 0||afterTxt==void 0||selectionStart==void 0)return;var startPos=value.length;if(value.endsWith(afterTxt)){startPos=value.length-afterTxt.length;}else if(value.startsWith(beforeTxt)){startPos=beforeTxt.length;}else{var beforeLastChar=beforeTxt[selectionStart-1];var newIndex=value.indexOf(beforeLastChar,selectionStart-1);if(newIndex!==-1){startPos=newIndex+1;}}input.value.setSelectionRange(startPos,startPos);}return[recordCursor,setCursor];}var _export_sfc$1=function _export_sfc$1(sfc,props){var target=sfc.__vccOpts||sfc;var _iterator7=_createForOfIteratorHelper(props),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),key=_step7$value[0],val=_step7$value[1];target[key]=val;}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}return target;};var iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}});var __default__$I={name:"ElIcon",inheritAttrs:false};var _sfc_main$1a=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$I),{},{props:iconProps,setup:function setup(__props){var props=__props;var ns=useNamespace("icon");var style=computed(function(){if(!props.size&&!props.color)return{};return{fontSize:isUndefined(props.size)?void 0:addUnit(props.size),"--color":props.color};});return function(_ctx,_cache){return openBlock(),createElementBlock("i",mergeProps({class:unref(ns).b(),style:unref(style)},_ctx.$attrs),[renderSlot(_ctx.$slots,"default")],16);};}}));var Icon=/* @__PURE__ */_export_sfc$1(_sfc_main$1a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);var ElIcon=exports('l',withInstall(Icon));var hiddenTextarea=void 0;var HIDDEN_STYLE="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n";var CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(targetElement){var style=window.getComputedStyle(targetElement);var boxSizing=style.getPropertyValue("box-sizing");var paddingSize=Number.parseFloat(style.getPropertyValue("padding-bottom"))+Number.parseFloat(style.getPropertyValue("padding-top"));var borderSize=Number.parseFloat(style.getPropertyValue("border-bottom-width"))+Number.parseFloat(style.getPropertyValue("border-top-width"));var contextStyle=CONTEXT_STYLE.map(function(name){return"".concat(name,":").concat(style.getPropertyValue(name));}).join(";");return{contextStyle:contextStyle,paddingSize:paddingSize,borderSize:borderSize,boxSizing:boxSizing};}function calcTextareaHeight(targetElement){var minRows=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var maxRows=arguments.length>2?arguments[2]:undefined;var _a;if(!hiddenTextarea){hiddenTextarea=document.createElement("textarea");document.body.appendChild(hiddenTextarea);}var _calculateNodeStyling=calculateNodeStyling(targetElement),paddingSize=_calculateNodeStyling.paddingSize,borderSize=_calculateNodeStyling.borderSize,boxSizing=_calculateNodeStyling.boxSizing,contextStyle=_calculateNodeStyling.contextStyle;hiddenTextarea.setAttribute("style","".concat(contextStyle,";").concat(HIDDEN_STYLE));hiddenTextarea.value=targetElement.value||targetElement.placeholder||"";var height=hiddenTextarea.scrollHeight;var result={};if(boxSizing==="border-box"){height=height+borderSize;}else if(boxSizing==="content-box"){height=height-paddingSize;}hiddenTextarea.value="";var singleRowHeight=hiddenTextarea.scrollHeight-paddingSize;if(isNumber$1(minRows)){var minHeight=singleRowHeight*minRows;if(boxSizing==="border-box"){minHeight=minHeight+paddingSize+borderSize;}height=Math.max(minHeight,height);result.minHeight="".concat(minHeight,"px");}if(isNumber$1(maxRows)){var maxHeight=singleRowHeight*maxRows;if(boxSizing==="border-box"){maxHeight=maxHeight+paddingSize+borderSize;}height=Math.min(maxHeight,height);}result.height="".concat(height,"px");(_a=hiddenTextarea.parentNode)==null?void 0:_a.removeChild(hiddenTextarea);hiddenTextarea=void 0;return result;}var inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:false},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:false},clearable:{type:Boolean,default:false},showPassword:{type:Boolean,default:false},showWordLimit:{type:Boolean,default:false},suffixIcon:{type:iconPropType,default:""},prefixIcon:{type:iconPropType,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:true},inputStyle:{type:definePropType([Object,Array,String]),default:function _default(){return mutable({});}}});var inputEmits=(_inputEmits={},_defineProperty2(_inputEmits,UPDATE_MODEL_EVENT,function(value){return isString$2(value);}),_defineProperty2(_inputEmits,"input",function input(value){return isString$2(value);}),_defineProperty2(_inputEmits,"change",function change(value){return isString$2(value);}),_defineProperty2(_inputEmits,"focus",function focus(evt){return evt instanceof FocusEvent;}),_defineProperty2(_inputEmits,"blur",function blur(evt){return evt instanceof FocusEvent;}),_defineProperty2(_inputEmits,"clear",function clear(){return true;}),_defineProperty2(_inputEmits,"mouseleave",function mouseleave(evt){return evt instanceof MouseEvent;}),_defineProperty2(_inputEmits,"mouseenter",function mouseenter(evt){return evt instanceof MouseEvent;}),_defineProperty2(_inputEmits,"keydown",function keydown(evt){return evt instanceof Event;}),_defineProperty2(_inputEmits,"compositionstart",function compositionstart(evt){return evt instanceof CompositionEvent;}),_defineProperty2(_inputEmits,"compositionupdate",function compositionupdate(evt){return evt instanceof CompositionEvent;}),_defineProperty2(_inputEmits,"compositionend",function compositionend(evt){return evt instanceof CompositionEvent;}),_inputEmits);var _hoisted_1$D=["role"];var _hoisted_2$n=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"];var _hoisted_3$d=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];var __default__$H={name:"ElInput",inheritAttrs:false};var _sfc_main$19=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$H),{},{props:inputProps,emits:inputEmits,setup:function setup(__props,_ref54){var expose=_ref54.expose,emit=_ref54.emit;var props=__props;var PENDANT_MAP={suffix:"append",prefix:"prepend"};var instance=getCurrentInstance();var rawAttrs=useAttrs$1();var slots=useSlots();var containerAttrs=computed(function(){var comboBoxAttrs={};if(props.containerRole==="combobox"){comboBoxAttrs["aria-haspopup"]=rawAttrs["aria-haspopup"];comboBoxAttrs["aria-owns"]=rawAttrs["aria-owns"];comboBoxAttrs["aria-expanded"]=rawAttrs["aria-expanded"];}return comboBoxAttrs;});var attrs=useAttrs({excludeKeys:computed(function(){return Object.keys(containerAttrs.value);})});var _useFormItem=useFormItem(),form=_useFormItem.form,formItem=_useFormItem.formItem;var _useFormItemInputId=useFormItemInputId(props,{formItemContext:formItem}),inputId=_useFormItemInputId.inputId;var inputSize=useSize();var inputDisabled=useDisabled$1();var nsInput=useNamespace("input");var nsTextarea=useNamespace("textarea");var input=shallowRef();var textarea=shallowRef();var focused=ref(false);var hovering=ref(false);var isComposing=ref(false);var passwordVisible=ref(false);var countStyle=ref();var textareaCalcStyle=shallowRef(props.inputStyle);var _ref=computed(function(){return input.value||textarea.value;});var needStatusIcon=computed(function(){var _a;return(_a=form==null?void 0:form.statusIcon)!=null?_a:false;});var validateState=computed(function(){return(formItem==null?void 0:formItem.validateState)||"";});var validateIcon=computed(function(){return ValidateComponentsMap[validateState.value];});var passwordIcon=computed(function(){return passwordVisible.value?view_default:hide_default;});var containerStyle=computed(function(){return[rawAttrs.style,props.inputStyle];});var textareaStyle=computed(function(){return[props.inputStyle,textareaCalcStyle.value,{resize:props.resize}];});var nativeInputValue=computed(function(){return isNil(props.modelValue)?"":String(props.modelValue);});var showClear=computed(function(){return props.clearable&&!inputDisabled.value&&!props.readonly&&!!nativeInputValue.value&&(focused.value||hovering.value);});var showPwdVisible=computed(function(){return props.showPassword&&!inputDisabled.value&&!props.readonly&&!!nativeInputValue.value&&(!!nativeInputValue.value||focused.value);});var isWordLimitVisible=computed(function(){return props.showWordLimit&&!!attrs.value.maxlength&&(props.type==="text"||props.type==="textarea")&&!inputDisabled.value&&!props.readonly&&!props.showPassword;});var textLength=computed(function(){return Array.from(nativeInputValue.value).length;});var inputExceed=computed(function(){return!!isWordLimitVisible.value&&textLength.value>Number(attrs.value.maxlength);});var suffixVisible=computed(function(){return!!slots.suffix||!!props.suffixIcon||showClear.value||props.showPassword||isWordLimitVisible.value||!!validateState.value&&needStatusIcon.value;});var _useCursor=useCursor(input),_useCursor2=_slicedToArray(_useCursor,2),recordCursor=_useCursor2[0],setCursor=_useCursor2[1];useResizeObserver(textarea,function(entries){if(!isWordLimitVisible.value||props.resize!=="both")return;var entry=entries[0];var width=entry.contentRect.width;countStyle.value={right:"calc(100% - ".concat(width+15+6,"px)")};});var resizeTextarea=function resizeTextarea(){var type=props.type,autosize=props.autosize;if(!isClient||type!=="textarea")return;if(autosize){var minRows=isObject$2(autosize)?autosize.minRows:void 0;var maxRows=isObject$2(autosize)?autosize.maxRows:void 0;textareaCalcStyle.value=_objectSpread({},calcTextareaHeight(textarea.value,minRows,maxRows));}else{textareaCalcStyle.value={minHeight:calcTextareaHeight(textarea.value).minHeight};}};var setNativeInputValue=function setNativeInputValue(){var input2=_ref.value;if(!input2||input2.value===nativeInputValue.value)return;input2.value=nativeInputValue.value;};var calcIconOffset=function calcIconOffset(place){var el=instance.vnode.el;if(!el)return;var elList=Array.from(el.querySelectorAll(".".concat(nsInput.e(place))));var target=elList.find(function(item){return item.parentNode===el;});if(!target)return;var pendant=PENDANT_MAP[place];if(slots[pendant]){target.style.transform="translateX(".concat(place==="suffix"?"-":"").concat(el.querySelector(".".concat(nsInput.be("group",pendant))).offsetWidth,"px)");}else{target.removeAttribute("style");}};var updateIconOffset=function updateIconOffset(){calcIconOffset("prefix");calcIconOffset("suffix");};var handleInput=/*#__PURE__*/function(){var _ref55=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(event){var value;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:recordCursor();value=event.target.value;if(props.formatter){value=props.parser?props.parser(value):value;value=props.formatter(value);}if(!isComposing.value){_context.next=5;break;}return _context.abrupt("return");case 5:if(!(value===nativeInputValue.value)){_context.next=7;break;}return _context.abrupt("return");case 7:emit(UPDATE_MODEL_EVENT,value);emit("input",value);_context.next=11;return nextTick();case 11:setNativeInputValue();setCursor();case 13:case"end":return _context.stop();}}},_callee);}));return function handleInput(_x){return _ref55.apply(this,arguments);};}();var handleChange=function handleChange(event){emit("change",event.target.value);};var handleCompositionStart=function handleCompositionStart(event){emit("compositionstart",event);isComposing.value=true;};var handleCompositionUpdate=function handleCompositionUpdate(event){var _a;emit("compositionupdate",event);var text=(_a=event.target)==null?void 0:_a.value;var lastCharacter=text[text.length-1]||"";isComposing.value=!isKorean(lastCharacter);};var handleCompositionEnd=function handleCompositionEnd(event){emit("compositionend",event);if(isComposing.value){isComposing.value=false;handleInput(event);}};var handlePasswordVisible=function handlePasswordVisible(){passwordVisible.value=!passwordVisible.value;focus();};var focus=/*#__PURE__*/function(){var _ref56=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var _a;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.next=2;return nextTick();case 2:(_a=_ref.value)==null?void 0:_a.focus();case 3:case"end":return _context2.stop();}}},_callee2);}));return function focus(){return _ref56.apply(this,arguments);};}();var blur=function blur(){var _a;return(_a=_ref.value)==null?void 0:_a.blur();};var handleFocus=function handleFocus(event){focused.value=true;emit("focus",event);};var handleBlur=function handleBlur(event){var _a;focused.value=false;emit("blur",event);if(props.validateEvent){(_a=formItem==null?void 0:formItem.validate)==null?void 0:_a.call(formItem,"blur").catch(function(err){return debugWarn();});}};var handleMouseLeave=function handleMouseLeave(evt){hovering.value=false;emit("mouseleave",evt);};var handleMouseEnter=function handleMouseEnter(evt){hovering.value=true;emit("mouseenter",evt);};var handleKeydown=function handleKeydown(evt){emit("keydown",evt);};var select=function select(){var _a;(_a=_ref.value)==null?void 0:_a.select();};var clear=function clear(){emit(UPDATE_MODEL_EVENT,"");emit("change","");emit("clear");emit("input","");};watch(function(){return props.modelValue;},function(){var _a;nextTick(function(){return resizeTextarea();});if(props.validateEvent){(_a=formItem==null?void 0:formItem.validate)==null?void 0:_a.call(formItem,"change").catch(function(err){return debugWarn();});}});watch(nativeInputValue,function(){return setNativeInputValue();});watch(function(){return props.type;},/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:_context3.next=2;return nextTick();case 2:setNativeInputValue();resizeTextarea();updateIconOffset();case 5:case"end":return _context3.stop();}}},_callee3);})));onMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee4(){return regeneratorRuntime.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:if(!props.formatter&&props.parser);setNativeInputValue();updateIconOffset();_context4.next=5;return nextTick();case 5:resizeTextarea();case 6:case"end":return _context4.stop();}}},_callee4);})));onUpdated(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee5(){return regeneratorRuntime.wrap(function _callee5$(_context5){while(1){switch(_context5.prev=_context5.next){case 0:_context5.next=2;return nextTick();case 2:updateIconOffset();case 3:case"end":return _context5.stop();}}},_callee5);})));expose({input:input,textarea:textarea,ref:_ref,textareaStyle:textareaStyle,autosize:toRef(props,"autosize"),focus:focus,blur:blur,select:select,clear:clear,resizeTextarea:resizeTextarea});return function(_ctx,_cache){var _ref60;return withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(containerAttrs),{class:[_ctx.type==="textarea"?unref(nsTextarea).b():unref(nsInput).b(),unref(nsInput).m(unref(inputSize)),unref(nsInput).is("disabled",unref(inputDisabled)),unref(nsInput).is("exceed",unref(inputExceed)),(_ref60={},_defineProperty2(_ref60,unref(nsInput).b("group"),_ctx.$slots.prepend||_ctx.$slots.append),_defineProperty2(_ref60,unref(nsInput).bm("group","append"),_ctx.$slots.append),_defineProperty2(_ref60,unref(nsInput).bm("group","prepend"),_ctx.$slots.prepend),_defineProperty2(_ref60,unref(nsInput).m("prefix"),_ctx.$slots.prefix||_ctx.prefixIcon),_defineProperty2(_ref60,unref(nsInput).m("suffix"),_ctx.$slots.suffix||_ctx.suffixIcon||_ctx.clearable||_ctx.showPassword),_defineProperty2(_ref60,unref(nsInput).bm("suffix","password-clear"),unref(showClear)&&unref(showPwdVisible)),_ref60),_ctx.$attrs.class],style:unref(containerStyle),role:_ctx.containerRole,onMouseenter:handleMouseEnter,onMouseleave:handleMouseLeave}),[createCommentVNode(" input "),_ctx.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),_ctx.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(nsInput).be("group","prepend"))},[renderSlot(_ctx.$slots,"prepend")],2)):createCommentVNode("v-if",true),createBaseVNode("div",{class:normalizeClass([unref(nsInput).e("wrapper"),unref(nsInput).is("focus",focused.value)])},[createCommentVNode(" prefix slot "),_ctx.$slots.prefix||_ctx.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(nsInput).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(nsInput).e("prefix-inner"))},[renderSlot(_ctx.$slots,"prefix"),_ctx.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(nsInput).e("icon"))},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.prefixIcon)))];}),_:1},8,["class"])):createCommentVNode("v-if",true)],2)],2)):createCommentVNode("v-if",true),createBaseVNode("input",mergeProps({id:unref(inputId),ref_key:"input",ref:input,class:unref(nsInput).e("inner")},unref(attrs),{type:_ctx.showPassword?passwordVisible.value?"text":"password":_ctx.type,disabled:unref(inputDisabled),formatter:_ctx.formatter,parser:_ctx.parser,readonly:_ctx.readonly,autocomplete:_ctx.autocomplete,tabindex:_ctx.tabindex,"aria-label":_ctx.label,placeholder:_ctx.placeholder,style:_ctx.inputStyle,onCompositionstart:handleCompositionStart,onCompositionupdate:handleCompositionUpdate,onCompositionend:handleCompositionEnd,onInput:handleInput,onFocus:handleFocus,onBlur:handleBlur,onChange:handleChange,onKeydown:handleKeydown}),null,16,_hoisted_2$n),createCommentVNode(" suffix slot "),unref(suffixVisible)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(nsInput).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(nsInput).e("suffix-inner"))},[!unref(showClear)||!unref(showPwdVisible)||!unref(isWordLimitVisible)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(_ctx.$slots,"suffix"),_ctx.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(nsInput).e("icon"))},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.suffixIcon)))];}),_:1},8,["class"])):createCommentVNode("v-if",true)],64)):createCommentVNode("v-if",true),unref(showClear)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(nsInput).e("icon"),unref(nsInput).e("clear")]),onMousedown:_cache[0]||(_cache[0]=withModifiers(function(){},["prevent"])),onClick:clear},{default:withCtx(function(){return[createVNode(unref(circle_close_default))];}),_:1},8,["class"])):createCommentVNode("v-if",true),unref(showPwdVisible)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(nsInput).e("icon"),unref(nsInput).e("password")]),onClick:handlePasswordVisible},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(unref(passwordIcon))))];}),_:1},8,["class"])):createCommentVNode("v-if",true),unref(isWordLimitVisible)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(nsInput).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(nsInput).e("count-inner"))},toDisplayString(unref(textLength))+" / "+toDisplayString(unref(attrs).maxlength),3)],2)):createCommentVNode("v-if",true),unref(validateState)&&unref(validateIcon)&&unref(needStatusIcon)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(nsInput).e("icon"),unref(nsInput).e("validateIcon"),unref(nsInput).is("loading",unref(validateState)==="validating")])},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(unref(validateIcon))))];}),_:1},8,["class"])):createCommentVNode("v-if",true)],2)],2)):createCommentVNode("v-if",true)],2),createCommentVNode(" append slot "),_ctx.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(nsInput).be("group","append"))},[renderSlot(_ctx.$slots,"append")],2)):createCommentVNode("v-if",true)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(inputId),ref_key:"textarea",ref:textarea,class:unref(nsTextarea).e("inner")},unref(attrs),{tabindex:_ctx.tabindex,disabled:unref(inputDisabled),readonly:_ctx.readonly,autocomplete:_ctx.autocomplete,style:unref(textareaStyle),"aria-label":_ctx.label,placeholder:_ctx.placeholder,onCompositionstart:handleCompositionStart,onCompositionupdate:handleCompositionUpdate,onCompositionend:handleCompositionEnd,onInput:handleInput,onFocus:handleFocus,onBlur:handleBlur,onChange:handleChange,onKeydown:handleKeydown}),null,16,_hoisted_3$d),unref(isWordLimitVisible)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle(countStyle.value),class:normalizeClass(unref(nsInput).e("count"))},toDisplayString(unref(textLength))+" / "+toDisplayString(unref(attrs).maxlength),7)):createCommentVNode("v-if",true)],64))],16,_hoisted_1$D)),[[vShow,_ctx.type!=="hidden"]]);};}}));var Input=/* @__PURE__ */_export_sfc$1(_sfc_main$19,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);var ElInput=exports('w',withInstall(Input));var GAP=4;var BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var renderThumbStyle=function renderThumbStyle(_ref61){var _ref62;var move=_ref61.move,size=_ref61.size,bar=_ref61.bar;return _ref62={},_defineProperty2(_ref62,bar.size,size),_defineProperty2(_ref62,"transform","translate".concat(bar.axis,"(").concat(move,"%)")),_ref62;};var thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:true},always:Boolean});var _sfc_main$18=/* @__PURE__ */defineComponent({__name:"thumb",props:thumbProps,setup:function setup(__props){var props=__props;var COMPONENT_NAME="Thumb";var scrollbar=inject(scrollbarContextKey);var ns=useNamespace("scrollbar");if(!scrollbar)throwError(COMPONENT_NAME,"can not inject scrollbar context");var instance=ref();var thumb=ref();var thumbState=ref({});var visible=ref(false);var cursorDown=false;var cursorLeave=false;var originalOnSelectStart=isClient?document.onselectstart:null;var bar=computed(function(){return BAR_MAP[props.vertical?"vertical":"horizontal"];});var thumbStyle=computed(function(){return renderThumbStyle({size:props.size,move:props.move,bar:bar.value});});var offsetRatio=computed(function(){return Math.pow(instance.value[bar.value.offset],2)/scrollbar.wrapElement[bar.value.scrollSize]/props.ratio/thumb.value[bar.value.offset];});var clickThumbHandler=function clickThumbHandler(e){var _a;e.stopPropagation();if(e.ctrlKey||[1,2].includes(e.button))return;(_a=window.getSelection())==null?void 0:_a.removeAllRanges();startDrag(e);var el=e.currentTarget;if(!el)return;thumbState.value[bar.value.axis]=el[bar.value.offset]-(e[bar.value.client]-el.getBoundingClientRect()[bar.value.direction]);};var clickTrackHandler=function clickTrackHandler(e){if(!thumb.value||!instance.value||!scrollbar.wrapElement)return;var offset=Math.abs(e.target.getBoundingClientRect()[bar.value.direction]-e[bar.value.client]);var thumbHalf=thumb.value[bar.value.offset]/2;var thumbPositionPercentage=(offset-thumbHalf)*100*offsetRatio.value/instance.value[bar.value.offset];scrollbar.wrapElement[bar.value.scroll]=thumbPositionPercentage*scrollbar.wrapElement[bar.value.scrollSize]/100;};var startDrag=function startDrag(e){e.stopImmediatePropagation();cursorDown=true;document.addEventListener("mousemove",mouseMoveDocumentHandler);document.addEventListener("mouseup",mouseUpDocumentHandler);originalOnSelectStart=document.onselectstart;document.onselectstart=function(){return false;};};var mouseMoveDocumentHandler=function mouseMoveDocumentHandler(e){if(!instance.value||!thumb.value)return;if(cursorDown===false)return;var prevPage=thumbState.value[bar.value.axis];if(!prevPage)return;var offset=(instance.value.getBoundingClientRect()[bar.value.direction]-e[bar.value.client])*-1;var thumbClickPosition=thumb.value[bar.value.offset]-prevPage;var thumbPositionPercentage=(offset-thumbClickPosition)*100*offsetRatio.value/instance.value[bar.value.offset];scrollbar.wrapElement[bar.value.scroll]=thumbPositionPercentage*scrollbar.wrapElement[bar.value.scrollSize]/100;};var mouseUpDocumentHandler=function mouseUpDocumentHandler(){cursorDown=false;thumbState.value[bar.value.axis]=0;document.removeEventListener("mousemove",mouseMoveDocumentHandler);document.removeEventListener("mouseup",mouseUpDocumentHandler);restoreOnselectstart();if(cursorLeave)visible.value=false;};var mouseMoveScrollbarHandler=function mouseMoveScrollbarHandler(){cursorLeave=false;visible.value=!!props.size;};var mouseLeaveScrollbarHandler=function mouseLeaveScrollbarHandler(){cursorLeave=true;visible.value=cursorDown;};onBeforeUnmount(function(){restoreOnselectstart();document.removeEventListener("mouseup",mouseUpDocumentHandler);});var restoreOnselectstart=function restoreOnselectstart(){if(document.onselectstart!==originalOnSelectStart)document.onselectstart=originalOnSelectStart;};useEventListener(toRef(scrollbar,"scrollbarElement"),"mousemove",mouseMoveScrollbarHandler);useEventListener(toRef(scrollbar,"scrollbarElement"),"mouseleave",mouseLeaveScrollbarHandler);return function(_ctx,_cache){return openBlock(),createBlock(Transition,{name:unref(ns).b("fade"),persisted:""},{default:withCtx(function(){return[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:instance,class:normalizeClass([unref(ns).e("bar"),unref(ns).is(unref(bar).key)]),onMousedown:clickTrackHandler},[createBaseVNode("div",{ref_key:"thumb",ref:thumb,class:normalizeClass(unref(ns).e("thumb")),style:normalizeStyle(unref(thumbStyle)),onMousedown:clickThumbHandler},null,38)],34),[[vShow,_ctx.always||visible.value]])];}),_:1},8,["name"]);};}});var Thumb=/* @__PURE__ */_export_sfc$1(_sfc_main$18,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);var barProps=buildProps({always:{type:Boolean,default:true},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var _sfc_main$17=/* @__PURE__ */defineComponent({__name:"bar",props:barProps,setup:function setup(__props,_ref63){var expose=_ref63.expose;var props=__props;var moveX=ref(0);var moveY=ref(0);var handleScroll=function handleScroll(wrap){if(wrap){var offsetHeight=wrap.offsetHeight-GAP;var offsetWidth=wrap.offsetWidth-GAP;moveY.value=wrap.scrollTop*100/offsetHeight*props.ratioY;moveX.value=wrap.scrollLeft*100/offsetWidth*props.ratioX;}};expose({handleScroll:handleScroll});return function(_ctx,_cache){return openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:moveX.value,ratio:_ctx.ratioX,size:_ctx.width,always:_ctx.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:moveY.value,ratio:_ctx.ratioY,size:_ctx.height,vertical:"",always:_ctx.always},null,8,["move","ratio","size","always"])],64);};}});var Bar=/* @__PURE__ */_export_sfc$1(_sfc_main$17,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);var scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}});var scrollbarEmits={scroll:function scroll(_ref64){var scrollTop=_ref64.scrollTop,scrollLeft=_ref64.scrollLeft;return isNumber$1(scrollTop)&&isNumber$1(scrollLeft);}};var __default__$G={name:"ElScrollbar"};var _sfc_main$16=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$G),{},{props:scrollbarProps,emits:scrollbarEmits,setup:function setup(__props,_ref65){var expose=_ref65.expose,emit=_ref65.emit;var props=__props;var ns=useNamespace("scrollbar");var stopResizeObserver=void 0;var stopResizeListener=void 0;var scrollbar$=ref();var wrap$=ref();var resize$=ref();var sizeWidth=ref("0");var sizeHeight=ref("0");var barRef=ref();var ratioY=ref(1);var ratioX=ref(1);var style=computed(function(){var style2={};if(props.height)style2.height=addUnit(props.height);if(props.maxHeight)style2.maxHeight=addUnit(props.maxHeight);return[props.wrapStyle,style2];});var handleScroll=function handleScroll(){var _a;if(wrap$.value){(_a=barRef.value)==null?void 0:_a.handleScroll(wrap$.value);emit("scroll",{scrollTop:wrap$.value.scrollTop,scrollLeft:wrap$.value.scrollLeft});}};function scrollTo(arg1,arg2){if(isObject$2(arg1)){wrap$.value.scrollTo(arg1);}else if(isNumber$1(arg1)&&isNumber$1(arg2)){wrap$.value.scrollTo(arg1,arg2);}}var setScrollTop=function setScrollTop(value){if(!isNumber$1(value)){return;}wrap$.value.scrollTop=value;};var setScrollLeft=function setScrollLeft(value){if(!isNumber$1(value)){return;}wrap$.value.scrollLeft=value;};var update=function update(){if(!wrap$.value)return;var offsetHeight=wrap$.value.offsetHeight-GAP;var offsetWidth=wrap$.value.offsetWidth-GAP;var originalHeight=Math.pow(offsetHeight,2)/wrap$.value.scrollHeight;var originalWidth=Math.pow(offsetWidth,2)/wrap$.value.scrollWidth;var height=Math.max(originalHeight,props.minSize);var width=Math.max(originalWidth,props.minSize);ratioY.value=originalHeight/(offsetHeight-originalHeight)/(height/(offsetHeight-height));ratioX.value=originalWidth/(offsetWidth-originalWidth)/(width/(offsetWidth-width));sizeHeight.value=height+GAP<offsetHeight?"".concat(height,"px"):"";sizeWidth.value=width+GAP<offsetWidth?"".concat(width,"px"):"";};watch(function(){return props.noresize;},function(noresize){if(noresize){stopResizeObserver==null?void 0:stopResizeObserver();stopResizeListener==null?void 0:stopResizeListener();}else{var _useResizeObserver=useResizeObserver(resize$,update);stopResizeObserver=_useResizeObserver.stop;stopResizeListener=useEventListener("resize",update);}},{immediate:true});watch(function(){return[props.maxHeight,props.height];},function(){if(!props.native)nextTick(function(){var _a;update();if(wrap$.value){(_a=barRef.value)==null?void 0:_a.handleScroll(wrap$.value);}});});provide(scrollbarContextKey,reactive({scrollbarElement:scrollbar$,wrapElement:wrap$}));onMounted(function(){if(!props.native)nextTick(function(){return update();});});onUpdated(function(){return update();});expose({wrap$:wrap$,update:update,scrollTo:scrollTo,setScrollTop:setScrollTop,setScrollLeft:setScrollLeft,handleScroll:handleScroll});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{ref_key:"scrollbar$",ref:scrollbar$,class:normalizeClass(unref(ns).b())},[createBaseVNode("div",{ref_key:"wrap$",ref:wrap$,class:normalizeClass([_ctx.wrapClass,unref(ns).e("wrap"),_defineProperty2({},unref(ns).em("wrap","hidden-default"),!_ctx.native)]),style:normalizeStyle(unref(style)),onScroll:handleScroll},[(openBlock(),createBlock(resolveDynamicComponent(_ctx.tag),{ref_key:"resize$",ref:resize$,class:normalizeClass([unref(ns).e("view"),_ctx.viewClass]),style:normalizeStyle(_ctx.viewStyle)},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["class","style"]))],38),!_ctx.native?(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:barRef,height:sizeHeight.value,width:sizeWidth.value,always:_ctx.always,"ratio-x":ratioX.value,"ratio-y":ratioY.value},null,8,["height","width","always","ratio-x","ratio-y"])):createCommentVNode("v-if",true)],2);};}}));var Scrollbar=/* @__PURE__ */_export_sfc$1(_sfc_main$16,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);var ElScrollbar=withInstall(Scrollbar);var usePopperProps=buildProps({role:{type:String,default:"tooltip"}});var __default__$F={name:"ElPopperRoot",inheritAttrs:false};var _sfc_main$15=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$F),{},{props:usePopperProps,setup:function setup(__props,_ref67){var expose=_ref67.expose;var props=__props;var triggerRef=ref();var popperInstanceRef=ref();var contentRef=ref();var referenceRef=ref();var role=computed(function(){return props.role;});var popperProvides={triggerRef:triggerRef,popperInstanceRef:popperInstanceRef,contentRef:contentRef,referenceRef:referenceRef,role:role};expose(popperProvides);provide(POPPER_INJECTION_KEY,popperProvides);return function(_ctx,_cache){return renderSlot(_ctx.$slots,"default");};}}));var Popper=/* @__PURE__ */_export_sfc$1(_sfc_main$15,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);var usePopperArrowProps=buildProps({arrowOffset:{type:Number,default:5}});var __default__$E={name:"ElPopperArrow",inheritAttrs:false};var _sfc_main$14=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$E),{},{props:usePopperArrowProps,setup:function setup(__props,_ref68){var expose=_ref68.expose;var props=__props;var ns=useNamespace("popper");var _inject=inject(POPPER_CONTENT_INJECTION_KEY,void 0),arrowOffset=_inject.arrowOffset,arrowRef=_inject.arrowRef;watch(function(){return props.arrowOffset;},function(val){arrowOffset.value=val;});onBeforeUnmount(function(){arrowRef.value=void 0;});expose({arrowRef:arrowRef});return function(_ctx,_cache){return openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:arrowRef,class:normalizeClass(unref(ns).e("arrow")),"data-popper-arrow":""},null,2);};}}));var ElPopperArrow=/* @__PURE__ */_export_sfc$1(_sfc_main$14,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);var NAME="ElOnlyChild";var OnlyChild=defineComponent({name:NAME,setup:function setup(_,_ref69){var slots=_ref69.slots,attrs=_ref69.attrs;var _a;var forwardRefInjection=inject(FORWARD_REF_INJECTION_KEY);var forwardRefDirective=useForwardRefDirective((_a=forwardRefInjection==null?void 0:forwardRefInjection.setForwardRef)!=null?_a:NOOP);return function(){var _a2;var defaultSlot=(_a2=slots.default)==null?void 0:_a2.call(slots,attrs);if(!defaultSlot)return null;if(defaultSlot.length>1){return null;}var firstLegitNode=findFirstLegitChild(defaultSlot);if(!firstLegitNode){return null;}return withDirectives(cloneVNode(firstLegitNode,attrs),[[forwardRefDirective]]);};}});function findFirstLegitChild(node){if(!node)return null;var children=node;var _iterator8=_createForOfIteratorHelper(children),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var child=_step8.value;if(isObject$2(child)){switch(child.type){case Comment:continue;case Text:return wrapTextContent(child);case"svg":return wrapTextContent(child);case Fragment:return findFirstLegitChild(child.children);default:return child;}}return wrapTextContent(child);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}return null;}function wrapTextContent(s){return createVNode("span",{"class":"el-only-child__content"},[s]);}var usePopperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var __default__$D={name:"ElPopperTrigger",inheritAttrs:false};var _sfc_main$13=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$D),{},{props:usePopperTriggerProps,setup:function setup(__props,_ref70){var expose=_ref70.expose;var props=__props;var _inject2=inject(POPPER_INJECTION_KEY,void 0),role=_inject2.role,triggerRef=_inject2.triggerRef;useForwardRef(triggerRef);var ariaControls=computed(function(){return ariaHaspopup.value?props.id:void 0;});var ariaDescribedby=computed(function(){if(role&&role.value==="tooltip"){return props.open&&props.id?props.id:void 0;}return void 0;});var ariaHaspopup=computed(function(){if(role&&role.value!=="tooltip"){return role.value;}return void 0;});var ariaExpanded=computed(function(){return ariaHaspopup.value?"".concat(props.open):void 0;});var virtualTriggerAriaStopWatch=void 0;onMounted(function(){watch(function(){return props.virtualRef;},function(virtualEl){if(virtualEl){triggerRef.value=unrefElement(virtualEl);}},{immediate:true});watch(function(){return triggerRef.value;},function(el,prevEl){virtualTriggerAriaStopWatch==null?void 0:virtualTriggerAriaStopWatch();virtualTriggerAriaStopWatch=void 0;if(isElement$1(el)){["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(function(eventName){var _a;var handler=props[eventName];if(handler){el.addEventListener(eventName.slice(2).toLowerCase(),handler);(_a=prevEl==null?void 0:prevEl.removeEventListener)==null?void 0:_a.call(prevEl,eventName.slice(2).toLowerCase(),handler);}});virtualTriggerAriaStopWatch=watch([ariaControls,ariaDescribedby,ariaHaspopup,ariaExpanded],function(watches){["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(function(key,idx){isNil(watches[idx])?el.removeAttribute(key):el.setAttribute(key,watches[idx]);});},{immediate:true});}if(isElement$1(prevEl)){["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(function(key){return prevEl.removeAttribute(key);});}},{immediate:true});});onBeforeUnmount(function(){virtualTriggerAriaStopWatch==null?void 0:virtualTriggerAriaStopWatch();virtualTriggerAriaStopWatch=void 0;});expose({triggerRef:triggerRef});return function(_ctx,_cache){return!_ctx.virtualTriggering?(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},_ctx.$attrs,{"aria-controls":unref(ariaControls),"aria-describedby":unref(ariaDescribedby),"aria-expanded":unref(ariaExpanded),"aria-haspopup":unref(ariaHaspopup)}),{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"])):createCommentVNode("v-if",true);};}}));var ElPopperTrigger=/* @__PURE__ */_export_sfc$1(_sfc_main$13,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);var E="top",R="bottom",W="right",P="left",me="auto",G=[E,R,W,P],U="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(t,e){return t.concat([e+"-"+U,e+"-"+J]);},[]),Ee=[].concat(G,[me]).reduce(function(t,e){return t.concat([e,e+"-"+U,e+"-"+J]);},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C(t){return t?(t.nodeName||"").toLowerCase():null;}function H(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window;}return t;}function Q(t){var e=H(t).Element;return t instanceof e||t instanceof Element;}function B(t){var e=H(t).HTMLElement;return t instanceof e||t instanceof HTMLElement;}function Pe(t){if(typeof ShadowRoot=="undefined")return!1;var e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot;}function Mt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!B(i)||!C(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s);}));});}function Rt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f;},{});!B(o)||!C(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(f){o.removeAttribute(f);}));});};}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(t){return t.split("-")[0];}var X=Math.max,ve=Math.min,Z=Math.round;function ee(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,o=1;if(B(t)&&e){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Z(n.width)/a||1),i>0&&(o=Z(n.height)/i||1);}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o};}function ke(t){var e=ee(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r};}function it(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Pe(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host;}while(r);}return!1;}function N(t){return H(t).getComputedStyle(t);}function Wt(t){return["table","td","th"].indexOf(C(t))>=0;}function I(t){return((Q(t)?t.ownerDocument:t.document)||window.document).documentElement;}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe(t)?t.host:null)||I(t);}function at(t){return!B(t)||N(t).position==="fixed"?null:t.offsetParent;}function Bt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&B(t)){var r=N(t);if(r.position==="fixed")return null;}var o=ge(t);for(Pe(o)&&(o=o.host);B(o)&&["html","body"].indexOf(C(o))<0;){var i=N(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode;}return null;}function se(t){for(var e=H(t),n=at(t);n&&Wt(n)&&N(n).position==="static";){n=at(n);}return n&&(C(n)==="html"||C(n)==="body"&&N(n).position==="static")?e:n||Bt(t)||e;}function Le(t){return["top","bottom"].indexOf(t)>=0?"x":"y";}function fe(t,e,n){return X(t,ve(e,n));}function St(t,e,n){var r=fe(t,e,n);return r>n?n:r;}function st(){return{top:0,right:0,bottom:0,left:0};}function ft(t){return Object.assign({},st(),t);}function ct(t,e){return e.reduce(function(n,r){return n[r]=t,n;},{});}var Tt=function Tt(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ft(typeof t!="number"?t:ct(t,G));};function Ht(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=q(n.placement),f=Le(s),c=[P,W].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var m=Tt(o.padding,n),v=ke(i),l=f==="y"?E:P,h=f==="y"?R:W,p=n.rects.reference[u]+n.rects.reference[f]-a[f]-n.rects.popper[u],g=a[f]-n.rects.reference[f],x=se(i),y=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,$=p/2-g/2,d=m[l],b=y-v[u]-m[h],w=y/2-v[u]/2+$,O=fe(d,w,b),j=f;n.modifiersData[r]=(e={},e[j]=O,e.centerOffset=O-w,e);}}function Ct(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!it(e.elements.popper,o)||(e.elements.arrow=o));}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1];}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:Z(e*o)/o||0,y:Z(n*o)/o||0};}function ut(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,m=t.isFixed,v=a.x,l=v===void 0?0:v,h=a.y,p=h===void 0?0:h,g=typeof u=="function"?u({x:l,y:p}):{x:l,y:p};l=g.x,p=g.y;var x=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),$=P,d=E,b=window;if(c){var w=se(n),O="clientHeight",j="clientWidth";if(w===H(n)&&(w=I(n),N(w).position!=="static"&&s==="absolute"&&(O="scrollHeight",j="scrollWidth")),w=w,o===E||(o===P||o===W)&&i===J){d=R;var A=m&&w===b&&b.visualViewport?b.visualViewport.height:w[O];p-=A-r.height,p*=f?1:-1;}if(o===P||(o===E||o===R)&&i===J){$=W;var k=m&&w===b&&b.visualViewport?b.visualViewport.width:w[j];l-=k-r.width,l*=f?1:-1;}}var D=Object.assign({position:s},c&&qt),S=u===!0?Vt({x:l,y:p}):{x:l,y:p};if(l=S.x,p=S.y,f){var L;return Object.assign({},D,(L={},L[d]=y?"0":"",L[$]=x?"0":"",L.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",L));}return Object.assign({},D,(e={},e[d]=y?p+"px":"",e[$]=x?l+"px":"",e.transform="",e));}function Nt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,f=s===void 0?!0:s,c={placement:q(e.placement),variation:te(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ut(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ut(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement});}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,f=H(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ye);}),s&&f.addEventListener("resize",n.update,ye),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ye);}),s&&f.removeEventListener("resize",n.update,ye);};}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return _t[e];});}var zt={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,function(e){return zt[e];});}function We(t){var e=H(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r};}function Be(t){return ee(I(t)).left+We(t).scrollLeft;}function Ft(t){var e=H(t),n=I(t),r=e.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Be(t),y:s};}function Ut(t){var e,n=I(t),r=We(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=X(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=X(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Be(t),f=-r.scrollTop;return N(o||n).direction==="rtl"&&(s+=X(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f};}function Se(t){var e=N(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return /auto|scroll|overlay|hidden/.test(n+o+r);}function dt(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B(t)&&Se(t)?t:dt(ge(t));}function ce(t,e){var n;e===void 0&&(e=[]);var r=dt(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=H(r),a=o?[i].concat(i.visualViewport||[],Se(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(ce(ge(a)));}function Te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height});}function Xt(t){var e=ee(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e;}function ht(t,e){return e===je?Te(Ft(t)):Q(e)?Xt(e):Te(Ut(I(t)));}function Yt(t){var e=ce(ge(t)),n=["absolute","fixed"].indexOf(N(t).position)>=0,r=n&&B(t)?se(t):t;return Q(r)?e.filter(function(o){return Q(o)&&it(o,r)&&C(o)!=="body";}):[];}function Gt(t,e,n){var r=e==="clippingParents"?Yt(t):[].concat(e),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,f){var c=ht(t,f);return s.top=X(c.top,s.top),s.right=ve(c.right,s.right),s.bottom=ve(c.bottom,s.bottom),s.left=X(c.left,s.left),s;},ht(t,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a;}function mt(t){var e=t.reference,n=t.element,r=t.placement,o=r?q(r):null,i=r?te(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(o){case E:f={x:a,y:e.y-n.height};break;case R:f={x:a,y:e.y+e.height};break;case W:f={x:e.x+e.width,y:s};break;case P:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y};}var c=o?Le(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case U:f[c]=f[c]-(e[u]/2-n[u]/2);break;case J:f[c]=f[c]+(e[u]/2-n[u]/2);break;}}return f;}function ne(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.boundary,a=i===void 0?Xe:i,s=n.rootBoundary,f=s===void 0?je:s,c=n.elementContext,u=c===void 0?K:c,m=n.altBoundary,v=m===void 0?!1:m,l=n.padding,h=l===void 0?0:l,p=ft(typeof h!="number"?h:ct(h,G)),g=u===K?Ye:K,x=t.rects.popper,y=t.elements[v?g:u],$=Gt(Q(y)?y:y.contextElement||I(t.elements.popper),a,f),d=ee(t.elements.reference),b=mt({reference:d,element:x,strategy:"absolute",placement:o}),w=Te(Object.assign({},x,b)),O=u===K?w:d,j={top:$.top-O.top+p.top,bottom:O.bottom-$.bottom+p.bottom,left:$.left-O.left+p.left,right:O.right-$.right+p.right},A=t.modifiersData.offset;if(u===K&&A){var k=A[o];Object.keys(j).forEach(function(D){var S=[W,R].indexOf(D)>=0?1:-1,L=[E,R].indexOf(D)>=0?"y":"x";j[D]+=k[L]*S;});}return j;}function Jt(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?Ee:f,u=te(r),m=u?s?De:De.filter(function(h){return te(h)===u;}):G,v=m.filter(function(h){return c.indexOf(h)>=0;});v.length===0&&(v=m);var l=v.reduce(function(h,p){return h[p]=ne(t,{placement:p,boundary:o,rootBoundary:i,padding:a})[q(p)],h;},{});return Object.keys(l).sort(function(h,p){return l[h]-l[p];});}function Kt(t){if(q(t)===me)return[];var e=be(t);return[lt(t),e,lt(e)];}function Qt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,m=n.rootBoundary,v=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,p=n.allowedAutoPlacements,g=e.options.placement,x=q(g),y=x===g,$=f||(y||!h?[be(g)]:Kt(g)),d=[g].concat($).reduce(function(z,V){return z.concat(q(V)===me?Jt(e,{placement:V,boundary:u,rootBoundary:m,padding:c,flipVariations:h,allowedAutoPlacements:p}):V);},[]),b=e.rects.reference,w=e.rects.popper,O=new Map(),j=!0,A=d[0],k=0;k<d.length;k++){var D=d[k],S=q(D),L=te(D)===U,re=[E,R].indexOf(S)>=0,oe=re?"width":"height",M=ne(e,{placement:D,boundary:u,rootBoundary:m,altBoundary:v,padding:c}),T=re?L?W:P:L?R:E;b[oe]>w[oe]&&(T=be(T));var pe=be(T),_=[];if(i&&_.push(M[S]<=0),s&&_.push(M[T]<=0,M[pe]<=0),_.every(function(z){return z;})){A=D,j=!1;break;}O.set(D,_);}if(j)for(var ue=h?3:1,xe=function xe(z){var V=d.find(function(de){var ae=O.get(de);if(ae)return ae.slice(0,z).every(function(Y){return Y;});});if(V)return A=V,"break";},ie=ue;ie>0;ie--){var le=xe(ie);if(le==="break")break;}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0);}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x};}function yt(t){return[E,W,R,P].some(function(e){return t[e]>=0;});}function Zt(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ne(e,{elementContext:"reference"}),s=ne(e,{altBoundary:!0}),f=gt(a,r),c=gt(s,o,i),u=yt(f),m=yt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m});}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(t,e,n){var r=q(t),o=[P,E].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P,W].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s};}function tn(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ee.reduce(function(u,m){return u[m]=en(m,e.rects,i),u;},{}),s=a[e.placement],f=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a;}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(t){var e=t.state,n=t.name;e.modifiersData[n]=mt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement});}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(t){return t==="x"?"y":"x";}function on(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,m=n.padding,v=n.tether,l=v===void 0?!0:v,h=n.tetherOffset,p=h===void 0?0:h,g=ne(e,{boundary:f,rootBoundary:c,padding:m,altBoundary:u}),x=q(e.placement),y=te(e.placement),$=!y,d=Le(x),b=rn(d),w=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,A=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,k=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(w){if(i){var L,re=d==="y"?E:P,oe=d==="y"?R:W,M=d==="y"?"height":"width",T=w[d],pe=T+g[re],_=T-g[oe],ue=l?-j[M]/2:0,xe=y===U?O[M]:j[M],ie=y===U?-j[M]:-O[M],le=e.elements.arrow,z=l&&le?ke(le):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:st(),de=V[re],ae=V[oe],Y=fe(0,O[M],z[M]),jt=$?O[M]/2-ue-Y-de-k.mainAxis:xe-Y-de-k.mainAxis,Dt=$?-O[M]/2+ue+Y+ae+k.mainAxis:ie+Y+ae+k.mainAxis,Oe=e.elements.arrow&&se(e.elements.arrow),Et=Oe?d==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ce=(L=D==null?void 0:D[d])!=null?L:0,Pt=T+jt-Ce-Et,At=T+Dt-Ce,qe=fe(l?ve(pe,Pt):pe,T,l?X(_,At):_);w[d]=qe,S[d]=qe-T;}if(s){var Ve,kt=d==="x"?E:P,Lt=d==="x"?R:W,F=w[b],he=b==="y"?"height":"width",Ne=F+g[kt],Ie=F-g[Lt],$e=[E,P].indexOf(x)!==-1,_e=(Ve=D==null?void 0:D[b])!=null?Ve:0,ze=$e?Ne:F-O[he]-j[he]-_e+k.altAxis,Fe=$e?F+O[he]+j[he]-_e-k.altAxis:Ie,Ue=l&&$e?St(ze,F,Fe):fe(l?ze:Ne,F,l?Fe:Ie);w[b]=Ue,S[b]=Ue-F;}e.modifiersData[r]=S;}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop};}function sn(t){return t===H(t)||!B(t)?We(t):an(t);}function fn(t){var e=t.getBoundingClientRect(),n=Z(e.width)/t.offsetWidth||1,r=Z(e.height)/t.offsetHeight||1;return n!==1||r!==1;}function cn(t,e,n){n===void 0&&(n=!1);var r=B(e),o=B(e)&&fn(e),i=I(e),a=ee(t,o),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((C(e)!=="body"||Se(i))&&(s=sn(e)),B(e)?(f=ee(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):i&&(f.x=Be(i))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height};}function pn(t){var e=new Map(),n=new Set(),r=[];t.forEach(function(i){e.set(i.name,i);});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&o(f);}}),r.push(i);}return t.forEach(function(i){n.has(i.name)||o(i);}),r;}function un(t){var e=pn(t);return ot.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r;}));},[]);}function ln(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t());});})),e;};}function dn(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n;},{});return Object.keys(e).map(function(n){return e[n];});}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n];}return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function");});}function we(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Ot:o;return function(a,s,f){f===void 0&&(f=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],m=!1,v={state:c,setOptions:function setOptions(p){var g=typeof p=="function"?p(c.options):p;h(),c.options=Object.assign({},i,c.options,g),c.scrollParents={reference:Q(a)?ce(a):a.contextElement?ce(a.contextElement):[],popper:ce(s)};var x=un(dn([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(y){return y.enabled;}),l(),v.update();},forceUpdate:function forceUpdate(){if(!m){var p=c.elements,g=p.reference,x=p.popper;if($t(g,x)){c.rects={reference:cn(g,se(x),c.options.strategy==="fixed"),popper:ke(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data);});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue;}var $=c.orderedModifiers[y],d=$.fn,b=$.options,w=b===void 0?{}:b,O=$.name;typeof d=="function"&&(c=d({state:c,options:w,name:O,instance:v})||c);}}}},update:ln(function(){return new Promise(function(p){v.forceUpdate(),p(c);});}),destroy:function destroy(){h(),m=!0;}};if(!$t(a,s))return v;v.setOptions(f).then(function(p){!m&&f.onFirstUpdate&&f.onFirstUpdate(p);});function l(){c.orderedModifiers.forEach(function(p){var g=p.name,x=p.options,y=x===void 0?{}:x,$=p.effect;if(typeof $=="function"){var d=$({state:c,name:g,instance:v,options:y}),b=function b(){};u.push(d||b);}});}function h(){u.forEach(function(p){return p();}),u=[];}return v;};}we();var mn=[Re,He,Me,Ae];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae,wt,vt,xt,pt,bt],yn=we({defaultModifiers:gn});var obtainAllFocusableElements=function obtainAllFocusableElements(element){var nodes=[];var walker=document.createTreeWalker(element,NodeFilter.SHOW_ELEMENT,{acceptNode:function acceptNode(node){var isHiddenInput=node.tagName==="INPUT"&&node.type==="hidden";if(node.disabled||node.hidden||isHiddenInput)return NodeFilter.FILTER_SKIP;return node.tabIndex>=0||node===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;}});while(walker.nextNode()){nodes.push(walker.currentNode);}return nodes;};var getVisibleElement=function getVisibleElement(elements,container){var _iterator9=_createForOfIteratorHelper(elements),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var element=_step9.value;if(!isHidden(element,container))return element;}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}};var isHidden=function isHidden(element,container){if(getComputedStyle(element).visibility==="hidden")return true;while(element){if(container&&element===container)return false;if(getComputedStyle(element).display==="none")return true;element=element.parentElement;}return false;};var getEdges=function getEdges(container){var focusable=obtainAllFocusableElements(container);var first=getVisibleElement(focusable,container);var last=getVisibleElement(focusable.reverse(),container);return[first,last];};var isSelectable=function isSelectable(element){return element instanceof HTMLInputElement&&"select"in element;};var tryFocus=function tryFocus(element,shouldSelect){if(element&&element.focus){var prevFocusedElement=document.activeElement;element.focus({preventScroll:true});if(element!==prevFocusedElement&&isSelectable(element)&&shouldSelect){element.select();}}};function removeFromStack(list,item){var copy=_toConsumableArray2(list);var idx=list.indexOf(item);if(idx!==-1){copy.splice(idx,1);}return copy;}var createFocusableStack=function createFocusableStack(){var stack=[];var push=function push(layer){var currentLayer=stack[0];if(currentLayer&&layer!==currentLayer){currentLayer.pause();}stack=removeFromStack(stack,layer);stack.unshift(layer);};var remove=function remove(layer){var _a,_b;stack=removeFromStack(stack,layer);(_b=(_a=stack[0])==null?void 0:_a.resume)==null?void 0:_b.call(_a);};return{push:push,remove:remove};};var focusFirstDescendant=function focusFirstDescendant(elements){var shouldSelect=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var prevFocusedElement=document.activeElement;var _iterator10=_createForOfIteratorHelper(elements),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var element=_step10.value;tryFocus(element,shouldSelect);if(document.activeElement!==prevFocusedElement)return;}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}};var focusableStack=createFocusableStack();var FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped";var FOCUS_AFTER_RELEASED="focus-trap.focus-after-released";var FOCUS_AFTER_TRAPPED_OPTS={cancelable:true,bubbles:false};var ON_TRAP_FOCUS_EVT="focusAfterTrapped";var ON_RELEASE_FOCUS_EVT="focusAfterReleased";var FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap");var _sfc_main$12=defineComponent({name:"ElFocusTrap",inheritAttrs:false,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup:function setup(props,_ref71){var emit=_ref71.emit;var forwardRef=ref();var lastFocusBeforeTrapped;var lastFocusAfterTrapped;useEscapeKeydown(function(event){if(props.trapped&&!focusLayer.paused){emit("release-requested",event);}});var focusLayer={paused:false,pause:function pause(){this.paused=true;},resume:function resume(){this.paused=false;}};var onKeydown=function onKeydown(e){if(!props.loop&&!props.trapped)return;if(focusLayer.paused)return;var key=e.key,altKey=e.altKey,ctrlKey=e.ctrlKey,metaKey=e.metaKey,currentTarget=e.currentTarget,shiftKey=e.shiftKey;var loop=props.loop;var isTabbing=key===EVENT_CODE.tab&&!altKey&&!ctrlKey&&!metaKey;var currentFocusingEl=document.activeElement;if(isTabbing&&currentFocusingEl){var container=currentTarget;var _getEdges=getEdges(container),_getEdges2=_slicedToArray(_getEdges,2),first=_getEdges2[0],last=_getEdges2[1];var isTabbable=first&&last;if(!isTabbable){if(currentFocusingEl===container){e.preventDefault();emit("focusout-prevented");}}else{if(!shiftKey&&currentFocusingEl===last){e.preventDefault();if(loop)tryFocus(first,true);emit("focusout-prevented");}else if(shiftKey&&[first,container].includes(currentFocusingEl)){e.preventDefault();if(loop)tryFocus(last,true);emit("focusout-prevented");}}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:forwardRef,onKeydown:onKeydown});watch(function(){return props.focusTrapEl;},function(focusTrapEl){if(focusTrapEl){forwardRef.value=focusTrapEl;}},{immediate:true});watch([forwardRef],function(_ref72,_ref73){var _ref74=_slicedToArray(_ref72,1),forwardRef2=_ref74[0];var _ref75=_slicedToArray(_ref73,1),oldForwardRef=_ref75[0];if(forwardRef2){forwardRef2.addEventListener("keydown",onKeydown);forwardRef2.addEventListener("focusin",onFocusIn);forwardRef2.addEventListener("focusout",onFocusOut);}if(oldForwardRef){oldForwardRef.removeEventListener("keydown",onKeydown);oldForwardRef.removeEventListener("focusin",onFocusIn);oldForwardRef.removeEventListener("focusout",onFocusOut);}});var trapOnFocus=function trapOnFocus(e){emit(ON_TRAP_FOCUS_EVT,e);};var releaseOnFocus=function releaseOnFocus(e){return emit(ON_RELEASE_FOCUS_EVT,e);};var onFocusIn=function onFocusIn(e){var trapContainer=unref(forwardRef);if(!trapContainer)return;var target=e.target;var isFocusedInTrap=target&&trapContainer.contains(target);if(isFocusedInTrap)emit("focusin",e);if(focusLayer.paused)return;if(props.trapped){if(isFocusedInTrap){lastFocusAfterTrapped=target;}else{tryFocus(lastFocusAfterTrapped,true);}}};var onFocusOut=function onFocusOut(e){var trapContainer=unref(forwardRef);if(focusLayer.paused||!trapContainer)return;if(props.trapped){var relatedTarget=e.relatedTarget;if(!isNil(relatedTarget)&&!trapContainer.contains(relatedTarget)){setTimeout(function(){if(!focusLayer.paused&&props.trapped){tryFocus(lastFocusAfterTrapped,true);}},0);}}else{var target=e.target;var isFocusedInTrap=target&&trapContainer.contains(target);if(!isFocusedInTrap)emit("focusout",e);}};function startTrap(){return _startTrap.apply(this,arguments);}function _startTrap(){_startTrap=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee6(){var trapContainer,prevFocusedElement,isPrevFocusContained,focusEvent;return regeneratorRuntime.wrap(function _callee6$(_context6){while(1){switch(_context6.prev=_context6.next){case 0:_context6.next=2;return nextTick();case 2:trapContainer=unref(forwardRef);if(trapContainer){focusableStack.push(focusLayer);prevFocusedElement=document.activeElement;lastFocusBeforeTrapped=prevFocusedElement;isPrevFocusContained=trapContainer.contains(prevFocusedElement);if(!isPrevFocusContained){focusEvent=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);trapContainer.addEventListener(FOCUS_AFTER_TRAPPED,trapOnFocus);trapContainer.dispatchEvent(focusEvent);if(!focusEvent.defaultPrevented){nextTick(function(){var focusStartEl=props.focusStartEl;if(!isString$2(focusStartEl)){tryFocus(focusStartEl);if(document.activeElement!==focusStartEl){focusStartEl="first";}}if(focusStartEl==="first"){focusFirstDescendant(obtainAllFocusableElements(trapContainer),true);}if(document.activeElement===prevFocusedElement||focusStartEl==="container"){tryFocus(trapContainer);}});}}}case 4:case"end":return _context6.stop();}}},_callee6);}));return _startTrap.apply(this,arguments);}function stopTrap(){var trapContainer=unref(forwardRef);if(trapContainer){trapContainer.removeEventListener(FOCUS_AFTER_TRAPPED,trapOnFocus);var releasedEvent=new Event(FOCUS_AFTER_RELEASED,FOCUS_AFTER_TRAPPED_OPTS);trapContainer.addEventListener(FOCUS_AFTER_RELEASED,releaseOnFocus);trapContainer.dispatchEvent(releasedEvent);if(!releasedEvent.defaultPrevented){tryFocus(lastFocusBeforeTrapped!=null?lastFocusBeforeTrapped:document.body,true);}trapContainer.removeEventListener(FOCUS_AFTER_RELEASED,trapOnFocus);focusableStack.remove(focusLayer);}}onMounted(function(){if(props.trapped){startTrap();}watch(function(){return props.trapped;},function(trapped){if(trapped){startTrap();}else{stopTrap();}});});onBeforeUnmount(function(){if(props.trapped){stopTrap();}});return{onKeydown:onKeydown};}});function _sfc_render$k(_ctx,_cache,$props,$setup,$data,$options){return renderSlot(_ctx.$slots,"default",{handleKeydown:_ctx.onKeydown});}var ElFocusTrap=/* @__PURE__ */_export_sfc$1(_sfc_main$12,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);var POSITIONING_STRATEGIES=["fixed","absolute"];var usePopperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:function _default(){return[];}},gpuAcceleration:{type:Boolean,default:true},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:function _default(){return{};}},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}});var usePopperContentProps=buildProps(_objectSpread(_objectSpread({},usePopperCoreConfigProps),{},{id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:true},pure:Boolean,focusOnShow:{type:Boolean,default:false},trapping:{type:Boolean,default:false},popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:true},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}));var usePopperContentEmits=["mouseenter","mouseleave","focus","blur","close"];var buildPopperOptions=function buildPopperOptions(props,arrowProps){var placement=props.placement,strategy=props.strategy,popperOptions=props.popperOptions;var options=_objectSpread(_objectSpread({placement:placement,strategy:strategy},popperOptions),{},{modifiers:genModifiers(props)});attachArrow(options,arrowProps);deriveExtraModifiers(options,popperOptions==null?void 0:popperOptions.modifiers);return options;};var unwrapMeasurableEl=function unwrapMeasurableEl($el){if(!isClient)return;return unrefElement($el);};function genModifiers(options){var offset=options.offset,gpuAcceleration=options.gpuAcceleration,fallbackPlacements=options.fallbackPlacements;return[{name:"offset",options:{offset:[0,offset!=null?offset:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:fallbackPlacements!=null?fallbackPlacements:[]}},{name:"computeStyles",options:{gpuAcceleration:gpuAcceleration,adaptive:gpuAcceleration}}];}function attachArrow(options,_ref76){var arrowEl=_ref76.arrowEl,arrowOffset=_ref76.arrowOffset;options.modifiers.push({name:"arrow",options:{element:arrowEl,padding:arrowOffset!=null?arrowOffset:5}});}function deriveExtraModifiers(options,modifiers){if(modifiers){options.modifiers=[].concat(_toConsumableArray2(options.modifiers),_toConsumableArray2(modifiers!=null?modifiers:[]));}}var __default__$C={name:"ElPopperContent"};var _sfc_main$11=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$C),{},{props:usePopperContentProps,emits:usePopperContentEmits,setup:function setup(__props,_ref77){var expose=_ref77.expose,emit=_ref77.emit;var props=__props;var _inject3=inject(POPPER_INJECTION_KEY,void 0),popperInstanceRef=_inject3.popperInstanceRef,contentRef=_inject3.contentRef,triggerRef=_inject3.triggerRef,role=_inject3.role;var formItemContext=inject(formItemContextKey,void 0);var _useZIndex=useZIndex(),nextZIndex=_useZIndex.nextZIndex;var ns=useNamespace("popper");var popperContentRef=ref();var focusStartRef=ref("first");var arrowRef=ref();var arrowOffset=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowRef:arrowRef,arrowOffset:arrowOffset});if(formItemContext&&(formItemContext.addInputId||formItemContext.removeInputId)){provide(formItemContextKey,_objectSpread(_objectSpread({},formItemContext),{},{addInputId:NOOP,removeInputId:NOOP}));}var contentZIndex=ref(props.zIndex||nextZIndex());var trapped=ref(false);var triggerTargetAriaStopWatch=void 0;var computedReference=computed(function(){return unwrapMeasurableEl(props.referenceEl)||unref(triggerRef);});var contentStyle=computed(function(){return[{zIndex:unref(contentZIndex)},props.popperStyle];});var contentClass=computed(function(){return[ns.b(),ns.is("pure",props.pure),ns.is(props.effect),props.popperClass];});var ariaModal=computed(function(){return role&&role.value==="dialog"?"false":void 0;});var createPopperInstance=function createPopperInstance(_ref78){var referenceEl=_ref78.referenceEl,popperContentEl=_ref78.popperContentEl,arrowEl=_ref78.arrowEl;var options=buildPopperOptions(props,{arrowEl:arrowEl,arrowOffset:unref(arrowOffset)});return yn(referenceEl,popperContentEl,options);};var updatePopper=function updatePopper(){var shouldUpdateZIndex=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var _a;(_a=unref(popperInstanceRef))==null?void 0:_a.update();shouldUpdateZIndex&&(contentZIndex.value=props.zIndex||nextZIndex());};var togglePopperAlive=function togglePopperAlive(){var _a,_b;var monitorable={name:"eventListeners",enabled:props.visible};(_b=(_a=unref(popperInstanceRef))==null?void 0:_a.setOptions)==null?void 0:_b.call(_a,function(options){return _objectSpread(_objectSpread({},options),{},{modifiers:[].concat(_toConsumableArray2(options.modifiers||[]),[monitorable])});});updatePopper(false);if(props.visible&&props.focusOnShow){trapped.value=true;}else if(props.visible===false){trapped.value=false;}};var onFocusAfterTrapped=function onFocusAfterTrapped(){emit("focus");};var onFocusAfterReleased=function onFocusAfterReleased(){focusStartRef.value="first";emit("blur");};var onFocusInTrap=function onFocusInTrap(event){var _a;if(props.visible&&!trapped.value){if(event.relatedTarget){(_a=event.relatedTarget)==null?void 0:_a.focus();}if(event.target){focusStartRef.value=event.target;}trapped.value=true;}};var onFocusoutPrevented=function onFocusoutPrevented(){if(!props.trapping){trapped.value=false;}};var onReleaseRequested=function onReleaseRequested(){trapped.value=false;emit("close");};onMounted(function(){var updateHandle;watch(computedReference,function(referenceEl){var _a;updateHandle==null?void 0:updateHandle();var popperInstance=unref(popperInstanceRef);(_a=popperInstance==null?void 0:popperInstance.destroy)==null?void 0:_a.call(popperInstance);if(referenceEl){var popperContentEl=unref(popperContentRef);contentRef.value=popperContentEl;popperInstanceRef.value=createPopperInstance({referenceEl:referenceEl,popperContentEl:popperContentEl,arrowEl:unref(arrowRef)});updateHandle=watch(function(){return referenceEl.getBoundingClientRect();},function(){return updatePopper();},{immediate:true});}else{popperInstanceRef.value=void 0;}},{immediate:true});watch(function(){return props.triggerTargetEl;},function(triggerTargetEl,prevTriggerTargetEl){triggerTargetAriaStopWatch==null?void 0:triggerTargetAriaStopWatch();triggerTargetAriaStopWatch=void 0;var el=unref(triggerTargetEl||popperContentRef.value);var prevEl=unref(prevTriggerTargetEl||popperContentRef.value);if(isElement$1(el)){var _toRefs=toRefs(props),ariaLabel=_toRefs.ariaLabel,id=_toRefs.id;triggerTargetAriaStopWatch=watch([role,ariaLabel,ariaModal,id],function(watches){["role","aria-label","aria-modal","id"].forEach(function(key,idx){isNil(watches[idx])?el.removeAttribute(key):el.setAttribute(key,watches[idx]);});},{immediate:true});}if(isElement$1(prevEl)){["role","aria-label","aria-modal","id"].forEach(function(key){prevEl.removeAttribute(key);});}},{immediate:true});watch(function(){return props.visible;},togglePopperAlive,{immediate:true});watch(function(){return buildPopperOptions(props,{arrowEl:unref(arrowRef),arrowOffset:unref(arrowOffset)});},function(option){var _a;return(_a=popperInstanceRef.value)==null?void 0:_a.setOptions(option);});});onBeforeUnmount(function(){triggerTargetAriaStopWatch==null?void 0:triggerTargetAriaStopWatch();triggerTargetAriaStopWatch=void 0;});expose({popperContentRef:popperContentRef,popperInstanceRef:popperInstanceRef,updatePopper:updatePopper,contentStyle:contentStyle});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{ref_key:"popperContentRef",ref:popperContentRef,style:normalizeStyle(unref(contentStyle)),class:normalizeClass(unref(contentClass)),tabindex:"-1",onMouseenter:_cache[0]||(_cache[0]=function(e){return _ctx.$emit("mouseenter",e);}),onMouseleave:_cache[1]||(_cache[1]=function(e){return _ctx.$emit("mouseleave",e);})},[createVNode(unref(ElFocusTrap),{trapped:trapped.value,"trap-on-focus-in":true,"focus-trap-el":popperContentRef.value,"focus-start-el":focusStartRef.value,onFocusAfterTrapped:onFocusAfterTrapped,onFocusAfterReleased:onFocusAfterReleased,onFocusin:onFocusInTrap,onFocusoutPrevented:onFocusoutPrevented,onReleaseRequested:onReleaseRequested},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38);};}}));var ElPopperContent=/* @__PURE__ */_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);var ElPopper=withInstall(Popper);var ns=useNamespace("tooltip");var useTooltipContentProps=buildProps(_objectSpread(_objectSpread(_objectSpread({},useDelayedToggleProps),usePopperContentProps),{},{appendTo:{type:definePropType([String,Object]),default:POPPER_CONTAINER_SELECTOR},content:{type:String,default:""},rawContent:{type:Boolean,default:false},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:{type:String,default:"".concat(ns.namespace.value,"-fade-in-linear")},teleported:{type:Boolean,default:true},disabled:{type:Boolean}}));var useTooltipTriggerProps=buildProps(_objectSpread(_objectSpread({},usePopperTriggerProps),{},{disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:function _default(){return[EVENT_CODE.enter,EVENT_CODE.space];}}}));var useTooltipProps=buildProps({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:true}});var TOOLTIP_INJECTION_KEY=Symbol("elTooltip");var _sfc_main$10=defineComponent({name:"ElTooltipContent",components:{ElPopperContent:ElPopperContent},inheritAttrs:false,props:useTooltipContentProps,setup:function setup(props){var contentRef=ref(null);var intermediateOpen=ref(false);var entering=ref(false);var leaving=ref(false);var destroyed=ref(false);var _inject4=inject(TOOLTIP_INJECTION_KEY,void 0),controlled=_inject4.controlled,id=_inject4.id,open=_inject4.open,trigger=_inject4.trigger,onClose=_inject4.onClose,onOpen=_inject4.onOpen,onShow=_inject4.onShow,onHide=_inject4.onHide,onBeforeShow=_inject4.onBeforeShow,onBeforeHide=_inject4.onBeforeHide;var persistentRef=computed(function(){return props.persistent;});onBeforeUnmount(function(){destroyed.value=true;});var shouldRender=computed(function(){return unref(persistentRef)?true:unref(open);});var shouldShow=computed(function(){return props.disabled?false:unref(open);});var contentStyle=computed(function(){var _a;return(_a=props.style)!=null?_a:{};});var ariaHidden=computed(function(){return!unref(open);});var onTransitionLeave=function onTransitionLeave(){onHide();};var stopWhenControlled=function stopWhenControlled(){if(unref(controlled))return true;};var onContentEnter=composeEventHandlers(stopWhenControlled,function(){if(props.enterable&&unref(trigger)==="hover"){onOpen();}});var onContentLeave=composeEventHandlers(stopWhenControlled,function(){if(unref(trigger)==="hover"){onClose();}});var onBeforeEnter=function onBeforeEnter(){var _a,_b;(_b=(_a=contentRef.value)==null?void 0:_a.updatePopper)==null?void 0:_b.call(_a);onBeforeShow==null?void 0:onBeforeShow();};var onBeforeLeave=function onBeforeLeave(){onBeforeHide==null?void 0:onBeforeHide();};var onAfterShow=function onAfterShow(){onShow();stopHandle=onClickOutside(computed(function(){var _a;return(_a=contentRef.value)==null?void 0:_a.popperContentRef;}),function(){if(unref(controlled))return;var $trigger=unref(trigger);if($trigger!=="hover"){onClose();}});};var onBlur=function onBlur(){if(!props.virtualTriggering){onClose();}};var stopHandle;watch(function(){return unref(open);},function(val){if(!val){stopHandle==null?void 0:stopHandle();}},{flush:"post"});return{ariaHidden:ariaHidden,entering:entering,leaving:leaving,id:id,intermediateOpen:intermediateOpen,contentStyle:contentStyle,contentRef:contentRef,destroyed:destroyed,shouldRender:shouldRender,shouldShow:shouldShow,onClose:onClose,open:open,onAfterShow:onAfterShow,onBeforeEnter:onBeforeEnter,onBeforeLeave:onBeforeLeave,onContentEnter:onContentEnter,onContentLeave:onContentLeave,onTransitionLeave:onTransitionLeave,onBlur:onBlur};}});function _sfc_render$j(_ctx,_cache,$props,$setup,$data,$options){var _component_el_popper_content=resolveComponent("el-popper-content");return openBlock(),createBlock(Teleport,{disabled:!_ctx.teleported,to:_ctx.appendTo},[createVNode(Transition,{name:_ctx.transition,onAfterLeave:_ctx.onTransitionLeave,onBeforeEnter:_ctx.onBeforeEnter,onAfterEnter:_ctx.onAfterShow,onBeforeLeave:_ctx.onBeforeLeave},{default:withCtx(function(){return[_ctx.shouldRender?withDirectives((openBlock(),createBlock(_component_el_popper_content,mergeProps({key:0,id:_ctx.id,ref:"contentRef"},_ctx.$attrs,{"aria-label":_ctx.ariaLabel,"aria-hidden":_ctx.ariaHidden,"boundaries-padding":_ctx.boundariesPadding,"fallback-placements":_ctx.fallbackPlacements,"gpu-acceleration":_ctx.gpuAcceleration,offset:_ctx.offset,placement:_ctx.placement,"popper-options":_ctx.popperOptions,strategy:_ctx.strategy,effect:_ctx.effect,enterable:_ctx.enterable,pure:_ctx.pure,"popper-class":_ctx.popperClass,"popper-style":[_ctx.popperStyle,_ctx.contentStyle],"reference-el":_ctx.referenceEl,"trigger-target-el":_ctx.triggerTargetEl,visible:_ctx.shouldShow,"z-index":_ctx.zIndex,onMouseenter:_ctx.onContentEnter,onMouseleave:_ctx.onContentLeave,onBlur:_ctx.onBlur,onClose:_ctx.onClose}),{default:withCtx(function(){return[createCommentVNode(" Workaround bug #6378 "),!_ctx.destroyed?renderSlot(_ctx.$slots,"default",{key:0}):createCommentVNode("v-if",true)];}),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[vShow,_ctx.shouldShow]]):createCommentVNode("v-if",true)];}),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"]);}var ElTooltipContent=/* @__PURE__ */_export_sfc$1(_sfc_main$10,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);var isTriggerType=function isTriggerType(trigger,type){if(isArray$7(trigger)){return trigger.includes(type);}return trigger===type;};var whenTrigger=function whenTrigger(trigger,type,handler){return function(e){isTriggerType(unref(trigger),type)&&handler(e);};};var _sfc_main$$=defineComponent({name:"ElTooltipTrigger",components:{ElPopperTrigger:ElPopperTrigger},props:useTooltipTriggerProps,setup:function setup(props){var ns=useNamespace("tooltip");var _inject5=inject(TOOLTIP_INJECTION_KEY,void 0),controlled=_inject5.controlled,id=_inject5.id,open=_inject5.open,onOpen=_inject5.onOpen,onClose=_inject5.onClose,onToggle=_inject5.onToggle;var triggerRef=ref(null);var stopWhenControlledOrDisabled=function stopWhenControlledOrDisabled(){if(unref(controlled)||props.disabled){return true;}};var trigger=toRef(props,"trigger");var onMouseenter=composeEventHandlers(stopWhenControlledOrDisabled,whenTrigger(trigger,"hover",onOpen));var onMouseleave=composeEventHandlers(stopWhenControlledOrDisabled,whenTrigger(trigger,"hover",onClose));var onClick=composeEventHandlers(stopWhenControlledOrDisabled,whenTrigger(trigger,"click",function(e){if(e.button===0){onToggle(e);}}));var onFocus=composeEventHandlers(stopWhenControlledOrDisabled,whenTrigger(trigger,"focus",onOpen));var onBlur=composeEventHandlers(stopWhenControlledOrDisabled,whenTrigger(trigger,"focus",onClose));var onContextMenu=composeEventHandlers(stopWhenControlledOrDisabled,whenTrigger(trigger,"contextmenu",function(e){e.preventDefault();onToggle(e);}));var onKeydown=composeEventHandlers(stopWhenControlledOrDisabled,function(e){var code=e.code;if(props.triggerKeys.includes(code)){e.preventDefault();onToggle(e);}});return{onBlur:onBlur,onContextMenu:onContextMenu,onFocus:onFocus,onMouseenter:onMouseenter,onMouseleave:onMouseleave,onClick:onClick,onKeydown:onKeydown,open:open,id:id,triggerRef:triggerRef,ns:ns};}});function _sfc_render$i(_ctx,_cache,$props,$setup,$data,$options){var _component_el_popper_trigger=resolveComponent("el-popper-trigger");return openBlock(),createBlock(_component_el_popper_trigger,{id:_ctx.id,"virtual-ref":_ctx.virtualRef,open:_ctx.open,"virtual-triggering":_ctx.virtualTriggering,class:normalizeClass(_ctx.ns.e("trigger")),onBlur:_ctx.onBlur,onClick:_ctx.onClick,onContextmenu:_ctx.onContextMenu,onFocus:_ctx.onFocus,onMouseenter:_ctx.onMouseenter,onMouseleave:_ctx.onMouseleave,onKeydown:_ctx.onKeydown},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]);}var ElTooltipTrigger=/* @__PURE__ */_export_sfc$1(_sfc_main$$,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);var _createModelToggleCom=createModelToggleComposable("visible"),useModelToggleProps=_createModelToggleCom.useModelToggleProps,useModelToggle=_createModelToggleCom.useModelToggle,useModelToggleEmits=_createModelToggleCom.useModelToggleEmits;var _sfc_main$_=defineComponent({name:"ElTooltip",components:{ElPopper:ElPopper,ElPopperArrow:ElPopperArrow,ElTooltipContent:ElTooltipContent,ElTooltipTrigger:ElTooltipTrigger},props:_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},usePopperProps),useModelToggleProps),useTooltipContentProps),useTooltipTriggerProps),usePopperArrowProps),useTooltipProps),emits:[].concat(_toConsumableArray2(useModelToggleEmits),["before-show","before-hide","show","hide","open","close"]),setup:function setup(props,_ref79){var emit=_ref79.emit;usePopperContainer();var compatShowAfter=computed(function(){if(!isUndefined(props.openDelay));return props.openDelay||props.showAfter;});var compatShowArrow=computed(function(){if(!isUndefined(props.visibleArrow));return isBoolean$1(props.visibleArrow)?props.visibleArrow:props.showArrow;});var id=useId();var popperRef=ref(null);var contentRef=ref(null);var updatePopper=function updatePopper(){var _a;var popperComponent=unref(popperRef);if(popperComponent){(_a=popperComponent.popperInstanceRef)==null?void 0:_a.update();}};var open=ref(false);var toggleReason=ref(void 0);var _useModelToggle=useModelToggle({indicator:open,toggleReason:toggleReason}),show=_useModelToggle.show,hide=_useModelToggle.hide;var _useDelayedToggle=useDelayedToggle({showAfter:compatShowAfter,hideAfter:toRef(props,"hideAfter"),open:show,close:hide}),_onOpen=_useDelayedToggle.onOpen,_onClose=_useDelayedToggle.onClose;var controlled=computed(function(){return isBoolean$1(props.visible);});provide(TOOLTIP_INJECTION_KEY,{controlled:controlled,id:id,open:readonly(open),trigger:toRef(props,"trigger"),onOpen:function onOpen(event){_onOpen(event);},onClose:function onClose(event){_onClose(event);},onToggle:function onToggle(event){if(unref(open)){_onClose(event);}else{_onOpen(event);}},onShow:function onShow(){emit("show",toggleReason.value);},onHide:function onHide(){emit("hide",toggleReason.value);},onBeforeShow:function onBeforeShow(){emit("before-show",toggleReason.value);},onBeforeHide:function onBeforeHide(){emit("before-hide",toggleReason.value);},updatePopper:updatePopper});watch(function(){return props.disabled;},function(disabled){if(disabled&&open.value){open.value=false;}});var isFocusInsideContent=function isFocusInsideContent(){var _a,_b;var popperContent=(_b=(_a=contentRef.value)==null?void 0:_a.contentRef)==null?void 0:_b.popperContentRef;return popperContent&&popperContent.contains(document.activeElement);};return{compatShowAfter:compatShowAfter,compatShowArrow:compatShowArrow,popperRef:popperRef,contentRef:contentRef,open:open,hide:hide,isFocusInsideContent:isFocusInsideContent,updatePopper:updatePopper,onOpen:_onOpen,onClose:_onClose};}});var _hoisted_1$C=["innerHTML"];var _hoisted_2$m={key:1};function _sfc_render$h(_ctx,_cache,$props,$setup,$data,$options){var _component_el_tooltip_trigger=resolveComponent("el-tooltip-trigger");var _component_el_popper_arrow=resolveComponent("el-popper-arrow");var _component_el_tooltip_content=resolveComponent("el-tooltip-content");var _component_el_popper=resolveComponent("el-popper");return openBlock(),createBlock(_component_el_popper,{ref:"popperRef",role:_ctx.role},{default:withCtx(function(){return[createVNode(_component_el_tooltip_trigger,{disabled:_ctx.disabled,trigger:_ctx.trigger,"trigger-keys":_ctx.triggerKeys,"virtual-ref":_ctx.virtualRef,"virtual-triggering":_ctx.virtualTriggering},{default:withCtx(function(){return[_ctx.$slots.default?renderSlot(_ctx.$slots,"default",{key:0}):createCommentVNode("v-if",true)];}),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(_component_el_tooltip_content,{ref:"contentRef","aria-label":_ctx.ariaLabel,"boundaries-padding":_ctx.boundariesPadding,content:_ctx.content,disabled:_ctx.disabled,effect:_ctx.effect,enterable:_ctx.enterable,"fallback-placements":_ctx.fallbackPlacements,"hide-after":_ctx.hideAfter,"gpu-acceleration":_ctx.gpuAcceleration,offset:_ctx.offset,persistent:_ctx.persistent,"popper-class":_ctx.popperClass,"popper-style":_ctx.popperStyle,placement:_ctx.placement,"popper-options":_ctx.popperOptions,pure:_ctx.pure,"raw-content":_ctx.rawContent,"reference-el":_ctx.referenceEl,"trigger-target-el":_ctx.triggerTargetEl,"show-after":_ctx.compatShowAfter,strategy:_ctx.strategy,teleported:_ctx.teleported,transition:_ctx.transition,"virtual-triggering":_ctx.virtualTriggering,"z-index":_ctx.zIndex,"append-to":_ctx.appendTo},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"content",{},function(){return[_ctx.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:_ctx.content},null,8,_hoisted_1$C)):(openBlock(),createElementBlock("span",_hoisted_2$m,toDisplayString(_ctx.content),1))];}),_ctx.compatShowArrow?(openBlock(),createBlock(_component_el_popper_arrow,{key:0,"arrow-offset":_ctx.arrowOffset},null,8,["arrow-offset"])):createCommentVNode("v-if",true)];}),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])];}),_:3},8,["role"]);}var Tooltip=/* @__PURE__ */_export_sfc$1(_sfc_main$_,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);var ElTooltip=exports('a4',withInstall(Tooltip));var badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var _hoisted_1$B=["textContent"];var __default__$B={name:"ElBadge"};var _sfc_main$Z=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$B),{},{props:badgeProps,setup:function setup(__props,_ref80){var expose=_ref80.expose;var props=__props;var ns=useNamespace("badge");var content=computed(function(){if(props.isDot)return"";if(isNumber$1(props.value)&&isNumber$1(props.max)){return props.max<props.value?"".concat(props.max,"+"):"".concat(props.value);}return"".concat(props.value);});expose({content:content});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass(unref(ns).b())},[renderSlot(_ctx.$slots,"default"),createVNode(Transition,{name:"".concat(unref(ns).namespace.value,"-zoom-in-center"),persisted:""},{default:withCtx(function(){return[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(ns).e("content"),unref(ns).em("content",_ctx.type),unref(ns).is("fixed",!!_ctx.$slots.default),unref(ns).is("dot",_ctx.isDot)]),textContent:toDisplayString(unref(content))},null,10,_hoisted_1$B),[[vShow,!_ctx.hidden&&(unref(content)||_ctx.isDot)]])];}),_:1},8,["name"])],2);};}}));var Badge=/* @__PURE__ */_export_sfc$1(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);var ElBadge=exports('aC',withInstall(Badge));var buttonTypes=["default","primary","success","warning","info","danger","text",""];var buttonNativeTypes=["button","submit","reset"];var buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType,default:""},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:function _default(){return loading_default;}},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}});var buttonEmits={click:function click(evt){return evt instanceof MouseEvent;}};/**
  2424. * Take input from [0, n] and return it as [0, 1]
  2425. * @hidden
  2426. */function bound01(n,max){if(isOnePointZero(n)){n='100%';}var isPercent=isPercentage(n);n=max===360?n:Math.min(max,Math.max(0,parseFloat(n)));// Automatically convert percentage into number
  2427. if(isPercent){n=parseInt(String(n*max),10)/100;}// Handle floating point rounding errors
  2428. if(Math.abs(n-max)<0.000001){return 1;}// Convert into [0, 1] range if it isn't already
  2429. if(max===360){// If n is a hue given in degrees,
  2430. // wrap around out-of-range values into [0, 360] range
  2431. // then convert into [0, 1].
  2432. n=(n<0?n%max+max:n%max)/parseFloat(String(max));}else{// If n not a hue given in degrees
  2433. // Convert into [0, 1] range if it isn't already.
  2434. n=n%max/parseFloat(String(max));}return n;}/**
  2435. * Force a number between 0 and 1
  2436. * @hidden
  2437. */function clamp01(val){return Math.min(1,Math.max(0,val));}/**
  2438. * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
  2439. * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
  2440. * @hidden
  2441. */function isOnePointZero(n){return typeof n==='string'&&n.indexOf('.')!==-1&&parseFloat(n)===1;}/**
  2442. * Check to see if string passed in is a percentage
  2443. * @hidden
  2444. */function isPercentage(n){return typeof n==='string'&&n.indexOf('%')!==-1;}/**
  2445. * Return a valid alpha value [0,1] with all invalid values being set to 1
  2446. * @hidden
  2447. */function boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1;}return a;}/**
  2448. * Replace a decimal with it's percentage value
  2449. * @hidden
  2450. */function convertToPercentage(n){if(n<=1){return"".concat(Number(n)*100,"%");}return n;}/**
  2451. * Force a hex value to have 2 characters
  2452. * @hidden
  2453. */function pad2(c){return c.length===1?'0'+c:String(c);}// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
  2454. // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
  2455. /**
  2456. * Handle bounds / percentage checking to conform to CSS color spec
  2457. * <http://www.w3.org/TR/css3-color/>
  2458. * *Assumes:* r, g, b in [0, 255] or [0, 1]
  2459. * *Returns:* { r, g, b } in [0, 255]
  2460. */function rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255};}/**
  2461. * Converts an RGB color value to HSL.
  2462. * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
  2463. * *Returns:* { h, s, l } in [0,1]
  2464. */function rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=Math.max(r,g,b);var min=Math.min(r,g,b);var h=0;var s=0;var l=(max+min)/2;if(max===min){s=0;h=0;// achromatic
  2465. }else{var d=max-min;s=l>0.5?d/(2-max-min):d/(max+min);switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break;}h/=6;}return{h:h,s:s,l:l};}function hue2rgb(p,q,t){if(t<0){t+=1;}if(t>1){t-=1;}if(t<1/6){return p+(q-p)*(6*t);}if(t<1/2){return q;}if(t<2/3){return p+(q-p)*(2/3-t)*6;}return p;}/**
  2466. * Converts an HSL color value to RGB.
  2467. *
  2468. * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
  2469. * *Returns:* { r, g, b } in the set [0, 255]
  2470. */function hslToRgb(h,s,l){var r;var g;var b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);if(s===0){// achromatic
  2471. g=l;b=l;r=l;}else{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);}return{r:r*255,g:g*255,b:b*255};}/**
  2472. * Converts an RGB color value to HSV
  2473. *
  2474. * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
  2475. * *Returns:* { h, s, v } in [0,1]
  2476. */function rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=Math.max(r,g,b);var min=Math.min(r,g,b);var h=0;var v=max;var d=max-min;var s=max===0?0:d/max;if(max===min){h=0;// achromatic
  2477. }else{switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break;}h/=6;}return{h:h,s:s,v:v};}/**
  2478. * Converts an HSV color value to RGB.
  2479. *
  2480. * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
  2481. * *Returns:* { r, g, b } in the set [0, 255]
  2482. */function hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=Math.floor(h);var f=h-i;var p=v*(1-s);var q=v*(1-f*s);var t=v*(1-(1-f)*s);var mod=i%6;var r=[v,q,p,p,t,v][mod];var g=[t,v,v,q,p,p][mod];var b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255};}/**
  2483. * Converts an RGB color to hex
  2484. *
  2485. * Assumes r, g, and b are contained in the set [0, 255]
  2486. * Returns a 3 or 6 character hex
  2487. */function rgbToHex(r,g,b,allow3Char){var hex=[pad2(Math.round(r).toString(16)),pad2(Math.round(g).toString(16)),pad2(Math.round(b).toString(16))];// Return a 3 character hex if possible
  2488. if(allow3Char&&hex[0].startsWith(hex[0].charAt(1))&&hex[1].startsWith(hex[1].charAt(1))&&hex[2].startsWith(hex[2].charAt(1))){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0);}return hex.join('');}/**
  2489. * Converts an RGBA color plus alpha transparency to hex
  2490. *
  2491. * Assumes r, g, b are contained in the set [0, 255] and
  2492. * a in [0, 1]. Returns a 4 or 8 character rgba hex
  2493. */ // eslint-disable-next-line max-params
  2494. function rgbaToHex(r,g,b,a,allow4Char){var hex=[pad2(Math.round(r).toString(16)),pad2(Math.round(g).toString(16)),pad2(Math.round(b).toString(16)),pad2(convertDecimalToHex(a))];// Return a 4 character hex if possible
  2495. if(allow4Char&&hex[0].startsWith(hex[0].charAt(1))&&hex[1].startsWith(hex[1].charAt(1))&&hex[2].startsWith(hex[2].charAt(1))&&hex[3].startsWith(hex[3].charAt(1))){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0);}return hex.join('');}/** Converts a decimal to a hex value */function convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16);}/** Converts a hex value to a decimal */function convertHexToDecimal(h){return parseIntFromHex(h)/255;}/** Parse a base-16 hex value into a base-10 integer */function parseIntFromHex(val){return parseInt(val,16);}function numberInputToObject(color){return{r:color>>16,g:(color&0xff00)>>8,b:color&0xff};}// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json
  2496. /**
  2497. * @hidden
  2498. */var names={aliceblue:'#f0f8ff',antiquewhite:'#faebd7',aqua:'#00ffff',aquamarine:'#7fffd4',azure:'#f0ffff',beige:'#f5f5dc',bisque:'#ffe4c4',black:'#000000',blanchedalmond:'#ffebcd',blue:'#0000ff',blueviolet:'#8a2be2',brown:'#a52a2a',burlywood:'#deb887',cadetblue:'#5f9ea0',chartreuse:'#7fff00',chocolate:'#d2691e',coral:'#ff7f50',cornflowerblue:'#6495ed',cornsilk:'#fff8dc',crimson:'#dc143c',cyan:'#00ffff',darkblue:'#00008b',darkcyan:'#008b8b',darkgoldenrod:'#b8860b',darkgray:'#a9a9a9',darkgreen:'#006400',darkgrey:'#a9a9a9',darkkhaki:'#bdb76b',darkmagenta:'#8b008b',darkolivegreen:'#556b2f',darkorange:'#ff8c00',darkorchid:'#9932cc',darkred:'#8b0000',darksalmon:'#e9967a',darkseagreen:'#8fbc8f',darkslateblue:'#483d8b',darkslategray:'#2f4f4f',darkslategrey:'#2f4f4f',darkturquoise:'#00ced1',darkviolet:'#9400d3',deeppink:'#ff1493',deepskyblue:'#00bfff',dimgray:'#696969',dimgrey:'#696969',dodgerblue:'#1e90ff',firebrick:'#b22222',floralwhite:'#fffaf0',forestgreen:'#228b22',fuchsia:'#ff00ff',gainsboro:'#dcdcdc',ghostwhite:'#f8f8ff',goldenrod:'#daa520',gold:'#ffd700',gray:'#808080',green:'#008000',greenyellow:'#adff2f',grey:'#808080',honeydew:'#f0fff0',hotpink:'#ff69b4',indianred:'#cd5c5c',indigo:'#4b0082',ivory:'#fffff0',khaki:'#f0e68c',lavenderblush:'#fff0f5',lavender:'#e6e6fa',lawngreen:'#7cfc00',lemonchiffon:'#fffacd',lightblue:'#add8e6',lightcoral:'#f08080',lightcyan:'#e0ffff',lightgoldenrodyellow:'#fafad2',lightgray:'#d3d3d3',lightgreen:'#90ee90',lightgrey:'#d3d3d3',lightpink:'#ffb6c1',lightsalmon:'#ffa07a',lightseagreen:'#20b2aa',lightskyblue:'#87cefa',lightslategray:'#778899',lightslategrey:'#778899',lightsteelblue:'#b0c4de',lightyellow:'#ffffe0',lime:'#00ff00',limegreen:'#32cd32',linen:'#faf0e6',magenta:'#ff00ff',maroon:'#800000',mediumaquamarine:'#66cdaa',mediumblue:'#0000cd',mediumorchid:'#ba55d3',mediumpurple:'#9370db',mediumseagreen:'#3cb371',mediumslateblue:'#7b68ee',mediumspringgreen:'#00fa9a',mediumturquoise:'#48d1cc',mediumvioletred:'#c71585',midnightblue:'#191970',mintcream:'#f5fffa',mistyrose:'#ffe4e1',moccasin:'#ffe4b5',navajowhite:'#ffdead',navy:'#000080',oldlace:'#fdf5e6',olive:'#808000',olivedrab:'#6b8e23',orange:'#ffa500',orangered:'#ff4500',orchid:'#da70d6',palegoldenrod:'#eee8aa',palegreen:'#98fb98',paleturquoise:'#afeeee',palevioletred:'#db7093',papayawhip:'#ffefd5',peachpuff:'#ffdab9',peru:'#cd853f',pink:'#ffc0cb',plum:'#dda0dd',powderblue:'#b0e0e6',purple:'#800080',rebeccapurple:'#663399',red:'#ff0000',rosybrown:'#bc8f8f',royalblue:'#4169e1',saddlebrown:'#8b4513',salmon:'#fa8072',sandybrown:'#f4a460',seagreen:'#2e8b57',seashell:'#fff5ee',sienna:'#a0522d',silver:'#c0c0c0',skyblue:'#87ceeb',slateblue:'#6a5acd',slategray:'#708090',slategrey:'#708090',snow:'#fffafa',springgreen:'#00ff7f',steelblue:'#4682b4',tan:'#d2b48c',teal:'#008080',thistle:'#d8bfd8',tomato:'#ff6347',turquoise:'#40e0d0',violet:'#ee82ee',wheat:'#f5deb3',white:'#ffffff',whitesmoke:'#f5f5f5',yellow:'#ffff00',yellowgreen:'#9acd32'};/**
  2499. * Given a string or object, convert that input to RGB
  2500. *
  2501. * Possible string inputs:
  2502. * ```
  2503. * "red"
  2504. * "#f00" or "f00"
  2505. * "#ff0000" or "ff0000"
  2506. * "#ff000000" or "ff000000"
  2507. * "rgb 255 0 0" or "rgb (255, 0, 0)"
  2508. * "rgb 1.0 0 0" or "rgb (1, 0, 0)"
  2509. * "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
  2510. * "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
  2511. * "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
  2512. * "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
  2513. * "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
  2514. * ```
  2515. */function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var s=null;var v=null;var l=null;var ok=false;var format=false;if(typeof color==='string'){color=stringInputToObject(color);}if(_typeof2(color)==='object'){if(isValidCSSUnit(color.r)&&isValidCSSUnit(color.g)&&isValidCSSUnit(color.b)){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)==='%'?'prgb':'rgb';}else if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.v)){s=convertToPercentage(color.s);v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,s,v);ok=true;format='hsv';}else if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.l)){s=convertToPercentage(color.s);l=convertToPercentage(color.l);rgb=hslToRgb(color.h,s,l);ok=true;format='hsl';}if(Object.prototype.hasOwnProperty.call(color,'a')){a=color.a;}}a=boundAlpha(a);return{ok:ok,format:color.format||format,r:Math.min(255,Math.max(rgb.r,0)),g:Math.min(255,Math.max(rgb.g,0)),b:Math.min(255,Math.max(rgb.b,0)),a:a};}// <http://www.w3.org/TR/css3-values/#integers>
  2516. var CSS_INTEGER='[-\\+]?\\d+%?';// <http://www.w3.org/TR/css3-values/#number-value>
  2517. var CSS_NUMBER='[-\\+]?\\d*\\.\\d+%?';// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
  2518. var CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")");// Actual matching.
  2519. // Parentheses and commas are optional, but not required.
  2520. // Whitespace can take the place of commas or opening paren
  2521. var PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?");var PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?");var matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp('rgb'+PERMISSIVE_MATCH3),rgba:new RegExp('rgba'+PERMISSIVE_MATCH4),hsl:new RegExp('hsl'+PERMISSIVE_MATCH3),hsla:new RegExp('hsla'+PERMISSIVE_MATCH4),hsv:new RegExp('hsv'+PERMISSIVE_MATCH3),hsva:new RegExp('hsva'+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};/**
  2522. * Permissive string parsing. Take in a number of formats, and output an object
  2523. * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
  2524. */function stringInputToObject(color){color=color.trim().toLowerCase();if(color.length===0){return false;}var named=false;if(names[color]){color=names[color];named=true;}else if(color==='transparent'){return{r:0,g:0,b:0,a:0,format:'name'};}// Try to match string input using regular expressions.
  2525. // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
  2526. // Just return an object and let the conversion functions handle that.
  2527. // This way the result will be the same whether the tinycolor is initialized with string or object.
  2528. var match=matchers.rgb.exec(color);if(match){return{r:match[1],g:match[2],b:match[3]};}match=matchers.rgba.exec(color);if(match){return{r:match[1],g:match[2],b:match[3],a:match[4]};}match=matchers.hsl.exec(color);if(match){return{h:match[1],s:match[2],l:match[3]};}match=matchers.hsla.exec(color);if(match){return{h:match[1],s:match[2],l:match[3],a:match[4]};}match=matchers.hsv.exec(color);if(match){return{h:match[1],s:match[2],v:match[3]};}match=matchers.hsva.exec(color);if(match){return{h:match[1],s:match[2],v:match[3],a:match[4]};}match=matchers.hex8.exec(color);if(match){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),a:convertHexToDecimal(match[4]),format:named?'name':'hex8'};}match=matchers.hex6.exec(color);if(match){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?'name':'hex'};}match=matchers.hex4.exec(color);if(match){return{r:parseIntFromHex(match[1]+match[1]),g:parseIntFromHex(match[2]+match[2]),b:parseIntFromHex(match[3]+match[3]),a:convertHexToDecimal(match[4]+match[4]),format:named?'name':'hex8'};}match=matchers.hex3.exec(color);if(match){return{r:parseIntFromHex(match[1]+match[1]),g:parseIntFromHex(match[2]+match[2]),b:parseIntFromHex(match[3]+match[3]),format:named?'name':'hex'};}return false;}/**
  2529. * Check to see if it looks like a CSS unit
  2530. * (see `matchers` above for definition).
  2531. */function isValidCSSUnit(color){return Boolean(matchers.CSS_UNIT.exec(String(color)));}var TinyColor=/** @class */function(){function TinyColor(color,opts){if(color===void 0){color='';}if(opts===void 0){opts={};}var _a;// If input is already a tinycolor, return itself
  2532. if(color instanceof TinyColor){// eslint-disable-next-line no-constructor-return
  2533. return color;}if(typeof color==='number'){color=numberInputToObject(color);}this.originalInput=color;var rgb=inputToRGB(color);this.originalInput=color;this.r=rgb.r;this.g=rgb.g;this.b=rgb.b;this.a=rgb.a;this.roundA=Math.round(100*this.a)/100;this.format=(_a=opts.format)!==null&&_a!==void 0?_a:rgb.format;this.gradientType=opts.gradientType;// Don't let the range of [0,255] come back in [0,1].
  2534. // Potentially lose a little bit of precision here, but will fix issues where
  2535. // .5 gets interpreted as half of the total, instead of half of 1
  2536. // If it was supposed to be 128, this was already taken care of by `inputToRgb`
  2537. if(this.r<1){this.r=Math.round(this.r);}if(this.g<1){this.g=Math.round(this.g);}if(this.b<1){this.b=Math.round(this.b);}this.isValid=rgb.ok;}TinyColor.prototype.isDark=function(){return this.getBrightness()<128;};TinyColor.prototype.isLight=function(){return!this.isDark();};/**
  2538. * Returns the perceived brightness of the color, from 0-255.
  2539. */TinyColor.prototype.getBrightness=function(){// http://www.w3.org/TR/AERT#color-contrast
  2540. var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1000;};/**
  2541. * Returns the perceived luminance of a color, from 0-1.
  2542. */TinyColor.prototype.getLuminance=function(){// http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
  2543. var rgb=this.toRgb();var R;var G;var B;var RsRGB=rgb.r/255;var GsRGB=rgb.g/255;var BsRGB=rgb.b/255;if(RsRGB<=0.03928){R=RsRGB/12.92;}else{// eslint-disable-next-line prefer-exponentiation-operator
  2544. R=Math.pow((RsRGB+0.055)/1.055,2.4);}if(GsRGB<=0.03928){G=GsRGB/12.92;}else{// eslint-disable-next-line prefer-exponentiation-operator
  2545. G=Math.pow((GsRGB+0.055)/1.055,2.4);}if(BsRGB<=0.03928){B=BsRGB/12.92;}else{// eslint-disable-next-line prefer-exponentiation-operator
  2546. B=Math.pow((BsRGB+0.055)/1.055,2.4);}return 0.2126*R+0.7152*G+0.0722*B;};/**
  2547. * Returns the alpha value of a color, from 0-1.
  2548. */TinyColor.prototype.getAlpha=function(){return this.a;};/**
  2549. * Sets the alpha value on the current color.
  2550. *
  2551. * @param alpha - The new alpha value. The accepted range is 0-1.
  2552. */TinyColor.prototype.setAlpha=function(alpha){this.a=boundAlpha(alpha);this.roundA=Math.round(100*this.a)/100;return this;};/**
  2553. * Returns the object as a HSVA object.
  2554. */TinyColor.prototype.toHsv=function(){var hsv=rgbToHsv(this.r,this.g,this.b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this.a};};/**
  2555. * Returns the hsva values interpolated into a string with the following format:
  2556. * "hsva(xxx, xxx, xxx, xx)".
  2557. */TinyColor.prototype.toHsvString=function(){var hsv=rgbToHsv(this.r,this.g,this.b);var h=Math.round(hsv.h*360);var s=Math.round(hsv.s*100);var v=Math.round(hsv.v*100);return this.a===1?"hsv(".concat(h,", ").concat(s,"%, ").concat(v,"%)"):"hsva(".concat(h,", ").concat(s,"%, ").concat(v,"%, ").concat(this.roundA,")");};/**
  2558. * Returns the object as a HSLA object.
  2559. */TinyColor.prototype.toHsl=function(){var hsl=rgbToHsl(this.r,this.g,this.b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this.a};};/**
  2560. * Returns the hsla values interpolated into a string with the following format:
  2561. * "hsla(xxx, xxx, xxx, xx)".
  2562. */TinyColor.prototype.toHslString=function(){var hsl=rgbToHsl(this.r,this.g,this.b);var h=Math.round(hsl.h*360);var s=Math.round(hsl.s*100);var l=Math.round(hsl.l*100);return this.a===1?"hsl(".concat(h,", ").concat(s,"%, ").concat(l,"%)"):"hsla(".concat(h,", ").concat(s,"%, ").concat(l,"%, ").concat(this.roundA,")");};/**
  2563. * Returns the hex value of the color.
  2564. * @param allow3Char will shorten hex value to 3 char if possible
  2565. */TinyColor.prototype.toHex=function(allow3Char){if(allow3Char===void 0){allow3Char=false;}return rgbToHex(this.r,this.g,this.b,allow3Char);};/**
  2566. * Returns the hex value of the color -with a # appened.
  2567. * @param allow3Char will shorten hex value to 3 char if possible
  2568. */TinyColor.prototype.toHexString=function(allow3Char){if(allow3Char===void 0){allow3Char=false;}return'#'+this.toHex(allow3Char);};/**
  2569. * Returns the hex 8 value of the color.
  2570. * @param allow4Char will shorten hex value to 4 char if possible
  2571. */TinyColor.prototype.toHex8=function(allow4Char){if(allow4Char===void 0){allow4Char=false;}return rgbaToHex(this.r,this.g,this.b,this.a,allow4Char);};/**
  2572. * Returns the hex 8 value of the color -with a # appened.
  2573. * @param allow4Char will shorten hex value to 4 char if possible
  2574. */TinyColor.prototype.toHex8String=function(allow4Char){if(allow4Char===void 0){allow4Char=false;}return'#'+this.toHex8(allow4Char);};/**
  2575. * Returns the object as a RGBA object.
  2576. */TinyColor.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a};};/**
  2577. * Returns the RGBA values interpolated into a string with the following format:
  2578. * "RGBA(xxx, xxx, xxx, xx)".
  2579. */TinyColor.prototype.toRgbString=function(){var r=Math.round(this.r);var g=Math.round(this.g);var b=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(g,", ").concat(b,")"):"rgba(".concat(r,", ").concat(g,", ").concat(b,", ").concat(this.roundA,")");};/**
  2580. * Returns the object as a RGBA object.
  2581. */TinyColor.prototype.toPercentageRgb=function(){var fmt=function fmt(x){return"".concat(Math.round(bound01(x,255)*100),"%");};return{r:fmt(this.r),g:fmt(this.g),b:fmt(this.b),a:this.a};};/**
  2582. * Returns the RGBA relative values interpolated into a string
  2583. */TinyColor.prototype.toPercentageRgbString=function(){var rnd=function rnd(x){return Math.round(bound01(x,255)*100);};return this.a===1?"rgb(".concat(rnd(this.r),"%, ").concat(rnd(this.g),"%, ").concat(rnd(this.b),"%)"):"rgba(".concat(rnd(this.r),"%, ").concat(rnd(this.g),"%, ").concat(rnd(this.b),"%, ").concat(this.roundA,")");};/**
  2584. * The 'real' name of the color -if there is one.
  2585. */TinyColor.prototype.toName=function(){if(this.a===0){return'transparent';}if(this.a<1){return false;}var hex='#'+rgbToHex(this.r,this.g,this.b,false);for(var _i=0,_a=Object.entries(names);_i<_a.length;_i++){var _b=_a[_i],key=_b[0],value=_b[1];if(hex===value){return key;}}return false;};TinyColor.prototype.toString=function(format){var formatSet=Boolean(format);format=format!==null&&format!==void 0?format:this.format;var formattedString=false;var hasAlpha=this.a<1&&this.a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format.startsWith('hex')||format==='name');if(needsAlphaFormat){// Special case for "transparent", all other non-alpha formats
  2586. // will return rgba when there is transparency.
  2587. if(format==='name'&&this.a===0){return this.toName();}return this.toRgbString();}if(format==='rgb'){formattedString=this.toRgbString();}if(format==='prgb'){formattedString=this.toPercentageRgbString();}if(format==='hex'||format==='hex6'){formattedString=this.toHexString();}if(format==='hex3'){formattedString=this.toHexString(true);}if(format==='hex4'){formattedString=this.toHex8String(true);}if(format==='hex8'){formattedString=this.toHex8String();}if(format==='name'){formattedString=this.toName();}if(format==='hsl'){formattedString=this.toHslString();}if(format==='hsv'){formattedString=this.toHsvString();}return formattedString||this.toHexString();};TinyColor.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b);};TinyColor.prototype.clone=function(){return new TinyColor(this.toString());};/**
  2588. * Lighten the color a given amount. Providing 100 will always return white.
  2589. * @param amount - valid between 1-100
  2590. */TinyColor.prototype.lighten=function(amount){if(amount===void 0){amount=10;}var hsl=this.toHsl();hsl.l+=amount/100;hsl.l=clamp01(hsl.l);return new TinyColor(hsl);};/**
  2591. * Brighten the color a given amount, from 0 to 100.
  2592. * @param amount - valid between 1-100
  2593. */TinyColor.prototype.brighten=function(amount){if(amount===void 0){amount=10;}var rgb=this.toRgb();rgb.r=Math.max(0,Math.min(255,rgb.r-Math.round(255*-(amount/100))));rgb.g=Math.max(0,Math.min(255,rgb.g-Math.round(255*-(amount/100))));rgb.b=Math.max(0,Math.min(255,rgb.b-Math.round(255*-(amount/100))));return new TinyColor(rgb);};/**
  2594. * Darken the color a given amount, from 0 to 100.
  2595. * Providing 100 will always return black.
  2596. * @param amount - valid between 1-100
  2597. */TinyColor.prototype.darken=function(amount){if(amount===void 0){amount=10;}var hsl=this.toHsl();hsl.l-=amount/100;hsl.l=clamp01(hsl.l);return new TinyColor(hsl);};/**
  2598. * Mix the color with pure white, from 0 to 100.
  2599. * Providing 0 will do nothing, providing 100 will always return white.
  2600. * @param amount - valid between 1-100
  2601. */TinyColor.prototype.tint=function(amount){if(amount===void 0){amount=10;}return this.mix('white',amount);};/**
  2602. * Mix the color with pure black, from 0 to 100.
  2603. * Providing 0 will do nothing, providing 100 will always return black.
  2604. * @param amount - valid between 1-100
  2605. */TinyColor.prototype.shade=function(amount){if(amount===void 0){amount=10;}return this.mix('black',amount);};/**
  2606. * Desaturate the color a given amount, from 0 to 100.
  2607. * Providing 100 will is the same as calling greyscale
  2608. * @param amount - valid between 1-100
  2609. */TinyColor.prototype.desaturate=function(amount){if(amount===void 0){amount=10;}var hsl=this.toHsl();hsl.s-=amount/100;hsl.s=clamp01(hsl.s);return new TinyColor(hsl);};/**
  2610. * Saturate the color a given amount, from 0 to 100.
  2611. * @param amount - valid between 1-100
  2612. */TinyColor.prototype.saturate=function(amount){if(amount===void 0){amount=10;}var hsl=this.toHsl();hsl.s+=amount/100;hsl.s=clamp01(hsl.s);return new TinyColor(hsl);};/**
  2613. * Completely desaturates a color into greyscale.
  2614. * Same as calling `desaturate(100)`
  2615. */TinyColor.prototype.greyscale=function(){return this.desaturate(100);};/**
  2616. * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
  2617. * Values outside of this range will be wrapped into this range.
  2618. */TinyColor.prototype.spin=function(amount){var hsl=this.toHsl();var hue=(hsl.h+amount)%360;hsl.h=hue<0?360+hue:hue;return new TinyColor(hsl);};/**
  2619. * Mix the current color a given amount with another color, from 0 to 100.
  2620. * 0 means no mixing (return current color).
  2621. */TinyColor.prototype.mix=function(color,amount){if(amount===void 0){amount=50;}var rgb1=this.toRgb();var rgb2=new TinyColor(color).toRgb();var p=amount/100;var rgba={r:(rgb2.r-rgb1.r)*p+rgb1.r,g:(rgb2.g-rgb1.g)*p+rgb1.g,b:(rgb2.b-rgb1.b)*p+rgb1.b,a:(rgb2.a-rgb1.a)*p+rgb1.a};return new TinyColor(rgba);};TinyColor.prototype.analogous=function(results,slices){if(results===void 0){results=6;}if(slices===void 0){slices=30;}var hsl=this.toHsl();var part=360/slices;var ret=[this];for(hsl.h=(hsl.h-(part*results>>1)+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(new TinyColor(hsl));}return ret;};/**
  2622. * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js
  2623. */TinyColor.prototype.complement=function(){var hsl=this.toHsl();hsl.h=(hsl.h+180)%360;return new TinyColor(hsl);};TinyColor.prototype.monochromatic=function(results){if(results===void 0){results=6;}var hsv=this.toHsv();var h=hsv.h;var s=hsv.s;var v=hsv.v;var res=[];var modification=1/results;while(results--){res.push(new TinyColor({h:h,s:s,v:v}));v=(v+modification)%1;}return res;};TinyColor.prototype.splitcomplement=function(){var hsl=this.toHsl();var h=hsl.h;return[this,new TinyColor({h:(h+72)%360,s:hsl.s,l:hsl.l}),new TinyColor({h:(h+216)%360,s:hsl.s,l:hsl.l})];};/**
  2624. * Compute how the color would appear on a background
  2625. */TinyColor.prototype.onBackground=function(background){var fg=this.toRgb();var bg=new TinyColor(background).toRgb();return new TinyColor({r:bg.r+(fg.r-bg.r)*fg.a,g:bg.g+(fg.g-bg.g)*fg.a,b:bg.b+(fg.b-bg.b)*fg.a});};/**
  2626. * Alias for `polyad(3)`
  2627. */TinyColor.prototype.triad=function(){return this.polyad(3);};/**
  2628. * Alias for `polyad(4)`
  2629. */TinyColor.prototype.tetrad=function(){return this.polyad(4);};/**
  2630. * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)
  2631. * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...
  2632. */TinyColor.prototype.polyad=function(n){var hsl=this.toHsl();var h=hsl.h;var result=[this];var increment=360/n;for(var i=1;i<n;i++){result.push(new TinyColor({h:(h+i*increment)%360,s:hsl.s,l:hsl.l}));}return result;};/**
  2633. * compare color vs current color
  2634. */TinyColor.prototype.equals=function(color){return this.toRgbString()===new TinyColor(color).toRgbString();};return TinyColor;}();function darken(color){var amount=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;return color.mix("#141414",amount).toString();}function useButtonCustomStyle(props){var _disabled=useDisabled$1();var ns=useNamespace("button");return computed(function(){var styles={};var buttonColor=props.color;if(buttonColor){var color=new TinyColor(buttonColor);var activeBgColor=props.dark?color.tint(20).toString():darken(color,20);if(props.plain){styles=ns.cssVarBlock({"bg-color":props.dark?darken(color,90):color.tint(90).toString(),"text-color":buttonColor,"border-color":props.dark?darken(color,50):color.tint(50).toString(),"hover-text-color":"var(".concat(ns.cssVarName("color-white"),")"),"hover-bg-color":buttonColor,"hover-border-color":buttonColor,"active-bg-color":activeBgColor,"active-text-color":"var(".concat(ns.cssVarName("color-white"),")"),"active-border-color":activeBgColor});if(_disabled.value){styles[ns.cssVarBlockName("disabled-bg-color")]=props.dark?darken(color,90):color.tint(90).toString();styles[ns.cssVarBlockName("disabled-text-color")]=props.dark?darken(color,50):color.tint(50).toString();styles[ns.cssVarBlockName("disabled-border-color")]=props.dark?darken(color,80):color.tint(80).toString();}}else{var hoverBgColor=props.dark?darken(color,30):color.tint(30).toString();var textColor=color.isDark()?"var(".concat(ns.cssVarName("color-white"),")"):"var(".concat(ns.cssVarName("color-black"),")");styles=ns.cssVarBlock({"bg-color":buttonColor,"text-color":textColor,"border-color":buttonColor,"hover-bg-color":hoverBgColor,"hover-text-color":textColor,"hover-border-color":hoverBgColor,"active-bg-color":activeBgColor,"active-border-color":activeBgColor});if(_disabled.value){var disabledButtonColor=props.dark?darken(color,50):color.tint(50).toString();styles[ns.cssVarBlockName("disabled-bg-color")]=disabledButtonColor;styles[ns.cssVarBlockName("disabled-text-color")]=props.dark?"rgba(255, 255, 255, 0.5)":"var(".concat(ns.cssVarName("color-white"),")");styles[ns.cssVarBlockName("disabled-border-color")]=disabledButtonColor;}}}return styles;});}var _hoisted_1$A=["aria-disabled","disabled","autofocus","type"];var __default__$A={name:"ElButton"};var _sfc_main$Y=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$A),{},{props:buttonProps,emits:buttonEmits,setup:function setup(__props,_ref81){var expose=_ref81.expose,emit=_ref81.emit;var props=__props;var slots=useSlots();useDeprecated({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(function(){return props.type==="text";}));var buttonGroupContext=inject(buttonGroupContextKey,void 0);var globalConfig=useGlobalConfig("button");var ns=useNamespace("button");var _useFormItem2=useFormItem(),form=_useFormItem2.form;var _size=useSize(computed(function(){return buttonGroupContext==null?void 0:buttonGroupContext.size;}));var _disabled=useDisabled$1();var _ref=ref();var _type=computed(function(){return props.type||(buttonGroupContext==null?void 0:buttonGroupContext.type)||"";});var autoInsertSpace=computed(function(){var _a,_b,_c;return(_c=(_b=props.autoInsertSpace)!=null?_b:(_a=globalConfig.value)==null?void 0:_a.autoInsertSpace)!=null?_c:false;});var shouldAddSpace=computed(function(){var _a;var defaultSlot=(_a=slots.default)==null?void 0:_a.call(slots);if(autoInsertSpace.value&&(defaultSlot==null?void 0:defaultSlot.length)===1){var slot=defaultSlot[0];if((slot==null?void 0:slot.type)===Text){var text=slot.children;return /^(?:[\u3400-\u4DBF\u4E00-\u9FFF\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD884[\uDC00-\uDF4A]){2}$/.test(text.trim());}}return false;});var buttonStyle=useButtonCustomStyle(props);var handleClick=function handleClick(evt){if(props.nativeType==="reset"){form==null?void 0:form.resetFields();}emit("click",evt);};expose({ref:_ref,size:_size,type:_type,disabled:_disabled,shouldAddSpace:shouldAddSpace});return function(_ctx,_cache){return openBlock(),createElementBlock("button",{ref_key:"_ref",ref:_ref,class:normalizeClass([unref(ns).b(),unref(ns).m(unref(_type)),unref(ns).m(unref(_size)),unref(ns).is("disabled",unref(_disabled)),unref(ns).is("loading",_ctx.loading),unref(ns).is("plain",_ctx.plain),unref(ns).is("round",_ctx.round),unref(ns).is("circle",_ctx.circle),unref(ns).is("text",_ctx.text),unref(ns).is("link",_ctx.link),unref(ns).is("has-bg",_ctx.bg)]),"aria-disabled":unref(_disabled)||_ctx.loading,disabled:unref(_disabled)||_ctx.loading,autofocus:_ctx.autofocus,type:_ctx.nativeType,style:normalizeStyle(unref(buttonStyle)),onClick:handleClick},[_ctx.loading?(openBlock(),createElementBlock(Fragment,{key:0},[_ctx.$slots.loading?renderSlot(_ctx.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(ns).is("loading"))},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.loadingIcon)))];}),_:1},8,["class"]))],64)):_ctx.icon||_ctx.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(function(){return[_ctx.icon?(openBlock(),createBlock(resolveDynamicComponent(_ctx.icon),{key:0})):renderSlot(_ctx.$slots,"icon",{key:1})];}),_:3})):createCommentVNode("v-if",true),_ctx.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(_defineProperty2({},unref(ns).em("text","expand"),unref(shouldAddSpace)))},[renderSlot(_ctx.$slots,"default")],2)):createCommentVNode("v-if",true)],14,_hoisted_1$A);};}}));var Button=/* @__PURE__ */_export_sfc$1(_sfc_main$Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);var buttonGroupProps={size:buttonProps.size,type:buttonProps.type};var __default__$z={name:"ElButtonGroup"};var _sfc_main$X=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$z),{},{props:buttonGroupProps,setup:function setup(__props){var props=__props;provide(buttonGroupContextKey,reactive({size:toRef(props,"size"),type:toRef(props,"type")}));var ns=useNamespace("button");return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass("".concat(unref(ns).b("group")))},[renderSlot(_ctx.$slots,"default")],2);};}}));var ButtonGroup=/* @__PURE__ */_export_sfc$1(_sfc_main$X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);var ElButton=exports('k',withInstall(Button,{ButtonGroup:ButtonGroup}));withNoopInstall(ButtonGroup);var commonjsGlobal=exports('az',typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{});function getAugmentedNamespace(n){if(n.__esModule)return n;var a=Object.defineProperty({},'__esModule',{value:true});Object.keys(n).forEach(function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:true,get:function get(){return n[k];}});});return a;}var dayjs_min={exports:{}};(function(module,exports$1){!function(t,e){module.exports=e();}(commonjsGlobal,function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function m(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t;},g={s:m,z:function z(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0");},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0);},a:function a(t){return t<0?Math.ceil(t)||0:Math.floor(t);},p:function p(t){return{M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"");},u:function u(t){return void 0===t;}},v="en",D={};D[v]=M;var p=function p(t){return t instanceof _;},S=function t(e,n,r){var i;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0]);}else{var a=e.name;D[a]=e,i=a;}return!r&&i&&(v=i),i||!r&&v;},w=function w(t,e){if(p(t))return t.clone();var n="object"==_typeof2(e)?e:{};return n.date=t,n.args=arguments,new _(n);},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset});};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date();if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s);}}return new Date(e);}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O;},m.isValid=function(){return!(this.$d.toString()===$);},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e);},m.isAfter=function(t,e){return w(t)<this.startOf(e);},m.isBefore=function(t,e){return this.endOf(e)<w(t);},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t);},m.unix=function(){return Math.floor(this.valueOf()/1e3);},m.valueOf=function(){return this.$d.getTime();},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function $(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a);},l=function l(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n);},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var v=this.$locale().weekStart||0,D=(y<v?y+7:y)-v;return $(r?m-D:m+(6-D),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone();}},m.endOf=function(t){return this.startOf(t,!1);},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this;},m.set=function(t,e){return this.clone().$set(t,e);},m.get=function(t){return this[O.p(t)]();},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function y(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$);};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this);},m.subtract=function(t,e){return this.add(-1*t,e);},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function h(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s);},c=function c(t){return O.s(s%12||12,t,"0");},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r;},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,function(t,e){return e||l[t]||i.replace(":","");});},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15);},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,v=O.m(this,M);return v=(l={},l[c]=v/12,l[f]=v,l[h]=v/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?v:O.a(v);},m.daysInMonth=function(){return this.endOf(f).$D;},m.$locale=function(){return D[this.$L];},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n;},m.clone=function(){return O.w(this.$d,this);},m.toDate=function(){return new Date(this.valueOf());},m.toJSON=function(){return this.isValid()?this.toISOString():null;},m.toISOString=function(){return this.$d.toISOString();},m.toString=function(){return this.$d.toUTCString();},M;}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1]);};}),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w;},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t);},w.en=D[v],w.Ls=D,w.p={},w;});})(dayjs_min);var dayjs=exports('aa',dayjs_min.exports);var localeData$1={exports:{}};(function(module,exports$1){!function(n,e){module.exports=e();}(commonjsGlobal,function(){return function(n,e,t){var r=e.prototype,o=function o(n){return n&&(n.indexOf?n:n.s);},u=function u(n,e,t,r,_u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map(function(n){return n.slice(0,r);});if(!_u)return f;var d=i.weekStart;return f.map(function(n,e){return f[(e+(d||0))%7];});},i=function i(){return t.Ls[t.locale()];},a=function a(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n,e,t){return e||t.slice(1);});}(n.formats[e.toUpperCase()]);},s=function s(){var n=this;return{months:function months(e){return e?e.format("MMMM"):u(n,"months");},monthsShort:function monthsShort(e){return e?e.format("MMM"):u(n,"monthsShort","months",3);},firstDayOfWeek:function firstDayOfWeek(){return n.$locale().weekStart||0;},weekdays:function weekdays(e){return e?e.format("dddd"):u(n,"weekdays");},weekdaysMin:function weekdaysMin(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2);},weekdaysShort:function weekdaysShort(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3);},longDateFormat:function longDateFormat(e){return a(n.$locale(),e);},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal};};r.localeData=function(){return s.bind(this)();},t.localeData=function(){var n=i();return{firstDayOfWeek:function firstDayOfWeek(){return n.weekStart||0;},weekdays:function weekdays(){return t.weekdays();},weekdaysShort:function weekdaysShort(){return t.weekdaysShort();},weekdaysMin:function weekdaysMin(){return t.weekdaysMin();},months:function months(){return t.months();},monthsShort:function monthsShort(){return t.monthsShort();},longDateFormat:function longDateFormat(e){return a(n,e);},meridiem:n.meridiem,ordinal:n.ordinal};},t.months=function(){return u(i(),"months");},t.monthsShort=function(){return u(i(),"monthsShort","months",3);},t.weekdays=function(n){return u(i(),"weekdays",null,null,n);},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n);},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n);};};});})(localeData$1);var localeData=localeData$1.exports;var customParseFormat$1={exports:{}};(function(module,exports$1){!function(e,t){module.exports=t();}(commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function s(e){return(e=+e)+(e>68?1900:2e3);};var a=function a(e){return function(t){this[e]=+t;};},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n;}(e);}],h=function h(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f));},u=function u(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1){if(e.indexOf(r(i,0,t))>-1){n=i>12;break;}}}else n=e===(t?"pm":"PM");return n;},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1){t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map(function(e){return e.slice(0,3);})).indexOf(e)+1;if(n<1)throw new Error();this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error();this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1);});})).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t;};}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date(),m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g);}catch(e){return new Date("");}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break;}m===l&&(this.$d=new Date(""));}else i.call(this,e);};};});})(customParseFormat$1);var customParseFormat=exports('aj',customParseFormat$1.exports);var timeUnits=["hours","minutes","seconds"];var DEFAULT_FORMATS_TIME="HH:mm:ss";var DEFAULT_FORMATS_DATE="YYYY-MM-DD";var DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,dates:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:"".concat(DEFAULT_FORMATS_DATE," ").concat(DEFAULT_FORMATS_TIME),monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:"".concat(DEFAULT_FORMATS_DATE," ").concat(DEFAULT_FORMATS_TIME)};var buildTimeList=function buildTimeList(value,bound){return[value>0?value-1:void 0,value,value<bound?value+1:void 0];};var rangeArr=function rangeArr(n){return Array.from(Array.from({length:n}).keys());};var extractDateFormat=function extractDateFormat(format){return format.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim();};var extractTimeFormat=function extractTimeFormat(format){return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim();};var dateEquals=function dateEquals(a,b){var aIsDate=isDate$2(a);var bIsDate=isDate$2(b);if(aIsDate&&bIsDate){return a.getTime()===b.getTime();}if(!aIsDate&&!bIsDate){return a===b;}return false;};var valueEquals=function valueEquals(a,b){var aIsArray=isArray$7(a);var bIsArray=isArray$7(b);if(aIsArray&&bIsArray){if(a.length!==b.length){return false;}return a.every(function(item,index){return dateEquals(item,b[index]);});}if(!aIsArray&&!bIsArray){return dateEquals(a,b);}return false;};var parseDate=function parseDate(date,format,lang){var day=isEmpty$1(format)||format==="x"?dayjs(date).locale(lang):dayjs(date,format).locale(lang);return day.isValid()?day:void 0;};var formatter=function formatter(date,format,lang){if(isEmpty$1(format))return date;if(format==="x")return+date;return dayjs(date).locale(lang).format(format);};var timePickerDefaultProps=buildProps({id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:true},clearIcon:{type:definePropType([String,Object]),default:circle_close_default},editable:{type:Boolean,default:true},prefixIcon:{type:definePropType([String,Object]),default:""},size:useSizeProp,readonly:{type:Boolean,default:false},disabled:{type:Boolean,default:false},placeholder:{type:String,default:""},popperOptions:{type:definePropType(Object),default:function _default(){return{};}},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:{type:Boolean,default:false},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:function _default(){return[];}},arrowControl:{type:Boolean,default:false},label:{type:String,default:void 0},tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:true},unlinkPanels:Boolean});var _hoisted_1$z=["id","name","placeholder","value","disabled","readonly"];var _hoisted_2$l=["id","name","placeholder","value","disabled","readonly"];var __default__$y={name:"Picker"};var _sfc_main$W=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$y),{},{props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup:function setup(__props,_ref82){var expose=_ref82.expose,emit=_ref82.emit;var props=__props;var _useLocale=useLocale(),lang=_useLocale.lang;var nsDate=useNamespace("date");var nsInput=useNamespace("input");var nsRange=useNamespace("range");var elForm=inject(formContextKey,{});var elFormItem=inject(formItemContextKey,{});var elPopperOptions=inject("ElPopperOptions",{});var refPopper=ref();var inputRef=ref();var pickerVisible=ref(false);var pickerActualVisible=ref(false);var valueOnOpen=ref(null);var hasJustTabExitedInput=false;var ignoreFocusEvent=false;watch(pickerVisible,function(val){if(!val){userInput.value=null;nextTick(function(){emitChange(props.modelValue);});}else{valueOnOpen.value=props.modelValue;}});var emitChange=function emitChange(val,isClear){var _a;if(isClear||!valueEquals(val,valueOnOpen.value)){emit("change",val);props.validateEvent&&((_a=elFormItem.validate)==null?void 0:_a.call(elFormItem,"change").catch(function(err){return debugWarn();}));}};var emitInput=function emitInput(input){if(!valueEquals(props.modelValue,input)){var formatted;if(isArray$7(input)){formatted=input.map(function(item){return formatter(item,props.valueFormat,lang.value);});}else if(input){formatted=formatter(input,props.valueFormat,lang.value);}emit("update:modelValue",input?formatted:input,lang.value);}};var emitKeydown=function emitKeydown(e){emit("keydown",e);};var refInput=computed(function(){if(inputRef.value){var _r=isRangeInput.value?inputRef.value:inputRef.value.$el;return Array.from(_r.querySelectorAll("input"));}return[];});var setSelectionRange=function setSelectionRange(start,end,pos){var _inputs=refInput.value;if(!_inputs.length)return;if(!pos||pos==="min"){_inputs[0].setSelectionRange(start,end);_inputs[0].focus();}else if(pos==="max"){_inputs[1].setSelectionRange(start,end);_inputs[1].focus();}};var focusOnInputBox=function focusOnInputBox(){focus(true,true);nextTick(function(){ignoreFocusEvent=false;});};var onPick=function onPick(){var date=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var visible=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!visible){focusOnInputBox();}pickerVisible.value=visible;var result;if(isArray$7(date)){result=date.map(function(_){return _.toDate();});}else{result=date?date.toDate():date;}userInput.value=null;emitInput(result);};var onBeforeShow=function onBeforeShow(){pickerActualVisible.value=true;};var onShow=function onShow(){emit("visible-change",true);};var onKeydownPopperContent=function onKeydownPopperContent(event){if((event==null?void 0:event.key)===EVENT_CODE.esc){focus(true,true);}};var onHide=function onHide(){pickerActualVisible.value=false;ignoreFocusEvent=false;emit("visible-change",false);};var focus=function focus(){var focusStartInput=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var isIgnoreFocusEvent=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;ignoreFocusEvent=isIgnoreFocusEvent;var _unref=unref(refInput),_unref2=_slicedToArray(_unref,2),leftInput=_unref2[0],rightInput=_unref2[1];var input=leftInput;if(!focusStartInput&&isRangeInput.value){input=rightInput;}if(input){input.focus();}};var handleFocusInput=function handleFocusInput(e){if(props.readonly||pickerDisabled.value||pickerVisible.value||ignoreFocusEvent){return;}pickerVisible.value=true;emit("focus",e);};var currentHandleBlurDeferCallback;var handleBlurInput=function handleBlurInput(e){var handleBlurDefer=/*#__PURE__*/function(){var _ref83=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee7(){return regeneratorRuntime.wrap(function _callee7$(_context7){while(1){switch(_context7.prev=_context7.next){case 0:setTimeout(function(){var _a,_b;if(currentHandleBlurDeferCallback===handleBlurDefer){if(!(((_a=refPopper.value)==null?void 0:_a.isFocusInsideContent())&&!hasJustTabExitedInput)&&refInput.value.filter(function(input){return input.contains(document.activeElement);}).length===0){handleChange();pickerVisible.value=false;emit("blur",e);props.validateEvent&&((_b=elFormItem.validate)==null?void 0:_b.call(elFormItem,"blur").catch(function(err){return debugWarn();}));}hasJustTabExitedInput=false;}},0);case 1:case"end":return _context7.stop();}}},_callee7);}));return function handleBlurDefer(){return _ref83.apply(this,arguments);};}();currentHandleBlurDeferCallback=handleBlurDefer;handleBlurDefer();};var pickerDisabled=computed(function(){return props.disabled||elForm.disabled;});var parsedValue=computed(function(){var dayOrDays;if(valueIsEmpty.value){if(pickerOptions.value.getDefaultValue){dayOrDays=pickerOptions.value.getDefaultValue();}}else{if(isArray$7(props.modelValue)){dayOrDays=props.modelValue.map(function(d){return parseDate(d,props.valueFormat,lang.value);});}else{dayOrDays=parseDate(props.modelValue,props.valueFormat,lang.value);}}if(pickerOptions.value.getRangeAvailableTime){var availableResult=pickerOptions.value.getRangeAvailableTime(dayOrDays);if(!isEqual(availableResult,dayOrDays)){dayOrDays=availableResult;emitInput(isArray$7(dayOrDays)?dayOrDays.map(function(_){return _.toDate();}):dayOrDays.toDate());}}if(isArray$7(dayOrDays)&&dayOrDays.some(function(day){return!day;})){dayOrDays=[];}return dayOrDays;});var displayValue=computed(function(){if(!pickerOptions.value.panelReady)return"";var formattedValue=formatDayjsToString(parsedValue.value);if(isArray$7(userInput.value)){return[userInput.value[0]||formattedValue&&formattedValue[0]||"",userInput.value[1]||formattedValue&&formattedValue[1]||""];}else if(userInput.value!==null){return userInput.value;}if(!isTimePicker.value&&valueIsEmpty.value)return"";if(!pickerVisible.value&&valueIsEmpty.value)return"";if(formattedValue){return isDatesPicker.value?formattedValue.join(", "):formattedValue;}return"";});var isTimeLikePicker=computed(function(){return props.type.includes("time");});var isTimePicker=computed(function(){return props.type.startsWith("time");});var isDatesPicker=computed(function(){return props.type==="dates";});var triggerIcon=computed(function(){return props.prefixIcon||(isTimeLikePicker.value?clock_default:calendar_default);});var showClose=ref(false);var onClearIconClick=function onClearIconClick(event){if(props.readonly||pickerDisabled.value)return;if(showClose.value){event.stopPropagation();focusOnInputBox();emitInput(null);emitChange(null,true);showClose.value=false;pickerVisible.value=false;pickerOptions.value.handleClear&&pickerOptions.value.handleClear();}};var valueIsEmpty=computed(function(){var modelValue=props.modelValue;return!modelValue||isArray$7(modelValue)&&!modelValue.filter(Boolean).length;});var onMouseDownInput=/*#__PURE__*/function(){var _ref84=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee8(event){var _a;return regeneratorRuntime.wrap(function _callee8$(_context8){while(1){switch(_context8.prev=_context8.next){case 0:if(!(props.readonly||pickerDisabled.value)){_context8.next=2;break;}return _context8.abrupt("return");case 2:if(((_a=event.target)==null?void 0:_a.tagName)!=="INPUT"||refInput.value.includes(document.activeElement)){pickerVisible.value=true;}case 3:case"end":return _context8.stop();}}},_callee8);}));return function onMouseDownInput(_x2){return _ref84.apply(this,arguments);};}();var onMouseEnter=function onMouseEnter(){if(props.readonly||pickerDisabled.value)return;if(!valueIsEmpty.value&&props.clearable){showClose.value=true;}};var onMouseLeave=function onMouseLeave(){showClose.value=false;};var onTouchStartInput=function onTouchStartInput(event){var _a;if(((_a=event.touches[0].target)==null?void 0:_a.tagName)!=="INPUT"||refInput.value.includes(document.activeElement)){pickerVisible.value=true;}};var isRangeInput=computed(function(){return props.type.includes("range");});var pickerSize=useSize();var popperEl=computed(function(){var _a,_b;return(_b=(_a=unref(refPopper))==null?void 0:_a.popperRef)==null?void 0:_b.contentRef;});var actualInputRef=computed(function(){var _a;if(unref(isRangeInput)){return unref(inputRef);}return(_a=unref(inputRef))==null?void 0:_a.$el;});onClickOutside(actualInputRef,function(e){var unrefedPopperEl=unref(popperEl);var inputEl=unref(actualInputRef);if(unrefedPopperEl&&(e.target===unrefedPopperEl||e.composedPath().includes(unrefedPopperEl))||e.target===inputEl||e.composedPath().includes(inputEl))return;pickerVisible.value=false;});var userInput=ref(null);var handleChange=function handleChange(){if(userInput.value){var value=parseUserInputToDayjs(displayValue.value);if(value){if(isValidValue(value)){emitInput(isArray$7(value)?value.map(function(_){return _.toDate();}):value.toDate());userInput.value=null;}}}if(userInput.value===""){emitInput(null);emitChange(null);userInput.value=null;}};var parseUserInputToDayjs=function parseUserInputToDayjs(value){if(!value)return null;return pickerOptions.value.parseUserInput(value);};var formatDayjsToString=function formatDayjsToString(value){if(!value)return null;return pickerOptions.value.formatToString(value);};var isValidValue=function isValidValue(value){return pickerOptions.value.isValidValue(value);};var handleKeydownInput=/*#__PURE__*/function(){var _ref85=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee9(event){var code;return regeneratorRuntime.wrap(function _callee9$(_context9){while(1){switch(_context9.prev=_context9.next){case 0:code=event.code;emitKeydown(event);if(!(code===EVENT_CODE.esc)){_context9.next=5;break;}if(pickerVisible.value===true){pickerVisible.value=false;event.preventDefault();event.stopPropagation();}return _context9.abrupt("return");case 5:if(!(code===EVENT_CODE.down)){_context9.next=14;break;}if(pickerOptions.value.handleFocusPicker){event.preventDefault();event.stopPropagation();}if(!(pickerVisible.value===false)){_context9.next=11;break;}pickerVisible.value=true;_context9.next=11;return nextTick();case 11:if(!pickerOptions.value.handleFocusPicker){_context9.next=14;break;}pickerOptions.value.handleFocusPicker();return _context9.abrupt("return");case 14:if(!(code===EVENT_CODE.tab)){_context9.next=17;break;}hasJustTabExitedInput=true;return _context9.abrupt("return");case 17:if(!(code===EVENT_CODE.enter||code===EVENT_CODE.numpadEnter)){_context9.next=21;break;}if(userInput.value===null||userInput.value===""||isValidValue(parseUserInputToDayjs(displayValue.value))){handleChange();pickerVisible.value=false;}event.stopPropagation();return _context9.abrupt("return");case 21:if(!userInput.value){_context9.next=24;break;}event.stopPropagation();return _context9.abrupt("return");case 24:if(pickerOptions.value.handleKeydownInput){pickerOptions.value.handleKeydownInput(event);}case 25:case"end":return _context9.stop();}}},_callee9);}));return function handleKeydownInput(_x3){return _ref85.apply(this,arguments);};}();var onUserInput=function onUserInput(e){userInput.value=e;if(!pickerVisible.value){pickerVisible.value=true;}};var handleStartInput=function handleStartInput(event){var target=event.target;if(userInput.value){userInput.value=[target.value,userInput.value[1]];}else{userInput.value=[target.value,null];}};var handleEndInput=function handleEndInput(event){var target=event.target;if(userInput.value){userInput.value=[userInput.value[0],target.value];}else{userInput.value=[null,target.value];}};var handleStartChange=function handleStartChange(){var _a;var values=userInput.value;var value=parseUserInputToDayjs(values&&values[0]);var parsedVal=unref(parsedValue);if(value&&value.isValid()){userInput.value=[formatDayjsToString(value),((_a=displayValue.value)==null?void 0:_a[1])||null];var newValue=[value,parsedVal&&(parsedVal[1]||null)];if(isValidValue(newValue)){emitInput(newValue);userInput.value=null;}}};var handleEndChange=function handleEndChange(){var _a;var values=unref(userInput);var value=parseUserInputToDayjs(values&&values[1]);var parsedVal=unref(parsedValue);if(value&&value.isValid()){userInput.value=[((_a=unref(displayValue))==null?void 0:_a[0])||null,formatDayjsToString(value)];var newValue=[parsedVal&&parsedVal[0],value];if(isValidValue(newValue)){emitInput(newValue);userInput.value=null;}}};var pickerOptions=ref({});var onSetPickerOption=function onSetPickerOption(e){pickerOptions.value[e[0]]=e[1];pickerOptions.value.panelReady=true;};var onCalendarChange=function onCalendarChange(e){emit("calendar-change",e);};var onPanelChange=function onPanelChange(value,mode,view){emit("panel-change",value,mode,view);};provide("EP_PICKER_BASE",{props:props});expose({focus:focus,handleFocusInput:handleFocusInput,handleBlurInput:handleBlurInput,onPick:onPick});return function(_ctx,_cache){return openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:refPopper,visible:pickerVisible.value,"onUpdate:visible":_cache[2]||(_cache[2]=function($event){return pickerVisible.value=$event;}),effect:"light",pure:"",trigger:"click"},_ctx.$attrs,{role:"dialog",teleported:"",transition:"".concat(unref(nsDate).namespace.value,"-zoom-in-top"),"popper-class":["".concat(unref(nsDate).namespace.value,"-picker__popper"),_ctx.popperClass],"popper-options":unref(elPopperOptions),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":false,"stop-popper-mouse-event":false,"hide-after":0,persistent:"",onBeforeShow:onBeforeShow,onShow:onShow,onHide:onHide}),{default:withCtx(function(){return[!unref(isRangeInput)?(openBlock(),createBlock(unref(ElInput),{key:0,id:_ctx.id,ref_key:"inputRef",ref:inputRef,"container-role":"combobox","model-value":unref(displayValue),name:_ctx.name,size:unref(pickerSize),disabled:unref(pickerDisabled),placeholder:_ctx.placeholder,class:normalizeClass([unref(nsDate).b("editor"),unref(nsDate).bm("editor",_ctx.type),_ctx.$attrs.class]),style:normalizeStyle(_ctx.$attrs.style),readonly:!_ctx.editable||_ctx.readonly||unref(isDatesPicker)||_ctx.type==="week",label:_ctx.label,tabindex:_ctx.tabindex,onInput:onUserInput,onFocus:handleFocusInput,onBlur:handleBlurInput,onKeydown:handleKeydownInput,onChange:handleChange,onMousedown:onMouseDownInput,onMouseenter:onMouseEnter,onMouseleave:onMouseLeave,onTouchstart:onTouchStartInput,onClick:_cache[0]||(_cache[0]=withModifiers(function(){},["stop"]))},{prefix:withCtx(function(){return[unref(triggerIcon)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(nsInput).e("icon")),onMousedown:onMouseDownInput,onTouchstart:onTouchStartInput},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(unref(triggerIcon))))];}),_:1},8,["class"])):createCommentVNode("v-if",true)];}),suffix:withCtx(function(){return[showClose.value&&_ctx.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass("".concat(unref(nsInput).e("icon")," clear-icon")),onClick:withModifiers(onClearIconClick,["stop"])},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.clearIcon)))];}),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)];}),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"])):(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:inputRef,class:normalizeClass([unref(nsDate).b("editor"),unref(nsDate).bm("editor",_ctx.type),unref(nsInput).e("wrapper"),unref(nsDate).is("disabled",unref(pickerDisabled)),unref(nsDate).is("active",pickerVisible.value),unref(nsRange).b("editor"),unref(pickerSize)?unref(nsRange).bm("editor",unref(pickerSize)):"",_ctx.$attrs.class]),style:normalizeStyle(_ctx.$attrs.style),onClick:handleFocusInput,onMousedown:onMouseDownInput,onMouseenter:onMouseEnter,onMouseleave:onMouseLeave,onTouchstart:onTouchStartInput,onKeydown:handleKeydownInput},[unref(triggerIcon)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(nsInput).e("icon"),unref(nsRange).e("icon")]),onMousedown:onMouseDownInput,onTouchstart:onTouchStartInput},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(unref(triggerIcon))))];}),_:1},8,["class"])):createCommentVNode("v-if",true),createBaseVNode("input",{id:_ctx.id&&_ctx.id[0],autocomplete:"off",name:_ctx.name&&_ctx.name[0],placeholder:_ctx.startPlaceholder,value:unref(displayValue)&&unref(displayValue)[0],disabled:unref(pickerDisabled),readonly:!_ctx.editable||_ctx.readonly,class:normalizeClass(unref(nsRange).b("input")),onInput:handleStartInput,onChange:handleStartChange,onFocus:handleFocusInput,onBlur:handleBlurInput},null,42,_hoisted_1$z),renderSlot(_ctx.$slots,"range-separator",{},function(){return[createBaseVNode("span",{class:normalizeClass(unref(nsRange).b("separator"))},toDisplayString(_ctx.rangeSeparator),3)];}),createBaseVNode("input",{id:_ctx.id&&_ctx.id[1],autocomplete:"off",name:_ctx.name&&_ctx.name[1],placeholder:_ctx.endPlaceholder,value:unref(displayValue)&&unref(displayValue)[1],disabled:unref(pickerDisabled),readonly:!_ctx.editable||_ctx.readonly,class:normalizeClass(unref(nsRange).b("input")),onFocus:handleFocusInput,onBlur:handleBlurInput,onInput:handleEndInput,onChange:handleEndChange},null,42,_hoisted_2$l),_ctx.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(nsInput).e("icon"),unref(nsRange).e("close-icon"),_defineProperty2({},unref(nsRange).e("close-icon--hidden"),!showClose.value)]),onClick:onClearIconClick},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.clearIcon)))];}),_:1},8,["class"])):createCommentVNode("v-if",true)],38))];}),content:withCtx(function(){return[renderSlot(_ctx.$slots,"default",{visible:pickerVisible.value,actualVisible:pickerActualVisible.value,parsedValue:unref(parsedValue),format:_ctx.format,unlinkPanels:_ctx.unlinkPanels,type:_ctx.type,defaultValue:_ctx.defaultValue,onPick:onPick,onSelectRange:setSelectionRange,onSetPickerOption:onSetPickerOption,onCalendarChange:onCalendarChange,onPanelChange:onPanelChange,onKeydown:onKeydownPopperContent,onMousedown:_cache[1]||(_cache[1]=withModifiers(function(){},["stop"]))})];}),_:3},16,["visible","transition","popper-class","popper-options"]);};}}));var CommonPicker=/* @__PURE__ */_export_sfc$1(_sfc_main$W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);var panelTimePickerProps=buildProps({visible:Boolean,actualVisible:{type:Boolean,default:void 0},datetimeRole:String,parsedValue:{type:definePropType(Object)},format:{type:String,default:""}});var useTimePanel=function useTimePanel(_ref87){var getAvailableHours=_ref87.getAvailableHours,getAvailableMinutes=_ref87.getAvailableMinutes,getAvailableSeconds=_ref87.getAvailableSeconds;var getAvailableTime=function getAvailableTime(date,role,first,compareDate){var availableTimeGetters={hour:getAvailableHours,minute:getAvailableMinutes,second:getAvailableSeconds};var result=date;["hour","minute","second"].forEach(function(type){if(availableTimeGetters[type]){var availableTimeSlots;var _method=availableTimeGetters[type];switch(type){case"minute":{availableTimeSlots=_method(result.hour(),role,compareDate);break;}case"second":{availableTimeSlots=_method(result.hour(),result.minute(),role,compareDate);break;}default:{availableTimeSlots=_method(role,compareDate);break;}}if((availableTimeSlots==null?void 0:availableTimeSlots.length)&&!availableTimeSlots.includes(result[type]())){var pos=first?0:availableTimeSlots.length-1;result=result[type](availableTimeSlots[pos]);}}});return result;};var timePickerOptions={};var onSetOption=function onSetOption(_ref88){var _ref89=_slicedToArray(_ref88,2),key=_ref89[0],val=_ref89[1];timePickerOptions[key]=val;};return{timePickerOptions:timePickerOptions,getAvailableTime:getAvailableTime,onSetOption:onSetOption};};var nodeList=/* @__PURE__ */new Map();var startClick;if(isClient){document.addEventListener("mousedown",function(e){return startClick=e;});document.addEventListener("mouseup",function(e){var _iterator11=_createForOfIteratorHelper(nodeList.values()),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var handlers=_step11.value;var _iterator12=_createForOfIteratorHelper(handlers),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var documentHandler=_step12.value.documentHandler;documentHandler(e,startClick);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}});}function createDocumentHandler(el,binding){var excludes=[];if(Array.isArray(binding.arg)){excludes=binding.arg;}else if(isElement$1(binding.arg)){excludes.push(binding.arg);}return function(mouseup,mousedown){var popperRef=binding.instance.popperRef;var mouseUpTarget=mouseup.target;var mouseDownTarget=mousedown==null?void 0:mousedown.target;var isBound=!binding||!binding.instance;var isTargetExists=!mouseUpTarget||!mouseDownTarget;var isContainedByEl=el.contains(mouseUpTarget)||el.contains(mouseDownTarget);var isSelf=el===mouseUpTarget;var isTargetExcluded=excludes.length&&excludes.some(function(item){return item==null?void 0:item.contains(mouseUpTarget);})||excludes.length&&excludes.includes(mouseDownTarget);var isContainedByPopper=popperRef&&(popperRef.contains(mouseUpTarget)||popperRef.contains(mouseDownTarget));if(isBound||isTargetExists||isContainedByEl||isSelf||isTargetExcluded||isContainedByPopper){return;}binding.value(mouseup,mousedown);};}var ClickOutside={beforeMount:function beforeMount(el,binding){if(!nodeList.has(el)){nodeList.set(el,[]);}nodeList.get(el).push({documentHandler:createDocumentHandler(el,binding),bindingFn:binding.value});},updated:function updated(el,binding){if(!nodeList.has(el)){nodeList.set(el,[]);}var handlers=nodeList.get(el);var oldHandlerIndex=handlers.findIndex(function(item){return item.bindingFn===binding.oldValue;});var newHandler={documentHandler:createDocumentHandler(el,binding),bindingFn:binding.value};if(oldHandlerIndex>=0){handlers.splice(oldHandlerIndex,1,newHandler);}else{handlers.push(newHandler);}},unmounted:function unmounted(el){nodeList.delete(el);}};var vRepeatClick={beforeMount:function beforeMount(el,binding){var interval=null;var startTime;var handler=function handler(){return binding.value&&binding.value();};var clear=function clear(){if(Date.now()-startTime<100){handler();}clearInterval(interval);interval=null;};on$1(el,"mousedown",function(e){if(e.button!==0)return;startTime=Date.now();once(document,"mouseup",clear);clearInterval(interval);interval=setInterval(handler,100);});}};var FOCUSABLE_CHILDREN="_trap-focus-children";var FOCUS_STACK=[];var FOCUS_HANDLER=function FOCUS_HANDLER(e){if(FOCUS_STACK.length===0)return;var focusableElement=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(focusableElement.length>0&&e.code===EVENT_CODE.tab){if(focusableElement.length===1){e.preventDefault();if(document.activeElement!==focusableElement[0]){focusableElement[0].focus();}return;}var goingBackward=e.shiftKey;var isFirst=e.target===focusableElement[0];var isLast=e.target===focusableElement[focusableElement.length-1];if(isFirst&&goingBackward){e.preventDefault();focusableElement[focusableElement.length-1].focus();}if(isLast&&!goingBackward){e.preventDefault();focusableElement[0].focus();}}};var TrapFocus={beforeMount:function beforeMount(el){el[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(el);FOCUS_STACK.push(el);if(FOCUS_STACK.length<=1){on$1(document,"keydown",FOCUS_HANDLER);}},updated:function updated(el){nextTick(function(){el[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(el);});},unmounted:function unmounted(){FOCUS_STACK.shift();if(FOCUS_STACK.length===0){off(document,"keydown",FOCUS_HANDLER);}}};var basicTimeSpinnerProps=buildProps({role:{type:String,required:true},spinnerDate:{type:definePropType(Object),required:true},showSeconds:{type:Boolean,default:true},arrowControl:Boolean,amPmMode:{type:definePropType(String),default:""},disabledHours:{type:definePropType(Function)},disabledMinutes:{type:definePropType(Function)},disabledSeconds:{type:definePropType(Function)}});var makeList=function makeList(total,method,methodFunc){var arr=[];var disabledArr=method&&methodFunc();for(var _i45=0;_i45<total;_i45++){arr[_i45]=disabledArr?disabledArr.includes(_i45):false;}return arr;};var makeAvailableArr=function makeAvailableArr(list){return list.map(function(_,index){return!_?index:_;}).filter(function(_){return _!==true;});};var getTimeLists=function getTimeLists(disabledHours,disabledMinutes,disabledSeconds){var getHoursList=function getHoursList(role,compare){return makeList(24,disabledHours,function(){return disabledHours(role,compare);});};var getMinutesList=function getMinutesList(hour,role,compare){return makeList(60,disabledMinutes,function(){return disabledMinutes(hour,role,compare);});};var getSecondsList=function getSecondsList(hour,minute,role,compare){return makeList(60,disabledSeconds,function(){return disabledSeconds(hour,minute,role,compare);});};return{getHoursList:getHoursList,getMinutesList:getMinutesList,getSecondsList:getSecondsList};};var getAvailableArrs=function getAvailableArrs(disabledHours,disabledMinutes,disabledSeconds){var _getTimeLists=getTimeLists(disabledHours,disabledMinutes,disabledSeconds),getHoursList=_getTimeLists.getHoursList,getMinutesList=_getTimeLists.getMinutesList,getSecondsList=_getTimeLists.getSecondsList;var getAvailableHours=function getAvailableHours(role,compare){return makeAvailableArr(getHoursList(role,compare));};var getAvailableMinutes=function getAvailableMinutes(hour,role,compare){return makeAvailableArr(getMinutesList(hour,role,compare));};var getAvailableSeconds=function getAvailableSeconds(hour,minute,role,compare){return makeAvailableArr(getSecondsList(hour,minute,role,compare));};return{getAvailableHours:getAvailableHours,getAvailableMinutes:getAvailableMinutes,getAvailableSeconds:getAvailableSeconds};};var useOldValue=function useOldValue(props){var oldValue=ref(props.parsedValue);watch(function(){return props.visible;},function(val){if(!val){oldValue.value=props.parsedValue;}});return oldValue;};var _hoisted_1$y=["onClick"];var _hoisted_2$k=["onMouseenter"];var _sfc_main$V=/* @__PURE__ */defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup:function setup(__props,_ref90){var emit=_ref90.emit;var props=__props;var ns=useNamespace("time");var _getTimeLists2=getTimeLists(props.disabledHours,props.disabledMinutes,props.disabledSeconds),getHoursList=_getTimeLists2.getHoursList,getMinutesList=_getTimeLists2.getMinutesList,getSecondsList=_getTimeLists2.getSecondsList;var isScrolling=false;var currentScrollbar=ref();var listHoursRef=ref();var listMinutesRef=ref();var listSecondsRef=ref();var listRefsMap={hours:listHoursRef,minutes:listMinutesRef,seconds:listSecondsRef};var spinnerItems=computed(function(){return props.showSeconds?timeUnits:timeUnits.slice(0,2);});var timePartials=computed(function(){var spinnerDate=props.spinnerDate;var hours=spinnerDate.hour();var minutes=spinnerDate.minute();var seconds=spinnerDate.second();return{hours:hours,minutes:minutes,seconds:seconds};});var timeList=computed(function(){var _unref3=unref(timePartials),hours=_unref3.hours,minutes=_unref3.minutes;return{hours:getHoursList(props.role),minutes:getMinutesList(hours,props.role),seconds:getSecondsList(hours,minutes,props.role)};});var arrowControlTimeList=computed(function(){var _unref4=unref(timePartials),hours=_unref4.hours,minutes=_unref4.minutes,seconds=_unref4.seconds;return{hours:buildTimeList(hours,23),minutes:buildTimeList(minutes,59),seconds:buildTimeList(seconds,59)};});var debouncedResetScroll=debounce(function(type){isScrolling=false;adjustCurrentSpinner(type);},200);var getAmPmFlag=function getAmPmFlag(hour){var shouldShowAmPm=!!props.amPmMode;if(!shouldShowAmPm)return"";var isCapital=props.amPmMode==="A";var content=hour<12?" am":" pm";if(isCapital)content=content.toUpperCase();return content;};var emitSelectRange=function emitSelectRange(type){var range;switch(type){case"hours":range=[0,2];break;case"minutes":range=[3,5];break;case"seconds":range=[6,8];break;}var _range=range,_range2=_slicedToArray(_range,2),left=_range2[0],right=_range2[1];emit("select-range",left,right);currentScrollbar.value=type;};var adjustCurrentSpinner=function adjustCurrentSpinner(type){adjustSpinner(type,unref(timePartials)[type]);};var adjustSpinners=function adjustSpinners(){adjustCurrentSpinner("hours");adjustCurrentSpinner("minutes");adjustCurrentSpinner("seconds");};var getScrollbarElement=function getScrollbarElement(el){return el.querySelector(".".concat(ns.namespace.value,"-scrollbar__wrap"));};var adjustSpinner=function adjustSpinner(type,value){if(props.arrowControl)return;var scrollbar=unref(listRefsMap[type]);if(scrollbar&&scrollbar.$el){getScrollbarElement(scrollbar.$el).scrollTop=Math.max(0,value*typeItemHeight(type));}};var typeItemHeight=function typeItemHeight(type){var scrollbar=unref(listRefsMap[type]);return(scrollbar==null?void 0:scrollbar.$el.querySelector("li").offsetHeight)||0;};var onIncrement=function onIncrement(){scrollDown(1);};var onDecrement=function onDecrement(){scrollDown(-1);};var scrollDown=function scrollDown(step){if(!currentScrollbar.value){emitSelectRange("hours");}var label=currentScrollbar.value;var now=unref(timePartials)[label];var total=currentScrollbar.value==="hours"?24:60;now=(now+step+total)%total;modifyDateField(label,now);adjustSpinner(label,now);nextTick(function(){return emitSelectRange(label);});};var modifyDateField=function modifyDateField(type,value){var list=unref(timeList)[type];var isDisabled=list[value];if(isDisabled)return;var _unref5=unref(timePartials),hours=_unref5.hours,minutes=_unref5.minutes,seconds=_unref5.seconds;var changeTo;switch(type){case"hours":changeTo=props.spinnerDate.hour(value).minute(minutes).second(seconds);break;case"minutes":changeTo=props.spinnerDate.hour(hours).minute(value).second(seconds);break;case"seconds":changeTo=props.spinnerDate.hour(hours).minute(minutes).second(value);break;}emit("change",changeTo);};var handleClick=function handleClick(type,_ref91){var value=_ref91.value,disabled=_ref91.disabled;if(!disabled){modifyDateField(type,value);emitSelectRange(type);adjustSpinner(type,value);}};var handleScroll=function handleScroll(type){isScrolling=true;debouncedResetScroll(type);var value=Math.min(Math.round((getScrollbarElement(unref(listRefsMap[type]).$el).scrollTop-(scrollBarHeight(type)*0.5-10)/typeItemHeight(type)+3)/typeItemHeight(type)),type==="hours"?23:59);modifyDateField(type,value);};var scrollBarHeight=function scrollBarHeight(type){return unref(listRefsMap[type]).$el.offsetHeight;};var bindScrollEvent=function bindScrollEvent(){var bindFunction=function bindFunction(type){var scrollbar=unref(listRefsMap[type]);if(scrollbar&&scrollbar.$el){getScrollbarElement(scrollbar.$el).onscroll=function(){handleScroll(type);};}};bindFunction("hours");bindFunction("minutes");bindFunction("seconds");};onMounted(function(){nextTick(function(){!props.arrowControl&&bindScrollEvent();adjustSpinners();if(props.role==="start")emitSelectRange("hours");});});var setRef=function setRef(scrollbar,type){listRefsMap[type].value=scrollbar;};emit("set-option",["".concat(props.role,"_scrollDown"),scrollDown]);emit("set-option",["".concat(props.role,"_emitSelectRange"),emitSelectRange]);watch(function(){return props.spinnerDate;},function(){if(isScrolling)return;adjustSpinners();});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ns).b("spinner"),{"has-seconds":_ctx.showSeconds}])},[!_ctx.arrowControl?(openBlock(true),createElementBlock(Fragment,{key:0},renderList(unref(spinnerItems),function(item){return openBlock(),createBlock(unref(ElScrollbar),{key:item,ref_for:true,ref:function ref(scollbar){return setRef(scollbar,item);},class:normalizeClass(unref(ns).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(ns).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:function onMouseenter($event){return emitSelectRange(item);},onMousemove:function onMousemove($event){return adjustCurrentSpinner(item);}},{default:withCtx(function(){return[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(timeList)[item],function(disabled,key){return openBlock(),createElementBlock("li",{key:key,class:normalizeClass([unref(ns).be("spinner","item"),unref(ns).is("active",key===unref(timePartials)[item]),unref(ns).is("disabled",disabled)]),onClick:function onClick($event){return handleClick(item,{value:key,disabled:disabled});}},[item==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(_ctx.amPmMode?key%12||12:key)).slice(-2))+toDisplayString(getAmPmFlag(key)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+key).slice(-2)),1)],64))],10,_hoisted_1$y);}),128))];}),_:2},1032,["class","view-class","onMouseenter","onMousemove"]);}),128)):createCommentVNode("v-if",true),_ctx.arrowControl?(openBlock(true),createElementBlock(Fragment,{key:1},renderList(unref(spinnerItems),function(item){return openBlock(),createElementBlock("div",{key:item,class:normalizeClass([unref(ns).be("spinner","wrapper"),unref(ns).is("arrow")]),onMouseenter:function onMouseenter($event){return emitSelectRange(item);}},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(ns).be("spinner","arrow")])},{default:withCtx(function(){return[createVNode(unref(arrow_up_default))];}),_:1},8,["class"])),[[unref(vRepeatClick),onDecrement]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(ns).be("spinner","arrow")])},{default:withCtx(function(){return[createVNode(unref(arrow_down_default))];}),_:1},8,["class"])),[[unref(vRepeatClick),onIncrement]]),createBaseVNode("ul",{class:normalizeClass(unref(ns).be("spinner","list"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(arrowControlTimeList)[item],function(time,key){return openBlock(),createElementBlock("li",{key:key,class:normalizeClass([unref(ns).be("spinner","item"),unref(ns).is("active",time===unref(timePartials)[item]),unref(ns).is("disabled",unref(timeList)[item][time])])},[typeof time==="number"?(openBlock(),createElementBlock(Fragment,{key:0},[item==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(_ctx.amPmMode?time%12||12:time)).slice(-2))+toDisplayString(getAmPmFlag(time)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+time).slice(-2)),1)],64))],64)):createCommentVNode("v-if",true)],2);}),128))],2)],42,_hoisted_2$k);}),128)):createCommentVNode("v-if",true)],2);};}});var TimeSpinner=/* @__PURE__ */_export_sfc$1(_sfc_main$V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);var _sfc_main$U=/* @__PURE__ */defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup:function setup(__props,_ref92){var emit=_ref92.emit;var props=__props;var pickerBase=inject("EP_PICKER_BASE");var _pickerBase$props=pickerBase.props,arrowControl=_pickerBase$props.arrowControl,disabledHours=_pickerBase$props.disabledHours,disabledMinutes=_pickerBase$props.disabledMinutes,disabledSeconds=_pickerBase$props.disabledSeconds,defaultValue=_pickerBase$props.defaultValue;var _getAvailableArrs=getAvailableArrs(disabledHours,disabledMinutes,disabledSeconds),getAvailableHours=_getAvailableArrs.getAvailableHours,getAvailableMinutes=_getAvailableArrs.getAvailableMinutes,getAvailableSeconds=_getAvailableArrs.getAvailableSeconds;var ns=useNamespace("time");var _useLocale2=useLocale(),t=_useLocale2.t,lang=_useLocale2.lang;var selectionRange=ref([0,2]);var oldValue=useOldValue(props);var transitionName=computed(function(){return isUndefined(props.actualVisible)?"".concat(ns.namespace.value,"-zoom-in-top"):"";});var showSeconds=computed(function(){return props.format.includes("ss");});var amPmMode=computed(function(){if(props.format.includes("A"))return"A";if(props.format.includes("a"))return"a";return"";});var isValidValue=function isValidValue(_date){var parsedDate=dayjs(_date).locale(lang.value);var result=getRangeAvailableTime(parsedDate);return parsedDate.isSame(result);};var handleCancel=function handleCancel(){emit("pick",oldValue.value,false);};var handleConfirm=function handleConfirm(){var visible=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var first=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(first)return;emit("pick",props.parsedValue,visible);};var handleChange=function handleChange(_date){if(!props.visible){return;}var result=getRangeAvailableTime(_date).millisecond(0);emit("pick",result,true);};var setSelectionRange=function setSelectionRange(start,end){emit("select-range",start,end);selectionRange.value=[start,end];};var changeSelectionRange=function changeSelectionRange(step){var list=[0,3].concat(showSeconds.value?[6]:[]);var mapping=["hours","minutes"].concat(showSeconds.value?["seconds"]:[]);var index=list.indexOf(selectionRange.value[0]);var next=(index+step+list.length)%list.length;timePickerOptions["start_emitSelectRange"](mapping[next]);};var handleKeydown=function handleKeydown(event){var code=event.code;var left=EVENT_CODE.left,right=EVENT_CODE.right,up=EVENT_CODE.up,down=EVENT_CODE.down;if([left,right].includes(code)){var step=code===left?-1:1;changeSelectionRange(step);event.preventDefault();return;}if([up,down].includes(code)){var _step13=code===up?-1:1;timePickerOptions["start_scrollDown"](_step13);event.preventDefault();return;}};var _useTimePanel=useTimePanel({getAvailableHours:getAvailableHours,getAvailableMinutes:getAvailableMinutes,getAvailableSeconds:getAvailableSeconds}),timePickerOptions=_useTimePanel.timePickerOptions,onSetOption=_useTimePanel.onSetOption,getAvailableTime=_useTimePanel.getAvailableTime;var getRangeAvailableTime=function getRangeAvailableTime(date){return getAvailableTime(date,props.datetimeRole||"",true);};var parseUserInput=function parseUserInput(value){if(!value)return null;return dayjs(value,props.format).locale(lang.value);};var formatToString=function formatToString(value){if(!value)return null;return value.format(props.format);};var getDefaultValue=function getDefaultValue(){return dayjs(defaultValue).locale(lang.value);};emit("set-picker-option",["isValidValue",isValidValue]);emit("set-picker-option",["formatToString",formatToString]);emit("set-picker-option",["parseUserInput",parseUserInput]);emit("set-picker-option",["handleKeydownInput",handleKeydown]);emit("set-picker-option",["getRangeAvailableTime",getRangeAvailableTime]);emit("set-picker-option",["getDefaultValue",getDefaultValue]);return function(_ctx,_cache){return openBlock(),createBlock(Transition,{name:unref(transitionName)},{default:withCtx(function(){return[_ctx.actualVisible||_ctx.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ns).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(ns).be("panel","content"),{"has-seconds":unref(showSeconds)}])},[createVNode(TimeSpinner,{ref:"spinner",role:_ctx.datetimeRole||"start","arrow-control":unref(arrowControl),"show-seconds":unref(showSeconds),"am-pm-mode":unref(amPmMode),"spinner-date":_ctx.parsedValue,"disabled-hours":unref(disabledHours),"disabled-minutes":unref(disabledMinutes),"disabled-seconds":unref(disabledSeconds),onChange:handleChange,onSetOption:unref(onSetOption),onSelectRange:setSelectionRange},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),createBaseVNode("div",{class:normalizeClass(unref(ns).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(ns).be("panel","btn"),"cancel"]),onClick:handleCancel},toDisplayString(unref(t)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ns).be("panel","btn"),"confirm"]),onClick:_cache[0]||(_cache[0]=function($event){return handleConfirm();})},toDisplayString(unref(t)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",true)];}),_:1},8,["name"]);};}});var TimePickPanel=/* @__PURE__ */_export_sfc$1(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);var carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:true},interval:{type:Number,default:3e3},indicatorPosition:{type:String,default:""},indicator:{type:Boolean,default:true},arrow:{type:String,default:"hover"},type:{type:String,default:""},loop:{type:Boolean,default:true},direction:{type:String,default:"horizontal",validator:function validator(val){return["horizontal","vertical"].includes(val);}},pauseOnHover:{type:Boolean,default:true}});var carouselEmits={change:function change(current,prev){return[current,prev].every(isNumber$1);}};var _hoisted_1$x=["onMouseenter","onMouseleave"];var _hoisted_2$j=["onMouseenter","onClick"];var _hoisted_3$c={key:0};var __default__$x={name:"ElCarousel"};var _sfc_main$T=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$x),{},{props:carouselProps,emits:carouselEmits,setup:function setup(__props,_ref93){var expose=_ref93.expose,emit=_ref93.emit;var props=__props;var ns=useNamespace("carousel");var THROTTLE_TIME=300;var activeIndex=ref(-1);var timer=ref(null);var hover=ref(false);var root=ref();var items=ref([]);var arrowDisplay=computed(function(){return props.arrow!=="never"&&!unref(isVertical);});var hasLabel=computed(function(){return items.value.some(function(item){return item.props.label.toString().length>0;});});var carouselClasses=computed(function(){var classes=[ns.b(),ns.m(props.direction)];if(unref(isCardType)){classes.push(ns.m("card"));}return classes;});var indicatorsClasses=computed(function(){var classes=[ns.e("indicators"),ns.em("indicators",props.direction)];if(hasLabel.value){classes.push(ns.em("indicators","labels"));}if(props.indicatorPosition==="outside"||unref(isCardType)){classes.push(ns.em("indicators","outside"));}return classes;});var isCardType=computed(function(){return props.type==="card";});var isVertical=computed(function(){return props.direction==="vertical";});var throttledArrowClick=throttle(function(index){setActiveItem(index);},THROTTLE_TIME,{trailing:true});var throttledIndicatorHover=throttle(function(index){handleIndicatorHover(index);},THROTTLE_TIME);function pauseTimer(){if(timer.value){clearInterval(timer.value);timer.value=null;}}function startTimer(){if(props.interval<=0||!props.autoplay||timer.value)return;timer.value=setInterval(function(){return playSlides();},props.interval);}var playSlides=function playSlides(){if(activeIndex.value<items.value.length-1){activeIndex.value=activeIndex.value+1;}else if(props.loop){activeIndex.value=0;}};function setActiveItem(index){if(isString$2(index)){var filteredItems=items.value.filter(function(item){return item.props.name===index;});if(filteredItems.length>0){index=items.value.indexOf(filteredItems[0]);}}index=Number(index);if(Number.isNaN(index)||index!==Math.floor(index)){return;}var itemCount=items.value.length;var oldIndex=activeIndex.value;if(index<0){activeIndex.value=props.loop?itemCount-1:0;}else if(index>=itemCount){activeIndex.value=props.loop?0:itemCount-1;}else{activeIndex.value=index;}if(oldIndex===activeIndex.value){resetItemPosition(oldIndex);}}function resetItemPosition(oldIndex){items.value.forEach(function(item,index){item.translateItem(index,activeIndex.value,oldIndex);});}function addItem(item){items.value.push(item);}function removeItem(uid){var index=items.value.findIndex(function(item){return item.uid===uid;});if(index!==-1){items.value.splice(index,1);if(activeIndex.value===index)next();}}function itemInStage(item,index){var _a,_b,_c,_d;var _items=unref(items);var itemCount=_items.length;if(itemCount===0||!item.states.inStage)return false;var nextItemIndex=index+1;var prevItemIndex=index-1;var lastItemIndex=itemCount-1;var isLastItemActive=_items[lastItemIndex].states.active;var isFirstItemActive=_items[0].states.active;var isNextItemActive=(_b=(_a=_items[nextItemIndex])==null?void 0:_a.states)==null?void 0:_b.active;var isPrevItemActive=(_d=(_c=_items[prevItemIndex])==null?void 0:_c.states)==null?void 0:_d.active;if(index===lastItemIndex&&isFirstItemActive||isNextItemActive){return"left";}else if(index===0&&isLastItemActive||isPrevItemActive){return"right";}return false;}function handleMouseEnter(){hover.value=true;if(props.pauseOnHover){pauseTimer();}}function handleMouseLeave(){hover.value=false;startTimer();}function handleButtonEnter(arrow){if(unref(isVertical))return;items.value.forEach(function(item,index){if(arrow===itemInStage(item,index)){item.states.hover=true;}});}function handleButtonLeave(){if(unref(isVertical))return;items.value.forEach(function(item){item.states.hover=false;});}function handleIndicatorClick(index){activeIndex.value=index;}function handleIndicatorHover(index){if(props.trigger==="hover"&&index!==activeIndex.value){activeIndex.value=index;}}function prev(){setActiveItem(activeIndex.value-1);}function next(){setActiveItem(activeIndex.value+1);}watch(function(){return activeIndex.value;},function(current,prev2){resetItemPosition(prev2);if(prev2>-1){emit("change",current,prev2);}});watch(function(){return props.autoplay;},function(autoplay){autoplay?startTimer():pauseTimer();});watch(function(){return props.loop;},function(){setActiveItem(activeIndex.value);});var resizeObserver=shallowRef();onMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee10(){return regeneratorRuntime.wrap(function _callee10$(_context10){while(1){switch(_context10.prev=_context10.next){case 0:_context10.next=2;return nextTick();case 2:resizeObserver.value=useResizeObserver(root.value,function(){resetItemPosition();});if(props.initialIndex<items.value.length&&props.initialIndex>=0){activeIndex.value=props.initialIndex;}startTimer();case 5:case"end":return _context10.stop();}}},_callee10);})));onBeforeUnmount(function(){pauseTimer();if(root.value&&resizeObserver.value)resizeObserver.value.stop();});provide(carouselContextKey,{root:root,isCardType:isCardType,isVertical:isVertical,items:items,loop:props.loop,addItem:addItem,removeItem:removeItem,setActiveItem:setActiveItem});expose({setActiveItem:setActiveItem,prev:prev,next:next});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{ref_key:"root",ref:root,class:normalizeClass(unref(carouselClasses)),onMouseenter:withModifiers(handleMouseEnter,["stop"]),onMouseleave:withModifiers(handleMouseLeave,["stop"])},[createBaseVNode("div",{class:normalizeClass(unref(ns).e("container")),style:normalizeStyle({height:_ctx.height})},[unref(arrowDisplay)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(function(){return[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(ns).e("arrow"),unref(ns).em("arrow","left")]),onMouseenter:_cache[0]||(_cache[0]=function($event){return handleButtonEnter("left");}),onMouseleave:handleButtonLeave,onClick:_cache[1]||(_cache[1]=withModifiers(function($event){return unref(throttledArrowClick)(activeIndex.value-1);},["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_left_default))];}),_:1})],34),[[vShow,(_ctx.arrow==="always"||hover.value)&&(props.loop||activeIndex.value>0)]])];}),_:1})):createCommentVNode("v-if",true),unref(arrowDisplay)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(function(){return[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(ns).e("arrow"),unref(ns).em("arrow","right")]),onMouseenter:_cache[2]||(_cache[2]=function($event){return handleButtonEnter("right");}),onMouseleave:handleButtonLeave,onClick:_cache[3]||(_cache[3]=withModifiers(function($event){return unref(throttledArrowClick)(activeIndex.value+1);},["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1})],34),[[vShow,(_ctx.arrow==="always"||hover.value)&&(props.loop||activeIndex.value<items.value.length-1)]])];}),_:1})):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"default")],6),_ctx.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(unref(indicatorsClasses))},[(openBlock(true),createElementBlock(Fragment,null,renderList(items.value,function(item,index){return openBlock(),createElementBlock("li",{key:index,class:normalizeClass([unref(ns).e("indicator"),unref(ns).em("indicator",_ctx.direction),unref(ns).is("active",index===activeIndex.value)]),onMouseenter:function onMouseenter($event){return unref(throttledIndicatorHover)(index);},onClick:withModifiers(function($event){return handleIndicatorClick(index);},["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(ns).e("button"))},[unref(hasLabel)?(openBlock(),createElementBlock("span",_hoisted_3$c,toDisplayString(item.props.label),1)):createCommentVNode("v-if",true)],2)],42,_hoisted_2$j);}),128))],2)):createCommentVNode("v-if",true)],42,_hoisted_1$x);};}}));var Carousel=/* @__PURE__ */_export_sfc$1(_sfc_main$T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);var carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}});var __default__$w={name:"ElCarouselItem"};var _sfc_main$S=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$w),{},{props:carouselItemProps,setup:function setup(__props){var props=__props;var ns=useNamespace("carousel");var carouselContext=inject(carouselContextKey);var instance=getCurrentInstance();var CARD_SCALE=0.83;var hover=ref(false);var translate=ref(0);var scale=ref(1);var active=ref(false);var ready=ref(false);var inStage=ref(false);var animating=ref(false);var isCardType=carouselContext.isCardType,isVertical=carouselContext.isVertical;var itemStyle=computed(function(){var translateType="translate".concat(unref(isVertical)?"Y":"X");var _translate="".concat(translateType,"(").concat(unref(translate),"px)");var _scale="scale(".concat(unref(scale),")");var transform=[_translate,_scale].join(" ");return{transform:transform};});function processIndex(index,activeIndex,length){var lastItemIndex=length-1;var prevItemIndex=activeIndex-1;var nextItemIndex=activeIndex+1;var halfItemIndex=length/2;if(activeIndex===0&&index===lastItemIndex){return-1;}else if(activeIndex===lastItemIndex&&index===0){return length;}else if(index<prevItemIndex&&activeIndex-index>=halfItemIndex){return length+1;}else if(index>nextItemIndex&&index-activeIndex>=halfItemIndex){return-2;}return index;}function calcCardTranslate(index,activeIndex){var _a;var parentWidth=((_a=carouselContext.root.value)==null?void 0:_a.offsetWidth)||0;if(inStage.value){return parentWidth*((2-CARD_SCALE)*(index-activeIndex)+1)/4;}else if(index<activeIndex){return-(1+CARD_SCALE)*parentWidth/4;}else{return(3+CARD_SCALE)*parentWidth/4;}}function calcTranslate(index,activeIndex,isVertical2){var rootEl=carouselContext.root.value;if(!rootEl)return 0;var distance=(isVertical2?rootEl.offsetHeight:rootEl.offsetWidth)||0;return distance*(index-activeIndex);}var translateItem=function translateItem(index,activeIndex,oldIndex){var _a;var _isCardType=unref(isCardType);var carouselItemLength=(_a=carouselContext.items.value.length)!=null?_a:Number.NaN;var isActive=index===activeIndex;if(!_isCardType&&!isUndefined(oldIndex)){animating.value=isActive||index===oldIndex;}if(!isActive&&carouselItemLength>2&&carouselContext.loop){index=processIndex(index,activeIndex,carouselItemLength);}var _isVertical=unref(isVertical);active.value=isActive;if(_isCardType){inStage.value=Math.round(Math.abs(index-activeIndex))<=1;translate.value=calcCardTranslate(index,activeIndex);scale.value=unref(active)?1:CARD_SCALE;}else{translate.value=calcTranslate(index,activeIndex,_isVertical);}ready.value=true;};function handleItemClick(){if(carouselContext&&unref(isCardType)){var index=carouselContext.items.value.findIndex(function(_ref95){var uid=_ref95.uid;return uid===instance.uid;});carouselContext.setActiveItem(index);}}onMounted(function(){carouselContext.addItem({props:props,states:reactive({hover:hover,translate:translate,scale:scale,active:active,ready:ready,inStage:inStage,animating:animating}),uid:instance.uid,translateItem:translateItem});});onUnmounted(function(){carouselContext.removeItem(instance.uid);});return function(_ctx,_cache){return withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([unref(ns).e("item"),unref(ns).is("active",active.value),unref(ns).is("in-stage",inStage.value),unref(ns).is("hover",hover.value),unref(ns).is("animating",animating.value),_defineProperty2({},unref(ns).em("item","card"),unref(isCardType))]),style:normalizeStyle(unref(itemStyle)),onClick:handleItemClick},[unref(isCardType)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ns).e("mask"))},null,2)),[[vShow,!active.value]]):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"default")],6)),[[vShow,ready.value]]);};}}));var CarouselItem=/* @__PURE__ */_export_sfc$1(_sfc_main$S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);var ElCarousel=exports('a6',withInstall(Carousel,{CarouselItem:CarouselItem}));var ElCarouselItem=exports('a7',withNoopInstall(CarouselItem));var useCheckboxGroupProps={modelValue:{type:Array,default:function _default(){return[];}},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:useSizeProp,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"}};var checkboxProps={modelValue:{type:[Number,String,Boolean],default:function _default(){return void 0;}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number]};var useCheckboxGroup=function useCheckboxGroup(){var elForm=inject(formContextKey,{});var elFormItem=inject(formItemContextKey,{});var checkboxGroup=inject("CheckboxGroup",{});var isGroup=computed(function(){return checkboxGroup&&(checkboxGroup==null?void 0:checkboxGroup.name)==="ElCheckboxGroup";});var elFormItemSize=computed(function(){return elFormItem.size;});return{isGroup:isGroup,checkboxGroup:checkboxGroup,elForm:elForm,elFormItemSize:elFormItemSize,elFormItem:elFormItem};};var useCheckboxGroupId=function useCheckboxGroupId(props,_ref97){var elFormItem=_ref97.elFormItem;var _useFormItemInputId2=useFormItemInputId(props,{formItemContext:elFormItem}),groupId=_useFormItemInputId2.inputId,isLabeledByFormItem=_useFormItemInputId2.isLabeledByFormItem;return{isLabeledByFormItem:isLabeledByFormItem,groupId:groupId};};var useModel=function useModel(props){var selfModel=ref(false);var _getCurrentInstance=getCurrentInstance(),emit=_getCurrentInstance.emit;var _useCheckboxGroup=useCheckboxGroup(),isGroup=_useCheckboxGroup.isGroup,checkboxGroup=_useCheckboxGroup.checkboxGroup,elFormItem=_useCheckboxGroup.elFormItem;var isLimitExceeded=ref(false);var model=computed({get:function get(){var _a,_b;return isGroup.value?(_a=checkboxGroup.modelValue)==null?void 0:_a.value:(_b=props.modelValue)!=null?_b:selfModel.value;},set:function set(val){var _a;if(isGroup.value&&Array.isArray(val)){isLimitExceeded.value=checkboxGroup.max!==void 0&&val.length>checkboxGroup.max.value;isLimitExceeded.value===false&&((_a=checkboxGroup==null?void 0:checkboxGroup.changeEvent)==null?void 0:_a.call(checkboxGroup,val));}else{emit(UPDATE_MODEL_EVENT,val);selfModel.value=val;}}});return{model:model,isGroup:isGroup,isLimitExceeded:isLimitExceeded,elFormItem:elFormItem};};var useCheckboxStatus=function useCheckboxStatus(props,slots,_ref98){var model=_ref98.model;var _useCheckboxGroup2=useCheckboxGroup(),isGroup=_useCheckboxGroup2.isGroup,checkboxGroup=_useCheckboxGroup2.checkboxGroup;var focus=ref(false);var size=useSize(checkboxGroup==null?void 0:checkboxGroup.checkboxGroupSize,{prop:true});var isChecked=computed(function(){var value=model.value;if(toTypeString(value)==="[object Boolean]"){return value;}else if(Array.isArray(value)){return value.includes(props.label);}else if(value!==null&&value!==void 0){return value===props.trueLabel;}else{return!!value;}});var checkboxSize=useSize(computed(function(){var _a;return isGroup.value?(_a=checkboxGroup==null?void 0:checkboxGroup.checkboxGroupSize)==null?void 0:_a.value:void 0;}));var hasOwnLabel=computed(function(){return!!(slots.default||props.label);});return{isChecked:isChecked,focus:focus,size:size,checkboxSize:checkboxSize,hasOwnLabel:hasOwnLabel};};var useDisabled=function useDisabled(props,_ref99){var model=_ref99.model,isChecked=_ref99.isChecked;var _useCheckboxGroup3=useCheckboxGroup(),elForm=_useCheckboxGroup3.elForm,isGroup=_useCheckboxGroup3.isGroup,checkboxGroup=_useCheckboxGroup3.checkboxGroup;var isLimitDisabled=computed(function(){var _a,_b;var max=(_a=checkboxGroup.max)==null?void 0:_a.value;var min=(_b=checkboxGroup.min)==null?void 0:_b.value;return!!(max||min)&&model.value.length>=max&&!isChecked.value||model.value.length<=min&&isChecked.value;});var isDisabled=computed(function(){var _a,_b;var disabled=props.disabled||(elForm==null?void 0:elForm.disabled);return(_b=isGroup.value?((_a=checkboxGroup.disabled)==null?void 0:_a.value)||disabled||isLimitDisabled.value:disabled)!=null?_b:false;});return{isDisabled:isDisabled,isLimitDisabled:isLimitDisabled};};var setStoreValue=function setStoreValue(props,_ref100){var model=_ref100.model;function addToStore(){if(Array.isArray(model.value)&&!model.value.includes(props.label)){model.value.push(props.label);}else{model.value=props.trueLabel||true;}}props.checked&&addToStore();};var useEvent=function useEvent(props,_ref101){var model=_ref101.model,isLimitExceeded=_ref101.isLimitExceeded,hasOwnLabel=_ref101.hasOwnLabel,isDisabled=_ref101.isDisabled,isLabeledByFormItem=_ref101.isLabeledByFormItem;var _useCheckboxGroup4=useCheckboxGroup(),elFormItem=_useCheckboxGroup4.elFormItem;var _getCurrentInstance2=getCurrentInstance(),emit=_getCurrentInstance2.emit;function getLabeledValue(value){var _a,_b;return value===props.trueLabel||value===true?(_a=props.trueLabel)!=null?_a:true:(_b=props.falseLabel)!=null?_b:false;}function emitChangeEvent(checked,e){emit("change",getLabeledValue(checked),e);}function handleChange(e){if(isLimitExceeded.value)return;var target=e.target;emit("change",getLabeledValue(target.checked),e);}function onClickRoot(_x4){return _onClickRoot.apply(this,arguments);}function _onClickRoot(){_onClickRoot=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee11(e){return regeneratorRuntime.wrap(function _callee11$(_context11){while(1){switch(_context11.prev=_context11.next){case 0:if(!isLimitExceeded.value){_context11.next=2;break;}return _context11.abrupt("return");case 2:if(!(!hasOwnLabel.value&&!isDisabled.value&&isLabeledByFormItem.value)){_context11.next=7;break;}model.value=getLabeledValue([false,props.falseLabel].includes(model.value));_context11.next=6;return nextTick();case 6:emitChangeEvent(model.value,e);case 7:case"end":return _context11.stop();}}},_callee11);}));return _onClickRoot.apply(this,arguments);}watch(function(){return props.modelValue;},function(){var _a;(_a=elFormItem==null?void 0:elFormItem.validate)==null?void 0:_a.call(elFormItem,"change").catch(function(err){return debugWarn();});});return{handleChange:handleChange,onClickRoot:onClickRoot};};var checkboxEmits=(_checkboxEmits={},_defineProperty2(_checkboxEmits,UPDATE_MODEL_EVENT,function(val){return isString$2(val)||isNumber$1(val)||isBoolean$1(val);}),_defineProperty2(_checkboxEmits,"change",function change(val){return isString$2(val)||isNumber$1(val)||isBoolean$1(val);}),_checkboxEmits);var useCheckbox=function useCheckbox(props,slots){var _useModel=useModel(props),model=_useModel.model,isGroup=_useModel.isGroup,isLimitExceeded=_useModel.isLimitExceeded,elFormItem=_useModel.elFormItem;var _useCheckboxStatus=useCheckboxStatus(props,slots,{model:model}),focus=_useCheckboxStatus.focus,size=_useCheckboxStatus.size,isChecked=_useCheckboxStatus.isChecked,checkboxSize=_useCheckboxStatus.checkboxSize,hasOwnLabel=_useCheckboxStatus.hasOwnLabel;var _useDisabled=useDisabled(props,{model:model,isChecked:isChecked}),isDisabled=_useDisabled.isDisabled;var _useFormItemInputId3=useFormItemInputId(props,{formItemContext:elFormItem,disableIdGeneration:hasOwnLabel,disableIdManagement:isGroup}),inputId=_useFormItemInputId3.inputId,isLabeledByFormItem=_useFormItemInputId3.isLabeledByFormItem;var _useEvent=useEvent(props,{model:model,isLimitExceeded:isLimitExceeded,hasOwnLabel:hasOwnLabel,isDisabled:isDisabled,isLabeledByFormItem:isLabeledByFormItem}),handleChange=_useEvent.handleChange,onClickRoot=_useEvent.onClickRoot;setStoreValue(props,{model:model});return{elFormItem:elFormItem,inputId:inputId,isLabeledByFormItem:isLabeledByFormItem,isChecked:isChecked,isDisabled:isDisabled,isGroup:isGroup,checkboxSize:checkboxSize,hasOwnLabel:hasOwnLabel,model:model,handleChange:handleChange,onClickRoot:onClickRoot,focus:focus,size:size};};var _hoisted_1$w=["tabindex","role","aria-checked"];var _hoisted_2$i=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"];var _hoisted_3$b=["id","aria-hidden","disabled","value","name","tabindex"];var __default__$v={name:"ElCheckbox"};var _sfc_main$R=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$v),{},{props:checkboxProps,emits:checkboxEmits,setup:function setup(__props){var props=__props;var slots=useSlots();var _useCheckbox=useCheckbox(props,slots),inputId=_useCheckbox.inputId,isLabeledByFormItem=_useCheckbox.isLabeledByFormItem,isChecked=_useCheckbox.isChecked,isDisabled=_useCheckbox.isDisabled,checkboxSize=_useCheckbox.checkboxSize,hasOwnLabel=_useCheckbox.hasOwnLabel,model=_useCheckbox.model,handleChange=_useCheckbox.handleChange,onClickRoot=_useCheckbox.onClickRoot,focus=_useCheckbox.focus;var ns=useNamespace("checkbox");return function(_ctx,_cache){return openBlock(),createBlock(resolveDynamicComponent(!unref(hasOwnLabel)&&unref(isLabeledByFormItem)?"span":"label"),{class:normalizeClass([unref(ns).b(),unref(ns).m(unref(checkboxSize)),unref(ns).is("disabled",unref(isDisabled)),unref(ns).is("bordered",_ctx.border),unref(ns).is("checked",unref(isChecked))]),"aria-controls":_ctx.indeterminate?_ctx.controls:null,onClick:unref(onClickRoot)},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass([unref(ns).e("input"),unref(ns).is("disabled",unref(isDisabled)),unref(ns).is("checked",unref(isChecked)),unref(ns).is("indeterminate",_ctx.indeterminate),unref(ns).is("focus",unref(focus))]),tabindex:_ctx.indeterminate?0:void 0,role:_ctx.indeterminate?"checkbox":void 0,"aria-checked":_ctx.indeterminate?"mixed":void 0},[_ctx.trueLabel||_ctx.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(inputId),"onUpdate:modelValue":_cache[0]||(_cache[0]=function($event){return isRef(model)?model.value=$event:null;}),class:normalizeClass(unref(ns).e("original")),type:"checkbox","aria-hidden":_ctx.indeterminate?"true":"false",name:_ctx.name,tabindex:_ctx.tabindex,disabled:unref(isDisabled),"true-value":_ctx.trueLabel,"false-value":_ctx.falseLabel,onChange:_cache[1]||(_cache[1]=function(){return unref(handleChange)&&unref(handleChange).apply(void 0,arguments);}),onFocus:_cache[2]||(_cache[2]=function($event){return focus.value=true;}),onBlur:_cache[3]||(_cache[3]=function($event){return focus.value=false;})},null,42,_hoisted_2$i)),[[vModelCheckbox,unref(model)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(inputId),"onUpdate:modelValue":_cache[4]||(_cache[4]=function($event){return isRef(model)?model.value=$event:null;}),class:normalizeClass(unref(ns).e("original")),type:"checkbox","aria-hidden":_ctx.indeterminate?"true":"false",disabled:unref(isDisabled),value:_ctx.label,name:_ctx.name,tabindex:_ctx.tabindex,onChange:_cache[5]||(_cache[5]=function(){return unref(handleChange)&&unref(handleChange).apply(void 0,arguments);}),onFocus:_cache[6]||(_cache[6]=function($event){return focus.value=true;}),onBlur:_cache[7]||(_cache[7]=function($event){return focus.value=false;})},null,42,_hoisted_3$b)),[[vModelCheckbox,unref(model)]]),createBaseVNode("span",{class:normalizeClass(unref(ns).e("inner"))},null,2)],10,_hoisted_1$w),unref(hasOwnLabel)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ns).e("label"))},[renderSlot(_ctx.$slots,"default"),!_ctx.$slots.default?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(_ctx.label),1)],64)):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true)];}),_:3},8,["class","aria-controls","onClick"]);};}}));var Checkbox=/* @__PURE__ */_export_sfc$1(_sfc_main$R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);var _hoisted_1$v=["name","tabindex","disabled","true-value","false-value"];var _hoisted_2$h=["name","tabindex","disabled","value"];var __default__$u={name:"ElCheckboxButton"};var _sfc_main$Q=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$u),{},{props:checkboxProps,emits:checkboxEmits,setup:function setup(__props){var props=__props;var slots=useSlots();var _useCheckbox2=useCheckbox(props,slots),focus=_useCheckbox2.focus,isChecked=_useCheckbox2.isChecked,isDisabled=_useCheckbox2.isDisabled,size=_useCheckbox2.size,model=_useCheckbox2.model,handleChange=_useCheckbox2.handleChange;var _useCheckboxGroup5=useCheckboxGroup(),checkboxGroup=_useCheckboxGroup5.checkboxGroup;var ns=useNamespace("checkbox");var activeStyle=computed(function(){var _a,_b,_c,_d;var fillValue=(_b=(_a=checkboxGroup==null?void 0:checkboxGroup.fill)==null?void 0:_a.value)!=null?_b:"";return{backgroundColor:fillValue,borderColor:fillValue,color:(_d=(_c=checkboxGroup==null?void 0:checkboxGroup.textColor)==null?void 0:_c.value)!=null?_d:"",boxShadow:fillValue?"-1px 0 0 0 ".concat(fillValue):void 0};});return function(_ctx,_cache){return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ns).b("button"),unref(ns).bm("button",unref(size)),unref(ns).is("disabled",unref(isDisabled)),unref(ns).is("checked",unref(isChecked)),unref(ns).is("focus",unref(focus))])},[_ctx.trueLabel||_ctx.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":_cache[0]||(_cache[0]=function($event){return isRef(model)?model.value=$event:null;}),class:normalizeClass(unref(ns).be("button","original")),type:"checkbox",name:_ctx.name,tabindex:_ctx.tabindex,disabled:unref(isDisabled),"true-value":_ctx.trueLabel,"false-value":_ctx.falseLabel,onChange:_cache[1]||(_cache[1]=function(){return unref(handleChange)&&unref(handleChange).apply(void 0,arguments);}),onFocus:_cache[2]||(_cache[2]=function($event){return focus.value=true;}),onBlur:_cache[3]||(_cache[3]=function($event){return focus.value=false;})},null,42,_hoisted_1$v)),[[vModelCheckbox,unref(model)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":_cache[4]||(_cache[4]=function($event){return isRef(model)?model.value=$event:null;}),class:normalizeClass(unref(ns).be("button","original")),type:"checkbox",name:_ctx.name,tabindex:_ctx.tabindex,disabled:unref(isDisabled),value:_ctx.label,onChange:_cache[5]||(_cache[5]=function(){return unref(handleChange)&&unref(handleChange).apply(void 0,arguments);}),onFocus:_cache[6]||(_cache[6]=function($event){return focus.value=true;}),onBlur:_cache[7]||(_cache[7]=function($event){return focus.value=false;})},null,42,_hoisted_2$h)),[[vModelCheckbox,unref(model)]]),_ctx.$slots.default||_ctx.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(ns).be("button","inner")),style:normalizeStyle(unref(isChecked)?unref(activeStyle):void 0)},[renderSlot(_ctx.$slots,"default",{},function(){return[createTextVNode(toDisplayString(_ctx.label),1)];})],6)):createCommentVNode("v-if",true)],2);};}}));var CheckboxButton=/* @__PURE__ */_export_sfc$1(_sfc_main$Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);var __default__$t={name:"ElCheckboxGroup"};var _sfc_main$P=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$t),{},{props:useCheckboxGroupProps,emits:checkboxEmits,setup:function setup(__props,_ref102){var emit=_ref102.emit;var props=__props;var _useCheckboxGroup6=useCheckboxGroup(),elFormItem=_useCheckboxGroup6.elFormItem;var _useCheckboxGroupId=useCheckboxGroupId(props,{elFormItem:elFormItem}),groupId=_useCheckboxGroupId.groupId,isLabeledByFormItem=_useCheckboxGroupId.isLabeledByFormItem;var checkboxGroupSize=useSize();var ns=useNamespace("checkbox");var changeEvent=function changeEvent(value){emit(UPDATE_MODEL_EVENT,value);nextTick(function(){emit("change",value);});};var modelValue=computed({get:function get(){return props.modelValue;},set:function set(val){changeEvent(val);}});provide("CheckboxGroup",_objectSpread(_objectSpread({name:"ElCheckboxGroup",modelValue:modelValue},toRefs(props)),{},{checkboxGroupSize:checkboxGroupSize,changeEvent:changeEvent}));watch(function(){return props.modelValue;},function(){var _a;(_a=elFormItem.validate)==null?void 0:_a.call(elFormItem,"change").catch(function(err){return debugWarn();});});return function(_ctx,_cache){return openBlock(),createBlock(resolveDynamicComponent(_ctx.tag),{id:unref(groupId),class:normalizeClass(unref(ns).b("group")),role:"group","aria-label":!unref(isLabeledByFormItem)?_ctx.label||"checkbox-group":void 0,"aria-labelledby":unref(isLabeledByFormItem)?unref(elFormItem).labelId:void 0},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["id","class","aria-label","aria-labelledby"]);};}}));var CheckboxGroup=/* @__PURE__ */_export_sfc$1(_sfc_main$P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);var ElCheckbox=exports('ae',withInstall(Checkbox,{CheckboxButton:CheckboxButton,CheckboxGroup:CheckboxGroup}));withNoopInstall(CheckboxButton);withNoopInstall(CheckboxGroup);var radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}});var radioProps=buildProps(_objectSpread(_objectSpread({},radioPropsBase),{},{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}));var radioEmits=(_radioEmits={},_defineProperty2(_radioEmits,UPDATE_MODEL_EVENT,function(val){return isString$2(val)||isNumber$1(val)||isBoolean$1(val);}),_defineProperty2(_radioEmits,CHANGE_EVENT,function(val){return isString$2(val)||isNumber$1(val)||isBoolean$1(val);}),_radioEmits);var useRadio=function useRadio(props,emit){var radioRef=ref();var radioGroup=inject(radioGroupKey,void 0);var isGroup=computed(function(){return!!radioGroup;});var modelValue=computed({get:function get(){return isGroup.value?radioGroup.modelValue:props.modelValue;},set:function set(val){if(isGroup.value){radioGroup.changeEvent(val);}else{emit&&emit(UPDATE_MODEL_EVENT,val);}radioRef.value.checked=props.modelValue===props.label;}});var size=useSize(computed(function(){return radioGroup==null?void 0:radioGroup.size;}));var disabled=useDisabled$1(computed(function(){return radioGroup==null?void 0:radioGroup.disabled;}));var focus=ref(false);var tabIndex=computed(function(){return disabled.value||isGroup.value&&modelValue.value!==props.label?-1:0;});return{radioRef:radioRef,isGroup:isGroup,radioGroup:radioGroup,focus:focus,size:size,disabled:disabled,tabIndex:tabIndex,modelValue:modelValue};};var _hoisted_1$u=["value","name","disabled"];var __default__$s={name:"ElRadio"};var _sfc_main$O=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$s),{},{props:radioProps,emits:radioEmits,setup:function setup(__props,_ref103){var emit=_ref103.emit;var props=__props;var ns=useNamespace("radio");var _useRadio=useRadio(props,emit),radioRef=_useRadio.radioRef,radioGroup=_useRadio.radioGroup,focus=_useRadio.focus,size=_useRadio.size,disabled=_useRadio.disabled,modelValue=_useRadio.modelValue;function handleChange(){nextTick(function(){return emit("change",modelValue.value);});}return function(_ctx,_cache){var _a;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ns).b(),unref(ns).is("disabled",unref(disabled)),unref(ns).is("focus",unref(focus)),unref(ns).is("bordered",_ctx.border),unref(ns).is("checked",unref(modelValue)===_ctx.label),unref(ns).m(unref(size))])},[createBaseVNode("span",{class:normalizeClass([unref(ns).e("input"),unref(ns).is("disabled",unref(disabled)),unref(ns).is("checked",unref(modelValue)===_ctx.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:radioRef,"onUpdate:modelValue":_cache[0]||(_cache[0]=function($event){return isRef(modelValue)?modelValue.value=$event:null;}),class:normalizeClass(unref(ns).e("original")),value:_ctx.label,name:_ctx.name||((_a=unref(radioGroup))==null?void 0:_a.name),disabled:unref(disabled),type:"radio",onFocus:_cache[1]||(_cache[1]=function($event){return focus.value=true;}),onBlur:_cache[2]||(_cache[2]=function($event){return focus.value=false;}),onChange:handleChange},null,42,_hoisted_1$u),[[vModelRadio,unref(modelValue)]]),createBaseVNode("span",{class:normalizeClass(unref(ns).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(ns).e("label")),onKeydown:_cache[3]||(_cache[3]=withModifiers(function(){},["stop"]))},[renderSlot(_ctx.$slots,"default",{},function(){return[createTextVNode(toDisplayString(_ctx.label),1)];})],34)],2);};}}));var Radio=/* @__PURE__ */_export_sfc$1(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);var radioButtonProps=buildProps(_objectSpread(_objectSpread({},radioPropsBase),{},{name:{type:String,default:""}}));var _hoisted_1$t=["value","name","disabled"];var __default__$r={name:"ElRadioButton"};var _sfc_main$N=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$r),{},{props:radioButtonProps,setup:function setup(__props){var props=__props;var ns=useNamespace("radio");var _useRadio2=useRadio(props),radioRef=_useRadio2.radioRef,focus=_useRadio2.focus,size=_useRadio2.size,disabled=_useRadio2.disabled,modelValue=_useRadio2.modelValue,radioGroup=_useRadio2.radioGroup;var activeStyle=computed(function(){return{backgroundColor:(radioGroup==null?void 0:radioGroup.fill)||"",borderColor:(radioGroup==null?void 0:radioGroup.fill)||"",boxShadow:(radioGroup==null?void 0:radioGroup.fill)?"-1px 0 0 0 ".concat(radioGroup.fill):"",color:(radioGroup==null?void 0:radioGroup.textColor)||""};});return function(_ctx,_cache){var _a;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ns).b("button"),unref(ns).is("active",unref(modelValue)===_ctx.label),unref(ns).is("disabled",unref(disabled)),unref(ns).is("focus",unref(focus)),unref(ns).bm("button",unref(size))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:radioRef,"onUpdate:modelValue":_cache[0]||(_cache[0]=function($event){return isRef(modelValue)?modelValue.value=$event:null;}),class:normalizeClass(unref(ns).be("button","original-radio")),value:_ctx.label,type:"radio",name:_ctx.name||((_a=unref(radioGroup))==null?void 0:_a.name),disabled:unref(disabled),onFocus:_cache[1]||(_cache[1]=function($event){return focus.value=true;}),onBlur:_cache[2]||(_cache[2]=function($event){return focus.value=false;})},null,42,_hoisted_1$t),[[vModelRadio,unref(modelValue)]]),createBaseVNode("span",{class:normalizeClass(unref(ns).be("button","inner")),style:normalizeStyle(unref(modelValue)===_ctx.label?unref(activeStyle):{}),onKeydown:_cache[3]||(_cache[3]=withModifiers(function(){},["stop"]))},[renderSlot(_ctx.$slots,"default",{},function(){return[createTextVNode(toDisplayString(_ctx.label),1)];})],38)],2);};}}));var RadioButton=/* @__PURE__ */_export_sfc$1(_sfc_main$N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);var radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0}});var radioGroupEmits=radioEmits;var _hoisted_1$s=["id","aria-label","aria-labelledby"];var __default__$q={name:"ElRadioGroup"};var _sfc_main$M=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$q),{},{props:radioGroupProps,emits:radioGroupEmits,setup:function setup(__props,_ref104){var emit=_ref104.emit;var props=__props;var ns=useNamespace("radio");var radioId=useId();var radioGroupRef=ref();var _useFormItem3=useFormItem(),formItem=_useFormItem3.formItem;var _useFormItemInputId4=useFormItemInputId(props,{formItemContext:formItem}),groupId=_useFormItemInputId4.inputId,isLabeledByFormItem=_useFormItemInputId4.isLabeledByFormItem;var changeEvent=function changeEvent(value){emit(UPDATE_MODEL_EVENT,value);nextTick(function(){return emit("change",value);});};onMounted(function(){var radios=radioGroupRef.value.querySelectorAll("[type=radio]");var firstLabel=radios[0];if(!Array.from(radios).some(function(radio){return radio.checked;})&&firstLabel){firstLabel.tabIndex=0;}});var name=computed(function(){return props.name||radioId.value;});provide(radioGroupKey,reactive(_objectSpread(_objectSpread({},toRefs(props)),{},{changeEvent:changeEvent,name:name})));watch(function(){return props.modelValue;},function(){return formItem==null?void 0:formItem.validate("change").catch(function(err){return debugWarn();});});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{id:unref(groupId),ref_key:"radioGroupRef",ref:radioGroupRef,class:normalizeClass(unref(ns).b("group")),role:"radiogroup","aria-label":!unref(isLabeledByFormItem)?_ctx.label||"radio-group":void 0,"aria-labelledby":unref(isLabeledByFormItem)?unref(formItem).labelId:void 0},[renderSlot(_ctx.$slots,"default")],10,_hoisted_1$s);};}}));var RadioGroup=/* @__PURE__ */_export_sfc$1(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);withInstall(Radio,{RadioButton:RadioButton,RadioGroup:RadioGroup});var ElRadioGroup=exports('ab',withNoopInstall(RadioGroup));var ElRadioButton=exports('ac',withNoopInstall(RadioButton));var tagProps=buildProps({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean});var tagEmits={close:function close(evt){return evt instanceof MouseEvent;},click:function click(evt){return evt instanceof MouseEvent;}};var __default__$p={name:"ElTag"};var _sfc_main$L=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$p),{},{props:tagProps,emits:tagEmits,setup:function setup(__props,_ref105){var emit=_ref105.emit;var props=__props;var tagSize=useSize();var ns=useNamespace("tag");var classes=computed(function(){var type=props.type,hit=props.hit,effect=props.effect,closable=props.closable,round=props.round;return[ns.b(),ns.is("closable",closable),ns.m(type),ns.m(tagSize.value),ns.m(effect),ns.is("hit",hit),ns.is("round",round)];});var handleClose=function handleClose(event){emit("close",event);};var handleClick=function handleClick(event){emit("click",event);};return function(_ctx,_cache){return _ctx.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(classes)),style:normalizeStyle({backgroundColor:_ctx.color}),onClick:handleClick},[createBaseVNode("span",{class:normalizeClass(unref(ns).e("content"))},[renderSlot(_ctx.$slots,"default")],2),_ctx.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ns).e("close")),onClick:withModifiers(handleClose,["stop"])},{default:withCtx(function(){return[createVNode(unref(close_default))];}),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)],6)):(openBlock(),createBlock(Transition,{key:1,name:"".concat(unref(ns).namespace.value,"-zoom-in-center"),appear:""},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass(unref(classes)),style:normalizeStyle({backgroundColor:_ctx.color}),onClick:handleClick},[createBaseVNode("span",{class:normalizeClass(unref(ns).e("content"))},[renderSlot(_ctx.$slots,"default")],2),_ctx.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ns).e("close")),onClick:withModifiers(handleClose,["stop"])},{default:withCtx(function(){return[createVNode(unref(close_default))];}),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)],6)];}),_:3},8,["name"]));};}}));var Tag=/* @__PURE__ */_export_sfc$1(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);var ElTag=exports('T',withInstall(Tag));var colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:function _default(){return mutable({});}},sm:{type:definePropType([Number,Object]),default:function _default(){return mutable({});}},md:{type:definePropType([Number,Object]),default:function _default(){return mutable({});}},lg:{type:definePropType([Number,Object]),default:function _default(){return mutable({});}},xl:{type:definePropType([Number,Object]),default:function _default(){return mutable({});}}});var __default__$o={name:"ElCol"};var _sfc_main$K=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$o),{},{props:colProps,setup:function setup(__props){var props=__props;var _inject6=inject(rowContextKey,{gutter:computed(function(){return 0;})}),gutter=_inject6.gutter;var ns=useNamespace("col");var style=computed(function(){var styles={};if(gutter.value){styles.paddingLeft=styles.paddingRight="".concat(gutter.value/2,"px");}return styles;});var classes=computed(function(){var classes2=[];var pos=["span","offset","pull","push"];pos.forEach(function(prop){var size=props[prop];if(isNumber$1(size)){if(prop==="span")classes2.push(ns.b("".concat(props[prop])));else if(size>0)classes2.push(ns.b("".concat(prop,"-").concat(props[prop])));}});var sizes=["xs","sm","md","lg","xl"];sizes.forEach(function(size){if(isNumber$1(props[size])){classes2.push(ns.b("".concat(size,"-").concat(props[size])));}else if(isObject$2(props[size])){Object.entries(props[size]).forEach(function(_ref106){var _ref107=_slicedToArray(_ref106,2),prop=_ref107[0],sizeProp=_ref107[1];classes2.push(prop!=="span"?ns.b("".concat(size,"-").concat(prop,"-").concat(sizeProp)):ns.b("".concat(size,"-").concat(sizeProp)));});}});if(gutter.value){classes2.push(ns.is("guttered"));}return classes2;});return function(_ctx,_cache){return openBlock(),createBlock(resolveDynamicComponent(_ctx.tag),{class:normalizeClass([unref(ns).b(),unref(classes)]),style:normalizeStyle(unref(style))},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["class","style"]);};}}));var Col=/* @__PURE__ */_export_sfc$1(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);var ElCol=exports('v',withInstall(Col));var messageConfig={};var configProviderProps=buildProps({a11y:{type:Boolean,default:true},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:true},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}});var ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup:function setup(props,_ref108){var slots=_ref108.slots;watch(function(){return props.message;},function(val){Object.assign(messageConfig,val!=null?val:{});},{immediate:true,deep:true});var config=provideGlobalConfig(props);return function(){return renderSlot(slots,"default",{config:config==null?void 0:config.value});};}});var ElConfigProvider=exports('I',withInstall(ConfigProvider));var advancedFormat$1={exports:{}};(function(module,exports$1){!function(e,t){module.exports=t();}(commonjsGlobal,function(){return function(e,t,r){var n=t.prototype,s=n.format;r.en.ordinal=function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]";},n.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return s.bind(this)(e);var n=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return n.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return n.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return n.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e;}});return s.bind(this)(a);};};});})(advancedFormat$1);var advancedFormat=advancedFormat$1.exports;var weekOfYear$1={exports:{}};(function(module,exports$1){!function(e,t){module.exports=t();}(commonjsGlobal,function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1;}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o);},f.weeks=function(e){return void 0===e&&(e=null),this.week(e);};};});})(weekOfYear$1);var weekOfYear=weekOfYear$1.exports;var weekYear$1={exports:{}};(function(module,exports$1){!function(e,t){module.exports=t();}(commonjsGlobal,function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n;};};});})(weekYear$1);var weekYear=weekYear$1.exports;var dayOfYear$1={exports:{}};(function(module,exports$1){!function(e,t){module.exports=t();}(commonjsGlobal,function(){return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day");};};});})(dayOfYear$1);var dayOfYear=dayOfYear$1.exports;var isSameOrAfter$1={exports:{}};(function(module,exports$1){!function(e,t){module.exports=t();}(commonjsGlobal,function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t);};};});})(isSameOrAfter$1);var isSameOrAfter=isSameOrAfter$1.exports;var isSameOrBefore$1={exports:{}};(function(module,exports$1){!function(e,i){module.exports=i();}(commonjsGlobal,function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i);};};});})(isSameOrBefore$1);var isSameOrBefore=exports('ak',isSameOrBefore$1.exports);var datePickerProps=buildProps({type:{type:definePropType(String),default:"date"}});var selectionModes=["date","dates","year","month","week","range"];var datePickerSharedProps=buildProps({disabledDate:{type:definePropType(Function)},date:{type:definePropType(Object),required:true},minDate:{type:definePropType(Object)},maxDate:{type:definePropType(Object)},parsedValue:{type:definePropType([Object,Array])},rangeState:{type:definePropType(Object),default:function _default(){return{endDate:null,selecting:false};}}});var panelSharedProps=buildProps({type:{type:definePropType(String),required:true,values:datePickTypes}});var panelRangeSharedProps=buildProps({unlinkPanels:Boolean,parsedValue:{type:definePropType(Array)}});var selectionModeWithDefault=function selectionModeWithDefault(mode){return{type:String,values:selectionModes,default:mode};};var panelDatePickProps=buildProps(_objectSpread(_objectSpread({},panelSharedProps),{},{parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}));var basicDateTableProps=buildProps(_objectSpread(_objectSpread({},datePickerSharedProps),{},{cellClassName:{type:definePropType(Function)},showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}));var isValidRange=function isValidRange(range){if(!isArray$7(range))return false;var _range3=_slicedToArray(range,2),left=_range3[0],right=_range3[1];return dayjs.isDayjs(left)&&dayjs.isDayjs(right)&&left.isSameOrBefore(right);};var getDefaultValue=function getDefaultValue(defaultValue,_ref109){var lang=_ref109.lang,unit=_ref109.unit,unlinkPanels=_ref109.unlinkPanels;var start;if(isArray$7(defaultValue)){var _defaultValue$map=defaultValue.map(function(d){return dayjs(d).locale(lang);}),_defaultValue$map2=_slicedToArray(_defaultValue$map,2),left=_defaultValue$map2[0],right=_defaultValue$map2[1];if(!unlinkPanels){right=left.add(1,unit);}return[left,right];}else if(defaultValue){start=dayjs(defaultValue);}else{start=dayjs();}start=start.locale(lang);return[start,start.add(1,unit)];};var buildPickerTable=function buildPickerTable(dimension,rows,_ref110){var columnIndexOffset=_ref110.columnIndexOffset,startDate=_ref110.startDate,nextEndDate=_ref110.nextEndDate,now=_ref110.now,unit=_ref110.unit,relativeDateGetter=_ref110.relativeDateGetter,setCellMetadata=_ref110.setCellMetadata,setRowMetadata=_ref110.setRowMetadata;for(var rowIndex=0;rowIndex<dimension.row;rowIndex++){var row=rows[rowIndex];for(var columnIndex=0;columnIndex<dimension.column;columnIndex++){var cell=row[columnIndex+columnIndexOffset];if(!cell){cell={row:rowIndex,column:columnIndex,type:"normal",inRange:false,start:false,end:false};}var index=rowIndex*dimension.column+columnIndex;var nextStartDate=relativeDateGetter(index);cell.dayjs=nextStartDate;cell.date=nextStartDate.toDate();cell.timestamp=nextStartDate.valueOf();cell.type="normal";cell.inRange=!!(startDate&&nextStartDate.isSameOrAfter(startDate,unit)&&nextEndDate&&nextStartDate.isSameOrBefore(nextEndDate,unit))||!!(startDate&&nextStartDate.isSameOrBefore(startDate,unit)&&nextEndDate&&nextStartDate.isSameOrAfter(nextEndDate,unit));if(startDate==null?void 0:startDate.isSameOrAfter(nextEndDate)){cell.start=!!nextEndDate&&nextStartDate.isSame(nextEndDate,unit);cell.end=startDate&&nextStartDate.isSame(startDate,unit);}else{cell.start=!!startDate&&nextStartDate.isSame(startDate,unit);cell.end=!!nextEndDate&&nextStartDate.isSame(nextEndDate,unit);}var isToday=nextStartDate.isSame(now,unit);if(isToday){cell.type="today";}setCellMetadata==null?void 0:setCellMetadata(cell,{rowIndex:rowIndex,columnIndex:columnIndex});row[columnIndex+columnIndexOffset]=cell;}setRowMetadata==null?void 0:setRowMetadata(row);}};var basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup:function setup(props){var ns=useNamespace("date-table-cell");var _inject7=inject(ROOT_PICKER_INJECTION_KEY),slots=_inject7.slots;return function(){var cell=props.cell;if(slots.default){var list=slots.default(cell).filter(function(item){return item.patchFlag!==-2&&item.type.toString()!=="Symbol(Comment)";});if(list.length){return list;}}return createVNode("div",{"class":ns.b()},[createVNode("span",{"class":ns.e("text")},[cell==null?void 0:cell.text])]);};}});var _hoisted_1$r=["aria-label"];var _hoisted_2$g={key:0,scope:"col"};var _hoisted_3$a=["aria-label"];var _hoisted_4$6=["aria-current","aria-selected","tabindex"];var _sfc_main$J=/* @__PURE__ */defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:["changerange","pick","select"],setup:function setup(__props,_ref111){var expose=_ref111.expose,emit=_ref111.emit;var props=__props;var ns=useNamespace("date-table");var _useLocale3=useLocale(),t=_useLocale3.t,lang=_useLocale3.lang;var tbodyRef=ref();var currentCellRef=ref();var lastRow=ref();var lastColumn=ref();var tableRows=ref([[],[],[],[],[],[]]);var firstDayOfWeek=props.date.$locale().weekStart||7;var WEEKS_CONSTANT=props.date.locale("en").localeData().weekdaysShort().map(function(_){return _.toLowerCase();});var offsetDay=computed(function(){return firstDayOfWeek>3?7-firstDayOfWeek:-firstDayOfWeek;});var startDate=computed(function(){var startDayOfMonth=props.date.startOf("month");return startDayOfMonth.subtract(startDayOfMonth.day()||7,"day");});var WEEKS=computed(function(){return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek,firstDayOfWeek+7);});var hasCurrent=computed(function(){return rows.value.flat().some(function(row){return row.isCurrent;});});var days=computed(function(){var startOfMonth=props.date.startOf("month");var startOfMonthDay=startOfMonth.day()||7;var dateCountOfMonth=startOfMonth.daysInMonth();var dateCountOfLastMonth=startOfMonth.subtract(1,"month").daysInMonth();return{startOfMonthDay:startOfMonthDay,dateCountOfMonth:dateCountOfMonth,dateCountOfLastMonth:dateCountOfLastMonth};});var selectedDate=computed(function(){return props.selectionMode==="dates"?castArray(props.parsedValue):[];});var setDateText=function setDateText(cell,_ref112){var count=_ref112.count,rowIndex=_ref112.rowIndex,columnIndex=_ref112.columnIndex;var _unref6=unref(days),startOfMonthDay=_unref6.startOfMonthDay,dateCountOfMonth=_unref6.dateCountOfMonth,dateCountOfLastMonth=_unref6.dateCountOfLastMonth;var offset=unref(offsetDay);if(rowIndex>=0&&rowIndex<=1){var numberOfDaysFromPreviousMonth=startOfMonthDay+offset<0?7+startOfMonthDay+offset:startOfMonthDay+offset;if(columnIndex+rowIndex*7>=numberOfDaysFromPreviousMonth){cell.text=count;return true;}else{cell.text=dateCountOfLastMonth-(numberOfDaysFromPreviousMonth-columnIndex%7)+1+rowIndex*7;cell.type="prev-month";}}else{if(count<=dateCountOfMonth){cell.text=count;}else{cell.text=count-dateCountOfMonth;cell.type="next-month";}return true;}return false;};var _setCellMetadata=function setCellMetadata(cell,_ref113,count){var columnIndex=_ref113.columnIndex,rowIndex=_ref113.rowIndex;var disabledDate=props.disabledDate,cellClassName=props.cellClassName;var _selectedDate=unref(selectedDate);var shouldIncrement=setDateText(cell,{count:count,rowIndex:rowIndex,columnIndex:columnIndex});var cellDate=cell.dayjs.toDate();cell.selected=_selectedDate.find(function(d){return d.valueOf()===cell.dayjs.valueOf();});cell.isSelected=!!cell.selected;cell.isCurrent=isCurrent(cell);cell.disabled=disabledDate==null?void 0:disabledDate(cellDate);cell.customClass=cellClassName==null?void 0:cellClassName(cellDate);return shouldIncrement;};var setRowMetadata=function setRowMetadata(row){if(props.selectionMode==="week"){var _ref114=props.showWeekNumber?[1,7]:[0,6],_ref115=_slicedToArray(_ref114,2),start=_ref115[0],end=_ref115[1];var isActive=isWeekActive(row[start+1]);row[start].inRange=isActive;row[start].start=isActive;row[end].inRange=isActive;row[end].end=isActive;}};var rows=computed(function(){var minDate=props.minDate,maxDate=props.maxDate,rangeState=props.rangeState,showWeekNumber=props.showWeekNumber;var offset=offsetDay.value;var rows_=tableRows.value;var dateUnit="day";var count=1;if(showWeekNumber){for(var rowIndex=0;rowIndex<6;rowIndex++){if(!rows_[rowIndex][0]){rows_[rowIndex][0]={type:"week",text:startDate.value.add(rowIndex*7+1,dateUnit).week()};}}}buildPickerTable({row:6,column:7},rows_,{startDate:minDate,columnIndexOffset:showWeekNumber?1:0,nextEndDate:rangeState.endDate||maxDate||rangeState.selecting&&minDate||null,now:dayjs().locale(unref(lang)).startOf(dateUnit),unit:dateUnit,relativeDateGetter:function relativeDateGetter(idx){return startDate.value.add(idx-offset,dateUnit);},setCellMetadata:function setCellMetadata(){for(var _len14=arguments.length,args=new Array(_len14),_key21=0;_key21<_len14;_key21++){args[_key21]=arguments[_key21];}if(_setCellMetadata.apply(void 0,args.concat([count]))){count+=1;}},setRowMetadata:setRowMetadata});return rows_;});watch(function(){return props.date;},/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee12(){var _a,_b;return regeneratorRuntime.wrap(function _callee12$(_context12){while(1){switch(_context12.prev=_context12.next){case 0:if(!((_a=tbodyRef.value)==null?void 0:_a.contains(document.activeElement))){_context12.next=4;break;}_context12.next=3;return nextTick();case 3:(_b=currentCellRef.value)==null?void 0:_b.focus();case 4:case"end":return _context12.stop();}}},_callee12);})));var focus=/*#__PURE__*/function(){var _ref117=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee13(){var _a;return regeneratorRuntime.wrap(function _callee13$(_context13){while(1){switch(_context13.prev=_context13.next){case 0:(_a=currentCellRef.value)==null?void 0:_a.focus();case 1:case"end":return _context13.stop();}}},_callee13);}));return function focus(){return _ref117.apply(this,arguments);};}();var isNormalDay=function isNormalDay(){var type=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return["normal","today"].includes(type);};var isCurrent=function isCurrent(cell){return props.selectionMode==="date"&&isNormalDay(cell.type)&&cellMatchesDate(cell,props.parsedValue);};var cellMatchesDate=function cellMatchesDate(cell,date){if(!date)return false;return dayjs(date).locale(lang.value).isSame(props.date.date(Number(cell.text)),"day");};var getCellClasses=function getCellClasses(cell){var classes=[];if(isNormalDay(cell.type)&&!cell.disabled){classes.push("available");if(cell.type==="today"){classes.push("today");}}else{classes.push(cell.type);}if(isCurrent(cell)){classes.push("current");}if(cell.inRange&&(isNormalDay(cell.type)||props.selectionMode==="week")){classes.push("in-range");if(cell.start){classes.push("start-date");}if(cell.end){classes.push("end-date");}}if(cell.disabled){classes.push("disabled");}if(cell.selected){classes.push("selected");}if(cell.customClass){classes.push(cell.customClass);}return classes.join(" ");};var getDateOfCell=function getDateOfCell(row,column){var offsetFromStart=row*7+(column-(props.showWeekNumber?1:0))-offsetDay.value;return startDate.value.add(offsetFromStart,"day");};var handleMouseMove=function handleMouseMove(event){var _a;if(!props.rangeState.selecting)return;var target=event.target;if(target.tagName==="SPAN"){target=(_a=target.parentNode)==null?void 0:_a.parentNode;}if(target.tagName==="DIV"){target=target.parentNode;}if(target.tagName!=="TD")return;var row=target.parentNode.rowIndex-1;var column=target.cellIndex;if(rows.value[row][column].disabled)return;if(row!==lastRow.value||column!==lastColumn.value){lastRow.value=row;lastColumn.value=column;emit("changerange",{selecting:true,endDate:getDateOfCell(row,column)});}};var isSelectedCell=function isSelectedCell(cell){return!hasCurrent.value&&(cell==null?void 0:cell.text)===1&&cell.type==="normal"||cell.isCurrent;};var handleFocus=function handleFocus(event){if(!hasCurrent.value&&props.selectionMode==="date"){handlePickDate(event,true);}};var handlePickDate=function handlePickDate(event){var isKeyboardMovement=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var target=event.target.closest("td");if(!target||target.tagName!=="TD")return;var row=target.parentNode.rowIndex-1;var column=target.cellIndex;var cell=rows.value[row][column];if(cell.disabled||cell.type==="week")return;var newDate=getDateOfCell(row,column);if(props.selectionMode==="range"){if(!props.rangeState.selecting||!props.minDate){emit("pick",{minDate:newDate,maxDate:null});emit("select",true);}else{if(newDate>=props.minDate){emit("pick",{minDate:props.minDate,maxDate:newDate});}else{emit("pick",{minDate:newDate,maxDate:props.minDate});}emit("select",false);}}else if(props.selectionMode==="date"){emit("pick",newDate,isKeyboardMovement);}else if(props.selectionMode==="week"){var weekNumber=newDate.week();var value="".concat(newDate.year(),"w").concat(weekNumber);emit("pick",{year:newDate.year(),week:weekNumber,value:value,date:newDate.startOf("week")});}else if(props.selectionMode==="dates"){var newValue=cell.selected?castArray(props.parsedValue).filter(function(d){return(d==null?void 0:d.valueOf())!==newDate.valueOf();}):castArray(props.parsedValue).concat([newDate]);emit("pick",newValue);}};var isWeekActive=function isWeekActive(cell){if(props.selectionMode!=="week")return false;var newDate=props.date.startOf("day");if(cell.type==="prev-month"){newDate=newDate.subtract(1,"month");}if(cell.type==="next-month"){newDate=newDate.add(1,"month");}newDate=newDate.date(Number.parseInt(cell.text,10));if(props.parsedValue&&!Array.isArray(props.parsedValue)){var dayOffset=(props.parsedValue.day()-firstDayOfWeek+7)%7-1;var weekDate=props.parsedValue.subtract(dayOffset,"day");return weekDate.isSame(newDate,"day");}return false;};expose({focus:focus});return function(_ctx,_cache){return openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(t)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(ns).b(),{"is-week-mode":_ctx.selectionMode==="week"}]),onClick:handlePickDate,onMousemove:handleMouseMove},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:tbodyRef},[createBaseVNode("tr",null,[_ctx.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$g,toDisplayString(unref(t)("el.datepicker.week")),1)):createCommentVNode("v-if",true),(openBlock(true),createElementBlock(Fragment,null,renderList(unref(WEEKS),function(week,key){return openBlock(),createElementBlock("th",{key:key,scope:"col","aria-label":unref(t)("el.datepicker.weeksFull."+week)},toDisplayString(unref(t)("el.datepicker.weeks."+week)),9,_hoisted_3$a);}),128))]),(openBlock(true),createElementBlock(Fragment,null,renderList(unref(rows),function(row,rowKey){return openBlock(),createElementBlock("tr",{key:rowKey,class:normalizeClass([unref(ns).e("row"),{current:isWeekActive(row[1])}])},[(openBlock(true),createElementBlock(Fragment,null,renderList(row,function(cell,columnKey){return openBlock(),createElementBlock("td",{key:"".concat(rowKey,".").concat(columnKey),ref_for:true,ref:function ref(el){isSelectedCell(cell)&&(currentCellRef.value=el);},class:normalizeClass(getCellClasses(cell)),"aria-current":cell.isCurrent?"date":void 0,"aria-selected":cell.isCurrent,tabindex:isSelectedCell(cell)?0:-1,onFocus:handleFocus},[createVNode(unref(ElDatePickerCell),{cell:cell},null,8,["cell"])],42,_hoisted_4$6);}),128))],2);}),128))],512)],42,_hoisted_1$r);};}});var DateTable=/* @__PURE__ */_export_sfc$1(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);var basicMonthTableProps=buildProps(_objectSpread(_objectSpread({},datePickerSharedProps),{},{selectionMode:selectionModeWithDefault("month")}));var _hoisted_1$q=["aria-label"];var _hoisted_2$f=["aria-selected","aria-label","tabindex","onKeydown"];var _hoisted_3$9={class:"cell"};var _sfc_main$I=/* @__PURE__ */defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup:function setup(__props,_ref118){var expose=_ref118.expose,emit=_ref118.emit;var props=__props;var datesInMonth=function datesInMonth(year,month,lang2){var firstDay=dayjs().locale(lang2).startOf("month").month(month).year(year);var numOfDays=firstDay.daysInMonth();return rangeArr(numOfDays).map(function(n){return firstDay.add(n,"day").toDate();});};var ns=useNamespace("month-table");var _useLocale4=useLocale(),t=_useLocale4.t,lang=_useLocale4.lang;var tbodyRef=ref();var currentCellRef=ref();var months=ref(props.date.locale("en").localeData().monthsShort().map(function(_){return _.toLowerCase();}));var tableRows=ref([[],[],[]]);var lastRow=ref();var lastColumn=ref();var rows=computed(function(){var _a,_b;var rows2=tableRows.value;var now=dayjs().locale(lang.value).startOf("month");for(var _i46=0;_i46<3;_i46++){var row=rows2[_i46];for(var j=0;j<4;j++){var cell=row[j]||(row[j]={row:_i46,column:j,type:"normal",inRange:false,start:false,end:false,text:-1,disabled:false});cell.type="normal";var index=_i46*4+j;var calTime=props.date.startOf("year").month(index);var calEndDate=props.rangeState.endDate||props.maxDate||props.rangeState.selecting&&props.minDate||null;cell.inRange=!!(props.minDate&&calTime.isSameOrAfter(props.minDate,"month")&&calEndDate&&calTime.isSameOrBefore(calEndDate,"month"))||!!(props.minDate&&calTime.isSameOrBefore(props.minDate,"month")&&calEndDate&&calTime.isSameOrAfter(calEndDate,"month"));if((_a=props.minDate)==null?void 0:_a.isSameOrAfter(calEndDate)){cell.start=!!(calEndDate&&calTime.isSame(calEndDate,"month"));cell.end=props.minDate&&calTime.isSame(props.minDate,"month");}else{cell.start=!!(props.minDate&&calTime.isSame(props.minDate,"month"));cell.end=!!(calEndDate&&calTime.isSame(calEndDate,"month"));}var isToday=now.isSame(calTime);if(isToday){cell.type="today";}cell.text=index;cell.disabled=((_b=props.disabledDate)==null?void 0:_b.call(props,calTime.toDate()))||false;}}return rows2;});var focus=function focus(){var _a;(_a=currentCellRef.value)==null?void 0:_a.focus();};var getCellStyle=function getCellStyle(cell){var style={};var year=props.date.year();var today=new Date();var month=cell.text;style.disabled=props.disabledDate?datesInMonth(year,month,lang.value).every(props.disabledDate):false;style.current=castArray(props.parsedValue).findIndex(function(date){return dayjs.isDayjs(date)&&date.year()===year&&date.month()===month;})>=0;style.today=today.getFullYear()===year&&today.getMonth()===month;if(cell.inRange){style["in-range"]=true;if(cell.start){style["start-date"]=true;}if(cell.end){style["end-date"]=true;}}return style;};var isSelectedCell=function isSelectedCell(cell){var year=props.date.year();var month=cell.text;return castArray(props.date).findIndex(function(date){return date.year()===year&&date.month()===month;})>=0;};var handleMouseMove=function handleMouseMove(event){var _a;if(!props.rangeState.selecting)return;var target=event.target;if(target.tagName==="A"){target=(_a=target.parentNode)==null?void 0:_a.parentNode;}if(target.tagName==="DIV"){target=target.parentNode;}if(target.tagName!=="TD")return;var row=target.parentNode.rowIndex;var column=target.cellIndex;if(rows.value[row][column].disabled)return;if(row!==lastRow.value||column!==lastColumn.value){lastRow.value=row;lastColumn.value=column;emit("changerange",{selecting:true,endDate:props.date.startOf("year").month(row*4+column)});}};var handleMonthTableClick=function handleMonthTableClick(event){var _a;var target=(_a=event.target)==null?void 0:_a.closest("td");if((target==null?void 0:target.tagName)!=="TD")return;if(hasClass(target,"disabled"))return;var column=target.cellIndex;var row=target.parentNode.rowIndex;var month=row*4+column;var newDate=props.date.startOf("year").month(month);if(props.selectionMode==="range"){if(!props.rangeState.selecting){emit("pick",{minDate:newDate,maxDate:null});emit("select",true);}else{if(props.minDate&&newDate>=props.minDate){emit("pick",{minDate:props.minDate,maxDate:newDate});}else{emit("pick",{minDate:newDate,maxDate:props.minDate});}emit("select",false);}}else{emit("pick",month);}};watch(function(){return props.date;},/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee14(){var _a,_b;return regeneratorRuntime.wrap(function _callee14$(_context14){while(1){switch(_context14.prev=_context14.next){case 0:if(!((_a=tbodyRef.value)==null?void 0:_a.contains(document.activeElement))){_context14.next=4;break;}_context14.next=3;return nextTick();case 3:(_b=currentCellRef.value)==null?void 0:_b.focus();case 4:case"end":return _context14.stop();}}},_callee14);})));expose({focus:focus});return function(_ctx,_cache){return openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(t)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(ns).b()),onClick:handleMonthTableClick,onMousemove:handleMouseMove},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:tbodyRef},[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(rows),function(row,key){return openBlock(),createElementBlock("tr",{key:key},[(openBlock(true),createElementBlock(Fragment,null,renderList(row,function(cell,key_){return openBlock(),createElementBlock("td",{key:key_,ref_for:true,ref:function ref(el){return isSelectedCell(cell)&&(currentCellRef.value=el);},class:normalizeClass(getCellStyle(cell)),"aria-selected":"".concat(isSelectedCell(cell)),"aria-label":unref(t)("el.datepicker.month".concat(+cell.text+1)),tabindex:isSelectedCell(cell)?0:-1,onKeydown:[withKeys(withModifiers(handleMonthTableClick,["prevent","stop"]),["space"]),withKeys(withModifiers(handleMonthTableClick,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$9,toDisplayString(unref(t)("el.datepicker.months."+months.value[cell.text])),1)])],42,_hoisted_2$f);}),128))]);}),128))],512)],42,_hoisted_1$q);};}});var MonthTable=/* @__PURE__ */_export_sfc$1(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);var date$1=datePickerSharedProps.date,disabledDate=datePickerSharedProps.disabledDate,parsedValue=datePickerSharedProps.parsedValue;var basicYearTableProps=buildProps({date:date$1,disabledDate:disabledDate,parsedValue:parsedValue});var _hoisted_1$p=["aria-label"];var _hoisted_2$e=["aria-selected","tabindex","onKeydown"];var _hoisted_3$8={class:"cell"};var _hoisted_4$5={key:1};var _sfc_main$H=/* @__PURE__ */defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup:function setup(__props,_ref120){var expose=_ref120.expose,emit=_ref120.emit;var props=__props;var datesInYear=function datesInYear(year,lang2){var firstDay=dayjs(String(year)).locale(lang2).startOf("year");var lastDay=firstDay.endOf("year");var numOfDays=lastDay.dayOfYear();return rangeArr(numOfDays).map(function(n){return firstDay.add(n,"day").toDate();});};var ns=useNamespace("year-table");var _useLocale5=useLocale(),t=_useLocale5.t,lang=_useLocale5.lang;var tbodyRef=ref();var currentCellRef=ref();var startYear=computed(function(){return Math.floor(props.date.year()/10)*10;});var focus=function focus(){var _a;(_a=currentCellRef.value)==null?void 0:_a.focus();};var getCellKls=function getCellKls(year){var kls={};var today=dayjs().locale(lang.value);kls.disabled=props.disabledDate?datesInYear(year,lang.value).every(props.disabledDate):false;kls.current=castArray(props.parsedValue).findIndex(function(d){return d.year()===year;})>=0;kls.today=today.year()===year;return kls;};var isSelectedCell=function isSelectedCell(year){return year===startYear.value&&props.date.year()<startYear.value&&props.date.year()>startYear.value+9||castArray(props.date).findIndex(function(date){return date.year()===year;})>=0;};var handleYearTableClick=function handleYearTableClick(event){var clickTarget=event.target;var target=clickTarget.closest("td");if(target){if(hasClass(target.parentNode,"disabled"))return;var year=target.textContent||target.innerText;emit("pick",Number(year));}};watch(function(){return props.date;},/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee15(){var _a,_b;return regeneratorRuntime.wrap(function _callee15$(_context15){while(1){switch(_context15.prev=_context15.next){case 0:if(!((_a=tbodyRef.value)==null?void 0:_a.contains(document.activeElement))){_context15.next=4;break;}_context15.next=3;return nextTick();case 3:(_b=currentCellRef.value)==null?void 0:_b.focus();case 4:case"end":return _context15.stop();}}},_callee15);})));expose({focus:focus});return function(_ctx,_cache){return openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(t)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(ns).b()),onClick:handleYearTableClick},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:tbodyRef},[(openBlock(),createElementBlock(Fragment,null,renderList(3,function(_,i){return createBaseVNode("tr",{key:i},[(openBlock(),createElementBlock(Fragment,null,renderList(4,function(__,j){return openBlock(),createElementBlock(Fragment,{key:i+"_"+j},[i*4+j<10?(openBlock(),createElementBlock("td",{key:0,ref_for:true,ref:function ref(el){return isSelectedCell(unref(startYear)+i*4+j)&&(currentCellRef.value=el);},class:normalizeClass(["available",getCellKls(unref(startYear)+i*4+j)]),"aria-selected":"".concat(isSelectedCell(unref(startYear)+i*4+j)),tabindex:isSelectedCell(unref(startYear)+i*4+j)?0:-1,onKeydown:[withKeys(withModifiers(handleYearTableClick,["prevent","stop"]),["space"]),withKeys(withModifiers(handleYearTableClick,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$8,toDisplayString(unref(startYear)+i*4+j),1)],42,_hoisted_2$e)):(openBlock(),createElementBlock("td",_hoisted_4$5))],64);}),64))]);}),64))],512)],10,_hoisted_1$p);};}});var YearTable=/* @__PURE__ */_export_sfc$1(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);var _hoisted_1$o=["onClick"];var _hoisted_2$d=["aria-label"];var _hoisted_3$7=["aria-label"];var _hoisted_4$4=["aria-label"];var _hoisted_5$3=["aria-label"];var _sfc_main$G=/* @__PURE__ */defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup:function setup(__props,_ref122){var contextEmit=_ref122.emit;var props=__props;var timeWithinRange=function timeWithinRange(_,__,___){return true;};var ppNs=useNamespace("picker-panel");var dpNs=useNamespace("date-picker");var attrs=useAttrs$1();var slots=useSlots();var _useLocale6=useLocale(),t=_useLocale6.t,lang=_useLocale6.lang;var pickerBase=inject("EP_PICKER_BASE");var popper=inject(TOOLTIP_INJECTION_KEY);var _pickerBase$props2=pickerBase.props,shortcuts=_pickerBase$props2.shortcuts,disabledDate=_pickerBase$props2.disabledDate,cellClassName=_pickerBase$props2.cellClassName,defaultTime=_pickerBase$props2.defaultTime,arrowControl=_pickerBase$props2.arrowControl;var defaultValue=toRef(pickerBase.props,"defaultValue");var currentViewRef=ref();var innerDate=ref(dayjs().locale(lang.value));var defaultTimeD=computed(function(){return dayjs(defaultTime).locale(lang.value);});var month=computed(function(){return innerDate.value.month();});var year=computed(function(){return innerDate.value.year();});var selectableRange=ref([]);var userInputDate=ref(null);var userInputTime=ref(null);var checkDateWithinRange=function checkDateWithinRange(date){return selectableRange.value.length>0?timeWithinRange(date,selectableRange.value,props.format||"HH:mm:ss"):true;};var formatEmit=function formatEmit(emitDayjs){if(defaultTime&&!visibleTime.value){return defaultTimeD.value.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());}if(showTime.value)return emitDayjs.millisecond(0);return emitDayjs.startOf("day");};var emit=function emit(value){for(var _len15=arguments.length,args=new Array(_len15>1?_len15-1:0),_key22=1;_key22<_len15;_key22++){args[_key22-1]=arguments[_key22];}if(!value){contextEmit.apply(void 0,["pick",value].concat(args));}else if(isArray$7(value)){var dates=value.map(formatEmit);contextEmit.apply(void 0,["pick",dates].concat(args));}else{contextEmit.apply(void 0,["pick",formatEmit(value)].concat(args));}userInputDate.value=null;userInputTime.value=null;};var handleDatePick=function handleDatePick(value,keepOpen){if(selectionMode.value==="date"){value=value;var newDate=props.parsedValue?props.parsedValue.year(value.year()).month(value.month()).date(value.date()):value;if(!checkDateWithinRange(newDate)){newDate=selectableRange.value[0][0].year(value.year()).month(value.month()).date(value.date());}innerDate.value=newDate;emit(newDate,showTime.value||keepOpen);}else if(selectionMode.value==="week"){emit(value.date);}else if(selectionMode.value==="dates"){emit(value,true);}};var moveByMonth=function moveByMonth(forward){var action=forward?"add":"subtract";innerDate.value=innerDate.value[action](1,"month");handlePanelChange("month");};var moveByYear=function moveByYear(forward){var currentDate=innerDate.value;var action=forward?"add":"subtract";innerDate.value=currentView.value==="year"?currentDate[action](10,"year"):currentDate[action](1,"year");handlePanelChange("year");};var currentView=ref("date");var yearLabel=computed(function(){var yearTranslation=t("el.datepicker.year");if(currentView.value==="year"){var startYear=Math.floor(year.value/10)*10;if(yearTranslation){return"".concat(startYear," ").concat(yearTranslation," - ").concat(startYear+9," ").concat(yearTranslation);}return"".concat(startYear," - ").concat(startYear+9);}return"".concat(year.value," ").concat(yearTranslation);});var handleShortcutClick=function handleShortcutClick(shortcut){var shortcutValue=isFunction$1(shortcut.value)?shortcut.value():shortcut.value;if(shortcutValue){emit(dayjs(shortcutValue).locale(lang.value));return;}if(shortcut.onClick){shortcut.onClick({attrs:attrs,slots:slots,emit:contextEmit});}};var selectionMode=computed(function(){var type=props.type;if(["week","month","year","dates"].includes(type))return type;return"date";});var keyboardMode=computed(function(){return selectionMode.value==="date"?currentView.value:selectionMode.value;});var hasShortcuts=computed(function(){return!!shortcuts.length;});var handleMonthPick=/*#__PURE__*/function(){var _ref123=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee16(month2){return regeneratorRuntime.wrap(function _callee16$(_context16){while(1){switch(_context16.prev=_context16.next){case 0:innerDate.value=innerDate.value.startOf("month").month(month2);if(!(selectionMode.value==="month")){_context16.next=5;break;}emit(innerDate.value,false);_context16.next=11;break;case 5:currentView.value="date";if(!["month","year","date","week"].includes(selectionMode.value)){_context16.next=11;break;}emit(innerDate.value,true);_context16.next=10;return nextTick();case 10:handleFocusPicker();case 11:handlePanelChange("month");case 12:case"end":return _context16.stop();}}},_callee16);}));return function handleMonthPick(_x5){return _ref123.apply(this,arguments);};}();var handleYearPick=/*#__PURE__*/function(){var _ref124=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee17(year2){return regeneratorRuntime.wrap(function _callee17$(_context17){while(1){switch(_context17.prev=_context17.next){case 0:if(!(selectionMode.value==="year")){_context17.next=5;break;}innerDate.value=innerDate.value.startOf("year").year(year2);emit(innerDate.value,false);_context17.next=12;break;case 5:innerDate.value=innerDate.value.year(year2);currentView.value="month";if(!["month","year","date","week"].includes(selectionMode.value)){_context17.next=12;break;}emit(innerDate.value,true);_context17.next=11;return nextTick();case 11:handleFocusPicker();case 12:handlePanelChange("year");case 13:case"end":return _context17.stop();}}},_callee17);}));return function handleYearPick(_x6){return _ref124.apply(this,arguments);};}();var showPicker=/*#__PURE__*/function(){var _ref125=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee18(view){return regeneratorRuntime.wrap(function _callee18$(_context18){while(1){switch(_context18.prev=_context18.next){case 0:currentView.value=view;_context18.next=3;return nextTick();case 3:handleFocusPicker();case 4:case"end":return _context18.stop();}}},_callee18);}));return function showPicker(_x7){return _ref125.apply(this,arguments);};}();var showTime=computed(function(){return props.type==="datetime"||props.type==="datetimerange";});var footerVisible=computed(function(){return showTime.value||selectionMode.value==="dates";});var onConfirm=function onConfirm(){if(selectionMode.value==="dates"){emit(props.parsedValue);}else{var result=props.parsedValue;if(!result){var defaultTimeD2=dayjs(defaultTime).locale(lang.value);var defaultValueD=getDefaultValue();result=defaultTimeD2.year(defaultValueD.year()).month(defaultValueD.month()).date(defaultValueD.date());}innerDate.value=result;emit(result);}};var changeToNow=function changeToNow(){var now=dayjs().locale(lang.value);var nowDate=now.toDate();if((!disabledDate||!disabledDate(nowDate))&&checkDateWithinRange(nowDate)){innerDate.value=dayjs().locale(lang.value);emit(innerDate.value);}};var timeFormat=computed(function(){return extractTimeFormat(props.format);});var dateFormat=computed(function(){return extractDateFormat(props.format);});var visibleTime=computed(function(){if(userInputTime.value)return userInputTime.value;if(!props.parsedValue&&!defaultValue.value)return;return(props.parsedValue||innerDate.value).format(timeFormat.value);});var visibleDate=computed(function(){if(userInputDate.value)return userInputDate.value;if(!props.parsedValue&&!defaultValue.value)return;return(props.parsedValue||innerDate.value).format(dateFormat.value);});var timePickerVisible=ref(false);var onTimePickerInputFocus=function onTimePickerInputFocus(){timePickerVisible.value=true;};var handleTimePickClose=function handleTimePickClose(){timePickerVisible.value=false;};var getUnits=function getUnits(date){return{hour:date.hour(),minute:date.minute(),second:date.second(),year:date.year(),month:date.month(),date:date.date()};};var handleTimePick=function handleTimePick(value,visible,first){var _getUnits=getUnits(value),hour=_getUnits.hour,minute=_getUnits.minute,second=_getUnits.second;var newDate=props.parsedValue?props.parsedValue.hour(hour).minute(minute).second(second):value;innerDate.value=newDate;emit(innerDate.value,true);if(!first){timePickerVisible.value=visible;}};var handleVisibleTimeChange=function handleVisibleTimeChange(value){var newDate=dayjs(value,timeFormat.value).locale(lang.value);if(newDate.isValid()&&checkDateWithinRange(newDate)){var _getUnits2=getUnits(innerDate.value),year2=_getUnits2.year,month2=_getUnits2.month,_date2=_getUnits2.date;innerDate.value=newDate.year(year2).month(month2).date(_date2);userInputTime.value=null;timePickerVisible.value=false;emit(innerDate.value,true);}};var handleVisibleDateChange=function handleVisibleDateChange(value){var newDate=dayjs(value,dateFormat.value).locale(lang.value);if(newDate.isValid()){if(disabledDate&&disabledDate(newDate.toDate())){return;}var _getUnits3=getUnits(innerDate.value),hour=_getUnits3.hour,minute=_getUnits3.minute,second=_getUnits3.second;innerDate.value=newDate.hour(hour).minute(minute).second(second);userInputDate.value=null;emit(innerDate.value,true);}};var isValidValue=function isValidValue(date){return dayjs.isDayjs(date)&&date.isValid()&&(disabledDate?!disabledDate(date.toDate()):true);};var formatToString=function formatToString(value){if(selectionMode.value==="dates"){return value.map(function(_){return _.format(props.format);});}return value.format(props.format);};var parseUserInput=function parseUserInput(value){return dayjs(value,props.format).locale(lang.value);};var getDefaultValue=function getDefaultValue(){var parseDate=dayjs(defaultValue.value).locale(lang.value);if(!defaultValue.value){var defaultTimeDValue=defaultTimeD.value;return dayjs().hour(defaultTimeDValue.hour()).minute(defaultTimeDValue.minute()).second(defaultTimeDValue.second()).locale(lang.value);}return parseDate;};var handleFocusPicker=/*#__PURE__*/function(){var _ref126=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee19(){var _a;return regeneratorRuntime.wrap(function _callee19$(_context19){while(1){switch(_context19.prev=_context19.next){case 0:if(["week","month","year","date"].includes(selectionMode.value)){(_a=currentViewRef.value)==null?void 0:_a.focus();if(selectionMode.value==="week"){handleKeyControl(EVENT_CODE.down);}}case 1:case"end":return _context19.stop();}}},_callee19);}));return function handleFocusPicker(){return _ref126.apply(this,arguments);};}();var handleKeydownTable=function handleKeydownTable(event){var code=event.code;var validCode=[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right,EVENT_CODE.home,EVENT_CODE.end,EVENT_CODE.pageUp,EVENT_CODE.pageDown];if(validCode.includes(code)){handleKeyControl(code);event.stopPropagation();event.preventDefault();}if([EVENT_CODE.enter,EVENT_CODE.space].includes(code)&&userInputDate.value===null&&userInputTime.value===null){event.preventDefault();emit(innerDate.value,false);}};var handleKeyControl=function handleKeyControl(code){var _year,_month,_week,_date3;var _a;var up=EVENT_CODE.up,down=EVENT_CODE.down,left=EVENT_CODE.left,right=EVENT_CODE.right,home=EVENT_CODE.home,end=EVENT_CODE.end,pageUp=EVENT_CODE.pageUp,pageDown=EVENT_CODE.pageDown;var mapping={year:(_year={},_defineProperty2(_year,up,-4),_defineProperty2(_year,down,4),_defineProperty2(_year,left,-1),_defineProperty2(_year,right,1),_defineProperty2(_year,"offset",function offset(date,step){return date.setFullYear(date.getFullYear()+step);}),_year),month:(_month={},_defineProperty2(_month,up,-4),_defineProperty2(_month,down,4),_defineProperty2(_month,left,-1),_defineProperty2(_month,right,1),_defineProperty2(_month,"offset",function offset(date,step){return date.setMonth(date.getMonth()+step);}),_month),week:(_week={},_defineProperty2(_week,up,-1),_defineProperty2(_week,down,1),_defineProperty2(_week,left,-1),_defineProperty2(_week,right,1),_defineProperty2(_week,"offset",function offset(date,step){return date.setDate(date.getDate()+step*7);}),_week),date:(_date3={},_defineProperty2(_date3,up,-7),_defineProperty2(_date3,down,7),_defineProperty2(_date3,left,-1),_defineProperty2(_date3,right,1),_defineProperty2(_date3,home,function(date){return-date.getDay();}),_defineProperty2(_date3,end,function(date){return-date.getDay()+6;}),_defineProperty2(_date3,pageUp,function(date){return-new Date(date.getFullYear(),date.getMonth(),0).getDate();}),_defineProperty2(_date3,pageDown,function(date){return new Date(date.getFullYear(),date.getMonth()+1,0).getDate();}),_defineProperty2(_date3,"offset",function offset(date,step){return date.setDate(date.getDate()+step);}),_date3)};var newDate=innerDate.value.toDate();while(Math.abs(innerDate.value.diff(newDate,"year",true))<1){var map=mapping[keyboardMode.value];if(!map)return;map.offset(newDate,isFunction$1(map[code])?map[code](newDate):(_a=map[code])!=null?_a:0);if(disabledDate&&disabledDate(newDate)){break;}var result=dayjs(newDate).locale(lang.value);innerDate.value=result;contextEmit("pick",result,true);break;}};var handlePanelChange=function handlePanelChange(mode){contextEmit("panel-change",innerDate.value.toDate(),mode,currentView.value);};watch(function(){return selectionMode.value;},function(val){if(["month","year"].includes(val)){currentView.value=val;return;}currentView.value="date";},{immediate:true});watch(function(){return currentView.value;},function(){popper==null?void 0:popper.updatePopper();});watch(function(){return defaultValue.value;},function(val){if(val){innerDate.value=getDefaultValue();}},{immediate:true});watch(function(){return props.parsedValue;},function(val){if(val){if(selectionMode.value==="dates")return;if(Array.isArray(val))return;innerDate.value=val;}else{innerDate.value=getDefaultValue();}},{immediate:true});contextEmit("set-picker-option",["isValidValue",isValidValue]);contextEmit("set-picker-option",["formatToString",formatToString]);contextEmit("set-picker-option",["parseUserInput",parseUserInput]);contextEmit("set-picker-option",["handleFocusPicker",handleFocusPicker]);return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ppNs).b(),unref(dpNs).b(),{"has-sidebar":_ctx.$slots.sidebar||unref(hasShortcuts),"has-time":unref(showTime)}])},[createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("body-wrapper"))},[renderSlot(_ctx.$slots,"sidebar",{class:normalizeClass(unref(ppNs).e("sidebar"))}),unref(hasShortcuts)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ppNs).e("sidebar"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(shortcuts),function(shortcut,key){return openBlock(),createElementBlock("button",{key:key,type:"button",class:normalizeClass(unref(ppNs).e("shortcut")),onClick:function onClick($event){return handleShortcutClick(shortcut);}},toDisplayString(shortcut.text),11,_hoisted_1$o);}),128))],2)):createCommentVNode("v-if",true),createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("body"))},[unref(showTime)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(dpNs).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(dpNs).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(t)("el.datepicker.selectDate"),"model-value":unref(visibleDate),size:"small",onInput:_cache[0]||(_cache[0]=function(val){return userInputDate.value=val;}),onChange:handleVisibleDateChange},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(dpNs).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(t)("el.datepicker.selectTime"),"model-value":unref(visibleTime),size:"small",onFocus:onTimePickerInputFocus,onInput:_cache[1]||(_cache[1]=function(val){return userInputTime.value=val;}),onChange:handleVisibleTimeChange},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:timePickerVisible.value,format:unref(timeFormat),"time-arrow-control":unref(arrowControl),"parsed-value":innerDate.value,onPick:handleTimePick},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),handleTimePickClose]])],2)):createCommentVNode("v-if",true),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(dpNs).e("header"),(currentView.value==="year"||currentView.value==="month")&&unref(dpNs).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(dpNs).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(t)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(ppNs).e("icon-btn")]),onClick:_cache[2]||(_cache[2]=function($event){return moveByYear(false);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_left_default))];}),_:1})],10,_hoisted_2$d),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(t)("el.datepicker.prevMonth"),class:normalizeClass([unref(ppNs).e("icon-btn"),"arrow-left"]),onClick:_cache[3]||(_cache[3]=function($event){return moveByMonth(false);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_left_default))];}),_:1})],10,_hoisted_3$7),[[vShow,currentView.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(dpNs).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:_cache[4]||(_cache[4]=withKeys(function($event){return showPicker("year");},["enter"])),onClick:_cache[5]||(_cache[5]=function($event){return showPicker("year");})},toDisplayString(unref(yearLabel)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(dpNs).e("header-label"),{active:currentView.value==="month"}]),onKeydown:_cache[6]||(_cache[6]=withKeys(function($event){return showPicker("month");},["enter"])),onClick:_cache[7]||(_cache[7]=function($event){return showPicker("month");})},toDisplayString(unref(t)("el.datepicker.month".concat(unref(month)+1))),35),[[vShow,currentView.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(dpNs).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(t)("el.datepicker.nextMonth"),class:normalizeClass([unref(ppNs).e("icon-btn"),"arrow-right"]),onClick:_cache[8]||(_cache[8]=function($event){return moveByMonth(true);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1})],10,_hoisted_4$4),[[vShow,currentView.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(t)("el.datepicker.nextYear"),class:normalizeClass([unref(ppNs).e("icon-btn"),"d-arrow-right"]),onClick:_cache[9]||(_cache[9]=function($event){return moveByYear(true);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_right_default))];}),_:1})],10,_hoisted_5$3)],2)],2),[[vShow,currentView.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("content")),onKeydown:handleKeydownTable},[currentView.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:currentViewRef,"selection-mode":unref(selectionMode),date:innerDate.value,"parsed-value":_ctx.parsedValue,"disabled-date":unref(disabledDate),"cell-class-name":unref(cellClassName),onPick:handleDatePick},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",true),currentView.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:currentViewRef,date:innerDate.value,"disabled-date":unref(disabledDate),"parsed-value":_ctx.parsedValue,onPick:handleYearPick},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",true),currentView.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:currentViewRef,date:innerDate.value,"parsed-value":_ctx.parsedValue,"disabled-date":unref(disabledDate),onPick:handleMonthPick},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",true)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(ppNs).e("link-btn")),onClick:changeToNow},{default:withCtx(function(){return[createTextVNode(toDisplayString(unref(t)("el.datepicker.now")),1)];}),_:1},8,["class"]),[[vShow,unref(selectionMode)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ppNs).e("link-btn")),onClick:onConfirm},{default:withCtx(function(){return[createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")),1)];}),_:1},8,["class"])],2),[[vShow,unref(footerVisible)&&currentView.value==="date"]])],2);};}});var DatePickPanel=/* @__PURE__ */_export_sfc$1(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);var panelDateRangeProps=buildProps(_objectSpread(_objectSpread({},panelSharedProps),panelRangeSharedProps));var useShortcut=function useShortcut(lang){var _getCurrentInstance3=getCurrentInstance(),emit=_getCurrentInstance3.emit;var attrs=useAttrs$1();var slots=useSlots();var handleShortcutClick=function handleShortcutClick(shortcut){var shortcutValues=isFunction$1(shortcut.value)?shortcut.value():shortcut.value;if(shortcutValues){emit("pick",[dayjs(shortcutValues[0]).locale(lang.value),dayjs(shortcutValues[1]).locale(lang.value)]);return;}if(shortcut.onClick){shortcut.onClick({attrs:attrs,slots:slots,emit:emit});}};return handleShortcutClick;};var useRangePicker=function useRangePicker(props,_ref127){var defaultValue=_ref127.defaultValue,leftDate=_ref127.leftDate,rightDate=_ref127.rightDate,unit=_ref127.unit,onParsedValueChanged=_ref127.onParsedValueChanged;var _getCurrentInstance4=getCurrentInstance(),emit=_getCurrentInstance4.emit;var _inject8=inject(ROOT_PICKER_INJECTION_KEY),pickerNs=_inject8.pickerNs;var drpNs=useNamespace("date-range-picker");var _useLocale7=useLocale(),t=_useLocale7.t,lang=_useLocale7.lang;var handleShortcutClick=useShortcut(lang);var minDate=ref();var maxDate=ref();var rangeState=ref({endDate:null,selecting:false});var handleChangeRange=function handleChangeRange(val){rangeState.value=val;};var handleRangeConfirm=function handleRangeConfirm(){var visible=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var _minDate=unref(minDate);var _maxDate=unref(maxDate);if(isValidRange([_minDate,_maxDate])){emit("pick",[_minDate,_maxDate],visible);}};var onSelect=function onSelect(selecting){rangeState.value.selecting=selecting;if(!selecting){rangeState.value.endDate=null;}};var restoreDefault=function restoreDefault(){var _getDefaultValue=getDefaultValue(unref(defaultValue),{lang:unref(lang),unit:unit,unlinkPanels:props.unlinkPanels}),_getDefaultValue2=_slicedToArray(_getDefaultValue,2),start=_getDefaultValue2[0],end=_getDefaultValue2[1];minDate.value=void 0;maxDate.value=void 0;leftDate.value=start;rightDate.value=end;};watch(defaultValue,function(val){if(val){restoreDefault();}},{immediate:true});watch(function(){return props.parsedValue;},function(parsedValue){if(isArray$7(parsedValue)&&parsedValue.length===2){var _parsedValue=_slicedToArray(parsedValue,2),start=_parsedValue[0],end=_parsedValue[1];minDate.value=start;leftDate.value=start;maxDate.value=end;onParsedValueChanged(unref(minDate),unref(maxDate));}else{restoreDefault();}},{immediate:true});return{minDate:minDate,maxDate:maxDate,rangeState:rangeState,lang:lang,ppNs:pickerNs,drpNs:drpNs,handleChangeRange:handleChangeRange,handleRangeConfirm:handleRangeConfirm,handleShortcutClick:handleShortcutClick,onSelect:onSelect,t:t};};var _hoisted_1$n=["onClick"];var _hoisted_2$c=["disabled"];var _hoisted_3$6=["disabled"];var _hoisted_4$3=["disabled"];var _hoisted_5$2=["disabled"];var _sfc_main$F=/* @__PURE__ */defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup:function setup(__props,_ref128){var emit=_ref128.emit;var props=__props;var unit="month";var pickerBase=inject("EP_PICKER_BASE");var _pickerBase$props3=pickerBase.props,disabledDate=_pickerBase$props3.disabledDate,cellClassName=_pickerBase$props3.cellClassName,format=_pickerBase$props3.format,defaultTime=_pickerBase$props3.defaultTime,arrowControl=_pickerBase$props3.arrowControl,clearable=_pickerBase$props3.clearable;var shortcuts=toRef(pickerBase.props,"shortcuts");var defaultValue=toRef(pickerBase.props,"defaultValue");var _useLocale8=useLocale(),lang=_useLocale8.lang;var leftDate=ref(dayjs().locale(lang.value));var rightDate=ref(dayjs().locale(lang.value).add(1,unit));var _useRangePicker=useRangePicker(props,{defaultValue:defaultValue,leftDate:leftDate,rightDate:rightDate,unit:unit,onParsedValueChanged:onParsedValueChanged}),minDate=_useRangePicker.minDate,maxDate=_useRangePicker.maxDate,rangeState=_useRangePicker.rangeState,ppNs=_useRangePicker.ppNs,drpNs=_useRangePicker.drpNs,handleChangeRange=_useRangePicker.handleChangeRange,handleRangeConfirm=_useRangePicker.handleRangeConfirm,handleShortcutClick=_useRangePicker.handleShortcutClick,onSelect=_useRangePicker.onSelect,t=_useRangePicker.t;var dateUserInput=ref({min:null,max:null});var timeUserInput=ref({min:null,max:null});var leftLabel=computed(function(){return"".concat(leftDate.value.year()," ").concat(t("el.datepicker.year")," ").concat(t("el.datepicker.month".concat(leftDate.value.month()+1)));});var rightLabel=computed(function(){return"".concat(rightDate.value.year()," ").concat(t("el.datepicker.year")," ").concat(t("el.datepicker.month".concat(rightDate.value.month()+1)));});var leftYear=computed(function(){return leftDate.value.year();});var leftMonth=computed(function(){return leftDate.value.month();});var rightYear=computed(function(){return rightDate.value.year();});var rightMonth=computed(function(){return rightDate.value.month();});var hasShortcuts=computed(function(){return!!shortcuts.value.length;});var minVisibleDate=computed(function(){if(dateUserInput.value.min!==null)return dateUserInput.value.min;if(minDate.value)return minDate.value.format(dateFormat.value);return"";});var maxVisibleDate=computed(function(){if(dateUserInput.value.max!==null)return dateUserInput.value.max;if(maxDate.value||minDate.value)return(maxDate.value||minDate.value).format(dateFormat.value);return"";});var minVisibleTime=computed(function(){if(timeUserInput.value.min!==null)return timeUserInput.value.min;if(minDate.value)return minDate.value.format(timeFormat.value);return"";});var maxVisibleTime=computed(function(){if(timeUserInput.value.max!==null)return timeUserInput.value.max;if(maxDate.value||minDate.value)return(maxDate.value||minDate.value).format(timeFormat.value);return"";});var timeFormat=computed(function(){return extractTimeFormat(format);});var dateFormat=computed(function(){return extractDateFormat(format);});var leftPrevYear=function leftPrevYear(){leftDate.value=leftDate.value.subtract(1,"year");if(!props.unlinkPanels){rightDate.value=leftDate.value.add(1,"month");}handlePanelChange("year");};var leftPrevMonth=function leftPrevMonth(){leftDate.value=leftDate.value.subtract(1,"month");if(!props.unlinkPanels){rightDate.value=leftDate.value.add(1,"month");}handlePanelChange("month");};var rightNextYear=function rightNextYear(){if(!props.unlinkPanels){leftDate.value=leftDate.value.add(1,"year");rightDate.value=leftDate.value.add(1,"month");}else{rightDate.value=rightDate.value.add(1,"year");}handlePanelChange("year");};var rightNextMonth=function rightNextMonth(){if(!props.unlinkPanels){leftDate.value=leftDate.value.add(1,"month");rightDate.value=leftDate.value.add(1,"month");}else{rightDate.value=rightDate.value.add(1,"month");}handlePanelChange("month");};var leftNextYear=function leftNextYear(){leftDate.value=leftDate.value.add(1,"year");handlePanelChange("year");};var leftNextMonth=function leftNextMonth(){leftDate.value=leftDate.value.add(1,"month");handlePanelChange("month");};var rightPrevYear=function rightPrevYear(){rightDate.value=rightDate.value.subtract(1,"year");handlePanelChange("year");};var rightPrevMonth=function rightPrevMonth(){rightDate.value=rightDate.value.subtract(1,"month");handlePanelChange("month");};var handlePanelChange=function handlePanelChange(mode){emit("panel-change",[leftDate.value.toDate(),rightDate.value.toDate()],mode);};var enableMonthArrow=computed(function(){var nextMonth=(leftMonth.value+1)%12;var yearOffset=leftMonth.value+1>=12?1:0;return props.unlinkPanels&&new Date(leftYear.value+yearOffset,nextMonth)<new Date(rightYear.value,rightMonth.value);});var enableYearArrow=computed(function(){return props.unlinkPanels&&rightYear.value*12+rightMonth.value-(leftYear.value*12+leftMonth.value+1)>=12;});var btnDisabled=computed(function(){return!(minDate.value&&maxDate.value&&!rangeState.value.selecting&&isValidRange([minDate.value,maxDate.value]));});var showTime=computed(function(){return props.type==="datetime"||props.type==="datetimerange";});var formatEmit=function formatEmit(emitDayjs,index){if(!emitDayjs)return;if(defaultTime){var defaultTimeD=dayjs(defaultTime[index]||defaultTime).locale(lang.value);return defaultTimeD.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());}return emitDayjs;};var handleRangePick=function handleRangePick(val){var close=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var min_=val.minDate;var max_=val.maxDate;var minDate_=formatEmit(min_,0);var maxDate_=formatEmit(max_,1);if(maxDate.value===maxDate_&&minDate.value===minDate_){return;}emit("calendar-change",[min_.toDate(),max_&&max_.toDate()]);maxDate.value=maxDate_;minDate.value=minDate_;if(!close||showTime.value)return;handleRangeConfirm();};var minTimePickerVisible=ref(false);var maxTimePickerVisible=ref(false);var handleMinTimeClose=function handleMinTimeClose(){minTimePickerVisible.value=false;};var handleMaxTimeClose=function handleMaxTimeClose(){maxTimePickerVisible.value=false;};var handleDateInput=function handleDateInput(value,type){dateUserInput.value[type]=value;var parsedValueD=dayjs(value,dateFormat.value).locale(lang.value);if(parsedValueD.isValid()){if(disabledDate&&disabledDate(parsedValueD.toDate())){return;}if(type==="min"){leftDate.value=parsedValueD;minDate.value=(minDate.value||leftDate.value).year(parsedValueD.year()).month(parsedValueD.month()).date(parsedValueD.date());if(!props.unlinkPanels){rightDate.value=parsedValueD.add(1,"month");maxDate.value=minDate.value.add(1,"month");}}else{rightDate.value=parsedValueD;maxDate.value=(maxDate.value||rightDate.value).year(parsedValueD.year()).month(parsedValueD.month()).date(parsedValueD.date());if(!props.unlinkPanels){leftDate.value=parsedValueD.subtract(1,"month");minDate.value=maxDate.value.subtract(1,"month");}}}};var handleDateChange=function handleDateChange(_,type){dateUserInput.value[type]=null;};var handleTimeInput=function handleTimeInput(value,type){timeUserInput.value[type]=value;var parsedValueD=dayjs(value,timeFormat.value).locale(lang.value);if(parsedValueD.isValid()){if(type==="min"){minTimePickerVisible.value=true;minDate.value=(minDate.value||leftDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());if(!maxDate.value||maxDate.value.isBefore(minDate.value)){maxDate.value=minDate.value;}}else{maxTimePickerVisible.value=true;maxDate.value=(maxDate.value||rightDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());rightDate.value=maxDate.value;if(maxDate.value&&maxDate.value.isBefore(minDate.value)){minDate.value=maxDate.value;}}}};var handleTimeChange=function handleTimeChange(value,type){timeUserInput.value[type]=null;if(type==="min"){leftDate.value=minDate.value;minTimePickerVisible.value=false;}else{rightDate.value=maxDate.value;maxTimePickerVisible.value=false;}};var handleMinTimePick=function handleMinTimePick(value,visible,first){if(timeUserInput.value.min)return;if(value){leftDate.value=value;minDate.value=(minDate.value||leftDate.value).hour(value.hour()).minute(value.minute()).second(value.second());}if(!first){minTimePickerVisible.value=visible;}if(!maxDate.value||maxDate.value.isBefore(minDate.value)){maxDate.value=minDate.value;rightDate.value=value;}};var handleMaxTimePick=function handleMaxTimePick(value,visible,first){if(timeUserInput.value.max)return;if(value){rightDate.value=value;maxDate.value=(maxDate.value||rightDate.value).hour(value.hour()).minute(value.minute()).second(value.second());}if(!first){maxTimePickerVisible.value=visible;}if(maxDate.value&&maxDate.value.isBefore(minDate.value)){minDate.value=maxDate.value;}};var handleClear=function handleClear(){leftDate.value=getDefaultValue(unref(defaultValue),{lang:unref(lang),unit:"month",unlinkPanels:props.unlinkPanels})[0];rightDate.value=leftDate.value.add(1,"month");emit("pick",null);};var formatToString=function formatToString(value){return isArray$7(value)?value.map(function(_){return _.format(format);}):value.format(format);};var parseUserInput=function parseUserInput(value){return isArray$7(value)?value.map(function(_){return dayjs(_,format).locale(lang.value);}):dayjs(value,format).locale(lang.value);};function onParsedValueChanged(minDate2,maxDate2){if(props.unlinkPanels&&maxDate2){var minDateYear=(minDate2==null?void 0:minDate2.year())||0;var minDateMonth=(minDate2==null?void 0:minDate2.month())||0;var maxDateYear=maxDate2.year();var maxDateMonth=maxDate2.month();rightDate.value=minDateYear===maxDateYear&&minDateMonth===maxDateMonth?maxDate2.add(1,unit):maxDate2;}else{rightDate.value=leftDate.value.add(1,unit);if(maxDate2){rightDate.value=rightDate.value.hour(maxDate2.hour()).minute(maxDate2.minute()).second(maxDate2.second());}}}emit("set-picker-option",["isValidRange",isValidRange]);emit("set-picker-option",["parseUserInput",parseUserInput]);emit("set-picker-option",["formatToString",formatToString]);emit("set-picker-option",["handleClear",handleClear]);return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ppNs).b(),unref(drpNs).b(),{"has-sidebar":_ctx.$slots.sidebar||unref(hasShortcuts),"has-time":unref(showTime)}])},[createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("body-wrapper"))},[renderSlot(_ctx.$slots,"sidebar",{class:normalizeClass(unref(ppNs).e("sidebar"))}),unref(hasShortcuts)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ppNs).e("sidebar"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(shortcuts),function(shortcut,key){return openBlock(),createElementBlock("button",{key:key,type:"button",class:normalizeClass(unref(ppNs).e("shortcut")),onClick:function onClick($event){return unref(handleShortcutClick)(shortcut);}},toDisplayString(shortcut.text),11,_hoisted_1$n);}),128))],2)):createCommentVNode("v-if",true),createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("body"))},[unref(showTime)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(drpNs).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(drpNs).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(drpNs).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(rangeState).selecting,placeholder:unref(t)("el.datepicker.startDate"),class:normalizeClass(unref(drpNs).e("editor")),"model-value":unref(minVisibleDate),onInput:_cache[0]||(_cache[0]=function(val){return handleDateInput(val,"min");}),onChange:_cache[1]||(_cache[1]=function(val){return handleDateChange(val,"min");})},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(drpNs).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(drpNs).e("editor")),disabled:unref(rangeState).selecting,placeholder:unref(t)("el.datepicker.startTime"),"model-value":unref(minVisibleTime),onFocus:_cache[2]||(_cache[2]=function($event){return minTimePickerVisible.value=true;}),onInput:_cache[3]||(_cache[3]=function(val){return handleTimeInput(val,"min");}),onChange:_cache[4]||(_cache[4]=function(val){return handleTimeChange(val,"min");})},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:minTimePickerVisible.value,format:unref(timeFormat),"datetime-role":"start","time-arrow-control":unref(arrowControl),"parsed-value":leftDate.value,onPick:handleMinTimePick},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),handleMinTimeClose]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(drpNs).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(drpNs).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(drpNs).e("editor")),disabled:unref(rangeState).selecting,placeholder:unref(t)("el.datepicker.endDate"),"model-value":unref(maxVisibleDate),readonly:!unref(minDate),onInput:_cache[5]||(_cache[5]=function(val){return handleDateInput(val,"max");}),onChange:_cache[6]||(_cache[6]=function(val){return handleDateChange(val,"max");})},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(drpNs).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(drpNs).e("editor")),disabled:unref(rangeState).selecting,placeholder:unref(t)("el.datepicker.endTime"),"model-value":unref(maxVisibleTime),readonly:!unref(minDate),onFocus:_cache[7]||(_cache[7]=function($event){return unref(minDate)&&(maxTimePickerVisible.value=true);}),onInput:_cache[8]||(_cache[8]=function(val){return handleTimeInput(val,"max");}),onChange:_cache[9]||(_cache[9]=function(val){return handleTimeChange(val,"max");})},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:maxTimePickerVisible.value,format:unref(timeFormat),"time-arrow-control":unref(arrowControl),"parsed-value":rightDate.value,onPick:handleMaxTimePick},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),handleMaxTimeClose]])],2)],2)):createCommentVNode("v-if",true),createBaseVNode("div",{class:normalizeClass([[unref(ppNs).e("content"),unref(drpNs).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(drpNs).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(ppNs).e("icon-btn"),"d-arrow-left"]),onClick:leftPrevYear},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_left_default))];}),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ppNs).e("icon-btn"),"arrow-left"]),onClick:leftPrevMonth},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_left_default))];}),_:1})],2),_ctx.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(enableYearArrow),class:normalizeClass([[unref(ppNs).e("icon-btn"),{"is-disabled":!unref(enableYearArrow)}],"d-arrow-right"]),onClick:leftNextYear},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_right_default))];}),_:1})],10,_hoisted_2$c)):createCommentVNode("v-if",true),_ctx.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(enableMonthArrow),class:normalizeClass([[unref(ppNs).e("icon-btn"),{"is-disabled":!unref(enableMonthArrow)}],"arrow-right"]),onClick:leftNextMonth},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1})],10,_hoisted_3$6)):createCommentVNode("v-if",true),createBaseVNode("div",null,toDisplayString(unref(leftLabel)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:leftDate.value,"min-date":unref(minDate),"max-date":unref(maxDate),"range-state":unref(rangeState),"disabled-date":unref(disabledDate),"cell-class-name":unref(cellClassName),onChangerange:unref(handleChangeRange),onPick:handleRangePick,onSelect:unref(onSelect)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(ppNs).e("content"),unref(drpNs).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(drpNs).e("header"))},[_ctx.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(enableYearArrow),class:normalizeClass([[unref(ppNs).e("icon-btn"),{"is-disabled":!unref(enableYearArrow)}],"d-arrow-left"]),onClick:rightPrevYear},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_left_default))];}),_:1})],10,_hoisted_4$3)):createCommentVNode("v-if",true),_ctx.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(enableMonthArrow),class:normalizeClass([[unref(ppNs).e("icon-btn"),{"is-disabled":!unref(enableMonthArrow)}],"arrow-left"]),onClick:rightPrevMonth},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_left_default))];}),_:1})],10,_hoisted_5$2)):createCommentVNode("v-if",true),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ppNs).e("icon-btn"),"d-arrow-right"]),onClick:rightNextYear},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_right_default))];}),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ppNs).e("icon-btn"),"arrow-right"]),onClick:rightNextMonth},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1})],2),createBaseVNode("div",null,toDisplayString(unref(rightLabel)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:rightDate.value,"min-date":unref(minDate),"max-date":unref(maxDate),"range-state":unref(rangeState),"disabled-date":unref(disabledDate),"cell-class-name":unref(cellClassName),onChangerange:unref(handleChangeRange),onPick:handleRangePick,onSelect:unref(onSelect)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(showTime)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ppNs).e("footer"))},[unref(clearable)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(ppNs).e("link-btn")),onClick:handleClear},{default:withCtx(function(){return[createTextVNode(toDisplayString(unref(t)("el.datepicker.clear")),1)];}),_:1},8,["class"])):createCommentVNode("v-if",true),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ppNs).e("link-btn")),disabled:unref(btnDisabled),onClick:_cache[10]||(_cache[10]=function($event){return unref(handleRangeConfirm)(false);})},{default:withCtx(function(){return[createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")),1)];}),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",true)],2);};}});var DateRangePickPanel=/* @__PURE__ */_export_sfc$1(_sfc_main$F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);var panelMonthRangeProps=buildProps(_objectSpread({},panelRangeSharedProps));var panelMonthRangeEmits=["pick","set-picker-option"];var useMonthRangeHeader=function useMonthRangeHeader(_ref129){var unlinkPanels=_ref129.unlinkPanels,leftDate=_ref129.leftDate,rightDate=_ref129.rightDate;var _useLocale9=useLocale(),t=_useLocale9.t;var leftPrevYear=function leftPrevYear(){leftDate.value=leftDate.value.subtract(1,"year");if(!unlinkPanels){rightDate.value=rightDate.value.subtract(1,"year");}};var rightNextYear=function rightNextYear(){if(!unlinkPanels){leftDate.value=leftDate.value.add(1,"year");}rightDate.value=rightDate.value.add(1,"year");};var leftNextYear=function leftNextYear(){leftDate.value=leftDate.value.add(1,"year");};var rightPrevYear=function rightPrevYear(){rightDate.value=rightDate.value.subtract(1,"year");};var leftLabel=computed(function(){return"".concat(leftDate.value.year()," ").concat(t("el.datepicker.year"));});var rightLabel=computed(function(){return"".concat(rightDate.value.year()," ").concat(t("el.datepicker.year"));});var leftYear=computed(function(){return leftDate.value.year();});var rightYear=computed(function(){return rightDate.value.year()===leftDate.value.year()?leftDate.value.year()+1:rightDate.value.year();});return{leftPrevYear:leftPrevYear,rightNextYear:rightNextYear,leftNextYear:leftNextYear,rightPrevYear:rightPrevYear,leftLabel:leftLabel,rightLabel:rightLabel,leftYear:leftYear,rightYear:rightYear};};var _hoisted_1$m=["onClick"];var _hoisted_2$b=["disabled"];var _hoisted_3$5=["disabled"];var __default__$n={name:"DatePickerMonthRange"};var _sfc_main$E=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$n),{},{props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup:function setup(__props,_ref130){var emit=_ref130.emit;var props=__props;var unit="year";var _useLocale10=useLocale(),lang=_useLocale10.lang;var pickerBase=inject("EP_PICKER_BASE");var _pickerBase$props4=pickerBase.props,shortcuts=_pickerBase$props4.shortcuts,disabledDate=_pickerBase$props4.disabledDate,format=_pickerBase$props4.format;var defaultValue=toRef(pickerBase.props,"defaultValue");var leftDate=ref(dayjs().locale(lang.value));var rightDate=ref(dayjs().locale(lang.value).add(1,unit));var _useRangePicker2=useRangePicker(props,{defaultValue:defaultValue,leftDate:leftDate,rightDate:rightDate,unit:unit,onParsedValueChanged:onParsedValueChanged}),minDate=_useRangePicker2.minDate,maxDate=_useRangePicker2.maxDate,rangeState=_useRangePicker2.rangeState,ppNs=_useRangePicker2.ppNs,drpNs=_useRangePicker2.drpNs,handleChangeRange=_useRangePicker2.handleChangeRange,handleRangeConfirm=_useRangePicker2.handleRangeConfirm,handleShortcutClick=_useRangePicker2.handleShortcutClick,onSelect=_useRangePicker2.onSelect;var hasShortcuts=computed(function(){return!!shortcuts.length;});var _useMonthRangeHeader=useMonthRangeHeader({unlinkPanels:toRef(props,"unlinkPanels"),leftDate:leftDate,rightDate:rightDate}),leftPrevYear=_useMonthRangeHeader.leftPrevYear,rightNextYear=_useMonthRangeHeader.rightNextYear,leftNextYear=_useMonthRangeHeader.leftNextYear,rightPrevYear=_useMonthRangeHeader.rightPrevYear,leftLabel=_useMonthRangeHeader.leftLabel,rightLabel=_useMonthRangeHeader.rightLabel,leftYear=_useMonthRangeHeader.leftYear,rightYear=_useMonthRangeHeader.rightYear;var enableYearArrow=computed(function(){return props.unlinkPanels&&rightYear.value>leftYear.value+1;});var handleRangePick=function handleRangePick(val){var close=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var minDate_=val.minDate;var maxDate_=val.maxDate;if(maxDate.value===maxDate_&&minDate.value===minDate_){return;}maxDate.value=maxDate_;minDate.value=minDate_;if(!close)return;handleRangeConfirm();};var formatToString=function formatToString(days){return days.map(function(day){return day.format(format);});};function onParsedValueChanged(minDate2,maxDate2){if(props.unlinkPanels&&maxDate2){var minDateYear=(minDate2==null?void 0:minDate2.year())||0;var maxDateYear=maxDate2.year();rightDate.value=minDateYear===maxDateYear?maxDate2.add(1,unit):maxDate2;}else{rightDate.value=leftDate.value.add(1,unit);}}emit("set-picker-option",["formatToString",formatToString]);return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ppNs).b(),unref(drpNs).b(),{"has-sidebar":Boolean(_ctx.$slots.sidebar)||unref(hasShortcuts)}])},[createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("body-wrapper"))},[renderSlot(_ctx.$slots,"sidebar",{class:normalizeClass(unref(ppNs).e("sidebar"))}),unref(hasShortcuts)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ppNs).e("sidebar"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(shortcuts),function(shortcut,key){return openBlock(),createElementBlock("button",{key:key,type:"button",class:normalizeClass(unref(ppNs).e("shortcut")),onClick:function onClick($event){return unref(handleShortcutClick)(shortcut);}},toDisplayString(shortcut.text),11,_hoisted_1$m);}),128))],2)):createCommentVNode("v-if",true),createBaseVNode("div",{class:normalizeClass(unref(ppNs).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(ppNs).e("content"),unref(drpNs).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(drpNs).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(ppNs).e("icon-btn"),"d-arrow-left"]),onClick:_cache[0]||(_cache[0]=function(){return unref(leftPrevYear)&&unref(leftPrevYear).apply(void 0,arguments);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_left_default))];}),_:1})],2),_ctx.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(enableYearArrow),class:normalizeClass([[unref(ppNs).e("icon-btn"),_defineProperty2({},unref(ppNs).is("disabled"),!unref(enableYearArrow))],"d-arrow-right"]),onClick:_cache[1]||(_cache[1]=function(){return unref(leftNextYear)&&unref(leftNextYear).apply(void 0,arguments);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_right_default))];}),_:1})],10,_hoisted_2$b)):createCommentVNode("v-if",true),createBaseVNode("div",null,toDisplayString(unref(leftLabel)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:leftDate.value,"min-date":unref(minDate),"max-date":unref(maxDate),"range-state":unref(rangeState),"disabled-date":unref(disabledDate),onChangerange:unref(handleChangeRange),onPick:handleRangePick,onSelect:unref(onSelect)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(ppNs).e("content"),unref(drpNs).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(drpNs).e("header"))},[_ctx.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(enableYearArrow),class:normalizeClass([[unref(ppNs).e("icon-btn"),{"is-disabled":!unref(enableYearArrow)}],"d-arrow-left"]),onClick:_cache[2]||(_cache[2]=function(){return unref(rightPrevYear)&&unref(rightPrevYear).apply(void 0,arguments);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_left_default))];}),_:1})],10,_hoisted_3$5)):createCommentVNode("v-if",true),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ppNs).e("icon-btn"),"d-arrow-right"]),onClick:_cache[3]||(_cache[3]=function(){return unref(rightNextYear)&&unref(rightNextYear).apply(void 0,arguments);})},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(d_arrow_right_default))];}),_:1})],2),createBaseVNode("div",null,toDisplayString(unref(rightLabel)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:rightDate.value,"min-date":unref(minDate),"max-date":unref(maxDate),"range-state":unref(rangeState),"disabled-date":unref(disabledDate),onChangerange:unref(handleChangeRange),onPick:handleRangePick,onSelect:unref(onSelect)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2);};}}));var MonthRangePickPanel=/* @__PURE__ */_export_sfc$1(_sfc_main$E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);var getPanel=function getPanel(type){switch(type){case"daterange":case"datetimerange":{return DateRangePickPanel;}case"monthrange":{return MonthRangePickPanel;}default:{return DatePickPanel;}}};dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:_objectSpread(_objectSpread({},timePickerDefaultProps),datePickerProps),emits:["update:modelValue"],setup:function setup(props,_ref132){var expose=_ref132.expose,emit=_ref132.emit,slots=_ref132.slots;var ns=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef(props,"popperOptions")));provide(ROOT_PICKER_INJECTION_KEY,{slots:slots,pickerNs:ns});var commonPicker=ref();var refProps={focus:function focus(){var focusStartInput=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var _a;(_a=commonPicker.value)==null?void 0:_a.focus(focusStartInput);}};expose(refProps);var onModelValueUpdated=function onModelValueUpdated(val){emit("update:modelValue",val);};return function(){var _a;var format=(_a=props.format)!=null?_a:DEFAULT_FORMATS_DATEPICKER[props.type]||DEFAULT_FORMATS_DATE;var Component=getPanel(props.type);return createVNode(CommonPicker,mergeProps(props,{"format":format,"type":props.type,"ref":commonPicker,"onUpdate:modelValue":onModelValueUpdated}),{default:function _default(scopedProps){return createVNode(Component,scopedProps,null);},"range-separator":slots["range-separator"]});};}});var _DatePicker=DatePicker;_DatePicker.install=function(app){app.component(_DatePicker.name,_DatePicker);};var ElDatePicker=exports('ad',_DatePicker);var overlayProps=buildProps({mask:{type:Boolean,default:true},customMaskEvent:{type:Boolean,default:false},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}});var overlayEmits={click:function click(evt){return evt instanceof MouseEvent;}};var Overlay=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup:function setup(props,_ref133){var slots=_ref133.slots,emit=_ref133.emit;var ns=useNamespace("overlay");var onMaskClick=function onMaskClick(e){emit("click",e);};var _useSameTarget=useSameTarget(props.customMaskEvent?void 0:onMaskClick),onClick=_useSameTarget.onClick,onMousedown=_useSameTarget.onMousedown,onMouseup=_useSameTarget.onMouseup;return function(){return props.mask?createVNode("div",{class:[ns.b(),props.overlayClass],style:{zIndex:props.zIndex},onClick:onClick,onMousedown:onMousedown,onMouseup:onMouseup},[renderSlot(slots,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h("div",{class:props.overlayClass,style:{zIndex:props.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(slots,"default")]);};}});var ElOverlay=Overlay;var dialogContentProps=buildProps({center:{type:Boolean,default:false},closeIcon:{type:iconPropType,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:false},fullscreen:{type:Boolean,default:false},showClose:{type:Boolean,default:true},title:{type:String,default:""}});var dialogContentEmits={close:function close(){return true;}};var _hoisted_1$l=["aria-label"];var _hoisted_2$a=["id"];var __default__$m={name:"ElDialogContent"};var _sfc_main$D=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$m),{},{props:dialogContentProps,emits:dialogContentEmits,setup:function setup(__props){var props=__props;var _useLocale11=useLocale(),t=_useLocale11.t;var Close=CloseComponents.Close;var _inject9=inject(dialogInjectionKey),dialogRef=_inject9.dialogRef,headerRef=_inject9.headerRef,bodyId=_inject9.bodyId,ns=_inject9.ns,style=_inject9.style;var _inject10=inject(FOCUS_TRAP_INJECTION_KEY),focusTrapRef=_inject10.focusTrapRef;var composedDialogRef=composeRefs(focusTrapRef,dialogRef);var draggable=computed(function(){return props.draggable;});useDraggable(dialogRef,headerRef,draggable);return function(_ctx,_cache){return openBlock(),createElementBlock("div",{ref:unref(composedDialogRef),class:normalizeClass([unref(ns).b(),unref(ns).is("fullscreen",_ctx.fullscreen),unref(ns).is("draggable",unref(draggable)),_defineProperty2({},unref(ns).m("center"),_ctx.center),_ctx.customClass]),style:normalizeStyle(unref(style)),tabindex:"-1",onClick:_cache[1]||(_cache[1]=withModifiers(function(){},["stop"]))},[createBaseVNode("header",{ref_key:"headerRef",ref:headerRef,class:normalizeClass(unref(ns).e("header"))},[renderSlot(_ctx.$slots,"header",{},function(){return[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(ns).e("title"))},toDisplayString(_ctx.title),3)];}),_ctx.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(t)("el.dialog.close"),class:normalizeClass(unref(ns).e("headerbtn")),type:"button",onClick:_cache[0]||(_cache[0]=function($event){return _ctx.$emit("close");})},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ns).e("close"))},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.closeIcon||unref(Close))))];}),_:1},8,["class"])],10,_hoisted_1$l)):createCommentVNode("v-if",true)],2),createBaseVNode("div",{id:unref(bodyId),class:normalizeClass(unref(ns).e("body"))},[renderSlot(_ctx.$slots,"default")],10,_hoisted_2$a),_ctx.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(ns).e("footer"))},[renderSlot(_ctx.$slots,"footer")],2)):createCommentVNode("v-if",true)],6);};}}));var ElDialogContent=/* @__PURE__ */_export_sfc$1(_sfc_main$D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);var dialogProps=buildProps(_objectSpread(_objectSpread({},dialogContentProps),{},{appendToBody:{type:Boolean,default:false},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:false},closeOnClickModal:{type:Boolean,default:true},closeOnPressEscape:{type:Boolean,default:true},lockScroll:{type:Boolean,default:true},modal:{type:Boolean,default:true},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:true},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:false}}));var dialogEmits=(_dialogEmits={open:function open(){return true;},opened:function opened(){return true;},close:function close(){return true;},closed:function closed(){return true;}},_defineProperty2(_dialogEmits,UPDATE_MODEL_EVENT,function(value){return isBoolean$1(value);}),_defineProperty2(_dialogEmits,"openAutoFocus",function openAutoFocus(){return true;}),_defineProperty2(_dialogEmits,"closeAutoFocus",function closeAutoFocus(){return true;}),_dialogEmits);var useDialog=function useDialog(props,targetRef){var instance=getCurrentInstance();var emit=instance.emit;var _useZIndex2=useZIndex(),nextZIndex=_useZIndex2.nextZIndex;var lastPosition="";var titleId=useId();var bodyId=useId();var visible=ref(false);var closed=ref(false);var rendered=ref(false);var zIndex=ref(props.zIndex||nextZIndex());var openTimer=void 0;var closeTimer=void 0;var normalizeWidth=computed(function(){return isNumber$1(props.width)?"".concat(props.width,"px"):props.width;});var namespace=useGlobalConfig("namespace",defaultNamespace);var style=computed(function(){var style2={};var varPrefix="--".concat(namespace.value,"-dialog");if(!props.fullscreen){if(props.top){style2["".concat(varPrefix,"-margin-top")]=props.top;}if(props.width){style2["".concat(varPrefix,"-width")]=normalizeWidth.value;}}return style2;});function afterEnter(){emit("opened");}function afterLeave(){emit("closed");emit(UPDATE_MODEL_EVENT,false);if(props.destroyOnClose){rendered.value=false;}}function beforeLeave(){emit("close");}function open(){closeTimer==null?void 0:closeTimer();openTimer==null?void 0:openTimer();if(props.openDelay&&props.openDelay>0){var _useTimeoutFn=useTimeoutFn(function(){return doOpen();},props.openDelay);openTimer=_useTimeoutFn.stop;}else{doOpen();}}function close(){openTimer==null?void 0:openTimer();closeTimer==null?void 0:closeTimer();if(props.closeDelay&&props.closeDelay>0){var _useTimeoutFn2=useTimeoutFn(function(){return doClose();},props.closeDelay);closeTimer=_useTimeoutFn2.stop;}else{doClose();}}function handleClose(){function hide(shouldCancel){if(shouldCancel)return;closed.value=true;visible.value=false;}if(props.beforeClose){props.beforeClose(hide);}else{close();}}function onModalClick(){if(props.closeOnClickModal){handleClose();}}function doOpen(){if(!isClient)return;visible.value=true;}function doClose(){visible.value=false;}function onOpenAutoFocus(){emit("openAutoFocus");}function onCloseAutoFocus(){emit("closeAutoFocus");}if(props.lockScroll){useLockscreen(visible);}function onCloseRequested(){if(props.closeOnPressEscape){handleClose();}}watch(function(){return props.modelValue;},function(val){if(val){closed.value=false;open();rendered.value=true;emit("open");zIndex.value=props.zIndex?zIndex.value++:nextZIndex();nextTick(function(){if(targetRef.value){targetRef.value.scrollTop=0;}});}else{if(visible.value){close();}}});watch(function(){return props.fullscreen;},function(val){if(!targetRef.value)return;if(val){lastPosition=targetRef.value.style.transform;targetRef.value.style.transform="";}else{targetRef.value.style.transform=lastPosition;}});onMounted(function(){if(props.modelValue){visible.value=true;rendered.value=true;open();}});return{afterEnter:afterEnter,afterLeave:afterLeave,beforeLeave:beforeLeave,handleClose:handleClose,onModalClick:onModalClick,close:close,doClose:doClose,onOpenAutoFocus:onOpenAutoFocus,onCloseAutoFocus:onCloseAutoFocus,onCloseRequested:onCloseRequested,titleId:titleId,bodyId:bodyId,closed:closed,style:style,rendered:rendered,visible:visible,zIndex:zIndex};};var _hoisted_1$k=["aria-label","aria-labelledby","aria-describedby"];var __default__$l={name:"ElDialog"};var _sfc_main$C=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$l),{},{props:dialogProps,emits:dialogEmits,setup:function setup(__props,_ref135){var expose=_ref135.expose;var props=__props;var slots=useSlots();useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(function(){return!!slots.title;}));var ns=useNamespace("dialog");var dialogRef=ref();var headerRef=ref();var dialogContentRef=ref();var _useDialog=useDialog(props,dialogRef),visible=_useDialog.visible,titleId=_useDialog.titleId,bodyId=_useDialog.bodyId,style=_useDialog.style,rendered=_useDialog.rendered,zIndex=_useDialog.zIndex,afterEnter=_useDialog.afterEnter,afterLeave=_useDialog.afterLeave,beforeLeave=_useDialog.beforeLeave,handleClose=_useDialog.handleClose,onModalClick=_useDialog.onModalClick,onOpenAutoFocus=_useDialog.onOpenAutoFocus,onCloseAutoFocus=_useDialog.onCloseAutoFocus,onCloseRequested=_useDialog.onCloseRequested;provide(dialogInjectionKey,{dialogRef:dialogRef,headerRef:headerRef,bodyId:bodyId,ns:ns,rendered:rendered,style:style});var overlayEvent=useSameTarget(onModalClick);var draggable=computed(function(){return props.draggable&&!props.fullscreen;});expose({visible:visible,dialogContentRef:dialogContentRef});return function(_ctx,_cache){return openBlock(),createBlock(Teleport,{to:"body",disabled:!_ctx.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(afterEnter),onAfterLeave:unref(afterLeave),onBeforeLeave:unref(beforeLeave),persisted:""},{default:withCtx(function(){return[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:_ctx.modal,"overlay-class":_ctx.modalClass,"z-index":unref(zIndex)},{default:withCtx(function(){return[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":_ctx.title||void 0,"aria-labelledby":!_ctx.title?unref(titleId):void 0,"aria-describedby":unref(bodyId),class:normalizeClass("".concat(unref(ns).namespace.value,"-overlay-dialog")),onClick:_cache[0]||(_cache[0]=function(){var _unref7;return unref(overlayEvent).onClick&&(_unref7=unref(overlayEvent)).onClick.apply(_unref7,arguments);}),onMousedown:_cache[1]||(_cache[1]=function(){var _unref8;return unref(overlayEvent).onMousedown&&(_unref8=unref(overlayEvent)).onMousedown.apply(_unref8,arguments);}),onMouseup:_cache[2]||(_cache[2]=function(){var _unref9;return unref(overlayEvent).onMouseup&&(_unref9=unref(overlayEvent)).onMouseup.apply(_unref9,arguments);})},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref(visible),"focus-start-el":"container",onFocusAfterTrapped:unref(onOpenAutoFocus),onFocusAfterReleased:unref(onCloseAutoFocus),onReleaseRequested:unref(onCloseRequested)},{default:withCtx(function(){return[unref(rendered)?(openBlock(),createBlock(ElDialogContent,{key:0,ref_key:"dialogContentRef",ref:dialogContentRef,"custom-class":_ctx.customClass,center:_ctx.center,"close-icon":_ctx.closeIcon,draggable:unref(draggable),fullscreen:_ctx.fullscreen,"show-close":_ctx.showClose,style:normalizeStyle(unref(style)),title:_ctx.title,onClose:unref(handleClose)},createSlots({header:withCtx(function(){return[!_ctx.$slots.title?renderSlot(_ctx.$slots,"header",{key:0,close:unref(handleClose),titleId:unref(titleId),titleClass:unref(ns).e("title")}):renderSlot(_ctx.$slots,"title",{key:1})];}),default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:2},[_ctx.$slots.footer?{name:"footer",fn:withCtx(function(){return[renderSlot(_ctx.$slots,"footer")];})}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):createCommentVNode("v-if",true)];}),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,_hoisted_1$k)];}),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(visible)]])];}),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]);};}}));var Dialog=/* @__PURE__ */_export_sfc$1(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);var ElDialog=exports('K',withInstall(Dialog));var _sfc_main$B={inheritAttrs:false};function _sfc_render$g(_ctx,_cache,$props,$setup,$data,$options){return renderSlot(_ctx.$slots,"default");}var Collection=/* @__PURE__ */_export_sfc$1(_sfc_main$B,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);var _sfc_main$A={name:"ElCollectionItem",inheritAttrs:false};function _sfc_render$f(_ctx,_cache,$props,$setup,$data,$options){return renderSlot(_ctx.$slots,"default");}var CollectionItem=/* @__PURE__ */_export_sfc$1(_sfc_main$A,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);var COLLECTION_ITEM_SIGN="data-el-collection-item";var createCollectionWithScope=function createCollectionWithScope(name){var COLLECTION_NAME="El".concat(name,"Collection");var COLLECTION_ITEM_NAME="".concat(COLLECTION_NAME,"Item");var COLLECTION_INJECTION_KEY=Symbol(COLLECTION_NAME);var COLLECTION_ITEM_INJECTION_KEY=Symbol(COLLECTION_ITEM_NAME);var ElCollection=_objectSpread(_objectSpread({},Collection),{},{name:COLLECTION_NAME,setup:function setup(){var collectionRef=ref(null);var itemMap=/* @__PURE__ */new Map();var getItems=function getItems(){var collectionEl=unref(collectionRef);if(!collectionEl)return[];var orderedNodes=Array.from(collectionEl.querySelectorAll("[".concat(COLLECTION_ITEM_SIGN,"]")));var items=_toConsumableArray2(itemMap.values());return items.sort(function(a,b){return orderedNodes.indexOf(a.ref)-orderedNodes.indexOf(b.ref);});};provide(COLLECTION_INJECTION_KEY,{itemMap:itemMap,getItems:getItems,collectionRef:collectionRef});}});var ElCollectionItem=_objectSpread(_objectSpread({},CollectionItem),{},{name:COLLECTION_ITEM_NAME,setup:function setup(_,_ref136){var attrs=_ref136.attrs;var collectionItemRef=ref(null);var collectionInjection=inject(COLLECTION_INJECTION_KEY,void 0);provide(COLLECTION_ITEM_INJECTION_KEY,{collectionItemRef:collectionItemRef});onMounted(function(){var collectionItemEl=unref(collectionItemRef);if(collectionItemEl){collectionInjection.itemMap.set(collectionItemEl,_objectSpread({ref:collectionItemEl},attrs));}});onBeforeUnmount(function(){var collectionItemEl=unref(collectionItemRef);collectionInjection.itemMap.delete(collectionItemEl);});}});return{COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY,ElCollection:ElCollection,ElCollectionItem:ElCollectionItem};};var rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function});var _createCollectionWith=createCollectionWithScope("RovingFocusGroup"),ElCollection$1=_createCollectionWith.ElCollection,ElCollectionItem$1=_createCollectionWith.ElCollectionItem,COLLECTION_INJECTION_KEY$1=_createCollectionWith.COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY$1=_createCollectionWith.COLLECTION_ITEM_INJECTION_KEY;var ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup");var ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem");var MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};var getDirectionAwareKey=function getDirectionAwareKey(key,dir){if(dir!=="rtl")return key;switch(key){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return key;}};var getFocusIntent=function getFocusIntent(event,orientation,dir){var key=getDirectionAwareKey(event.key,dir);if(orientation==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(key))return void 0;if(orientation==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(key))return void 0;return MAP_KEY_TO_FOCUS_INTENT[key];};var reorderArray=function reorderArray(array,atIdx){return array.map(function(_,idx){return array[(idx+atIdx)%array.length];});};var focusFirst=function focusFirst(elements){var _document=document,prevActive=_document.activeElement;var _iterator13=_createForOfIteratorHelper(elements),_step14;try{for(_iterator13.s();!(_step14=_iterator13.n()).done;){var element=_step14.value;if(element===prevActive)return;element.focus();if(prevActive!==document.activeElement)return;}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}};var CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange";var ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus";var EVT_OPTS={bubbles:false,cancelable:true};var _sfc_main$z=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:false,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup:function setup(props,_ref137){var emit=_ref137.emit;var _a;var currentTabbedId=ref((_a=props.currentTabId||props.defaultCurrentTabId)!=null?_a:null);var isBackingOut=ref(false);var isClickFocus=ref(false);var rovingFocusGroupRef=ref(null);var _inject11=inject(COLLECTION_INJECTION_KEY$1,void 0),getItems=_inject11.getItems;var rovingFocusGroupRootStyle=computed(function(){return[{outline:"none"},props.style];});var onItemFocus=function onItemFocus(tabbedId){emit(CURRENT_TAB_ID_CHANGE_EVT,tabbedId);};var onItemShiftTab=function onItemShiftTab(){isBackingOut.value=true;};var onMousedown=composeEventHandlers(function(e){var _a2;(_a2=props.onMousedown)==null?void 0:_a2.call(props,e);},function(){isClickFocus.value=true;});var onFocus=composeEventHandlers(function(e){var _a2;(_a2=props.onFocus)==null?void 0:_a2.call(props,e);},function(e){var isKeyboardFocus=!unref(isClickFocus);var target=e.target,currentTarget=e.currentTarget;if(target===currentTarget&&isKeyboardFocus&&!unref(isBackingOut)){var entryFocusEvt=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);currentTarget==null?void 0:currentTarget.dispatchEvent(entryFocusEvt);if(!entryFocusEvt.defaultPrevented){var items=getItems().filter(function(item){return item.focusable;});var activeItem=items.find(function(item){return item.active;});var currentItem=items.find(function(item){return item.id===unref(currentTabbedId);});var candidates=[activeItem,currentItem].concat(_toConsumableArray2(items)).filter(Boolean);var candidateNodes=candidates.map(function(item){return item.ref;});focusFirst(candidateNodes);}}isClickFocus.value=false;});var onBlur=composeEventHandlers(function(e){var _a2;(_a2=props.onBlur)==null?void 0:_a2.call(props,e);},function(){isBackingOut.value=false;});var handleEntryFocus=function handleEntryFocus(){for(var _len16=arguments.length,args=new Array(_len16),_key23=0;_key23<_len16;_key23++){args[_key23]=arguments[_key23];}emit.apply(void 0,["entryFocus"].concat(args));};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(currentTabbedId),loop:toRef(props,"loop"),tabIndex:computed(function(){return unref(isBackingOut)?-1:0;}),rovingFocusGroupRef:rovingFocusGroupRef,rovingFocusGroupRootStyle:rovingFocusGroupRootStyle,orientation:toRef(props,"orientation"),dir:toRef(props,"dir"),onItemFocus:onItemFocus,onItemShiftTab:onItemShiftTab,onBlur:onBlur,onFocus:onFocus,onMousedown:onMousedown});watch(function(){return props.currentTabId;},function(val){currentTabbedId.value=val!=null?val:null;});onMounted(function(){var rovingFocusGroupEl=unref(rovingFocusGroupRef);on$1(rovingFocusGroupEl,ENTRY_FOCUS_EVT,handleEntryFocus);});onBeforeUnmount(function(){var rovingFocusGroupEl=unref(rovingFocusGroupRef);off(rovingFocusGroupEl,ENTRY_FOCUS_EVT,handleEntryFocus);});}});function _sfc_render$e(_ctx,_cache,$props,$setup,$data,$options){return renderSlot(_ctx.$slots,"default");}var ElRovingFocusGroupImpl=/* @__PURE__ */_export_sfc$1(_sfc_main$z,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);var _sfc_main$y=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl:ElRovingFocusGroupImpl}});function _sfc_render$d(_ctx,_cache,$props,$setup,$data,$options){var _component_el_roving_focus_group_impl=resolveComponent("el-roving-focus-group-impl");var _component_el_focus_group_collection=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(_component_el_focus_group_collection,null,{default:withCtx(function(){return[createVNode(_component_el_roving_focus_group_impl,normalizeProps(guardReactiveProps(_ctx.$attrs)),{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},16)];}),_:3});}var ElRovingFocusGroup=/* @__PURE__ */_export_sfc$1(_sfc_main$y,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);var _sfc_main$x=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:true},active:{type:Boolean,default:false}},emits:["mousedown","focus","keydown"],setup:function setup(props,_ref138){var emit=_ref138.emit;var _inject12=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),currentTabbedId=_inject12.currentTabbedId,loop=_inject12.loop,onItemFocus=_inject12.onItemFocus,onItemShiftTab=_inject12.onItemShiftTab;var _inject13=inject(COLLECTION_INJECTION_KEY$1,void 0),getItems=_inject13.getItems;var id=useId();var rovingFocusGroupItemRef=ref(null);var handleMousedown=composeEventHandlers(function(e){emit("mousedown",e);},function(e){if(!props.focusable){e.preventDefault();}else{onItemFocus(unref(id));}});var handleFocus=composeEventHandlers(function(e){emit("focus",e);},function(){onItemFocus(unref(id));});var handleKeydown=composeEventHandlers(function(e){emit("keydown",e);},function(e){var key=e.key,shiftKey=e.shiftKey,target=e.target,currentTarget=e.currentTarget;if(key===EVENT_CODE.tab&&shiftKey){onItemShiftTab();return;}if(target!==currentTarget)return;var focusIntent=getFocusIntent(e);if(focusIntent){e.preventDefault();var items=getItems().filter(function(item){return item.focusable;});var elements=items.map(function(item){return item.ref;});switch(focusIntent){case"last":{elements.reverse();break;}case"prev":case"next":{if(focusIntent==="prev"){elements.reverse();}var currentIdx=elements.indexOf(currentTarget);elements=loop.value?reorderArray(elements,currentIdx+1):elements.slice(currentIdx+1);break;}}nextTick(function(){focusFirst(elements);});}});var isCurrentTab=computed(function(){return currentTabbedId.value===unref(id);});provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:rovingFocusGroupItemRef,tabIndex:computed(function(){return unref(isCurrentTab)?0:-1;}),handleMousedown:handleMousedown,handleFocus:handleFocus,handleKeydown:handleKeydown});return{id:id,handleKeydown:handleKeydown,handleFocus:handleFocus,handleMousedown:handleMousedown};}});function _sfc_render$c(_ctx,_cache,$props,$setup,$data,$options){var _component_el_roving_focus_collection_item=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(_component_el_roving_focus_collection_item,{id:_ctx.id,focusable:_ctx.focusable,active:_ctx.active},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["id","focusable","active"]);}var ElRovingFocusItem=/* @__PURE__ */_export_sfc$1(_sfc_main$x,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);var dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,effect:_objectSpread(_objectSpread({},useTooltipContentProps.effect),{},{default:"light"}),type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:function _default(){return{};}},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:true},loop:{type:Boolean,default:true},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:false},role:{type:String,default:"menu"},buttonProps:{type:definePropType(Object)}});var dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:function _default(){return{};}},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}});var dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}});var FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home];var LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end];var FIRST_LAST_KEYS=[].concat(FIRST_KEYS,LAST_KEYS);var _createCollectionWith2=createCollectionWithScope("Dropdown"),ElCollection=_createCollectionWith2.ElCollection,ElCollectionItem=_createCollectionWith2.ElCollectionItem,COLLECTION_INJECTION_KEY=_createCollectionWith2.COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY=_createCollectionWith2.COLLECTION_ITEM_INJECTION_KEY;var DROPDOWN_INJECTION_KEY=Symbol("elDropdown");var ElButtonGroup=ElButton.ButtonGroup;var _sfc_main$w=defineComponent({name:"ElDropdown",components:{ElButton:ElButton,ElButtonGroup:ElButtonGroup,ElScrollbar:ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip:ElTooltip,ElRovingFocusGroup:ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon:ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup:function setup(props,_ref139){var emit=_ref139.emit;var _instance=getCurrentInstance();var ns=useNamespace("dropdown");var _useLocale12=useLocale(),t=_useLocale12.t;var triggeringElementRef=ref();var referenceElementRef=ref();var popperRef=ref(null);var contentRef=ref(null);var scrollbar=ref(null);var currentTabId=ref(null);var isUsingKeyboard=ref(false);var triggerKeys=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down];var wrapStyle=computed(function(){return{maxHeight:addUnit(props.maxHeight)};});var dropdownTriggerKls=computed(function(){return[ns.m(dropdownSize.value)];});var defaultTriggerId=useId().value;var triggerId=computed(function(){return props.id||defaultTriggerId;});function handleClick(){handleClose();}function handleClose(){var _a;(_a=popperRef.value)==null?void 0:_a.onClose();}function handleOpen(){var _a;(_a=popperRef.value)==null?void 0:_a.onOpen();}var dropdownSize=useSize();function commandHandler(){for(var _len17=arguments.length,args=new Array(_len17),_key24=0;_key24<_len17;_key24++){args[_key24]=arguments[_key24];}emit.apply(void 0,["command"].concat(args));}function onItemEnter(){}function onItemLeave(){var contentEl=unref(contentRef);contentEl==null?void 0:contentEl.focus();currentTabId.value=null;}function handleCurrentTabIdChange(id){currentTabId.value=id;}function handleEntryFocus(e){if(!isUsingKeyboard.value){e.preventDefault();e.stopImmediatePropagation();}}function handleShowTooltip(event){if((event==null?void 0:event.type)==="keydown"){contentRef.value.focus();}emit("visible-change",true);}function handleHideTooltip(){emit("visible-change",false);}provide(DROPDOWN_INJECTION_KEY,{contentRef:contentRef,role:computed(function(){return props.role;}),triggerId:triggerId,isUsingKeyboard:isUsingKeyboard,onItemEnter:onItemEnter,onItemLeave:onItemLeave});provide("elDropdown",{instance:_instance,dropdownSize:dropdownSize,handleClick:handleClick,commandHandler:commandHandler,trigger:toRef(props,"trigger"),hideOnClick:toRef(props,"hideOnClick")});var onFocusAfterTrapped=function onFocusAfterTrapped(e){var _a,_b;e.preventDefault();(_b=(_a=contentRef.value)==null?void 0:_a.focus)==null?void 0:_b.call(_a,{preventScroll:true});};var handlerMainButtonClick=function handlerMainButtonClick(event){emit("click",event);};return{t:t,ns:ns,scrollbar:scrollbar,wrapStyle:wrapStyle,dropdownTriggerKls:dropdownTriggerKls,dropdownSize:dropdownSize,triggerId:triggerId,triggerKeys:triggerKeys,currentTabId:currentTabId,handleCurrentTabIdChange:handleCurrentTabIdChange,handlerMainButtonClick:handlerMainButtonClick,handleEntryFocus:handleEntryFocus,handleClose:handleClose,handleOpen:handleOpen,handleShowTooltip:handleShowTooltip,handleHideTooltip:handleHideTooltip,onFocusAfterTrapped:onFocusAfterTrapped,popperRef:popperRef,contentRef:contentRef,triggeringElementRef:triggeringElementRef,referenceElementRef:referenceElementRef};}});function _sfc_render$b(_ctx,_cache,$props,$setup,$data,$options){var _a;var _component_el_dropdown_collection=resolveComponent("el-dropdown-collection");var _component_el_roving_focus_group=resolveComponent("el-roving-focus-group");var _component_el_scrollbar=resolveComponent("el-scrollbar");var _component_el_only_child=resolveComponent("el-only-child");var _component_el_tooltip=resolveComponent("el-tooltip");var _component_el_button=resolveComponent("el-button");var _component_arrow_down=resolveComponent("arrow-down");var _component_el_icon=resolveComponent("el-icon");var _component_el_button_group=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([_ctx.ns.b(),_ctx.ns.is("disabled",_ctx.disabled)])},[createVNode(_component_el_tooltip,{ref:"popperRef",role:_ctx.role,effect:_ctx.effect,"fallback-placements":["bottom","top"],"popper-options":_ctx.popperOptions,"gpu-acceleration":false,"hide-after":_ctx.trigger==="hover"?_ctx.hideTimeout:0,"manual-mode":true,placement:_ctx.placement,"popper-class":[_ctx.ns.e("popper"),_ctx.popperClass],"reference-element":(_a=_ctx.referenceElementRef)==null?void 0:_a.$el,trigger:_ctx.trigger,"trigger-keys":_ctx.triggerKeys,"trigger-target-el":_ctx.contentRef,"show-after":_ctx.trigger==="hover"?_ctx.showTimeout:0,"stop-popper-mouse-event":false,"virtual-ref":_ctx.triggeringElementRef,"virtual-triggering":_ctx.splitButton,disabled:_ctx.disabled,transition:"".concat(_ctx.ns.namespace.value,"-zoom-in-top"),teleported:"",pure:"",persistent:"",onShow:_ctx.handleShowTooltip,onHide:_ctx.handleHideTooltip},createSlots({content:withCtx(function(){return[createVNode(_component_el_scrollbar,{ref:"scrollbar","wrap-style":_ctx.wrapStyle,tag:"div","view-class":_ctx.ns.e("list")},{default:withCtx(function(){return[createVNode(_component_el_roving_focus_group,{loop:_ctx.loop,"current-tab-id":_ctx.currentTabId,orientation:"horizontal",onCurrentTabIdChange:_ctx.handleCurrentTabIdChange,onEntryFocus:_ctx.handleEntryFocus},{default:withCtx(function(){return[createVNode(_component_el_dropdown_collection,null,{default:withCtx(function(){return[renderSlot(_ctx.$slots,"dropdown")];}),_:3})];}),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])];}),_:3},8,["wrap-style","view-class"])];}),_:2},[!_ctx.splitButton?{name:"default",fn:withCtx(function(){return[createVNode(_component_el_only_child,{id:_ctx.triggerId,role:"button",tabindex:_ctx.tabindex},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["id","tabindex"])];})}:void 0]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onShow","onHide"]),_ctx.splitButton?(openBlock(),createBlock(_component_el_button_group,{key:0},{default:withCtx(function(){return[createVNode(_component_el_button,mergeProps({ref:"referenceElementRef"},_ctx.buttonProps,{size:_ctx.dropdownSize,type:_ctx.type,disabled:_ctx.disabled,tabindex:_ctx.tabindex,onClick:_ctx.handlerMainButtonClick}),{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(_component_el_button,mergeProps({id:_ctx.triggerId,ref:"triggeringElementRef"},_ctx.buttonProps,{role:"button",size:_ctx.dropdownSize,type:_ctx.type,class:_ctx.ns.e("caret-button"),disabled:_ctx.disabled,tabindex:_ctx.tabindex,"aria-label":_ctx.t("el.dropdown.toggleDropdown")}),{default:withCtx(function(){return[createVNode(_component_el_icon,{class:normalizeClass(_ctx.ns.e("icon"))},{default:withCtx(function(){return[createVNode(_component_arrow_down)];}),_:1},8,["class"])];}),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])];}),_:3})):createCommentVNode("v-if",true)],2);}var Dropdown=/* @__PURE__ */_export_sfc$1(_sfc_main$w,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);var _sfc_main$v=defineComponent({name:"DropdownItemImpl",components:{ElIcon:ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup:function setup(_,_ref140){var emit=_ref140.emit;var ns=useNamespace("dropdown");var _inject14=inject(DROPDOWN_INJECTION_KEY,void 0),menuRole=_inject14.role;var _inject15=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),dropdownCollectionItemRef=_inject15.collectionItemRef;var _inject16=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),rovingFocusCollectionItemRef=_inject16.collectionItemRef;var _inject17=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),rovingFocusGroupItemRef=_inject17.rovingFocusGroupItemRef,tabIndex=_inject17.tabIndex,handleFocus=_inject17.handleFocus,handleItemKeydown=_inject17.handleKeydown,handleMousedown=_inject17.handleMousedown;var itemRef=composeRefs(dropdownCollectionItemRef,rovingFocusCollectionItemRef,rovingFocusGroupItemRef);var role=computed(function(){if(menuRole.value==="menu"){return"menuitem";}else if(menuRole.value==="navigation"){return"link";}return"button";});var handleKeydown=composeEventHandlers(function(e){var code=e.code;if(code===EVENT_CODE.enter||code===EVENT_CODE.space){e.preventDefault();e.stopImmediatePropagation();emit("clickimpl",e);return true;}},handleItemKeydown);return{ns:ns,itemRef:itemRef,dataset:_defineProperty2({},COLLECTION_ITEM_SIGN,""),role:role,tabIndex:tabIndex,handleFocus:handleFocus,handleKeydown:handleKeydown,handleMousedown:handleMousedown};}});var _hoisted_1$j=["aria-disabled","tabindex","role"];function _sfc_render$a(_ctx,_cache,$props,$setup,$data,$options){var _component_el_icon=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[_ctx.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:_ctx.ns.bem("menu","item","divided")},_ctx.$attrs),null,16)):createCommentVNode("v-if",true),createBaseVNode("li",mergeProps({ref:_ctx.itemRef},_objectSpread(_objectSpread({},_ctx.dataset),_ctx.$attrs),{"aria-disabled":_ctx.disabled,class:[_ctx.ns.be("menu","item"),_ctx.ns.is("disabled",_ctx.disabled)],tabindex:_ctx.tabIndex,role:_ctx.role,onClick:_cache[0]||(_cache[0]=function(e){return _ctx.$emit("clickimpl",e);}),onFocus:_cache[1]||(_cache[1]=function(){return _ctx.handleFocus&&_ctx.handleFocus.apply(_ctx,arguments);}),onKeydown:_cache[2]||(_cache[2]=function(){return _ctx.handleKeydown&&_ctx.handleKeydown.apply(_ctx,arguments);}),onMousedown:_cache[3]||(_cache[3]=function(){return _ctx.handleMousedown&&_ctx.handleMousedown.apply(_ctx,arguments);}),onPointermove:_cache[4]||(_cache[4]=function(e){return _ctx.$emit("pointermove",e);}),onPointerleave:_cache[5]||(_cache[5]=function(e){return _ctx.$emit("pointerleave",e);})}),[_ctx.icon?(openBlock(),createBlock(_component_el_icon,{key:0},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.icon)))];}),_:1})):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"default")],16,_hoisted_1$j)],64);}var ElDropdownItemImpl=/* @__PURE__ */_export_sfc$1(_sfc_main$v,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);var useDropdown=function useDropdown(){var elDropdown=inject("elDropdown",{});var _elDropdownSize=computed(function(){return elDropdown==null?void 0:elDropdown.dropdownSize;});return{elDropdown:elDropdown,_elDropdownSize:_elDropdownSize};};var _sfc_main$u=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem:ElRovingFocusItem,ElDropdownItemImpl:ElDropdownItemImpl},inheritAttrs:false,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup:function setup(props,_ref141){var emit=_ref141.emit,attrs=_ref141.attrs;var _useDropdown=useDropdown(),elDropdown=_useDropdown.elDropdown;var _instance=getCurrentInstance();var itemRef=ref(null);var textContent=computed(function(){var _a,_b;return(_b=(_a=unref(itemRef))==null?void 0:_a.textContent)!=null?_b:"";});var _inject18=inject(DROPDOWN_INJECTION_KEY,void 0),onItemEnter=_inject18.onItemEnter,onItemLeave=_inject18.onItemLeave;var handlePointerMove=composeEventHandlers(function(e){emit("pointermove",e);return e.defaultPrevented;},whenMouse(function(e){var _a;if(props.disabled){onItemLeave(e);}else{onItemEnter(e);if(!e.defaultPrevented){(_a=e.currentTarget)==null?void 0:_a.focus();}}}));var handlePointerLeave=composeEventHandlers(function(e){emit("pointerleave",e);return e.defaultPrevented;},whenMouse(function(e){onItemLeave(e);}));var handleClick=composeEventHandlers(function(e){emit("click",e);return e.type!=="keydown"&&e.defaultPrevented;},function(e){var _a,_b,_c;if(props.disabled){e.stopImmediatePropagation();return;}if((_a=elDropdown==null?void 0:elDropdown.hideOnClick)==null?void 0:_a.value){(_b=elDropdown.handleClick)==null?void 0:_b.call(elDropdown);}(_c=elDropdown.commandHandler)==null?void 0:_c.call(elDropdown,props.command,_instance,e);});var propsAndAttrs=computed(function(){return _objectSpread(_objectSpread({},props),attrs);});return{handleClick:handleClick,handlePointerMove:handlePointerMove,handlePointerLeave:handlePointerLeave,textContent:textContent,propsAndAttrs:propsAndAttrs};}});function _sfc_render$9(_ctx,_cache,$props,$setup,$data,$options){var _a;var _component_el_dropdown_item_impl=resolveComponent("el-dropdown-item-impl");var _component_el_roving_focus_item=resolveComponent("el-roving-focus-item");var _component_el_dropdown_collection_item=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(_component_el_dropdown_collection_item,{disabled:_ctx.disabled,"text-value":(_a=_ctx.textValue)!=null?_a:_ctx.textContent},{default:withCtx(function(){return[createVNode(_component_el_roving_focus_item,{focusable:!_ctx.disabled},{default:withCtx(function(){return[createVNode(_component_el_dropdown_item_impl,mergeProps(_ctx.propsAndAttrs,{onPointerleave:_ctx.handlePointerLeave,onPointermove:_ctx.handlePointerMove,onClickimpl:_ctx.handleClick}),{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},16,["onPointerleave","onPointermove","onClickimpl"])];}),_:3},8,["focusable"])];}),_:3},8,["disabled","text-value"]);}var DropdownItem=/* @__PURE__ */_export_sfc$1(_sfc_main$u,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);var _sfc_main$t=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup:function setup(props){var ns=useNamespace("dropdown");var _useDropdown2=useDropdown(),_elDropdownSize=_useDropdown2._elDropdownSize;var size=_elDropdownSize.value;var _inject19=inject(FOCUS_TRAP_INJECTION_KEY,void 0),focusTrapRef=_inject19.focusTrapRef,onKeydown=_inject19.onKeydown;var _inject20=inject(DROPDOWN_INJECTION_KEY,void 0),contentRef=_inject20.contentRef,role=_inject20.role,triggerId=_inject20.triggerId;var _inject21=inject(COLLECTION_INJECTION_KEY,void 0),dropdownCollectionRef=_inject21.collectionRef,getItems=_inject21.getItems;var _inject22=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),rovingFocusGroupRef=_inject22.rovingFocusGroupRef,rovingFocusGroupRootStyle=_inject22.rovingFocusGroupRootStyle,tabIndex=_inject22.tabIndex,onBlur=_inject22.onBlur,onFocus=_inject22.onFocus,onMousedown=_inject22.onMousedown;var _inject23=inject(COLLECTION_INJECTION_KEY$1,void 0),rovingFocusGroupCollectionRef=_inject23.collectionRef;var dropdownKls=computed(function(){return[ns.b("menu"),ns.bm("menu",size==null?void 0:size.value)];});var dropdownListWrapperRef=composeRefs(contentRef,dropdownCollectionRef,focusTrapRef,rovingFocusGroupRef,rovingFocusGroupCollectionRef);var composedKeydown=composeEventHandlers(function(e){var _a;(_a=props.onKeydown)==null?void 0:_a.call(props,e);},function(e){var currentTarget=e.currentTarget,code=e.code,target=e.target;currentTarget.contains(target);if(EVENT_CODE.tab===code){e.stopImmediatePropagation();}e.preventDefault();if(target!==unref(contentRef))return;if(!FIRST_LAST_KEYS.includes(code))return;var items=getItems().filter(function(item){return!item.disabled;});var targets=items.map(function(item){return item.ref;});if(LAST_KEYS.includes(code)){targets.reverse();}focusFirst(targets);});var handleKeydown=function handleKeydown(e){composedKeydown(e);onKeydown(e);};return{size:size,rovingFocusGroupRootStyle:rovingFocusGroupRootStyle,tabIndex:tabIndex,dropdownKls:dropdownKls,role:role,triggerId:triggerId,dropdownListWrapperRef:dropdownListWrapperRef,handleKeydown:handleKeydown,onBlur:onBlur,onFocus:onFocus,onMousedown:onMousedown};}});var _hoisted_1$i=["role","aria-labelledby"];function _sfc_render$8(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("ul",{ref:_ctx.dropdownListWrapperRef,class:normalizeClass(_ctx.dropdownKls),style:normalizeStyle(_ctx.rovingFocusGroupRootStyle),tabindex:-1,role:_ctx.role,"aria-labelledby":_ctx.triggerId,onBlur:_cache[0]||(_cache[0]=function(){return _ctx.onBlur&&_ctx.onBlur.apply(_ctx,arguments);}),onFocus:_cache[1]||(_cache[1]=function(){return _ctx.onFocus&&_ctx.onFocus.apply(_ctx,arguments);}),onKeydown:_cache[2]||(_cache[2]=function(){return _ctx.handleKeydown&&_ctx.handleKeydown.apply(_ctx,arguments);}),onMousedown:_cache[3]||(_cache[3]=function(){return _ctx.onMousedown&&_ctx.onMousedown.apply(_ctx,arguments);})},[renderSlot(_ctx.$slots,"default")],46,_hoisted_1$i);}var DropdownMenu=/* @__PURE__ */_export_sfc$1(_sfc_main$t,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);var ElDropdown=exports('g',withInstall(Dropdown,{DropdownItem:DropdownItem,DropdownMenu:DropdownMenu}));var ElDropdownItem=exports('i',withNoopInstall(DropdownItem));var ElDropdownMenu=exports('h',withNoopInstall(DropdownMenu));var formProps=buildProps({model:Object,rules:{type:definePropType(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:true},size:{type:String,values:componentSizes},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:true},hideRequiredAsterisk:{type:Boolean,default:false},scrollToError:Boolean});var formEmits={validate:function validate(prop,isValid,message){return(isArray$7(prop)||isString$2(prop))&&isBoolean$1(isValid)&&isString$2(message);}};function useFormLabelWidth(){var potentialLabelWidthArr=ref([]);var autoLabelWidth=computed(function(){if(!potentialLabelWidthArr.value.length)return"0";var max=Math.max.apply(Math,_toConsumableArray2(potentialLabelWidthArr.value));return max?"".concat(max,"px"):"";});function getLabelWidthIndex(width){var index=potentialLabelWidthArr.value.indexOf(width);return index;}function registerLabelWidth(val,oldVal){if(val&&oldVal){var index=getLabelWidthIndex(oldVal);potentialLabelWidthArr.value.splice(index,1,val);}else if(val){potentialLabelWidthArr.value.push(val);}}function deregisterLabelWidth(val){var index=getLabelWidthIndex(val);if(index>-1){potentialLabelWidthArr.value.splice(index,1);}}return{autoLabelWidth:autoLabelWidth,registerLabelWidth:registerLabelWidth,deregisterLabelWidth:deregisterLabelWidth};}var filterFields=function filterFields(fields,props){var normalized=castArray$1(props);return normalized.length>0?fields.filter(function(field){return field.prop&&normalized.includes(field.prop);}):fields;};var __default__$k={name:"ElForm"};var _sfc_main$s=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$k),{},{props:formProps,emits:formEmits,setup:function setup(__props,_ref142){var expose=_ref142.expose,emit=_ref142.emit;var props=__props;var fields=[];var formSize=useSize();var ns=useNamespace("form");var formClasses=computed(function(){var _ref143;var labelPosition=props.labelPosition,inline=props.inline;return[ns.b(),ns.m(formSize.value||"default"),(_ref143={},_defineProperty2(_ref143,ns.m("label-".concat(labelPosition)),labelPosition),_defineProperty2(_ref143,ns.m("inline"),inline),_ref143)];});var addField=function addField(field){fields.push(field);};var removeField=function removeField(field){if(field.prop){fields.splice(fields.indexOf(field),1);}};var resetFields=function resetFields(){var properties=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];if(!props.model){return;}filterFields(fields,properties).forEach(function(field){return field.resetField();});};var clearValidate=function clearValidate(){var props2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];filterFields(fields,props2).forEach(function(field){return field.clearValidate();});};var isValidatable=computed(function(){var hasModel=!!props.model;return hasModel;});var obtainValidateFields=function obtainValidateFields(props2){if(fields.length===0)return[];var filteredFields=filterFields(fields,props2);if(!filteredFields.length){return[];}return filteredFields;};var validate=/*#__PURE__*/function(){var _ref144=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee20(callback){return regeneratorRuntime.wrap(function _callee20$(_context20){while(1){switch(_context20.prev=_context20.next){case 0:return _context20.abrupt("return",validateField(void 0,callback));case 1:case"end":return _context20.stop();}}},_callee20);}));return function validate(_x8){return _ref144.apply(this,arguments);};}();var doValidateField=/*#__PURE__*/function(){var _ref145=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee21(){var props2,fields2,validationErrors,_iterator14,_step15,field,_args21=arguments;return regeneratorRuntime.wrap(function _callee21$(_context21){while(1){switch(_context21.prev=_context21.next){case 0:props2=_args21.length>0&&_args21[0]!==undefined?_args21[0]:[];if(isValidatable.value){_context21.next=3;break;}return _context21.abrupt("return",false);case 3:fields2=obtainValidateFields(props2);if(!(fields2.length===0)){_context21.next=6;break;}return _context21.abrupt("return",true);case 6:validationErrors={};_iterator14=_createForOfIteratorHelper(fields2);_context21.prev=8;_iterator14.s();case 10:if((_step15=_iterator14.n()).done){_context21.next=22;break;}field=_step15.value;_context21.prev=12;_context21.next=15;return field.validate("");case 15:_context21.next=20;break;case 17:_context21.prev=17;_context21.t0=_context21["catch"](12);validationErrors=_objectSpread(_objectSpread({},validationErrors),_context21.t0);case 20:_context21.next=10;break;case 22:_context21.next=27;break;case 24:_context21.prev=24;_context21.t1=_context21["catch"](8);_iterator14.e(_context21.t1);case 27:_context21.prev=27;_iterator14.f();return _context21.finish(27);case 30:if(!(Object.keys(validationErrors).length===0)){_context21.next=32;break;}return _context21.abrupt("return",true);case 32:return _context21.abrupt("return",Promise.reject(validationErrors));case 33:case"end":return _context21.stop();}}},_callee21,null,[[8,24,27,30],[12,17]]);}));return function doValidateField(){return _ref145.apply(this,arguments);};}();var validateField=/*#__PURE__*/function(){var _ref146=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee22(){var modelProps,callback,shouldThrow,result,invalidFields,_args22=arguments;return regeneratorRuntime.wrap(function _callee22$(_context22){while(1){switch(_context22.prev=_context22.next){case 0:modelProps=_args22.length>0&&_args22[0]!==undefined?_args22[0]:[];callback=_args22.length>1?_args22[1]:undefined;shouldThrow=!isFunction$1(callback);_context22.prev=3;_context22.next=6;return doValidateField(modelProps);case 6:result=_context22.sent;if(result===true){callback==null?void 0:callback(result);}return _context22.abrupt("return",result);case 11:_context22.prev=11;_context22.t0=_context22["catch"](3);invalidFields=_context22.t0;if(props.scrollToError){scrollToField(Object.keys(invalidFields)[0]);}callback==null?void 0:callback(false,invalidFields);return _context22.abrupt("return",shouldThrow&&Promise.reject(invalidFields));case 17:case"end":return _context22.stop();}}},_callee22,null,[[3,11]]);}));return function validateField(){return _ref146.apply(this,arguments);};}();var scrollToField=function scrollToField(prop){var _a;var field=filterFields(fields,prop)[0];if(field){(_a=field.$el)==null?void 0:_a.scrollIntoView();}};watch(function(){return props.rules;},function(){if(props.validateOnRuleChange){validate().catch(function(err){return debugWarn();});}},{deep:true});provide(formContextKey,reactive(_objectSpread(_objectSpread({},toRefs(props)),{},{emit:emit,resetFields:resetFields,clearValidate:clearValidate,validateField:validateField,addField:addField,removeField:removeField},useFormLabelWidth())));expose({validate:validate,validateField:validateField,resetFields:resetFields,clearValidate:clearValidate,scrollToField:scrollToField});return function(_ctx,_cache){return openBlock(),createElementBlock("form",{class:normalizeClass(unref(formClasses))},[renderSlot(_ctx.$slots,"default")],2);};}}));var Form=/* @__PURE__ */_export_sfc$1(_sfc_main$s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;_setPrototypeOf$1(subClass,superClass);}function _getPrototypeOf$1(o){_getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf$1(o);}function _setPrototypeOf$1(o,p){_setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf$1(o,p);}function _isNativeReflectConstruct$1(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _construct$1(Parent,args,Class){if(_isNativeReflectConstruct$1()){_construct$1=Reflect.construct.bind();}else{_construct$1=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf$1(instance,Class.prototype);return instance;};}return _construct$1.apply(null,arguments);}function _isNativeFunction$1(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _wrapNativeSuper$1(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper$1=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction$1(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct$1(Class,arguments,_getPrototypeOf$1(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf$1(Wrapper,Class);};return _wrapNativeSuper$1(Class);}/* eslint no-console:0 */var formatRegExp=/%[sdj%]/g;var warning=function warning(){};// don't print warning message when in production env or node runtime
  2635. if(typeof process!=='undefined'&&process.env&&"production"!=='production'&&typeof window!=='undefined'&&typeof document!=='undefined'){warning=function warning(type,errors){if(typeof console!=='undefined'&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING==='undefined'){if(errors.every(function(e){return typeof e==='string';})){console.warn(type,errors);}}};}function convertFieldsError(errors){if(!errors||!errors.length)return null;var fields={};errors.forEach(function(error){var field=error.field;fields[field]=fields[field]||[];fields[field].push(error);});return fields;}function format(template){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}var i=0;var len=args.length;if(typeof template==='function'){return template.apply(null,args);}if(typeof template==='string'){var str=template.replace(formatRegExp,function(x){if(x==='%%'){return'%';}if(i>=len){return x;}switch(x){case'%s':return String(args[i++]);case'%d':return Number(args[i++]);case'%j':try{return JSON.stringify(args[i++]);}catch(_){return'[Circular]';}break;default:return x;}});return str;}return template;}function isNativeStringType(type){return type==='string'||type==='url'||type==='hex'||type==='email'||type==='date'||type==='pattern';}function isEmptyValue(value,type){if(value===undefined||value===null){return true;}if(type==='array'&&Array.isArray(value)&&!value.length){return true;}if(isNativeStringType(type)&&typeof value==='string'&&!value){return true;}return false;}function asyncParallelArray(arr,func,callback){var results=[];var total=0;var arrLength=arr.length;function count(errors){results.push.apply(results,errors||[]);total++;if(total===arrLength){callback(results);}}arr.forEach(function(a){func(a,count);});}function asyncSerialArray(arr,func,callback){var index=0;var arrLength=arr.length;function next(errors){if(errors&&errors.length){callback(errors);return;}var original=index;index=index+1;if(original<arrLength){func(arr[original],next);}else{callback([]);}}next([]);}function flattenObjArr(objArr){var ret=[];Object.keys(objArr).forEach(function(k){ret.push.apply(ret,objArr[k]||[]);});return ret;}var AsyncValidationError=/*#__PURE__*/function(_Error){_inheritsLoose(AsyncValidationError,_Error);function AsyncValidationError(errors,fields){var _this;_this=_Error.call(this,'Async Validation Error')||this;_this.errors=errors;_this.fields=fields;return _this;}return AsyncValidationError;}(/*#__PURE__*/_wrapNativeSuper$1(Error));function asyncMap(objArr,option,func,callback,source){if(option.first){var _pending=new Promise(function(resolve,reject){var next=function next(errors){callback(errors);return errors.length?reject(new AsyncValidationError(errors,convertFieldsError(errors))):resolve(source);};var flattenArr=flattenObjArr(objArr);asyncSerialArray(flattenArr,func,next);});_pending["catch"](function(e){return e;});return _pending;}var firstFields=option.firstFields===true?Object.keys(objArr):option.firstFields||[];var objArrKeys=Object.keys(objArr);var objArrLength=objArrKeys.length;var total=0;var results=[];var pending=new Promise(function(resolve,reject){var next=function next(errors){results.push.apply(results,errors);total++;if(total===objArrLength){callback(results);return results.length?reject(new AsyncValidationError(results,convertFieldsError(results))):resolve(source);}};if(!objArrKeys.length){callback(results);resolve(source);}objArrKeys.forEach(function(key){var arr=objArr[key];if(firstFields.indexOf(key)!==-1){asyncSerialArray(arr,func,next);}else{asyncParallelArray(arr,func,next);}});});pending["catch"](function(e){return e;});return pending;}function isErrorObj(obj){return!!(obj&&obj.message!==undefined);}function getValue(value,path){var v=value;for(var i=0;i<path.length;i++){if(v==undefined){return v;}v=v[path[i]];}return v;}function complementError(rule,source){return function(oe){var fieldValue;if(rule.fullFields){fieldValue=getValue(source,rule.fullFields);}else{fieldValue=source[oe.field||rule.fullField];}if(isErrorObj(oe)){oe.field=oe.field||rule.fullField;oe.fieldValue=fieldValue;return oe;}return{message:typeof oe==='function'?oe():oe,fieldValue:fieldValue,field:oe.field||rule.fullField};};}function deepMerge(target,source){if(source){for(var s in source){if(source.hasOwnProperty(s)){var value=source[s];if(_typeof2(value)==='object'&&_typeof2(target[s])==='object'){target[s]=_extends({},target[s],value);}else{target[s]=value;}}}}return target;}var required$1=function required(rule,value,source,errors,options,type){if(rule.required&&(!source.hasOwnProperty(rule.field)||isEmptyValue(value,type||rule.type))){errors.push(format(options.messages.required,rule.fullField));}};/**
  2636. * Rule for validating whitespace.
  2637. *
  2638. * @param rule The validation rule.
  2639. * @param value The value of the field on the source object.
  2640. * @param source The source object being validated.
  2641. * @param errors An array of errors that this rule may add
  2642. * validation errors to.
  2643. * @param options The validation options.
  2644. * @param options.messages The validation messages.
  2645. */var whitespace=function whitespace(rule,value,source,errors,options){if(/^\s+$/.test(value)||value===''){errors.push(format(options.messages.whitespace,rule.fullField));}};// https://github.com/kevva/url-regex/blob/master/index.js
  2646. var urlReg;var getUrlRegex=function getUrlRegex(){if(urlReg){return urlReg;}var word='[a-fA-F\\d:]';var b=function b(options){return options&&options.includeBoundaries?"(?:(?<=\\s|^)(?="+word+")|(?<="+word+")(?=\\s|$))":'';};var v4='(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}';var v6seg='[a-fA-F\\d]{1,4}';var v6=("\n(?:\n(?:"+v6seg+":){7}(?:"+v6seg+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+v6seg+":){6}(?:"+v4+"|:"+v6seg+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+v6seg+":){5}(?::"+v4+"|(?::"+v6seg+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+v6seg+":){4}(?:(?::"+v6seg+"){0,1}:"+v4+"|(?::"+v6seg+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+v6seg+":){3}(?:(?::"+v6seg+"){0,2}:"+v4+"|(?::"+v6seg+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+v6seg+":){2}(?:(?::"+v6seg+"){0,3}:"+v4+"|(?::"+v6seg+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+v6seg+":){1}(?:(?::"+v6seg+"){0,4}:"+v4+"|(?::"+v6seg+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+v6seg+"){0,5}:"+v4+"|(?::"+v6seg+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,'').replace(/\n/g,'').trim();// Pre-compile only the exact regexes because adding a global flag make regexes stateful
  2647. var v46Exact=new RegExp("(?:^"+v4+"$)|(?:^"+v6+"$)");var v4exact=new RegExp("^"+v4+"$");var v6exact=new RegExp("^"+v6+"$");var ip=function ip(options){return options&&options.exact?v46Exact:new RegExp("(?:"+b(options)+v4+b(options)+")|(?:"+b(options)+v6+b(options)+")",'g');};ip.v4=function(options){return options&&options.exact?v4exact:new RegExp(""+b(options)+v4+b(options),'g');};ip.v6=function(options){return options&&options.exact?v6exact:new RegExp(""+b(options)+v6+b(options),'g');};var protocol="(?:(?:[a-z]+:)?//)";var auth='(?:\\S+(?::\\S*)?@)?';var ipv4=ip.v4().source;var ipv6=ip.v6().source;var host="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";var domain="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";var tld="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";var port='(?::\\d{2,5})?';var path='(?:[/?#][^\\s"]*)?';var regex="(?:"+protocol+"|www\\.)"+auth+"(?:localhost|"+ipv4+"|"+ipv6+"|"+host+domain+tld+")"+port+path;urlReg=new RegExp("(?:^"+regex+"$)",'i');return urlReg;};/* eslint max-len:0 */var pattern$2={// http://emailregex.com/
  2648. email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,// url: new RegExp(
  2649. // '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
  2650. // 'i',
  2651. // ),
  2652. hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i};var types={integer:function integer(value){return types.number(value)&&parseInt(value,10)===value;},"float":function float(value){return types.number(value)&&!types.integer(value);},array:function array(value){return Array.isArray(value);},regexp:function regexp(value){if(value instanceof RegExp){return true;}try{return!!new RegExp(value);}catch(e){return false;}},date:function date(value){return typeof value.getTime==='function'&&typeof value.getMonth==='function'&&typeof value.getYear==='function'&&!isNaN(value.getTime());},number:function number(value){if(isNaN(value)){return false;}return typeof value==='number';},object:function object(value){return _typeof2(value)==='object'&&!types.array(value);},method:function method(value){return typeof value==='function';},email:function email(value){return typeof value==='string'&&value.length<=320&&!!value.match(pattern$2.email);},url:function url(value){return typeof value==='string'&&value.length<=2048&&!!value.match(getUrlRegex());},hex:function hex(value){return typeof value==='string'&&!!value.match(pattern$2.hex);}};var type$1=function type(rule,value,source,errors,options){if(rule.required&&value===undefined){required$1(rule,value,source,errors,options);return;}var custom=['integer','float','array','regexp','object','method','email','number','date','url','hex'];var ruleType=rule.type;if(custom.indexOf(ruleType)>-1){if(!types[ruleType](value)){errors.push(format(options.messages.types[ruleType],rule.fullField,rule.type));}// straight typeof check
  2653. }else if(ruleType&&_typeof2(value)!==rule.type){errors.push(format(options.messages.types[ruleType],rule.fullField,rule.type));}};var range=function range(rule,value,source,errors,options){var len=typeof rule.len==='number';var min=typeof rule.min==='number';var max=typeof rule.max==='number';// 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  2654. var spRegexp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var val=value;var key=null;var num=typeof value==='number';var str=typeof value==='string';var arr=Array.isArray(value);if(num){key='number';}else if(str){key='string';}else if(arr){key='array';}// if the value is not of a supported type for range validation
  2655. // the validation rule rule should use the
  2656. // type property to also test for a particular type
  2657. if(!key){return false;}if(arr){val=value.length;}if(str){// 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  2658. val=value.replace(spRegexp,'_').length;}if(len){if(val!==rule.len){errors.push(format(options.messages[key].len,rule.fullField,rule.len));}}else if(min&&!max&&val<rule.min){errors.push(format(options.messages[key].min,rule.fullField,rule.min));}else if(max&&!min&&val>rule.max){errors.push(format(options.messages[key].max,rule.fullField,rule.max));}else if(min&&max&&(val<rule.min||val>rule.max)){errors.push(format(options.messages[key].range,rule.fullField,rule.min,rule.max));}};var ENUM$1='enum';var enumerable$1=function enumerable(rule,value,source,errors,options){rule[ENUM$1]=Array.isArray(rule[ENUM$1])?rule[ENUM$1]:[];if(rule[ENUM$1].indexOf(value)===-1){errors.push(format(options.messages[ENUM$1],rule.fullField,rule[ENUM$1].join(', ')));}};var pattern$1=function pattern(rule,value,source,errors,options){if(rule.pattern){if(rule.pattern instanceof RegExp){// if a RegExp instance is passed, reset `lastIndex` in case its `global`
  2659. // flag is accidentally set to `true`, which in a validation scenario
  2660. // is not necessary and the result might be misleading
  2661. rule.pattern.lastIndex=0;if(!rule.pattern.test(value)){errors.push(format(options.messages.pattern.mismatch,rule.fullField,value,rule.pattern));}}else if(typeof rule.pattern==='string'){var _pattern=new RegExp(rule.pattern);if(!_pattern.test(value)){errors.push(format(options.messages.pattern.mismatch,rule.fullField,value,rule.pattern));}}}};var rules={required:required$1,whitespace:whitespace,type:type$1,range:range,"enum":enumerable$1,pattern:pattern$1};var string=function string(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value,'string')&&!rule.required){return callback();}rules.required(rule,value,source,errors,options,'string');if(!isEmptyValue(value,'string')){rules.type(rule,value,source,errors,options);rules.range(rule,value,source,errors,options);rules.pattern(rule,value,source,errors,options);if(rule.whitespace===true){rules.whitespace(rule,value,source,errors,options);}}}callback(errors);};var method=function method(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules.type(rule,value,source,errors,options);}}callback(errors);};var number=function number(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(value===''){value=undefined;}if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules.type(rule,value,source,errors,options);rules.range(rule,value,source,errors,options);}}callback(errors);};var _boolean=function _boolean(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules.type(rule,value,source,errors,options);}}callback(errors);};var regexp=function regexp(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(!isEmptyValue(value)){rules.type(rule,value,source,errors,options);}}callback(errors);};var integer=function integer(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules.type(rule,value,source,errors,options);rules.range(rule,value,source,errors,options);}}callback(errors);};var floatFn=function floatFn(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules.type(rule,value,source,errors,options);rules.range(rule,value,source,errors,options);}}callback(errors);};var array=function array(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if((value===undefined||value===null)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options,'array');if(value!==undefined&&value!==null){rules.type(rule,value,source,errors,options);rules.range(rule,value,source,errors,options);}}callback(errors);};var object=function object(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules.type(rule,value,source,errors,options);}}callback(errors);};var ENUM='enum';var enumerable=function enumerable(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(value!==undefined){rules[ENUM](rule,value,source,errors,options);}}callback(errors);};var pattern=function pattern(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value,'string')&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(!isEmptyValue(value,'string')){rules.pattern(rule,value,source,errors,options);}}callback(errors);};var date=function date(rule,value,callback,source,options){// console.log('integer rule called %j', rule);
  2662. var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);// console.log('validate on %s value', value);
  2663. if(validate){if(isEmptyValue(value,'date')&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);if(!isEmptyValue(value,'date')){var dateObject;if(value instanceof Date){dateObject=value;}else{dateObject=new Date(value);}rules.type(rule,dateObject,source,errors,options);if(dateObject){rules.range(rule,dateObject.getTime(),source,errors,options);}}}callback(errors);};var required=function required(rule,value,callback,source,options){var errors=[];var type=Array.isArray(value)?'array':_typeof2(value);rules.required(rule,value,source,errors,options,type);callback(errors);};var type=function type(rule,value,callback,source,options){var ruleType=rule.type;var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value,ruleType)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options,ruleType);if(!isEmptyValue(value,ruleType)){rules.type(rule,value,source,errors,options);}}callback(errors);};var any=function any(rule,value,callback,source,options){var errors=[];var validate=rule.required||!rule.required&&source.hasOwnProperty(rule.field);if(validate){if(isEmptyValue(value)&&!rule.required){return callback();}rules.required(rule,value,source,errors,options);}callback(errors);};var validators={string:string,method:method,number:number,"boolean":_boolean,regexp:regexp,integer:integer,"float":floatFn,array:array,object:object,"enum":enumerable,pattern:pattern,date:date,url:type,hex:type,email:type,required:required,any:any};function newMessages(){return{"default":'Validation error on field %s',required:'%s is required',"enum":'%s must be one of %s',whitespace:'%s cannot be empty',date:{format:'%s date %s is invalid for format %s',parse:'%s date could not be parsed, %s is invalid ',invalid:'%s date %s is invalid'},types:{string:'%s is not a %s',method:'%s is not a %s (function)',array:'%s is not an %s',object:'%s is not an %s',number:'%s is not a %s',date:'%s is not a %s',"boolean":'%s is not a %s',integer:'%s is not an %s',"float":'%s is not a %s',regexp:'%s is not a valid %s',email:'%s is not a valid %s',url:'%s is not a valid %s',hex:'%s is not a valid %s'},string:{len:'%s must be exactly %s characters',min:'%s must be at least %s characters',max:'%s cannot be longer than %s characters',range:'%s must be between %s and %s characters'},number:{len:'%s must equal %s',min:'%s cannot be less than %s',max:'%s cannot be greater than %s',range:'%s must be between %s and %s'},array:{len:'%s must be exactly %s in length',min:'%s cannot be less than %s in length',max:'%s cannot be greater than %s in length',range:'%s must be between %s and %s in length'},pattern:{mismatch:'%s value %s does not match pattern %s'},clone:function clone(){var cloned=JSON.parse(JSON.stringify(this));cloned.clone=this.clone;return cloned;}};}var messages=newMessages();/**
  2664. * Encapsulates a validation schema.
  2665. *
  2666. * @param descriptor An object declaring validation rules
  2667. * for this schema.
  2668. */var Schema=/*#__PURE__*/function(){// ========================= Static =========================
  2669. // ======================== Instance ========================
  2670. function Schema(descriptor){this.rules=null;this._messages=messages;this.define(descriptor);}var _proto=Schema.prototype;_proto.define=function define(rules){var _this=this;if(!rules){throw new Error('Cannot configure a schema with no rules');}if(_typeof2(rules)!=='object'||Array.isArray(rules)){throw new Error('Rules must be an object');}this.rules={};Object.keys(rules).forEach(function(name){var item=rules[name];_this.rules[name]=Array.isArray(item)?item:[item];});};_proto.messages=function messages(_messages){if(_messages){this._messages=deepMerge(newMessages(),_messages);}return this._messages;};_proto.validate=function validate(source_,o,oc){var _this2=this;if(o===void 0){o={};}if(oc===void 0){oc=function oc(){};}var source=source_;var options=o;var callback=oc;if(typeof options==='function'){callback=options;options={};}if(!this.rules||Object.keys(this.rules).length===0){if(callback){callback(null,source);}return Promise.resolve(source);}function complete(results){var errors=[];var fields={};function add(e){if(Array.isArray(e)){var _errors;errors=(_errors=errors).concat.apply(_errors,e);}else{errors.push(e);}}for(var i=0;i<results.length;i++){add(results[i]);}if(!errors.length){callback(null,source);}else{fields=convertFieldsError(errors);callback(errors,fields);}}if(options.messages){var messages$1=this.messages();if(messages$1===messages){messages$1=newMessages();}deepMerge(messages$1,options.messages);options.messages=messages$1;}else{options.messages=this.messages();}var series={};var keys=options.keys||Object.keys(this.rules);keys.forEach(function(z){var arr=_this2.rules[z];var value=source[z];arr.forEach(function(r){var rule=r;if(typeof rule.transform==='function'){if(source===source_){source=_extends({},source);}value=source[z]=rule.transform(value);}if(typeof rule==='function'){rule={validator:rule};}else{rule=_extends({},rule);}// Fill validator. Skip if nothing need to validate
  2671. rule.validator=_this2.getValidationMethod(rule);if(!rule.validator){return;}rule.field=z;rule.fullField=rule.fullField||z;rule.type=_this2.getType(rule);series[z]=series[z]||[];series[z].push({rule:rule,value:value,source:source,field:z});});});var errorFields={};return asyncMap(series,options,function(data,doIt){var rule=data.rule;var deep=(rule.type==='object'||rule.type==='array')&&(_typeof2(rule.fields)==='object'||_typeof2(rule.defaultField)==='object');deep=deep&&(rule.required||!rule.required&&data.value);rule.field=data.field;function addFullField(key,schema){return _extends({},schema,{fullField:rule.fullField+"."+key,fullFields:rule.fullFields?[].concat(rule.fullFields,[key]):[key]});}function cb(e){if(e===void 0){e=[];}var errorList=Array.isArray(e)?e:[e];if(!options.suppressWarning&&errorList.length){Schema.warning('async-validator:',errorList);}if(errorList.length&&rule.message!==undefined){errorList=[].concat(rule.message);}// Fill error info
  2672. var filledErrors=errorList.map(complementError(rule,source));if(options.first&&filledErrors.length){errorFields[rule.field]=1;return doIt(filledErrors);}if(!deep){doIt(filledErrors);}else{// if rule is required but the target object
  2673. // does not exist fail at the rule level and don't
  2674. // go deeper
  2675. if(rule.required&&!data.value){if(rule.message!==undefined){filledErrors=[].concat(rule.message).map(complementError(rule,source));}else if(options.error){filledErrors=[options.error(rule,format(options.messages.required,rule.field))];}return doIt(filledErrors);}var fieldsSchema={};if(rule.defaultField){Object.keys(data.value).map(function(key){fieldsSchema[key]=rule.defaultField;});}fieldsSchema=_extends({},fieldsSchema,data.rule.fields);var paredFieldsSchema={};Object.keys(fieldsSchema).forEach(function(field){var fieldSchema=fieldsSchema[field];var fieldSchemaList=Array.isArray(fieldSchema)?fieldSchema:[fieldSchema];paredFieldsSchema[field]=fieldSchemaList.map(addFullField.bind(null,field));});var schema=new Schema(paredFieldsSchema);schema.messages(options.messages);if(data.rule.options){data.rule.options.messages=options.messages;data.rule.options.error=options.error;}schema.validate(data.value,data.rule.options||options,function(errs){var finalErrors=[];if(filledErrors&&filledErrors.length){finalErrors.push.apply(finalErrors,filledErrors);}if(errs&&errs.length){finalErrors.push.apply(finalErrors,errs);}doIt(finalErrors.length?finalErrors:null);});}}var res;if(rule.asyncValidator){res=rule.asyncValidator(rule,data.value,cb,data.source,options);}else if(rule.validator){try{res=rule.validator(rule,data.value,cb,data.source,options);}catch(error){console.error==null?void 0:console.error(error);// rethrow to report error
  2676. if(!options.suppressValidatorError){setTimeout(function(){throw error;},0);}cb(error.message);}if(res===true){cb();}else if(res===false){cb(typeof rule.message==='function'?rule.message(rule.fullField||rule.field):rule.message||(rule.fullField||rule.field)+" fails");}else if(res instanceof Array){cb(res);}else if(res instanceof Error){cb(res.message);}}if(res&&res.then){res.then(function(){return cb();},function(e){return cb(e);});}},function(results){complete(results);},source);};_proto.getType=function getType(rule){if(rule.type===undefined&&rule.pattern instanceof RegExp){rule.type='pattern';}if(typeof rule.validator!=='function'&&rule.type&&!validators.hasOwnProperty(rule.type)){throw new Error(format('Unknown rule type %s',rule.type));}return rule.type||'string';};_proto.getValidationMethod=function getValidationMethod(rule){if(typeof rule.validator==='function'){return rule.validator;}var keys=Object.keys(rule);var messageIndex=keys.indexOf('message');if(messageIndex!==-1){keys.splice(messageIndex,1);}if(keys.length===1&&keys[0]==='required'){return validators.required;}return validators[this.getType(rule)]||undefined;};return Schema;}();Schema.register=function register(type,validator){if(typeof validator!=='function'){throw new Error('Cannot register a validator by type, validator is not a function');}validators[type]=validator;};Schema.warning=warning;Schema.messages=messages;Schema.validators=validators;var formItemValidateStates=["","error","validating","success"];var formItemProps=buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:definePropType([Object,Array])},error:String,validateStatus:{type:String,values:formItemValidateStates},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:true},size:{type:String,values:componentSizes}});var COMPONENT_NAME$3="ElLabelWrap";var FormLabelWrap=defineComponent({name:COMPONENT_NAME$3,props:{isAutoWidth:Boolean,updateAll:Boolean},setup:function setup(props,_ref147){var slots=_ref147.slots;var formContext=inject(formContextKey,void 0);var formItemContext=inject(formItemContextKey);if(!formItemContext)throwError(COMPONENT_NAME$3,"usage: <el-form-item><label-wrap /></el-form-item>");var ns=useNamespace("form");var el=ref();var computedWidth=ref(0);var getLabelWidth=function getLabelWidth(){var _a;if((_a=el.value)==null?void 0:_a.firstElementChild){var width=window.getComputedStyle(el.value.firstElementChild).width;return Math.ceil(Number.parseFloat(width));}else{return 0;}};var updateLabelWidth=function updateLabelWidth(){var action=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"update";nextTick(function(){if(slots.default&&props.isAutoWidth){if(action==="update"){computedWidth.value=getLabelWidth();}else if(action==="remove"){formContext==null?void 0:formContext.deregisterLabelWidth(computedWidth.value);}}});};var updateLabelWidthFn=function updateLabelWidthFn(){return updateLabelWidth("update");};onMounted(function(){updateLabelWidthFn();});onBeforeUnmount(function(){updateLabelWidth("remove");});onUpdated(function(){return updateLabelWidthFn();});watch(computedWidth,function(val,oldVal){if(props.updateAll){formContext==null?void 0:formContext.registerLabelWidth(val,oldVal);}});useResizeObserver(computed(function(){var _a,_b;return(_b=(_a=el.value)==null?void 0:_a.firstElementChild)!=null?_b:null;}),updateLabelWidthFn);return function(){var _a,_b;if(!slots)return null;var isAutoWidth=props.isAutoWidth;if(isAutoWidth){var autoLabelWidth=formContext==null?void 0:formContext.autoLabelWidth;var style={};if(autoLabelWidth&&autoLabelWidth!=="auto"){var marginWidth=Math.max(0,Number.parseInt(autoLabelWidth,10)-computedWidth.value);var marginPosition=formContext.labelPosition==="left"?"marginRight":"marginLeft";if(marginWidth){style[marginPosition]="".concat(marginWidth,"px");}}return createVNode("div",{"ref":el,"class":[ns.be("item","label-wrap")],"style":style},[(_a=slots.default)==null?void 0:_a.call(slots)]);}else{return createVNode(Fragment,{"ref":el},[(_b=slots.default)==null?void 0:_b.call(slots)]);}};}});var _hoisted_1$h=["role","aria-labelledby"];var __default__$j={name:"ElFormItem"};var _sfc_main$r=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$j),{},{props:formItemProps,setup:function setup(__props,_ref148){var expose=_ref148.expose;var props=__props;var slots=useSlots();var formContext=inject(formContextKey,void 0);var parentFormItemContext=inject(formItemContextKey,void 0);var _size=useSize(void 0,{formItem:false});var ns=useNamespace("form-item");var labelId=useId().value;var inputIds=ref([]);var validateState=ref("");var validateStateDebounced=refDebounced(validateState,100);var validateMessage=ref("");var formItemRef=ref();var initialValue=void 0;var isResettingField=false;var labelStyle=computed(function(){if((formContext==null?void 0:formContext.labelPosition)==="top"){return{};}var labelWidth=addUnit(props.labelWidth||(formContext==null?void 0:formContext.labelWidth)||"");if(labelWidth)return{width:labelWidth};return{};});var contentStyle=computed(function(){if((formContext==null?void 0:formContext.labelPosition)==="top"||(formContext==null?void 0:formContext.inline)){return{};}if(!props.label&&!props.labelWidth&&isNested){return{};}var labelWidth=addUnit(props.labelWidth||(formContext==null?void 0:formContext.labelWidth)||"");if(!props.label&&!slots.label){return{marginLeft:labelWidth};}return{};});var formItemClasses=computed(function(){return[ns.b(),ns.m(_size.value),ns.is("error",validateState.value==="error"),ns.is("validating",validateState.value==="validating"),ns.is("success",validateState.value==="success"),ns.is("required",isRequired.value||props.required),ns.is("no-asterisk",formContext==null?void 0:formContext.hideRequiredAsterisk),_defineProperty2({},ns.m("feedback"),formContext==null?void 0:formContext.statusIcon)];});var _inlineMessage=computed(function(){return isBoolean$1(props.inlineMessage)?props.inlineMessage:(formContext==null?void 0:formContext.inlineMessage)||false;});var validateClasses=computed(function(){return[ns.e("error"),_defineProperty2({},ns.em("error","inline"),_inlineMessage.value)];});var propString=computed(function(){if(!props.prop)return"";return isString$2(props.prop)?props.prop:props.prop.join(".");});var hasLabel=computed(function(){return!!(props.label||slots.label);});var labelFor=computed(function(){return props.for||inputIds.value.length===1?inputIds.value[0]:void 0;});var isGroup=computed(function(){return!labelFor.value&&hasLabel.value;});var isNested=!!parentFormItemContext;var fieldValue=computed(function(){var model=formContext==null?void 0:formContext.model;if(!model||!props.prop){return;}return getProp(model,props.prop).value;});var _rules=computed(function(){var rules=props.rules?castArray$1(props.rules):[];var formRules=formContext==null?void 0:formContext.rules;if(formRules&&props.prop){var _rules2=getProp(formRules,props.prop).value;if(_rules2){rules.push.apply(rules,_toConsumableArray2(castArray$1(_rules2)));}}if(props.required!==void 0){rules.push({required:!!props.required});}return rules;});var validateEnabled=computed(function(){return _rules.value.length>0;});var getFilteredRule=function getFilteredRule(trigger){var rules=_rules.value;return rules.filter(function(rule){if(!rule.trigger||!trigger)return true;if(Array.isArray(rule.trigger)){return rule.trigger.includes(trigger);}else{return rule.trigger===trigger;}}).map(function(_ref151){var trigger2=_ref151.trigger,rule=_objectWithoutProperties(_ref151,_excluded);return rule;});};var isRequired=computed(function(){return _rules.value.some(function(rule){return rule.required===true;});});var shouldShowError=computed(function(){var _a;return validateStateDebounced.value==="error"&&props.showMessage&&((_a=formContext==null?void 0:formContext.showMessage)!=null?_a:true);});var currentLabel=computed(function(){return"".concat(props.label||"").concat((formContext==null?void 0:formContext.labelSuffix)||"");});var setValidationState=function setValidationState(state){validateState.value=state;};var onValidationFailed=function onValidationFailed(error){var _a,_b;var errors=error.errors,fields=error.fields;if(!errors||!fields){console.error(error);}setValidationState("error");validateMessage.value=errors?(_b=(_a=errors==null?void 0:errors[0])==null?void 0:_a.message)!=null?_b:"".concat(props.prop," is required"):"";formContext==null?void 0:formContext.emit("validate",props.prop,false,validateMessage.value);};var onValidationSucceeded=function onValidationSucceeded(){setValidationState("success");formContext==null?void 0:formContext.emit("validate",props.prop,true,"");};var doValidate=/*#__PURE__*/function(){var _ref152=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee23(rules){var modelName,validator;return regeneratorRuntime.wrap(function _callee23$(_context23){while(1){switch(_context23.prev=_context23.next){case 0:modelName=propString.value;validator=new Schema(_defineProperty2({},modelName,rules));return _context23.abrupt("return",validator.validate(_defineProperty2({},modelName,fieldValue.value),{firstFields:true}).then(function(){onValidationSucceeded();return true;}).catch(function(err){onValidationFailed(err);return Promise.reject(err);}));case 3:case"end":return _context23.stop();}}},_callee23);}));return function doValidate(_x9){return _ref152.apply(this,arguments);};}();var validate=/*#__PURE__*/function(){var _ref153=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee24(trigger,callback){var hasCallback,rules;return regeneratorRuntime.wrap(function _callee24$(_context24){while(1){switch(_context24.prev=_context24.next){case 0:if(!isResettingField){_context24.next=3;break;}isResettingField=false;return _context24.abrupt("return",false);case 3:hasCallback=isFunction$1(callback);if(validateEnabled.value){_context24.next=7;break;}callback==null?void 0:callback(false);return _context24.abrupt("return",false);case 7:rules=getFilteredRule(trigger);if(!(rules.length===0)){_context24.next=11;break;}callback==null?void 0:callback(true);return _context24.abrupt("return",true);case 11:setValidationState("validating");return _context24.abrupt("return",doValidate(rules).then(function(){callback==null?void 0:callback(true);return true;}).catch(function(err){var fields=err.fields;callback==null?void 0:callback(false,fields);return hasCallback?false:Promise.reject(fields);}));case 13:case"end":return _context24.stop();}}},_callee24);}));return function validate(_x10,_x11){return _ref153.apply(this,arguments);};}();var clearValidate=function clearValidate(){setValidationState("");validateMessage.value="";};var resetField=/*#__PURE__*/function(){var _ref154=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee25(){var model,computedValue;return regeneratorRuntime.wrap(function _callee25$(_context25){while(1){switch(_context25.prev=_context25.next){case 0:model=formContext==null?void 0:formContext.model;if(!(!model||!props.prop)){_context25.next=3;break;}return _context25.abrupt("return");case 3:computedValue=getProp(model,props.prop);if(!isEqual(computedValue.value,initialValue)){isResettingField=true;}computedValue.value=clone(initialValue);_context25.next=8;return nextTick();case 8:clearValidate();case 9:case"end":return _context25.stop();}}},_callee25);}));return function resetField(){return _ref154.apply(this,arguments);};}();var addInputId=function addInputId(id){if(!inputIds.value.includes(id)){inputIds.value.push(id);}};var removeInputId=function removeInputId(id){inputIds.value=inputIds.value.filter(function(listId){return listId!==id;});};watch(function(){return props.error;},function(val){validateMessage.value=val||"";setValidationState(val?"error":"");},{immediate:true});watch(function(){return props.validateStatus;},function(val){return setValidationState(val||"");});var context=reactive(_objectSpread(_objectSpread({},toRefs(props)),{},{$el:formItemRef,size:_size,validateState:validateState,labelId:labelId,inputIds:inputIds,isGroup:isGroup,addInputId:addInputId,removeInputId:removeInputId,resetField:resetField,clearValidate:clearValidate,validate:validate}));provide(formItemContextKey,context);onMounted(function(){if(props.prop){formContext==null?void 0:formContext.addField(context);initialValue=clone(fieldValue.value);}});onBeforeUnmount(function(){formContext==null?void 0:formContext.removeField(context);});expose({size:_size,validateMessage:validateMessage,validateState:validateState,validate:validate,clearValidate:clearValidate,resetField:resetField});return function(_ctx,_cache){var _a;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:formItemRef,class:normalizeClass(unref(formItemClasses)),role:unref(isGroup)?"group":void 0,"aria-labelledby":unref(isGroup)?unref(labelId):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(labelStyle).width==="auto","update-all":((_a=unref(formContext))==null?void 0:_a.labelWidth)==="auto"},{default:withCtx(function(){return[unref(hasLabel)?(openBlock(),createBlock(resolveDynamicComponent(unref(labelFor)?"label":"div"),{key:0,id:unref(labelId),for:unref(labelFor),class:normalizeClass(unref(ns).e("label")),style:normalizeStyle(unref(labelStyle))},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"label",{label:unref(currentLabel)},function(){return[createTextVNode(toDisplayString(unref(currentLabel)),1)];})];}),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",true)];}),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(ns).e("content")),style:normalizeStyle(unref(contentStyle))},[renderSlot(_ctx.$slots,"default"),createVNode(Transition,{name:"".concat(unref(ns).namespace.value,"-zoom-in-top")},{default:withCtx(function(){return[unref(shouldShowError)?renderSlot(_ctx.$slots,"error",{key:0,error:validateMessage.value},function(){return[createBaseVNode("div",{class:normalizeClass(unref(validateClasses))},toDisplayString(validateMessage.value),3)];}):createCommentVNode("v-if",true)];}),_:3},8,["name"])],6)],10,_hoisted_1$h);};}}));var FormItem=/* @__PURE__ */_export_sfc$1(_sfc_main$r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);var ElForm=exports('y',withInstall(Form,{FormItem:FormItem}));var ElFormItem=exports('z',withNoopInstall(FormItem));var imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:function _default(){return mutable([]);}},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:true},hideOnClickModal:{type:Boolean,default:false},teleported:{type:Boolean,default:false},closeOnPressEscape:{type:Boolean,default:true}});var imageViewerEmits={close:function close(){return true;},switch:function _switch(index){return typeof index==="number";}};var _hoisted_1$g=["src"];var __default__$i={name:"ElImageViewer"};var _sfc_main$q=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$i),{},{props:imageViewerProps,emits:imageViewerEmits,setup:function setup(__props,_ref155){var emit=_ref155.emit;var props=__props;var modes={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}};var mousewheelEventName=isFirefox()?"DOMMouseScroll":"mousewheel";var _useLocale13=useLocale(),t=_useLocale13.t;var ns=useNamespace("image-viewer");var _useZIndex3=useZIndex(),nextZIndex=_useZIndex3.nextZIndex;var wrapper=ref();var imgRefs=ref([]);var scopeEventListener=effectScope();var loading=ref(true);var index=ref(props.initialIndex);var mode=shallowRef(modes.CONTAIN);var transform=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:false});var isSingle=computed(function(){var urlList=props.urlList;return urlList.length<=1;});var isFirst=computed(function(){return index.value===0;});var isLast=computed(function(){return index.value===props.urlList.length-1;});var currentImg=computed(function(){return props.urlList[index.value];});var imgStyle=computed(function(){var _transform$value=transform.value,scale=_transform$value.scale,deg=_transform$value.deg,offsetX=_transform$value.offsetX,offsetY=_transform$value.offsetY,enableTransition=_transform$value.enableTransition;var translateX=offsetX/scale;var translateY=offsetY/scale;switch(deg%360){case 90:case-270:var _ref156=[translateY,-translateX];translateX=_ref156[0];translateY=_ref156[1];break;case 180:case-180:var _ref157=[-translateX,-translateY];translateX=_ref157[0];translateY=_ref157[1];break;case 270:case-90:var _ref158=[-translateY,translateX];translateX=_ref158[0];translateY=_ref158[1];break;}var style={transform:"scale(".concat(scale,") rotate(").concat(deg,"deg) translate(").concat(translateX,"px, ").concat(translateY,"px)"),transition:enableTransition?"transform .3s":""};if(mode.value.name===modes.CONTAIN.name){style.maxWidth=style.maxHeight="100%";}return style;});var computedZIndex=computed(function(){return isNumber$1(props.zIndex)?props.zIndex:nextZIndex();});function hide(){unregisterEventListener();emit("close");}function registerEventListener(){var keydownHandler=throttle(function(e){switch(e.code){case EVENT_CODE.esc:props.closeOnPressEscape&&hide();break;case EVENT_CODE.space:toggleMode();break;case EVENT_CODE.left:prev();break;case EVENT_CODE.up:handleActions("zoomIn");break;case EVENT_CODE.right:next();break;case EVENT_CODE.down:handleActions("zoomOut");break;}});var mousewheelHandler=throttle(function(e){var delta=e.wheelDelta?e.wheelDelta:-e.detail;if(delta>0){handleActions("zoomIn",{zoomRate:1.2,enableTransition:false});}else{handleActions("zoomOut",{zoomRate:1.2,enableTransition:false});}});scopeEventListener.run(function(){useEventListener(document,"keydown",keydownHandler);useEventListener(document,mousewheelEventName,mousewheelHandler);});}function unregisterEventListener(){scopeEventListener.stop();}function handleImgLoad(){loading.value=false;}function handleImgError(e){loading.value=false;e.target.alt=t("el.image.error");}function handleMouseDown(e){if(loading.value||e.button!==0||!wrapper.value)return;transform.value.enableTransition=false;var _transform$value2=transform.value,offsetX=_transform$value2.offsetX,offsetY=_transform$value2.offsetY;var startX=e.pageX;var startY=e.pageY;var dragHandler=throttle(function(ev){transform.value=_objectSpread(_objectSpread({},transform.value),{},{offsetX:offsetX+ev.pageX-startX,offsetY:offsetY+ev.pageY-startY});});var removeMousemove=useEventListener(document,"mousemove",dragHandler);useEventListener(document,"mouseup",function(){removeMousemove();});e.preventDefault();}function reset(){transform.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:false};}function toggleMode(){if(loading.value)return;var modeNames=keysOf(modes);var modeValues=Object.values(modes);var currentMode=mode.value.name;var index2=modeValues.findIndex(function(i){return i.name===currentMode;});var nextIndex=(index2+1)%modeNames.length;mode.value=modes[modeNames[nextIndex]];reset();}function prev(){if(isFirst.value&&!props.infinite)return;var len=props.urlList.length;index.value=(index.value-1+len)%len;}function next(){if(isLast.value&&!props.infinite)return;var len=props.urlList.length;index.value=(index.value+1)%len;}function handleActions(action){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(loading.value)return;var _zoomRate$rotateDeg$e=_objectSpread({zoomRate:1.4,rotateDeg:90,enableTransition:true},options),zoomRate=_zoomRate$rotateDeg$e.zoomRate,rotateDeg=_zoomRate$rotateDeg$e.rotateDeg,enableTransition=_zoomRate$rotateDeg$e.enableTransition;switch(action){case"zoomOut":if(transform.value.scale>0.2){transform.value.scale=Number.parseFloat((transform.value.scale/zoomRate).toFixed(3));}break;case"zoomIn":if(transform.value.scale<7){transform.value.scale=Number.parseFloat((transform.value.scale*zoomRate).toFixed(3));}break;case"clockwise":transform.value.deg+=rotateDeg;break;case"anticlockwise":transform.value.deg-=rotateDeg;break;}transform.value.enableTransition=enableTransition;}watch(currentImg,function(){nextTick(function(){var $img=imgRefs.value[0];if(!($img==null?void 0:$img.complete)){loading.value=true;}});});watch(index,function(val){reset();emit("switch",val);});onMounted(function(){var _a,_b;registerEventListener();(_b=(_a=wrapper.value)==null?void 0:_a.focus)==null?void 0:_b.call(_a);});return function(_ctx,_cache){return openBlock(),createBlock(Teleport,{to:"body",disabled:!_ctx.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(function(){return[createBaseVNode("div",{ref_key:"wrapper",ref:wrapper,tabindex:-1,class:normalizeClass(unref(ns).e("wrapper")),style:normalizeStyle({zIndex:unref(computedZIndex)})},[createBaseVNode("div",{class:normalizeClass(unref(ns).e("mask")),onClick:_cache[0]||(_cache[0]=withModifiers(function($event){return _ctx.hideOnClickModal&&hide();},["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(ns).e("btn"),unref(ns).e("close")]),onClick:hide},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(close_default))];}),_:1})],2),createCommentVNode(" ARROW "),!unref(isSingle)?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(ns).e("btn"),unref(ns).e("prev"),unref(ns).is("disabled",!_ctx.infinite&&unref(isFirst))]),onClick:prev},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_left_default))];}),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(ns).e("btn"),unref(ns).e("next"),unref(ns).is("disabled",!_ctx.infinite&&unref(isLast))]),onClick:next},[createVNode(unref(ElIcon),null,{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1})],2)],64)):createCommentVNode("v-if",true),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(ns).e("btn"),unref(ns).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(ns).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:_cache[1]||(_cache[1]=function($event){return handleActions("zoomOut");})},{default:withCtx(function(){return[createVNode(unref(zoom_out_default))];}),_:1}),createVNode(unref(ElIcon),{onClick:_cache[2]||(_cache[2]=function($event){return handleActions("zoomIn");})},{default:withCtx(function(){return[createVNode(unref(zoom_in_default))];}),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ns).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:toggleMode},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(unref(mode).icon)))];}),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ns).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:_cache[3]||(_cache[3]=function($event){return handleActions("anticlockwise");})},{default:withCtx(function(){return[createVNode(unref(refresh_left_default))];}),_:1}),createVNode(unref(ElIcon),{onClick:_cache[4]||(_cache[4]=function($event){return handleActions("clockwise");})},{default:withCtx(function(){return[createVNode(unref(refresh_right_default))];}),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(ns).e("canvas"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(_ctx.urlList,function(url,i){return withDirectives((openBlock(),createElementBlock("img",{ref_for:true,ref:function ref(el){return imgRefs.value[i]=el;},key:url,src:url,style:normalizeStyle(unref(imgStyle)),class:normalizeClass(unref(ns).e("img")),onLoad:handleImgLoad,onError:handleImgError,onMousedown:handleMouseDown},null,46,_hoisted_1$g)),[[vShow,i===index.value]]);}),128))],2),renderSlot(_ctx.$slots,"default")],6)];}),_:3})],8,["disabled"]);};}}));var ImageViewer=/* @__PURE__ */_export_sfc$1(_sfc_main$q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);var ElImageViewer=withInstall(ImageViewer);var imageProps=buildProps({hideOnClickModal:{type:Boolean,default:false},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:false},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:function _default(){return mutable([]);}},previewTeleported:{type:Boolean,default:false},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:true},closeOnPressEscape:{type:Boolean,default:true}});var imageEmits={error:function error(evt){return evt instanceof Event;},switch:function _switch(val){return isNumber$1(val);},close:function close(){return true;}};var _hoisted_1$f=["src","loading"];var _hoisted_2$9={key:0};var __default__$h={name:"ElImage",inheritAttrs:false};var _sfc_main$p=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$h),{},{props:imageProps,emits:imageEmits,setup:function setup(__props,_ref159){var emit=_ref159.emit;var props=__props;var prevOverflow="";var _useLocale14=useLocale(),t=_useLocale14.t;var ns=useNamespace("image");var rawAttrs=useAttrs$1();var attrs=useAttrs();var imageSrc=ref();var hasLoadError=ref(false);var isLoading=ref(true);var showViewer=ref(false);var container=ref();var _scrollContainer=ref();var supportLoading=isClient&&"loading"in HTMLImageElement.prototype;var stopScrollListener;var stopWheelListener;var containerStyle=computed(function(){return rawAttrs.style;});var imageStyle=computed(function(){var fit=props.fit;if(isClient&&fit){return{objectFit:fit};}return{};});var preview=computed(function(){var previewSrcList=props.previewSrcList;return Array.isArray(previewSrcList)&&previewSrcList.length>0;});var imageIndex=computed(function(){var previewSrcList=props.previewSrcList,initialIndex=props.initialIndex;var previewIndex=initialIndex;if(initialIndex>previewSrcList.length-1){previewIndex=0;}return previewIndex;});var isManual=computed(function(){if(props.loading==="eager")return false;return!supportLoading&&props.loading==="lazy"||props.lazy;});var loadImage=function loadImage(){if(!isClient)return;isLoading.value=true;hasLoadError.value=false;imageSrc.value=props.src;};function handleLoad(){isLoading.value=false;hasLoadError.value=false;}function handleError(event){isLoading.value=false;hasLoadError.value=true;emit("error",event);}function handleLazyLoad(){if(isInContainer(container.value,_scrollContainer.value)){loadImage();removeLazyLoadListener();}}var lazyLoadHandler=useThrottleFn(handleLazyLoad,200);function addLazyLoadListener(){return _addLazyLoadListener.apply(this,arguments);}function _addLazyLoadListener(){_addLazyLoadListener=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee26(){var _a,scrollContainer;return regeneratorRuntime.wrap(function _callee26$(_context26){while(1){switch(_context26.prev=_context26.next){case 0:if(isClient){_context26.next=2;break;}return _context26.abrupt("return");case 2:_context26.next=4;return nextTick();case 4:scrollContainer=props.scrollContainer;if(isElement$1(scrollContainer)){_scrollContainer.value=scrollContainer;}else if(isString$2(scrollContainer)&&scrollContainer!==""){_scrollContainer.value=(_a=document.querySelector(scrollContainer))!=null?_a:void 0;}else if(container.value){_scrollContainer.value=getScrollContainer(container.value);}if(_scrollContainer.value){stopScrollListener=useEventListener(_scrollContainer,"scroll",lazyLoadHandler);setTimeout(function(){return handleLazyLoad();},100);}case 7:case"end":return _context26.stop();}}},_callee26);}));return _addLazyLoadListener.apply(this,arguments);}function removeLazyLoadListener(){if(!isClient||!_scrollContainer.value||!lazyLoadHandler)return;stopScrollListener==null?void 0:stopScrollListener();_scrollContainer.value=void 0;}function wheelHandler(e){if(!e.ctrlKey)return;if(e.deltaY<0){e.preventDefault();return false;}else if(e.deltaY>0){e.preventDefault();return false;}}function clickHandler(){if(!preview.value)return;stopWheelListener=useEventListener("wheel",wheelHandler,{passive:false});prevOverflow=document.body.style.overflow;document.body.style.overflow="hidden";showViewer.value=true;}function closeViewer(){stopWheelListener==null?void 0:stopWheelListener();document.body.style.overflow=prevOverflow;showViewer.value=false;emit("close");}function switchViewer(val){emit("switch",val);}watch(function(){return props.src;},function(){if(isManual.value){isLoading.value=true;hasLoadError.value=false;removeLazyLoadListener();addLazyLoadListener();}else{loadImage();}});onMounted(function(){if(isManual.value){addLazyLoadListener();}else{loadImage();}});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{ref_key:"container",ref:container,class:normalizeClass([unref(ns).b(),_ctx.$attrs.class]),style:normalizeStyle(unref(containerStyle))},[imageSrc.value!==void 0&&!hasLoadError.value?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(attrs),{src:imageSrc.value,loading:_ctx.loading,style:unref(imageStyle),class:[unref(ns).e("inner"),unref(preview)?unref(ns).e("preview"):""],onClick:clickHandler,onLoad:handleLoad,onError:handleError}),null,16,_hoisted_1$f)):createCommentVNode("v-if",true),isLoading.value?renderSlot(_ctx.$slots,"placeholder",{key:1},function(){return[createBaseVNode("div",{class:normalizeClass(unref(ns).e("placeholder"))},null,2)];}):hasLoadError.value?renderSlot(_ctx.$slots,"error",{key:2},function(){return[createBaseVNode("div",{class:normalizeClass(unref(ns).e("error"))},toDisplayString(unref(t)("el.image.error")),3)];}):createCommentVNode("v-if",true),unref(preview)?(openBlock(),createElementBlock(Fragment,{key:3},[showViewer.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":_ctx.zIndex,"initial-index":unref(imageIndex),infinite:_ctx.infinite,"url-list":_ctx.previewSrcList,"hide-on-click-modal":_ctx.hideOnClickModal,teleported:_ctx.previewTeleported,"close-on-press-escape":_ctx.closeOnPressEscape,onClose:closeViewer,onSwitch:switchViewer},{default:withCtx(function(){return[_ctx.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$9,[renderSlot(_ctx.$slots,"viewer")])):createCommentVNode("v-if",true)];}),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",true)],64)):createCommentVNode("v-if",true)],6);};}}));var Image$1=/* @__PURE__ */_export_sfc$1(_sfc_main$p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);var ElImage=exports('x',withInstall(Image$1));var linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:true},disabled:{type:Boolean,default:false},href:{type:String,default:""},icon:{type:iconPropType,default:""}});var linkEmits={click:function click(evt){return evt instanceof MouseEvent;}};var _hoisted_1$e=["href"];var __default__$g={name:"ElLink"};var _sfc_main$o=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$g),{},{props:linkProps,emits:linkEmits,setup:function setup(__props,_ref160){var emit=_ref160.emit;var props=__props;var ns=useNamespace("link");function handleClick(event){if(!props.disabled)emit("click",event);}return function(_ctx,_cache){return openBlock(),createElementBlock("a",{class:normalizeClass([unref(ns).b(),unref(ns).m(_ctx.type),unref(ns).is("disabled",_ctx.disabled),unref(ns).is("underline",_ctx.underline&&!_ctx.disabled)]),href:_ctx.disabled||!_ctx.href?void 0:_ctx.href,onClick:handleClick},[_ctx.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.icon)))];}),_:1})):createCommentVNode("v-if",true),_ctx.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ns).e("inner"))},[renderSlot(_ctx.$slots,"default")],2)):createCommentVNode("v-if",true),_ctx.$slots.icon?renderSlot(_ctx.$slots,"icon",{key:2}):createCommentVNode("v-if",true)],10,_hoisted_1$e);};}}));var Link=/* @__PURE__ */_export_sfc$1(_sfc_main$o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);var ElLink=exports('A',withInstall(Link));var paginationPrevProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String}});var paginationPrevEmits={click:function click(evt){return evt instanceof MouseEvent;}};var _hoisted_1$d=["disabled","aria-disabled"];var _hoisted_2$8={key:0};var __default__$f={name:"ElPaginationPrev"};var _sfc_main$n=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$f),{},{props:paginationPrevProps,emits:paginationPrevEmits,setup:function setup(__props){var props=__props;var internalDisabled=computed(function(){return props.disabled||props.currentPage<=1;});return function(_ctx,_cache){return openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(internalDisabled),"aria-disabled":unref(internalDisabled),onClick:_cache[0]||(_cache[0]=function($event){return _ctx.$emit("click",$event);})},[_ctx.prevText?(openBlock(),createElementBlock("span",_hoisted_2$8,toDisplayString(_ctx.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(function(){return[createVNode(unref(arrow_left_default))];}),_:1}))],8,_hoisted_1$d);};}}));var Prev=/* @__PURE__ */_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);var paginationNextProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String}});var _hoisted_1$c=["disabled","aria-disabled"];var _hoisted_2$7={key:0};var __default__$e={name:"ElPaginationNext"};var _sfc_main$m=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$e),{},{props:paginationNextProps,emits:["click"],setup:function setup(__props){var props=__props;var internalDisabled=computed(function(){return props.disabled||props.currentPage===props.pageCount||props.pageCount===0;});return function(_ctx,_cache){return openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(internalDisabled),"aria-disabled":unref(internalDisabled),onClick:_cache[0]||(_cache[0]=function($event){return _ctx.$emit("click",$event);})},[_ctx.nextText?(openBlock(),createElementBlock("span",_hoisted_2$7,toDisplayString(_ctx.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(function(){return[createVNode(unref(arrow_right_default))];}),_:1}))],8,_hoisted_1$c);};}}));var Next=/* @__PURE__ */_export_sfc$1(_sfc_main$m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);var selectGroupKey="ElSelectGroup";var selectKey="ElSelect";function useOption(props,states){var select=inject(selectKey);var selectGroup=inject(selectGroupKey,{disabled:false});var isObject=computed(function(){return Object.prototype.toString.call(props.value).toLowerCase()==="[object object]";});var itemSelected=computed(function(){if(!select.props.multiple){return isEqual(props.value,select.props.modelValue);}else{return contains(select.props.modelValue,props.value);}});var limitReached=computed(function(){if(select.props.multiple){var modelValue=select.props.modelValue||[];return!itemSelected.value&&modelValue.length>=select.props.multipleLimit&&select.props.multipleLimit>0;}else{return false;}});var currentLabel=computed(function(){return props.label||(isObject.value?"":props.value);});var currentValue=computed(function(){return props.value||props.label||"";});var isDisabled=computed(function(){return props.disabled||states.groupDisabled||limitReached.value;});var instance=getCurrentInstance();var contains=function contains(){var arr=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var target=arguments.length>1?arguments[1]:undefined;if(!isObject.value){return arr&&arr.includes(target);}else{var valueKey=select.props.valueKey;return arr&&arr.some(function(item){return get(item,valueKey)===get(target,valueKey);});}};var isEqual=function isEqual(a,b){if(!isObject.value){return a===b;}else{var valueKey=select.props.valueKey;return get(a,valueKey)===get(b,valueKey);}};var hoverItem=function hoverItem(){if(!props.disabled&&!selectGroup.disabled){select.hoverIndex=select.optionsArray.indexOf(instance.proxy);}};watch(function(){return currentLabel.value;},function(){if(!props.created&&!select.props.remote)select.setSelected();});watch(function(){return props.value;},function(val,oldVal){var _select$props=select.props,remote=_select$props.remote,valueKey=_select$props.valueKey;if(!props.created&&!remote){if(valueKey&&_typeof2(val)==="object"&&_typeof2(oldVal)==="object"&&val[valueKey]===oldVal[valueKey]){return;}select.setSelected();}});watch(function(){return selectGroup.disabled;},function(){states.groupDisabled=selectGroup.disabled;},{immediate:true});var _toRaw=toRaw(select),queryChange=_toRaw.queryChange;watch(queryChange,function(changes){var _unref10=unref(changes),query=_unref10.query;var regexp=new RegExp(escapeStringRegexp(query),"i");states.visible=regexp.test(currentLabel.value)||props.created;if(!states.visible){select.filteredOptionsCount--;}});return{select:select,currentLabel:currentLabel,currentValue:currentValue,itemSelected:itemSelected,isDisabled:isDisabled,hoverItem:hoverItem};}var _sfc_main$l=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:true,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:false}},setup:function setup(props){var ns=useNamespace("select");var states=reactive({index:-1,groupDisabled:false,visible:true,hitState:false,hover:false});var _useOption=useOption(props,states),currentLabel=_useOption.currentLabel,itemSelected=_useOption.itemSelected,isDisabled=_useOption.isDisabled,select=_useOption.select,hoverItem=_useOption.hoverItem;var _toRefs2=toRefs(states),visible=_toRefs2.visible,hover=_toRefs2.hover;var vm=getCurrentInstance().proxy;var key=vm.value;select.onOptionCreate(vm);onBeforeUnmount(function(){var selected=select.selected;var selectedOptions=select.props.multiple?selected:[selected];var doesSelected=selectedOptions.some(function(item){return item.value===vm.value;});if(select.cachedOptions.get(key)===vm&&!doesSelected){nextTick(function(){select.cachedOptions.delete(key);});}select.onOptionDestroy(key,vm);});function selectOptionClick(){if(props.disabled!==true&&states.groupDisabled!==true){select.handleOptionSelect(vm,true);}}return{ns:ns,currentLabel:currentLabel,itemSelected:itemSelected,isDisabled:isDisabled,select:select,hoverItem:hoverItem,visible:visible,hover:hover,selectOptionClick:selectOptionClick,states:states};}});function _sfc_render$7(_ctx,_cache,$props,$setup,$data,$options){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([_ctx.ns.be("dropdown","item"),_ctx.ns.is("disabled",_ctx.isDisabled),{selected:_ctx.itemSelected,hover:_ctx.hover}]),onMouseenter:_cache[0]||(_cache[0]=function(){return _ctx.hoverItem&&_ctx.hoverItem.apply(_ctx,arguments);}),onClick:_cache[1]||(_cache[1]=withModifiers(function(){return _ctx.selectOptionClick&&_ctx.selectOptionClick.apply(_ctx,arguments);},["stop"]))},[renderSlot(_ctx.$slots,"default",{},function(){return[createBaseVNode("span",null,toDisplayString(_ctx.currentLabel),1)];})],34)),[[vShow,_ctx.visible]]);}var Option=/* @__PURE__ */_export_sfc$1(_sfc_main$l,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);var _sfc_main$k=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup:function setup(){var select=inject(selectKey);var ns=useNamespace("select");var popperClass=computed(function(){return select.props.popperClass;});var isMultiple=computed(function(){return select.props.multiple;});var isFitInputWidth=computed(function(){return select.props.fitInputWidth;});var minWidth=ref("");function updateMinWidth(){var _a;minWidth.value="".concat((_a=select.selectWrapper)==null?void 0:_a.getBoundingClientRect().width,"px");}onMounted(function(){updateMinWidth();useResizeObserver(select.selectWrapper,updateMinWidth);});return{ns:ns,minWidth:minWidth,popperClass:popperClass,isMultiple:isMultiple,isFitInputWidth:isFitInputWidth};}});function _sfc_render$6(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("div",{class:normalizeClass([_ctx.ns.b("dropdown"),_ctx.ns.is("multiple",_ctx.isMultiple),_ctx.popperClass]),style:normalizeStyle(_defineProperty2({},_ctx.isFitInputWidth?"width":"minWidth",_ctx.minWidth))},[renderSlot(_ctx.$slots,"default")],6);}var ElSelectMenu=/* @__PURE__ */_export_sfc$1(_sfc_main$k,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates(props){var _useLocale15=useLocale(),t=_useLocale15.t;return reactive({options:/* @__PURE__ */new Map(),cachedOptions:/* @__PURE__ */new Map(),createdLabel:null,createdSelected:false,selected:props.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:false,softFocus:false,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:false,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:false,isOnComposition:false,isSilentBlur:false,prefixWidth:11,tagInMultiLine:false});}var useSelect=function useSelect(props,states,ctx){var _useLocale16=useLocale(),t=_useLocale16.t;var ns=useNamespace("select");var reference=ref(null);var input=ref(null);var tooltipRef=ref(null);var tags=ref(null);var selectWrapper=ref(null);var scrollbar=ref(null);var hoverOption=ref(-1);var queryChange=shallowRef({query:""});var groupQueryChange=shallowRef("");var elForm=inject(formContextKey,{});var elFormItem=inject(formItemContextKey,{});var readonly=computed(function(){return!props.filterable||props.multiple||!states.visible;});var selectDisabled=computed(function(){return props.disabled||elForm.disabled;});var showClose=computed(function(){var hasValue=props.multiple?Array.isArray(props.modelValue)&&props.modelValue.length>0:props.modelValue!==void 0&&props.modelValue!==null&&props.modelValue!=="";var criteria=props.clearable&&!selectDisabled.value&&states.inputHovering&&hasValue;return criteria;});var iconComponent=computed(function(){return props.remote&&props.filterable?"":props.suffixIcon;});var iconReverse=computed(function(){return ns.is("reverse",iconComponent.value&&states.visible);});var debounce$1=computed(function(){return props.remote?300:0;});var emptyText=computed(function(){if(props.loading){return props.loadingText||t("el.select.loading");}else{if(props.remote&&states.query===""&&states.options.size===0)return false;if(props.filterable&&states.query&&states.options.size>0&&states.filteredOptionsCount===0){return props.noMatchText||t("el.select.noMatch");}if(states.options.size===0){return props.noDataText||t("el.select.noData");}}return null;});var optionsArray=computed(function(){return Array.from(states.options.values());});var cachedOptionsArray=computed(function(){return Array.from(states.cachedOptions.values());});var showNewOption=computed(function(){var hasExistingOption=optionsArray.value.filter(function(option){return!option.created;}).some(function(option){return option.currentLabel===states.query;});return props.filterable&&props.allowCreate&&states.query!==""&&!hasExistingOption;});var selectSize=useSize();var collapseTagSize=computed(function(){return["small"].includes(selectSize.value)?"small":"default";});var dropMenuVisible=computed({get:function get(){return states.visible&&emptyText.value!==false;},set:function set(val){states.visible=val;}});watch([function(){return selectDisabled.value;},function(){return selectSize.value;},function(){return elForm.size;}],function(){nextTick(function(){resetInputHeight();});});watch(function(){return props.placeholder;},function(val){states.cachedPlaceHolder=states.currentPlaceholder=val;});watch(function(){return props.modelValue;},function(val,oldVal){var _a;if(props.multiple){resetInputHeight();if(val&&val.length>0||input.value&&states.query!==""){states.currentPlaceholder="";}else{states.currentPlaceholder=states.cachedPlaceHolder;}if(props.filterable&&!props.reserveKeyword){states.query="";handleQueryChange(states.query);}}setSelected();if(props.filterable&&!props.multiple){states.inputLength=20;}if(!isEqual(val,oldVal)){(_a=elFormItem.validate)==null?void 0:_a.call(elFormItem,"change").catch(function(err){return debugWarn();});}},{flush:"post",deep:true});watch(function(){return states.visible;},function(val){var _a,_b,_c;if(!val){input.value&&input.value.blur();states.query="";states.previousQuery=null;states.selectedLabel="";states.inputLength=20;states.menuVisibleOnFocus=false;resetHoverIndex();nextTick(function(){if(input.value&&input.value.value===""&&states.selected.length===0){states.currentPlaceholder=states.cachedPlaceHolder;}});if(!props.multiple){if(states.selected){if(props.filterable&&props.allowCreate&&states.createdSelected&&states.createdLabel){states.selectedLabel=states.createdLabel;}else{states.selectedLabel=states.selected.currentLabel;}if(props.filterable)states.query=states.selectedLabel;}if(props.filterable){states.currentPlaceholder=states.cachedPlaceHolder;}}}else{(_b=(_a=tooltipRef.value)==null?void 0:_a.updatePopper)==null?void 0:_b.call(_a);if(props.filterable){states.filteredOptionsCount=states.optionsCount;states.query=props.remote?"":states.selectedLabel;if(props.multiple){(_c=input.value)==null?void 0:_c.focus();}else{if(states.selectedLabel){states.currentPlaceholder="".concat(states.selectedLabel);states.selectedLabel="";}}handleQueryChange(states.query);if(!props.multiple&&!props.remote){queryChange.value.query="";triggerRef(queryChange);triggerRef(groupQueryChange);}}}ctx.emit("visible-change",val);});watch(function(){return states.options.entries();},function(){var _a,_b,_c;if(!isClient)return;(_b=(_a=tooltipRef.value)==null?void 0:_a.updatePopper)==null?void 0:_b.call(_a);if(props.multiple){resetInputHeight();}var inputs=((_c=selectWrapper.value)==null?void 0:_c.querySelectorAll("input"))||[];if(!Array.from(inputs).includes(document.activeElement)){setSelected();}if(props.defaultFirstOption&&(props.filterable||props.remote)&&states.filteredOptionsCount){checkDefaultFirstOption();}},{flush:"post"});watch(function(){return states.hoverIndex;},function(val){if(typeof val==="number"&&val>-1){hoverOption.value=optionsArray.value[val]||{};}optionsArray.value.forEach(function(option){option.hover=hoverOption.value===option;});});var resetInputHeight=function resetInputHeight(){if(props.collapseTags&&!props.filterable)return;nextTick(function(){var _a,_b;if(!reference.value)return;var input2=reference.value.$el.querySelector("input");var _tags=tags.value;var sizeInMap=getComponentSize(selectSize.value||elForm.size);input2.style.height="".concat(states.selected.length===0?sizeInMap:Math.max(_tags?_tags.clientHeight+(_tags.clientHeight>sizeInMap?6:0):0,sizeInMap)-2,"px");states.tagInMultiLine=Number.parseFloat(input2.style.height)>=sizeInMap;if(states.visible&&emptyText.value!==false){(_b=(_a=tooltipRef.value)==null?void 0:_a.updatePopper)==null?void 0:_b.call(_a);}});};var handleQueryChange=function handleQueryChange(val){if(states.previousQuery===val||states.isOnComposition)return;if(states.previousQuery===null&&(typeof props.filterMethod==="function"||typeof props.remoteMethod==="function")){states.previousQuery=val;return;}states.previousQuery=val;nextTick(function(){var _a,_b;if(states.visible)(_b=(_a=tooltipRef.value)==null?void 0:_a.updatePopper)==null?void 0:_b.call(_a);});states.hoverIndex=-1;if(props.multiple&&props.filterable){nextTick(function(){var length=input.value.value.length*15+20;states.inputLength=props.collapseTags?Math.min(50,length):length;managePlaceholder();resetInputHeight();});}if(props.remote&&typeof props.remoteMethod==="function"){states.hoverIndex=-1;props.remoteMethod(val);}else if(typeof props.filterMethod==="function"){props.filterMethod(val);triggerRef(groupQueryChange);}else{states.filteredOptionsCount=states.optionsCount;queryChange.value.query=val;triggerRef(queryChange);triggerRef(groupQueryChange);}if(props.defaultFirstOption&&(props.filterable||props.remote)&&states.filteredOptionsCount){checkDefaultFirstOption();}};var managePlaceholder=function managePlaceholder(){if(states.currentPlaceholder!==""){states.currentPlaceholder=input.value.value?"":states.cachedPlaceHolder;}};var checkDefaultFirstOption=function checkDefaultFirstOption(){var optionsInDropdown=optionsArray.value.filter(function(n){return n.visible&&!n.disabled&&!n.states.groupDisabled;});var userCreatedOption=optionsInDropdown.find(function(n){return n.created;});var firstOriginOption=optionsInDropdown[0];states.hoverIndex=getValueIndex(optionsArray.value,userCreatedOption||firstOriginOption);};var setSelected=function setSelected(){var _a;if(!props.multiple){var option=getOption(props.modelValue);if((_a=option.props)==null?void 0:_a.created){states.createdLabel=option.props.value;states.createdSelected=true;}else{states.createdSelected=false;}states.selectedLabel=option.currentLabel;states.selected=option;if(props.filterable)states.query=states.selectedLabel;return;}else{states.selectedLabel="";}var result=[];if(Array.isArray(props.modelValue)){props.modelValue.forEach(function(value){result.push(getOption(value));});}states.selected=result;nextTick(function(){resetInputHeight();});};var getOption=function getOption(value){var option;var isObjectValue=toRawType(value).toLowerCase()==="object";var isNull=toRawType(value).toLowerCase()==="null";var isUndefined=toRawType(value).toLowerCase()==="undefined";for(var _i47=states.cachedOptions.size-1;_i47>=0;_i47--){var cachedOption=cachedOptionsArray.value[_i47];var isEqualValue=isObjectValue?get(cachedOption.value,props.valueKey)===get(value,props.valueKey):cachedOption.value===value;if(isEqualValue){option={value:value,currentLabel:cachedOption.currentLabel,isDisabled:cachedOption.isDisabled};break;}}if(option)return option;var label=isObjectValue?value.label:!isNull&&!isUndefined?value:"";var newOption={value:value,currentLabel:label};if(props.multiple){newOption.hitState=false;}return newOption;};var resetHoverIndex=function resetHoverIndex(){setTimeout(function(){var valueKey=props.valueKey;if(!props.multiple){states.hoverIndex=optionsArray.value.findIndex(function(item){return getValueKey(item)===getValueKey(states.selected);});}else{if(states.selected.length>0){states.hoverIndex=Math.min.apply(null,states.selected.map(function(selected){return optionsArray.value.findIndex(function(item){return get(item,valueKey)===get(selected,valueKey);});}));}else{states.hoverIndex=-1;}}},300);};var handleResize=function handleResize(){var _a,_b;resetInputWidth();(_b=(_a=tooltipRef.value)==null?void 0:_a.updatePopper)==null?void 0:_b.call(_a);if(props.multiple&&!props.filterable)resetInputHeight();};var resetInputWidth=function resetInputWidth(){var _a;states.inputWidth=(_a=reference.value)==null?void 0:_a.$el.getBoundingClientRect().width;};var onInputChange=function onInputChange(){if(props.filterable&&states.query!==states.selectedLabel){states.query=states.selectedLabel;handleQueryChange(states.query);}};var debouncedOnInputChange=debounce(function(){onInputChange();},debounce$1.value);var debouncedQueryChange=debounce(function(e){handleQueryChange(e.target.value);},debounce$1.value);var emitChange=function emitChange(val){if(!isEqual(props.modelValue,val)){ctx.emit(CHANGE_EVENT,val);}};var deletePrevTag=function deletePrevTag(e){if(e.target.value.length<=0&&!toggleLastOptionHitState()){var value=props.modelValue.slice();value.pop();ctx.emit(UPDATE_MODEL_EVENT,value);emitChange(value);}if(e.target.value.length===1&&props.modelValue.length===0){states.currentPlaceholder=states.cachedPlaceHolder;}};var deleteTag=function deleteTag(event,tag){var index=states.selected.indexOf(tag);if(index>-1&&!selectDisabled.value){var value=props.modelValue.slice();value.splice(index,1);ctx.emit(UPDATE_MODEL_EVENT,value);emitChange(value);ctx.emit("remove-tag",tag.value);}event.stopPropagation();};var deleteSelected=function deleteSelected(event){event.stopPropagation();var value=props.multiple?[]:"";if(typeof value!=="string"){var _iterator15=_createForOfIteratorHelper(states.selected),_step16;try{for(_iterator15.s();!(_step16=_iterator15.n()).done;){var item=_step16.value;if(item.isDisabled)value.push(item.value);}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}}ctx.emit(UPDATE_MODEL_EVENT,value);emitChange(value);states.visible=false;ctx.emit("clear");};var handleOptionSelect=function handleOptionSelect(option,byClick){var _a;if(props.multiple){var value=(props.modelValue||[]).slice();var optionIndex=getValueIndex(value,option.value);if(optionIndex>-1){value.splice(optionIndex,1);}else if(props.multipleLimit<=0||value.length<props.multipleLimit){value.push(option.value);}ctx.emit(UPDATE_MODEL_EVENT,value);emitChange(value);if(option.created){states.query="";handleQueryChange("");states.inputLength=20;}if(props.filterable)(_a=input.value)==null?void 0:_a.focus();}else{ctx.emit(UPDATE_MODEL_EVENT,option.value);emitChange(option.value);states.visible=false;}states.isSilentBlur=byClick;setSoftFocus();if(states.visible)return;nextTick(function(){scrollToOption(option);});};var getValueIndex=function getValueIndex(){var arr=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var value=arguments.length>1?arguments[1]:undefined;if(!isObject$2(value))return arr.indexOf(value);var valueKey=props.valueKey;var index=-1;arr.some(function(item,i){if(get(item,valueKey)===get(value,valueKey)){index=i;return true;}return false;});return index;};var setSoftFocus=function setSoftFocus(){states.softFocus=true;var _input=input.value||reference.value;if(_input){_input==null?void 0:_input.focus();}};var scrollToOption=function scrollToOption(option){var _a,_b,_c,_d,_e;var targetOption=Array.isArray(option)?option[0]:option;var target=null;if(targetOption==null?void 0:targetOption.value){var options=optionsArray.value.filter(function(item){return item.value===targetOption.value;});if(options.length>0){target=options[0].$el;}}if(tooltipRef.value&&target){var menu=(_d=(_c=(_b=(_a=tooltipRef.value)==null?void 0:_a.popperRef)==null?void 0:_b.contentRef)==null?void 0:_c.querySelector)==null?void 0:_d.call(_c,".".concat(ns.be("dropdown","wrap")));if(menu){scrollIntoView(menu,target);}}(_e=scrollbar.value)==null?void 0:_e.handleScroll();};var onOptionCreate=function onOptionCreate(vm){states.optionsCount++;states.filteredOptionsCount++;states.options.set(vm.value,vm);states.cachedOptions.set(vm.value,vm);};var onOptionDestroy=function onOptionDestroy(key,vm){if(states.options.get(key)===vm){states.optionsCount--;states.filteredOptionsCount--;states.options.delete(key);}};var resetInputState=function resetInputState(e){if(e.code!==EVENT_CODE.backspace)toggleLastOptionHitState(false);states.inputLength=input.value.value.length*15+20;resetInputHeight();};var toggleLastOptionHitState=function toggleLastOptionHitState(hit){if(!Array.isArray(states.selected))return;var option=states.selected[states.selected.length-1];if(!option)return;if(hit===true||hit===false){option.hitState=hit;return hit;}option.hitState=!option.hitState;return option.hitState;};var handleComposition=function handleComposition(event){var text=event.target.value;if(event.type==="compositionend"){states.isOnComposition=false;nextTick(function(){return handleQueryChange(text);});}else{var lastCharacter=text[text.length-1]||"";states.isOnComposition=!isKorean(lastCharacter);}};var handleMenuEnter=function handleMenuEnter(){nextTick(function(){return scrollToOption(states.selected);});};var handleFocus=function handleFocus(event){if(!states.softFocus){if(props.automaticDropdown||props.filterable){if(props.filterable&&!states.visible){states.menuVisibleOnFocus=true;}states.visible=true;}ctx.emit("focus",event);}else{states.softFocus=false;}};var blur=function blur(){var _a;states.visible=false;(_a=reference.value)==null?void 0:_a.blur();};var handleBlur=function handleBlur(event){nextTick(function(){if(states.isSilentBlur){states.isSilentBlur=false;}else{ctx.emit("blur",event);}});states.softFocus=false;};var handleClearClick=function handleClearClick(event){deleteSelected(event);};var handleClose=function handleClose(){states.visible=false;};var handleKeydownEscape=function handleKeydownEscape(event){if(states.visible){event.preventDefault();event.stopPropagation();states.visible=false;}};var toggleMenu=function toggleMenu(){var _a;if(props.automaticDropdown)return;if(!selectDisabled.value){if(states.menuVisibleOnFocus){states.menuVisibleOnFocus=false;}else{states.visible=!states.visible;}if(states.visible){(_a=input.value||reference.value)==null?void 0:_a.focus();}}};var selectOption=function selectOption(){if(!states.visible){toggleMenu();}else{if(optionsArray.value[states.hoverIndex]){handleOptionSelect(optionsArray.value[states.hoverIndex],void 0);}}};var getValueKey=function getValueKey(item){return isObject$2(item.value)?get(item.value,props.valueKey):item.value;};var optionsAllDisabled=computed(function(){return optionsArray.value.filter(function(option){return option.visible;}).every(function(option){return option.disabled;});});var navigateOptions=function navigateOptions(direction){if(!states.visible){states.visible=true;return;}if(states.options.size===0||states.filteredOptionsCount===0)return;if(states.isOnComposition)return;if(!optionsAllDisabled.value){if(direction==="next"){states.hoverIndex++;if(states.hoverIndex===states.options.size){states.hoverIndex=0;}}else if(direction==="prev"){states.hoverIndex--;if(states.hoverIndex<0){states.hoverIndex=states.options.size-1;}}var option=optionsArray.value[states.hoverIndex];if(option.disabled===true||option.states.groupDisabled===true||!option.visible){navigateOptions(direction);}nextTick(function(){return scrollToOption(hoverOption.value);});}};return{optionsArray:optionsArray,selectSize:selectSize,handleResize:handleResize,debouncedOnInputChange:debouncedOnInputChange,debouncedQueryChange:debouncedQueryChange,deletePrevTag:deletePrevTag,deleteTag:deleteTag,deleteSelected:deleteSelected,handleOptionSelect:handleOptionSelect,scrollToOption:scrollToOption,readonly:readonly,resetInputHeight:resetInputHeight,showClose:showClose,iconComponent:iconComponent,iconReverse:iconReverse,showNewOption:showNewOption,collapseTagSize:collapseTagSize,setSelected:setSelected,managePlaceholder:managePlaceholder,selectDisabled:selectDisabled,emptyText:emptyText,toggleLastOptionHitState:toggleLastOptionHitState,resetInputState:resetInputState,handleComposition:handleComposition,onOptionCreate:onOptionCreate,onOptionDestroy:onOptionDestroy,handleMenuEnter:handleMenuEnter,handleFocus:handleFocus,blur:blur,handleBlur:handleBlur,handleClearClick:handleClearClick,handleClose:handleClose,handleKeydownEscape:handleKeydownEscape,toggleMenu:toggleMenu,selectOption:selectOption,getValueKey:getValueKey,navigateOptions:navigateOptions,dropMenuVisible:dropMenuVisible,queryChange:queryChange,groupQueryChange:groupQueryChange,reference:reference,input:input,tooltipRef:tooltipRef,tags:tags,selectWrapper:selectWrapper,scrollbar:scrollbar};};var COMPONENT_NAME$2="ElSelect";var _sfc_main$j=defineComponent({name:COMPONENT_NAME$2,componentName:COMPONENT_NAME$2,components:{ElInput:ElInput,ElSelectMenu:ElSelectMenu,ElOption:Option,ElTag:ElTag,ElScrollbar:ElScrollbar,ElTooltip:ElTooltip,ElIcon:ElIcon},directives:{ClickOutside:ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:true},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:false},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:true},clearIcon:{type:[String,Object],default:circle_close_default},fitInputWidth:{type:Boolean,default:false},suffixIcon:{type:[String,Object],default:arrow_up_default},tagType:_objectSpread(_objectSpread({},tagProps.type),{},{default:"info"})},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup:function setup(props,ctx){var nsSelect=useNamespace("select");var nsInput=useNamespace("input");var _useLocale17=useLocale(),t=_useLocale17.t;var states=useSelectStates(props);var _useSelect=useSelect(props,states,ctx),optionsArray=_useSelect.optionsArray,selectSize=_useSelect.selectSize,readonly=_useSelect.readonly,handleResize=_useSelect.handleResize,collapseTagSize=_useSelect.collapseTagSize,debouncedOnInputChange=_useSelect.debouncedOnInputChange,debouncedQueryChange=_useSelect.debouncedQueryChange,deletePrevTag=_useSelect.deletePrevTag,deleteTag=_useSelect.deleteTag,deleteSelected=_useSelect.deleteSelected,handleOptionSelect=_useSelect.handleOptionSelect,scrollToOption=_useSelect.scrollToOption,setSelected=_useSelect.setSelected,resetInputHeight=_useSelect.resetInputHeight,managePlaceholder=_useSelect.managePlaceholder,showClose=_useSelect.showClose,selectDisabled=_useSelect.selectDisabled,iconComponent=_useSelect.iconComponent,iconReverse=_useSelect.iconReverse,showNewOption=_useSelect.showNewOption,emptyText=_useSelect.emptyText,toggleLastOptionHitState=_useSelect.toggleLastOptionHitState,resetInputState=_useSelect.resetInputState,handleComposition=_useSelect.handleComposition,onOptionCreate=_useSelect.onOptionCreate,onOptionDestroy=_useSelect.onOptionDestroy,handleMenuEnter=_useSelect.handleMenuEnter,handleFocus=_useSelect.handleFocus,blur=_useSelect.blur,handleBlur=_useSelect.handleBlur,handleClearClick=_useSelect.handleClearClick,handleClose=_useSelect.handleClose,handleKeydownEscape=_useSelect.handleKeydownEscape,toggleMenu=_useSelect.toggleMenu,selectOption=_useSelect.selectOption,getValueKey=_useSelect.getValueKey,navigateOptions=_useSelect.navigateOptions,dropMenuVisible=_useSelect.dropMenuVisible,reference=_useSelect.reference,input=_useSelect.input,tooltipRef=_useSelect.tooltipRef,tags=_useSelect.tags,selectWrapper=_useSelect.selectWrapper,scrollbar=_useSelect.scrollbar,queryChange=_useSelect.queryChange,groupQueryChange=_useSelect.groupQueryChange;var _useFocus=useFocus(reference),focus=_useFocus.focus;var _toRefs3=toRefs(states),inputWidth=_toRefs3.inputWidth,selected=_toRefs3.selected,inputLength=_toRefs3.inputLength,filteredOptionsCount=_toRefs3.filteredOptionsCount,visible=_toRefs3.visible,softFocus=_toRefs3.softFocus,selectedLabel=_toRefs3.selectedLabel,hoverIndex=_toRefs3.hoverIndex,query=_toRefs3.query,inputHovering=_toRefs3.inputHovering,currentPlaceholder=_toRefs3.currentPlaceholder,menuVisibleOnFocus=_toRefs3.menuVisibleOnFocus,isOnComposition=_toRefs3.isOnComposition,isSilentBlur=_toRefs3.isSilentBlur,options=_toRefs3.options,cachedOptions=_toRefs3.cachedOptions,optionsCount=_toRefs3.optionsCount,prefixWidth=_toRefs3.prefixWidth,tagInMultiLine=_toRefs3.tagInMultiLine;var wrapperKls=computed(function(){var classList=[nsSelect.b()];var _selectSize=unref(selectSize);if(_selectSize){classList.push(nsSelect.m(_selectSize));}if(props.disabled){classList.push(nsSelect.m("disabled"));}return classList;});var selectTagsStyle=computed(function(){return{maxWidth:"".concat(unref(inputWidth)-32,"px"),width:"100%"};});provide(selectKey,reactive({props:props,options:options,optionsArray:optionsArray,cachedOptions:cachedOptions,optionsCount:optionsCount,filteredOptionsCount:filteredOptionsCount,hoverIndex:hoverIndex,handleOptionSelect:handleOptionSelect,onOptionCreate:onOptionCreate,onOptionDestroy:onOptionDestroy,selectWrapper:selectWrapper,selected:selected,setSelected:setSelected,queryChange:queryChange,groupQueryChange:groupQueryChange}));onMounted(function(){states.cachedPlaceHolder=currentPlaceholder.value=props.placeholder||t("el.select.placeholder");if(props.multiple&&Array.isArray(props.modelValue)&&props.modelValue.length>0){currentPlaceholder.value="";}useResizeObserver(selectWrapper,handleResize);if(props.remote&&props.multiple){resetInputHeight();}nextTick(function(){var refEl=reference.value&&reference.value.$el;if(!refEl)return;inputWidth.value=refEl.getBoundingClientRect().width;if(ctx.slots.prefix){var prefix=refEl.querySelector(".".concat(nsInput.e("prefix")));prefixWidth.value=Math.max(prefix.getBoundingClientRect().width+5,30);}});setSelected();});if(props.multiple&&!Array.isArray(props.modelValue)){ctx.emit(UPDATE_MODEL_EVENT,[]);}if(!props.multiple&&Array.isArray(props.modelValue)){ctx.emit(UPDATE_MODEL_EVENT,"");}var popperPaneRef=computed(function(){var _a,_b;return(_b=(_a=tooltipRef.value)==null?void 0:_a.popperRef)==null?void 0:_b.contentRef;});return{tagInMultiLine:tagInMultiLine,prefixWidth:prefixWidth,selectSize:selectSize,readonly:readonly,handleResize:handleResize,collapseTagSize:collapseTagSize,debouncedOnInputChange:debouncedOnInputChange,debouncedQueryChange:debouncedQueryChange,deletePrevTag:deletePrevTag,deleteTag:deleteTag,deleteSelected:deleteSelected,handleOptionSelect:handleOptionSelect,scrollToOption:scrollToOption,inputWidth:inputWidth,selected:selected,inputLength:inputLength,filteredOptionsCount:filteredOptionsCount,visible:visible,softFocus:softFocus,selectedLabel:selectedLabel,hoverIndex:hoverIndex,query:query,inputHovering:inputHovering,currentPlaceholder:currentPlaceholder,menuVisibleOnFocus:menuVisibleOnFocus,isOnComposition:isOnComposition,isSilentBlur:isSilentBlur,options:options,resetInputHeight:resetInputHeight,managePlaceholder:managePlaceholder,showClose:showClose,selectDisabled:selectDisabled,iconComponent:iconComponent,iconReverse:iconReverse,showNewOption:showNewOption,emptyText:emptyText,toggleLastOptionHitState:toggleLastOptionHitState,resetInputState:resetInputState,handleComposition:handleComposition,handleMenuEnter:handleMenuEnter,handleFocus:handleFocus,blur:blur,handleBlur:handleBlur,handleClearClick:handleClearClick,handleClose:handleClose,handleKeydownEscape:handleKeydownEscape,toggleMenu:toggleMenu,selectOption:selectOption,getValueKey:getValueKey,navigateOptions:navigateOptions,dropMenuVisible:dropMenuVisible,focus:focus,reference:reference,input:input,tooltipRef:tooltipRef,popperPaneRef:popperPaneRef,tags:tags,selectWrapper:selectWrapper,scrollbar:scrollbar,wrapperKls:wrapperKls,selectTagsStyle:selectTagsStyle,nsSelect:nsSelect};}});var _hoisted_1$b={class:"select-trigger"};var _hoisted_2$6=["disabled","autocomplete"];var _hoisted_3$4={style:{"height":"100%","display":"flex","justify-content":"center","align-items":"center"}};function _sfc_render$5(_ctx,_cache,$props,$setup,$data,$options){var _component_el_tag=resolveComponent("el-tag");var _component_el_tooltip=resolveComponent("el-tooltip");var _component_el_icon=resolveComponent("el-icon");var _component_el_input=resolveComponent("el-input");var _component_el_option=resolveComponent("el-option");var _component_el_scrollbar=resolveComponent("el-scrollbar");var _component_el_select_menu=resolveComponent("el-select-menu");var _directive_click_outside=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass(_ctx.wrapperKls),onClick:_cache[23]||(_cache[23]=withModifiers(function(){return _ctx.toggleMenu&&_ctx.toggleMenu.apply(_ctx,arguments);},["stop"]))},[createVNode(_component_el_tooltip,{ref:"tooltipRef",visible:_ctx.dropMenuVisible,"onUpdate:visible":_cache[22]||(_cache[22]=function($event){return _ctx.dropMenuVisible=$event;}),placement:"bottom-start",teleported:_ctx.teleported,"popper-class":[_ctx.nsSelect.e("popper"),_ctx.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:_ctx.effect,pure:"",trigger:"click",transition:"".concat(_ctx.nsSelect.namespace.value,"-zoom-in-top"),"stop-popper-mouse-event":false,"gpu-acceleration":false,persistent:_ctx.persistent,onShow:_ctx.handleMenuEnter},{default:withCtx(function(){return[createBaseVNode("div",_hoisted_1$b,[_ctx.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass(_ctx.nsSelect.e("tags")),style:normalizeStyle(_ctx.selectTagsStyle)},[_ctx.collapseTags&&_ctx.selected.length?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([_ctx.nsSelect.b("tags-wrapper"),{"has-prefix":_ctx.prefixWidth&&_ctx.selected.length}])},[createVNode(_component_el_tag,{closable:!_ctx.selectDisabled&&!_ctx.selected[0].isDisabled,size:_ctx.collapseTagSize,hit:_ctx.selected[0].hitState,type:_ctx.tagType,"disable-transitions":"",onClose:_cache[0]||(_cache[0]=function($event){return _ctx.deleteTag($event,_ctx.selected[0]);})},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass(_ctx.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:_ctx.inputWidth-123+"px"})},toDisplayString(_ctx.selected[0].currentLabel),7)];}),_:1},8,["closable","size","hit","type"]),_ctx.selected.length>1?(openBlock(),createBlock(_component_el_tag,{key:0,closable:false,size:_ctx.collapseTagSize,type:_ctx.tagType,"disable-transitions":""},{default:withCtx(function(){return[_ctx.collapseTagsTooltip?(openBlock(),createBlock(_component_el_tooltip,{key:0,disabled:_ctx.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:_ctx.effect,placement:"bottom",teleported:false},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass(_ctx.nsSelect.e("tags-text"))},"+ "+toDisplayString(_ctx.selected.length-1),3)];}),content:withCtx(function(){return[createBaseVNode("div",{class:normalizeClass(_ctx.nsSelect.e("collapse-tags"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(_ctx.selected,function(item,idx){return openBlock(),createElementBlock("div",{key:idx,class:normalizeClass(_ctx.nsSelect.e("collapse-tag"))},[(openBlock(),createBlock(_component_el_tag,{key:_ctx.getValueKey(item),class:"in-tooltip",closable:!_ctx.selectDisabled&&!item.isDisabled,size:_ctx.collapseTagSize,hit:item.hitState,type:_ctx.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:function onClose($event){return _ctx.deleteTag($event,item);}},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass(_ctx.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:_ctx.inputWidth-75+"px"})},toDisplayString(item.currentLabel),7)];}),_:2},1032,["closable","size","hit","type","onClose"]))],2);}),128))],2)];}),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(_ctx.nsSelect.e("tags-text"))},"+ "+toDisplayString(_ctx.selected.length-1),3))];}),_:1},8,["size","type"])):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true),createCommentVNode(" <div> "),!_ctx.collapseTags?(openBlock(),createBlock(Transition,{key:1,onAfterLeave:_ctx.resetInputHeight},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass([_ctx.nsSelect.b("tags-wrapper"),{"has-prefix":_ctx.prefixWidth&&_ctx.selected.length}])},[(openBlock(true),createElementBlock(Fragment,null,renderList(_ctx.selected,function(item){return openBlock(),createBlock(_component_el_tag,{key:_ctx.getValueKey(item),closable:!_ctx.selectDisabled&&!item.isDisabled,size:_ctx.collapseTagSize,hit:item.hitState,type:_ctx.tagType,"disable-transitions":"",onClose:function onClose($event){return _ctx.deleteTag($event,item);}},{default:withCtx(function(){return[createBaseVNode("span",{class:normalizeClass(_ctx.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:_ctx.inputWidth-75+"px"})},toDisplayString(item.currentLabel),7)];}),_:2},1032,["closable","size","hit","type","onClose"]);}),128))],2)];}),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",true),createCommentVNode(" </div> "),_ctx.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":_cache[1]||(_cache[1]=function($event){return _ctx.query=$event;}),type:"text",class:normalizeClass([_ctx.nsSelect.e("input"),_ctx.nsSelect.is(_ctx.selectSize)]),disabled:_ctx.selectDisabled,autocomplete:_ctx.autocomplete,style:normalizeStyle({marginLeft:_ctx.prefixWidth&&!_ctx.selected.length||_ctx.tagInMultiLine?"".concat(_ctx.prefixWidth,"px"):"",flexGrow:1,width:"".concat(_ctx.inputLength/(_ctx.inputWidth-32),"%"),maxWidth:"".concat(_ctx.inputWidth-42,"px")}),onFocus:_cache[2]||(_cache[2]=function(){return _ctx.handleFocus&&_ctx.handleFocus.apply(_ctx,arguments);}),onBlur:_cache[3]||(_cache[3]=function(){return _ctx.handleBlur&&_ctx.handleBlur.apply(_ctx,arguments);}),onKeyup:_cache[4]||(_cache[4]=function(){return _ctx.managePlaceholder&&_ctx.managePlaceholder.apply(_ctx,arguments);}),onKeydown:[_cache[5]||(_cache[5]=function(){return _ctx.resetInputState&&_ctx.resetInputState.apply(_ctx,arguments);}),_cache[6]||(_cache[6]=withKeys(withModifiers(function($event){return _ctx.navigateOptions("next");},["prevent"]),["down"])),_cache[7]||(_cache[7]=withKeys(withModifiers(function($event){return _ctx.navigateOptions("prev");},["prevent"]),["up"])),_cache[8]||(_cache[8]=withKeys(function(){return _ctx.handleKeydownEscape&&_ctx.handleKeydownEscape.apply(_ctx,arguments);},["esc"])),_cache[9]||(_cache[9]=withKeys(withModifiers(function(){return _ctx.selectOption&&_ctx.selectOption.apply(_ctx,arguments);},["stop","prevent"]),["enter"])),_cache[10]||(_cache[10]=withKeys(function(){return _ctx.deletePrevTag&&_ctx.deletePrevTag.apply(_ctx,arguments);},["delete"])),_cache[11]||(_cache[11]=withKeys(function($event){return _ctx.visible=false;},["tab"]))],onCompositionstart:_cache[12]||(_cache[12]=function(){return _ctx.handleComposition&&_ctx.handleComposition.apply(_ctx,arguments);}),onCompositionupdate:_cache[13]||(_cache[13]=function(){return _ctx.handleComposition&&_ctx.handleComposition.apply(_ctx,arguments);}),onCompositionend:_cache[14]||(_cache[14]=function(){return _ctx.handleComposition&&_ctx.handleComposition.apply(_ctx,arguments);}),onInput:_cache[15]||(_cache[15]=function(){return _ctx.debouncedQueryChange&&_ctx.debouncedQueryChange.apply(_ctx,arguments);})},null,46,_hoisted_2$6)),[[vModelText,_ctx.query]]):createCommentVNode("v-if",true)],6)):createCommentVNode("v-if",true),createVNode(_component_el_input,{id:_ctx.id,ref:"reference",modelValue:_ctx.selectedLabel,"onUpdate:modelValue":_cache[16]||(_cache[16]=function($event){return _ctx.selectedLabel=$event;}),type:"text",placeholder:_ctx.currentPlaceholder,name:_ctx.name,autocomplete:_ctx.autocomplete,size:_ctx.selectSize,disabled:_ctx.selectDisabled,readonly:_ctx.readonly,"validate-event":false,class:normalizeClass([_ctx.nsSelect.is("focus",_ctx.visible)]),tabindex:_ctx.multiple&&_ctx.filterable?-1:void 0,onFocus:_ctx.handleFocus,onBlur:_ctx.handleBlur,onInput:_ctx.debouncedOnInputChange,onPaste:_ctx.debouncedOnInputChange,onCompositionstart:_ctx.handleComposition,onCompositionupdate:_ctx.handleComposition,onCompositionend:_ctx.handleComposition,onKeydown:[_cache[17]||(_cache[17]=withKeys(withModifiers(function($event){return _ctx.navigateOptions("next");},["stop","prevent"]),["down"])),_cache[18]||(_cache[18]=withKeys(withModifiers(function($event){return _ctx.navigateOptions("prev");},["stop","prevent"]),["up"])),withKeys(withModifiers(_ctx.selectOption,["stop","prevent"]),["enter"]),withKeys(_ctx.handleKeydownEscape,["esc"]),_cache[19]||(_cache[19]=withKeys(function($event){return _ctx.visible=false;},["tab"]))],onMouseenter:_cache[20]||(_cache[20]=function($event){return _ctx.inputHovering=true;}),onMouseleave:_cache[21]||(_cache[21]=function($event){return _ctx.inputHovering=false;})},createSlots({suffix:withCtx(function(){return[_ctx.iconComponent&&!_ctx.showClose?(openBlock(),createBlock(_component_el_icon,{key:0,class:normalizeClass([_ctx.nsSelect.e("caret"),_ctx.nsSelect.e("icon"),_ctx.iconReverse])},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.iconComponent)))];}),_:1},8,["class"])):createCommentVNode("v-if",true),_ctx.showClose&&_ctx.clearIcon?(openBlock(),createBlock(_component_el_icon,{key:1,class:normalizeClass([_ctx.nsSelect.e("caret"),_ctx.nsSelect.e("icon")]),onClick:_ctx.handleClearClick},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.clearIcon)))];}),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)];}),_:2},[_ctx.$slots.prefix?{name:"prefix",fn:withCtx(function(){return[createBaseVNode("div",_hoisted_3$4,[renderSlot(_ctx.$slots,"prefix")])];})}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])];}),content:withCtx(function(){return[createVNode(_component_el_select_menu,null,{default:withCtx(function(){return[withDirectives(createVNode(_component_el_scrollbar,{ref:"scrollbar",tag:"ul","wrap-class":_ctx.nsSelect.be("dropdown","wrap"),"view-class":_ctx.nsSelect.be("dropdown","list"),class:normalizeClass([_ctx.nsSelect.is("empty",!_ctx.allowCreate&&Boolean(_ctx.query)&&_ctx.filteredOptionsCount===0)])},{default:withCtx(function(){return[_ctx.showNewOption?(openBlock(),createBlock(_component_el_option,{key:0,value:_ctx.query,created:true},null,8,["value"])):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"default")];}),_:3},8,["wrap-class","view-class","class"]),[[vShow,_ctx.options.size>0&&!_ctx.loading]]),_ctx.emptyText&&(!_ctx.allowCreate||_ctx.loading||_ctx.allowCreate&&_ctx.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[_ctx.$slots.empty?renderSlot(_ctx.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(_ctx.nsSelect.be("dropdown","empty"))},toDisplayString(_ctx.emptyText),3))],64)):createCommentVNode("v-if",true)];}),_:3})];}),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[_directive_click_outside,_ctx.handleClose,_ctx.popperPaneRef]]);}var Select=/* @__PURE__ */_export_sfc$1(_sfc_main$j,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);var _sfc_main$i=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:false}},setup:function setup(props){var ns=useNamespace("select");var visible=ref(true);var instance=getCurrentInstance();var children=ref([]);provide(selectGroupKey,reactive(_objectSpread({},toRefs(props))));var select=inject(selectKey);onMounted(function(){children.value=flattedChildren(instance.subTree);});var flattedChildren=function flattedChildren(node){var children2=[];if(Array.isArray(node.children)){node.children.forEach(function(child){var _a;if(child.type&&child.type.name==="ElOption"&&child.component&&child.component.proxy){children2.push(child.component.proxy);}else if((_a=child.children)==null?void 0:_a.length){children2.push.apply(children2,_toConsumableArray2(flattedChildren(child)));}});}return children2;};var _toRaw2=toRaw(select),groupQueryChange=_toRaw2.groupQueryChange;watch(groupQueryChange,function(){visible.value=children.value.some(function(option){return option.visible===true;});});return{visible:visible,ns:ns};}});function _sfc_render$4(_ctx,_cache,$props,$setup,$data,$options){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass(_ctx.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(_ctx.ns.be("group","title"))},toDisplayString(_ctx.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(_ctx.ns.b("group"))},[renderSlot(_ctx.$slots,"default")],2)])],2)),[[vShow,_ctx.visible]]);}var OptionGroup=/* @__PURE__ */_export_sfc$1(_sfc_main$i,[["render",_sfc_render$4],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);var ElSelect=exports('a1',withInstall(Select,{Option:Option,OptionGroup:OptionGroup}));var ElOption=exports('a2',withNoopInstall(Option));var ElOptionGroup=exports('a8',withNoopInstall(OptionGroup));var usePagination=function usePagination(){return inject(elPaginationKey,{});};var paginationSizesProps=buildProps({pageSize:{type:Number,required:true},pageSizes:{type:definePropType(Array),default:function _default(){return mutable([10,20,30,40,50,100]);}},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}});var __default__$d={name:"ElPaginationSizes"};var _sfc_main$h=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$d),{},{props:paginationSizesProps,emits:["page-size-change"],setup:function setup(__props,_ref161){var emit=_ref161.emit;var props=__props;var _useLocale18=useLocale(),t=_useLocale18.t;var ns=useNamespace("pagination");var pagination=usePagination();var innerPageSize=ref(props.pageSize);watch(function(){return props.pageSizes;},function(newVal,oldVal){if(isEqual(newVal,oldVal))return;if(Array.isArray(newVal)){var pageSize=newVal.includes(props.pageSize)?props.pageSize:props.pageSizes[0];emit("page-size-change",pageSize);}});watch(function(){return props.pageSize;},function(newVal){innerPageSize.value=newVal;});var innerPageSizes=computed(function(){return props.pageSizes;});function handleChange(val){var _a;if(val!==innerPageSize.value){innerPageSize.value=val;(_a=pagination.handleSizeChange)==null?void 0:_a.call(pagination,Number(val));}}return function(_ctx,_cache){return openBlock(),createElementBlock("span",{class:normalizeClass(unref(ns).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":innerPageSize.value,disabled:_ctx.disabled,"popper-class":_ctx.popperClass,size:_ctx.size,onChange:handleChange},{default:withCtx(function(){return[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(innerPageSizes),function(item){return openBlock(),createBlock(unref(ElOption),{key:item,value:item,label:item+unref(t)("el.pagination.pagesize")},null,8,["value","label"]);}),128))];}),_:1},8,["model-value","disabled","popper-class","size"])],2);};}}));var Sizes=/* @__PURE__ */_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);var _hoisted_1$a=["disabled"];var __default__$c={name:"ElPaginationJumper"};var _sfc_main$g=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$c),{},{setup:function setup(__props){var _useLocale19=useLocale(),t=_useLocale19.t;var ns=useNamespace("pagination");var _usePagination=usePagination(),pageCount=_usePagination.pageCount,disabled=_usePagination.disabled,currentPage=_usePagination.currentPage,changeEvent=_usePagination.changeEvent;var userInput=ref();var innerValue=computed(function(){var _a;return(_a=userInput.value)!=null?_a:currentPage==null?void 0:currentPage.value;});function handleInput(val){userInput.value=+val;}function handleChange(val){val=Math.trunc(+val);changeEvent==null?void 0:changeEvent(+val);userInput.value=void 0;}return function(_ctx,_cache){return openBlock(),createElementBlock("span",{class:normalizeClass(unref(ns).e("jump")),disabled:unref(disabled)},[createTextVNode(toDisplayString(unref(t)("el.pagination.goto"))+" ",1),createVNode(unref(ElInput),{size:"small",class:normalizeClass([unref(ns).e("editor"),unref(ns).is("in-pagination")]),min:1,max:unref(pageCount),disabled:unref(disabled),"model-value":unref(innerValue),type:"number","onUpdate:modelValue":handleInput,onChange:handleChange},null,8,["class","max","disabled","model-value"]),createTextVNode(" "+toDisplayString(unref(t)("el.pagination.pageClassifier")),1)],10,_hoisted_1$a);};}}));var Jumper=/* @__PURE__ */_export_sfc$1(_sfc_main$g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);var paginationTotalProps=buildProps({total:{type:Number,default:1e3}});var _hoisted_1$9=["disabled"];var __default__$b={name:"ElPaginationTotal"};var _sfc_main$f=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$b),{},{props:paginationTotalProps,setup:function setup(__props){var _useLocale20=useLocale(),t=_useLocale20.t;var ns=useNamespace("pagination");var _usePagination2=usePagination(),disabled=_usePagination2.disabled;return function(_ctx,_cache){return openBlock(),createElementBlock("span",{class:normalizeClass(unref(ns).e("total")),disabled:unref(disabled)},toDisplayString(unref(t)("el.pagination.total",{total:_ctx.total})),11,_hoisted_1$9);};}}));var Total=/* @__PURE__ */_export_sfc$1(_sfc_main$f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);var paginationPagerProps=buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:true},pagerCount:{type:Number,default:7},disabled:Boolean});var _hoisted_1$8=["onKeyup"];var _hoisted_2$5=["aria-current"];var _hoisted_3$3=["aria-current"];var _hoisted_4$2=["aria-current"];var __default__$a={name:"ElPaginationPager"};var _sfc_main$e=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$a),{},{props:paginationPagerProps,emits:["change"],setup:function setup(__props,_ref162){var emit=_ref162.emit;var props=__props;var nsPager=useNamespace("pager");var nsIcon=useNamespace("icon");var showPrevMore=ref(false);var showNextMore=ref(false);var quickPrevHover=ref(false);var quickNextHover=ref(false);var pagers=computed(function(){var pagerCount=props.pagerCount;var halfPagerCount=(pagerCount-1)/2;var currentPage=Number(props.currentPage);var pageCount=Number(props.pageCount);var showPrevMore2=false;var showNextMore2=false;if(pageCount>pagerCount){if(currentPage>pagerCount-halfPagerCount){showPrevMore2=true;}if(currentPage<pageCount-halfPagerCount){showNextMore2=true;}}var array=[];if(showPrevMore2&&!showNextMore2){var startPage=pageCount-(pagerCount-2);for(var _i48=startPage;_i48<pageCount;_i48++){array.push(_i48);}}else if(!showPrevMore2&&showNextMore2){for(var _i49=2;_i49<pagerCount;_i49++){array.push(_i49);}}else if(showPrevMore2&&showNextMore2){var offset=Math.floor(pagerCount/2)-1;for(var _i50=currentPage-offset;_i50<=currentPage+offset;_i50++){array.push(_i50);}}else{for(var _i51=2;_i51<pageCount;_i51++){array.push(_i51);}}return array;});watchEffect(function(){var halfPagerCount=(props.pagerCount-1)/2;showPrevMore.value=false;showNextMore.value=false;if(props.pageCount>props.pagerCount){if(props.currentPage>props.pagerCount-halfPagerCount){showPrevMore.value=true;}if(props.currentPage<props.pageCount-halfPagerCount){showNextMore.value=true;}}});function onMouseenter(direction){if(props.disabled)return;if(direction==="left"){quickPrevHover.value=true;}else{quickNextHover.value=true;}}function onEnter(e){var target=e.target;if(target.tagName.toLowerCase()==="li"&&Array.from(target.classList).includes("number")){var newPage=Number(target.textContent);if(newPage!==props.currentPage){emit("change",newPage);}}}function onPagerClick(event){var target=event.target;if(target.tagName.toLowerCase()==="ul"||props.disabled){return;}var newPage=Number(target.textContent);var pageCount=props.pageCount;var currentPage=props.currentPage;var pagerCountOffset=props.pagerCount-2;if(target.className.includes("more")){if(target.className.includes("quickprev")){newPage=currentPage-pagerCountOffset;}else if(target.className.includes("quicknext")){newPage=currentPage+pagerCountOffset;}}if(!Number.isNaN(+newPage)){if(newPage<1){newPage=1;}if(newPage>pageCount){newPage=pageCount;}}if(newPage!==currentPage){emit("change",newPage);}}return function(_ctx,_cache){return openBlock(),createElementBlock("ul",{class:normalizeClass(unref(nsPager).b()),onClick:onPagerClick,onKeyup:withKeys(onEnter,["enter"])},[_ctx.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(nsPager).is("active",_ctx.currentPage===1),unref(nsPager).is("disabled",_ctx.disabled)],"number"]),"aria-current":_ctx.currentPage===1,tabindex:"0"}," 1 ",10,_hoisted_2$5)):createCommentVNode("v-if",true),showPrevMore.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref(nsIcon).b(),unref(nsPager).is("disabled",_ctx.disabled)]),onMouseenter:_cache[0]||(_cache[0]=function($event){return onMouseenter("left");}),onMouseleave:_cache[1]||(_cache[1]=function($event){return quickPrevHover.value=false;})},[quickPrevHover.value?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],34)):createCommentVNode("v-if",true),(openBlock(true),createElementBlock(Fragment,null,renderList(unref(pagers),function(pager){return openBlock(),createElementBlock("li",{key:pager,class:normalizeClass([[unref(nsPager).is("active",_ctx.currentPage===pager),unref(nsPager).is("disabled",_ctx.disabled)],"number"]),"aria-current":_ctx.currentPage===pager,tabindex:"0"},toDisplayString(pager),11,_hoisted_3$3);}),128)),showNextMore.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref(nsIcon).b(),unref(nsPager).is("disabled",_ctx.disabled)]),onMouseenter:_cache[2]||(_cache[2]=function($event){return onMouseenter("right");}),onMouseleave:_cache[3]||(_cache[3]=function($event){return quickNextHover.value=false;})},[quickNextHover.value?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],34)):createCommentVNode("v-if",true),_ctx.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(nsPager).is("active",_ctx.currentPage===_ctx.pageCount),unref(nsPager).is("disabled",_ctx.disabled)],"number"]),"aria-current":_ctx.currentPage===_ctx.pageCount,tabindex:"0"},toDisplayString(_ctx.pageCount),11,_hoisted_4$2)):createCommentVNode("v-if",true)],42,_hoisted_1$8);};}}));var Pager=/* @__PURE__ */_export_sfc$1(_sfc_main$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);var isAbsent=function isAbsent(v){return typeof v!=="number";};var paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:function validator(value){return typeof value==="number"&&Math.trunc(value)===value&&value>4&&value<22&&value%2===1;},default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:function _default(){return mutable([10,20,30,40,50,100]);}},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean});var paginationEmits={"update:current-page":function updateCurrentPage(val){return typeof val==="number";},"update:page-size":function updatePageSize(val){return typeof val==="number";},"size-change":function sizeChange(val){return typeof val==="number";},"current-change":function currentChange(val){return typeof val==="number";},"prev-click":function prevClick(val){return typeof val==="number";},"next-click":function nextClick(val){return typeof val==="number";}};var componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup:function setup(props,_ref163){var emit=_ref163.emit,slots=_ref163.slots;var _useLocale21=useLocale(),t=_useLocale21.t;var ns=useNamespace("pagination");var vnodeProps=getCurrentInstance().vnode.props||{};var hasCurrentPageListener="onUpdate:currentPage"in vnodeProps||"onUpdate:current-page"in vnodeProps||"onCurrentChange"in vnodeProps;var hasPageSizeListener="onUpdate:pageSize"in vnodeProps||"onUpdate:page-size"in vnodeProps||"onSizeChange"in vnodeProps;var assertValidUsage=computed(function(){if(isAbsent(props.total)&&isAbsent(props.pageCount))return false;if(!isAbsent(props.currentPage)&&!hasCurrentPageListener)return false;if(props.layout.includes("sizes")){if(!isAbsent(props.pageCount)){if(!hasPageSizeListener)return false;}else if(!isAbsent(props.total)){if(!isAbsent(props.pageSize)){if(!hasPageSizeListener){return false;}}}}return true;});var innerPageSize=ref(isAbsent(props.defaultPageSize)?10:props.defaultPageSize);var innerCurrentPage=ref(isAbsent(props.defaultCurrentPage)?1:props.defaultCurrentPage);var pageSizeBridge=computed({get:function get(){return isAbsent(props.pageSize)?innerPageSize.value:props.pageSize;},set:function set(v){if(isAbsent(props.pageSize)){innerPageSize.value=v;}if(hasPageSizeListener){emit("update:page-size",v);emit("size-change",v);}}});var pageCountBridge=computed(function(){var pageCount=0;if(!isAbsent(props.pageCount)){pageCount=props.pageCount;}else if(!isAbsent(props.total)){pageCount=Math.max(1,Math.ceil(props.total/pageSizeBridge.value));}return pageCount;});var currentPageBridge=computed({get:function get(){return isAbsent(props.currentPage)?innerCurrentPage.value:props.currentPage;},set:function set(v){var newCurrentPage=v;if(v<1){newCurrentPage=1;}else if(v>pageCountBridge.value){newCurrentPage=pageCountBridge.value;}if(isAbsent(props.currentPage)){innerCurrentPage.value=newCurrentPage;}if(hasCurrentPageListener){emit("update:current-page",newCurrentPage);emit("current-change",newCurrentPage);}}});watch(pageCountBridge,function(val){if(currentPageBridge.value>val)currentPageBridge.value=val;});function handleCurrentChange(val){currentPageBridge.value=val;}function handleSizeChange(val){pageSizeBridge.value=val;var newPageCount=pageCountBridge.value;if(currentPageBridge.value>newPageCount){currentPageBridge.value=newPageCount;}}function prev(){if(props.disabled)return;currentPageBridge.value-=1;emit("prev-click",currentPageBridge.value);}function next(){if(props.disabled)return;currentPageBridge.value+=1;emit("next-click",currentPageBridge.value);}function addClass(element,cls){if(element){if(!element.props){element.props={};}element.props.class=[element.props.class,cls].join(" ");}}provide(elPaginationKey,{pageCount:pageCountBridge,disabled:computed(function(){return props.disabled;}),currentPage:currentPageBridge,changeEvent:handleCurrentChange,handleSizeChange:handleSizeChange});return function(){var _a,_b;if(!assertValidUsage.value){debugWarn(componentName,t("el.pagination.deprecationWarning"));return null;}if(!props.layout)return null;if(props.hideOnSinglePage&&pageCountBridge.value<=1)return null;var rootChildren=[];var rightWrapperChildren=[];var rightWrapperRoot=h("div",{class:ns.e("rightwrapper")},rightWrapperChildren);var TEMPLATE_MAP={prev:h(Prev,{disabled:props.disabled,currentPage:currentPageBridge.value,prevText:props.prevText,onClick:prev}),jumper:h(Jumper),pager:h(Pager,{currentPage:currentPageBridge.value,pageCount:pageCountBridge.value,pagerCount:props.pagerCount,onChange:handleCurrentChange,disabled:props.disabled}),next:h(Next,{disabled:props.disabled,currentPage:currentPageBridge.value,pageCount:pageCountBridge.value,nextText:props.nextText,onClick:next}),sizes:h(Sizes,{pageSize:pageSizeBridge.value,pageSizes:props.pageSizes,popperClass:props.popperClass,disabled:props.disabled,size:props.small?"small":"default"}),slot:(_b=(_a=slots==null?void 0:slots.default)==null?void 0:_a.call(slots))!=null?_b:null,total:h(Total,{total:isAbsent(props.total)?0:props.total})};var components=props.layout.split(",").map(function(item){return item.trim();});var haveRightWrapper=false;components.forEach(function(c){if(c==="->"){haveRightWrapper=true;return;}if(!haveRightWrapper){rootChildren.push(TEMPLATE_MAP[c]);}else{rightWrapperChildren.push(TEMPLATE_MAP[c]);}});addClass(rootChildren[0],ns.is("first"));addClass(rootChildren[rootChildren.length-1],ns.is("last"));if(haveRightWrapper&&rightWrapperChildren.length>0){addClass(rightWrapperChildren[0],ns.is("first"));addClass(rightWrapperChildren[rightWrapperChildren.length-1],ns.is("last"));rootChildren.push(rightWrapperRoot);}return h("div",{role:"pagination","aria-label":"pagination",class:[ns.b(),ns.is("background",props.background),_defineProperty2({},ns.m("small"),props.small)]},rootChildren);};}});var ElPagination=exports('a3',withInstall(Pagination));var usePopoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:_objectSpread(_objectSpread({},useTooltipContentProps.enterable),{},{default:true}),effect:_objectSpread(_objectSpread({},useTooltipContentProps.effect),{},{default:"light"}),teleported:useTooltipContentProps.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:true},persistent:{type:Boolean,default:true}});var emits=["update:visible","before-enter","before-leave","after-enter","after-leave"];var COMPONENT_NAME$1="ElPopover";var _sfc_main$d=defineComponent({name:COMPONENT_NAME$1,components:{ElTooltip:ElTooltip},props:usePopoverProps,emits:emits,setup:function setup(props,_ref165){var emit=_ref165.emit;var ns=useNamespace("popover");var tooltipRef=ref(null);var popperRef=computed(function(){var _a;return(_a=unref(tooltipRef))==null?void 0:_a.popperRef;});var width=computed(function(){if(isString$2(props.width)){return props.width;}return"".concat(props.width,"px");});var style=computed(function(){return[{width:width.value},props.popperStyle];});var kls=computed(function(){return[ns.b(),props.popperClass,_defineProperty2({},ns.m("plain"),!!props.content)];});var gpuAcceleration=computed(function(){return props.transition==="el-fade-in-linear";});var hide=function hide(){var _a;(_a=tooltipRef.value)==null?void 0:_a.hide();};var beforeEnter=function beforeEnter(){emit("before-enter");};var beforeLeave=function beforeLeave(){emit("before-leave");};var afterEnter=function afterEnter(){emit("after-enter");};var afterLeave=function afterLeave(){emit("update:visible",false);emit("after-leave");};return{ns:ns,kls:kls,gpuAcceleration:gpuAcceleration,style:style,tooltipRef:tooltipRef,popperRef:popperRef,hide:hide,beforeEnter:beforeEnter,beforeLeave:beforeLeave,afterEnter:afterEnter,afterLeave:afterLeave};}});function _sfc_render$3(_ctx,_cache,$props,$setup,$data,$options){var _component_el_tooltip=resolveComponent("el-tooltip");return openBlock(),createBlock(_component_el_tooltip,mergeProps({ref:"tooltipRef"},_ctx.$attrs,{trigger:_ctx.trigger,placement:_ctx.placement,disabled:_ctx.disabled,visible:_ctx.visible,transition:_ctx.transition,"popper-options":_ctx.popperOptions,tabindex:_ctx.tabindex,content:_ctx.content,offset:_ctx.offset,"show-after":_ctx.showAfter,"hide-after":_ctx.hideAfter,"auto-close":_ctx.autoClose,"show-arrow":_ctx.showArrow,"aria-label":_ctx.title,effect:_ctx.effect,enterable:_ctx.enterable,"popper-class":_ctx.kls,"popper-style":_ctx.style,teleported:_ctx.teleported,persistent:_ctx.persistent,"gpu-acceleration":_ctx.gpuAcceleration,onBeforeShow:_ctx.beforeEnter,onBeforeHide:_ctx.beforeLeave,onShow:_ctx.afterEnter,onHide:_ctx.afterLeave}),{content:withCtx(function(){return[_ctx.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(_ctx.ns.e("title")),role:"title"},toDisplayString(_ctx.title),3)):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"default",{},function(){return[createTextVNode(toDisplayString(_ctx.content),1)];})];}),default:withCtx(function(){return[_ctx.$slots.reference?renderSlot(_ctx.$slots,"reference",{key:0}):createCommentVNode("v-if",true)];}),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onBeforeShow","onBeforeHide","onShow","onHide"]);}var Popover=/* @__PURE__ */_export_sfc$1(_sfc_main$d,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/index.vue"]]);var attachEvents=function attachEvents(el,binding){var popperComponent=binding.arg||binding.value;var popover=popperComponent==null?void 0:popperComponent.popperRef;if(popover){popover.triggerRef=el;}};var PopoverDirective={mounted:function mounted(el,binding){attachEvents(el,binding);},updated:function updated(el,binding){attachEvents(el,binding);}};var VPopover="popover";Popover.install=function(app){app.component(Popover.name,Popover);};PopoverDirective.install=function(app){app.directive(VPopover,PopoverDirective);};var _PopoverDirective=PopoverDirective;Popover.directive=_PopoverDirective;var _Popover=Popover;var ElPopover=exports('H',_Popover);var progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:function validator(val){return val>=0&&val<=100;}},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:false},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:false},width:{type:Number,default:126},showText:{type:Boolean,default:true},color:{type:definePropType([String,Array,Function]),default:""},format:{type:definePropType(Function),default:function _default(percentage){return"".concat(percentage,"%");}}});var _hoisted_1$7=["aria-valuenow"];var _hoisted_2$4={viewBox:"0 0 100 100"};var _hoisted_3$2=["d","stroke","stroke-width"];var _hoisted_4$1=["d","stroke","opacity","stroke-linecap","stroke-width"];var _hoisted_5$1={key:0};var __default__$9={name:"ElProgress"};var _sfc_main$c=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$9),{},{props:progressProps,setup:function setup(__props){var props=__props;var STATUS_COLOR_MAP={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"};var ns=useNamespace("progress");var barStyle=computed(function(){return{width:"".concat(props.percentage,"%"),animationDuration:"".concat(props.duration,"s"),backgroundColor:getCurrentColor(props.percentage)};});var relativeStrokeWidth=computed(function(){return(props.strokeWidth/props.width*100).toFixed(1);});var radius=computed(function(){if(["circle","dashboard"].includes(props.type)){return Number.parseInt("".concat(50-Number.parseFloat(relativeStrokeWidth.value)/2),10);}return 0;});var trackPath=computed(function(){var r=radius.value;var isDashboard=props.type==="dashboard";return"\n M 50 50\n m 0 ".concat(isDashboard?"":"-").concat(r,"\n a ").concat(r," ").concat(r," 0 1 1 0 ").concat(isDashboard?"-":"").concat(r*2,"\n a ").concat(r," ").concat(r," 0 1 1 0 ").concat(isDashboard?"":"-").concat(r*2,"\n ");});var perimeter=computed(function(){return 2*Math.PI*radius.value;});var rate=computed(function(){return props.type==="dashboard"?0.75:1;});var strokeDashoffset=computed(function(){var offset=-1*perimeter.value*(1-rate.value)/2;return"".concat(offset,"px");});var trailPathStyle=computed(function(){return{strokeDasharray:"".concat(perimeter.value*rate.value,"px, ").concat(perimeter.value,"px"),strokeDashoffset:strokeDashoffset.value};});var circlePathStyle=computed(function(){return{strokeDasharray:"".concat(perimeter.value*rate.value*(props.percentage/100),"px, ").concat(perimeter.value,"px"),strokeDashoffset:strokeDashoffset.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"};});var stroke=computed(function(){var ret;if(props.color){ret=getCurrentColor(props.percentage);}else{ret=STATUS_COLOR_MAP[props.status]||STATUS_COLOR_MAP.default;}return ret;});var statusIcon=computed(function(){if(props.status==="warning"){return warning_filled_default;}if(props.type==="line"){return props.status==="success"?circle_check_default:circle_close_default;}else{return props.status==="success"?check_default:close_default;}});var progressTextSize=computed(function(){return props.type==="line"?12+props.strokeWidth*0.4:props.width*0.111111+2;});var content=computed(function(){return props.format(props.percentage);});function getColors(color){var span=100/color.length;var seriesColors=color.map(function(seriesColor,index){if(isString$2(seriesColor)){return{color:seriesColor,percentage:(index+1)*span};}return seriesColor;});return seriesColors.sort(function(a,b){return a.percentage-b.percentage;});}var getCurrentColor=function getCurrentColor(percentage){var _a;var color=props.color;if(isFunction$1(color)){return color(percentage);}else if(isString$2(color)){return color;}else{var colors=getColors(color);var _iterator16=_createForOfIteratorHelper(colors),_step17;try{for(_iterator16.s();!(_step17=_iterator16.n()).done;){var color2=_step17.value;if(color2.percentage>percentage)return color2.color;}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}return(_a=colors[colors.length-1])==null?void 0:_a.color;}};return function(_ctx,_cache){var _ref167;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ns).b(),unref(ns).m(_ctx.type),unref(ns).is(_ctx.status),(_ref167={},_defineProperty2(_ref167,unref(ns).m("without-text"),!_ctx.showText),_defineProperty2(_ref167,unref(ns).m("text-inside"),_ctx.textInside),_ref167)]),role:"progressbar","aria-valuenow":_ctx.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_ctx.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ns).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ns).be("bar","outer")),style:normalizeStyle({height:"".concat(_ctx.strokeWidth,"px")})},[createBaseVNode("div",{class:normalizeClass([unref(ns).be("bar","inner"),_defineProperty2({},unref(ns).bem("bar","inner","indeterminate"),_ctx.indeterminate)]),style:normalizeStyle(unref(barStyle))},[(_ctx.showText||_ctx.$slots.default)&&_ctx.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ns).be("bar","innerText"))},[renderSlot(_ctx.$slots,"default",{percentage:_ctx.percentage},function(){return[createBaseVNode("span",null,toDisplayString(unref(content)),1)];})],2)):createCommentVNode("v-if",true)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ns).b("circle")),style:normalizeStyle({height:"".concat(_ctx.width,"px"),width:"".concat(_ctx.width,"px")})},[(openBlock(),createElementBlock("svg",_hoisted_2$4,[createBaseVNode("path",{class:normalizeClass(unref(ns).be("circle","track")),d:unref(trackPath),stroke:"var(".concat(unref(ns).cssVarName("fill-color-light"),", #e5e9f2)"),"stroke-width":unref(relativeStrokeWidth),fill:"none",style:normalizeStyle(unref(trailPathStyle))},null,14,_hoisted_3$2),createBaseVNode("path",{class:normalizeClass(unref(ns).be("circle","path")),d:unref(trackPath),stroke:unref(stroke),fill:"none",opacity:_ctx.percentage?1:0,"stroke-linecap":_ctx.strokeLinecap,"stroke-width":unref(relativeStrokeWidth),style:normalizeStyle(unref(circlePathStyle))},null,14,_hoisted_4$1)]))],6)),(_ctx.showText||_ctx.$slots.default)&&!_ctx.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ns).e("text")),style:normalizeStyle({fontSize:"".concat(unref(progressTextSize),"px")})},[renderSlot(_ctx.$slots,"default",{percentage:_ctx.percentage},function(){return[!_ctx.status?(openBlock(),createElementBlock("span",_hoisted_5$1,toDisplayString(unref(content)),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(unref(statusIcon))))];}),_:1}))];})],6)):createCommentVNode("v-if",true)],10,_hoisted_1$7);};}}));var Progress=/* @__PURE__ */_export_sfc$1(_sfc_main$c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);var ElProgress=withInstall(Progress);var RowJustify=["start","center","end","space-around","space-between","space-evenly"];var RowAlign=["top","middle","bottom"];var rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign,default:"top"}});var __default__$8={name:"ElRow"};var _sfc_main$b=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$8),{},{props:rowProps,setup:function setup(__props){var props=__props;var ns=useNamespace("row");var gutter=computed(function(){return props.gutter;});provide(rowContextKey,{gutter:gutter});var style=computed(function(){var styles={};if(!props.gutter){return styles;}styles.marginRight=styles.marginLeft="-".concat(props.gutter/2,"px");return styles;});return function(_ctx,_cache){return openBlock(),createBlock(resolveDynamicComponent(_ctx.tag),{class:normalizeClass([unref(ns).b(),unref(ns).is("justify-".concat(props.justify),_ctx.justify!=="start"),unref(ns).is("align-".concat(props.align),_ctx.align!=="top")]),style:normalizeStyle(unref(style))},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["class","style"]);};}}));var Row=/* @__PURE__ */_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);var ElRow=exports('q',withInstall(Row));var skeletonProps=buildProps({animated:{type:Boolean,default:false},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:true},throttle:{type:Number}});var skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var __default__$7={name:"ElSkeletonItem"};var _sfc_main$a=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$7),{},{props:skeletonItemProps,setup:function setup(__props){var ns=useNamespace("skeleton");return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ns).e("item"),unref(ns).e(_ctx.variant)])},[_ctx.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",true)],2);};}}));var SkeletonItem=/* @__PURE__ */_export_sfc$1(_sfc_main$a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);var __default__$6={name:"ElSkeleton"};var _sfc_main$9=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$6),{},{props:skeletonProps,setup:function setup(__props,_ref169){var expose=_ref169.expose;var props=__props;var ns=useNamespace("skeleton");var uiLoading=useThrottleRender(toRef(props,"loading"),props.throttle);expose({uiLoading:uiLoading});return function(_ctx,_cache){return unref(uiLoading)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(ns).b(),unref(ns).is("animated",_ctx.animated)]},_ctx.$attrs),[(openBlock(true),createElementBlock(Fragment,null,renderList(_ctx.count,function(i){return openBlock(),createElementBlock(Fragment,{key:i},[_ctx.loading?renderSlot(_ctx.$slots,"template",{key:i},function(){return[createVNode(SkeletonItem,{class:normalizeClass(unref(ns).is("first")),variant:"p"},null,8,["class"]),(openBlock(true),createElementBlock(Fragment,null,renderList(_ctx.rows,function(item){return openBlock(),createBlock(SkeletonItem,{key:item,class:normalizeClass([unref(ns).e("paragraph"),unref(ns).is("last",item===_ctx.rows&&_ctx.rows>1)]),variant:"p"},null,8,["class"]);}),128))];}):createCommentVNode("v-if",true)],64);}),128))],16)):renderSlot(_ctx.$slots,"default",normalizeProps(mergeProps({key:1},_ctx.$attrs)));};}}));var Skeleton=/* @__PURE__ */_export_sfc$1(_sfc_main$9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);var ElSkeleton=exports('al',withInstall(Skeleton,{SkeletonItem:SkeletonItem}));var ElSkeletonItem=exports('am',withNoopInstall(SkeletonItem));var tabBarProps=buildProps({tabs:{type:definePropType(Array),default:function _default(){return mutable([]);}}});var __default__$5={name:"ElTabBar"};var _sfc_main$8=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$5),{},{props:tabBarProps,setup:function setup(__props,_ref170){var expose=_ref170.expose;var props=__props;var COMPONENT_NAME="ElTabBar";var instance=getCurrentInstance();var rootTabs=inject(tabsRootContextKey);if(!rootTabs)throwError(COMPONENT_NAME,"<el-tabs><el-tab-bar /></el-tabs>");var ns=useNamespace("tabs");var barRef=ref();var barStyle=ref();var getBarStyle=function getBarStyle(){var _ref171;var offset=0;var tabSize=0;var sizeName=["top","bottom"].includes(rootTabs.props.tabPosition)?"width":"height";var sizeDir=sizeName==="width"?"x":"y";props.tabs.every(function(tab){var _a,_b,_c,_d;var $el=(_b=(_a=instance.parent)==null?void 0:_a.refs)==null?void 0:_b["tab-".concat(tab.paneName)];if(!$el)return false;if(!tab.active){return true;}tabSize=$el["client".concat(capitalize(sizeName))];var position=sizeDir==="x"?"left":"top";offset=$el.getBoundingClientRect()[position]-((_d=(_c=$el.parentElement)==null?void 0:_c.getBoundingClientRect()[position])!=null?_d:0);var tabStyles=window.getComputedStyle($el);if(sizeName==="width"){if(props.tabs.length>1){tabSize-=Number.parseFloat(tabStyles.paddingLeft)+Number.parseFloat(tabStyles.paddingRight);}offset+=Number.parseFloat(tabStyles.paddingLeft);}return false;});return _ref171={},_defineProperty2(_ref171,sizeName,"".concat(tabSize,"px")),_defineProperty2(_ref171,"transform","translate".concat(capitalize(sizeDir),"(").concat(offset,"px)")),_ref171;};var update=function update(){return barStyle.value=getBarStyle();};watch(function(){return props.tabs;},/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee27(){return regeneratorRuntime.wrap(function _callee27$(_context27){while(1){switch(_context27.prev=_context27.next){case 0:_context27.next=2;return nextTick();case 2:update();case 3:case"end":return _context27.stop();}}},_callee27);})),{immediate:true});useResizeObserver(barRef,function(){return update();});expose({ref:barRef,update:update});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{ref_key:"barRef",ref:barRef,class:normalizeClass([unref(ns).e("active-bar"),unref(ns).is(unref(rootTabs).props.tabPosition)]),style:normalizeStyle(barStyle.value)},null,6);};}}));var TabBar=/* @__PURE__ */_export_sfc$1(_sfc_main$8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);var tabNavProps=buildProps({panes:{type:definePropType(Array),default:function _default(){return mutable([]);}},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:definePropType(Function),default:NOOP},onTabRemove:{type:definePropType(Function),default:NOOP},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean});var COMPONENT_NAME="ElTabNav";var TabNav=defineComponent({name:COMPONENT_NAME,props:tabNavProps,setup:function setup(props,_ref173){var expose=_ref173.expose;var vm=getCurrentInstance();var rootTabs=inject(tabsRootContextKey);if(!rootTabs)throwError(COMPONENT_NAME,"<el-tabs><tab-nav /></el-tabs>");var ns=useNamespace("tabs");var visibility=useDocumentVisibility();var focused=useWindowFocus();var navScroll$=ref();var nav$=ref();var el$=ref();var scrollable=ref(false);var navOffset=ref(0);var isFocus=ref(false);var focusable=ref(true);var sizeName=computed(function(){return["top","bottom"].includes(rootTabs.props.tabPosition)?"width":"height";});var navStyle=computed(function(){var dir=sizeName.value==="width"?"X":"Y";return{transform:"translate".concat(dir,"(-").concat(navOffset.value,"px)")};});var scrollPrev=function scrollPrev(){if(!navScroll$.value)return;var containerSize=navScroll$.value["offset".concat(capitalize(sizeName.value))];var currentOffset=navOffset.value;if(!currentOffset)return;var newOffset=currentOffset>containerSize?currentOffset-containerSize:0;navOffset.value=newOffset;};var scrollNext=function scrollNext(){if(!navScroll$.value||!nav$.value)return;var navSize=nav$.value["offset".concat(capitalize(sizeName.value))];var containerSize=navScroll$.value["offset".concat(capitalize(sizeName.value))];var currentOffset=navOffset.value;if(navSize-currentOffset<=containerSize)return;var newOffset=navSize-currentOffset>containerSize*2?currentOffset+containerSize:navSize-containerSize;navOffset.value=newOffset;};var scrollToActiveTab=function scrollToActiveTab(){var nav=nav$.value;if(!scrollable.value||!el$.value||!navScroll$.value||!nav)return;var activeTab=el$.value.querySelector(".is-active");if(!activeTab)return;var navScroll=navScroll$.value;var isHorizontal=["top","bottom"].includes(rootTabs.props.tabPosition);var activeTabBounding=activeTab.getBoundingClientRect();var navScrollBounding=navScroll.getBoundingClientRect();var maxOffset=isHorizontal?nav.offsetWidth-navScrollBounding.width:nav.offsetHeight-navScrollBounding.height;var currentOffset=navOffset.value;var newOffset=currentOffset;if(isHorizontal){if(activeTabBounding.left<navScrollBounding.left){newOffset=currentOffset-(navScrollBounding.left-activeTabBounding.left);}if(activeTabBounding.right>navScrollBounding.right){newOffset=currentOffset+activeTabBounding.right-navScrollBounding.right;}}else{if(activeTabBounding.top<navScrollBounding.top){newOffset=currentOffset-(navScrollBounding.top-activeTabBounding.top);}if(activeTabBounding.bottom>navScrollBounding.bottom){newOffset=currentOffset+(activeTabBounding.bottom-navScrollBounding.bottom);}}newOffset=Math.max(newOffset,0);navOffset.value=Math.min(newOffset,maxOffset);};var update=function update(){if(!nav$.value||!navScroll$.value)return;var navSize=nav$.value["offset".concat(capitalize(sizeName.value))];var containerSize=navScroll$.value["offset".concat(capitalize(sizeName.value))];var currentOffset=navOffset.value;if(containerSize<navSize){var currentOffset2=navOffset.value;scrollable.value=scrollable.value||{};scrollable.value.prev=currentOffset2;scrollable.value.next=currentOffset2+containerSize<navSize;if(navSize-currentOffset2<containerSize){navOffset.value=navSize-containerSize;}}else{scrollable.value=false;if(currentOffset>0){navOffset.value=0;}}};var changeTab=function changeTab(e){var code=e.code;var up=EVENT_CODE.up,down=EVENT_CODE.down,left=EVENT_CODE.left,right=EVENT_CODE.right;if(![up,down,left,right].includes(code))return;var tabList=Array.from(e.currentTarget.querySelectorAll("[role=tab]"));var currentIndex=tabList.indexOf(e.target);var nextIndex;if(code===left||code===up){if(currentIndex===0){nextIndex=tabList.length-1;}else{nextIndex=currentIndex-1;}}else{if(currentIndex<tabList.length-1){nextIndex=currentIndex+1;}else{nextIndex=0;}}tabList[nextIndex].focus();tabList[nextIndex].click();setFocus();};var setFocus=function setFocus(){if(focusable.value)isFocus.value=true;};var removeFocus=function removeFocus(){return isFocus.value=false;};watch(visibility,function(visibility2){if(visibility2==="hidden"){focusable.value=false;}else if(visibility2==="visible"){setTimeout(function(){return focusable.value=true;},50);}});watch(focused,function(focused2){if(focused2){setTimeout(function(){return focusable.value=true;},50);}else{focusable.value=false;}});useResizeObserver(el$,update);onMounted(function(){return setTimeout(function(){return scrollToActiveTab();},0);});onUpdated(function(){return update();});expose({scrollToActiveTab:scrollToActiveTab,removeFocus:removeFocus});watch(function(){return props.panes;},function(){return vm.update();},{flush:"post"});return function(){var scrollBtn=scrollable.value?[createVNode("span",{"class":[ns.e("nav-prev"),ns.is("disabled",!scrollable.value.prev)],"onClick":scrollPrev},[createVNode(ElIcon,null,{default:function _default(){return[createVNode(arrow_left_default,null,null)];}})]),createVNode("span",{"class":[ns.e("nav-next"),ns.is("disabled",!scrollable.value.next)],"onClick":scrollNext},[createVNode(ElIcon,null,{default:function _default(){return[createVNode(arrow_right_default,null,null)];}})])]:null;var tabs=props.panes.map(function(pane,index){var _a,_b;var tabName=pane.props.name||pane.index||"".concat(index);var closable=pane.isClosable||props.editable;pane.index="".concat(index);var btnClose=closable?createVNode(ElIcon,{"class":"is-icon-close","onClick":function onClick(ev){return props.onTabRemove(pane,ev);}},{default:function _default(){return[createVNode(close_default,null,null)];}}):null;var tabLabelContent=((_b=(_a=pane.slots).label)==null?void 0:_b.call(_a))||pane.props.label;var tabindex=pane.active?0:-1;return createVNode("div",{"ref":"tab-".concat(tabName),"class":[ns.e("item"),ns.is(rootTabs.props.tabPosition),ns.is("active",pane.active),ns.is("disabled",pane.props.disabled),ns.is("closable",closable),ns.is("focus",isFocus.value)],"id":"tab-".concat(tabName),"key":"tab-".concat(tabName),"aria-controls":"pane-".concat(tabName),"role":"tab","aria-selected":pane.active,"tabindex":tabindex,"onFocus":function onFocus(){return setFocus();},"onBlur":function onBlur(){return removeFocus();},"onClick":function onClick(ev){removeFocus();props.onTabClick(pane,tabName,ev);},"onKeydown":function onKeydown(ev){if(closable&&(ev.code===EVENT_CODE.delete||ev.code===EVENT_CODE.backspace)){props.onTabRemove(pane,ev);}}},[tabLabelContent,btnClose].concat());});return createVNode("div",{"ref":el$,"class":[ns.e("nav-wrap"),ns.is("scrollable",!!scrollable.value),ns.is(rootTabs.props.tabPosition)]},[scrollBtn,createVNode("div",{"class":ns.e("nav-scroll"),"ref":navScroll$},[createVNode("div",{"class":[ns.e("nav"),ns.is(rootTabs.props.tabPosition),ns.is("stretch",props.stretch&&["top","bottom"].includes(rootTabs.props.tabPosition))],"ref":nav$,"style":navStyle.value,"role":"tablist","onKeydown":changeTab},[!props.type?createVNode(TabBar,{"tabs":_toConsumableArray2(props.panes)},null):null,tabs].concat())])]);};}});var tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number],default:""},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:function _default(){return true;}},stretch:Boolean});var isPanelName=function isPanelName(value){return isString$2(value)||isNumber$1(value);};var tabsEmits=(_tabsEmits={},_defineProperty2(_tabsEmits,UPDATE_MODEL_EVENT,function(name){return isPanelName(name);}),_defineProperty2(_tabsEmits,"tab-click",function tabClick(pane,ev){return ev instanceof Event;}),_defineProperty2(_tabsEmits,"tab-change",function tabChange(name){return isPanelName(name);}),_defineProperty2(_tabsEmits,"edit",function edit(paneName,action){return["remove","add"].includes(action);}),_defineProperty2(_tabsEmits,"tab-remove",function tabRemove(name){return isPanelName(name);}),_defineProperty2(_tabsEmits,"tab-add",function tabAdd(){return true;}),_tabsEmits);var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup:function setup(props,_ref174){var emit=_ref174.emit,slots=_ref174.slots,expose=_ref174.expose;var ns=useNamespace("tabs");var nav$=ref();var panes=reactive({});var currentName=ref(props.modelValue||props.activeName||"0");var changeCurrentName=function changeCurrentName(value){currentName.value=value;emit(UPDATE_MODEL_EVENT,value);emit("tab-change",value);};var setCurrentName=/*#__PURE__*/function(){var _ref175=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee28(value){var _a,_b,_c,canLeave;return regeneratorRuntime.wrap(function _callee28$(_context28){while(1){switch(_context28.prev=_context28.next){case 0:if(!(currentName.value===value)){_context28.next=2;break;}return _context28.abrupt("return");case 2:_context28.prev=2;_context28.next=5;return(_a=props.beforeLeave)==null?void 0:_a.call(props,value,currentName.value);case 5:canLeave=_context28.sent;if(canLeave!==false){changeCurrentName(value);(_c=(_b=nav$.value)==null?void 0:_b.removeFocus)==null?void 0:_c.call(_b);}_context28.next=11;break;case 9:_context28.prev=9;_context28.t0=_context28["catch"](2);case 11:case"end":return _context28.stop();}}},_callee28,null,[[2,9]]);}));return function setCurrentName(_x12){return _ref175.apply(this,arguments);};}();var handleTabClick=function handleTabClick(tab,tabName,event){if(tab.props.disabled)return;setCurrentName(tabName);emit("tab-click",tab,event);};var handleTabRemove=function handleTabRemove(pane,ev){if(pane.props.disabled)return;ev.stopPropagation();emit("edit",pane.props.name,"remove");emit("tab-remove",pane.props.name);};var handleTabAdd=function handleTabAdd(){emit("edit",void 0,"add");emit("tab-add");};watch(function(){return props.activeName;},function(modelValue){return setCurrentName(modelValue);});watch(function(){return props.modelValue;},function(modelValue){return setCurrentName(modelValue);});watch(currentName,/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee29(){var _a;return regeneratorRuntime.wrap(function _callee29$(_context29){while(1){switch(_context29.prev=_context29.next){case 0:(_a=nav$.value)==null?void 0:_a.scrollToActiveTab();case 1:case"end":return _context29.stop();}}},_callee29);})));{var registerPane=function registerPane(pane){return panes[pane.uid]=pane;};var unregisterPane=function unregisterPane(uid){return delete panes[uid];};provide(tabsRootContextKey,{props:props,currentName:currentName,registerPane:registerPane,unregisterPane:unregisterPane});}expose({currentName:currentName});return function(){var _ref177;var newButton=props.editable||props.addable?createVNode("span",{"class":ns.e("new-tab"),"tabindex":"0","onClick":handleTabAdd,"onKeydown":function onKeydown(ev){if(ev.code===EVENT_CODE.enter)handleTabAdd();}},[createVNode(ElIcon,{"class":ns.is("icon-plus")},{default:function _default(){return[createVNode(plus_default,null,null)];}})]):null;var header=createVNode("div",{"class":[ns.e("header"),ns.is(props.tabPosition)]},[newButton,createVNode(TabNav,{"ref":nav$,"currentName":currentName.value,"editable":props.editable,"type":props.type,"panes":Object.values(panes),"stretch":props.stretch,"onTabClick":handleTabClick,"onTabRemove":handleTabRemove},null)]);var panels=createVNode("div",{"class":ns.e("content")},[renderSlot(slots,"default")]);return createVNode("div",{"class":[ns.b(),ns.m(props.tabPosition),(_ref177={},_defineProperty2(_ref177,ns.m("card"),props.type==="card"),_defineProperty2(_ref177,ns.m("border-card"),props.type==="border-card"),_ref177)]},_toConsumableArray2(props.tabPosition!=="bottom"?[header,panels]:[panels,header]));};}});var tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number],default:""},closable:Boolean,disabled:Boolean,lazy:Boolean});var _hoisted_1$6=["id","aria-hidden","aria-labelledby"];var __default__$4={name:"ElTabPane"};var _sfc_main$7=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$4),{},{props:tabPaneProps,setup:function setup(__props){var props=__props;var COMPONENT_NAME="ElTabPane";var instance=getCurrentInstance();var slots=useSlots();var tabsRoot=inject(tabsRootContextKey);if(!tabsRoot)throwError(COMPONENT_NAME,"usage: <el-tabs><el-tab-pane /></el-tabs/>");var ns=useNamespace("tab-pane");var index=ref();var isClosable=computed(function(){return props.closable||tabsRoot.props.closable;});var active=computedEager(function(){return tabsRoot.currentName.value===(props.name||index.value);});var loaded=ref(active.value);var paneName=computed(function(){return props.name||index.value;});var shouldBeRender=computedEager(function(){return!props.lazy||loaded.value||active.value;});watch(active,function(val){if(val)loaded.value=true;});var pane=reactive({uid:instance.uid,slots:slots,props:props,paneName:paneName,active:active,index:index,isClosable:isClosable});onMounted(function(){tabsRoot.registerPane(pane);});onUnmounted(function(){tabsRoot.unregisterPane(pane.uid);});return function(_ctx,_cache){return unref(shouldBeRender)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:"pane-".concat(unref(paneName)),class:normalizeClass(unref(ns).b()),role:"tabpanel","aria-hidden":!unref(active),"aria-labelledby":"tab-".concat(unref(paneName))},[renderSlot(_ctx.$slots,"default")],10,_hoisted_1$6)),[[vShow,unref(active)]]):createCommentVNode("v-if",true);};}}));var TabPane=/* @__PURE__ */_export_sfc$1(_sfc_main$7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);var ElTabs=exports('C',withInstall(Tabs,{TabPane:TabPane}));var ElTabPane=exports('D',withNoopInstall(TabPane));var SCOPE$1="ElUpload";var UploadAjaxError=/*#__PURE__*/function(_Error4){_inherits2(UploadAjaxError,_Error4);var _super4=_createSuper2(UploadAjaxError);function UploadAjaxError(message,status,method,url){var _this7;_classCallCheck2(this,UploadAjaxError);_this7=_super4.call(this,message);_this7.name="UploadAjaxError";_this7.status=status;_this7.method=method;_this7.url=url;return _this7;}return _createClass2(UploadAjaxError);}(/*#__PURE__*/_wrapNativeSuper2(Error));function getError(action,option,xhr){var msg;if(xhr.response){msg="".concat(xhr.response.error||xhr.response);}else if(xhr.responseText){msg="".concat(xhr.responseText);}else{msg="fail to ".concat(option.method," ").concat(action," ").concat(xhr.status);}return new UploadAjaxError(msg,xhr.status,option.method,action);}function getBody(xhr){var text=xhr.responseText||xhr.response;if(!text){return text;}try{return JSON.parse(text);}catch(e){return text;}}var ajaxUpload=function ajaxUpload(option){if(typeof XMLHttpRequest==="undefined")throwError(SCOPE$1,"XMLHttpRequest is undefined");var xhr=new XMLHttpRequest();var action=option.action;if(xhr.upload){xhr.upload.addEventListener("progress",function(evt){var progressEvt=evt;progressEvt.percent=evt.total>0?evt.loaded/evt.total*100:0;option.onProgress(progressEvt);});}var formData=new FormData();if(option.data){for(var _i52=0,_Object$entries2=Object.entries(option.data);_i52<_Object$entries2.length;_i52++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i52],2),key=_Object$entries2$_i[0],value=_Object$entries2$_i[1];if(Array.isArray(value))formData.append.apply(formData,[key].concat(_toConsumableArray2(value)));else formData.append(key,value);}}formData.append(option.filename,option.file,option.file.name);xhr.addEventListener("error",function(){option.onError(getError(action,option,xhr));});xhr.addEventListener("load",function(){if(xhr.status<200||xhr.status>=300){return option.onError(getError(action,option,xhr));}option.onSuccess(getBody(xhr));});xhr.open(option.method,action,true);if(option.withCredentials&&"withCredentials"in xhr){xhr.withCredentials=true;}var headers=option.headers||{};if(headers instanceof Headers){headers.forEach(function(value,key){return xhr.setRequestHeader(key,value);});}else{for(var _i53=0,_Object$entries3=Object.entries(headers);_i53<_Object$entries3.length;_i53++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i53],2),_key25=_Object$entries3$_i[0],_value2=_Object$entries3$_i[1];if(isNil(_value2))continue;xhr.setRequestHeader(_key25,String(_value2));}}xhr.send(formData);return xhr;};var uploadListTypes=["text","picture","picture-card"];var fileId=1;var genFileId=function genFileId(){return Date.now()+fileId++;};var uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:Object,default:function _default(){return mutable({});}},multiple:{type:Boolean,default:false},name:{type:String,default:"file"},drag:{type:Boolean,default:false},withCredentials:Boolean,showFileList:{type:Boolean,default:true},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:definePropType(Array),default:function _default(){return mutable([]);}},autoUpload:{type:Boolean,default:true},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:Boolean,limit:Number});var uploadProps=buildProps(_objectSpread(_objectSpread({},uploadBaseProps),{},{beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}));var uploadListProps=buildProps({files:{type:definePropType(Array),default:function _default(){return mutable([]);}},disabled:{type:Boolean,default:false},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}});var uploadListEmits={remove:function remove(file){return!!file;}};var _hoisted_1$5=["onKeydown"];var _hoisted_2$3=["src"];var _hoisted_3$1=["onClick"];var _hoisted_4=["onClick"];var _hoisted_5=["onClick"];var __default__$3={name:"ElUploadList"};var _sfc_main$6=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$3),{},{props:uploadListProps,emits:uploadListEmits,setup:function setup(__props,_ref178){var emit=_ref178.emit;var props=__props;var _useLocale22=useLocale(),t=_useLocale22.t;var nsUpload=useNamespace("upload");var nsIcon=useNamespace("icon");var nsList=useNamespace("list");var focusing=ref(false);var handleClick=function handleClick(file){props.handlePreview(file);};var handleRemove=function handleRemove(file){emit("remove",file);};return function(_ctx,_cache){return openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(nsUpload).b("list"),unref(nsUpload).bm("list",_ctx.listType),unref(nsUpload).is("disabled",_ctx.disabled)]),name:unref(nsList).b()},{default:withCtx(function(){return[(openBlock(true),createElementBlock(Fragment,null,renderList(_ctx.files,function(file){return openBlock(),createElementBlock("li",{key:file.uid||file.name,class:normalizeClass([unref(nsUpload).be("list","item"),unref(nsUpload).is(file.status),{focusing:focusing.value}]),tabindex:"0",onKeydown:withKeys(function($event){return!_ctx.disabled&&handleRemove(file);},["delete"]),onFocus:_cache[0]||(_cache[0]=function($event){return focusing.value=true;}),onBlur:_cache[1]||(_cache[1]=function($event){return focusing.value=false;}),onClick:_cache[2]||(_cache[2]=function($event){return focusing.value=false;})},[renderSlot(_ctx.$slots,"default",{file:file},function(){return[_ctx.listType==="picture"||file.status!=="uploading"&&_ctx.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(nsUpload).be("list","item-thumbnail")),src:file.url,alt:""},null,10,_hoisted_2$3)):createCommentVNode("v-if",true),_ctx.listType!=="picture"&&(file.status==="uploading"||_ctx.listType!=="picture-card")?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(nsUpload).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(nsUpload).be("list","item-name")),onClick:withModifiers(function($event){return handleClick(file);},["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(nsIcon).m("document"))},{default:withCtx(function(){return[createVNode(unref(document_default))];}),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(nsUpload).be("list","item-file-name"))},toDisplayString(file.name),3)],10,_hoisted_3$1),file.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:_ctx.listType==="picture-card"?"circle":"line","stroke-width":_ctx.listType==="picture-card"?6:2,percentage:Number(file.percentage),style:normalizeStyle(_ctx.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true),createBaseVNode("label",{class:normalizeClass(unref(nsUpload).be("list","item-status-label"))},[_ctx.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(nsIcon).m("upload-success"),unref(nsIcon).m("circle-check")])},{default:withCtx(function(){return[createVNode(unref(circle_check_default))];}),_:1},8,["class"])):["picture-card","picture"].includes(_ctx.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(nsIcon).m("upload-success"),unref(nsIcon).m("check")])},{default:withCtx(function(){return[createVNode(unref(check_default))];}),_:1},8,["class"])):createCommentVNode("v-if",true)],2),!_ctx.disabled?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(nsIcon).m("close")),onClick:function onClick($event){return handleRemove(file);}},{default:withCtx(function(){return[createVNode(unref(close_default))];}),_:2},1032,["class","onClick"])):createCommentVNode("v-if",true),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),!_ctx.disabled?(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(nsIcon).m("close-tip"))},toDisplayString(unref(t)("el.upload.deleteTip")),3)):createCommentVNode("v-if",true),_ctx.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(nsUpload).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(nsUpload).be("list","item-preview")),onClick:function onClick($event){return _ctx.handlePreview(file);}},[createVNode(unref(ElIcon),{class:normalizeClass(unref(nsIcon).m("zoom-in"))},{default:withCtx(function(){return[createVNode(unref(zoom_in_default))];}),_:1},8,["class"])],10,_hoisted_4),!_ctx.disabled?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(nsUpload).be("list","item-delete")),onClick:function onClick($event){return handleRemove(file);}},[createVNode(unref(ElIcon),{class:normalizeClass(unref(nsIcon).m("delete"))},{default:withCtx(function(){return[createVNode(unref(delete_default))];}),_:1},8,["class"])],10,_hoisted_5)):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true)];})],42,_hoisted_1$5);}),128)),renderSlot(_ctx.$slots,"append")];}),_:3},8,["class","name"]);};}}));var UploadList=/* @__PURE__ */_export_sfc$1(_sfc_main$6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);var uploadDraggerProps=buildProps({disabled:{type:Boolean,default:false}});var uploadDraggerEmits={file:function file(_file){return isArray$7(_file);}};var _hoisted_1$4=["onDrop","onDragover"];var __default__$2={name:"ElUploadDrag"};var _sfc_main$5=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$2),{},{props:uploadDraggerProps,emits:uploadDraggerEmits,setup:function setup(__props,_ref179){var emit=_ref179.emit;var props=__props;var COMPONENT_NAME="ElUploadDrag";var uploaderContext=inject(uploadContextKey);if(!uploaderContext){throwError(COMPONENT_NAME,"usage: <el-upload><el-upload-dragger /></el-upload>");}var ns=useNamespace("upload");var dragover=ref(false);var onDrop=function onDrop(e){if(props.disabled)return;dragover.value=false;var files=Array.from(e.dataTransfer.files);var accept=uploaderContext.accept.value;if(!accept){emit("file",files);return;}var filesFiltered=files.filter(function(file){var type=file.type,name=file.name;var extension=name.includes(".")?".".concat(name.split(".").pop()):"";var baseType=type.replace(/\/.*$/,"");return accept.split(",").map(function(type2){return type2.trim();}).filter(function(type2){return type2;}).some(function(acceptedType){if(acceptedType.startsWith(".")){return extension===acceptedType;}if(/\/\*$/.test(acceptedType)){return baseType===acceptedType.replace(/\/\*$/,"");}if(/^[^/]+\/[^/]+$/.test(acceptedType)){return type===acceptedType;}return false;});});emit("file",filesFiltered);};var onDragover=function onDragover(){if(!props.disabled)dragover.value=true;};return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ns).b("dragger"),unref(ns).is("dragover",dragover.value)]),onDrop:withModifiers(onDrop,["prevent"]),onDragover:withModifiers(onDragover,["prevent"]),onDragleave:_cache[0]||(_cache[0]=withModifiers(function($event){return dragover.value=false;},["prevent"]))},[renderSlot(_ctx.$slots,"default")],42,_hoisted_1$4);};}}));var UploadDragger=/* @__PURE__ */_export_sfc$1(_sfc_main$5,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);var uploadContentProps=buildProps(_objectSpread(_objectSpread({},uploadBaseProps),{},{fileList:{type:definePropType(Array),default:function _default(){return mutable([]);}},beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}));var _hoisted_1$3=["onKeydown"];var _hoisted_2$2=["name","multiple","accept"];var __default__$1={name:"ElUploadContent",inheritAttrs:false};var _sfc_main$4=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__$1),{},{props:uploadContentProps,setup:function setup(__props,_ref180){var expose=_ref180.expose;var props=__props;var ns=useNamespace("upload");var requests=shallowRef({});var inputRef=shallowRef();var uploadFiles=function uploadFiles(files){if(files.length===0)return;var autoUpload=props.autoUpload,limit=props.limit,fileList=props.fileList,multiple=props.multiple,onStart=props.onStart,onExceed=props.onExceed;if(limit&&fileList.length+files.length>limit){onExceed(files,fileList);return;}if(!multiple){files=files.slice(0,1);}var _iterator17=_createForOfIteratorHelper(files),_step18;try{for(_iterator17.s();!(_step18=_iterator17.n()).done;){var file=_step18.value;var rawFile=file;rawFile.uid=genFileId();onStart(rawFile);if(autoUpload)upload(rawFile);}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}};var upload=/*#__PURE__*/function(){var _ref181=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee30(rawFile){var hookResult,file;return regeneratorRuntime.wrap(function _callee30$(_context30){while(1){switch(_context30.prev=_context30.next){case 0:inputRef.value.value="";if(props.beforeUpload){_context30.next=3;break;}return _context30.abrupt("return",doUpload(rawFile));case 3:_context30.prev=3;_context30.next=6;return props.beforeUpload(rawFile);case 6:hookResult=_context30.sent;_context30.next=12;break;case 9:_context30.prev=9;_context30.t0=_context30["catch"](3);hookResult=false;case 12:if(!(hookResult===false)){_context30.next=15;break;}props.onRemove(rawFile);return _context30.abrupt("return");case 15:file=rawFile;if(hookResult instanceof Blob){if(hookResult instanceof File){file=hookResult;}else{file=new File([hookResult],rawFile.name,{type:rawFile.type});}}doUpload(Object.assign(file,{uid:rawFile.uid}));case 18:case"end":return _context30.stop();}}},_callee30,null,[[3,9]]);}));return function upload(_x13){return _ref181.apply(this,arguments);};}();var doUpload=function doUpload(rawFile){var headers=props.headers,data=props.data,method=props.method,withCredentials=props.withCredentials,filename=props.name,action=props.action,_onProgress=props.onProgress,_onSuccess=props.onSuccess,_onError=props.onError,httpRequest=props.httpRequest;var uid=rawFile.uid;var options={headers:headers||{},withCredentials:withCredentials,file:rawFile,data:data,method:method,filename:filename,action:action,onProgress:function onProgress(evt){_onProgress(evt,rawFile);},onSuccess:function onSuccess(res){_onSuccess(res,rawFile);delete requests.value[uid];},onError:function onError(err){_onError(err,rawFile);delete requests.value[uid];}};var request=httpRequest(options);requests.value[uid]=request;if(request instanceof Promise){request.then(options.onSuccess,options.onError);}};var handleChange=function handleChange(e){var files=e.target.files;if(!files)return;uploadFiles(Array.from(files));};var handleClick=function handleClick(){if(!props.disabled){inputRef.value.value="";inputRef.value.click();}};var handleKeydown=function handleKeydown(){handleClick();};var abort=function abort(file){var _reqs=entriesOf(requests.value).filter(file?function(_ref182){var _ref183=_slicedToArray(_ref182,1),uid=_ref183[0];return String(file.uid)===uid;}:function(){return true;});_reqs.forEach(function(_ref184){var _ref185=_slicedToArray(_ref184,2),uid=_ref185[0],req=_ref185[1];if(req instanceof XMLHttpRequest)req.abort();delete requests.value[uid];});};expose({abort:abort,upload:upload});return function(_ctx,_cache){return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ns).b(),unref(ns).m(_ctx.listType),unref(ns).is("drag",_ctx.drag)]),tabindex:"0",onClick:handleClick,onKeydown:withKeys(withModifiers(handleKeydown,["self"]),["enter","space"])},[_ctx.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:_ctx.disabled,onFile:uploadFiles},{default:withCtx(function(){return[renderSlot(_ctx.$slots,"default")];}),_:3},8,["disabled"])):renderSlot(_ctx.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:inputRef,class:normalizeClass(unref(ns).e("input")),name:_ctx.name,multiple:_ctx.multiple,accept:_ctx.accept,type:"file",onChange:handleChange,onClick:_cache[0]||(_cache[0]=withModifiers(function(){},["stop"]))},null,42,_hoisted_2$2)],42,_hoisted_1$3);};}}));var UploadContent=/* @__PURE__ */_export_sfc$1(_sfc_main$4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);var SCOPE="ElUpload";var revokeObjectURL=function revokeObjectURL(file){var _a;if((_a=file.url)==null?void 0:_a.startsWith("blob:")){URL.revokeObjectURL(file.url);}};var useHandlers=function useHandlers(props,uploadRef){var uploadFiles=ref([]);var getFile=function getFile(rawFile){return uploadFiles.value.find(function(file){return file.uid===rawFile.uid;});};function abort(file){var _a;(_a=uploadRef.value)==null?void 0:_a.abort(file);}function clearFiles(){var states=arguments.length>0&&arguments[0]!==undefined?arguments[0]:["ready","uploading","success","fail"];uploadFiles.value=uploadFiles.value.filter(function(row){return!states.includes(row.status);});}var handleError=function handleError(err,rawFile){var file=getFile(rawFile);if(!file)return;file.status="fail";uploadFiles.value.splice(uploadFiles.value.indexOf(file),1);props.onError(err,file,uploadFiles.value);props.onChange(file,uploadFiles.value);};var handleProgress=function handleProgress(evt,rawFile){var file=getFile(rawFile);if(!file)return;props.onProgress(evt,file,uploadFiles.value);file.status="uploading";file.percentage=Math.round(evt.percent);};var handleSuccess=function handleSuccess(response,rawFile){var file=getFile(rawFile);if(!file)return;file.status="success";file.response=response;props.onSuccess(response,file,uploadFiles.value);props.onChange(file,uploadFiles.value);};var handleStart=function handleStart(file){var uploadFile={name:file.name,percentage:0,status:"ready",size:file.size,raw:file,uid:file.uid};if(props.listType==="picture-card"||props.listType==="picture"){try{uploadFile.url=URL.createObjectURL(file);}catch(err){debugWarn(SCOPE,err.message);props.onError(err,uploadFile,uploadFiles.value);}}uploadFiles.value.push(uploadFile);props.onChange(uploadFile,uploadFiles.value);};var handleRemove=/*#__PURE__*/function(){var _ref186=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee31(file){var uploadFile,doRemove,before;return regeneratorRuntime.wrap(function _callee31$(_context31){while(1){switch(_context31.prev=_context31.next){case 0:uploadFile=file instanceof File?getFile(file):file;if(!uploadFile)throwError(SCOPE,"file to be removed not found");doRemove=function doRemove(file2){abort(file2);var fileList=uploadFiles.value;fileList.splice(fileList.indexOf(file2),1);props.onRemove(file2,fileList);revokeObjectURL(file2);};if(!props.beforeRemove){_context31.next=10;break;}_context31.next=6;return props.beforeRemove(uploadFile,uploadFiles.value);case 6:before=_context31.sent;if(before!==false)doRemove(uploadFile);_context31.next=11;break;case 10:doRemove(uploadFile);case 11:case"end":return _context31.stop();}}},_callee31);}));return function handleRemove(_x14){return _ref186.apply(this,arguments);};}();function submit(){uploadFiles.value.filter(function(_ref187){var status=_ref187.status;return status==="ready";}).forEach(function(_ref188){var raw=_ref188.raw;var _a;return raw&&((_a=uploadRef.value)==null?void 0:_a.upload(raw));});}watch(function(){return props.listType;},function(val){if(val!=="picture-card"&&val!=="picture"){return;}uploadFiles.value=uploadFiles.value.map(function(file){var raw=file.raw,url=file.url;if(!url&&raw){try{file.url=URL.createObjectURL(raw);}catch(err){props.onError(err,file,uploadFiles.value);}}return file;});});watch(function(){return props.fileList;},function(fileList){var _iterator18=_createForOfIteratorHelper(fileList),_step19;try{for(_iterator18.s();!(_step19=_iterator18.n()).done;){var file=_step19.value;file.uid||(file.uid=genFileId());file.status||(file.status="success");}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}uploadFiles.value=fileList;},{immediate:true,deep:true});return{abort:abort,clearFiles:clearFiles,handleError:handleError,handleProgress:handleProgress,handleStart:handleStart,handleSuccess:handleSuccess,handleRemove:handleRemove,submit:submit,uploadFiles:uploadFiles};};var __default__={name:"ElUpload"};var _sfc_main$3=/* @__PURE__ */defineComponent(_objectSpread(_objectSpread({},__default__),{},{props:uploadProps,setup:function setup(__props,_ref189){var expose=_ref189.expose;var props=__props;var slots=useSlots();var disabled=useDisabled$1();var uploadRef=shallowRef();var _useHandlers=useHandlers(props,uploadRef),abort=_useHandlers.abort,submit=_useHandlers.submit,clearFiles=_useHandlers.clearFiles,uploadFiles=_useHandlers.uploadFiles,handleStart=_useHandlers.handleStart,handleError=_useHandlers.handleError,handleRemove=_useHandlers.handleRemove,handleSuccess=_useHandlers.handleSuccess,handleProgress=_useHandlers.handleProgress;var isPictureCard=computed(function(){return props.listType==="picture-card";});var uploadContentProps=computed(function(){return _objectSpread(_objectSpread({},props),{},{onStart:handleStart,onProgress:handleProgress,onSuccess:handleSuccess,onError:handleError,onRemove:handleRemove});});onBeforeUnmount(function(){uploadFiles.value.forEach(function(_ref190){var url=_ref190.url;if(url==null?void 0:url.startsWith("blob:"))URL.revokeObjectURL(url);});});provide(uploadContextKey,{accept:toRef(props,"accept")});expose({abort:abort,submit:submit,clearFiles:clearFiles,handleStart:handleStart,handleRemove:handleRemove});return function(_ctx,_cache){return openBlock(),createElementBlock("div",null,[unref(isPictureCard)&&_ctx.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(disabled),"list-type":_ctx.listType,files:unref(uploadFiles),"handle-preview":_ctx.onPreview,onRemove:unref(handleRemove)},createSlots({append:withCtx(function(){return[_ctx.listType==="picture-card"?(openBlock(),createBlock(UploadContent,mergeProps({key:0,ref_key:"uploadRef",ref:uploadRef},unref(uploadContentProps)),{default:withCtx(function(){return[unref(slots).trigger?renderSlot(_ctx.$slots,"trigger",{key:0}):createCommentVNode("v-if",true),!unref(slots).trigger&&unref(slots).default?renderSlot(_ctx.$slots,"default",{key:1}):createCommentVNode("v-if",true)];}),_:3},16)):createCommentVNode("v-if",true)];}),_:2},[_ctx.$slots.file?{name:"default",fn:withCtx(function(_ref191){var file=_ref191.file;return[renderSlot(_ctx.$slots,"file",{file:file})];})}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",true),_ctx.listType!=="picture-card"?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:uploadRef},unref(uploadContentProps)),{default:withCtx(function(){return[unref(slots).trigger?renderSlot(_ctx.$slots,"trigger",{key:0}):createCommentVNode("v-if",true),!unref(slots).trigger&&unref(slots).default?renderSlot(_ctx.$slots,"default",{key:1}):createCommentVNode("v-if",true)];}),_:3},16)):createCommentVNode("v-if",true),_ctx.$slots.trigger?renderSlot(_ctx.$slots,"default",{key:2}):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"tip"),!unref(isPictureCard)&&_ctx.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(disabled),"list-type":_ctx.listType,files:unref(uploadFiles),"handle-preview":_ctx.onPreview,onRemove:unref(handleRemove)},createSlots({_:2},[_ctx.$slots.file?{name:"default",fn:withCtx(function(_ref192){var file=_ref192.file;return[renderSlot(_ctx.$slots,"file",{file:file})];})}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",true)]);};}}));var Upload=/* @__PURE__ */_export_sfc$1(_sfc_main$3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);var ElUpload=exports('ag',withInstall(Upload));function createLoadingComponent(options){var afterLeaveTimer;var ns=useNamespace("loading");var afterLeaveFlag=ref(false);var data=reactive(_objectSpread(_objectSpread({},options),{},{originalPosition:"",originalOverflow:"",visible:false}));function setText(text){data.text=text;}function destroySelf(){var target=data.parent;if(!target.vLoadingAddClassList){var loadingNumber=target.getAttribute("loading-number");loadingNumber=Number.parseInt(loadingNumber)-1;if(!loadingNumber){removeClass(target,ns.bm("parent","relative"));target.removeAttribute("loading-number");}else{target.setAttribute("loading-number",loadingNumber.toString());}removeClass(target,ns.bm("parent","hidden"));}removeElLoadingChild();loadingInstance.unmount();}function removeElLoadingChild(){var _a,_b;(_b=(_a=vm.$el)==null?void 0:_a.parentNode)==null?void 0:_b.removeChild(vm.$el);}function close(){var _a;if(options.beforeClose&&!options.beforeClose())return;var target=data.parent;target.vLoadingAddClassList=void 0;afterLeaveFlag.value=true;clearTimeout(afterLeaveTimer);afterLeaveTimer=window.setTimeout(function(){if(afterLeaveFlag.value){afterLeaveFlag.value=false;destroySelf();}},400);data.visible=false;(_a=options.closed)==null?void 0:_a.call(options);}function handleAfterLeave(){if(!afterLeaveFlag.value)return;afterLeaveFlag.value=false;destroySelf();}var elLoadingComponent={name:"ElLoading",setup:function setup(){return function(){var svg=data.spinner||data.svg;var spinner=h("svg",_objectSpread({class:"circular",viewBox:data.svgViewBox?data.svgViewBox:"25 25 50 50"},svg?{innerHTML:svg}:{}),[h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]);var spinnerText=data.text?h("p",{class:ns.b("text")},[data.text]):void 0;return h(Transition,{name:ns.b("fade"),onAfterLeave:handleAfterLeave},{default:withCtx(function(){return[withDirectives(createVNode("div",{style:{backgroundColor:data.background||""},class:[ns.b("mask"),data.customClass,data.fullscreen?"is-fullscreen":""]},[h("div",{class:ns.b("spinner")},[spinner,spinnerText])]),[[vShow,data.visible]])];})});};}};var loadingInstance=createApp(elLoadingComponent);var vm=loadingInstance.mount(document.createElement("div"));return _objectSpread(_objectSpread({},toRefs(data)),{},{setText:setText,removeElLoadingChild:removeElLoadingChild,close:close,handleAfterLeave:handleAfterLeave,vm:vm,get $el(){return vm.$el;}});}var fullscreenInstance=void 0;var Loading=function Loading(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!isClient)return void 0;var resolved=resolveOptions(options);if(resolved.fullscreen&&fullscreenInstance){return fullscreenInstance;}var instance=createLoadingComponent(_objectSpread(_objectSpread({},resolved),{},{closed:function closed(){var _a;(_a=resolved.closed)==null?void 0:_a.call(resolved);if(resolved.fullscreen)fullscreenInstance=void 0;}}));addStyle(resolved,resolved.parent,instance);addClassList(resolved,resolved.parent,instance);resolved.parent.vLoadingAddClassList=function(){return addClassList(resolved,resolved.parent,instance);};var loadingNumber=resolved.parent.getAttribute("loading-number");if(!loadingNumber){loadingNumber="1";}else{loadingNumber="".concat(Number.parseInt(loadingNumber)+1);}resolved.parent.setAttribute("loading-number",loadingNumber);resolved.parent.appendChild(instance.$el);nextTick(function(){return instance.visible.value=resolved.visible;});if(resolved.fullscreen){fullscreenInstance=instance;}return instance;};var resolveOptions=function resolveOptions(options){var _a,_b,_c,_d;var target;if(isString$2(options.target)){target=(_a=document.querySelector(options.target))!=null?_a:document.body;}else{target=options.target||document.body;}return{parent:target===document.body||options.body?document.body:target,background:options.background||"",svg:options.svg||"",svgViewBox:options.svgViewBox||"",spinner:options.spinner||false,text:options.text||"",fullscreen:target===document.body&&((_b=options.fullscreen)!=null?_b:true),lock:(_c=options.lock)!=null?_c:false,customClass:options.customClass||"",visible:(_d=options.visible)!=null?_d:true,target:target};};var addStyle=/*#__PURE__*/function(){var _ref193=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee32(options,parent,instance){var _useZIndex4,nextZIndex,maskStyle,_i54,_arr3,property,scroll,_i55,_arr4,_property,_i56,_Object$entries4,_Object$entries4$_i,key,value;return regeneratorRuntime.wrap(function _callee32$(_context32){while(1){switch(_context32.prev=_context32.next){case 0:_useZIndex4=useZIndex(),nextZIndex=_useZIndex4.nextZIndex;maskStyle={};if(!options.fullscreen){_context32.next=8;break;}instance.originalPosition.value=getStyle(document.body,"position");instance.originalOverflow.value=getStyle(document.body,"overflow");maskStyle.zIndex=nextZIndex();_context32.next=17;break;case 8:if(!(options.parent===document.body)){_context32.next=16;break;}instance.originalPosition.value=getStyle(document.body,"position");_context32.next=12;return nextTick();case 12:for(_i54=0,_arr3=["top","left"];_i54<_arr3.length;_i54++){property=_arr3[_i54];scroll=property==="top"?"scrollTop":"scrollLeft";maskStyle[property]="".concat(options.target.getBoundingClientRect()[property]+document.body[scroll]+document.documentElement[scroll]-Number.parseInt(getStyle(document.body,"margin-".concat(property)),10),"px");}for(_i55=0,_arr4=["height","width"];_i55<_arr4.length;_i55++){_property=_arr4[_i55];maskStyle[_property]="".concat(options.target.getBoundingClientRect()[_property],"px");}_context32.next=17;break;case 16:instance.originalPosition.value=getStyle(parent,"position");case 17:for(_i56=0,_Object$entries4=Object.entries(maskStyle);_i56<_Object$entries4.length;_i56++){_Object$entries4$_i=_slicedToArray(_Object$entries4[_i56],2),key=_Object$entries4$_i[0],value=_Object$entries4$_i[1];instance.$el.style[key]=value;}case 18:case"end":return _context32.stop();}}},_callee32);}));return function addStyle(_x15,_x16,_x17){return _ref193.apply(this,arguments);};}();var addClassList=function addClassList(options,parent,instance){var ns=useNamespace("loading");if(instance.originalPosition.value!=="absolute"&&instance.originalPosition.value!=="fixed"){addClass(parent,ns.bm("parent","relative"));}else{removeClass(parent,ns.bm("parent","relative"));}if(options.fullscreen&&options.lock){addClass(parent,ns.bm("parent","hidden"));}else{removeClass(parent,ns.bm("parent","hidden"));}};var INSTANCE_KEY=Symbol("ElLoading");var createInstance=function createInstance(el,binding){var _a,_b,_c,_d;var vm=binding.instance;var getBindingProp=function getBindingProp(key){return isObject$2(binding.value)?binding.value[key]:void 0;};var resolveExpression=function resolveExpression(key){var data=isString$2(key)&&(vm==null?void 0:vm[key])||key;if(data)return ref(data);else return data;};var getProp=function getProp(name){return resolveExpression(getBindingProp(name)||el.getAttribute("element-loading-".concat(hyphenate(name))));};var fullscreen=(_a=getBindingProp("fullscreen"))!=null?_a:binding.modifiers.fullscreen;var options={text:getProp("text"),svg:getProp("svg"),svgViewBox:getProp("svgViewBox"),spinner:getProp("spinner"),background:getProp("background"),customClass:getProp("customClass"),fullscreen:fullscreen,target:(_b=getBindingProp("target"))!=null?_b:fullscreen?void 0:el,body:(_c=getBindingProp("body"))!=null?_c:binding.modifiers.body,lock:(_d=getBindingProp("lock"))!=null?_d:binding.modifiers.lock};el[INSTANCE_KEY]={options:options,instance:Loading(options)};};var updateOptions=function updateOptions(newOptions,originalOptions){for(var _i57=0,_Object$keys=Object.keys(originalOptions);_i57<_Object$keys.length;_i57++){var key=_Object$keys[_i57];if(isRef(originalOptions[key]))originalOptions[key].value=newOptions[key];}};var vLoading={mounted:function mounted(el,binding){if(binding.value){createInstance(el,binding);}},updated:function updated(el,binding){var instance=el[INSTANCE_KEY];if(binding.oldValue!==binding.value){if(binding.value&&!binding.oldValue){createInstance(el,binding);}else if(binding.value&&binding.oldValue){if(isObject$2(binding.value))updateOptions(binding.value,instance.options);}else{instance==null?void 0:instance.instance.close();}}},unmounted:function unmounted(el){var _a;(_a=el[INSTANCE_KEY])==null?void 0:_a.instance.close();}};var ElLoading=exports('ah',{install:function install(app){app.directive("loading",vLoading);app.config.globalProperties.$loading=Loading;},directive:vLoading,service:Loading});var messageTypes=["success","info","warning","error"];var messageProps=buildProps({customClass:{type:String,default:""},center:{type:Boolean,default:false},dangerouslyUseHTMLString:{type:Boolean,default:false},duration:{type:Number,default:3e3},icon:{type:iconPropType,default:""},id:{type:String,default:""},message:{type:definePropType([String,Object,Function]),default:""},onClose:{type:definePropType(Function),required:false},showClose:{type:Boolean,default:false},type:{type:String,values:messageTypes,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:false},repeatNum:{type:Number,default:1}});var messageEmits={destroy:function destroy(){return true;}};var _sfc_main$2=defineComponent({name:"ElMessage",components:_objectSpread({ElBadge:ElBadge,ElIcon:ElIcon},TypeComponents),props:messageProps,emits:messageEmits,setup:function setup(props){var ns=useNamespace("message");var visible=ref(false);var badgeType=ref(props.type?props.type==="error"?"danger":props.type:"info");var stopTimer=void 0;var typeClass=computed(function(){var type=props.type;return _defineProperty2({},ns.bm("icon",type),type&&TypeComponentsMap[type]);});var iconComponent=computed(function(){return props.icon||TypeComponentsMap[props.type]||"";});var customStyle=computed(function(){return{top:"".concat(props.offset,"px"),zIndex:props.zIndex};});function startTimer(){if(props.duration>0){var _useTimeoutFn3=useTimeoutFn(function(){if(visible.value)close();},props.duration);stopTimer=_useTimeoutFn3.stop;}}function clearTimer(){stopTimer==null?void 0:stopTimer();}function close(){visible.value=false;}function keydown(_ref195){var code=_ref195.code;if(code===EVENT_CODE.esc){if(visible.value){close();}}else{startTimer();}}onMounted(function(){startTimer();visible.value=true;});watch(function(){return props.repeatNum;},function(){clearTimer();startTimer();});useEventListener(document,"keydown",keydown);return{ns:ns,typeClass:typeClass,iconComponent:iconComponent,customStyle:customStyle,visible:visible,badgeType:badgeType,close:close,clearTimer:clearTimer,startTimer:startTimer};}});var _hoisted_1$2=["id"];var _hoisted_2$1=["innerHTML"];function _sfc_render$2(_ctx,_cache,$props,$setup,$data,$options){var _component_el_badge=resolveComponent("el-badge");var _component_el_icon=resolveComponent("el-icon");var _component_close=resolveComponent("close");return openBlock(),createBlock(Transition,{name:_ctx.ns.b("fade"),onBeforeLeave:_ctx.onClose,onAfterLeave:_cache[2]||(_cache[2]=function($event){return _ctx.$emit("destroy");}),persisted:""},{default:withCtx(function(){return[withDirectives(createBaseVNode("div",{id:_ctx.id,class:normalizeClass([_ctx.ns.b(),_defineProperty2({},_ctx.ns.m(_ctx.type),_ctx.type&&!_ctx.icon),_ctx.ns.is("center",_ctx.center),_ctx.ns.is("closable",_ctx.showClose),_ctx.customClass]),style:normalizeStyle(_ctx.customStyle),role:"alert",onMouseenter:_cache[0]||(_cache[0]=function(){return _ctx.clearTimer&&_ctx.clearTimer.apply(_ctx,arguments);}),onMouseleave:_cache[1]||(_cache[1]=function(){return _ctx.startTimer&&_ctx.startTimer.apply(_ctx,arguments);})},[_ctx.repeatNum>1?(openBlock(),createBlock(_component_el_badge,{key:0,value:_ctx.repeatNum,type:_ctx.badgeType,class:normalizeClass(_ctx.ns.e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",true),_ctx.iconComponent?(openBlock(),createBlock(_component_el_icon,{key:1,class:normalizeClass([_ctx.ns.e("icon"),_ctx.typeClass])},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.iconComponent)))];}),_:1},8,["class"])):createCommentVNode("v-if",true),renderSlot(_ctx.$slots,"default",{},function(){return[!_ctx.dangerouslyUseHTMLString?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(_ctx.ns.e("content"))},toDisplayString(_ctx.message),3)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(_ctx.ns.e("content")),innerHTML:_ctx.message},null,10,_hoisted_2$1)],2112))];}),_ctx.showClose?(openBlock(),createBlock(_component_el_icon,{key:2,class:normalizeClass(_ctx.ns.e("closeBtn")),onClick:withModifiers(_ctx.close,["stop"])},{default:withCtx(function(){return[createVNode(_component_close)];}),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)],46,_hoisted_1$2),[[vShow,_ctx.visible]])];}),_:3},8,["name","onBeforeLeave"]);}var MessageConstructor=/* @__PURE__ */_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);var instances=[];var seed=1;var message=function message(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var context=arguments.length>1?arguments[1]:undefined;if(!isClient)return{close:function close(){return void 0;}};if(isNumber$1(messageConfig.max)&&instances.length>=messageConfig.max){return{close:function close(){return void 0;}};}if(!isVNode(options)&&isObject$2(options)&&options.grouping&&!isVNode(options.message)&&instances.length){var tempVm=instances.find(function(item){var _a,_b,_c;return"".concat((_b=(_a=item.vm.props)==null?void 0:_a.message)!=null?_b:"")==="".concat((_c=options.message)!=null?_c:"");});if(tempVm){tempVm.vm.component.props.repeatNum+=1;tempVm.vm.component.props.type=(options==null?void 0:options.type)||"info";return{close:function close(){return vm.component.proxy.visible=false;}};}}if(isString$2(options)||isVNode(options)){options={message:options};}var verticalOffset=options.offset||20;instances.forEach(function(_ref197){var vm2=_ref197.vm;var _a;verticalOffset+=(((_a=vm2.el)==null?void 0:_a.offsetHeight)||0)+16;});verticalOffset+=16;var _useZIndex5=useZIndex(),nextZIndex=_useZIndex5.nextZIndex;var id="message_".concat(seed++);var userOnClose=options.onClose;var props=_objectSpread(_objectSpread({zIndex:nextZIndex()},options),{},{offset:verticalOffset,id:id,onClose:function onClose(){close(id,userOnClose);}});var appendTo=document.body;if(isElement$1(options.appendTo)){appendTo=options.appendTo;}else if(isString$2(options.appendTo)){appendTo=document.querySelector(options.appendTo);}if(!isElement$1(appendTo)){appendTo=document.body;}var container=document.createElement("div");container.className="container_".concat(id);var messageContent=props.message;var vm=createVNode(MessageConstructor,props,isFunction$1(messageContent)?{default:messageContent}:isVNode(messageContent)?{default:function _default(){return messageContent;}}:null);vm.appContext=context||message._context;vm.props.onDestroy=function(){render(null,container);};render(vm,container);instances.push({vm:vm});appendTo.appendChild(container.firstElementChild);return{close:function close(){return vm.component.proxy.visible=false;}};};messageTypes.forEach(function(type){message[type]=function(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var appContext=arguments.length>1?arguments[1]:undefined;if(isString$2(options)||isVNode(options)){options={message:options};}return message(_objectSpread(_objectSpread({},options),{},{type:type}),appContext);};});function close(id,userOnClose){var idx=instances.findIndex(function(_ref198){var vm2=_ref198.vm;return id===vm2.component.props.id;});if(idx===-1)return;var vm=instances[idx].vm;if(!vm)return;userOnClose==null?void 0:userOnClose(vm);var removedHeight=vm.el.offsetHeight;instances.splice(idx,1);var len=instances.length;if(len<1)return;for(var _i58=idx;_i58<len;_i58++){var pos=Number.parseInt(instances[_i58].vm.el.style["top"],10)-removedHeight-16;instances[_i58].vm.component.props.offset=pos;}}function closeAll(){var _a;for(var _i59=instances.length-1;_i59>=0;_i59--){var instance=instances[_i59].vm.component;(_a=instance==null?void 0:instance.proxy)==null?void 0:_a.close();}}message.closeAll=closeAll;message._context=null;var ElMessage=exports('E',withInstallFunction(message,"$message"));var _sfc_main$1=defineComponent({name:"ElMessageBox",directives:{TrapFocus:TrapFocus},components:_objectSpread({ElButton:ElButton,ElFocusTrap:ElFocusTrap,ElInput:ElInput,ElOverlay:ElOverlay,ElIcon:ElIcon},TypeComponents),inheritAttrs:false,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:true},lockScroll:{type:Boolean,default:true},showClose:{type:Boolean,default:true},closeOnClickModal:{type:Boolean,default:true},closeOnPressEscape:{type:Boolean,default:true},closeOnHashChange:{type:Boolean,default:true},center:Boolean,draggable:Boolean,roundButton:{default:false,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup:function setup(props,_ref199){var emit=_ref199.emit;var _useLocale23=useLocale(),t=_useLocale23.t;var ns=useNamespace("message-box");var visible=ref(false);var _useZIndex6=useZIndex(),nextZIndex=_useZIndex6.nextZIndex;var state=reactive({beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:false,distinguishCancelAndClose:false,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:true,modalClass:"",showCancelButton:false,showConfirmButton:true,type:"",title:void 0,showInput:false,action:"",confirmButtonLoading:false,cancelButtonLoading:false,confirmButtonDisabled:false,editorErrorMessage:"",validateError:false,zIndex:nextZIndex()});var typeClass=computed(function(){var type=state.type;return _defineProperty2({},ns.bm("icon",type),type&&TypeComponentsMap[type]);});var contentId=useId();var inputId=useId();var btnSize=useSize(computed(function(){return props.buttonSize;}),{prop:true,form:true,formItem:true});var iconComponent=computed(function(){return state.icon||TypeComponentsMap[state.type]||"";});var hasMessage=computed(function(){return!!state.message;});var rootRef=ref();var headerRef=ref();var focusStartRef=ref();var inputRef=ref();var confirmRef=ref();var confirmButtonClasses=computed(function(){return state.confirmButtonClass;});watch(function(){return state.inputValue;},/*#__PURE__*/function(){var _ref201=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee33(val){return regeneratorRuntime.wrap(function _callee33$(_context33){while(1){switch(_context33.prev=_context33.next){case 0:_context33.next=2;return nextTick();case 2:if(props.boxType==="prompt"&&val!==null){validate();}case 3:case"end":return _context33.stop();}}},_callee33);}));return function(_x18){return _ref201.apply(this,arguments);};}(),{immediate:true});watch(function(){return visible.value;},function(val){var _a,_b;if(val){if(props.boxType==="alert"||props.boxType==="confirm"){focusStartRef.value=(_b=(_a=confirmRef.value)==null?void 0:_a.$el)!=null?_b:rootRef.value;}state.zIndex=nextZIndex();}if(props.boxType!=="prompt")return;if(val){nextTick().then(function(){var _a2;if(inputRef.value&&inputRef.value.$el){focusStartRef.value=(_a2=getInputElement())!=null?_a2:rootRef.value;}});}else{state.editorErrorMessage="";state.validateError=false;}});var draggable=computed(function(){return props.draggable;});useDraggable(rootRef,headerRef,draggable);onMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee34(){return regeneratorRuntime.wrap(function _callee34$(_context34){while(1){switch(_context34.prev=_context34.next){case 0:_context34.next=2;return nextTick();case 2:if(props.closeOnHashChange){on$1(window,"hashchange",doClose);}case 3:case"end":return _context34.stop();}}},_callee34);})));onBeforeUnmount(function(){if(props.closeOnHashChange){off(window,"hashchange",doClose);}});function doClose(){if(!visible.value)return;visible.value=false;nextTick(function(){if(state.action)emit("action",state.action);});}var handleWrapperClick=function handleWrapperClick(){if(props.closeOnClickModal){handleAction(state.distinguishCancelAndClose?"close":"cancel");}};var overlayEvent=useSameTarget(handleWrapperClick);var handleInputEnter=function handleInputEnter(e){if(state.inputType!=="textarea"){e.preventDefault();return handleAction("confirm");}};var handleAction=function handleAction(action){var _a;if(props.boxType==="prompt"&&action==="confirm"&&!validate()){return;}state.action=action;if(state.beforeClose){(_a=state.beforeClose)==null?void 0:_a.call(state,action,state,doClose);}else{doClose();}};var validate=function validate(){if(props.boxType==="prompt"){var inputPattern=state.inputPattern;if(inputPattern&&!inputPattern.test(state.inputValue||"")){state.editorErrorMessage=state.inputErrorMessage||t("el.messagebox.error");state.validateError=true;return false;}var inputValidator=state.inputValidator;if(typeof inputValidator==="function"){var validateResult=inputValidator(state.inputValue);if(validateResult===false){state.editorErrorMessage=state.inputErrorMessage||t("el.messagebox.error");state.validateError=true;return false;}if(typeof validateResult==="string"){state.editorErrorMessage=validateResult;state.validateError=true;return false;}}}state.editorErrorMessage="";state.validateError=false;return true;};var getInputElement=function getInputElement(){var inputRefs=inputRef.value.$refs;return inputRefs.input||inputRefs.textarea;};var handleClose=function handleClose(){handleAction("close");};var onCloseRequested=function onCloseRequested(){if(props.closeOnPressEscape){handleClose();}};if(props.lockScroll){useLockscreen(visible);}useRestoreActive(visible);return _objectSpread(_objectSpread({},toRefs(state)),{},{ns:ns,overlayEvent:overlayEvent,visible:visible,hasMessage:hasMessage,typeClass:typeClass,contentId:contentId,inputId:inputId,btnSize:btnSize,iconComponent:iconComponent,confirmButtonClasses:confirmButtonClasses,rootRef:rootRef,focusStartRef:focusStartRef,headerRef:headerRef,inputRef:inputRef,confirmRef:confirmRef,doClose:doClose,handleClose:handleClose,onCloseRequested:onCloseRequested,handleWrapperClick:handleWrapperClick,handleInputEnter:handleInputEnter,handleAction:handleAction,t:t});}});var _hoisted_1$1=["aria-label","aria-describedby"];var _hoisted_2=["aria-label"];var _hoisted_3=["id"];function _sfc_render$1(_ctx,_cache,$props,$setup,$data,$options){var _component_el_icon=resolveComponent("el-icon");var _component_close=resolveComponent("close");var _component_el_input=resolveComponent("el-input");var _component_el_button=resolveComponent("el-button");var _component_el_focus_trap=resolveComponent("el-focus-trap");var _component_el_overlay=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:_cache[11]||(_cache[11]=function($event){return _ctx.$emit("vanish");}),persisted:""},{default:withCtx(function(){return[withDirectives(createVNode(_component_el_overlay,{"z-index":_ctx.zIndex,"overlay-class":[_ctx.ns.is("message-box"),_ctx.modalClass],mask:_ctx.modal},{default:withCtx(function(){return[createBaseVNode("div",{role:"dialog","aria-label":_ctx.title,"aria-modal":"true","aria-describedby":!_ctx.showInput?_ctx.contentId:void 0,class:normalizeClass("".concat(_ctx.ns.namespace.value,"-overlay-message-box")),onClick:_cache[8]||(_cache[8]=function(){var _ctx$overlayEvent;return _ctx.overlayEvent.onClick&&(_ctx$overlayEvent=_ctx.overlayEvent).onClick.apply(_ctx$overlayEvent,arguments);}),onMousedown:_cache[9]||(_cache[9]=function(){var _ctx$overlayEvent2;return _ctx.overlayEvent.onMousedown&&(_ctx$overlayEvent2=_ctx.overlayEvent).onMousedown.apply(_ctx$overlayEvent2,arguments);}),onMouseup:_cache[10]||(_cache[10]=function(){var _ctx$overlayEvent3;return _ctx.overlayEvent.onMouseup&&(_ctx$overlayEvent3=_ctx.overlayEvent).onMouseup.apply(_ctx$overlayEvent3,arguments);})},[createVNode(_component_el_focus_trap,{loop:"",trapped:_ctx.visible,"focus-trap-el":_ctx.rootRef,"focus-start-el":_ctx.focusStartRef,onReleaseRequested:_ctx.onCloseRequested},{default:withCtx(function(){return[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([_ctx.ns.b(),_ctx.customClass,_ctx.ns.is("draggable",_ctx.draggable),_defineProperty2({},_ctx.ns.m("center"),_ctx.center)]),style:normalizeStyle(_ctx.customStyle),tabindex:"-1",onClick:_cache[7]||(_cache[7]=withModifiers(function(){},["stop"]))},[_ctx.title!==null&&_ctx.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass(_ctx.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass(_ctx.ns.e("title"))},[_ctx.iconComponent&&_ctx.center?(openBlock(),createBlock(_component_el_icon,{key:0,class:normalizeClass([_ctx.ns.e("status"),_ctx.typeClass])},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.iconComponent)))];}),_:1},8,["class"])):createCommentVNode("v-if",true),createBaseVNode("span",null,toDisplayString(_ctx.title),1)],2),_ctx.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(_ctx.ns.e("headerbtn")),"aria-label":_ctx.t("el.messagebox.close"),onClick:_cache[0]||(_cache[0]=function($event){return _ctx.handleAction(_ctx.distinguishCancelAndClose?"close":"cancel");}),onKeydown:_cache[1]||(_cache[1]=withKeys(withModifiers(function($event){return _ctx.handleAction(_ctx.distinguishCancelAndClose?"close":"cancel");},["prevent"]),["enter"]))},[createVNode(_component_el_icon,{class:normalizeClass(_ctx.ns.e("close"))},{default:withCtx(function(){return[createVNode(_component_close)];}),_:1},8,["class"])],42,_hoisted_2)):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true),createBaseVNode("div",{id:_ctx.contentId,class:normalizeClass(_ctx.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(_ctx.ns.e("container"))},[_ctx.iconComponent&&!_ctx.center&&_ctx.hasMessage?(openBlock(),createBlock(_component_el_icon,{key:0,class:normalizeClass([_ctx.ns.e("status"),_ctx.typeClass])},{default:withCtx(function(){return[(openBlock(),createBlock(resolveDynamicComponent(_ctx.iconComponent)))];}),_:1},8,["class"])):createCommentVNode("v-if",true),_ctx.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(_ctx.ns.e("message"))},[renderSlot(_ctx.$slots,"default",{},function(){return[!_ctx.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(_ctx.showInput?"label":"p"),{key:0,for:_ctx.showInput?_ctx.inputId:void 0},{default:withCtx(function(){return[createTextVNode(toDisplayString(!_ctx.dangerouslyUseHTMLString?_ctx.message:""),1)];}),_:1},8,["for"])):(openBlock(),createBlock(resolveDynamicComponent(_ctx.showInput?"label":"p"),{key:1,for:_ctx.showInput?_ctx.inputId:void 0,innerHTML:_ctx.message},null,8,["for","innerHTML"]))];})],2)):createCommentVNode("v-if",true)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(_ctx.ns.e("input"))},[createVNode(_component_el_input,{id:_ctx.inputId,ref:"inputRef",modelValue:_ctx.inputValue,"onUpdate:modelValue":_cache[2]||(_cache[2]=function($event){return _ctx.inputValue=$event;}),type:_ctx.inputType,placeholder:_ctx.inputPlaceholder,"aria-invalid":_ctx.validateError,class:normalizeClass({invalid:_ctx.validateError}),onKeydown:withKeys(_ctx.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(_ctx.ns.e("errormsg")),style:normalizeStyle({visibility:!!_ctx.editorErrorMessage?"visible":"hidden"})},toDisplayString(_ctx.editorErrorMessage),7)],2),[[vShow,_ctx.showInput]])],10,_hoisted_3),createBaseVNode("div",{class:normalizeClass(_ctx.ns.e("btns"))},[_ctx.showCancelButton?(openBlock(),createBlock(_component_el_button,{key:0,loading:_ctx.cancelButtonLoading,class:normalizeClass([_ctx.cancelButtonClass]),round:_ctx.roundButton,size:_ctx.btnSize,onClick:_cache[3]||(_cache[3]=function($event){return _ctx.handleAction("cancel");}),onKeydown:_cache[4]||(_cache[4]=withKeys(withModifiers(function($event){return _ctx.handleAction("cancel");},["prevent"]),["enter"]))},{default:withCtx(function(){return[createTextVNode(toDisplayString(_ctx.cancelButtonText||_ctx.t("el.messagebox.cancel")),1)];}),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",true),withDirectives(createVNode(_component_el_button,{ref:"confirmRef",type:"primary",loading:_ctx.confirmButtonLoading,class:normalizeClass([_ctx.confirmButtonClasses]),round:_ctx.roundButton,disabled:_ctx.confirmButtonDisabled,size:_ctx.btnSize,onClick:_cache[5]||(_cache[5]=function($event){return _ctx.handleAction("confirm");}),onKeydown:_cache[6]||(_cache[6]=withKeys(withModifiers(function($event){return _ctx.handleAction("confirm");},["prevent"]),["enter"]))},{default:withCtx(function(){return[createTextVNode(toDisplayString(_ctx.confirmButtonText||_ctx.t("el.messagebox.confirm")),1)];}),_:1},8,["loading","class","round","disabled","size"]),[[vShow,_ctx.showConfirmButton]])],2)],6)];}),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$1)];}),_:3},8,["z-index","overlay-class","mask"]),[[vShow,_ctx.visible]])];}),_:3});}var MessageBoxConstructor=/* @__PURE__ */_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);var messageInstance=/* @__PURE__ */new Map();var initInstance=function initInstance(props,container){var appContext=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var vnode=h(MessageBoxConstructor,props);vnode.appContext=appContext;render(vnode,container);document.body.appendChild(container.firstElementChild);return vnode.component;};var genContainer=function genContainer(){return document.createElement("div");};var showMessage=function showMessage(options,appContext){var container=genContainer();options.onVanish=function(){render(null,container);messageInstance.delete(vm);};options.onAction=function(action){var currentMsg=messageInstance.get(vm);var resolve;if(options.showInput){resolve={value:vm.inputValue,action:action};}else{resolve=action;}if(options.callback){options.callback(resolve,instance.proxy);}else{if(action==="cancel"||action==="close"){if(options.distinguishCancelAndClose&&action!=="cancel"){currentMsg.reject("close");}else{currentMsg.reject("cancel");}}else{currentMsg.resolve(resolve);}}};var instance=initInstance(options,container,appContext);var vm=instance.proxy;for(var prop in options){if(hasOwn$2(options,prop)&&!hasOwn$2(vm.$props,prop)){vm[prop]=options[prop];}}watch(function(){return vm.message;},function(newVal,oldVal){if(isVNode(newVal)){instance.slots.default=function(){return[newVal];};}else if(isVNode(oldVal)&&!isVNode(newVal)){delete instance.slots.default;}},{immediate:true});vm.visible=true;return vm;};function MessageBox(options){var appContext=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!isClient)return Promise.reject();var callback;if(isString$2(options)||isVNode(options)){options={message:options};}else{callback=options.callback;}return new Promise(function(resolve,reject){var vm=showMessage(options,appContext!=null?appContext:MessageBox._context);messageInstance.set(vm,{options:options,callback:callback,resolve:resolve,reject:reject});});}var MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"];var MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:false,closeOnClickModal:false},confirm:{showCancelButton:true},prompt:{showCancelButton:true,showInput:true}};MESSAGE_BOX_VARIANTS.forEach(function(boxType){MessageBox[boxType]=messageBoxFactory(boxType);});function messageBoxFactory(boxType){return function(message,titleOrOpts,options,appContext){var title;if(isObject$2(titleOrOpts)){options=titleOrOpts;title="";}else if(isUndefined(titleOrOpts)){title="";}else{title=titleOrOpts;}return MessageBox(Object.assign(_objectSpread({title:title,message:message,type:""},MESSAGE_BOX_DEFAULT_OPTS[boxType]),options,{boxType:boxType}),appContext);};}MessageBox.close=function(){messageInstance.forEach(function(_,vm){vm.doClose();});messageInstance.clear();};MessageBox._context=null;var _MessageBox=MessageBox;_MessageBox.install=function(app){_MessageBox._context=app._context;app.config.globalProperties.$msgbox=_MessageBox;app.config.globalProperties.$messageBox=_MessageBox;app.config.globalProperties.$alert=_MessageBox.alert;app.config.globalProperties.$confirm=_MessageBox.confirm;app.config.globalProperties.$prompt=_MessageBox.prompt;};var ElMessageBox=exports('j',_MessageBox);/* eslint complexity: [2, 18], max-statements: [2, 33] */var shams=function hasSymbols(){if(typeof Symbol!=='function'||typeof Object.getOwnPropertySymbols!=='function'){return false;}if(_typeof2(Symbol.iterator)==='symbol'){return true;}var obj={};var sym=Symbol('test');var symObj=Object(sym);if(typeof sym==='string'){return false;}if(Object.prototype.toString.call(sym)!=='[object Symbol]'){return false;}if(Object.prototype.toString.call(symObj)!=='[object Symbol]'){return false;}// temp disabled per https://github.com/ljharb/object.assign/issues/17
  2677. // if (sym instanceof Symbol) { return false; }
  2678. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  2679. // if (!(symObj instanceof Symbol)) { return false; }
  2680. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  2681. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  2682. var symVal=42;obj[sym]=symVal;for(sym in obj){return false;}// eslint-disable-line no-restricted-syntax, no-unreachable-loop
  2683. if(typeof Object.keys==='function'&&Object.keys(obj).length!==0){return false;}if(typeof Object.getOwnPropertyNames==='function'&&Object.getOwnPropertyNames(obj).length!==0){return false;}var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym){return false;}if(!Object.prototype.propertyIsEnumerable.call(obj,sym)){return false;}if(typeof Object.getOwnPropertyDescriptor==='function'){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==true){return false;}}return true;};var origSymbol=typeof Symbol!=='undefined'&&Symbol;var hasSymbolSham=shams;var hasSymbols$1=function hasNativeSymbols(){if(typeof origSymbol!=='function'){return false;}if(typeof Symbol!=='function'){return false;}if(_typeof2(origSymbol('foo'))!=='symbol'){return false;}if(_typeof2(Symbol('bar'))!=='symbol'){return false;}return hasSymbolSham();};/* eslint no-invalid-this: 1 */var ERROR_MESSAGE='Function.prototype.bind called on incompatible ';var slice=Array.prototype.slice;var toStr$1=Object.prototype.toString;var funcType='[object Function]';var implementation$1=function bind(that){var target=this;if(typeof target!=='function'||toStr$1.call(target)!==funcType){throw new TypeError(ERROR_MESSAGE+target);}var args=slice.call(arguments,1);var bound;var binder=function binder(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));if(Object(result)===result){return result;}return this;}else{return target.apply(that,args.concat(slice.call(arguments)));}};var boundLength=Math.max(0,target.length-args.length);var boundArgs=[];for(var i=0;i<boundLength;i++){boundArgs.push('$'+i);}bound=Function('binder','return function ('+boundArgs.join(',')+'){ return binder.apply(this,arguments); }')(binder);if(target.prototype){var Empty=function Empty(){};Empty.prototype=target.prototype;bound.prototype=new Empty();Empty.prototype=null;}return bound;};var implementation=implementation$1;var functionBind=Function.prototype.bind||implementation;var bind$1=functionBind;var src$1=bind$1.call(Function.call,Object.prototype.hasOwnProperty);var undefined$1;var $SyntaxError=SyntaxError;var $Function=Function;var $TypeError$1=TypeError;// eslint-disable-next-line consistent-return
  2684. var getEvalledConstructor=function getEvalledConstructor(expressionSyntax){try{return $Function('"use strict"; return ('+expressionSyntax+').constructor;')();}catch(e){}};var $gOPD=Object.getOwnPropertyDescriptor;if($gOPD){try{$gOPD({},'');}catch(e){$gOPD=null;// this is IE 8, which has a broken gOPD
  2685. }}var throwTypeError=function throwTypeError(){throw new $TypeError$1();};var ThrowTypeError=$gOPD?function(){try{// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  2686. arguments.callee;// IE 8 does not throw here
  2687. return throwTypeError;}catch(calleeThrows){try{// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  2688. return $gOPD(arguments,'callee').get;}catch(gOPDthrows){return throwTypeError;}}}():throwTypeError;var hasSymbols=hasSymbols$1();var getProto=Object.getPrototypeOf||function(x){return x.__proto__;};// eslint-disable-line no-proto
  2689. var needsEval={};var TypedArray=typeof Uint8Array==='undefined'?undefined$1:getProto(Uint8Array);var INTRINSICS={'%AggregateError%':typeof AggregateError==='undefined'?undefined$1:AggregateError,'%Array%':Array,'%ArrayBuffer%':typeof ArrayBuffer==='undefined'?undefined$1:ArrayBuffer,'%ArrayIteratorPrototype%':hasSymbols?getProto([][Symbol.iterator]()):undefined$1,'%AsyncFromSyncIteratorPrototype%':undefined$1,'%AsyncFunction%':needsEval,'%AsyncGenerator%':needsEval,'%AsyncGeneratorFunction%':needsEval,'%AsyncIteratorPrototype%':needsEval,'%Atomics%':typeof Atomics==='undefined'?undefined$1:Atomics,'%BigInt%':typeof BigInt==='undefined'?undefined$1:BigInt,'%Boolean%':Boolean,'%DataView%':typeof DataView==='undefined'?undefined$1:DataView,'%Date%':Date,'%decodeURI%':decodeURI,'%decodeURIComponent%':decodeURIComponent,'%encodeURI%':encodeURI,'%encodeURIComponent%':encodeURIComponent,'%Error%':Error,'%eval%':eval,// eslint-disable-line no-eval
  2690. '%EvalError%':EvalError,'%Float32Array%':typeof Float32Array==='undefined'?undefined$1:Float32Array,'%Float64Array%':typeof Float64Array==='undefined'?undefined$1:Float64Array,'%FinalizationRegistry%':typeof FinalizationRegistry==='undefined'?undefined$1:FinalizationRegistry,'%Function%':$Function,'%GeneratorFunction%':needsEval,'%Int8Array%':typeof Int8Array==='undefined'?undefined$1:Int8Array,'%Int16Array%':typeof Int16Array==='undefined'?undefined$1:Int16Array,'%Int32Array%':typeof Int32Array==='undefined'?undefined$1:Int32Array,'%isFinite%':isFinite,'%isNaN%':isNaN,'%IteratorPrototype%':hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,'%JSON%':(typeof JSON==="undefined"?"undefined":_typeof2(JSON))==='object'?JSON:undefined$1,'%Map%':typeof Map==='undefined'?undefined$1:Map,'%MapIteratorPrototype%':typeof Map==='undefined'||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),'%Math%':Math,'%Number%':Number,'%Object%':Object,'%parseFloat%':parseFloat,'%parseInt%':parseInt,'%Promise%':typeof Promise==='undefined'?undefined$1:Promise,'%Proxy%':typeof Proxy==='undefined'?undefined$1:Proxy,'%RangeError%':RangeError,'%ReferenceError%':ReferenceError,'%Reflect%':typeof Reflect==='undefined'?undefined$1:Reflect,'%RegExp%':RegExp,'%Set%':typeof Set==='undefined'?undefined$1:Set,'%SetIteratorPrototype%':typeof Set==='undefined'||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),'%SharedArrayBuffer%':typeof SharedArrayBuffer==='undefined'?undefined$1:SharedArrayBuffer,'%String%':String,'%StringIteratorPrototype%':hasSymbols?getProto(''[Symbol.iterator]()):undefined$1,'%Symbol%':hasSymbols?Symbol:undefined$1,'%SyntaxError%':$SyntaxError,'%ThrowTypeError%':ThrowTypeError,'%TypedArray%':TypedArray,'%TypeError%':$TypeError$1,'%Uint8Array%':typeof Uint8Array==='undefined'?undefined$1:Uint8Array,'%Uint8ClampedArray%':typeof Uint8ClampedArray==='undefined'?undefined$1:Uint8ClampedArray,'%Uint16Array%':typeof Uint16Array==='undefined'?undefined$1:Uint16Array,'%Uint32Array%':typeof Uint32Array==='undefined'?undefined$1:Uint32Array,'%URIError%':URIError,'%WeakMap%':typeof WeakMap==='undefined'?undefined$1:WeakMap,'%WeakRef%':typeof WeakRef==='undefined'?undefined$1:WeakRef,'%WeakSet%':typeof WeakSet==='undefined'?undefined$1:WeakSet};var doEval=function doEval(name){var value;if(name==='%AsyncFunction%'){value=getEvalledConstructor('async function () {}');}else if(name==='%GeneratorFunction%'){value=getEvalledConstructor('function* () {}');}else if(name==='%AsyncGeneratorFunction%'){value=getEvalledConstructor('async function* () {}');}else if(name==='%AsyncGenerator%'){var fn=doEval('%AsyncGeneratorFunction%');if(fn){value=fn.prototype;}}else if(name==='%AsyncIteratorPrototype%'){var gen=doEval('%AsyncGenerator%');if(gen){value=getProto(gen.prototype);}}INTRINSICS[name]=value;return value;};var LEGACY_ALIASES={'%ArrayBufferPrototype%':['ArrayBuffer','prototype'],'%ArrayPrototype%':['Array','prototype'],'%ArrayProto_entries%':['Array','prototype','entries'],'%ArrayProto_forEach%':['Array','prototype','forEach'],'%ArrayProto_keys%':['Array','prototype','keys'],'%ArrayProto_values%':['Array','prototype','values'],'%AsyncFunctionPrototype%':['AsyncFunction','prototype'],'%AsyncGenerator%':['AsyncGeneratorFunction','prototype'],'%AsyncGeneratorPrototype%':['AsyncGeneratorFunction','prototype','prototype'],'%BooleanPrototype%':['Boolean','prototype'],'%DataViewPrototype%':['DataView','prototype'],'%DatePrototype%':['Date','prototype'],'%ErrorPrototype%':['Error','prototype'],'%EvalErrorPrototype%':['EvalError','prototype'],'%Float32ArrayPrototype%':['Float32Array','prototype'],'%Float64ArrayPrototype%':['Float64Array','prototype'],'%FunctionPrototype%':['Function','prototype'],'%Generator%':['GeneratorFunction','prototype'],'%GeneratorPrototype%':['GeneratorFunction','prototype','prototype'],'%Int8ArrayPrototype%':['Int8Array','prototype'],'%Int16ArrayPrototype%':['Int16Array','prototype'],'%Int32ArrayPrototype%':['Int32Array','prototype'],'%JSONParse%':['JSON','parse'],'%JSONStringify%':['JSON','stringify'],'%MapPrototype%':['Map','prototype'],'%NumberPrototype%':['Number','prototype'],'%ObjectPrototype%':['Object','prototype'],'%ObjProto_toString%':['Object','prototype','toString'],'%ObjProto_valueOf%':['Object','prototype','valueOf'],'%PromisePrototype%':['Promise','prototype'],'%PromiseProto_then%':['Promise','prototype','then'],'%Promise_all%':['Promise','all'],'%Promise_reject%':['Promise','reject'],'%Promise_resolve%':['Promise','resolve'],'%RangeErrorPrototype%':['RangeError','prototype'],'%ReferenceErrorPrototype%':['ReferenceError','prototype'],'%RegExpPrototype%':['RegExp','prototype'],'%SetPrototype%':['Set','prototype'],'%SharedArrayBufferPrototype%':['SharedArrayBuffer','prototype'],'%StringPrototype%':['String','prototype'],'%SymbolPrototype%':['Symbol','prototype'],'%SyntaxErrorPrototype%':['SyntaxError','prototype'],'%TypedArrayPrototype%':['TypedArray','prototype'],'%TypeErrorPrototype%':['TypeError','prototype'],'%Uint8ArrayPrototype%':['Uint8Array','prototype'],'%Uint8ClampedArrayPrototype%':['Uint8ClampedArray','prototype'],'%Uint16ArrayPrototype%':['Uint16Array','prototype'],'%Uint32ArrayPrototype%':['Uint32Array','prototype'],'%URIErrorPrototype%':['URIError','prototype'],'%WeakMapPrototype%':['WeakMap','prototype'],'%WeakSetPrototype%':['WeakSet','prototype']};var bind=functionBind;var hasOwn$1=src$1;var $concat=bind.call(Function.call,Array.prototype.concat);var $spliceApply=bind.call(Function.apply,Array.prototype.splice);var $replace=bind.call(Function.call,String.prototype.replace);var $strSlice=bind.call(Function.call,String.prototype.slice);/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */var rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var reEscapeChar=/\\(\\)?/g;/** Used to match backslashes in property paths. */var stringToPath=function stringToPath(string){var first=$strSlice(string,0,1);var last=$strSlice(string,-1);if(first==='%'&&last!=='%'){throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');}else if(last==='%'&&first!=='%'){throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');}var result=[];$replace(string,rePropName,function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,'$1'):number||match;});return result;};/* end adaptation */var getBaseIntrinsic=function getBaseIntrinsic(name,allowMissing){var intrinsicName=name;var alias;if(hasOwn$1(LEGACY_ALIASES,intrinsicName)){alias=LEGACY_ALIASES[intrinsicName];intrinsicName='%'+alias[0]+'%';}if(hasOwn$1(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(value===needsEval){value=doEval(intrinsicName);}if(typeof value==='undefined'&&!allowMissing){throw new $TypeError$1('intrinsic '+name+' exists, but is not available. Please file an issue!');}return{alias:alias,name:intrinsicName,value:value};}throw new $SyntaxError('intrinsic '+name+' does not exist!');};var getIntrinsic=function GetIntrinsic(name,allowMissing){if(typeof name!=='string'||name.length===0){throw new $TypeError$1('intrinsic name must be a non-empty string');}if(arguments.length>1&&typeof allowMissing!=='boolean'){throw new $TypeError$1('"allowMissing" argument must be a boolean');}var parts=stringToPath(name);var intrinsicBaseName=parts.length>0?parts[0]:'';var intrinsic=getBaseIntrinsic('%'+intrinsicBaseName+'%',allowMissing);var intrinsicRealName=intrinsic.name;var value=intrinsic.value;var skipFurtherCaching=false;var alias=intrinsic.alias;if(alias){intrinsicBaseName=alias[0];$spliceApply(parts,$concat([0,1],alias));}for(var i=1,isOwn=true;i<parts.length;i+=1){var part=parts[i];var first=$strSlice(part,0,1);var last=$strSlice(part,-1);if((first==='"'||first==="'"||first==='`'||last==='"'||last==="'"||last==='`')&&first!==last){throw new $SyntaxError('property names with quotes must have matching quotes');}if(part==='constructor'||!isOwn){skipFurtherCaching=true;}intrinsicBaseName+='.'+part;intrinsicRealName='%'+intrinsicBaseName+'%';if(hasOwn$1(INTRINSICS,intrinsicRealName)){value=INTRINSICS[intrinsicRealName];}else if(value!=null){if(!(part in value)){if(!allowMissing){throw new $TypeError$1('base intrinsic for '+name+' exists, but the property is not available.');}return void undefined$1;}if($gOPD&&i+1>=parts.length){var desc=$gOPD(value,part);isOwn=!!desc;// By convention, when a data property is converted to an accessor
  2691. // property to emulate a data property that does not suffer from
  2692. // the override mistake, that accessor's getter is marked with
  2693. // an `originalValue` property. Here, when we detect this, we
  2694. // uphold the illusion by pretending to see that original data
  2695. // property, i.e., returning the value rather than the getter
  2696. // itself.
  2697. if(isOwn&&'get'in desc&&!('originalValue'in desc.get)){value=desc.get;}else{value=value[part];}}else{isOwn=hasOwn$1(value,part);value=value[part];}if(isOwn&&!skipFurtherCaching){INTRINSICS[intrinsicRealName]=value;}}}return value;};var callBind$1={exports:{}};(function(module){var bind=functionBind;var GetIntrinsic=getIntrinsic;var $apply=GetIntrinsic('%Function.prototype.apply%');var $call=GetIntrinsic('%Function.prototype.call%');var $reflectApply=GetIntrinsic('%Reflect.apply%',true)||bind.call($call,$apply);var $gOPD=GetIntrinsic('%Object.getOwnPropertyDescriptor%',true);var $defineProperty=GetIntrinsic('%Object.defineProperty%',true);var $max=GetIntrinsic('%Math.max%');if($defineProperty){try{$defineProperty({},'a',{value:1});}catch(e){// IE 8 has a broken defineProperty
  2698. $defineProperty=null;}}module.exports=function callBind(originalFunction){var func=$reflectApply(bind,$call,arguments);if($gOPD&&$defineProperty){var desc=$gOPD(func,'length');if(desc.configurable){// original length, plus the receiver, minus any additional arguments (after the receiver)
  2699. $defineProperty(func,'length',{value:1+$max(0,originalFunction.length-(arguments.length-1))});}}return func;};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments);};if($defineProperty){$defineProperty(module.exports,'apply',{value:applyBind});}else{module.exports.apply=applyBind;}})(callBind$1);var GetIntrinsic$1=getIntrinsic;var callBind=callBind$1.exports;var $indexOf=callBind(GetIntrinsic$1('String.prototype.indexOf'));var callBound$1=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic$1(name,!!allowMissing);if(typeof intrinsic==='function'&&$indexOf(name,'.prototype.')>-1){return callBind(intrinsic);}return intrinsic;};var __viteBrowserExternal={};var __viteBrowserExternal$1=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,'default':__viteBrowserExternal},Symbol.toStringTag,{value:'Module'}));var require$$0=/*@__PURE__*/getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map==='function'&&Map.prototype;var mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,'size'):null;var mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get==='function'?mapSizeDescriptor.get:null;var mapForEach=hasMap&&Map.prototype.forEach;var hasSet=typeof Set==='function'&&Set.prototype;var setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,'size'):null;var setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get==='function'?setSizeDescriptor.get:null;var setForEach=hasSet&&Set.prototype.forEach;var hasWeakMap=typeof WeakMap==='function'&&WeakMap.prototype;var weakMapHas=hasWeakMap?WeakMap.prototype.has:null;var hasWeakSet=typeof WeakSet==='function'&&WeakSet.prototype;var weakSetHas=hasWeakSet?WeakSet.prototype.has:null;var hasWeakRef=typeof WeakRef==='function'&&WeakRef.prototype;var weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null;var booleanValueOf=Boolean.prototype.valueOf;var objectToString$1=Object.prototype.toString;var functionToString=Function.prototype.toString;var match=String.prototype.match;var bigIntValueOf=typeof BigInt==='function'?BigInt.prototype.valueOf:null;var gOPS=Object.getOwnPropertySymbols;var symToString=typeof Symbol==='function'&&_typeof2(Symbol.iterator)==='symbol'?Symbol.prototype.toString:null;var hasShammedSymbols=typeof Symbol==='function'&&_typeof2(Symbol.iterator)==='object';var isEnumerable=Object.prototype.propertyIsEnumerable;var gPO=(typeof Reflect==='function'?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype// eslint-disable-line no-proto
  2700. ?function(O){return O.__proto__;// eslint-disable-line no-proto
  2701. }:null);var inspectCustom=require$$0.custom;var inspectSymbol=inspectCustom&&isSymbol(inspectCustom)?inspectCustom:null;var toStringTag=typeof Symbol==='function'&&typeof Symbol.toStringTag!=='undefined'?Symbol.toStringTag:null;var objectInspect=function inspect_(obj,options,depth,seen){var opts=options||{};if(has$3(opts,'quoteStyle')&&opts.quoteStyle!=='single'&&opts.quoteStyle!=='double'){throw new TypeError('option "quoteStyle" must be "single" or "double"');}if(has$3(opts,'maxStringLength')&&(typeof opts.maxStringLength==='number'?opts.maxStringLength<0&&opts.maxStringLength!==Infinity:opts.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');}var customInspect=has$3(opts,'customInspect')?opts.customInspect:true;if(typeof customInspect!=='boolean'&&customInspect!=='symbol'){throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');}if(has$3(opts,'indent')&&opts.indent!==null&&opts.indent!=='\t'&&!(parseInt(opts.indent,10)===opts.indent&&opts.indent>0)){throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');}if(typeof obj==='undefined'){return'undefined';}if(obj===null){return'null';}if(typeof obj==='boolean'){return obj?'true':'false';}if(typeof obj==='string'){return inspectString(obj,opts);}if(typeof obj==='number'){if(obj===0){return Infinity/obj>0?'0':'-0';}return String(obj);}if(typeof obj==='bigint'){return String(obj)+'n';}var maxDepth=typeof opts.depth==='undefined'?5:opts.depth;if(typeof depth==='undefined'){depth=0;}if(depth>=maxDepth&&maxDepth>0&&_typeof2(obj)==='object'){return isArray$4(obj)?'[Array]':'[Object]';}var indent=getIndent(opts,depth);if(typeof seen==='undefined'){seen=[];}else if(indexOf(seen,obj)>=0){return'[Circular]';}function inspect(value,from,noIndent){if(from){seen=seen.slice();seen.push(from);}if(noIndent){var newOpts={depth:opts.depth};if(has$3(opts,'quoteStyle')){newOpts.quoteStyle=opts.quoteStyle;}return inspect_(value,newOpts,depth+1,seen);}return inspect_(value,opts,depth+1,seen);}if(typeof obj==='function'){var name=nameOf(obj);var keys=arrObjKeys(obj,inspect);return'[Function'+(name?': '+name:' (anonymous)')+']'+(keys.length>0?' { '+keys.join(', ')+' }':'');}if(isSymbol(obj)){var symString=hasShammedSymbols?String(obj).replace(/^(Symbol\(.*\))_[^)]*$/,'$1'):symToString.call(obj);return _typeof2(obj)==='object'&&!hasShammedSymbols?markBoxed(symString):symString;}if(isElement(obj)){var s='<'+String(obj.nodeName).toLowerCase();var attrs=obj.attributes||[];for(var i=0;i<attrs.length;i++){s+=' '+attrs[i].name+'='+wrapQuotes(quote(attrs[i].value),'double',opts);}s+='>';if(obj.childNodes&&obj.childNodes.length){s+='...';}s+='</'+String(obj.nodeName).toLowerCase()+'>';return s;}if(isArray$4(obj)){if(obj.length===0){return'[]';}var xs=arrObjKeys(obj,inspect);if(indent&&!singleLineValues(xs)){return'['+indentedJoin(xs,indent)+']';}return'[ '+xs.join(', ')+' ]';}if(isError(obj)){var parts=arrObjKeys(obj,inspect);if(parts.length===0){return'['+String(obj)+']';}return'{ ['+String(obj)+'] '+parts.join(', ')+' }';}if(_typeof2(obj)==='object'&&customInspect){if(inspectSymbol&&typeof obj[inspectSymbol]==='function'){return obj[inspectSymbol]();}else if(customInspect!=='symbol'&&typeof obj.inspect==='function'){return obj.inspect();}}if(isMap(obj)){var mapParts=[];mapForEach.call(obj,function(value,key){mapParts.push(inspect(key,obj,true)+' => '+inspect(value,obj));});return collectionOf('Map',mapSize.call(obj),mapParts,indent);}if(isSet(obj)){var setParts=[];setForEach.call(obj,function(value){setParts.push(inspect(value,obj));});return collectionOf('Set',setSize.call(obj),setParts,indent);}if(isWeakMap(obj)){return weakCollectionOf('WeakMap');}if(isWeakSet(obj)){return weakCollectionOf('WeakSet');}if(isWeakRef(obj)){return weakCollectionOf('WeakRef');}if(isNumber(obj)){return markBoxed(inspect(Number(obj)));}if(isBigInt(obj)){return markBoxed(inspect(bigIntValueOf.call(obj)));}if(isBoolean(obj)){return markBoxed(booleanValueOf.call(obj));}if(isString(obj)){return markBoxed(inspect(String(obj)));}if(!isDate$1(obj)&&!isRegExp$1(obj)){var ys=arrObjKeys(obj,inspect);var isPlainObject=gPO?gPO(obj)===Object.prototype:obj instanceof Object||obj.constructor===Object;var protoTag=obj instanceof Object?'':'null prototype';var stringTag=!isPlainObject&&toStringTag&&Object(obj)===obj&&toStringTag in obj?toStr(obj).slice(8,-1):protoTag?'Object':'';var constructorTag=isPlainObject||typeof obj.constructor!=='function'?'':obj.constructor.name?obj.constructor.name+' ':'';var tag=constructorTag+(stringTag||protoTag?'['+[].concat(stringTag||[],protoTag||[]).join(': ')+'] ':'');if(ys.length===0){return tag+'{}';}if(indent){return tag+'{'+indentedJoin(ys,indent)+'}';}return tag+'{ '+ys.join(', ')+' }';}return String(obj);};function wrapQuotes(s,defaultStyle,opts){var quoteChar=(opts.quoteStyle||defaultStyle)==='double'?'"':"'";return quoteChar+s+quoteChar;}function quote(s){return String(s).replace(/"/g,'&quot;');}function isArray$4(obj){return toStr(obj)==='[object Array]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}function isDate$1(obj){return toStr(obj)==='[object Date]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}function isRegExp$1(obj){return toStr(obj)==='[object RegExp]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}function isError(obj){return toStr(obj)==='[object Error]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}function isString(obj){return toStr(obj)==='[object String]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}function isNumber(obj){return toStr(obj)==='[object Number]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}function isBoolean(obj){return toStr(obj)==='[object Boolean]'&&(!toStringTag||!(_typeof2(obj)==='object'&&toStringTag in obj));}// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  2702. function isSymbol(obj){if(hasShammedSymbols){return obj&&_typeof2(obj)==='object'&&obj instanceof Symbol;}if(_typeof2(obj)==='symbol'){return true;}if(!obj||_typeof2(obj)!=='object'||!symToString){return false;}try{symToString.call(obj);return true;}catch(e){}return false;}function isBigInt(obj){if(!obj||_typeof2(obj)!=='object'||!bigIntValueOf){return false;}try{bigIntValueOf.call(obj);return true;}catch(e){}return false;}var hasOwn=Object.prototype.hasOwnProperty||function(key){return key in this;};function has$3(obj,key){return hasOwn.call(obj,key);}function toStr(obj){return objectToString$1.call(obj);}function nameOf(f){if(f.name){return f.name;}var m=match.call(functionToString.call(f),/^function\s*([\w$]+)/);if(m){return m[1];}return null;}function indexOf(xs,x){if(xs.indexOf){return xs.indexOf(x);}for(var i=0,l=xs.length;i<l;i++){if(xs[i]===x){return i;}}return-1;}function isMap(x){if(!mapSize||!x||_typeof2(x)!=='object'){return false;}try{mapSize.call(x);try{setSize.call(x);}catch(s){return true;}return x instanceof Map;// core-js workaround, pre-v2.5.0
  2703. }catch(e){}return false;}function isWeakMap(x){if(!weakMapHas||!x||_typeof2(x)!=='object'){return false;}try{weakMapHas.call(x,weakMapHas);try{weakSetHas.call(x,weakSetHas);}catch(s){return true;}return x instanceof WeakMap;// core-js workaround, pre-v2.5.0
  2704. }catch(e){}return false;}function isWeakRef(x){if(!weakRefDeref||!x||_typeof2(x)!=='object'){return false;}try{weakRefDeref.call(x);return true;}catch(e){}return false;}function isSet(x){if(!setSize||!x||_typeof2(x)!=='object'){return false;}try{setSize.call(x);try{mapSize.call(x);}catch(m){return true;}return x instanceof Set;// core-js workaround, pre-v2.5.0
  2705. }catch(e){}return false;}function isWeakSet(x){if(!weakSetHas||!x||_typeof2(x)!=='object'){return false;}try{weakSetHas.call(x,weakSetHas);try{weakMapHas.call(x,weakMapHas);}catch(s){return true;}return x instanceof WeakSet;// core-js workaround, pre-v2.5.0
  2706. }catch(e){}return false;}function isElement(x){if(!x||_typeof2(x)!=='object'){return false;}if(typeof HTMLElement!=='undefined'&&x instanceof HTMLElement){return true;}return typeof x.nodeName==='string'&&typeof x.getAttribute==='function';}function inspectString(str,opts){if(str.length>opts.maxStringLength){var remaining=str.length-opts.maxStringLength;var trailer='... '+remaining+' more character'+(remaining>1?'s':'');return inspectString(str.slice(0,opts.maxStringLength),opts)+trailer;}// eslint-disable-next-line no-control-regex
  2707. var s=str.replace(/(['\\])/g,'\\$1').replace(/[\x00-\x1f]/g,lowbyte);return wrapQuotes(s,'single',opts);}function lowbyte(c){var n=c.charCodeAt(0);var x={8:'b',9:'t',10:'n',12:'f',13:'r'}[n];if(x){return'\\'+x;}return'\\x'+(n<0x10?'0':'')+n.toString(16).toUpperCase();}function markBoxed(str){return'Object('+str+')';}function weakCollectionOf(type){return type+' { ? }';}function collectionOf(type,size,entries,indent){var joinedEntries=indent?indentedJoin(entries,indent):entries.join(', ');return type+' ('+size+') {'+joinedEntries+'}';}function singleLineValues(xs){for(var i=0;i<xs.length;i++){if(indexOf(xs[i],'\n')>=0){return false;}}return true;}function getIndent(opts,depth){var baseIndent;if(opts.indent==='\t'){baseIndent='\t';}else if(typeof opts.indent==='number'&&opts.indent>0){baseIndent=Array(opts.indent+1).join(' ');}else{return null;}return{base:baseIndent,prev:Array(depth+1).join(baseIndent)};}function indentedJoin(xs,indent){if(xs.length===0){return'';}var lineJoiner='\n'+indent.prev+indent.base;return lineJoiner+xs.join(','+lineJoiner)+'\n'+indent.prev;}function arrObjKeys(obj,inspect){var isArr=isArray$4(obj);var xs=[];if(isArr){xs.length=obj.length;for(var i=0;i<obj.length;i++){xs[i]=has$3(obj,i)?inspect(obj[i],obj):'';}}var syms=typeof gOPS==='function'?gOPS(obj):[];var symMap;if(hasShammedSymbols){symMap={};for(var k=0;k<syms.length;k++){symMap['$'+syms[k]]=syms[k];}}for(var key in obj){// eslint-disable-line no-restricted-syntax
  2708. if(!has$3(obj,key)){continue;}// eslint-disable-line no-restricted-syntax, no-continue
  2709. if(isArr&&String(Number(key))===key&&key<obj.length){continue;}// eslint-disable-line no-restricted-syntax, no-continue
  2710. if(hasShammedSymbols&&symMap['$'+key]instanceof Symbol){// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  2711. continue;// eslint-disable-line no-restricted-syntax, no-continue
  2712. }else if(/[^\w$]/.test(key)){xs.push(inspect(key,obj)+': '+inspect(obj[key],obj));}else{xs.push(key+': '+inspect(obj[key],obj));}}if(typeof gOPS==='function'){for(var j=0;j<syms.length;j++){if(isEnumerable.call(obj,syms[j])){xs.push('['+inspect(syms[j])+']: '+inspect(obj[syms[j]],obj));}}}return xs;}var GetIntrinsic=getIntrinsic;var callBound=callBound$1;var inspect=objectInspect;var $TypeError=GetIntrinsic('%TypeError%');var $WeakMap=GetIntrinsic('%WeakMap%',true);var $Map=GetIntrinsic('%Map%',true);var $weakMapGet=callBound('WeakMap.prototype.get',true);var $weakMapSet=callBound('WeakMap.prototype.set',true);var $weakMapHas=callBound('WeakMap.prototype.has',true);var $mapGet=callBound('Map.prototype.get',true);var $mapSet=callBound('Map.prototype.set',true);var $mapHas=callBound('Map.prototype.has',true);/*
  2713. * This function traverses the list returning the node corresponding to the
  2714. * given key.
  2715. *
  2716. * That node is also moved to the head of the list, so that if it's accessed
  2717. * again we don't need to traverse the whole list. By doing so, all the recently
  2718. * used nodes can be accessed relatively quickly.
  2719. */var listGetNode=function listGetNode(list,key){// eslint-disable-line consistent-return
  2720. for(var prev=list,curr;(curr=prev.next)!==null;prev=curr){if(curr.key===key){prev.next=curr.next;curr.next=list.next;list.next=curr;// eslint-disable-line no-param-reassign
  2721. return curr;}}};var listGet=function listGet(objects,key){var node=listGetNode(objects,key);return node&&node.value;};var listSet=function listSet(objects,key,value){var node=listGetNode(objects,key);if(node){node.value=value;}else{// Prepend the new node to the beginning of the list
  2722. objects.next={// eslint-disable-line no-param-reassign
  2723. key:key,next:objects.next,value:value};}};var listHas=function listHas(objects,key){return!!listGetNode(objects,key);};var sideChannel=function getSideChannel(){var $wm;var $m;var $o;var channel={assert:function assert(key){if(!channel.has(key)){throw new $TypeError('Side channel does not contain '+inspect(key));}},get:function get(key){// eslint-disable-line consistent-return
  2724. if($WeakMap&&key&&(_typeof2(key)==='object'||typeof key==='function')){if($wm){return $weakMapGet($wm,key);}}else if($Map){if($m){return $mapGet($m,key);}}else{if($o){// eslint-disable-line no-lonely-if
  2725. return listGet($o,key);}}},has:function has(key){if($WeakMap&&key&&(_typeof2(key)==='object'||typeof key==='function')){if($wm){return $weakMapHas($wm,key);}}else if($Map){if($m){return $mapHas($m,key);}}else{if($o){// eslint-disable-line no-lonely-if
  2726. return listHas($o,key);}}return false;},set:function set(key,value){if($WeakMap&&key&&(_typeof2(key)==='object'||typeof key==='function')){if(!$wm){$wm=new $WeakMap();}$weakMapSet($wm,key,value);}else if($Map){if(!$m){$m=new $Map();}$mapSet($m,key,value);}else{if(!$o){/*
  2727. * Initialize the linked list as an empty node, so that we don't have
  2728. * to special-case handling of the first node: we can always refer to
  2729. * it as (previous node).next, instead of something like (list).head
  2730. */$o={key:{},next:null};}listSet($o,key,value);}}};return channel;};var replace=String.prototype.replace;var percentTwenties=/%20/g;var Format={RFC1738:'RFC1738',RFC3986:'RFC3986'};var formats$3={'default':Format.RFC3986,formatters:{RFC1738:function RFC1738(value){return replace.call(value,percentTwenties,'+');},RFC3986:function RFC3986(value){return String(value);}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};var formats$2=formats$3;var has$2=Object.prototype.hasOwnProperty;var isArray$3=Array.isArray;var hexTable=function(){var array=[];for(var i=0;i<256;++i){array.push('%'+((i<16?'0':'')+i.toString(16)).toUpperCase());}return array;}();var compactQueue=function compactQueue(queue){while(queue.length>1){var item=queue.pop();var obj=item.obj[item.prop];if(isArray$3(obj)){var compacted=[];for(var j=0;j<obj.length;++j){if(typeof obj[j]!=='undefined'){compacted.push(obj[j]);}}item.obj[item.prop]=compacted;}}};var arrayToObject=function arrayToObject(source,options){var obj=options&&options.plainObjects?Object.create(null):{};for(var i=0;i<source.length;++i){if(typeof source[i]!=='undefined'){obj[i]=source[i];}}return obj;};var merge=function merge(target,source,options){/* eslint no-param-reassign: 0 */if(!source){return target;}if(_typeof2(source)!=='object'){if(isArray$3(target)){target.push(source);}else if(target&&_typeof2(target)==='object'){if(options&&(options.plainObjects||options.allowPrototypes)||!has$2.call(Object.prototype,source)){target[source]=true;}}else{return[target,source];}return target;}if(!target||_typeof2(target)!=='object'){return[target].concat(source);}var mergeTarget=target;if(isArray$3(target)&&!isArray$3(source)){mergeTarget=arrayToObject(target,options);}if(isArray$3(target)&&isArray$3(source)){source.forEach(function(item,i){if(has$2.call(target,i)){var targetItem=target[i];if(targetItem&&_typeof2(targetItem)==='object'&&item&&_typeof2(item)==='object'){target[i]=merge(targetItem,item,options);}else{target.push(item);}}else{target[i]=item;}});return target;}return Object.keys(source).reduce(function(acc,key){var value=source[key];if(has$2.call(acc,key)){acc[key]=merge(acc[key],value,options);}else{acc[key]=value;}return acc;},mergeTarget);};var assign$2=function assignSingleSource(target,source){return Object.keys(source).reduce(function(acc,key){acc[key]=source[key];return acc;},target);};var decode$2=function decode$2(str,decoder,charset){var strWithoutPlus=str.replace(/\+/g,' ');if(charset==='iso-8859-1'){// unescape never throws, no try...catch needed:
  2731. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi,unescape);}// utf-8
  2732. try{return decodeURIComponent(strWithoutPlus);}catch(e){return strWithoutPlus;}};var encode=function encode(str,defaultEncoder,charset,kind,format){// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  2733. // It has been adapted here for stricter adherence to RFC 3986
  2734. if(str.length===0){return str;}var string=str;if(_typeof2(str)==='symbol'){string=Symbol.prototype.toString.call(str);}else if(typeof str!=='string'){string=String(str);}if(charset==='iso-8859-1'){return escape(string).replace(/%u[0-9a-f]{4}/gi,function($0){return'%26%23'+parseInt($0.slice(2),16)+'%3B';});}var out='';for(var i=0;i<string.length;++i){var c=string.charCodeAt(i);if(c===0x2D// -
  2735. ||c===0x2E// .
  2736. ||c===0x5F// _
  2737. ||c===0x7E// ~
  2738. ||c>=0x30&&c<=0x39// 0-9
  2739. ||c>=0x41&&c<=0x5A// a-z
  2740. ||c>=0x61&&c<=0x7A// A-Z
  2741. ||format===formats$2.RFC1738&&(c===0x28||c===0x29)// ( )
  2742. ){out+=string.charAt(i);continue;}if(c<0x80){out=out+hexTable[c];continue;}if(c<0x800){out=out+(hexTable[0xC0|c>>6]+hexTable[0x80|c&0x3F]);continue;}if(c<0xD800||c>=0xE000){out=out+(hexTable[0xE0|c>>12]+hexTable[0x80|c>>6&0x3F]+hexTable[0x80|c&0x3F]);continue;}i+=1;c=0x10000+((c&0x3FF)<<10|string.charCodeAt(i)&0x3FF);/* eslint operator-linebreak: [2, "before"] */out+=hexTable[0xF0|c>>18]+hexTable[0x80|c>>12&0x3F]+hexTable[0x80|c>>6&0x3F]+hexTable[0x80|c&0x3F];}return out;};var compact=function compact(value){var queue=[{obj:{o:value},prop:'o'}];var refs=[];for(var i=0;i<queue.length;++i){var item=queue[i];var obj=item.obj[item.prop];var keys=Object.keys(obj);for(var j=0;j<keys.length;++j){var key=keys[j];var val=obj[key];if(_typeof2(val)==='object'&&val!==null&&refs.indexOf(val)===-1){queue.push({obj:obj,prop:key});refs.push(val);}}}compactQueue(queue);return value;};var isRegExp=function isRegExp(obj){return Object.prototype.toString.call(obj)==='[object RegExp]';};var isBuffer=function isBuffer(obj){if(!obj||_typeof2(obj)!=='object'){return false;}return!!(obj.constructor&&obj.constructor.isBuffer&&obj.constructor.isBuffer(obj));};var combine=function combine(a,b){return[].concat(a,b);};var maybeMap=function maybeMap(val,fn){if(isArray$3(val)){var mapped=[];for(var i=0;i<val.length;i+=1){mapped.push(fn(val[i]));}return mapped;}return fn(val);};var utils$2={arrayToObject:arrayToObject,assign:assign$2,combine:combine,compact:compact,decode:decode$2,encode:encode,isBuffer:isBuffer,isRegExp:isRegExp,maybeMap:maybeMap,merge:merge};var getSideChannel=sideChannel;var utils$1=utils$2;var formats$1=formats$3;var has$1=Object.prototype.hasOwnProperty;var arrayPrefixGenerators={brackets:function brackets(prefix){return prefix+'[]';},comma:'comma',indices:function indices(prefix,key){return prefix+'['+key+']';},repeat:function repeat(prefix){return prefix;}};var isArray$2=Array.isArray;var split=String.prototype.split;var push=Array.prototype.push;var pushToArray=function pushToArray(arr,valueOrArray){push.apply(arr,isArray$2(valueOrArray)?valueOrArray:[valueOrArray]);};var toISO=Date.prototype.toISOString;var defaultFormat=formats$1['default'];var defaults$1={addQueryPrefix:false,allowDots:false,charset:'utf-8',charsetSentinel:false,delimiter:'&',encode:true,encoder:utils$1.encode,encodeValuesOnly:false,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],// deprecated
  2743. indices:false,serializeDate:function serializeDate(date){return toISO.call(date);},skipNulls:false,strictNullHandling:false};var isNonNullishPrimitive=function isNonNullishPrimitive(v){return typeof v==='string'||typeof v==='number'||typeof v==='boolean'||_typeof2(v)==='symbol'||typeof v==='bigint';};var sentinel={};var stringify$1=function stringify(object,prefix,generateArrayPrefix,strictNullHandling,skipNulls,encoder,filter,sort,allowDots,serializeDate,format,formatter,encodeValuesOnly,charset,sideChannel){var obj=object;var tmpSc=sideChannel;var step=0;var findFlag=false;while((tmpSc=tmpSc.get(sentinel))!==void undefined&&!findFlag){// Where object last appeared in the ref tree
  2744. var pos=tmpSc.get(object);step+=1;if(typeof pos!=='undefined'){if(pos===step){throw new RangeError('Cyclic object value');}else{findFlag=true;// Break while
  2745. }}if(typeof tmpSc.get(sentinel)==='undefined'){step=0;}}if(typeof filter==='function'){obj=filter(prefix,obj);}else if(obj instanceof Date){obj=serializeDate(obj);}else if(generateArrayPrefix==='comma'&&isArray$2(obj)){obj=utils$1.maybeMap(obj,function(value){if(value instanceof Date){return serializeDate(value);}return value;});}if(obj===null){if(strictNullHandling){return encoder&&!encodeValuesOnly?encoder(prefix,defaults$1.encoder,charset,'key',format):prefix;}obj='';}if(isNonNullishPrimitive(obj)||utils$1.isBuffer(obj)){if(encoder){var keyValue=encodeValuesOnly?prefix:encoder(prefix,defaults$1.encoder,charset,'key',format);if(generateArrayPrefix==='comma'&&encodeValuesOnly){var valuesArray=split.call(String(obj),',');var valuesJoined='';for(var i=0;i<valuesArray.length;++i){valuesJoined+=(i===0?'':',')+formatter(encoder(valuesArray[i],defaults$1.encoder,charset,'value',format));}return[formatter(keyValue)+'='+valuesJoined];}return[formatter(keyValue)+'='+formatter(encoder(obj,defaults$1.encoder,charset,'value',format))];}return[formatter(prefix)+'='+formatter(String(obj))];}var values=[];if(typeof obj==='undefined'){return values;}var objKeys;if(generateArrayPrefix==='comma'&&isArray$2(obj)){// we need to join elements in
  2746. objKeys=[{value:obj.length>0?obj.join(',')||null:void undefined}];}else if(isArray$2(filter)){objKeys=filter;}else{var keys=Object.keys(obj);objKeys=sort?keys.sort(sort):keys;}for(var j=0;j<objKeys.length;++j){var key=objKeys[j];var value=_typeof2(key)==='object'&&typeof key.value!=='undefined'?key.value:obj[key];if(skipNulls&&value===null){continue;}var keyPrefix=isArray$2(obj)?typeof generateArrayPrefix==='function'?generateArrayPrefix(prefix,key):prefix:prefix+(allowDots?'.'+key:'['+key+']');sideChannel.set(object,step);var valueSideChannel=getSideChannel();valueSideChannel.set(sentinel,sideChannel);pushToArray(values,stringify(value,keyPrefix,generateArrayPrefix,strictNullHandling,skipNulls,encoder,filter,sort,allowDots,serializeDate,format,formatter,encodeValuesOnly,charset,valueSideChannel));}return values;};var normalizeStringifyOptions=function normalizeStringifyOptions(opts){if(!opts){return defaults$1;}if(opts.encoder!==null&&typeof opts.encoder!=='undefined'&&typeof opts.encoder!=='function'){throw new TypeError('Encoder has to be a function.');}var charset=opts.charset||defaults$1.charset;if(typeof opts.charset!=='undefined'&&opts.charset!=='utf-8'&&opts.charset!=='iso-8859-1'){throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');}var format=formats$1['default'];if(typeof opts.format!=='undefined'){if(!has$1.call(formats$1.formatters,opts.format)){throw new TypeError('Unknown format option provided.');}format=opts.format;}var formatter=formats$1.formatters[format];var filter=defaults$1.filter;if(typeof opts.filter==='function'||isArray$2(opts.filter)){filter=opts.filter;}return{addQueryPrefix:typeof opts.addQueryPrefix==='boolean'?opts.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof opts.allowDots==='undefined'?defaults$1.allowDots:!!opts.allowDots,charset:charset,charsetSentinel:typeof opts.charsetSentinel==='boolean'?opts.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof opts.delimiter==='undefined'?defaults$1.delimiter:opts.delimiter,encode:typeof opts.encode==='boolean'?opts.encode:defaults$1.encode,encoder:typeof opts.encoder==='function'?opts.encoder:defaults$1.encoder,encodeValuesOnly:typeof opts.encodeValuesOnly==='boolean'?opts.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:filter,format:format,formatter:formatter,serializeDate:typeof opts.serializeDate==='function'?opts.serializeDate:defaults$1.serializeDate,skipNulls:typeof opts.skipNulls==='boolean'?opts.skipNulls:defaults$1.skipNulls,sort:typeof opts.sort==='function'?opts.sort:null,strictNullHandling:typeof opts.strictNullHandling==='boolean'?opts.strictNullHandling:defaults$1.strictNullHandling};};var stringify_1=function stringify_1(object,opts){var obj=object;var options=normalizeStringifyOptions(opts);var objKeys;var filter;if(typeof options.filter==='function'){filter=options.filter;obj=filter('',obj);}else if(isArray$2(options.filter)){filter=options.filter;objKeys=filter;}var keys=[];if(_typeof2(obj)!=='object'||obj===null){return'';}var arrayFormat;if(opts&&opts.arrayFormat in arrayPrefixGenerators){arrayFormat=opts.arrayFormat;}else if(opts&&'indices'in opts){arrayFormat=opts.indices?'indices':'repeat';}else{arrayFormat='indices';}var generateArrayPrefix=arrayPrefixGenerators[arrayFormat];if(!objKeys){objKeys=Object.keys(obj);}if(options.sort){objKeys.sort(options.sort);}var sideChannel=getSideChannel();for(var i=0;i<objKeys.length;++i){var key=objKeys[i];if(options.skipNulls&&obj[key]===null){continue;}pushToArray(keys,stringify$1(obj[key],key,generateArrayPrefix,options.strictNullHandling,options.skipNulls,options.encode?options.encoder:null,options.filter,options.sort,options.allowDots,options.serializeDate,options.format,options.formatter,options.encodeValuesOnly,options.charset,sideChannel));}var joined=keys.join(options.delimiter);var prefix=options.addQueryPrefix===true?'?':'';if(options.charsetSentinel){if(options.charset==='iso-8859-1'){// encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  2747. prefix+='utf8=%26%2310003%3B&';}else{// encodeURIComponent('✓')
  2748. prefix+='utf8=%E2%9C%93&';}}return joined.length>0?prefix+joined:'';};var utils=utils$2;var has=Object.prototype.hasOwnProperty;var isArray$1=Array.isArray;var defaults={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:'utf-8',charsetSentinel:false,comma:false,decoder:utils.decode,delimiter:'&',depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1000,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function interpretNumericEntities(str){return str.replace(/&#(\d+);/g,function($0,numberStr){return String.fromCharCode(parseInt(numberStr,10));});};var parseArrayValue=function parseArrayValue(val,options){if(val&&typeof val==='string'&&options.comma&&val.indexOf(',')>-1){return val.split(',');}return val;};// This is what browsers will submit when the ✓ character occurs in an
  2749. // application/x-www-form-urlencoded body and the encoding of the page containing
  2750. // the form is iso-8859-1, or when the submitted form has an accept-charset
  2751. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  2752. // the ✓ character, such as us-ascii.
  2753. var isoSentinel='utf8=%26%2310003%3B';// encodeURIComponent('&#10003;')
  2754. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  2755. var charsetSentinel='utf8=%E2%9C%93';// encodeURIComponent('✓')
  2756. var parseValues=function parseQueryStringValues(str,options){var obj={};var cleanStr=options.ignoreQueryPrefix?str.replace(/^\?/,''):str;var limit=options.parameterLimit===Infinity?undefined:options.parameterLimit;var parts=cleanStr.split(options.delimiter,limit);var skipIndex=-1;// Keep track of where the utf8 sentinel was found
  2757. var i;var charset=options.charset;if(options.charsetSentinel){for(i=0;i<parts.length;++i){if(parts[i].indexOf('utf8=')===0){if(parts[i]===charsetSentinel){charset='utf-8';}else if(parts[i]===isoSentinel){charset='iso-8859-1';}skipIndex=i;i=parts.length;// The eslint settings do not allow break;
  2758. }}}for(i=0;i<parts.length;++i){if(i===skipIndex){continue;}var part=parts[i];var bracketEqualsPos=part.indexOf(']=');var pos=bracketEqualsPos===-1?part.indexOf('='):bracketEqualsPos+1;var key,val;if(pos===-1){key=options.decoder(part,defaults.decoder,charset,'key');val=options.strictNullHandling?null:'';}else{key=options.decoder(part.slice(0,pos),defaults.decoder,charset,'key');val=utils.maybeMap(parseArrayValue(part.slice(pos+1),options),function(encodedVal){return options.decoder(encodedVal,defaults.decoder,charset,'value');});}if(val&&options.interpretNumericEntities&&charset==='iso-8859-1'){val=interpretNumericEntities(val);}if(part.indexOf('[]=')>-1){val=isArray$1(val)?[val]:val;}if(has.call(obj,key)){obj[key]=utils.combine(obj[key],val);}else{obj[key]=val;}}return obj;};var parseObject=function parseObject(chain,val,options,valuesParsed){var leaf=valuesParsed?val:parseArrayValue(val,options);for(var i=chain.length-1;i>=0;--i){var obj;var root=chain[i];if(root==='[]'&&options.parseArrays){obj=[].concat(leaf);}else{obj=options.plainObjects?Object.create(null):{};var cleanRoot=root.charAt(0)==='['&&root.charAt(root.length-1)===']'?root.slice(1,-1):root;var index=parseInt(cleanRoot,10);if(!options.parseArrays&&cleanRoot===''){obj={0:leaf};}else if(!isNaN(index)&&root!==cleanRoot&&String(index)===cleanRoot&&index>=0&&options.parseArrays&&index<=options.arrayLimit){obj=[];obj[index]=leaf;}else if(cleanRoot!=='__proto__'){obj[cleanRoot]=leaf;}}leaf=obj;}return leaf;};var parseKeys=function parseQueryStringKeys(givenKey,val,options,valuesParsed){if(!givenKey){return;}// Transform dot notation to bracket notation
  2759. var key=options.allowDots?givenKey.replace(/\.([^.[]+)/g,'[$1]'):givenKey;// The regex chunks
  2760. var brackets=/(\[[^[\]]*])/;var child=/(\[[^[\]]*])/g;// Get the parent
  2761. var segment=options.depth>0&&brackets.exec(key);var parent=segment?key.slice(0,segment.index):key;// Stash the parent if it exists
  2762. var keys=[];if(parent){// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  2763. if(!options.plainObjects&&has.call(Object.prototype,parent)){if(!options.allowPrototypes){return;}}keys.push(parent);}// Loop through children appending to the array until we hit depth
  2764. var i=0;while(options.depth>0&&(segment=child.exec(key))!==null&&i<options.depth){i+=1;if(!options.plainObjects&&has.call(Object.prototype,segment[1].slice(1,-1))){if(!options.allowPrototypes){return;}}keys.push(segment[1]);}// If there's a remainder, just add whatever is left
  2765. if(segment){keys.push('['+key.slice(segment.index)+']');}return parseObject(keys,val,options,valuesParsed);};var normalizeParseOptions=function normalizeParseOptions(opts){if(!opts){return defaults;}if(opts.decoder!==null&&opts.decoder!==undefined&&typeof opts.decoder!=='function'){throw new TypeError('Decoder has to be a function.');}if(typeof opts.charset!=='undefined'&&opts.charset!=='utf-8'&&opts.charset!=='iso-8859-1'){throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');}var charset=typeof opts.charset==='undefined'?defaults.charset:opts.charset;return{allowDots:typeof opts.allowDots==='undefined'?defaults.allowDots:!!opts.allowDots,allowPrototypes:typeof opts.allowPrototypes==='boolean'?opts.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof opts.allowSparse==='boolean'?opts.allowSparse:defaults.allowSparse,arrayLimit:typeof opts.arrayLimit==='number'?opts.arrayLimit:defaults.arrayLimit,charset:charset,charsetSentinel:typeof opts.charsetSentinel==='boolean'?opts.charsetSentinel:defaults.charsetSentinel,comma:typeof opts.comma==='boolean'?opts.comma:defaults.comma,decoder:typeof opts.decoder==='function'?opts.decoder:defaults.decoder,delimiter:typeof opts.delimiter==='string'||utils.isRegExp(opts.delimiter)?opts.delimiter:defaults.delimiter,// eslint-disable-next-line no-implicit-coercion, no-extra-parens
  2766. depth:typeof opts.depth==='number'||opts.depth===false?+opts.depth:defaults.depth,ignoreQueryPrefix:opts.ignoreQueryPrefix===true,interpretNumericEntities:typeof opts.interpretNumericEntities==='boolean'?opts.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof opts.parameterLimit==='number'?opts.parameterLimit:defaults.parameterLimit,parseArrays:opts.parseArrays!==false,plainObjects:typeof opts.plainObjects==='boolean'?opts.plainObjects:defaults.plainObjects,strictNullHandling:typeof opts.strictNullHandling==='boolean'?opts.strictNullHandling:defaults.strictNullHandling};};var parse$1=function parse$1(str,opts){var options=normalizeParseOptions(opts);if(str===''||str===null||typeof str==='undefined'){return options.plainObjects?Object.create(null):{};}var tempObj=typeof str==='string'?parseValues(str,options):str;var obj=options.plainObjects?Object.create(null):{};// Iterate over the keys and setup the new object
  2767. var keys=Object.keys(tempObj);for(var i=0;i<keys.length;++i){var key=keys[i];var newObj=parseKeys(key,tempObj[key],options,typeof str==='string');obj=utils.merge(obj,newObj,options);}if(options.allowSparse===true){return obj;}return utils.compact(obj);};var stringify=stringify_1;var parse=parse$1;var formats=formats$3;var lib={formats:formats,parse:parse,stringify:stringify};var global$1=typeof globalThis!=='undefined'&&globalThis||typeof self!=='undefined'&&self||typeof global$1!=='undefined'&&global$1;var support={searchParams:'URLSearchParams'in global$1,iterable:'Symbol'in global$1&&'iterator'in Symbol,blob:'FileReader'in global$1&&'Blob'in global$1&&function(){try{new Blob();return true;}catch(e){return false;}}(),formData:'FormData'in global$1,arrayBuffer:'ArrayBuffer'in global$1};function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj);}if(support.arrayBuffer){var viewClasses=['[object Int8Array]','[object Uint8Array]','[object Uint8ClampedArray]','[object Int16Array]','[object Uint16Array]','[object Int32Array]','[object Uint32Array]','[object Float32Array]','[object Float64Array]'];var isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1;};}function normalizeName(name){if(typeof name!=='string'){name=String(name);}if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name)||name===''){throw new TypeError('Invalid character in header field name: "'+name+'"');}return name.toLowerCase();}function normalizeValue(value){if(typeof value!=='string'){value=String(value);}return value;}// Build a destructive iterator for the value list
  2768. function iteratorFor(items){var iterator={next:function next(){var value=items.shift();return{done:value===undefined,value:value};}};if(support.iterable){iterator[Symbol.iterator]=function(){return iterator;};}return iterator;}function Headers$1(headers){this.map={};if(headers instanceof Headers$1){headers.forEach(function(value,name){this.append(name,value);},this);}else if(Array.isArray(headers)){headers.forEach(function(header){this.append(header[0],header[1]);},this);}else if(headers){Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name]);},this);}}Headers$1.prototype.append=function(name,value){name=normalizeName(name);value=normalizeValue(value);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+', '+value:value;};Headers$1.prototype['delete']=function(name){delete this.map[normalizeName(name)];};Headers$1.prototype.get=function(name){name=normalizeName(name);return this.has(name)?this.map[name]:null;};Headers$1.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name));};Headers$1.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value);};Headers$1.prototype.forEach=function(callback,thisArg){for(var name in this.map){if(this.map.hasOwnProperty(name)){callback.call(thisArg,this.map[name],name,this);}}};Headers$1.prototype.keys=function(){var items=[];this.forEach(function(value,name){items.push(name);});return iteratorFor(items);};Headers$1.prototype.values=function(){var items=[];this.forEach(function(value){items.push(value);});return iteratorFor(items);};Headers$1.prototype.entries=function(){var items=[];this.forEach(function(value,name){items.push([name,value]);});return iteratorFor(items);};if(support.iterable){Headers$1.prototype[Symbol.iterator]=Headers$1.prototype.entries;}function consumed(body){if(body.bodyUsed){return Promise.reject(new TypeError('Already read'));}body.bodyUsed=true;}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result);};reader.onerror=function(){reject(reader.error);};});}function readBlobAsArrayBuffer(blob){var reader=new FileReader();var promise=fileReaderReady(reader);reader.readAsArrayBuffer(blob);return promise;}function readBlobAsText(blob){var reader=new FileReader();var promise=fileReaderReady(reader);reader.readAsText(blob);return promise;}function readArrayBufferAsText(buf){var view=new Uint8Array(buf);var chars=new Array(view.length);for(var i=0;i<view.length;i++){chars[i]=String.fromCharCode(view[i]);}return chars.join('');}function bufferClone(buf){if(buf.slice){return buf.slice(0);}else{var view=new Uint8Array(buf.byteLength);view.set(new Uint8Array(buf));return view.buffer;}}function Body(){this.bodyUsed=false;this._initBody=function(body){/*
  2769. fetch-mock wraps the Response object in an ES6 Proxy to
  2770. provide useful test harness features such as flush. However, on
  2771. ES5 browsers without fetch or Proxy support pollyfills must be used;
  2772. the proxy-pollyfill is unable to proxy an attribute unless it exists
  2773. on the object before the Proxy is created. This change ensures
  2774. Response.bodyUsed exists on the instance, while maintaining the
  2775. semantic of setting Request.bodyUsed in the constructor before
  2776. _initBody is called.
  2777. */this.bodyUsed=this.bodyUsed;this._bodyInit=body;if(!body){this._bodyText='';}else if(typeof body==='string'){this._bodyText=body;}else if(support.blob&&Blob.prototype.isPrototypeOf(body)){this._bodyBlob=body;}else if(support.formData&&FormData.prototype.isPrototypeOf(body)){this._bodyFormData=body;}else if(support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)){this._bodyText=body.toString();}else if(support.arrayBuffer&&support.blob&&isDataView(body)){this._bodyArrayBuffer=bufferClone(body.buffer);// IE 10-11 can't handle a DataView body.
  2778. this._bodyInit=new Blob([this._bodyArrayBuffer]);}else if(support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))){this._bodyArrayBuffer=bufferClone(body);}else{this._bodyText=body=Object.prototype.toString.call(body);}if(!this.headers.get('content-type')){if(typeof body==='string'){this.headers.set('content-type','text/plain;charset=UTF-8');}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set('content-type',this._bodyBlob.type);}else if(support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)){this.headers.set('content-type','application/x-www-form-urlencoded;charset=UTF-8');}}};if(support.blob){this.blob=function(){var rejected=consumed(this);if(rejected){return rejected;}if(this._bodyBlob){return Promise.resolve(this._bodyBlob);}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]));}else if(this._bodyFormData){throw new Error('could not read FormData body as blob');}else{return Promise.resolve(new Blob([this._bodyText]));}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){var isConsumed=consumed(this);if(isConsumed){return isConsumed;}if(ArrayBuffer.isView(this._bodyArrayBuffer)){return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength));}else{return Promise.resolve(this._bodyArrayBuffer);}}else{return this.blob().then(readBlobAsArrayBuffer);}};}this.text=function(){var rejected=consumed(this);if(rejected){return rejected;}if(this._bodyBlob){return readBlobAsText(this._bodyBlob);}else if(this._bodyArrayBuffer){return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));}else if(this._bodyFormData){throw new Error('could not read FormData body as text');}else{return Promise.resolve(this._bodyText);}};if(support.formData){this.formData=function(){return this.text().then(decode$1);};}this.json=function(){return this.text().then(JSON.parse);};return this;}// HTTP methods whose capitalization should be normalized
  2779. var methods=['DELETE','GET','HEAD','OPTIONS','POST','PUT'];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method;}function Request(input,options){if(!(this instanceof Request)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');}options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed){throw new TypeError('Already read');}this.url=input.url;this.credentials=input.credentials;if(!options.headers){this.headers=new Headers$1(input.headers);}this.method=input.method;this.mode=input.mode;this.signal=input.signal;if(!body&&input._bodyInit!=null){body=input._bodyInit;input.bodyUsed=true;}}else{this.url=String(input);}this.credentials=options.credentials||this.credentials||'same-origin';if(options.headers||!this.headers){this.headers=new Headers$1(options.headers);}this.method=normalizeMethod(options.method||this.method||'GET');this.mode=options.mode||this.mode||null;this.signal=options.signal||this.signal;this.referrer=null;if((this.method==='GET'||this.method==='HEAD')&&body){throw new TypeError('Body not allowed for GET or HEAD requests');}this._initBody(body);if(this.method==='GET'||this.method==='HEAD'){if(options.cache==='no-store'||options.cache==='no-cache'){// Search for a '_' parameter in the query string
  2780. var reParamSearch=/([?&])_=[^&]*/;if(reParamSearch.test(this.url)){// If it already exists then set the value with the current time
  2781. this.url=this.url.replace(reParamSearch,'$1_='+new Date().getTime());}else{// Otherwise add a new '_' parameter to the end with the current time
  2782. var reQueryString=/\?/;this.url+=(reQueryString.test(this.url)?'&':'?')+'_='+new Date().getTime();}}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit});};function decode$1(body){var form=new FormData();body.trim().split('&').forEach(function(bytes){if(bytes){var split=bytes.split('=');var name=split.shift().replace(/\+/g,' ');var value=split.join('=').replace(/\+/g,' ');form.append(decodeURIComponent(name),decodeURIComponent(value));}});return form;}function parseHeaders(rawHeaders){var headers=new Headers$1();// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
  2783. // https://tools.ietf.org/html/rfc7230#section-3.2
  2784. var preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g,' ');// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
  2785. // https://github.com/github/fetch/issues/748
  2786. // https://github.com/zloirock/core-js/issues/751
  2787. preProcessedHeaders.split('\r').map(function(header){return header.indexOf('\n')===0?header.substr(1,header.length):header;}).forEach(function(line){var parts=line.split(':');var key=parts.shift().trim();if(key){var value=parts.join(':').trim();headers.append(key,value);}});return headers;}Body.call(Request.prototype);function Response(bodyInit,options){if(!(this instanceof Response)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');}if(!options){options={};}this.type='default';this.status=options.status===undefined?200:options.status;this.ok=this.status>=200&&this.status<300;this.statusText=options.statusText===undefined?'':''+options.statusText;this.headers=new Headers$1(options.headers);this.url=options.url||'';this._initBody(bodyInit);}Body.call(Response.prototype);Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers$1(this.headers),url:this.url});};Response.error=function(){var response=new Response(null,{status:0,statusText:''});response.type='error';return response;};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1){throw new RangeError('Invalid status code');}return new Response(null,{status:status,headers:{location:url}});};var DOMException=global$1.DOMException;try{new DOMException();}catch(err){DOMException=function DOMException(message,name){this.message=message;this.name=name;var error=Error(message);this.stack=error.stack;};DOMException.prototype=Object.create(Error.prototype);DOMException.prototype.constructor=DOMException;}function fetch$1(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init);if(request.signal&&request.signal.aborted){return reject(new DOMException('Aborted','AbortError'));}var xhr=new XMLHttpRequest();function abortXhr(){xhr.abort();}xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||'')};options.url='responseURL'in xhr?xhr.responseURL:options.headers.get('X-Request-URL');var body='response'in xhr?xhr.response:xhr.responseText;setTimeout(function(){resolve(new Response(body,options));},0);};xhr.onerror=function(){setTimeout(function(){reject(new TypeError('Network request failed'));},0);};xhr.ontimeout=function(){setTimeout(function(){reject(new TypeError('Network request failed'));},0);};xhr.onabort=function(){setTimeout(function(){reject(new DOMException('Aborted','AbortError'));},0);};function fixUrl(url){try{return url===''&&global$1.location.href?global$1.location.href:url;}catch(e){return url;}}xhr.open(request.method,fixUrl(request.url),true);if(request.credentials==='include'){xhr.withCredentials=true;}else if(request.credentials==='omit'){xhr.withCredentials=false;}if('responseType'in xhr){if(support.blob){xhr.responseType='blob';}else if(support.arrayBuffer&&request.headers.get('Content-Type')&&request.headers.get('Content-Type').indexOf('application/octet-stream')!==-1){xhr.responseType='arraybuffer';}}if(init&&_typeof2(init.headers)==='object'&&!(init.headers instanceof Headers$1)){Object.getOwnPropertyNames(init.headers).forEach(function(name){xhr.setRequestHeader(name,normalizeValue(init.headers[name]));});}else{request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value);});}if(request.signal){request.signal.addEventListener('abort',abortXhr);xhr.onreadystatechange=function(){// DONE (success or failure)
  2788. if(xhr.readyState===4){request.signal.removeEventListener('abort',abortXhr);}};}xhr.send(typeof request._bodyInit==='undefined'?null:request._bodyInit);});}fetch$1.polyfill=true;if(!global$1.fetch){global$1.fetch=fetch$1;global$1.Headers=Headers$1;global$1.Request=Request;global$1.Response=Response;}// the whatwg-fetch polyfill installs the fetch() function
  2789. // on the global object (window or self)
  2790. //
  2791. // Return that as the export for use in Webpack, Browserify etc.
  2792. self.fetch.bind(self);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly){symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});}keys.push.apply(keys,symbols);}return keys;}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){_defineProperty(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else{ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct;}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _possibleConstructorReturn(self,call){if(call&&(_typeof2(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}// 返回一个组合了所有插件的“插件”
  2793. function compose(middlewares){if(!Array.isArray(middlewares))throw new TypeError('Middlewares must be an array!');var middlewaresLen=middlewares.length;for(var i=0;i<middlewaresLen;i++){if(typeof middlewares[i]!=='function'){throw new TypeError('Middleware must be componsed of function');}}return function wrapMiddlewares(params,next){var index=-1;function dispatch(i){if(i<=index){return Promise.reject(new Error('next() should not be called multiple times in one middleware!'));}index=i;var fn=middlewares[i]||next;if(!fn)return Promise.resolve();try{return Promise.resolve(fn(params,function(){return dispatch(i+1);}));}catch(err){return Promise.reject(err);}}return dispatch(0);};}var Onion=/*#__PURE__*/function(){function Onion(defaultMiddlewares){_classCallCheck(this,Onion);if(!Array.isArray(defaultMiddlewares))throw new TypeError('Default middlewares must be an array!');this.defaultMiddlewares=_toConsumableArray(defaultMiddlewares);this.middlewares=[];}_createClass(Onion,[{key:"use",value:// 内置内核中间件长度
  2794. function use(newMiddleware){var opts=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{global:false,core:false,defaultInstance:false};var core=false;var global=false;var defaultInstance=false;if(typeof opts==='number'){if(process&&process.env&&"production"==='development'){console.warn('use() options should be object, number property would be deprecated in future,please update use() options to "{ core: true }".');}core=true;global=false;}else if(_typeof(opts)==='object'&&opts){global=opts.global||false;core=opts.core||false;defaultInstance=opts.defaultInstance||false;}// 全局中间件
  2795. if(global){Onion.globalMiddlewares.splice(Onion.globalMiddlewares.length-Onion.defaultGlobalMiddlewaresLength,0,newMiddleware);return;}// 内核中间件
  2796. if(core){Onion.coreMiddlewares.splice(Onion.coreMiddlewares.length-Onion.defaultCoreMiddlewaresLength,0,newMiddleware);return;}// 默认实例中间件,供开发者使用
  2797. if(defaultInstance){this.defaultMiddlewares.push(newMiddleware);return;}// 实例中间件
  2798. this.middlewares.push(newMiddleware);}},{key:"execute",value:function execute(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var fn=compose([].concat(_toConsumableArray(this.middlewares),_toConsumableArray(this.defaultMiddlewares),_toConsumableArray(Onion.globalMiddlewares),_toConsumableArray(Onion.coreMiddlewares)));return fn(params);}}]);return Onion;}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache=/*#__PURE__*/function(){function MapCache(options){_classCallCheck(this,MapCache);this.cache=new Map();this.timer={};this.extendOptions(options);}_createClass(MapCache,[{key:"extendOptions",value:function extendOptions(options){this.maxCache=options.maxCache||0;}},{key:"get",value:function get(key){return this.cache.get(JSON.stringify(key));}},{key:"set",value:function set(key,value){var _this=this;var ttl=arguments.length>2&&arguments[2]!==undefined?arguments[2]:60000;// 如果超过最大缓存数, 删除头部的第一个缓存.
  2799. if(this.maxCache>0&&this.cache.size>=this.maxCache){var deleteKey=_toConsumableArray(this.cache.keys())[0];this.cache.delete(deleteKey);if(this.timer[deleteKey]){clearTimeout(this.timer[deleteKey]);}}var cacheKey=JSON.stringify(key);this.cache.set(cacheKey,value);if(ttl>0){this.timer[cacheKey]=setTimeout(function(){_this.cache.delete(cacheKey);delete _this.timer[cacheKey];},ttl);}}},{key:"delete",value:function _delete(key){var cacheKey=JSON.stringify(key);delete this.timer[cacheKey];return this.cache.delete(cacheKey);}},{key:"clear",value:function clear(){this.timer={};return this.cache.clear();}}]);return MapCache;}();/**
  2800. * 请求异常
  2801. */var RequestError=/*#__PURE__*/function(_Error){_inherits(RequestError,_Error);var _super=_createSuper(RequestError);function RequestError(text,request){var _this2;var type=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'RequestError';_classCallCheck(this,RequestError);_this2=_super.call(this,text);_this2.name='RequestError';_this2.request=request;_this2.type=type;return _this2;}return RequestError;}(/*#__PURE__*/_wrapNativeSuper(Error));/**
  2802. * 响应异常
  2803. */var ResponseError=/*#__PURE__*/function(_Error2){_inherits(ResponseError,_Error2);var _super2=_createSuper(ResponseError);function ResponseError(response,text,data,request){var _this3;var type=arguments.length>4&&arguments[4]!==undefined?arguments[4]:'ResponseError';_classCallCheck(this,ResponseError);_this3=_super2.call(this,text||response.statusText);_this3.name='ResponseError';_this3.data=data;_this3.response=response;_this3.request=request;_this3.type=type;return _this3;}return ResponseError;}(/*#__PURE__*/_wrapNativeSuper(Error));/**
  2804. * http://gitlab.alipay-inc.com/KBSJ/gxt/blob/release_gxt_S8928905_20180531/src/util/request.js#L63
  2805. * 支持gbk
  2806. */function readerGBK(file){return new Promise(function(resolve,reject){var reader=new FileReader();reader.onload=function(){resolve(reader.result);};reader.onerror=reject;reader.readAsText(file,'GBK');// setup GBK decoding
  2807. });}/**
  2808. * 安全的JSON.parse
  2809. */function safeJsonParse(data){var throwErrIfParseFail=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var response=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var request=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;try{return JSON.parse(data);}catch(e){if(throwErrIfParseFail){throw new ResponseError(response,'JSON.parse fail',data,request,'ParseError');}}// eslint-disable-line no-empty
  2810. return data;}function timeout2Throw(msec,timeoutMessage,request){return new Promise(function(_,reject){setTimeout(function(){reject(new RequestError(timeoutMessage||"timeout of ".concat(msec,"ms exceeded"),request,'Timeout'));},msec);});}// If request options contain 'cancelToken', reject request when token has been canceled
  2811. function cancel2Throw(opt){return new Promise(function(_,reject){if(opt.cancelToken){opt.cancelToken.promise.then(function(cancel){reject(cancel);});}});}var toString=Object.prototype.toString;// Check env is browser or node
  2812. function getEnv(){var env;// Only Node.JS has a process variable that is of [[Class]] process
  2813. if(typeof process!=='undefined'&&toString.call(process)==='[object process]'){// For node use HTTP adapter
  2814. env='NODE';}if(typeof XMLHttpRequest!=='undefined'){env='BROWSER';}return env;}function isArray(val){return _typeof(val)==='object'&&Object.prototype.toString.call(val)==='[object Array]';}function isURLSearchParams(val){return typeof URLSearchParams!=='undefined'&&val instanceof URLSearchParams;}function isDate(val){return _typeof(val)==='object'&&Object.prototype.toString.call(val)==='[object Date]';}function isObject(val){return val!==null&&_typeof(val)==='object';}function forEach2ObjArr(target,callback){if(!target)return;if(_typeof(target)!=='object'){target=[target];}if(isArray(target)){for(var i=0;i<target.length;i++){callback.call(null,target[i],i,target);}}else{for(var key in target){if(Object.prototype.hasOwnProperty.call(target,key)){callback.call(null,target[key],key,target);}}}}function getParamObject(val){if(isURLSearchParams(val)){return lib.parse(val.toString(),{strictNullHandling:true});}if(typeof val==='string'){return[val];}return val;}function reqStringify(val){return lib.stringify(val,{arrayFormat:'repeat',strictNullHandling:true});}function mergeRequestOptions(options,options2Merge){return _objectSpread2(_objectSpread2(_objectSpread2({},options),options2Merge),{},{headers:_objectSpread2(_objectSpread2({},options.headers),options2Merge.headers),params:_objectSpread2(_objectSpread2({},getParamObject(options.params)),getParamObject(options2Merge.params)),method:(options2Merge.method||options.method||'get').toLowerCase()});}// 前后缀拦截
  2815. var addfix=function addfix(url){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var prefix=options.prefix,suffix=options.suffix;if(prefix){url="".concat(prefix).concat(url);}if(suffix){url="".concat(url).concat(suffix);}return{url:url,options:options};};var warnedCoreType=false;// 默认缓存判断,开放缓存判断给非 get 请求使用
  2816. function __defaultValidateCache(url,options){var _options$method=options.method,method=_options$method===void 0?'get':_options$method;return method.toLowerCase()==='get';}function fetchMiddleware(ctx,next){if(!ctx)return next();var _ctx$req=ctx.req;_ctx$req=_ctx$req===void 0?{}:_ctx$req;var _ctx$req$options=_ctx$req.options,options=_ctx$req$options===void 0?{}:_ctx$req$options,_ctx$req$url=_ctx$req.url,url=_ctx$req$url===void 0?'':_ctx$req$url,cache=ctx.cache,responseInterceptors=ctx.responseInterceptors;var _options$timeout=options.timeout,timeout=_options$timeout===void 0?0:_options$timeout,timeoutMessage=options.timeoutMessage,_options$__umiRequest=options.__umiRequestCoreType__,__umiRequestCoreType__=_options$__umiRequest===void 0?'normal':_options$__umiRequest,_options$useCache=options.useCache,useCache=_options$useCache===void 0?false:_options$useCache,_options$method2=options.method,method=_options$method2===void 0?'get':_options$method2,params=options.params,ttl=options.ttl,_options$validateCach=options.validateCache,validateCache=_options$validateCach===void 0?__defaultValidateCache:_options$validateCach;if(__umiRequestCoreType__!=='normal'){if(process&&process.env&&"production"==='development'&&warnedCoreType===false){warnedCoreType=true;console.warn('__umiRequestCoreType__ is a internal property that use in umi-request, change its value would affect the behavior of request! It only use when you want to extend or use request core.');}return next();}var adapter=fetch;if(!adapter){throw new Error('Global fetch not exist!');}// 从缓存池检查是否有缓存数据
  2817. var isBrowser=getEnv()==='BROWSER';var needCache=validateCache(url,options)&&useCache&&isBrowser;if(needCache){var responseCache=cache.get({url:url,params:params,method:method});if(responseCache){responseCache=responseCache.clone();responseCache.useCache=true;ctx.res=responseCache;return next();}}var response;// 超时处理、取消请求处理
  2818. if(timeout>0){response=Promise.race([cancel2Throw(options),adapter(url,options),timeout2Throw(timeout,timeoutMessage,ctx.req)]);}else{response=Promise.race([cancel2Throw(options),adapter(url,options)]);}// 兼容老版本 response.interceptor
  2819. responseInterceptors.forEach(function(handler){response=response.then(function(res){// Fix multiple clones not working, issue: https://github.com/github/fetch/issues/504
  2820. var clonedRes=typeof res.clone==='function'?res.clone():res;return handler(clonedRes,options);});});return response.then(function(res){// 是否存入缓存池
  2821. if(needCache){if(res.status===200){var copy=res.clone();copy.useCache=true;cache.set({url:url,params:params,method:method},copy,ttl);}}ctx.res=res;return next();});}function parseResponseMiddleware(ctx,next){var copy;return next().then(function(){if(!ctx)return;var _ctx$res=ctx.res,res=_ctx$res===void 0?{}:_ctx$res,_ctx$req=ctx.req,req=_ctx$req===void 0?{}:_ctx$req;var _ref=req||{},_ref$options=_ref.options;_ref$options=_ref$options===void 0?{}:_ref$options;var _ref$options$response=_ref$options.responseType,responseType=_ref$options$response===void 0?'json':_ref$options$response,_ref$options$charset=_ref$options.charset,charset=_ref$options$charset===void 0?'utf8':_ref$options$charset;_ref$options.getResponse;var _ref$options$throwErr=_ref$options.throwErrIfParseFail,throwErrIfParseFail=_ref$options$throwErr===void 0?false:_ref$options$throwErr,_ref$options$parseRes=_ref$options.parseResponse,parseResponse=_ref$options$parseRes===void 0?true:_ref$options$parseRes;if(!parseResponse){return;}if(!res||!res.clone){return;}// 只在浏览器环境对 response 做克隆, node 环境如果对 response 克隆会有问题:https://github.com/bitinn/node-fetch/issues/553
  2822. copy=getEnv()==='BROWSER'?res.clone():res;copy.useCache=res.useCache||false;// 解析数据
  2823. if(charset==='gbk'){try{return res.blob().then(readerGBK).then(function(d){return safeJsonParse(d,false,copy,req);});}catch(e){throw new ResponseError(copy,e.message,null,req,'ParseError');}}else if(responseType==='json'){return res.text().then(function(d){return safeJsonParse(d,throwErrIfParseFail,copy,req);});}try{// 其他如text, blob, arrayBuffer, formData
  2824. return res[responseType]();}catch(e){throw new ResponseError(copy,'responseType not support',null,req,'ParseError');}}).then(function(body){if(!ctx)return;ctx.res;var _ctx$req2=ctx.req,req=_ctx$req2===void 0?{}:_ctx$req2;var _ref2=req||{},_ref2$options=_ref2.options;_ref2$options=_ref2$options===void 0?{}:_ref2$options;var _ref2$options$getResp=_ref2$options.getResponse,getResponse=_ref2$options$getResp===void 0?false:_ref2$options$getResp;if(!copy){return;}if(copy.status>=200&&copy.status<300){// 提供源response, 以便自定义处理
  2825. if(getResponse){ctx.res={data:body,response:copy};return;}ctx.res=body;return;}throw new ResponseError(copy,'http error',body,req,'HttpError');}).catch(function(e){if(e instanceof RequestError||e instanceof ResponseError){throw e;}// 对未知错误进行处理
  2826. var req=ctx.req,res=ctx.res;e.request=e.request||req;e.response=e.response||res;e.type=e.type||e.name;e.data=e.data||undefined;throw e;});}function simplePostMiddleware(ctx,next){if(!ctx)return next();var _ctx$req=ctx.req;_ctx$req=_ctx$req===void 0?{}:_ctx$req;var _ctx$req$options=_ctx$req.options,options=_ctx$req$options===void 0?{}:_ctx$req$options;var _options$method=options.method,method=_options$method===void 0?'get':_options$method;if(['post','put','patch','delete'].indexOf(method.toLowerCase())===-1){return next();}var _options$requestType=options.requestType,requestType=_options$requestType===void 0?'json':_options$requestType,data=options.data;// 数据使用类axios的新字段data, 避免引用后影响旧代码, 如将body stringify多次
  2827. if(data){var dataType=Object.prototype.toString.call(data);if(dataType==='[object Object]'||dataType==='[object Array]'){if(requestType==='json'){options.headers=_objectSpread2({Accept:'application/json','Content-Type':'application/json;charset=UTF-8'},options.headers);options.body=JSON.stringify(data);}else if(requestType==='form'){options.headers=_objectSpread2({Accept:'application/json','Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'},options.headers);options.body=reqStringify(data);}}else{// 其他 requestType 自定义header
  2828. options.headers=_objectSpread2({Accept:'application/json'},options.headers);options.body=data;}}ctx.req.options=options;return next();}function paramsSerialize(params,paramsSerializer){var serializedParams;var jsonStringifiedParams;// 支持参数自动拼装,其他 method 也可用,不冲突
  2829. if(params){if(paramsSerializer){serializedParams=paramsSerializer(params);}else if(isURLSearchParams(params)){serializedParams=params.toString();}else{if(isArray(params)){jsonStringifiedParams=[];forEach2ObjArr(params,function(item){if(item===null||typeof item==='undefined'){jsonStringifiedParams.push(item);}else{jsonStringifiedParams.push(isObject(item)?JSON.stringify(item):item);}});// a: [1,2,3] => a=1&a=2&a=3
  2830. serializedParams=reqStringify(jsonStringifiedParams);}else{jsonStringifiedParams={};forEach2ObjArr(params,function(value,key){var jsonStringifiedValue=value;if(value===null||typeof value==='undefined'){jsonStringifiedParams[key]=value;}else if(isDate(value)){jsonStringifiedValue=value.toISOString();}else if(isArray(value)){jsonStringifiedValue=value;}else if(isObject(value)){jsonStringifiedValue=JSON.stringify(value);}jsonStringifiedParams[key]=jsonStringifiedValue;});var tmp=reqStringify(jsonStringifiedParams);serializedParams=tmp;}}}return serializedParams;}// 对请求参数做处理,实现 query 简化、 post 简化
  2831. function simpleGetMiddleware(ctx,next){if(!ctx)return next();var _ctx$req=ctx.req;_ctx$req=_ctx$req===void 0?{}:_ctx$req;var _ctx$req$options=_ctx$req.options,options=_ctx$req$options===void 0?{}:_ctx$req$options;var paramsSerializer=options.paramsSerializer,params=options.params;var _ctx$req2=ctx.req;_ctx$req2=_ctx$req2===void 0?{}:_ctx$req2;var _ctx$req2$url=_ctx$req2.url,url=_ctx$req2$url===void 0?'':_ctx$req2$url;// 将 method 改为大写
  2832. options.method=options.method?options.method.toUpperCase():'GET';// 设置 credentials 默认值为 same-origin,确保当开发者没有设置时,各浏览器对请求是否发送 cookies 保持一致的行为
  2833. // - omit: 从不发送cookies.
  2834. // - same-origin: 只有当URL与响应脚本同源才发送 cookies、 HTTP Basic authentication 等验证信息.(浏览器默认值,在旧版本浏览器,例如safari 11依旧是omit,safari 12已更改)
  2835. // - include: 不论是不是跨域的请求,总是发送请求资源域在本地的 cookies、 HTTP Basic authentication 等验证信息.
  2836. options.credentials=options.credentials||'same-origin';// 支持类似axios 参数自动拼装, 其他method也可用, 不冲突.
  2837. var serializedParams=paramsSerialize(params,paramsSerializer);ctx.req.originUrl=url;if(serializedParams){var urlSign=url.indexOf('?')!==-1?'&':'?';ctx.req.url="".concat(url).concat(urlSign).concat(serializedParams);}ctx.req.options=options;return next();}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware];var coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=/*#__PURE__*/function(){function Core(initOptions){_classCallCheck(this,Core);this.onion=new Onion([]);this.fetchIndex=0;// 【即将废弃】请求中间件位置
  2838. this.mapCache=new MapCache(initOptions);this.initOptions=initOptions;this.instanceRequestInterceptors=[];this.instanceResponseInterceptors=[];}// 旧版拦截器为共享
  2839. _createClass(Core,[{key:"use",value:function use(newMiddleware){var opt=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{global:false,core:false};this.onion.use(newMiddleware,opt);return this;}},{key:"extendOptions",value:function extendOptions(options){this.initOptions=mergeRequestOptions(this.initOptions,options);this.mapCache.extendOptions(options);}// 执行请求前拦截器
  2840. },{key:"dealRequestInterceptors",value:function dealRequestInterceptors(ctx){var reducer=function reducer(p1,p2){return p1.then(function(){var ret=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};ctx.req.url=ret.url||ctx.req.url;ctx.req.options=ret.options||ctx.req.options;return p2(ctx.req.url,ctx.req.options);});};var allInterceptors=[].concat(_toConsumableArray(Core.requestInterceptors),_toConsumableArray(this.instanceRequestInterceptors));return allInterceptors.reduce(reducer,Promise.resolve()).then(function(){var ret=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};ctx.req.url=ret.url||ctx.req.url;ctx.req.options=ret.options||ctx.req.options;return Promise.resolve();});}},{key:"request",value:function request(url,options){var _this=this;var onion=this.onion;var obj={req:{url:url,options:_objectSpread2(_objectSpread2({},options),{},{url:url})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray(Core.responseInterceptors),_toConsumableArray(this.instanceResponseInterceptors))};if(typeof url!=='string'){throw new Error('url MUST be a string');}return new Promise(function(resolve,reject){_this.dealRequestInterceptors(obj).then(function(){return onion.execute(obj);}).then(function(){resolve(obj.res);}).catch(function(error){var errorHandler=obj.req.options.errorHandler;if(errorHandler){try{var data=errorHandler(error);resolve(data);}catch(e){reject(e);}}else{reject(error);}});});}}],[{key:"requestUse",value:// 请求拦截器 默认 { global: true } 兼容旧版本拦截器
  2841. function requestUse(handler){var opt=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{global:true};if(typeof handler!=='function')throw new TypeError('Interceptor must be function!');if(opt.global){Core.requestInterceptors.push(handler);}else{this.instanceRequestInterceptors.push(handler);}}// 响应拦截器 默认 { global: true } 兼容旧版本拦截器
  2842. },{key:"responseUse",value:function responseUse(handler){var opt=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{global:true};if(typeof handler!=='function')throw new TypeError('Interceptor must be function!');if(opt.global){Core.responseInterceptors.push(handler);}else{this.instanceResponseInterceptors.push(handler);}}}]);return Core;}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];/**
  2843. * 当执行 “取消请求” 操作时会抛出 Cancel 对象作为一场
  2844. * @class
  2845. * @param {string=} message The message.
  2846. */function Cancel(message){this.message=message;}Cancel.prototype.toString=function toString(){return this.message?"Cancel: ".concat(this.message):'Cancel';};Cancel.prototype.__CANCEL__=true;/**
  2847. * 通过 CancelToken 来取消请求操作
  2848. *
  2849. * @class
  2850. * @param {Function} executor The executor function.
  2851. */function CancelToken(executor){if(typeof executor!=='function'){throw new TypeError('executor must be a function.');}var resolvePromise;this.promise=new Promise(function promiseExecutor(resolve){resolvePromise=resolve;});var token=this;executor(function cancel(message){if(token.reason){// 取消操作已被调用过
  2852. return;}token.reason=new Cancel(message);resolvePromise(token.reason);});}/**
  2853. * 如果请求已经取消,抛出 Cancel 异常
  2854. */CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason;}};/**
  2855. * 通过 source 来返回 CancelToken 实例和取消 CancelToken 的函数
  2856. */CancelToken.source=function source(){var cancel;var token=new CancelToken(function executor(c){cancel=c;});return{token:token,cancel:cancel};};function isCancel(value){return!!(value&&value.__CANCEL__);}var request=function request(){var initOptions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var coreInstance=new Core(initOptions);var umiInstance=function umiInstance(url){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var mergeOptions=mergeRequestOptions(coreInstance.initOptions,options);return coreInstance.request(url,mergeOptions);};// 中间件
  2857. umiInstance.use=coreInstance.use.bind(coreInstance);umiInstance.fetchIndex=coreInstance.fetchIndex;// 拦截器
  2858. umiInstance.interceptors={request:{use:Core.requestUse.bind(coreInstance)},response:{use:Core.responseUse.bind(coreInstance)}};// 请求语法糖: reguest.get request.post ……
  2859. var METHODS=['get','post','delete','put','patch','head','options','rpc'];METHODS.forEach(function(method){umiInstance[method]=function(url,options){return umiInstance(url,_objectSpread2(_objectSpread2({},options),{},{method:method}));};});umiInstance.Cancel=Cancel;umiInstance.CancelToken=CancelToken;umiInstance.isCancel=isCancel;umiInstance.extendOptions=coreInstance.extendOptions.bind(coreInstance);// 暴露各个实例的中间件,供开发者自由组合
  2860. umiInstance.middlewares={instance:coreInstance.onion.middlewares,defaultInstance:coreInstance.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares};return umiInstance;};/**
  2861. * extend 方法参考了ky, 让用户可以定制配置.
  2862. * initOpions 初始化参数
  2863. * @param {number} maxCache 最大缓存数
  2864. * @param {string} prefix url前缀
  2865. * @param {function} errorHandler 统一错误处理方法
  2866. * @param {object} headers 统一的headers
  2867. */var extend=exports('e',function extend(initOptions){return request(initOptions);});/**
  2868. * 暴露 fetch 中间件,保障依旧可以使用
  2869. */request({parseResponse:false});var request$1=exports('af',request({}));var lodash_isempty={exports:{}};/**
  2870. * lodash (Custom Build) <https://lodash.com/>
  2871. * Build: `lodash modularize exports="npm" -o ./`
  2872. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  2873. * Released under MIT license <https://lodash.com/license>
  2874. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  2875. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  2876. */(function(module,exports$1){/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** `Object#toString` result references. */var argsTag='[object Arguments]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',objectTag='[object Object]',promiseTag='[object Promise]',setTag='[object Set]',weakMapTag='[object WeakMap]';var dataViewTag='[object DataView]';/**
  2877. * Used to match `RegExp`
  2878. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  2879. */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof2(commonjsGlobal)=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=exports$1&&!exports$1.nodeType&&exports$1;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/**
  2880. * Gets the value at `key` of `object`.
  2881. *
  2882. * @private
  2883. * @param {Object} [object] The object to query.
  2884. * @param {string} key The key of the property to get.
  2885. * @returns {*} Returns the property value.
  2886. */function getValue(object,key){return object==null?undefined:object[key];}/**
  2887. * Checks if `value` is a host object in IE < 9.
  2888. *
  2889. * @private
  2890. * @param {*} value The value to check.
  2891. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  2892. */function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
  2893. // despite having improperly defined `toString` methods.
  2894. var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
  2895. * Creates a unary function that invokes `func` with its argument transformed.
  2896. *
  2897. * @private
  2898. * @param {Function} func The function to wrap.
  2899. * @param {Function} transform The argument transform.
  2900. * @returns {Function} Returns the new function.
  2901. */function overArg(func,transform){return function(arg){return func(transform(arg));};}/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=root['__core-js_shared__'];/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
  2902. * Used to resolve the
  2903. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  2904. * of values.
  2905. */var objectToString=objectProto.toString;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined,propertyIsEnumerable=objectProto.propertyIsEnumerable;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeKeys=overArg(Object.keys,Object);/* Built-in method references that are verified to be native. */var DataView=getNative(root,'DataView'),Map=getNative(root,'Map'),Promise=getNative(root,'Promise'),Set=getNative(root,'Set'),WeakMap=getNative(root,'WeakMap');/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */var nonEnumShadows=!propertyIsEnumerable.call({'valueOf':1},'valueOf');/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/**
  2906. * The base implementation of `getTag`.
  2907. *
  2908. * @private
  2909. * @param {*} value The value to query.
  2910. * @returns {string} Returns the `toStringTag`.
  2911. */function baseGetTag(value){return objectToString.call(value);}/**
  2912. * The base implementation of `_.isNative` without bad shim checks.
  2913. *
  2914. * @private
  2915. * @param {*} value The value to check.
  2916. * @returns {boolean} Returns `true` if `value` is a native function,
  2917. * else `false`.
  2918. */function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
  2919. * Gets the native function at `key` of `object`.
  2920. *
  2921. * @private
  2922. * @param {Object} object The object to query.
  2923. * @param {string} key The key of the method to get.
  2924. * @returns {*} Returns the function if it's native, else `undefined`.
  2925. */function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
  2926. * Gets the `toStringTag` of `value`.
  2927. *
  2928. * @private
  2929. * @param {*} value The value to query.
  2930. * @returns {string} Returns the `toStringTag`.
  2931. */var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11,
  2932. // for data views in Edge < 14, and promises in Node.js.
  2933. if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function getTag(value){var result=objectToString.call(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):undefined;if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
  2934. * Checks if `func` has its source masked.
  2935. *
  2936. * @private
  2937. * @param {Function} func The function to check.
  2938. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  2939. */function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/**
  2940. * Checks if `value` is likely a prototype object.
  2941. *
  2942. * @private
  2943. * @param {*} value The value to check.
  2944. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  2945. */function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
  2946. * Converts `func` to its source code.
  2947. *
  2948. * @private
  2949. * @param {Function} func The function to process.
  2950. * @returns {string} Returns the source code.
  2951. */function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}/**
  2952. * Checks if `value` is likely an `arguments` object.
  2953. *
  2954. * @static
  2955. * @memberOf _
  2956. * @since 0.1.0
  2957. * @category Lang
  2958. * @param {*} value The value to check.
  2959. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  2960. * else `false`.
  2961. * @example
  2962. *
  2963. * _.isArguments(function() { return arguments; }());
  2964. * // => true
  2965. *
  2966. * _.isArguments([1, 2, 3]);
  2967. * // => false
  2968. */function isArguments(value){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  2969. return isArrayLikeObject(value)&&hasOwnProperty.call(value,'callee')&&(!propertyIsEnumerable.call(value,'callee')||objectToString.call(value)==argsTag);}/**
  2970. * Checks if `value` is classified as an `Array` object.
  2971. *
  2972. * @static
  2973. * @memberOf _
  2974. * @since 0.1.0
  2975. * @category Lang
  2976. * @param {*} value The value to check.
  2977. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  2978. * @example
  2979. *
  2980. * _.isArray([1, 2, 3]);
  2981. * // => true
  2982. *
  2983. * _.isArray(document.body.children);
  2984. * // => false
  2985. *
  2986. * _.isArray('abc');
  2987. * // => false
  2988. *
  2989. * _.isArray(_.noop);
  2990. * // => false
  2991. */var isArray=Array.isArray;/**
  2992. * Checks if `value` is array-like. A value is considered array-like if it's
  2993. * not a function and has a `value.length` that's an integer greater than or
  2994. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  2995. *
  2996. * @static
  2997. * @memberOf _
  2998. * @since 4.0.0
  2999. * @category Lang
  3000. * @param {*} value The value to check.
  3001. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  3002. * @example
  3003. *
  3004. * _.isArrayLike([1, 2, 3]);
  3005. * // => true
  3006. *
  3007. * _.isArrayLike(document.body.children);
  3008. * // => true
  3009. *
  3010. * _.isArrayLike('abc');
  3011. * // => true
  3012. *
  3013. * _.isArrayLike(_.noop);
  3014. * // => false
  3015. */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/**
  3016. * This method is like `_.isArrayLike` except that it also checks if `value`
  3017. * is an object.
  3018. *
  3019. * @static
  3020. * @memberOf _
  3021. * @since 4.0.0
  3022. * @category Lang
  3023. * @param {*} value The value to check.
  3024. * @returns {boolean} Returns `true` if `value` is an array-like object,
  3025. * else `false`.
  3026. * @example
  3027. *
  3028. * _.isArrayLikeObject([1, 2, 3]);
  3029. * // => true
  3030. *
  3031. * _.isArrayLikeObject(document.body.children);
  3032. * // => true
  3033. *
  3034. * _.isArrayLikeObject('abc');
  3035. * // => false
  3036. *
  3037. * _.isArrayLikeObject(_.noop);
  3038. * // => false
  3039. */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/**
  3040. * Checks if `value` is a buffer.
  3041. *
  3042. * @static
  3043. * @memberOf _
  3044. * @since 4.3.0
  3045. * @category Lang
  3046. * @param {*} value The value to check.
  3047. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  3048. * @example
  3049. *
  3050. * _.isBuffer(new Buffer(2));
  3051. * // => true
  3052. *
  3053. * _.isBuffer(new Uint8Array(2));
  3054. * // => false
  3055. */var isBuffer=nativeIsBuffer||stubFalse;/**
  3056. * Checks if `value` is an empty object, collection, map, or set.
  3057. *
  3058. * Objects are considered empty if they have no own enumerable string keyed
  3059. * properties.
  3060. *
  3061. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  3062. * jQuery-like collections are considered empty if they have a `length` of `0`.
  3063. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  3064. *
  3065. * @static
  3066. * @memberOf _
  3067. * @since 0.1.0
  3068. * @category Lang
  3069. * @param {*} value The value to check.
  3070. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  3071. * @example
  3072. *
  3073. * _.isEmpty(null);
  3074. * // => true
  3075. *
  3076. * _.isEmpty(true);
  3077. * // => true
  3078. *
  3079. * _.isEmpty(1);
  3080. * // => true
  3081. *
  3082. * _.isEmpty([1, 2, 3]);
  3083. * // => false
  3084. *
  3085. * _.isEmpty({ 'a': 1 });
  3086. * // => false
  3087. */function isEmpty(value){if(isArrayLike(value)&&(isArray(value)||typeof value=='string'||typeof value.splice=='function'||isBuffer(value)||isArguments(value))){return!value.length;}var tag=getTag(value);if(tag==mapTag||tag==setTag){return!value.size;}if(nonEnumShadows||isPrototype(value)){return!nativeKeys(value).length;}for(var key in value){if(hasOwnProperty.call(value,key)){return false;}}return true;}/**
  3088. * Checks if `value` is classified as a `Function` object.
  3089. *
  3090. * @static
  3091. * @memberOf _
  3092. * @since 0.1.0
  3093. * @category Lang
  3094. * @param {*} value The value to check.
  3095. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  3096. * @example
  3097. *
  3098. * _.isFunction(_);
  3099. * // => true
  3100. *
  3101. * _.isFunction(/abc/);
  3102. * // => false
  3103. */function isFunction(value){// The use of `Object#toString` avoids issues with the `typeof` operator
  3104. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  3105. var tag=isObject(value)?objectToString.call(value):'';return tag==funcTag||tag==genTag;}/**
  3106. * Checks if `value` is a valid array-like length.
  3107. *
  3108. * **Note:** This method is loosely based on
  3109. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  3110. *
  3111. * @static
  3112. * @memberOf _
  3113. * @since 4.0.0
  3114. * @category Lang
  3115. * @param {*} value The value to check.
  3116. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  3117. * @example
  3118. *
  3119. * _.isLength(3);
  3120. * // => true
  3121. *
  3122. * _.isLength(Number.MIN_VALUE);
  3123. * // => false
  3124. *
  3125. * _.isLength(Infinity);
  3126. * // => false
  3127. *
  3128. * _.isLength('3');
  3129. * // => false
  3130. */function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
  3131. * Checks if `value` is the
  3132. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  3133. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  3134. *
  3135. * @static
  3136. * @memberOf _
  3137. * @since 0.1.0
  3138. * @category Lang
  3139. * @param {*} value The value to check.
  3140. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  3141. * @example
  3142. *
  3143. * _.isObject({});
  3144. * // => true
  3145. *
  3146. * _.isObject([1, 2, 3]);
  3147. * // => true
  3148. *
  3149. * _.isObject(_.noop);
  3150. * // => true
  3151. *
  3152. * _.isObject(null);
  3153. * // => false
  3154. */function isObject(value){var type=_typeof2(value);return!!value&&(type=='object'||type=='function');}/**
  3155. * Checks if `value` is object-like. A value is object-like if it's not `null`
  3156. * and has a `typeof` result of "object".
  3157. *
  3158. * @static
  3159. * @memberOf _
  3160. * @since 4.0.0
  3161. * @category Lang
  3162. * @param {*} value The value to check.
  3163. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  3164. * @example
  3165. *
  3166. * _.isObjectLike({});
  3167. * // => true
  3168. *
  3169. * _.isObjectLike([1, 2, 3]);
  3170. * // => true
  3171. *
  3172. * _.isObjectLike(_.noop);
  3173. * // => false
  3174. *
  3175. * _.isObjectLike(null);
  3176. * // => false
  3177. */function isObjectLike(value){return!!value&&_typeof2(value)=='object';}/**
  3178. * This method returns `false`.
  3179. *
  3180. * @static
  3181. * @memberOf _
  3182. * @since 4.13.0
  3183. * @category Util
  3184. * @returns {boolean} Returns `false`.
  3185. * @example
  3186. *
  3187. * _.times(2, _.stubFalse);
  3188. * // => [false, false]
  3189. */function stubFalse(){return false;}module.exports=isEmpty;})(lodash_isempty,lodash_isempty.exports);/**
  3190. * lodash (Custom Build) <https://lodash.com/>
  3191. * Build: `lodash modularize exports="npm" -o ./`
  3192. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  3193. * Released under MIT license <https://lodash.com/license>
  3194. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  3195. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  3196. */ /** `Object#toString` result references. */var objectTag='[object Object]';/**
  3197. * Checks if `value` is a host object in IE < 9.
  3198. *
  3199. * @private
  3200. * @param {*} value The value to check.
  3201. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  3202. */function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
  3203. // despite having improperly defined `toString` methods.
  3204. var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
  3205. * Creates a unary function that invokes `func` with its argument transformed.
  3206. *
  3207. * @private
  3208. * @param {Function} func The function to wrap.
  3209. * @param {Function} transform The argument transform.
  3210. * @returns {Function} Returns the new function.
  3211. */function overArg(func,transform){return function(arg){return func(transform(arg));};}/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/**
  3212. * Used to resolve the
  3213. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  3214. * of values.
  3215. */var objectToString=objectProto.toString;/** Built-in value references. */var getPrototype=overArg(Object.getPrototypeOf,Object);/**
  3216. * Checks if `value` is object-like. A value is object-like if it's not `null`
  3217. * and has a `typeof` result of "object".
  3218. *
  3219. * @static
  3220. * @memberOf _
  3221. * @since 4.0.0
  3222. * @category Lang
  3223. * @param {*} value The value to check.
  3224. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  3225. * @example
  3226. *
  3227. * _.isObjectLike({});
  3228. * // => true
  3229. *
  3230. * _.isObjectLike([1, 2, 3]);
  3231. * // => true
  3232. *
  3233. * _.isObjectLike(_.noop);
  3234. * // => false
  3235. *
  3236. * _.isObjectLike(null);
  3237. * // => false
  3238. */function isObjectLike(value){return!!value&&_typeof2(value)=='object';}/**
  3239. * Checks if `value` is a plain object, that is, an object created by the
  3240. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  3241. *
  3242. * @static
  3243. * @memberOf _
  3244. * @since 0.8.0
  3245. * @category Lang
  3246. * @param {*} value The value to check.
  3247. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  3248. * @example
  3249. *
  3250. * function Foo() {
  3251. * this.a = 1;
  3252. * }
  3253. *
  3254. * _.isPlainObject(new Foo);
  3255. * // => false
  3256. *
  3257. * _.isPlainObject([1, 2, 3]);
  3258. * // => false
  3259. *
  3260. * _.isPlainObject({ 'x': 0, 'y': 0 });
  3261. * // => true
  3262. *
  3263. * _.isPlainObject(Object.create(null));
  3264. * // => true
  3265. */function isPlainObject$1(value){if(!isObjectLike(value)||objectToString.call(value)!=objectTag||isHostObject(value)){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}var lodash_isplainobject=isPlainObject$1;var lodash_transform={exports:{}};/**
  3266. * lodash (Custom Build) <https://lodash.com/>
  3267. * Build: `lodash modularize exports="npm" -o ./`
  3268. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  3269. * Released under MIT license <https://lodash.com/license>
  3270. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  3271. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  3272. */(function(module,exports$1){/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Used as the `TypeError` message for "Functions" methods. */var FUNC_ERROR_TEXT='Expected a function';/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used to compose bitmasks for comparison styles. */var UNORDERED_COMPARE_FLAG=1,PARTIAL_COMPARE_FLAG=2;/** Used as references for various `Number` constants. */var INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',objectTag='[object Object]',promiseTag='[object Promise]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/**
  3273. * Used to match `RegExp`
  3274. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  3275. */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to match backslashes in property paths. */var reEscapeChar=/\\(\\)?/g;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof2(commonjsGlobal)=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=exports$1&&!exports$1.nodeType&&exports$1;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{return freeProcess&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/**
  3276. * A specialized version of `_.forEach` for arrays without support for
  3277. * iteratee shorthands.
  3278. *
  3279. * @private
  3280. * @param {Array} [array] The array to iterate over.
  3281. * @param {Function} iteratee The function invoked per iteration.
  3282. * @returns {Array} Returns `array`.
  3283. */function arrayEach(array,iteratee){var index=-1,length=array?array.length:0;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}/**
  3284. * A specialized version of `_.some` for arrays without support for iteratee
  3285. * shorthands.
  3286. *
  3287. * @private
  3288. * @param {Array} [array] The array to iterate over.
  3289. * @param {Function} predicate The function invoked per iteration.
  3290. * @returns {boolean} Returns `true` if any element passes the predicate check,
  3291. * else `false`.
  3292. */function arraySome(array,predicate){var index=-1,length=array?array.length:0;while(++index<length){if(predicate(array[index],index,array)){return true;}}return false;}/**
  3293. * The base implementation of `_.property` without support for deep paths.
  3294. *
  3295. * @private
  3296. * @param {string} key The key of the property to get.
  3297. * @returns {Function} Returns the new accessor function.
  3298. */function baseProperty(key){return function(object){return object==null?undefined:object[key];};}/**
  3299. * The base implementation of `_.times` without support for iteratee shorthands
  3300. * or max array length checks.
  3301. *
  3302. * @private
  3303. * @param {number} n The number of times to invoke `iteratee`.
  3304. * @param {Function} iteratee The function invoked per iteration.
  3305. * @returns {Array} Returns the array of results.
  3306. */function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
  3307. * The base implementation of `_.unary` without support for storing metadata.
  3308. *
  3309. * @private
  3310. * @param {Function} func The function to cap arguments for.
  3311. * @returns {Function} Returns the new capped function.
  3312. */function baseUnary(func){return function(value){return func(value);};}/**
  3313. * Gets the value at `key` of `object`.
  3314. *
  3315. * @private
  3316. * @param {Object} [object] The object to query.
  3317. * @param {string} key The key of the property to get.
  3318. * @returns {*} Returns the property value.
  3319. */function getValue(object,key){return object==null?undefined:object[key];}/**
  3320. * Checks if `value` is a host object in IE < 9.
  3321. *
  3322. * @private
  3323. * @param {*} value The value to check.
  3324. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  3325. */function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
  3326. // despite having improperly defined `toString` methods.
  3327. var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
  3328. * Converts `map` to its key-value pairs.
  3329. *
  3330. * @private
  3331. * @param {Object} map The map to convert.
  3332. * @returns {Array} Returns the key-value pairs.
  3333. */function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/**
  3334. * Creates a unary function that invokes `func` with its argument transformed.
  3335. *
  3336. * @private
  3337. * @param {Function} func The function to wrap.
  3338. * @param {Function} transform The argument transform.
  3339. * @returns {Function} Returns the new function.
  3340. */function overArg(func,transform){return function(arg){return func(transform(arg));};}/**
  3341. * Converts `set` to an array of its values.
  3342. *
  3343. * @private
  3344. * @param {Object} set The set to convert.
  3345. * @returns {Array} Returns the values.
  3346. */function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value;});return result;}/** Used for built-in method references. */var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=root['__core-js_shared__'];/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
  3347. * Used to resolve the
  3348. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  3349. * of values.
  3350. */var objectToString=objectProto.toString;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var _Symbol=root.Symbol,Uint8Array=root.Uint8Array,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeKeys=overArg(Object.keys,Object);/* Built-in method references that are verified to be native. */var DataView=getNative(root,'DataView'),Map=getNative(root,'Map'),Promise=getNative(root,'Promise'),Set=getNative(root,'Set'),WeakMap=getNative(root,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;/**
  3351. * Creates a hash object.
  3352. *
  3353. * @private
  3354. * @constructor
  3355. * @param {Array} [entries] The key-value pairs to cache.
  3356. */function Hash(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
  3357. * Removes all key-value entries from the hash.
  3358. *
  3359. * @private
  3360. * @name clear
  3361. * @memberOf Hash
  3362. */function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};}/**
  3363. * Removes `key` and its value from the hash.
  3364. *
  3365. * @private
  3366. * @name delete
  3367. * @memberOf Hash
  3368. * @param {Object} hash The hash to modify.
  3369. * @param {string} key The key of the value to remove.
  3370. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  3371. */function hashDelete(key){return this.has(key)&&delete this.__data__[key];}/**
  3372. * Gets the hash value for `key`.
  3373. *
  3374. * @private
  3375. * @name get
  3376. * @memberOf Hash
  3377. * @param {string} key The key of the value to get.
  3378. * @returns {*} Returns the entry value.
  3379. */function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}/**
  3380. * Checks if a hash value for `key` exists.
  3381. *
  3382. * @private
  3383. * @name has
  3384. * @memberOf Hash
  3385. * @param {string} key The key of the entry to check.
  3386. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  3387. */function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
  3388. * Sets the hash `key` to `value`.
  3389. *
  3390. * @private
  3391. * @name set
  3392. * @memberOf Hash
  3393. * @param {string} key The key of the value to set.
  3394. * @param {*} value The value to set.
  3395. * @returns {Object} Returns the hash instance.
  3396. */function hashSet(key,value){var data=this.__data__;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
  3397. Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/**
  3398. * Creates an list cache object.
  3399. *
  3400. * @private
  3401. * @constructor
  3402. * @param {Array} [entries] The key-value pairs to cache.
  3403. */function ListCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
  3404. * Removes all key-value entries from the list cache.
  3405. *
  3406. * @private
  3407. * @name clear
  3408. * @memberOf ListCache
  3409. */function listCacheClear(){this.__data__=[];}/**
  3410. * Removes `key` and its value from the list cache.
  3411. *
  3412. * @private
  3413. * @name delete
  3414. * @memberOf ListCache
  3415. * @param {string} key The key of the value to remove.
  3416. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  3417. */function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}return true;}/**
  3418. * Gets the list cache value for `key`.
  3419. *
  3420. * @private
  3421. * @name get
  3422. * @memberOf ListCache
  3423. * @param {string} key The key of the value to get.
  3424. * @returns {*} Returns the entry value.
  3425. */function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
  3426. * Checks if a list cache value for `key` exists.
  3427. *
  3428. * @private
  3429. * @name has
  3430. * @memberOf ListCache
  3431. * @param {string} key The key of the entry to check.
  3432. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  3433. */function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
  3434. * Sets the list cache `key` to `value`.
  3435. *
  3436. * @private
  3437. * @name set
  3438. * @memberOf ListCache
  3439. * @param {string} key The key of the value to set.
  3440. * @param {*} value The value to set.
  3441. * @returns {Object} Returns the list cache instance.
  3442. */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value]);}else{data[index][1]=value;}return this;}// Add methods to `ListCache`.
  3443. ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/**
  3444. * Creates a map cache object to store key-value pairs.
  3445. *
  3446. * @private
  3447. * @constructor
  3448. * @param {Array} [entries] The key-value pairs to cache.
  3449. */function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
  3450. * Removes all key-value entries from the map.
  3451. *
  3452. * @private
  3453. * @name clear
  3454. * @memberOf MapCache
  3455. */function mapCacheClear(){this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
  3456. * Removes `key` and its value from the map.
  3457. *
  3458. * @private
  3459. * @name delete
  3460. * @memberOf MapCache
  3461. * @param {string} key The key of the value to remove.
  3462. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  3463. */function mapCacheDelete(key){return getMapData(this,key)['delete'](key);}/**
  3464. * Gets the map value for `key`.
  3465. *
  3466. * @private
  3467. * @name get
  3468. * @memberOf MapCache
  3469. * @param {string} key The key of the value to get.
  3470. * @returns {*} Returns the entry value.
  3471. */function mapCacheGet(key){return getMapData(this,key).get(key);}/**
  3472. * Checks if a map value for `key` exists.
  3473. *
  3474. * @private
  3475. * @name has
  3476. * @memberOf MapCache
  3477. * @param {string} key The key of the entry to check.
  3478. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  3479. */function mapCacheHas(key){return getMapData(this,key).has(key);}/**
  3480. * Sets the map `key` to `value`.
  3481. *
  3482. * @private
  3483. * @name set
  3484. * @memberOf MapCache
  3485. * @param {string} key The key of the value to set.
  3486. * @param {*} value The value to set.
  3487. * @returns {Object} Returns the map cache instance.
  3488. */function mapCacheSet(key,value){getMapData(this,key).set(key,value);return this;}// Add methods to `MapCache`.
  3489. MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/**
  3490. *
  3491. * Creates an array cache object to store unique values.
  3492. *
  3493. * @private
  3494. * @constructor
  3495. * @param {Array} [values] The values to cache.
  3496. */function SetCache(values){var index=-1,length=values?values.length:0;this.__data__=new MapCache();while(++index<length){this.add(values[index]);}}/**
  3497. * Adds `value` to the array cache.
  3498. *
  3499. * @private
  3500. * @name add
  3501. * @memberOf SetCache
  3502. * @alias push
  3503. * @param {*} value The value to cache.
  3504. * @returns {Object} Returns the cache instance.
  3505. */function setCacheAdd(value){this.__data__.set(value,HASH_UNDEFINED);return this;}/**
  3506. * Checks if `value` is in the array cache.
  3507. *
  3508. * @private
  3509. * @name has
  3510. * @memberOf SetCache
  3511. * @param {*} value The value to search for.
  3512. * @returns {number} Returns `true` if `value` is found, else `false`.
  3513. */function setCacheHas(value){return this.__data__.has(value);}// Add methods to `SetCache`.
  3514. SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;/**
  3515. * Creates a stack cache object to store key-value pairs.
  3516. *
  3517. * @private
  3518. * @constructor
  3519. * @param {Array} [entries] The key-value pairs to cache.
  3520. */function Stack(entries){this.__data__=new ListCache(entries);}/**
  3521. * Removes all key-value entries from the stack.
  3522. *
  3523. * @private
  3524. * @name clear
  3525. * @memberOf Stack
  3526. */function stackClear(){this.__data__=new ListCache();}/**
  3527. * Removes `key` and its value from the stack.
  3528. *
  3529. * @private
  3530. * @name delete
  3531. * @memberOf Stack
  3532. * @param {string} key The key of the value to remove.
  3533. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  3534. */function stackDelete(key){return this.__data__['delete'](key);}/**
  3535. * Gets the stack value for `key`.
  3536. *
  3537. * @private
  3538. * @name get
  3539. * @memberOf Stack
  3540. * @param {string} key The key of the value to get.
  3541. * @returns {*} Returns the entry value.
  3542. */function stackGet(key){return this.__data__.get(key);}/**
  3543. * Checks if a stack value for `key` exists.
  3544. *
  3545. * @private
  3546. * @name has
  3547. * @memberOf Stack
  3548. * @param {string} key The key of the entry to check.
  3549. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  3550. */function stackHas(key){return this.__data__.has(key);}/**
  3551. * Sets the stack `key` to `value`.
  3552. *
  3553. * @private
  3554. * @name set
  3555. * @memberOf Stack
  3556. * @param {string} key The key of the value to set.
  3557. * @param {*} value The value to set.
  3558. * @returns {Object} Returns the stack cache instance.
  3559. */function stackSet(key,value){var cache=this.__data__;if(cache instanceof ListCache){var pairs=cache.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);return this;}cache=this.__data__=new MapCache(pairs);}cache.set(key,value);return this;}// Add methods to `Stack`.
  3560. Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/**
  3561. * Creates an array of the enumerable property names of the array-like `value`.
  3562. *
  3563. * @private
  3564. * @param {*} value The value to query.
  3565. * @param {boolean} inherited Specify returning inherited property names.
  3566. * @returns {Array} Returns the array of property names.
  3567. */function arrayLikeKeys(value,inherited){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  3568. // Safari 9 makes `arguments.length` enumerable in strict mode.
  3569. var result=isArray(value)||isArguments(value)?baseTimes(value.length,String):[];var length=result.length,skipIndexes=!!length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key=='length'||isIndex(key,length)))){result.push(key);}}return result;}/**
  3570. * Gets the index at which the `key` is found in `array` of key-value pairs.
  3571. *
  3572. * @private
  3573. * @param {Array} array The array to inspect.
  3574. * @param {*} key The key to search for.
  3575. * @returns {number} Returns the index of the matched value, else `-1`.
  3576. */function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}/**
  3577. * The base implementation of `_.create` without support for assigning
  3578. * properties to the created object.
  3579. *
  3580. * @private
  3581. * @param {Object} prototype The object to inherit from.
  3582. * @returns {Object} Returns the new object.
  3583. */function baseCreate(proto){return isObject(proto)?objectCreate(proto):{};}/**
  3584. * The base implementation of `baseForOwn` which iterates over `object`
  3585. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  3586. * Iteratee functions may exit iteration early by explicitly returning `false`.
  3587. *
  3588. * @private
  3589. * @param {Object} object The object to iterate over.
  3590. * @param {Function} iteratee The function invoked per iteration.
  3591. * @param {Function} keysFunc The function to get the keys of `object`.
  3592. * @returns {Object} Returns `object`.
  3593. */var baseFor=createBaseFor();/**
  3594. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  3595. *
  3596. * @private
  3597. * @param {Object} object The object to iterate over.
  3598. * @param {Function} iteratee The function invoked per iteration.
  3599. * @returns {Object} Returns `object`.
  3600. */function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys);}/**
  3601. * The base implementation of `_.get` without support for default values.
  3602. *
  3603. * @private
  3604. * @param {Object} object The object to query.
  3605. * @param {Array|string} path The path of the property to get.
  3606. * @returns {*} Returns the resolved value.
  3607. */function baseGet(object,path){path=isKey(path,object)?[path]:castPath(path);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])];}return index&&index==length?object:undefined;}/**
  3608. * The base implementation of `getTag`.
  3609. *
  3610. * @private
  3611. * @param {*} value The value to query.
  3612. * @returns {string} Returns the `toStringTag`.
  3613. */function baseGetTag(value){return objectToString.call(value);}/**
  3614. * The base implementation of `_.hasIn` without support for deep paths.
  3615. *
  3616. * @private
  3617. * @param {Object} [object] The object to query.
  3618. * @param {Array|string} key The key to check.
  3619. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  3620. */function baseHasIn(object,key){return object!=null&&key in Object(object);}/**
  3621. * The base implementation of `_.isEqual` which supports partial comparisons
  3622. * and tracks traversed objects.
  3623. *
  3624. * @private
  3625. * @param {*} value The value to compare.
  3626. * @param {*} other The other value to compare.
  3627. * @param {Function} [customizer] The function to customize comparisons.
  3628. * @param {boolean} [bitmask] The bitmask of comparison flags.
  3629. * The bitmask may be composed of the following flags:
  3630. * 1 - Unordered comparison
  3631. * 2 - Partial comparison
  3632. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  3633. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  3634. */function baseIsEqual(value,other,customizer,bitmask,stack){if(value===other){return true;}if(value==null||other==null||!isObject(value)&&!isObjectLike(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,baseIsEqual,customizer,bitmask,stack);}/**
  3635. * A specialized version of `baseIsEqual` for arrays and objects which performs
  3636. * deep comparisons and tracks traversed objects enabling objects with circular
  3637. * references to be compared.
  3638. *
  3639. * @private
  3640. * @param {Object} object The object to compare.
  3641. * @param {Object} other The other object to compare.
  3642. * @param {Function} equalFunc The function to determine equivalents of values.
  3643. * @param {Function} [customizer] The function to customize comparisons.
  3644. * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
  3645. * for more details.
  3646. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  3647. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  3648. */function baseIsEqualDeep(object,other,equalFunc,customizer,bitmask,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;if(!objIsArr){objTag=getTag(object);objTag=objTag==argsTag?objectTag:objTag;}if(!othIsArr){othTag=getTag(other);othTag=othTag==argsTag?objectTag:othTag;}var objIsObj=objTag==objectTag&&!isHostObject(object),othIsObj=othTag==objectTag&&!isHostObject(other),isSameTag=objTag==othTag;if(isSameTag&&!objIsObj){stack||(stack=new Stack());return objIsArr||isTypedArray(object)?equalArrays(object,other,equalFunc,customizer,bitmask,stack):equalByTag(object,other,objTag,equalFunc,customizer,bitmask,stack);}if(!(bitmask&PARTIAL_COMPARE_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,'__wrapped__'),othIsWrapped=othIsObj&&hasOwnProperty.call(other,'__wrapped__');if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack());return equalFunc(objUnwrapped,othUnwrapped,customizer,bitmask,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack());return equalObjects(object,other,equalFunc,customizer,bitmask,stack);}/**
  3649. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  3650. *
  3651. * @private
  3652. * @param {Object} object The object to inspect.
  3653. * @param {Object} source The object of property values to match.
  3654. * @param {Array} matchData The property names, values, and compare flags to match.
  3655. * @param {Function} [customizer] The function to customize comparisons.
  3656. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  3657. */function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return!length;}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined&&!(key in object)){return false;}}else{var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===undefined?baseIsEqual(srcValue,objValue,customizer,UNORDERED_COMPARE_FLAG|PARTIAL_COMPARE_FLAG,stack):result)){return false;}}}return true;}/**
  3658. * The base implementation of `_.isNative` without bad shim checks.
  3659. *
  3660. * @private
  3661. * @param {*} value The value to check.
  3662. * @returns {boolean} Returns `true` if `value` is a native function,
  3663. * else `false`.
  3664. */function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
  3665. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  3666. *
  3667. * @private
  3668. * @param {*} value The value to check.
  3669. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  3670. */function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objectToString.call(value)];}/**
  3671. * The base implementation of `_.iteratee`.
  3672. *
  3673. * @private
  3674. * @param {*} [value=_.identity] The value to convert to an iteratee.
  3675. * @returns {Function} Returns the iteratee.
  3676. */function baseIteratee(value){// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  3677. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  3678. if(typeof value=='function'){return value;}if(value==null){return identity;}if(_typeof2(value)=='object'){return isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}/**
  3679. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  3680. *
  3681. * @private
  3682. * @param {Object} object The object to query.
  3683. * @returns {Array} Returns the array of property names.
  3684. */function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!='constructor'){result.push(key);}}return result;}/**
  3685. * The base implementation of `_.matches` which doesn't clone `source`.
  3686. *
  3687. * @private
  3688. * @param {Object} source The object of property values to match.
  3689. * @returns {Function} Returns the new spec function.
  3690. */function baseMatches(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch(object,source,matchData);};}/**
  3691. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  3692. *
  3693. * @private
  3694. * @param {string} path The path of the property to get.
  3695. * @param {*} srcValue The value to match.
  3696. * @returns {Function} Returns the new spec function.
  3697. */function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue);}return function(object){var objValue=get(object,path);return objValue===undefined&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,undefined,UNORDERED_COMPARE_FLAG|PARTIAL_COMPARE_FLAG);};}/**
  3698. * A specialized version of `baseProperty` which supports deep paths.
  3699. *
  3700. * @private
  3701. * @param {Array|string} path The path of the property to get.
  3702. * @returns {Function} Returns the new accessor function.
  3703. */function basePropertyDeep(path){return function(object){return baseGet(object,path);};}/**
  3704. * The base implementation of `_.toString` which doesn't convert nullish
  3705. * values to empty strings.
  3706. *
  3707. * @private
  3708. * @param {*} value The value to process.
  3709. * @returns {string} Returns the string.
  3710. */function baseToString(value){// Exit early for strings to avoid a performance hit in some environments.
  3711. if(typeof value=='string'){return value;}if(isSymbol(value)){return symbolToString?symbolToString.call(value):'';}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}/**
  3712. * Casts `value` to a path array if it's not one.
  3713. *
  3714. * @private
  3715. * @param {*} value The value to inspect.
  3716. * @returns {Array} Returns the cast property path array.
  3717. */function castPath(value){return isArray(value)?value:stringToPath(value);}/**
  3718. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  3719. *
  3720. * @private
  3721. * @param {boolean} [fromRight] Specify iterating from right to left.
  3722. * @returns {Function} Returns the new base function.
  3723. */function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;while(length--){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}/**
  3724. * A specialized version of `baseIsEqualDeep` for arrays with support for
  3725. * partial deep comparisons.
  3726. *
  3727. * @private
  3728. * @param {Array} array The array to compare.
  3729. * @param {Array} other The other array to compare.
  3730. * @param {Function} equalFunc The function to determine equivalents of values.
  3731. * @param {Function} customizer The function to customize comparisons.
  3732. * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
  3733. * for more details.
  3734. * @param {Object} stack Tracks traversed `array` and `other` objects.
  3735. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  3736. */function equalArrays(array,other,equalFunc,customizer,bitmask,stack){var isPartial=bitmask&PARTIAL_COMPARE_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}// Assume cyclic values are equal.
  3737. var stacked=stack.get(array);if(stacked&&stack.get(other)){return stacked==other;}var index=-1,result=true,seen=bitmask&UNORDERED_COMPARE_FLAG?new SetCache():undefined;stack.set(array,other);stack.set(other,array);// Ignore non-index properties.
  3738. while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);}if(compared!==undefined){if(compared){continue;}result=false;break;}// Recursively compare arrays (susceptible to call stack limits).
  3739. if(seen){if(!arraySome(other,function(othValue,othIndex){if(!seen.has(othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,customizer,bitmask,stack))){return seen.add(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,customizer,bitmask,stack))){result=false;break;}}stack['delete'](array);stack['delete'](other);return result;}/**
  3740. * A specialized version of `baseIsEqualDeep` for comparing objects of
  3741. * the same `toStringTag`.
  3742. *
  3743. * **Note:** This function only supports comparing values with tags of
  3744. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  3745. *
  3746. * @private
  3747. * @param {Object} object The object to compare.
  3748. * @param {Object} other The other object to compare.
  3749. * @param {string} tag The `toStringTag` of the objects to compare.
  3750. * @param {Function} equalFunc The function to determine equivalents of values.
  3751. * @param {Function} customizer The function to customize comparisons.
  3752. * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
  3753. * for more details.
  3754. * @param {Object} stack Tracks traversed `object` and `other` objects.
  3755. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  3756. */function equalByTag(object,other,tag,equalFunc,customizer,bitmask,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other))){return false;}return true;case boolTag:case dateTag:case numberTag:// Coerce booleans to `1` or `0` and dates to milliseconds.
  3757. // Invalid dates are coerced to `NaN`.
  3758. return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:// Coerce regexes to strings and treat strings, primitives and objects,
  3759. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  3760. // for more details.
  3761. return object==other+'';case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&PARTIAL_COMPARE_FLAG;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}// Assume cyclic values are equal.
  3762. var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=UNORDERED_COMPARE_FLAG;// Recursively compare objects (susceptible to call stack limits).
  3763. stack.set(object,other);var result=equalArrays(convert(object),convert(other),equalFunc,customizer,bitmask,stack);stack['delete'](object);return result;case symbolTag:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}/**
  3764. * A specialized version of `baseIsEqualDeep` for objects with support for
  3765. * partial deep comparisons.
  3766. *
  3767. * @private
  3768. * @param {Object} object The object to compare.
  3769. * @param {Object} other The other object to compare.
  3770. * @param {Function} equalFunc The function to determine equivalents of values.
  3771. * @param {Function} customizer The function to customize comparisons.
  3772. * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
  3773. * for more details.
  3774. * @param {Object} stack Tracks traversed `object` and `other` objects.
  3775. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  3776. */function equalObjects(object,other,equalFunc,customizer,bitmask,stack){var isPartial=bitmask&PARTIAL_COMPARE_FLAG,objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index=objLength;while(index--){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key))){return false;}}// Assume cyclic values are equal.
  3777. var stacked=stack.get(object);if(stacked&&stack.get(other)){return stacked==other;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index<objLength){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}// Recursively compare objects (susceptible to call stack limits).
  3778. if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,customizer,bitmask,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=='constructor');}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;// Non `Object` object instances with different constructors are not equal.
  3779. if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof objCtor=='function'&&objCtor instanceof objCtor&&typeof othCtor=='function'&&othCtor instanceof othCtor)){result=false;}}stack['delete'](object);stack['delete'](other);return result;}/**
  3780. * Gets the data for `map`.
  3781. *
  3782. * @private
  3783. * @param {Object} map The map to query.
  3784. * @param {string} key The reference key.
  3785. * @returns {*} Returns the map data.
  3786. */function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}/**
  3787. * Gets the property names, values, and compare flags of `object`.
  3788. *
  3789. * @private
  3790. * @param {Object} object The object to query.
  3791. * @returns {Array} Returns the match data of `object`.
  3792. */function getMatchData(object){var result=keys(object),length=result.length;while(length--){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)];}return result;}/**
  3793. * Gets the native function at `key` of `object`.
  3794. *
  3795. * @private
  3796. * @param {Object} object The object to query.
  3797. * @param {string} key The key of the method to get.
  3798. * @returns {*} Returns the function if it's native, else `undefined`.
  3799. */function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
  3800. * Gets the `toStringTag` of `value`.
  3801. *
  3802. * @private
  3803. * @param {*} value The value to query.
  3804. * @returns {string} Returns the `toStringTag`.
  3805. */var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11,
  3806. // for data views in Edge < 14, and promises in Node.js.
  3807. if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function getTag(value){var result=objectToString.call(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):undefined;if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
  3808. * Checks if `path` exists on `object`.
  3809. *
  3810. * @private
  3811. * @param {Object} object The object to query.
  3812. * @param {Array|string} path The path to check.
  3813. * @param {Function} hasFunc The function to check properties.
  3814. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  3815. */function hasPath(object,path,hasFunc){path=isKey(path,object)?[path]:castPath(path);var result,index=-1,length=path.length;while(++index<length){var key=toKey(path[index]);if(!(result=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result){return result;}var length=object?object.length:0;return!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object));}/**
  3816. * Checks if `value` is a valid array-like index.
  3817. *
  3818. * @private
  3819. * @param {*} value The value to check.
  3820. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  3821. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  3822. */function isIndex(value,length){length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(typeof value=='number'||reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}/**
  3823. * Checks if `value` is a property name and not a property path.
  3824. *
  3825. * @private
  3826. * @param {*} value The value to check.
  3827. * @param {Object} [object] The object to query keys on.
  3828. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  3829. */function isKey(value,object){if(isArray(value)){return false;}var type=_typeof2(value);if(type=='number'||type=='symbol'||type=='boolean'||value==null||isSymbol(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object);}/**
  3830. * Checks if `value` is suitable for use as unique object key.
  3831. *
  3832. * @private
  3833. * @param {*} value The value to check.
  3834. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  3835. */function isKeyable(value){var type=_typeof2(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}/**
  3836. * Checks if `func` has its source masked.
  3837. *
  3838. * @private
  3839. * @param {Function} func The function to check.
  3840. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  3841. */function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/**
  3842. * Checks if `value` is likely a prototype object.
  3843. *
  3844. * @private
  3845. * @param {*} value The value to check.
  3846. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  3847. */function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
  3848. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  3849. *
  3850. * @private
  3851. * @param {*} value The value to check.
  3852. * @returns {boolean} Returns `true` if `value` if suitable for strict
  3853. * equality comparisons, else `false`.
  3854. */function isStrictComparable(value){return value===value&&!isObject(value);}/**
  3855. * A specialized version of `matchesProperty` for source values suitable
  3856. * for strict equality comparisons, i.e. `===`.
  3857. *
  3858. * @private
  3859. * @param {string} key The key of the property to get.
  3860. * @param {*} srcValue The value to match.
  3861. * @returns {Function} Returns the new spec function.
  3862. */function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined||key in Object(object));};}/**
  3863. * Converts `string` to a property path array.
  3864. *
  3865. * @private
  3866. * @param {string} string The string to convert.
  3867. * @returns {Array} Returns the property path array.
  3868. */var stringToPath=memoize(function(string){string=toString(string);var result=[];if(reLeadingDot.test(string)){result.push('');}string.replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,'$1'):number||match);});return result;});/**
  3869. * Converts `value` to a string key if it's not a string or symbol.
  3870. *
  3871. * @private
  3872. * @param {*} value The value to inspect.
  3873. * @returns {string|symbol} Returns the key.
  3874. */function toKey(value){if(typeof value=='string'||isSymbol(value)){return value;}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}/**
  3875. * Converts `func` to its source code.
  3876. *
  3877. * @private
  3878. * @param {Function} func The function to process.
  3879. * @returns {string} Returns the source code.
  3880. */function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}/**
  3881. * Creates a function that memoizes the result of `func`. If `resolver` is
  3882. * provided, it determines the cache key for storing the result based on the
  3883. * arguments provided to the memoized function. By default, the first argument
  3884. * provided to the memoized function is used as the map cache key. The `func`
  3885. * is invoked with the `this` binding of the memoized function.
  3886. *
  3887. * **Note:** The cache is exposed as the `cache` property on the memoized
  3888. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  3889. * constructor with one whose instances implement the
  3890. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  3891. * method interface of `delete`, `get`, `has`, and `set`.
  3892. *
  3893. * @static
  3894. * @memberOf _
  3895. * @since 0.1.0
  3896. * @category Function
  3897. * @param {Function} func The function to have its output memoized.
  3898. * @param {Function} [resolver] The function to resolve the cache key.
  3899. * @returns {Function} Returns the new memoized function.
  3900. * @example
  3901. *
  3902. * var object = { 'a': 1, 'b': 2 };
  3903. * var other = { 'c': 3, 'd': 4 };
  3904. *
  3905. * var values = _.memoize(_.values);
  3906. * values(object);
  3907. * // => [1, 2]
  3908. *
  3909. * values(other);
  3910. * // => [3, 4]
  3911. *
  3912. * object.a = 2;
  3913. * values(object);
  3914. * // => [1, 2]
  3915. *
  3916. * // Modify the result cache.
  3917. * values.cache.set(object, ['a', 'b']);
  3918. * values(object);
  3919. * // => ['a', 'b']
  3920. *
  3921. * // Replace `_.memoize.Cache`.
  3922. * _.memoize.Cache = WeakMap;
  3923. */function memoize(func,resolver){if(typeof func!='function'||resolver&&typeof resolver!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);memoized.cache=cache.set(key,result);return result;};memoized.cache=new(memoize.Cache||MapCache)();return memoized;}// Assign cache to `_.memoize`.
  3924. memoize.Cache=MapCache;/**
  3925. * Performs a
  3926. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  3927. * comparison between two values to determine if they are equivalent.
  3928. *
  3929. * @static
  3930. * @memberOf _
  3931. * @since 4.0.0
  3932. * @category Lang
  3933. * @param {*} value The value to compare.
  3934. * @param {*} other The other value to compare.
  3935. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  3936. * @example
  3937. *
  3938. * var object = { 'a': 1 };
  3939. * var other = { 'a': 1 };
  3940. *
  3941. * _.eq(object, object);
  3942. * // => true
  3943. *
  3944. * _.eq(object, other);
  3945. * // => false
  3946. *
  3947. * _.eq('a', 'a');
  3948. * // => true
  3949. *
  3950. * _.eq('a', Object('a'));
  3951. * // => false
  3952. *
  3953. * _.eq(NaN, NaN);
  3954. * // => true
  3955. */function eq(value,other){return value===other||value!==value&&other!==other;}/**
  3956. * Checks if `value` is likely an `arguments` object.
  3957. *
  3958. * @static
  3959. * @memberOf _
  3960. * @since 0.1.0
  3961. * @category Lang
  3962. * @param {*} value The value to check.
  3963. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  3964. * else `false`.
  3965. * @example
  3966. *
  3967. * _.isArguments(function() { return arguments; }());
  3968. * // => true
  3969. *
  3970. * _.isArguments([1, 2, 3]);
  3971. * // => false
  3972. */function isArguments(value){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  3973. return isArrayLikeObject(value)&&hasOwnProperty.call(value,'callee')&&(!propertyIsEnumerable.call(value,'callee')||objectToString.call(value)==argsTag);}/**
  3974. * Checks if `value` is classified as an `Array` object.
  3975. *
  3976. * @static
  3977. * @memberOf _
  3978. * @since 0.1.0
  3979. * @category Lang
  3980. * @param {*} value The value to check.
  3981. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  3982. * @example
  3983. *
  3984. * _.isArray([1, 2, 3]);
  3985. * // => true
  3986. *
  3987. * _.isArray(document.body.children);
  3988. * // => false
  3989. *
  3990. * _.isArray('abc');
  3991. * // => false
  3992. *
  3993. * _.isArray(_.noop);
  3994. * // => false
  3995. */var isArray=Array.isArray;/**
  3996. * Checks if `value` is array-like. A value is considered array-like if it's
  3997. * not a function and has a `value.length` that's an integer greater than or
  3998. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  3999. *
  4000. * @static
  4001. * @memberOf _
  4002. * @since 4.0.0
  4003. * @category Lang
  4004. * @param {*} value The value to check.
  4005. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  4006. * @example
  4007. *
  4008. * _.isArrayLike([1, 2, 3]);
  4009. * // => true
  4010. *
  4011. * _.isArrayLike(document.body.children);
  4012. * // => true
  4013. *
  4014. * _.isArrayLike('abc');
  4015. * // => true
  4016. *
  4017. * _.isArrayLike(_.noop);
  4018. * // => false
  4019. */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/**
  4020. * This method is like `_.isArrayLike` except that it also checks if `value`
  4021. * is an object.
  4022. *
  4023. * @static
  4024. * @memberOf _
  4025. * @since 4.0.0
  4026. * @category Lang
  4027. * @param {*} value The value to check.
  4028. * @returns {boolean} Returns `true` if `value` is an array-like object,
  4029. * else `false`.
  4030. * @example
  4031. *
  4032. * _.isArrayLikeObject([1, 2, 3]);
  4033. * // => true
  4034. *
  4035. * _.isArrayLikeObject(document.body.children);
  4036. * // => true
  4037. *
  4038. * _.isArrayLikeObject('abc');
  4039. * // => false
  4040. *
  4041. * _.isArrayLikeObject(_.noop);
  4042. * // => false
  4043. */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/**
  4044. * Checks if `value` is classified as a `Function` object.
  4045. *
  4046. * @static
  4047. * @memberOf _
  4048. * @since 0.1.0
  4049. * @category Lang
  4050. * @param {*} value The value to check.
  4051. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  4052. * @example
  4053. *
  4054. * _.isFunction(_);
  4055. * // => true
  4056. *
  4057. * _.isFunction(/abc/);
  4058. * // => false
  4059. */function isFunction(value){// The use of `Object#toString` avoids issues with the `typeof` operator
  4060. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  4061. var tag=isObject(value)?objectToString.call(value):'';return tag==funcTag||tag==genTag;}/**
  4062. * Checks if `value` is a valid array-like length.
  4063. *
  4064. * **Note:** This method is loosely based on
  4065. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  4066. *
  4067. * @static
  4068. * @memberOf _
  4069. * @since 4.0.0
  4070. * @category Lang
  4071. * @param {*} value The value to check.
  4072. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  4073. * @example
  4074. *
  4075. * _.isLength(3);
  4076. * // => true
  4077. *
  4078. * _.isLength(Number.MIN_VALUE);
  4079. * // => false
  4080. *
  4081. * _.isLength(Infinity);
  4082. * // => false
  4083. *
  4084. * _.isLength('3');
  4085. * // => false
  4086. */function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
  4087. * Checks if `value` is the
  4088. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  4089. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  4090. *
  4091. * @static
  4092. * @memberOf _
  4093. * @since 0.1.0
  4094. * @category Lang
  4095. * @param {*} value The value to check.
  4096. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  4097. * @example
  4098. *
  4099. * _.isObject({});
  4100. * // => true
  4101. *
  4102. * _.isObject([1, 2, 3]);
  4103. * // => true
  4104. *
  4105. * _.isObject(_.noop);
  4106. * // => true
  4107. *
  4108. * _.isObject(null);
  4109. * // => false
  4110. */function isObject(value){var type=_typeof2(value);return!!value&&(type=='object'||type=='function');}/**
  4111. * Checks if `value` is object-like. A value is object-like if it's not `null`
  4112. * and has a `typeof` result of "object".
  4113. *
  4114. * @static
  4115. * @memberOf _
  4116. * @since 4.0.0
  4117. * @category Lang
  4118. * @param {*} value The value to check.
  4119. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  4120. * @example
  4121. *
  4122. * _.isObjectLike({});
  4123. * // => true
  4124. *
  4125. * _.isObjectLike([1, 2, 3]);
  4126. * // => true
  4127. *
  4128. * _.isObjectLike(_.noop);
  4129. * // => false
  4130. *
  4131. * _.isObjectLike(null);
  4132. * // => false
  4133. */function isObjectLike(value){return!!value&&_typeof2(value)=='object';}/**
  4134. * Checks if `value` is classified as a `Symbol` primitive or object.
  4135. *
  4136. * @static
  4137. * @memberOf _
  4138. * @since 4.0.0
  4139. * @category Lang
  4140. * @param {*} value The value to check.
  4141. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  4142. * @example
  4143. *
  4144. * _.isSymbol(Symbol.iterator);
  4145. * // => true
  4146. *
  4147. * _.isSymbol('abc');
  4148. * // => false
  4149. */function isSymbol(value){return _typeof2(value)=='symbol'||isObjectLike(value)&&objectToString.call(value)==symbolTag;}/**
  4150. * Checks if `value` is classified as a typed array.
  4151. *
  4152. * @static
  4153. * @memberOf _
  4154. * @since 3.0.0
  4155. * @category Lang
  4156. * @param {*} value The value to check.
  4157. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  4158. * @example
  4159. *
  4160. * _.isTypedArray(new Uint8Array);
  4161. * // => true
  4162. *
  4163. * _.isTypedArray([]);
  4164. * // => false
  4165. */var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;/**
  4166. * Converts `value` to a string. An empty string is returned for `null`
  4167. * and `undefined` values. The sign of `-0` is preserved.
  4168. *
  4169. * @static
  4170. * @memberOf _
  4171. * @since 4.0.0
  4172. * @category Lang
  4173. * @param {*} value The value to process.
  4174. * @returns {string} Returns the string.
  4175. * @example
  4176. *
  4177. * _.toString(null);
  4178. * // => ''
  4179. *
  4180. * _.toString(-0);
  4181. * // => '-0'
  4182. *
  4183. * _.toString([1, 2, 3]);
  4184. * // => '1,2,3'
  4185. */function toString(value){return value==null?'':baseToString(value);}/**
  4186. * Gets the value at `path` of `object`. If the resolved value is
  4187. * `undefined`, the `defaultValue` is returned in its place.
  4188. *
  4189. * @static
  4190. * @memberOf _
  4191. * @since 3.7.0
  4192. * @category Object
  4193. * @param {Object} object The object to query.
  4194. * @param {Array|string} path The path of the property to get.
  4195. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  4196. * @returns {*} Returns the resolved value.
  4197. * @example
  4198. *
  4199. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  4200. *
  4201. * _.get(object, 'a[0].b.c');
  4202. * // => 3
  4203. *
  4204. * _.get(object, ['a', '0', 'b', 'c']);
  4205. * // => 3
  4206. *
  4207. * _.get(object, 'a.b.c', 'default');
  4208. * // => 'default'
  4209. */function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result;}/**
  4210. * Checks if `path` is a direct or inherited property of `object`.
  4211. *
  4212. * @static
  4213. * @memberOf _
  4214. * @since 4.0.0
  4215. * @category Object
  4216. * @param {Object} object The object to query.
  4217. * @param {Array|string} path The path to check.
  4218. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  4219. * @example
  4220. *
  4221. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  4222. *
  4223. * _.hasIn(object, 'a');
  4224. * // => true
  4225. *
  4226. * _.hasIn(object, 'a.b');
  4227. * // => true
  4228. *
  4229. * _.hasIn(object, ['a', 'b']);
  4230. * // => true
  4231. *
  4232. * _.hasIn(object, 'b');
  4233. * // => false
  4234. */function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn);}/**
  4235. * Creates an array of the own enumerable property names of `object`.
  4236. *
  4237. * **Note:** Non-object values are coerced to objects. See the
  4238. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  4239. * for more details.
  4240. *
  4241. * @static
  4242. * @since 0.1.0
  4243. * @memberOf _
  4244. * @category Object
  4245. * @param {Object} object The object to query.
  4246. * @returns {Array} Returns the array of property names.
  4247. * @example
  4248. *
  4249. * function Foo() {
  4250. * this.a = 1;
  4251. * this.b = 2;
  4252. * }
  4253. *
  4254. * Foo.prototype.c = 3;
  4255. *
  4256. * _.keys(new Foo);
  4257. * // => ['a', 'b'] (iteration order is not guaranteed)
  4258. *
  4259. * _.keys('hi');
  4260. * // => ['0', '1']
  4261. */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/**
  4262. * An alternative to `_.reduce`; this method transforms `object` to a new
  4263. * `accumulator` object which is the result of running each of its own
  4264. * enumerable string keyed properties thru `iteratee`, with each invocation
  4265. * potentially mutating the `accumulator` object. If `accumulator` is not
  4266. * provided, a new object with the same `[[Prototype]]` will be used. The
  4267. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  4268. * Iteratee functions may exit iteration early by explicitly returning `false`.
  4269. *
  4270. * @static
  4271. * @memberOf _
  4272. * @since 1.3.0
  4273. * @category Object
  4274. * @param {Object} object The object to iterate over.
  4275. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  4276. * @param {*} [accumulator] The custom accumulator value.
  4277. * @returns {*} Returns the accumulated value.
  4278. * @example
  4279. *
  4280. * _.transform([2, 3, 4], function(result, n) {
  4281. * result.push(n *= n);
  4282. * return n % 2 == 0;
  4283. * }, []);
  4284. * // => [4, 9]
  4285. *
  4286. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  4287. * (result[value] || (result[value] = [])).push(key);
  4288. * }, {});
  4289. * // => { '1': ['a', 'c'], '2': ['b'] }
  4290. */function transform(object,iteratee,accumulator){var isArr=isArray(object)||isTypedArray(object);iteratee=baseIteratee(iteratee);if(accumulator==null){if(isArr||isObject(object)){var Ctor=object.constructor;if(isArr){accumulator=isArray(object)?new Ctor():[];}else{accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{};}}else{accumulator={};}}(isArr?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object);});return accumulator;}/**
  4291. * This method returns the first argument it receives.
  4292. *
  4293. * @static
  4294. * @since 0.1.0
  4295. * @memberOf _
  4296. * @category Util
  4297. * @param {*} value Any value.
  4298. * @returns {*} Returns `value`.
  4299. * @example
  4300. *
  4301. * var object = { 'a': 1 };
  4302. *
  4303. * console.log(_.identity(object) === object);
  4304. * // => true
  4305. */function identity(value){return value;}/**
  4306. * Creates a function that returns the value at `path` of a given object.
  4307. *
  4308. * @static
  4309. * @memberOf _
  4310. * @since 2.4.0
  4311. * @category Util
  4312. * @param {Array|string} path The path of the property to get.
  4313. * @returns {Function} Returns the new accessor function.
  4314. * @example
  4315. *
  4316. * var objects = [
  4317. * { 'a': { 'b': 2 } },
  4318. * { 'a': { 'b': 1 } }
  4319. * ];
  4320. *
  4321. * _.map(objects, _.property('a.b'));
  4322. * // => [2, 1]
  4323. *
  4324. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  4325. * // => [1, 2]
  4326. */function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path);}module.exports=transform;})(lodash_transform,lodash_transform.exports);/**
  4327. * Module dependencies.
  4328. */var isEmpty=lodash_isempty.exports;var isPlainObject=lodash_isplainobject;var transform=lodash_transform.exports;/**
  4329. * Export `cleanDeep` function.
  4330. */var src=exports('s',function cleanDeep(object){var _ref204=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref204$cleanKeys=_ref204.cleanKeys,cleanKeys=_ref204$cleanKeys===void 0?[]:_ref204$cleanKeys,_ref204$cleanValues=_ref204.cleanValues,cleanValues=_ref204$cleanValues===void 0?[]:_ref204$cleanValues,_ref204$emptyArrays=_ref204.emptyArrays,emptyArrays=_ref204$emptyArrays===void 0?true:_ref204$emptyArrays,_ref204$emptyObjects=_ref204.emptyObjects,emptyObjects=_ref204$emptyObjects===void 0?true:_ref204$emptyObjects,_ref204$emptyStrings=_ref204.emptyStrings,emptyStrings=_ref204$emptyStrings===void 0?true:_ref204$emptyStrings,_ref204$NaNValues=_ref204.NaNValues,NaNValues=_ref204$NaNValues===void 0?false:_ref204$NaNValues,_ref204$nullValues=_ref204.nullValues,nullValues=_ref204$nullValues===void 0?true:_ref204$nullValues,_ref204$undefinedValu=_ref204.undefinedValues,undefinedValues=_ref204$undefinedValu===void 0?true:_ref204$undefinedValu;return transform(object,function(result,value,key){// Exclude specific keys.
  4331. if(cleanKeys.includes(key)){return;}// Recurse into arrays and objects.
  4332. if(Array.isArray(value)||isPlainObject(value)){value=cleanDeep(value,{NaNValues:NaNValues,cleanKeys:cleanKeys,cleanValues:cleanValues,emptyArrays:emptyArrays,emptyObjects:emptyObjects,emptyStrings:emptyStrings,nullValues:nullValues,undefinedValues:undefinedValues});}// Exclude specific values.
  4333. if(cleanValues.includes(value)){return;}// Exclude empty objects.
  4334. if(emptyObjects&&isPlainObject(value)&&isEmpty(value)){return;}// Exclude empty arrays.
  4335. if(emptyArrays&&Array.isArray(value)&&!value.length){return;}// Exclude empty strings.
  4336. if(emptyStrings&&value===''){return;}// Exclude NaN values.
  4337. if(NaNValues&&Number.isNaN(value)){return;}// Exclude null values.
  4338. if(nullValues&&value===null){return;}// Exclude undefined values.
  4339. if(undefinedValues&&value===undefined){return;}// Append when recursing arrays.
  4340. if(Array.isArray(result)){return result.push(value);}result[key]=value;});});var numeral={exports:{}};/*! @preserve
  4341. * numeral.js
  4342. * version : 2.0.6
  4343. * author : Adam Draper
  4344. * license : MIT
  4345. * http://adamwdraper.github.com/Numeral-js/
  4346. */(function(module){(function(global,factory){if(module.exports){module.exports=factory();}else{global.numeral=factory();}})(commonjsGlobal,function(){/************************************
  4347. Variables
  4348. ************************************/var _numeral,_,VERSION='2.0.6',formats={},locales={},defaults={currentLocale:'en',zeroFormat:null,nullFormat:null,defaultFormat:'0,0',scalePercentBy100:true},options={currentLocale:defaults.currentLocale,zeroFormat:defaults.zeroFormat,nullFormat:defaults.nullFormat,defaultFormat:defaults.defaultFormat,scalePercentBy100:defaults.scalePercentBy100};/************************************
  4349. Constructors
  4350. ************************************/ // Numeral prototype object
  4351. function Numeral(input,number){this._input=input;this._value=number;}_numeral=function numeral(input){var value,kind,unformatFunction,regexp;if(_numeral.isNumeral(input)){value=input.value();}else if(input===0||typeof input==='undefined'){value=0;}else if(input===null||_.isNaN(input)){value=null;}else if(typeof input==='string'){if(options.zeroFormat&&input===options.zeroFormat){value=0;}else if(options.nullFormat&&input===options.nullFormat||!input.replace(/[^0-9]+/g,'').length){value=null;}else{for(kind in formats){regexp=typeof formats[kind].regexps.unformat==='function'?formats[kind].regexps.unformat():formats[kind].regexps.unformat;if(regexp&&input.match(regexp)){unformatFunction=formats[kind].unformat;break;}}unformatFunction=unformatFunction||_numeral._.stringToNumber;value=unformatFunction(input);}}else{value=Number(input)||null;}return new Numeral(input,value);};// version number
  4352. _numeral.version=VERSION;// compare numeral object
  4353. _numeral.isNumeral=function(obj){return obj instanceof Numeral;};// helper functions
  4354. _numeral._=_={// formats numbers separators, decimals places, signs, abbreviations
  4355. numberToFormat:function numberToFormat(value,format,roundingFunction){var locale=locales[_numeral.options.currentLocale],negP=false,optDec=false,leadingCount=0,abbr='',trillion=1000000000000,billion=1000000000,million=1000000,thousand=1000,decimal='',neg=false,abbrForce,// force abbreviation
  4356. abs,int,precision,signed,thousands,output;// make sure we never format a null value
  4357. value=value||0;abs=Math.abs(value);// see if we should use parentheses for negative number or if we should prefix with a sign
  4358. // if both are present we default to parentheses
  4359. if(_numeral._.includes(format,'(')){negP=true;format=format.replace(/[\(|\)]/g,'');}else if(_numeral._.includes(format,'+')||_numeral._.includes(format,'-')){signed=_numeral._.includes(format,'+')?format.indexOf('+'):value<0?format.indexOf('-'):-1;format=format.replace(/[\+|\-]/g,'');}// see if abbreviation is wanted
  4360. if(_numeral._.includes(format,'a')){abbrForce=format.match(/a(k|m|b|t)?/);abbrForce=abbrForce?abbrForce[1]:false;// check for space before abbreviation
  4361. if(_numeral._.includes(format,' a')){abbr=' ';}format=format.replace(new RegExp(abbr+'a[kmbt]?'),'');if(abs>=trillion&&!abbrForce||abbrForce==='t'){// trillion
  4362. abbr+=locale.abbreviations.trillion;value=value/trillion;}else if(abs<trillion&&abs>=billion&&!abbrForce||abbrForce==='b'){// billion
  4363. abbr+=locale.abbreviations.billion;value=value/billion;}else if(abs<billion&&abs>=million&&!abbrForce||abbrForce==='m'){// million
  4364. abbr+=locale.abbreviations.million;value=value/million;}else if(abs<million&&abs>=thousand&&!abbrForce||abbrForce==='k'){// thousand
  4365. abbr+=locale.abbreviations.thousand;value=value/thousand;}}// check for optional decimals
  4366. if(_numeral._.includes(format,'[.]')){optDec=true;format=format.replace('[.]','.');}// break number and format
  4367. int=value.toString().split('.')[0];precision=format.split('.')[1];thousands=format.indexOf(',');leadingCount=(format.split('.')[0].split(',')[0].match(/0/g)||[]).length;if(precision){if(_numeral._.includes(precision,'[')){precision=precision.replace(']','');precision=precision.split('[');decimal=_numeral._.toFixed(value,precision[0].length+precision[1].length,roundingFunction,precision[1].length);}else{decimal=_numeral._.toFixed(value,precision.length,roundingFunction);}int=decimal.split('.')[0];if(_numeral._.includes(decimal,'.')){decimal=locale.delimiters.decimal+decimal.split('.')[1];}else{decimal='';}if(optDec&&Number(decimal.slice(1))===0){decimal='';}}else{int=_numeral._.toFixed(value,0,roundingFunction);}// check abbreviation again after rounding
  4368. if(abbr&&!abbrForce&&Number(int)>=1000&&abbr!==locale.abbreviations.trillion){int=String(Number(int)/1000);switch(abbr){case locale.abbreviations.thousand:abbr=locale.abbreviations.million;break;case locale.abbreviations.million:abbr=locale.abbreviations.billion;break;case locale.abbreviations.billion:abbr=locale.abbreviations.trillion;break;}}// format number
  4369. if(_numeral._.includes(int,'-')){int=int.slice(1);neg=true;}if(int.length<leadingCount){for(var i=leadingCount-int.length;i>0;i--){int='0'+int;}}if(thousands>-1){int=int.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,'$1'+locale.delimiters.thousands);}if(format.indexOf('.')===0){int='';}output=int+decimal+(abbr?abbr:'');if(negP){output=(negP&&neg?'(':'')+output+(negP&&neg?')':'');}else{if(signed>=0){output=signed===0?(neg?'-':'+')+output:output+(neg?'-':'+');}else if(neg){output='-'+output;}}return output;},// unformats numbers separators, decimals places, signs, abbreviations
  4370. stringToNumber:function stringToNumber(string){var locale=locales[options.currentLocale],stringOriginal=string,abbreviations={thousand:3,million:6,billion:9,trillion:12},abbreviation,value,regexp;if(options.zeroFormat&&string===options.zeroFormat){value=0;}else if(options.nullFormat&&string===options.nullFormat||!string.replace(/[^0-9]+/g,'').length){value=null;}else{value=1;if(locale.delimiters.decimal!=='.'){string=string.replace(/\./g,'').replace(locale.delimiters.decimal,'.');}for(abbreviation in abbreviations){regexp=new RegExp('[^a-zA-Z]'+locale.abbreviations[abbreviation]+'(?:\\)|(\\'+locale.currency.symbol+')?(?:\\))?)?$');if(stringOriginal.match(regexp)){value*=Math.pow(10,abbreviations[abbreviation]);break;}}// check for negative number
  4371. value*=(string.split('-').length+Math.min(string.split('(').length-1,string.split(')').length-1))%2?1:-1;// remove non numbers
  4372. string=string.replace(/[^0-9\.]+/g,'');value*=Number(string);}return value;},isNaN:function(_isNaN){function isNaN(_x19){return _isNaN.apply(this,arguments);}isNaN.toString=function(){return _isNaN.toString();};return isNaN;}(function(value){return typeof value==='number'&&isNaN(value);}),includes:function includes(string,search){return string.indexOf(search)!==-1;},insert:function insert(string,subString,start){return string.slice(0,start)+subString+string.slice(start);},reduce:function reduce(array,callback/*, initialValue*/){if(this===null){throw new TypeError('Array.prototype.reduce called on null or undefined');}if(typeof callback!=='function'){throw new TypeError(callback+' is not a function');}var t=Object(array),len=t.length>>>0,k=0,value;if(arguments.length===3){value=arguments[2];}else{while(k<len&&!(k in t)){k++;}if(k>=len){throw new TypeError('Reduce of empty array with no initial value');}value=t[k++];}for(;k<len;k++){if(k in t){value=callback(value,t[k],k,t);}}return value;},/**
  4373. * Computes the multiplier necessary to make x >= 1,
  4374. * effectively eliminating miscalculations caused by
  4375. * finite precision.
  4376. */multiplier:function multiplier(x){var parts=x.toString().split('.');return parts.length<2?1:Math.pow(10,parts[1].length);},/**
  4377. * Given a variable number of arguments, returns the maximum
  4378. * multiplier that must be used to normalize an operation involving
  4379. * all of them.
  4380. */correctionFactor:function correctionFactor(){var args=Array.prototype.slice.call(arguments);return args.reduce(function(accum,next){var mn=_.multiplier(next);return accum>mn?accum:mn;},1);},/**
  4381. * Implementation of toFixed() that treats floats more like decimals
  4382. *
  4383. * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present
  4384. * problems for accounting- and finance-related software.
  4385. */toFixed:function toFixed(value,maxDecimals,roundingFunction,optionals){var splitValue=value.toString().split('.'),minDecimals=maxDecimals-(optionals||0),boundedPrecision,optionalsRegExp,power,output;// Use the smallest precision value possible to avoid errors from floating point representation
  4386. if(splitValue.length===2){boundedPrecision=Math.min(Math.max(splitValue[1].length,minDecimals),maxDecimals);}else{boundedPrecision=minDecimals;}power=Math.pow(10,boundedPrecision);// Multiply up by precision, round accurately, then divide and use native toFixed():
  4387. output=(roundingFunction(value+'e+'+boundedPrecision)/power).toFixed(boundedPrecision);if(optionals>maxDecimals-boundedPrecision){optionalsRegExp=new RegExp('\\.?0{1,'+(optionals-(maxDecimals-boundedPrecision))+'}$');output=output.replace(optionalsRegExp,'');}return output;}};// avaliable options
  4388. _numeral.options=options;// avaliable formats
  4389. _numeral.formats=formats;// avaliable formats
  4390. _numeral.locales=locales;// This function sets the current locale. If
  4391. // no arguments are passed in, it will simply return the current global
  4392. // locale key.
  4393. _numeral.locale=function(key){if(key){options.currentLocale=key.toLowerCase();}return options.currentLocale;};// This function provides access to the loaded locale data. If
  4394. // no arguments are passed in, it will simply return the current
  4395. // global locale object.
  4396. _numeral.localeData=function(key){if(!key){return locales[options.currentLocale];}key=key.toLowerCase();if(!locales[key]){throw new Error('Unknown locale : '+key);}return locales[key];};_numeral.reset=function(){for(var property in defaults){options[property]=defaults[property];}};_numeral.zeroFormat=function(format){options.zeroFormat=typeof format==='string'?format:null;};_numeral.nullFormat=function(format){options.nullFormat=typeof format==='string'?format:null;};_numeral.defaultFormat=function(format){options.defaultFormat=typeof format==='string'?format:'0.0';};_numeral.register=function(type,name,format){name=name.toLowerCase();if(this[type+'s'][name]){throw new TypeError(name+' '+type+' already registered.');}this[type+'s'][name]=format;return format;};_numeral.validate=function(val,culture){var _decimalSep,_thousandSep,_currSymbol,_valArray,_abbrObj,_thousandRegEx,localeData,temp;//coerce val to string
  4397. if(typeof val!=='string'){val+='';if(console.warn){console.warn('Numeral.js: Value is not string. It has been co-erced to: ',val);}}//trim whitespaces from either sides
  4398. val=val.trim();//if val is just digits return true
  4399. if(!!val.match(/^\d+$/)){return true;}//if val is empty return false
  4400. if(val===''){return false;}//get the decimal and thousands separator from numeral.localeData
  4401. try{//check if the culture is understood by numeral. if not, default it to current locale
  4402. localeData=_numeral.localeData(culture);}catch(e){localeData=_numeral.localeData(_numeral.locale());}//setup the delimiters and currency symbol based on culture/locale
  4403. _currSymbol=localeData.currency.symbol;_abbrObj=localeData.abbreviations;_decimalSep=localeData.delimiters.decimal;if(localeData.delimiters.thousands==='.'){_thousandSep='\\.';}else{_thousandSep=localeData.delimiters.thousands;}// validating currency symbol
  4404. temp=val.match(/^[^\d]+/);if(temp!==null){val=val.substr(1);if(temp[0]!==_currSymbol){return false;}}//validating abbreviation symbol
  4405. temp=val.match(/[^\d]+$/);if(temp!==null){val=val.slice(0,-1);if(temp[0]!==_abbrObj.thousand&&temp[0]!==_abbrObj.million&&temp[0]!==_abbrObj.billion&&temp[0]!==_abbrObj.trillion){return false;}}_thousandRegEx=new RegExp(_thousandSep+'{2}');if(!val.match(/[^\d.,]/g)){_valArray=val.split(_decimalSep);if(_valArray.length>2){return false;}else{if(_valArray.length<2){return!!_valArray[0].match(/^\d+.*\d$/)&&!_valArray[0].match(_thousandRegEx);}else{if(_valArray[0].length===1){return!!_valArray[0].match(/^\d+$/)&&!_valArray[0].match(_thousandRegEx)&&!!_valArray[1].match(/^\d+$/);}else{return!!_valArray[0].match(/^\d+.*\d$/)&&!_valArray[0].match(_thousandRegEx)&&!!_valArray[1].match(/^\d+$/);}}}}return false;};/************************************
  4406. Numeral Prototype
  4407. ************************************/_numeral.fn=Numeral.prototype={clone:function clone(){return _numeral(this);},format:function format(inputString,roundingFunction){var value=this._value,format=inputString||options.defaultFormat,kind,output,formatFunction;// make sure we have a roundingFunction
  4408. roundingFunction=roundingFunction||Math.round;// format based on value
  4409. if(value===0&&options.zeroFormat!==null){output=options.zeroFormat;}else if(value===null&&options.nullFormat!==null){output=options.nullFormat;}else{for(kind in formats){if(format.match(formats[kind].regexps.format)){formatFunction=formats[kind].format;break;}}formatFunction=formatFunction||_numeral._.numberToFormat;output=formatFunction(value,format,roundingFunction);}return output;},value:function value(){return this._value;},input:function input(){return this._input;},set:function set(value){this._value=Number(value);return this;},add:function add(value){var corrFactor=_.correctionFactor.call(null,this._value,value);function cback(accum,curr,currI,O){return accum+Math.round(corrFactor*curr);}this._value=_.reduce([this._value,value],cback,0)/corrFactor;return this;},subtract:function subtract(value){var corrFactor=_.correctionFactor.call(null,this._value,value);function cback(accum,curr,currI,O){return accum-Math.round(corrFactor*curr);}this._value=_.reduce([value],cback,Math.round(this._value*corrFactor))/corrFactor;return this;},multiply:function multiply(value){function cback(accum,curr,currI,O){var corrFactor=_.correctionFactor(accum,curr);return Math.round(accum*corrFactor)*Math.round(curr*corrFactor)/Math.round(corrFactor*corrFactor);}this._value=_.reduce([this._value,value],cback,1);return this;},divide:function divide(value){function cback(accum,curr,currI,O){var corrFactor=_.correctionFactor(accum,curr);return Math.round(accum*corrFactor)/Math.round(curr*corrFactor);}this._value=_.reduce([this._value,value],cback);return this;},difference:function difference(value){return Math.abs(_numeral(this._value).subtract(value).value());}};/************************************
  4410. Default Locale && Format
  4411. ************************************/_numeral.register('locale','en',{delimiters:{thousands:',',decimal:'.'},abbreviations:{thousand:'k',million:'m',billion:'b',trillion:'t'},ordinal:function ordinal(number){var b=number%10;return~~(number%100/10)===1?'th':b===1?'st':b===2?'nd':b===3?'rd':'th';},currency:{symbol:'$'}});(function(){_numeral.register('format','bps',{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function format(value,_format,roundingFunction){var space=_numeral._.includes(_format,' BPS')?' ':'',output;value=value*10000;// check for space before BPS
  4412. _format=_format.replace(/\s?BPS/,'');output=_numeral._.numberToFormat(value,_format,roundingFunction);if(_numeral._.includes(output,')')){output=output.split('');output.splice(-1,0,space+'BPS');output=output.join('');}else{output=output+space+'BPS';}return output;},unformat:function unformat(string){return+(_numeral._.stringToNumber(string)*0.0001).toFixed(15);}});})();(function(){var decimal={base:1000,suffixes:['B','KB','MB','GB','TB','PB','EB','ZB','YB']},binary={base:1024,suffixes:['B','KiB','MiB','GiB','TiB','PiB','EiB','ZiB','YiB']};var allSuffixes=decimal.suffixes.concat(binary.suffixes.filter(function(item){return decimal.suffixes.indexOf(item)<0;}));var unformatRegex=allSuffixes.join('|');// Allow support for BPS (http://www.investopedia.com/terms/b/basispoint.asp)
  4413. unformatRegex='('+unformatRegex.replace('B','B(?!PS)')+')';_numeral.register('format','bytes',{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(unformatRegex)},format:function format(value,_format2,roundingFunction){var output,bytes=_numeral._.includes(_format2,'ib')?binary:decimal,suffix=_numeral._.includes(_format2,' b')||_numeral._.includes(_format2,' ib')?' ':'',power,min,max;// check for space before
  4414. _format2=_format2.replace(/\s?i?b/,'');for(power=0;power<=bytes.suffixes.length;power++){min=Math.pow(bytes.base,power);max=Math.pow(bytes.base,power+1);if(value===null||value===0||value>=min&&value<max){suffix+=bytes.suffixes[power];if(min>0){value=value/min;}break;}}output=_numeral._.numberToFormat(value,_format2,roundingFunction);return output+suffix;},unformat:function unformat(string){var value=_numeral._.stringToNumber(string),power,bytesMultiplier;if(value){for(power=decimal.suffixes.length-1;power>=0;power--){if(_numeral._.includes(string,decimal.suffixes[power])){bytesMultiplier=Math.pow(decimal.base,power);break;}if(_numeral._.includes(string,binary.suffixes[power])){bytesMultiplier=Math.pow(binary.base,power);break;}}value*=bytesMultiplier||1;}return value;}});})();(function(){_numeral.register('format','currency',{regexps:{format:/(\$)/},format:function format(value,_format3,roundingFunction){var locale=_numeral.locales[_numeral.options.currentLocale],symbols={before:_format3.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:_format3.match(/([\+|\-|\)|\s|\$]*)$/)[0]},output,symbol,i;// strip format of spaces and $
  4415. _format3=_format3.replace(/\s?\$\s?/,'');// format the number
  4416. output=_numeral._.numberToFormat(value,_format3,roundingFunction);// update the before and after based on value
  4417. if(value>=0){symbols.before=symbols.before.replace(/[\-\(]/,'');symbols.after=symbols.after.replace(/[\-\)]/,'');}else if(value<0&&!_numeral._.includes(symbols.before,'-')&&!_numeral._.includes(symbols.before,'(')){symbols.before='-'+symbols.before;}// loop through each before symbol
  4418. for(i=0;i<symbols.before.length;i++){symbol=symbols.before[i];switch(symbol){case'$':output=_numeral._.insert(output,locale.currency.symbol,i);break;case' ':output=_numeral._.insert(output,' ',i+locale.currency.symbol.length-1);break;}}// loop through each after symbol
  4419. for(i=symbols.after.length-1;i>=0;i--){symbol=symbols.after[i];switch(symbol){case'$':output=i===symbols.after.length-1?output+locale.currency.symbol:_numeral._.insert(output,locale.currency.symbol,-(symbols.after.length-(1+i)));break;case' ':output=i===symbols.after.length-1?output+' ':_numeral._.insert(output,' ',-(symbols.after.length-(1+i)+locale.currency.symbol.length-1));break;}}return output;}});})();(function(){_numeral.register('format','exponential',{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function format(value,_format4,roundingFunction){var output,exponential=typeof value==='number'&&!_numeral._.isNaN(value)?value.toExponential():'0e+0',parts=exponential.split('e');_format4=_format4.replace(/e[\+|\-]{1}0/,'');output=_numeral._.numberToFormat(Number(parts[0]),_format4,roundingFunction);return output+'e'+parts[1];},unformat:function unformat(string){var parts=_numeral._.includes(string,'e+')?string.split('e+'):string.split('e-'),value=Number(parts[0]),power=Number(parts[1]);power=_numeral._.includes(string,'e-')?power*=-1:power;function cback(accum,curr,currI,O){var corrFactor=_numeral._.correctionFactor(accum,curr),num=accum*corrFactor*(curr*corrFactor)/(corrFactor*corrFactor);return num;}return _numeral._.reduce([value,Math.pow(10,power)],cback,1);}});})();(function(){_numeral.register('format','ordinal',{regexps:{format:/(o)/},format:function format(value,_format5,roundingFunction){var locale=_numeral.locales[_numeral.options.currentLocale],output,ordinal=_numeral._.includes(_format5,' o')?' ':'';// check for space before
  4420. _format5=_format5.replace(/\s?o/,'');ordinal+=locale.ordinal(value);output=_numeral._.numberToFormat(value,_format5,roundingFunction);return output+ordinal;}});})();(function(){_numeral.register('format','percentage',{regexps:{format:/(%)/,unformat:/(%)/},format:function format(value,_format6,roundingFunction){var space=_numeral._.includes(_format6,' %')?' ':'',output;if(_numeral.options.scalePercentBy100){value=value*100;}// check for space before %
  4421. _format6=_format6.replace(/\s?\%/,'');output=_numeral._.numberToFormat(value,_format6,roundingFunction);if(_numeral._.includes(output,')')){output=output.split('');output.splice(-1,0,space+'%');output=output.join('');}else{output=output+space+'%';}return output;},unformat:function unformat(string){var number=_numeral._.stringToNumber(string);if(_numeral.options.scalePercentBy100){return number*0.01;}return number;}});})();(function(){_numeral.register('format','time',{regexps:{format:/(:)/,unformat:/(:)/},format:function format(value,_format7,roundingFunction){var hours=Math.floor(value/60/60),minutes=Math.floor((value-hours*60*60)/60),seconds=Math.round(value-hours*60*60-minutes*60);return hours+':'+(minutes<10?'0'+minutes:minutes)+':'+(seconds<10?'0'+seconds:seconds);},unformat:function unformat(string){var timeArray=string.split(':'),seconds=0;// turn hours and minutes into seconds and add them all up
  4422. if(timeArray.length===3){// hours
  4423. seconds=seconds+Number(timeArray[0])*60*60;// minutes
  4424. seconds=seconds+Number(timeArray[1])*60;// seconds
  4425. seconds=seconds+Number(timeArray[2]);}else if(timeArray.length===2){// minutes
  4426. seconds=seconds+Number(timeArray[0])*60;// seconds
  4427. seconds=seconds+Number(timeArray[1]);}return Number(seconds);}});})();return _numeral;});})(numeral);/*! js-cookie v3.0.1 | MIT */ /* eslint-disable no-var */function assign$1(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){target[key]=source[key];}}return target;}/* eslint-enable no-var */ /* eslint-disable no-var */var defaultConverter={read:function read(value){if(value[0]==='"'){value=value.slice(1,-1);}return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);},write:function write(value){return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);}};/* eslint-enable no-var */ /* eslint-disable no-var */function init(converter,defaultAttributes){function set(key,value,attributes){if(typeof document==='undefined'){return;}attributes=assign$1({},defaultAttributes,attributes);if(typeof attributes.expires==='number'){attributes.expires=new Date(Date.now()+attributes.expires*864e5);}if(attributes.expires){attributes.expires=attributes.expires.toUTCString();}key=encodeURIComponent(key).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue;}stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true){continue;}// Considers RFC 6265 section 5.2:
  4428. // ...
  4429. // 3. If the remaining unparsed-attributes contains a %x3B (";")
  4430. // character:
  4431. // Consume the characters of the unparsed-attributes up to,
  4432. // not including, the first %x3B (";") character.
  4433. // ...
  4434. stringifiedAttributes+='='+attributes[attributeName].split(';')[0];}return document.cookie=key+'='+converter.write(value,key)+stringifiedAttributes;}function get(key){if(typeof document==='undefined'||arguments.length&&!key){return;}// To prevent the for loop in the first place assign an empty array
  4435. // in case there are no cookies at all.
  4436. var cookies=document.cookie?document.cookie.split('; '):[];var jar={};for(var i=0;i<cookies.length;i++){var parts=cookies[i].split('=');var value=parts.slice(1).join('=');try{var foundKey=decodeURIComponent(parts[0]);jar[foundKey]=converter.read(value,foundKey);if(key===foundKey){break;}}catch(e){}}return key?jar[key]:jar;}return Object.create({set:set,get:get,remove:function remove(key,attributes){set(key,'',assign$1({},attributes,{expires:-1}));},withAttributes:function withAttributes(attributes){return init(this.converter,assign$1({},this.attributes,attributes));},withConverter:function withConverter(converter){return init(assign$1({},this.converter,converter),this.attributes);}},{attributes:{value:Object.freeze(defaultAttributes)},converter:{value:Object.freeze(converter)}});}var api=exports('b',init(defaultConverter,{path:'/'}));function mitt(n){return{all:n=n||new Map(),on:function on(t,e){var i=n.get(t);i?i.push(e):n.set(t,[e]);},off:function off(t,e){var i=n.get(t);i&&(e?i.splice(i.indexOf(e)>>>0,1):n.set(t,[]));},emit:function emit(t,e){var i=n.get(t);i&&i.slice().map(function(n){n(e);}),(i=n.get("*"))&&i.slice().map(function(n){n(t,e);});}};}/*!
  4437. * vue-router v4.0.12
  4438. * (c) 2021 Eduardo San Martin Morote
  4439. * @license MIT
  4440. */var hasSymbol=typeof Symbol==='function'&&_typeof2(Symbol.toStringTag)==='symbol';var PolySymbol=function PolySymbol(name){return(// vr = vue router
  4441. hasSymbol?Symbol(name):'_vr_'+name);};// rvlm = Router View Location Matched
  4442. /**
  4443. * RouteRecord being rendered by the closest ancestor Router View. Used for
  4444. * `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
  4445. * Location Matched
  4446. *
  4447. * @internal
  4448. */var matchedRouteKey=/*#__PURE__*/PolySymbol('rvlm');/**
  4449. * Allows overriding the router view depth to control which component in
  4450. * `matched` is rendered. rvd stands for Router View Depth
  4451. *
  4452. * @internal
  4453. */var viewDepthKey=/*#__PURE__*/PolySymbol('rvd');/**
  4454. * Allows overriding the router instance returned by `useRouter` in tests. r
  4455. * stands for router
  4456. *
  4457. * @internal
  4458. */var routerKey=/*#__PURE__*/PolySymbol('r');/**
  4459. * Allows overriding the current route returned by `useRoute` in tests. rl
  4460. * stands for route location
  4461. *
  4462. * @internal
  4463. */var routeLocationKey=/*#__PURE__*/PolySymbol('rl');/**
  4464. * Allows overriding the current route used by router-view. Internally this is
  4465. * used when the `route` prop is passed.
  4466. *
  4467. * @internal
  4468. */var routerViewLocationKey=/*#__PURE__*/PolySymbol('rvl');var isBrowser=typeof window!=='undefined';function isESModule(obj){return obj.__esModule||hasSymbol&&obj[Symbol.toStringTag]==='Module';}var assign=Object.assign;function applyToParams(fn,params){var newParams={};for(var key in params){var value=params[key];newParams[key]=Array.isArray(value)?value.map(fn):fn(value);}return newParams;}var noop=function noop(){};var TRAILING_SLASH_RE=/\/$/;var removeTrailingSlash=function removeTrailingSlash(path){return path.replace(TRAILING_SLASH_RE,'');};/**
  4469. * Transforms an URI into a normalized history location
  4470. *
  4471. * @param parseQuery
  4472. * @param location - URI to normalize
  4473. * @param currentLocation - current absolute location. Allows resolving relative
  4474. * paths. Must start with `/`. Defaults to `/`
  4475. * @returns a normalized history location
  4476. */function parseURL(parseQuery,location){var currentLocation=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'/';var path,query={},searchString='',hash='';// Could use URL and URLSearchParams but IE 11 doesn't support it
  4477. var searchPos=location.indexOf('?');var hashPos=location.indexOf('#',searchPos>-1?searchPos:0);if(searchPos>-1){path=location.slice(0,searchPos);searchString=location.slice(searchPos+1,hashPos>-1?hashPos:location.length);query=parseQuery(searchString);}if(hashPos>-1){path=path||location.slice(0,hashPos);// keep the # character
  4478. hash=location.slice(hashPos,location.length);}// no search and no query
  4479. path=resolveRelativePath(path!=null?path:location,currentLocation);// empty path means a relative query or hash `?foo=f`, `#thing`
  4480. return{fullPath:path+(searchString&&'?')+searchString+hash,path:path,query:query,hash:hash};}/**
  4481. * Stringifies a URL object
  4482. *
  4483. * @param stringifyQuery
  4484. * @param location
  4485. */function stringifyURL(stringifyQuery,location){var query=location.query?stringifyQuery(location.query):'';return location.path+(query&&'?')+query+(location.hash||'');}/**
  4486. * Strips off the base from the beginning of a location.pathname in a non
  4487. * case-sensitive way.
  4488. *
  4489. * @param pathname - location.pathname
  4490. * @param base - base to strip off
  4491. */function stripBase(pathname,base){// no base or base is not found at the beginning
  4492. if(!base||!pathname.toLowerCase().startsWith(base.toLowerCase()))return pathname;return pathname.slice(base.length)||'/';}/**
  4493. * Checks if two RouteLocation are equal. This means that both locations are
  4494. * pointing towards the same {@link RouteRecord} and that all `params`, `query`
  4495. * parameters and `hash` are the same
  4496. *
  4497. * @param a - first {@link RouteLocation}
  4498. * @param b - second {@link RouteLocation}
  4499. */function isSameRouteLocation(stringifyQuery,a,b){var aLastIndex=a.matched.length-1;var bLastIndex=b.matched.length-1;return aLastIndex>-1&&aLastIndex===bLastIndex&&isSameRouteRecord(a.matched[aLastIndex],b.matched[bLastIndex])&&isSameRouteLocationParams(a.params,b.params)&&stringifyQuery(a.query)===stringifyQuery(b.query)&&a.hash===b.hash;}/**
  4500. * Check if two `RouteRecords` are equal. Takes into account aliases: they are
  4501. * considered equal to the `RouteRecord` they are aliasing.
  4502. *
  4503. * @param a - first {@link RouteRecord}
  4504. * @param b - second {@link RouteRecord}
  4505. */function isSameRouteRecord(a,b){// since the original record has an undefined value for aliasOf
  4506. // but all aliases point to the original record, this will always compare
  4507. // the original record
  4508. return(a.aliasOf||a)===(b.aliasOf||b);}function isSameRouteLocationParams(a,b){if(Object.keys(a).length!==Object.keys(b).length)return false;for(var key in a){if(!isSameRouteLocationParamsValue(a[key],b[key]))return false;}return true;}function isSameRouteLocationParamsValue(a,b){return Array.isArray(a)?isEquivalentArray(a,b):Array.isArray(b)?isEquivalentArray(b,a):a===b;}/**
  4509. * Check if two arrays are the same or if an array with one single entry is the
  4510. * same as another primitive value. Used to check query and parameters
  4511. *
  4512. * @param a - array of values
  4513. * @param b - array of values or a single value
  4514. */function isEquivalentArray(a,b){return Array.isArray(b)?a.length===b.length&&a.every(function(value,i){return value===b[i];}):a.length===1&&a[0]===b;}/**
  4515. * Resolves a relative path that starts with `.`.
  4516. *
  4517. * @param to - path location we are resolving
  4518. * @param from - currentLocation.path, should start with `/`
  4519. */function resolveRelativePath(to,from){if(to.startsWith('/'))return to;if(!to)return from;var fromSegments=from.split('/');var toSegments=to.split('/');var position=fromSegments.length-1;var toPosition;var segment;for(toPosition=0;toPosition<toSegments.length;toPosition++){segment=toSegments[toPosition];// can't go below zero
  4520. if(position===1||segment==='.')continue;if(segment==='..')position--;// found something that is not relative path
  4521. else break;}return fromSegments.slice(0,position).join('/')+'/'+toSegments.slice(toPosition-(toPosition===toSegments.length?1:0)).join('/');}var NavigationType;(function(NavigationType){NavigationType["pop"]="pop";NavigationType["push"]="push";})(NavigationType||(NavigationType={}));var NavigationDirection;(function(NavigationDirection){NavigationDirection["back"]="back";NavigationDirection["forward"]="forward";NavigationDirection["unknown"]="";})(NavigationDirection||(NavigationDirection={}));// Generic utils
  4522. /**
  4523. * Normalizes a base by removing any trailing slash and reading the base tag if
  4524. * present.
  4525. *
  4526. * @param base - base to normalize
  4527. */function normalizeBase(base){if(!base){if(isBrowser){// respect <base> tag
  4528. var baseEl=document.querySelector('base');base=baseEl&&baseEl.getAttribute('href')||'/';// strip full URL origin
  4529. base=base.replace(/^\w+:\/\/[^\/]+/,'');}else{base='/';}}// ensure leading slash when it was removed by the regex above avoid leading
  4530. // slash with hash because the file could be read from the disk like file://
  4531. // and the leading slash would cause problems
  4532. if(base[0]!=='/'&&base[0]!=='#')base='/'+base;// remove the trailing slash so all other method can just do `base + fullPath`
  4533. // to build an href
  4534. return removeTrailingSlash(base);}// remove any character before the hash
  4535. var BEFORE_HASH_RE=/^[^#]+#/;function createHref(base,location){return base.replace(BEFORE_HASH_RE,'#')+location;}function getElementPosition(el,offset){var docRect=document.documentElement.getBoundingClientRect();var elRect=el.getBoundingClientRect();return{behavior:offset.behavior,left:elRect.left-docRect.left-(offset.left||0),top:elRect.top-docRect.top-(offset.top||0)};}var computeScrollPosition=function computeScrollPosition(){return{left:window.pageXOffset,top:window.pageYOffset};};function scrollToPosition(position){var scrollToOptions;if('el'in position){var positionEl=position.el;var isIdSelector=typeof positionEl==='string'&&positionEl.startsWith('#');var el=typeof positionEl==='string'?isIdSelector?document.getElementById(positionEl.slice(1)):document.querySelector(positionEl):positionEl;if(!el){return;}scrollToOptions=getElementPosition(el,position);}else{scrollToOptions=position;}if('scrollBehavior'in document.documentElement.style)window.scrollTo(scrollToOptions);else{window.scrollTo(scrollToOptions.left!=null?scrollToOptions.left:window.pageXOffset,scrollToOptions.top!=null?scrollToOptions.top:window.pageYOffset);}}function getScrollKey(path,delta){var position=history.state?history.state.position-delta:-1;return position+path;}var scrollPositions=new Map();function saveScrollPosition(key,scrollPosition){scrollPositions.set(key,scrollPosition);}function getSavedScrollPosition(key){var scroll=scrollPositions.get(key);// consume it so it's not used again
  4536. scrollPositions.delete(key);return scroll;}// TODO: RFC about how to save scroll position
  4537. /**
  4538. * ScrollBehavior instance used by the router to compute and restore the scroll
  4539. * position when navigating.
  4540. */ // export interface ScrollHandler<ScrollPositionEntry extends HistoryStateValue, ScrollPosition extends ScrollPositionEntry> {
  4541. // // returns a scroll position that can be saved in history
  4542. // compute(): ScrollPositionEntry
  4543. // // can take an extended ScrollPositionEntry
  4544. // scroll(position: ScrollPosition): void
  4545. // }
  4546. // export const scrollHandler: ScrollHandler<ScrollPosition> = {
  4547. // compute: computeScroll,
  4548. // scroll: scrollToPosition,
  4549. // }
  4550. var createBaseLocation=function createBaseLocation(){return location.protocol+'//'+location.host;};/**
  4551. * Creates a normalized history location from a window.location object
  4552. * @param location -
  4553. */function createCurrentLocation(base,location){var pathname=location.pathname,search=location.search,hash=location.hash;// allows hash bases like #, /#, #/, #!, #!/, /#!/, or even /folder#end
  4554. var hashPos=base.indexOf('#');if(hashPos>-1){var slicePos=hash.includes(base.slice(hashPos))?base.slice(hashPos).length:1;var pathFromHash=hash.slice(slicePos);// prepend the starting slash to hash so the url starts with /#
  4555. if(pathFromHash[0]!=='/')pathFromHash='/'+pathFromHash;return stripBase(pathFromHash,'');}var path=stripBase(pathname,base);return path+search+hash;}function useHistoryListeners(base,historyState,currentLocation,replace){var listeners=[];var teardowns=[];// TODO: should it be a stack? a Dict. Check if the popstate listener
  4556. // can trigger twice
  4557. var pauseState=null;var popStateHandler=function popStateHandler(_ref205){var state=_ref205.state;var to=createCurrentLocation(base,location);var from=currentLocation.value;var fromState=historyState.value;var delta=0;if(state){currentLocation.value=to;historyState.value=state;// ignore the popstate and reset the pauseState
  4558. if(pauseState&&pauseState===from){pauseState=null;return;}delta=fromState?state.position-fromState.position:0;}else{replace(to);}// console.log({ deltaFromCurrent })
  4559. // Here we could also revert the navigation by calling history.go(-delta)
  4560. // this listener will have to be adapted to not trigger again and to wait for the url
  4561. // to be updated before triggering the listeners. Some kind of validation function would also
  4562. // need to be passed to the listeners so the navigation can be accepted
  4563. // call all listeners
  4564. listeners.forEach(function(listener){listener(currentLocation.value,from,{delta:delta,type:NavigationType.pop,direction:delta?delta>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown});});};function pauseListeners(){pauseState=currentLocation.value;}function listen(callback){// setup the listener and prepare teardown callbacks
  4565. listeners.push(callback);var teardown=function teardown(){var index=listeners.indexOf(callback);if(index>-1)listeners.splice(index,1);};teardowns.push(teardown);return teardown;}function beforeUnloadListener(){var _window=window,history=_window.history;if(!history.state)return;history.replaceState(assign({},history.state,{scroll:computeScrollPosition()}),'');}function destroy(){var _iterator19=_createForOfIteratorHelper(teardowns),_step20;try{for(_iterator19.s();!(_step20=_iterator19.n()).done;){var teardown=_step20.value;teardown();}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}teardowns=[];window.removeEventListener('popstate',popStateHandler);window.removeEventListener('beforeunload',beforeUnloadListener);}// setup the listeners and prepare teardown callbacks
  4566. window.addEventListener('popstate',popStateHandler);window.addEventListener('beforeunload',beforeUnloadListener);return{pauseListeners:pauseListeners,listen:listen,destroy:destroy};}/**
  4567. * Creates a state object
  4568. */function buildState(back,current,forward){var replaced=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var computeScroll=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;return{back:back,current:current,forward:forward,replaced:replaced,position:window.history.length,scroll:computeScroll?computeScrollPosition():null};}function useHistoryStateNavigation(base){var _window2=window,history=_window2.history,location=_window2.location;// private variables
  4569. var currentLocation={value:createCurrentLocation(base,location)};var historyState={value:history.state};// build current history entry as this is a fresh navigation
  4570. if(!historyState.value){changeLocation(currentLocation.value,{back:null,current:currentLocation.value,forward:null,// the length is off by one, we need to decrease it
  4571. position:history.length-1,replaced:true,// don't add a scroll as the user may have an anchor and we want
  4572. // scrollBehavior to be triggered without a saved position
  4573. scroll:null},true);}function changeLocation(to,state,replace){/**
  4574. * if a base tag is provided and we are on a normal domain, we have to
  4575. * respect the provided `base` attribute because pushState() will use it and
  4576. * potentially erase anything before the `#` like at
  4577. * https://github.com/vuejs/vue-router-next/issues/685 where a base of
  4578. * `/folder/#` but a base of `/` would erase the `/folder/` section. If
  4579. * there is no host, the `<base>` tag makes no sense and if there isn't a
  4580. * base tag we can just use everything after the `#`.
  4581. */var hashIndex=base.indexOf('#');var url=hashIndex>-1?(location.host&&document.querySelector('base')?base:base.slice(hashIndex))+to:createBaseLocation()+base+to;try{// BROWSER QUIRK
  4582. // NOTE: Safari throws a SecurityError when calling this function 100 times in 30 seconds
  4583. history[replace?'replaceState':'pushState'](state,'',url);historyState.value=state;}catch(err){{console.error(err);}// Force the navigation, this also resets the call count
  4584. location[replace?'replace':'assign'](url);}}function replace(to,data){var state=assign({},history.state,buildState(historyState.value.back,// keep back and forward entries but override current position
  4585. to,historyState.value.forward,true),data,{position:historyState.value.position});changeLocation(to,state,true);currentLocation.value=to;}function push(to,data){// Add to current entry the information of where we are going
  4586. // as well as saving the current position
  4587. var currentState=assign({},// use current history state to gracefully handle a wrong call to
  4588. // history.replaceState
  4589. // https://github.com/vuejs/vue-router-next/issues/366
  4590. historyState.value,history.state,{forward:to,scroll:computeScrollPosition()});changeLocation(currentState.current,currentState,true);var state=assign({},buildState(currentLocation.value,to,null),{position:currentState.position+1},data);changeLocation(to,state,false);currentLocation.value=to;}return{location:currentLocation,state:historyState,push:push,replace:replace};}/**
  4591. * Creates an HTML5 history. Most common history for single page applications.
  4592. *
  4593. * @param base -
  4594. */function createWebHistory(base){base=normalizeBase(base);var historyNavigation=useHistoryStateNavigation(base);var historyListeners=useHistoryListeners(base,historyNavigation.state,historyNavigation.location,historyNavigation.replace);function go(delta){var triggerListeners=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(!triggerListeners)historyListeners.pauseListeners();history.go(delta);}var routerHistory=assign({// it's overridden right after
  4595. location:'',base:base,go:go,createHref:createHref.bind(null,base)},historyNavigation,historyListeners);Object.defineProperty(routerHistory,'location',{enumerable:true,get:function get(){return historyNavigation.location.value;}});Object.defineProperty(routerHistory,'state',{enumerable:true,get:function get(){return historyNavigation.state.value;}});return routerHistory;}/**
  4596. * Creates a hash history. Useful for web applications with no host (e.g.
  4597. * `file://`) or when configuring a server to handle any URL is not possible.
  4598. *
  4599. * @param base - optional base to provide. Defaults to `location.pathname +
  4600. * location.search` If there is a `<base>` tag in the `head`, its value will be
  4601. * ignored in favor of this parameter **but note it affects all the
  4602. * history.pushState() calls**, meaning that if you use a `<base>` tag, it's
  4603. * `href` value **has to match this parameter** (ignoring anything after the
  4604. * `#`).
  4605. *
  4606. * @example
  4607. * ```js
  4608. * // at https://example.com/folder
  4609. * createWebHashHistory() // gives a url of `https://example.com/folder#`
  4610. * createWebHashHistory('/folder/') // gives a url of `https://example.com/folder/#`
  4611. * // if the `#` is provided in the base, it won't be added by `createWebHashHistory`
  4612. * createWebHashHistory('/folder/#/app/') // gives a url of `https://example.com/folder/#/app/`
  4613. * // you should avoid doing this because it changes the original url and breaks copying urls
  4614. * createWebHashHistory('/other-folder/') // gives a url of `https://example.com/other-folder/#`
  4615. *
  4616. * // at file:///usr/etc/folder/index.html
  4617. * // for locations with no `host`, the base is ignored
  4618. * createWebHashHistory('/iAmIgnored') // gives a url of `file:///usr/etc/folder/index.html#`
  4619. * ```
  4620. */function createWebHashHistory(base){// Make sure this implementation is fine in terms of encoding, specially for IE11
  4621. // for `file://`, directly use the pathname and ignore the base
  4622. // location.pathname contains an initial `/` even at the root: `https://example.com`
  4623. base=location.host?base||location.pathname+location.search:'';// allow the user to provide a `#` in the middle: `/base/#/app`
  4624. if(!base.includes('#'))base+='#';return createWebHistory(base);}function isRouteLocation(route){return typeof route==='string'||route&&_typeof2(route)==='object';}function isRouteName(name){return typeof name==='string'||_typeof2(name)==='symbol';}/**
  4625. * Initial route location where the router is. Can be used in navigation guards
  4626. * to differentiate the initial navigation.
  4627. *
  4628. * @example
  4629. * ```js
  4630. * import { START_LOCATION } from 'vue-router'
  4631. *
  4632. * router.beforeEach((to, from) => {
  4633. * if (from === START_LOCATION) {
  4634. * // initial navigation
  4635. * }
  4636. * })
  4637. * ```
  4638. */var START_LOCATION_NORMALIZED={path:'/',name:undefined,params:{},query:{},hash:'',fullPath:'/',matched:[],meta:{},redirectedFrom:undefined};var NavigationFailureSymbol=/*#__PURE__*/PolySymbol('nf');/**
  4639. * Enumeration with all possible types for navigation failures. Can be passed to
  4640. * {@link isNavigationFailure} to check for specific failures.
  4641. */var NavigationFailureType;(function(NavigationFailureType){/**
  4642. * An aborted navigation is a navigation that failed because a navigation
  4643. * guard returned `false` or called `next(false)`
  4644. */NavigationFailureType[NavigationFailureType["aborted"]=4]="aborted";/**
  4645. * A cancelled navigation is a navigation that failed because a more recent
  4646. * navigation finished started (not necessarily finished).
  4647. */NavigationFailureType[NavigationFailureType["cancelled"]=8]="cancelled";/**
  4648. * A duplicated navigation is a navigation that failed because it was
  4649. * initiated while already being at the exact same location.
  4650. */NavigationFailureType[NavigationFailureType["duplicated"]=16]="duplicated";})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(type,params){// keep full error messages in cjs versions
  4651. {return assign(new Error(),_defineProperty2({type:type},NavigationFailureSymbol,true),params);}}function isNavigationFailure(error,type){return error instanceof Error&&NavigationFailureSymbol in error&&(type==null||!!(error.type&type));}// default pattern for a param: non greedy everything but /
  4652. var BASE_PARAM_PATTERN='[^/]+?';var BASE_PATH_PARSER_OPTIONS={sensitive:false,strict:false,start:true,end:true};// Special Regex characters that must be escaped in static tokens
  4653. var REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;/**
  4654. * Creates a path parser from an array of Segments (a segment is an array of Tokens)
  4655. *
  4656. * @param segments - array of segments returned by tokenizePath
  4657. * @param extraOptions - optional options for the regexp
  4658. * @returns a PathParser
  4659. */function tokensToParser(segments,extraOptions){var options=assign({},BASE_PATH_PARSER_OPTIONS,extraOptions);// the amount of scores is the same as the length of segments except for the root segment "/"
  4660. var score=[];// the regexp as a string
  4661. var pattern=options.start?'^':'';// extracted keys
  4662. var keys=[];var _iterator20=_createForOfIteratorHelper(segments),_step21;try{for(_iterator20.s();!(_step21=_iterator20.n()).done;){var segment=_step21.value;// the root segment needs special treatment
  4663. var segmentScores=segment.length?[]:[90/* Root */];// allow trailing slash
  4664. if(options.strict&&!segment.length)pattern+='/';for(var tokenIndex=0;tokenIndex<segment.length;tokenIndex++){var token=segment[tokenIndex];// resets the score if we are inside a sub segment /:a-other-:b
  4665. var subSegmentScore=40/* Segment */+(options.sensitive?0.25/* BonusCaseSensitive */:0);if(token.type===0/* Static */){// prepend the slash if we are starting a new segment
  4666. if(!tokenIndex)pattern+='/';pattern+=token.value.replace(REGEX_CHARS_RE,'\\$&');subSegmentScore+=40/* Static */;}else if(token.type===1/* Param */){var value=token.value,repeatable=token.repeatable,optional=token.optional,_regexp=token.regexp;keys.push({name:value,repeatable:repeatable,optional:optional});var _re=_regexp?_regexp:BASE_PARAM_PATTERN;// the user provided a custom regexp /:id(\\d+)
  4667. if(_re!==BASE_PARAM_PATTERN){subSegmentScore+=10/* BonusCustomRegExp */;// make sure the regexp is valid before using it
  4668. try{new RegExp("(".concat(_re,")"));}catch(err){throw new Error("Invalid custom RegExp for param \"".concat(value,"\" (").concat(_re,"): ")+err.message);}}// when we repeat we must take care of the repeating leading slash
  4669. var subPattern=repeatable?"((?:".concat(_re,")(?:/(?:").concat(_re,"))*)"):"(".concat(_re,")");// prepend the slash if we are starting a new segment
  4670. if(!tokenIndex)subPattern=// avoid an optional / if there are more segments e.g. /:p?-static
  4671. // or /:p?-:p2
  4672. optional&&segment.length<2?"(?:/".concat(subPattern,")"):'/'+subPattern;if(optional)subPattern+='?';pattern+=subPattern;subSegmentScore+=20/* Dynamic */;if(optional)subSegmentScore+=-8/* BonusOptional */;if(repeatable)subSegmentScore+=-20/* BonusRepeatable */;if(_re==='.*')subSegmentScore+=-50/* BonusWildcard */;}segmentScores.push(subSegmentScore);}// an empty array like /home/ -> [[{home}], []]
  4673. // if (!segment.length) pattern += '/'
  4674. score.push(segmentScores);}// only apply the strict bonus to the last score
  4675. }catch(err){_iterator20.e(err);}finally{_iterator20.f();}if(options.strict&&options.end){var _i60=score.length-1;score[_i60][score[_i60].length-1]+=0.7000000000000001/* BonusStrict */;}// TODO: dev only warn double trailing slash
  4676. if(!options.strict)pattern+='/?';if(options.end)pattern+='$';// allow paths like /dynamic to only match dynamic or dynamic/... but not dynamic_something_else
  4677. else if(options.strict)pattern+='(?:/|$)';var re=new RegExp(pattern,options.sensitive?'':'i');function parse(path){var match=path.match(re);var params={};if(!match)return null;for(var _i61=1;_i61<match.length;_i61++){var value=match[_i61]||'';var key=keys[_i61-1];params[key.name]=value&&key.repeatable?value.split('/'):value;}return params;}function stringify(params){var path='';// for optional parameters to allow to be empty
  4678. var avoidDuplicatedSlash=false;var _iterator21=_createForOfIteratorHelper(segments),_step22;try{for(_iterator21.s();!(_step22=_iterator21.n()).done;){var segment=_step22.value;if(!avoidDuplicatedSlash||!path.endsWith('/'))path+='/';avoidDuplicatedSlash=false;var _iterator22=_createForOfIteratorHelper(segment),_step23;try{for(_iterator22.s();!(_step23=_iterator22.n()).done;){var token=_step23.value;if(token.type===0/* Static */){path+=token.value;}else if(token.type===1/* Param */){var value=token.value,repeatable=token.repeatable,optional=token.optional;var param=value in params?params[value]:'';if(Array.isArray(param)&&!repeatable)throw new Error("Provided param \"".concat(value,"\" is an array but it is not repeatable (* or + modifiers)"));var text=Array.isArray(param)?param.join('/'):param;if(!text){if(optional){// if we have more than one optional param like /:a?-static we
  4679. // don't need to care about the optional param
  4680. if(segment.length<2){// remove the last slash as we could be at the end
  4681. if(path.endsWith('/'))path=path.slice(0,-1);// do not append a slash on the next iteration
  4682. else avoidDuplicatedSlash=true;}}else throw new Error("Missing required param \"".concat(value,"\""));}path+=text;}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return path;}return{re:re,score:score,keys:keys,parse:parse,stringify:stringify};}/**
  4683. * Compares an array of numbers as used in PathParser.score and returns a
  4684. * number. This function can be used to `sort` an array
  4685. *
  4686. * @param a - first array of numbers
  4687. * @param b - second array of numbers
  4688. * @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b
  4689. * should be sorted first
  4690. */function compareScoreArray(a,b){var i=0;while(i<a.length&&i<b.length){var diff=b[i]-a[i];// only keep going if diff === 0
  4691. if(diff)return diff;i++;}// if the last subsegment was Static, the shorter segments should be sorted first
  4692. // otherwise sort the longest segment first
  4693. if(a.length<b.length){return a.length===1&&a[0]===40/* Static */+40/* Segment */?-1:1;}else if(a.length>b.length){return b.length===1&&b[0]===40/* Static */+40/* Segment */?1:-1;}return 0;}/**
  4694. * Compare function that can be used with `sort` to sort an array of PathParser
  4695. *
  4696. * @param a - first PathParser
  4697. * @param b - second PathParser
  4698. * @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b
  4699. */function comparePathParserScore(a,b){var i=0;var aScore=a.score;var bScore=b.score;while(i<aScore.length&&i<bScore.length){var comp=compareScoreArray(aScore[i],bScore[i]);// do not return if both are equal
  4700. if(comp)return comp;i++;}// if a and b share the same score entries but b has more, sort b first
  4701. return bScore.length-aScore.length;// this is the ternary version
  4702. // return aScore.length < bScore.length
  4703. // ? 1
  4704. // : aScore.length > bScore.length
  4705. // ? -1
  4706. // : 0
  4707. }var ROOT_TOKEN={type:0/* Static */,value:''};var VALID_PARAM_RE=/[a-zA-Z0-9_]/;// After some profiling, the cache seems to be unnecessary because tokenizePath
  4708. // (the slowest part of adding a route) is very fast
  4709. // const tokenCache = new Map<string, Token[][]>()
  4710. function tokenizePath(path){if(!path)return[[]];if(path==='/')return[[ROOT_TOKEN]];if(!path.startsWith('/')){throw new Error("Invalid path \"".concat(path,"\""));}// if (tokenCache.has(path)) return tokenCache.get(path)!
  4711. function crash(message){throw new Error("ERR (".concat(state,")/\"").concat(buffer,"\": ").concat(message));}var state=0/* Static */;var previousState=state;var tokens=[];// the segment will always be valid because we get into the initial state
  4712. // with the leading /
  4713. var segment;function finalizeSegment(){if(segment)tokens.push(segment);segment=[];}// index on the path
  4714. var i=0;// char at index
  4715. var char;// buffer of the value read
  4716. var buffer='';// custom regexp for a param
  4717. var customRe='';function consumeBuffer(){if(!buffer)return;if(state===0/* Static */){segment.push({type:0/* Static */,value:buffer});}else if(state===1/* Param */||state===2/* ParamRegExp */||state===3/* ParamRegExpEnd */){if(segment.length>1&&(char==='*'||char==='+'))crash("A repeatable param (".concat(buffer,") must be alone in its segment. eg: '/:ids+."));segment.push({type:1/* Param */,value:buffer,regexp:customRe,repeatable:char==='*'||char==='+',optional:char==='*'||char==='?'});}else{crash('Invalid state to consume buffer');}buffer='';}function addCharToBuffer(){buffer+=char;}while(i<path.length){char=path[i++];if(char==='\\'&&state!==2/* ParamRegExp */){previousState=state;state=4/* EscapeNext */;continue;}switch(state){case 0/* Static */:if(char==='/'){if(buffer){consumeBuffer();}finalizeSegment();}else if(char===':'){consumeBuffer();state=1/* Param */;}else{addCharToBuffer();}break;case 4/* EscapeNext */:addCharToBuffer();state=previousState;break;case 1/* Param */:if(char==='('){state=2/* ParamRegExp */;}else if(VALID_PARAM_RE.test(char)){addCharToBuffer();}else{consumeBuffer();state=0/* Static */;// go back one character if we were not modifying
  4718. if(char!=='*'&&char!=='?'&&char!=='+')i--;}break;case 2/* ParamRegExp */:// TODO: is it worth handling nested regexp? like :p(?:prefix_([^/]+)_suffix)
  4719. // it already works by escaping the closing )
  4720. // https://paths.esm.dev/?p=AAMeJbiAwQEcDKbAoAAkP60PG2R6QAvgNaA6AFACM2ABuQBB#
  4721. // is this really something people need since you can also write
  4722. // /prefix_:p()_suffix
  4723. if(char===')'){// handle the escaped )
  4724. if(customRe[customRe.length-1]=='\\')customRe=customRe.slice(0,-1)+char;else state=3/* ParamRegExpEnd */;}else{customRe+=char;}break;case 3/* ParamRegExpEnd */:// same as finalizing a param
  4725. consumeBuffer();state=0/* Static */;// go back one character if we were not modifying
  4726. if(char!=='*'&&char!=='?'&&char!=='+')i--;customRe='';break;default:crash('Unknown state');break;}}if(state===2/* ParamRegExp */)crash("Unfinished custom RegExp for param \"".concat(buffer,"\""));consumeBuffer();finalizeSegment();// tokenCache.set(path, tokens)
  4727. return tokens;}function createRouteRecordMatcher(record,parent,options){var parser=tokensToParser(tokenizePath(record.path),options);var matcher=assign(parser,{record:record,parent:parent,// these needs to be populated by the parent
  4728. children:[],alias:[]});if(parent){// both are aliases or both are not aliases
  4729. // we don't want to mix them because the order is used when
  4730. // passing originalRecord in Matcher.addRoute
  4731. if(!matcher.record.aliasOf===!parent.record.aliasOf)parent.children.push(matcher);}return matcher;}/**
  4732. * Creates a Router Matcher.
  4733. *
  4734. * @internal
  4735. * @param routes - array of initial routes
  4736. * @param globalOptions - global route options
  4737. */function createRouterMatcher(routes,globalOptions){// normalized ordered array of matchers
  4738. var matchers=[];var matcherMap=new Map();globalOptions=mergeOptions({strict:false,end:true,sensitive:false},globalOptions);function getRecordMatcher(name){return matcherMap.get(name);}function addRoute(record,parent,originalRecord){// used later on to remove by name
  4739. var isRootAdd=!originalRecord;var mainNormalizedRecord=normalizeRouteRecord(record);// we might be the child of an alias
  4740. mainNormalizedRecord.aliasOf=originalRecord&&originalRecord.record;var options=mergeOptions(globalOptions,record);// generate an array of records to correctly handle aliases
  4741. var normalizedRecords=[mainNormalizedRecord];if('alias'in record){var aliases=typeof record.alias==='string'?[record.alias]:record.alias;var _iterator23=_createForOfIteratorHelper(aliases),_step24;try{for(_iterator23.s();!(_step24=_iterator23.n()).done;){var alias=_step24.value;normalizedRecords.push(assign({},mainNormalizedRecord,{// this allows us to hold a copy of the `components` option
  4742. // so that async components cache is hold on the original record
  4743. components:originalRecord?originalRecord.record.components:mainNormalizedRecord.components,path:alias,// we might be the child of an alias
  4744. aliasOf:originalRecord?originalRecord.record:mainNormalizedRecord// the aliases are always of the same kind as the original since they
  4745. // are defined on the same record
  4746. }));}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}var matcher;var originalMatcher;for(var _i62=0,_normalizedRecords=normalizedRecords;_i62<_normalizedRecords.length;_i62++){var normalizedRecord=_normalizedRecords[_i62];var path=normalizedRecord.path;// Build up the path for nested routes if the child isn't an absolute
  4747. // route. Only add the / delimiter if the child path isn't empty and if the
  4748. // parent path doesn't have a trailing slash
  4749. if(parent&&path[0]!=='/'){var parentPath=parent.record.path;var connectingSlash=parentPath[parentPath.length-1]==='/'?'':'/';normalizedRecord.path=parent.record.path+(path&&connectingSlash+path);}// create the object before hand so it can be passed to children
  4750. matcher=createRouteRecordMatcher(normalizedRecord,parent,options);// if we are an alias we must tell the original record that we exist
  4751. // so we can be removed
  4752. if(originalRecord){originalRecord.alias.push(matcher);}else{// otherwise, the first record is the original and others are aliases
  4753. originalMatcher=originalMatcher||matcher;if(originalMatcher!==matcher)originalMatcher.alias.push(matcher);// remove the route if named and only for the top record (avoid in nested calls)
  4754. // this works because the original record is the first one
  4755. if(isRootAdd&&record.name&&!isAliasRecord(matcher))removeRoute(record.name);}if('children'in mainNormalizedRecord){var children=mainNormalizedRecord.children;for(var _i63=0;_i63<children.length;_i63++){addRoute(children[_i63],matcher,originalRecord&&originalRecord.children[_i63]);}}// if there was no original record, then the first one was not an alias and all
  4756. // other alias (if any) need to reference this record when adding children
  4757. originalRecord=originalRecord||matcher;// TODO: add normalized records for more flexibility
  4758. // if (parent && isAliasRecord(originalRecord)) {
  4759. // parent.children.push(originalRecord)
  4760. // }
  4761. insertMatcher(matcher);}return originalMatcher?function(){// since other matchers are aliases, they should be removed by the original matcher
  4762. removeRoute(originalMatcher);}:noop;}function removeRoute(matcherRef){if(isRouteName(matcherRef)){var matcher=matcherMap.get(matcherRef);if(matcher){matcherMap.delete(matcherRef);matchers.splice(matchers.indexOf(matcher),1);matcher.children.forEach(removeRoute);matcher.alias.forEach(removeRoute);}}else{var index=matchers.indexOf(matcherRef);if(index>-1){matchers.splice(index,1);if(matcherRef.record.name)matcherMap.delete(matcherRef.record.name);matcherRef.children.forEach(removeRoute);matcherRef.alias.forEach(removeRoute);}}}function getRoutes(){return matchers;}function insertMatcher(matcher){var i=0;// console.log('i is', { i })
  4763. while(i<matchers.length&&comparePathParserScore(matcher,matchers[i])>=0){i++;}// console.log('END i is', { i })
  4764. // while (i < matchers.length && matcher.score <= matchers[i].score) i++
  4765. matchers.splice(i,0,matcher);// only add the original record to the name map
  4766. if(matcher.record.name&&!isAliasRecord(matcher))matcherMap.set(matcher.record.name,matcher);}function resolve(location,currentLocation){var matcher;var params={};var path;var name;if('name'in location&&location.name){matcher=matcherMap.get(location.name);if(!matcher)throw createRouterError(1/* MATCHER_NOT_FOUND */,{location:location});name=matcher.record.name;params=assign(// paramsFromLocation is a new object
  4767. paramsFromLocation(currentLocation.params,// only keep params that exist in the resolved location
  4768. // TODO: only keep optional params coming from a parent record
  4769. matcher.keys.filter(function(k){return!k.optional;}).map(function(k){return k.name;})),location.params);// throws if cannot be stringified
  4770. path=matcher.stringify(params);}else if('path'in location){// no need to resolve the path with the matcher as it was provided
  4771. // this also allows the user to control the encoding
  4772. path=location.path;matcher=matchers.find(function(m){return m.re.test(path);});// matcher should have a value after the loop
  4773. if(matcher){// TODO: dev warning of unused params if provided
  4774. // we know the matcher works because we tested the regexp
  4775. params=matcher.parse(path);name=matcher.record.name;}// location is a relative path
  4776. }else{// match by name or path of current route
  4777. matcher=currentLocation.name?matcherMap.get(currentLocation.name):matchers.find(function(m){return m.re.test(currentLocation.path);});if(!matcher)throw createRouterError(1/* MATCHER_NOT_FOUND */,{location:location,currentLocation:currentLocation});name=matcher.record.name;// since we are navigating to the same location, we don't need to pick the
  4778. // params like when `name` is provided
  4779. params=assign({},currentLocation.params,location.params);path=matcher.stringify(params);}var matched=[];var parentMatcher=matcher;while(parentMatcher){// reversed order so parents are at the beginning
  4780. matched.unshift(parentMatcher.record);parentMatcher=parentMatcher.parent;}return{name:name,path:path,params:params,matched:matched,meta:mergeMetaFields(matched)};}// add initial routes
  4781. routes.forEach(function(route){return addRoute(route);});return{addRoute:addRoute,resolve:resolve,removeRoute:removeRoute,getRoutes:getRoutes,getRecordMatcher:getRecordMatcher};}function paramsFromLocation(params,keys){var newParams={};var _iterator24=_createForOfIteratorHelper(keys),_step25;try{for(_iterator24.s();!(_step25=_iterator24.n()).done;){var key=_step25.value;if(key in params)newParams[key]=params[key];}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}return newParams;}/**
  4782. * Normalizes a RouteRecordRaw. Creates a copy
  4783. *
  4784. * @param record
  4785. * @returns the normalized version
  4786. */function normalizeRouteRecord(record){return{path:record.path,redirect:record.redirect,name:record.name,meta:record.meta||{},aliasOf:undefined,beforeEnter:record.beforeEnter,props:normalizeRecordProps(record),children:record.children||[],instances:{},leaveGuards:new Set(),updateGuards:new Set(),enterCallbacks:{},components:'components'in record?record.components||{}:{default:record.component}};}/**
  4787. * Normalize the optional `props` in a record to always be an object similar to
  4788. * components. Also accept a boolean for components.
  4789. * @param record
  4790. */function normalizeRecordProps(record){var propsObject={};// props does not exist on redirect records but we can set false directly
  4791. var props=record.props||false;if('component'in record){propsObject.default=props;}else{// NOTE: we could also allow a function to be applied to every component.
  4792. // Would need user feedback for use cases
  4793. for(var name in record.components){propsObject[name]=typeof props==='boolean'?props:props[name];}}return propsObject;}/**
  4794. * Checks if a record or any of its parent is an alias
  4795. * @param record
  4796. */function isAliasRecord(record){while(record){if(record.record.aliasOf)return true;record=record.parent;}return false;}/**
  4797. * Merge meta fields of an array of records
  4798. *
  4799. * @param matched - array of matched records
  4800. */function mergeMetaFields(matched){return matched.reduce(function(meta,record){return assign(meta,record.meta);},{});}function mergeOptions(defaults,partialOptions){var options={};for(var key in defaults){options[key]=key in partialOptions?partialOptions[key]:defaults[key];}return options;}/**
  4801. * Encoding Rules ␣ = Space Path: ␣ " < > # ? { } Query: ␣ " < > # & = Hash: ␣ "
  4802. * < > `
  4803. *
  4804. * On top of that, the RFC3986 (https://tools.ietf.org/html/rfc3986#section-2.2)
  4805. * defines some extra characters to be encoded. Most browsers do not encode them
  4806. * in encodeURI https://github.com/whatwg/url/issues/369, so it may be safer to
  4807. * also encode `!'()*`. Leaving unencoded only ASCII alphanumeric(`a-zA-Z0-9`)
  4808. * plus `-._~`. This extra safety should be applied to query by patching the
  4809. * string returned by encodeURIComponent encodeURI also encodes `[\]^`. `\`
  4810. * should be encoded to avoid ambiguity. Browsers (IE, FF, C) transform a `\`
  4811. * into a `/` if directly typed in. The _backtick_ (`````) should also be
  4812. * encoded everywhere because some browsers like FF encode it when directly
  4813. * written while others don't. Safari and IE don't encode ``"<>{}``` in hash.
  4814. */ // const EXTRA_RESERVED_RE = /[!'()*]/g
  4815. // const encodeReservedReplacer = (c: string) => '%' + c.charCodeAt(0).toString(16)
  4816. var HASH_RE=/#/g;// %23
  4817. var AMPERSAND_RE=/&/g;// %26
  4818. var SLASH_RE=/\//g;// %2F
  4819. var EQUAL_RE=/=/g;// %3D
  4820. var IM_RE=/\?/g;// %3F
  4821. var PLUS_RE=/\+/g;// %2B
  4822. /**
  4823. * NOTE: It's not clear to me if we should encode the + symbol in queries, it
  4824. * seems to be less flexible than not doing so and I can't find out the legacy
  4825. * systems requiring this for regular requests like text/html. In the standard,
  4826. * the encoding of the plus character is only mentioned for
  4827. * application/x-www-form-urlencoded
  4828. * (https://url.spec.whatwg.org/#urlencoded-parsing) and most browsers seems lo
  4829. * leave the plus character as is in queries. To be more flexible, we allow the
  4830. * plus character on the query but it can also be manually encoded by the user.
  4831. *
  4832. * Resources:
  4833. * - https://url.spec.whatwg.org/#urlencoded-parsing
  4834. * - https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20
  4835. */var ENC_BRACKET_OPEN_RE=/%5B/g;// [
  4836. var ENC_BRACKET_CLOSE_RE=/%5D/g;// ]
  4837. var ENC_CARET_RE=/%5E/g;// ^
  4838. var ENC_BACKTICK_RE=/%60/g;// `
  4839. var ENC_CURLY_OPEN_RE=/%7B/g;// {
  4840. var ENC_PIPE_RE=/%7C/g;// |
  4841. var ENC_CURLY_CLOSE_RE=/%7D/g;// }
  4842. var ENC_SPACE_RE=/%20/g;// }
  4843. /**
  4844. * Encode characters that need to be encoded on the path, search and hash
  4845. * sections of the URL.
  4846. *
  4847. * @internal
  4848. * @param text - string to encode
  4849. * @returns encoded string
  4850. */function commonEncode(text){return encodeURI(''+text).replace(ENC_PIPE_RE,'|').replace(ENC_BRACKET_OPEN_RE,'[').replace(ENC_BRACKET_CLOSE_RE,']');}/**
  4851. * Encode characters that need to be encoded on the hash section of the URL.
  4852. *
  4853. * @param text - string to encode
  4854. * @returns encoded string
  4855. */function encodeHash(text){return commonEncode(text).replace(ENC_CURLY_OPEN_RE,'{').replace(ENC_CURLY_CLOSE_RE,'}').replace(ENC_CARET_RE,'^');}/**
  4856. * Encode characters that need to be encoded query values on the query
  4857. * section of the URL.
  4858. *
  4859. * @param text - string to encode
  4860. * @returns encoded string
  4861. */function encodeQueryValue(text){return commonEncode(text)// Encode the space as +, encode the + to differentiate it from the space
  4862. .replace(PLUS_RE,'%2B').replace(ENC_SPACE_RE,'+').replace(HASH_RE,'%23').replace(AMPERSAND_RE,'%26').replace(ENC_BACKTICK_RE,'`').replace(ENC_CURLY_OPEN_RE,'{').replace(ENC_CURLY_CLOSE_RE,'}').replace(ENC_CARET_RE,'^');}/**
  4863. * Like `encodeQueryValue` but also encodes the `=` character.
  4864. *
  4865. * @param text - string to encode
  4866. */function encodeQueryKey(text){return encodeQueryValue(text).replace(EQUAL_RE,'%3D');}/**
  4867. * Encode characters that need to be encoded on the path section of the URL.
  4868. *
  4869. * @param text - string to encode
  4870. * @returns encoded string
  4871. */function encodePath(text){return commonEncode(text).replace(HASH_RE,'%23').replace(IM_RE,'%3F');}/**
  4872. * Encode characters that need to be encoded on the path section of the URL as a
  4873. * param. This function encodes everything {@link encodePath} does plus the
  4874. * slash (`/`) character. If `text` is `null` or `undefined`, returns an empty
  4875. * string instead.
  4876. *
  4877. * @param text - string to encode
  4878. * @returns encoded string
  4879. */function encodeParam(text){return text==null?'':encodePath(text).replace(SLASH_RE,'%2F');}/**
  4880. * Decode text using `decodeURIComponent`. Returns the original text if it
  4881. * fails.
  4882. *
  4883. * @param text - string to decode
  4884. * @returns decoded string
  4885. */function decode(text){try{return decodeURIComponent(''+text);}catch(err){}return''+text;}/**
  4886. * Transforms a queryString into a {@link LocationQuery} object. Accept both, a
  4887. * version with the leading `?` and without Should work as URLSearchParams
  4888. * @internal
  4889. *
  4890. * @param search - search string to parse
  4891. * @returns a query object
  4892. */function parseQuery(search){var query={};// avoid creating an object with an empty key and empty value
  4893. // because of split('&')
  4894. if(search===''||search==='?')return query;var hasLeadingIM=search[0]==='?';var searchParams=(hasLeadingIM?search.slice(1):search).split('&');for(var _i64=0;_i64<searchParams.length;++_i64){// pre decode the + into space
  4895. var searchParam=searchParams[_i64].replace(PLUS_RE,' ');// allow the = character
  4896. var eqPos=searchParam.indexOf('=');var key=decode(eqPos<0?searchParam:searchParam.slice(0,eqPos));var value=eqPos<0?null:decode(searchParam.slice(eqPos+1));if(key in query){// an extra variable for ts types
  4897. var currentValue=query[key];if(!Array.isArray(currentValue)){currentValue=query[key]=[currentValue];}currentValue.push(value);}else{query[key]=value;}}return query;}/**
  4898. * Stringifies a {@link LocationQueryRaw} object. Like `URLSearchParams`, it
  4899. * doesn't prepend a `?`
  4900. *
  4901. * @internal
  4902. *
  4903. * @param query - query object to stringify
  4904. * @returns string version of the query without the leading `?`
  4905. */function stringifyQuery(query){var search='';var _loop3=function _loop3(_key26){var value=query[_key26];_key26=encodeQueryKey(_key26);if(value==null){// only null adds the value
  4906. if(value!==undefined){search+=(search.length?'&':'')+_key26;}key=_key26;return"continue";}// keep null values
  4907. var values=Array.isArray(value)?value.map(function(v){return v&&encodeQueryValue(v);}):[value&&encodeQueryValue(value)];values.forEach(function(value){// skip undefined values in arrays as if they were not present
  4908. // smaller code than using filter
  4909. if(value!==undefined){// only append & with non-empty search
  4910. search+=(search.length?'&':'')+_key26;if(value!=null)search+='='+value;}});key=_key26;};for(var key in query){var _ret=_loop3(key);if(_ret==="continue")continue;}return search;}/**
  4911. * Transforms a {@link LocationQueryRaw} into a {@link LocationQuery} by casting
  4912. * numbers into strings, removing keys with an undefined value and replacing
  4913. * undefined with null in arrays
  4914. *
  4915. * @param query - query object to normalize
  4916. * @returns a normalized query object
  4917. */function normalizeQuery(query){var normalizedQuery={};for(var _key27 in query){var value=query[_key27];if(value!==undefined){normalizedQuery[_key27]=Array.isArray(value)?value.map(function(v){return v==null?null:''+v;}):value==null?value:''+value;}}return normalizedQuery;}/**
  4918. * Create a list of callbacks that can be reset. Used to create before and after navigation guards list
  4919. */function useCallbacks(){var handlers=[];function add(handler){handlers.push(handler);return function(){var i=handlers.indexOf(handler);if(i>-1)handlers.splice(i,1);};}function reset(){handlers=[];}return{add:add,list:function list(){return handlers;},reset:reset};}function guardToPromiseFn(guard,to,from,record,name){// keep a reference to the enterCallbackArray to prevent pushing callbacks if a new navigation took place
  4920. var enterCallbackArray=record&&(// name is defined if record is because of the function overload
  4921. record.enterCallbacks[name]=record.enterCallbacks[name]||[]);return function(){return new Promise(function(resolve,reject){var next=function next(valid){if(valid===false)reject(createRouterError(4/* NAVIGATION_ABORTED */,{from:from,to:to}));else if(valid instanceof Error){reject(valid);}else if(isRouteLocation(valid)){reject(createRouterError(2/* NAVIGATION_GUARD_REDIRECT */,{from:to,to:valid}));}else{if(enterCallbackArray&&// since enterCallbackArray is truthy, both record and name also are
  4922. record.enterCallbacks[name]===enterCallbackArray&&typeof valid==='function')enterCallbackArray.push(valid);resolve();}};// wrapping with Promise.resolve allows it to work with both async and sync guards
  4923. var guardReturn=guard.call(record&&record.instances[name],to,from,next);var guardCall=Promise.resolve(guardReturn);if(guard.length<3)guardCall=guardCall.then(next);guardCall.catch(function(err){return reject(err);});});};}function extractComponentsGuards(matched,guardType,to,from){var guards=[];var _iterator25=_createForOfIteratorHelper(matched),_step26;try{var _loop4=function _loop4(){var record=_step26.value;var _loop5=function _loop5(name){var rawComponent=record.components[name];// skip update and leave guards if the route component is not mounted
  4924. if(guardType!=='beforeRouteEnter'&&!record.instances[name])return"continue";if(isRouteComponent(rawComponent)){// __vccOpts is added by vue-class-component and contain the regular options
  4925. var options=rawComponent.__vccOpts||rawComponent;var guard=options[guardType];guard&&guards.push(guardToPromiseFn(guard,to,from,record,name));}else{// start requesting the chunk already
  4926. var componentPromise=rawComponent();guards.push(function(){return componentPromise.then(function(resolved){if(!resolved)return Promise.reject(new Error("Couldn't resolve component \"".concat(name,"\" at \"").concat(record.path,"\"")));var resolvedComponent=isESModule(resolved)?resolved.default:resolved;// replace the function with the resolved component
  4927. record.components[name]=resolvedComponent;// __vccOpts is added by vue-class-component and contain the regular options
  4928. var options=resolvedComponent.__vccOpts||resolvedComponent;var guard=options[guardType];return guard&&guardToPromiseFn(guard,to,from,record,name)();});});}};for(var name in record.components){var _ret2=_loop5(name);if(_ret2==="continue")continue;}};for(_iterator25.s();!(_step26=_iterator25.n()).done;){_loop4();}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return guards;}/**
  4929. * Allows differentiating lazy components from functional components and vue-class-component
  4930. *
  4931. * @param component
  4932. */function isRouteComponent(component){return _typeof2(component)==='object'||'displayName'in component||'props'in component||'__vccOpts'in component;}// TODO: we could allow currentRoute as a prop to expose `isActive` and
  4933. // `isExactActive` behavior should go through an RFC
  4934. function useLink(props){var router=inject(routerKey);var currentRoute=inject(routeLocationKey);var route=computed(function(){return router.resolve(unref(props.to));});var activeRecordIndex=computed(function(){var matched=route.value.matched;var length=matched.length;var routeMatched=matched[length-1];var currentMatched=currentRoute.matched;if(!routeMatched||!currentMatched.length)return-1;var index=currentMatched.findIndex(isSameRouteRecord.bind(null,routeMatched));if(index>-1)return index;// possible parent record
  4935. var parentRecordPath=getOriginalPath(matched[length-2]);return(// we are dealing with nested routes
  4936. length>1&&// if the parent and matched route have the same path, this link is
  4937. // referring to the empty child. Or we currently are on a different
  4938. // child of the same parent
  4939. getOriginalPath(routeMatched)===parentRecordPath&&// avoid comparing the child with its parent
  4940. currentMatched[currentMatched.length-1].path!==parentRecordPath?currentMatched.findIndex(isSameRouteRecord.bind(null,matched[length-2])):index);});var isActive=computed(function(){return activeRecordIndex.value>-1&&includesParams(currentRoute.params,route.value.params);});var isExactActive=computed(function(){return activeRecordIndex.value>-1&&activeRecordIndex.value===currentRoute.matched.length-1&&isSameRouteLocationParams(currentRoute.params,route.value.params);});function navigate(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(guardEvent(e)){return router[unref(props.replace)?'replace':'push'](unref(props.to)// avoid uncaught errors are they are logged anyway
  4941. ).catch(noop);}return Promise.resolve();}return{route:route,href:computed(function(){return route.value.href;}),isActive:isActive,isExactActive:isExactActive,navigate:navigate};}var RouterLinkImpl=/*#__PURE__*/defineComponent({name:'RouterLink',props:{to:{type:[String,Object],required:true},replace:Boolean,activeClass:String,// inactiveClass: String,
  4942. exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:'page'}},useLink:useLink,setup:function setup(props,_ref206){var slots=_ref206.slots;var link=reactive(useLink(props));var _inject24=inject(routerKey),options=_inject24.options;var elClass=computed(function(){var _ref207;return _ref207={},_defineProperty2(_ref207,getLinkClass(props.activeClass,options.linkActiveClass,'router-link-active'),link.isActive),_defineProperty2(_ref207,getLinkClass(props.exactActiveClass,options.linkExactActiveClass,'router-link-exact-active'),link.isExactActive),_ref207;});return function(){var children=slots.default&&slots.default(link);return props.custom?children:h('a',{'aria-current':link.isExactActive?props.ariaCurrentValue:null,href:link.href,// this would override user added attrs but Vue will still add
  4943. // the listener so we end up triggering both
  4944. onClick:link.navigate,class:elClass.value},children);};}});// export the public type for h/tsx inference
  4945. // also to avoid inline import() in generated d.ts files
  4946. /**
  4947. * Component to render a link that triggers a navigation on click.
  4948. */var RouterLink=exports('R',RouterLinkImpl);function guardEvent(e){// don't redirect with control keys
  4949. if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;// don't redirect when preventDefault called
  4950. if(e.defaultPrevented)return;// don't redirect on right click
  4951. if(e.button!==undefined&&e.button!==0)return;// don't redirect if `target="_blank"`
  4952. // @ts-expect-error getAttribute does exist
  4953. if(e.currentTarget&&e.currentTarget.getAttribute){// @ts-expect-error getAttribute exists
  4954. var target=e.currentTarget.getAttribute('target');if(/\b_blank\b/i.test(target))return;}// this may be a Weex event which doesn't have this method
  4955. if(e.preventDefault)e.preventDefault();return true;}function includesParams(outer,inner){var _loop6=function _loop6(_key28){var innerValue=inner[_key28];var outerValue=outer[_key28];if(typeof innerValue==='string'){if(innerValue!==outerValue)return{v:false};}else{if(!Array.isArray(outerValue)||outerValue.length!==innerValue.length||innerValue.some(function(value,i){return value!==outerValue[i];}))return{v:false};}};for(var _key28 in inner){var _ret3=_loop6(_key28);if(_typeof2(_ret3)==="object")return _ret3.v;}return true;}/**
  4956. * Get the original path value of a record by following its aliasOf
  4957. * @param record
  4958. */function getOriginalPath(record){return record?record.aliasOf?record.aliasOf.path:record.path:'';}/**
  4959. * Utility class to get the active class based on defaults.
  4960. * @param propClass
  4961. * @param globalClass
  4962. * @param defaultClass
  4963. */var getLinkClass=function getLinkClass(propClass,globalClass,defaultClass){return propClass!=null?propClass:globalClass!=null?globalClass:defaultClass;};var RouterViewImpl=/*#__PURE__*/defineComponent({name:'RouterView',// #674 we manually inherit them
  4964. inheritAttrs:false,props:{name:{type:String,default:'default'},route:Object},setup:function setup(props,_ref208){var attrs=_ref208.attrs,slots=_ref208.slots;var injectedRoute=inject(routerViewLocationKey);var routeToDisplay=computed(function(){return props.route||injectedRoute.value;});var depth=inject(viewDepthKey,0);var matchedRouteRef=computed(function(){return routeToDisplay.value.matched[depth];});provide(viewDepthKey,depth+1);provide(matchedRouteKey,matchedRouteRef);provide(routerViewLocationKey,routeToDisplay);var viewRef=ref();// watch at the same time the component instance, the route record we are
  4965. // rendering, and the name
  4966. watch(function(){return[viewRef.value,matchedRouteRef.value,props.name];},function(_ref209,_ref210){var _ref211=_slicedToArray(_ref209,3),instance=_ref211[0],to=_ref211[1],name=_ref211[2];var _ref212=_slicedToArray(_ref210,3),oldInstance=_ref212[0],from=_ref212[1],oldName=_ref212[2];// copy reused instances
  4967. if(to){// this will update the instance for new instances as well as reused
  4968. // instances when navigating to a new route
  4969. to.instances[name]=instance;// the component instance is reused for a different route or name so
  4970. // we copy any saved update or leave guards. With async setup, the
  4971. // mounting component will mount before the matchedRoute changes,
  4972. // making instance === oldInstance, so we check if guards have been
  4973. // added before. This works because we remove guards when
  4974. // unmounting/deactivating components
  4975. if(from&&from!==to&&instance&&instance===oldInstance){if(!to.leaveGuards.size){to.leaveGuards=from.leaveGuards;}if(!to.updateGuards.size){to.updateGuards=from.updateGuards;}}}// trigger beforeRouteEnter next callbacks
  4976. if(instance&&to&&(// if there is no instance but to and from are the same this might be
  4977. // the first visit
  4978. !from||!isSameRouteRecord(to,from)||!oldInstance)){(to.enterCallbacks[name]||[]).forEach(function(callback){return callback(instance);});}},{flush:'post'});return function(){var route=routeToDisplay.value;var matchedRoute=matchedRouteRef.value;var ViewComponent=matchedRoute&&matchedRoute.components[props.name];// we need the value at the time we render because when we unmount, we
  4979. // navigated to a different location so the value is different
  4980. var currentName=props.name;if(!ViewComponent){return normalizeSlot(slots.default,{Component:ViewComponent,route:route});}// props from route configuration
  4981. var routePropsOption=matchedRoute.props[props.name];var routeProps=routePropsOption?routePropsOption===true?route.params:typeof routePropsOption==='function'?routePropsOption(route):routePropsOption:null;var onVnodeUnmounted=function onVnodeUnmounted(vnode){// remove the instance reference to prevent leak
  4982. if(vnode.component.isUnmounted){matchedRoute.instances[currentName]=null;}};var component=h(ViewComponent,assign({},routeProps,attrs,{onVnodeUnmounted:onVnodeUnmounted,ref:viewRef}));return(// pass the vnode to the slot as a prop.
  4983. // h and <component :is="..."> both accept vnodes
  4984. normalizeSlot(slots.default,{Component:component,route:route})||component);};}});function normalizeSlot(slot,data){if(!slot)return null;var slotContent=slot(data);return slotContent.length===1?slotContent[0]:slotContent;}// export the public type for h/tsx inference
  4985. // also to avoid inline import() in generated d.ts files
  4986. /**
  4987. * Component to display the current route the user is at.
  4988. */var RouterView=exports('J',RouterViewImpl);/**
  4989. * Creates a Router instance that can be used by a Vue app.
  4990. *
  4991. * @param options - {@link RouterOptions}
  4992. */function createRouter(options){var matcher=createRouterMatcher(options.routes,options);var parseQuery$1=options.parseQuery||parseQuery;var stringifyQuery$1=options.stringifyQuery||stringifyQuery;var routerHistory=options.history;var beforeGuards=useCallbacks();var beforeResolveGuards=useCallbacks();var afterGuards=useCallbacks();var currentRoute=shallowRef(START_LOCATION_NORMALIZED);var pendingLocation=START_LOCATION_NORMALIZED;// leave the scrollRestoration if no scrollBehavior is provided
  4993. if(isBrowser&&options.scrollBehavior&&'scrollRestoration'in history){history.scrollRestoration='manual';}var normalizeParams=applyToParams.bind(null,function(paramValue){return''+paramValue;});var encodeParams=applyToParams.bind(null,encodeParam);var decodeParams=// @ts-expect-error: intentionally avoid the type check
  4994. applyToParams.bind(null,decode);function addRoute(parentOrRoute,route){var parent;var record;if(isRouteName(parentOrRoute)){parent=matcher.getRecordMatcher(parentOrRoute);record=route;}else{record=parentOrRoute;}return matcher.addRoute(record,parent);}function removeRoute(name){var recordMatcher=matcher.getRecordMatcher(name);if(recordMatcher){matcher.removeRoute(recordMatcher);}}function getRoutes(){return matcher.getRoutes().map(function(routeMatcher){return routeMatcher.record;});}function hasRoute(name){return!!matcher.getRecordMatcher(name);}function resolve(rawLocation,currentLocation){// const objectLocation = routerLocationAsObject(rawLocation)
  4995. // we create a copy to modify it later
  4996. currentLocation=assign({},currentLocation||currentRoute.value);if(typeof rawLocation==='string'){var locationNormalized=parseURL(parseQuery$1,rawLocation,currentLocation.path);var _matchedRoute=matcher.resolve({path:locationNormalized.path},currentLocation);var _href=routerHistory.createHref(locationNormalized.fullPath);// locationNormalized is always a new object
  4997. return assign(locationNormalized,_matchedRoute,{params:decodeParams(_matchedRoute.params),hash:decode(locationNormalized.hash),redirectedFrom:undefined,href:_href});}var matcherLocation;// path could be relative in object as well
  4998. if('path'in rawLocation){matcherLocation=assign({},rawLocation,{path:parseURL(parseQuery$1,rawLocation.path,currentLocation.path).path});}else{// remove any nullish param
  4999. var targetParams=assign({},rawLocation.params);for(var _key29 in targetParams){if(targetParams[_key29]==null){delete targetParams[_key29];}}// pass encoded values to the matcher so it can produce encoded path and fullPath
  5000. matcherLocation=assign({},rawLocation,{params:encodeParams(rawLocation.params)});// current location params are decoded, we need to encode them in case the
  5001. // matcher merges the params
  5002. currentLocation.params=encodeParams(currentLocation.params);}var matchedRoute=matcher.resolve(matcherLocation,currentLocation);var hash=rawLocation.hash||'';// decoding them) the matcher might have merged current location params so
  5003. // we need to run the decoding again
  5004. matchedRoute.params=normalizeParams(decodeParams(matchedRoute.params));var fullPath=stringifyURL(stringifyQuery$1,assign({},rawLocation,{hash:encodeHash(hash),path:matchedRoute.path}));var href=routerHistory.createHref(fullPath);return assign({fullPath:fullPath,// keep the hash encoded so fullPath is effectively path + encodedQuery +
  5005. // hash
  5006. hash:hash,query:// if the user is using a custom query lib like qs, we might have
  5007. // nested objects, so we keep the query as is, meaning it can contain
  5008. // numbers at `$route.query`, but at the point, the user will have to
  5009. // use their own type anyway.
  5010. // https://github.com/vuejs/vue-router-next/issues/328#issuecomment-649481567
  5011. stringifyQuery$1===stringifyQuery?normalizeQuery(rawLocation.query):rawLocation.query||{}},matchedRoute,{redirectedFrom:undefined,href:href});}function locationAsObject(to){return typeof to==='string'?parseURL(parseQuery$1,to,currentRoute.value.path):assign({},to);}function checkCanceledNavigation(to,from){if(pendingLocation!==to){return createRouterError(8/* NAVIGATION_CANCELLED */,{from:from,to:to});}}function push(to){return pushWithRedirect(to);}function replace(to){return push(assign(locationAsObject(to),{replace:true}));}function handleRedirectRecord(to){var lastMatched=to.matched[to.matched.length-1];if(lastMatched&&lastMatched.redirect){var redirect=lastMatched.redirect;var newTargetLocation=typeof redirect==='function'?redirect(to):redirect;if(typeof newTargetLocation==='string'){newTargetLocation=newTargetLocation.includes('?')||newTargetLocation.includes('#')?newTargetLocation=locationAsObject(newTargetLocation):// force empty params
  5012. {path:newTargetLocation};// @ts-expect-error: force empty params when a string is passed to let
  5013. // the router parse them again
  5014. newTargetLocation.params={};}return assign({query:to.query,hash:to.hash,params:to.params},newTargetLocation);}}function pushWithRedirect(to,redirectedFrom){var targetLocation=pendingLocation=resolve(to);var from=currentRoute.value;var data=to.state;var force=to.force;// to could be a string where `replace` is a function
  5015. var replace=to.replace===true;var shouldRedirect=handleRedirectRecord(targetLocation);if(shouldRedirect)return pushWithRedirect(assign(locationAsObject(shouldRedirect),{state:data,force:force,replace:replace}),// keep original redirectedFrom if it exists
  5016. redirectedFrom||targetLocation);// if it was a redirect we already called `pushWithRedirect` above
  5017. var toLocation=targetLocation;toLocation.redirectedFrom=redirectedFrom;var failure;if(!force&&isSameRouteLocation(stringifyQuery$1,from,targetLocation)){failure=createRouterError(16/* NAVIGATION_DUPLICATED */,{to:toLocation,from:from});// trigger scroll to allow scrolling to the same anchor
  5018. handleScroll(from,from,// this is a push, the only way for it to be triggered from a
  5019. // history.listen is with a redirect, which makes it become a push
  5020. true,// This cannot be the first navigation because the initial location
  5021. // cannot be manually navigated to
  5022. false);}return(failure?Promise.resolve(failure):navigate(toLocation,from)).catch(function(error){return isNavigationFailure(error)?error:// reject any unknown error
  5023. triggerError(error,toLocation,from);}).then(function(failure){if(failure){if(isNavigationFailure(failure,2/* NAVIGATION_GUARD_REDIRECT */)){return pushWithRedirect(// keep options
  5024. assign(locationAsObject(failure.to),{state:data,force:force,replace:replace}),// preserve the original redirectedFrom if any
  5025. redirectedFrom||toLocation);}}else{// if we fail we don't finalize the navigation
  5026. failure=finalizeNavigation(toLocation,from,true,replace,data);}triggerAfterEach(toLocation,from,failure);return failure;});}/**
  5027. * Helper to reject and skip all navigation guards if a new navigation happened
  5028. * @param to
  5029. * @param from
  5030. */function checkCanceledNavigationAndReject(to,from){var error=checkCanceledNavigation(to,from);return error?Promise.reject(error):Promise.resolve();}// TODO: refactor the whole before guards by internally using router.beforeEach
  5031. function navigate(to,from){var guards;var _extractChangingRecor=extractChangingRecords(to,from),_extractChangingRecor2=_slicedToArray(_extractChangingRecor,3),leavingRecords=_extractChangingRecor2[0],updatingRecords=_extractChangingRecor2[1],enteringRecords=_extractChangingRecor2[2];// all components here have been resolved once because we are leaving
  5032. guards=extractComponentsGuards(leavingRecords.reverse(),'beforeRouteLeave',to,from);// leavingRecords is already reversed
  5033. var _iterator26=_createForOfIteratorHelper(leavingRecords),_step27;try{for(_iterator26.s();!(_step27=_iterator26.n()).done;){var record=_step27.value;record.leaveGuards.forEach(function(guard){guards.push(guardToPromiseFn(guard,to,from));});}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}var canceledNavigationCheck=checkCanceledNavigationAndReject.bind(null,to,from);guards.push(canceledNavigationCheck);// run the queue of per route beforeRouteLeave guards
  5034. return runGuardQueue(guards).then(function(){// check global guards beforeEach
  5035. guards=[];var _iterator27=_createForOfIteratorHelper(beforeGuards.list()),_step28;try{for(_iterator27.s();!(_step28=_iterator27.n()).done;){var guard=_step28.value;guards.push(guardToPromiseFn(guard,to,from));}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}guards.push(canceledNavigationCheck);return runGuardQueue(guards);}).then(function(){// check in components beforeRouteUpdate
  5036. guards=extractComponentsGuards(updatingRecords,'beforeRouteUpdate',to,from);var _iterator28=_createForOfIteratorHelper(updatingRecords),_step29;try{for(_iterator28.s();!(_step29=_iterator28.n()).done;){var record=_step29.value;record.updateGuards.forEach(function(guard){guards.push(guardToPromiseFn(guard,to,from));});}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}guards.push(canceledNavigationCheck);// run the queue of per route beforeEnter guards
  5037. return runGuardQueue(guards);}).then(function(){// check the route beforeEnter
  5038. guards=[];var _iterator29=_createForOfIteratorHelper(to.matched),_step30;try{for(_iterator29.s();!(_step30=_iterator29.n()).done;){var record=_step30.value;// do not trigger beforeEnter on reused views
  5039. if(record.beforeEnter&&!from.matched.includes(record)){if(Array.isArray(record.beforeEnter)){var _iterator30=_createForOfIteratorHelper(record.beforeEnter),_step31;try{for(_iterator30.s();!(_step31=_iterator30.n()).done;){var beforeEnter=_step31.value;guards.push(guardToPromiseFn(beforeEnter,to,from));}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}}else{guards.push(guardToPromiseFn(record.beforeEnter,to,from));}}}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}guards.push(canceledNavigationCheck);// run the queue of per route beforeEnter guards
  5040. return runGuardQueue(guards);}).then(function(){// NOTE: at this point to.matched is normalized and does not contain any () => Promise<Component>
  5041. // clear existing enterCallbacks, these are added by extractComponentsGuards
  5042. to.matched.forEach(function(record){return record.enterCallbacks={};});// check in-component beforeRouteEnter
  5043. guards=extractComponentsGuards(enteringRecords,'beforeRouteEnter',to,from);guards.push(canceledNavigationCheck);// run the queue of per route beforeEnter guards
  5044. return runGuardQueue(guards);}).then(function(){// check global guards beforeResolve
  5045. guards=[];var _iterator31=_createForOfIteratorHelper(beforeResolveGuards.list()),_step32;try{for(_iterator31.s();!(_step32=_iterator31.n()).done;){var guard=_step32.value;guards.push(guardToPromiseFn(guard,to,from));}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}guards.push(canceledNavigationCheck);return runGuardQueue(guards);})// catch any navigation canceled
  5046. .catch(function(err){return isNavigationFailure(err,8/* NAVIGATION_CANCELLED */)?err:Promise.reject(err);});}function triggerAfterEach(to,from,failure){// navigation is confirmed, call afterGuards
  5047. // TODO: wrap with error handlers
  5048. var _iterator32=_createForOfIteratorHelper(afterGuards.list()),_step33;try{for(_iterator32.s();!(_step33=_iterator32.n()).done;){var guard=_step33.value;guard(to,from,failure);}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}}/**
  5049. * - Cleans up any navigation guards
  5050. * - Changes the url if necessary
  5051. * - Calls the scrollBehavior
  5052. */function finalizeNavigation(toLocation,from,isPush,replace,data){// a more recent navigation took place
  5053. var error=checkCanceledNavigation(toLocation,from);if(error)return error;// only consider as push if it's not the first navigation
  5054. var isFirstNavigation=from===START_LOCATION_NORMALIZED;var state=!isBrowser?{}:history.state;// change URL only if the user did a push/replace and if it's not the initial navigation because
  5055. // it's just reflecting the url
  5056. if(isPush){// on the initial navigation, we want to reuse the scroll position from
  5057. // history state if it exists
  5058. if(replace||isFirstNavigation)routerHistory.replace(toLocation.fullPath,assign({scroll:isFirstNavigation&&state&&state.scroll},data));else routerHistory.push(toLocation.fullPath,data);}// accept current navigation
  5059. currentRoute.value=toLocation;handleScroll(toLocation,from,isPush,isFirstNavigation);markAsReady();}var removeHistoryListener;// attach listener to history to trigger navigations
  5060. function setupListeners(){removeHistoryListener=routerHistory.listen(function(to,_from,info){// cannot be a redirect route because it was in history
  5061. var toLocation=resolve(to);// due to dynamic routing, and to hash history with manual navigation
  5062. // (manually changing the url or calling history.hash = '#/somewhere'),
  5063. // there could be a redirect record in history
  5064. var shouldRedirect=handleRedirectRecord(toLocation);if(shouldRedirect){pushWithRedirect(assign(shouldRedirect,{replace:true}),toLocation).catch(noop);return;}pendingLocation=toLocation;var from=currentRoute.value;// TODO: should be moved to web history?
  5065. if(isBrowser){saveScrollPosition(getScrollKey(from.fullPath,info.delta),computeScrollPosition());}navigate(toLocation,from).catch(function(error){if(isNavigationFailure(error,4/* NAVIGATION_ABORTED */|8/* NAVIGATION_CANCELLED */)){return error;}if(isNavigationFailure(error,2/* NAVIGATION_GUARD_REDIRECT */)){// Here we could call if (info.delta) routerHistory.go(-info.delta,
  5066. // false) but this is bug prone as we have no way to wait the
  5067. // navigation to be finished before calling pushWithRedirect. Using
  5068. // a setTimeout of 16ms seems to work but there is not guarantee for
  5069. // it to work on every browser. So Instead we do not restore the
  5070. // history entry and trigger a new navigation as requested by the
  5071. // navigation guard.
  5072. // the error is already handled by router.push we just want to avoid
  5073. // logging the error
  5074. pushWithRedirect(error.to,toLocation// avoid an uncaught rejection, let push call triggerError
  5075. ).then(function(failure){// manual change in hash history #916 ending up in the URL not
  5076. // changing but it was changed by the manual url change, so we
  5077. // need to manually change it ourselves
  5078. if(isNavigationFailure(failure,4/* NAVIGATION_ABORTED */|16/* NAVIGATION_DUPLICATED */)&&!info.delta&&info.type===NavigationType.pop){routerHistory.go(-1,false);}}).catch(noop);// avoid the then branch
  5079. return Promise.reject();}// do not restore history on unknown direction
  5080. if(info.delta)routerHistory.go(-info.delta,false);// unrecognized error, transfer to the global handler
  5081. return triggerError(error,toLocation,from);}).then(function(failure){failure=failure||finalizeNavigation(// after navigation, all matched components are resolved
  5082. toLocation,from,false);// revert the navigation
  5083. if(failure){if(info.delta){routerHistory.go(-info.delta,false);}else if(info.type===NavigationType.pop&&isNavigationFailure(failure,4/* NAVIGATION_ABORTED */|16/* NAVIGATION_DUPLICATED */)){// manual change in hash history #916
  5084. // it's like a push but lacks the information of the direction
  5085. routerHistory.go(-1,false);}}triggerAfterEach(toLocation,from,failure);}).catch(noop);});}// Initialization and Errors
  5086. var readyHandlers=useCallbacks();var errorHandlers=useCallbacks();var ready;/**
  5087. * Trigger errorHandlers added via onError and throws the error as well
  5088. *
  5089. * @param error - error to throw
  5090. * @param to - location we were navigating to when the error happened
  5091. * @param from - location we were navigating from when the error happened
  5092. * @returns the error as a rejected promise
  5093. */function triggerError(error,to,from){markAsReady(error);var list=errorHandlers.list();if(list.length){list.forEach(function(handler){return handler(error,to,from);});}else{console.error(error);}return Promise.reject(error);}function isReady(){if(ready&&currentRoute.value!==START_LOCATION_NORMALIZED)return Promise.resolve();return new Promise(function(resolve,reject){readyHandlers.add([resolve,reject]);});}/**
  5094. * Mark the router as ready, resolving the promised returned by isReady(). Can
  5095. * only be called once, otherwise does nothing.
  5096. * @param err - optional error
  5097. */function markAsReady(err){if(ready)return;ready=true;setupListeners();readyHandlers.list().forEach(function(_ref213){var _ref214=_slicedToArray(_ref213,2),resolve=_ref214[0],reject=_ref214[1];return err?reject(err):resolve();});readyHandlers.reset();}// Scroll behavior
  5098. function handleScroll(to,from,isPush,isFirstNavigation){var scrollBehavior=options.scrollBehavior;if(!isBrowser||!scrollBehavior)return Promise.resolve();var scrollPosition=!isPush&&getSavedScrollPosition(getScrollKey(to.fullPath,0))||(isFirstNavigation||!isPush)&&history.state&&history.state.scroll||null;return nextTick().then(function(){return scrollBehavior(to,from,scrollPosition);}).then(function(position){return position&&scrollToPosition(position);}).catch(function(err){return triggerError(err,to,from);});}var go=function go(delta){return routerHistory.go(delta);};var started;var installedApps=new Set();var router={currentRoute:currentRoute,addRoute:addRoute,removeRoute:removeRoute,hasRoute:hasRoute,getRoutes:getRoutes,resolve:resolve,options:options,push:push,replace:replace,go:go,back:function back(){return go(-1);},forward:function forward(){return go(1);},beforeEach:beforeGuards.add,beforeResolve:beforeResolveGuards.add,afterEach:afterGuards.add,onError:errorHandlers.add,isReady:isReady,install:function install(app){var router=this;app.component('RouterLink',RouterLink);app.component('RouterView',RouterView);app.config.globalProperties.$router=router;Object.defineProperty(app.config.globalProperties,'$route',{enumerable:true,get:function get(){return unref(currentRoute);}});// this initial navigation is only necessary on client, on server it doesn't
  5099. // make sense because it will create an extra unnecessary navigation and could
  5100. // lead to problems
  5101. if(isBrowser&&// used for the initial navigation client side to avoid pushing
  5102. // multiple times when the router is used in multiple apps
  5103. !started&&currentRoute.value===START_LOCATION_NORMALIZED){// see above
  5104. started=true;push(routerHistory.location).catch(function(err){});}var reactiveRoute={};var _loop7=function _loop7(_key30){// @ts-expect-error: the key matches
  5105. reactiveRoute[_key30]=computed(function(){return currentRoute.value[_key30];});};for(var _key30 in START_LOCATION_NORMALIZED){_loop7(_key30);}app.provide(routerKey,router);app.provide(routeLocationKey,reactive(reactiveRoute));app.provide(routerViewLocationKey,currentRoute);var unmountApp=app.unmount;installedApps.add(app);app.unmount=function(){installedApps.delete(app);// the router is not attached to an app anymore
  5106. if(installedApps.size<1){// invalidate the current navigation
  5107. pendingLocation=START_LOCATION_NORMALIZED;removeHistoryListener&&removeHistoryListener();currentRoute.value=START_LOCATION_NORMALIZED;started=false;ready=false;}unmountApp();};}};return router;}function runGuardQueue(guards){return guards.reduce(function(promise,guard){return promise.then(function(){return guard();});},Promise.resolve());}function extractChangingRecords(to,from){var leavingRecords=[];var updatingRecords=[];var enteringRecords=[];var len=Math.max(from.matched.length,to.matched.length);var _loop8=function _loop8(_i65){var recordFrom=from.matched[_i65];if(recordFrom){if(to.matched.find(function(record){return isSameRouteRecord(record,recordFrom);}))updatingRecords.push(recordFrom);else leavingRecords.push(recordFrom);}var recordTo=to.matched[_i65];if(recordTo){// the type doesn't matter because we are comparing per reference
  5108. if(!from.matched.find(function(record){return isSameRouteRecord(record,recordTo);})){enteringRecords.push(recordTo);}}};for(var _i65=0;_i65<len;_i65++){_loop8(_i65);}return[leavingRecords,updatingRecords,enteringRecords];}/**
  5109. * Returns the router instance. Equivalent to using `$router` inside
  5110. * templates.
  5111. */function useRouter(){return inject(routerKey);}/**
  5112. * Returns the current route location. Equivalent to using `$route` inside
  5113. * templates.
  5114. */function useRoute(){return inject(routeLocationKey);}/*!
  5115. * qrcode.vue v3.3.3
  5116. * A Vue.js component to generate QRCode.
  5117. * © 2017-2021 @scopewu(https://github.com/scopewu)
  5118. * MIT License.
  5119. */ /*! *****************************************************************************
  5120. Copyright (c) Microsoft Corporation.
  5121. Permission to use, copy, modify, and/or distribute this software for any
  5122. purpose with or without fee is hereby granted.
  5123. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  5124. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  5125. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  5126. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  5127. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  5128. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  5129. PERFORMANCE OF THIS SOFTWARE.
  5130. ***************************************************************************** */var _assign2=function __assign(){_assign2=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s){if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}}return t;};return _assign2.apply(this,arguments);};var mode$1={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3};var mode=mode$1;function QR8bitByte(data){this.mode=mode.MODE_8BIT_BYTE;this.data=data;}QR8bitByte.prototype={getLength:function getLength(buffer){return this.data.length;},write:function write(buffer){for(var i=0;i<this.data.length;i++){// not JIS ...
  5131. buffer.put(this.data.charCodeAt(i),8);}}};var _8BitByte=QR8bitByte;var ErrorCorrectLevel={L:1,M:0,Q:3,H:2};// ErrorCorrectLevel
  5132. var ECL=ErrorCorrectLevel;function QRRSBlock(totalCount,dataCount){this.totalCount=totalCount;this.dataCount=dataCount;}QRRSBlock.RS_BLOCK_TABLE=[// L
  5133. // M
  5134. // Q
  5135. // H
  5136. // 1
  5137. [1,26,19],[1,26,16],[1,26,13],[1,26,9],// 2
  5138. [1,44,34],[1,44,28],[1,44,22],[1,44,16],// 3
  5139. [1,70,55],[1,70,44],[2,35,17],[2,35,13],// 4
  5140. [1,100,80],[2,50,32],[2,50,24],[4,25,9],// 5
  5141. [1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],// 6
  5142. [2,86,68],[4,43,27],[4,43,19],[4,43,15],// 7
  5143. [2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],// 8
  5144. [2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],// 9
  5145. [2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],// 10
  5146. [2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],// 11
  5147. [4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],// 12
  5148. [2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],// 13
  5149. [4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],// 14
  5150. [3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],// 15
  5151. [5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],// 16
  5152. [5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],// 17
  5153. [1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],// 18
  5154. [5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],// 19
  5155. [3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],// 20
  5156. [3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],// 21
  5157. [4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],// 22
  5158. [2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],// 23
  5159. [4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],// 24
  5160. [6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],// 25
  5161. [8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],// 26
  5162. [10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],// 27
  5163. [8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],// 28
  5164. [3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],// 29
  5165. [7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],// 30
  5166. [5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],// 31
  5167. [13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],// 32
  5168. [17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],// 33
  5169. [17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],// 34
  5170. [13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],// 35
  5171. [12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],// 36
  5172. [6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],// 37
  5173. [17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],// 38
  5174. [4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],// 39
  5175. [20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],// 40
  5176. [19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];QRRSBlock.getRSBlocks=function(typeNumber,errorCorrectLevel){var rsBlock=QRRSBlock.getRsBlockTable(typeNumber,errorCorrectLevel);if(rsBlock==undefined){throw new Error("bad rs block @ typeNumber:"+typeNumber+"/errorCorrectLevel:"+errorCorrectLevel);}var length=rsBlock.length/3;var list=new Array();for(var i=0;i<length;i++){var count=rsBlock[i*3+0];var totalCount=rsBlock[i*3+1];var dataCount=rsBlock[i*3+2];for(var j=0;j<count;j++){list.push(new QRRSBlock(totalCount,dataCount));}}return list;};QRRSBlock.getRsBlockTable=function(typeNumber,errorCorrectLevel){switch(errorCorrectLevel){case ECL.L:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+0];case ECL.M:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+1];case ECL.Q:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+2];case ECL.H:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+3];default:return undefined;}};var RSBlock$1=QRRSBlock;function QRBitBuffer(){this.buffer=new Array();this.length=0;}QRBitBuffer.prototype={get:function get(index){var bufIndex=Math.floor(index/8);return(this.buffer[bufIndex]>>>7-index%8&1)==1;},put:function put(num,length){for(var i=0;i<length;i++){this.putBit((num>>>length-i-1&1)==1);}},getLengthInBits:function getLengthInBits(){return this.length;},putBit:function putBit(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0);}if(bit){this.buffer[bufIndex]|=0x80>>>this.length%8;}this.length++;}};var BitBuffer$1=QRBitBuffer;var QRMath={glog:function glog(n){if(n<1){throw new Error("glog("+n+")");}return QRMath.LOG_TABLE[n];},gexp:function gexp(n){while(n<0){n+=255;}while(n>=256){n-=255;}return QRMath.EXP_TABLE[n];},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<<i;}for(var i=8;i<256;i++){QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];}for(var i=0;i<255;i++){QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;}var math$2=QRMath;var math$1=math$2;function QRPolynomial(num,shift){if(num.length==undefined){throw new Error(num.length+"/"+shift);}var offset=0;while(offset<num.length&&num[offset]==0){offset++;}this.num=new Array(num.length-offset+shift);for(var i=0;i<num.length-offset;i++){this.num[i]=num[i+offset];}}QRPolynomial.prototype={get:function get(index){return this.num[index];},getLength:function getLength(){return this.num.length;},multiply:function multiply(e){var num=new Array(this.getLength()+e.getLength()-1);for(var i=0;i<this.getLength();i++){for(var j=0;j<e.getLength();j++){num[i+j]^=math$1.gexp(math$1.glog(this.get(i))+math$1.glog(e.get(j)));}}return new QRPolynomial(num,0);},mod:function mod(e){if(this.getLength()-e.getLength()<0){return this;}var ratio=math$1.glog(this.get(0))-math$1.glog(e.get(0));var num=new Array(this.getLength());for(var i=0;i<this.getLength();i++){num[i]=this.get(i);}for(var i=0;i<e.getLength();i++){num[i]^=math$1.gexp(math$1.glog(e.get(i))+ratio);}// recursive call
  5177. return new QRPolynomial(num,0).mod(e);}};var Polynomial$2=QRPolynomial;var Mode=mode$1;var Polynomial$1=Polynomial$2;var math=math$2;var QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function getBCHTypeInfo(data){var d=data<<10;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)>=0){d^=QRUtil.G15<<QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15);}return(data<<10|d)^QRUtil.G15_MASK;},getBCHTypeNumber:function getBCHTypeNumber(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=QRUtil.G18<<QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18);}return data<<12|d;},getBCHDigit:function getBCHDigit(data){var digit=0;while(data!=0){digit++;data>>>=1;}return digit;},getPatternPosition:function getPatternPosition(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1];},getMask:function getMask(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return i*j%2+i*j%3==0;case QRMaskPattern.PATTERN110:return(i*j%2+i*j%3)%2==0;case QRMaskPattern.PATTERN111:return(i*j%3+(i+j)%2)%2==0;default:throw new Error("bad maskPattern:"+maskPattern);}},getErrorCorrectPolynomial:function getErrorCorrectPolynomial(errorCorrectLength){var a=new Polynomial$1([1],0);for(var i=0;i<errorCorrectLength;i++){a=a.multiply(new Polynomial$1([1,math.gexp(i)],0));}return a;},getLengthInBits:function getLengthInBits(mode,type){if(1<=type&&type<10){// 1 - 9
  5178. switch(mode){case Mode.MODE_NUMBER:return 10;case Mode.MODE_ALPHA_NUM:return 9;case Mode.MODE_8BIT_BYTE:return 8;case Mode.MODE_KANJI:return 8;default:throw new Error("mode:"+mode);}}else if(type<27){// 10 - 26
  5179. switch(mode){case Mode.MODE_NUMBER:return 12;case Mode.MODE_ALPHA_NUM:return 11;case Mode.MODE_8BIT_BYTE:return 16;case Mode.MODE_KANJI:return 10;default:throw new Error("mode:"+mode);}}else if(type<41){// 27 - 40
  5180. switch(mode){case Mode.MODE_NUMBER:return 14;case Mode.MODE_ALPHA_NUM:return 13;case Mode.MODE_8BIT_BYTE:return 16;case Mode.MODE_KANJI:return 12;default:throw new Error("mode:"+mode);}}else{throw new Error("type:"+type);}},getLostPoint:function getLostPoint(qrCode){var moduleCount=qrCode.getModuleCount();var lostPoint=0;// LEVEL1
  5181. for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount;col++){var sameCount=0;var dark=qrCode.isDark(row,col);for(var r=-1;r<=1;r++){if(row+r<0||moduleCount<=row+r){continue;}for(var c=-1;c<=1;c++){if(col+c<0||moduleCount<=col+c){continue;}if(r==0&&c==0){continue;}if(dark==qrCode.isDark(row+r,col+c)){sameCount++;}}}if(sameCount>5){lostPoint+=3+sameCount-5;}}}// LEVEL2
  5182. for(var row=0;row<moduleCount-1;row++){for(var col=0;col<moduleCount-1;col++){var count=0;if(qrCode.isDark(row,col))count++;if(qrCode.isDark(row+1,col))count++;if(qrCode.isDark(row,col+1))count++;if(qrCode.isDark(row+1,col+1))count++;if(count==0||count==4){lostPoint+=3;}}}// LEVEL3
  5183. for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount-6;col++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row,col+1)&&qrCode.isDark(row,col+2)&&qrCode.isDark(row,col+3)&&qrCode.isDark(row,col+4)&&!qrCode.isDark(row,col+5)&&qrCode.isDark(row,col+6)){lostPoint+=40;}}}for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount-6;row++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row+1,col)&&qrCode.isDark(row+2,col)&&qrCode.isDark(row+3,col)&&qrCode.isDark(row+4,col)&&!qrCode.isDark(row+5,col)&&qrCode.isDark(row+6,col)){lostPoint+=40;}}}// LEVEL4
  5184. var darkCount=0;for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount;row++){if(qrCode.isDark(row,col)){darkCount++;}}}var ratio=Math.abs(100*darkCount/moduleCount/moduleCount-50)/5;lostPoint+=ratio*10;return lostPoint;}};var util$1=QRUtil;var BitByte=_8BitByte;var RSBlock=RSBlock$1;var BitBuffer=BitBuffer$1;var util=util$1;var Polynomial=Polynomial$2;function QRCode$1(typeNumber,errorCorrectLevel){this.typeNumber=typeNumber;this.errorCorrectLevel=errorCorrectLevel;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[];}// for client side minification
  5185. var proto=QRCode$1.prototype;proto.addData=function(data){var newData=new BitByte(data);this.dataList.push(newData);this.dataCache=null;};proto.isDark=function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+","+col);}return this.modules[row][col];};proto.getModuleCount=function(){return this.moduleCount;};proto.make=function(){// Calculate automatically typeNumber if provided is < 1
  5186. if(this.typeNumber<1){var typeNumber=1;for(typeNumber=1;typeNumber<40;typeNumber++){var rsBlocks=RSBlock.getRSBlocks(typeNumber,this.errorCorrectLevel);var buffer=new BitBuffer();var totalDataCount=0;for(var i=0;i<rsBlocks.length;i++){totalDataCount+=rsBlocks[i].dataCount;}for(var i=0;i<this.dataList.length;i++){var data=this.dataList[i];buffer.put(data.mode,4);buffer.put(data.getLength(),util.getLengthInBits(data.mode,typeNumber));data.write(buffer);}if(buffer.getLengthInBits()<=totalDataCount*8)break;}this.typeNumber=typeNumber;}this.makeImpl(false,this.getBestMaskPattern());};proto.makeImpl=function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row<this.moduleCount;row++){this.modules[row]=new Array(this.moduleCount);for(var col=0;col<this.moduleCount;col++){this.modules[row][col]=null;//(col + row) % 3;
  5187. }}this.setupPositionProbePattern(0,0);this.setupPositionProbePattern(this.moduleCount-7,0);this.setupPositionProbePattern(0,this.moduleCount-7);this.setupPositionAdjustPattern();this.setupTimingPattern();this.setupTypeInfo(test,maskPattern);if(this.typeNumber>=7){this.setupTypeNumber(test);}if(this.dataCache==null){this.dataCache=QRCode$1.createData(this.typeNumber,this.errorCorrectLevel,this.dataList);}this.mapData(this.dataCache,maskPattern);};proto.setupPositionProbePattern=function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if(0<=r&&r<=6&&(c==0||c==6)||0<=c&&c<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=c&&c<=4){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}};proto.getBestMaskPattern=function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=util.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}}return pattern;};proto.createMovieClip=function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row<this.modules.length;row++){var y=row*cs;for(var col=0;col<this.modules[row].length;col++){var x=col*cs;var dark=this.modules[row][col];if(dark){qr_mc.beginFill(0,100);qr_mc.moveTo(x,y);qr_mc.lineTo(x+cs,y);qr_mc.lineTo(x+cs,y+cs);qr_mc.lineTo(x,y+cs);qr_mc.endFill();}}}return qr_mc;};proto.setupTimingPattern=function(){for(var r=8;r<this.moduleCount-8;r++){if(this.modules[r][6]!=null){continue;}this.modules[r][6]=r%2==0;}for(var c=8;c<this.moduleCount-8;c++){if(this.modules[6][c]!=null){continue;}this.modules[6][c]=c%2==0;}};proto.setupPositionAdjustPattern=function(){var pos=util.getPatternPosition(this.typeNumber);for(var i=0;i<pos.length;i++){for(var j=0;j<pos.length;j++){var row=pos[i];var col=pos[j];if(this.modules[row][col]!=null){continue;}for(var r=-2;r<=2;r++){for(var c=-2;c<=2;c++){if(r==-2||r==2||c==-2||c==2||r==0&&c==0){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}}}};proto.setupTypeNumber=function(test){var bits=util.getBCHTypeNumber(this.typeNumber);for(var i=0;i<18;i++){var mod=!test&&(bits>>i&1)==1;this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod;}for(var i=0;i<18;i++){var mod=!test&&(bits>>i&1)==1;this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod;}};proto.setupTypeInfo=function(test,maskPattern){var data=this.errorCorrectLevel<<3|maskPattern;var bits=util.getBCHTypeInfo(data);// vertical
  5188. for(var i=0;i<15;i++){var mod=!test&&(bits>>i&1)==1;if(i<6){this.modules[i][8]=mod;}else if(i<8){this.modules[i+1][8]=mod;}else{this.modules[this.moduleCount-15+i][8]=mod;}}// horizontal
  5189. for(var i=0;i<15;i++){var mod=!test&&(bits>>i&1)==1;if(i<8){this.modules[8][this.moduleCount-i-1]=mod;}else if(i<9){this.modules[8][15-i-1+1]=mod;}else{this.modules[8][15-i-1]=mod;}}// fixed module
  5190. this.modules[this.moduleCount-8][8]=!test;};proto.mapData=function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6)col--;while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;if(byteIndex<data.length){dark=(data[byteIndex]>>>bitIndex&1)==1;}var mask=util.getMask(maskPattern,row,col-c);if(mask){dark=!dark;}this.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7;}}}row+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break;}}}};QRCode$1.PAD0=0xEC;QRCode$1.PAD1=0x11;QRCode$1.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=RSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new BitBuffer();for(var i=0;i<dataList.length;i++){var data=dataList[i];buffer.put(data.mode,4);buffer.put(data.getLength(),util.getLengthInBits(data.mode,typeNumber));data.write(buffer);}// calc num max data.
  5191. var totalDataCount=0;for(var i=0;i<rsBlocks.length;i++){totalDataCount+=rsBlocks[i].dataCount;}if(buffer.getLengthInBits()>totalDataCount*8){throw new Error("code length overflow. ("+buffer.getLengthInBits()+">"+totalDataCount*8+")");}// end code
  5192. if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);}// padding
  5193. while(buffer.getLengthInBits()%8!=0){buffer.putBit(false);}// padding
  5194. while(true){if(buffer.getLengthInBits()>=totalDataCount*8){break;}buffer.put(QRCode$1.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break;}buffer.put(QRCode$1.PAD1,8);}return QRCode$1.createBytes(buffer,rsBlocks);};QRCode$1.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r<rsBlocks.length;r++){var dcCount=rsBlocks[r].dataCount;var ecCount=rsBlocks[r].totalCount-dcCount;maxDcCount=Math.max(maxDcCount,dcCount);maxEcCount=Math.max(maxEcCount,ecCount);dcdata[r]=new Array(dcCount);for(var i=0;i<dcdata[r].length;i++){dcdata[r][i]=0xff&buffer.buffer[i+offset];}offset+=dcCount;var rsPoly=util.getErrorCorrectPolynomial(ecCount);var rawPoly=new Polynomial(dcdata[r],rsPoly.getLength()-1);var modPoly=rawPoly.mod(rsPoly);ecdata[r]=new Array(rsPoly.getLength()-1);for(var i=0;i<ecdata[r].length;i++){var modIndex=i+modPoly.getLength()-ecdata[r].length;ecdata[r][i]=modIndex>=0?modPoly.get(modIndex):0;}}var totalCodeCount=0;for(var i=0;i<rsBlocks.length;i++){totalCodeCount+=rsBlocks[i].totalCount;}var data=new Array(totalCodeCount);var index=0;for(var i=0;i<maxDcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<dcdata[r].length){data[index++]=dcdata[r][i];}}}for(var i=0;i<maxEcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<ecdata[r].length){data[index++]=ecdata[r][i];}}}return data;};var QRCode_1=QRCode$1;var defaultErrorCorrectLevel='H';// Thanks the `qrcode.react`
  5195. var SUPPORTS_PATH2D=function(){try{new Path2D().addPath(new Path2D());}catch(e){return false;}return true;}();function QRCode(data,level){var errorCorrectLevel=ErrorCorrectLevel[level];// We'll use type===-1 to force QRCode to automatically pick the best type
  5196. var qrcode=new QRCode_1(-1,errorCorrectLevel);qrcode.addData(toUTF8String(data));qrcode.make();return qrcode;}function validErrorCorrectLevel(level){return level in ErrorCorrectLevel;}/**
  5197. * Encode UTF16 to UTF8.
  5198. * See: http://jonisalonen.com/2012/from-utf-16-to-utf-8-in-javascript/
  5199. * @param str {string}
  5200. * @returns {string}
  5201. */function toUTF8String(str){var utf8Str='';for(var i=0;i<str.length;i++){var charCode=str.charCodeAt(i);if(charCode<0x0080){utf8Str+=String.fromCharCode(charCode);}else if(charCode<0x0800){utf8Str+=String.fromCharCode(0xc0|charCode>>6);utf8Str+=String.fromCharCode(0x80|charCode&0x3f);}else if(charCode<0xd800||charCode>=0xe000){utf8Str+=String.fromCharCode(0xe0|charCode>>12);utf8Str+=String.fromCharCode(0x80|charCode>>6&0x3f);utf8Str+=String.fromCharCode(0x80|charCode&0x3f);}else{// surrogate pair
  5202. i++;// UTF-16 encodes 0x10000-0x10FFFF by
  5203. // subtracting 0x10000 and splitting the
  5204. // 20 bits of 0x0-0xFFFFF into two halves
  5205. charCode=0x10000+((charCode&0x3ff)<<10|str.charCodeAt(i)&0x3ff);utf8Str+=String.fromCharCode(0xf0|charCode>>18);utf8Str+=String.fromCharCode(0x80|charCode>>12&0x3f);utf8Str+=String.fromCharCode(0x80|charCode>>6&0x3f);utf8Str+=String.fromCharCode(0x80|charCode&0x3f);}}return utf8Str;}function generatePath(modules,margin){if(margin===void 0){margin=0;}var ops=[];modules.forEach(function(row,y){var start=null;row.forEach(function(cell,x){if(!cell&&start!==null){// M0 0h7v1H0z injects the space with the move and drops the comma,
  5206. // saving a char per operation
  5207. ops.push("M"+(start+margin)+" "+(y+margin)+"h"+(x-start)+"v1H"+(start+margin)+"z");start=null;return;}// end of row, clean up or skip
  5208. if(x===row.length-1){if(!cell){// We would have closed the op above already so this can only mean
  5209. // 2+ light modules in a row.
  5210. return;}if(start===null){// Just a single dark module.
  5211. ops.push("M"+(x+margin)+","+(y+margin)+" h1v1H"+(x+margin)+"z");}else{// Otherwise finish the current line.
  5212. ops.push("M"+(start+margin)+","+(y+margin)+" h"+(x+1-start)+"v1H"+(start+margin)+"z");}return;}if(cell&&start===null){start=x;}});});return ops.join('');}var QRCodeProps={value:{type:String,required:true,"default":''},size:{type:Number,"default":100},level:{type:String,"default":defaultErrorCorrectLevel,validator:function validator(l){return validErrorCorrectLevel(l);}},background:{type:String,"default":'#fff'},foreground:{type:String,"default":'#000'},margin:{type:Number,required:false,"default":0}};var QRCodeVueProps=_assign2(_assign2({},QRCodeProps),{renderAs:{type:String,required:false,"default":'canvas',validator:function validator(as){return['canvas','svg'].indexOf(as)>-1;}}});var QRCodeSvg=defineComponent({name:'QRCodeSvg',props:QRCodeProps,setup:function setup(props){var numCells=ref(0);var fgPath=ref('');var generate=function generate(){var value=props.value,level=props.level,margin=props.margin;var cells=QRCode(value,level).modules;numCells.value=cells.length+margin*2;// Drawing strategy: instead of a rect per module, we're going to create a
  5213. // single path for the dark modules and layer that on top of a light rect,
  5214. // for a total of 2 DOM nodes. We pay a bit more in string concat but that's
  5215. // way faster than DOM ops.
  5216. // For level 1, 441 nodes -> 2
  5217. // For level 40, 31329 -> 2
  5218. fgPath.value=generatePath(cells,margin);};generate();onUpdated(generate);return function(){return h('svg',{width:props.size,height:props.size,'shape-rendering':"crispEdges",xmlns:'http://www.w3.org/2000/svg',viewBox:"0 0 "+numCells.value+" "+numCells.value},[h('path',{fill:props.background,d:"M0,0 h"+numCells.value+"v"+numCells.value+"H0z"}),h('path',{fill:props.foreground,d:fgPath.value})]);};}});var QRCodeCanvas=defineComponent({name:'QRCodeCanvas',props:QRCodeProps,setup:function setup(props){var canvasEl=ref(null);var generate=function generate(){var value=props.value,level=props.level,size=props.size,margin=props.margin,background=props.background,foreground=props.foreground;var cells=QRCode(value,level).modules;var numCells=cells.length+margin*2;var canvas=canvasEl.value;if(!canvas){return;}var ctx=canvas.getContext('2d');if(!ctx){return;}var devicePixelRatio=window.devicePixelRatio||1;var scale=size/numCells*devicePixelRatio;canvas.height=canvas.width=size*devicePixelRatio;ctx.scale(scale,scale);ctx.fillStyle=background;ctx.fillRect(0,0,numCells,numCells);ctx.fillStyle=foreground;if(SUPPORTS_PATH2D){ctx.fill(new Path2D(generatePath(cells,margin)));}else{cells.forEach(function(row,rdx){row.forEach(function(cell,cdx){if(cell){ctx.fillRect(cdx+margin,rdx+margin,1,1);}});});}};onMounted(generate);onUpdated(generate);return function(){return h('canvas',{ref:canvasEl,style:{width:props.size+"px",height:props.size+"px"}});};}});var QrcodeVue=exports('Q',defineComponent({name:'Qrcode',render:function render(){var _a=this.$props,renderAs=_a.renderAs,value=_a.value,_size=_a.size,_margin=_a.margin,_level=_a.level,background=_a.background,foreground=_a.foreground;var size=_size>>>0;var margin=_margin>>>0;var level=validErrorCorrectLevel(_level)?_level:defaultErrorCorrectLevel;return h(renderAs==='svg'?QRCodeSvg:QRCodeCanvas,{value:value,size:size,margin:margin,level:level,background:background,foreground:foreground});},props:QRCodeVueProps}));/* eslint-disable */ /**
  5219. * Emulate touch event
  5220. * Source:https://github.com/hammerjs/touchemulator
  5221. */(function(){if(typeof window==='undefined'){return;}var eventTarget;var supportTouch=('ontouchstart'in window);// polyfills
  5222. if(!document.createTouch){document.createTouch=function(view,target,identifier,pageX,pageY,screenX,screenY){// auto set
  5223. return new Touch(target,identifier,{pageX:pageX,pageY:pageY,screenX:screenX,screenY:screenY,clientX:pageX-window.pageXOffset,clientY:pageY-window.pageYOffset},0,0);};}if(!document.createTouchList){document.createTouchList=function(){var touchList=TouchList();for(var i=0;i<arguments.length;i++){touchList[i]=arguments[i];}touchList.length=arguments.length;return touchList;};}if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;}if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode;}while(el!==null&&el.nodeType===1);return null;};}/**
  5224. * create an touch point
  5225. * @constructor
  5226. * @param target
  5227. * @param identifier
  5228. * @param pos
  5229. * @param deltaX
  5230. * @param deltaY
  5231. * @returns {Object} touchPoint
  5232. */var Touch=function Touch(target,identifier,pos,deltaX,deltaY){deltaX=deltaX||0;deltaY=deltaY||0;this.identifier=identifier;this.target=target;this.clientX=pos.clientX+deltaX;this.clientY=pos.clientY+deltaY;this.screenX=pos.screenX+deltaX;this.screenY=pos.screenY+deltaY;this.pageX=pos.pageX+deltaX;this.pageY=pos.pageY+deltaY;};/**
  5233. * create empty touchlist with the methods
  5234. * @constructor
  5235. * @returns touchList
  5236. */function TouchList(){var touchList=[];touchList['item']=function(index){return this[index]||null;};// specified by Mozilla
  5237. touchList['identifiedTouch']=function(id){return this[id+1]||null;};return touchList;}/**
  5238. * only trigger touches when the left mousebutton has been pressed
  5239. * @param touchType
  5240. * @returns {Function}
  5241. */var initiated=false;function onMouse(touchType){return function(ev){// prevent mouse events
  5242. if(ev.type==='mousedown'){initiated=true;}if(ev.type==='mouseup'){initiated=false;}if(ev.type==='mousemove'&&!initiated){return;}// The EventTarget on which the touch point started when it was first placed on the surface,
  5243. // even if the touch point has since moved outside the interactive area of that element.
  5244. // also, when the target doesnt exist anymore, we update it
  5245. if(ev.type==='mousedown'||!eventTarget||eventTarget&&!eventTarget.dispatchEvent){eventTarget=ev.target;}if(eventTarget.closest('[data-no-touch-simulate]')==null){triggerTouch(touchType,ev);}// reset
  5246. if(ev.type==='mouseup'){eventTarget=null;}};}/**
  5247. * trigger a touch event
  5248. * @param eventName
  5249. * @param mouseEv
  5250. */function triggerTouch(eventName,mouseEv){var touchEvent=document.createEvent('Event');touchEvent.initEvent(eventName,true,true);touchEvent.altKey=mouseEv.altKey;touchEvent.ctrlKey=mouseEv.ctrlKey;touchEvent.metaKey=mouseEv.metaKey;touchEvent.shiftKey=mouseEv.shiftKey;touchEvent.touches=getActiveTouches(mouseEv);touchEvent.targetTouches=getActiveTouches(mouseEv);touchEvent.changedTouches=createTouchList(mouseEv);eventTarget.dispatchEvent(touchEvent);}/**
  5251. * create a touchList based on the mouse event
  5252. * @param mouseEv
  5253. * @returns {TouchList}
  5254. */function createTouchList(mouseEv){var touchList=TouchList();touchList.push(new Touch(eventTarget,1,mouseEv,0,0));return touchList;}/**
  5255. * receive all active touches
  5256. * @param mouseEv
  5257. * @returns {TouchList}
  5258. */function getActiveTouches(mouseEv){// empty list
  5259. if(mouseEv.type==='mouseup'){return TouchList();}return createTouchList(mouseEv);}/**
  5260. * TouchEmulator initializer
  5261. */function TouchEmulator(){window.addEventListener('mousedown',onMouse('touchstart'),true);window.addEventListener('mousemove',onMouse('touchmove'),true);window.addEventListener('mouseup',onMouse('touchend'),true);}// start distance when entering the multitouch mode
  5262. TouchEmulator['multiTouchOffset']=75;if(!supportTouch){new TouchEmulator();}})();var lottie={exports:{}};(function(module,exports$1){typeof navigator!=="undefined"&&function(global,factory){module.exports=factory();}(commonjsGlobal,function(){var svgNS='http://www.w3.org/2000/svg';var locationHref='';var _useWebWorker=false;var initialDefaultFrame=-999999;var setWebWorker=function setWebWorker(flag){_useWebWorker=!!flag;};var getWebWorker=function getWebWorker(){return _useWebWorker;};var setLocationHref=function setLocationHref(value){locationHref=value;};var getLocationHref=function getLocationHref(){return locationHref;};function createTag(type){// return {appendChild:function(){},setAttribute:function(){},style:{}}
  5263. return document.createElement(type);}function extendPrototype(sources,destination){var i;var len=sources.length;var sourcePrototype;for(i=0;i<len;i+=1){sourcePrototype=sources[i].prototype;for(var attr in sourcePrototype){if(Object.prototype.hasOwnProperty.call(sourcePrototype,attr))destination.prototype[attr]=sourcePrototype[attr];}}}function getDescriptor(object,prop){return Object.getOwnPropertyDescriptor(object,prop);}function createProxyFunction(prototype){function ProxyFunction(){}ProxyFunction.prototype=prototype;return ProxyFunction;}// import Howl from '../../3rd_party/howler';
  5264. var audioControllerFactory=function(){function AudioController(audioFactory){this.audios=[];this.audioFactory=audioFactory;this._volume=1;this._isMuted=false;}AudioController.prototype={addAudio:function addAudio(audio){this.audios.push(audio);},pause:function pause(){var i;var len=this.audios.length;for(i=0;i<len;i+=1){this.audios[i].pause();}},resume:function resume(){var i;var len=this.audios.length;for(i=0;i<len;i+=1){this.audios[i].resume();}},setRate:function setRate(rateValue){var i;var len=this.audios.length;for(i=0;i<len;i+=1){this.audios[i].setRate(rateValue);}},createAudio:function createAudio(assetPath){if(this.audioFactory){return this.audioFactory(assetPath);}if(window.Howl){return new window.Howl({src:[assetPath]});}return{isPlaying:false,play:function play(){this.isPlaying=true;},seek:function seek(){this.isPlaying=false;},playing:function playing(){},rate:function rate(){},setVolume:function setVolume(){}};},setAudioFactory:function setAudioFactory(audioFactory){this.audioFactory=audioFactory;},setVolume:function setVolume(value){this._volume=value;this._updateVolume();},mute:function mute(){this._isMuted=true;this._updateVolume();},unmute:function unmute(){this._isMuted=false;this._updateVolume();},getVolume:function getVolume(){return this._volume;},_updateVolume:function _updateVolume(){var i;var len=this.audios.length;for(i=0;i<len;i+=1){this.audios[i].volume(this._volume*(this._isMuted?0:1));}}};return function(){return new AudioController();};}();var createTypedArray=function(){function createRegularArray(type,len){var i=0;var arr=[];var value;switch(type){case'int16':case'uint8c':value=1;break;default:value=1.1;break;}for(i=0;i<len;i+=1){arr.push(value);}return arr;}function createTypedArrayFactory(type,len){if(type==='float32'){return new Float32Array(len);}if(type==='int16'){return new Int16Array(len);}if(type==='uint8c'){return new Uint8ClampedArray(len);}return createRegularArray(type,len);}if(typeof Uint8ClampedArray==='function'&&typeof Float32Array==='function'){return createTypedArrayFactory;}return createRegularArray;}();function createSizedArray(len){return Array.apply(null,{length:len});}function _typeof$6(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$6=function _typeof(obj){return typeof obj;};}else{_typeof$6=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof$6(obj);}var subframeEnabled=true;var expressionsPlugin=null;var idPrefix$1='';var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var bmPow=Math.pow;var bmSqrt=Math.sqrt;var bmFloor=Math.floor;var bmMax=Math.max;var bmMin=Math.min;var BMMath={};(function(){var propertyNames=['abs','acos','acosh','asin','asinh','atan','atanh','atan2','ceil','cbrt','expm1','clz32','cos','cosh','exp','floor','fround','hypot','imul','log','log1p','log2','log10','max','min','pow','random','round','sign','sin','sinh','sqrt','tan','tanh','trunc','E','LN10','LN2','LOG10E','LOG2E','PI','SQRT1_2','SQRT2'];var i;var len=propertyNames.length;for(i=0;i<len;i+=1){BMMath[propertyNames[i]]=Math[propertyNames[i]];}})();BMMath.random=Math.random;BMMath.abs=function(val){var tOfVal=_typeof$6(val);if(tOfVal==='object'&&val.length){var absArr=createSizedArray(val.length);var i;var len=val.length;for(i=0;i<len;i+=1){absArr[i]=Math.abs(val[i]);}return absArr;}return Math.abs(val);};var defaultCurveSegments=150;var degToRads=Math.PI/180;var roundCorner=0.5519;function styleDiv(element){element.style.position='absolute';element.style.top=0;element.style.left=0;element.style.display='block';element.style.transformOrigin='0 0';element.style.webkitTransformOrigin='0 0';element.style.backfaceVisibility='visible';element.style.webkitBackfaceVisibility='visible';element.style.transformStyle='preserve-3d';element.style.webkitTransformStyle='preserve-3d';element.style.mozTransformStyle='preserve-3d';}function BMEnterFrameEvent(type,currentTime,totalTime,frameMultiplier){this.type=type;this.currentTime=currentTime;this.totalTime=totalTime;this.direction=frameMultiplier<0?-1:1;}function BMCompleteEvent(type,frameMultiplier){this.type=type;this.direction=frameMultiplier<0?-1:1;}function BMCompleteLoopEvent(type,totalLoops,currentLoop,frameMultiplier){this.type=type;this.currentLoop=currentLoop;this.totalLoops=totalLoops;this.direction=frameMultiplier<0?-1:1;}function BMSegmentStartEvent(type,firstFrame,totalFrames){this.type=type;this.firstFrame=firstFrame;this.totalFrames=totalFrames;}function BMDestroyEvent(type,target){this.type=type;this.target=target;}function BMRenderFrameErrorEvent(nativeError,currentTime){this.type='renderFrameError';this.nativeError=nativeError;this.currentTime=currentTime;}function BMConfigErrorEvent(nativeError){this.type='configError';this.nativeError=nativeError;}var createElementID=function(){var _count=0;return function createID(){_count+=1;return idPrefix$1+'__lottie_element_'+_count;};}();function HSVtoRGB(h,s,v){var r;var g;var b;var i;var f;var p;var q;var t;i=Math.floor(h*6);f=h*6-i;p=v*(1-s);q=v*(1-f*s);t=v*(1-(1-f)*s);switch(i%6){case 0:r=v;g=t;b=p;break;case 1:r=q;g=v;b=p;break;case 2:r=p;g=v;b=t;break;case 3:r=p;g=q;b=v;break;case 4:r=t;g=p;b=v;break;case 5:r=v;g=p;b=q;break;}return[r,g,b];}function RGBtoHSV(r,g,b){var max=Math.max(r,g,b);var min=Math.min(r,g,b);var d=max-min;var h;var s=max===0?0:d/max;var v=max/255;switch(max){case min:h=0;break;case r:h=g-b+d*(g<b?6:0);h/=6*d;break;case g:h=b-r+d*2;h/=6*d;break;case b:h=r-g+d*4;h/=6*d;break;}return[h,s,v];}function addSaturationToRGB(color,offset){var hsv=RGBtoHSV(color[0]*255,color[1]*255,color[2]*255);hsv[1]+=offset;if(hsv[1]>1){hsv[1]=1;}else if(hsv[1]<=0){hsv[1]=0;}return HSVtoRGB(hsv[0],hsv[1],hsv[2]);}function addBrightnessToRGB(color,offset){var hsv=RGBtoHSV(color[0]*255,color[1]*255,color[2]*255);hsv[2]+=offset;if(hsv[2]>1){hsv[2]=1;}else if(hsv[2]<0){hsv[2]=0;}return HSVtoRGB(hsv[0],hsv[1],hsv[2]);}function addHueToRGB(color,offset){var hsv=RGBtoHSV(color[0]*255,color[1]*255,color[2]*255);hsv[0]+=offset/360;if(hsv[0]>1){hsv[0]-=1;}else if(hsv[0]<0){hsv[0]+=1;}return HSVtoRGB(hsv[0],hsv[1],hsv[2]);}var rgbToHex=function(){var colorMap=[];var i;var hex;for(i=0;i<256;i+=1){hex=i.toString(16);colorMap[i]=hex.length===1?'0'+hex:hex;}return function(r,g,b){if(r<0){r=0;}if(g<0){g=0;}if(b<0){b=0;}return'#'+colorMap[r]+colorMap[g]+colorMap[b];};}();var setSubframeEnabled=function setSubframeEnabled(flag){subframeEnabled=!!flag;};var getSubframeEnabled=function getSubframeEnabled(){return subframeEnabled;};var setExpressionsPlugin=function setExpressionsPlugin(value){expressionsPlugin=value;};var getExpressionsPlugin=function getExpressionsPlugin(){return expressionsPlugin;};var setDefaultCurveSegments=function setDefaultCurveSegments(value){defaultCurveSegments=value;};var getDefaultCurveSegments=function getDefaultCurveSegments(){return defaultCurveSegments;};var setIdPrefix=function setIdPrefix(value){idPrefix$1=value;};function createNS(type){// return {appendChild:function(){},setAttribute:function(){},style:{}}
  5265. return document.createElementNS(svgNS,type);}function _typeof$5(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$5=function _typeof(obj){return typeof obj;};}else{_typeof$5=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof$5(obj);}var dataManager=function(){var _counterId=1;var processes=[];var workerFn;var workerInstance;var workerProxy={onmessage:function onmessage(){},postMessage:function postMessage(path){workerFn({data:path});}};var _workerSelf={postMessage:function postMessage(data){workerProxy.onmessage({data:data});}};function createWorker(fn){if(window.Worker&&window.Blob&&getWebWorker()){var blob=new Blob(['var _workerSelf = self; self.onmessage = ',fn.toString()],{type:'text/javascript'});// var blob = new Blob(['self.onmessage = ', fn.toString()], { type: 'text/javascript' });
  5266. var url=URL.createObjectURL(blob);return new Worker(url);}workerFn=fn;return workerProxy;}function setupWorker(){if(!workerInstance){workerInstance=createWorker(function workerStart(e){function dataFunctionManager(){function completeLayers(layers,comps){var layerData;var i;var len=layers.length;var j;var jLen;var k;var kLen;for(i=0;i<len;i+=1){layerData=layers[i];if('ks'in layerData&&!layerData.completed){layerData.completed=true;if(layerData.tt){layers[i-1].td=layerData.tt;}if(layerData.hasMask){var maskProps=layerData.masksProperties;jLen=maskProps.length;for(j=0;j<jLen;j+=1){if(maskProps[j].pt.k.i){convertPathsToAbsoluteValues(maskProps[j].pt.k);}else{kLen=maskProps[j].pt.k.length;for(k=0;k<kLen;k+=1){if(maskProps[j].pt.k[k].s){convertPathsToAbsoluteValues(maskProps[j].pt.k[k].s[0]);}if(maskProps[j].pt.k[k].e){convertPathsToAbsoluteValues(maskProps[j].pt.k[k].e[0]);}}}}}if(layerData.ty===0){layerData.layers=findCompLayers(layerData.refId,comps);completeLayers(layerData.layers,comps);}else if(layerData.ty===4){completeShapes(layerData.shapes);}else if(layerData.ty===5){completeText(layerData);}}}}function completeChars(chars,assets){if(chars){var i=0;var len=chars.length;for(i=0;i<len;i+=1){if(chars[i].t===1){// var compData = findComp(chars[i].data.refId, assets);
  5267. chars[i].data.layers=findCompLayers(chars[i].data.refId,assets);// chars[i].data.ip = 0;
  5268. // chars[i].data.op = 99999;
  5269. // chars[i].data.st = 0;
  5270. // chars[i].data.sr = 1;
  5271. // chars[i].w = compData.w;
  5272. // chars[i].data.ks = {
  5273. // a: { k: [0, 0, 0], a: 0 },
  5274. // p: { k: [0, -compData.h, 0], a: 0 },
  5275. // r: { k: 0, a: 0 },
  5276. // s: { k: [100, 100], a: 0 },
  5277. // o: { k: 100, a: 0 },
  5278. // };
  5279. completeLayers(chars[i].data.layers,assets);}}}}function findComp(id,comps){var i=0;var len=comps.length;while(i<len){if(comps[i].id===id){return comps[i];}i+=1;}return null;}function findCompLayers(id,comps){var comp=findComp(id,comps);if(comp){if(!comp.layers.__used){comp.layers.__used=true;return comp.layers;}return JSON.parse(JSON.stringify(comp.layers));}return null;}function completeShapes(arr){var i;var len=arr.length;var j;var jLen;for(i=len-1;i>=0;i-=1){if(arr[i].ty==='sh'){if(arr[i].ks.k.i){convertPathsToAbsoluteValues(arr[i].ks.k);}else{jLen=arr[i].ks.k.length;for(j=0;j<jLen;j+=1){if(arr[i].ks.k[j].s){convertPathsToAbsoluteValues(arr[i].ks.k[j].s[0]);}if(arr[i].ks.k[j].e){convertPathsToAbsoluteValues(arr[i].ks.k[j].e[0]);}}}}else if(arr[i].ty==='gr'){completeShapes(arr[i].it);}}}function convertPathsToAbsoluteValues(path){var i;var len=path.i.length;for(i=0;i<len;i+=1){path.i[i][0]+=path.v[i][0];path.i[i][1]+=path.v[i][1];path.o[i][0]+=path.v[i][0];path.o[i][1]+=path.v[i][1];}}function checkVersion(minimum,animVersionString){var animVersion=animVersionString?animVersionString.split('.'):[100,100,100];if(minimum[0]>animVersion[0]){return true;}if(animVersion[0]>minimum[0]){return false;}if(minimum[1]>animVersion[1]){return true;}if(animVersion[1]>minimum[1]){return false;}if(minimum[2]>animVersion[2]){return true;}if(animVersion[2]>minimum[2]){return false;}return null;}var checkText=function(){var minimumVersion=[4,4,14];function updateTextLayer(textLayer){var documentData=textLayer.t.d;textLayer.t.d={k:[{s:documentData,t:0}]};}function iterateLayers(layers){var i;var len=layers.length;for(i=0;i<len;i+=1){if(layers[i].ty===5){updateTextLayer(layers[i]);}}}return function(animationData){if(checkVersion(minimumVersion,animationData.v)){iterateLayers(animationData.layers);if(animationData.assets){var i;var len=animationData.assets.length;for(i=0;i<len;i+=1){if(animationData.assets[i].layers){iterateLayers(animationData.assets[i].layers);}}}}};}();var checkChars=function(){var minimumVersion=[4,7,99];return function(animationData){if(animationData.chars&&!checkVersion(minimumVersion,animationData.v)){var i;var len=animationData.chars.length;for(i=0;i<len;i+=1){var charData=animationData.chars[i];if(charData.data&&charData.data.shapes){completeShapes(charData.data.shapes);charData.data.ip=0;charData.data.op=99999;charData.data.st=0;charData.data.sr=1;charData.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}};if(!animationData.chars[i].t){charData.data.shapes.push({ty:'no'});charData.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:'tr'});}}}}};}();var checkPathProperties=function(){var minimumVersion=[5,7,15];function updateTextLayer(textLayer){var pathData=textLayer.t.p;if(typeof pathData.a==='number'){pathData.a={a:0,k:pathData.a};}if(typeof pathData.p==='number'){pathData.p={a:0,k:pathData.p};}if(typeof pathData.r==='number'){pathData.r={a:0,k:pathData.r};}}function iterateLayers(layers){var i;var len=layers.length;for(i=0;i<len;i+=1){if(layers[i].ty===5){updateTextLayer(layers[i]);}}}return function(animationData){if(checkVersion(minimumVersion,animationData.v)){iterateLayers(animationData.layers);if(animationData.assets){var i;var len=animationData.assets.length;for(i=0;i<len;i+=1){if(animationData.assets[i].layers){iterateLayers(animationData.assets[i].layers);}}}}};}();var checkColors=function(){var minimumVersion=[4,1,9];function iterateShapes(shapes){var i;var len=shapes.length;var j;var jLen;for(i=0;i<len;i+=1){if(shapes[i].ty==='gr'){iterateShapes(shapes[i].it);}else if(shapes[i].ty==='fl'||shapes[i].ty==='st'){if(shapes[i].c.k&&shapes[i].c.k[0].i){jLen=shapes[i].c.k.length;for(j=0;j<jLen;j+=1){if(shapes[i].c.k[j].s){shapes[i].c.k[j].s[0]/=255;shapes[i].c.k[j].s[1]/=255;shapes[i].c.k[j].s[2]/=255;shapes[i].c.k[j].s[3]/=255;}if(shapes[i].c.k[j].e){shapes[i].c.k[j].e[0]/=255;shapes[i].c.k[j].e[1]/=255;shapes[i].c.k[j].e[2]/=255;shapes[i].c.k[j].e[3]/=255;}}}else{shapes[i].c.k[0]/=255;shapes[i].c.k[1]/=255;shapes[i].c.k[2]/=255;shapes[i].c.k[3]/=255;}}}}function iterateLayers(layers){var i;var len=layers.length;for(i=0;i<len;i+=1){if(layers[i].ty===4){iterateShapes(layers[i].shapes);}}}return function(animationData){if(checkVersion(minimumVersion,animationData.v)){iterateLayers(animationData.layers);if(animationData.assets){var i;var len=animationData.assets.length;for(i=0;i<len;i+=1){if(animationData.assets[i].layers){iterateLayers(animationData.assets[i].layers);}}}}};}();var checkShapes=function(){var minimumVersion=[4,4,18];function completeClosingShapes(arr){var i;var len=arr.length;var j;var jLen;for(i=len-1;i>=0;i-=1){if(arr[i].ty==='sh'){if(arr[i].ks.k.i){arr[i].ks.k.c=arr[i].closed;}else{jLen=arr[i].ks.k.length;for(j=0;j<jLen;j+=1){if(arr[i].ks.k[j].s){arr[i].ks.k[j].s[0].c=arr[i].closed;}if(arr[i].ks.k[j].e){arr[i].ks.k[j].e[0].c=arr[i].closed;}}}}else if(arr[i].ty==='gr'){completeClosingShapes(arr[i].it);}}}function iterateLayers(layers){var layerData;var i;var len=layers.length;var j;var jLen;var k;var kLen;for(i=0;i<len;i+=1){layerData=layers[i];if(layerData.hasMask){var maskProps=layerData.masksProperties;jLen=maskProps.length;for(j=0;j<jLen;j+=1){if(maskProps[j].pt.k.i){maskProps[j].pt.k.c=maskProps[j].cl;}else{kLen=maskProps[j].pt.k.length;for(k=0;k<kLen;k+=1){if(maskProps[j].pt.k[k].s){maskProps[j].pt.k[k].s[0].c=maskProps[j].cl;}if(maskProps[j].pt.k[k].e){maskProps[j].pt.k[k].e[0].c=maskProps[j].cl;}}}}}if(layerData.ty===4){completeClosingShapes(layerData.shapes);}}}return function(animationData){if(checkVersion(minimumVersion,animationData.v)){iterateLayers(animationData.layers);if(animationData.assets){var i;var len=animationData.assets.length;for(i=0;i<len;i+=1){if(animationData.assets[i].layers){iterateLayers(animationData.assets[i].layers);}}}}};}();function completeData(animationData){if(animationData.__complete){return;}checkColors(animationData);checkText(animationData);checkChars(animationData);checkPathProperties(animationData);checkShapes(animationData);completeLayers(animationData.layers,animationData.assets);completeChars(animationData.chars,animationData.assets);animationData.__complete=true;}function completeText(data){if(data.t.a.length===0&&!('m'in data.t.p));}var moduleOb={};moduleOb.completeData=completeData;moduleOb.checkColors=checkColors;moduleOb.checkChars=checkChars;moduleOb.checkPathProperties=checkPathProperties;moduleOb.checkShapes=checkShapes;moduleOb.completeLayers=completeLayers;return moduleOb;}if(!_workerSelf.dataManager){_workerSelf.dataManager=dataFunctionManager();}if(!_workerSelf.assetLoader){_workerSelf.assetLoader=function(){function formatResponse(xhr){// using typeof doubles the time of execution of this method,
  5280. // so if available, it's better to use the header to validate the type
  5281. var contentTypeHeader=xhr.getResponseHeader('content-type');if(contentTypeHeader&&xhr.responseType==='json'&&contentTypeHeader.indexOf('json')!==-1){return xhr.response;}if(xhr.response&&_typeof$5(xhr.response)==='object'){return xhr.response;}if(xhr.response&&typeof xhr.response==='string'){return JSON.parse(xhr.response);}if(xhr.responseText){return JSON.parse(xhr.responseText);}return null;}function loadAsset(path,fullPath,callback,errorCallback){var response;var xhr=new XMLHttpRequest();// set responseType after calling open or IE will break.
  5282. try{// This crashes on Android WebView prior to KitKat
  5283. xhr.responseType='json';}catch(err){}// eslint-disable-line no-empty
  5284. xhr.onreadystatechange=function(){if(xhr.readyState===4){if(xhr.status===200){response=formatResponse(xhr);callback(response);}else{try{response=formatResponse(xhr);callback(response);}catch(err){if(errorCallback){errorCallback(err);}}}}};try{xhr.open('GET',path,true);}catch(error){xhr.open('GET',fullPath+'/'+path,true);}xhr.send();}return{load:loadAsset};}();}if(e.data.type==='loadAnimation'){_workerSelf.assetLoader.load(e.data.path,e.data.fullPath,function(data){_workerSelf.dataManager.completeData(data);_workerSelf.postMessage({id:e.data.id,payload:data,status:'success'});},function(){_workerSelf.postMessage({id:e.data.id,status:'error'});});}else if(e.data.type==='complete'){var animation=e.data.animation;_workerSelf.dataManager.completeData(animation);_workerSelf.postMessage({id:e.data.id,payload:animation,status:'success'});}else if(e.data.type==='loadData'){_workerSelf.assetLoader.load(e.data.path,e.data.fullPath,function(data){_workerSelf.postMessage({id:e.data.id,payload:data,status:'success'});},function(){_workerSelf.postMessage({id:e.data.id,status:'error'});});}});workerInstance.onmessage=function(event){var data=event.data;var id=data.id;var process=processes[id];processes[id]=null;if(data.status==='success'){process.onComplete(data.payload);}else if(process.onError){process.onError();}};}}function createProcess(onComplete,onError){_counterId+=1;var id='processId_'+_counterId;processes[id]={onComplete:onComplete,onError:onError};return id;}function loadAnimation(path,onComplete,onError){setupWorker();var processId=createProcess(onComplete,onError);workerInstance.postMessage({type:'loadAnimation',path:path,fullPath:window.location.origin+window.location.pathname,id:processId});}function loadData(path,onComplete,onError){setupWorker();var processId=createProcess(onComplete,onError);workerInstance.postMessage({type:'loadData',path:path,fullPath:window.location.origin+window.location.pathname,id:processId});}function completeAnimation(anim,onComplete,onError){setupWorker();var processId=createProcess(onComplete,onError);workerInstance.postMessage({type:'complete',animation:anim,id:processId});}return{loadAnimation:loadAnimation,loadData:loadData,completeAnimation:completeAnimation};}();var ImagePreloader=function(){var proxyImage=function(){var canvas=createTag('canvas');canvas.width=1;canvas.height=1;var ctx=canvas.getContext('2d');ctx.fillStyle='rgba(0,0,0,0)';ctx.fillRect(0,0,1,1);return canvas;}();function imageLoaded(){this.loadedAssets+=1;if(this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb){this.imagesLoadedCb(null);}}}function footageLoaded(){this.loadedFootagesCount+=1;if(this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb){this.imagesLoadedCb(null);}}}function getAssetsPath(assetData,assetsPath,originalPath){var path='';if(assetData.e){path=assetData.p;}else if(assetsPath){var imagePath=assetData.p;if(imagePath.indexOf('images/')!==-1){imagePath=imagePath.split('/')[1];}path=assetsPath+imagePath;}else{path=originalPath;path+=assetData.u?assetData.u:'';path+=assetData.p;}return path;}function testImageLoaded(img){var _count=0;var intervalId=setInterval(function(){var box=img.getBBox();if(box.width||_count>500){this._imageLoaded();clearInterval(intervalId);}_count+=1;}.bind(this),50);}function createImageData(assetData){var path=getAssetsPath(assetData,this.assetsPath,this.path);var img=createNS('image');if(isSafari){this.testImageLoaded(img);}else{img.addEventListener('load',this._imageLoaded,false);}img.addEventListener('error',function(){ob.img=proxyImage;this._imageLoaded();}.bind(this),false);img.setAttributeNS('http://www.w3.org/1999/xlink','href',path);if(this._elementHelper.append){this._elementHelper.append(img);}else{this._elementHelper.appendChild(img);}var ob={img:img,assetData:assetData};return ob;}function createImgData(assetData){var path=getAssetsPath(assetData,this.assetsPath,this.path);var img=createTag('img');img.crossOrigin='anonymous';img.addEventListener('load',this._imageLoaded,false);img.addEventListener('error',function(){ob.img=proxyImage;this._imageLoaded();}.bind(this),false);img.src=path;var ob={img:img,assetData:assetData};return ob;}function createFootageData(data){var ob={assetData:data};var path=getAssetsPath(data,this.assetsPath,this.path);dataManager.loadData(path,function(footageData){ob.img=footageData;this._footageLoaded();}.bind(this),function(){ob.img={};this._footageLoaded();}.bind(this));return ob;}function loadAssets(assets,cb){this.imagesLoadedCb=cb;var i;var len=assets.length;for(i=0;i<len;i+=1){if(!assets[i].layers){if(!assets[i].t||assets[i].t==='seq'){this.totalImages+=1;this.images.push(this._createImageData(assets[i]));}else if(assets[i].t===3){this.totalFootages+=1;this.images.push(this.createFootageData(assets[i]));}}}}function setPath(path){this.path=path||'';}function setAssetsPath(path){this.assetsPath=path||'';}function getAsset(assetData){var i=0;var len=this.images.length;while(i<len){if(this.images[i].assetData===assetData){return this.images[i].img;}i+=1;}return null;}function destroy(){this.imagesLoadedCb=null;this.images.length=0;}function loadedImages(){return this.totalImages===this.loadedAssets;}function loadedFootages(){return this.totalFootages===this.loadedFootagesCount;}function setCacheType(type,elementHelper){if(type==='svg'){this._elementHelper=elementHelper;this._createImageData=this.createImageData.bind(this);}else{this._createImageData=this.createImgData.bind(this);}}function ImagePreloaderFactory(){this._imageLoaded=imageLoaded.bind(this);this._footageLoaded=footageLoaded.bind(this);this.testImageLoaded=testImageLoaded.bind(this);this.createFootageData=createFootageData.bind(this);this.assetsPath='';this.path='';this.totalImages=0;this.totalFootages=0;this.loadedAssets=0;this.loadedFootagesCount=0;this.imagesLoadedCb=null;this.images=[];}ImagePreloaderFactory.prototype={loadAssets:loadAssets,setAssetsPath:setAssetsPath,setPath:setPath,loadedImages:loadedImages,loadedFootages:loadedFootages,destroy:destroy,getAsset:getAsset,createImgData:createImgData,createImageData:createImageData,imageLoaded:imageLoaded,footageLoaded:footageLoaded,setCacheType:setCacheType};return ImagePreloaderFactory;}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function triggerEvent(eventName,args){if(this._cbs[eventName]){var callbacks=this._cbs[eventName];for(var i=0;i<callbacks.length;i+=1){callbacks[i](args);}}},addEventListener:function addEventListener(eventName,callback){if(!this._cbs[eventName]){this._cbs[eventName]=[];}this._cbs[eventName].push(callback);return function(){this.removeEventListener(eventName,callback);}.bind(this);},removeEventListener:function removeEventListener(eventName,callback){if(!callback){this._cbs[eventName]=null;}else if(this._cbs[eventName]){var i=0;var len=this._cbs[eventName].length;while(i<len){if(this._cbs[eventName][i]===callback){this._cbs[eventName].splice(i,1);i-=1;len-=1;}i+=1;}if(!this._cbs[eventName].length){this._cbs[eventName]=null;}}}};var markerParser=function(){function parsePayloadLines(payload){var lines=payload.split('\r\n');var keys={};var line;var keysCount=0;for(var i=0;i<lines.length;i+=1){line=lines[i].split(':');if(line.length===2){keys[line[0]]=line[1].trim();keysCount+=1;}}if(keysCount===0){throw new Error();}return keys;}return function(_markers){var markers=[];for(var i=0;i<_markers.length;i+=1){var _marker=_markers[i];var markerData={time:_marker.tm,duration:_marker.dr};try{markerData.payload=JSON.parse(_markers[i].cm);}catch(_){try{markerData.payload=parsePayloadLines(_markers[i].cm);}catch(__){markerData.payload={name:_markers[i].cm};}}markers.push(markerData);}return markers;};}();var ProjectInterface=function(){function registerComposition(comp){this.compositions.push(comp);}return function(){function _thisProjectFunction(name){var i=0;var len=this.compositions.length;while(i<len){if(this.compositions[i].data&&this.compositions[i].data.nm===name){if(this.compositions[i].prepareFrame&&this.compositions[i].data.xt){this.compositions[i].prepareFrame(this.currentFrame);}return this.compositions[i].compInterface;}i+=1;}return null;}_thisProjectFunction.compositions=[];_thisProjectFunction.currentFrame=0;_thisProjectFunction.registerComposition=registerComposition;return _thisProjectFunction;};}();var renderers={};var registerRenderer=function registerRenderer(key,value){renderers[key]=value;};function getRenderer(key){return renderers[key];}function _typeof$4(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$4=function _typeof(obj){return typeof obj;};}else{_typeof$4=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof$4(obj);}var AnimationItem=function AnimationItem(){this._cbs=[];this.name='';this.path='';this.isLoaded=false;this.currentFrame=0;this.currentRawFrame=0;this.firstFrame=0;this.totalFrames=0;this.frameRate=0;this.frameMult=0;this.playSpeed=1;this.playDirection=1;this.playCount=0;this.animationData={};this.assets=[];this.isPaused=true;this.autoplay=false;this.loop=true;this.renderer=null;this.animationID=createElementID();this.assetsPath='';this.timeCompleted=0;this.segmentPos=0;this.isSubframeEnabled=getSubframeEnabled();this.segments=[];this._idle=true;this._completedLoop=false;this.projectInterface=ProjectInterface();this.imagePreloader=new ImagePreloader();this.audioController=audioControllerFactory();this.markers=[];this.configAnimation=this.configAnimation.bind(this);this.onSetupError=this.onSetupError.bind(this);this.onSegmentComplete=this.onSegmentComplete.bind(this);this.drawnFrameEvent=new BMEnterFrameEvent('drawnFrame',0,0,0);};extendPrototype([BaseEvent],AnimationItem);AnimationItem.prototype.setParams=function(params){if(params.wrapper||params.container){this.wrapper=params.wrapper||params.container;}var animType='svg';if(params.animType){animType=params.animType;}else if(params.renderer){animType=params.renderer;}var RendererClass=getRenderer(animType);this.renderer=new RendererClass(this,params.rendererSettings);this.imagePreloader.setCacheType(animType,this.renderer.globalData.defs);this.renderer.setProjectInterface(this.projectInterface);this.animType=animType;if(params.loop===''||params.loop===null||params.loop===undefined||params.loop===true){this.loop=true;}else if(params.loop===false){this.loop=false;}else{this.loop=parseInt(params.loop,10);}this.autoplay='autoplay'in params?params.autoplay:true;this.name=params.name?params.name:'';this.autoloadSegments=Object.prototype.hasOwnProperty.call(params,'autoloadSegments')?params.autoloadSegments:true;this.assetsPath=params.assetsPath;this.initialSegment=params.initialSegment;if(params.audioFactory){this.audioController.setAudioFactory(params.audioFactory);}if(params.animationData){this.setupAnimation(params.animationData);}else if(params.path){if(params.path.lastIndexOf('\\')!==-1){this.path=params.path.substr(0,params.path.lastIndexOf('\\')+1);}else{this.path=params.path.substr(0,params.path.lastIndexOf('/')+1);}this.fileName=params.path.substr(params.path.lastIndexOf('/')+1);this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf('.json'));dataManager.loadAnimation(params.path,this.configAnimation,this.onSetupError);}};AnimationItem.prototype.onSetupError=function(){this.trigger('data_failed');};AnimationItem.prototype.setupAnimation=function(data){dataManager.completeAnimation(data,this.configAnimation);};AnimationItem.prototype.setData=function(wrapper,animationData){if(animationData){if(_typeof$4(animationData)!=='object'){animationData=JSON.parse(animationData);}}var params={wrapper:wrapper,animationData:animationData};var wrapperAttributes=wrapper.attributes;params.path=wrapperAttributes.getNamedItem('data-animation-path')// eslint-disable-line no-nested-ternary
  5285. ?wrapperAttributes.getNamedItem('data-animation-path').value:wrapperAttributes.getNamedItem('data-bm-path')// eslint-disable-line no-nested-ternary
  5286. ?wrapperAttributes.getNamedItem('data-bm-path').value:wrapperAttributes.getNamedItem('bm-path')?wrapperAttributes.getNamedItem('bm-path').value:'';params.animType=wrapperAttributes.getNamedItem('data-anim-type')// eslint-disable-line no-nested-ternary
  5287. ?wrapperAttributes.getNamedItem('data-anim-type').value:wrapperAttributes.getNamedItem('data-bm-type')// eslint-disable-line no-nested-ternary
  5288. ?wrapperAttributes.getNamedItem('data-bm-type').value:wrapperAttributes.getNamedItem('bm-type')// eslint-disable-line no-nested-ternary
  5289. ?wrapperAttributes.getNamedItem('bm-type').value:wrapperAttributes.getNamedItem('data-bm-renderer')// eslint-disable-line no-nested-ternary
  5290. ?wrapperAttributes.getNamedItem('data-bm-renderer').value:wrapperAttributes.getNamedItem('bm-renderer')?wrapperAttributes.getNamedItem('bm-renderer').value:'canvas';var loop=wrapperAttributes.getNamedItem('data-anim-loop')// eslint-disable-line no-nested-ternary
  5291. ?wrapperAttributes.getNamedItem('data-anim-loop').value:wrapperAttributes.getNamedItem('data-bm-loop')// eslint-disable-line no-nested-ternary
  5292. ?wrapperAttributes.getNamedItem('data-bm-loop').value:wrapperAttributes.getNamedItem('bm-loop')?wrapperAttributes.getNamedItem('bm-loop').value:'';if(loop==='false'){params.loop=false;}else if(loop==='true'){params.loop=true;}else if(loop!==''){params.loop=parseInt(loop,10);}var autoplay=wrapperAttributes.getNamedItem('data-anim-autoplay')// eslint-disable-line no-nested-ternary
  5293. ?wrapperAttributes.getNamedItem('data-anim-autoplay').value:wrapperAttributes.getNamedItem('data-bm-autoplay')// eslint-disable-line no-nested-ternary
  5294. ?wrapperAttributes.getNamedItem('data-bm-autoplay').value:wrapperAttributes.getNamedItem('bm-autoplay')?wrapperAttributes.getNamedItem('bm-autoplay').value:true;params.autoplay=autoplay!=='false';params.name=wrapperAttributes.getNamedItem('data-name')// eslint-disable-line no-nested-ternary
  5295. ?wrapperAttributes.getNamedItem('data-name').value:wrapperAttributes.getNamedItem('data-bm-name')// eslint-disable-line no-nested-ternary
  5296. ?wrapperAttributes.getNamedItem('data-bm-name').value:wrapperAttributes.getNamedItem('bm-name')?wrapperAttributes.getNamedItem('bm-name').value:'';var prerender=wrapperAttributes.getNamedItem('data-anim-prerender')// eslint-disable-line no-nested-ternary
  5297. ?wrapperAttributes.getNamedItem('data-anim-prerender').value:wrapperAttributes.getNamedItem('data-bm-prerender')// eslint-disable-line no-nested-ternary
  5298. ?wrapperAttributes.getNamedItem('data-bm-prerender').value:wrapperAttributes.getNamedItem('bm-prerender')?wrapperAttributes.getNamedItem('bm-prerender').value:'';if(prerender==='false'){params.prerender=false;}this.setParams(params);};AnimationItem.prototype.includeLayers=function(data){if(data.op>this.animationData.op){this.animationData.op=data.op;this.totalFrames=Math.floor(data.op-this.animationData.ip);}var layers=this.animationData.layers;var i;var len=layers.length;var newLayers=data.layers;var j;var jLen=newLayers.length;for(j=0;j<jLen;j+=1){i=0;while(i<len){if(layers[i].id===newLayers[j].id){layers[i]=newLayers[j];break;}i+=1;}}if(data.chars||data.fonts){this.renderer.globalData.fontManager.addChars(data.chars);this.renderer.globalData.fontManager.addFonts(data.fonts,this.renderer.globalData.defs);}if(data.assets){len=data.assets.length;for(i=0;i<len;i+=1){this.animationData.assets.push(data.assets[i]);}}this.animationData.__complete=false;dataManager.completeAnimation(this.animationData,this.onSegmentComplete);};AnimationItem.prototype.onSegmentComplete=function(data){this.animationData=data;var expressionsPlugin=getExpressionsPlugin();if(expressionsPlugin){expressionsPlugin.initExpressions(this);}this.loadNextSegment();};AnimationItem.prototype.loadNextSegment=function(){var segments=this.animationData.segments;if(!segments||segments.length===0||!this.autoloadSegments){this.trigger('data_ready');this.timeCompleted=this.totalFrames;return;}var segment=segments.shift();this.timeCompleted=segment.time*this.frameRate;var segmentPath=this.path+this.fileName+'_'+this.segmentPos+'.json';this.segmentPos+=1;dataManager.loadData(segmentPath,this.includeLayers.bind(this),function(){this.trigger('data_failed');}.bind(this));};AnimationItem.prototype.loadSegments=function(){var segments=this.animationData.segments;if(!segments){this.timeCompleted=this.totalFrames;}this.loadNextSegment();};AnimationItem.prototype.imagesLoaded=function(){this.trigger('loaded_images');this.checkLoaded();};AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath);this.imagePreloader.setPath(this.path);this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this));};AnimationItem.prototype.configAnimation=function(animData){if(!this.renderer){return;}try{this.animationData=animData;if(this.initialSegment){this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]);this.firstFrame=Math.round(this.initialSegment[0]);}else{this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip);this.firstFrame=Math.round(this.animationData.ip);}this.renderer.configAnimation(animData);if(!animData.assets){animData.assets=[];}this.assets=this.animationData.assets;this.frameRate=this.animationData.fr;this.frameMult=this.animationData.fr/1000;this.renderer.searchExtraCompositions(animData.assets);this.markers=markerParser(animData.markers||[]);this.trigger('config_ready');this.preloadImages();this.loadSegments();this.updaFrameModifier();this.waitForFontsLoaded();if(this.isPaused){this.audioController.pause();}}catch(error){this.triggerConfigError(error);}};AnimationItem.prototype.waitForFontsLoaded=function(){if(!this.renderer){return;}if(this.renderer.globalData.fontManager.isLoaded){this.checkLoaded();}else{setTimeout(this.waitForFontsLoaded.bind(this),20);}};AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=='canvas')&&this.imagePreloader.loadedFootages()){this.isLoaded=true;var expressionsPlugin=getExpressionsPlugin();if(expressionsPlugin){expressionsPlugin.initExpressions(this);}this.renderer.initItems();setTimeout(function(){this.trigger('DOMLoaded');}.bind(this),0);this.gotoFrame();if(this.autoplay){this.play();}}};AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize();};AnimationItem.prototype.setSubframe=function(flag){this.isSubframeEnabled=!!flag;};AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame;// eslint-disable-line no-bitwise
  5299. if(this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted){this.currentFrame=this.timeCompleted;}this.trigger('enterFrame');this.renderFrame();this.trigger('drawnFrame');};AnimationItem.prototype.renderFrame=function(){if(this.isLoaded===false||!this.renderer){return;}try{this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(error){this.triggerRenderFrameError(error);}};AnimationItem.prototype.play=function(name){if(name&&this.name!==name){return;}if(this.isPaused===true){this.isPaused=false;this.trigger('_pause');this.audioController.resume();if(this._idle){this._idle=false;this.trigger('_active');}}};AnimationItem.prototype.pause=function(name){if(name&&this.name!==name){return;}if(this.isPaused===false){this.isPaused=true;this.trigger('_play');this._idle=true;this.trigger('_idle');this.audioController.pause();}};AnimationItem.prototype.togglePause=function(name){if(name&&this.name!==name){return;}if(this.isPaused===true){this.play();}else{this.pause();}};AnimationItem.prototype.stop=function(name){if(name&&this.name!==name){return;}this.pause();this.playCount=0;this._completedLoop=false;this.setCurrentRawFrameValue(0);};AnimationItem.prototype.getMarkerData=function(markerName){var marker;for(var i=0;i<this.markers.length;i+=1){marker=this.markers[i];if(marker.payload&&marker.payload.name===markerName){return marker;}}return null;};AnimationItem.prototype.goToAndStop=function(value,isFrame,name){if(name&&this.name!==name){return;}var numValue=Number(value);if(isNaN(numValue)){var marker=this.getMarkerData(value);if(marker){this.goToAndStop(marker.time,true);}}else if(isFrame){this.setCurrentRawFrameValue(value);}else{this.setCurrentRawFrameValue(value*this.frameModifier);}this.pause();};AnimationItem.prototype.goToAndPlay=function(value,isFrame,name){if(name&&this.name!==name){return;}var numValue=Number(value);if(isNaN(numValue)){var marker=this.getMarkerData(value);if(marker){if(!marker.duration){this.goToAndStop(marker.time,true);}else{this.playSegments([marker.time,marker.time+marker.duration],true);}}}else{this.goToAndStop(numValue,isFrame,name);}this.play();};AnimationItem.prototype.advanceTime=function(value){if(this.isPaused===true||this.isLoaded===false){return;}var nextValue=this.currentRawFrame+value*this.frameModifier;var _isComplete=false;// Checking if nextValue > totalFrames - 1 for addressing non looping and looping animations.
  5300. // If animation won't loop, it should stop at totalFrames - 1. If it will loop it should complete the last frame and then loop.
  5301. if(nextValue>=this.totalFrames-1&&this.frameModifier>0){if(!this.loop||this.playCount===this.loop){if(!this.checkSegments(nextValue>this.totalFrames?nextValue%this.totalFrames:0)){_isComplete=true;nextValue=this.totalFrames-1;}}else if(nextValue>=this.totalFrames){this.playCount+=1;if(!this.checkSegments(nextValue%this.totalFrames)){this.setCurrentRawFrameValue(nextValue%this.totalFrames);this._completedLoop=true;this.trigger('loopComplete');}}else{this.setCurrentRawFrameValue(nextValue);}}else if(nextValue<0){if(!this.checkSegments(nextValue%this.totalFrames)){if(this.loop&&!(this.playCount--<=0&&this.loop!==true)){// eslint-disable-line no-plusplus
  5302. this.setCurrentRawFrameValue(this.totalFrames+nextValue%this.totalFrames);if(!this._completedLoop){this._completedLoop=true;}else{this.trigger('loopComplete');}}else{_isComplete=true;nextValue=0;}}}else{this.setCurrentRawFrameValue(nextValue);}if(_isComplete){this.setCurrentRawFrameValue(nextValue);this.pause();this.trigger('complete');}};AnimationItem.prototype.adjustSegment=function(arr,offset){this.playCount=0;if(arr[1]<arr[0]){if(this.frameModifier>0){if(this.playSpeed<0){this.setSpeed(-this.playSpeed);}else{this.setDirection(-1);}}this.totalFrames=arr[0]-arr[1];this.timeCompleted=this.totalFrames;this.firstFrame=arr[1];this.setCurrentRawFrameValue(this.totalFrames-0.001-offset);}else if(arr[1]>arr[0]){if(this.frameModifier<0){if(this.playSpeed<0){this.setSpeed(-this.playSpeed);}else{this.setDirection(1);}}this.totalFrames=arr[1]-arr[0];this.timeCompleted=this.totalFrames;this.firstFrame=arr[0];this.setCurrentRawFrameValue(0.001+offset);}this.trigger('segmentStart');};AnimationItem.prototype.setSegment=function(init,end){var pendingFrame=-1;if(this.isPaused){if(this.currentRawFrame+this.firstFrame<init){pendingFrame=init;}else if(this.currentRawFrame+this.firstFrame>end){pendingFrame=end-init;}}this.firstFrame=init;this.totalFrames=end-init;this.timeCompleted=this.totalFrames;if(pendingFrame!==-1){this.goToAndStop(pendingFrame,true);}};AnimationItem.prototype.playSegments=function(arr,forceFlag){if(forceFlag){this.segments.length=0;}if(_typeof$4(arr[0])==='object'){var i;var len=arr.length;for(i=0;i<len;i+=1){this.segments.push(arr[i]);}}else{this.segments.push(arr);}if(this.segments.length&&forceFlag){this.adjustSegment(this.segments.shift(),0);}if(this.isPaused){this.play();}};AnimationItem.prototype.resetSegments=function(forceFlag){this.segments.length=0;this.segments.push([this.animationData.ip,this.animationData.op]);if(forceFlag){this.checkSegments(0);}};AnimationItem.prototype.checkSegments=function(offset){if(this.segments.length){this.adjustSegment(this.segments.shift(),offset);return true;}return false;};AnimationItem.prototype.destroy=function(name){if(name&&this.name!==name||!this.renderer){return;}this.renderer.destroy();this.imagePreloader.destroy();this.trigger('destroy');this._cbs=null;this.onEnterFrame=null;this.onLoopComplete=null;this.onComplete=null;this.onSegmentStart=null;this.onDestroy=null;this.renderer=null;this.renderer=null;this.imagePreloader=null;this.projectInterface=null;};AnimationItem.prototype.setCurrentRawFrameValue=function(value){this.currentRawFrame=value;this.gotoFrame();};AnimationItem.prototype.setSpeed=function(val){this.playSpeed=val;this.updaFrameModifier();};AnimationItem.prototype.setDirection=function(val){this.playDirection=val<0?-1:1;this.updaFrameModifier();};AnimationItem.prototype.setVolume=function(val,name){if(name&&this.name!==name){return;}this.audioController.setVolume(val);};AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume();};AnimationItem.prototype.mute=function(name){if(name&&this.name!==name){return;}this.audioController.mute();};AnimationItem.prototype.unmute=function(name){if(name&&this.name!==name){return;}this.audioController.unmute();};AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection;this.audioController.setRate(this.playSpeed*this.playDirection);};AnimationItem.prototype.getPath=function(){return this.path;};AnimationItem.prototype.getAssetsPath=function(assetData){var path='';if(assetData.e){path=assetData.p;}else if(this.assetsPath){var imagePath=assetData.p;if(imagePath.indexOf('images/')!==-1){imagePath=imagePath.split('/')[1];}path=this.assetsPath+imagePath;}else{path=this.path;path+=assetData.u?assetData.u:'';path+=assetData.p;}return path;};AnimationItem.prototype.getAssetData=function(id){var i=0;var len=this.assets.length;while(i<len){if(id===this.assets[i].id){return this.assets[i];}i+=1;}return null;};AnimationItem.prototype.hide=function(){this.renderer.hide();};AnimationItem.prototype.show=function(){this.renderer.show();};AnimationItem.prototype.getDuration=function(isFrame){return isFrame?this.totalFrames:this.totalFrames/this.frameRate;};AnimationItem.prototype.updateDocumentData=function(path,documentData,index){try{var element=this.renderer.getElementByPath(path);element.updateDocumentData(documentData,index);}catch(error){// TODO: decide how to handle catch case
  5303. }};AnimationItem.prototype.trigger=function(name){if(this._cbs&&this._cbs[name]){switch(name){case'enterFrame':this.triggerEvent(name,new BMEnterFrameEvent(name,this.currentFrame,this.totalFrames,this.frameModifier));break;case'drawnFrame':this.drawnFrameEvent.currentTime=this.currentFrame;this.drawnFrameEvent.totalTime=this.totalFrames;this.drawnFrameEvent.direction=this.frameModifier;this.triggerEvent(name,this.drawnFrameEvent);break;case'loopComplete':this.triggerEvent(name,new BMCompleteLoopEvent(name,this.loop,this.playCount,this.frameMult));break;case'complete':this.triggerEvent(name,new BMCompleteEvent(name,this.frameMult));break;case'segmentStart':this.triggerEvent(name,new BMSegmentStartEvent(name,this.firstFrame,this.totalFrames));break;case'destroy':this.triggerEvent(name,new BMDestroyEvent(name,this));break;default:this.triggerEvent(name);}}if(name==='enterFrame'&&this.onEnterFrame){this.onEnterFrame.call(this,new BMEnterFrameEvent(name,this.currentFrame,this.totalFrames,this.frameMult));}if(name==='loopComplete'&&this.onLoopComplete){this.onLoopComplete.call(this,new BMCompleteLoopEvent(name,this.loop,this.playCount,this.frameMult));}if(name==='complete'&&this.onComplete){this.onComplete.call(this,new BMCompleteEvent(name,this.frameMult));}if(name==='segmentStart'&&this.onSegmentStart){this.onSegmentStart.call(this,new BMSegmentStartEvent(name,this.firstFrame,this.totalFrames));}if(name==='destroy'&&this.onDestroy){this.onDestroy.call(this,new BMDestroyEvent(name,this));}};AnimationItem.prototype.triggerRenderFrameError=function(nativeError){var error=new BMRenderFrameErrorEvent(nativeError,this.currentFrame);this.triggerEvent('error',error);if(this.onError){this.onError.call(this,error);}};AnimationItem.prototype.triggerConfigError=function(nativeError){var error=new BMConfigErrorEvent(nativeError,this.currentFrame);this.triggerEvent('error',error);if(this.onError){this.onError.call(this,error);}};var animationManager=function(){var moduleOb={};var registeredAnimations=[];var initTime=0;var len=0;var playingAnimationsNum=0;var _stopped=true;var _isFrozen=false;function removeElement(ev){var i=0;var animItem=ev.target;while(i<len){if(registeredAnimations[i].animation===animItem){registeredAnimations.splice(i,1);i-=1;len-=1;if(!animItem.isPaused){subtractPlayingCount();}}i+=1;}}function registerAnimation(element,animationData){if(!element){return null;}var i=0;while(i<len){if(registeredAnimations[i].elem===element&&registeredAnimations[i].elem!==null){return registeredAnimations[i].animation;}i+=1;}var animItem=new AnimationItem();setupAnimation(animItem,element);animItem.setData(element,animationData);return animItem;}function getRegisteredAnimations(){var i;var lenAnims=registeredAnimations.length;var animations=[];for(i=0;i<lenAnims;i+=1){animations.push(registeredAnimations[i].animation);}return animations;}function addPlayingCount(){playingAnimationsNum+=1;activate();}function subtractPlayingCount(){playingAnimationsNum-=1;}function setupAnimation(animItem,element){animItem.addEventListener('destroy',removeElement);animItem.addEventListener('_active',addPlayingCount);animItem.addEventListener('_idle',subtractPlayingCount);registeredAnimations.push({elem:element,animation:animItem});len+=1;}function loadAnimation(params){var animItem=new AnimationItem();setupAnimation(animItem,null);animItem.setParams(params);return animItem;}function setSpeed(val,animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.setSpeed(val,animation);}}function setDirection(val,animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.setDirection(val,animation);}}function play(animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.play(animation);}}function resume(nowTime){var elapsedTime=nowTime-initTime;var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.advanceTime(elapsedTime);}initTime=nowTime;if(playingAnimationsNum&&!_isFrozen){window.requestAnimationFrame(resume);}else{_stopped=true;}}function first(nowTime){initTime=nowTime;window.requestAnimationFrame(resume);}function pause(animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.pause(animation);}}function goToAndStop(value,isFrame,animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.goToAndStop(value,isFrame,animation);}}function stop(animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.stop(animation);}}function togglePause(animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.togglePause(animation);}}function destroy(animation){var i;for(i=len-1;i>=0;i-=1){registeredAnimations[i].animation.destroy(animation);}}function searchAnimations(animationData,standalone,renderer){var animElements=[].concat([].slice.call(document.getElementsByClassName('lottie')),[].slice.call(document.getElementsByClassName('bodymovin')));var i;var lenAnims=animElements.length;for(i=0;i<lenAnims;i+=1){if(renderer){animElements[i].setAttribute('data-bm-type',renderer);}registerAnimation(animElements[i],animationData);}if(standalone&&lenAnims===0){if(!renderer){renderer='svg';}var body=document.getElementsByTagName('body')[0];body.innerText='';var div=createTag('div');div.style.width='100%';div.style.height='100%';div.setAttribute('data-bm-type',renderer);body.appendChild(div);registerAnimation(div,animationData);}}function resize(){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.resize();}}function activate(){if(!_isFrozen&&playingAnimationsNum){if(_stopped){window.requestAnimationFrame(first);_stopped=false;}}}function freeze(){_isFrozen=true;}function unfreeze(){_isFrozen=false;activate();}function setVolume(val,animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.setVolume(val,animation);}}function mute(animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.mute(animation);}}function unmute(animation){var i;for(i=0;i<len;i+=1){registeredAnimations[i].animation.unmute(animation);}}moduleOb.registerAnimation=registerAnimation;moduleOb.loadAnimation=loadAnimation;moduleOb.setSpeed=setSpeed;moduleOb.setDirection=setDirection;moduleOb.play=play;moduleOb.pause=pause;moduleOb.stop=stop;moduleOb.togglePause=togglePause;moduleOb.searchAnimations=searchAnimations;moduleOb.resize=resize;// moduleOb.start = start;
  5304. moduleOb.goToAndStop=goToAndStop;moduleOb.destroy=destroy;moduleOb.freeze=freeze;moduleOb.unfreeze=unfreeze;moduleOb.setVolume=setVolume;moduleOb.mute=mute;moduleOb.unmute=unmute;moduleOb.getRegisteredAnimations=getRegisteredAnimations;return moduleOb;}();/* eslint-disable */var BezierFactory=function(){/**
  5305. * BezierEasing - use bezier curve for transition easing function
  5306. * by Gaëtan Renaudeau 2014 - 2015 – MIT License
  5307. *
  5308. * Credits: is based on Firefox's nsSMILKeySpline.cpp
  5309. * Usage:
  5310. * var spline = BezierEasing([ 0.25, 0.1, 0.25, 1.0 ])
  5311. * spline.get(x) => returns the easing value | x must be in [0, 1] range
  5312. *
  5313. */var ob={};ob.getBezierEasing=getBezierEasing;var beziers={};function getBezierEasing(a,b,c,d,nm){var str=nm||('bez_'+a+'_'+b+'_'+c+'_'+d).replace(/\./g,'p');if(beziers[str]){return beziers[str];}var bezEasing=new BezierEasing([a,b,c,d]);beziers[str]=bezEasing;return bezEasing;}// These values are established by empiricism with tests (tradeoff: performance VS precision)
  5314. var NEWTON_ITERATIONS=4;var NEWTON_MIN_SLOPE=0.001;var SUBDIVISION_PRECISION=0.0000001;var SUBDIVISION_MAX_ITERATIONS=10;var kSplineTableSize=11;var kSampleStepSize=1.0/(kSplineTableSize-1.0);var float32ArraySupported=typeof Float32Array==='function';function A(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1;}function B(aA1,aA2){return 3.0*aA2-6.0*aA1;}function C(aA1){return 3.0*aA1;}// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
  5315. function calcBezier(aT,aA1,aA2){return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT;}// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
  5316. function getSlope(aT,aA1,aA2){return 3.0*A(aA1,aA2)*aT*aT+2.0*B(aA1,aA2)*aT+C(aA1);}function binarySubdivide(aX,aA,aB,mX1,mX2){var currentX,currentT,i=0;do{currentT=aA+(aB-aA)/2.0;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0.0){aB=currentT;}else{aA=currentT;}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i<SUBDIVISION_MAX_ITERATIONS);return currentT;}function newtonRaphsonIterate(aX,aGuessT,mX1,mX2){for(var i=0;i<NEWTON_ITERATIONS;++i){var currentSlope=getSlope(aGuessT,mX1,mX2);if(currentSlope===0.0)return aGuessT;var currentX=calcBezier(aGuessT,mX1,mX2)-aX;aGuessT-=currentX/currentSlope;}return aGuessT;}/**
  5317. * points is an array of [ mX1, mY1, mX2, mY2 ]
  5318. */function BezierEasing(points){this._p=points;this._mSampleValues=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);this._precomputed=false;this.get=this.get.bind(this);}BezierEasing.prototype={get:function get(x){var mX1=this._p[0],mY1=this._p[1],mX2=this._p[2],mY2=this._p[3];if(!this._precomputed)this._precompute();if(mX1===mY1&&mX2===mY2)return x;// linear
  5319. // Because JavaScript number are imprecise, we should guarantee the extremes are right.
  5320. if(x===0)return 0;if(x===1)return 1;return calcBezier(this._getTForX(x),mY1,mY2);},// Private part
  5321. _precompute:function _precompute(){var mX1=this._p[0],mY1=this._p[1],mX2=this._p[2],mY2=this._p[3];this._precomputed=true;if(mX1!==mY1||mX2!==mY2){this._calcSampleValues();}},_calcSampleValues:function _calcSampleValues(){var mX1=this._p[0],mX2=this._p[2];for(var i=0;i<kSplineTableSize;++i){this._mSampleValues[i]=calcBezier(i*kSampleStepSize,mX1,mX2);}},/**
  5322. * getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
  5323. */_getTForX:function _getTForX(aX){var mX1=this._p[0],mX2=this._p[2],mSampleValues=this._mSampleValues;var intervalStart=0.0;var currentSample=1;var lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&mSampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize;}--currentSample;// Interpolate to provide an initial guess for t
  5324. var dist=(aX-mSampleValues[currentSample])/(mSampleValues[currentSample+1]-mSampleValues[currentSample]);var guessForT=intervalStart+dist*kSampleStepSize;var initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}if(initialSlope===0.0){return guessForT;}return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}};return ob;}();var pooling=function(){function _double(arr){return arr.concat(createSizedArray(arr.length));}return{"double":_double};}();var poolFactory=function(){return function(initialLength,_create,_release){var _length=0;var _maxLength=initialLength;var pool=createSizedArray(_maxLength);var ob={newElement:newElement,release:release};function newElement(){var element;if(_length){_length-=1;element=pool[_length];}else{element=_create();}return element;}function release(element){if(_length===_maxLength){pool=pooling["double"](pool);_maxLength*=2;}if(_release){_release(element);}pool[_length]=element;_length+=1;}return ob;};}();var bezierLengthPool=function(){function create(){return{addedLength:0,percents:createTypedArray('float32',getDefaultCurveSegments()),lengths:createTypedArray('float32',getDefaultCurveSegments())};}return poolFactory(8,create);}();var segmentsLengthPool=function(){function create(){return{lengths:[],totalLength:0};}function release(element){var i;var len=element.lengths.length;for(i=0;i<len;i+=1){bezierLengthPool.release(element.lengths[i]);}element.lengths.length=0;}return poolFactory(8,create,release);}();function bezFunction(){var math=Math;function pointOnLine2D(x1,y1,x2,y2,x3,y3){var det1=x1*y2+y1*x3+x2*y3-x3*y2-y3*x1-x2*y1;return det1>-0.001&&det1<0.001;}function pointOnLine3D(x1,y1,z1,x2,y2,z2,x3,y3,z3){if(z1===0&&z2===0&&z3===0){return pointOnLine2D(x1,y1,x2,y2,x3,y3);}var dist1=math.sqrt(math.pow(x2-x1,2)+math.pow(y2-y1,2)+math.pow(z2-z1,2));var dist2=math.sqrt(math.pow(x3-x1,2)+math.pow(y3-y1,2)+math.pow(z3-z1,2));var dist3=math.sqrt(math.pow(x3-x2,2)+math.pow(y3-y2,2)+math.pow(z3-z2,2));var diffDist;if(dist1>dist2){if(dist1>dist3){diffDist=dist1-dist2-dist3;}else{diffDist=dist3-dist2-dist1;}}else if(dist3>dist2){diffDist=dist3-dist2-dist1;}else{diffDist=dist2-dist1-dist3;}return diffDist>-0.0001&&diffDist<0.0001;}var getBezierLength=function(){return function(pt1,pt2,pt3,pt4){var curveSegments=getDefaultCurveSegments();var k;var i;var len;var ptCoord;var perc;var addedLength=0;var ptDistance;var point=[];var lastPoint=[];var lengthData=bezierLengthPool.newElement();len=pt3.length;for(k=0;k<curveSegments;k+=1){perc=k/(curveSegments-1);ptDistance=0;for(i=0;i<len;i+=1){ptCoord=bmPow(1-perc,3)*pt1[i]+3*bmPow(1-perc,2)*perc*pt3[i]+3*(1-perc)*bmPow(perc,2)*pt4[i]+bmPow(perc,3)*pt2[i];point[i]=ptCoord;if(lastPoint[i]!==null){ptDistance+=bmPow(point[i]-lastPoint[i],2);}lastPoint[i]=point[i];}if(ptDistance){ptDistance=bmSqrt(ptDistance);addedLength+=ptDistance;}lengthData.percents[k]=perc;lengthData.lengths[k]=addedLength;}lengthData.addedLength=addedLength;return lengthData;};}();function getSegmentsLength(shapeData){var segmentsLength=segmentsLengthPool.newElement();var closed=shapeData.c;var pathV=shapeData.v;var pathO=shapeData.o;var pathI=shapeData.i;var i;var len=shapeData._length;var lengths=segmentsLength.lengths;var totalLength=0;for(i=0;i<len-1;i+=1){lengths[i]=getBezierLength(pathV[i],pathV[i+1],pathO[i],pathI[i+1]);totalLength+=lengths[i].addedLength;}if(closed&&len){lengths[i]=getBezierLength(pathV[i],pathV[0],pathO[i],pathI[0]);totalLength+=lengths[i].addedLength;}segmentsLength.totalLength=totalLength;return segmentsLength;}function BezierData(length){this.segmentLength=0;this.points=new Array(length);}function PointData(partial,point){this.partialLength=partial;this.point=point;}var buildBezierData=function(){var storedData={};return function(pt1,pt2,pt3,pt4){var bezierName=(pt1[0]+'_'+pt1[1]+'_'+pt2[0]+'_'+pt2[1]+'_'+pt3[0]+'_'+pt3[1]+'_'+pt4[0]+'_'+pt4[1]).replace(/\./g,'p');if(!storedData[bezierName]){var curveSegments=getDefaultCurveSegments();var k;var i;var len;var ptCoord;var perc;var addedLength=0;var ptDistance;var point;var lastPoint=null;if(pt1.length===2&&(pt1[0]!==pt2[0]||pt1[1]!==pt2[1])&&pointOnLine2D(pt1[0],pt1[1],pt2[0],pt2[1],pt1[0]+pt3[0],pt1[1]+pt3[1])&&pointOnLine2D(pt1[0],pt1[1],pt2[0],pt2[1],pt2[0]+pt4[0],pt2[1]+pt4[1])){curveSegments=2;}var bezierData=new BezierData(curveSegments);len=pt3.length;for(k=0;k<curveSegments;k+=1){point=createSizedArray(len);perc=k/(curveSegments-1);ptDistance=0;for(i=0;i<len;i+=1){ptCoord=bmPow(1-perc,3)*pt1[i]+3*bmPow(1-perc,2)*perc*(pt1[i]+pt3[i])+3*(1-perc)*bmPow(perc,2)*(pt2[i]+pt4[i])+bmPow(perc,3)*pt2[i];point[i]=ptCoord;if(lastPoint!==null){ptDistance+=bmPow(point[i]-lastPoint[i],2);}}ptDistance=bmSqrt(ptDistance);addedLength+=ptDistance;bezierData.points[k]=new PointData(ptDistance,point);lastPoint=point;}bezierData.segmentLength=addedLength;storedData[bezierName]=bezierData;}return storedData[bezierName];};}();function getDistancePerc(perc,bezierData){var percents=bezierData.percents;var lengths=bezierData.lengths;var len=percents.length;var initPos=bmFloor((len-1)*perc);var lengthPos=perc*bezierData.addedLength;var lPerc=0;if(initPos===len-1||initPos===0||lengthPos===lengths[initPos]){return percents[initPos];}var dir=lengths[initPos]>lengthPos?-1:1;var flag=true;while(flag){if(lengths[initPos]<=lengthPos&&lengths[initPos+1]>lengthPos){lPerc=(lengthPos-lengths[initPos])/(lengths[initPos+1]-lengths[initPos]);flag=false;}else{initPos+=dir;}if(initPos<0||initPos>=len-1){// FIX for TypedArrays that don't store floating point values with enough accuracy
  5325. if(initPos===len-1){return percents[initPos];}flag=false;}}return percents[initPos]+(percents[initPos+1]-percents[initPos])*lPerc;}function getPointInSegment(pt1,pt2,pt3,pt4,percent,bezierData){var t1=getDistancePerc(percent,bezierData);var u1=1-t1;var ptX=math.round((u1*u1*u1*pt1[0]+(t1*u1*u1+u1*t1*u1+u1*u1*t1)*pt3[0]+(t1*t1*u1+u1*t1*t1+t1*u1*t1)*pt4[0]+t1*t1*t1*pt2[0])*1000)/1000;var ptY=math.round((u1*u1*u1*pt1[1]+(t1*u1*u1+u1*t1*u1+u1*u1*t1)*pt3[1]+(t1*t1*u1+u1*t1*t1+t1*u1*t1)*pt4[1]+t1*t1*t1*pt2[1])*1000)/1000;return[ptX,ptY];}var bezierSegmentPoints=createTypedArray('float32',8);function getNewSegment(pt1,pt2,pt3,pt4,startPerc,endPerc,bezierData){if(startPerc<0){startPerc=0;}else if(startPerc>1){startPerc=1;}var t0=getDistancePerc(startPerc,bezierData);endPerc=endPerc>1?1:endPerc;var t1=getDistancePerc(endPerc,bezierData);var i;var len=pt1.length;var u0=1-t0;var u1=1-t1;var u0u0u0=u0*u0*u0;var t0u0u0_3=t0*u0*u0*3;// eslint-disable-line camelcase
  5326. var t0t0u0_3=t0*t0*u0*3;// eslint-disable-line camelcase
  5327. var t0t0t0=t0*t0*t0;//
  5328. var u0u0u1=u0*u0*u1;var t0u0u1_3=t0*u0*u1+u0*t0*u1+u0*u0*t1;// eslint-disable-line camelcase
  5329. var t0t0u1_3=t0*t0*u1+u0*t0*t1+t0*u0*t1;// eslint-disable-line camelcase
  5330. var t0t0t1=t0*t0*t1;//
  5331. var u0u1u1=u0*u1*u1;var t0u1u1_3=t0*u1*u1+u0*t1*u1+u0*u1*t1;// eslint-disable-line camelcase
  5332. var t0t1u1_3=t0*t1*u1+u0*t1*t1+t0*u1*t1;// eslint-disable-line camelcase
  5333. var t0t1t1=t0*t1*t1;//
  5334. var u1u1u1=u1*u1*u1;var t1u1u1_3=t1*u1*u1+u1*t1*u1+u1*u1*t1;// eslint-disable-line camelcase
  5335. var t1t1u1_3=t1*t1*u1+u1*t1*t1+t1*u1*t1;// eslint-disable-line camelcase
  5336. var t1t1t1=t1*t1*t1;for(i=0;i<len;i+=1){bezierSegmentPoints[i*4]=math.round((u0u0u0*pt1[i]+t0u0u0_3*pt3[i]+t0t0u0_3*pt4[i]+t0t0t0*pt2[i])*1000)/1000;// eslint-disable-line camelcase
  5337. bezierSegmentPoints[i*4+1]=math.round((u0u0u1*pt1[i]+t0u0u1_3*pt3[i]+t0t0u1_3*pt4[i]+t0t0t1*pt2[i])*1000)/1000;// eslint-disable-line camelcase
  5338. bezierSegmentPoints[i*4+2]=math.round((u0u1u1*pt1[i]+t0u1u1_3*pt3[i]+t0t1u1_3*pt4[i]+t0t1t1*pt2[i])*1000)/1000;// eslint-disable-line camelcase
  5339. bezierSegmentPoints[i*4+3]=math.round((u1u1u1*pt1[i]+t1u1u1_3*pt3[i]+t1t1u1_3*pt4[i]+t1t1t1*pt2[i])*1000)/1000;// eslint-disable-line camelcase
  5340. }return bezierSegmentPoints;}return{getSegmentsLength:getSegmentsLength,getNewSegment:getNewSegment,getPointInSegment:getPointInSegment,buildBezierData:buildBezierData,pointOnLine2D:pointOnLine2D,pointOnLine3D:pointOnLine3D};}var bez=bezFunction();var PropertyFactory=function(){var initFrame=initialDefaultFrame;var mathAbs=Math.abs;function interpolateValue(frameNum,caching){var offsetTime=this.offsetTime;var newValue;if(this.propType==='multidimensional'){newValue=createTypedArray('float32',this.pv.length);}var iterationIndex=caching.lastIndex;var i=iterationIndex;var len=this.keyframes.length-1;var flag=true;var keyData;var nextKeyData;var keyframeMetadata;while(flag){keyData=this.keyframes[i];nextKeyData=this.keyframes[i+1];if(i===len-1&&frameNum>=nextKeyData.t-offsetTime){if(keyData.h){keyData=nextKeyData;}iterationIndex=0;break;}if(nextKeyData.t-offsetTime>frameNum){iterationIndex=i;break;}if(i<len-1){i+=1;}else{iterationIndex=0;flag=false;}}keyframeMetadata=this.keyframesMetadata[i]||{};var k;var kLen;var perc;var jLen;var j;var fnc;var nextKeyTime=nextKeyData.t-offsetTime;var keyTime=keyData.t-offsetTime;var endValue;if(keyData.to){if(!keyframeMetadata.bezierData){keyframeMetadata.bezierData=bez.buildBezierData(keyData.s,nextKeyData.s||keyData.e,keyData.to,keyData.ti);}var bezierData=keyframeMetadata.bezierData;if(frameNum>=nextKeyTime||frameNum<keyTime){var ind=frameNum>=nextKeyTime?bezierData.points.length-1:0;kLen=bezierData.points[ind].point.length;for(k=0;k<kLen;k+=1){newValue[k]=bezierData.points[ind].point[k];}// caching._lastKeyframeIndex = -1;
  5341. }else{if(keyframeMetadata.__fnct){fnc=keyframeMetadata.__fnct;}else{fnc=BezierFactory.getBezierEasing(keyData.o.x,keyData.o.y,keyData.i.x,keyData.i.y,keyData.n).get;keyframeMetadata.__fnct=fnc;}perc=fnc((frameNum-keyTime)/(nextKeyTime-keyTime));var distanceInLine=bezierData.segmentLength*perc;var segmentPerc;var addedLength=caching.lastFrame<frameNum&&caching._lastKeyframeIndex===i?caching._lastAddedLength:0;j=caching.lastFrame<frameNum&&caching._lastKeyframeIndex===i?caching._lastPoint:0;flag=true;jLen=bezierData.points.length;while(flag){addedLength+=bezierData.points[j].partialLength;if(distanceInLine===0||perc===0||j===bezierData.points.length-1){kLen=bezierData.points[j].point.length;for(k=0;k<kLen;k+=1){newValue[k]=bezierData.points[j].point[k];}break;}else if(distanceInLine>=addedLength&&distanceInLine<addedLength+bezierData.points[j+1].partialLength){segmentPerc=(distanceInLine-addedLength)/bezierData.points[j+1].partialLength;kLen=bezierData.points[j].point.length;for(k=0;k<kLen;k+=1){newValue[k]=bezierData.points[j].point[k]+(bezierData.points[j+1].point[k]-bezierData.points[j].point[k])*segmentPerc;}break;}if(j<jLen-1){j+=1;}else{flag=false;}}caching._lastPoint=j;caching._lastAddedLength=addedLength-bezierData.points[j].partialLength;caching._lastKeyframeIndex=i;}}else{var outX;var outY;var inX;var inY;var keyValue;len=keyData.s.length;endValue=nextKeyData.s||keyData.e;if(this.sh&&keyData.h!==1){if(frameNum>=nextKeyTime){newValue[0]=endValue[0];newValue[1]=endValue[1];newValue[2]=endValue[2];}else if(frameNum<=keyTime){newValue[0]=keyData.s[0];newValue[1]=keyData.s[1];newValue[2]=keyData.s[2];}else{var quatStart=createQuaternion(keyData.s);var quatEnd=createQuaternion(endValue);var time=(frameNum-keyTime)/(nextKeyTime-keyTime);quaternionToEuler(newValue,slerp(quatStart,quatEnd,time));}}else{for(i=0;i<len;i+=1){if(keyData.h!==1){if(frameNum>=nextKeyTime){perc=1;}else if(frameNum<keyTime){perc=0;}else{if(keyData.o.x.constructor===Array){if(!keyframeMetadata.__fnct){keyframeMetadata.__fnct=[];}if(!keyframeMetadata.__fnct[i]){outX=keyData.o.x[i]===undefined?keyData.o.x[0]:keyData.o.x[i];outY=keyData.o.y[i]===undefined?keyData.o.y[0]:keyData.o.y[i];inX=keyData.i.x[i]===undefined?keyData.i.x[0]:keyData.i.x[i];inY=keyData.i.y[i]===undefined?keyData.i.y[0]:keyData.i.y[i];fnc=BezierFactory.getBezierEasing(outX,outY,inX,inY).get;keyframeMetadata.__fnct[i]=fnc;}else{fnc=keyframeMetadata.__fnct[i];}}else if(!keyframeMetadata.__fnct){outX=keyData.o.x;outY=keyData.o.y;inX=keyData.i.x;inY=keyData.i.y;fnc=BezierFactory.getBezierEasing(outX,outY,inX,inY).get;keyData.keyframeMetadata=fnc;}else{fnc=keyframeMetadata.__fnct;}perc=fnc((frameNum-keyTime)/(nextKeyTime-keyTime));}}endValue=nextKeyData.s||keyData.e;keyValue=keyData.h===1?keyData.s[i]:keyData.s[i]+(endValue[i]-keyData.s[i])*perc;if(this.propType==='multidimensional'){newValue[i]=keyValue;}else{newValue=keyValue;}}}}caching.lastIndex=iterationIndex;return newValue;}// based on @Toji's https://github.com/toji/gl-matrix/
  5342. function slerp(a,b,t){var out=[];var ax=a[0];var ay=a[1];var az=a[2];var aw=a[3];var bx=b[0];var by=b[1];var bz=b[2];var bw=b[3];var omega;var cosom;var sinom;var scale0;var scale1;cosom=ax*bx+ay*by+az*bz+aw*bw;if(cosom<0.0){cosom=-cosom;bx=-bx;by=-by;bz=-bz;bw=-bw;}if(1.0-cosom>0.000001){omega=Math.acos(cosom);sinom=Math.sin(omega);scale0=Math.sin((1.0-t)*omega)/sinom;scale1=Math.sin(t*omega)/sinom;}else{scale0=1.0-t;scale1=t;}out[0]=scale0*ax+scale1*bx;out[1]=scale0*ay+scale1*by;out[2]=scale0*az+scale1*bz;out[3]=scale0*aw+scale1*bw;return out;}function quaternionToEuler(out,quat){var qx=quat[0];var qy=quat[1];var qz=quat[2];var qw=quat[3];var heading=Math.atan2(2*qy*qw-2*qx*qz,1-2*qy*qy-2*qz*qz);var attitude=Math.asin(2*qx*qy+2*qz*qw);var bank=Math.atan2(2*qx*qw-2*qy*qz,1-2*qx*qx-2*qz*qz);out[0]=heading/degToRads;out[1]=attitude/degToRads;out[2]=bank/degToRads;}function createQuaternion(values){var heading=values[0]*degToRads;var attitude=values[1]*degToRads;var bank=values[2]*degToRads;var c1=Math.cos(heading/2);var c2=Math.cos(attitude/2);var c3=Math.cos(bank/2);var s1=Math.sin(heading/2);var s2=Math.sin(attitude/2);var s3=Math.sin(bank/2);var w=c1*c2*c3-s1*s2*s3;var x=s1*s2*c3+c1*c2*s3;var y=s1*c2*c3+c1*s2*s3;var z=c1*s2*c3-s1*c2*s3;return[x,y,z,w];}function getValueAtCurrentTime(){var frameNum=this.comp.renderedFrame-this.offsetTime;var initTime=this.keyframes[0].t-this.offsetTime;var endTime=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(frameNum===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=endTime&&frameNum>=endTime||this._caching.lastFrame<initTime&&frameNum<initTime))){if(this._caching.lastFrame>=frameNum){this._caching._lastKeyframeIndex=-1;this._caching.lastIndex=0;}var renderResult=this.interpolateValue(frameNum,this._caching);this.pv=renderResult;}this._caching.lastFrame=frameNum;return this.pv;}function setVValue(val){var multipliedValue;if(this.propType==='unidimensional'){multipliedValue=val*this.mult;if(mathAbs(this.v-multipliedValue)>0.00001){this.v=multipliedValue;this._mdf=true;}}else{var i=0;var len=this.v.length;while(i<len){multipliedValue=val[i]*this.mult;if(mathAbs(this.v[i]-multipliedValue)>0.00001){this.v[i]=multipliedValue;this._mdf=true;}i+=1;}}}function processEffectsSequence(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length){return;}if(this.lock){this.setVValue(this.pv);return;}this.lock=true;this._mdf=this._isFirstFrame;var i;var len=this.effectsSequence.length;var finalValue=this.kf?this.pv:this.data.k;for(i=0;i<len;i+=1){finalValue=this.effectsSequence[i](finalValue);}this.setVValue(finalValue);this._isFirstFrame=false;this.lock=false;this.frameId=this.elem.globalData.frameId;}function addEffect(effectFunction){this.effectsSequence.push(effectFunction);this.container.addDynamicProperty(this);}function ValueProperty(elem,data,mult,container){this.propType='unidimensional';this.mult=mult||1;this.data=data;this.v=mult?data.k*mult:data.k;this.pv=data.k;this._mdf=false;this.elem=elem;this.container=container;this.comp=elem.comp;this.k=false;this.kf=false;this.vel=0;this.effectsSequence=[];this._isFirstFrame=true;this.getValue=processEffectsSequence;this.setVValue=setVValue;this.addEffect=addEffect;}function MultiDimensionalProperty(elem,data,mult,container){this.propType='multidimensional';this.mult=mult||1;this.data=data;this._mdf=false;this.elem=elem;this.container=container;this.comp=elem.comp;this.k=false;this.kf=false;this.frameId=-1;var i;var len=data.k.length;this.v=createTypedArray('float32',len);this.pv=createTypedArray('float32',len);this.vel=createTypedArray('float32',len);for(i=0;i<len;i+=1){this.v[i]=data.k[i]*this.mult;this.pv[i]=data.k[i];}this._isFirstFrame=true;this.effectsSequence=[];this.getValue=processEffectsSequence;this.setVValue=setVValue;this.addEffect=addEffect;}function KeyframedValueProperty(elem,data,mult,container){this.propType='unidimensional';this.keyframes=data.k;this.keyframesMetadata=[];this.offsetTime=elem.data.st;this.frameId=-1;this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1};this.k=true;this.kf=true;this.data=data;this.mult=mult||1;this.elem=elem;this.container=container;this.comp=elem.comp;this.v=initFrame;this.pv=initFrame;this._isFirstFrame=true;this.getValue=processEffectsSequence;this.setVValue=setVValue;this.interpolateValue=interpolateValue;this.effectsSequence=[getValueAtCurrentTime.bind(this)];this.addEffect=addEffect;}function KeyframedMultidimensionalProperty(elem,data,mult,container){this.propType='multidimensional';var i;var len=data.k.length;var s;var e;var to;var ti;for(i=0;i<len-1;i+=1){if(data.k[i].to&&data.k[i].s&&data.k[i+1]&&data.k[i+1].s){s=data.k[i].s;e=data.k[i+1].s;to=data.k[i].to;ti=data.k[i].ti;if(s.length===2&&!(s[0]===e[0]&&s[1]===e[1])&&bez.pointOnLine2D(s[0],s[1],e[0],e[1],s[0]+to[0],s[1]+to[1])&&bez.pointOnLine2D(s[0],s[1],e[0],e[1],e[0]+ti[0],e[1]+ti[1])||s.length===3&&!(s[0]===e[0]&&s[1]===e[1]&&s[2]===e[2])&&bez.pointOnLine3D(s[0],s[1],s[2],e[0],e[1],e[2],s[0]+to[0],s[1]+to[1],s[2]+to[2])&&bez.pointOnLine3D(s[0],s[1],s[2],e[0],e[1],e[2],e[0]+ti[0],e[1]+ti[1],e[2]+ti[2])){data.k[i].to=null;data.k[i].ti=null;}if(s[0]===e[0]&&s[1]===e[1]&&to[0]===0&&to[1]===0&&ti[0]===0&&ti[1]===0){if(s.length===2||s[2]===e[2]&&to[2]===0&&ti[2]===0){data.k[i].to=null;data.k[i].ti=null;}}}}this.effectsSequence=[getValueAtCurrentTime.bind(this)];this.data=data;this.keyframes=data.k;this.keyframesMetadata=[];this.offsetTime=elem.data.st;this.k=true;this.kf=true;this._isFirstFrame=true;this.mult=mult||1;this.elem=elem;this.container=container;this.comp=elem.comp;this.getValue=processEffectsSequence;this.setVValue=setVValue;this.interpolateValue=interpolateValue;this.frameId=-1;var arrLen=data.k[0].s.length;this.v=createTypedArray('float32',arrLen);this.pv=createTypedArray('float32',arrLen);for(i=0;i<arrLen;i+=1){this.v[i]=initFrame;this.pv[i]=initFrame;}this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray('float32',arrLen)};this.addEffect=addEffect;}function getProp(elem,data,type,mult,container){var p;if(!data.k.length){p=new ValueProperty(elem,data,mult,container);}else if(typeof data.k[0]==='number'){p=new MultiDimensionalProperty(elem,data,mult,container);}else{switch(type){case 0:p=new KeyframedValueProperty(elem,data,mult,container);break;case 1:p=new KeyframedMultidimensionalProperty(elem,data,mult,container);break;}}if(p.effectsSequence.length){container.addDynamicProperty(p);}return p;}var ob={getProp:getProp};return ob;}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function addDynamicProperty(prop){if(this.dynamicProperties.indexOf(prop)===-1){this.dynamicProperties.push(prop);this.container.addDynamicProperty(this);this._isAnimated=true;}},iterateDynamicProperties:function iterateDynamicProperties(){this._mdf=false;var i;var len=this.dynamicProperties.length;for(i=0;i<len;i+=1){this.dynamicProperties[i].getValue();if(this.dynamicProperties[i]._mdf){this._mdf=true;}}},initDynamicPropertyContainer:function initDynamicPropertyContainer(container){this.container=container;this.dynamicProperties=[];this._mdf=false;this._isAnimated=false;}};var pointPool=function(){function create(){return createTypedArray('float32',2);}return poolFactory(8,create);}();function ShapePath(){this.c=false;this._length=0;this._maxLength=8;this.v=createSizedArray(this._maxLength);this.o=createSizedArray(this._maxLength);this.i=createSizedArray(this._maxLength);}ShapePath.prototype.setPathData=function(closed,len){this.c=closed;this.setLength(len);var i=0;while(i<len){this.v[i]=pointPool.newElement();this.o[i]=pointPool.newElement();this.i[i]=pointPool.newElement();i+=1;}};ShapePath.prototype.setLength=function(len){while(this._maxLength<len){this.doubleArrayLength();}this._length=len;};ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength));this.i=this.i.concat(createSizedArray(this._maxLength));this.o=this.o.concat(createSizedArray(this._maxLength));this._maxLength*=2;};ShapePath.prototype.setXYAt=function(x,y,type,pos,replace){var arr;this._length=Math.max(this._length,pos+1);if(this._length>=this._maxLength){this.doubleArrayLength();}switch(type){case'v':arr=this.v;break;case'i':arr=this.i;break;case'o':arr=this.o;break;default:arr=[];break;}if(!arr[pos]||arr[pos]&&!replace){arr[pos]=pointPool.newElement();}arr[pos][0]=x;arr[pos][1]=y;};ShapePath.prototype.setTripleAt=function(vX,vY,oX,oY,iX,iY,pos,replace){this.setXYAt(vX,vY,'v',pos,replace);this.setXYAt(oX,oY,'o',pos,replace);this.setXYAt(iX,iY,'i',pos,replace);};ShapePath.prototype.reverse=function(){var newPath=new ShapePath();newPath.setPathData(this.c,this._length);var vertices=this.v;var outPoints=this.o;var inPoints=this.i;var init=0;if(this.c){newPath.setTripleAt(vertices[0][0],vertices[0][1],inPoints[0][0],inPoints[0][1],outPoints[0][0],outPoints[0][1],0,false);init=1;}var cnt=this._length-1;var len=this._length;var i;for(i=init;i<len;i+=1){newPath.setTripleAt(vertices[cnt][0],vertices[cnt][1],inPoints[cnt][0],inPoints[cnt][1],outPoints[cnt][0],outPoints[cnt][1],i,false);cnt-=1;}return newPath;};var shapePool=function(){function create(){return new ShapePath();}function release(shapePath){var len=shapePath._length;var i;for(i=0;i<len;i+=1){pointPool.release(shapePath.v[i]);pointPool.release(shapePath.i[i]);pointPool.release(shapePath.o[i]);shapePath.v[i]=null;shapePath.i[i]=null;shapePath.o[i]=null;}shapePath._length=0;shapePath.c=false;}function clone(shape){var cloned=factory.newElement();var i;var len=shape._length===undefined?shape.v.length:shape._length;cloned.setLength(len);cloned.c=shape.c;for(i=0;i<len;i+=1){cloned.setTripleAt(shape.v[i][0],shape.v[i][1],shape.o[i][0],shape.o[i][1],shape.i[i][0],shape.i[i][1],i);}return cloned;}var factory=poolFactory(4,create,release);factory.clone=clone;return factory;}();function ShapeCollection(){this._length=0;this._maxLength=4;this.shapes=createSizedArray(this._maxLength);}ShapeCollection.prototype.addShape=function(shapeData){if(this._length===this._maxLength){this.shapes=this.shapes.concat(createSizedArray(this._maxLength));this._maxLength*=2;}this.shapes[this._length]=shapeData;this._length+=1;};ShapeCollection.prototype.releaseShapes=function(){var i;for(i=0;i<this._length;i+=1){shapePool.release(this.shapes[i]);}this._length=0;};var shapeCollectionPool=function(){var ob={newShapeCollection:newShapeCollection,release:release};var _length=0;var _maxLength=4;var pool=createSizedArray(_maxLength);function newShapeCollection(){var shapeCollection;if(_length){_length-=1;shapeCollection=pool[_length];}else{shapeCollection=new ShapeCollection();}return shapeCollection;}function release(shapeCollection){var i;var len=shapeCollection._length;for(i=0;i<len;i+=1){shapePool.release(shapeCollection.shapes[i]);}shapeCollection._length=0;if(_length===_maxLength){pool=pooling["double"](pool);_maxLength*=2;}pool[_length]=shapeCollection;_length+=1;}return ob;}();var ShapePropertyFactory=function(){var initFrame=-999999;function interpolateShape(frameNum,previousValue,caching){var iterationIndex=caching.lastIndex;var keyPropS;var keyPropE;var isHold;var j;var k;var jLen;var kLen;var perc;var vertexValue;var kf=this.keyframes;if(frameNum<kf[0].t-this.offsetTime){keyPropS=kf[0].s[0];isHold=true;iterationIndex=0;}else if(frameNum>=kf[kf.length-1].t-this.offsetTime){keyPropS=kf[kf.length-1].s?kf[kf.length-1].s[0]:kf[kf.length-2].e[0];/* if(kf[kf.length - 1].s){
  5343. keyPropS = kf[kf.length - 1].s[0];
  5344. }else{
  5345. keyPropS = kf[kf.length - 2].e[0];
  5346. } */isHold=true;}else{var i=iterationIndex;var len=kf.length-1;var flag=true;var keyData;var nextKeyData;var keyframeMetadata;while(flag){keyData=kf[i];nextKeyData=kf[i+1];if(nextKeyData.t-this.offsetTime>frameNum){break;}if(i<len-1){i+=1;}else{flag=false;}}keyframeMetadata=this.keyframesMetadata[i]||{};isHold=keyData.h===1;iterationIndex=i;if(!isHold){if(frameNum>=nextKeyData.t-this.offsetTime){perc=1;}else if(frameNum<keyData.t-this.offsetTime){perc=0;}else{var fnc;if(keyframeMetadata.__fnct){fnc=keyframeMetadata.__fnct;}else{fnc=BezierFactory.getBezierEasing(keyData.o.x,keyData.o.y,keyData.i.x,keyData.i.y).get;keyframeMetadata.__fnct=fnc;}perc=fnc((frameNum-(keyData.t-this.offsetTime))/(nextKeyData.t-this.offsetTime-(keyData.t-this.offsetTime)));}keyPropE=nextKeyData.s?nextKeyData.s[0]:keyData.e[0];}keyPropS=keyData.s[0];}jLen=previousValue._length;kLen=keyPropS.i[0].length;caching.lastIndex=iterationIndex;for(j=0;j<jLen;j+=1){for(k=0;k<kLen;k+=1){vertexValue=isHold?keyPropS.i[j][k]:keyPropS.i[j][k]+(keyPropE.i[j][k]-keyPropS.i[j][k])*perc;previousValue.i[j][k]=vertexValue;vertexValue=isHold?keyPropS.o[j][k]:keyPropS.o[j][k]+(keyPropE.o[j][k]-keyPropS.o[j][k])*perc;previousValue.o[j][k]=vertexValue;vertexValue=isHold?keyPropS.v[j][k]:keyPropS.v[j][k]+(keyPropE.v[j][k]-keyPropS.v[j][k])*perc;previousValue.v[j][k]=vertexValue;}}}function interpolateShapeCurrentTime(){var frameNum=this.comp.renderedFrame-this.offsetTime;var initTime=this.keyframes[0].t-this.offsetTime;var endTime=this.keyframes[this.keyframes.length-1].t-this.offsetTime;var lastFrame=this._caching.lastFrame;if(!(lastFrame!==initFrame&&(lastFrame<initTime&&frameNum<initTime||lastFrame>endTime&&frameNum>endTime))){/// /
  5347. this._caching.lastIndex=lastFrame<frameNum?this._caching.lastIndex:0;this.interpolateShape(frameNum,this.pv,this._caching);/// /
  5348. }this._caching.lastFrame=frameNum;return this.pv;}function resetShape(){this.paths=this.localShapeCollection;}function shapesEqual(shape1,shape2){if(shape1._length!==shape2._length||shape1.c!==shape2.c){return false;}var i;var len=shape1._length;for(i=0;i<len;i+=1){if(shape1.v[i][0]!==shape2.v[i][0]||shape1.v[i][1]!==shape2.v[i][1]||shape1.o[i][0]!==shape2.o[i][0]||shape1.o[i][1]!==shape2.o[i][1]||shape1.i[i][0]!==shape2.i[i][0]||shape1.i[i][1]!==shape2.i[i][1]){return false;}}return true;}function setVValue(newPath){if(!shapesEqual(this.v,newPath)){this.v=shapePool.clone(newPath);this.localShapeCollection.releaseShapes();this.localShapeCollection.addShape(this.v);this._mdf=true;this.paths=this.localShapeCollection;}}function processEffectsSequence(){if(this.elem.globalData.frameId===this.frameId){return;}if(!this.effectsSequence.length){this._mdf=false;return;}if(this.lock){this.setVValue(this.pv);return;}this.lock=true;this._mdf=false;var finalValue;if(this.kf){finalValue=this.pv;}else if(this.data.ks){finalValue=this.data.ks.k;}else{finalValue=this.data.pt.k;}var i;var len=this.effectsSequence.length;for(i=0;i<len;i+=1){finalValue=this.effectsSequence[i](finalValue);}this.setVValue(finalValue);this.lock=false;this.frameId=this.elem.globalData.frameId;}function ShapeProperty(elem,data,type){this.propType='shape';this.comp=elem.comp;this.container=elem;this.elem=elem;this.data=data;this.k=false;this.kf=false;this._mdf=false;var pathData=type===3?data.pt.k:data.ks.k;this.v=shapePool.clone(pathData);this.pv=shapePool.clone(this.v);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.reset=resetShape;this.effectsSequence=[];}function addEffect(effectFunction){this.effectsSequence.push(effectFunction);this.container.addDynamicProperty(this);}ShapeProperty.prototype.interpolateShape=interpolateShape;ShapeProperty.prototype.getValue=processEffectsSequence;ShapeProperty.prototype.setVValue=setVValue;ShapeProperty.prototype.addEffect=addEffect;function KeyframedShapeProperty(elem,data,type){this.propType='shape';this.comp=elem.comp;this.elem=elem;this.container=elem;this.offsetTime=elem.data.st;this.keyframes=type===3?data.pt.k:data.ks.k;this.keyframesMetadata=[];this.k=true;this.kf=true;var len=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement();this.v.setPathData(this.keyframes[0].s[0].c,len);this.pv=shapePool.clone(this.v);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.lastFrame=initFrame;this.reset=resetShape;this._caching={lastFrame:initFrame,lastIndex:0};this.effectsSequence=[interpolateShapeCurrentTime.bind(this)];}KeyframedShapeProperty.prototype.getValue=processEffectsSequence;KeyframedShapeProperty.prototype.interpolateShape=interpolateShape;KeyframedShapeProperty.prototype.setVValue=setVValue;KeyframedShapeProperty.prototype.addEffect=addEffect;var EllShapeProperty=function(){var cPoint=roundCorner;function EllShapePropertyFactory(elem,data){this.v=shapePool.newElement();this.v.setPathData(true,4);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.localShapeCollection.addShape(this.v);this.d=data.d;this.elem=elem;this.comp=elem.comp;this.frameId=-1;this.initDynamicPropertyContainer(elem);this.p=PropertyFactory.getProp(elem,data.p,1,0,this);this.s=PropertyFactory.getProp(elem,data.s,1,0,this);if(this.dynamicProperties.length){this.k=true;}else{this.k=false;this.convertEllToPath();}}EllShapePropertyFactory.prototype={reset:resetShape,getValue:function getValue(){if(this.elem.globalData.frameId===this.frameId){return;}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertEllToPath();}},convertEllToPath:function convertEllToPath(){var p0=this.p.v[0];var p1=this.p.v[1];var s0=this.s.v[0]/2;var s1=this.s.v[1]/2;var _cw=this.d!==3;var _v=this.v;_v.v[0][0]=p0;_v.v[0][1]=p1-s1;_v.v[1][0]=_cw?p0+s0:p0-s0;_v.v[1][1]=p1;_v.v[2][0]=p0;_v.v[2][1]=p1+s1;_v.v[3][0]=_cw?p0-s0:p0+s0;_v.v[3][1]=p1;_v.i[0][0]=_cw?p0-s0*cPoint:p0+s0*cPoint;_v.i[0][1]=p1-s1;_v.i[1][0]=_cw?p0+s0:p0-s0;_v.i[1][1]=p1-s1*cPoint;_v.i[2][0]=_cw?p0+s0*cPoint:p0-s0*cPoint;_v.i[2][1]=p1+s1;_v.i[3][0]=_cw?p0-s0:p0+s0;_v.i[3][1]=p1+s1*cPoint;_v.o[0][0]=_cw?p0+s0*cPoint:p0-s0*cPoint;_v.o[0][1]=p1-s1;_v.o[1][0]=_cw?p0+s0:p0-s0;_v.o[1][1]=p1+s1*cPoint;_v.o[2][0]=_cw?p0-s0*cPoint:p0+s0*cPoint;_v.o[2][1]=p1+s1;_v.o[3][0]=_cw?p0-s0:p0+s0;_v.o[3][1]=p1-s1*cPoint;}};extendPrototype([DynamicPropertyContainer],EllShapePropertyFactory);return EllShapePropertyFactory;}();var StarShapeProperty=function(){function StarShapePropertyFactory(elem,data){this.v=shapePool.newElement();this.v.setPathData(true,0);this.elem=elem;this.comp=elem.comp;this.data=data;this.frameId=-1;this.d=data.d;this.initDynamicPropertyContainer(elem);if(data.sy===1){this.ir=PropertyFactory.getProp(elem,data.ir,0,0,this);this.is=PropertyFactory.getProp(elem,data.is,0,0.01,this);this.convertToPath=this.convertStarToPath;}else{this.convertToPath=this.convertPolygonToPath;}this.pt=PropertyFactory.getProp(elem,data.pt,0,0,this);this.p=PropertyFactory.getProp(elem,data.p,1,0,this);this.r=PropertyFactory.getProp(elem,data.r,0,degToRads,this);this.or=PropertyFactory.getProp(elem,data.or,0,0,this);this.os=PropertyFactory.getProp(elem,data.os,0,0.01,this);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.localShapeCollection.addShape(this.v);this.paths=this.localShapeCollection;if(this.dynamicProperties.length){this.k=true;}else{this.k=false;this.convertToPath();}}StarShapePropertyFactory.prototype={reset:resetShape,getValue:function getValue(){if(this.elem.globalData.frameId===this.frameId){return;}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertToPath();}},convertStarToPath:function convertStarToPath(){var numPts=Math.floor(this.pt.v)*2;var angle=Math.PI*2/numPts;/* this.v.v.length = numPts;
  5349. this.v.i.length = numPts;
  5350. this.v.o.length = numPts; */var longFlag=true;var longRad=this.or.v;var shortRad=this.ir.v;var longRound=this.os.v;var shortRound=this.is.v;var longPerimSegment=2*Math.PI*longRad/(numPts*2);var shortPerimSegment=2*Math.PI*shortRad/(numPts*2);var i;var rad;var roundness;var perimSegment;var currentAng=-Math.PI/2;currentAng+=this.r.v;var dir=this.data.d===3?-1:1;this.v._length=0;for(i=0;i<numPts;i+=1){rad=longFlag?longRad:shortRad;roundness=longFlag?longRound:shortRound;perimSegment=longFlag?longPerimSegment:shortPerimSegment;var x=rad*Math.cos(currentAng);var y=rad*Math.sin(currentAng);var ox=x===0&&y===0?0:y/Math.sqrt(x*x+y*y);var oy=x===0&&y===0?0:-x/Math.sqrt(x*x+y*y);x+=+this.p.v[0];y+=+this.p.v[1];this.v.setTripleAt(x,y,x-ox*perimSegment*roundness*dir,y-oy*perimSegment*roundness*dir,x+ox*perimSegment*roundness*dir,y+oy*perimSegment*roundness*dir,i,true);/* this.v.v[i] = [x,y];
  5351. this.v.i[i] = [x+ox*perimSegment*roundness*dir,y+oy*perimSegment*roundness*dir];
  5352. this.v.o[i] = [x-ox*perimSegment*roundness*dir,y-oy*perimSegment*roundness*dir];
  5353. this.v._length = numPts; */longFlag=!longFlag;currentAng+=angle*dir;}},convertPolygonToPath:function convertPolygonToPath(){var numPts=Math.floor(this.pt.v);var angle=Math.PI*2/numPts;var rad=this.or.v;var roundness=this.os.v;var perimSegment=2*Math.PI*rad/(numPts*4);var i;var currentAng=-Math.PI*0.5;var dir=this.data.d===3?-1:1;currentAng+=this.r.v;this.v._length=0;for(i=0;i<numPts;i+=1){var x=rad*Math.cos(currentAng);var y=rad*Math.sin(currentAng);var ox=x===0&&y===0?0:y/Math.sqrt(x*x+y*y);var oy=x===0&&y===0?0:-x/Math.sqrt(x*x+y*y);x+=+this.p.v[0];y+=+this.p.v[1];this.v.setTripleAt(x,y,x-ox*perimSegment*roundness*dir,y-oy*perimSegment*roundness*dir,x+ox*perimSegment*roundness*dir,y+oy*perimSegment*roundness*dir,i,true);currentAng+=angle*dir;}this.paths.length=0;this.paths[0]=this.v;}};extendPrototype([DynamicPropertyContainer],StarShapePropertyFactory);return StarShapePropertyFactory;}();var RectShapeProperty=function(){function RectShapePropertyFactory(elem,data){this.v=shapePool.newElement();this.v.c=true;this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.localShapeCollection.addShape(this.v);this.paths=this.localShapeCollection;this.elem=elem;this.comp=elem.comp;this.frameId=-1;this.d=data.d;this.initDynamicPropertyContainer(elem);this.p=PropertyFactory.getProp(elem,data.p,1,0,this);this.s=PropertyFactory.getProp(elem,data.s,1,0,this);this.r=PropertyFactory.getProp(elem,data.r,0,0,this);if(this.dynamicProperties.length){this.k=true;}else{this.k=false;this.convertRectToPath();}}RectShapePropertyFactory.prototype={convertRectToPath:function convertRectToPath(){var p0=this.p.v[0];var p1=this.p.v[1];var v0=this.s.v[0]/2;var v1=this.s.v[1]/2;var round=bmMin(v0,v1,this.r.v);var cPoint=round*(1-roundCorner);this.v._length=0;if(this.d===2||this.d===1){this.v.setTripleAt(p0+v0,p1-v1+round,p0+v0,p1-v1+round,p0+v0,p1-v1+cPoint,0,true);this.v.setTripleAt(p0+v0,p1+v1-round,p0+v0,p1+v1-cPoint,p0+v0,p1+v1-round,1,true);if(round!==0){this.v.setTripleAt(p0+v0-round,p1+v1,p0+v0-round,p1+v1,p0+v0-cPoint,p1+v1,2,true);this.v.setTripleAt(p0-v0+round,p1+v1,p0-v0+cPoint,p1+v1,p0-v0+round,p1+v1,3,true);this.v.setTripleAt(p0-v0,p1+v1-round,p0-v0,p1+v1-round,p0-v0,p1+v1-cPoint,4,true);this.v.setTripleAt(p0-v0,p1-v1+round,p0-v0,p1-v1+cPoint,p0-v0,p1-v1+round,5,true);this.v.setTripleAt(p0-v0+round,p1-v1,p0-v0+round,p1-v1,p0-v0+cPoint,p1-v1,6,true);this.v.setTripleAt(p0+v0-round,p1-v1,p0+v0-cPoint,p1-v1,p0+v0-round,p1-v1,7,true);}else{this.v.setTripleAt(p0-v0,p1+v1,p0-v0+cPoint,p1+v1,p0-v0,p1+v1,2);this.v.setTripleAt(p0-v0,p1-v1,p0-v0,p1-v1+cPoint,p0-v0,p1-v1,3);}}else{this.v.setTripleAt(p0+v0,p1-v1+round,p0+v0,p1-v1+cPoint,p0+v0,p1-v1+round,0,true);if(round!==0){this.v.setTripleAt(p0+v0-round,p1-v1,p0+v0-round,p1-v1,p0+v0-cPoint,p1-v1,1,true);this.v.setTripleAt(p0-v0+round,p1-v1,p0-v0+cPoint,p1-v1,p0-v0+round,p1-v1,2,true);this.v.setTripleAt(p0-v0,p1-v1+round,p0-v0,p1-v1+round,p0-v0,p1-v1+cPoint,3,true);this.v.setTripleAt(p0-v0,p1+v1-round,p0-v0,p1+v1-cPoint,p0-v0,p1+v1-round,4,true);this.v.setTripleAt(p0-v0+round,p1+v1,p0-v0+round,p1+v1,p0-v0+cPoint,p1+v1,5,true);this.v.setTripleAt(p0+v0-round,p1+v1,p0+v0-cPoint,p1+v1,p0+v0-round,p1+v1,6,true);this.v.setTripleAt(p0+v0,p1+v1-round,p0+v0,p1+v1-round,p0+v0,p1+v1-cPoint,7,true);}else{this.v.setTripleAt(p0-v0,p1-v1,p0-v0+cPoint,p1-v1,p0-v0,p1-v1,1,true);this.v.setTripleAt(p0-v0,p1+v1,p0-v0,p1+v1-cPoint,p0-v0,p1+v1,2,true);this.v.setTripleAt(p0+v0,p1+v1,p0+v0-cPoint,p1+v1,p0+v0,p1+v1,3,true);}}},getValue:function getValue(){if(this.elem.globalData.frameId===this.frameId){return;}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertRectToPath();}},reset:resetShape};extendPrototype([DynamicPropertyContainer],RectShapePropertyFactory);return RectShapePropertyFactory;}();function getShapeProp(elem,data,type){var prop;if(type===3||type===4){var dataProp=type===3?data.pt:data.ks;var keys=dataProp.k;if(keys.length){prop=new KeyframedShapeProperty(elem,data,type);}else{prop=new ShapeProperty(elem,data,type);}}else if(type===5){prop=new RectShapeProperty(elem,data);}else if(type===6){prop=new EllShapeProperty(elem,data);}else if(type===7){prop=new StarShapeProperty(elem,data);}if(prop.k){elem.addDynamicProperty(prop);}return prop;}function getConstructorFunction(){return ShapeProperty;}function getKeyframedConstructorFunction(){return KeyframedShapeProperty;}var ob={};ob.getShapeProp=getShapeProp;ob.getConstructorFunction=getConstructorFunction;ob.getKeyframedConstructorFunction=getKeyframedConstructorFunction;return ob;}();/*!
  5354. Transformation Matrix v2.0
  5355. (c) Epistemex 2014-2015
  5356. www.epistemex.com
  5357. By Ken Fyrstenberg
  5358. Contributions by leeoniya.
  5359. License: MIT, header required.
  5360. */ /**
  5361. * 2D transformation matrix object initialized with identity matrix.
  5362. *
  5363. * The matrix can synchronize a canvas context by supplying the context
  5364. * as an argument, or later apply current absolute transform to an
  5365. * existing context.
  5366. *
  5367. * All values are handled as floating point values.
  5368. *
  5369. * @param {CanvasRenderingContext2D} [context] - Optional context to sync with Matrix
  5370. * @prop {number} a - scale x
  5371. * @prop {number} b - shear y
  5372. * @prop {number} c - shear x
  5373. * @prop {number} d - scale y
  5374. * @prop {number} e - translate x
  5375. * @prop {number} f - translate y
  5376. * @prop {CanvasRenderingContext2D|null} [context=null] - set or get current canvas context
  5377. * @constructor
  5378. */var Matrix=function(){var _cos=Math.cos;var _sin=Math.sin;var _tan=Math.tan;var _rnd=Math.round;function reset(){this.props[0]=1;this.props[1]=0;this.props[2]=0;this.props[3]=0;this.props[4]=0;this.props[5]=1;this.props[6]=0;this.props[7]=0;this.props[8]=0;this.props[9]=0;this.props[10]=1;this.props[11]=0;this.props[12]=0;this.props[13]=0;this.props[14]=0;this.props[15]=1;return this;}function rotate(angle){if(angle===0){return this;}var mCos=_cos(angle);var mSin=_sin(angle);return this._t(mCos,-mSin,0,0,mSin,mCos,0,0,0,0,1,0,0,0,0,1);}function rotateX(angle){if(angle===0){return this;}var mCos=_cos(angle);var mSin=_sin(angle);return this._t(1,0,0,0,0,mCos,-mSin,0,0,mSin,mCos,0,0,0,0,1);}function rotateY(angle){if(angle===0){return this;}var mCos=_cos(angle);var mSin=_sin(angle);return this._t(mCos,0,mSin,0,0,1,0,0,-mSin,0,mCos,0,0,0,0,1);}function rotateZ(angle){if(angle===0){return this;}var mCos=_cos(angle);var mSin=_sin(angle);return this._t(mCos,-mSin,0,0,mSin,mCos,0,0,0,0,1,0,0,0,0,1);}function shear(sx,sy){return this._t(1,sy,sx,1,0,0);}function skew(ax,ay){return this.shear(_tan(ax),_tan(ay));}function skewFromAxis(ax,angle){var mCos=_cos(angle);var mSin=_sin(angle);return this._t(mCos,mSin,0,0,-mSin,mCos,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,_tan(ax),1,0,0,0,0,1,0,0,0,0,1)._t(mCos,-mSin,0,0,mSin,mCos,0,0,0,0,1,0,0,0,0,1);// return this._t(mCos, mSin, -mSin, mCos, 0, 0)._t(1, 0, _tan(ax), 1, 0, 0)._t(mCos, -mSin, mSin, mCos, 0, 0);
  5379. }function scale(sx,sy,sz){if(!sz&&sz!==0){sz=1;}if(sx===1&&sy===1&&sz===1){return this;}return this._t(sx,0,0,0,0,sy,0,0,0,0,sz,0,0,0,0,1);}function setTransform(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){this.props[0]=a;this.props[1]=b;this.props[2]=c;this.props[3]=d;this.props[4]=e;this.props[5]=f;this.props[6]=g;this.props[7]=h;this.props[8]=i;this.props[9]=j;this.props[10]=k;this.props[11]=l;this.props[12]=m;this.props[13]=n;this.props[14]=o;this.props[15]=p;return this;}function translate(tx,ty,tz){tz=tz||0;if(tx!==0||ty!==0||tz!==0){return this._t(1,0,0,0,0,1,0,0,0,0,1,0,tx,ty,tz,1);}return this;}function transform(a2,b2,c2,d2,e2,f2,g2,h2,i2,j2,k2,l2,m2,n2,o2,p2){var _p=this.props;if(a2===1&&b2===0&&c2===0&&d2===0&&e2===0&&f2===1&&g2===0&&h2===0&&i2===0&&j2===0&&k2===1&&l2===0){// NOTE: commenting this condition because TurboFan deoptimizes code when present
  5380. // if(m2 !== 0 || n2 !== 0 || o2 !== 0){
  5381. _p[12]=_p[12]*a2+_p[15]*m2;_p[13]=_p[13]*f2+_p[15]*n2;_p[14]=_p[14]*k2+_p[15]*o2;_p[15]*=p2;// }
  5382. this._identityCalculated=false;return this;}var a1=_p[0];var b1=_p[1];var c1=_p[2];var d1=_p[3];var e1=_p[4];var f1=_p[5];var g1=_p[6];var h1=_p[7];var i1=_p[8];var j1=_p[9];var k1=_p[10];var l1=_p[11];var m1=_p[12];var n1=_p[13];var o1=_p[14];var p1=_p[15];/* matrix order (canvas compatible):
  5383. * ace
  5384. * bdf
  5385. * 001
  5386. */_p[0]=a1*a2+b1*e2+c1*i2+d1*m2;_p[1]=a1*b2+b1*f2+c1*j2+d1*n2;_p[2]=a1*c2+b1*g2+c1*k2+d1*o2;_p[3]=a1*d2+b1*h2+c1*l2+d1*p2;_p[4]=e1*a2+f1*e2+g1*i2+h1*m2;_p[5]=e1*b2+f1*f2+g1*j2+h1*n2;_p[6]=e1*c2+f1*g2+g1*k2+h1*o2;_p[7]=e1*d2+f1*h2+g1*l2+h1*p2;_p[8]=i1*a2+j1*e2+k1*i2+l1*m2;_p[9]=i1*b2+j1*f2+k1*j2+l1*n2;_p[10]=i1*c2+j1*g2+k1*k2+l1*o2;_p[11]=i1*d2+j1*h2+k1*l2+l1*p2;_p[12]=m1*a2+n1*e2+o1*i2+p1*m2;_p[13]=m1*b2+n1*f2+o1*j2+p1*n2;_p[14]=m1*c2+n1*g2+o1*k2+p1*o2;_p[15]=m1*d2+n1*h2+o1*l2+p1*p2;this._identityCalculated=false;return this;}function isIdentity(){if(!this._identityCalculated){this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1);this._identityCalculated=true;}return this._identity;}function equals(matr){var i=0;while(i<16){if(matr.props[i]!==this.props[i]){return false;}i+=1;}return true;}function clone(matr){var i;for(i=0;i<16;i+=1){matr.props[i]=this.props[i];}return matr;}function cloneFromProps(props){var i;for(i=0;i<16;i+=1){this.props[i]=props[i];}}function applyToPoint(x,y,z){return{x:x*this.props[0]+y*this.props[4]+z*this.props[8]+this.props[12],y:x*this.props[1]+y*this.props[5]+z*this.props[9]+this.props[13],z:x*this.props[2]+y*this.props[6]+z*this.props[10]+this.props[14]};/* return {
  5387. x: x * me.a + y * me.c + me.e,
  5388. y: x * me.b + y * me.d + me.f
  5389. }; */}function applyToX(x,y,z){return x*this.props[0]+y*this.props[4]+z*this.props[8]+this.props[12];}function applyToY(x,y,z){return x*this.props[1]+y*this.props[5]+z*this.props[9]+this.props[13];}function applyToZ(x,y,z){return x*this.props[2]+y*this.props[6]+z*this.props[10]+this.props[14];}function getInverseMatrix(){var determinant=this.props[0]*this.props[5]-this.props[1]*this.props[4];var a=this.props[5]/determinant;var b=-this.props[1]/determinant;var c=-this.props[4]/determinant;var d=this.props[0]/determinant;var e=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/determinant;var f=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/determinant;var inverseMatrix=new Matrix();inverseMatrix.props[0]=a;inverseMatrix.props[1]=b;inverseMatrix.props[4]=c;inverseMatrix.props[5]=d;inverseMatrix.props[12]=e;inverseMatrix.props[13]=f;return inverseMatrix;}function inversePoint(pt){var inverseMatrix=this.getInverseMatrix();return inverseMatrix.applyToPointArray(pt[0],pt[1],pt[2]||0);}function inversePoints(pts){var i;var len=pts.length;var retPts=[];for(i=0;i<len;i+=1){retPts[i]=inversePoint(pts[i]);}return retPts;}function applyToTriplePoints(pt1,pt2,pt3){var arr=createTypedArray('float32',6);if(this.isIdentity()){arr[0]=pt1[0];arr[1]=pt1[1];arr[2]=pt2[0];arr[3]=pt2[1];arr[4]=pt3[0];arr[5]=pt3[1];}else{var p0=this.props[0];var p1=this.props[1];var p4=this.props[4];var p5=this.props[5];var p12=this.props[12];var p13=this.props[13];arr[0]=pt1[0]*p0+pt1[1]*p4+p12;arr[1]=pt1[0]*p1+pt1[1]*p5+p13;arr[2]=pt2[0]*p0+pt2[1]*p4+p12;arr[3]=pt2[0]*p1+pt2[1]*p5+p13;arr[4]=pt3[0]*p0+pt3[1]*p4+p12;arr[5]=pt3[0]*p1+pt3[1]*p5+p13;}return arr;}function applyToPointArray(x,y,z){var arr;if(this.isIdentity()){arr=[x,y,z];}else{arr=[x*this.props[0]+y*this.props[4]+z*this.props[8]+this.props[12],x*this.props[1]+y*this.props[5]+z*this.props[9]+this.props[13],x*this.props[2]+y*this.props[6]+z*this.props[10]+this.props[14]];}return arr;}function applyToPointStringified(x,y){if(this.isIdentity()){return x+','+y;}var _p=this.props;return Math.round((x*_p[0]+y*_p[4]+_p[12])*100)/100+','+Math.round((x*_p[1]+y*_p[5]+_p[13])*100)/100;}function toCSS(){// Doesn't make much sense to add this optimization. If it is an identity matrix, it's very likely this will get called only once since it won't be keyframed.
  5390. /* if(this.isIdentity()) {
  5391. return '';
  5392. } */var i=0;var props=this.props;var cssValue='matrix3d(';var v=10000;while(i<16){cssValue+=_rnd(props[i]*v)/v;cssValue+=i===15?')':',';i+=1;}return cssValue;}function roundMatrixProperty(val){var v=10000;if(val<0.000001&&val>0||val>-0.000001&&val<0){return _rnd(val*v)/v;}return val;}function to2dCSS(){// Doesn't make much sense to add this optimization. If it is an identity matrix, it's very likely this will get called only once since it won't be keyframed.
  5393. /* if(this.isIdentity()) {
  5394. return '';
  5395. } */var props=this.props;var _a=roundMatrixProperty(props[0]);var _b=roundMatrixProperty(props[1]);var _c=roundMatrixProperty(props[4]);var _d=roundMatrixProperty(props[5]);var _e=roundMatrixProperty(props[12]);var _f=roundMatrixProperty(props[13]);return'matrix('+_a+','+_b+','+_c+','+_d+','+_e+','+_f+')';}return function(){this.reset=reset;this.rotate=rotate;this.rotateX=rotateX;this.rotateY=rotateY;this.rotateZ=rotateZ;this.skew=skew;this.skewFromAxis=skewFromAxis;this.shear=shear;this.scale=scale;this.setTransform=setTransform;this.translate=translate;this.transform=transform;this.applyToPoint=applyToPoint;this.applyToX=applyToX;this.applyToY=applyToY;this.applyToZ=applyToZ;this.applyToPointArray=applyToPointArray;this.applyToTriplePoints=applyToTriplePoints;this.applyToPointStringified=applyToPointStringified;this.toCSS=toCSS;this.to2dCSS=to2dCSS;this.clone=clone;this.cloneFromProps=cloneFromProps;this.equals=equals;this.inversePoints=inversePoints;this.inversePoint=inversePoint;this.getInverseMatrix=getInverseMatrix;this._t=this.transform;this.isIdentity=isIdentity;this._identity=true;this._identityCalculated=false;this.props=createTypedArray('float32',16);this.reset();};}();function _typeof$3(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$3=function _typeof(obj){return typeof obj;};}else{_typeof$3=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof$3(obj);}var lottie={};function setLocation(href){setLocationHref(href);}function searchAnimations(){{animationManager.searchAnimations();}}function setSubframeRendering(flag){setSubframeEnabled(flag);}function setPrefix(prefix){setIdPrefix(prefix);}function loadAnimation(params){return animationManager.loadAnimation(params);}function setQuality(value){if(typeof value==='string'){switch(value){case'high':setDefaultCurveSegments(200);break;default:case'medium':setDefaultCurveSegments(50);break;case'low':setDefaultCurveSegments(10);break;}}else if(!isNaN(value)&&value>1){setDefaultCurveSegments(value);}}function inBrowser(){return typeof navigator!=='undefined';}function installPlugin(type,plugin){if(type==='expressions'){setExpressionsPlugin(plugin);}}function getFactory(name){switch(name){case'propertyFactory':return PropertyFactory;case'shapePropertyFactory':return ShapePropertyFactory;case'matrix':return Matrix;default:return null;}}lottie.play=animationManager.play;lottie.pause=animationManager.pause;lottie.setLocationHref=setLocation;lottie.togglePause=animationManager.togglePause;lottie.setSpeed=animationManager.setSpeed;lottie.setDirection=animationManager.setDirection;lottie.stop=animationManager.stop;lottie.searchAnimations=searchAnimations;lottie.registerAnimation=animationManager.registerAnimation;lottie.loadAnimation=loadAnimation;lottie.setSubframeRendering=setSubframeRendering;lottie.resize=animationManager.resize;// lottie.start = start;
  5396. lottie.goToAndStop=animationManager.goToAndStop;lottie.destroy=animationManager.destroy;lottie.setQuality=setQuality;lottie.inBrowser=inBrowser;lottie.installPlugin=installPlugin;lottie.freeze=animationManager.freeze;lottie.unfreeze=animationManager.unfreeze;lottie.setVolume=animationManager.setVolume;lottie.mute=animationManager.mute;lottie.unmute=animationManager.unmute;lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations;lottie.useWebWorker=setWebWorker;lottie.setIDPrefix=setPrefix;lottie.__getFactory=getFactory;lottie.version='5.9.6';function checkReady(){if(document.readyState==='complete'){clearInterval(readyStateCheckInterval);searchAnimations();}}function getQueryVariable(variable){var vars=queryString.split('&');for(var i=0;i<vars.length;i+=1){var pair=vars[i].split('=');if(decodeURIComponent(pair[0])==variable){// eslint-disable-line eqeqeq
  5397. return decodeURIComponent(pair[1]);}}return null;}var queryString='';{var scripts=document.getElementsByTagName('script');var index=scripts.length-1;var myScript=scripts[index]||{src:''};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,''):'';// eslint-disable-line no-useless-escape
  5398. getQueryVariable('renderer');}var readyStateCheckInterval=setInterval(checkReady,100);// this adds bodymovin to the window object for backwards compatibility
  5399. try{if(!(('object'==="undefined"?"undefined":_typeof$3(exports$1))==='object'&&'object'!=='undefined')&&!(typeof undefined==='function'&&undefined.amd)// eslint-disable-line no-undef
  5400. ){window.bodymovin=lottie;}}catch(err){//
  5401. }var ShapeModifiers=function(){var ob={};var modifiers={};ob.registerModifier=registerModifier;ob.getModifier=getModifier;function registerModifier(nm,factory){if(!modifiers[nm]){modifiers[nm]=factory;}}function getModifier(nm,elem,data){return new modifiers[nm](elem,data);}return ob;}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){};ShapeModifier.prototype.addShapeToModifier=function(){};ShapeModifier.prototype.addShape=function(data){if(!this.closed){// Adding shape to dynamic properties. It covers the case where a shape has no effects applied, to reset it's _mdf state on every tick.
  5402. data.sh.container.addDynamicProperty(data.sh);var shapeData={shape:data.sh,data:data,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(shapeData);this.addShapeToModifier(shapeData);if(this._isAnimated){data.setAsAnimated();}}};ShapeModifier.prototype.init=function(elem,data){this.shapes=[];this.elem=elem;this.initDynamicPropertyContainer(elem);this.initModifierProperties(elem,data);this.frameId=initialDefaultFrame;this.closed=false;this.k=false;if(this.dynamicProperties.length){this.k=true;}else{this.getValue(true);}};ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId){return;}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();};extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier);TrimModifier.prototype.initModifierProperties=function(elem,data){this.s=PropertyFactory.getProp(elem,data.s,0,0.01,this);this.e=PropertyFactory.getProp(elem,data.e,0,0.01,this);this.o=PropertyFactory.getProp(elem,data.o,0,0,this);this.sValue=0;this.eValue=0;this.getValue=this.processKeys;this.m=data.m;this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;};TrimModifier.prototype.addShapeToModifier=function(shapeData){shapeData.pathsData=[];};TrimModifier.prototype.calculateShapeEdges=function(s,e,shapeLength,addedLength,totalModifierLength){var segments=[];if(e<=1){segments.push({s:s,e:e});}else if(s>=1){segments.push({s:s-1,e:e-1});}else{segments.push({s:s,e:1});segments.push({s:0,e:e-1});}var shapeSegments=[];var i;var len=segments.length;var segmentOb;for(i=0;i<len;i+=1){segmentOb=segments[i];if(!(segmentOb.e*totalModifierLength<addedLength||segmentOb.s*totalModifierLength>addedLength+shapeLength)){var shapeS;var shapeE;if(segmentOb.s*totalModifierLength<=addedLength){shapeS=0;}else{shapeS=(segmentOb.s*totalModifierLength-addedLength)/shapeLength;}if(segmentOb.e*totalModifierLength>=addedLength+shapeLength){shapeE=1;}else{shapeE=(segmentOb.e*totalModifierLength-addedLength)/shapeLength;}shapeSegments.push([shapeS,shapeE]);}}if(!shapeSegments.length){shapeSegments.push([0,0]);}return shapeSegments;};TrimModifier.prototype.releasePathsData=function(pathsData){var i;var len=pathsData.length;for(i=0;i<len;i+=1){segmentsLengthPool.release(pathsData[i]);}pathsData.length=0;return pathsData;};TrimModifier.prototype.processShapes=function(_isFirstFrame){var s;var e;if(this._mdf||_isFirstFrame){var o=this.o.v%360/360;if(o<0){o+=1;}if(this.s.v>1){s=1+o;}else if(this.s.v<0){s=0+o;}else{s=this.s.v+o;}if(this.e.v>1){e=1+o;}else if(this.e.v<0){e=0+o;}else{e=this.e.v+o;}if(s>e){var _s=s;s=e;e=_s;}s=Math.round(s*10000)*0.0001;e=Math.round(e*10000)*0.0001;this.sValue=s;this.eValue=e;}else{s=this.sValue;e=this.eValue;}var shapePaths;var i;var len=this.shapes.length;var j;var jLen;var pathsData;var pathData;var totalShapeLength;var totalModifierLength=0;if(e===s){for(i=0;i<len;i+=1){this.shapes[i].localShapeCollection.releaseShapes();this.shapes[i].shape._mdf=true;this.shapes[i].shape.paths=this.shapes[i].localShapeCollection;if(this._mdf){this.shapes[i].pathsData.length=0;}}}else if(!(e===1&&s===0||e===0&&s===1)){var segments=[];var shapeData;var localShapeCollection;for(i=0;i<len;i+=1){shapeData=this.shapes[i];// if shape hasn't changed and trim properties haven't changed, cached previous path can be used
  5403. if(!shapeData.shape._mdf&&!this._mdf&&!_isFirstFrame&&this.m!==2){shapeData.shape.paths=shapeData.localShapeCollection;}else{shapePaths=shapeData.shape.paths;jLen=shapePaths._length;totalShapeLength=0;if(!shapeData.shape._mdf&&shapeData.pathsData.length){totalShapeLength=shapeData.totalShapeLength;}else{pathsData=this.releasePathsData(shapeData.pathsData);for(j=0;j<jLen;j+=1){pathData=bez.getSegmentsLength(shapePaths.shapes[j]);pathsData.push(pathData);totalShapeLength+=pathData.totalLength;}shapeData.totalShapeLength=totalShapeLength;shapeData.pathsData=pathsData;}totalModifierLength+=totalShapeLength;shapeData.shape._mdf=true;}}var shapeS=s;var shapeE=e;var addedLength=0;var edges;for(i=len-1;i>=0;i-=1){shapeData=this.shapes[i];if(shapeData.shape._mdf){localShapeCollection=shapeData.localShapeCollection;localShapeCollection.releaseShapes();// if m === 2 means paths are trimmed individually so edges need to be found for this specific shape relative to whoel group
  5404. if(this.m===2&&len>1){edges=this.calculateShapeEdges(s,e,shapeData.totalShapeLength,addedLength,totalModifierLength);addedLength+=shapeData.totalShapeLength;}else{edges=[[shapeS,shapeE]];}jLen=edges.length;for(j=0;j<jLen;j+=1){shapeS=edges[j][0];shapeE=edges[j][1];segments.length=0;if(shapeE<=1){segments.push({s:shapeData.totalShapeLength*shapeS,e:shapeData.totalShapeLength*shapeE});}else if(shapeS>=1){segments.push({s:shapeData.totalShapeLength*(shapeS-1),e:shapeData.totalShapeLength*(shapeE-1)});}else{segments.push({s:shapeData.totalShapeLength*shapeS,e:shapeData.totalShapeLength});segments.push({s:0,e:shapeData.totalShapeLength*(shapeE-1)});}var newShapesData=this.addShapes(shapeData,segments[0]);if(segments[0].s!==segments[0].e){if(segments.length>1){var lastShapeInCollection=shapeData.shape.paths.shapes[shapeData.shape.paths._length-1];if(lastShapeInCollection.c){var lastShape=newShapesData.pop();this.addPaths(newShapesData,localShapeCollection);newShapesData=this.addShapes(shapeData,segments[1],lastShape);}else{this.addPaths(newShapesData,localShapeCollection);newShapesData=this.addShapes(shapeData,segments[1]);}}this.addPaths(newShapesData,localShapeCollection);}}shapeData.shape.paths=localShapeCollection;}}}else if(this._mdf){for(i=0;i<len;i+=1){// Releasign Trim Cached paths data when no trim applied in case shapes are modified inbetween.
  5405. // Don't remove this even if it's losing cached info.
  5406. this.shapes[i].pathsData.length=0;this.shapes[i].shape._mdf=true;}}};TrimModifier.prototype.addPaths=function(newPaths,localShapeCollection){var i;var len=newPaths.length;for(i=0;i<len;i+=1){localShapeCollection.addShape(newPaths[i]);}};TrimModifier.prototype.addSegment=function(pt1,pt2,pt3,pt4,shapePath,pos,newShape){shapePath.setXYAt(pt2[0],pt2[1],'o',pos);shapePath.setXYAt(pt3[0],pt3[1],'i',pos+1);if(newShape){shapePath.setXYAt(pt1[0],pt1[1],'v',pos);}shapePath.setXYAt(pt4[0],pt4[1],'v',pos+1);};TrimModifier.prototype.addSegmentFromArray=function(points,shapePath,pos,newShape){shapePath.setXYAt(points[1],points[5],'o',pos);shapePath.setXYAt(points[2],points[6],'i',pos+1);if(newShape){shapePath.setXYAt(points[0],points[4],'v',pos);}shapePath.setXYAt(points[3],points[7],'v',pos+1);};TrimModifier.prototype.addShapes=function(shapeData,shapeSegment,shapePath){var pathsData=shapeData.pathsData;var shapePaths=shapeData.shape.paths.shapes;var i;var len=shapeData.shape.paths._length;var j;var jLen;var addedLength=0;var currentLengthData;var segmentCount;var lengths;var segment;var shapes=[];var initPos;var newShape=true;if(!shapePath){shapePath=shapePool.newElement();segmentCount=0;initPos=0;}else{segmentCount=shapePath._length;initPos=shapePath._length;}shapes.push(shapePath);for(i=0;i<len;i+=1){lengths=pathsData[i].lengths;shapePath.c=shapePaths[i].c;jLen=shapePaths[i].c?lengths.length:lengths.length+1;for(j=1;j<jLen;j+=1){currentLengthData=lengths[j-1];if(addedLength+currentLengthData.addedLength<shapeSegment.s){addedLength+=currentLengthData.addedLength;shapePath.c=false;}else if(addedLength>shapeSegment.e){shapePath.c=false;break;}else{if(shapeSegment.s<=addedLength&&shapeSegment.e>=addedLength+currentLengthData.addedLength){this.addSegment(shapePaths[i].v[j-1],shapePaths[i].o[j-1],shapePaths[i].i[j],shapePaths[i].v[j],shapePath,segmentCount,newShape);newShape=false;}else{segment=bez.getNewSegment(shapePaths[i].v[j-1],shapePaths[i].v[j],shapePaths[i].o[j-1],shapePaths[i].i[j],(shapeSegment.s-addedLength)/currentLengthData.addedLength,(shapeSegment.e-addedLength)/currentLengthData.addedLength,lengths[j-1]);this.addSegmentFromArray(segment,shapePath,segmentCount,newShape);// this.addSegment(segment.pt1, segment.pt3, segment.pt4, segment.pt2, shapePath, segmentCount, newShape);
  5407. newShape=false;shapePath.c=false;}addedLength+=currentLengthData.addedLength;segmentCount+=1;}}if(shapePaths[i].c&&lengths.length){currentLengthData=lengths[j-1];if(addedLength<=shapeSegment.e){var segmentLength=lengths[j-1].addedLength;if(shapeSegment.s<=addedLength&&shapeSegment.e>=addedLength+segmentLength){this.addSegment(shapePaths[i].v[j-1],shapePaths[i].o[j-1],shapePaths[i].i[0],shapePaths[i].v[0],shapePath,segmentCount,newShape);newShape=false;}else{segment=bez.getNewSegment(shapePaths[i].v[j-1],shapePaths[i].v[0],shapePaths[i].o[j-1],shapePaths[i].i[0],(shapeSegment.s-addedLength)/segmentLength,(shapeSegment.e-addedLength)/segmentLength,lengths[j-1]);this.addSegmentFromArray(segment,shapePath,segmentCount,newShape);// this.addSegment(segment.pt1, segment.pt3, segment.pt4, segment.pt2, shapePath, segmentCount, newShape);
  5408. newShape=false;shapePath.c=false;}}else{shapePath.c=false;}addedLength+=currentLengthData.addedLength;segmentCount+=1;}if(shapePath._length){shapePath.setXYAt(shapePath.v[initPos][0],shapePath.v[initPos][1],'i',initPos);shapePath.setXYAt(shapePath.v[shapePath._length-1][0],shapePath.v[shapePath._length-1][1],'o',shapePath._length-1);}if(addedLength>shapeSegment.e){break;}if(i<len-1){shapePath=shapePool.newElement();newShape=true;shapes.push(shapePath);segmentCount=0;}}return shapes;};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier);PuckerAndBloatModifier.prototype.initModifierProperties=function(elem,data){this.getValue=this.processKeys;this.amount=PropertyFactory.getProp(elem,data.a,0,null,this);this._isAnimated=!!this.amount.effectsSequence.length;};PuckerAndBloatModifier.prototype.processPath=function(path,amount){var percent=amount/100;var centerPoint=[0,0];var pathLength=path._length;var i=0;for(i=0;i<pathLength;i+=1){centerPoint[0]+=path.v[i][0];centerPoint[1]+=path.v[i][1];}centerPoint[0]/=pathLength;centerPoint[1]/=pathLength;var clonedPath=shapePool.newElement();clonedPath.c=path.c;var vX;var vY;var oX;var oY;var iX;var iY;for(i=0;i<pathLength;i+=1){vX=path.v[i][0]+(centerPoint[0]-path.v[i][0])*percent;vY=path.v[i][1]+(centerPoint[1]-path.v[i][1])*percent;oX=path.o[i][0]+(centerPoint[0]-path.o[i][0])*-percent;oY=path.o[i][1]+(centerPoint[1]-path.o[i][1])*-percent;iX=path.i[i][0]+(centerPoint[0]-path.i[i][0])*-percent;iY=path.i[i][1]+(centerPoint[1]-path.i[i][1])*-percent;clonedPath.setTripleAt(vX,vY,oX,oY,iX,iY,i);}return clonedPath;};PuckerAndBloatModifier.prototype.processShapes=function(_isFirstFrame){var shapePaths;var i;var len=this.shapes.length;var j;var jLen;var amount=this.amount.v;if(amount!==0){var shapeData;var localShapeCollection;for(i=0;i<len;i+=1){shapeData=this.shapes[i];localShapeCollection=shapeData.localShapeCollection;if(!(!shapeData.shape._mdf&&!this._mdf&&!_isFirstFrame)){localShapeCollection.releaseShapes();shapeData.shape._mdf=true;shapePaths=shapeData.shape.paths.shapes;jLen=shapeData.shape.paths._length;for(j=0;j<jLen;j+=1){localShapeCollection.addShape(this.processPath(shapePaths[j],amount));}}shapeData.shape.paths=shapeData.localShapeCollection;}}if(!this.dynamicProperties.length){this._mdf=false;}};var TransformPropertyFactory=function(){var defaultVector=[0,0];function applyToMatrix(mat){var _mdf=this._mdf;this.iterateDynamicProperties();this._mdf=this._mdf||_mdf;if(this.a){mat.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);}if(this.s){mat.scale(this.s.v[0],this.s.v[1],this.s.v[2]);}if(this.sk){mat.skewFromAxis(-this.sk.v,this.sa.v);}if(this.r){mat.rotate(-this.r.v);}else{mat.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);}if(this.data.p.s){if(this.data.p.z){mat.translate(this.px.v,this.py.v,-this.pz.v);}else{mat.translate(this.px.v,this.py.v,0);}}else{mat.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);}}function processKeys(forceRender){if(this.elem.globalData.frameId===this.frameId){return;}if(this._isDirty){this.precalculateMatrix();this._isDirty=false;}this.iterateDynamicProperties();if(this._mdf||forceRender){var frameRate;this.v.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);}if(this.appliedTransformations<2){this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]);}if(this.sk&&this.appliedTransformations<3){this.v.skewFromAxis(-this.sk.v,this.sa.v);}if(this.r&&this.appliedTransformations<4){this.v.rotate(-this.r.v);}else if(!this.r&&this.appliedTransformations<4){this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);}if(this.autoOriented){var v1;var v2;frameRate=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime){if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t){v1=this.p.getValueAtTime((this.p.keyframes[0].t+0.01)/frameRate,0);v2=this.p.getValueAtTime(this.p.keyframes[0].t/frameRate,0);}else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t){v1=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/frameRate,0);v2=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-0.05)/frameRate,0);}else{v1=this.p.pv;v2=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-0.01)/frameRate,this.p.offsetTime);}}else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){v1=[];v2=[];var px=this.px;var py=this.py;if(px._caching.lastFrame+px.offsetTime<=px.keyframes[0].t){v1[0]=px.getValueAtTime((px.keyframes[0].t+0.01)/frameRate,0);v1[1]=py.getValueAtTime((py.keyframes[0].t+0.01)/frameRate,0);v2[0]=px.getValueAtTime(px.keyframes[0].t/frameRate,0);v2[1]=py.getValueAtTime(py.keyframes[0].t/frameRate,0);}else if(px._caching.lastFrame+px.offsetTime>=px.keyframes[px.keyframes.length-1].t){v1[0]=px.getValueAtTime(px.keyframes[px.keyframes.length-1].t/frameRate,0);v1[1]=py.getValueAtTime(py.keyframes[py.keyframes.length-1].t/frameRate,0);v2[0]=px.getValueAtTime((px.keyframes[px.keyframes.length-1].t-0.01)/frameRate,0);v2[1]=py.getValueAtTime((py.keyframes[py.keyframes.length-1].t-0.01)/frameRate,0);}else{v1=[px.pv,py.pv];v2[0]=px.getValueAtTime((px._caching.lastFrame+px.offsetTime-0.01)/frameRate,px.offsetTime);v2[1]=py.getValueAtTime((py._caching.lastFrame+py.offsetTime-0.01)/frameRate,py.offsetTime);}}else{v2=defaultVector;v1=v2;}this.v.rotate(-Math.atan2(v1[1]-v2[1],v1[0]-v2[0]));}if(this.data.p&&this.data.p.s){if(this.data.p.z){this.v.translate(this.px.v,this.py.v,-this.pz.v);}else{this.v.translate(this.px.v,this.py.v,0);}}else{this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);}}this.frameId=this.elem.globalData.frameId;}function precalculateMatrix(){if(!this.a.k){this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);this.appliedTransformations=1;}else{return;}if(!this.s.effectsSequence.length){this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]);this.appliedTransformations=2;}else{return;}if(this.sk){if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length){this.pre.skewFromAxis(-this.sk.v,this.sa.v);this.appliedTransformations=3;}else{return;}}if(this.r){if(!this.r.effectsSequence.length){this.pre.rotate(-this.r.v);this.appliedTransformations=4;}}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length){this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);this.appliedTransformations=4;}}function autoOrient(){//
  5409. // var prevP = this.getValueAtTime();
  5410. }function addDynamicProperty(prop){this._addDynamicProperty(prop);this.elem.addDynamicProperty(prop);this._isDirty=true;}function TransformProperty(elem,data,container){this.elem=elem;this.frameId=-1;this.propType='transform';this.data=data;this.v=new Matrix();// Precalculated matrix with non animated properties
  5411. this.pre=new Matrix();this.appliedTransformations=0;this.initDynamicPropertyContainer(container||elem);if(data.p&&data.p.s){this.px=PropertyFactory.getProp(elem,data.p.x,0,0,this);this.py=PropertyFactory.getProp(elem,data.p.y,0,0,this);if(data.p.z){this.pz=PropertyFactory.getProp(elem,data.p.z,0,0,this);}}else{this.p=PropertyFactory.getProp(elem,data.p||{k:[0,0,0]},1,0,this);}if(data.rx){this.rx=PropertyFactory.getProp(elem,data.rx,0,degToRads,this);this.ry=PropertyFactory.getProp(elem,data.ry,0,degToRads,this);this.rz=PropertyFactory.getProp(elem,data.rz,0,degToRads,this);if(data.or.k[0].ti){var i;var len=data.or.k.length;for(i=0;i<len;i+=1){data.or.k[i].to=null;data.or.k[i].ti=null;}}this.or=PropertyFactory.getProp(elem,data.or,1,degToRads,this);// sh Indicates it needs to be capped between -180 and 180
  5412. this.or.sh=true;}else{this.r=PropertyFactory.getProp(elem,data.r||{k:0},0,degToRads,this);}if(data.sk){this.sk=PropertyFactory.getProp(elem,data.sk,0,degToRads,this);this.sa=PropertyFactory.getProp(elem,data.sa,0,degToRads,this);}this.a=PropertyFactory.getProp(elem,data.a||{k:[0,0,0]},1,0,this);this.s=PropertyFactory.getProp(elem,data.s||{k:[100,100,100]},1,0.01,this);// Opacity is not part of the transform properties, that's why it won't use this.dynamicProperties. That way transforms won't get updated if opacity changes.
  5413. if(data.o){this.o=PropertyFactory.getProp(elem,data.o,0,0.01,elem);}else{this.o={_mdf:false,v:1};}this._isDirty=true;if(!this.dynamicProperties.length){this.getValue(true);}}TransformProperty.prototype={applyToMatrix:applyToMatrix,getValue:processKeys,precalculateMatrix:precalculateMatrix,autoOrient:autoOrient};extendPrototype([DynamicPropertyContainer],TransformProperty);TransformProperty.prototype.addDynamicProperty=addDynamicProperty;TransformProperty.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function getTransformProperty(elem,data,container){return new TransformProperty(elem,data,container);}return{getTransformProperty:getTransformProperty};}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier);RepeaterModifier.prototype.initModifierProperties=function(elem,data){this.getValue=this.processKeys;this.c=PropertyFactory.getProp(elem,data.c,0,null,this);this.o=PropertyFactory.getProp(elem,data.o,0,null,this);this.tr=TransformPropertyFactory.getTransformProperty(elem,data.tr,this);this.so=PropertyFactory.getProp(elem,data.tr.so,0,0.01,this);this.eo=PropertyFactory.getProp(elem,data.tr.eo,0,0.01,this);this.data=data;if(!this.dynamicProperties.length){this.getValue(true);}this._isAnimated=!!this.dynamicProperties.length;this.pMatrix=new Matrix();this.rMatrix=new Matrix();this.sMatrix=new Matrix();this.tMatrix=new Matrix();this.matrix=new Matrix();};RepeaterModifier.prototype.applyTransforms=function(pMatrix,rMatrix,sMatrix,transform,perc,inv){var dir=inv?-1:1;var scaleX=transform.s.v[0]+(1-transform.s.v[0])*(1-perc);var scaleY=transform.s.v[1]+(1-transform.s.v[1])*(1-perc);pMatrix.translate(transform.p.v[0]*dir*perc,transform.p.v[1]*dir*perc,transform.p.v[2]);rMatrix.translate(-transform.a.v[0],-transform.a.v[1],transform.a.v[2]);rMatrix.rotate(-transform.r.v*dir*perc);rMatrix.translate(transform.a.v[0],transform.a.v[1],transform.a.v[2]);sMatrix.translate(-transform.a.v[0],-transform.a.v[1],transform.a.v[2]);sMatrix.scale(inv?1/scaleX:scaleX,inv?1/scaleY:scaleY);sMatrix.translate(transform.a.v[0],transform.a.v[1],transform.a.v[2]);};RepeaterModifier.prototype.init=function(elem,arr,pos,elemsData){this.elem=elem;this.arr=arr;this.pos=pos;this.elemsData=elemsData;this._currentCopies=0;this._elements=[];this._groups=[];this.frameId=-1;this.initDynamicPropertyContainer(elem);this.initModifierProperties(elem,arr[pos]);while(pos>0){pos-=1;// this._elements.unshift(arr.splice(pos,1)[0]);
  5414. this._elements.unshift(arr[pos]);}if(this.dynamicProperties.length){this.k=true;}else{this.getValue(true);}};RepeaterModifier.prototype.resetElements=function(elements){var i;var len=elements.length;for(i=0;i<len;i+=1){elements[i]._processed=false;if(elements[i].ty==='gr'){this.resetElements(elements[i].it);}}};RepeaterModifier.prototype.cloneElements=function(elements){var newElements=JSON.parse(JSON.stringify(elements));this.resetElements(newElements);return newElements;};RepeaterModifier.prototype.changeGroupRender=function(elements,renderFlag){var i;var len=elements.length;for(i=0;i<len;i+=1){elements[i]._render=renderFlag;if(elements[i].ty==='gr'){this.changeGroupRender(elements[i].it,renderFlag);}}};RepeaterModifier.prototype.processShapes=function(_isFirstFrame){var items;var itemsTransform;var i;var dir;var cont;var hasReloaded=false;if(this._mdf||_isFirstFrame){var copies=Math.ceil(this.c.v);if(this._groups.length<copies){while(this._groups.length<copies){var group={it:this.cloneElements(this._elements),ty:'gr'};group.it.push({a:{a:0,ix:1,k:[0,0]},nm:'Transform',o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:'tr'});this.arr.splice(0,0,group);this._groups.splice(0,0,group);this._currentCopies+=1;}this.elem.reloadShapes();hasReloaded=true;}cont=0;var renderFlag;for(i=0;i<=this._groups.length-1;i+=1){renderFlag=cont<copies;this._groups[i]._render=renderFlag;this.changeGroupRender(this._groups[i].it,renderFlag);if(!renderFlag){var elems=this.elemsData[i].it;var transformData=elems[elems.length-1];if(transformData.transform.op.v!==0){transformData.transform.op._mdf=true;transformData.transform.op.v=0;}else{transformData.transform.op._mdf=false;}}cont+=1;}this._currentCopies=copies;/// /
  5415. var offset=this.o.v;var offsetModulo=offset%1;var roundOffset=offset>0?Math.floor(offset):Math.ceil(offset);var pProps=this.pMatrix.props;var rProps=this.rMatrix.props;var sProps=this.sMatrix.props;this.pMatrix.reset();this.rMatrix.reset();this.sMatrix.reset();this.tMatrix.reset();this.matrix.reset();var iteration=0;if(offset>0){while(iteration<roundOffset){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,false);iteration+=1;}if(offsetModulo){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,offsetModulo,false);iteration+=offsetModulo;}}else if(offset<0){while(iteration>roundOffset){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,true);iteration-=1;}if(offsetModulo){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-offsetModulo,true);iteration-=offsetModulo;}}i=this.data.m===1?0:this._currentCopies-1;dir=this.data.m===1?1:-1;cont=this._currentCopies;var j;var jLen;while(cont){items=this.elemsData[i].it;itemsTransform=items[items.length-1].transform.mProps.v.props;jLen=itemsTransform.length;items[items.length-1].transform.mProps._mdf=true;items[items.length-1].transform.op._mdf=true;items[items.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1));if(iteration!==0){if(i!==0&&dir===1||i!==this._currentCopies-1&&dir===-1){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,false);}this.matrix.transform(rProps[0],rProps[1],rProps[2],rProps[3],rProps[4],rProps[5],rProps[6],rProps[7],rProps[8],rProps[9],rProps[10],rProps[11],rProps[12],rProps[13],rProps[14],rProps[15]);this.matrix.transform(sProps[0],sProps[1],sProps[2],sProps[3],sProps[4],sProps[5],sProps[6],sProps[7],sProps[8],sProps[9],sProps[10],sProps[11],sProps[12],sProps[13],sProps[14],sProps[15]);this.matrix.transform(pProps[0],pProps[1],pProps[2],pProps[3],pProps[4],pProps[5],pProps[6],pProps[7],pProps[8],pProps[9],pProps[10],pProps[11],pProps[12],pProps[13],pProps[14],pProps[15]);for(j=0;j<jLen;j+=1){itemsTransform[j]=this.matrix.props[j];}this.matrix.reset();}else{this.matrix.reset();for(j=0;j<jLen;j+=1){itemsTransform[j]=this.matrix.props[j];}}iteration+=1;cont-=1;i+=dir;}}else{cont=this._currentCopies;i=0;dir=1;while(cont){items=this.elemsData[i].it;itemsTransform=items[items.length-1].transform.mProps.v.props;items[items.length-1].transform.mProps._mdf=false;items[items.length-1].transform.op._mdf=false;cont-=1;i+=dir;}}return hasReloaded;};RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier);RoundCornersModifier.prototype.initModifierProperties=function(elem,data){this.getValue=this.processKeys;this.rd=PropertyFactory.getProp(elem,data.r,0,null,this);this._isAnimated=!!this.rd.effectsSequence.length;};RoundCornersModifier.prototype.processPath=function(path,round){var clonedPath=shapePool.newElement();clonedPath.c=path.c;var i;var len=path._length;var currentV;var currentI;var currentO;var closerV;var distance;var newPosPerc;var index=0;var vX;var vY;var oX;var oY;var iX;var iY;for(i=0;i<len;i+=1){currentV=path.v[i];currentO=path.o[i];currentI=path.i[i];if(currentV[0]===currentO[0]&&currentV[1]===currentO[1]&&currentV[0]===currentI[0]&&currentV[1]===currentI[1]){if((i===0||i===len-1)&&!path.c){clonedPath.setTripleAt(currentV[0],currentV[1],currentO[0],currentO[1],currentI[0],currentI[1],index);/* clonedPath.v[index] = currentV;
  5416. clonedPath.o[index] = currentO;
  5417. clonedPath.i[index] = currentI; */index+=1;}else{if(i===0){closerV=path.v[len-1];}else{closerV=path.v[i-1];}distance=Math.sqrt(Math.pow(currentV[0]-closerV[0],2)+Math.pow(currentV[1]-closerV[1],2));newPosPerc=distance?Math.min(distance/2,round)/distance:0;iX=currentV[0]+(closerV[0]-currentV[0])*newPosPerc;vX=iX;iY=currentV[1]-(currentV[1]-closerV[1])*newPosPerc;vY=iY;oX=vX-(vX-currentV[0])*roundCorner;oY=vY-(vY-currentV[1])*roundCorner;clonedPath.setTripleAt(vX,vY,oX,oY,iX,iY,index);index+=1;if(i===len-1){closerV=path.v[0];}else{closerV=path.v[i+1];}distance=Math.sqrt(Math.pow(currentV[0]-closerV[0],2)+Math.pow(currentV[1]-closerV[1],2));newPosPerc=distance?Math.min(distance/2,round)/distance:0;oX=currentV[0]+(closerV[0]-currentV[0])*newPosPerc;vX=oX;oY=currentV[1]+(closerV[1]-currentV[1])*newPosPerc;vY=oY;iX=vX-(vX-currentV[0])*roundCorner;iY=vY-(vY-currentV[1])*roundCorner;clonedPath.setTripleAt(vX,vY,oX,oY,iX,iY,index);index+=1;}}else{clonedPath.setTripleAt(path.v[i][0],path.v[i][1],path.o[i][0],path.o[i][1],path.i[i][0],path.i[i][1],index);index+=1;}}return clonedPath;};RoundCornersModifier.prototype.processShapes=function(_isFirstFrame){var shapePaths;var i;var len=this.shapes.length;var j;var jLen;var rd=this.rd.v;if(rd!==0){var shapeData;var localShapeCollection;for(i=0;i<len;i+=1){shapeData=this.shapes[i];localShapeCollection=shapeData.localShapeCollection;if(!(!shapeData.shape._mdf&&!this._mdf&&!_isFirstFrame)){localShapeCollection.releaseShapes();shapeData.shape._mdf=true;shapePaths=shapeData.shape.paths.shapes;jLen=shapeData.shape.paths._length;for(j=0;j<jLen;j+=1){localShapeCollection.addShape(this.processPath(shapePaths[j],rd));}}shapeData.shape.paths=shapeData.localShapeCollection;}}if(!this.dynamicProperties.length){this._mdf=false;}};function getFontProperties(fontData){var styles=fontData.fStyle?fontData.fStyle.split(' '):[];var fWeight='normal';var fStyle='normal';var len=styles.length;var styleName;for(var i=0;i<len;i+=1){styleName=styles[i].toLowerCase();switch(styleName){case'italic':fStyle='italic';break;case'bold':fWeight='700';break;case'black':fWeight='900';break;case'medium':fWeight='500';break;case'regular':case'normal':fWeight='400';break;case'light':case'thin':fWeight='200';break;}}return{style:fStyle,weight:fontData.fWeight||fWeight};}var FontManager=function(){var maxWaitingTime=5000;var emptyChar={w:0,size:0,shapes:[],data:{shapes:[]}};var combinedCharacters=[];// Hindi characters
  5418. combinedCharacters=combinedCharacters.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var surrogateModifiers=['d83cdffb','d83cdffc','d83cdffd','d83cdffe','d83cdfff'];var zeroWidthJoiner=[65039,8205];function trimFontOptions(font){var familyArray=font.split(',');var i;var len=familyArray.length;var enabledFamilies=[];for(i=0;i<len;i+=1){if(familyArray[i]!=='sans-serif'&&familyArray[i]!=='monospace'){enabledFamilies.push(familyArray[i]);}}return enabledFamilies.join(',');}function setUpNode(font,family){var parentNode=createTag('span');// Node is invisible to screen readers.
  5419. parentNode.setAttribute('aria-hidden',true);parentNode.style.fontFamily=family;var node=createTag('span');// Characters that vary significantly among different fonts
  5420. node.innerText='giItT1WQy@!-/#';// Visible - so we can measure it - but not on the screen
  5421. parentNode.style.position='absolute';parentNode.style.left='-10000px';parentNode.style.top='-10000px';// Large font size makes even subtle changes obvious
  5422. parentNode.style.fontSize='300px';// Reset any font properties
  5423. parentNode.style.fontVariant='normal';parentNode.style.fontStyle='normal';parentNode.style.fontWeight='normal';parentNode.style.letterSpacing='0';parentNode.appendChild(node);document.body.appendChild(parentNode);// Remember width with no applied web font
  5424. var width=node.offsetWidth;node.style.fontFamily=trimFontOptions(font)+', '+family;return{node:node,w:width,parent:parentNode};}function checkLoadedFonts(){var i;var len=this.fonts.length;var node;var w;var loadedCount=len;for(i=0;i<len;i+=1){if(this.fonts[i].loaded){loadedCount-=1;}else if(this.fonts[i].fOrigin==='n'||this.fonts[i].origin===0){this.fonts[i].loaded=true;}else{node=this.fonts[i].monoCase.node;w=this.fonts[i].monoCase.w;if(node.offsetWidth!==w){loadedCount-=1;this.fonts[i].loaded=true;}else{node=this.fonts[i].sansCase.node;w=this.fonts[i].sansCase.w;if(node.offsetWidth!==w){loadedCount-=1;this.fonts[i].loaded=true;}}if(this.fonts[i].loaded){this.fonts[i].sansCase.parent.parentNode.removeChild(this.fonts[i].sansCase.parent);this.fonts[i].monoCase.parent.parentNode.removeChild(this.fonts[i].monoCase.parent);}}}if(loadedCount!==0&&Date.now()-this.initTime<maxWaitingTime){setTimeout(this.checkLoadedFontsBinded,20);}else{setTimeout(this.setIsLoadedBinded,10);}}function createHelper(fontData,def){var engine=document.body&&def?'svg':'canvas';var helper;var fontProps=getFontProperties(fontData);if(engine==='svg'){var tHelper=createNS('text');tHelper.style.fontSize='100px';// tHelper.style.fontFamily = fontData.fFamily;
  5425. tHelper.setAttribute('font-family',fontData.fFamily);tHelper.setAttribute('font-style',fontProps.style);tHelper.setAttribute('font-weight',fontProps.weight);tHelper.textContent='1';if(fontData.fClass){tHelper.style.fontFamily='inherit';tHelper.setAttribute('class',fontData.fClass);}else{tHelper.style.fontFamily=fontData.fFamily;}def.appendChild(tHelper);helper=tHelper;}else{var tCanvasHelper=new OffscreenCanvas(500,500).getContext('2d');tCanvasHelper.font=fontProps.style+' '+fontProps.weight+' 100px '+fontData.fFamily;helper=tCanvasHelper;}function measure(text){if(engine==='svg'){helper.textContent=text;return helper.getComputedTextLength();}return helper.measureText(text).width;}return{measureText:measure};}function addFonts(fontData,defs){if(!fontData){this.isLoaded=true;return;}if(this.chars){this.isLoaded=true;this.fonts=fontData.list;return;}if(!document.body){this.isLoaded=true;fontData.list.forEach(function(data){data.helper=createHelper(data);data.cache={};});this.fonts=fontData.list;return;}var fontArr=fontData.list;var i;var len=fontArr.length;var _pendingFonts=len;for(i=0;i<len;i+=1){var shouldLoadFont=true;var loadedSelector;var j;fontArr[i].loaded=false;fontArr[i].monoCase=setUpNode(fontArr[i].fFamily,'monospace');fontArr[i].sansCase=setUpNode(fontArr[i].fFamily,'sans-serif');if(!fontArr[i].fPath){fontArr[i].loaded=true;_pendingFonts-=1;}else if(fontArr[i].fOrigin==='p'||fontArr[i].origin===3){loadedSelector=document.querySelectorAll('style[f-forigin="p"][f-family="'+fontArr[i].fFamily+'"], style[f-origin="3"][f-family="'+fontArr[i].fFamily+'"]');if(loadedSelector.length>0){shouldLoadFont=false;}if(shouldLoadFont){var s=createTag('style');s.setAttribute('f-forigin',fontArr[i].fOrigin);s.setAttribute('f-origin',fontArr[i].origin);s.setAttribute('f-family',fontArr[i].fFamily);s.type='text/css';s.innerText='@font-face {font-family: '+fontArr[i].fFamily+"; font-style: normal; src: url('"+fontArr[i].fPath+"');}";defs.appendChild(s);}}else if(fontArr[i].fOrigin==='g'||fontArr[i].origin===1){loadedSelector=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(j=0;j<loadedSelector.length;j+=1){if(loadedSelector[j].href.indexOf(fontArr[i].fPath)!==-1){// Font is already loaded
  5426. shouldLoadFont=false;}}if(shouldLoadFont){var l=createTag('link');l.setAttribute('f-forigin',fontArr[i].fOrigin);l.setAttribute('f-origin',fontArr[i].origin);l.type='text/css';l.rel='stylesheet';l.href=fontArr[i].fPath;document.body.appendChild(l);}}else if(fontArr[i].fOrigin==='t'||fontArr[i].origin===2){loadedSelector=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(j=0;j<loadedSelector.length;j+=1){if(fontArr[i].fPath===loadedSelector[j].src){// Font is already loaded
  5427. shouldLoadFont=false;}}if(shouldLoadFont){var sc=createTag('link');sc.setAttribute('f-forigin',fontArr[i].fOrigin);sc.setAttribute('f-origin',fontArr[i].origin);sc.setAttribute('rel','stylesheet');sc.setAttribute('href',fontArr[i].fPath);defs.appendChild(sc);}}fontArr[i].helper=createHelper(fontArr[i],defs);fontArr[i].cache={};this.fonts.push(fontArr[i]);}if(_pendingFonts===0){this.isLoaded=true;}else{// On some cases even if the font is loaded, it won't load correctly when measuring text on canvas.
  5428. // Adding this timeout seems to fix it
  5429. setTimeout(this.checkLoadedFonts.bind(this),100);}}function addChars(chars){if(!chars){return;}if(!this.chars){this.chars=[];}var i;var len=chars.length;var j;var jLen=this.chars.length;var found;for(i=0;i<len;i+=1){j=0;found=false;while(j<jLen){if(this.chars[j].style===chars[i].style&&this.chars[j].fFamily===chars[i].fFamily&&this.chars[j].ch===chars[i].ch){found=true;}j+=1;}if(!found){this.chars.push(chars[i]);jLen+=1;}}}function getCharData(_char,style,font){var i=0;var len=this.chars.length;while(i<len){if(this.chars[i].ch===_char&&this.chars[i].style===style&&this.chars[i].fFamily===font){return this.chars[i];}i+=1;}if((typeof _char==='string'&&_char.charCodeAt(0)!==13||!_char)&&console&&console.warn// eslint-disable-line no-console
  5430. &&!this._warned){this._warned=true;console.warn('Missing character from exported characters list: ',_char,style,font);// eslint-disable-line no-console
  5431. }return emptyChar;}function measureText(_char2,fontName,size){var fontData=this.getFontByName(fontName);var index=_char2.charCodeAt(0);if(!fontData.cache[index+1]){var tHelper=fontData.helper;if(_char2===' '){var doubleSize=tHelper.measureText('|'+_char2+'|');var singleSize=tHelper.measureText('||');fontData.cache[index+1]=(doubleSize-singleSize)/100;}else{fontData.cache[index+1]=tHelper.measureText(_char2)/100;}}return fontData.cache[index+1]*size;}function getFontByName(name){var i=0;var len=this.fonts.length;while(i<len){if(this.fonts[i].fName===name){return this.fonts[i];}i+=1;}return this.fonts[0];}function isModifier(firstCharCode,secondCharCode){var sum=firstCharCode.toString(16)+secondCharCode.toString(16);return surrogateModifiers.indexOf(sum)!==-1;}function isZeroWidthJoiner(firstCharCode,secondCharCode){if(!secondCharCode){return firstCharCode===zeroWidthJoiner[1];}return firstCharCode===zeroWidthJoiner[0]&&secondCharCode===zeroWidthJoiner[1];}function isCombinedCharacter(_char3){return combinedCharacters.indexOf(_char3)!==-1;}function setIsLoaded(){this.isLoaded=true;}var Font=function Font(){this.fonts=[];this.chars=null;this.typekitLoaded=0;this.isLoaded=false;this._warned=false;this.initTime=Date.now();this.setIsLoadedBinded=this.setIsLoaded.bind(this);this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this);};Font.isModifier=isModifier;Font.isZeroWidthJoiner=isZeroWidthJoiner;Font.isCombinedCharacter=isCombinedCharacter;var fontPrototype={addChars:addChars,addFonts:addFonts,getCharData:getCharData,getFontByName:getFontByName,measureText:measureText,checkLoadedFonts:checkLoadedFonts,setIsLoaded:setIsLoaded};Font.prototype=fontPrototype;return Font;}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function initRenderable(){// layer's visibility related to inpoint and outpoint. Rename isVisible to isInRange
  5432. this.isInRange=false;// layer's display state
  5433. this.hidden=false;// If layer's transparency equals 0, it can be hidden
  5434. this.isTransparent=false;// list of animated components
  5435. this.renderableComponents=[];},addRenderableComponent:function addRenderableComponent(component){if(this.renderableComponents.indexOf(component)===-1){this.renderableComponents.push(component);}},removeRenderableComponent:function removeRenderableComponent(component){if(this.renderableComponents.indexOf(component)!==-1){this.renderableComponents.splice(this.renderableComponents.indexOf(component),1);}},prepareRenderableFrame:function prepareRenderableFrame(num){this.checkLayerLimits(num);},checkTransparency:function checkTransparency(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent){this.isTransparent=true;this.hide();}}else if(this.isTransparent){this.isTransparent=false;this.show();}},/**
  5436. * @function
  5437. * Initializes frame related properties.
  5438. *
  5439. * @param {number} num
  5440. * current frame number in Layer's time
  5441. *
  5442. */checkLayerLimits:function checkLayerLimits(num){if(this.data.ip-this.data.st<=num&&this.data.op-this.data.st>num){if(this.isInRange!==true){this.globalData._mdf=true;this._mdf=true;this.isInRange=true;this.show();}}else if(this.isInRange!==false){this.globalData._mdf=true;this.isInRange=false;this.hide();}},renderRenderable:function renderRenderable(){var i;var len=this.renderableComponents.length;for(i=0;i<len;i+=1){this.renderableComponents[i].renderFrame(this._isFirstFrame);}/* this.maskManager.renderFrame(this.finalTransform.mat);
  5443. this.renderableEffectsManager.renderFrame(this._isFirstFrame); */},sourceRectAtTime:function sourceRectAtTime(){return{top:0,left:0,width:100,height:100};},getLayerSize:function getLayerSize(){if(this.data.ty===5){return{w:this.data.textData.width,h:this.data.textData.height};}return{w:this.data.width,h:this.data.height};}};var MaskManagerInterface=function(){function MaskInterface(mask,data){this._mask=mask;this._data=data;}Object.defineProperty(MaskInterface.prototype,'maskPath',{get:function get(){if(this._mask.prop.k){this._mask.prop.getValue();}return this._mask.prop;}});Object.defineProperty(MaskInterface.prototype,'maskOpacity',{get:function get(){if(this._mask.op.k){this._mask.op.getValue();}return this._mask.op.v*100;}});var MaskManager=function MaskManager(maskManager){var _masksInterfaces=createSizedArray(maskManager.viewData.length);var i;var len=maskManager.viewData.length;for(i=0;i<len;i+=1){_masksInterfaces[i]=new MaskInterface(maskManager.viewData[i],maskManager.masksProperties[i]);}var maskFunction=function maskFunction(name){i=0;while(i<len){if(maskManager.masksProperties[i].nm===name){return _masksInterfaces[i];}i+=1;}return null;};return maskFunction;};return MaskManager;}();var ExpressionPropertyInterface=function(){var defaultUnidimensionalValue={pv:0,v:0,mult:1};var defaultMultidimensionalValue={pv:[0,0,0],v:[0,0,0],mult:1};function completeProperty(expressionValue,property,type){Object.defineProperty(expressionValue,'velocity',{get:function get(){return property.getVelocityAtTime(property.comp.currentFrame);}});expressionValue.numKeys=property.keyframes?property.keyframes.length:0;expressionValue.key=function(pos){if(!expressionValue.numKeys){return 0;}var value='';if('s'in property.keyframes[pos-1]){value=property.keyframes[pos-1].s;}else if('e'in property.keyframes[pos-2]){value=property.keyframes[pos-2].e;}else{value=property.keyframes[pos-2].s;}var valueProp=type==='unidimensional'?new Number(value):Object.assign({},value);// eslint-disable-line no-new-wrappers
  5444. valueProp.time=property.keyframes[pos-1].t/property.elem.comp.globalData.frameRate;valueProp.value=type==='unidimensional'?value[0]:value;return valueProp;};expressionValue.valueAtTime=property.getValueAtTime;expressionValue.speedAtTime=property.getSpeedAtTime;expressionValue.velocityAtTime=property.getVelocityAtTime;expressionValue.propertyGroup=property.propertyGroup;}function UnidimensionalPropertyInterface(property){if(!property||!('pv'in property)){property=defaultUnidimensionalValue;}var mult=1/property.mult;var val=property.pv*mult;var expressionValue=new Number(val);// eslint-disable-line no-new-wrappers
  5445. expressionValue.value=val;completeProperty(expressionValue,property,'unidimensional');return function(){if(property.k){property.getValue();}val=property.v*mult;if(expressionValue.value!==val){expressionValue=new Number(val);// eslint-disable-line no-new-wrappers
  5446. expressionValue.value=val;completeProperty(expressionValue,property,'unidimensional');}return expressionValue;};}function MultidimensionalPropertyInterface(property){if(!property||!('pv'in property)){property=defaultMultidimensionalValue;}var mult=1/property.mult;var len=property.data&&property.data.l||property.pv.length;var expressionValue=createTypedArray('float32',len);var arrValue=createTypedArray('float32',len);expressionValue.value=arrValue;completeProperty(expressionValue,property,'multidimensional');return function(){if(property.k){property.getValue();}for(var i=0;i<len;i+=1){arrValue[i]=property.v[i]*mult;expressionValue[i]=arrValue[i];}return expressionValue;};}// TODO: try to avoid using this getter
  5447. function defaultGetter(){return defaultUnidimensionalValue;}return function(property){if(!property){return defaultGetter;}if(property.propType==='unidimensional'){return UnidimensionalPropertyInterface(property);}return MultidimensionalPropertyInterface(property);};}();var TransformExpressionInterface=function(){return function(transform){function _thisFunction(name){switch(name){case'scale':case'Scale':case'ADBE Scale':case 6:return _thisFunction.scale;case'rotation':case'Rotation':case'ADBE Rotation':case'ADBE Rotate Z':case 10:return _thisFunction.rotation;case'ADBE Rotate X':return _thisFunction.xRotation;case'ADBE Rotate Y':return _thisFunction.yRotation;case'position':case'Position':case'ADBE Position':case 2:return _thisFunction.position;case'ADBE Position_0':return _thisFunction.xPosition;case'ADBE Position_1':return _thisFunction.yPosition;case'ADBE Position_2':return _thisFunction.zPosition;case'anchorPoint':case'AnchorPoint':case'Anchor Point':case'ADBE AnchorPoint':case 1:return _thisFunction.anchorPoint;case'opacity':case'Opacity':case 11:return _thisFunction.opacity;default:return null;}}Object.defineProperty(_thisFunction,'rotation',{get:ExpressionPropertyInterface(transform.r||transform.rz)});Object.defineProperty(_thisFunction,'zRotation',{get:ExpressionPropertyInterface(transform.rz||transform.r)});Object.defineProperty(_thisFunction,'xRotation',{get:ExpressionPropertyInterface(transform.rx)});Object.defineProperty(_thisFunction,'yRotation',{get:ExpressionPropertyInterface(transform.ry)});Object.defineProperty(_thisFunction,'scale',{get:ExpressionPropertyInterface(transform.s)});var _px;var _py;var _pz;var _transformFactory;if(transform.p){_transformFactory=ExpressionPropertyInterface(transform.p);}else{_px=ExpressionPropertyInterface(transform.px);_py=ExpressionPropertyInterface(transform.py);if(transform.pz){_pz=ExpressionPropertyInterface(transform.pz);}}Object.defineProperty(_thisFunction,'position',{get:function get(){if(transform.p){return _transformFactory();}return[_px(),_py(),_pz?_pz():0];}});Object.defineProperty(_thisFunction,'xPosition',{get:ExpressionPropertyInterface(transform.px)});Object.defineProperty(_thisFunction,'yPosition',{get:ExpressionPropertyInterface(transform.py)});Object.defineProperty(_thisFunction,'zPosition',{get:ExpressionPropertyInterface(transform.pz)});Object.defineProperty(_thisFunction,'anchorPoint',{get:ExpressionPropertyInterface(transform.a)});Object.defineProperty(_thisFunction,'opacity',{get:ExpressionPropertyInterface(transform.o)});Object.defineProperty(_thisFunction,'skew',{get:ExpressionPropertyInterface(transform.sk)});Object.defineProperty(_thisFunction,'skewAxis',{get:ExpressionPropertyInterface(transform.sa)});Object.defineProperty(_thisFunction,'orientation',{get:ExpressionPropertyInterface(transform.or)});return _thisFunction;};}();var LayerExpressionInterface=function(){function getMatrix(time){var toWorldMat=new Matrix();if(time!==undefined){var propMatrix=this._elem.finalTransform.mProp.getValueAtTime(time);propMatrix.clone(toWorldMat);}else{var transformMat=this._elem.finalTransform.mProp;transformMat.applyToMatrix(toWorldMat);}return toWorldMat;}function toWorldVec(arr,time){var toWorldMat=this.getMatrix(time);toWorldMat.props[12]=0;toWorldMat.props[13]=0;toWorldMat.props[14]=0;return this.applyPoint(toWorldMat,arr);}function toWorld(arr,time){var toWorldMat=this.getMatrix(time);return this.applyPoint(toWorldMat,arr);}function fromWorldVec(arr,time){var toWorldMat=this.getMatrix(time);toWorldMat.props[12]=0;toWorldMat.props[13]=0;toWorldMat.props[14]=0;return this.invertPoint(toWorldMat,arr);}function fromWorld(arr,time){var toWorldMat=this.getMatrix(time);return this.invertPoint(toWorldMat,arr);}function applyPoint(matrix,arr){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i;var len=this._elem.hierarchy.length;for(i=0;i<len;i+=1){this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(matrix);}}return matrix.applyToPointArray(arr[0],arr[1],arr[2]||0);}function invertPoint(matrix,arr){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i;var len=this._elem.hierarchy.length;for(i=0;i<len;i+=1){this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(matrix);}}return matrix.inversePoint(arr);}function fromComp(arr){var toWorldMat=new Matrix();toWorldMat.reset();this._elem.finalTransform.mProp.applyToMatrix(toWorldMat);if(this._elem.hierarchy&&this._elem.hierarchy.length){var i;var len=this._elem.hierarchy.length;for(i=0;i<len;i+=1){this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(toWorldMat);}return toWorldMat.inversePoint(arr);}return toWorldMat.inversePoint(arr);}function sampleImage(){return[1,1,1,1];}return function(elem){var transformInterface;function _registerMaskInterface(maskManager){_thisLayerFunction.mask=new MaskManagerInterface(maskManager,elem);}function _registerEffectsInterface(effects){_thisLayerFunction.effect=effects;}function _thisLayerFunction(name){switch(name){case'ADBE Root Vectors Group':case'Contents':case 2:return _thisLayerFunction.shapeInterface;case 1:case 6:case'Transform':case'transform':case'ADBE Transform Group':return transformInterface;case 4:case'ADBE Effect Parade':case'effects':case'Effects':return _thisLayerFunction.effect;case'ADBE Text Properties':return _thisLayerFunction.textInterface;default:return null;}}_thisLayerFunction.getMatrix=getMatrix;_thisLayerFunction.invertPoint=invertPoint;_thisLayerFunction.applyPoint=applyPoint;_thisLayerFunction.toWorld=toWorld;_thisLayerFunction.toWorldVec=toWorldVec;_thisLayerFunction.fromWorld=fromWorld;_thisLayerFunction.fromWorldVec=fromWorldVec;_thisLayerFunction.toComp=toWorld;_thisLayerFunction.fromComp=fromComp;_thisLayerFunction.sampleImage=sampleImage;_thisLayerFunction.sourceRectAtTime=elem.sourceRectAtTime.bind(elem);_thisLayerFunction._elem=elem;transformInterface=TransformExpressionInterface(elem.finalTransform.mProp);var anchorPointDescriptor=getDescriptor(transformInterface,'anchorPoint');Object.defineProperties(_thisLayerFunction,{hasParent:{get:function get(){return elem.hierarchy.length;}},parent:{get:function get(){return elem.hierarchy[0].layerInterface;}},rotation:getDescriptor(transformInterface,'rotation'),scale:getDescriptor(transformInterface,'scale'),position:getDescriptor(transformInterface,'position'),opacity:getDescriptor(transformInterface,'opacity'),anchorPoint:anchorPointDescriptor,anchor_point:anchorPointDescriptor,transform:{get:function get(){return transformInterface;}},active:{get:function get(){return elem.isInRange;}}});_thisLayerFunction.startTime=elem.data.st;_thisLayerFunction.index=elem.data.ind;_thisLayerFunction.source=elem.data.refId;_thisLayerFunction.height=elem.data.ty===0?elem.data.h:100;_thisLayerFunction.width=elem.data.ty===0?elem.data.w:100;_thisLayerFunction.inPoint=elem.data.ip/elem.comp.globalData.frameRate;_thisLayerFunction.outPoint=elem.data.op/elem.comp.globalData.frameRate;_thisLayerFunction._name=elem.data.nm;_thisLayerFunction.registerMaskInterface=_registerMaskInterface;_thisLayerFunction.registerEffectsInterface=_registerEffectsInterface;return _thisLayerFunction;};}();var propertyGroupFactory=function(){return function(interfaceFunction,parentPropertyGroup){return function(val){val=val===undefined?1:val;if(val<=0){return interfaceFunction;}return parentPropertyGroup(val-1);};};}();var PropertyInterface=function(){return function(propertyName,propertyGroup){var interfaceFunction={_name:propertyName};function _propertyGroup(val){val=val===undefined?1:val;if(val<=0){return interfaceFunction;}return propertyGroup(val-1);}return _propertyGroup;};}();var EffectsExpressionInterface=function(){var ob={createEffectsInterface:createEffectsInterface};function createEffectsInterface(elem,propertyGroup){if(elem.effectsManager){var effectElements=[];var effectsData=elem.data.ef;var i;var len=elem.effectsManager.effectElements.length;for(i=0;i<len;i+=1){effectElements.push(createGroupInterface(effectsData[i],elem.effectsManager.effectElements[i],propertyGroup,elem));}var effects=elem.data.ef||[];var groupInterface=function groupInterface(name){i=0;len=effects.length;while(i<len){if(name===effects[i].nm||name===effects[i].mn||name===effects[i].ix){return effectElements[i];}i+=1;}return null;};Object.defineProperty(groupInterface,'numProperties',{get:function get(){return effects.length;}});return groupInterface;}return null;}function createGroupInterface(data,elements,propertyGroup,elem){function groupInterface(name){var effects=data.ef;var i=0;var len=effects.length;while(i<len){if(name===effects[i].nm||name===effects[i].mn||name===effects[i].ix){if(effects[i].ty===5){return effectElements[i];}return effectElements[i]();}i+=1;}throw new Error();}var _propertyGroup=propertyGroupFactory(groupInterface,propertyGroup);var effectElements=[];var i;var len=data.ef.length;for(i=0;i<len;i+=1){if(data.ef[i].ty===5){effectElements.push(createGroupInterface(data.ef[i],elements.effectElements[i],elements.effectElements[i].propertyGroup,elem));}else{effectElements.push(createValueInterface(elements.effectElements[i],data.ef[i].ty,elem,_propertyGroup));}}if(data.mn==='ADBE Color Control'){Object.defineProperty(groupInterface,'color',{get:function get(){return effectElements[0]();}});}Object.defineProperties(groupInterface,{numProperties:{get:function get(){return data.np;}},_name:{value:data.nm},propertyGroup:{value:_propertyGroup}});groupInterface.enabled=data.en!==0;groupInterface.active=groupInterface.enabled;return groupInterface;}function createValueInterface(element,type,elem,propertyGroup){var expressionProperty=ExpressionPropertyInterface(element.p);function interfaceFunction(){if(type===10){return elem.comp.compInterface(element.p.v);}return expressionProperty();}if(element.p.setGroupProperty){element.p.setGroupProperty(PropertyInterface('',propertyGroup));}return interfaceFunction;}return ob;}();var CompExpressionInterface=function(){return function(comp){function _thisLayerFunction(name){var i=0;var len=comp.layers.length;while(i<len){if(comp.layers[i].nm===name||comp.layers[i].ind===name){return comp.elements[i].layerInterface;}i+=1;}return null;// return {active:false};
  5448. }Object.defineProperty(_thisLayerFunction,'_name',{value:comp.data.nm});_thisLayerFunction.layer=_thisLayerFunction;_thisLayerFunction.pixelAspect=1;_thisLayerFunction.height=comp.data.h||comp.globalData.compSize.h;_thisLayerFunction.width=comp.data.w||comp.globalData.compSize.w;_thisLayerFunction.pixelAspect=1;_thisLayerFunction.frameDuration=1/comp.globalData.frameRate;_thisLayerFunction.displayStartTime=0;_thisLayerFunction.numLayers=comp.layers.length;return _thisLayerFunction;};}();var ShapePathInterface=function(){return function pathInterfaceFactory(shape,view,propertyGroup){var prop=view.sh;function interfaceFunction(val){if(val==='Shape'||val==='shape'||val==='Path'||val==='path'||val==='ADBE Vector Shape'||val===2){return interfaceFunction.path;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);prop.setGroupProperty(PropertyInterface('Path',_propertyGroup));Object.defineProperties(interfaceFunction,{path:{get:function get(){if(prop.k){prop.getValue();}return prop;}},shape:{get:function get(){if(prop.k){prop.getValue();}return prop;}},_name:{value:shape.nm},ix:{value:shape.ix},propertyIndex:{value:shape.ix},mn:{value:shape.mn},propertyGroup:{value:propertyGroup}});return interfaceFunction;};}();var ShapeExpressionInterface=function(){function iterateElements(shapes,view,propertyGroup){var arr=[];var i;var len=shapes?shapes.length:0;for(i=0;i<len;i+=1){if(shapes[i].ty==='gr'){arr.push(groupInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='fl'){arr.push(fillInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='st'){arr.push(strokeInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='tm'){arr.push(trimInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='tr');else if(shapes[i].ty==='el'){arr.push(ellipseInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='sr'){arr.push(starInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='sh'){arr.push(ShapePathInterface(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='rc'){arr.push(rectInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='rd'){arr.push(roundedInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='rp'){arr.push(repeaterInterfaceFactory(shapes[i],view[i],propertyGroup));}else if(shapes[i].ty==='gf'){arr.push(gradientFillInterfaceFactory(shapes[i],view[i],propertyGroup));}else{arr.push(defaultInterfaceFactory(shapes[i],view[i]));}}return arr;}function contentsInterfaceFactory(shape,view,propertyGroup){var interfaces;var interfaceFunction=function _interfaceFunction(value){var i=0;var len=interfaces.length;while(i<len){if(interfaces[i]._name===value||interfaces[i].mn===value||interfaces[i].propertyIndex===value||interfaces[i].ix===value||interfaces[i].ind===value){return interfaces[i];}i+=1;}if(typeof value==='number'){return interfaces[value-1];}return null;};interfaceFunction.propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);interfaces=iterateElements(shape.it,view.it,interfaceFunction.propertyGroup);interfaceFunction.numProperties=interfaces.length;var transformInterface=transformInterfaceFactory(shape.it[shape.it.length-1],view.it[view.it.length-1],interfaceFunction.propertyGroup);interfaceFunction.transform=transformInterface;interfaceFunction.propertyIndex=shape.cix;interfaceFunction._name=shape.nm;return interfaceFunction;}function groupInterfaceFactory(shape,view,propertyGroup){var interfaceFunction=function _interfaceFunction(value){switch(value){case'ADBE Vectors Group':case'Contents':case 2:return interfaceFunction.content;// Not necessary for now. Keeping them here in case a new case appears
  5449. // case 'ADBE Vector Transform Group':
  5450. // case 3:
  5451. default:return interfaceFunction.transform;}};interfaceFunction.propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);var content=contentsInterfaceFactory(shape,view,interfaceFunction.propertyGroup);var transformInterface=transformInterfaceFactory(shape.it[shape.it.length-1],view.it[view.it.length-1],interfaceFunction.propertyGroup);interfaceFunction.content=content;interfaceFunction.transform=transformInterface;Object.defineProperty(interfaceFunction,'_name',{get:function get(){return shape.nm;}});// interfaceFunction.content = interfaceFunction;
  5452. interfaceFunction.numProperties=shape.np;interfaceFunction.propertyIndex=shape.ix;interfaceFunction.nm=shape.nm;interfaceFunction.mn=shape.mn;return interfaceFunction;}function fillInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(val){if(val==='Color'||val==='color'){return interfaceFunction.color;}if(val==='Opacity'||val==='opacity'){return interfaceFunction.opacity;}return null;}Object.defineProperties(interfaceFunction,{color:{get:ExpressionPropertyInterface(view.c)},opacity:{get:ExpressionPropertyInterface(view.o)},_name:{value:shape.nm},mn:{value:shape.mn}});view.c.setGroupProperty(PropertyInterface('Color',propertyGroup));view.o.setGroupProperty(PropertyInterface('Opacity',propertyGroup));return interfaceFunction;}function gradientFillInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(val){if(val==='Start Point'||val==='start point'){return interfaceFunction.startPoint;}if(val==='End Point'||val==='end point'){return interfaceFunction.endPoint;}if(val==='Opacity'||val==='opacity'){return interfaceFunction.opacity;}return null;}Object.defineProperties(interfaceFunction,{startPoint:{get:ExpressionPropertyInterface(view.s)},endPoint:{get:ExpressionPropertyInterface(view.e)},opacity:{get:ExpressionPropertyInterface(view.o)},type:{get:function get(){return'a';}},_name:{value:shape.nm},mn:{value:shape.mn}});view.s.setGroupProperty(PropertyInterface('Start Point',propertyGroup));view.e.setGroupProperty(PropertyInterface('End Point',propertyGroup));view.o.setGroupProperty(PropertyInterface('Opacity',propertyGroup));return interfaceFunction;}function defaultInterfaceFactory(){function interfaceFunction(){return null;}return interfaceFunction;}function strokeInterfaceFactory(shape,view,propertyGroup){var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);var _dashPropertyGroup=propertyGroupFactory(dashOb,_propertyGroup);function addPropertyToDashOb(i){Object.defineProperty(dashOb,shape.d[i].nm,{get:ExpressionPropertyInterface(view.d.dataProps[i].p)});}var i;var len=shape.d?shape.d.length:0;var dashOb={};for(i=0;i<len;i+=1){addPropertyToDashOb(i);view.d.dataProps[i].p.setGroupProperty(_dashPropertyGroup);}function interfaceFunction(val){if(val==='Color'||val==='color'){return interfaceFunction.color;}if(val==='Opacity'||val==='opacity'){return interfaceFunction.opacity;}if(val==='Stroke Width'||val==='stroke width'){return interfaceFunction.strokeWidth;}return null;}Object.defineProperties(interfaceFunction,{color:{get:ExpressionPropertyInterface(view.c)},opacity:{get:ExpressionPropertyInterface(view.o)},strokeWidth:{get:ExpressionPropertyInterface(view.w)},dash:{get:function get(){return dashOb;}},_name:{value:shape.nm},mn:{value:shape.mn}});view.c.setGroupProperty(PropertyInterface('Color',_propertyGroup));view.o.setGroupProperty(PropertyInterface('Opacity',_propertyGroup));view.w.setGroupProperty(PropertyInterface('Stroke Width',_propertyGroup));return interfaceFunction;}function trimInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(val){if(val===shape.e.ix||val==='End'||val==='end'){return interfaceFunction.end;}if(val===shape.s.ix){return interfaceFunction.start;}if(val===shape.o.ix){return interfaceFunction.offset;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);interfaceFunction.propertyIndex=shape.ix;view.s.setGroupProperty(PropertyInterface('Start',_propertyGroup));view.e.setGroupProperty(PropertyInterface('End',_propertyGroup));view.o.setGroupProperty(PropertyInterface('Offset',_propertyGroup));interfaceFunction.propertyIndex=shape.ix;interfaceFunction.propertyGroup=propertyGroup;Object.defineProperties(interfaceFunction,{start:{get:ExpressionPropertyInterface(view.s)},end:{get:ExpressionPropertyInterface(view.e)},offset:{get:ExpressionPropertyInterface(view.o)},_name:{value:shape.nm}});interfaceFunction.mn=shape.mn;return interfaceFunction;}function transformInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(value){if(shape.a.ix===value||value==='Anchor Point'){return interfaceFunction.anchorPoint;}if(shape.o.ix===value||value==='Opacity'){return interfaceFunction.opacity;}if(shape.p.ix===value||value==='Position'){return interfaceFunction.position;}if(shape.r.ix===value||value==='Rotation'||value==='ADBE Vector Rotation'){return interfaceFunction.rotation;}if(shape.s.ix===value||value==='Scale'){return interfaceFunction.scale;}if(shape.sk&&shape.sk.ix===value||value==='Skew'){return interfaceFunction.skew;}if(shape.sa&&shape.sa.ix===value||value==='Skew Axis'){return interfaceFunction.skewAxis;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);view.transform.mProps.o.setGroupProperty(PropertyInterface('Opacity',_propertyGroup));view.transform.mProps.p.setGroupProperty(PropertyInterface('Position',_propertyGroup));view.transform.mProps.a.setGroupProperty(PropertyInterface('Anchor Point',_propertyGroup));view.transform.mProps.s.setGroupProperty(PropertyInterface('Scale',_propertyGroup));view.transform.mProps.r.setGroupProperty(PropertyInterface('Rotation',_propertyGroup));if(view.transform.mProps.sk){view.transform.mProps.sk.setGroupProperty(PropertyInterface('Skew',_propertyGroup));view.transform.mProps.sa.setGroupProperty(PropertyInterface('Skew Angle',_propertyGroup));}view.transform.op.setGroupProperty(PropertyInterface('Opacity',_propertyGroup));Object.defineProperties(interfaceFunction,{opacity:{get:ExpressionPropertyInterface(view.transform.mProps.o)},position:{get:ExpressionPropertyInterface(view.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(view.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(view.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(view.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(view.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(view.transform.mProps.sa)},_name:{value:shape.nm}});interfaceFunction.ty='tr';interfaceFunction.mn=shape.mn;interfaceFunction.propertyGroup=propertyGroup;return interfaceFunction;}function ellipseInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(value){if(shape.p.ix===value){return interfaceFunction.position;}if(shape.s.ix===value){return interfaceFunction.size;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);interfaceFunction.propertyIndex=shape.ix;var prop=view.sh.ty==='tm'?view.sh.prop:view.sh;prop.s.setGroupProperty(PropertyInterface('Size',_propertyGroup));prop.p.setGroupProperty(PropertyInterface('Position',_propertyGroup));Object.defineProperties(interfaceFunction,{size:{get:ExpressionPropertyInterface(prop.s)},position:{get:ExpressionPropertyInterface(prop.p)},_name:{value:shape.nm}});interfaceFunction.mn=shape.mn;return interfaceFunction;}function starInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(value){if(shape.p.ix===value){return interfaceFunction.position;}if(shape.r.ix===value){return interfaceFunction.rotation;}if(shape.pt.ix===value){return interfaceFunction.points;}if(shape.or.ix===value||value==='ADBE Vector Star Outer Radius'){return interfaceFunction.outerRadius;}if(shape.os.ix===value){return interfaceFunction.outerRoundness;}if(shape.ir&&(shape.ir.ix===value||value==='ADBE Vector Star Inner Radius')){return interfaceFunction.innerRadius;}if(shape.is&&shape.is.ix===value){return interfaceFunction.innerRoundness;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);var prop=view.sh.ty==='tm'?view.sh.prop:view.sh;interfaceFunction.propertyIndex=shape.ix;prop.or.setGroupProperty(PropertyInterface('Outer Radius',_propertyGroup));prop.os.setGroupProperty(PropertyInterface('Outer Roundness',_propertyGroup));prop.pt.setGroupProperty(PropertyInterface('Points',_propertyGroup));prop.p.setGroupProperty(PropertyInterface('Position',_propertyGroup));prop.r.setGroupProperty(PropertyInterface('Rotation',_propertyGroup));if(shape.ir){prop.ir.setGroupProperty(PropertyInterface('Inner Radius',_propertyGroup));prop.is.setGroupProperty(PropertyInterface('Inner Roundness',_propertyGroup));}Object.defineProperties(interfaceFunction,{position:{get:ExpressionPropertyInterface(prop.p)},rotation:{get:ExpressionPropertyInterface(prop.r)},points:{get:ExpressionPropertyInterface(prop.pt)},outerRadius:{get:ExpressionPropertyInterface(prop.or)},outerRoundness:{get:ExpressionPropertyInterface(prop.os)},innerRadius:{get:ExpressionPropertyInterface(prop.ir)},innerRoundness:{get:ExpressionPropertyInterface(prop.is)},_name:{value:shape.nm}});interfaceFunction.mn=shape.mn;return interfaceFunction;}function rectInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(value){if(shape.p.ix===value){return interfaceFunction.position;}if(shape.r.ix===value){return interfaceFunction.roundness;}if(shape.s.ix===value||value==='Size'||value==='ADBE Vector Rect Size'){return interfaceFunction.size;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);var prop=view.sh.ty==='tm'?view.sh.prop:view.sh;interfaceFunction.propertyIndex=shape.ix;prop.p.setGroupProperty(PropertyInterface('Position',_propertyGroup));prop.s.setGroupProperty(PropertyInterface('Size',_propertyGroup));prop.r.setGroupProperty(PropertyInterface('Rotation',_propertyGroup));Object.defineProperties(interfaceFunction,{position:{get:ExpressionPropertyInterface(prop.p)},roundness:{get:ExpressionPropertyInterface(prop.r)},size:{get:ExpressionPropertyInterface(prop.s)},_name:{value:shape.nm}});interfaceFunction.mn=shape.mn;return interfaceFunction;}function roundedInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(value){if(shape.r.ix===value||value==='Round Corners 1'){return interfaceFunction.radius;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);var prop=view;interfaceFunction.propertyIndex=shape.ix;prop.rd.setGroupProperty(PropertyInterface('Radius',_propertyGroup));Object.defineProperties(interfaceFunction,{radius:{get:ExpressionPropertyInterface(prop.rd)},_name:{value:shape.nm}});interfaceFunction.mn=shape.mn;return interfaceFunction;}function repeaterInterfaceFactory(shape,view,propertyGroup){function interfaceFunction(value){if(shape.c.ix===value||value==='Copies'){return interfaceFunction.copies;}if(shape.o.ix===value||value==='Offset'){return interfaceFunction.offset;}return null;}var _propertyGroup=propertyGroupFactory(interfaceFunction,propertyGroup);var prop=view;interfaceFunction.propertyIndex=shape.ix;prop.c.setGroupProperty(PropertyInterface('Copies',_propertyGroup));prop.o.setGroupProperty(PropertyInterface('Offset',_propertyGroup));Object.defineProperties(interfaceFunction,{copies:{get:ExpressionPropertyInterface(prop.c)},offset:{get:ExpressionPropertyInterface(prop.o)},_name:{value:shape.nm}});interfaceFunction.mn=shape.mn;return interfaceFunction;}return function(shapes,view,propertyGroup){var interfaces;function _interfaceFunction(value){if(typeof value==='number'){value=value===undefined?1:value;if(value===0){return propertyGroup;}return interfaces[value-1];}var i=0;var len=interfaces.length;while(i<len){if(interfaces[i]._name===value){return interfaces[i];}i+=1;}return null;}function parentGroupWrapper(){return propertyGroup;}_interfaceFunction.propertyGroup=propertyGroupFactory(_interfaceFunction,parentGroupWrapper);interfaces=iterateElements(shapes,view,_interfaceFunction.propertyGroup);_interfaceFunction.numProperties=interfaces.length;_interfaceFunction._name='Contents';return _interfaceFunction;};}();var TextExpressionInterface=function(){return function(elem){var _prevValue;var _sourceText;function _thisLayerFunction(name){switch(name){case'ADBE Text Document':return _thisLayerFunction.sourceText;default:return null;}}Object.defineProperty(_thisLayerFunction,'sourceText',{get:function get(){elem.textProperty.getValue();var stringValue=elem.textProperty.currentData.t;if(stringValue!==_prevValue){elem.textProperty.currentData.t=_prevValue;_sourceText=new String(stringValue);// eslint-disable-line no-new-wrappers
  5453. // If stringValue is an empty string, eval returns undefined, so it has to be returned as a String primitive
  5454. _sourceText.value=stringValue||new String(stringValue);// eslint-disable-line no-new-wrappers
  5455. }return _sourceText;}});return _thisLayerFunction;};}();var getBlendMode=function(){var blendModeEnums={0:'source-over',1:'multiply',2:'screen',3:'overlay',4:'darken',5:'lighten',6:'color-dodge',7:'color-burn',8:'hard-light',9:'soft-light',10:'difference',11:'exclusion',12:'hue',13:'saturation',14:'color',15:'luminosity'};return function(mode){return blendModeEnums[mode]||'';};}();function SliderEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,0,0,container);}function AngleEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,0,0,container);}function ColorEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,1,0,container);}function PointEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,1,0,container);}function LayerIndexEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,0,0,container);}function MaskIndexEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,0,0,container);}function CheckboxEffect(data,elem,container){this.p=PropertyFactory.getProp(elem,data.v,0,0,container);}function NoValueEffect(){this.p={};}function EffectsManager(data,element){var effects=data.ef||[];this.effectElements=[];var i;var len=effects.length;var effectItem;for(i=0;i<len;i+=1){effectItem=new GroupEffect(effects[i],element);this.effectElements.push(effectItem);}}function GroupEffect(data,element){this.init(data,element);}extendPrototype([DynamicPropertyContainer],GroupEffect);GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties;GroupEffect.prototype.init=function(data,element){this.data=data;this.effectElements=[];this.initDynamicPropertyContainer(element);var i;var len=this.data.ef.length;var eff;var effects=this.data.ef;for(i=0;i<len;i+=1){eff=null;switch(effects[i].ty){case 0:eff=new SliderEffect(effects[i],element,this);break;case 1:eff=new AngleEffect(effects[i],element,this);break;case 2:eff=new ColorEffect(effects[i],element,this);break;case 3:eff=new PointEffect(effects[i],element,this);break;case 4:case 7:eff=new CheckboxEffect(effects[i],element,this);break;case 10:eff=new LayerIndexEffect(effects[i],element,this);break;case 11:eff=new MaskIndexEffect(effects[i],element,this);break;case 5:eff=new EffectsManager(effects[i],element);break;// case 6:
  5456. default:eff=new NoValueEffect(effects[i]);break;}if(eff){this.effectElements.push(eff);}}};function BaseElement(){}BaseElement.prototype={checkMasks:function checkMasks(){if(!this.data.hasMask){return false;}var i=0;var len=this.data.masksProperties.length;while(i<len){if(this.data.masksProperties[i].mode!=='n'&&this.data.masksProperties[i].cl!==false){return true;}i+=1;}return false;},initExpressions:function initExpressions(){this.layerInterface=LayerExpressionInterface(this);if(this.data.hasMask&&this.maskManager){this.layerInterface.registerMaskInterface(this.maskManager);}var effectsInterface=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(effectsInterface);if(this.data.ty===0||this.data.xt){this.compInterface=CompExpressionInterface(this);}else if(this.data.ty===4){this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface);this.layerInterface.content=this.layerInterface.shapeInterface;}else if(this.data.ty===5){this.layerInterface.textInterface=TextExpressionInterface(this);this.layerInterface.text=this.layerInterface.textInterface;}},setBlendMode:function setBlendMode(){var blendModeValue=getBlendMode(this.data.bm);var elem=this.baseElement||this.layerElement;elem.style['mix-blend-mode']=blendModeValue;},initBaseData:function initBaseData(data,globalData,comp){this.globalData=globalData;this.comp=comp;this.data=data;this.layerId=createElementID();// Stretch factor for old animations missing this property.
  5457. if(!this.data.sr){this.data.sr=1;}// effects manager
  5458. this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties);},getType:function getType(){return this.type;},sourceRectAtTime:function sourceRectAtTime(){}};/**
  5459. * @file
  5460. * Handles element's layer frame update.
  5461. * Checks layer in point and out point
  5462. *
  5463. */function FrameElement(){}FrameElement.prototype={/**
  5464. * @function
  5465. * Initializes frame related properties.
  5466. *
  5467. */initFrame:function initFrame(){// set to true when inpoint is rendered
  5468. this._isFirstFrame=false;// list of animated properties
  5469. this.dynamicProperties=[];// If layer has been modified in current tick this will be true
  5470. this._mdf=false;},/**
  5471. * @function
  5472. * Calculates all dynamic values
  5473. *
  5474. * @param {number} num
  5475. * current frame number in Layer's time
  5476. * @param {boolean} isVisible
  5477. * if layers is currently in range
  5478. *
  5479. */prepareProperties:function prepareProperties(num,isVisible){var i;var len=this.dynamicProperties.length;for(i=0;i<len;i+=1){if(isVisible||this._isParent&&this.dynamicProperties[i].propType==='transform'){this.dynamicProperties[i].getValue();if(this.dynamicProperties[i]._mdf){this.globalData._mdf=true;this._mdf=true;}}}},addDynamicProperty:function addDynamicProperty(prop){if(this.dynamicProperties.indexOf(prop)===-1){this.dynamicProperties.push(prop);}}};function _typeof$2(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$2=function _typeof(obj){return typeof obj;};}else{_typeof$2=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof$2(obj);}var FootageInterface=function(){var outlineInterfaceFactory=function outlineInterfaceFactory(elem){var currentPropertyName='';var currentProperty=elem.getFootageData();function init(){currentPropertyName='';currentProperty=elem.getFootageData();return searchProperty;}function searchProperty(value){if(currentProperty[value]){currentPropertyName=value;currentProperty=currentProperty[value];if(_typeof$2(currentProperty)==='object'){return searchProperty;}return currentProperty;}var propertyNameIndex=value.indexOf(currentPropertyName);if(propertyNameIndex!==-1){var index=parseInt(value.substr(propertyNameIndex+currentPropertyName.length),10);currentProperty=currentProperty[index];if(_typeof$2(currentProperty)==='object'){return searchProperty;}return currentProperty;}return'';}return init;};var dataInterfaceFactory=function dataInterfaceFactory(elem){function interfaceFunction(value){if(value==='Outline'){return interfaceFunction.outlineInterface();}return null;}interfaceFunction._name='Outline';interfaceFunction.outlineInterface=outlineInterfaceFactory(elem);return interfaceFunction;};return function(elem){function _interfaceFunction(value){if(value==='Data'){return _interfaceFunction.dataInterface;}return null;}_interfaceFunction._name='Data';_interfaceFunction.dataInterface=dataInterfaceFactory(elem);return _interfaceFunction;};}();function FootageElement(data,globalData,comp){this.initFrame();this.initRenderable();this.assetData=globalData.getAssetData(data.refId);this.footageData=globalData.imageLoader.getAsset(this.assetData);this.initBaseData(data,globalData,comp);}FootageElement.prototype.prepareFrame=function(){};extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement);FootageElement.prototype.getBaseElement=function(){return null;};FootageElement.prototype.renderFrame=function(){};FootageElement.prototype.destroy=function(){};FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this);};FootageElement.prototype.getFootageData=function(){return this.footageData;};function AudioElement(data,globalData,comp){this.initFrame();this.initRenderable();this.assetData=globalData.getAssetData(data.refId);this.initBaseData(data,globalData,comp);this._isPlaying=false;this._canPlay=false;var assetPath=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(assetPath);this._currentTime=0;this.globalData.audioController.addAudio(this);this._volumeMultiplier=1;this._volume=1;this._previousVolume=null;this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,globalData.frameRate,this):{_placeholder:true};this.lv=PropertyFactory.getProp(this,data.au&&data.au.lv?data.au.lv:{k:[100]},1,0.01,this);}AudioElement.prototype.prepareFrame=function(num){this.prepareRenderableFrame(num,true);this.prepareProperties(num,true);if(!this.tm._placeholder){var timeRemapped=this.tm.v;this._currentTime=timeRemapped;}else{this._currentTime=num/this.data.sr;}this._volume=this.lv.v[0];var totalVolume=this._volume*this._volumeMultiplier;if(this._previousVolume!==totalVolume){this._previousVolume=totalVolume;this.audio.volume(totalVolume);}};extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement);AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying){this.audio.play();this.audio.seek(this._currentTime/this.globalData.frameRate);this._isPlaying=true;}else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>0.1){this.audio.seek(this._currentTime/this.globalData.frameRate);}}};AudioElement.prototype.show=function(){// this.audio.play()
  5480. };AudioElement.prototype.hide=function(){this.audio.pause();this._isPlaying=false;};AudioElement.prototype.pause=function(){this.audio.pause();this._isPlaying=false;this._canPlay=false;};AudioElement.prototype.resume=function(){this._canPlay=true;};AudioElement.prototype.setRate=function(rateValue){this.audio.rate(rateValue);};AudioElement.prototype.volume=function(volumeValue){this._volumeMultiplier=volumeValue;this._previousVolume=volumeValue*this._volume;this.audio.volume(this._previousVolume);};AudioElement.prototype.getBaseElement=function(){return null;};AudioElement.prototype.destroy=function(){};AudioElement.prototype.sourceRectAtTime=function(){};AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(num){var i;var len=this.layers.length;var data;this.completeLayers=true;for(i=len-1;i>=0;i-=1){if(!this.elements[i]){data=this.layers[i];if(data.ip-data.st<=num-this.layers[i].st&&data.op-data.st>num-this.layers[i].st){this.buildItem(i);}}this.completeLayers=this.elements[i]?this.completeLayers:false;}this.checkPendingElements();};BaseRenderer.prototype.createItem=function(layer){switch(layer.ty){case 2:return this.createImage(layer);case 0:return this.createComp(layer);case 1:return this.createSolid(layer);case 3:return this.createNull(layer);case 4:return this.createShape(layer);case 5:return this.createText(layer);case 6:return this.createAudio(layer);case 13:return this.createCamera(layer);case 15:return this.createFootage(layer);default:return this.createNull(layer);}};BaseRenderer.prototype.createCamera=function(){throw new Error('You\'re using a 3d camera. Try the html renderer.');};BaseRenderer.prototype.createAudio=function(data){return new AudioElement(data,this.globalData,this);};BaseRenderer.prototype.createFootage=function(data){return new FootageElement(data,this.globalData,this);};BaseRenderer.prototype.buildAllItems=function(){var i;var len=this.layers.length;for(i=0;i<len;i+=1){this.buildItem(i);}this.checkPendingElements();};BaseRenderer.prototype.includeLayers=function(newLayers){this.completeLayers=false;var i;var len=newLayers.length;var j;var jLen=this.layers.length;for(i=0;i<len;i+=1){j=0;while(j<jLen){if(this.layers[j].id===newLayers[i].id){this.layers[j]=newLayers[i];break;}j+=1;}}};BaseRenderer.prototype.setProjectInterface=function(pInterface){this.globalData.projectInterface=pInterface;};BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad){this.buildAllItems();}};BaseRenderer.prototype.buildElementParenting=function(element,parentName,hierarchy){var elements=this.elements;var layers=this.layers;var i=0;var len=layers.length;while(i<len){if(layers[i].ind==parentName){// eslint-disable-line eqeqeq
  5481. if(!elements[i]||elements[i]===true){this.buildItem(i);this.addPendingElement(element);}else{hierarchy.push(elements[i]);elements[i].setAsParent();if(layers[i].parent!==undefined){this.buildElementParenting(element,layers[i].parent,hierarchy);}else{element.setHierarchy(hierarchy);}}}i+=1;}};BaseRenderer.prototype.addPendingElement=function(element){this.pendingElements.push(element);};BaseRenderer.prototype.searchExtraCompositions=function(assets){var i;var len=assets.length;for(i=0;i<len;i+=1){if(assets[i].xt){var comp=this.createComp(assets[i]);comp.initExpressions();this.globalData.projectInterface.registerComposition(comp);}}};BaseRenderer.prototype.getElementByPath=function(path){var pathValue=path.shift();var element;if(typeof pathValue==='number'){element=this.elements[pathValue];}else{var i;var len=this.elements.length;for(i=0;i<len;i+=1){if(this.elements[i].data.nm===pathValue){element=this.elements[i];break;}}}if(path.length===0){return element;}return element.getElementByPath(path);};BaseRenderer.prototype.setupGlobalData=function(animData,fontsContainer){this.globalData.fontManager=new FontManager();this.globalData.fontManager.addChars(animData.chars);this.globalData.fontManager.addFonts(animData.fonts,fontsContainer);this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem);this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem);this.globalData.imageLoader=this.animationItem.imagePreloader;this.globalData.audioController=this.animationItem.audioController;this.globalData.frameId=0;this.globalData.frameRate=animData.fr;this.globalData.nm=animData.nm;this.globalData.compSize={w:animData.w,h:animData.h};};function TransformElement(){}TransformElement.prototype={initTransform:function initTransform(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:false,_opMdf:false,mat:new Matrix()};if(this.data.ao){this.finalTransform.mProp.autoOriented=true;}// TODO: check TYPE 11: Guided elements
  5482. if(this.data.ty!==11);},renderTransform:function renderTransform(){this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame;this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame;if(this.hierarchy){var mat;var finalMat=this.finalTransform.mat;var i=0;var len=this.hierarchy.length;// Checking if any of the transformation matrices in the hierarchy chain has changed.
  5483. if(!this.finalTransform._matMdf){while(i<len){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=true;break;}i+=1;}}if(this.finalTransform._matMdf){mat=this.finalTransform.mProp.v.props;finalMat.cloneFromProps(mat);for(i=0;i<len;i+=1){mat=this.hierarchy[i].finalTransform.mProp.v.props;finalMat.transform(mat[0],mat[1],mat[2],mat[3],mat[4],mat[5],mat[6],mat[7],mat[8],mat[9],mat[10],mat[11],mat[12],mat[13],mat[14],mat[15]);}}}},globalToLocal:function globalToLocal(pt){var transforms=[];transforms.push(this.finalTransform);var flag=true;var comp=this.comp;while(flag){if(comp.finalTransform){if(comp.data.hasMask){transforms.splice(0,0,comp.finalTransform);}comp=comp.comp;}else{flag=false;}}var i;var len=transforms.length;var ptNew;for(i=0;i<len;i+=1){ptNew=transforms[i].mat.applyToPointArray(0,0,0);// ptNew = transforms[i].mat.applyToPointArray(pt[0],pt[1],pt[2]);
  5484. pt=[pt[0]-ptNew[0],pt[1]-ptNew[1],0];}return pt;},mHelper:new Matrix()};function MaskElement(data,element,globalData){this.data=data;this.element=element;this.globalData=globalData;this.storedData=[];this.masksProperties=this.data.masksProperties||[];this.maskElement=null;var defs=this.globalData.defs;var i;var len=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(len);this.solidPath='';var path;var properties=this.masksProperties;var count=0;var currentMasks=[];var j;var jLen;var layerId=createElementID();var rect;var expansor;var feMorph;var x;var maskType='clipPath';var maskRef='clip-path';for(i=0;i<len;i+=1){if(properties[i].mode!=='a'&&properties[i].mode!=='n'||properties[i].inv||properties[i].o.k!==100||properties[i].o.x){maskType='mask';maskRef='mask';}if((properties[i].mode==='s'||properties[i].mode==='i')&&count===0){rect=createNS('rect');rect.setAttribute('fill','#ffffff');rect.setAttribute('width',this.element.comp.data.w||0);rect.setAttribute('height',this.element.comp.data.h||0);currentMasks.push(rect);}else{rect=null;}path=createNS('path');if(properties[i].mode==='n'){// TODO move this to a factory or to a constructor
  5485. this.viewData[i]={op:PropertyFactory.getProp(this.element,properties[i].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,properties[i],3),elem:path,lastPath:''};defs.appendChild(path);}else{count+=1;path.setAttribute('fill',properties[i].mode==='s'?'#000000':'#ffffff');path.setAttribute('clip-rule','nonzero');var filterID;if(properties[i].x.k!==0){maskType='mask';maskRef='mask';x=PropertyFactory.getProp(this.element,properties[i].x,0,null,this.element);filterID=createElementID();expansor=createNS('filter');expansor.setAttribute('id',filterID);feMorph=createNS('feMorphology');feMorph.setAttribute('operator','erode');feMorph.setAttribute('in','SourceGraphic');feMorph.setAttribute('radius','0');expansor.appendChild(feMorph);defs.appendChild(expansor);path.setAttribute('stroke',properties[i].mode==='s'?'#000000':'#ffffff');}else{feMorph=null;x=null;}// TODO move this to a factory or to a constructor
  5486. this.storedData[i]={elem:path,x:x,expan:feMorph,lastPath:'',lastOperator:'',filterId:filterID,lastRadius:0};if(properties[i].mode==='i'){jLen=currentMasks.length;var g=createNS('g');for(j=0;j<jLen;j+=1){g.appendChild(currentMasks[j]);}var mask=createNS('mask');mask.setAttribute('mask-type','alpha');mask.setAttribute('id',layerId+'_'+count);mask.appendChild(path);defs.appendChild(mask);g.setAttribute('mask','url('+getLocationHref()+'#'+layerId+'_'+count+')');currentMasks.length=0;currentMasks.push(g);}else{currentMasks.push(path);}if(properties[i].inv&&!this.solidPath){this.solidPath=this.createLayerSolidPath();}// TODO move this to a factory or to a constructor
  5487. this.viewData[i]={elem:path,lastPath:'',op:PropertyFactory.getProp(this.element,properties[i].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,properties[i],3),invRect:rect};if(!this.viewData[i].prop.k){this.drawPath(properties[i],this.viewData[i].prop.v,this.viewData[i]);}}}this.maskElement=createNS(maskType);len=currentMasks.length;for(i=0;i<len;i+=1){this.maskElement.appendChild(currentMasks[i]);}if(count>0){this.maskElement.setAttribute('id',layerId);this.element.maskedElement.setAttribute(maskRef,'url('+getLocationHref()+'#'+layerId+')');defs.appendChild(this.maskElement);}if(this.viewData.length){this.element.addRenderableComponent(this);}}MaskElement.prototype.getMaskProperty=function(pos){return this.viewData[pos].prop;};MaskElement.prototype.renderFrame=function(isFirstFrame){var finalMat=this.element.finalTransform.mat;var i;var len=this.masksProperties.length;for(i=0;i<len;i+=1){if(this.viewData[i].prop._mdf||isFirstFrame){this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]);}if(this.viewData[i].op._mdf||isFirstFrame){this.viewData[i].elem.setAttribute('fill-opacity',this.viewData[i].op.v);}if(this.masksProperties[i].mode!=='n'){if(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||isFirstFrame)){this.viewData[i].invRect.setAttribute('transform',finalMat.getInverseMatrix().to2dCSS());}if(this.storedData[i].x&&(this.storedData[i].x._mdf||isFirstFrame)){var feMorph=this.storedData[i].expan;if(this.storedData[i].x.v<0){if(this.storedData[i].lastOperator!=='erode'){this.storedData[i].lastOperator='erode';this.storedData[i].elem.setAttribute('filter','url('+getLocationHref()+'#'+this.storedData[i].filterId+')');}feMorph.setAttribute('radius',-this.storedData[i].x.v);}else{if(this.storedData[i].lastOperator!=='dilate'){this.storedData[i].lastOperator='dilate';this.storedData[i].elem.setAttribute('filter',null);}this.storedData[i].elem.setAttribute('stroke-width',this.storedData[i].x.v*2);}}}}};MaskElement.prototype.getMaskelement=function(){return this.maskElement;};MaskElement.prototype.createLayerSolidPath=function(){var path='M0,0 ';path+=' h'+this.globalData.compSize.w;path+=' v'+this.globalData.compSize.h;path+=' h-'+this.globalData.compSize.w;path+=' v-'+this.globalData.compSize.h+' ';return path;};MaskElement.prototype.drawPath=function(pathData,pathNodes,viewData){var pathString=' M'+pathNodes.v[0][0]+','+pathNodes.v[0][1];var i;var len;len=pathNodes._length;for(i=1;i<len;i+=1){// pathString += " C"+pathNodes.o[i-1][0]+','+pathNodes.o[i-1][1] + " "+pathNodes.i[i][0]+','+pathNodes.i[i][1] + " "+pathNodes.v[i][0]+','+pathNodes.v[i][1];
  5488. pathString+=' C'+pathNodes.o[i-1][0]+','+pathNodes.o[i-1][1]+' '+pathNodes.i[i][0]+','+pathNodes.i[i][1]+' '+pathNodes.v[i][0]+','+pathNodes.v[i][1];}// pathString += " C"+pathNodes.o[i-1][0]+','+pathNodes.o[i-1][1] + " "+pathNodes.i[0][0]+','+pathNodes.i[0][1] + " "+pathNodes.v[0][0]+','+pathNodes.v[0][1];
  5489. if(pathNodes.c&&len>1){pathString+=' C'+pathNodes.o[i-1][0]+','+pathNodes.o[i-1][1]+' '+pathNodes.i[0][0]+','+pathNodes.i[0][1]+' '+pathNodes.v[0][0]+','+pathNodes.v[0][1];}// pathNodes.__renderedString = pathString;
  5490. if(viewData.lastPath!==pathString){var pathShapeValue='';if(viewData.elem){if(pathNodes.c){pathShapeValue=pathData.inv?this.solidPath+pathString:pathString;}viewData.elem.setAttribute('d',pathShapeValue);}viewData.lastPath=pathString;}};MaskElement.prototype.destroy=function(){this.element=null;this.globalData=null;this.maskElement=null;this.data=null;this.masksProperties=null;};var filtersFactory=function(){var ob={};ob.createFilter=createFilter;ob.createAlphaToLuminanceFilter=createAlphaToLuminanceFilter;function createFilter(filId,skipCoordinates){var fil=createNS('filter');fil.setAttribute('id',filId);if(skipCoordinates!==true){fil.setAttribute('filterUnits','objectBoundingBox');fil.setAttribute('x','0%');fil.setAttribute('y','0%');fil.setAttribute('width','100%');fil.setAttribute('height','100%');}return fil;}function createAlphaToLuminanceFilter(){var feColorMatrix=createNS('feColorMatrix');feColorMatrix.setAttribute('type','matrix');feColorMatrix.setAttribute('color-interpolation-filters','sRGB');feColorMatrix.setAttribute('values','0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1');return feColorMatrix;}return ob;}();var featureSupport=function(){var ob={maskType:true};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent)){ob.maskType=false;}return ob;}();var registeredEffects={};var idPrefix='filter_result_';function SVGEffects(elem){var i;var source='SourceGraphic';var len=elem.data.ef?elem.data.ef.length:0;var filId=createElementID();var fil=filtersFactory.createFilter(filId,true);var count=0;this.filters=[];var filterManager;for(i=0;i<len;i+=1){filterManager=null;var type=elem.data.ef[i].ty;if(registeredEffects[type]){var Effect=registeredEffects[type].effect;filterManager=new Effect(fil,elem.effectsManager.effectElements[i],elem,idPrefix+count,source);source=idPrefix+count;if(registeredEffects[type].countsAsEffect){count+=1;}}if(filterManager){this.filters.push(filterManager);}}if(count){elem.globalData.defs.appendChild(fil);elem.layerElement.setAttribute('filter','url('+getLocationHref()+'#'+filId+')');}if(this.filters.length){elem.addRenderableComponent(this);}}SVGEffects.prototype.renderFrame=function(_isFirstFrame){var i;var len=this.filters.length;for(i=0;i<len;i+=1){this.filters[i].renderFrame(_isFirstFrame);}};function registerEffect(id,effect,countsAsEffect){registeredEffects[id]={effect:effect,countsAsEffect:countsAsEffect};}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function initRendererElement(){this.layerElement=createNS('g');},createContainerElements:function createContainerElements(){this.matteElement=createNS('g');this.transformedElement=this.layerElement;this.maskedElement=this.layerElement;this._sizeChanged=false;var layerElementParent=null;// If this layer acts as a mask for the following layer
  5491. var filId;var fil;var gg;if(this.data.td){if(this.data.td==3||this.data.td==1){// eslint-disable-line eqeqeq
  5492. var masker=createNS('mask');masker.setAttribute('id',this.layerId);masker.setAttribute('mask-type',this.data.td==3?'luminance':'alpha');// eslint-disable-line eqeqeq
  5493. masker.appendChild(this.layerElement);layerElementParent=masker;this.globalData.defs.appendChild(masker);// This is only for IE and Edge when mask if of type alpha
  5494. if(!featureSupport.maskType&&this.data.td==1){// eslint-disable-line eqeqeq
  5495. masker.setAttribute('mask-type','luminance');filId=createElementID();fil=filtersFactory.createFilter(filId);this.globalData.defs.appendChild(fil);fil.appendChild(filtersFactory.createAlphaToLuminanceFilter());gg=createNS('g');gg.appendChild(this.layerElement);layerElementParent=gg;masker.appendChild(gg);gg.setAttribute('filter','url('+getLocationHref()+'#'+filId+')');}}else if(this.data.td==2){// eslint-disable-line eqeqeq
  5496. var maskGroup=createNS('mask');maskGroup.setAttribute('id',this.layerId);maskGroup.setAttribute('mask-type','alpha');var maskGrouper=createNS('g');maskGroup.appendChild(maskGrouper);filId=createElementID();fil=filtersFactory.createFilter(filId);/// /
  5497. // This solution doesn't work on Android when meta tag with viewport attribute is set
  5498. /* var feColorMatrix = createNS('feColorMatrix');
  5499. feColorMatrix.setAttribute('type', 'matrix');
  5500. feColorMatrix.setAttribute('color-interpolation-filters', 'sRGB');
  5501. feColorMatrix.setAttribute('values','1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 -1 1');
  5502. fil.appendChild(feColorMatrix); */ /// /
  5503. var feCTr=createNS('feComponentTransfer');feCTr.setAttribute('in','SourceGraphic');fil.appendChild(feCTr);var feFunc=createNS('feFuncA');feFunc.setAttribute('type','table');feFunc.setAttribute('tableValues','1.0 0.0');feCTr.appendChild(feFunc);/// /
  5504. this.globalData.defs.appendChild(fil);var alphaRect=createNS('rect');alphaRect.setAttribute('width',this.comp.data.w);alphaRect.setAttribute('height',this.comp.data.h);alphaRect.setAttribute('x','0');alphaRect.setAttribute('y','0');alphaRect.setAttribute('fill','#ffffff');alphaRect.setAttribute('opacity','0');maskGrouper.setAttribute('filter','url('+getLocationHref()+'#'+filId+')');maskGrouper.appendChild(alphaRect);maskGrouper.appendChild(this.layerElement);layerElementParent=maskGrouper;if(!featureSupport.maskType){maskGroup.setAttribute('mask-type','luminance');fil.appendChild(filtersFactory.createAlphaToLuminanceFilter());gg=createNS('g');maskGrouper.appendChild(alphaRect);gg.appendChild(this.layerElement);layerElementParent=gg;maskGrouper.appendChild(gg);}this.globalData.defs.appendChild(maskGroup);}}else if(this.data.tt){this.matteElement.appendChild(this.layerElement);layerElementParent=this.matteElement;this.baseElement=this.matteElement;}else{this.baseElement=this.layerElement;}if(this.data.ln){this.layerElement.setAttribute('id',this.data.ln);}if(this.data.cl){this.layerElement.setAttribute('class',this.data.cl);}// Clipping compositions to hide content that exceeds boundaries. If collapsed transformations is on, component should not be clipped
  5505. if(this.data.ty===0&&!this.data.hd){var cp=createNS('clipPath');var pt=createNS('path');pt.setAttribute('d','M0,0 L'+this.data.w+',0 L'+this.data.w+','+this.data.h+' L0,'+this.data.h+'z');var clipId=createElementID();cp.setAttribute('id',clipId);cp.appendChild(pt);this.globalData.defs.appendChild(cp);if(this.checkMasks()){var cpGroup=createNS('g');cpGroup.setAttribute('clip-path','url('+getLocationHref()+'#'+clipId+')');cpGroup.appendChild(this.layerElement);this.transformedElement=cpGroup;if(layerElementParent){layerElementParent.appendChild(this.transformedElement);}else{this.baseElement=this.transformedElement;}}else{this.layerElement.setAttribute('clip-path','url('+getLocationHref()+'#'+clipId+')');}}if(this.data.bm!==0){this.setBlendMode();}},renderElement:function renderElement(){if(this.finalTransform._matMdf){this.transformedElement.setAttribute('transform',this.finalTransform.mat.to2dCSS());}if(this.finalTransform._opMdf){this.transformedElement.setAttribute('opacity',this.finalTransform.mProp.o.v);}},destroyBaseElement:function destroyBaseElement(){this.layerElement=null;this.matteElement=null;this.maskManager.destroy();},getBaseElement:function getBaseElement(){if(this.data.hd){return null;}return this.baseElement;},createRenderableComponents:function createRenderableComponents(){this.maskManager=new MaskElement(this.data,this,this.globalData);this.renderableEffectsManager=new SVGEffects(this);},setMatte:function setMatte(id){if(!this.matteElement){return;}this.matteElement.setAttribute('mask','url('+getLocationHref()+'#'+id+')');}};/**
  5506. * @file
  5507. * Handles AE's layer parenting property.
  5508. *
  5509. */function HierarchyElement(){}HierarchyElement.prototype={/**
  5510. * @function
  5511. * Initializes hierarchy properties
  5512. *
  5513. */initHierarchy:function initHierarchy(){// element's parent list
  5514. this.hierarchy=[];// if element is parent of another layer _isParent will be true
  5515. this._isParent=false;this.checkParenting();},/**
  5516. * @function
  5517. * Sets layer's hierarchy.
  5518. * @param {array} hierarch
  5519. * layer's parent list
  5520. *
  5521. */setHierarchy:function setHierarchy(hierarchy){this.hierarchy=hierarchy;},/**
  5522. * @function
  5523. * Sets layer as parent.
  5524. *
  5525. */setAsParent:function setAsParent(){this._isParent=true;},/**
  5526. * @function
  5527. * Searches layer's parenting chain
  5528. *
  5529. */checkParenting:function checkParenting(){if(this.data.parent!==undefined){this.comp.buildElementParenting(this,this.data.parent,[]);}}};function RenderableDOMElement(){}(function(){var _prototype={initElement:function initElement(data,globalData,comp){this.initFrame();this.initBaseData(data,globalData,comp);this.initTransform(data,globalData,comp);this.initHierarchy();this.initRenderable();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();this.createContent();this.hide();},hide:function hide(){// console.log('HIDE', this);
  5530. if(!this.hidden&&(!this.isInRange||this.isTransparent)){var elem=this.baseElement||this.layerElement;elem.style.display='none';this.hidden=true;}},show:function show(){// console.log('SHOW', this);
  5531. if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var elem=this.baseElement||this.layerElement;elem.style.display='block';}this.hidden=false;this._isFirstFrame=true;}},renderFrame:function renderFrame(){// If it is exported as hidden (data.hd === true) no need to render
  5532. // If it is not visible no need to render
  5533. if(this.data.hd||this.hidden){return;}this.renderTransform();this.renderRenderable();this.renderElement();this.renderInnerContent();if(this._isFirstFrame){this._isFirstFrame=false;}},renderInnerContent:function renderInnerContent(){},prepareFrame:function prepareFrame(num){this._mdf=false;this.prepareRenderableFrame(num);this.prepareProperties(num,this.isInRange);this.checkTransparency();},destroy:function destroy(){this.innerElem=null;this.destroyBaseElement();}};extendPrototype([RenderableElement,createProxyFunction(_prototype)],RenderableDOMElement);})();function IImageElement(data,globalData,comp){this.assetData=globalData.getAssetData(data.refId);this.initElement(data,globalData,comp);this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h};}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement);IImageElement.prototype.createContent=function(){var assetPath=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS('image');this.innerElem.setAttribute('width',this.assetData.w+'px');this.innerElem.setAttribute('height',this.assetData.h+'px');this.innerElem.setAttribute('preserveAspectRatio',this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio);this.innerElem.setAttributeNS('http://www.w3.org/1999/xlink','href',assetPath);this.layerElement.appendChild(this.innerElem);};IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect;};function ProcessedElement(element,position){this.elem=element;this.pos=position;}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function addShapeToModifiers(data){var i;var len=this.shapeModifiers.length;for(i=0;i<len;i+=1){this.shapeModifiers[i].addShape(data);}},isShapeInAnimatedModifiers:function isShapeInAnimatedModifiers(data){var i=0;var len=this.shapeModifiers.length;while(i<len){if(this.shapeModifiers[i].isAnimatedWithShape(data)){return true;}}return false;},renderModifiers:function renderModifiers(){if(!this.shapeModifiers.length){return;}var i;var len=this.shapes.length;for(i=0;i<len;i+=1){this.shapes[i].sh.reset();}len=this.shapeModifiers.length;var shouldBreakProcess;for(i=len-1;i>=0;i-=1){shouldBreakProcess=this.shapeModifiers[i].processShapes(this._isFirstFrame);// workaround to fix cases where a repeater resets the shape so the following processes get called twice
  5534. // TODO: find a better solution for this
  5535. if(shouldBreakProcess){break;}}},searchProcessedElement:function searchProcessedElement(elem){var elements=this.processedElements;var i=0;var len=elements.length;while(i<len){if(elements[i].elem===elem){return elements[i].pos;}i+=1;}return 0;},addProcessedElement:function addProcessedElement(elem,pos){var elements=this.processedElements;var i=elements.length;while(i){i-=1;if(elements[i].elem===elem){elements[i].pos=pos;return;}}elements.push(new ProcessedElement(elem,pos));},prepareFrame:function prepareFrame(num){this.prepareRenderableFrame(num);this.prepareProperties(num,this.isInRange);}};var lineCapEnum={1:'butt',2:'round',3:'square'};var lineJoinEnum={1:'miter',2:'round',3:'bevel'};function SVGShapeData(transformers,level,shape){this.caches=[];this.styles=[];this.transformers=transformers;this.lStr='';this.sh=shape;this.lvl=level;// TODO find if there are some cases where _isAnimated can be false.
  5536. // For now, since shapes add up with other shapes. They have to be calculated every time.
  5537. // One way of finding out is checking if all styles associated to this shape depend only of this shape
  5538. this._isAnimated=!!shape.k;// TODO: commenting this for now since all shapes are animated
  5539. var i=0;var len=transformers.length;while(i<len){if(transformers[i].mProps.dynamicProperties.length){this._isAnimated=true;break;}i+=1;}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=true;};function SVGStyleData(data,level){this.data=data;this.type=data.ty;this.d='';this.lvl=level;this._mdf=false;this.closed=data.hd===true;this.pElem=createNS('path');this.msElem=null;}SVGStyleData.prototype.reset=function(){this.d='';this._mdf=false;};function DashProperty(elem,data,renderer,container){this.elem=elem;this.frameId=-1;this.dataProps=createSizedArray(data.length);this.renderer=renderer;this.k=false;this.dashStr='';this.dashArray=createTypedArray('float32',data.length?data.length-1:0);this.dashoffset=createTypedArray('float32',1);this.initDynamicPropertyContainer(container);var i;var len=data.length||0;var prop;for(i=0;i<len;i+=1){prop=PropertyFactory.getProp(elem,data[i].v,0,0,this);this.k=prop.k||this.k;this.dataProps[i]={n:data[i].n,p:prop};}if(!this.k){this.getValue(true);}this._isAnimated=this.k;}DashProperty.prototype.getValue=function(forceRender){if(this.elem.globalData.frameId===this.frameId&&!forceRender){return;}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();this._mdf=this._mdf||forceRender;if(this._mdf){var i=0;var len=this.dataProps.length;if(this.renderer==='svg'){this.dashStr='';}for(i=0;i<len;i+=1){if(this.dataProps[i].n!=='o'){if(this.renderer==='svg'){this.dashStr+=' '+this.dataProps[i].p.v;}else{this.dashArray[i]=this.dataProps[i].p.v;}}else{this.dashoffset[0]=this.dataProps[i].p.v;}}}};extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(elem,data,styleOb){this.initDynamicPropertyContainer(elem);this.getValue=this.iterateDynamicProperties;this.o=PropertyFactory.getProp(elem,data.o,0,0.01,this);this.w=PropertyFactory.getProp(elem,data.w,0,null,this);this.d=new DashProperty(elem,data.d||{},'svg',this);this.c=PropertyFactory.getProp(elem,data.c,1,255,this);this.style=styleOb;this._isAnimated=!!this._isAnimated;}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(elem,data,styleOb){this.initDynamicPropertyContainer(elem);this.getValue=this.iterateDynamicProperties;this.o=PropertyFactory.getProp(elem,data.o,0,0.01,this);this.c=PropertyFactory.getProp(elem,data.c,1,255,this);this.style=styleOb;}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(elem,data,styleOb){this.initDynamicPropertyContainer(elem);this.getValue=this.iterateDynamicProperties;this.style=styleOb;}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(elem,data,container){this.data=data;this.c=createTypedArray('uint8c',data.p*4);var cLength=data.k.k[0].s?data.k.k[0].s.length-data.p*4:data.k.k.length-data.p*4;this.o=createTypedArray('float32',cLength);this._cmdf=false;this._omdf=false;this._collapsable=this.checkCollapsable();this._hasOpacity=cLength;this.initDynamicPropertyContainer(container);this.prop=PropertyFactory.getProp(elem,data.k,1,null,this);this.k=this.prop.k;this.getValue(true);}GradientProperty.prototype.comparePoints=function(values,points){var i=0;var len=this.o.length/2;var diff;while(i<len){diff=Math.abs(values[i*4]-values[points*4+i*2]);if(diff>0.01){return false;}i+=1;}return true;};GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4){return false;}if(this.data.k.k[0].s){var i=0;var len=this.data.k.k.length;while(i<len){if(!this.comparePoints(this.data.k.k[i].s,this.data.p)){return false;}i+=1;}}else if(!this.comparePoints(this.data.k.k,this.data.p)){return false;}return true;};GradientProperty.prototype.getValue=function(forceRender){this.prop.getValue();this._mdf=false;this._cmdf=false;this._omdf=false;if(this.prop._mdf||forceRender){var i;var len=this.data.p*4;var mult;var val;for(i=0;i<len;i+=1){mult=i%4===0?100:255;val=Math.round(this.prop.v[i]*mult);if(this.c[i]!==val){this.c[i]=val;this._cmdf=!forceRender;}}if(this.o.length){len=this.prop.v.length;for(i=this.data.p*4;i<len;i+=1){mult=i%2===0?100:1;val=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i];if(this.o[i-this.data.p*4]!==val){this.o[i-this.data.p*4]=val;this._omdf=!forceRender;}}}this._mdf=!forceRender;}};extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(elem,data,styleOb){this.initDynamicPropertyContainer(elem);this.getValue=this.iterateDynamicProperties;this.initGradientData(elem,data,styleOb);}SVGGradientFillStyleData.prototype.initGradientData=function(elem,data,styleOb){this.o=PropertyFactory.getProp(elem,data.o,0,0.01,this);this.s=PropertyFactory.getProp(elem,data.s,1,null,this);this.e=PropertyFactory.getProp(elem,data.e,1,null,this);this.h=PropertyFactory.getProp(elem,data.h||{k:0},0,0.01,this);this.a=PropertyFactory.getProp(elem,data.a||{k:0},0,degToRads,this);this.g=new GradientProperty(elem,data.g,this);this.style=styleOb;this.stops=[];this.setGradientData(styleOb.pElem,data);this.setGradientOpacity(data,styleOb);this._isAnimated=!!this._isAnimated;};SVGGradientFillStyleData.prototype.setGradientData=function(pathElement,data){var gradientId=createElementID();var gfill=createNS(data.t===1?'linearGradient':'radialGradient');gfill.setAttribute('id',gradientId);gfill.setAttribute('spreadMethod','pad');gfill.setAttribute('gradientUnits','userSpaceOnUse');var stops=[];var stop;var j;var jLen;jLen=data.g.p*4;for(j=0;j<jLen;j+=4){stop=createNS('stop');gfill.appendChild(stop);stops.push(stop);}pathElement.setAttribute(data.ty==='gf'?'fill':'stroke','url('+getLocationHref()+'#'+gradientId+')');this.gf=gfill;this.cst=stops;};SVGGradientFillStyleData.prototype.setGradientOpacity=function(data,styleOb){if(this.g._hasOpacity&&!this.g._collapsable){var stop;var j;var jLen;var mask=createNS('mask');var maskElement=createNS('path');mask.appendChild(maskElement);var opacityId=createElementID();var maskId=createElementID();mask.setAttribute('id',maskId);var opFill=createNS(data.t===1?'linearGradient':'radialGradient');opFill.setAttribute('id',opacityId);opFill.setAttribute('spreadMethod','pad');opFill.setAttribute('gradientUnits','userSpaceOnUse');jLen=data.g.k.k[0].s?data.g.k.k[0].s.length:data.g.k.k.length;var stops=this.stops;for(j=data.g.p*4;j<jLen;j+=2){stop=createNS('stop');stop.setAttribute('stop-color','rgb(255,255,255)');opFill.appendChild(stop);stops.push(stop);}maskElement.setAttribute(data.ty==='gf'?'fill':'stroke','url('+getLocationHref()+'#'+opacityId+')');if(data.ty==='gs'){maskElement.setAttribute('stroke-linecap',lineCapEnum[data.lc||2]);maskElement.setAttribute('stroke-linejoin',lineJoinEnum[data.lj||2]);if(data.lj===1){maskElement.setAttribute('stroke-miterlimit',data.ml);}}this.of=opFill;this.ms=mask;this.ost=stops;this.maskId=maskId;styleOb.msElem=maskElement;}};extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(elem,data,styleOb){this.initDynamicPropertyContainer(elem);this.getValue=this.iterateDynamicProperties;this.w=PropertyFactory.getProp(elem,data.w,0,null,this);this.d=new DashProperty(elem,data.d||{},'svg',this);this.initGradientData(elem,data,styleOb);this._isAnimated=!!this._isAnimated;}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[];this.prevViewData=[];this.gr=createNS('g');}function SVGTransformData(mProps,op,container){this.transform={mProps:mProps,op:op,container:container};this.elements=[];this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length;}var buildShapeString=function buildShapeString(pathNodes,length,closed,mat){if(length===0){return'';}var _o=pathNodes.o;var _i=pathNodes.i;var _v=pathNodes.v;var i;var shapeString=' M'+mat.applyToPointStringified(_v[0][0],_v[0][1]);for(i=1;i<length;i+=1){shapeString+=' C'+mat.applyToPointStringified(_o[i-1][0],_o[i-1][1])+' '+mat.applyToPointStringified(_i[i][0],_i[i][1])+' '+mat.applyToPointStringified(_v[i][0],_v[i][1]);}if(closed&&length){shapeString+=' C'+mat.applyToPointStringified(_o[i-1][0],_o[i-1][1])+' '+mat.applyToPointStringified(_i[0][0],_i[0][1])+' '+mat.applyToPointStringified(_v[0][0],_v[0][1]);shapeString+='z';}return shapeString;};var SVGElementsRenderer=function(){var _identityMatrix=new Matrix();var _matrixHelper=new Matrix();var ob={createRenderFunction:createRenderFunction};function createRenderFunction(data){switch(data.ty){case'fl':return renderFill;case'gf':return renderGradient;case'gs':return renderGradientStroke;case'st':return renderStroke;case'sh':case'el':case'rc':case'sr':return renderPath;case'tr':return renderContentTransform;case'no':return renderNoop;default:return null;}}function renderContentTransform(styleData,itemData,isFirstFrame){if(isFirstFrame||itemData.transform.op._mdf){itemData.transform.container.setAttribute('opacity',itemData.transform.op.v);}if(isFirstFrame||itemData.transform.mProps._mdf){itemData.transform.container.setAttribute('transform',itemData.transform.mProps.v.to2dCSS());}}function renderNoop(){}function renderPath(styleData,itemData,isFirstFrame){var j;var jLen;var pathStringTransformed;var redraw;var pathNodes;var l;var lLen=itemData.styles.length;var lvl=itemData.lvl;var paths;var mat;var props;var iterations;var k;for(l=0;l<lLen;l+=1){redraw=itemData.sh._mdf||isFirstFrame;if(itemData.styles[l].lvl<lvl){mat=_matrixHelper.reset();iterations=lvl-itemData.styles[l].lvl;k=itemData.transformers.length-1;while(!redraw&&iterations>0){redraw=itemData.transformers[k].mProps._mdf||redraw;iterations-=1;k-=1;}if(redraw){iterations=lvl-itemData.styles[l].lvl;k=itemData.transformers.length-1;while(iterations>0){props=itemData.transformers[k].mProps.v.props;mat.transform(props[0],props[1],props[2],props[3],props[4],props[5],props[6],props[7],props[8],props[9],props[10],props[11],props[12],props[13],props[14],props[15]);iterations-=1;k-=1;}}}else{mat=_identityMatrix;}paths=itemData.sh.paths;jLen=paths._length;if(redraw){pathStringTransformed='';for(j=0;j<jLen;j+=1){pathNodes=paths.shapes[j];if(pathNodes&&pathNodes._length){pathStringTransformed+=buildShapeString(pathNodes,pathNodes._length,pathNodes.c,mat);}}itemData.caches[l]=pathStringTransformed;}else{pathStringTransformed=itemData.caches[l];}itemData.styles[l].d+=styleData.hd===true?'':pathStringTransformed;itemData.styles[l]._mdf=redraw||itemData.styles[l]._mdf;}}function renderFill(styleData,itemData,isFirstFrame){var styleElem=itemData.style;if(itemData.c._mdf||isFirstFrame){styleElem.pElem.setAttribute('fill','rgb('+bmFloor(itemData.c.v[0])+','+bmFloor(itemData.c.v[1])+','+bmFloor(itemData.c.v[2])+')');}if(itemData.o._mdf||isFirstFrame){styleElem.pElem.setAttribute('fill-opacity',itemData.o.v);}}function renderGradientStroke(styleData,itemData,isFirstFrame){renderGradient(styleData,itemData,isFirstFrame);renderStroke(styleData,itemData,isFirstFrame);}function renderGradient(styleData,itemData,isFirstFrame){var gfill=itemData.gf;var hasOpacity=itemData.g._hasOpacity;var pt1=itemData.s.v;var pt2=itemData.e.v;if(itemData.o._mdf||isFirstFrame){var attr=styleData.ty==='gf'?'fill-opacity':'stroke-opacity';itemData.style.pElem.setAttribute(attr,itemData.o.v);}if(itemData.s._mdf||isFirstFrame){var attr1=styleData.t===1?'x1':'cx';var attr2=attr1==='x1'?'y1':'cy';gfill.setAttribute(attr1,pt1[0]);gfill.setAttribute(attr2,pt1[1]);if(hasOpacity&&!itemData.g._collapsable){itemData.of.setAttribute(attr1,pt1[0]);itemData.of.setAttribute(attr2,pt1[1]);}}var stops;var i;var len;var stop;if(itemData.g._cmdf||isFirstFrame){stops=itemData.cst;var cValues=itemData.g.c;len=stops.length;for(i=0;i<len;i+=1){stop=stops[i];stop.setAttribute('offset',cValues[i*4]+'%');stop.setAttribute('stop-color','rgb('+cValues[i*4+1]+','+cValues[i*4+2]+','+cValues[i*4+3]+')');}}if(hasOpacity&&(itemData.g._omdf||isFirstFrame)){var oValues=itemData.g.o;if(itemData.g._collapsable){stops=itemData.cst;}else{stops=itemData.ost;}len=stops.length;for(i=0;i<len;i+=1){stop=stops[i];if(!itemData.g._collapsable){stop.setAttribute('offset',oValues[i*2]+'%');}stop.setAttribute('stop-opacity',oValues[i*2+1]);}}if(styleData.t===1){if(itemData.e._mdf||isFirstFrame){gfill.setAttribute('x2',pt2[0]);gfill.setAttribute('y2',pt2[1]);if(hasOpacity&&!itemData.g._collapsable){itemData.of.setAttribute('x2',pt2[0]);itemData.of.setAttribute('y2',pt2[1]);}}}else{var rad;if(itemData.s._mdf||itemData.e._mdf||isFirstFrame){rad=Math.sqrt(Math.pow(pt1[0]-pt2[0],2)+Math.pow(pt1[1]-pt2[1],2));gfill.setAttribute('r',rad);if(hasOpacity&&!itemData.g._collapsable){itemData.of.setAttribute('r',rad);}}if(itemData.e._mdf||itemData.h._mdf||itemData.a._mdf||isFirstFrame){if(!rad){rad=Math.sqrt(Math.pow(pt1[0]-pt2[0],2)+Math.pow(pt1[1]-pt2[1],2));}var ang=Math.atan2(pt2[1]-pt1[1],pt2[0]-pt1[0]);var percent=itemData.h.v;if(percent>=1){percent=0.99;}else if(percent<=-1){percent=-0.99;}var dist=rad*percent;var x=Math.cos(ang+itemData.a.v)*dist+pt1[0];var y=Math.sin(ang+itemData.a.v)*dist+pt1[1];gfill.setAttribute('fx',x);gfill.setAttribute('fy',y);if(hasOpacity&&!itemData.g._collapsable){itemData.of.setAttribute('fx',x);itemData.of.setAttribute('fy',y);}}// gfill.setAttribute('fy','200');
  5540. }}function renderStroke(styleData,itemData,isFirstFrame){var styleElem=itemData.style;var d=itemData.d;if(d&&(d._mdf||isFirstFrame)&&d.dashStr){styleElem.pElem.setAttribute('stroke-dasharray',d.dashStr);styleElem.pElem.setAttribute('stroke-dashoffset',d.dashoffset[0]);}if(itemData.c&&(itemData.c._mdf||isFirstFrame)){styleElem.pElem.setAttribute('stroke','rgb('+bmFloor(itemData.c.v[0])+','+bmFloor(itemData.c.v[1])+','+bmFloor(itemData.c.v[2])+')');}if(itemData.o._mdf||isFirstFrame){styleElem.pElem.setAttribute('stroke-opacity',itemData.o.v);}if(itemData.w._mdf||isFirstFrame){styleElem.pElem.setAttribute('stroke-width',itemData.w.v);if(styleElem.msElem){styleElem.msElem.setAttribute('stroke-width',itemData.w.v);}}}return ob;}();function SVGShapeElement(data,globalData,comp){// List of drawable elements
  5541. this.shapes=[];// Full shape data
  5542. this.shapesData=data.shapes;// List of styles that will be applied to shapes
  5543. this.stylesList=[];// List of modifiers that will be applied to shapes
  5544. this.shapeModifiers=[];// List of items in shape tree
  5545. this.itemsData=[];// List of items in previous shape tree
  5546. this.processedElements=[];// List of animated components
  5547. this.animatedContents=[];this.initElement(data,globalData,comp);// Moving any property that doesn't get too much access after initialization because of v8 way of handling more than 10 properties.
  5548. // List of elements that have been created
  5549. this.prevViewData=[];// Moving any property that doesn't get too much access after initialization because of v8 way of handling more than 10 properties.
  5550. }extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement);SVGShapeElement.prototype.initSecondaryElement=function(){};SVGShapeElement.prototype.identityMatrix=new Matrix();SVGShapeElement.prototype.buildExpressionInterface=function(){};SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],true);this.filterUniqueShapes();};/*
  5551. This method searches for multiple shapes that affect a single element and one of them is animated
  5552. */SVGShapeElement.prototype.filterUniqueShapes=function(){var i;var len=this.shapes.length;var shape;var j;var jLen=this.stylesList.length;var style;var tempShapes=[];var areAnimated=false;for(j=0;j<jLen;j+=1){style=this.stylesList[j];areAnimated=false;tempShapes.length=0;for(i=0;i<len;i+=1){shape=this.shapes[i];if(shape.styles.indexOf(style)!==-1){tempShapes.push(shape);areAnimated=shape._isAnimated||areAnimated;}}if(tempShapes.length>1&&areAnimated){this.setShapesAsAnimated(tempShapes);}}};SVGShapeElement.prototype.setShapesAsAnimated=function(shapes){var i;var len=shapes.length;for(i=0;i<len;i+=1){shapes[i].setAsAnimated();}};SVGShapeElement.prototype.createStyleElement=function(data,level){// TODO: prevent drawing of hidden styles
  5553. var elementData;var styleOb=new SVGStyleData(data,level);var pathElement=styleOb.pElem;if(data.ty==='st'){elementData=new SVGStrokeStyleData(this,data,styleOb);}else if(data.ty==='fl'){elementData=new SVGFillStyleData(this,data,styleOb);}else if(data.ty==='gf'||data.ty==='gs'){var GradientConstructor=data.ty==='gf'?SVGGradientFillStyleData:SVGGradientStrokeStyleData;elementData=new GradientConstructor(this,data,styleOb);this.globalData.defs.appendChild(elementData.gf);if(elementData.maskId){this.globalData.defs.appendChild(elementData.ms);this.globalData.defs.appendChild(elementData.of);pathElement.setAttribute('mask','url('+getLocationHref()+'#'+elementData.maskId+')');}}else if(data.ty==='no'){elementData=new SVGNoStyleData(this,data,styleOb);}if(data.ty==='st'||data.ty==='gs'){pathElement.setAttribute('stroke-linecap',lineCapEnum[data.lc||2]);pathElement.setAttribute('stroke-linejoin',lineJoinEnum[data.lj||2]);pathElement.setAttribute('fill-opacity','0');if(data.lj===1){pathElement.setAttribute('stroke-miterlimit',data.ml);}}if(data.r===2){pathElement.setAttribute('fill-rule','evenodd');}if(data.ln){pathElement.setAttribute('id',data.ln);}if(data.cl){pathElement.setAttribute('class',data.cl);}if(data.bm){pathElement.style['mix-blend-mode']=getBlendMode(data.bm);}this.stylesList.push(styleOb);this.addToAnimatedContents(data,elementData);return elementData;};SVGShapeElement.prototype.createGroupElement=function(data){var elementData=new ShapeGroupData();if(data.ln){elementData.gr.setAttribute('id',data.ln);}if(data.cl){elementData.gr.setAttribute('class',data.cl);}if(data.bm){elementData.gr.style['mix-blend-mode']=getBlendMode(data.bm);}return elementData;};SVGShapeElement.prototype.createTransformElement=function(data,container){var transformProperty=TransformPropertyFactory.getTransformProperty(this,data,this);var elementData=new SVGTransformData(transformProperty,transformProperty.o,container);this.addToAnimatedContents(data,elementData);return elementData;};SVGShapeElement.prototype.createShapeElement=function(data,ownTransformers,level){var ty=4;if(data.ty==='rc'){ty=5;}else if(data.ty==='el'){ty=6;}else if(data.ty==='sr'){ty=7;}var shapeProperty=ShapePropertyFactory.getShapeProp(this,data,ty,this);var elementData=new SVGShapeData(ownTransformers,level,shapeProperty);this.shapes.push(elementData);this.addShapeToModifiers(elementData);this.addToAnimatedContents(data,elementData);return elementData;};SVGShapeElement.prototype.addToAnimatedContents=function(data,element){var i=0;var len=this.animatedContents.length;while(i<len){if(this.animatedContents[i].element===element){return;}i+=1;}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(data),element:element,data:data});};SVGShapeElement.prototype.setElementStyles=function(elementData){var arr=elementData.styles;var j;var jLen=this.stylesList.length;for(j=0;j<jLen;j+=1){if(!this.stylesList[j].closed){arr.push(this.stylesList[j]);}}};SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=true;var i;var len=this.itemsData.length;for(i=0;i<len;i+=1){this.prevViewData[i]=this.itemsData[i];}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],true);this.filterUniqueShapes();len=this.dynamicProperties.length;for(i=0;i<len;i+=1){this.dynamicProperties[i].getValue();}this.renderModifiers();};SVGShapeElement.prototype.searchShapes=function(arr,itemsData,prevViewData,container,level,transformers,render){var ownTransformers=[].concat(transformers);var i;var len=arr.length-1;var j;var jLen;var ownStyles=[];var ownModifiers=[];var currentTransform;var modifier;var processedPos;for(i=len;i>=0;i-=1){processedPos=this.searchProcessedElement(arr[i]);if(!processedPos){arr[i]._render=render;}else{itemsData[i]=prevViewData[processedPos-1];}if(arr[i].ty==='fl'||arr[i].ty==='st'||arr[i].ty==='gf'||arr[i].ty==='gs'||arr[i].ty==='no'){if(!processedPos){itemsData[i]=this.createStyleElement(arr[i],level);}else{itemsData[i].style.closed=false;}if(arr[i]._render){if(itemsData[i].style.pElem.parentNode!==container){container.appendChild(itemsData[i].style.pElem);}}ownStyles.push(itemsData[i].style);}else if(arr[i].ty==='gr'){if(!processedPos){itemsData[i]=this.createGroupElement(arr[i]);}else{jLen=itemsData[i].it.length;for(j=0;j<jLen;j+=1){itemsData[i].prevViewData[j]=itemsData[i].it[j];}}this.searchShapes(arr[i].it,itemsData[i].it,itemsData[i].prevViewData,itemsData[i].gr,level+1,ownTransformers,render);if(arr[i]._render){if(itemsData[i].gr.parentNode!==container){container.appendChild(itemsData[i].gr);}}}else if(arr[i].ty==='tr'){if(!processedPos){itemsData[i]=this.createTransformElement(arr[i],container);}currentTransform=itemsData[i].transform;ownTransformers.push(currentTransform);}else if(arr[i].ty==='sh'||arr[i].ty==='rc'||arr[i].ty==='el'||arr[i].ty==='sr'){if(!processedPos){itemsData[i]=this.createShapeElement(arr[i],ownTransformers,level);}this.setElementStyles(itemsData[i]);}else if(arr[i].ty==='tm'||arr[i].ty==='rd'||arr[i].ty==='ms'||arr[i].ty==='pb'){if(!processedPos){modifier=ShapeModifiers.getModifier(arr[i].ty);modifier.init(this,arr[i]);itemsData[i]=modifier;this.shapeModifiers.push(modifier);}else{modifier=itemsData[i];modifier.closed=false;}ownModifiers.push(modifier);}else if(arr[i].ty==='rp'){if(!processedPos){modifier=ShapeModifiers.getModifier(arr[i].ty);itemsData[i]=modifier;modifier.init(this,arr,i,itemsData);this.shapeModifiers.push(modifier);render=false;}else{modifier=itemsData[i];modifier.closed=true;}ownModifiers.push(modifier);}this.addProcessedElement(arr[i],i+1);}len=ownStyles.length;for(i=0;i<len;i+=1){ownStyles[i].closed=true;}len=ownModifiers.length;for(i=0;i<len;i+=1){ownModifiers[i].closed=true;}};SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var i;var len=this.stylesList.length;for(i=0;i<len;i+=1){this.stylesList[i].reset();}this.renderShape();for(i=0;i<len;i+=1){if(this.stylesList[i]._mdf||this._isFirstFrame){if(this.stylesList[i].msElem){this.stylesList[i].msElem.setAttribute('d',this.stylesList[i].d);// Adding M0 0 fixes same mask bug on all browsers
  5554. this.stylesList[i].d='M0 0'+this.stylesList[i].d;}this.stylesList[i].pElem.setAttribute('d',this.stylesList[i].d||'M0 0');}}};SVGShapeElement.prototype.renderShape=function(){var i;var len=this.animatedContents.length;var animatedContent;for(i=0;i<len;i+=1){animatedContent=this.animatedContents[i];if((this._isFirstFrame||animatedContent.element._isAnimated)&&animatedContent.data!==true){animatedContent.fn(animatedContent.data,animatedContent.element,this._isFirstFrame);}}};SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement();this.shapesData=null;this.itemsData=null;};function LetterProps(o,sw,sc,fc,m,p){this.o=o;this.sw=sw;this.sc=sc;this.fc=fc;this.m=m;this.p=p;this._mdf={o:true,sw:!!sw,sc:!!sc,fc:!!fc,m:true,p:true};}LetterProps.prototype.update=function(o,sw,sc,fc,m,p){this._mdf.o=false;this._mdf.sw=false;this._mdf.sc=false;this._mdf.fc=false;this._mdf.m=false;this._mdf.p=false;var updated=false;if(this.o!==o){this.o=o;this._mdf.o=true;updated=true;}if(this.sw!==sw){this.sw=sw;this._mdf.sw=true;updated=true;}if(this.sc!==sc){this.sc=sc;this._mdf.sc=true;updated=true;}if(this.fc!==fc){this.fc=fc;this._mdf.fc=true;updated=true;}if(this.m!==m){this.m=m;this._mdf.m=true;updated=true;}if(p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])){this.p=p;this._mdf.p=true;updated=true;}return updated;};function TextProperty(elem,data){this._frameId=initialDefaultFrame;this.pv='';this.v='';this.kf=false;this._isFirstFrame=true;this._mdf=false;this.data=data;this.elem=elem;this.comp=this.elem.comp;this.keysIndex=0;this.canResize=false;this.minimumFontSize=1;this.effectsSequence=[];this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:'',fStyle:'',fWeight:'',fc:'',j:'',justifyOffset:'',l:[],lh:0,lineWidths:[],ls:'',of:'',s:'',sc:'',sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:false,strokeColorAnim:false,strokeWidthAnim:false,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:false};this.copyData(this.currentData,this.data.d.k[0].s);if(!this.searchProperty()){this.completeTextData(this.currentData);}}TextProperty.prototype.defaultBoxWidth=[0,0];TextProperty.prototype.copyData=function(obj,data){for(var s in data){if(Object.prototype.hasOwnProperty.call(data,s)){obj[s]=data[s];}}return obj;};TextProperty.prototype.setCurrentData=function(data){if(!data.__complete){this.completeTextData(data);}this.currentData=data;this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth;this._mdf=true;};TextProperty.prototype.searchProperty=function(){return this.searchKeyframes();};TextProperty.prototype.searchKeyframes=function(){this.kf=this.data.d.k.length>1;if(this.kf){this.addEffect(this.getKeyframeValue.bind(this));}return this.kf;};TextProperty.prototype.addEffect=function(effectFunction){this.effectsSequence.push(effectFunction);this.elem.addDynamicProperty(this);};TextProperty.prototype.getValue=function(_finalValue){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!_finalValue){return;}this.currentData.t=this.data.d.k[this.keysIndex].s.t;var currentValue=this.currentData;var currentIndex=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return;}this.lock=true;this._mdf=false;var i;var len=this.effectsSequence.length;var finalValue=_finalValue||this.data.d.k[this.keysIndex].s;for(i=0;i<len;i+=1){// Checking if index changed to prevent creating a new object every time the expression updates.
  5555. if(currentIndex!==this.keysIndex){finalValue=this.effectsSequence[i](finalValue,finalValue.t);}else{finalValue=this.effectsSequence[i](this.currentData,finalValue.t);}}if(currentValue!==finalValue){this.setCurrentData(finalValue);}this.v=this.currentData;this.pv=this.v;this.lock=false;this.frameId=this.elem.globalData.frameId;};TextProperty.prototype.getKeyframeValue=function(){var textKeys=this.data.d.k;var frameNum=this.elem.comp.renderedFrame;var i=0;var len=textKeys.length;while(i<=len-1){if(i===len-1||textKeys[i+1].t>frameNum){break;}i+=1;}if(this.keysIndex!==i){this.keysIndex=i;}return this.data.d.k[this.keysIndex].s;};TextProperty.prototype.buildFinalText=function(text){var charactersArray=[];var i=0;var len=text.length;var charCode;var secondCharCode;var shouldCombine=false;while(i<len){charCode=text.charCodeAt(i);if(FontManager.isCombinedCharacter(charCode)){charactersArray[charactersArray.length-1]+=text.charAt(i);}else if(charCode>=0xD800&&charCode<=0xDBFF){secondCharCode=text.charCodeAt(i+1);if(secondCharCode>=0xDC00&&secondCharCode<=0xDFFF){if(shouldCombine||FontManager.isModifier(charCode,secondCharCode)){charactersArray[charactersArray.length-1]+=text.substr(i,2);shouldCombine=false;}else{charactersArray.push(text.substr(i,2));}i+=1;}else{charactersArray.push(text.charAt(i));}}else if(charCode>0xDBFF){secondCharCode=text.charCodeAt(i+1);if(FontManager.isZeroWidthJoiner(charCode,secondCharCode)){shouldCombine=true;charactersArray[charactersArray.length-1]+=text.substr(i,2);i+=1;}else{charactersArray.push(text.charAt(i));}}else if(FontManager.isZeroWidthJoiner(charCode)){charactersArray[charactersArray.length-1]+=text.charAt(i);shouldCombine=true;}else{charactersArray.push(text.charAt(i));}i+=1;}return charactersArray;};TextProperty.prototype.completeTextData=function(documentData){documentData.__complete=true;var fontManager=this.elem.globalData.fontManager;var data=this.data;var letters=[];var i;var len;var newLineFlag;var index=0;var val;var anchorGrouping=data.m.g;var currentSize=0;var currentPos=0;var currentLine=0;var lineWidths=[];var lineWidth=0;var maxLineWidth=0;var j;var jLen;var fontData=fontManager.getFontByName(documentData.f);var charData;var cLength=0;var fontProps=getFontProperties(fontData);documentData.fWeight=fontProps.weight;documentData.fStyle=fontProps.style;documentData.finalSize=documentData.s;documentData.finalText=this.buildFinalText(documentData.t);len=documentData.finalText.length;documentData.finalLineHeight=documentData.lh;var trackingOffset=documentData.tr/1000*documentData.finalSize;var charCode;if(documentData.sz){var flag=true;var boxWidth=documentData.sz[0];var boxHeight=documentData.sz[1];var currentHeight;var finalText;while(flag){finalText=this.buildFinalText(documentData.t);currentHeight=0;lineWidth=0;len=finalText.length;trackingOffset=documentData.tr/1000*documentData.finalSize;var lastSpaceIndex=-1;for(i=0;i<len;i+=1){charCode=finalText[i].charCodeAt(0);newLineFlag=false;if(finalText[i]===' '){lastSpaceIndex=i;}else if(charCode===13||charCode===3){lineWidth=0;newLineFlag=true;currentHeight+=documentData.finalLineHeight||documentData.finalSize*1.2;}if(fontManager.chars){charData=fontManager.getCharData(finalText[i],fontData.fStyle,fontData.fFamily);cLength=newLineFlag?0:charData.w*documentData.finalSize/100;}else{// tCanvasHelper.font = documentData.s + 'px '+ fontData.fFamily;
  5556. cLength=fontManager.measureText(finalText[i],documentData.f,documentData.finalSize);}if(lineWidth+cLength>boxWidth&&finalText[i]!==' '){if(lastSpaceIndex===-1){len+=1;}else{i=lastSpaceIndex;}currentHeight+=documentData.finalLineHeight||documentData.finalSize*1.2;finalText.splice(i,lastSpaceIndex===i?1:0,'\r');// finalText = finalText.substr(0,i) + "\r" + finalText.substr(i === lastSpaceIndex ? i + 1 : i);
  5557. lastSpaceIndex=-1;lineWidth=0;}else{lineWidth+=cLength;lineWidth+=trackingOffset;}}currentHeight+=fontData.ascent*documentData.finalSize/100;if(this.canResize&&documentData.finalSize>this.minimumFontSize&&boxHeight<currentHeight){documentData.finalSize-=1;documentData.finalLineHeight=documentData.finalSize*documentData.lh/documentData.s;}else{documentData.finalText=finalText;len=documentData.finalText.length;flag=false;}}}lineWidth=-trackingOffset;cLength=0;var uncollapsedSpaces=0;var currentChar;for(i=0;i<len;i+=1){newLineFlag=false;currentChar=documentData.finalText[i];charCode=currentChar.charCodeAt(0);if(charCode===13||charCode===3){uncollapsedSpaces=0;lineWidths.push(lineWidth);maxLineWidth=lineWidth>maxLineWidth?lineWidth:maxLineWidth;lineWidth=-2*trackingOffset;val='';newLineFlag=true;currentLine+=1;}else{val=currentChar;}if(fontManager.chars){charData=fontManager.getCharData(currentChar,fontData.fStyle,fontManager.getFontByName(documentData.f).fFamily);cLength=newLineFlag?0:charData.w*documentData.finalSize/100;}else{// var charWidth = fontManager.measureText(val, documentData.f, documentData.finalSize);
  5558. // tCanvasHelper.font = documentData.finalSize + 'px '+ fontManager.getFontByName(documentData.f).fFamily;
  5559. cLength=fontManager.measureText(val,documentData.f,documentData.finalSize);}//
  5560. if(currentChar===' '){uncollapsedSpaces+=cLength+trackingOffset;}else{lineWidth+=cLength+trackingOffset+uncollapsedSpaces;uncollapsedSpaces=0;}letters.push({l:cLength,an:cLength,add:currentSize,n:newLineFlag,anIndexes:[],val:val,line:currentLine,animatorJustifyOffset:0});if(anchorGrouping==2){// eslint-disable-line eqeqeq
  5561. currentSize+=cLength;if(val===''||val===' '||i===len-1){if(val===''||val===' '){currentSize-=cLength;}while(currentPos<=i){letters[currentPos].an=currentSize;letters[currentPos].ind=index;letters[currentPos].extra=cLength;currentPos+=1;}index+=1;currentSize=0;}}else if(anchorGrouping==3){// eslint-disable-line eqeqeq
  5562. currentSize+=cLength;if(val===''||i===len-1){if(val===''){currentSize-=cLength;}while(currentPos<=i){letters[currentPos].an=currentSize;letters[currentPos].ind=index;letters[currentPos].extra=cLength;currentPos+=1;}currentSize=0;index+=1;}}else{letters[index].ind=index;letters[index].extra=0;index+=1;}}documentData.l=letters;maxLineWidth=lineWidth>maxLineWidth?lineWidth:maxLineWidth;lineWidths.push(lineWidth);if(documentData.sz){documentData.boxWidth=documentData.sz[0];documentData.justifyOffset=0;}else{documentData.boxWidth=maxLineWidth;switch(documentData.j){case 1:documentData.justifyOffset=-documentData.boxWidth;break;case 2:documentData.justifyOffset=-documentData.boxWidth/2;break;default:documentData.justifyOffset=0;}}documentData.lineWidths=lineWidths;var animators=data.a;var animatorData;var letterData;jLen=animators.length;var based;var ind;var indexes=[];for(j=0;j<jLen;j+=1){animatorData=animators[j];if(animatorData.a.sc){documentData.strokeColorAnim=true;}if(animatorData.a.sw){documentData.strokeWidthAnim=true;}if(animatorData.a.fc||animatorData.a.fh||animatorData.a.fs||animatorData.a.fb){documentData.fillColorAnim=true;}ind=0;based=animatorData.s.b;for(i=0;i<len;i+=1){letterData=letters[i];letterData.anIndexes[j]=ind;if(based==1&&letterData.val!==''||based==2&&letterData.val!==''&&letterData.val!==' '||based==3&&(letterData.n||letterData.val==' '||i==len-1)||based==4&&(letterData.n||i==len-1)){// eslint-disable-line eqeqeq
  5563. if(animatorData.s.rn===1){indexes.push(ind);}ind+=1;}}data.a[j].s.totalChars=ind;var currentInd=-1;var newInd;if(animatorData.s.rn===1){for(i=0;i<len;i+=1){letterData=letters[i];if(currentInd!=letterData.anIndexes[j]){// eslint-disable-line eqeqeq
  5564. currentInd=letterData.anIndexes[j];newInd=indexes.splice(Math.floor(Math.random()*indexes.length),1)[0];}letterData.anIndexes[j]=newInd;}}}documentData.yOffset=documentData.finalLineHeight||documentData.finalSize*1.2;documentData.ls=documentData.ls||0;documentData.ascent=fontData.ascent*documentData.finalSize/100;};TextProperty.prototype.updateDocumentData=function(newData,index){index=index===undefined?this.keysIndex:index;var dData=this.copyData({},this.data.d.k[index].s);dData=this.copyData(dData,newData);this.data.d.k[index].s=dData;this.recalculate(index);this.elem.addDynamicProperty(this);};TextProperty.prototype.recalculate=function(index){var dData=this.data.d.k[index].s;dData.__complete=false;this.keysIndex=0;this._isFirstFrame=true;this.getValue(dData);};TextProperty.prototype.canResizeFont=function(_canResize){this.canResize=_canResize;this.recalculate(this.keysIndex);this.elem.addDynamicProperty(this);};TextProperty.prototype.setMinimumFontSize=function(_fontValue){this.minimumFontSize=Math.floor(_fontValue)||1;this.recalculate(this.keysIndex);this.elem.addDynamicProperty(this);};var TextSelectorProp=function(){var max=Math.max;var min=Math.min;var floor=Math.floor;function TextSelectorPropFactory(elem,data){this._currentTextLength=-1;this.k=false;this.data=data;this.elem=elem;this.comp=elem.comp;this.finalS=0;this.finalE=0;this.initDynamicPropertyContainer(elem);this.s=PropertyFactory.getProp(elem,data.s||{k:0},0,0,this);if('e'in data){this.e=PropertyFactory.getProp(elem,data.e,0,0,this);}else{this.e={v:100};}this.o=PropertyFactory.getProp(elem,data.o||{k:0},0,0,this);this.xe=PropertyFactory.getProp(elem,data.xe||{k:0},0,0,this);this.ne=PropertyFactory.getProp(elem,data.ne||{k:0},0,0,this);this.sm=PropertyFactory.getProp(elem,data.sm||{k:100},0,0,this);this.a=PropertyFactory.getProp(elem,data.a,0,0.01,this);if(!this.dynamicProperties.length){this.getValue();}}TextSelectorPropFactory.prototype={getMult:function getMult(ind){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length){this.getValue();}var x1=0;var y1=0;var x2=1;var y2=1;if(this.ne.v>0){x1=this.ne.v/100.0;}else{y1=-this.ne.v/100.0;}if(this.xe.v>0){x2=1.0-this.xe.v/100.0;}else{y2=1.0+this.xe.v/100.0;}var easer=BezierFactory.getBezierEasing(x1,y1,x2,y2).get;var mult=0;var s=this.finalS;var e=this.finalE;var type=this.data.sh;if(type===2){if(e===s){mult=ind>=e?1:0;}else{mult=max(0,min(0.5/(e-s)+(ind-s)/(e-s),1));}mult=easer(mult);}else if(type===3){if(e===s){mult=ind>=e?0:1;}else{mult=1-max(0,min(0.5/(e-s)+(ind-s)/(e-s),1));}mult=easer(mult);}else if(type===4){if(e===s){mult=0;}else{mult=max(0,min(0.5/(e-s)+(ind-s)/(e-s),1));if(mult<0.5){mult*=2;}else{mult=1-2*(mult-0.5);}}mult=easer(mult);}else if(type===5){if(e===s){mult=0;}else{var tot=e-s;/* ind += 0.5;
  5565. mult = -4/(tot*tot)*(ind*ind)+(4/tot)*ind; */ind=min(max(0,ind+0.5-s),e-s);var x=-tot/2+ind;var a=tot/2;mult=Math.sqrt(1-x*x/(a*a));}mult=easer(mult);}else if(type===6){if(e===s){mult=0;}else{ind=min(max(0,ind+0.5-s),e-s);mult=(1+Math.cos(Math.PI+Math.PI*2*ind/(e-s)))/2;// eslint-disable-line
  5566. }mult=easer(mult);}else{if(ind>=floor(s)){if(ind-s<0){mult=max(0,min(min(e,1)-(s-ind),1));}else{mult=max(0,min(e-ind,1));}}mult=easer(mult);}// Smoothness implementation.
  5567. // The smoothness represents a reduced range of the original [0; 1] range.
  5568. // if smoothness is 25%, the new range will be [0.375; 0.625]
  5569. // Steps are:
  5570. // - find the lower value of the new range (threshold)
  5571. // - if multiplier is smaller than that value, floor it to 0
  5572. // - if it is larger,
  5573. // - subtract the threshold
  5574. // - divide it by the smoothness (this will return the range to [0; 1])
  5575. // Note: If it doesn't work on some scenarios, consider applying it before the easer.
  5576. if(this.sm.v!==100){var smoothness=this.sm.v*0.01;if(smoothness===0){smoothness=0.00000001;}var threshold=0.5-smoothness*0.5;if(mult<threshold){mult=0;}else{mult=(mult-threshold)/smoothness;if(mult>1){mult=1;}}}return mult*this.a.v;},getValue:function getValue(newCharsFlag){this.iterateDynamicProperties();this._mdf=newCharsFlag||this._mdf;this._currentTextLength=this.elem.textProperty.currentData.l.length||0;if(newCharsFlag&&this.data.r===2){this.e.v=this._currentTextLength;}var divisor=this.data.r===2?1:100/this.data.totalChars;var o=this.o.v/divisor;var s=this.s.v/divisor+o;var e=this.e.v/divisor+o;if(s>e){var _s=s;s=e;e=_s;}this.finalS=s;this.finalE=e;}};extendPrototype([DynamicPropertyContainer],TextSelectorPropFactory);function getTextSelectorProp(elem,data,arr){return new TextSelectorPropFactory(elem,data);}return{getTextSelectorProp:getTextSelectorProp};}();function TextAnimatorDataProperty(elem,animatorProps,container){var defaultData={propType:false};var getProp=PropertyFactory.getProp;var textAnimatorAnimatables=animatorProps.a;this.a={r:textAnimatorAnimatables.r?getProp(elem,textAnimatorAnimatables.r,0,degToRads,container):defaultData,rx:textAnimatorAnimatables.rx?getProp(elem,textAnimatorAnimatables.rx,0,degToRads,container):defaultData,ry:textAnimatorAnimatables.ry?getProp(elem,textAnimatorAnimatables.ry,0,degToRads,container):defaultData,sk:textAnimatorAnimatables.sk?getProp(elem,textAnimatorAnimatables.sk,0,degToRads,container):defaultData,sa:textAnimatorAnimatables.sa?getProp(elem,textAnimatorAnimatables.sa,0,degToRads,container):defaultData,s:textAnimatorAnimatables.s?getProp(elem,textAnimatorAnimatables.s,1,0.01,container):defaultData,a:textAnimatorAnimatables.a?getProp(elem,textAnimatorAnimatables.a,1,0,container):defaultData,o:textAnimatorAnimatables.o?getProp(elem,textAnimatorAnimatables.o,0,0.01,container):defaultData,p:textAnimatorAnimatables.p?getProp(elem,textAnimatorAnimatables.p,1,0,container):defaultData,sw:textAnimatorAnimatables.sw?getProp(elem,textAnimatorAnimatables.sw,0,0,container):defaultData,sc:textAnimatorAnimatables.sc?getProp(elem,textAnimatorAnimatables.sc,1,0,container):defaultData,fc:textAnimatorAnimatables.fc?getProp(elem,textAnimatorAnimatables.fc,1,0,container):defaultData,fh:textAnimatorAnimatables.fh?getProp(elem,textAnimatorAnimatables.fh,0,0,container):defaultData,fs:textAnimatorAnimatables.fs?getProp(elem,textAnimatorAnimatables.fs,0,0.01,container):defaultData,fb:textAnimatorAnimatables.fb?getProp(elem,textAnimatorAnimatables.fb,0,0.01,container):defaultData,t:textAnimatorAnimatables.t?getProp(elem,textAnimatorAnimatables.t,0,0,container):defaultData};this.s=TextSelectorProp.getTextSelectorProp(elem,animatorProps.s,container);this.s.t=animatorProps.s.t;}function TextAnimatorProperty(textData,renderType,elem){this._isFirstFrame=true;this._hasMaskedPath=false;this._frameId=-1;this._textData=textData;this._renderType=renderType;this._elem=elem;this._animatorsData=createSizedArray(this._textData.a.length);this._pathData={};this._moreOptions={alignment:{}};this.renderedLetters=[];this.lettersChangedFlag=false;this.initDynamicPropertyContainer(elem);}TextAnimatorProperty.prototype.searchProperties=function(){var i;var len=this._textData.a.length;var animatorProps;var getProp=PropertyFactory.getProp;for(i=0;i<len;i+=1){animatorProps=this._textData.a[i];this._animatorsData[i]=new TextAnimatorDataProperty(this._elem,animatorProps,this);}if(this._textData.p&&'m'in this._textData.p){this._pathData={a:getProp(this._elem,this._textData.p.a,0,0,this),f:getProp(this._elem,this._textData.p.f,0,0,this),l:getProp(this._elem,this._textData.p.l,0,0,this),r:getProp(this._elem,this._textData.p.r,0,0,this),p:getProp(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)};this._hasMaskedPath=true;}else{this._hasMaskedPath=false;}this._moreOptions.alignment=getProp(this._elem,this._textData.m.a,1,0,this);};TextAnimatorProperty.prototype.getMeasures=function(documentData,lettersChangedFlag){this.lettersChangedFlag=lettersChangedFlag;if(!this._mdf&&!this._isFirstFrame&&!lettersChangedFlag&&(!this._hasMaskedPath||!this._pathData.m._mdf)){return;}this._isFirstFrame=false;var alignment=this._moreOptions.alignment.v;var animators=this._animatorsData;var textData=this._textData;var matrixHelper=this.mHelper;var renderType=this._renderType;var renderedLettersCount=this.renderedLetters.length;var xPos;var yPos;var i;var len;var letters=documentData.l;var pathInfo;var currentLength;var currentPoint;var segmentLength;var flag;var pointInd;var segmentInd;var prevPoint;var points;var segments;var partialLength;var totalLength;var perc;var tanAngle;var mask;if(this._hasMaskedPath){mask=this._pathData.m;if(!this._pathData.n||this._pathData._mdf){var paths=mask.v;if(this._pathData.r.v){paths=paths.reverse();}// TODO: release bezier data cached from previous pathInfo: this._pathData.pi
  5577. pathInfo={tLength:0,segments:[]};len=paths._length-1;var bezierData;totalLength=0;for(i=0;i<len;i+=1){bezierData=bez.buildBezierData(paths.v[i],paths.v[i+1],[paths.o[i][0]-paths.v[i][0],paths.o[i][1]-paths.v[i][1]],[paths.i[i+1][0]-paths.v[i+1][0],paths.i[i+1][1]-paths.v[i+1][1]]);pathInfo.tLength+=bezierData.segmentLength;pathInfo.segments.push(bezierData);totalLength+=bezierData.segmentLength;}i=len;if(mask.v.c){bezierData=bez.buildBezierData(paths.v[i],paths.v[0],[paths.o[i][0]-paths.v[i][0],paths.o[i][1]-paths.v[i][1]],[paths.i[0][0]-paths.v[0][0],paths.i[0][1]-paths.v[0][1]]);pathInfo.tLength+=bezierData.segmentLength;pathInfo.segments.push(bezierData);totalLength+=bezierData.segmentLength;}this._pathData.pi=pathInfo;}pathInfo=this._pathData.pi;currentLength=this._pathData.f.v;segmentInd=0;pointInd=1;segmentLength=0;flag=true;segments=pathInfo.segments;if(currentLength<0&&mask.v.c){if(pathInfo.tLength<Math.abs(currentLength)){currentLength=-Math.abs(currentLength)%pathInfo.tLength;}segmentInd=segments.length-1;points=segments[segmentInd].points;pointInd=points.length-1;while(currentLength<0){currentLength+=points[pointInd].partialLength;pointInd-=1;if(pointInd<0){segmentInd-=1;points=segments[segmentInd].points;pointInd=points.length-1;}}}points=segments[segmentInd].points;prevPoint=points[pointInd-1];currentPoint=points[pointInd];partialLength=currentPoint.partialLength;}len=letters.length;xPos=0;yPos=0;var yOff=documentData.finalSize*1.2*0.714;var firstLine=true;var animatorProps;var animatorSelector;var j;var jLen;var letterValue;jLen=animators.length;var mult;var ind=-1;var offf;var xPathPos;var yPathPos;var initPathPos=currentLength;var initSegmentInd=segmentInd;var initPointInd=pointInd;var currentLine=-1;var elemOpacity;var sc;var sw;var fc;var k;var letterSw;var letterSc;var letterFc;var letterM='';var letterP=this.defaultPropsArray;var letterO;//
  5578. if(documentData.j===2||documentData.j===1){var animatorJustifyOffset=0;var animatorFirstCharOffset=0;var justifyOffsetMult=documentData.j===2?-0.5:-1;var lastIndex=0;var isNewLine=true;for(i=0;i<len;i+=1){if(letters[i].n){if(animatorJustifyOffset){animatorJustifyOffset+=animatorFirstCharOffset;}while(lastIndex<i){letters[lastIndex].animatorJustifyOffset=animatorJustifyOffset;lastIndex+=1;}animatorJustifyOffset=0;isNewLine=true;}else{for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;if(animatorProps.t.propType){if(isNewLine&&documentData.j===2){animatorFirstCharOffset+=animatorProps.t.v*justifyOffsetMult;}animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(mult.length){animatorJustifyOffset+=animatorProps.t.v*mult[0]*justifyOffsetMult;}else{animatorJustifyOffset+=animatorProps.t.v*mult*justifyOffsetMult;}}}isNewLine=false;}}if(animatorJustifyOffset){animatorJustifyOffset+=animatorFirstCharOffset;}while(lastIndex<i){letters[lastIndex].animatorJustifyOffset=animatorJustifyOffset;lastIndex+=1;}}//
  5579. for(i=0;i<len;i+=1){matrixHelper.reset();elemOpacity=1;if(letters[i].n){xPos=0;yPos+=documentData.yOffset;yPos+=firstLine?1:0;currentLength=initPathPos;firstLine=false;if(this._hasMaskedPath){segmentInd=initSegmentInd;pointInd=initPointInd;points=segments[segmentInd].points;prevPoint=points[pointInd-1];currentPoint=points[pointInd];partialLength=currentPoint.partialLength;segmentLength=0;}letterM='';letterFc='';letterSw='';letterO='';letterP=this.defaultPropsArray;}else{if(this._hasMaskedPath){if(currentLine!==letters[i].line){switch(documentData.j){case 1:currentLength+=totalLength-documentData.lineWidths[letters[i].line];break;case 2:currentLength+=(totalLength-documentData.lineWidths[letters[i].line])/2;break;}currentLine=letters[i].line;}if(ind!==letters[i].ind){if(letters[ind]){currentLength+=letters[ind].extra;}currentLength+=letters[i].an/2;ind=letters[i].ind;}currentLength+=alignment[0]*letters[i].an*0.005;var animatorOffset=0;for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;if(animatorProps.p.propType){animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(mult.length){animatorOffset+=animatorProps.p.v[0]*mult[0];}else{animatorOffset+=animatorProps.p.v[0]*mult;}}if(animatorProps.a.propType){animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(mult.length){animatorOffset+=animatorProps.a.v[0]*mult[0];}else{animatorOffset+=animatorProps.a.v[0]*mult;}}}flag=true;// Force alignment only works with a single line for now
  5580. if(this._pathData.a.v){currentLength=letters[0].an*0.5+(totalLength-this._pathData.f.v-letters[0].an*0.5-letters[letters.length-1].an*0.5)*ind/(len-1);currentLength+=this._pathData.f.v;}while(flag){if(segmentLength+partialLength>=currentLength+animatorOffset||!points){perc=(currentLength+animatorOffset-segmentLength)/currentPoint.partialLength;xPathPos=prevPoint.point[0]+(currentPoint.point[0]-prevPoint.point[0])*perc;yPathPos=prevPoint.point[1]+(currentPoint.point[1]-prevPoint.point[1])*perc;matrixHelper.translate(-alignment[0]*letters[i].an*0.005,-(alignment[1]*yOff)*0.01);flag=false;}else if(points){segmentLength+=currentPoint.partialLength;pointInd+=1;if(pointInd>=points.length){pointInd=0;segmentInd+=1;if(!segments[segmentInd]){if(mask.v.c){pointInd=0;segmentInd=0;points=segments[segmentInd].points;}else{segmentLength-=currentPoint.partialLength;points=null;}}else{points=segments[segmentInd].points;}}if(points){prevPoint=currentPoint;currentPoint=points[pointInd];partialLength=currentPoint.partialLength;}}}offf=letters[i].an/2-letters[i].add;matrixHelper.translate(-offf,0,0);}else{offf=letters[i].an/2-letters[i].add;matrixHelper.translate(-offf,0,0);// Grouping alignment
  5581. matrixHelper.translate(-alignment[0]*letters[i].an*0.005,-alignment[1]*yOff*0.01,0);}for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;if(animatorProps.t.propType){animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);// This condition is to prevent applying tracking to first character in each line. Might be better to use a boolean "isNewLine"
  5582. if(xPos!==0||documentData.j!==0){if(this._hasMaskedPath){if(mult.length){currentLength+=animatorProps.t.v*mult[0];}else{currentLength+=animatorProps.t.v*mult;}}else if(mult.length){xPos+=animatorProps.t.v*mult[0];}else{xPos+=animatorProps.t.v*mult;}}}}if(documentData.strokeWidthAnim){sw=documentData.sw||0;}if(documentData.strokeColorAnim){if(documentData.sc){sc=[documentData.sc[0],documentData.sc[1],documentData.sc[2]];}else{sc=[0,0,0];}}if(documentData.fillColorAnim&&documentData.fc){fc=[documentData.fc[0],documentData.fc[1],documentData.fc[2]];}for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;if(animatorProps.a.propType){animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(mult.length){matrixHelper.translate(-animatorProps.a.v[0]*mult[0],-animatorProps.a.v[1]*mult[1],animatorProps.a.v[2]*mult[2]);}else{matrixHelper.translate(-animatorProps.a.v[0]*mult,-animatorProps.a.v[1]*mult,animatorProps.a.v[2]*mult);}}}for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;if(animatorProps.s.propType){animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(mult.length){matrixHelper.scale(1+(animatorProps.s.v[0]-1)*mult[0],1+(animatorProps.s.v[1]-1)*mult[1],1);}else{matrixHelper.scale(1+(animatorProps.s.v[0]-1)*mult,1+(animatorProps.s.v[1]-1)*mult,1);}}}for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(animatorProps.sk.propType){if(mult.length){matrixHelper.skewFromAxis(-animatorProps.sk.v*mult[0],animatorProps.sa.v*mult[1]);}else{matrixHelper.skewFromAxis(-animatorProps.sk.v*mult,animatorProps.sa.v*mult);}}if(animatorProps.r.propType){if(mult.length){matrixHelper.rotateZ(-animatorProps.r.v*mult[2]);}else{matrixHelper.rotateZ(-animatorProps.r.v*mult);}}if(animatorProps.ry.propType){if(mult.length){matrixHelper.rotateY(animatorProps.ry.v*mult[1]);}else{matrixHelper.rotateY(animatorProps.ry.v*mult);}}if(animatorProps.rx.propType){if(mult.length){matrixHelper.rotateX(animatorProps.rx.v*mult[0]);}else{matrixHelper.rotateX(animatorProps.rx.v*mult);}}if(animatorProps.o.propType){if(mult.length){elemOpacity+=(animatorProps.o.v*mult[0]-elemOpacity)*mult[0];}else{elemOpacity+=(animatorProps.o.v*mult-elemOpacity)*mult;}}if(documentData.strokeWidthAnim&&animatorProps.sw.propType){if(mult.length){sw+=animatorProps.sw.v*mult[0];}else{sw+=animatorProps.sw.v*mult;}}if(documentData.strokeColorAnim&&animatorProps.sc.propType){for(k=0;k<3;k+=1){if(mult.length){sc[k]+=(animatorProps.sc.v[k]-sc[k])*mult[0];}else{sc[k]+=(animatorProps.sc.v[k]-sc[k])*mult;}}}if(documentData.fillColorAnim&&documentData.fc){if(animatorProps.fc.propType){for(k=0;k<3;k+=1){if(mult.length){fc[k]+=(animatorProps.fc.v[k]-fc[k])*mult[0];}else{fc[k]+=(animatorProps.fc.v[k]-fc[k])*mult;}}}if(animatorProps.fh.propType){if(mult.length){fc=addHueToRGB(fc,animatorProps.fh.v*mult[0]);}else{fc=addHueToRGB(fc,animatorProps.fh.v*mult);}}if(animatorProps.fs.propType){if(mult.length){fc=addSaturationToRGB(fc,animatorProps.fs.v*mult[0]);}else{fc=addSaturationToRGB(fc,animatorProps.fs.v*mult);}}if(animatorProps.fb.propType){if(mult.length){fc=addBrightnessToRGB(fc,animatorProps.fb.v*mult[0]);}else{fc=addBrightnessToRGB(fc,animatorProps.fb.v*mult);}}}}for(j=0;j<jLen;j+=1){animatorProps=animators[j].a;if(animatorProps.p.propType){animatorSelector=animators[j].s;mult=animatorSelector.getMult(letters[i].anIndexes[j],textData.a[j].s.totalChars);if(this._hasMaskedPath){if(mult.length){matrixHelper.translate(0,animatorProps.p.v[1]*mult[0],-animatorProps.p.v[2]*mult[1]);}else{matrixHelper.translate(0,animatorProps.p.v[1]*mult,-animatorProps.p.v[2]*mult);}}else if(mult.length){matrixHelper.translate(animatorProps.p.v[0]*mult[0],animatorProps.p.v[1]*mult[1],-animatorProps.p.v[2]*mult[2]);}else{matrixHelper.translate(animatorProps.p.v[0]*mult,animatorProps.p.v[1]*mult,-animatorProps.p.v[2]*mult);}}}if(documentData.strokeWidthAnim){letterSw=sw<0?0:sw;}if(documentData.strokeColorAnim){letterSc='rgb('+Math.round(sc[0]*255)+','+Math.round(sc[1]*255)+','+Math.round(sc[2]*255)+')';}if(documentData.fillColorAnim&&documentData.fc){letterFc='rgb('+Math.round(fc[0]*255)+','+Math.round(fc[1]*255)+','+Math.round(fc[2]*255)+')';}if(this._hasMaskedPath){matrixHelper.translate(0,-documentData.ls);matrixHelper.translate(0,alignment[1]*yOff*0.01+yPos,0);if(this._pathData.p.v){tanAngle=(currentPoint.point[1]-prevPoint.point[1])/(currentPoint.point[0]-prevPoint.point[0]);var rot=Math.atan(tanAngle)*180/Math.PI;if(currentPoint.point[0]<prevPoint.point[0]){rot+=180;}matrixHelper.rotate(-rot*Math.PI/180);}matrixHelper.translate(xPathPos,yPathPos,0);currentLength-=alignment[0]*letters[i].an*0.005;if(letters[i+1]&&ind!==letters[i+1].ind){currentLength+=letters[i].an/2;currentLength+=documentData.tr*0.001*documentData.finalSize;}}else{matrixHelper.translate(xPos,yPos,0);if(documentData.ps){// matrixHelper.translate(documentData.ps[0],documentData.ps[1],0);
  5583. matrixHelper.translate(documentData.ps[0],documentData.ps[1]+documentData.ascent,0);}switch(documentData.j){case 1:matrixHelper.translate(letters[i].animatorJustifyOffset+documentData.justifyOffset+(documentData.boxWidth-documentData.lineWidths[letters[i].line]),0,0);break;case 2:matrixHelper.translate(letters[i].animatorJustifyOffset+documentData.justifyOffset+(documentData.boxWidth-documentData.lineWidths[letters[i].line])/2,0,0);break;}matrixHelper.translate(0,-documentData.ls);matrixHelper.translate(offf,0,0);matrixHelper.translate(alignment[0]*letters[i].an*0.005,alignment[1]*yOff*0.01,0);xPos+=letters[i].l+documentData.tr*0.001*documentData.finalSize;}if(renderType==='html'){letterM=matrixHelper.toCSS();}else if(renderType==='svg'){letterM=matrixHelper.to2dCSS();}else{letterP=[matrixHelper.props[0],matrixHelper.props[1],matrixHelper.props[2],matrixHelper.props[3],matrixHelper.props[4],matrixHelper.props[5],matrixHelper.props[6],matrixHelper.props[7],matrixHelper.props[8],matrixHelper.props[9],matrixHelper.props[10],matrixHelper.props[11],matrixHelper.props[12],matrixHelper.props[13],matrixHelper.props[14],matrixHelper.props[15]];}letterO=elemOpacity;}if(renderedLettersCount<=i){letterValue=new LetterProps(letterO,letterSw,letterSc,letterFc,letterM,letterP);this.renderedLetters.push(letterValue);renderedLettersCount+=1;this.lettersChangedFlag=true;}else{letterValue=this.renderedLetters[i];this.lettersChangedFlag=letterValue.update(letterO,letterSw,letterSc,letterFc,letterM,letterP)||this.lettersChangedFlag;}}};TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId){return;}this._frameId=this._elem.globalData.frameId;this.iterateDynamicProperties();};TextAnimatorProperty.prototype.mHelper=new Matrix();TextAnimatorProperty.prototype.defaultPropsArray=[];extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(data,globalData,comp){this.lettersChangedFlag=true;this.initFrame();this.initBaseData(data,globalData,comp);this.textProperty=new TextProperty(this,data.t,this.dynamicProperties);this.textAnimator=new TextAnimatorProperty(data.t,this.renderType,this);this.initTransform(data,globalData,comp);this.initHierarchy();this.initRenderable();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();this.createContent();this.hide();this.textAnimator.searchProperties(this.dynamicProperties);};ITextElement.prototype.prepareFrame=function(num){this._mdf=false;this.prepareRenderableFrame(num);this.prepareProperties(num,this.isInRange);if(this.textProperty._mdf||this.textProperty._isFirstFrame){this.buildNewText();this.textProperty._isFirstFrame=false;this.textProperty._mdf=false;}};ITextElement.prototype.createPathShape=function(matrixHelper,shapes){var j;var jLen=shapes.length;var pathNodes;var shapeStr='';for(j=0;j<jLen;j+=1){if(shapes[j].ty==='sh'){pathNodes=shapes[j].ks.k;shapeStr+=buildShapeString(pathNodes,pathNodes.i.length,true,matrixHelper);}}return shapeStr;};ITextElement.prototype.updateDocumentData=function(newData,index){this.textProperty.updateDocumentData(newData,index);};ITextElement.prototype.canResizeFont=function(_canResize){this.textProperty.canResizeFont(_canResize);};ITextElement.prototype.setMinimumFontSize=function(_fontSize){this.textProperty.setMinimumFontSize(_fontSize);};ITextElement.prototype.applyTextPropertiesToMatrix=function(documentData,matrixHelper,lineNumber,xPos,yPos){if(documentData.ps){matrixHelper.translate(documentData.ps[0],documentData.ps[1]+documentData.ascent,0);}matrixHelper.translate(0,-documentData.ls,0);switch(documentData.j){case 1:matrixHelper.translate(documentData.justifyOffset+(documentData.boxWidth-documentData.lineWidths[lineNumber]),0,0);break;case 2:matrixHelper.translate(documentData.justifyOffset+(documentData.boxWidth-documentData.lineWidths[lineNumber])/2,0,0);break;}matrixHelper.translate(xPos,yPos,0);};ITextElement.prototype.buildColor=function(colorData){return'rgb('+Math.round(colorData[0]*255)+','+Math.round(colorData[1]*255)+','+Math.round(colorData[2]*255)+')';};ITextElement.prototype.emptyProp=new LetterProps();ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(data,globalData,comp){this.textSpans=[];this.renderType='svg';this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement);SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars){this.textContainer=createNS('text');}};SVGTextLottieElement.prototype.buildTextContents=function(textArray){var i=0;var len=textArray.length;var textContents=[];var currentTextContent='';while(i<len){if(textArray[i]===String.fromCharCode(13)||textArray[i]===String.fromCharCode(3)){textContents.push(currentTextContent);currentTextContent='';}else{currentTextContent+=textArray[i];}i+=1;}textContents.push(currentTextContent);return textContents;};SVGTextLottieElement.prototype.buildShapeData=function(data,scale){// data should probably be cloned to apply scale separately to each instance of a text on different layers
  5584. // but since text internal content gets only rendered once and then it's never rerendered,
  5585. // it's probably safe not to clone data and reuse always the same instance even if the object is mutated.
  5586. // Avoiding cloning is preferred since cloning each character shape data is expensive
  5587. if(data.shapes&&data.shapes.length){var shape=data.shapes[0];if(shape.it){var shapeItem=shape.it[shape.it.length-1];if(shapeItem.s){shapeItem.s.k[0]=scale;shapeItem.s.k[1]=scale;}}}return data;};SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var i;var len;var documentData=this.textProperty.currentData;this.renderedLetters=createSizedArray(documentData?documentData.l.length:0);if(documentData.fc){this.layerElement.setAttribute('fill',this.buildColor(documentData.fc));}else{this.layerElement.setAttribute('fill','rgba(0,0,0,0)');}if(documentData.sc){this.layerElement.setAttribute('stroke',this.buildColor(documentData.sc));this.layerElement.setAttribute('stroke-width',documentData.sw);}this.layerElement.setAttribute('font-size',documentData.finalSize);var fontData=this.globalData.fontManager.getFontByName(documentData.f);if(fontData.fClass){this.layerElement.setAttribute('class',fontData.fClass);}else{this.layerElement.setAttribute('font-family',fontData.fFamily);var fWeight=documentData.fWeight;var fStyle=documentData.fStyle;this.layerElement.setAttribute('font-style',fStyle);this.layerElement.setAttribute('font-weight',fWeight);}this.layerElement.setAttribute('aria-label',documentData.t);var letters=documentData.l||[];var usesGlyphs=!!this.globalData.fontManager.chars;len=letters.length;var tSpan;var matrixHelper=this.mHelper;var shapeStr='';var singleShape=this.data.singleShape;var xPos=0;var yPos=0;var firstLine=true;var trackingOffset=documentData.tr*0.001*documentData.finalSize;if(singleShape&&!usesGlyphs&&!documentData.sz){var tElement=this.textContainer;var justify='start';switch(documentData.j){case 1:justify='end';break;case 2:justify='middle';break;default:justify='start';break;}tElement.setAttribute('text-anchor',justify);tElement.setAttribute('letter-spacing',trackingOffset);var textContent=this.buildTextContents(documentData.finalText);len=textContent.length;yPos=documentData.ps?documentData.ps[1]+documentData.ascent:0;for(i=0;i<len;i+=1){tSpan=this.textSpans[i].span||createNS('tspan');tSpan.textContent=textContent[i];tSpan.setAttribute('x',0);tSpan.setAttribute('y',yPos);tSpan.style.display='inherit';tElement.appendChild(tSpan);if(!this.textSpans[i]){this.textSpans[i]={span:null,glyph:null};}this.textSpans[i].span=tSpan;yPos+=documentData.finalLineHeight;}this.layerElement.appendChild(tElement);}else{var cachedSpansLength=this.textSpans.length;var charData;for(i=0;i<len;i+=1){if(!this.textSpans[i]){this.textSpans[i]={span:null,childSpan:null,glyph:null};}if(!usesGlyphs||!singleShape||i===0){tSpan=cachedSpansLength>i?this.textSpans[i].span:createNS(usesGlyphs?'g':'text');if(cachedSpansLength<=i){tSpan.setAttribute('stroke-linecap','butt');tSpan.setAttribute('stroke-linejoin','round');tSpan.setAttribute('stroke-miterlimit','4');this.textSpans[i].span=tSpan;if(usesGlyphs){var childSpan=createNS('g');tSpan.appendChild(childSpan);this.textSpans[i].childSpan=childSpan;}this.textSpans[i].span=tSpan;this.layerElement.appendChild(tSpan);}tSpan.style.display='inherit';}matrixHelper.reset();if(singleShape){if(letters[i].n){xPos=-trackingOffset;yPos+=documentData.yOffset;yPos+=firstLine?1:0;firstLine=false;}this.applyTextPropertiesToMatrix(documentData,matrixHelper,letters[i].line,xPos,yPos);xPos+=letters[i].l||0;// xPos += letters[i].val === ' ' ? 0 : trackingOffset;
  5588. xPos+=trackingOffset;}if(usesGlyphs){charData=this.globalData.fontManager.getCharData(documentData.finalText[i],fontData.fStyle,this.globalData.fontManager.getFontByName(documentData.f).fFamily);var glyphElement;// t === 1 means the character has been replaced with an animated shaped
  5589. if(charData.t===1){glyphElement=new SVGCompElement(charData.data,this.globalData,this);}else{var data=emptyShapeData;if(charData.data&&charData.data.shapes){data=this.buildShapeData(charData.data,documentData.finalSize);}glyphElement=new SVGShapeElement(data,this.globalData,this);}if(this.textSpans[i].glyph){var glyph=this.textSpans[i].glyph;this.textSpans[i].childSpan.removeChild(glyph.layerElement);glyph.destroy();}this.textSpans[i].glyph=glyphElement;glyphElement._debug=true;glyphElement.prepareFrame(0);glyphElement.renderFrame();this.textSpans[i].childSpan.appendChild(glyphElement.layerElement);// when using animated shapes, the layer will be scaled instead of replacing the internal scale
  5590. // this might have issues with strokes and might need a different solution
  5591. if(charData.t===1){this.textSpans[i].childSpan.setAttribute('transform','scale('+documentData.finalSize/100+','+documentData.finalSize/100+')');}}else{if(singleShape){tSpan.setAttribute('transform','translate('+matrixHelper.props[12]+','+matrixHelper.props[13]+')');}tSpan.textContent=letters[i].val;tSpan.setAttributeNS('http://www.w3.org/XML/1998/namespace','xml:space','preserve');}//
  5592. }if(singleShape&&tSpan){tSpan.setAttribute('d',shapeStr);}}while(i<this.textSpans.length){this.textSpans[i].span.style.display='none';i+=1;}this._sizeChanged=true;};SVGTextLottieElement.prototype.sourceRectAtTime=function(){this.prepareFrame(this.comp.renderedFrame-this.data.st);this.renderInnerContent();if(this._sizeChanged){this._sizeChanged=false;var textBox=this.layerElement.getBBox();this.bbox={top:textBox.y,left:textBox.x,width:textBox.width,height:textBox.height};}return this.bbox;};SVGTextLottieElement.prototype.getValue=function(){var i;var len=this.textSpans.length;var glyphElement;this.renderedFrame=this.comp.renderedFrame;for(i=0;i<len;i+=1){glyphElement=this.textSpans[i].glyph;if(glyphElement){glyphElement.prepareFrame(this.comp.renderedFrame-this.data.st);if(glyphElement._mdf){this._mdf=true;}}}};SVGTextLottieElement.prototype.renderInnerContent=function(){if(!this.data.singleShape||this._mdf){this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);if(this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=true;var i;var len;var renderedLetters=this.textAnimator.renderedLetters;var letters=this.textProperty.currentData.l;len=letters.length;var renderedLetter;var textSpan;var glyphElement;for(i=0;i<len;i+=1){if(!letters[i].n){renderedLetter=renderedLetters[i];textSpan=this.textSpans[i].span;glyphElement=this.textSpans[i].glyph;if(glyphElement){glyphElement.renderFrame();}if(renderedLetter._mdf.m){textSpan.setAttribute('transform',renderedLetter.m);}if(renderedLetter._mdf.o){textSpan.setAttribute('opacity',renderedLetter.o);}if(renderedLetter._mdf.sw){textSpan.setAttribute('stroke-width',renderedLetter.sw);}if(renderedLetter._mdf.sc){textSpan.setAttribute('stroke',renderedLetter.sc);}if(renderedLetter._mdf.fc){textSpan.setAttribute('fill',renderedLetter.fc);}}}}}};function ISolidElement(data,globalData,comp){this.initElement(data,globalData,comp);}extendPrototype([IImageElement],ISolidElement);ISolidElement.prototype.createContent=function(){var rect=createNS('rect');/// /rect.style.width = this.data.sw;
  5593. /// /rect.style.height = this.data.sh;
  5594. /// /rect.style.fill = this.data.sc;
  5595. rect.setAttribute('width',this.data.sw);rect.setAttribute('height',this.data.sh);rect.setAttribute('fill',this.data.sc);this.layerElement.appendChild(rect);};function NullElement(data,globalData,comp){this.initFrame();this.initBaseData(data,globalData,comp);this.initFrame();this.initTransform(data,globalData,comp);this.initHierarchy();}NullElement.prototype.prepareFrame=function(num){this.prepareProperties(num,true);};NullElement.prototype.renderFrame=function(){};NullElement.prototype.getBaseElement=function(){return null;};NullElement.prototype.destroy=function(){};NullElement.prototype.sourceRectAtTime=function(){};NullElement.prototype.hide=function(){};extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase);SVGRendererBase.prototype.createNull=function(data){return new NullElement(data,this.globalData,this);};SVGRendererBase.prototype.createShape=function(data){return new SVGShapeElement(data,this.globalData,this);};SVGRendererBase.prototype.createText=function(data){return new SVGTextLottieElement(data,this.globalData,this);};SVGRendererBase.prototype.createImage=function(data){return new IImageElement(data,this.globalData,this);};SVGRendererBase.prototype.createSolid=function(data){return new ISolidElement(data,this.globalData,this);};SVGRendererBase.prototype.configAnimation=function(animData){this.svgElement.setAttribute('xmlns','http://www.w3.org/2000/svg');if(this.renderConfig.viewBoxSize){this.svgElement.setAttribute('viewBox',this.renderConfig.viewBoxSize);}else{this.svgElement.setAttribute('viewBox','0 0 '+animData.w+' '+animData.h);}if(!this.renderConfig.viewBoxOnly){this.svgElement.setAttribute('width',animData.w);this.svgElement.setAttribute('height',animData.h);this.svgElement.style.width='100%';this.svgElement.style.height='100%';this.svgElement.style.transform='translate3d(0,0,0)';this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility;}if(this.renderConfig.width){this.svgElement.setAttribute('width',this.renderConfig.width);}if(this.renderConfig.height){this.svgElement.setAttribute('height',this.renderConfig.height);}if(this.renderConfig.className){this.svgElement.setAttribute('class',this.renderConfig.className);}if(this.renderConfig.id){this.svgElement.setAttribute('id',this.renderConfig.id);}if(this.renderConfig.focusable!==undefined){this.svgElement.setAttribute('focusable',this.renderConfig.focusable);}this.svgElement.setAttribute('preserveAspectRatio',this.renderConfig.preserveAspectRatio);// this.layerElement.style.transform = 'translate3d(0,0,0)';
  5596. // this.layerElement.style.transformOrigin = this.layerElement.style.mozTransformOrigin = this.layerElement.style.webkitTransformOrigin = this.layerElement.style['-webkit-transform'] = "0px 0px 0px";
  5597. this.animationItem.wrapper.appendChild(this.svgElement);// Mask animation
  5598. var defs=this.globalData.defs;this.setupGlobalData(animData,defs);this.globalData.progressiveLoad=this.renderConfig.progressiveLoad;this.data=animData;var maskElement=createNS('clipPath');var rect=createNS('rect');rect.setAttribute('width',animData.w);rect.setAttribute('height',animData.h);rect.setAttribute('x',0);rect.setAttribute('y',0);var maskId=createElementID();maskElement.setAttribute('id',maskId);maskElement.appendChild(rect);this.layerElement.setAttribute('clip-path','url('+getLocationHref()+'#'+maskId+')');defs.appendChild(maskElement);this.layers=animData.layers;this.elements=createSizedArray(animData.layers.length);};SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper){this.animationItem.wrapper.innerText='';}this.layerElement=null;this.globalData.defs=null;var i;var len=this.layers?this.layers.length:0;for(i=0;i<len;i+=1){if(this.elements[i]){this.elements[i].destroy();}}this.elements.length=0;this.destroyed=true;this.animationItem=null;};SVGRendererBase.prototype.updateContainerSize=function(){};SVGRendererBase.prototype.buildItem=function(pos){var elements=this.elements;if(elements[pos]||this.layers[pos].ty===99){return;}elements[pos]=true;var element=this.createItem(this.layers[pos]);elements[pos]=element;if(getExpressionsPlugin()){if(this.layers[pos].ty===0){this.globalData.projectInterface.registerComposition(element);}element.initExpressions();}this.appendElementInPos(element,pos);if(this.layers[pos].tt){if(!this.elements[pos-1]||this.elements[pos-1]===true){this.buildItem(pos-1);this.addPendingElement(element);}else{element.setMatte(elements[pos-1].layerId);}}};SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var element=this.pendingElements.pop();element.checkParenting();if(element.data.tt){var i=0;var len=this.elements.length;while(i<len){if(this.elements[i]===element){element.setMatte(this.elements[i-1].layerId);break;}i+=1;}}}};SVGRendererBase.prototype.renderFrame=function(num){if(this.renderedFrame===num||this.destroyed){return;}if(num===null){num=this.renderedFrame;}else{this.renderedFrame=num;}// console.log('-------');
  5599. // console.log('FRAME ',num);
  5600. this.globalData.frameNum=num;this.globalData.frameId+=1;this.globalData.projectInterface.currentFrame=num;this.globalData._mdf=false;var i;var len=this.layers.length;if(!this.completeLayers){this.checkLayers(num);}for(i=len-1;i>=0;i-=1){if(this.completeLayers||this.elements[i]){this.elements[i].prepareFrame(num-this.layers[i].st);}}if(this.globalData._mdf){for(i=0;i<len;i+=1){if(this.completeLayers||this.elements[i]){this.elements[i].renderFrame();}}}};SVGRendererBase.prototype.appendElementInPos=function(element,pos){var newElement=element.getBaseElement();if(!newElement){return;}var i=0;var nextElement;while(i<pos){if(this.elements[i]&&this.elements[i]!==true&&this.elements[i].getBaseElement()){nextElement=this.elements[i].getBaseElement();}i+=1;}if(nextElement){this.layerElement.insertBefore(newElement,nextElement);}else{this.layerElement.appendChild(newElement);}};SVGRendererBase.prototype.hide=function(){this.layerElement.style.display='none';};SVGRendererBase.prototype.show=function(){this.layerElement.style.display='block';};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement);ICompElement.prototype.initElement=function(data,globalData,comp){this.initFrame();this.initBaseData(data,globalData,comp);this.initTransform(data,globalData,comp);this.initRenderable();this.initHierarchy();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();if(this.data.xt||!globalData.progressiveLoad){this.buildAllItems();}this.hide();};/* ICompElement.prototype.hide = function(){
  5601. if(!this.hidden){
  5602. this.hideElement();
  5603. var i,len = this.elements.length;
  5604. for( i = 0; i < len; i+=1 ){
  5605. if(this.elements[i]){
  5606. this.elements[i].hide();
  5607. }
  5608. }
  5609. }
  5610. }; */ICompElement.prototype.prepareFrame=function(num){this._mdf=false;this.prepareRenderableFrame(num);this.prepareProperties(num,this.isInRange);if(!this.isInRange&&!this.data.xt){return;}if(!this.tm._placeholder){var timeRemapped=this.tm.v;if(timeRemapped===this.data.op){timeRemapped=this.data.op-1;}this.renderedFrame=timeRemapped;}else{this.renderedFrame=num/this.data.sr;}var i;var len=this.elements.length;if(!this.completeLayers){this.checkLayers(this.renderedFrame);}// This iteration needs to be backwards because of how expressions connect between each other
  5611. for(i=len-1;i>=0;i-=1){if(this.completeLayers||this.elements[i]){this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st);if(this.elements[i]._mdf){this._mdf=true;}}}};ICompElement.prototype.renderInnerContent=function(){var i;var len=this.layers.length;for(i=0;i<len;i+=1){if(this.completeLayers||this.elements[i]){this.elements[i].renderFrame();}}};ICompElement.prototype.setElements=function(elems){this.elements=elems;};ICompElement.prototype.getElements=function(){return this.elements;};ICompElement.prototype.destroyElements=function(){var i;var len=this.layers.length;for(i=0;i<len;i+=1){if(this.elements[i]){this.elements[i].destroy();}}};ICompElement.prototype.destroy=function(){this.destroyElements();this.destroyBaseElement();};function SVGCompElement(data,globalData,comp){this.layers=data.layers;this.supports3d=true;this.completeLayers=false;this.pendingElements=[];this.elements=this.layers?createSizedArray(this.layers.length):[];this.initElement(data,globalData,comp);this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,globalData.frameRate,this):{_placeholder:true};}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement);SVGCompElement.prototype.createComp=function(data){return new SVGCompElement(data,this.globalData,this);};function SVGRenderer(animationItem,config){this.animationItem=animationItem;this.layers=null;this.renderedFrame=-1;this.svgElement=createNS('svg');var ariaLabel='';if(config&&config.title){var titleElement=createNS('title');var titleId=createElementID();titleElement.setAttribute('id',titleId);titleElement.textContent=config.title;this.svgElement.appendChild(titleElement);ariaLabel+=titleId;}if(config&&config.description){var descElement=createNS('desc');var descId=createElementID();descElement.setAttribute('id',descId);descElement.textContent=config.description;this.svgElement.appendChild(descElement);ariaLabel+=' '+descId;}if(ariaLabel){this.svgElement.setAttribute('aria-labelledby',ariaLabel);}var defs=createNS('defs');this.svgElement.appendChild(defs);var maskElement=createNS('g');this.svgElement.appendChild(maskElement);this.layerElement=maskElement;this.renderConfig={preserveAspectRatio:config&&config.preserveAspectRatio||'xMidYMid meet',imagePreserveAspectRatio:config&&config.imagePreserveAspectRatio||'xMidYMid slice',contentVisibility:config&&config.contentVisibility||'visible',progressiveLoad:config&&config.progressiveLoad||false,hideOnTransparent:!(config&&config.hideOnTransparent===false),viewBoxOnly:config&&config.viewBoxOnly||false,viewBoxSize:config&&config.viewBoxSize||false,className:config&&config.className||'',id:config&&config.id||'',focusable:config&&config.focusable,filterSize:{width:config&&config.filterSize&&config.filterSize.width||'100%',height:config&&config.filterSize&&config.filterSize.height||'100%',x:config&&config.filterSize&&config.filterSize.x||'0%',y:config&&config.filterSize&&config.filterSize.y||'0%'},width:config&&config.width,height:config&&config.height};this.globalData={_mdf:false,frameNum:-1,defs:defs,renderConfig:this.renderConfig};this.elements=[];this.pendingElements=[];this.destroyed=false;this.rendererType='svg';}extendPrototype([SVGRendererBase],SVGRenderer);SVGRenderer.prototype.createComp=function(data){return new SVGCompElement(data,this.globalData,this);};function CVContextData(){this.saved=[];this.cArrPos=0;this.cTr=new Matrix();this.cO=1;var i;var len=15;this.savedOp=createTypedArray('float32',len);for(i=0;i<len;i+=1){this.saved[i]=createTypedArray('float32',16);}this._length=len;}CVContextData.prototype.duplicate=function(){var newLength=this._length*2;var currentSavedOp=this.savedOp;this.savedOp=createTypedArray('float32',newLength);this.savedOp.set(currentSavedOp);var i=0;for(i=this._length;i<newLength;i+=1){this.saved[i]=createTypedArray('float32',16);}this._length=newLength;};CVContextData.prototype.reset=function(){this.cArrPos=0;this.cTr.reset();this.cO=1;};function ShapeTransformManager(){this.sequences={};this.sequenceList=[];this.transform_key_count=0;}ShapeTransformManager.prototype={addTransformSequence:function addTransformSequence(transforms){var i;var len=transforms.length;var key='_';for(i=0;i<len;i+=1){key+=transforms[i].transform.key+'_';}var sequence=this.sequences[key];if(!sequence){sequence={transforms:[].concat(transforms),finalTransform:new Matrix(),_mdf:false};this.sequences[key]=sequence;this.sequenceList.push(sequence);}return sequence;},processSequence:function processSequence(sequence,isFirstFrame){var i=0;var len=sequence.transforms.length;var _mdf=isFirstFrame;while(i<len&&!isFirstFrame){if(sequence.transforms[i].transform.mProps._mdf){_mdf=true;break;}i+=1;}if(_mdf){var props;sequence.finalTransform.reset();for(i=len-1;i>=0;i-=1){props=sequence.transforms[i].transform.mProps.v.props;sequence.finalTransform.transform(props[0],props[1],props[2],props[3],props[4],props[5],props[6],props[7],props[8],props[9],props[10],props[11],props[12],props[13],props[14],props[15]);}}sequence._mdf=_mdf;},processSequences:function processSequences(isFirstFrame){var i;var len=this.sequenceList.length;for(i=0;i<len;i+=1){this.processSequence(this.sequenceList[i],isFirstFrame);}},getNewKey:function getNewKey(){this.transform_key_count+=1;return'_'+this.transform_key_count;}};function CVEffects(){}CVEffects.prototype.renderFrame=function(){};function CVMaskElement(data,element){this.data=data;this.element=element;this.masksProperties=this.data.masksProperties||[];this.viewData=createSizedArray(this.masksProperties.length);var i;var len=this.masksProperties.length;var hasMasks=false;for(i=0;i<len;i+=1){if(this.masksProperties[i].mode!=='n'){hasMasks=true;}this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);}this.hasMasks=hasMasks;if(hasMasks){this.element.addRenderableComponent(this);}}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks){return;}var transform=this.element.finalTransform.mat;var ctx=this.element.canvasContext;var i;var len=this.masksProperties.length;var pt;var pts;var data;ctx.beginPath();for(i=0;i<len;i+=1){if(this.masksProperties[i].mode!=='n'){if(this.masksProperties[i].inv){ctx.moveTo(0,0);ctx.lineTo(this.element.globalData.compSize.w,0);ctx.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h);ctx.lineTo(0,this.element.globalData.compSize.h);ctx.lineTo(0,0);}data=this.viewData[i].v;pt=transform.applyToPointArray(data.v[0][0],data.v[0][1],0);ctx.moveTo(pt[0],pt[1]);var j;var jLen=data._length;for(j=1;j<jLen;j+=1){pts=transform.applyToTriplePoints(data.o[j-1],data.i[j],data.v[j]);ctx.bezierCurveTo(pts[0],pts[1],pts[2],pts[3],pts[4],pts[5]);}pts=transform.applyToTriplePoints(data.o[j-1],data.i[0],data.v[0]);ctx.bezierCurveTo(pts[0],pts[1],pts[2],pts[3],pts[4],pts[5]);}}this.element.globalData.renderer.save(true);ctx.clip();};CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty;CVMaskElement.prototype.destroy=function(){this.element=null;};function CVBaseElement(){}CVBaseElement.prototype={createElements:function createElements(){},initRendererElement:function initRendererElement(){},createContainerElements:function createContainerElements(){this.canvasContext=this.globalData.canvasContext;this.renderableEffectsManager=new CVEffects();},createContent:function createContent(){},setBlendMode:function setBlendMode(){var globalData=this.globalData;if(globalData.blendMode!==this.data.bm){globalData.blendMode=this.data.bm;var blendModeValue=getBlendMode(this.data.bm);globalData.canvasContext.globalCompositeOperation=blendModeValue;}},createRenderableComponents:function createRenderableComponents(){this.maskManager=new CVMaskElement(this.data,this);},hideElement:function hideElement(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){this.hidden=true;}},showElement:function showElement(){if(this.isInRange&&!this.isTransparent){this.hidden=false;this._isFirstFrame=true;this.maskManager._isFirstFrame=true;}},renderFrame:function renderFrame(){if(this.hidden||this.data.hd){return;}this.renderTransform();this.renderRenderable();this.setBlendMode();var forceRealStack=this.data.ty===0;this.globalData.renderer.save(forceRealStack);this.globalData.renderer.ctxTransform(this.finalTransform.mat.props);this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v);this.renderInnerContent();this.globalData.renderer.restore(forceRealStack);if(this.maskManager.hasMasks){this.globalData.renderer.restore(true);}if(this._isFirstFrame){this._isFirstFrame=false;}},destroy:function destroy(){this.canvasContext=null;this.data=null;this.globalData=null;this.maskManager.destroy();},mHelper:new Matrix()};CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement;CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(element,data,styles,transformsManager){this.styledShapes=[];this.tr=[0,0,0,0,0,0];var ty=4;if(data.ty==='rc'){ty=5;}else if(data.ty==='el'){ty=6;}else if(data.ty==='sr'){ty=7;}this.sh=ShapePropertyFactory.getShapeProp(element,data,ty,element);var i;var len=styles.length;var styledShape;for(i=0;i<len;i+=1){if(!styles[i].closed){styledShape={transforms:transformsManager.addTransformSequence(styles[i].transforms),trNodes:[]};this.styledShapes.push(styledShape);styles[i].elements.push(styledShape);}}}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(data,globalData,comp){this.shapes=[];this.shapesData=data.shapes;this.stylesList=[];this.itemsData=[];this.prevViewData=[];this.shapeModifiers=[];this.processedElements=[];this.transformsManager=new ShapeTransformManager();this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement);CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement;CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:false};CVShapeElement.prototype.dashResetter=[];CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,true,[]);};CVShapeElement.prototype.createStyleElement=function(data,transforms){var styleElem={data:data,type:data.ty,preTransforms:this.transformsManager.addTransformSequence(transforms),transforms:[],elements:[],closed:data.hd===true};var elementData={};if(data.ty==='fl'||data.ty==='st'){elementData.c=PropertyFactory.getProp(this,data.c,1,255,this);if(!elementData.c.k){styleElem.co='rgb('+bmFloor(elementData.c.v[0])+','+bmFloor(elementData.c.v[1])+','+bmFloor(elementData.c.v[2])+')';}}else if(data.ty==='gf'||data.ty==='gs'){elementData.s=PropertyFactory.getProp(this,data.s,1,null,this);elementData.e=PropertyFactory.getProp(this,data.e,1,null,this);elementData.h=PropertyFactory.getProp(this,data.h||{k:0},0,0.01,this);elementData.a=PropertyFactory.getProp(this,data.a||{k:0},0,degToRads,this);elementData.g=new GradientProperty(this,data.g,this);}elementData.o=PropertyFactory.getProp(this,data.o,0,0.01,this);if(data.ty==='st'||data.ty==='gs'){styleElem.lc=lineCapEnum[data.lc||2];styleElem.lj=lineJoinEnum[data.lj||2];if(data.lj==1){// eslint-disable-line eqeqeq
  5612. styleElem.ml=data.ml;}elementData.w=PropertyFactory.getProp(this,data.w,0,null,this);if(!elementData.w.k){styleElem.wi=elementData.w.v;}if(data.d){var d=new DashProperty(this,data.d,'canvas',this);elementData.d=d;if(!elementData.d.k){styleElem.da=elementData.d.dashArray;styleElem["do"]=elementData.d.dashoffset[0];}}}else{styleElem.r=data.r===2?'evenodd':'nonzero';}this.stylesList.push(styleElem);elementData.style=styleElem;return elementData;};CVShapeElement.prototype.createGroupElement=function(){var elementData={it:[],prevViewData:[]};return elementData;};CVShapeElement.prototype.createTransformElement=function(data){var elementData={transform:{opacity:1,_opMdf:false,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,data.o,0,0.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,data,this)}};return elementData;};CVShapeElement.prototype.createShapeElement=function(data){var elementData=new CVShapeData(this,data,this.stylesList,this.transformsManager);this.shapes.push(elementData);this.addShapeToModifiers(elementData);return elementData;};CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=true;var i;var len=this.itemsData.length;for(i=0;i<len;i+=1){this.prevViewData[i]=this.itemsData[i];}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,true,[]);len=this.dynamicProperties.length;for(i=0;i<len;i+=1){this.dynamicProperties[i].getValue();}this.renderModifiers();this.transformsManager.processSequences(this._isFirstFrame);};CVShapeElement.prototype.addTransformToStyleList=function(transform){var i;var len=this.stylesList.length;for(i=0;i<len;i+=1){if(!this.stylesList[i].closed){this.stylesList[i].transforms.push(transform);}}};CVShapeElement.prototype.removeTransformFromStyleList=function(){var i;var len=this.stylesList.length;for(i=0;i<len;i+=1){if(!this.stylesList[i].closed){this.stylesList[i].transforms.pop();}}};CVShapeElement.prototype.closeStyles=function(styles){var i;var len=styles.length;for(i=0;i<len;i+=1){styles[i].closed=true;}};CVShapeElement.prototype.searchShapes=function(arr,itemsData,prevViewData,shouldRender,transforms){var i;var len=arr.length-1;var j;var jLen;var ownStyles=[];var ownModifiers=[];var processedPos;var modifier;var currentTransform;var ownTransforms=[].concat(transforms);for(i=len;i>=0;i-=1){processedPos=this.searchProcessedElement(arr[i]);if(!processedPos){arr[i]._shouldRender=shouldRender;}else{itemsData[i]=prevViewData[processedPos-1];}if(arr[i].ty==='fl'||arr[i].ty==='st'||arr[i].ty==='gf'||arr[i].ty==='gs'){if(!processedPos){itemsData[i]=this.createStyleElement(arr[i],ownTransforms);}else{itemsData[i].style.closed=false;}ownStyles.push(itemsData[i].style);}else if(arr[i].ty==='gr'){if(!processedPos){itemsData[i]=this.createGroupElement(arr[i]);}else{jLen=itemsData[i].it.length;for(j=0;j<jLen;j+=1){itemsData[i].prevViewData[j]=itemsData[i].it[j];}}this.searchShapes(arr[i].it,itemsData[i].it,itemsData[i].prevViewData,shouldRender,ownTransforms);}else if(arr[i].ty==='tr'){if(!processedPos){currentTransform=this.createTransformElement(arr[i]);itemsData[i]=currentTransform;}ownTransforms.push(itemsData[i]);this.addTransformToStyleList(itemsData[i]);}else if(arr[i].ty==='sh'||arr[i].ty==='rc'||arr[i].ty==='el'||arr[i].ty==='sr'){if(!processedPos){itemsData[i]=this.createShapeElement(arr[i]);}}else if(arr[i].ty==='tm'||arr[i].ty==='rd'||arr[i].ty==='pb'){if(!processedPos){modifier=ShapeModifiers.getModifier(arr[i].ty);modifier.init(this,arr[i]);itemsData[i]=modifier;this.shapeModifiers.push(modifier);}else{modifier=itemsData[i];modifier.closed=false;}ownModifiers.push(modifier);}else if(arr[i].ty==='rp'){if(!processedPos){modifier=ShapeModifiers.getModifier(arr[i].ty);itemsData[i]=modifier;modifier.init(this,arr,i,itemsData);this.shapeModifiers.push(modifier);shouldRender=false;}else{modifier=itemsData[i];modifier.closed=true;}ownModifiers.push(modifier);}this.addProcessedElement(arr[i],i+1);}this.removeTransformFromStyleList();this.closeStyles(ownStyles);len=ownModifiers.length;for(i=0;i<len;i+=1){ownModifiers[i].closed=true;}};CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1;this.transformHelper._opMdf=false;this.renderModifiers();this.transformsManager.processSequences(this._isFirstFrame);this.renderShape(this.transformHelper,this.shapesData,this.itemsData,true);};CVShapeElement.prototype.renderShapeTransform=function(parentTransform,groupTransform){if(parentTransform._opMdf||groupTransform.op._mdf||this._isFirstFrame){groupTransform.opacity=parentTransform.opacity;groupTransform.opacity*=groupTransform.op.v;groupTransform._opMdf=true;}};CVShapeElement.prototype.drawLayer=function(){var i;var len=this.stylesList.length;var j;var jLen;var k;var kLen;var elems;var nodes;var renderer=this.globalData.renderer;var ctx=this.globalData.canvasContext;var type;var currentStyle;for(i=0;i<len;i+=1){currentStyle=this.stylesList[i];type=currentStyle.type;// Skipping style when
  5613. // Stroke width equals 0
  5614. // style should not be rendered (extra unused repeaters)
  5615. // current opacity equals 0
  5616. // global opacity equals 0
  5617. if(!((type==='st'||type==='gs')&&currentStyle.wi===0||!currentStyle.data._shouldRender||currentStyle.coOp===0||this.globalData.currentGlobalAlpha===0)){renderer.save();elems=currentStyle.elements;if(type==='st'||type==='gs'){ctx.strokeStyle=type==='st'?currentStyle.co:currentStyle.grd;ctx.lineWidth=currentStyle.wi;ctx.lineCap=currentStyle.lc;ctx.lineJoin=currentStyle.lj;ctx.miterLimit=currentStyle.ml||0;}else{ctx.fillStyle=type==='fl'?currentStyle.co:currentStyle.grd;}renderer.ctxOpacity(currentStyle.coOp);if(type!=='st'&&type!=='gs'){ctx.beginPath();}renderer.ctxTransform(currentStyle.preTransforms.finalTransform.props);jLen=elems.length;for(j=0;j<jLen;j+=1){if(type==='st'||type==='gs'){ctx.beginPath();if(currentStyle.da){ctx.setLineDash(currentStyle.da);ctx.lineDashOffset=currentStyle["do"];}}nodes=elems[j].trNodes;kLen=nodes.length;for(k=0;k<kLen;k+=1){if(nodes[k].t==='m'){ctx.moveTo(nodes[k].p[0],nodes[k].p[1]);}else if(nodes[k].t==='c'){ctx.bezierCurveTo(nodes[k].pts[0],nodes[k].pts[1],nodes[k].pts[2],nodes[k].pts[3],nodes[k].pts[4],nodes[k].pts[5]);}else{ctx.closePath();}}if(type==='st'||type==='gs'){ctx.stroke();if(currentStyle.da){ctx.setLineDash(this.dashResetter);}}}if(type!=='st'&&type!=='gs'){ctx.fill(currentStyle.r);}renderer.restore();}}};CVShapeElement.prototype.renderShape=function(parentTransform,items,data,isMain){var i;var len=items.length-1;var groupTransform;groupTransform=parentTransform;for(i=len;i>=0;i-=1){if(items[i].ty==='tr'){groupTransform=data[i].transform;this.renderShapeTransform(parentTransform,groupTransform);}else if(items[i].ty==='sh'||items[i].ty==='el'||items[i].ty==='rc'||items[i].ty==='sr'){this.renderPath(items[i],data[i]);}else if(items[i].ty==='fl'){this.renderFill(items[i],data[i],groupTransform);}else if(items[i].ty==='st'){this.renderStroke(items[i],data[i],groupTransform);}else if(items[i].ty==='gf'||items[i].ty==='gs'){this.renderGradientFill(items[i],data[i],groupTransform);}else if(items[i].ty==='gr'){this.renderShape(groupTransform,items[i].it,data[i].it);}else if(items[i].ty==='tm');}if(isMain){this.drawLayer();}};CVShapeElement.prototype.renderStyledShape=function(styledShape,shape){if(this._isFirstFrame||shape._mdf||styledShape.transforms._mdf){var shapeNodes=styledShape.trNodes;var paths=shape.paths;var i;var len;var j;var jLen=paths._length;shapeNodes.length=0;var groupTransformMat=styledShape.transforms.finalTransform;for(j=0;j<jLen;j+=1){var pathNodes=paths.shapes[j];if(pathNodes&&pathNodes.v){len=pathNodes._length;for(i=1;i<len;i+=1){if(i===1){shapeNodes.push({t:'m',p:groupTransformMat.applyToPointArray(pathNodes.v[0][0],pathNodes.v[0][1],0)});}shapeNodes.push({t:'c',pts:groupTransformMat.applyToTriplePoints(pathNodes.o[i-1],pathNodes.i[i],pathNodes.v[i])});}if(len===1){shapeNodes.push({t:'m',p:groupTransformMat.applyToPointArray(pathNodes.v[0][0],pathNodes.v[0][1],0)});}if(pathNodes.c&&len){shapeNodes.push({t:'c',pts:groupTransformMat.applyToTriplePoints(pathNodes.o[i-1],pathNodes.i[0],pathNodes.v[0])});shapeNodes.push({t:'z'});}}}styledShape.trNodes=shapeNodes;}};CVShapeElement.prototype.renderPath=function(pathData,itemData){if(pathData.hd!==true&&pathData._shouldRender){var i;var len=itemData.styledShapes.length;for(i=0;i<len;i+=1){this.renderStyledShape(itemData.styledShapes[i],itemData.sh);}}};CVShapeElement.prototype.renderFill=function(styleData,itemData,groupTransform){var styleElem=itemData.style;if(itemData.c._mdf||this._isFirstFrame){styleElem.co='rgb('+bmFloor(itemData.c.v[0])+','+bmFloor(itemData.c.v[1])+','+bmFloor(itemData.c.v[2])+')';}if(itemData.o._mdf||groupTransform._opMdf||this._isFirstFrame){styleElem.coOp=itemData.o.v*groupTransform.opacity;}};CVShapeElement.prototype.renderGradientFill=function(styleData,itemData,groupTransform){var styleElem=itemData.style;var grd;if(!styleElem.grd||itemData.g._mdf||itemData.s._mdf||itemData.e._mdf||styleData.t!==1&&(itemData.h._mdf||itemData.a._mdf)){var ctx=this.globalData.canvasContext;var pt1=itemData.s.v;var pt2=itemData.e.v;if(styleData.t===1){grd=ctx.createLinearGradient(pt1[0],pt1[1],pt2[0],pt2[1]);}else{var rad=Math.sqrt(Math.pow(pt1[0]-pt2[0],2)+Math.pow(pt1[1]-pt2[1],2));var ang=Math.atan2(pt2[1]-pt1[1],pt2[0]-pt1[0]);var percent=itemData.h.v;if(percent>=1){percent=0.99;}else if(percent<=-1){percent=-0.99;}var dist=rad*percent;var x=Math.cos(ang+itemData.a.v)*dist+pt1[0];var y=Math.sin(ang+itemData.a.v)*dist+pt1[1];grd=ctx.createRadialGradient(x,y,0,pt1[0],pt1[1],rad);}var i;var len=styleData.g.p;var cValues=itemData.g.c;var opacity=1;for(i=0;i<len;i+=1){if(itemData.g._hasOpacity&&itemData.g._collapsable){opacity=itemData.g.o[i*2+1];}grd.addColorStop(cValues[i*4]/100,'rgba('+cValues[i*4+1]+','+cValues[i*4+2]+','+cValues[i*4+3]+','+opacity+')');}styleElem.grd=grd;}styleElem.coOp=itemData.o.v*groupTransform.opacity;};CVShapeElement.prototype.renderStroke=function(styleData,itemData,groupTransform){var styleElem=itemData.style;var d=itemData.d;if(d&&(d._mdf||this._isFirstFrame)){styleElem.da=d.dashArray;styleElem["do"]=d.dashoffset[0];}if(itemData.c._mdf||this._isFirstFrame){styleElem.co='rgb('+bmFloor(itemData.c.v[0])+','+bmFloor(itemData.c.v[1])+','+bmFloor(itemData.c.v[2])+')';}if(itemData.o._mdf||groupTransform._opMdf||this._isFirstFrame){styleElem.coOp=itemData.o.v*groupTransform.opacity;}if(itemData.w._mdf||this._isFirstFrame){styleElem.wi=itemData.w.v;}};CVShapeElement.prototype.destroy=function(){this.shapesData=null;this.globalData=null;this.canvasContext=null;this.stylesList.length=0;this.itemsData.length=0;};function CVTextElement(data,globalData,comp){this.textSpans=[];this.yOffset=0;this.fillColorAnim=false;this.strokeColorAnim=false;this.strokeWidthAnim=false;this.stroke=false;this.fill=false;this.justifyOffset=0;this.currentRender=null;this.renderType='canvas';this.values={fill:'rgba(0,0,0,0)',stroke:'rgba(0,0,0,0)',sWidth:0,fValue:''};this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement);CVTextElement.prototype.tHelper=createTag('canvas').getContext('2d');CVTextElement.prototype.buildNewText=function(){var documentData=this.textProperty.currentData;this.renderedLetters=createSizedArray(documentData.l?documentData.l.length:0);var hasFill=false;if(documentData.fc){hasFill=true;this.values.fill=this.buildColor(documentData.fc);}else{this.values.fill='rgba(0,0,0,0)';}this.fill=hasFill;var hasStroke=false;if(documentData.sc){hasStroke=true;this.values.stroke=this.buildColor(documentData.sc);this.values.sWidth=documentData.sw;}var fontData=this.globalData.fontManager.getFontByName(documentData.f);var i;var len;var letters=documentData.l;var matrixHelper=this.mHelper;this.stroke=hasStroke;this.values.fValue=documentData.finalSize+'px '+this.globalData.fontManager.getFontByName(documentData.f).fFamily;len=documentData.finalText.length;// this.tHelper.font = this.values.fValue;
  5618. var charData;var shapeData;var k;var kLen;var shapes;var j;var jLen;var pathNodes;var commands;var pathArr;var singleShape=this.data.singleShape;var trackingOffset=documentData.tr*0.001*documentData.finalSize;var xPos=0;var yPos=0;var firstLine=true;var cnt=0;for(i=0;i<len;i+=1){charData=this.globalData.fontManager.getCharData(documentData.finalText[i],fontData.fStyle,this.globalData.fontManager.getFontByName(documentData.f).fFamily);shapeData=charData&&charData.data||{};matrixHelper.reset();if(singleShape&&letters[i].n){xPos=-trackingOffset;yPos+=documentData.yOffset;yPos+=firstLine?1:0;firstLine=false;}shapes=shapeData.shapes?shapeData.shapes[0].it:[];jLen=shapes.length;matrixHelper.scale(documentData.finalSize/100,documentData.finalSize/100);if(singleShape){this.applyTextPropertiesToMatrix(documentData,matrixHelper,letters[i].line,xPos,yPos);}commands=createSizedArray(jLen-1);var commandsCounter=0;for(j=0;j<jLen;j+=1){if(shapes[j].ty==='sh'){kLen=shapes[j].ks.k.i.length;pathNodes=shapes[j].ks.k;pathArr=[];for(k=1;k<kLen;k+=1){if(k===1){pathArr.push(matrixHelper.applyToX(pathNodes.v[0][0],pathNodes.v[0][1],0),matrixHelper.applyToY(pathNodes.v[0][0],pathNodes.v[0][1],0));}pathArr.push(matrixHelper.applyToX(pathNodes.o[k-1][0],pathNodes.o[k-1][1],0),matrixHelper.applyToY(pathNodes.o[k-1][0],pathNodes.o[k-1][1],0),matrixHelper.applyToX(pathNodes.i[k][0],pathNodes.i[k][1],0),matrixHelper.applyToY(pathNodes.i[k][0],pathNodes.i[k][1],0),matrixHelper.applyToX(pathNodes.v[k][0],pathNodes.v[k][1],0),matrixHelper.applyToY(pathNodes.v[k][0],pathNodes.v[k][1],0));}pathArr.push(matrixHelper.applyToX(pathNodes.o[k-1][0],pathNodes.o[k-1][1],0),matrixHelper.applyToY(pathNodes.o[k-1][0],pathNodes.o[k-1][1],0),matrixHelper.applyToX(pathNodes.i[0][0],pathNodes.i[0][1],0),matrixHelper.applyToY(pathNodes.i[0][0],pathNodes.i[0][1],0),matrixHelper.applyToX(pathNodes.v[0][0],pathNodes.v[0][1],0),matrixHelper.applyToY(pathNodes.v[0][0],pathNodes.v[0][1],0));commands[commandsCounter]=pathArr;commandsCounter+=1;}}if(singleShape){xPos+=letters[i].l;xPos+=trackingOffset;}if(this.textSpans[cnt]){this.textSpans[cnt].elem=commands;}else{this.textSpans[cnt]={elem:commands};}cnt+=1;}};CVTextElement.prototype.renderInnerContent=function(){var ctx=this.canvasContext;ctx.font=this.values.fValue;ctx.lineCap='butt';ctx.lineJoin='miter';ctx.miterLimit=4;if(!this.data.singleShape){this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);}var i;var len;var j;var jLen;var k;var kLen;var renderedLetters=this.textAnimator.renderedLetters;var letters=this.textProperty.currentData.l;len=letters.length;var renderedLetter;var lastFill=null;var lastStroke=null;var lastStrokeW=null;var commands;var pathArr;for(i=0;i<len;i+=1){if(!letters[i].n){renderedLetter=renderedLetters[i];if(renderedLetter){this.globalData.renderer.save();this.globalData.renderer.ctxTransform(renderedLetter.p);this.globalData.renderer.ctxOpacity(renderedLetter.o);}if(this.fill){if(renderedLetter&&renderedLetter.fc){if(lastFill!==renderedLetter.fc){lastFill=renderedLetter.fc;ctx.fillStyle=renderedLetter.fc;}}else if(lastFill!==this.values.fill){lastFill=this.values.fill;ctx.fillStyle=this.values.fill;}commands=this.textSpans[i].elem;jLen=commands.length;this.globalData.canvasContext.beginPath();for(j=0;j<jLen;j+=1){pathArr=commands[j];kLen=pathArr.length;this.globalData.canvasContext.moveTo(pathArr[0],pathArr[1]);for(k=2;k<kLen;k+=6){this.globalData.canvasContext.bezierCurveTo(pathArr[k],pathArr[k+1],pathArr[k+2],pathArr[k+3],pathArr[k+4],pathArr[k+5]);}}this.globalData.canvasContext.closePath();this.globalData.canvasContext.fill();/// ctx.fillText(this.textSpans[i].val,0,0);
  5619. }if(this.stroke){if(renderedLetter&&renderedLetter.sw){if(lastStrokeW!==renderedLetter.sw){lastStrokeW=renderedLetter.sw;ctx.lineWidth=renderedLetter.sw;}}else if(lastStrokeW!==this.values.sWidth){lastStrokeW=this.values.sWidth;ctx.lineWidth=this.values.sWidth;}if(renderedLetter&&renderedLetter.sc){if(lastStroke!==renderedLetter.sc){lastStroke=renderedLetter.sc;ctx.strokeStyle=renderedLetter.sc;}}else if(lastStroke!==this.values.stroke){lastStroke=this.values.stroke;ctx.strokeStyle=this.values.stroke;}commands=this.textSpans[i].elem;jLen=commands.length;this.globalData.canvasContext.beginPath();for(j=0;j<jLen;j+=1){pathArr=commands[j];kLen=pathArr.length;this.globalData.canvasContext.moveTo(pathArr[0],pathArr[1]);for(k=2;k<kLen;k+=6){this.globalData.canvasContext.bezierCurveTo(pathArr[k],pathArr[k+1],pathArr[k+2],pathArr[k+3],pathArr[k+4],pathArr[k+5]);}}this.globalData.canvasContext.closePath();this.globalData.canvasContext.stroke();/// ctx.strokeText(letters[i].val,0,0);
  5620. }if(renderedLetter){this.globalData.renderer.restore();}}}};function CVImageElement(data,globalData,comp){this.assetData=globalData.getAssetData(data.refId);this.img=globalData.imageLoader.getAsset(this.assetData);this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement);CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement;CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame;CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var canvas=createTag('canvas');canvas.width=this.assetData.w;canvas.height=this.assetData.h;var ctx=canvas.getContext('2d');var imgW=this.img.width;var imgH=this.img.height;var imgRel=imgW/imgH;var canvasRel=this.assetData.w/this.assetData.h;var widthCrop;var heightCrop;var par=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(imgRel>canvasRel&&par==='xMidYMid slice'||imgRel<canvasRel&&par!=='xMidYMid slice'){heightCrop=imgH;widthCrop=heightCrop*canvasRel;}else{widthCrop=imgW;heightCrop=widthCrop/canvasRel;}ctx.drawImage(this.img,(imgW-widthCrop)/2,(imgH-heightCrop)/2,widthCrop,heightCrop,0,0,this.assetData.w,this.assetData.h);this.img=canvas;}};CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0);};CVImageElement.prototype.destroy=function(){this.img=null;};function CVSolidElement(data,globalData,comp){this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement);CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement;CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame;CVSolidElement.prototype.renderInnerContent=function(){var ctx=this.canvasContext;ctx.fillStyle=this.data.sc;ctx.fillRect(0,0,this.data.sw,this.data.sh);//
  5621. };function CanvasRendererBase(animationItem,config){this.animationItem=animationItem;this.renderConfig={clearCanvas:config&&config.clearCanvas!==undefined?config.clearCanvas:true,context:config&&config.context||null,progressiveLoad:config&&config.progressiveLoad||false,preserveAspectRatio:config&&config.preserveAspectRatio||'xMidYMid meet',imagePreserveAspectRatio:config&&config.imagePreserveAspectRatio||'xMidYMid slice',contentVisibility:config&&config.contentVisibility||'visible',className:config&&config.className||'',id:config&&config.id||''};this.renderConfig.dpr=config&&config.dpr||1;if(this.animationItem.wrapper){this.renderConfig.dpr=config&&config.dpr||window.devicePixelRatio||1;}this.renderedFrame=-1;this.globalData={frameNum:-1,_mdf:false,renderConfig:this.renderConfig,currentGlobalAlpha:-1};this.contextData=new CVContextData();this.elements=[];this.pendingElements=[];this.transformMat=new Matrix();this.completeLayers=false;this.rendererType='canvas';}extendPrototype([BaseRenderer],CanvasRendererBase);CanvasRendererBase.prototype.createShape=function(data){return new CVShapeElement(data,this.globalData,this);};CanvasRendererBase.prototype.createText=function(data){return new CVTextElement(data,this.globalData,this);};CanvasRendererBase.prototype.createImage=function(data){return new CVImageElement(data,this.globalData,this);};CanvasRendererBase.prototype.createSolid=function(data){return new CVSolidElement(data,this.globalData,this);};CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull;CanvasRendererBase.prototype.ctxTransform=function(props){if(props[0]===1&&props[1]===0&&props[4]===0&&props[5]===1&&props[12]===0&&props[13]===0){return;}if(!this.renderConfig.clearCanvas){this.canvasContext.transform(props[0],props[1],props[4],props[5],props[12],props[13]);return;}this.transformMat.cloneFromProps(props);var cProps=this.contextData.cTr.props;this.transformMat.transform(cProps[0],cProps[1],cProps[2],cProps[3],cProps[4],cProps[5],cProps[6],cProps[7],cProps[8],cProps[9],cProps[10],cProps[11],cProps[12],cProps[13],cProps[14],cProps[15]);// this.contextData.cTr.transform(props[0],props[1],props[2],props[3],props[4],props[5],props[6],props[7],props[8],props[9],props[10],props[11],props[12],props[13],props[14],props[15]);
  5622. this.contextData.cTr.cloneFromProps(this.transformMat.props);var trProps=this.contextData.cTr.props;this.canvasContext.setTransform(trProps[0],trProps[1],trProps[4],trProps[5],trProps[12],trProps[13]);};CanvasRendererBase.prototype.ctxOpacity=function(op){/* if(op === 1){
  5623. return;
  5624. } */if(!this.renderConfig.clearCanvas){this.canvasContext.globalAlpha*=op<0?0:op;this.globalData.currentGlobalAlpha=this.contextData.cO;return;}this.contextData.cO*=op<0?0:op;if(this.globalData.currentGlobalAlpha!==this.contextData.cO){this.canvasContext.globalAlpha=this.contextData.cO;this.globalData.currentGlobalAlpha=this.contextData.cO;}};CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return;}this.contextData.reset();};CanvasRendererBase.prototype.save=function(actionFlag){if(!this.renderConfig.clearCanvas){this.canvasContext.save();return;}if(actionFlag){this.canvasContext.save();}var props=this.contextData.cTr.props;if(this.contextData._length<=this.contextData.cArrPos){this.contextData.duplicate();}var i;var arr=this.contextData.saved[this.contextData.cArrPos];for(i=0;i<16;i+=1){arr[i]=props[i];}this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO;this.contextData.cArrPos+=1;};CanvasRendererBase.prototype.restore=function(actionFlag){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return;}if(actionFlag){this.canvasContext.restore();this.globalData.blendMode='source-over';}this.contextData.cArrPos-=1;var popped=this.contextData.saved[this.contextData.cArrPos];var i;var arr=this.contextData.cTr.props;for(i=0;i<16;i+=1){arr[i]=popped[i];}this.canvasContext.setTransform(popped[0],popped[1],popped[4],popped[5],popped[12],popped[13]);popped=this.contextData.savedOp[this.contextData.cArrPos];this.contextData.cO=popped;if(this.globalData.currentGlobalAlpha!==popped){this.canvasContext.globalAlpha=popped;this.globalData.currentGlobalAlpha=popped;}};CanvasRendererBase.prototype.configAnimation=function(animData){if(this.animationItem.wrapper){this.animationItem.container=createTag('canvas');var containerStyle=this.animationItem.container.style;containerStyle.width='100%';containerStyle.height='100%';var origin='0px 0px 0px';containerStyle.transformOrigin=origin;containerStyle.mozTransformOrigin=origin;containerStyle.webkitTransformOrigin=origin;containerStyle['-webkit-transform']=origin;containerStyle.contentVisibility=this.renderConfig.contentVisibility;this.animationItem.wrapper.appendChild(this.animationItem.container);this.canvasContext=this.animationItem.container.getContext('2d');if(this.renderConfig.className){this.animationItem.container.setAttribute('class',this.renderConfig.className);}if(this.renderConfig.id){this.animationItem.container.setAttribute('id',this.renderConfig.id);}}else{this.canvasContext=this.renderConfig.context;}this.data=animData;this.layers=animData.layers;this.transformCanvas={w:animData.w,h:animData.h,sx:0,sy:0,tx:0,ty:0};this.setupGlobalData(animData,document.body);this.globalData.canvasContext=this.canvasContext;this.globalData.renderer=this;this.globalData.isDashed=false;this.globalData.progressiveLoad=this.renderConfig.progressiveLoad;this.globalData.transformCanvas=this.transformCanvas;this.elements=createSizedArray(animData.layers.length);this.updateContainerSize();};CanvasRendererBase.prototype.updateContainerSize=function(){this.reset();var elementWidth;var elementHeight;if(this.animationItem.wrapper&&this.animationItem.container){elementWidth=this.animationItem.wrapper.offsetWidth;elementHeight=this.animationItem.wrapper.offsetHeight;this.animationItem.container.setAttribute('width',elementWidth*this.renderConfig.dpr);this.animationItem.container.setAttribute('height',elementHeight*this.renderConfig.dpr);}else{elementWidth=this.canvasContext.canvas.width*this.renderConfig.dpr;elementHeight=this.canvasContext.canvas.height*this.renderConfig.dpr;}var elementRel;var animationRel;if(this.renderConfig.preserveAspectRatio.indexOf('meet')!==-1||this.renderConfig.preserveAspectRatio.indexOf('slice')!==-1){var par=this.renderConfig.preserveAspectRatio.split(' ');var fillType=par[1]||'meet';var pos=par[0]||'xMidYMid';var xPos=pos.substr(0,4);var yPos=pos.substr(4);elementRel=elementWidth/elementHeight;animationRel=this.transformCanvas.w/this.transformCanvas.h;if(animationRel>elementRel&&fillType==='meet'||animationRel<elementRel&&fillType==='slice'){this.transformCanvas.sx=elementWidth/(this.transformCanvas.w/this.renderConfig.dpr);this.transformCanvas.sy=elementWidth/(this.transformCanvas.w/this.renderConfig.dpr);}else{this.transformCanvas.sx=elementHeight/(this.transformCanvas.h/this.renderConfig.dpr);this.transformCanvas.sy=elementHeight/(this.transformCanvas.h/this.renderConfig.dpr);}if(xPos==='xMid'&&(animationRel<elementRel&&fillType==='meet'||animationRel>elementRel&&fillType==='slice')){this.transformCanvas.tx=(elementWidth-this.transformCanvas.w*(elementHeight/this.transformCanvas.h))/2*this.renderConfig.dpr;}else if(xPos==='xMax'&&(animationRel<elementRel&&fillType==='meet'||animationRel>elementRel&&fillType==='slice')){this.transformCanvas.tx=(elementWidth-this.transformCanvas.w*(elementHeight/this.transformCanvas.h))*this.renderConfig.dpr;}else{this.transformCanvas.tx=0;}if(yPos==='YMid'&&(animationRel>elementRel&&fillType==='meet'||animationRel<elementRel&&fillType==='slice')){this.transformCanvas.ty=(elementHeight-this.transformCanvas.h*(elementWidth/this.transformCanvas.w))/2*this.renderConfig.dpr;}else if(yPos==='YMax'&&(animationRel>elementRel&&fillType==='meet'||animationRel<elementRel&&fillType==='slice')){this.transformCanvas.ty=(elementHeight-this.transformCanvas.h*(elementWidth/this.transformCanvas.w))*this.renderConfig.dpr;}else{this.transformCanvas.ty=0;}}else if(this.renderConfig.preserveAspectRatio==='none'){this.transformCanvas.sx=elementWidth/(this.transformCanvas.w/this.renderConfig.dpr);this.transformCanvas.sy=elementHeight/(this.transformCanvas.h/this.renderConfig.dpr);this.transformCanvas.tx=0;this.transformCanvas.ty=0;}else{this.transformCanvas.sx=this.renderConfig.dpr;this.transformCanvas.sy=this.renderConfig.dpr;this.transformCanvas.tx=0;this.transformCanvas.ty=0;}this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1];/* var i, len = this.elements.length;
  5625. for(i=0;i<len;i+=1){
  5626. if(this.elements[i] && this.elements[i].data.ty === 0){
  5627. this.elements[i].resize(this.globalData.transformCanvas);
  5628. }
  5629. } */this.ctxTransform(this.transformCanvas.props);this.canvasContext.beginPath();this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h);this.canvasContext.closePath();this.canvasContext.clip();this.renderFrame(this.renderedFrame,true);};CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper){this.animationItem.wrapper.innerText='';}var i;var len=this.layers?this.layers.length:0;for(i=len-1;i>=0;i-=1){if(this.elements[i]){this.elements[i].destroy();}}this.elements.length=0;this.globalData.canvasContext=null;this.animationItem.container=null;this.destroyed=true;};CanvasRendererBase.prototype.renderFrame=function(num,forceRender){if(this.renderedFrame===num&&this.renderConfig.clearCanvas===true&&!forceRender||this.destroyed||num===-1){return;}this.renderedFrame=num;this.globalData.frameNum=num-this.animationItem._isFirstFrame;this.globalData.frameId+=1;this.globalData._mdf=!this.renderConfig.clearCanvas||forceRender;this.globalData.projectInterface.currentFrame=num;// console.log('--------');
  5630. // console.log('NEW: ',num);
  5631. var i;var len=this.layers.length;if(!this.completeLayers){this.checkLayers(num);}for(i=0;i<len;i+=1){if(this.completeLayers||this.elements[i]){this.elements[i].prepareFrame(num-this.layers[i].st);}}if(this.globalData._mdf){if(this.renderConfig.clearCanvas===true){this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h);}else{this.save();}for(i=len-1;i>=0;i-=1){if(this.completeLayers||this.elements[i]){this.elements[i].renderFrame();}}if(this.renderConfig.clearCanvas!==true){this.restore();}}};CanvasRendererBase.prototype.buildItem=function(pos){var elements=this.elements;if(elements[pos]||this.layers[pos].ty===99){return;}var element=this.createItem(this.layers[pos],this,this.globalData);elements[pos]=element;element.initExpressions();/* if(this.layers[pos].ty === 0){
  5632. element.resize(this.globalData.transformCanvas);
  5633. } */};CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var element=this.pendingElements.pop();element.checkParenting();}};CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display='none';};CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display='block';};function CVCompElement(data,globalData,comp){this.completeLayers=false;this.layers=data.layers;this.pendingElements=[];this.elements=createSizedArray(this.layers.length);this.initElement(data,globalData,comp);this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,globalData.frameRate,this):{_placeholder:true};}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement);CVCompElement.prototype.renderInnerContent=function(){var ctx=this.canvasContext;ctx.beginPath();ctx.moveTo(0,0);ctx.lineTo(this.data.w,0);ctx.lineTo(this.data.w,this.data.h);ctx.lineTo(0,this.data.h);ctx.lineTo(0,0);ctx.clip();var i;var len=this.layers.length;for(i=len-1;i>=0;i-=1){if(this.completeLayers||this.elements[i]){this.elements[i].renderFrame();}}};CVCompElement.prototype.destroy=function(){var i;var len=this.layers.length;for(i=len-1;i>=0;i-=1){if(this.elements[i]){this.elements[i].destroy();}}this.layers=null;this.elements=null;};CVCompElement.prototype.createComp=function(data){return new CVCompElement(data,this.globalData,this);};function CanvasRenderer(animationItem,config){this.animationItem=animationItem;this.renderConfig={clearCanvas:config&&config.clearCanvas!==undefined?config.clearCanvas:true,context:config&&config.context||null,progressiveLoad:config&&config.progressiveLoad||false,preserveAspectRatio:config&&config.preserveAspectRatio||'xMidYMid meet',imagePreserveAspectRatio:config&&config.imagePreserveAspectRatio||'xMidYMid slice',contentVisibility:config&&config.contentVisibility||'visible',className:config&&config.className||'',id:config&&config.id||''};this.renderConfig.dpr=config&&config.dpr||1;if(this.animationItem.wrapper){this.renderConfig.dpr=config&&config.dpr||window.devicePixelRatio||1;}this.renderedFrame=-1;this.globalData={frameNum:-1,_mdf:false,renderConfig:this.renderConfig,currentGlobalAlpha:-1};this.contextData=new CVContextData();this.elements=[];this.pendingElements=[];this.transformMat=new Matrix();this.completeLayers=false;this.rendererType='canvas';}extendPrototype([CanvasRendererBase],CanvasRenderer);CanvasRenderer.prototype.createComp=function(data){return new CVCompElement(data,this.globalData,this);};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function checkBlendMode(){},initRendererElement:function initRendererElement(){this.baseElement=createTag(this.data.tg||'div');if(this.data.hasMask){this.svgElement=createNS('svg');this.layerElement=createNS('g');this.maskedElement=this.layerElement;this.svgElement.appendChild(this.layerElement);this.baseElement.appendChild(this.svgElement);}else{this.layerElement=this.baseElement;}styleDiv(this.baseElement);},createContainerElements:function createContainerElements(){this.renderableEffectsManager=new CVEffects();this.transformedElement=this.baseElement;this.maskedElement=this.layerElement;if(this.data.ln){this.layerElement.setAttribute('id',this.data.ln);}if(this.data.cl){this.layerElement.setAttribute('class',this.data.cl);}if(this.data.bm!==0){this.setBlendMode();}},renderElement:function renderElement(){var transformedElementStyle=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var matrixValue=this.finalTransform.mat.toCSS();transformedElementStyle.transform=matrixValue;transformedElementStyle.webkitTransform=matrixValue;}if(this.finalTransform._opMdf){transformedElementStyle.opacity=this.finalTransform.mProp.o.v;}},renderFrame:function renderFrame(){// If it is exported as hidden (data.hd === true) no need to render
  5634. // If it is not visible no need to render
  5635. if(this.data.hd||this.hidden){return;}this.renderTransform();this.renderRenderable();this.renderElement();this.renderInnerContent();if(this._isFirstFrame){this._isFirstFrame=false;}},destroy:function destroy(){this.layerElement=null;this.transformedElement=null;if(this.matteElement){this.matteElement=null;}if(this.maskManager){this.maskManager.destroy();this.maskManager=null;}},createRenderableComponents:function createRenderableComponents(){this.maskManager=new MaskElement(this.data,this,this.globalData);},addEffects:function addEffects(){},setMatte:function setMatte(){}};HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement;HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy;HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(data,globalData,comp){this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement);HSolidElement.prototype.createContent=function(){var rect;if(this.data.hasMask){rect=createNS('rect');rect.setAttribute('width',this.data.sw);rect.setAttribute('height',this.data.sh);rect.setAttribute('fill',this.data.sc);this.svgElement.setAttribute('width',this.data.sw);this.svgElement.setAttribute('height',this.data.sh);}else{rect=createTag('div');rect.style.width=this.data.sw+'px';rect.style.height=this.data.sh+'px';rect.style.backgroundColor=this.data.sc;}this.layerElement.appendChild(rect);};function HShapeElement(data,globalData,comp){// List of drawable elements
  5636. this.shapes=[];// Full shape data
  5637. this.shapesData=data.shapes;// List of styles that will be applied to shapes
  5638. this.stylesList=[];// List of modifiers that will be applied to shapes
  5639. this.shapeModifiers=[];// List of items in shape tree
  5640. this.itemsData=[];// List of items in previous shape tree
  5641. this.processedElements=[];// List of animated components
  5642. this.animatedContents=[];this.shapesContainer=createNS('g');this.initElement(data,globalData,comp);// Moving any property that doesn't get too much access after initialization because of v8 way of handling more than 10 properties.
  5643. // List of elements that have been created
  5644. this.prevViewData=[];this.currentBBox={x:999999,y:-999999,h:0,w:0};}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement);HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent;HShapeElement.prototype.createContent=function(){var cont;this.baseElement.style.fontSize=0;if(this.data.hasMask){this.layerElement.appendChild(this.shapesContainer);cont=this.svgElement;}else{cont=createNS('svg');var size=this.comp.data?this.comp.data:this.globalData.compSize;cont.setAttribute('width',size.w);cont.setAttribute('height',size.h);cont.appendChild(this.shapesContainer);this.layerElement.appendChild(cont);}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],true);this.filterUniqueShapes();this.shapeCont=cont;};HShapeElement.prototype.getTransformedPoint=function(transformers,point){var i;var len=transformers.length;for(i=0;i<len;i+=1){point=transformers[i].mProps.v.applyToPointArray(point[0],point[1],0);}return point;};HShapeElement.prototype.calculateShapeBoundingBox=function(item,boundingBox){var shape=item.sh.v;var transformers=item.transformers;var i;var len=shape._length;var vPoint;var oPoint;var nextIPoint;var nextVPoint;if(len<=1){return;}for(i=0;i<len-1;i+=1){vPoint=this.getTransformedPoint(transformers,shape.v[i]);oPoint=this.getTransformedPoint(transformers,shape.o[i]);nextIPoint=this.getTransformedPoint(transformers,shape.i[i+1]);nextVPoint=this.getTransformedPoint(transformers,shape.v[i+1]);this.checkBounds(vPoint,oPoint,nextIPoint,nextVPoint,boundingBox);}if(shape.c){vPoint=this.getTransformedPoint(transformers,shape.v[i]);oPoint=this.getTransformedPoint(transformers,shape.o[i]);nextIPoint=this.getTransformedPoint(transformers,shape.i[0]);nextVPoint=this.getTransformedPoint(transformers,shape.v[0]);this.checkBounds(vPoint,oPoint,nextIPoint,nextVPoint,boundingBox);}};HShapeElement.prototype.checkBounds=function(vPoint,oPoint,nextIPoint,nextVPoint,boundingBox){this.getBoundsOfCurve(vPoint,oPoint,nextIPoint,nextVPoint);var bounds=this.shapeBoundingBox;boundingBox.x=bmMin(bounds.left,boundingBox.x);boundingBox.xMax=bmMax(bounds.right,boundingBox.xMax);boundingBox.y=bmMin(bounds.top,boundingBox.y);boundingBox.yMax=bmMax(bounds.bottom,boundingBox.yMax);};HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0};HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0};HShapeElement.prototype.getBoundsOfCurve=function(p0,p1,p2,p3){var bounds=[[p0[0],p3[0]],[p0[1],p3[1]]];for(var a,b,c,t,b2ac,t1,t2,i=0;i<2;++i){// eslint-disable-line no-plusplus
  5645. b=6*p0[i]-12*p1[i]+6*p2[i];a=-3*p0[i]+9*p1[i]-9*p2[i]+3*p3[i];c=3*p1[i]-3*p0[i];b|=0;// eslint-disable-line no-bitwise
  5646. a|=0;// eslint-disable-line no-bitwise
  5647. c|=0;// eslint-disable-line no-bitwise
  5648. if(a===0&&b===0);else if(a===0){t=-c/b;if(t>0&&t<1){bounds[i].push(this.calculateF(t,p0,p1,p2,p3,i));}}else{b2ac=b*b-4*c*a;if(b2ac>=0){t1=(-b+bmSqrt(b2ac))/(2*a);if(t1>0&&t1<1)bounds[i].push(this.calculateF(t1,p0,p1,p2,p3,i));t2=(-b-bmSqrt(b2ac))/(2*a);if(t2>0&&t2<1)bounds[i].push(this.calculateF(t2,p0,p1,p2,p3,i));}}}this.shapeBoundingBox.left=bmMin.apply(null,bounds[0]);this.shapeBoundingBox.top=bmMin.apply(null,bounds[1]);this.shapeBoundingBox.right=bmMax.apply(null,bounds[0]);this.shapeBoundingBox.bottom=bmMax.apply(null,bounds[1]);};HShapeElement.prototype.calculateF=function(t,p0,p1,p2,p3,i){return bmPow(1-t,3)*p0[i]+3*bmPow(1-t,2)*t*p1[i]+3*(1-t)*bmPow(t,2)*p2[i]+bmPow(t,3)*p3[i];};HShapeElement.prototype.calculateBoundingBox=function(itemsData,boundingBox){var i;var len=itemsData.length;for(i=0;i<len;i+=1){if(itemsData[i]&&itemsData[i].sh){this.calculateShapeBoundingBox(itemsData[i],boundingBox);}else if(itemsData[i]&&itemsData[i].it){this.calculateBoundingBox(itemsData[i].it,boundingBox);}else if(itemsData[i]&&itemsData[i].style&&itemsData[i].w){this.expandStrokeBoundingBox(itemsData[i].w,boundingBox);}}};HShapeElement.prototype.expandStrokeBoundingBox=function(widthProperty,boundingBox){var width=0;if(widthProperty.keyframes){for(var i=0;i<widthProperty.keyframes.length;i+=1){var kfw=widthProperty.keyframes[i].s;if(kfw>width){width=kfw;}}width*=widthProperty.mult;}else{width=widthProperty.v*widthProperty.mult;}boundingBox.x-=width;boundingBox.xMax+=width;boundingBox.y-=width;boundingBox.yMax+=width;};HShapeElement.prototype.currentBoxContains=function(box){return this.currentBBox.x<=box.x&&this.currentBBox.y<=box.y&&this.currentBBox.width+this.currentBBox.x>=box.x+box.width&&this.currentBBox.height+this.currentBBox.y>=box.y+box.height;};HShapeElement.prototype.renderInnerContent=function(){this._renderShapeFrame();if(!this.hidden&&(this._isFirstFrame||this._mdf)){var tempBoundingBox=this.tempBoundingBox;var max=999999;tempBoundingBox.x=max;tempBoundingBox.xMax=-max;tempBoundingBox.y=max;tempBoundingBox.yMax=-max;this.calculateBoundingBox(this.itemsData,tempBoundingBox);tempBoundingBox.width=tempBoundingBox.xMax<tempBoundingBox.x?0:tempBoundingBox.xMax-tempBoundingBox.x;tempBoundingBox.height=tempBoundingBox.yMax<tempBoundingBox.y?0:tempBoundingBox.yMax-tempBoundingBox.y;// var tempBoundingBox = this.shapeCont.getBBox();
  5649. if(this.currentBoxContains(tempBoundingBox)){return;}var changed=false;if(this.currentBBox.w!==tempBoundingBox.width){this.currentBBox.w=tempBoundingBox.width;this.shapeCont.setAttribute('width',tempBoundingBox.width);changed=true;}if(this.currentBBox.h!==tempBoundingBox.height){this.currentBBox.h=tempBoundingBox.height;this.shapeCont.setAttribute('height',tempBoundingBox.height);changed=true;}if(changed||this.currentBBox.x!==tempBoundingBox.x||this.currentBBox.y!==tempBoundingBox.y){this.currentBBox.w=tempBoundingBox.width;this.currentBBox.h=tempBoundingBox.height;this.currentBBox.x=tempBoundingBox.x;this.currentBBox.y=tempBoundingBox.y;this.shapeCont.setAttribute('viewBox',this.currentBBox.x+' '+this.currentBBox.y+' '+this.currentBBox.w+' '+this.currentBBox.h);var shapeStyle=this.shapeCont.style;var shapeTransform='translate('+this.currentBBox.x+'px,'+this.currentBBox.y+'px)';shapeStyle.transform=shapeTransform;shapeStyle.webkitTransform=shapeTransform;}}};function HTextElement(data,globalData,comp){this.textSpans=[];this.textPaths=[];this.currentBBox={x:999999,y:-999999,h:0,w:0};this.renderType='svg';this.isMasked=false;this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement);HTextElement.prototype.createContent=function(){this.isMasked=this.checkMasks();if(this.isMasked){this.renderType='svg';this.compW=this.comp.data.w;this.compH=this.comp.data.h;this.svgElement.setAttribute('width',this.compW);this.svgElement.setAttribute('height',this.compH);var g=createNS('g');this.maskedElement.appendChild(g);this.innerElem=g;}else{this.renderType='html';this.innerElem=this.layerElement;}this.checkParenting();};HTextElement.prototype.buildNewText=function(){var documentData=this.textProperty.currentData;this.renderedLetters=createSizedArray(documentData.l?documentData.l.length:0);var innerElemStyle=this.innerElem.style;var textColor=documentData.fc?this.buildColor(documentData.fc):'rgba(0,0,0,0)';innerElemStyle.fill=textColor;innerElemStyle.color=textColor;if(documentData.sc){innerElemStyle.stroke=this.buildColor(documentData.sc);innerElemStyle.strokeWidth=documentData.sw+'px';}var fontData=this.globalData.fontManager.getFontByName(documentData.f);if(!this.globalData.fontManager.chars){innerElemStyle.fontSize=documentData.finalSize+'px';innerElemStyle.lineHeight=documentData.finalSize+'px';if(fontData.fClass){this.innerElem.className=fontData.fClass;}else{innerElemStyle.fontFamily=fontData.fFamily;var fWeight=documentData.fWeight;var fStyle=documentData.fStyle;innerElemStyle.fontStyle=fStyle;innerElemStyle.fontWeight=fWeight;}}var i;var len;var letters=documentData.l;len=letters.length;var tSpan;var tParent;var tCont;var matrixHelper=this.mHelper;var shapes;var shapeStr='';var cnt=0;for(i=0;i<len;i+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[cnt]){tSpan=createNS('path');tSpan.setAttribute('stroke-linecap',lineCapEnum[1]);tSpan.setAttribute('stroke-linejoin',lineJoinEnum[2]);tSpan.setAttribute('stroke-miterlimit','4');}else{tSpan=this.textPaths[cnt];}if(!this.isMasked){if(this.textSpans[cnt]){tParent=this.textSpans[cnt];tCont=tParent.children[0];}else{tParent=createTag('div');tParent.style.lineHeight=0;tCont=createNS('svg');tCont.appendChild(tSpan);styleDiv(tParent);}}}else if(!this.isMasked){if(this.textSpans[cnt]){tParent=this.textSpans[cnt];tSpan=this.textPaths[cnt];}else{tParent=createTag('span');styleDiv(tParent);tSpan=createTag('span');styleDiv(tSpan);tParent.appendChild(tSpan);}}else{tSpan=this.textPaths[cnt]?this.textPaths[cnt]:createNS('text');}// tSpan.setAttribute('visibility', 'hidden');
  5650. if(this.globalData.fontManager.chars){var charData=this.globalData.fontManager.getCharData(documentData.finalText[i],fontData.fStyle,this.globalData.fontManager.getFontByName(documentData.f).fFamily);var shapeData;if(charData){shapeData=charData.data;}else{shapeData=null;}matrixHelper.reset();if(shapeData&&shapeData.shapes&&shapeData.shapes.length){shapes=shapeData.shapes[0].it;matrixHelper.scale(documentData.finalSize/100,documentData.finalSize/100);shapeStr=this.createPathShape(matrixHelper,shapes);tSpan.setAttribute('d',shapeStr);}if(!this.isMasked){this.innerElem.appendChild(tParent);if(shapeData&&shapeData.shapes){// document.body.appendChild is needed to get exact measure of shape
  5651. document.body.appendChild(tCont);var boundingBox=tCont.getBBox();tCont.setAttribute('width',boundingBox.width+2);tCont.setAttribute('height',boundingBox.height+2);tCont.setAttribute('viewBox',boundingBox.x-1+' '+(boundingBox.y-1)+' '+(boundingBox.width+2)+' '+(boundingBox.height+2));var tContStyle=tCont.style;var tContTranslation='translate('+(boundingBox.x-1)+'px,'+(boundingBox.y-1)+'px)';tContStyle.transform=tContTranslation;tContStyle.webkitTransform=tContTranslation;letters[i].yOffset=boundingBox.y-1;}else{tCont.setAttribute('width',1);tCont.setAttribute('height',1);}tParent.appendChild(tCont);}else{this.innerElem.appendChild(tSpan);}}else{tSpan.textContent=letters[i].val;tSpan.setAttributeNS('http://www.w3.org/XML/1998/namespace','xml:space','preserve');if(!this.isMasked){this.innerElem.appendChild(tParent);//
  5652. var tStyle=tSpan.style;var tSpanTranslation='translate3d(0,'+-documentData.finalSize/1.2+'px,0)';tStyle.transform=tSpanTranslation;tStyle.webkitTransform=tSpanTranslation;}else{this.innerElem.appendChild(tSpan);}}//
  5653. if(!this.isMasked){this.textSpans[cnt]=tParent;}else{this.textSpans[cnt]=tSpan;}this.textSpans[cnt].style.display='block';this.textPaths[cnt]=tSpan;cnt+=1;}while(cnt<this.textSpans.length){this.textSpans[cnt].style.display='none';cnt+=1;}};HTextElement.prototype.renderInnerContent=function(){var svgStyle;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag){return;}if(this.isMasked&&this.finalTransform._matMdf){// Todo Benchmark if using this is better than getBBox
  5654. this.svgElement.setAttribute('viewBox',-this.finalTransform.mProp.p.v[0]+' '+-this.finalTransform.mProp.p.v[1]+' '+this.compW+' '+this.compH);svgStyle=this.svgElement.style;var translation='translate('+-this.finalTransform.mProp.p.v[0]+'px,'+-this.finalTransform.mProp.p.v[1]+'px)';svgStyle.transform=translation;svgStyle.webkitTransform=translation;}}this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);if(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag){return;}var i;var len;var count=0;var renderedLetters=this.textAnimator.renderedLetters;var letters=this.textProperty.currentData.l;len=letters.length;var renderedLetter;var textSpan;var textPath;for(i=0;i<len;i+=1){if(letters[i].n){count+=1;}else{textSpan=this.textSpans[i];textPath=this.textPaths[i];renderedLetter=renderedLetters[count];count+=1;if(renderedLetter._mdf.m){if(!this.isMasked){textSpan.style.webkitTransform=renderedLetter.m;textSpan.style.transform=renderedLetter.m;}else{textSpan.setAttribute('transform',renderedLetter.m);}}/// /textSpan.setAttribute('opacity',renderedLetter.o);
  5655. textSpan.style.opacity=renderedLetter.o;if(renderedLetter.sw&&renderedLetter._mdf.sw){textPath.setAttribute('stroke-width',renderedLetter.sw);}if(renderedLetter.sc&&renderedLetter._mdf.sc){textPath.setAttribute('stroke',renderedLetter.sc);}if(renderedLetter.fc&&renderedLetter._mdf.fc){textPath.setAttribute('fill',renderedLetter.fc);textPath.style.color=renderedLetter.fc;}}}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var boundingBox=this.innerElem.getBBox();if(this.currentBBox.w!==boundingBox.width){this.currentBBox.w=boundingBox.width;this.svgElement.setAttribute('width',boundingBox.width);}if(this.currentBBox.h!==boundingBox.height){this.currentBBox.h=boundingBox.height;this.svgElement.setAttribute('height',boundingBox.height);}var margin=1;if(this.currentBBox.w!==boundingBox.width+margin*2||this.currentBBox.h!==boundingBox.height+margin*2||this.currentBBox.x!==boundingBox.x-margin||this.currentBBox.y!==boundingBox.y-margin){this.currentBBox.w=boundingBox.width+margin*2;this.currentBBox.h=boundingBox.height+margin*2;this.currentBBox.x=boundingBox.x-margin;this.currentBBox.y=boundingBox.y-margin;this.svgElement.setAttribute('viewBox',this.currentBBox.x+' '+this.currentBBox.y+' '+this.currentBBox.w+' '+this.currentBBox.h);svgStyle=this.svgElement.style;var svgTransform='translate('+this.currentBBox.x+'px,'+this.currentBBox.y+'px)';svgStyle.transform=svgTransform;svgStyle.webkitTransform=svgTransform;}}};function HCameraElement(data,globalData,comp){this.initFrame();this.initBaseData(data,globalData,comp);this.initHierarchy();var getProp=PropertyFactory.getProp;this.pe=getProp(this,data.pe,0,0,this);if(data.ks.p.s){this.px=getProp(this,data.ks.p.x,1,0,this);this.py=getProp(this,data.ks.p.y,1,0,this);this.pz=getProp(this,data.ks.p.z,1,0,this);}else{this.p=getProp(this,data.ks.p,1,0,this);}if(data.ks.a){this.a=getProp(this,data.ks.a,1,0,this);}if(data.ks.or.k.length&&data.ks.or.k[0].to){var i;var len=data.ks.or.k.length;for(i=0;i<len;i+=1){data.ks.or.k[i].to=null;data.ks.or.k[i].ti=null;}}this.or=getProp(this,data.ks.or,1,degToRads,this);this.or.sh=true;this.rx=getProp(this,data.ks.rx,0,degToRads,this);this.ry=getProp(this,data.ks.ry,0,degToRads,this);this.rz=getProp(this,data.ks.rz,0,degToRads,this);this.mat=new Matrix();this._prevMat=new Matrix();this._isFirstFrame=true;// TODO: find a better way to make the HCamera element to be compatible with the LayerInterface and TransformInterface.
  5656. this.finalTransform={mProp:this};}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement);HCameraElement.prototype.setup=function(){var i;var len=this.comp.threeDElements.length;var comp;var perspectiveStyle;var containerStyle;for(i=0;i<len;i+=1){// [perspectiveElem,container]
  5657. comp=this.comp.threeDElements[i];if(comp.type==='3d'){perspectiveStyle=comp.perspectiveElem.style;containerStyle=comp.container.style;var perspective=this.pe.v+'px';var origin='0px 0px 0px';var matrix='matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)';perspectiveStyle.perspective=perspective;perspectiveStyle.webkitPerspective=perspective;containerStyle.transformOrigin=origin;containerStyle.mozTransformOrigin=origin;containerStyle.webkitTransformOrigin=origin;perspectiveStyle.transform=matrix;perspectiveStyle.webkitTransform=matrix;}}};HCameraElement.prototype.createElements=function(){};HCameraElement.prototype.hide=function(){};HCameraElement.prototype.renderFrame=function(){var _mdf=this._isFirstFrame;var i;var len;if(this.hierarchy){len=this.hierarchy.length;for(i=0;i<len;i+=1){_mdf=this.hierarchy[i].finalTransform.mProp._mdf||_mdf;}}if(_mdf||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){this.mat.reset();if(this.hierarchy){len=this.hierarchy.length-1;for(i=len;i>=0;i-=1){var mTransf=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-mTransf.p.v[0],-mTransf.p.v[1],mTransf.p.v[2]);this.mat.rotateX(-mTransf.or.v[0]).rotateY(-mTransf.or.v[1]).rotateZ(mTransf.or.v[2]);this.mat.rotateX(-mTransf.rx.v).rotateY(-mTransf.ry.v).rotateZ(mTransf.rz.v);this.mat.scale(1/mTransf.s.v[0],1/mTransf.s.v[1],1/mTransf.s.v[2]);this.mat.translate(mTransf.a.v[0],mTransf.a.v[1],mTransf.a.v[2]);}}if(this.p){this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]);}else{this.mat.translate(-this.px.v,-this.py.v,this.pz.v);}if(this.a){var diffVector;if(this.p){diffVector=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]];}else{diffVector=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];}var mag=Math.sqrt(Math.pow(diffVector[0],2)+Math.pow(diffVector[1],2)+Math.pow(diffVector[2],2));// var lookDir = getNormalizedPoint(getDiffVector(this.a.v,this.p.v));
  5658. var lookDir=[diffVector[0]/mag,diffVector[1]/mag,diffVector[2]/mag];var lookLengthOnXZ=Math.sqrt(lookDir[2]*lookDir[2]+lookDir[0]*lookDir[0]);var mRotationX=Math.atan2(lookDir[1],lookLengthOnXZ);var mRotationY=Math.atan2(lookDir[0],-lookDir[2]);this.mat.rotateY(mRotationY).rotateX(-mRotationX);}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v);this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]);this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0);this.mat.translate(0,0,this.pe.v);var hasMatrixChanged=!this._prevMat.equals(this.mat);if((hasMatrixChanged||this.pe._mdf)&&this.comp.threeDElements){len=this.comp.threeDElements.length;var comp;var perspectiveStyle;var containerStyle;for(i=0;i<len;i+=1){comp=this.comp.threeDElements[i];if(comp.type==='3d'){if(hasMatrixChanged){var matValue=this.mat.toCSS();containerStyle=comp.container.style;containerStyle.transform=matValue;containerStyle.webkitTransform=matValue;}if(this.pe._mdf){perspectiveStyle=comp.perspectiveElem.style;perspectiveStyle.perspective=this.pe.v+'px';perspectiveStyle.webkitPerspective=this.pe.v+'px';}}}this.mat.clone(this._prevMat);}}this._isFirstFrame=false;};HCameraElement.prototype.prepareFrame=function(num){this.prepareProperties(num,true);};HCameraElement.prototype.destroy=function(){};HCameraElement.prototype.getBaseElement=function(){return null;};function HImageElement(data,globalData,comp){this.assetData=globalData.getAssetData(data.refId);this.initElement(data,globalData,comp);}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement);HImageElement.prototype.createContent=function(){var assetPath=this.globalData.getAssetsPath(this.assetData);var img=new Image();if(this.data.hasMask){this.imageElem=createNS('image');this.imageElem.setAttribute('width',this.assetData.w+'px');this.imageElem.setAttribute('height',this.assetData.h+'px');this.imageElem.setAttributeNS('http://www.w3.org/1999/xlink','href',assetPath);this.layerElement.appendChild(this.imageElem);this.baseElement.setAttribute('width',this.assetData.w);this.baseElement.setAttribute('height',this.assetData.h);}else{this.layerElement.appendChild(img);}img.crossOrigin='anonymous';img.src=assetPath;if(this.data.ln){this.baseElement.setAttribute('id',this.data.ln);}};function HybridRendererBase(animationItem,config){this.animationItem=animationItem;this.layers=null;this.renderedFrame=-1;this.renderConfig={className:config&&config.className||'',imagePreserveAspectRatio:config&&config.imagePreserveAspectRatio||'xMidYMid slice',hideOnTransparent:!(config&&config.hideOnTransparent===false),filterSize:{width:config&&config.filterSize&&config.filterSize.width||'400%',height:config&&config.filterSize&&config.filterSize.height||'400%',x:config&&config.filterSize&&config.filterSize.x||'-100%',y:config&&config.filterSize&&config.filterSize.y||'-100%'}};this.globalData={_mdf:false,frameNum:-1,renderConfig:this.renderConfig};this.pendingElements=[];this.elements=[];this.threeDElements=[];this.destroyed=false;this.camera=null;this.supports3d=true;this.rendererType='html';}extendPrototype([BaseRenderer],HybridRendererBase);HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem;HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var element=this.pendingElements.pop();element.checkParenting();}};HybridRendererBase.prototype.appendElementInPos=function(element,pos){var newDOMElement=element.getBaseElement();if(!newDOMElement){return;}var layer=this.layers[pos];if(!layer.ddd||!this.supports3d){if(this.threeDElements){this.addTo3dContainer(newDOMElement,pos);}else{var i=0;var nextDOMElement;var nextLayer;var tmpDOMElement;while(i<pos){if(this.elements[i]&&this.elements[i]!==true&&this.elements[i].getBaseElement){nextLayer=this.elements[i];tmpDOMElement=this.layers[i].ddd?this.getThreeDContainerByPos(i):nextLayer.getBaseElement();nextDOMElement=tmpDOMElement||nextDOMElement;}i+=1;}if(nextDOMElement){if(!layer.ddd||!this.supports3d){this.layerElement.insertBefore(newDOMElement,nextDOMElement);}}else if(!layer.ddd||!this.supports3d){this.layerElement.appendChild(newDOMElement);}}}else{this.addTo3dContainer(newDOMElement,pos);}};HybridRendererBase.prototype.createShape=function(data){if(!this.supports3d){return new SVGShapeElement(data,this.globalData,this);}return new HShapeElement(data,this.globalData,this);};HybridRendererBase.prototype.createText=function(data){if(!this.supports3d){return new SVGTextLottieElement(data,this.globalData,this);}return new HTextElement(data,this.globalData,this);};HybridRendererBase.prototype.createCamera=function(data){this.camera=new HCameraElement(data,this.globalData,this);return this.camera;};HybridRendererBase.prototype.createImage=function(data){if(!this.supports3d){return new IImageElement(data,this.globalData,this);}return new HImageElement(data,this.globalData,this);};HybridRendererBase.prototype.createSolid=function(data){if(!this.supports3d){return new ISolidElement(data,this.globalData,this);}return new HSolidElement(data,this.globalData,this);};HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull;HybridRendererBase.prototype.getThreeDContainerByPos=function(pos){var i=0;var len=this.threeDElements.length;while(i<len){if(this.threeDElements[i].startPos<=pos&&this.threeDElements[i].endPos>=pos){return this.threeDElements[i].perspectiveElem;}i+=1;}return null;};HybridRendererBase.prototype.createThreeDContainer=function(pos,type){var perspectiveElem=createTag('div');var style;var containerStyle;styleDiv(perspectiveElem);var container=createTag('div');styleDiv(container);if(type==='3d'){style=perspectiveElem.style;style.width=this.globalData.compSize.w+'px';style.height=this.globalData.compSize.h+'px';var center='50% 50%';style.webkitTransformOrigin=center;style.mozTransformOrigin=center;style.transformOrigin=center;containerStyle=container.style;var matrix='matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)';containerStyle.transform=matrix;containerStyle.webkitTransform=matrix;}perspectiveElem.appendChild(container);// this.resizerElem.appendChild(perspectiveElem);
  5659. var threeDContainerData={container:container,perspectiveElem:perspectiveElem,startPos:pos,endPos:pos,type:type};this.threeDElements.push(threeDContainerData);return threeDContainerData;};HybridRendererBase.prototype.build3dContainers=function(){var i;var len=this.layers.length;var lastThreeDContainerData;var currentContainer='';for(i=0;i<len;i+=1){if(this.layers[i].ddd&&this.layers[i].ty!==3){if(currentContainer!=='3d'){currentContainer='3d';lastThreeDContainerData=this.createThreeDContainer(i,'3d');}lastThreeDContainerData.endPos=Math.max(lastThreeDContainerData.endPos,i);}else{if(currentContainer!=='2d'){currentContainer='2d';lastThreeDContainerData=this.createThreeDContainer(i,'2d');}lastThreeDContainerData.endPos=Math.max(lastThreeDContainerData.endPos,i);}}len=this.threeDElements.length;for(i=len-1;i>=0;i-=1){this.resizerElem.appendChild(this.threeDElements[i].perspectiveElem);}};HybridRendererBase.prototype.addTo3dContainer=function(elem,pos){var i=0;var len=this.threeDElements.length;while(i<len){if(pos<=this.threeDElements[i].endPos){var j=this.threeDElements[i].startPos;var nextElement;while(j<pos){if(this.elements[j]&&this.elements[j].getBaseElement){nextElement=this.elements[j].getBaseElement();}j+=1;}if(nextElement){this.threeDElements[i].container.insertBefore(elem,nextElement);}else{this.threeDElements[i].container.appendChild(elem);}break;}i+=1;}};HybridRendererBase.prototype.configAnimation=function(animData){var resizerElem=createTag('div');var wrapper=this.animationItem.wrapper;var style=resizerElem.style;style.width=animData.w+'px';style.height=animData.h+'px';this.resizerElem=resizerElem;styleDiv(resizerElem);style.transformStyle='flat';style.mozTransformStyle='flat';style.webkitTransformStyle='flat';if(this.renderConfig.className){resizerElem.setAttribute('class',this.renderConfig.className);}wrapper.appendChild(resizerElem);style.overflow='hidden';var svg=createNS('svg');svg.setAttribute('width','1');svg.setAttribute('height','1');styleDiv(svg);this.resizerElem.appendChild(svg);var defs=createNS('defs');svg.appendChild(defs);this.data=animData;// Mask animation
  5660. this.setupGlobalData(animData,svg);this.globalData.defs=defs;this.layers=animData.layers;this.layerElement=this.resizerElem;this.build3dContainers();this.updateContainerSize();};HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper){this.animationItem.wrapper.innerText='';}this.animationItem.container=null;this.globalData.defs=null;var i;var len=this.layers?this.layers.length:0;for(i=0;i<len;i+=1){this.elements[i].destroy();}this.elements.length=0;this.destroyed=true;this.animationItem=null;};HybridRendererBase.prototype.updateContainerSize=function(){var elementWidth=this.animationItem.wrapper.offsetWidth;var elementHeight=this.animationItem.wrapper.offsetHeight;var elementRel=elementWidth/elementHeight;var animationRel=this.globalData.compSize.w/this.globalData.compSize.h;var sx;var sy;var tx;var ty;if(animationRel>elementRel){sx=elementWidth/this.globalData.compSize.w;sy=elementWidth/this.globalData.compSize.w;tx=0;ty=(elementHeight-this.globalData.compSize.h*(elementWidth/this.globalData.compSize.w))/2;}else{sx=elementHeight/this.globalData.compSize.h;sy=elementHeight/this.globalData.compSize.h;tx=(elementWidth-this.globalData.compSize.w*(elementHeight/this.globalData.compSize.h))/2;ty=0;}var style=this.resizerElem.style;style.webkitTransform='matrix3d('+sx+',0,0,0,0,'+sy+',0,0,0,0,1,0,'+tx+','+ty+',0,1)';style.transform=style.webkitTransform;};HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame;HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display='none';};HybridRendererBase.prototype.show=function(){this.resizerElem.style.display='block';};HybridRendererBase.prototype.initItems=function(){this.buildAllItems();if(this.camera){this.camera.setup();}else{var cWidth=this.globalData.compSize.w;var cHeight=this.globalData.compSize.h;var i;var len=this.threeDElements.length;for(i=0;i<len;i+=1){var style=this.threeDElements[i].perspectiveElem.style;style.webkitPerspective=Math.sqrt(Math.pow(cWidth,2)+Math.pow(cHeight,2))+'px';style.perspective=style.webkitPerspective;}}};HybridRendererBase.prototype.searchExtraCompositions=function(assets){var i;var len=assets.length;var floatingContainer=createTag('div');for(i=0;i<len;i+=1){if(assets[i].xt){var comp=this.createComp(assets[i],floatingContainer,this.globalData.comp,null);comp.initExpressions();this.globalData.projectInterface.registerComposition(comp);}}};function HCompElement(data,globalData,comp){this.layers=data.layers;this.supports3d=!data.hasMask;this.completeLayers=false;this.pendingElements=[];this.elements=this.layers?createSizedArray(this.layers.length):[];this.initElement(data,globalData,comp);this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,globalData.frameRate,this):{_placeholder:true};}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement);HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements;HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements();// divElement.style.clip = 'rect(0px, '+this.data.w+'px, '+this.data.h+'px, 0px)';
  5661. if(this.data.hasMask){this.svgElement.setAttribute('width',this.data.w);this.svgElement.setAttribute('height',this.data.h);this.transformedElement=this.baseElement;}else{this.transformedElement=this.layerElement;}};HCompElement.prototype.addTo3dContainer=function(elem,pos){var j=0;var nextElement;while(j<pos){if(this.elements[j]&&this.elements[j].getBaseElement){nextElement=this.elements[j].getBaseElement();}j+=1;}if(nextElement){this.layerElement.insertBefore(elem,nextElement);}else{this.layerElement.appendChild(elem);}};HCompElement.prototype.createComp=function(data){if(!this.supports3d){return new SVGCompElement(data,this.globalData,this);}return new HCompElement(data,this.globalData,this);};function HybridRenderer(animationItem,config){this.animationItem=animationItem;this.layers=null;this.renderedFrame=-1;this.renderConfig={className:config&&config.className||'',imagePreserveAspectRatio:config&&config.imagePreserveAspectRatio||'xMidYMid slice',hideOnTransparent:!(config&&config.hideOnTransparent===false),filterSize:{width:config&&config.filterSize&&config.filterSize.width||'400%',height:config&&config.filterSize&&config.filterSize.height||'400%',x:config&&config.filterSize&&config.filterSize.x||'-100%',y:config&&config.filterSize&&config.filterSize.y||'-100%'}};this.globalData={_mdf:false,frameNum:-1,renderConfig:this.renderConfig};this.pendingElements=[];this.elements=[];this.threeDElements=[];this.destroyed=false;this.camera=null;this.supports3d=true;this.rendererType='html';}extendPrototype([HybridRendererBase],HybridRenderer);HybridRenderer.prototype.createComp=function(data){if(!this.supports3d){return new SVGCompElement(data,this.globalData,this);}return new HCompElement(data,this.globalData,this);};var Expressions=function(){var ob={};ob.initExpressions=initExpressions;function initExpressions(animation){var stackCount=0;var registers=[];function pushExpression(){stackCount+=1;}function popExpression(){stackCount-=1;if(stackCount===0){releaseInstances();}}function registerExpressionProperty(expression){if(registers.indexOf(expression)===-1){registers.push(expression);}}function releaseInstances(){var i;var len=registers.length;for(i=0;i<len;i+=1){registers[i].release();}registers.length=0;}animation.renderer.compInterface=CompExpressionInterface(animation.renderer);animation.renderer.globalData.projectInterface.registerComposition(animation.renderer);animation.renderer.globalData.pushExpression=pushExpression;animation.renderer.globalData.popExpression=popExpression;animation.renderer.globalData.registerExpressionProperty=registerExpressionProperty;}return ob;}();function _typeof$1(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$1=function _typeof(obj){return typeof obj;};}else{_typeof$1=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof$1(obj);}/* eslint-disable */ /*
  5662. Copyright 2014 David Bau.
  5663. Permission is hereby granted, free of charge, to any person obtaining
  5664. a copy of this software and associated documentation files (the
  5665. "Software"), to deal in the Software without restriction, including
  5666. without limitation the rights to use, copy, modify, merge, publish,
  5667. distribute, sublicense, and/or sell copies of the Software, and to
  5668. permit persons to whom the Software is furnished to do so, subject to
  5669. the following conditions:
  5670. The above copyright notice and this permission notice shall be
  5671. included in all copies or substantial portions of the Software.
  5672. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  5673. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  5674. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  5675. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  5676. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  5677. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  5678. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  5679. */function seedRandom(pool,math){//
  5680. // The following constants are related to IEEE 754 limits.
  5681. //
  5682. var global=this,width=256,// each RC4 output is 0 <= x < 256
  5683. chunks=6,// at least six RC4 outputs for each double
  5684. digits=52,// there are 52 significant digits in a double
  5685. rngname='random',// rngname: name for Math.random and Math.seedrandom
  5686. startdenom=math.pow(width,chunks),significance=math.pow(2,digits),overflow=significance*2,mask=width-1,nodecrypto;// node.js crypto module, initialized at the bottom.
  5687. //
  5688. // seedrandom()
  5689. // This is the seedrandom function described above.
  5690. //
  5691. function seedrandom(seed,options,callback){var key=[];options=options===true?{entropy:true}:options||{};// Flatten the seed string or build one from local entropy if needed.
  5692. var shortseed=mixkey(flatten(options.entropy?[seed,tostring(pool)]:seed===null?autoseed():seed,3),key);// Use the seed to initialize an ARC4 generator.
  5693. var arc4=new ARC4(key);// This function returns a random double in [0, 1) that contains
  5694. // randomness in every bit of the mantissa of the IEEE 754 value.
  5695. var prng=function prng(){var n=arc4.g(chunks),// Start with a numerator n < 2 ^ 48
  5696. d=startdenom,// and denominator d = 2 ^ 48.
  5697. x=0;// and no 'extra last byte'.
  5698. while(n<significance){// Fill up all significant digits by
  5699. n=(n+x)*width;// shifting numerator and
  5700. d*=width;// denominator and generating a
  5701. x=arc4.g(1);// new least-significant-byte.
  5702. }while(n>=overflow){// To avoid rounding up, before adding
  5703. n/=2;// last byte, shift everything
  5704. d/=2;// right using integer math until
  5705. x>>>=1;// we have exactly the desired bits.
  5706. }return(n+x)/d;// Form the number within [0, 1).
  5707. };prng.int32=function(){return arc4.g(4)|0;};prng.quick=function(){return arc4.g(4)/0x100000000;};prng["double"]=prng;// Mix the randomness into accumulated entropy.
  5708. mixkey(tostring(arc4.S),pool);// Calling convention: what to return as a function of prng, seed, is_math.
  5709. return(options.pass||callback||function(prng,seed,is_math_call,state){if(state){// Load the arc4 state from the given state if it has an S array.
  5710. if(state.S){copy(state,arc4);}// Only provide the .state method if requested via options.state.
  5711. prng.state=function(){return copy(arc4,{});};}// If called as a method of Math (Math.seedrandom()), mutate
  5712. // Math.random because that is how seedrandom.js has worked since v1.0.
  5713. if(is_math_call){math[rngname]=prng;return seed;}// Otherwise, it is a newer calling convention, so return the
  5714. // prng directly.
  5715. else return prng;})(prng,shortseed,'global'in options?options.global:this==math,options.state);}math['seed'+rngname]=seedrandom;//
  5716. // ARC4
  5717. //
  5718. // An ARC4 implementation. The constructor takes a key in the form of
  5719. // an array of at most (width) integers that should be 0 <= x < (width).
  5720. //
  5721. // The g(count) method returns a pseudorandom integer that concatenates
  5722. // the next (count) outputs from ARC4. Its return value is a number x
  5723. // that is in the range 0 <= x < (width ^ count).
  5724. //
  5725. function ARC4(key){var t,keylen=key.length,me=this,i=0,j=me.i=me.j=0,s=me.S=[];// The empty key [] is treated as [0].
  5726. if(!keylen){key=[keylen++];}// Set up S using the standard key scheduling algorithm.
  5727. while(i<width){s[i]=i++;}for(i=0;i<width;i++){s[i]=s[j=mask&j+key[i%keylen]+(t=s[i])];s[j]=t;}// The "g" method returns the next (count) outputs as one number.
  5728. me.g=function(count){// Using instance members instead of closure state nearly doubles speed.
  5729. var t,r=0,i=me.i,j=me.j,s=me.S;while(count--){t=s[i=mask&i+1];r=r*width+s[mask&(s[i]=s[j=mask&j+t])+(s[j]=t)];}me.i=i;me.j=j;return r;// For robust unpredictability, the function call below automatically
  5730. // discards an initial batch of values. This is called RC4-drop[256].
  5731. // See http://google.com/search?q=rsa+fluhrer+response&btnI
  5732. };}//
  5733. // copy()
  5734. // Copies internal state of ARC4 to or from a plain object.
  5735. //
  5736. function copy(f,t){t.i=f.i;t.j=f.j;t.S=f.S.slice();return t;}//
  5737. // flatten()
  5738. // Converts an object tree to nested arrays of strings.
  5739. //
  5740. function flatten(obj,depth){var result=[],typ=_typeof$1(obj),prop;if(depth&&typ=='object'){for(prop in obj){try{result.push(flatten(obj[prop],depth-1));}catch(e){}}}return result.length?result:typ=='string'?obj:obj+'\0';}//
  5741. // mixkey()
  5742. // Mixes a string seed into a key that is an array of integers, and
  5743. // returns a shortened string seed that is equivalent to the result key.
  5744. //
  5745. function mixkey(seed,key){var stringseed=seed+'',smear,j=0;while(j<stringseed.length){key[mask&j]=mask&(smear^=key[mask&j]*19)+stringseed.charCodeAt(j++);}return tostring(key);}//
  5746. // autoseed()
  5747. // Returns an object for autoseeding, using window.crypto and Node crypto
  5748. // module if available.
  5749. //
  5750. function autoseed(){try{if(nodecrypto);var out=new Uint8Array(width);(global.crypto||global.msCrypto).getRandomValues(out);return tostring(out);}catch(e){var browser=global.navigator,plugins=browser&&browser.plugins;return[+new Date(),global,plugins,global.screen,tostring(pool)];}}//
  5751. // tostring()
  5752. // Converts an array of charcodes to a string
  5753. //
  5754. function tostring(a){return String.fromCharCode.apply(0,a);}//
  5755. // When seedrandom.js is loaded, we immediately mix a few bits
  5756. // from the built-in RNG into the entropy pool. Because we do
  5757. // not want to interfere with deterministic PRNG state later,
  5758. // seedrandom will not call math.random on its own again after
  5759. // initialization.
  5760. //
  5761. mixkey(math.random(),pool);//
  5762. // Nodejs and AMD support: export the implementation as a module using
  5763. // either convention.
  5764. //
  5765. // End anonymous scope, and pass initial values.
  5766. }function initialize$2(BMMath){seedRandom([],BMMath);}var propTypes={SHAPE:'shape'};function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}var ExpressionManager=function(){var ob={};var Math=BMMath;var window=null;var document=null;var XMLHttpRequest=null;var fetch=null;var frames=null;initialize$2(BMMath);function $bm_isInstanceOfArray(arr){return arr.constructor===Array||arr.constructor===Float32Array;}function isNumerable(tOfV,v){return tOfV==='number'||tOfV==='boolean'||tOfV==='string'||v instanceof Number;}function $bm_neg(a){var tOfA=_typeof(a);if(tOfA==='number'||tOfA==='boolean'||a instanceof Number){return-a;}if($bm_isInstanceOfArray(a)){var i;var lenA=a.length;var retArr=[];for(i=0;i<lenA;i+=1){retArr[i]=-a[i];}return retArr;}if(a.propType){return a.v;}return-a;}var easeInBez=BezierFactory.getBezierEasing(0.333,0,0.833,0.833,'easeIn').get;var easeOutBez=BezierFactory.getBezierEasing(0.167,0.167,0.667,1,'easeOut').get;var easeInOutBez=BezierFactory.getBezierEasing(0.33,0,0.667,1,'easeInOut').get;function sum(a,b){var tOfA=_typeof(a);var tOfB=_typeof(b);if(tOfA==='string'||tOfB==='string'){return a+b;}if(isNumerable(tOfA,a)&&isNumerable(tOfB,b)){return a+b;}if($bm_isInstanceOfArray(a)&&isNumerable(tOfB,b)){a=a.slice(0);a[0]+=b;return a;}if(isNumerable(tOfA,a)&&$bm_isInstanceOfArray(b)){b=b.slice(0);b[0]=a+b[0];return b;}if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(b)){var i=0;var lenA=a.length;var lenB=b.length;var retArr=[];while(i<lenA||i<lenB){if((typeof a[i]==='number'||a[i]instanceof Number)&&(typeof b[i]==='number'||b[i]instanceof Number)){retArr[i]=a[i]+b[i];}else{retArr[i]=b[i]===undefined?a[i]:a[i]||b[i];}i+=1;}return retArr;}return 0;}var add=sum;function sub(a,b){var tOfA=_typeof(a);var tOfB=_typeof(b);if(isNumerable(tOfA,a)&&isNumerable(tOfB,b)){if(tOfA==='string'){a=parseInt(a,10);}if(tOfB==='string'){b=parseInt(b,10);}return a-b;}if($bm_isInstanceOfArray(a)&&isNumerable(tOfB,b)){a=a.slice(0);a[0]-=b;return a;}if(isNumerable(tOfA,a)&&$bm_isInstanceOfArray(b)){b=b.slice(0);b[0]=a-b[0];return b;}if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(b)){var i=0;var lenA=a.length;var lenB=b.length;var retArr=[];while(i<lenA||i<lenB){if((typeof a[i]==='number'||a[i]instanceof Number)&&(typeof b[i]==='number'||b[i]instanceof Number)){retArr[i]=a[i]-b[i];}else{retArr[i]=b[i]===undefined?a[i]:a[i]||b[i];}i+=1;}return retArr;}return 0;}function mul(a,b){var tOfA=_typeof(a);var tOfB=_typeof(b);var arr;if(isNumerable(tOfA,a)&&isNumerable(tOfB,b)){return a*b;}var i;var len;if($bm_isInstanceOfArray(a)&&isNumerable(tOfB,b)){len=a.length;arr=createTypedArray('float32',len);for(i=0;i<len;i+=1){arr[i]=a[i]*b;}return arr;}if(isNumerable(tOfA,a)&&$bm_isInstanceOfArray(b)){len=b.length;arr=createTypedArray('float32',len);for(i=0;i<len;i+=1){arr[i]=a*b[i];}return arr;}return 0;}function div(a,b){var tOfA=_typeof(a);var tOfB=_typeof(b);var arr;if(isNumerable(tOfA,a)&&isNumerable(tOfB,b)){return a/b;}var i;var len;if($bm_isInstanceOfArray(a)&&isNumerable(tOfB,b)){len=a.length;arr=createTypedArray('float32',len);for(i=0;i<len;i+=1){arr[i]=a[i]/b;}return arr;}if(isNumerable(tOfA,a)&&$bm_isInstanceOfArray(b)){len=b.length;arr=createTypedArray('float32',len);for(i=0;i<len;i+=1){arr[i]=a/b[i];}return arr;}return 0;}function mod(a,b){if(typeof a==='string'){a=parseInt(a,10);}if(typeof b==='string'){b=parseInt(b,10);}return a%b;}var $bm_sum=sum;var $bm_sub=sub;var $bm_mul=mul;var $bm_div=div;var $bm_mod=mod;function clamp(num,min,max){if(min>max){var mm=max;max=min;min=mm;}return Math.min(Math.max(num,min),max);}function radiansToDegrees(val){return val/degToRads;}var radians_to_degrees=radiansToDegrees;function degreesToRadians(val){return val*degToRads;}var degrees_to_radians=radiansToDegrees;var helperLengthArray=[0,0,0,0,0,0];function length(arr1,arr2){if(typeof arr1==='number'||arr1 instanceof Number){arr2=arr2||0;return Math.abs(arr1-arr2);}if(!arr2){arr2=helperLengthArray;}var i;var len=Math.min(arr1.length,arr2.length);var addedLength=0;for(i=0;i<len;i+=1){addedLength+=Math.pow(arr2[i]-arr1[i],2);}return Math.sqrt(addedLength);}function normalize(vec){return div(vec,length(vec));}function rgbToHsl(val){var r=val[0];var g=val[1];var b=val[2];var max=Math.max(r,g,b);var min=Math.min(r,g,b);var h;var s;var l=(max+min)/2;if(max===min){h=0;// achromatic
  5767. s=0;// achromatic
  5768. }else{var d=max-min;s=l>0.5?d/(2-max-min):d/(max+min);switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break;}h/=6;}return[h,s,l,val[3]];}function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;}function hslToRgb(val){var h=val[0];var s=val[1];var l=val[2];var r;var g;var b;if(s===0){r=l;// achromatic
  5769. b=l;// achromatic
  5770. g=l;// achromatic
  5771. }else{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);}return[r,g,b,val[3]];}function linear(t,tMin,tMax,value1,value2){if(value1===undefined||value2===undefined){value1=tMin;value2=tMax;tMin=0;tMax=1;}if(tMax<tMin){var _tMin=tMax;tMax=tMin;tMin=_tMin;}if(t<=tMin){return value1;}if(t>=tMax){return value2;}var perc=tMax===tMin?0:(t-tMin)/(tMax-tMin);if(!value1.length){return value1+(value2-value1)*perc;}var i;var len=value1.length;var arr=createTypedArray('float32',len);for(i=0;i<len;i+=1){arr[i]=value1[i]+(value2[i]-value1[i])*perc;}return arr;}function random(min,max){if(max===undefined){if(min===undefined){min=0;max=1;}else{max=min;min=undefined;}}if(max.length){var i;var len=max.length;if(!min){min=createTypedArray('float32',len);}var arr=createTypedArray('float32',len);var rnd=BMMath.random();for(i=0;i<len;i+=1){arr[i]=min[i]+rnd*(max[i]-min[i]);}return arr;}if(min===undefined){min=0;}var rndm=BMMath.random();return min+rndm*(max-min);}function createPath(points,inTangents,outTangents,closed){var i;var len=points.length;var path=shapePool.newElement();path.setPathData(!!closed,len);var arrPlaceholder=[0,0];var inVertexPoint;var outVertexPoint;for(i=0;i<len;i+=1){inVertexPoint=inTangents&&inTangents[i]?inTangents[i]:arrPlaceholder;outVertexPoint=outTangents&&outTangents[i]?outTangents[i]:arrPlaceholder;path.setTripleAt(points[i][0],points[i][1],outVertexPoint[0]+points[i][0],outVertexPoint[1]+points[i][1],inVertexPoint[0]+points[i][0],inVertexPoint[1]+points[i][1],i,true);}return path;}function initiateExpression(elem,data,property){var val=data.x;var needsVelocity=/velocity(?![\w\d])/.test(val);var _needsRandom=val.indexOf('random')!==-1;var elemType=elem.data.ty;var transform;var $bm_transform;var content;var effect;var thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime;Object.defineProperty(thisProperty,'value',{get:function get(){return thisProperty.v;}});elem.comp.frameDuration=1/elem.comp.globalData.frameRate;elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate;var outPoint=elem.data.op/elem.comp.globalData.frameRate;var width=elem.data.sw?elem.data.sw:0;var height=elem.data.sh?elem.data.sh:0;var name=elem.data.nm;var loopIn;var loop_in;var loopOut;var loop_out;var smooth;var toWorld;var fromWorld;var fromComp;var toComp;var fromCompToSurface;var position;var rotation;var anchorPoint;var scale;var thisLayer;var thisComp;var mask;var valueAtTime;var velocityAtTime;var scoped_bm_rt;// val = val.replace(/(\\?"|')((http)(s)?(:\/))?\/.*?(\\?"|')/g, "\"\""); // deter potential network calls
  5772. var expression_function=eval('[function _expression_function(){'+val+';scoped_bm_rt=$bm_rt}]')[0];// eslint-disable-line no-eval
  5773. var numKeys=property.kf?data.k.length:0;var active=!this.data||this.data.hd!==true;var wiggle=function wiggle(freq,amp){var iWiggle;var j;var lenWiggle=this.pv.length?this.pv.length:1;var addedAmps=createTypedArray('float32',lenWiggle);freq=5;var iterations=Math.floor(time*freq);iWiggle=0;j=0;while(iWiggle<iterations){// var rnd = BMMath.random();
  5774. for(j=0;j<lenWiggle;j+=1){addedAmps[j]+=-amp+amp*2*BMMath.random();// addedAmps[j] += -amp + amp*2*rnd;
  5775. }iWiggle+=1;}// var rnd2 = BMMath.random();
  5776. var periods=time*freq;var perc=periods-Math.floor(periods);var arr=createTypedArray('float32',lenWiggle);if(lenWiggle>1){for(j=0;j<lenWiggle;j+=1){arr[j]=this.pv[j]+addedAmps[j]+(-amp+amp*2*BMMath.random())*perc;// arr[j] = this.pv[j] + addedAmps[j] + (-amp + amp*2*rnd)*perc;
  5777. // arr[i] = this.pv[i] + addedAmp + amp1*perc + amp2*(1-perc);
  5778. }return arr;}return this.pv+addedAmps[0]+(-amp+amp*2*BMMath.random())*perc;}.bind(this);if(thisProperty.loopIn){loopIn=thisProperty.loopIn.bind(thisProperty);loop_in=loopIn;}if(thisProperty.loopOut){loopOut=thisProperty.loopOut.bind(thisProperty);loop_out=loopOut;}if(thisProperty.smooth){smooth=thisProperty.smooth.bind(thisProperty);}function loopInDuration(type,duration){return loopIn(type,duration,true);}function loopOutDuration(type,duration){return loopOut(type,duration,true);}if(this.getValueAtTime){valueAtTime=this.getValueAtTime.bind(this);}if(this.getVelocityAtTime){velocityAtTime=this.getVelocityAtTime.bind(this);}var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(elem1,elem2){var fVec=[elem2[0]-elem1[0],elem2[1]-elem1[1],elem2[2]-elem1[2]];var pitch=Math.atan2(fVec[0],Math.sqrt(fVec[1]*fVec[1]+fVec[2]*fVec[2]))/degToRads;var yaw=-Math.atan2(fVec[1],fVec[2])/degToRads;return[yaw,pitch,0];}function easeOut(t,tMin,tMax,val1,val2){return applyEase(easeOutBez,t,tMin,tMax,val1,val2);}function easeIn(t,tMin,tMax,val1,val2){return applyEase(easeInBez,t,tMin,tMax,val1,val2);}function ease(t,tMin,tMax,val1,val2){return applyEase(easeInOutBez,t,tMin,tMax,val1,val2);}function applyEase(fn,t,tMin,tMax,val1,val2){if(val1===undefined){val1=tMin;val2=tMax;}else{t=(t-tMin)/(tMax-tMin);}if(t>1){t=1;}else if(t<0){t=0;}var mult=fn(t);if($bm_isInstanceOfArray(val1)){var iKey;var lenKey=val1.length;var arr=createTypedArray('float32',lenKey);for(iKey=0;iKey<lenKey;iKey+=1){arr[iKey]=(val2[iKey]-val1[iKey])*mult+val1[iKey];}return arr;}return(val2-val1)*mult+val1;}function nearestKey(time){var iKey;var lenKey=data.k.length;var index;var keyTime;if(!data.k.length||typeof data.k[0]==='number'){index=0;keyTime=0;}else{index=-1;time*=elem.comp.globalData.frameRate;if(time<data.k[0].t){index=1;keyTime=data.k[0].t;}else{for(iKey=0;iKey<lenKey-1;iKey+=1){if(time===data.k[iKey].t){index=iKey+1;keyTime=data.k[iKey].t;break;}else if(time>data.k[iKey].t&&time<data.k[iKey+1].t){if(time-data.k[iKey].t>data.k[iKey+1].t-time){index=iKey+2;keyTime=data.k[iKey+1].t;}else{index=iKey+1;keyTime=data.k[iKey].t;}break;}}if(index===-1){index=iKey+1;keyTime=data.k[iKey].t;}}}var obKey={};obKey.index=index;obKey.time=keyTime/elem.comp.globalData.frameRate;return obKey;}function key(ind){var obKey;var iKey;var lenKey;if(!data.k.length||typeof data.k[0]==='number'){throw new Error('The property has no keyframe at index '+ind);}ind-=1;obKey={time:data.k[ind].t/elem.comp.globalData.frameRate,value:[]};var arr=Object.prototype.hasOwnProperty.call(data.k[ind],'s')?data.k[ind].s:data.k[ind-1].e;lenKey=arr.length;for(iKey=0;iKey<lenKey;iKey+=1){obKey[iKey]=arr[iKey];obKey.value[iKey]=arr[iKey];}return obKey;}function framesToTime(fr,fps){if(!fps){fps=elem.comp.globalData.frameRate;}return fr/fps;}function timeToFrames(t,fps){if(!t&&t!==0){t=time;}if(!fps){fps=elem.comp.globalData.frameRate;}return t*fps;}function seedRandom(seed){BMMath.seedrandom(randSeed+seed);}function sourceRectAtTime(){return elem.sourceRectAtTime();}function substring(init,end){if(typeof value==='string'){if(end===undefined){return value.substring(init);}return value.substring(init,end);}return'';}function substr(init,end){if(typeof value==='string'){if(end===undefined){return value.substr(init);}return value.substr(init,end);}return'';}function posterizeTime(framesPerSecond){time=framesPerSecond===0?0:Math.floor(time*framesPerSecond)/framesPerSecond;value=valueAtTime(time);}var time;var velocity;var value;var text;var textIndex;var textTotal;var selectorValue;var index=elem.data.ind;var hasParent=!!(elem.hierarchy&&elem.hierarchy.length);var parent;var randSeed=Math.floor(Math.random()*1000000);var globalData=elem.globalData;function executeExpression(_value){// globalData.pushExpression();
  5779. value=_value;if(this.frameExpressionId===elem.globalData.frameId&&this.propType!=='textSelector'){return value;}if(this.propType==='textSelector'){textIndex=this.textIndex;textTotal=this.textTotal;selectorValue=this.selectorValue;}if(!thisLayer){text=elem.layerInterface.text;thisLayer=elem.layerInterface;thisComp=elem.comp.compInterface;toWorld=thisLayer.toWorld.bind(thisLayer);fromWorld=thisLayer.fromWorld.bind(thisLayer);fromComp=thisLayer.fromComp.bind(thisLayer);toComp=thisLayer.toComp.bind(thisLayer);mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null;fromCompToSurface=fromComp;}if(!transform){transform=elem.layerInterface('ADBE Transform Group');$bm_transform=transform;if(transform){anchorPoint=transform.anchorPoint;/* position = transform.position;
  5780. rotation = transform.rotation;
  5781. scale = transform.scale; */}}if(elemType===4&&!content){content=thisLayer('ADBE Root Vectors Group');}if(!effect){effect=thisLayer(4);}hasParent=!!(elem.hierarchy&&elem.hierarchy.length);if(hasParent&&!parent){parent=elem.hierarchy[0].layerInterface;}time=this.comp.renderedFrame/this.comp.globalData.frameRate;if(_needsRandom){seedRandom(randSeed+time);}if(needsVelocity){velocity=velocityAtTime(time);}expression_function();this.frameExpressionId=elem.globalData.frameId;// TODO: Check if it's possible to return on ShapeInterface the .v value
  5782. // Changed this to a ternary operation because Rollup failed compiling it correctly
  5783. scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt;return scoped_bm_rt;}// Bundlers will see these as dead code and unless we reference them
  5784. executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData];return executeExpression;}ob.initiateExpression=initiateExpression;ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath];return ob;}();var expressionHelpers=function(){function searchExpressions(elem,data,prop){if(data.x){prop.k=true;prop.x=true;prop.initiateExpression=ExpressionManager.initiateExpression;prop.effectsSequence.push(prop.initiateExpression(elem,data,prop).bind(prop));}}function getValueAtTime(frameNum){frameNum*=this.elem.globalData.frameRate;frameNum-=this.offsetTime;if(frameNum!==this._cachingAtTime.lastFrame){this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<frameNum?this._cachingAtTime.lastIndex:0;this._cachingAtTime.value=this.interpolateValue(frameNum,this._cachingAtTime);this._cachingAtTime.lastFrame=frameNum;}return this._cachingAtTime.value;}function getSpeedAtTime(frameNum){var delta=-0.01;var v1=this.getValueAtTime(frameNum);var v2=this.getValueAtTime(frameNum+delta);var speed=0;if(v1.length){var i;for(i=0;i<v1.length;i+=1){speed+=Math.pow(v2[i]-v1[i],2);}speed=Math.sqrt(speed)*100;}else{speed=0;}return speed;}function getVelocityAtTime(frameNum){if(this.vel!==undefined){return this.vel;}var delta=-0.001;// frameNum += this.elem.data.st;
  5785. var v1=this.getValueAtTime(frameNum);var v2=this.getValueAtTime(frameNum+delta);var velocity;if(v1.length){velocity=createTypedArray('float32',v1.length);var i;for(i=0;i<v1.length;i+=1){// removing frameRate
  5786. // if needed, don't add it here
  5787. // velocity[i] = this.elem.globalData.frameRate*((v2[i] - v1[i])/delta);
  5788. velocity[i]=(v2[i]-v1[i])/delta;}}else{velocity=(v2-v1)/delta;}return velocity;}function getStaticValueAtTime(){return this.pv;}function setGroupProperty(propertyGroup){this.propertyGroup=propertyGroup;}return{searchExpressions:searchExpressions,getSpeedAtTime:getSpeedAtTime,getVelocityAtTime:getVelocityAtTime,getValueAtTime:getValueAtTime,getStaticValueAtTime:getStaticValueAtTime,setGroupProperty:setGroupProperty};}();function addPropertyDecorator(){function loopOut(type,duration,durationFlag){if(!this.k||!this.keyframes){return this.pv;}type=type?type.toLowerCase():'';var currentFrame=this.comp.renderedFrame;var keyframes=this.keyframes;var lastKeyFrame=keyframes[keyframes.length-1].t;if(currentFrame<=lastKeyFrame){return this.pv;}var cycleDuration;var firstKeyFrame;if(!durationFlag){if(!duration||duration>keyframes.length-1){duration=keyframes.length-1;}firstKeyFrame=keyframes[keyframes.length-1-duration].t;cycleDuration=lastKeyFrame-firstKeyFrame;}else{if(!duration){cycleDuration=Math.max(0,lastKeyFrame-this.elem.data.ip);}else{cycleDuration=Math.abs(lastKeyFrame-this.elem.comp.globalData.frameRate*duration);}firstKeyFrame=lastKeyFrame-cycleDuration;}var i;var len;var ret;if(type==='pingpong'){var iterations=Math.floor((currentFrame-firstKeyFrame)/cycleDuration);if(iterations%2!==0){return this.getValueAtTime((cycleDuration-(currentFrame-firstKeyFrame)%cycleDuration+firstKeyFrame)/this.comp.globalData.frameRate,0);// eslint-disable-line
  5789. }}else if(type==='offset'){var initV=this.getValueAtTime(firstKeyFrame/this.comp.globalData.frameRate,0);var endV=this.getValueAtTime(lastKeyFrame/this.comp.globalData.frameRate,0);var current=this.getValueAtTime(((currentFrame-firstKeyFrame)%cycleDuration+firstKeyFrame)/this.comp.globalData.frameRate,0);// eslint-disable-line
  5790. var repeats=Math.floor((currentFrame-firstKeyFrame)/cycleDuration);if(this.pv.length){ret=new Array(initV.length);len=ret.length;for(i=0;i<len;i+=1){ret[i]=(endV[i]-initV[i])*repeats+current[i];}return ret;}return(endV-initV)*repeats+current;}else if(type==='continue'){var lastValue=this.getValueAtTime(lastKeyFrame/this.comp.globalData.frameRate,0);var nextLastValue=this.getValueAtTime((lastKeyFrame-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){ret=new Array(lastValue.length);len=ret.length;for(i=0;i<len;i+=1){ret[i]=lastValue[i]+(lastValue[i]-nextLastValue[i])*((currentFrame-lastKeyFrame)/this.comp.globalData.frameRate)/0.0005;// eslint-disable-line
  5791. }return ret;}return lastValue+(lastValue-nextLastValue)*((currentFrame-lastKeyFrame)/0.001);}return this.getValueAtTime(((currentFrame-firstKeyFrame)%cycleDuration+firstKeyFrame)/this.comp.globalData.frameRate,0);// eslint-disable-line
  5792. }function loopIn(type,duration,durationFlag){if(!this.k){return this.pv;}type=type?type.toLowerCase():'';var currentFrame=this.comp.renderedFrame;var keyframes=this.keyframes;var firstKeyFrame=keyframes[0].t;if(currentFrame>=firstKeyFrame){return this.pv;}var cycleDuration;var lastKeyFrame;if(!durationFlag){if(!duration||duration>keyframes.length-1){duration=keyframes.length-1;}lastKeyFrame=keyframes[duration].t;cycleDuration=lastKeyFrame-firstKeyFrame;}else{if(!duration){cycleDuration=Math.max(0,this.elem.data.op-firstKeyFrame);}else{cycleDuration=Math.abs(this.elem.comp.globalData.frameRate*duration);}lastKeyFrame=firstKeyFrame+cycleDuration;}var i;var len;var ret;if(type==='pingpong'){var iterations=Math.floor((firstKeyFrame-currentFrame)/cycleDuration);if(iterations%2===0){return this.getValueAtTime(((firstKeyFrame-currentFrame)%cycleDuration+firstKeyFrame)/this.comp.globalData.frameRate,0);// eslint-disable-line
  5793. }}else if(type==='offset'){var initV=this.getValueAtTime(firstKeyFrame/this.comp.globalData.frameRate,0);var endV=this.getValueAtTime(lastKeyFrame/this.comp.globalData.frameRate,0);var current=this.getValueAtTime((cycleDuration-(firstKeyFrame-currentFrame)%cycleDuration+firstKeyFrame)/this.comp.globalData.frameRate,0);var repeats=Math.floor((firstKeyFrame-currentFrame)/cycleDuration)+1;if(this.pv.length){ret=new Array(initV.length);len=ret.length;for(i=0;i<len;i+=1){ret[i]=current[i]-(endV[i]-initV[i])*repeats;}return ret;}return current-(endV-initV)*repeats;}else if(type==='continue'){var firstValue=this.getValueAtTime(firstKeyFrame/this.comp.globalData.frameRate,0);var nextFirstValue=this.getValueAtTime((firstKeyFrame+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){ret=new Array(firstValue.length);len=ret.length;for(i=0;i<len;i+=1){ret[i]=firstValue[i]+(firstValue[i]-nextFirstValue[i])*(firstKeyFrame-currentFrame)/0.001;}return ret;}return firstValue+(firstValue-nextFirstValue)*(firstKeyFrame-currentFrame)/0.001;}return this.getValueAtTime((cycleDuration-((firstKeyFrame-currentFrame)%cycleDuration+firstKeyFrame))/this.comp.globalData.frameRate,0);// eslint-disable-line
  5794. }function smooth(width,samples){if(!this.k){return this.pv;}width=(width||0.4)*0.5;samples=Math.floor(samples||5);if(samples<=1){return this.pv;}var currentTime=this.comp.renderedFrame/this.comp.globalData.frameRate;var initFrame=currentTime-width;var endFrame=currentTime+width;var sampleFrequency=samples>1?(endFrame-initFrame)/(samples-1):1;var i=0;var j=0;var value;if(this.pv.length){value=createTypedArray('float32',this.pv.length);}else{value=0;}var sampleValue;while(i<samples){sampleValue=this.getValueAtTime(initFrame+i*sampleFrequency);if(this.pv.length){for(j=0;j<this.pv.length;j+=1){value[j]+=sampleValue[j];}}else{value+=sampleValue;}i+=1;}if(this.pv.length){for(j=0;j<this.pv.length;j+=1){value[j]/=samples;}}else{value/=samples;}return value;}function getTransformValueAtTime(time){if(!this._transformCachingAtTime){this._transformCachingAtTime={v:new Matrix()};}/// /
  5795. var matrix=this._transformCachingAtTime.v;matrix.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){var anchor=this.a.getValueAtTime(time);matrix.translate(-anchor[0]*this.a.mult,-anchor[1]*this.a.mult,anchor[2]*this.a.mult);}if(this.appliedTransformations<2){var scale=this.s.getValueAtTime(time);matrix.scale(scale[0]*this.s.mult,scale[1]*this.s.mult,scale[2]*this.s.mult);}if(this.sk&&this.appliedTransformations<3){var skew=this.sk.getValueAtTime(time);var skewAxis=this.sa.getValueAtTime(time);matrix.skewFromAxis(-skew*this.sk.mult,skewAxis*this.sa.mult);}if(this.r&&this.appliedTransformations<4){var rotation=this.r.getValueAtTime(time);matrix.rotate(-rotation*this.r.mult);}else if(!this.r&&this.appliedTransformations<4){var rotationZ=this.rz.getValueAtTime(time);var rotationY=this.ry.getValueAtTime(time);var rotationX=this.rx.getValueAtTime(time);var orientation=this.or.getValueAtTime(time);matrix.rotateZ(-rotationZ*this.rz.mult).rotateY(rotationY*this.ry.mult).rotateX(rotationX*this.rx.mult).rotateZ(-orientation[2]*this.or.mult).rotateY(orientation[1]*this.or.mult).rotateX(orientation[0]*this.or.mult);}if(this.data.p&&this.data.p.s){var positionX=this.px.getValueAtTime(time);var positionY=this.py.getValueAtTime(time);if(this.data.p.z){var positionZ=this.pz.getValueAtTime(time);matrix.translate(positionX*this.px.mult,positionY*this.py.mult,-positionZ*this.pz.mult);}else{matrix.translate(positionX*this.px.mult,positionY*this.py.mult,0);}}else{var position=this.p.getValueAtTime(time);matrix.translate(position[0]*this.p.mult,position[1]*this.p.mult,-position[2]*this.p.mult);}return matrix;/// /
  5796. }function getTransformStaticValueAtTime(){return this.v.clone(new Matrix());}var getTransformProperty=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(elem,data,container){var prop=getTransformProperty(elem,data,container);if(prop.dynamicProperties.length){prop.getValueAtTime=getTransformValueAtTime.bind(prop);}else{prop.getValueAtTime=getTransformStaticValueAtTime.bind(prop);}prop.setGroupProperty=expressionHelpers.setGroupProperty;return prop;};var propertyGetProp=PropertyFactory.getProp;PropertyFactory.getProp=function(elem,data,type,mult,container){var prop=propertyGetProp(elem,data,type,mult,container);// prop.getVelocityAtTime = getVelocityAtTime;
  5797. // prop.loopOut = loopOut;
  5798. // prop.loopIn = loopIn;
  5799. if(prop.kf){prop.getValueAtTime=expressionHelpers.getValueAtTime.bind(prop);}else{prop.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(prop);}prop.setGroupProperty=expressionHelpers.setGroupProperty;prop.loopOut=loopOut;prop.loopIn=loopIn;prop.smooth=smooth;prop.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(prop);prop.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(prop);prop.numKeys=data.a===1?data.k.length:0;prop.propertyIndex=data.ix;var value=0;if(type!==0){value=createTypedArray('float32',data.a===1?data.k[0].s.length:data.k.length);}prop._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:value};expressionHelpers.searchExpressions(elem,data,prop);if(prop.k){container.addDynamicProperty(prop);}return prop;};function getShapeValueAtTime(frameNum){// For now this caching object is created only when needed instead of creating it when the shape is initialized.
  5800. if(!this._cachingAtTime){this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame};}frameNum*=this.elem.globalData.frameRate;frameNum-=this.offsetTime;if(frameNum!==this._cachingAtTime.lastTime){this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<frameNum?this._caching.lastIndex:0;this._cachingAtTime.lastTime=frameNum;this.interpolateShape(frameNum,this._cachingAtTime.shapeValue,this._cachingAtTime);}return this._cachingAtTime.shapeValue;}var ShapePropertyConstructorFunction=ShapePropertyFactory.getConstructorFunction();var KeyframedShapePropertyConstructorFunction=ShapePropertyFactory.getKeyframedConstructorFunction();function ShapeExpressions(){}ShapeExpressions.prototype={vertices:function vertices(prop,time){if(this.k){this.getValue();}var shapePath=this.v;if(time!==undefined){shapePath=this.getValueAtTime(time,0);}var i;var len=shapePath._length;var vertices=shapePath[prop];var points=shapePath.v;var arr=createSizedArray(len);for(i=0;i<len;i+=1){if(prop==='i'||prop==='o'){arr[i]=[vertices[i][0]-points[i][0],vertices[i][1]-points[i][1]];}else{arr[i]=[vertices[i][0],vertices[i][1]];}}return arr;},points:function points(time){return this.vertices('v',time);},inTangents:function inTangents(time){return this.vertices('i',time);},outTangents:function outTangents(time){return this.vertices('o',time);},isClosed:function isClosed(){return this.v.c;},pointOnPath:function pointOnPath(perc,time){var shapePath=this.v;if(time!==undefined){shapePath=this.getValueAtTime(time,0);}if(!this._segmentsLength){this._segmentsLength=bez.getSegmentsLength(shapePath);}var segmentsLength=this._segmentsLength;var lengths=segmentsLength.lengths;var lengthPos=segmentsLength.totalLength*perc;var i=0;var len=lengths.length;var accumulatedLength=0;var pt;while(i<len){if(accumulatedLength+lengths[i].addedLength>lengthPos){var initIndex=i;var endIndex=shapePath.c&&i===len-1?0:i+1;var segmentPerc=(lengthPos-accumulatedLength)/lengths[i].addedLength;pt=bez.getPointInSegment(shapePath.v[initIndex],shapePath.v[endIndex],shapePath.o[initIndex],shapePath.i[endIndex],segmentPerc,lengths[i]);break;}else{accumulatedLength+=lengths[i].addedLength;}i+=1;}if(!pt){pt=shapePath.c?[shapePath.v[0][0],shapePath.v[0][1]]:[shapePath.v[shapePath._length-1][0],shapePath.v[shapePath._length-1][1]];}return pt;},vectorOnPath:function vectorOnPath(perc,time,vectorType){// perc doesn't use triple equality because it can be a Number object as well as a primitive.
  5801. if(perc==1){// eslint-disable-line eqeqeq
  5802. perc=this.v.c;}else if(perc==0){// eslint-disable-line eqeqeq
  5803. perc=0.999;}var pt1=this.pointOnPath(perc,time);var pt2=this.pointOnPath(perc+0.001,time);var xLength=pt2[0]-pt1[0];var yLength=pt2[1]-pt1[1];var magnitude=Math.sqrt(Math.pow(xLength,2)+Math.pow(yLength,2));if(magnitude===0){return[0,0];}var unitVector=vectorType==='tangent'?[xLength/magnitude,yLength/magnitude]:[-yLength/magnitude,xLength/magnitude];return unitVector;},tangentOnPath:function tangentOnPath(perc,time){return this.vectorOnPath(perc,time,'tangent');},normalOnPath:function normalOnPath(perc,time){return this.vectorOnPath(perc,time,'normal');},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime};extendPrototype([ShapeExpressions],ShapePropertyConstructorFunction);extendPrototype([ShapeExpressions],KeyframedShapePropertyConstructorFunction);KeyframedShapePropertyConstructorFunction.prototype.getValueAtTime=getShapeValueAtTime;KeyframedShapePropertyConstructorFunction.prototype.initiateExpression=ExpressionManager.initiateExpression;var propertyGetShapeProp=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(elem,data,type,arr,trims){var prop=propertyGetShapeProp(elem,data,type,arr,trims);prop.propertyIndex=data.ix;prop.lock=false;if(type===3){expressionHelpers.searchExpressions(elem,data.pt,prop);}else if(type===4){expressionHelpers.searchExpressions(elem,data.ks,prop);}if(prop.k){elem.addDynamicProperty(prop);}return prop;};}function initialize$1(){addPropertyDecorator();}function addDecorator(){function searchExpressions(){if(this.data.d.x){this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this);this.addEffect(this.getExpressionValue.bind(this));return true;}return null;}TextProperty.prototype.getExpressionValue=function(currentValue,text){var newValue=this.calculateExpression(text);if(currentValue.t!==newValue){var newData={};this.copyData(newData,currentValue);newData.t=newValue.toString();newData.__complete=false;return newData;}return currentValue;};TextProperty.prototype.searchProperty=function(){var isKeyframed=this.searchKeyframes();var hasExpressions=this.searchExpressions();this.kf=isKeyframed||hasExpressions;return this.kf;};TextProperty.prototype.searchExpressions=searchExpressions;}function initialize(){addDecorator();}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function createMergeNode(resultId,ins){var feMerge=createNS('feMerge');feMerge.setAttribute('result',resultId);var feMergeNode;var i;for(i=0;i<ins.length;i+=1){feMergeNode=createNS('feMergeNode');feMergeNode.setAttribute('in',ins[i]);feMerge.appendChild(feMergeNode);feMerge.appendChild(feMergeNode);}return feMerge;}};function SVGTintFilter(filter,filterManager,elem,id,source){this.filterManager=filterManager;var feColorMatrix=createNS('feColorMatrix');feColorMatrix.setAttribute('type','matrix');feColorMatrix.setAttribute('color-interpolation-filters','linearRGB');feColorMatrix.setAttribute('values','0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0');feColorMatrix.setAttribute('result',id+'_tint_1');filter.appendChild(feColorMatrix);feColorMatrix=createNS('feColorMatrix');feColorMatrix.setAttribute('type','matrix');feColorMatrix.setAttribute('color-interpolation-filters','sRGB');feColorMatrix.setAttribute('values','1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0');feColorMatrix.setAttribute('result',id+'_tint_2');filter.appendChild(feColorMatrix);this.matrixFilter=feColorMatrix;var feMerge=this.createMergeNode(id,[source,id+'_tint_1',id+'_tint_2']);filter.appendChild(feMerge);}extendPrototype([SVGComposableEffect],SVGTintFilter);SVGTintFilter.prototype.renderFrame=function(forceRender){if(forceRender||this.filterManager._mdf){var colorBlack=this.filterManager.effectElements[0].p.v;var colorWhite=this.filterManager.effectElements[1].p.v;var opacity=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute('values',colorWhite[0]-colorBlack[0]+' 0 0 0 '+colorBlack[0]+' '+(colorWhite[1]-colorBlack[1])+' 0 0 0 '+colorBlack[1]+' '+(colorWhite[2]-colorBlack[2])+' 0 0 0 '+colorBlack[2]+' 0 0 0 '+opacity+' 0');}};function SVGFillFilter(filter,filterManager,elem,id){this.filterManager=filterManager;var feColorMatrix=createNS('feColorMatrix');feColorMatrix.setAttribute('type','matrix');feColorMatrix.setAttribute('color-interpolation-filters','sRGB');feColorMatrix.setAttribute('values','1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0');feColorMatrix.setAttribute('result',id);filter.appendChild(feColorMatrix);this.matrixFilter=feColorMatrix;}SVGFillFilter.prototype.renderFrame=function(forceRender){if(forceRender||this.filterManager._mdf){var color=this.filterManager.effectElements[2].p.v;var opacity=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute('values','0 0 0 0 '+color[0]+' 0 0 0 0 '+color[1]+' 0 0 0 0 '+color[2]+' 0 0 0 '+opacity+' 0');}};function SVGStrokeEffect(fil,filterManager,elem){this.initialized=false;this.filterManager=filterManager;this.elem=elem;this.paths=[];}SVGStrokeEffect.prototype.initialize=function(){var elemChildren=this.elem.layerElement.children||this.elem.layerElement.childNodes;var path;var groupPath;var i;var len;if(this.filterManager.effectElements[1].p.v===1){len=this.elem.maskManager.masksProperties.length;i=0;}else{i=this.filterManager.effectElements[0].p.v-1;len=i+1;}groupPath=createNS('g');groupPath.setAttribute('fill','none');groupPath.setAttribute('stroke-linecap','round');groupPath.setAttribute('stroke-dashoffset',1);for(i;i<len;i+=1){path=createNS('path');groupPath.appendChild(path);this.paths.push({p:path,m:i});}if(this.filterManager.effectElements[10].p.v===3){var mask=createNS('mask');var id=createElementID();mask.setAttribute('id',id);mask.setAttribute('mask-type','alpha');mask.appendChild(groupPath);this.elem.globalData.defs.appendChild(mask);var g=createNS('g');g.setAttribute('mask','url('+getLocationHref()+'#'+id+')');while(elemChildren[0]){g.appendChild(elemChildren[0]);}this.elem.layerElement.appendChild(g);this.masker=mask;groupPath.setAttribute('stroke','#fff');}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){elemChildren=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(elemChildren.length){this.elem.layerElement.removeChild(elemChildren[0]);}}this.elem.layerElement.appendChild(groupPath);this.elem.layerElement.removeAttribute('mask');groupPath.setAttribute('stroke','#fff');}this.initialized=true;this.pathMasker=groupPath;};SVGStrokeEffect.prototype.renderFrame=function(forceRender){if(!this.initialized){this.initialize();}var i;var len=this.paths.length;var mask;var path;for(i=0;i<len;i+=1){if(this.paths[i].m!==-1){mask=this.elem.maskManager.viewData[this.paths[i].m];path=this.paths[i].p;if(forceRender||this.filterManager._mdf||mask.prop._mdf){path.setAttribute('d',mask.lastPath);}if(forceRender||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||mask.prop._mdf){var dasharrayValue;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01;var e=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01;var l=path.getTotalLength();dasharrayValue='0 0 0 '+l*s+' ';var lineLength=l*(e-s);var segment=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01;var units=Math.floor(lineLength/segment);var j;for(j=0;j<units;j+=1){dasharrayValue+='1 '+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01+' ';}dasharrayValue+='0 '+l*10+' 0 0';}else{dasharrayValue='1 '+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01;}path.setAttribute('stroke-dasharray',dasharrayValue);}}}if(forceRender||this.filterManager.effectElements[4].p._mdf){this.pathMasker.setAttribute('stroke-width',this.filterManager.effectElements[4].p.v*2);}if(forceRender||this.filterManager.effectElements[6].p._mdf){this.pathMasker.setAttribute('opacity',this.filterManager.effectElements[6].p.v);}if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(forceRender||this.filterManager.effectElements[3].p._mdf){var color=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute('stroke','rgb('+bmFloor(color[0]*255)+','+bmFloor(color[1]*255)+','+bmFloor(color[2]*255)+')');}}};function SVGTritoneFilter(filter,filterManager,elem,id){this.filterManager=filterManager;var feColorMatrix=createNS('feColorMatrix');feColorMatrix.setAttribute('type','matrix');feColorMatrix.setAttribute('color-interpolation-filters','linearRGB');feColorMatrix.setAttribute('values','0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0');filter.appendChild(feColorMatrix);var feComponentTransfer=createNS('feComponentTransfer');feComponentTransfer.setAttribute('color-interpolation-filters','sRGB');feComponentTransfer.setAttribute('result',id);this.matrixFilter=feComponentTransfer;var feFuncR=createNS('feFuncR');feFuncR.setAttribute('type','table');feComponentTransfer.appendChild(feFuncR);this.feFuncR=feFuncR;var feFuncG=createNS('feFuncG');feFuncG.setAttribute('type','table');feComponentTransfer.appendChild(feFuncG);this.feFuncG=feFuncG;var feFuncB=createNS('feFuncB');feFuncB.setAttribute('type','table');feComponentTransfer.appendChild(feFuncB);this.feFuncB=feFuncB;filter.appendChild(feComponentTransfer);}SVGTritoneFilter.prototype.renderFrame=function(forceRender){if(forceRender||this.filterManager._mdf){var color1=this.filterManager.effectElements[0].p.v;var color2=this.filterManager.effectElements[1].p.v;var color3=this.filterManager.effectElements[2].p.v;var tableR=color3[0]+' '+color2[0]+' '+color1[0];var tableG=color3[1]+' '+color2[1]+' '+color1[1];var tableB=color3[2]+' '+color2[2]+' '+color1[2];this.feFuncR.setAttribute('tableValues',tableR);this.feFuncG.setAttribute('tableValues',tableG);this.feFuncB.setAttribute('tableValues',tableB);}};function SVGProLevelsFilter(filter,filterManager,elem,id){this.filterManager=filterManager;var effectElements=this.filterManager.effectElements;var feComponentTransfer=createNS('feComponentTransfer');// Red
  5804. if(effectElements[10].p.k||effectElements[10].p.v!==0||effectElements[11].p.k||effectElements[11].p.v!==1||effectElements[12].p.k||effectElements[12].p.v!==1||effectElements[13].p.k||effectElements[13].p.v!==0||effectElements[14].p.k||effectElements[14].p.v!==1){this.feFuncR=this.createFeFunc('feFuncR',feComponentTransfer);}// Green
  5805. if(effectElements[17].p.k||effectElements[17].p.v!==0||effectElements[18].p.k||effectElements[18].p.v!==1||effectElements[19].p.k||effectElements[19].p.v!==1||effectElements[20].p.k||effectElements[20].p.v!==0||effectElements[21].p.k||effectElements[21].p.v!==1){this.feFuncG=this.createFeFunc('feFuncG',feComponentTransfer);}// Blue
  5806. if(effectElements[24].p.k||effectElements[24].p.v!==0||effectElements[25].p.k||effectElements[25].p.v!==1||effectElements[26].p.k||effectElements[26].p.v!==1||effectElements[27].p.k||effectElements[27].p.v!==0||effectElements[28].p.k||effectElements[28].p.v!==1){this.feFuncB=this.createFeFunc('feFuncB',feComponentTransfer);}// Alpha
  5807. if(effectElements[31].p.k||effectElements[31].p.v!==0||effectElements[32].p.k||effectElements[32].p.v!==1||effectElements[33].p.k||effectElements[33].p.v!==1||effectElements[34].p.k||effectElements[34].p.v!==0||effectElements[35].p.k||effectElements[35].p.v!==1){this.feFuncA=this.createFeFunc('feFuncA',feComponentTransfer);}// RGB
  5808. if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA){feComponentTransfer.setAttribute('color-interpolation-filters','sRGB');filter.appendChild(feComponentTransfer);}if(effectElements[3].p.k||effectElements[3].p.v!==0||effectElements[4].p.k||effectElements[4].p.v!==1||effectElements[5].p.k||effectElements[5].p.v!==1||effectElements[6].p.k||effectElements[6].p.v!==0||effectElements[7].p.k||effectElements[7].p.v!==1){feComponentTransfer=createNS('feComponentTransfer');feComponentTransfer.setAttribute('color-interpolation-filters','sRGB');feComponentTransfer.setAttribute('result',id);filter.appendChild(feComponentTransfer);this.feFuncRComposed=this.createFeFunc('feFuncR',feComponentTransfer);this.feFuncGComposed=this.createFeFunc('feFuncG',feComponentTransfer);this.feFuncBComposed=this.createFeFunc('feFuncB',feComponentTransfer);}}SVGProLevelsFilter.prototype.createFeFunc=function(type,feComponentTransfer){var feFunc=createNS(type);feFunc.setAttribute('type','table');feComponentTransfer.appendChild(feFunc);return feFunc;};SVGProLevelsFilter.prototype.getTableValue=function(inputBlack,inputWhite,gamma,outputBlack,outputWhite){var cnt=0;var segments=256;var perc;var min=Math.min(inputBlack,inputWhite);var max=Math.max(inputBlack,inputWhite);var table=Array.call(null,{length:segments});var colorValue;var pos=0;var outputDelta=outputWhite-outputBlack;var inputDelta=inputWhite-inputBlack;while(cnt<=256){perc=cnt/256;if(perc<=min){colorValue=inputDelta<0?outputWhite:outputBlack;}else if(perc>=max){colorValue=inputDelta<0?outputBlack:outputWhite;}else{colorValue=outputBlack+outputDelta*Math.pow((perc-inputBlack)/inputDelta,1/gamma);}table[pos]=colorValue;pos+=1;cnt+=256/(segments-1);}return table.join(' ');};SVGProLevelsFilter.prototype.renderFrame=function(forceRender){if(forceRender||this.filterManager._mdf){var val;var effectElements=this.filterManager.effectElements;if(this.feFuncRComposed&&(forceRender||effectElements[3].p._mdf||effectElements[4].p._mdf||effectElements[5].p._mdf||effectElements[6].p._mdf||effectElements[7].p._mdf)){val=this.getTableValue(effectElements[3].p.v,effectElements[4].p.v,effectElements[5].p.v,effectElements[6].p.v,effectElements[7].p.v);this.feFuncRComposed.setAttribute('tableValues',val);this.feFuncGComposed.setAttribute('tableValues',val);this.feFuncBComposed.setAttribute('tableValues',val);}if(this.feFuncR&&(forceRender||effectElements[10].p._mdf||effectElements[11].p._mdf||effectElements[12].p._mdf||effectElements[13].p._mdf||effectElements[14].p._mdf)){val=this.getTableValue(effectElements[10].p.v,effectElements[11].p.v,effectElements[12].p.v,effectElements[13].p.v,effectElements[14].p.v);this.feFuncR.setAttribute('tableValues',val);}if(this.feFuncG&&(forceRender||effectElements[17].p._mdf||effectElements[18].p._mdf||effectElements[19].p._mdf||effectElements[20].p._mdf||effectElements[21].p._mdf)){val=this.getTableValue(effectElements[17].p.v,effectElements[18].p.v,effectElements[19].p.v,effectElements[20].p.v,effectElements[21].p.v);this.feFuncG.setAttribute('tableValues',val);}if(this.feFuncB&&(forceRender||effectElements[24].p._mdf||effectElements[25].p._mdf||effectElements[26].p._mdf||effectElements[27].p._mdf||effectElements[28].p._mdf)){val=this.getTableValue(effectElements[24].p.v,effectElements[25].p.v,effectElements[26].p.v,effectElements[27].p.v,effectElements[28].p.v);this.feFuncB.setAttribute('tableValues',val);}if(this.feFuncA&&(forceRender||effectElements[31].p._mdf||effectElements[32].p._mdf||effectElements[33].p._mdf||effectElements[34].p._mdf||effectElements[35].p._mdf)){val=this.getTableValue(effectElements[31].p.v,effectElements[32].p.v,effectElements[33].p.v,effectElements[34].p.v,effectElements[35].p.v);this.feFuncA.setAttribute('tableValues',val);}}};function SVGDropShadowEffect(filter,filterManager,elem,id,source){var globalFilterSize=filterManager.container.globalData.renderConfig.filterSize;var filterSize=filterManager.data.fs||globalFilterSize;filter.setAttribute('x',filterSize.x||globalFilterSize.x);filter.setAttribute('y',filterSize.y||globalFilterSize.y);filter.setAttribute('width',filterSize.width||globalFilterSize.width);filter.setAttribute('height',filterSize.height||globalFilterSize.height);this.filterManager=filterManager;var feGaussianBlur=createNS('feGaussianBlur');feGaussianBlur.setAttribute('in','SourceAlpha');feGaussianBlur.setAttribute('result',id+'_drop_shadow_1');feGaussianBlur.setAttribute('stdDeviation','0');this.feGaussianBlur=feGaussianBlur;filter.appendChild(feGaussianBlur);var feOffset=createNS('feOffset');feOffset.setAttribute('dx','25');feOffset.setAttribute('dy','0');feOffset.setAttribute('in',id+'_drop_shadow_1');feOffset.setAttribute('result',id+'_drop_shadow_2');this.feOffset=feOffset;filter.appendChild(feOffset);var feFlood=createNS('feFlood');feFlood.setAttribute('flood-color','#00ff00');feFlood.setAttribute('flood-opacity','1');feFlood.setAttribute('result',id+'_drop_shadow_3');this.feFlood=feFlood;filter.appendChild(feFlood);var feComposite=createNS('feComposite');feComposite.setAttribute('in',id+'_drop_shadow_3');feComposite.setAttribute('in2',id+'_drop_shadow_2');feComposite.setAttribute('operator','in');feComposite.setAttribute('result',id+'_drop_shadow_4');filter.appendChild(feComposite);var feMerge=this.createMergeNode(id,[id+'_drop_shadow_4',source]);filter.appendChild(feMerge);//
  5809. }extendPrototype([SVGComposableEffect],SVGDropShadowEffect);SVGDropShadowEffect.prototype.renderFrame=function(forceRender){if(forceRender||this.filterManager._mdf){if(forceRender||this.filterManager.effectElements[4].p._mdf){this.feGaussianBlur.setAttribute('stdDeviation',this.filterManager.effectElements[4].p.v/4);}if(forceRender||this.filterManager.effectElements[0].p._mdf){var col=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute('flood-color',rgbToHex(Math.round(col[0]*255),Math.round(col[1]*255),Math.round(col[2]*255)));}if(forceRender||this.filterManager.effectElements[1].p._mdf){this.feFlood.setAttribute('flood-opacity',this.filterManager.effectElements[1].p.v/255);}if(forceRender||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var distance=this.filterManager.effectElements[3].p.v;var angle=(this.filterManager.effectElements[2].p.v-90)*degToRads;var x=distance*Math.cos(angle);var y=distance*Math.sin(angle);this.feOffset.setAttribute('dx',x);this.feOffset.setAttribute('dy',y);}}};var _svgMatteSymbols=[];function SVGMatte3Effect(filterElem,filterManager,elem){this.initialized=false;this.filterManager=filterManager;this.filterElem=filterElem;this.elem=elem;elem.matteElement=createNS('g');elem.matteElement.appendChild(elem.layerElement);elem.matteElement.appendChild(elem.transformedElement);elem.baseElement=elem.matteElement;}SVGMatte3Effect.prototype.findSymbol=function(mask){var i=0;var len=_svgMatteSymbols.length;while(i<len){if(_svgMatteSymbols[i]===mask){return _svgMatteSymbols[i];}i+=1;}return null;};SVGMatte3Effect.prototype.replaceInParent=function(mask,symbolId){var parentNode=mask.layerElement.parentNode;if(!parentNode){return;}var children=parentNode.children;var i=0;var len=children.length;while(i<len){if(children[i]===mask.layerElement){break;}i+=1;}var nextChild;if(i<=len-2){nextChild=children[i+1];}var useElem=createNS('use');useElem.setAttribute('href','#'+symbolId);if(nextChild){parentNode.insertBefore(useElem,nextChild);}else{parentNode.appendChild(useElem);}};SVGMatte3Effect.prototype.setElementAsMask=function(elem,mask){if(!this.findSymbol(mask)){var symbolId=createElementID();var masker=createNS('mask');masker.setAttribute('id',mask.layerId);masker.setAttribute('mask-type','alpha');_svgMatteSymbols.push(mask);var defs=elem.globalData.defs;defs.appendChild(masker);var symbol=createNS('symbol');symbol.setAttribute('id',symbolId);this.replaceInParent(mask,symbolId);symbol.appendChild(mask.layerElement);defs.appendChild(symbol);var useElem=createNS('use');useElem.setAttribute('href','#'+symbolId);masker.appendChild(useElem);mask.data.hd=false;mask.show();}elem.setMatte(mask.layerId);};SVGMatte3Effect.prototype.initialize=function(){var ind=this.filterManager.effectElements[0].p.v;var elements=this.elem.comp.elements;var i=0;var len=elements.length;while(i<len){if(elements[i]&&elements[i].data.ind===ind){this.setElementAsMask(this.elem,elements[i]);}i+=1;}this.initialized=true;};SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized){this.initialize();}};function SVGGaussianBlurEffect(filter,filterManager,elem,id){// Outset the filter region by 100% on all sides to accommodate blur expansion.
  5810. filter.setAttribute('x','-100%');filter.setAttribute('y','-100%');filter.setAttribute('width','300%');filter.setAttribute('height','300%');this.filterManager=filterManager;var feGaussianBlur=createNS('feGaussianBlur');feGaussianBlur.setAttribute('result',id);filter.appendChild(feGaussianBlur);this.feGaussianBlur=feGaussianBlur;}SVGGaussianBlurEffect.prototype.renderFrame=function(forceRender){if(forceRender||this.filterManager._mdf){// Empirical value, matching AE's blur appearance.
  5811. var kBlurrinessToSigma=0.3;var sigma=this.filterManager.effectElements[0].p.v*kBlurrinessToSigma;// Dimensions mapping:
  5812. //
  5813. // 1 -> horizontal & vertical
  5814. // 2 -> horizontal only
  5815. // 3 -> vertical only
  5816. //
  5817. var dimensions=this.filterManager.effectElements[1].p.v;var sigmaX=dimensions==3?0:sigma;// eslint-disable-line eqeqeq
  5818. var sigmaY=dimensions==2?0:sigma;// eslint-disable-line eqeqeq
  5819. this.feGaussianBlur.setAttribute('stdDeviation',sigmaX+' '+sigmaY);// Repeat edges mapping:
  5820. //
  5821. // 0 -> off -> duplicate
  5822. // 1 -> on -> wrap
  5823. var edgeMode=this.filterManager.effectElements[2].p.v==1?'wrap':'duplicate';// eslint-disable-line eqeqeq
  5824. this.feGaussianBlur.setAttribute('edgeMode',edgeMode);}};registerRenderer('canvas',CanvasRenderer);registerRenderer('html',HybridRenderer);registerRenderer('svg',SVGRenderer);// Registering shape modifiers
  5825. ShapeModifiers.registerModifier('tm',TrimModifier);ShapeModifiers.registerModifier('pb',PuckerAndBloatModifier);ShapeModifiers.registerModifier('rp',RepeaterModifier);ShapeModifiers.registerModifier('rd',RoundCornersModifier);// Registering expression plugin
  5826. setExpressionsPlugin(Expressions);initialize$1();initialize();// Registering svg effects
  5827. registerEffect(20,SVGTintFilter,true);registerEffect(21,SVGFillFilter,true);registerEffect(22,SVGStrokeEffect,false);registerEffect(23,SVGTritoneFilter,true);registerEffect(24,SVGProLevelsFilter,true);registerEffect(25,SVGDropShadowEffect,true);registerEffect(28,SVGMatte3Effect,false);registerEffect(29,SVGGaussianBlurEffect,true);return lottie;});})(lottie,lottie.exports);var Lottie=lottie.exports;var _export_sfc=function _export_sfc(sfc,props){var target=sfc.__vccOpts||sfc;var _iterator33=_createForOfIteratorHelper(props),_step34;try{for(_iterator33.s();!(_step34=_iterator33.n()).done;){var _step34$value=_slicedToArray(_step34.value,2),_key31=_step34$value[0],val=_step34$value[1];target[_key31]=val;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}return target;};var _sfc_main=defineComponent({props:{animationData:{type:Object,default:function _default(){return{};}},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:true},autoPlay:{type:Boolean,default:true},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:false},playOnHover:{type:Boolean,default:false},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:false}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup:function setup(props,_ref215){var emits=_ref215.emit;var lottieAnimation=ref(null);var elementid=ref("");var direction=1;var checkIfContainerExists=function checkIfContainerExists(elementID){if(document.querySelector("[data-id=\"".concat(elementID,"\" ]"))!==null){return true;}else{return false;}};var loadLottie=/*#__PURE__*/function(){var _ref216=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee35(element){var autoPlay,animationData,response,json,loop;return regeneratorRuntime.wrap(function _callee35$(_context35){while(1){switch(_context35.prev=_context35.next){case 0:autoPlay=props.autoPlay;if(props.playOnHover){autoPlay=false;}animationData={};if(props.animationData!=={}){animationData=JSON.parse(JSON.stringify(props.animationData));}if(!(props.animationLink!="")){_context35.next=19;break;}_context35.prev=5;_context35.next=8;return fetch(props.animationLink);case 8:response=_context35.sent;_context35.next=11;return response.json();case 11:json=_context35.sent;animationData=json;_context35.next=19;break;case 15:_context35.prev=15;_context35.t0=_context35["catch"](5);console.error(_context35.t0);return _context35.abrupt("return");case 19:loop=props.loop;if(typeof loop==="number"){if(loop>0){loop=loop-1;}}if(props.delay>0){autoPlay=false;}lottieAnimation=Lottie.loadAnimation({container:element,renderer:"svg",loop:loop,autoplay:autoPlay,animationData:animationData});setTimeout(function(){autoPlay=props.autoPlay;if(props.playOnHover){lottieAnimation.pause();}else{if(autoPlay){lottieAnimation.play();}else{lottieAnimation.pause();}}emits("onAnimationLoaded");},props.delay);lottieAnimation.setSpeed(props.speed);if(props.direction==="reverse"){lottieAnimation.setDirection(-1);}if(props.direction==="normal"){lottieAnimation.setDirection(1);}if(props.pauseAnimation){lottieAnimation.pause();}else{if(props.playOnHover){lottieAnimation.pause();}}lottieAnimation.addEventListener("loopComplete",function(){if(props.direction==="alternate"){lottieAnimation.stop();direction=direction*-1;lottieAnimation.setDirection(direction);lottieAnimation.play();}emits("onLoopComplete");});lottieAnimation.addEventListener("complete",function(){emits("onComplete");});lottieAnimation.addEventListener("enterFrame",function(){emits("onEnterFrame");});lottieAnimation.addEventListener("segmentStart",function(){emits("onSegmentStart");});case 32:case"end":return _context35.stop();}}},_callee35,null,[[5,15]]);}));return function loadLottie(_x20){return _ref216.apply(this,arguments);};}();var getCurrentStyle=computed(function(){var width=props.width;var height=props.height;if(typeof props.width==="number"){width="".concat(props.width,"px");}if(typeof props.height==="number"){height="".concat(props.height,"px");}var cssVariables={"--lottie-animation-container-width":width,"--lottie-animation-container-height":height,"--lottie-animation-container-background-color":props.backgroundColor};return cssVariables;});var hoverStarted=function hoverStarted(){if(lottieAnimation&&props.pauseOnHover){lottieAnimation.pause();}if(lottieAnimation&&props.playOnHover){lottieAnimation.play();}};var hoverEnded=function hoverEnded(){if(lottieAnimation&&props.pauseOnHover){lottieAnimation.play();}if(lottieAnimation&&props.playOnHover){lottieAnimation.pause();}};watch(function(){return props.pauseAnimation;},function(){if((props.pauseOnHover||props.playOnHover)&&props.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return;}if(lottieAnimation){if(props.pauseAnimation){lottieAnimation.pause();}else{lottieAnimation.play();}}});var play=function play(){if(lottieAnimation){lottieAnimation.play();}};var pause=function pause(){if(lottieAnimation){lottieAnimation.pause();}};var stop=function stop(){if(lottieAnimation){lottieAnimation.stop();}};var destroy=function destroy(){if(lottieAnimation){lottieAnimation.destroy();}};var setSpeed=function setSpeed(){var speed=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;if(speed<=0){throw new Error("Speed must be greater than 0");}if(lottieAnimation){lottieAnimation.setSpeed(speed);}};var setDirection=function setDirection(direction2){if(lottieAnimation){if(direction2==="forward"){lottieAnimation.setDirection(1);}else if(direction2==="reverse"){lottieAnimation.setDirection(-1);}}};var goToAndStop=function goToAndStop(frame){var isFrame=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(lottieAnimation){lottieAnimation.goToAndStop(frame,isFrame);}};var goToAndPlay=function goToAndPlay(frame){var isFrame=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(lottieAnimation){lottieAnimation.goToAndPlay(frame,isFrame);}};var playSegments=function playSegments(segments){var forceFlag=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(lottieAnimation){lottieAnimation.playSegments(segments,forceFlag);}};var setSubFrame=function setSubFrame(){var useSubFrame=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;if(lottieAnimation){lottieAnimation.setSubframe(useSubFrame);}};var getDuration=function getDuration(){var inFrames=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;if(lottieAnimation){return lottieAnimation.getDuration(inFrames);}};var makeid=function makeid(length){var result="";var characters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";var charactersLength=characters.length;for(var i=0;i<length;i++){result+=characters.charAt(Math.floor(Math.random()*charactersLength));}return result;};var setupLottie=function setupLottie(elementID){if(props.pauseOnHover&&props.playOnHover){throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");}if(props.animationLink===""&&props.animationData==={}){throw new Error("You must provide either animationLink or animationData");}var interval=setInterval(function(){if(checkIfContainerExists(elementID)){clearInterval(interval);var element=document.querySelector("[data-id=\"".concat(elementID,"\" ]"));if(element){loadLottie(element);}}},0);};onMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee36(){return regeneratorRuntime.wrap(function _callee36$(_context36){while(1){switch(_context36.prev=_context36.next){case 0:elementid.value=makeid(20);setupLottie(elementid.value);case 2:case"end":return _context36.stop();}}},_callee36);})));return{elementid:elementid,hoverEnded:hoverEnded,hoverStarted:hoverStarted,getCurrentStyle:getCurrentStyle,play:play,pause:pause,stop:stop,destroy:destroy,setSpeed:setSpeed,setDirection:setDirection,goToAndStop:goToAndStop,goToAndPlay:goToAndPlay,playSegments:playSegments,setSubFrame:setSubFrame,getDuration:getDuration};}});var _hoisted_1=["data-id"];function _sfc_render(_ctx,_cache,$props,$setup,$data,$options){return openBlock(),createElementBlock("div",{"data-id":_ctx.elementid,class:"lottie-animation-container",style:normalizeStyle(_ctx.getCurrentStyle),onMouseenter:_cache[0]||(_cache[0]=function(){return _ctx.hoverStarted&&_ctx.hoverStarted.apply(_ctx,arguments);}),onMouseleave:_cache[1]||(_cache[1]=function(){return _ctx.hoverEnded&&_ctx.hoverEnded.apply(_ctx,arguments);})},null,44,_hoisted_1);}var Vue3Lottie=exports('a0',/* @__PURE__ */_export_sfc(_sfc_main,[["render",_sfc_render]]));function install(app,options){var finalOptions=Object.assign({},{name:"Vue3Lottie"},options);app.component("".concat(finalOptions.name),Vue3Lottie);}var plugin=exports('P',{version:"2.2.5",install:install});}};});})();