element-plus.js 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608
  1. import {
  2. isVue2
  3. } from "./chunk-HYZ2CRGS.js";
  4. import {
  5. arrow_down_default,
  6. arrow_left_default,
  7. arrow_right_default,
  8. arrow_up_default,
  9. back_default,
  10. calendar_default,
  11. caret_right_default,
  12. caret_top_default,
  13. check_default,
  14. circle_check_default,
  15. circle_check_filled_default,
  16. circle_close_default,
  17. circle_close_filled_default,
  18. clock_default,
  19. close_default,
  20. d_arrow_left_default,
  21. d_arrow_right_default,
  22. delete_default,
  23. document_default,
  24. full_screen_default,
  25. hide_default,
  26. info_filled_default,
  27. loading_default,
  28. minus_default,
  29. more_default,
  30. more_filled_default,
  31. picture_filled_default,
  32. plus_default,
  33. question_filled_default,
  34. refresh_left_default,
  35. refresh_right_default,
  36. scale_to_original_default,
  37. search_default,
  38. sort_down_default,
  39. sort_up_default,
  40. star_default,
  41. star_filled_default,
  42. success_filled_default,
  43. view_default,
  44. warning_filled_default,
  45. zoom_in_default,
  46. zoom_out_default
  47. } from "./chunk-IJJ2CXKC.js";
  48. import {
  49. Comment,
  50. Fragment,
  51. NOOP,
  52. Teleport,
  53. Text,
  54. Transition,
  55. TransitionGroup,
  56. camelize,
  57. capitalize,
  58. cloneVNode,
  59. computed,
  60. createApp,
  61. createBaseVNode,
  62. createBlock,
  63. createCommentVNode,
  64. createElementBlock,
  65. createSlots,
  66. createTextVNode,
  67. createVNode,
  68. customRef,
  69. defineComponent,
  70. effectScope,
  71. getCurrentInstance,
  72. getCurrentScope,
  73. guardReactiveProps,
  74. h,
  75. hasOwn,
  76. hyphenate,
  77. inject,
  78. isArray,
  79. isDate,
  80. isFunction,
  81. isObject,
  82. isPlainObject,
  83. isPromise,
  84. isRef,
  85. isString,
  86. isVNode,
  87. markRaw,
  88. mergeProps,
  89. nextTick,
  90. normalizeClass,
  91. normalizeProps,
  92. normalizeStyle,
  93. onActivated,
  94. onBeforeMount,
  95. onBeforeUnmount,
  96. onBeforeUpdate,
  97. onDeactivated,
  98. onMounted,
  99. onScopeDispose,
  100. onUnmounted,
  101. onUpdated,
  102. openBlock,
  103. provide,
  104. reactive,
  105. readonly,
  106. ref,
  107. render,
  108. renderList,
  109. renderSlot,
  110. resolveComponent,
  111. resolveDirective,
  112. resolveDynamicComponent,
  113. shallowReactive,
  114. shallowRef,
  115. toDisplayString,
  116. toHandlerKey,
  117. toHandlers,
  118. toRaw,
  119. toRef,
  120. toRefs,
  121. triggerRef,
  122. unref,
  123. useAttrs,
  124. useSlots,
  125. vModelCheckbox,
  126. vModelRadio,
  127. vModelText,
  128. vShow,
  129. warn,
  130. watch,
  131. watchEffect,
  132. withCtx,
  133. withDirectives,
  134. withKeys,
  135. withModifiers
  136. } from "./chunk-ESBRE4ET.js";
  137. import {
  138. __commonJS,
  139. __toESM
  140. } from "./chunk-G3PMV62Z.js";
  141. // node_modules/dayjs/dayjs.min.js
  142. var require_dayjs_min = __commonJS({
  143. "node_modules/dayjs/dayjs.min.js"(exports2, module2) {
  144. !function(t, e) {
  145. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
  146. }(exports2, function() {
  147. "use strict";
  148. var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h3 = "year", d2 = "date", l2 = "Invalid Date", $ = /^(\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, M2 = { 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("_"), ordinal: function(t2) {
  149. var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
  150. return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
  151. } }, m2 = function(t2, e2, n2) {
  152. var r2 = String(t2);
  153. return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
  154. }, v2 = { s: m2, z: function(t2) {
  155. var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
  156. return (e2 <= 0 ? "+" : "-") + m2(r2, 2, "0") + ":" + m2(i2, 2, "0");
  157. }, m: function t2(e2, n2) {
  158. if (e2.date() < n2.date()) return -t2(n2, e2);
  159. var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c2), s3 = n2 - i2 < 0, u3 = e2.clone().add(r2 + (s3 ? -1 : 1), c2);
  160. return +(-(r2 + (n2 - i2) / (s3 ? i2 - u3 : u3 - i2)) || 0);
  161. }, a: function(t2) {
  162. return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
  163. }, p: function(t2) {
  164. return { M: c2, y: h3, w: o2, d: a2, D: d2, h: u2, m: s2, s: i, ms: r, Q: f2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
  165. }, u: function(t2) {
  166. return void 0 === t2;
  167. } }, g = "en", D2 = {};
  168. D2[g] = M2;
  169. var p2 = "$isDayjsObject", S2 = function(t2) {
  170. return t2 instanceof _2 || !(!t2 || !t2[p2]);
  171. }, w2 = function t2(e2, n2, r2) {
  172. var i2;
  173. if (!e2) return g;
  174. if ("string" == typeof e2) {
  175. var s3 = e2.toLowerCase();
  176. D2[s3] && (i2 = s3), n2 && (D2[s3] = n2, i2 = s3);
  177. var u3 = e2.split("-");
  178. if (!i2 && u3.length > 1) return t2(u3[0]);
  179. } else {
  180. var a3 = e2.name;
  181. D2[a3] = e2, i2 = a3;
  182. }
  183. return !r2 && i2 && (g = i2), i2 || !r2 && g;
  184. }, O2 = function(t2, e2) {
  185. if (S2(t2)) return t2.clone();
  186. var n2 = "object" == typeof e2 ? e2 : {};
  187. return n2.date = t2, n2.args = arguments, new _2(n2);
  188. }, b2 = v2;
  189. b2.l = w2, b2.i = S2, b2.w = function(t2, e2) {
  190. return O2(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
  191. };
  192. var _2 = function() {
  193. function M3(t2) {
  194. this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p2] = true;
  195. }
  196. var m3 = M3.prototype;
  197. return m3.parse = function(t2) {
  198. this.$d = function(t3) {
  199. var e2 = t3.date, n2 = t3.utc;
  200. if (null === e2) return /* @__PURE__ */ new Date(NaN);
  201. if (b2.u(e2)) return /* @__PURE__ */ new Date();
  202. if (e2 instanceof Date) return new Date(e2);
  203. if ("string" == typeof e2 && !/Z$/i.test(e2)) {
  204. var r2 = e2.match($);
  205. if (r2) {
  206. var i2 = r2[2] - 1 || 0, s3 = (r2[7] || "0").substring(0, 3);
  207. return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s3)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s3);
  208. }
  209. }
  210. return new Date(e2);
  211. }(t2), this.init();
  212. }, m3.init = function() {
  213. var t2 = this.$d;
  214. this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
  215. }, m3.$utils = function() {
  216. return b2;
  217. }, m3.isValid = function() {
  218. return !(this.$d.toString() === l2);
  219. }, m3.isSame = function(t2, e2) {
  220. var n2 = O2(t2);
  221. return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
  222. }, m3.isAfter = function(t2, e2) {
  223. return O2(t2) < this.startOf(e2);
  224. }, m3.isBefore = function(t2, e2) {
  225. return this.endOf(e2) < O2(t2);
  226. }, m3.$g = function(t2, e2, n2) {
  227. return b2.u(t2) ? this[e2] : this.set(n2, t2);
  228. }, m3.unix = function() {
  229. return Math.floor(this.valueOf() / 1e3);
  230. }, m3.valueOf = function() {
  231. return this.$d.getTime();
  232. }, m3.startOf = function(t2, e2) {
  233. var n2 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t2), l3 = function(t3, e3) {
  234. var i2 = b2.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
  235. return r2 ? i2 : i2.endOf(a2);
  236. }, $2 = function(t3, e3) {
  237. return b2.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
  238. }, y2 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
  239. switch (f3) {
  240. case h3:
  241. return r2 ? l3(1, 0) : l3(31, 11);
  242. case c2:
  243. return r2 ? l3(1, M4) : l3(0, M4 + 1);
  244. case o2:
  245. var g2 = this.$locale().weekStart || 0, D3 = (y2 < g2 ? y2 + 7 : y2) - g2;
  246. return l3(r2 ? m4 - D3 : m4 + (6 - D3), M4);
  247. case a2:
  248. case d2:
  249. return $2(v3 + "Hours", 0);
  250. case u2:
  251. return $2(v3 + "Minutes", 1);
  252. case s2:
  253. return $2(v3 + "Seconds", 2);
  254. case i:
  255. return $2(v3 + "Milliseconds", 3);
  256. default:
  257. return this.clone();
  258. }
  259. }, m3.endOf = function(t2) {
  260. return this.startOf(t2, false);
  261. }, m3.$set = function(t2, e2) {
  262. var n2, o3 = b2.p(t2), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n2 = {}, n2[a2] = f3 + "Date", n2[d2] = f3 + "Date", n2[c2] = f3 + "Month", n2[h3] = f3 + "FullYear", n2[u2] = f3 + "Hours", n2[s2] = f3 + "Minutes", n2[i] = f3 + "Seconds", n2[r] = f3 + "Milliseconds", n2)[o3], $2 = o3 === a2 ? this.$D + (e2 - this.$W) : e2;
  263. if (o3 === c2 || o3 === h3) {
  264. var y2 = this.clone().set(d2, 1);
  265. y2.$d[l3]($2), y2.init(), this.$d = y2.set(d2, Math.min(this.$D, y2.daysInMonth())).$d;
  266. } else l3 && this.$d[l3]($2);
  267. return this.init(), this;
  268. }, m3.set = function(t2, e2) {
  269. return this.clone().$set(t2, e2);
  270. }, m3.get = function(t2) {
  271. return this[b2.p(t2)]();
  272. }, m3.add = function(r2, f3) {
  273. var d3, l3 = this;
  274. r2 = Number(r2);
  275. var $2 = b2.p(f3), y2 = function(t2) {
  276. var e2 = O2(l3);
  277. return b2.w(e2.date(e2.date() + Math.round(t2 * r2)), l3);
  278. };
  279. if ($2 === c2) return this.set(c2, this.$M + r2);
  280. if ($2 === h3) return this.set(h3, this.$y + r2);
  281. if ($2 === a2) return y2(1);
  282. if ($2 === o2) return y2(7);
  283. var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n, d3[i] = t, d3)[$2] || 1, m4 = this.$d.getTime() + r2 * M4;
  284. return b2.w(m4, this);
  285. }, m3.subtract = function(t2, e2) {
  286. return this.add(-1 * t2, e2);
  287. }, m3.format = function(t2) {
  288. var e2 = this, n2 = this.$locale();
  289. if (!this.isValid()) return n2.invalidDate || l2;
  290. var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n2.weekdays, c3 = n2.months, f3 = n2.meridiem, h4 = function(t3, n3, i3, s4) {
  291. return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s4);
  292. }, d3 = function(t3) {
  293. return b2.s(s3 % 12 || 12, t3, "0");
  294. }, $2 = f3 || function(t3, e3, n3) {
  295. var r3 = t3 < 12 ? "AM" : "PM";
  296. return n3 ? r3.toLowerCase() : r3;
  297. };
  298. return r2.replace(y, function(t3, r3) {
  299. return r3 || function(t4) {
  300. switch (t4) {
  301. case "YY":
  302. return String(e2.$y).slice(-2);
  303. case "YYYY":
  304. return b2.s(e2.$y, 4, "0");
  305. case "M":
  306. return a3 + 1;
  307. case "MM":
  308. return b2.s(a3 + 1, 2, "0");
  309. case "MMM":
  310. return h4(n2.monthsShort, a3, c3, 3);
  311. case "MMMM":
  312. return h4(c3, a3);
  313. case "D":
  314. return e2.$D;
  315. case "DD":
  316. return b2.s(e2.$D, 2, "0");
  317. case "d":
  318. return String(e2.$W);
  319. case "dd":
  320. return h4(n2.weekdaysMin, e2.$W, o3, 2);
  321. case "ddd":
  322. return h4(n2.weekdaysShort, e2.$W, o3, 3);
  323. case "dddd":
  324. return o3[e2.$W];
  325. case "H":
  326. return String(s3);
  327. case "HH":
  328. return b2.s(s3, 2, "0");
  329. case "h":
  330. return d3(1);
  331. case "hh":
  332. return d3(2);
  333. case "a":
  334. return $2(s3, u3, true);
  335. case "A":
  336. return $2(s3, u3, false);
  337. case "m":
  338. return String(u3);
  339. case "mm":
  340. return b2.s(u3, 2, "0");
  341. case "s":
  342. return String(e2.$s);
  343. case "ss":
  344. return b2.s(e2.$s, 2, "0");
  345. case "SSS":
  346. return b2.s(e2.$ms, 3, "0");
  347. case "Z":
  348. return i2;
  349. }
  350. return null;
  351. }(t3) || i2.replace(":", "");
  352. });
  353. }, m3.utcOffset = function() {
  354. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
  355. }, m3.diff = function(r2, d3, l3) {
  356. var $2, y2 = this, M4 = b2.p(d3), m4 = O2(r2), v3 = (m4.utcOffset() - this.utcOffset()) * e, g2 = this - m4, D3 = function() {
  357. return b2.m(y2, m4);
  358. };
  359. switch (M4) {
  360. case h3:
  361. $2 = D3() / 12;
  362. break;
  363. case c2:
  364. $2 = D3();
  365. break;
  366. case f2:
  367. $2 = D3() / 3;
  368. break;
  369. case o2:
  370. $2 = (g2 - v3) / 6048e5;
  371. break;
  372. case a2:
  373. $2 = (g2 - v3) / 864e5;
  374. break;
  375. case u2:
  376. $2 = g2 / n;
  377. break;
  378. case s2:
  379. $2 = g2 / e;
  380. break;
  381. case i:
  382. $2 = g2 / t;
  383. break;
  384. default:
  385. $2 = g2;
  386. }
  387. return l3 ? $2 : b2.a($2);
  388. }, m3.daysInMonth = function() {
  389. return this.endOf(c2).$D;
  390. }, m3.$locale = function() {
  391. return D2[this.$L];
  392. }, m3.locale = function(t2, e2) {
  393. if (!t2) return this.$L;
  394. var n2 = this.clone(), r2 = w2(t2, e2, true);
  395. return r2 && (n2.$L = r2), n2;
  396. }, m3.clone = function() {
  397. return b2.w(this.$d, this);
  398. }, m3.toDate = function() {
  399. return new Date(this.valueOf());
  400. }, m3.toJSON = function() {
  401. return this.isValid() ? this.toISOString() : null;
  402. }, m3.toISOString = function() {
  403. return this.$d.toISOString();
  404. }, m3.toString = function() {
  405. return this.$d.toUTCString();
  406. }, M3;
  407. }(), k = _2.prototype;
  408. return O2.prototype = k, [["$ms", r], ["$s", i], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h3], ["$D", d2]].forEach(function(t2) {
  409. k[t2[1]] = function(e2) {
  410. return this.$g(e2, t2[0], t2[1]);
  411. };
  412. }), O2.extend = function(t2, e2) {
  413. return t2.$i || (t2(e2, _2, O2), t2.$i = true), O2;
  414. }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t2) {
  415. return O2(1e3 * t2);
  416. }, O2.en = D2[g], O2.Ls = D2, O2.p = {}, O2;
  417. });
  418. }
  419. });
  420. // node_modules/dayjs/plugin/localeData.js
  421. var require_localeData = __commonJS({
  422. "node_modules/dayjs/plugin/localeData.js"(exports2, module2) {
  423. !function(n, e) {
  424. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (n = "undefined" != typeof globalThis ? globalThis : n || self).dayjs_plugin_localeData = e();
  425. }(exports2, function() {
  426. "use strict";
  427. return function(n, e, t) {
  428. var r = e.prototype, o2 = function(n2) {
  429. return n2 && (n2.indexOf ? n2 : n2.s);
  430. }, u2 = function(n2, e2, t2, r2, u3) {
  431. var i2 = n2.name ? n2 : n2.$locale(), a3 = o2(i2[e2]), s3 = o2(i2[t2]), f2 = a3 || s3.map(function(n3) {
  432. return n3.slice(0, r2);
  433. });
  434. if (!u3) return f2;
  435. var d2 = i2.weekStart;
  436. return f2.map(function(n3, e3) {
  437. return f2[(e3 + (d2 || 0)) % 7];
  438. });
  439. }, i = function() {
  440. return t.Ls[t.locale()];
  441. }, a2 = function(n2, e2) {
  442. return n2.formats[e2] || function(n3) {
  443. return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n4, e3, t2) {
  444. return e3 || t2.slice(1);
  445. });
  446. }(n2.formats[e2.toUpperCase()]);
  447. }, s2 = function() {
  448. var n2 = this;
  449. return { months: function(e2) {
  450. return e2 ? e2.format("MMMM") : u2(n2, "months");
  451. }, monthsShort: function(e2) {
  452. return e2 ? e2.format("MMM") : u2(n2, "monthsShort", "months", 3);
  453. }, firstDayOfWeek: function() {
  454. return n2.$locale().weekStart || 0;
  455. }, weekdays: function(e2) {
  456. return e2 ? e2.format("dddd") : u2(n2, "weekdays");
  457. }, weekdaysMin: function(e2) {
  458. return e2 ? e2.format("dd") : u2(n2, "weekdaysMin", "weekdays", 2);
  459. }, weekdaysShort: function(e2) {
  460. return e2 ? e2.format("ddd") : u2(n2, "weekdaysShort", "weekdays", 3);
  461. }, longDateFormat: function(e2) {
  462. return a2(n2.$locale(), e2);
  463. }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
  464. };
  465. r.localeData = function() {
  466. return s2.bind(this)();
  467. }, t.localeData = function() {
  468. var n2 = i();
  469. return { firstDayOfWeek: function() {
  470. return n2.weekStart || 0;
  471. }, weekdays: function() {
  472. return t.weekdays();
  473. }, weekdaysShort: function() {
  474. return t.weekdaysShort();
  475. }, weekdaysMin: function() {
  476. return t.weekdaysMin();
  477. }, months: function() {
  478. return t.months();
  479. }, monthsShort: function() {
  480. return t.monthsShort();
  481. }, longDateFormat: function(e2) {
  482. return a2(n2, e2);
  483. }, meridiem: n2.meridiem, ordinal: n2.ordinal };
  484. }, t.months = function() {
  485. return u2(i(), "months");
  486. }, t.monthsShort = function() {
  487. return u2(i(), "monthsShort", "months", 3);
  488. }, t.weekdays = function(n2) {
  489. return u2(i(), "weekdays", null, null, n2);
  490. }, t.weekdaysShort = function(n2) {
  491. return u2(i(), "weekdaysShort", "weekdays", 3, n2);
  492. }, t.weekdaysMin = function(n2) {
  493. return u2(i(), "weekdaysMin", "weekdays", 2, n2);
  494. };
  495. };
  496. });
  497. }
  498. });
  499. // node_modules/dayjs/plugin/customParseFormat.js
  500. var require_customParseFormat = __commonJS({
  501. "node_modules/dayjs/plugin/customParseFormat.js"(exports2, module2) {
  502. !function(e, t) {
  503. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
  504. }(exports2, function() {
  505. "use strict";
  506. 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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o2 = /\d*[^-_:/,()\s\d]+/, s2 = {}, a2 = function(e2) {
  507. return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
  508. };
  509. var f2 = function(e2) {
  510. return function(t2) {
  511. this[e2] = +t2;
  512. };
  513. }, h3 = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
  514. (this.zone || (this.zone = {})).offset = function(e3) {
  515. if (!e3) return 0;
  516. if ("Z" === e3) return 0;
  517. var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
  518. return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
  519. }(e2);
  520. }], u2 = function(e2) {
  521. var t2 = s2[e2];
  522. return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
  523. }, d2 = function(e2, t2) {
  524. var n2, r2 = s2.meridiem;
  525. if (r2) {
  526. for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
  527. n2 = i2 > 12;
  528. break;
  529. }
  530. } else n2 = e2 === (t2 ? "pm" : "PM");
  531. return n2;
  532. }, c2 = { A: [o2, function(e2) {
  533. this.afternoon = d2(e2, false);
  534. }], a: [o2, function(e2) {
  535. this.afternoon = d2(e2, true);
  536. }], Q: [n, function(e2) {
  537. this.month = 3 * (e2 - 1) + 1;
  538. }], S: [n, function(e2) {
  539. this.milliseconds = 100 * +e2;
  540. }], SS: [r, function(e2) {
  541. this.milliseconds = 10 * +e2;
  542. }], SSS: [/\d{3}/, function(e2) {
  543. this.milliseconds = +e2;
  544. }], s: [i, f2("seconds")], ss: [i, f2("seconds")], m: [i, f2("minutes")], mm: [i, f2("minutes")], H: [i, f2("hours")], h: [i, f2("hours")], HH: [i, f2("hours")], hh: [i, f2("hours")], D: [i, f2("day")], DD: [r, f2("day")], Do: [o2, function(e2) {
  545. var t2 = s2.ordinal, n2 = e2.match(/\d+/);
  546. if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
  547. }], w: [i, f2("week")], ww: [r, f2("week")], M: [i, f2("month")], MM: [r, f2("month")], MMM: [o2, function(e2) {
  548. var t2 = u2("months"), n2 = (u2("monthsShort") || t2.map(function(e3) {
  549. return e3.slice(0, 3);
  550. })).indexOf(e2) + 1;
  551. if (n2 < 1) throw new Error();
  552. this.month = n2 % 12 || n2;
  553. }], MMMM: [o2, function(e2) {
  554. var t2 = u2("months").indexOf(e2) + 1;
  555. if (t2 < 1) throw new Error();
  556. this.month = t2 % 12 || t2;
  557. }], Y: [/[+-]?\d+/, f2("year")], YY: [r, function(e2) {
  558. this.year = a2(e2);
  559. }], YYYY: [/\d{4}/, f2("year")], Z: h3, ZZ: h3 };
  560. function l2(n2) {
  561. var r2, i2;
  562. r2 = n2, i2 = s2 && s2.formats;
  563. for (var o3 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
  564. var o4 = r3 && r3.toUpperCase();
  565. return n3 || i2[r3] || e[r3] || i2[o4].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
  566. return t3 || n4.slice(1);
  567. });
  568. })).match(t), a3 = o3.length, f3 = 0; f3 < a3; f3 += 1) {
  569. var h4 = o3[f3], u3 = c2[h4], d3 = u3 && u3[0], l3 = u3 && u3[1];
  570. o3[f3] = l3 ? { regex: d3, parser: l3 } : h4.replace(/^\[|\]$/g, "");
  571. }
  572. return function(e2) {
  573. for (var t2 = {}, n3 = 0, r3 = 0; n3 < a3; n3 += 1) {
  574. var i3 = o3[n3];
  575. if ("string" == typeof i3) r3 += i3.length;
  576. else {
  577. var s3 = i3.regex, f4 = i3.parser, h5 = e2.slice(r3), u4 = s3.exec(h5)[0];
  578. f4.call(t2, u4), e2 = e2.replace(u4, "");
  579. }
  580. }
  581. return function(e3) {
  582. var t3 = e3.afternoon;
  583. if (void 0 !== t3) {
  584. var n4 = e3.hours;
  585. t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
  586. }
  587. }(t2), t2;
  588. };
  589. }
  590. return function(e2, t2, n2) {
  591. n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a2 = e2.parseTwoDigitYear);
  592. var r2 = t2.prototype, i2 = r2.parse;
  593. r2.parse = function(e3) {
  594. var t3 = e3.date, r3 = e3.utc, o3 = e3.args;
  595. this.$u = r3;
  596. var a3 = o3[1];
  597. if ("string" == typeof a3) {
  598. var f3 = true === o3[2], h4 = true === o3[3], u3 = f3 || h4, d3 = o3[2];
  599. h4 && (d3 = o3[2]), s2 = this.$locale(), !f3 && d3 && (s2 = n2.Ls[d3]), this.$d = function(e4, t4, n3, r4) {
  600. try {
  601. if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
  602. var i3 = l2(t4)(e4), o4 = i3.year, s3 = i3.month, a4 = i3.day, f4 = i3.hours, h5 = i3.minutes, u4 = i3.seconds, d4 = i3.milliseconds, c4 = i3.zone, m3 = i3.week, M3 = /* @__PURE__ */ new Date(), Y2 = a4 || (o4 || s3 ? 1 : M3.getDate()), p2 = o4 || M3.getFullYear(), v2 = 0;
  603. o4 && !s3 || (v2 = s3 > 0 ? s3 - 1 : M3.getMonth());
  604. var D2, w2 = f4 || 0, g = h5 || 0, y = u4 || 0, L = d4 || 0;
  605. return c4 ? new Date(Date.UTC(p2, v2, Y2, w2, g, y, L + 60 * c4.offset * 1e3)) : n3 ? new Date(Date.UTC(p2, v2, Y2, w2, g, y, L)) : (D2 = new Date(p2, v2, Y2, w2, g, y, L), m3 && (D2 = r4(D2).week(m3).toDate()), D2);
  606. } catch (e5) {
  607. return /* @__PURE__ */ new Date("");
  608. }
  609. }(t3, a3, r3, n2), this.init(), d3 && true !== d3 && (this.$L = this.locale(d3).$L), u3 && t3 != this.format(a3) && (this.$d = /* @__PURE__ */ new Date("")), s2 = {};
  610. } else if (a3 instanceof Array) for (var c3 = a3.length, m2 = 1; m2 <= c3; m2 += 1) {
  611. o3[1] = a3[m2 - 1];
  612. var M2 = n2.apply(this, o3);
  613. if (M2.isValid()) {
  614. this.$d = M2.$d, this.$L = M2.$L, this.init();
  615. break;
  616. }
  617. m2 === c3 && (this.$d = /* @__PURE__ */ new Date(""));
  618. }
  619. else i2.call(this, e3);
  620. };
  621. };
  622. });
  623. }
  624. });
  625. // node_modules/dayjs/plugin/advancedFormat.js
  626. var require_advancedFormat = __commonJS({
  627. "node_modules/dayjs/plugin/advancedFormat.js"(exports2, module2) {
  628. !function(e, t) {
  629. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
  630. }(exports2, function() {
  631. "use strict";
  632. return function(e, t) {
  633. var r = t.prototype, n = r.format;
  634. r.format = function(e2) {
  635. var t2 = this, r2 = this.$locale();
  636. if (!this.isValid()) return n.bind(this)(e2);
  637. var s2 = this.$utils(), a2 = (e2 || "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(e3) {
  638. switch (e3) {
  639. case "Q":
  640. return Math.ceil((t2.$M + 1) / 3);
  641. case "Do":
  642. return r2.ordinal(t2.$D);
  643. case "gggg":
  644. return t2.weekYear();
  645. case "GGGG":
  646. return t2.isoWeekYear();
  647. case "wo":
  648. return r2.ordinal(t2.week(), "W");
  649. case "w":
  650. case "ww":
  651. return s2.s(t2.week(), "w" === e3 ? 1 : 2, "0");
  652. case "W":
  653. case "WW":
  654. return s2.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
  655. case "k":
  656. case "kk":
  657. return s2.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
  658. case "X":
  659. return Math.floor(t2.$d.getTime() / 1e3);
  660. case "x":
  661. return t2.$d.getTime();
  662. case "z":
  663. return "[" + t2.offsetName() + "]";
  664. case "zzz":
  665. return "[" + t2.offsetName("long") + "]";
  666. default:
  667. return e3;
  668. }
  669. });
  670. return n.bind(this)(a2);
  671. };
  672. };
  673. });
  674. }
  675. });
  676. // node_modules/dayjs/plugin/weekOfYear.js
  677. var require_weekOfYear = __commonJS({
  678. "node_modules/dayjs/plugin/weekOfYear.js"(exports2, module2) {
  679. !function(e, t) {
  680. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekOfYear = t();
  681. }(exports2, function() {
  682. "use strict";
  683. var e = "week", t = "year";
  684. return function(i, n, r) {
  685. var f2 = n.prototype;
  686. f2.week = function(i2) {
  687. if (void 0 === i2 && (i2 = null), null !== i2) return this.add(7 * (i2 - this.week()), "day");
  688. var n2 = this.$locale().yearStart || 1;
  689. if (11 === this.month() && this.date() > 25) {
  690. var f3 = r(this).startOf(t).add(1, t).date(n2), s2 = r(this).endOf(e);
  691. if (f3.isBefore(s2)) return 1;
  692. }
  693. var a2 = r(this).startOf(t).date(n2).startOf(e).subtract(1, "millisecond"), o2 = this.diff(a2, e, true);
  694. return o2 < 0 ? r(this).startOf("week").week() : Math.ceil(o2);
  695. }, f2.weeks = function(e2) {
  696. return void 0 === e2 && (e2 = null), this.week(e2);
  697. };
  698. };
  699. });
  700. }
  701. });
  702. // node_modules/dayjs/plugin/weekYear.js
  703. var require_weekYear = __commonJS({
  704. "node_modules/dayjs/plugin/weekYear.js"(exports2, module2) {
  705. !function(e, t) {
  706. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekYear = t();
  707. }(exports2, function() {
  708. "use strict";
  709. return function(e, t) {
  710. t.prototype.weekYear = function() {
  711. var e2 = this.month(), t2 = this.week(), n = this.year();
  712. return 1 === t2 && 11 === e2 ? n + 1 : 0 === e2 && t2 >= 52 ? n - 1 : n;
  713. };
  714. };
  715. });
  716. }
  717. });
  718. // node_modules/dayjs/plugin/dayOfYear.js
  719. var require_dayOfYear = __commonJS({
  720. "node_modules/dayjs/plugin/dayOfYear.js"(exports2, module2) {
  721. !function(e, t) {
  722. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_dayOfYear = t();
  723. }(exports2, function() {
  724. "use strict";
  725. return function(e, t, n) {
  726. t.prototype.dayOfYear = function(e2) {
  727. var t2 = Math.round((n(this).startOf("day") - n(this).startOf("year")) / 864e5) + 1;
  728. return null == e2 ? t2 : this.add(e2 - t2, "day");
  729. };
  730. };
  731. });
  732. }
  733. });
  734. // node_modules/dayjs/plugin/isSameOrAfter.js
  735. var require_isSameOrAfter = __commonJS({
  736. "node_modules/dayjs/plugin/isSameOrAfter.js"(exports2, module2) {
  737. !function(e, t) {
  738. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isSameOrAfter = t();
  739. }(exports2, function() {
  740. "use strict";
  741. return function(e, t) {
  742. t.prototype.isSameOrAfter = function(e2, t2) {
  743. return this.isSame(e2, t2) || this.isAfter(e2, t2);
  744. };
  745. };
  746. });
  747. }
  748. });
  749. // node_modules/dayjs/plugin/isSameOrBefore.js
  750. var require_isSameOrBefore = __commonJS({
  751. "node_modules/dayjs/plugin/isSameOrBefore.js"(exports2, module2) {
  752. !function(e, i) {
  753. "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = i() : "function" == typeof define && define.amd ? define(i) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isSameOrBefore = i();
  754. }(exports2, function() {
  755. "use strict";
  756. return function(e, i) {
  757. i.prototype.isSameOrBefore = function(e2, i2) {
  758. return this.isSame(e2, i2) || this.isBefore(e2, i2);
  759. };
  760. };
  761. });
  762. }
  763. });
  764. // node_modules/element-plus/es/version.mjs
  765. var version = "2.11.7";
  766. // node_modules/element-plus/es/constants/key.mjs
  767. var INSTALLED_KEY = Symbol("INSTALLED_KEY");
  768. // node_modules/element-plus/es/components/config-provider/src/constants.mjs
  769. var configProviderContextKey = Symbol();
  770. // node_modules/element-plus/es/hooks/use-namespace/index.mjs
  771. var defaultNamespace = "el";
  772. var statePrefix = "is-";
  773. var _bem = (namespace, block, blockSuffix, element, modifier) => {
  774. let cls = `${namespace}-${block}`;
  775. if (blockSuffix) {
  776. cls += `-${blockSuffix}`;
  777. }
  778. if (element) {
  779. cls += `__${element}`;
  780. }
  781. if (modifier) {
  782. cls += `--${modifier}`;
  783. }
  784. return cls;
  785. };
  786. var namespaceContextKey = Symbol("namespaceContextKey");
  787. var useGetDerivedNamespace = (namespaceOverrides) => {
  788. const derivedNamespace = namespaceOverrides || (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
  789. const namespace = computed(() => {
  790. return unref(derivedNamespace) || defaultNamespace;
  791. });
  792. return namespace;
  793. };
  794. var useNamespace = (block, namespaceOverrides) => {
  795. const namespace = useGetDerivedNamespace(namespaceOverrides);
  796. const b2 = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
  797. const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
  798. const m2 = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
  799. const be2 = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : "";
  800. const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : "";
  801. const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : "";
  802. const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : "";
  803. const is = (name, ...args) => {
  804. const state = args.length >= 1 ? args[0] : true;
  805. return name && state ? `${statePrefix}${name}` : "";
  806. };
  807. const cssVar = (object4) => {
  808. const styles = {};
  809. for (const key in object4) {
  810. if (object4[key]) {
  811. styles[`--${namespace.value}-${key}`] = object4[key];
  812. }
  813. }
  814. return styles;
  815. };
  816. const cssVarBlock = (object4) => {
  817. const styles = {};
  818. for (const key in object4) {
  819. if (object4[key]) {
  820. styles[`--${namespace.value}-${block}-${key}`] = object4[key];
  821. }
  822. }
  823. return styles;
  824. };
  825. const cssVarName = (name) => `--${namespace.value}-${name}`;
  826. const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
  827. return {
  828. namespace,
  829. b: b2,
  830. e,
  831. m: m2,
  832. be: be2,
  833. em,
  834. bm,
  835. bem,
  836. is,
  837. cssVar,
  838. cssVarName,
  839. cssVarBlock,
  840. cssVarBlockName
  841. };
  842. };
  843. // node_modules/lodash-es/_freeGlobal.js
  844. var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
  845. var freeGlobal_default = freeGlobal;
  846. // node_modules/lodash-es/_root.js
  847. var freeSelf = typeof self == "object" && self && self.Object === Object && self;
  848. var root = freeGlobal_default || freeSelf || Function("return this")();
  849. var root_default = root;
  850. // node_modules/lodash-es/_Symbol.js
  851. var Symbol2 = root_default.Symbol;
  852. var Symbol_default = Symbol2;
  853. // node_modules/lodash-es/_getRawTag.js
  854. var objectProto = Object.prototype;
  855. var hasOwnProperty = objectProto.hasOwnProperty;
  856. var nativeObjectToString = objectProto.toString;
  857. var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
  858. function getRawTag(value) {
  859. var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
  860. try {
  861. value[symToStringTag] = void 0;
  862. var unmasked = true;
  863. } catch (e) {
  864. }
  865. var result2 = nativeObjectToString.call(value);
  866. if (unmasked) {
  867. if (isOwn) {
  868. value[symToStringTag] = tag;
  869. } else {
  870. delete value[symToStringTag];
  871. }
  872. }
  873. return result2;
  874. }
  875. var getRawTag_default = getRawTag;
  876. // node_modules/lodash-es/_objectToString.js
  877. var objectProto2 = Object.prototype;
  878. var nativeObjectToString2 = objectProto2.toString;
  879. function objectToString(value) {
  880. return nativeObjectToString2.call(value);
  881. }
  882. var objectToString_default = objectToString;
  883. // node_modules/lodash-es/_baseGetTag.js
  884. var nullTag = "[object Null]";
  885. var undefinedTag = "[object Undefined]";
  886. var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
  887. function baseGetTag(value) {
  888. if (value == null) {
  889. return value === void 0 ? undefinedTag : nullTag;
  890. }
  891. return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
  892. }
  893. var baseGetTag_default = baseGetTag;
  894. // node_modules/lodash-es/isObjectLike.js
  895. function isObjectLike(value) {
  896. return value != null && typeof value == "object";
  897. }
  898. var isObjectLike_default = isObjectLike;
  899. // node_modules/lodash-es/isSymbol.js
  900. var symbolTag = "[object Symbol]";
  901. function isSymbol(value) {
  902. return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
  903. }
  904. var isSymbol_default = isSymbol;
  905. // node_modules/lodash-es/_baseToNumber.js
  906. var NAN = 0 / 0;
  907. function baseToNumber(value) {
  908. if (typeof value == "number") {
  909. return value;
  910. }
  911. if (isSymbol_default(value)) {
  912. return NAN;
  913. }
  914. return +value;
  915. }
  916. var baseToNumber_default = baseToNumber;
  917. // node_modules/lodash-es/_arrayMap.js
  918. function arrayMap(array4, iteratee2) {
  919. var index = -1, length = array4 == null ? 0 : array4.length, result2 = Array(length);
  920. while (++index < length) {
  921. result2[index] = iteratee2(array4[index], index, array4);
  922. }
  923. return result2;
  924. }
  925. var arrayMap_default = arrayMap;
  926. // node_modules/lodash-es/isArray.js
  927. var isArray2 = Array.isArray;
  928. var isArray_default = isArray2;
  929. // node_modules/lodash-es/_baseToString.js
  930. var INFINITY = 1 / 0;
  931. var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
  932. var symbolToString = symbolProto ? symbolProto.toString : void 0;
  933. function baseToString(value) {
  934. if (typeof value == "string") {
  935. return value;
  936. }
  937. if (isArray_default(value)) {
  938. return arrayMap_default(value, baseToString) + "";
  939. }
  940. if (isSymbol_default(value)) {
  941. return symbolToString ? symbolToString.call(value) : "";
  942. }
  943. var result2 = value + "";
  944. return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
  945. }
  946. var baseToString_default = baseToString;
  947. // node_modules/lodash-es/_createMathOperation.js
  948. function createMathOperation(operator, defaultValue) {
  949. return function(value, other) {
  950. var result2;
  951. if (value === void 0 && other === void 0) {
  952. return defaultValue;
  953. }
  954. if (value !== void 0) {
  955. result2 = value;
  956. }
  957. if (other !== void 0) {
  958. if (result2 === void 0) {
  959. return other;
  960. }
  961. if (typeof value == "string" || typeof other == "string") {
  962. value = baseToString_default(value);
  963. other = baseToString_default(other);
  964. } else {
  965. value = baseToNumber_default(value);
  966. other = baseToNumber_default(other);
  967. }
  968. result2 = operator(value, other);
  969. }
  970. return result2;
  971. };
  972. }
  973. var createMathOperation_default = createMathOperation;
  974. // node_modules/lodash-es/add.js
  975. var add = createMathOperation_default(function(augend, addend) {
  976. return augend + addend;
  977. }, 0);
  978. var add_default = add;
  979. // node_modules/lodash-es/_trimmedEndIndex.js
  980. var reWhitespace = /\s/;
  981. function trimmedEndIndex(string3) {
  982. var index = string3.length;
  983. while (index-- && reWhitespace.test(string3.charAt(index))) {
  984. }
  985. return index;
  986. }
  987. var trimmedEndIndex_default = trimmedEndIndex;
  988. // node_modules/lodash-es/_baseTrim.js
  989. var reTrimStart = /^\s+/;
  990. function baseTrim(string3) {
  991. return string3 ? string3.slice(0, trimmedEndIndex_default(string3) + 1).replace(reTrimStart, "") : string3;
  992. }
  993. var baseTrim_default = baseTrim;
  994. // node_modules/lodash-es/isObject.js
  995. function isObject2(value) {
  996. var type4 = typeof value;
  997. return value != null && (type4 == "object" || type4 == "function");
  998. }
  999. var isObject_default = isObject2;
  1000. // node_modules/lodash-es/toNumber.js
  1001. var NAN2 = 0 / 0;
  1002. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  1003. var reIsBinary = /^0b[01]+$/i;
  1004. var reIsOctal = /^0o[0-7]+$/i;
  1005. var freeParseInt = parseInt;
  1006. function toNumber(value) {
  1007. if (typeof value == "number") {
  1008. return value;
  1009. }
  1010. if (isSymbol_default(value)) {
  1011. return NAN2;
  1012. }
  1013. if (isObject_default(value)) {
  1014. var other = typeof value.valueOf == "function" ? value.valueOf() : value;
  1015. value = isObject_default(other) ? other + "" : other;
  1016. }
  1017. if (typeof value != "string") {
  1018. return value === 0 ? value : +value;
  1019. }
  1020. value = baseTrim_default(value);
  1021. var isBinary = reIsBinary.test(value);
  1022. return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN2 : +value;
  1023. }
  1024. var toNumber_default = toNumber;
  1025. // node_modules/lodash-es/toFinite.js
  1026. var INFINITY2 = 1 / 0;
  1027. var MAX_INTEGER = 17976931348623157e292;
  1028. function toFinite(value) {
  1029. if (!value) {
  1030. return value === 0 ? value : 0;
  1031. }
  1032. value = toNumber_default(value);
  1033. if (value === INFINITY2 || value === -INFINITY2) {
  1034. var sign = value < 0 ? -1 : 1;
  1035. return sign * MAX_INTEGER;
  1036. }
  1037. return value === value ? value : 0;
  1038. }
  1039. var toFinite_default = toFinite;
  1040. // node_modules/lodash-es/toInteger.js
  1041. function toInteger(value) {
  1042. var result2 = toFinite_default(value), remainder = result2 % 1;
  1043. return result2 === result2 ? remainder ? result2 - remainder : result2 : 0;
  1044. }
  1045. var toInteger_default = toInteger;
  1046. // node_modules/lodash-es/after.js
  1047. var FUNC_ERROR_TEXT = "Expected a function";
  1048. function after(n, func) {
  1049. if (typeof func != "function") {
  1050. throw new TypeError(FUNC_ERROR_TEXT);
  1051. }
  1052. n = toInteger_default(n);
  1053. return function() {
  1054. if (--n < 1) {
  1055. return func.apply(this, arguments);
  1056. }
  1057. };
  1058. }
  1059. var after_default = after;
  1060. // node_modules/lodash-es/identity.js
  1061. function identity(value) {
  1062. return value;
  1063. }
  1064. var identity_default = identity;
  1065. // node_modules/lodash-es/isFunction.js
  1066. var asyncTag = "[object AsyncFunction]";
  1067. var funcTag = "[object Function]";
  1068. var genTag = "[object GeneratorFunction]";
  1069. var proxyTag = "[object Proxy]";
  1070. function isFunction2(value) {
  1071. if (!isObject_default(value)) {
  1072. return false;
  1073. }
  1074. var tag = baseGetTag_default(value);
  1075. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  1076. }
  1077. var isFunction_default = isFunction2;
  1078. // node_modules/lodash-es/_coreJsData.js
  1079. var coreJsData = root_default["__core-js_shared__"];
  1080. var coreJsData_default = coreJsData;
  1081. // node_modules/lodash-es/_isMasked.js
  1082. var maskSrcKey = function() {
  1083. var uid2 = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
  1084. return uid2 ? "Symbol(src)_1." + uid2 : "";
  1085. }();
  1086. function isMasked(func) {
  1087. return !!maskSrcKey && maskSrcKey in func;
  1088. }
  1089. var isMasked_default = isMasked;
  1090. // node_modules/lodash-es/_toSource.js
  1091. var funcProto = Function.prototype;
  1092. var funcToString = funcProto.toString;
  1093. function toSource(func) {
  1094. if (func != null) {
  1095. try {
  1096. return funcToString.call(func);
  1097. } catch (e) {
  1098. }
  1099. try {
  1100. return func + "";
  1101. } catch (e) {
  1102. }
  1103. }
  1104. return "";
  1105. }
  1106. var toSource_default = toSource;
  1107. // node_modules/lodash-es/_baseIsNative.js
  1108. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  1109. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  1110. var funcProto2 = Function.prototype;
  1111. var objectProto3 = Object.prototype;
  1112. var funcToString2 = funcProto2.toString;
  1113. var hasOwnProperty2 = objectProto3.hasOwnProperty;
  1114. var reIsNative = RegExp(
  1115. "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  1116. );
  1117. function baseIsNative(value) {
  1118. if (!isObject_default(value) || isMasked_default(value)) {
  1119. return false;
  1120. }
  1121. var pattern4 = isFunction_default(value) ? reIsNative : reIsHostCtor;
  1122. return pattern4.test(toSource_default(value));
  1123. }
  1124. var baseIsNative_default = baseIsNative;
  1125. // node_modules/lodash-es/_getValue.js
  1126. function getValue(object4, key) {
  1127. return object4 == null ? void 0 : object4[key];
  1128. }
  1129. var getValue_default = getValue;
  1130. // node_modules/lodash-es/_getNative.js
  1131. function getNative(object4, key) {
  1132. var value = getValue_default(object4, key);
  1133. return baseIsNative_default(value) ? value : void 0;
  1134. }
  1135. var getNative_default = getNative;
  1136. // node_modules/lodash-es/_WeakMap.js
  1137. var WeakMap2 = getNative_default(root_default, "WeakMap");
  1138. var WeakMap_default = WeakMap2;
  1139. // node_modules/lodash-es/_metaMap.js
  1140. var metaMap = WeakMap_default && new WeakMap_default();
  1141. var metaMap_default = metaMap;
  1142. // node_modules/lodash-es/_baseSetData.js
  1143. var baseSetData = !metaMap_default ? identity_default : function(func, data) {
  1144. metaMap_default.set(func, data);
  1145. return func;
  1146. };
  1147. var baseSetData_default = baseSetData;
  1148. // node_modules/lodash-es/_baseCreate.js
  1149. var objectCreate = Object.create;
  1150. var baseCreate = /* @__PURE__ */ function() {
  1151. function object4() {
  1152. }
  1153. return function(proto) {
  1154. if (!isObject_default(proto)) {
  1155. return {};
  1156. }
  1157. if (objectCreate) {
  1158. return objectCreate(proto);
  1159. }
  1160. object4.prototype = proto;
  1161. var result2 = new object4();
  1162. object4.prototype = void 0;
  1163. return result2;
  1164. };
  1165. }();
  1166. var baseCreate_default = baseCreate;
  1167. // node_modules/lodash-es/_createCtor.js
  1168. function createCtor(Ctor) {
  1169. return function() {
  1170. var args = arguments;
  1171. switch (args.length) {
  1172. case 0:
  1173. return new Ctor();
  1174. case 1:
  1175. return new Ctor(args[0]);
  1176. case 2:
  1177. return new Ctor(args[0], args[1]);
  1178. case 3:
  1179. return new Ctor(args[0], args[1], args[2]);
  1180. case 4:
  1181. return new Ctor(args[0], args[1], args[2], args[3]);
  1182. case 5:
  1183. return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  1184. case 6:
  1185. return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  1186. case 7:
  1187. return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  1188. }
  1189. var thisBinding = baseCreate_default(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
  1190. return isObject_default(result2) ? result2 : thisBinding;
  1191. };
  1192. }
  1193. var createCtor_default = createCtor;
  1194. // node_modules/lodash-es/_createBind.js
  1195. var WRAP_BIND_FLAG = 1;
  1196. function createBind(func, bitmask, thisArg) {
  1197. var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor_default(func);
  1198. function wrapper() {
  1199. var fn2 = this && this !== root_default && this instanceof wrapper ? Ctor : func;
  1200. return fn2.apply(isBind ? thisArg : this, arguments);
  1201. }
  1202. return wrapper;
  1203. }
  1204. var createBind_default = createBind;
  1205. // node_modules/lodash-es/_apply.js
  1206. function apply(func, thisArg, args) {
  1207. switch (args.length) {
  1208. case 0:
  1209. return func.call(thisArg);
  1210. case 1:
  1211. return func.call(thisArg, args[0]);
  1212. case 2:
  1213. return func.call(thisArg, args[0], args[1]);
  1214. case 3:
  1215. return func.call(thisArg, args[0], args[1], args[2]);
  1216. }
  1217. return func.apply(thisArg, args);
  1218. }
  1219. var apply_default = apply;
  1220. // node_modules/lodash-es/_composeArgs.js
  1221. var nativeMax = Math.max;
  1222. function composeArgs(args, partials, holders, isCurried) {
  1223. var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array(leftLength + rangeLength), isUncurried = !isCurried;
  1224. while (++leftIndex < leftLength) {
  1225. result2[leftIndex] = partials[leftIndex];
  1226. }
  1227. while (++argsIndex < holdersLength) {
  1228. if (isUncurried || argsIndex < argsLength) {
  1229. result2[holders[argsIndex]] = args[argsIndex];
  1230. }
  1231. }
  1232. while (rangeLength--) {
  1233. result2[leftIndex++] = args[argsIndex++];
  1234. }
  1235. return result2;
  1236. }
  1237. var composeArgs_default = composeArgs;
  1238. // node_modules/lodash-es/_composeArgsRight.js
  1239. var nativeMax2 = Math.max;
  1240. function composeArgsRight(args, partials, holders, isCurried) {
  1241. var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax2(argsLength - holdersLength, 0), result2 = Array(rangeLength + rightLength), isUncurried = !isCurried;
  1242. while (++argsIndex < rangeLength) {
  1243. result2[argsIndex] = args[argsIndex];
  1244. }
  1245. var offset3 = argsIndex;
  1246. while (++rightIndex < rightLength) {
  1247. result2[offset3 + rightIndex] = partials[rightIndex];
  1248. }
  1249. while (++holdersIndex < holdersLength) {
  1250. if (isUncurried || argsIndex < argsLength) {
  1251. result2[offset3 + holders[holdersIndex]] = args[argsIndex++];
  1252. }
  1253. }
  1254. return result2;
  1255. }
  1256. var composeArgsRight_default = composeArgsRight;
  1257. // node_modules/lodash-es/_countHolders.js
  1258. function countHolders(array4, placeholder) {
  1259. var length = array4.length, result2 = 0;
  1260. while (length--) {
  1261. if (array4[length] === placeholder) {
  1262. ++result2;
  1263. }
  1264. }
  1265. return result2;
  1266. }
  1267. var countHolders_default = countHolders;
  1268. // node_modules/lodash-es/_baseLodash.js
  1269. function baseLodash() {
  1270. }
  1271. var baseLodash_default = baseLodash;
  1272. // node_modules/lodash-es/_LazyWrapper.js
  1273. var MAX_ARRAY_LENGTH = 4294967295;
  1274. function LazyWrapper(value) {
  1275. this.__wrapped__ = value;
  1276. this.__actions__ = [];
  1277. this.__dir__ = 1;
  1278. this.__filtered__ = false;
  1279. this.__iteratees__ = [];
  1280. this.__takeCount__ = MAX_ARRAY_LENGTH;
  1281. this.__views__ = [];
  1282. }
  1283. LazyWrapper.prototype = baseCreate_default(baseLodash_default.prototype);
  1284. LazyWrapper.prototype.constructor = LazyWrapper;
  1285. var LazyWrapper_default = LazyWrapper;
  1286. // node_modules/lodash-es/noop.js
  1287. function noop() {
  1288. }
  1289. var noop_default = noop;
  1290. // node_modules/lodash-es/_getData.js
  1291. var getData = !metaMap_default ? noop_default : function(func) {
  1292. return metaMap_default.get(func);
  1293. };
  1294. var getData_default = getData;
  1295. // node_modules/lodash-es/_realNames.js
  1296. var realNames = {};
  1297. var realNames_default = realNames;
  1298. // node_modules/lodash-es/_getFuncName.js
  1299. var objectProto4 = Object.prototype;
  1300. var hasOwnProperty3 = objectProto4.hasOwnProperty;
  1301. function getFuncName(func) {
  1302. var result2 = func.name + "", array4 = realNames_default[result2], length = hasOwnProperty3.call(realNames_default, result2) ? array4.length : 0;
  1303. while (length--) {
  1304. var data = array4[length], otherFunc = data.func;
  1305. if (otherFunc == null || otherFunc == func) {
  1306. return data.name;
  1307. }
  1308. }
  1309. return result2;
  1310. }
  1311. var getFuncName_default = getFuncName;
  1312. // node_modules/lodash-es/_LodashWrapper.js
  1313. function LodashWrapper(value, chainAll) {
  1314. this.__wrapped__ = value;
  1315. this.__actions__ = [];
  1316. this.__chain__ = !!chainAll;
  1317. this.__index__ = 0;
  1318. this.__values__ = void 0;
  1319. }
  1320. LodashWrapper.prototype = baseCreate_default(baseLodash_default.prototype);
  1321. LodashWrapper.prototype.constructor = LodashWrapper;
  1322. var LodashWrapper_default = LodashWrapper;
  1323. // node_modules/lodash-es/_copyArray.js
  1324. function copyArray(source, array4) {
  1325. var index = -1, length = source.length;
  1326. array4 || (array4 = Array(length));
  1327. while (++index < length) {
  1328. array4[index] = source[index];
  1329. }
  1330. return array4;
  1331. }
  1332. var copyArray_default = copyArray;
  1333. // node_modules/lodash-es/_wrapperClone.js
  1334. function wrapperClone(wrapper) {
  1335. if (wrapper instanceof LazyWrapper_default) {
  1336. return wrapper.clone();
  1337. }
  1338. var result2 = new LodashWrapper_default(wrapper.__wrapped__, wrapper.__chain__);
  1339. result2.__actions__ = copyArray_default(wrapper.__actions__);
  1340. result2.__index__ = wrapper.__index__;
  1341. result2.__values__ = wrapper.__values__;
  1342. return result2;
  1343. }
  1344. var wrapperClone_default = wrapperClone;
  1345. // node_modules/lodash-es/wrapperLodash.js
  1346. var objectProto5 = Object.prototype;
  1347. var hasOwnProperty4 = objectProto5.hasOwnProperty;
  1348. function lodash(value) {
  1349. if (isObjectLike_default(value) && !isArray_default(value) && !(value instanceof LazyWrapper_default)) {
  1350. if (value instanceof LodashWrapper_default) {
  1351. return value;
  1352. }
  1353. if (hasOwnProperty4.call(value, "__wrapped__")) {
  1354. return wrapperClone_default(value);
  1355. }
  1356. }
  1357. return new LodashWrapper_default(value);
  1358. }
  1359. lodash.prototype = baseLodash_default.prototype;
  1360. lodash.prototype.constructor = lodash;
  1361. var wrapperLodash_default = lodash;
  1362. // node_modules/lodash-es/_isLaziable.js
  1363. function isLaziable(func) {
  1364. var funcName = getFuncName_default(func), other = wrapperLodash_default[funcName];
  1365. if (typeof other != "function" || !(funcName in LazyWrapper_default.prototype)) {
  1366. return false;
  1367. }
  1368. if (func === other) {
  1369. return true;
  1370. }
  1371. var data = getData_default(other);
  1372. return !!data && func === data[0];
  1373. }
  1374. var isLaziable_default = isLaziable;
  1375. // node_modules/lodash-es/_shortOut.js
  1376. var HOT_COUNT = 800;
  1377. var HOT_SPAN = 16;
  1378. var nativeNow = Date.now;
  1379. function shortOut(func) {
  1380. var count = 0, lastCalled = 0;
  1381. return function() {
  1382. var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
  1383. lastCalled = stamp;
  1384. if (remaining > 0) {
  1385. if (++count >= HOT_COUNT) {
  1386. return arguments[0];
  1387. }
  1388. } else {
  1389. count = 0;
  1390. }
  1391. return func.apply(void 0, arguments);
  1392. };
  1393. }
  1394. var shortOut_default = shortOut;
  1395. // node_modules/lodash-es/_setData.js
  1396. var setData = shortOut_default(baseSetData_default);
  1397. var setData_default = setData;
  1398. // node_modules/lodash-es/_getWrapDetails.js
  1399. var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/;
  1400. var reSplitDetails = /,? & /;
  1401. function getWrapDetails(source) {
  1402. var match = source.match(reWrapDetails);
  1403. return match ? match[1].split(reSplitDetails) : [];
  1404. }
  1405. var getWrapDetails_default = getWrapDetails;
  1406. // node_modules/lodash-es/_insertWrapDetails.js
  1407. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;
  1408. function insertWrapDetails(source, details) {
  1409. var length = details.length;
  1410. if (!length) {
  1411. return source;
  1412. }
  1413. var lastIndex = length - 1;
  1414. details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex];
  1415. details = details.join(length > 2 ? ", " : " ");
  1416. return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
  1417. }
  1418. var insertWrapDetails_default = insertWrapDetails;
  1419. // node_modules/lodash-es/constant.js
  1420. function constant(value) {
  1421. return function() {
  1422. return value;
  1423. };
  1424. }
  1425. var constant_default = constant;
  1426. // node_modules/lodash-es/_defineProperty.js
  1427. var defineProperty = function() {
  1428. try {
  1429. var func = getNative_default(Object, "defineProperty");
  1430. func({}, "", {});
  1431. return func;
  1432. } catch (e) {
  1433. }
  1434. }();
  1435. var defineProperty_default = defineProperty;
  1436. // node_modules/lodash-es/_baseSetToString.js
  1437. var baseSetToString = !defineProperty_default ? identity_default : function(func, string3) {
  1438. return defineProperty_default(func, "toString", {
  1439. "configurable": true,
  1440. "enumerable": false,
  1441. "value": constant_default(string3),
  1442. "writable": true
  1443. });
  1444. };
  1445. var baseSetToString_default = baseSetToString;
  1446. // node_modules/lodash-es/_setToString.js
  1447. var setToString = shortOut_default(baseSetToString_default);
  1448. var setToString_default = setToString;
  1449. // node_modules/lodash-es/_arrayEach.js
  1450. function arrayEach(array4, iteratee2) {
  1451. var index = -1, length = array4 == null ? 0 : array4.length;
  1452. while (++index < length) {
  1453. if (iteratee2(array4[index], index, array4) === false) {
  1454. break;
  1455. }
  1456. }
  1457. return array4;
  1458. }
  1459. var arrayEach_default = arrayEach;
  1460. // node_modules/lodash-es/_baseFindIndex.js
  1461. function baseFindIndex(array4, predicate, fromIndex, fromRight) {
  1462. var length = array4.length, index = fromIndex + (fromRight ? 1 : -1);
  1463. while (fromRight ? index-- : ++index < length) {
  1464. if (predicate(array4[index], index, array4)) {
  1465. return index;
  1466. }
  1467. }
  1468. return -1;
  1469. }
  1470. var baseFindIndex_default = baseFindIndex;
  1471. // node_modules/lodash-es/_baseIsNaN.js
  1472. function baseIsNaN(value) {
  1473. return value !== value;
  1474. }
  1475. var baseIsNaN_default = baseIsNaN;
  1476. // node_modules/lodash-es/_strictIndexOf.js
  1477. function strictIndexOf(array4, value, fromIndex) {
  1478. var index = fromIndex - 1, length = array4.length;
  1479. while (++index < length) {
  1480. if (array4[index] === value) {
  1481. return index;
  1482. }
  1483. }
  1484. return -1;
  1485. }
  1486. var strictIndexOf_default = strictIndexOf;
  1487. // node_modules/lodash-es/_baseIndexOf.js
  1488. function baseIndexOf(array4, value, fromIndex) {
  1489. return value === value ? strictIndexOf_default(array4, value, fromIndex) : baseFindIndex_default(array4, baseIsNaN_default, fromIndex);
  1490. }
  1491. var baseIndexOf_default = baseIndexOf;
  1492. // node_modules/lodash-es/_arrayIncludes.js
  1493. function arrayIncludes(array4, value) {
  1494. var length = array4 == null ? 0 : array4.length;
  1495. return !!length && baseIndexOf_default(array4, value, 0) > -1;
  1496. }
  1497. var arrayIncludes_default = arrayIncludes;
  1498. // node_modules/lodash-es/_updateWrapDetails.js
  1499. var WRAP_BIND_FLAG2 = 1;
  1500. var WRAP_BIND_KEY_FLAG = 2;
  1501. var WRAP_CURRY_FLAG = 8;
  1502. var WRAP_CURRY_RIGHT_FLAG = 16;
  1503. var WRAP_PARTIAL_FLAG = 32;
  1504. var WRAP_PARTIAL_RIGHT_FLAG = 64;
  1505. var WRAP_ARY_FLAG = 128;
  1506. var WRAP_REARG_FLAG = 256;
  1507. var WRAP_FLIP_FLAG = 512;
  1508. var wrapFlags = [
  1509. ["ary", WRAP_ARY_FLAG],
  1510. ["bind", WRAP_BIND_FLAG2],
  1511. ["bindKey", WRAP_BIND_KEY_FLAG],
  1512. ["curry", WRAP_CURRY_FLAG],
  1513. ["curryRight", WRAP_CURRY_RIGHT_FLAG],
  1514. ["flip", WRAP_FLIP_FLAG],
  1515. ["partial", WRAP_PARTIAL_FLAG],
  1516. ["partialRight", WRAP_PARTIAL_RIGHT_FLAG],
  1517. ["rearg", WRAP_REARG_FLAG]
  1518. ];
  1519. function updateWrapDetails(details, bitmask) {
  1520. arrayEach_default(wrapFlags, function(pair) {
  1521. var value = "_." + pair[0];
  1522. if (bitmask & pair[1] && !arrayIncludes_default(details, value)) {
  1523. details.push(value);
  1524. }
  1525. });
  1526. return details.sort();
  1527. }
  1528. var updateWrapDetails_default = updateWrapDetails;
  1529. // node_modules/lodash-es/_setWrapToString.js
  1530. function setWrapToString(wrapper, reference, bitmask) {
  1531. var source = reference + "";
  1532. return setToString_default(wrapper, insertWrapDetails_default(source, updateWrapDetails_default(getWrapDetails_default(source), bitmask)));
  1533. }
  1534. var setWrapToString_default = setWrapToString;
  1535. // node_modules/lodash-es/_createRecurry.js
  1536. var WRAP_BIND_FLAG3 = 1;
  1537. var WRAP_BIND_KEY_FLAG2 = 2;
  1538. var WRAP_CURRY_BOUND_FLAG = 4;
  1539. var WRAP_CURRY_FLAG2 = 8;
  1540. var WRAP_PARTIAL_FLAG2 = 32;
  1541. var WRAP_PARTIAL_RIGHT_FLAG2 = 64;
  1542. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
  1543. var isCurry = bitmask & WRAP_CURRY_FLAG2, newHolders = isCurry ? holders : void 0, newHoldersRight = isCurry ? void 0 : holders, newPartials = isCurry ? partials : void 0, newPartialsRight = isCurry ? void 0 : partials;
  1544. bitmask |= isCurry ? WRAP_PARTIAL_FLAG2 : WRAP_PARTIAL_RIGHT_FLAG2;
  1545. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG2 : WRAP_PARTIAL_FLAG2);
  1546. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  1547. bitmask &= ~(WRAP_BIND_FLAG3 | WRAP_BIND_KEY_FLAG2);
  1548. }
  1549. var newData = [
  1550. func,
  1551. bitmask,
  1552. thisArg,
  1553. newPartials,
  1554. newHolders,
  1555. newPartialsRight,
  1556. newHoldersRight,
  1557. argPos,
  1558. ary2,
  1559. arity
  1560. ];
  1561. var result2 = wrapFunc.apply(void 0, newData);
  1562. if (isLaziable_default(func)) {
  1563. setData_default(result2, newData);
  1564. }
  1565. result2.placeholder = placeholder;
  1566. return setWrapToString_default(result2, func, bitmask);
  1567. }
  1568. var createRecurry_default = createRecurry;
  1569. // node_modules/lodash-es/_getHolder.js
  1570. function getHolder(func) {
  1571. var object4 = func;
  1572. return object4.placeholder;
  1573. }
  1574. var getHolder_default = getHolder;
  1575. // node_modules/lodash-es/_isIndex.js
  1576. var MAX_SAFE_INTEGER = 9007199254740991;
  1577. var reIsUint = /^(?:0|[1-9]\d*)$/;
  1578. function isIndex(value, length) {
  1579. var type4 = typeof value;
  1580. length = length == null ? MAX_SAFE_INTEGER : length;
  1581. return !!length && (type4 == "number" || type4 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
  1582. }
  1583. var isIndex_default = isIndex;
  1584. // node_modules/lodash-es/_reorder.js
  1585. var nativeMin = Math.min;
  1586. function reorder(array4, indexes) {
  1587. var arrLength = array4.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray_default(array4);
  1588. while (length--) {
  1589. var index = indexes[length];
  1590. array4[length] = isIndex_default(index, arrLength) ? oldArray[index] : void 0;
  1591. }
  1592. return array4;
  1593. }
  1594. var reorder_default = reorder;
  1595. // node_modules/lodash-es/_replaceHolders.js
  1596. var PLACEHOLDER = "__lodash_placeholder__";
  1597. function replaceHolders(array4, placeholder) {
  1598. var index = -1, length = array4.length, resIndex = 0, result2 = [];
  1599. while (++index < length) {
  1600. var value = array4[index];
  1601. if (value === placeholder || value === PLACEHOLDER) {
  1602. array4[index] = PLACEHOLDER;
  1603. result2[resIndex++] = index;
  1604. }
  1605. }
  1606. return result2;
  1607. }
  1608. var replaceHolders_default = replaceHolders;
  1609. // node_modules/lodash-es/_createHybrid.js
  1610. var WRAP_BIND_FLAG4 = 1;
  1611. var WRAP_BIND_KEY_FLAG3 = 2;
  1612. var WRAP_CURRY_FLAG3 = 8;
  1613. var WRAP_CURRY_RIGHT_FLAG2 = 16;
  1614. var WRAP_ARY_FLAG2 = 128;
  1615. var WRAP_FLIP_FLAG2 = 512;
  1616. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
  1617. var isAry = bitmask & WRAP_ARY_FLAG2, isBind = bitmask & WRAP_BIND_FLAG4, isBindKey = bitmask & WRAP_BIND_KEY_FLAG3, isCurried = bitmask & (WRAP_CURRY_FLAG3 | WRAP_CURRY_RIGHT_FLAG2), isFlip = bitmask & WRAP_FLIP_FLAG2, Ctor = isBindKey ? void 0 : createCtor_default(func);
  1618. function wrapper() {
  1619. var length = arguments.length, args = Array(length), index = length;
  1620. while (index--) {
  1621. args[index] = arguments[index];
  1622. }
  1623. if (isCurried) {
  1624. var placeholder = getHolder_default(wrapper), holdersCount = countHolders_default(args, placeholder);
  1625. }
  1626. if (partials) {
  1627. args = composeArgs_default(args, partials, holders, isCurried);
  1628. }
  1629. if (partialsRight) {
  1630. args = composeArgsRight_default(args, partialsRight, holdersRight, isCurried);
  1631. }
  1632. length -= holdersCount;
  1633. if (isCurried && length < arity) {
  1634. var newHolders = replaceHolders_default(args, placeholder);
  1635. return createRecurry_default(
  1636. func,
  1637. bitmask,
  1638. createHybrid,
  1639. wrapper.placeholder,
  1640. thisArg,
  1641. args,
  1642. newHolders,
  1643. argPos,
  1644. ary2,
  1645. arity - length
  1646. );
  1647. }
  1648. var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
  1649. length = args.length;
  1650. if (argPos) {
  1651. args = reorder_default(args, argPos);
  1652. } else if (isFlip && length > 1) {
  1653. args.reverse();
  1654. }
  1655. if (isAry && ary2 < length) {
  1656. args.length = ary2;
  1657. }
  1658. if (this && this !== root_default && this instanceof wrapper) {
  1659. fn2 = Ctor || createCtor_default(fn2);
  1660. }
  1661. return fn2.apply(thisBinding, args);
  1662. }
  1663. return wrapper;
  1664. }
  1665. var createHybrid_default = createHybrid;
  1666. // node_modules/lodash-es/_createCurry.js
  1667. function createCurry(func, bitmask, arity) {
  1668. var Ctor = createCtor_default(func);
  1669. function wrapper() {
  1670. var length = arguments.length, args = Array(length), index = length, placeholder = getHolder_default(wrapper);
  1671. while (index--) {
  1672. args[index] = arguments[index];
  1673. }
  1674. var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders_default(args, placeholder);
  1675. length -= holders.length;
  1676. if (length < arity) {
  1677. return createRecurry_default(
  1678. func,
  1679. bitmask,
  1680. createHybrid_default,
  1681. wrapper.placeholder,
  1682. void 0,
  1683. args,
  1684. holders,
  1685. void 0,
  1686. void 0,
  1687. arity - length
  1688. );
  1689. }
  1690. var fn2 = this && this !== root_default && this instanceof wrapper ? Ctor : func;
  1691. return apply_default(fn2, this, args);
  1692. }
  1693. return wrapper;
  1694. }
  1695. var createCurry_default = createCurry;
  1696. // node_modules/lodash-es/_createPartial.js
  1697. var WRAP_BIND_FLAG5 = 1;
  1698. function createPartial(func, bitmask, thisArg, partials) {
  1699. var isBind = bitmask & WRAP_BIND_FLAG5, Ctor = createCtor_default(func);
  1700. function wrapper() {
  1701. var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), fn2 = this && this !== root_default && this instanceof wrapper ? Ctor : func;
  1702. while (++leftIndex < leftLength) {
  1703. args[leftIndex] = partials[leftIndex];
  1704. }
  1705. while (argsLength--) {
  1706. args[leftIndex++] = arguments[++argsIndex];
  1707. }
  1708. return apply_default(fn2, isBind ? thisArg : this, args);
  1709. }
  1710. return wrapper;
  1711. }
  1712. var createPartial_default = createPartial;
  1713. // node_modules/lodash-es/_mergeData.js
  1714. var PLACEHOLDER2 = "__lodash_placeholder__";
  1715. var WRAP_BIND_FLAG6 = 1;
  1716. var WRAP_BIND_KEY_FLAG4 = 2;
  1717. var WRAP_CURRY_BOUND_FLAG2 = 4;
  1718. var WRAP_CURRY_FLAG4 = 8;
  1719. var WRAP_ARY_FLAG3 = 128;
  1720. var WRAP_REARG_FLAG2 = 256;
  1721. var nativeMin2 = Math.min;
  1722. function mergeData(data, source) {
  1723. var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG6 | WRAP_BIND_KEY_FLAG4 | WRAP_ARY_FLAG3);
  1724. var isCombo = srcBitmask == WRAP_ARY_FLAG3 && bitmask == WRAP_CURRY_FLAG4 || srcBitmask == WRAP_ARY_FLAG3 && bitmask == WRAP_REARG_FLAG2 && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG3 | WRAP_REARG_FLAG2) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG4;
  1725. if (!(isCommon || isCombo)) {
  1726. return data;
  1727. }
  1728. if (srcBitmask & WRAP_BIND_FLAG6) {
  1729. data[2] = source[2];
  1730. newBitmask |= bitmask & WRAP_BIND_FLAG6 ? 0 : WRAP_CURRY_BOUND_FLAG2;
  1731. }
  1732. var value = source[3];
  1733. if (value) {
  1734. var partials = data[3];
  1735. data[3] = partials ? composeArgs_default(partials, value, source[4]) : value;
  1736. data[4] = partials ? replaceHolders_default(data[3], PLACEHOLDER2) : source[4];
  1737. }
  1738. value = source[5];
  1739. if (value) {
  1740. partials = data[5];
  1741. data[5] = partials ? composeArgsRight_default(partials, value, source[6]) : value;
  1742. data[6] = partials ? replaceHolders_default(data[5], PLACEHOLDER2) : source[6];
  1743. }
  1744. value = source[7];
  1745. if (value) {
  1746. data[7] = value;
  1747. }
  1748. if (srcBitmask & WRAP_ARY_FLAG3) {
  1749. data[8] = data[8] == null ? source[8] : nativeMin2(data[8], source[8]);
  1750. }
  1751. if (data[9] == null) {
  1752. data[9] = source[9];
  1753. }
  1754. data[0] = source[0];
  1755. data[1] = newBitmask;
  1756. return data;
  1757. }
  1758. var mergeData_default = mergeData;
  1759. // node_modules/lodash-es/_createWrap.js
  1760. var FUNC_ERROR_TEXT2 = "Expected a function";
  1761. var WRAP_BIND_FLAG7 = 1;
  1762. var WRAP_BIND_KEY_FLAG5 = 2;
  1763. var WRAP_CURRY_FLAG5 = 8;
  1764. var WRAP_CURRY_RIGHT_FLAG3 = 16;
  1765. var WRAP_PARTIAL_FLAG3 = 32;
  1766. var WRAP_PARTIAL_RIGHT_FLAG3 = 64;
  1767. var nativeMax3 = Math.max;
  1768. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) {
  1769. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG5;
  1770. if (!isBindKey && typeof func != "function") {
  1771. throw new TypeError(FUNC_ERROR_TEXT2);
  1772. }
  1773. var length = partials ? partials.length : 0;
  1774. if (!length) {
  1775. bitmask &= ~(WRAP_PARTIAL_FLAG3 | WRAP_PARTIAL_RIGHT_FLAG3);
  1776. partials = holders = void 0;
  1777. }
  1778. ary2 = ary2 === void 0 ? ary2 : nativeMax3(toInteger_default(ary2), 0);
  1779. arity = arity === void 0 ? arity : toInteger_default(arity);
  1780. length -= holders ? holders.length : 0;
  1781. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG3) {
  1782. var partialsRight = partials, holdersRight = holders;
  1783. partials = holders = void 0;
  1784. }
  1785. var data = isBindKey ? void 0 : getData_default(func);
  1786. var newData = [
  1787. func,
  1788. bitmask,
  1789. thisArg,
  1790. partials,
  1791. holders,
  1792. partialsRight,
  1793. holdersRight,
  1794. argPos,
  1795. ary2,
  1796. arity
  1797. ];
  1798. if (data) {
  1799. mergeData_default(newData, data);
  1800. }
  1801. func = newData[0];
  1802. bitmask = newData[1];
  1803. thisArg = newData[2];
  1804. partials = newData[3];
  1805. holders = newData[4];
  1806. arity = newData[9] = newData[9] === void 0 ? isBindKey ? 0 : func.length : nativeMax3(newData[9] - length, 0);
  1807. if (!arity && bitmask & (WRAP_CURRY_FLAG5 | WRAP_CURRY_RIGHT_FLAG3)) {
  1808. bitmask &= ~(WRAP_CURRY_FLAG5 | WRAP_CURRY_RIGHT_FLAG3);
  1809. }
  1810. if (!bitmask || bitmask == WRAP_BIND_FLAG7) {
  1811. var result2 = createBind_default(func, bitmask, thisArg);
  1812. } else if (bitmask == WRAP_CURRY_FLAG5 || bitmask == WRAP_CURRY_RIGHT_FLAG3) {
  1813. result2 = createCurry_default(func, bitmask, arity);
  1814. } else if ((bitmask == WRAP_PARTIAL_FLAG3 || bitmask == (WRAP_BIND_FLAG7 | WRAP_PARTIAL_FLAG3)) && !holders.length) {
  1815. result2 = createPartial_default(func, bitmask, thisArg, partials);
  1816. } else {
  1817. result2 = createHybrid_default.apply(void 0, newData);
  1818. }
  1819. var setter = data ? baseSetData_default : setData_default;
  1820. return setWrapToString_default(setter(result2, newData), func, bitmask);
  1821. }
  1822. var createWrap_default = createWrap;
  1823. // node_modules/lodash-es/ary.js
  1824. var WRAP_ARY_FLAG4 = 128;
  1825. function ary(func, n, guard) {
  1826. n = guard ? void 0 : n;
  1827. n = func && n == null ? func.length : n;
  1828. return createWrap_default(func, WRAP_ARY_FLAG4, void 0, void 0, void 0, void 0, n);
  1829. }
  1830. var ary_default = ary;
  1831. // node_modules/lodash-es/_baseAssignValue.js
  1832. function baseAssignValue(object4, key, value) {
  1833. if (key == "__proto__" && defineProperty_default) {
  1834. defineProperty_default(object4, key, {
  1835. "configurable": true,
  1836. "enumerable": true,
  1837. "value": value,
  1838. "writable": true
  1839. });
  1840. } else {
  1841. object4[key] = value;
  1842. }
  1843. }
  1844. var baseAssignValue_default = baseAssignValue;
  1845. // node_modules/lodash-es/eq.js
  1846. function eq(value, other) {
  1847. return value === other || value !== value && other !== other;
  1848. }
  1849. var eq_default = eq;
  1850. // node_modules/lodash-es/_assignValue.js
  1851. var objectProto6 = Object.prototype;
  1852. var hasOwnProperty5 = objectProto6.hasOwnProperty;
  1853. function assignValue(object4, key, value) {
  1854. var objValue = object4[key];
  1855. if (!(hasOwnProperty5.call(object4, key) && eq_default(objValue, value)) || value === void 0 && !(key in object4)) {
  1856. baseAssignValue_default(object4, key, value);
  1857. }
  1858. }
  1859. var assignValue_default = assignValue;
  1860. // node_modules/lodash-es/_copyObject.js
  1861. function copyObject(source, props2, object4, customizer) {
  1862. var isNew = !object4;
  1863. object4 || (object4 = {});
  1864. var index = -1, length = props2.length;
  1865. while (++index < length) {
  1866. var key = props2[index];
  1867. var newValue = customizer ? customizer(object4[key], source[key], key, object4, source) : void 0;
  1868. if (newValue === void 0) {
  1869. newValue = source[key];
  1870. }
  1871. if (isNew) {
  1872. baseAssignValue_default(object4, key, newValue);
  1873. } else {
  1874. assignValue_default(object4, key, newValue);
  1875. }
  1876. }
  1877. return object4;
  1878. }
  1879. var copyObject_default = copyObject;
  1880. // node_modules/lodash-es/_overRest.js
  1881. var nativeMax4 = Math.max;
  1882. function overRest(func, start, transform2) {
  1883. start = nativeMax4(start === void 0 ? func.length - 1 : start, 0);
  1884. return function() {
  1885. var args = arguments, index = -1, length = nativeMax4(args.length - start, 0), array4 = Array(length);
  1886. while (++index < length) {
  1887. array4[index] = args[start + index];
  1888. }
  1889. index = -1;
  1890. var otherArgs = Array(start + 1);
  1891. while (++index < start) {
  1892. otherArgs[index] = args[index];
  1893. }
  1894. otherArgs[start] = transform2(array4);
  1895. return apply_default(func, this, otherArgs);
  1896. };
  1897. }
  1898. var overRest_default = overRest;
  1899. // node_modules/lodash-es/_baseRest.js
  1900. function baseRest(func, start) {
  1901. return setToString_default(overRest_default(func, start, identity_default), func + "");
  1902. }
  1903. var baseRest_default = baseRest;
  1904. // node_modules/lodash-es/isLength.js
  1905. var MAX_SAFE_INTEGER2 = 9007199254740991;
  1906. function isLength(value) {
  1907. return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
  1908. }
  1909. var isLength_default = isLength;
  1910. // node_modules/lodash-es/isArrayLike.js
  1911. function isArrayLike(value) {
  1912. return value != null && isLength_default(value.length) && !isFunction_default(value);
  1913. }
  1914. var isArrayLike_default = isArrayLike;
  1915. // node_modules/lodash-es/_isIterateeCall.js
  1916. function isIterateeCall(value, index, object4) {
  1917. if (!isObject_default(object4)) {
  1918. return false;
  1919. }
  1920. var type4 = typeof index;
  1921. if (type4 == "number" ? isArrayLike_default(object4) && isIndex_default(index, object4.length) : type4 == "string" && index in object4) {
  1922. return eq_default(object4[index], value);
  1923. }
  1924. return false;
  1925. }
  1926. var isIterateeCall_default = isIterateeCall;
  1927. // node_modules/lodash-es/_createAssigner.js
  1928. function createAssigner(assigner) {
  1929. return baseRest_default(function(object4, sources) {
  1930. var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
  1931. customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
  1932. if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
  1933. customizer = length < 3 ? void 0 : customizer;
  1934. length = 1;
  1935. }
  1936. object4 = Object(object4);
  1937. while (++index < length) {
  1938. var source = sources[index];
  1939. if (source) {
  1940. assigner(object4, source, index, customizer);
  1941. }
  1942. }
  1943. return object4;
  1944. });
  1945. }
  1946. var createAssigner_default = createAssigner;
  1947. // node_modules/lodash-es/_isPrototype.js
  1948. var objectProto7 = Object.prototype;
  1949. function isPrototype(value) {
  1950. var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto7;
  1951. return value === proto;
  1952. }
  1953. var isPrototype_default = isPrototype;
  1954. // node_modules/lodash-es/_baseTimes.js
  1955. function baseTimes(n, iteratee2) {
  1956. var index = -1, result2 = Array(n);
  1957. while (++index < n) {
  1958. result2[index] = iteratee2(index);
  1959. }
  1960. return result2;
  1961. }
  1962. var baseTimes_default = baseTimes;
  1963. // node_modules/lodash-es/_baseIsArguments.js
  1964. var argsTag = "[object Arguments]";
  1965. function baseIsArguments(value) {
  1966. return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
  1967. }
  1968. var baseIsArguments_default = baseIsArguments;
  1969. // node_modules/lodash-es/isArguments.js
  1970. var objectProto8 = Object.prototype;
  1971. var hasOwnProperty6 = objectProto8.hasOwnProperty;
  1972. var propertyIsEnumerable = objectProto8.propertyIsEnumerable;
  1973. var isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
  1974. return arguments;
  1975. }()) ? baseIsArguments_default : function(value) {
  1976. return isObjectLike_default(value) && hasOwnProperty6.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
  1977. };
  1978. var isArguments_default = isArguments;
  1979. // node_modules/lodash-es/stubFalse.js
  1980. function stubFalse() {
  1981. return false;
  1982. }
  1983. var stubFalse_default = stubFalse;
  1984. // node_modules/lodash-es/isBuffer.js
  1985. var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
  1986. var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
  1987. var moduleExports = freeModule && freeModule.exports === freeExports;
  1988. var Buffer = moduleExports ? root_default.Buffer : void 0;
  1989. var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
  1990. var isBuffer = nativeIsBuffer || stubFalse_default;
  1991. var isBuffer_default = isBuffer;
  1992. // node_modules/lodash-es/_baseIsTypedArray.js
  1993. var argsTag2 = "[object Arguments]";
  1994. var arrayTag = "[object Array]";
  1995. var boolTag = "[object Boolean]";
  1996. var dateTag = "[object Date]";
  1997. var errorTag = "[object Error]";
  1998. var funcTag2 = "[object Function]";
  1999. var mapTag = "[object Map]";
  2000. var numberTag = "[object Number]";
  2001. var objectTag = "[object Object]";
  2002. var regexpTag = "[object RegExp]";
  2003. var setTag = "[object Set]";
  2004. var stringTag = "[object String]";
  2005. var weakMapTag = "[object WeakMap]";
  2006. var arrayBufferTag = "[object ArrayBuffer]";
  2007. var dataViewTag = "[object DataView]";
  2008. var float32Tag = "[object Float32Array]";
  2009. var float64Tag = "[object Float64Array]";
  2010. var int8Tag = "[object Int8Array]";
  2011. var int16Tag = "[object Int16Array]";
  2012. var int32Tag = "[object Int32Array]";
  2013. var uint8Tag = "[object Uint8Array]";
  2014. var uint8ClampedTag = "[object Uint8ClampedArray]";
  2015. var uint16Tag = "[object Uint16Array]";
  2016. var uint32Tag = "[object Uint32Array]";
  2017. var typedArrayTags = {};
  2018. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
  2019. typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
  2020. function baseIsTypedArray(value) {
  2021. return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
  2022. }
  2023. var baseIsTypedArray_default = baseIsTypedArray;
  2024. // node_modules/lodash-es/_baseUnary.js
  2025. function baseUnary(func) {
  2026. return function(value) {
  2027. return func(value);
  2028. };
  2029. }
  2030. var baseUnary_default = baseUnary;
  2031. // node_modules/lodash-es/_nodeUtil.js
  2032. var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
  2033. var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
  2034. var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
  2035. var freeProcess = moduleExports2 && freeGlobal_default.process;
  2036. var nodeUtil = function() {
  2037. try {
  2038. var types2 = freeModule2 && freeModule2.require && freeModule2.require("util").types;
  2039. if (types2) {
  2040. return types2;
  2041. }
  2042. return freeProcess && freeProcess.binding && freeProcess.binding("util");
  2043. } catch (e) {
  2044. }
  2045. }();
  2046. var nodeUtil_default = nodeUtil;
  2047. // node_modules/lodash-es/isTypedArray.js
  2048. var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
  2049. var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
  2050. var isTypedArray_default = isTypedArray;
  2051. // node_modules/lodash-es/_arrayLikeKeys.js
  2052. var objectProto9 = Object.prototype;
  2053. var hasOwnProperty7 = objectProto9.hasOwnProperty;
  2054. function arrayLikeKeys(value, inherited) {
  2055. var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes_default(value.length, String) : [], length = result2.length;
  2056. for (var key in value) {
  2057. if ((inherited || hasOwnProperty7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
  2058. (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  2059. isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  2060. isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
  2061. isIndex_default(key, length)))) {
  2062. result2.push(key);
  2063. }
  2064. }
  2065. return result2;
  2066. }
  2067. var arrayLikeKeys_default = arrayLikeKeys;
  2068. // node_modules/lodash-es/_overArg.js
  2069. function overArg(func, transform2) {
  2070. return function(arg) {
  2071. return func(transform2(arg));
  2072. };
  2073. }
  2074. var overArg_default = overArg;
  2075. // node_modules/lodash-es/_nativeKeys.js
  2076. var nativeKeys = overArg_default(Object.keys, Object);
  2077. var nativeKeys_default = nativeKeys;
  2078. // node_modules/lodash-es/_baseKeys.js
  2079. var objectProto10 = Object.prototype;
  2080. var hasOwnProperty8 = objectProto10.hasOwnProperty;
  2081. function baseKeys(object4) {
  2082. if (!isPrototype_default(object4)) {
  2083. return nativeKeys_default(object4);
  2084. }
  2085. var result2 = [];
  2086. for (var key in Object(object4)) {
  2087. if (hasOwnProperty8.call(object4, key) && key != "constructor") {
  2088. result2.push(key);
  2089. }
  2090. }
  2091. return result2;
  2092. }
  2093. var baseKeys_default = baseKeys;
  2094. // node_modules/lodash-es/keys.js
  2095. function keys(object4) {
  2096. return isArrayLike_default(object4) ? arrayLikeKeys_default(object4) : baseKeys_default(object4);
  2097. }
  2098. var keys_default = keys;
  2099. // node_modules/lodash-es/assign.js
  2100. var objectProto11 = Object.prototype;
  2101. var hasOwnProperty9 = objectProto11.hasOwnProperty;
  2102. var assign = createAssigner_default(function(object4, source) {
  2103. if (isPrototype_default(source) || isArrayLike_default(source)) {
  2104. copyObject_default(source, keys_default(source), object4);
  2105. return;
  2106. }
  2107. for (var key in source) {
  2108. if (hasOwnProperty9.call(source, key)) {
  2109. assignValue_default(object4, key, source[key]);
  2110. }
  2111. }
  2112. });
  2113. var assign_default = assign;
  2114. // node_modules/lodash-es/_nativeKeysIn.js
  2115. function nativeKeysIn(object4) {
  2116. var result2 = [];
  2117. if (object4 != null) {
  2118. for (var key in Object(object4)) {
  2119. result2.push(key);
  2120. }
  2121. }
  2122. return result2;
  2123. }
  2124. var nativeKeysIn_default = nativeKeysIn;
  2125. // node_modules/lodash-es/_baseKeysIn.js
  2126. var objectProto12 = Object.prototype;
  2127. var hasOwnProperty10 = objectProto12.hasOwnProperty;
  2128. function baseKeysIn(object4) {
  2129. if (!isObject_default(object4)) {
  2130. return nativeKeysIn_default(object4);
  2131. }
  2132. var isProto = isPrototype_default(object4), result2 = [];
  2133. for (var key in object4) {
  2134. if (!(key == "constructor" && (isProto || !hasOwnProperty10.call(object4, key)))) {
  2135. result2.push(key);
  2136. }
  2137. }
  2138. return result2;
  2139. }
  2140. var baseKeysIn_default = baseKeysIn;
  2141. // node_modules/lodash-es/keysIn.js
  2142. function keysIn(object4) {
  2143. return isArrayLike_default(object4) ? arrayLikeKeys_default(object4, true) : baseKeysIn_default(object4);
  2144. }
  2145. var keysIn_default = keysIn;
  2146. // node_modules/lodash-es/assignIn.js
  2147. var assignIn = createAssigner_default(function(object4, source) {
  2148. copyObject_default(source, keysIn_default(source), object4);
  2149. });
  2150. var assignIn_default = assignIn;
  2151. // node_modules/lodash-es/assignInWith.js
  2152. var assignInWith = createAssigner_default(function(object4, source, srcIndex, customizer) {
  2153. copyObject_default(source, keysIn_default(source), object4, customizer);
  2154. });
  2155. var assignInWith_default = assignInWith;
  2156. // node_modules/lodash-es/assignWith.js
  2157. var assignWith = createAssigner_default(function(object4, source, srcIndex, customizer) {
  2158. copyObject_default(source, keys_default(source), object4, customizer);
  2159. });
  2160. var assignWith_default = assignWith;
  2161. // node_modules/lodash-es/_isKey.js
  2162. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
  2163. var reIsPlainProp = /^\w*$/;
  2164. function isKey(value, object4) {
  2165. if (isArray_default(value)) {
  2166. return false;
  2167. }
  2168. var type4 = typeof value;
  2169. if (type4 == "number" || type4 == "symbol" || type4 == "boolean" || value == null || isSymbol_default(value)) {
  2170. return true;
  2171. }
  2172. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object4 != null && value in Object(object4);
  2173. }
  2174. var isKey_default = isKey;
  2175. // node_modules/lodash-es/_nativeCreate.js
  2176. var nativeCreate = getNative_default(Object, "create");
  2177. var nativeCreate_default = nativeCreate;
  2178. // node_modules/lodash-es/_hashClear.js
  2179. function hashClear() {
  2180. this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
  2181. this.size = 0;
  2182. }
  2183. var hashClear_default = hashClear;
  2184. // node_modules/lodash-es/_hashDelete.js
  2185. function hashDelete(key) {
  2186. var result2 = this.has(key) && delete this.__data__[key];
  2187. this.size -= result2 ? 1 : 0;
  2188. return result2;
  2189. }
  2190. var hashDelete_default = hashDelete;
  2191. // node_modules/lodash-es/_hashGet.js
  2192. var HASH_UNDEFINED = "__lodash_hash_undefined__";
  2193. var objectProto13 = Object.prototype;
  2194. var hasOwnProperty11 = objectProto13.hasOwnProperty;
  2195. function hashGet(key) {
  2196. var data = this.__data__;
  2197. if (nativeCreate_default) {
  2198. var result2 = data[key];
  2199. return result2 === HASH_UNDEFINED ? void 0 : result2;
  2200. }
  2201. return hasOwnProperty11.call(data, key) ? data[key] : void 0;
  2202. }
  2203. var hashGet_default = hashGet;
  2204. // node_modules/lodash-es/_hashHas.js
  2205. var objectProto14 = Object.prototype;
  2206. var hasOwnProperty12 = objectProto14.hasOwnProperty;
  2207. function hashHas(key) {
  2208. var data = this.__data__;
  2209. return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty12.call(data, key);
  2210. }
  2211. var hashHas_default = hashHas;
  2212. // node_modules/lodash-es/_hashSet.js
  2213. var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
  2214. function hashSet(key, value) {
  2215. var data = this.__data__;
  2216. this.size += this.has(key) ? 0 : 1;
  2217. data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
  2218. return this;
  2219. }
  2220. var hashSet_default = hashSet;
  2221. // node_modules/lodash-es/_Hash.js
  2222. function Hash(entries) {
  2223. var index = -1, length = entries == null ? 0 : entries.length;
  2224. this.clear();
  2225. while (++index < length) {
  2226. var entry = entries[index];
  2227. this.set(entry[0], entry[1]);
  2228. }
  2229. }
  2230. Hash.prototype.clear = hashClear_default;
  2231. Hash.prototype["delete"] = hashDelete_default;
  2232. Hash.prototype.get = hashGet_default;
  2233. Hash.prototype.has = hashHas_default;
  2234. Hash.prototype.set = hashSet_default;
  2235. var Hash_default = Hash;
  2236. // node_modules/lodash-es/_listCacheClear.js
  2237. function listCacheClear() {
  2238. this.__data__ = [];
  2239. this.size = 0;
  2240. }
  2241. var listCacheClear_default = listCacheClear;
  2242. // node_modules/lodash-es/_assocIndexOf.js
  2243. function assocIndexOf(array4, key) {
  2244. var length = array4.length;
  2245. while (length--) {
  2246. if (eq_default(array4[length][0], key)) {
  2247. return length;
  2248. }
  2249. }
  2250. return -1;
  2251. }
  2252. var assocIndexOf_default = assocIndexOf;
  2253. // node_modules/lodash-es/_listCacheDelete.js
  2254. var arrayProto = Array.prototype;
  2255. var splice = arrayProto.splice;
  2256. function listCacheDelete(key) {
  2257. var data = this.__data__, index = assocIndexOf_default(data, key);
  2258. if (index < 0) {
  2259. return false;
  2260. }
  2261. var lastIndex = data.length - 1;
  2262. if (index == lastIndex) {
  2263. data.pop();
  2264. } else {
  2265. splice.call(data, index, 1);
  2266. }
  2267. --this.size;
  2268. return true;
  2269. }
  2270. var listCacheDelete_default = listCacheDelete;
  2271. // node_modules/lodash-es/_listCacheGet.js
  2272. function listCacheGet(key) {
  2273. var data = this.__data__, index = assocIndexOf_default(data, key);
  2274. return index < 0 ? void 0 : data[index][1];
  2275. }
  2276. var listCacheGet_default = listCacheGet;
  2277. // node_modules/lodash-es/_listCacheHas.js
  2278. function listCacheHas(key) {
  2279. return assocIndexOf_default(this.__data__, key) > -1;
  2280. }
  2281. var listCacheHas_default = listCacheHas;
  2282. // node_modules/lodash-es/_listCacheSet.js
  2283. function listCacheSet(key, value) {
  2284. var data = this.__data__, index = assocIndexOf_default(data, key);
  2285. if (index < 0) {
  2286. ++this.size;
  2287. data.push([key, value]);
  2288. } else {
  2289. data[index][1] = value;
  2290. }
  2291. return this;
  2292. }
  2293. var listCacheSet_default = listCacheSet;
  2294. // node_modules/lodash-es/_ListCache.js
  2295. function ListCache(entries) {
  2296. var index = -1, length = entries == null ? 0 : entries.length;
  2297. this.clear();
  2298. while (++index < length) {
  2299. var entry = entries[index];
  2300. this.set(entry[0], entry[1]);
  2301. }
  2302. }
  2303. ListCache.prototype.clear = listCacheClear_default;
  2304. ListCache.prototype["delete"] = listCacheDelete_default;
  2305. ListCache.prototype.get = listCacheGet_default;
  2306. ListCache.prototype.has = listCacheHas_default;
  2307. ListCache.prototype.set = listCacheSet_default;
  2308. var ListCache_default = ListCache;
  2309. // node_modules/lodash-es/_Map.js
  2310. var Map2 = getNative_default(root_default, "Map");
  2311. var Map_default = Map2;
  2312. // node_modules/lodash-es/_mapCacheClear.js
  2313. function mapCacheClear() {
  2314. this.size = 0;
  2315. this.__data__ = {
  2316. "hash": new Hash_default(),
  2317. "map": new (Map_default || ListCache_default)(),
  2318. "string": new Hash_default()
  2319. };
  2320. }
  2321. var mapCacheClear_default = mapCacheClear;
  2322. // node_modules/lodash-es/_isKeyable.js
  2323. function isKeyable(value) {
  2324. var type4 = typeof value;
  2325. return type4 == "string" || type4 == "number" || type4 == "symbol" || type4 == "boolean" ? value !== "__proto__" : value === null;
  2326. }
  2327. var isKeyable_default = isKeyable;
  2328. // node_modules/lodash-es/_getMapData.js
  2329. function getMapData(map2, key) {
  2330. var data = map2.__data__;
  2331. return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
  2332. }
  2333. var getMapData_default = getMapData;
  2334. // node_modules/lodash-es/_mapCacheDelete.js
  2335. function mapCacheDelete(key) {
  2336. var result2 = getMapData_default(this, key)["delete"](key);
  2337. this.size -= result2 ? 1 : 0;
  2338. return result2;
  2339. }
  2340. var mapCacheDelete_default = mapCacheDelete;
  2341. // node_modules/lodash-es/_mapCacheGet.js
  2342. function mapCacheGet(key) {
  2343. return getMapData_default(this, key).get(key);
  2344. }
  2345. var mapCacheGet_default = mapCacheGet;
  2346. // node_modules/lodash-es/_mapCacheHas.js
  2347. function mapCacheHas(key) {
  2348. return getMapData_default(this, key).has(key);
  2349. }
  2350. var mapCacheHas_default = mapCacheHas;
  2351. // node_modules/lodash-es/_mapCacheSet.js
  2352. function mapCacheSet(key, value) {
  2353. var data = getMapData_default(this, key), size3 = data.size;
  2354. data.set(key, value);
  2355. this.size += data.size == size3 ? 0 : 1;
  2356. return this;
  2357. }
  2358. var mapCacheSet_default = mapCacheSet;
  2359. // node_modules/lodash-es/_MapCache.js
  2360. function MapCache(entries) {
  2361. var index = -1, length = entries == null ? 0 : entries.length;
  2362. this.clear();
  2363. while (++index < length) {
  2364. var entry = entries[index];
  2365. this.set(entry[0], entry[1]);
  2366. }
  2367. }
  2368. MapCache.prototype.clear = mapCacheClear_default;
  2369. MapCache.prototype["delete"] = mapCacheDelete_default;
  2370. MapCache.prototype.get = mapCacheGet_default;
  2371. MapCache.prototype.has = mapCacheHas_default;
  2372. MapCache.prototype.set = mapCacheSet_default;
  2373. var MapCache_default = MapCache;
  2374. // node_modules/lodash-es/memoize.js
  2375. var FUNC_ERROR_TEXT3 = "Expected a function";
  2376. function memoize(func, resolver) {
  2377. if (typeof func != "function" || resolver != null && typeof resolver != "function") {
  2378. throw new TypeError(FUNC_ERROR_TEXT3);
  2379. }
  2380. var memoized = function() {
  2381. var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
  2382. if (cache2.has(key)) {
  2383. return cache2.get(key);
  2384. }
  2385. var result2 = func.apply(this, args);
  2386. memoized.cache = cache2.set(key, result2) || cache2;
  2387. return result2;
  2388. };
  2389. memoized.cache = new (memoize.Cache || MapCache_default)();
  2390. return memoized;
  2391. }
  2392. memoize.Cache = MapCache_default;
  2393. var memoize_default = memoize;
  2394. // node_modules/lodash-es/_memoizeCapped.js
  2395. var MAX_MEMOIZE_SIZE = 500;
  2396. function memoizeCapped(func) {
  2397. var result2 = memoize_default(func, function(key) {
  2398. if (cache2.size === MAX_MEMOIZE_SIZE) {
  2399. cache2.clear();
  2400. }
  2401. return key;
  2402. });
  2403. var cache2 = result2.cache;
  2404. return result2;
  2405. }
  2406. var memoizeCapped_default = memoizeCapped;
  2407. // node_modules/lodash-es/_stringToPath.js
  2408. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  2409. var reEscapeChar = /\\(\\)?/g;
  2410. var stringToPath = memoizeCapped_default(function(string3) {
  2411. var result2 = [];
  2412. if (string3.charCodeAt(0) === 46) {
  2413. result2.push("");
  2414. }
  2415. string3.replace(rePropName, function(match, number4, quote, subString) {
  2416. result2.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match);
  2417. });
  2418. return result2;
  2419. });
  2420. var stringToPath_default = stringToPath;
  2421. // node_modules/lodash-es/toString.js
  2422. function toString(value) {
  2423. return value == null ? "" : baseToString_default(value);
  2424. }
  2425. var toString_default = toString;
  2426. // node_modules/lodash-es/_castPath.js
  2427. function castPath(value, object4) {
  2428. if (isArray_default(value)) {
  2429. return value;
  2430. }
  2431. return isKey_default(value, object4) ? [value] : stringToPath_default(toString_default(value));
  2432. }
  2433. var castPath_default = castPath;
  2434. // node_modules/lodash-es/_toKey.js
  2435. var INFINITY3 = 1 / 0;
  2436. function toKey(value) {
  2437. if (typeof value == "string" || isSymbol_default(value)) {
  2438. return value;
  2439. }
  2440. var result2 = value + "";
  2441. return result2 == "0" && 1 / value == -INFINITY3 ? "-0" : result2;
  2442. }
  2443. var toKey_default = toKey;
  2444. // node_modules/lodash-es/_baseGet.js
  2445. function baseGet(object4, path) {
  2446. path = castPath_default(path, object4);
  2447. var index = 0, length = path.length;
  2448. while (object4 != null && index < length) {
  2449. object4 = object4[toKey_default(path[index++])];
  2450. }
  2451. return index && index == length ? object4 : void 0;
  2452. }
  2453. var baseGet_default = baseGet;
  2454. // node_modules/lodash-es/get.js
  2455. function get(object4, path, defaultValue) {
  2456. var result2 = object4 == null ? void 0 : baseGet_default(object4, path);
  2457. return result2 === void 0 ? defaultValue : result2;
  2458. }
  2459. var get_default = get;
  2460. // node_modules/lodash-es/_baseAt.js
  2461. function baseAt(object4, paths) {
  2462. var index = -1, length = paths.length, result2 = Array(length), skip = object4 == null;
  2463. while (++index < length) {
  2464. result2[index] = skip ? void 0 : get_default(object4, paths[index]);
  2465. }
  2466. return result2;
  2467. }
  2468. var baseAt_default = baseAt;
  2469. // node_modules/lodash-es/_arrayPush.js
  2470. function arrayPush(array4, values2) {
  2471. var index = -1, length = values2.length, offset3 = array4.length;
  2472. while (++index < length) {
  2473. array4[offset3 + index] = values2[index];
  2474. }
  2475. return array4;
  2476. }
  2477. var arrayPush_default = arrayPush;
  2478. // node_modules/lodash-es/_isFlattenable.js
  2479. var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0;
  2480. function isFlattenable(value) {
  2481. return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
  2482. }
  2483. var isFlattenable_default = isFlattenable;
  2484. // node_modules/lodash-es/_baseFlatten.js
  2485. function baseFlatten(array4, depth, predicate, isStrict, result2) {
  2486. var index = -1, length = array4.length;
  2487. predicate || (predicate = isFlattenable_default);
  2488. result2 || (result2 = []);
  2489. while (++index < length) {
  2490. var value = array4[index];
  2491. if (depth > 0 && predicate(value)) {
  2492. if (depth > 1) {
  2493. baseFlatten(value, depth - 1, predicate, isStrict, result2);
  2494. } else {
  2495. arrayPush_default(result2, value);
  2496. }
  2497. } else if (!isStrict) {
  2498. result2[result2.length] = value;
  2499. }
  2500. }
  2501. return result2;
  2502. }
  2503. var baseFlatten_default = baseFlatten;
  2504. // node_modules/lodash-es/flatten.js
  2505. function flatten(array4) {
  2506. var length = array4 == null ? 0 : array4.length;
  2507. return length ? baseFlatten_default(array4, 1) : [];
  2508. }
  2509. var flatten_default = flatten;
  2510. // node_modules/lodash-es/_flatRest.js
  2511. function flatRest(func) {
  2512. return setToString_default(overRest_default(func, void 0, flatten_default), func + "");
  2513. }
  2514. var flatRest_default = flatRest;
  2515. // node_modules/lodash-es/at.js
  2516. var at = flatRest_default(baseAt_default);
  2517. var at_default = at;
  2518. // node_modules/lodash-es/_getPrototype.js
  2519. var getPrototype = overArg_default(Object.getPrototypeOf, Object);
  2520. var getPrototype_default = getPrototype;
  2521. // node_modules/lodash-es/isPlainObject.js
  2522. var objectTag2 = "[object Object]";
  2523. var funcProto3 = Function.prototype;
  2524. var objectProto15 = Object.prototype;
  2525. var funcToString3 = funcProto3.toString;
  2526. var hasOwnProperty13 = objectProto15.hasOwnProperty;
  2527. var objectCtorString = funcToString3.call(Object);
  2528. function isPlainObject2(value) {
  2529. if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) {
  2530. return false;
  2531. }
  2532. var proto = getPrototype_default(value);
  2533. if (proto === null) {
  2534. return true;
  2535. }
  2536. var Ctor = hasOwnProperty13.call(proto, "constructor") && proto.constructor;
  2537. return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
  2538. }
  2539. var isPlainObject_default = isPlainObject2;
  2540. // node_modules/lodash-es/isError.js
  2541. var domExcTag = "[object DOMException]";
  2542. var errorTag2 = "[object Error]";
  2543. function isError(value) {
  2544. if (!isObjectLike_default(value)) {
  2545. return false;
  2546. }
  2547. var tag = baseGetTag_default(value);
  2548. return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject_default(value);
  2549. }
  2550. var isError_default = isError;
  2551. // node_modules/lodash-es/attempt.js
  2552. var attempt = baseRest_default(function(func, args) {
  2553. try {
  2554. return apply_default(func, void 0, args);
  2555. } catch (e) {
  2556. return isError_default(e) ? e : new Error(e);
  2557. }
  2558. });
  2559. var attempt_default = attempt;
  2560. // node_modules/lodash-es/before.js
  2561. var FUNC_ERROR_TEXT4 = "Expected a function";
  2562. function before(n, func) {
  2563. var result2;
  2564. if (typeof func != "function") {
  2565. throw new TypeError(FUNC_ERROR_TEXT4);
  2566. }
  2567. n = toInteger_default(n);
  2568. return function() {
  2569. if (--n > 0) {
  2570. result2 = func.apply(this, arguments);
  2571. }
  2572. if (n <= 1) {
  2573. func = void 0;
  2574. }
  2575. return result2;
  2576. };
  2577. }
  2578. var before_default = before;
  2579. // node_modules/lodash-es/bind.js
  2580. var WRAP_BIND_FLAG8 = 1;
  2581. var WRAP_PARTIAL_FLAG4 = 32;
  2582. var bind = baseRest_default(function(func, thisArg, partials) {
  2583. var bitmask = WRAP_BIND_FLAG8;
  2584. if (partials.length) {
  2585. var holders = replaceHolders_default(partials, getHolder_default(bind));
  2586. bitmask |= WRAP_PARTIAL_FLAG4;
  2587. }
  2588. return createWrap_default(func, bitmask, thisArg, partials, holders);
  2589. });
  2590. bind.placeholder = {};
  2591. var bind_default = bind;
  2592. // node_modules/lodash-es/bindAll.js
  2593. var bindAll = flatRest_default(function(object4, methodNames) {
  2594. arrayEach_default(methodNames, function(key) {
  2595. key = toKey_default(key);
  2596. baseAssignValue_default(object4, key, bind_default(object4[key], object4));
  2597. });
  2598. return object4;
  2599. });
  2600. var bindAll_default = bindAll;
  2601. // node_modules/lodash-es/bindKey.js
  2602. var WRAP_BIND_FLAG9 = 1;
  2603. var WRAP_BIND_KEY_FLAG6 = 2;
  2604. var WRAP_PARTIAL_FLAG5 = 32;
  2605. var bindKey = baseRest_default(function(object4, key, partials) {
  2606. var bitmask = WRAP_BIND_FLAG9 | WRAP_BIND_KEY_FLAG6;
  2607. if (partials.length) {
  2608. var holders = replaceHolders_default(partials, getHolder_default(bindKey));
  2609. bitmask |= WRAP_PARTIAL_FLAG5;
  2610. }
  2611. return createWrap_default(key, bitmask, object4, partials, holders);
  2612. });
  2613. bindKey.placeholder = {};
  2614. var bindKey_default = bindKey;
  2615. // node_modules/lodash-es/_baseSlice.js
  2616. function baseSlice(array4, start, end) {
  2617. var index = -1, length = array4.length;
  2618. if (start < 0) {
  2619. start = -start > length ? 0 : length + start;
  2620. }
  2621. end = end > length ? length : end;
  2622. if (end < 0) {
  2623. end += length;
  2624. }
  2625. length = start > end ? 0 : end - start >>> 0;
  2626. start >>>= 0;
  2627. var result2 = Array(length);
  2628. while (++index < length) {
  2629. result2[index] = array4[index + start];
  2630. }
  2631. return result2;
  2632. }
  2633. var baseSlice_default = baseSlice;
  2634. // node_modules/lodash-es/_castSlice.js
  2635. function castSlice(array4, start, end) {
  2636. var length = array4.length;
  2637. end = end === void 0 ? length : end;
  2638. return !start && end >= length ? array4 : baseSlice_default(array4, start, end);
  2639. }
  2640. var castSlice_default = castSlice;
  2641. // node_modules/lodash-es/_hasUnicode.js
  2642. var rsAstralRange = "\\ud800-\\udfff";
  2643. var rsComboMarksRange = "\\u0300-\\u036f";
  2644. var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
  2645. var rsComboSymbolsRange = "\\u20d0-\\u20ff";
  2646. var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
  2647. var rsVarRange = "\\ufe0e\\ufe0f";
  2648. var rsZWJ = "\\u200d";
  2649. var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
  2650. function hasUnicode(string3) {
  2651. return reHasUnicode.test(string3);
  2652. }
  2653. var hasUnicode_default = hasUnicode;
  2654. // node_modules/lodash-es/_asciiToArray.js
  2655. function asciiToArray(string3) {
  2656. return string3.split("");
  2657. }
  2658. var asciiToArray_default = asciiToArray;
  2659. // node_modules/lodash-es/_unicodeToArray.js
  2660. var rsAstralRange2 = "\\ud800-\\udfff";
  2661. var rsComboMarksRange2 = "\\u0300-\\u036f";
  2662. var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
  2663. var rsComboSymbolsRange2 = "\\u20d0-\\u20ff";
  2664. var rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
  2665. var rsVarRange2 = "\\ufe0e\\ufe0f";
  2666. var rsAstral = "[" + rsAstralRange2 + "]";
  2667. var rsCombo = "[" + rsComboRange2 + "]";
  2668. var rsFitz = "\\ud83c[\\udffb-\\udfff]";
  2669. var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
  2670. var rsNonAstral = "[^" + rsAstralRange2 + "]";
  2671. var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
  2672. var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
  2673. var rsZWJ2 = "\\u200d";
  2674. var reOptMod = rsModifier + "?";
  2675. var rsOptVar = "[" + rsVarRange2 + "]?";
  2676. var rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
  2677. var rsSeq = rsOptVar + reOptMod + rsOptJoin;
  2678. var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
  2679. var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
  2680. function unicodeToArray(string3) {
  2681. return string3.match(reUnicode) || [];
  2682. }
  2683. var unicodeToArray_default = unicodeToArray;
  2684. // node_modules/lodash-es/_stringToArray.js
  2685. function stringToArray(string3) {
  2686. return hasUnicode_default(string3) ? unicodeToArray_default(string3) : asciiToArray_default(string3);
  2687. }
  2688. var stringToArray_default = stringToArray;
  2689. // node_modules/lodash-es/_createCaseFirst.js
  2690. function createCaseFirst(methodName) {
  2691. return function(string3) {
  2692. string3 = toString_default(string3);
  2693. var strSymbols = hasUnicode_default(string3) ? stringToArray_default(string3) : void 0;
  2694. var chr = strSymbols ? strSymbols[0] : string3.charAt(0);
  2695. var trailing = strSymbols ? castSlice_default(strSymbols, 1).join("") : string3.slice(1);
  2696. return chr[methodName]() + trailing;
  2697. };
  2698. }
  2699. var createCaseFirst_default = createCaseFirst;
  2700. // node_modules/lodash-es/upperFirst.js
  2701. var upperFirst = createCaseFirst_default("toUpperCase");
  2702. var upperFirst_default = upperFirst;
  2703. // node_modules/lodash-es/capitalize.js
  2704. function capitalize2(string3) {
  2705. return upperFirst_default(toString_default(string3).toLowerCase());
  2706. }
  2707. var capitalize_default = capitalize2;
  2708. // node_modules/lodash-es/_arrayReduce.js
  2709. function arrayReduce(array4, iteratee2, accumulator, initAccum) {
  2710. var index = -1, length = array4 == null ? 0 : array4.length;
  2711. if (initAccum && length) {
  2712. accumulator = array4[++index];
  2713. }
  2714. while (++index < length) {
  2715. accumulator = iteratee2(accumulator, array4[index], index, array4);
  2716. }
  2717. return accumulator;
  2718. }
  2719. var arrayReduce_default = arrayReduce;
  2720. // node_modules/lodash-es/_basePropertyOf.js
  2721. function basePropertyOf(object4) {
  2722. return function(key) {
  2723. return object4 == null ? void 0 : object4[key];
  2724. };
  2725. }
  2726. var basePropertyOf_default = basePropertyOf;
  2727. // node_modules/lodash-es/_deburrLetter.js
  2728. var deburredLetters = {
  2729. // Latin-1 Supplement block.
  2730. "À": "A",
  2731. "Á": "A",
  2732. "Â": "A",
  2733. "Ã": "A",
  2734. "Ä": "A",
  2735. "Å": "A",
  2736. "à": "a",
  2737. "á": "a",
  2738. "â": "a",
  2739. "ã": "a",
  2740. "ä": "a",
  2741. "å": "a",
  2742. "Ç": "C",
  2743. "ç": "c",
  2744. "Ð": "D",
  2745. "ð": "d",
  2746. "È": "E",
  2747. "É": "E",
  2748. "Ê": "E",
  2749. "Ë": "E",
  2750. "è": "e",
  2751. "é": "e",
  2752. "ê": "e",
  2753. "ë": "e",
  2754. "Ì": "I",
  2755. "Í": "I",
  2756. "Î": "I",
  2757. "Ï": "I",
  2758. "ì": "i",
  2759. "í": "i",
  2760. "î": "i",
  2761. "ï": "i",
  2762. "Ñ": "N",
  2763. "ñ": "n",
  2764. "Ò": "O",
  2765. "Ó": "O",
  2766. "Ô": "O",
  2767. "Õ": "O",
  2768. "Ö": "O",
  2769. "Ø": "O",
  2770. "ò": "o",
  2771. "ó": "o",
  2772. "ô": "o",
  2773. "õ": "o",
  2774. "ö": "o",
  2775. "ø": "o",
  2776. "Ù": "U",
  2777. "Ú": "U",
  2778. "Û": "U",
  2779. "Ü": "U",
  2780. "ù": "u",
  2781. "ú": "u",
  2782. "û": "u",
  2783. "ü": "u",
  2784. "Ý": "Y",
  2785. "ý": "y",
  2786. "ÿ": "y",
  2787. "Æ": "Ae",
  2788. "æ": "ae",
  2789. "Þ": "Th",
  2790. "þ": "th",
  2791. "ß": "ss",
  2792. // Latin Extended-A block.
  2793. "Ā": "A",
  2794. "Ă": "A",
  2795. "Ą": "A",
  2796. "ā": "a",
  2797. "ă": "a",
  2798. "ą": "a",
  2799. "Ć": "C",
  2800. "Ĉ": "C",
  2801. "Ċ": "C",
  2802. "Č": "C",
  2803. "ć": "c",
  2804. "ĉ": "c",
  2805. "ċ": "c",
  2806. "č": "c",
  2807. "Ď": "D",
  2808. "Đ": "D",
  2809. "ď": "d",
  2810. "đ": "d",
  2811. "Ē": "E",
  2812. "Ĕ": "E",
  2813. "Ė": "E",
  2814. "Ę": "E",
  2815. "Ě": "E",
  2816. "ē": "e",
  2817. "ĕ": "e",
  2818. "ė": "e",
  2819. "ę": "e",
  2820. "ě": "e",
  2821. "Ĝ": "G",
  2822. "Ğ": "G",
  2823. "Ġ": "G",
  2824. "Ģ": "G",
  2825. "ĝ": "g",
  2826. "ğ": "g",
  2827. "ġ": "g",
  2828. "ģ": "g",
  2829. "Ĥ": "H",
  2830. "Ħ": "H",
  2831. "ĥ": "h",
  2832. "ħ": "h",
  2833. "Ĩ": "I",
  2834. "Ī": "I",
  2835. "Ĭ": "I",
  2836. "Į": "I",
  2837. "İ": "I",
  2838. "ĩ": "i",
  2839. "ī": "i",
  2840. "ĭ": "i",
  2841. "į": "i",
  2842. "ı": "i",
  2843. "Ĵ": "J",
  2844. "ĵ": "j",
  2845. "Ķ": "K",
  2846. "ķ": "k",
  2847. "ĸ": "k",
  2848. "Ĺ": "L",
  2849. "Ļ": "L",
  2850. "Ľ": "L",
  2851. "Ŀ": "L",
  2852. "Ł": "L",
  2853. "ĺ": "l",
  2854. "ļ": "l",
  2855. "ľ": "l",
  2856. "ŀ": "l",
  2857. "ł": "l",
  2858. "Ń": "N",
  2859. "Ņ": "N",
  2860. "Ň": "N",
  2861. "Ŋ": "N",
  2862. "ń": "n",
  2863. "ņ": "n",
  2864. "ň": "n",
  2865. "ŋ": "n",
  2866. "Ō": "O",
  2867. "Ŏ": "O",
  2868. "Ő": "O",
  2869. "ō": "o",
  2870. "ŏ": "o",
  2871. "ő": "o",
  2872. "Ŕ": "R",
  2873. "Ŗ": "R",
  2874. "Ř": "R",
  2875. "ŕ": "r",
  2876. "ŗ": "r",
  2877. "ř": "r",
  2878. "Ś": "S",
  2879. "Ŝ": "S",
  2880. "Ş": "S",
  2881. "Š": "S",
  2882. "ś": "s",
  2883. "ŝ": "s",
  2884. "ş": "s",
  2885. "š": "s",
  2886. "Ţ": "T",
  2887. "Ť": "T",
  2888. "Ŧ": "T",
  2889. "ţ": "t",
  2890. "ť": "t",
  2891. "ŧ": "t",
  2892. "Ũ": "U",
  2893. "Ū": "U",
  2894. "Ŭ": "U",
  2895. "Ů": "U",
  2896. "Ű": "U",
  2897. "Ų": "U",
  2898. "ũ": "u",
  2899. "ū": "u",
  2900. "ŭ": "u",
  2901. "ů": "u",
  2902. "ű": "u",
  2903. "ų": "u",
  2904. "Ŵ": "W",
  2905. "ŵ": "w",
  2906. "Ŷ": "Y",
  2907. "ŷ": "y",
  2908. "Ÿ": "Y",
  2909. "Ź": "Z",
  2910. "Ż": "Z",
  2911. "Ž": "Z",
  2912. "ź": "z",
  2913. "ż": "z",
  2914. "ž": "z",
  2915. "IJ": "IJ",
  2916. "ij": "ij",
  2917. "Œ": "Oe",
  2918. "œ": "oe",
  2919. "ʼn": "'n",
  2920. "ſ": "s"
  2921. };
  2922. var deburrLetter = basePropertyOf_default(deburredLetters);
  2923. var deburrLetter_default = deburrLetter;
  2924. // node_modules/lodash-es/deburr.js
  2925. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  2926. var rsComboMarksRange3 = "\\u0300-\\u036f";
  2927. var reComboHalfMarksRange3 = "\\ufe20-\\ufe2f";
  2928. var rsComboSymbolsRange3 = "\\u20d0-\\u20ff";
  2929. var rsComboRange3 = rsComboMarksRange3 + reComboHalfMarksRange3 + rsComboSymbolsRange3;
  2930. var rsCombo2 = "[" + rsComboRange3 + "]";
  2931. var reComboMark = RegExp(rsCombo2, "g");
  2932. function deburr(string3) {
  2933. string3 = toString_default(string3);
  2934. return string3 && string3.replace(reLatin, deburrLetter_default).replace(reComboMark, "");
  2935. }
  2936. var deburr_default = deburr;
  2937. // node_modules/lodash-es/_asciiWords.js
  2938. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  2939. function asciiWords(string3) {
  2940. return string3.match(reAsciiWord) || [];
  2941. }
  2942. var asciiWords_default = asciiWords;
  2943. // node_modules/lodash-es/_hasUnicodeWord.js
  2944. var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  2945. function hasUnicodeWord(string3) {
  2946. return reHasUnicodeWord.test(string3);
  2947. }
  2948. var hasUnicodeWord_default = hasUnicodeWord;
  2949. // node_modules/lodash-es/_unicodeWords.js
  2950. var rsAstralRange3 = "\\ud800-\\udfff";
  2951. var rsComboMarksRange4 = "\\u0300-\\u036f";
  2952. var reComboHalfMarksRange4 = "\\ufe20-\\ufe2f";
  2953. var rsComboSymbolsRange4 = "\\u20d0-\\u20ff";
  2954. var rsComboRange4 = rsComboMarksRange4 + reComboHalfMarksRange4 + rsComboSymbolsRange4;
  2955. var rsDingbatRange = "\\u2700-\\u27bf";
  2956. var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
  2957. var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
  2958. var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
  2959. var rsPunctuationRange = "\\u2000-\\u206f";
  2960. var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
  2961. var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
  2962. var rsVarRange3 = "\\ufe0e\\ufe0f";
  2963. var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  2964. var rsApos = "['’]";
  2965. var rsBreak = "[" + rsBreakRange + "]";
  2966. var rsCombo3 = "[" + rsComboRange4 + "]";
  2967. var rsDigits = "\\d+";
  2968. var rsDingbat = "[" + rsDingbatRange + "]";
  2969. var rsLower = "[" + rsLowerRange + "]";
  2970. var rsMisc = "[^" + rsAstralRange3 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
  2971. var rsFitz2 = "\\ud83c[\\udffb-\\udfff]";
  2972. var rsModifier2 = "(?:" + rsCombo3 + "|" + rsFitz2 + ")";
  2973. var rsNonAstral2 = "[^" + rsAstralRange3 + "]";
  2974. var rsRegional2 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
  2975. var rsSurrPair2 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
  2976. var rsUpper = "[" + rsUpperRange + "]";
  2977. var rsZWJ3 = "\\u200d";
  2978. var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
  2979. var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
  2980. var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
  2981. var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
  2982. var reOptMod2 = rsModifier2 + "?";
  2983. var rsOptVar2 = "[" + rsVarRange3 + "]?";
  2984. var rsOptJoin2 = "(?:" + rsZWJ3 + "(?:" + [rsNonAstral2, rsRegional2, rsSurrPair2].join("|") + ")" + rsOptVar2 + reOptMod2 + ")*";
  2985. var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
  2986. var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
  2987. var rsSeq2 = rsOptVar2 + reOptMod2 + rsOptJoin2;
  2988. var rsEmoji = "(?:" + [rsDingbat, rsRegional2, rsSurrPair2].join("|") + ")" + rsSeq2;
  2989. var reUnicodeWord = RegExp([
  2990. rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
  2991. rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")",
  2992. rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
  2993. rsUpper + "+" + rsOptContrUpper,
  2994. rsOrdUpper,
  2995. rsOrdLower,
  2996. rsDigits,
  2997. rsEmoji
  2998. ].join("|"), "g");
  2999. function unicodeWords(string3) {
  3000. return string3.match(reUnicodeWord) || [];
  3001. }
  3002. var unicodeWords_default = unicodeWords;
  3003. // node_modules/lodash-es/words.js
  3004. function words(string3, pattern4, guard) {
  3005. string3 = toString_default(string3);
  3006. pattern4 = guard ? void 0 : pattern4;
  3007. if (pattern4 === void 0) {
  3008. return hasUnicodeWord_default(string3) ? unicodeWords_default(string3) : asciiWords_default(string3);
  3009. }
  3010. return string3.match(pattern4) || [];
  3011. }
  3012. var words_default = words;
  3013. // node_modules/lodash-es/_createCompounder.js
  3014. var rsApos2 = "['’]";
  3015. var reApos = RegExp(rsApos2, "g");
  3016. function createCompounder(callback) {
  3017. return function(string3) {
  3018. return arrayReduce_default(words_default(deburr_default(string3).replace(reApos, "")), callback, "");
  3019. };
  3020. }
  3021. var createCompounder_default = createCompounder;
  3022. // node_modules/lodash-es/camelCase.js
  3023. var camelCase = createCompounder_default(function(result2, word, index) {
  3024. word = word.toLowerCase();
  3025. return result2 + (index ? capitalize_default(word) : word);
  3026. });
  3027. var camelCase_default = camelCase;
  3028. // node_modules/lodash-es/castArray.js
  3029. function castArray() {
  3030. if (!arguments.length) {
  3031. return [];
  3032. }
  3033. var value = arguments[0];
  3034. return isArray_default(value) ? value : [value];
  3035. }
  3036. var castArray_default = castArray;
  3037. // node_modules/lodash-es/_createRound.js
  3038. var nativeIsFinite = root_default.isFinite;
  3039. var nativeMin3 = Math.min;
  3040. function createRound(methodName) {
  3041. var func = Math[methodName];
  3042. return function(number4, precision) {
  3043. number4 = toNumber_default(number4);
  3044. precision = precision == null ? 0 : nativeMin3(toInteger_default(precision), 292);
  3045. if (precision && nativeIsFinite(number4)) {
  3046. var pair = (toString_default(number4) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision));
  3047. pair = (toString_default(value) + "e").split("e");
  3048. return +(pair[0] + "e" + (+pair[1] - precision));
  3049. }
  3050. return func(number4);
  3051. };
  3052. }
  3053. var createRound_default = createRound;
  3054. // node_modules/lodash-es/ceil.js
  3055. var ceil = createRound_default("ceil");
  3056. var ceil_default = ceil;
  3057. // node_modules/lodash-es/chain.js
  3058. function chain(value) {
  3059. var result2 = wrapperLodash_default(value);
  3060. result2.__chain__ = true;
  3061. return result2;
  3062. }
  3063. var chain_default = chain;
  3064. // node_modules/lodash-es/chunk.js
  3065. var nativeCeil = Math.ceil;
  3066. var nativeMax5 = Math.max;
  3067. function chunk(array4, size3, guard) {
  3068. if (guard ? isIterateeCall_default(array4, size3, guard) : size3 === void 0) {
  3069. size3 = 1;
  3070. } else {
  3071. size3 = nativeMax5(toInteger_default(size3), 0);
  3072. }
  3073. var length = array4 == null ? 0 : array4.length;
  3074. if (!length || size3 < 1) {
  3075. return [];
  3076. }
  3077. var index = 0, resIndex = 0, result2 = Array(nativeCeil(length / size3));
  3078. while (index < length) {
  3079. result2[resIndex++] = baseSlice_default(array4, index, index += size3);
  3080. }
  3081. return result2;
  3082. }
  3083. var chunk_default = chunk;
  3084. // node_modules/lodash-es/_baseClamp.js
  3085. function baseClamp(number4, lower, upper) {
  3086. if (number4 === number4) {
  3087. if (upper !== void 0) {
  3088. number4 = number4 <= upper ? number4 : upper;
  3089. }
  3090. if (lower !== void 0) {
  3091. number4 = number4 >= lower ? number4 : lower;
  3092. }
  3093. }
  3094. return number4;
  3095. }
  3096. var baseClamp_default = baseClamp;
  3097. // node_modules/lodash-es/clamp.js
  3098. function clamp(number4, lower, upper) {
  3099. if (upper === void 0) {
  3100. upper = lower;
  3101. lower = void 0;
  3102. }
  3103. if (upper !== void 0) {
  3104. upper = toNumber_default(upper);
  3105. upper = upper === upper ? upper : 0;
  3106. }
  3107. if (lower !== void 0) {
  3108. lower = toNumber_default(lower);
  3109. lower = lower === lower ? lower : 0;
  3110. }
  3111. return baseClamp_default(toNumber_default(number4), lower, upper);
  3112. }
  3113. var clamp_default = clamp;
  3114. // node_modules/lodash-es/_stackClear.js
  3115. function stackClear() {
  3116. this.__data__ = new ListCache_default();
  3117. this.size = 0;
  3118. }
  3119. var stackClear_default = stackClear;
  3120. // node_modules/lodash-es/_stackDelete.js
  3121. function stackDelete(key) {
  3122. var data = this.__data__, result2 = data["delete"](key);
  3123. this.size = data.size;
  3124. return result2;
  3125. }
  3126. var stackDelete_default = stackDelete;
  3127. // node_modules/lodash-es/_stackGet.js
  3128. function stackGet(key) {
  3129. return this.__data__.get(key);
  3130. }
  3131. var stackGet_default = stackGet;
  3132. // node_modules/lodash-es/_stackHas.js
  3133. function stackHas(key) {
  3134. return this.__data__.has(key);
  3135. }
  3136. var stackHas_default = stackHas;
  3137. // node_modules/lodash-es/_stackSet.js
  3138. var LARGE_ARRAY_SIZE = 200;
  3139. function stackSet(key, value) {
  3140. var data = this.__data__;
  3141. if (data instanceof ListCache_default) {
  3142. var pairs = data.__data__;
  3143. if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
  3144. pairs.push([key, value]);
  3145. this.size = ++data.size;
  3146. return this;
  3147. }
  3148. data = this.__data__ = new MapCache_default(pairs);
  3149. }
  3150. data.set(key, value);
  3151. this.size = data.size;
  3152. return this;
  3153. }
  3154. var stackSet_default = stackSet;
  3155. // node_modules/lodash-es/_Stack.js
  3156. function Stack(entries) {
  3157. var data = this.__data__ = new ListCache_default(entries);
  3158. this.size = data.size;
  3159. }
  3160. Stack.prototype.clear = stackClear_default;
  3161. Stack.prototype["delete"] = stackDelete_default;
  3162. Stack.prototype.get = stackGet_default;
  3163. Stack.prototype.has = stackHas_default;
  3164. Stack.prototype.set = stackSet_default;
  3165. var Stack_default = Stack;
  3166. // node_modules/lodash-es/_baseAssign.js
  3167. function baseAssign(object4, source) {
  3168. return object4 && copyObject_default(source, keys_default(source), object4);
  3169. }
  3170. var baseAssign_default = baseAssign;
  3171. // node_modules/lodash-es/_baseAssignIn.js
  3172. function baseAssignIn(object4, source) {
  3173. return object4 && copyObject_default(source, keysIn_default(source), object4);
  3174. }
  3175. var baseAssignIn_default = baseAssignIn;
  3176. // node_modules/lodash-es/_cloneBuffer.js
  3177. var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
  3178. var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
  3179. var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
  3180. var Buffer2 = moduleExports3 ? root_default.Buffer : void 0;
  3181. var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
  3182. function cloneBuffer(buffer, isDeep) {
  3183. if (isDeep) {
  3184. return buffer.slice();
  3185. }
  3186. var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  3187. buffer.copy(result2);
  3188. return result2;
  3189. }
  3190. var cloneBuffer_default = cloneBuffer;
  3191. // node_modules/lodash-es/_arrayFilter.js
  3192. function arrayFilter(array4, predicate) {
  3193. var index = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result2 = [];
  3194. while (++index < length) {
  3195. var value = array4[index];
  3196. if (predicate(value, index, array4)) {
  3197. result2[resIndex++] = value;
  3198. }
  3199. }
  3200. return result2;
  3201. }
  3202. var arrayFilter_default = arrayFilter;
  3203. // node_modules/lodash-es/stubArray.js
  3204. function stubArray() {
  3205. return [];
  3206. }
  3207. var stubArray_default = stubArray;
  3208. // node_modules/lodash-es/_getSymbols.js
  3209. var objectProto16 = Object.prototype;
  3210. var propertyIsEnumerable2 = objectProto16.propertyIsEnumerable;
  3211. var nativeGetSymbols = Object.getOwnPropertySymbols;
  3212. var getSymbols = !nativeGetSymbols ? stubArray_default : function(object4) {
  3213. if (object4 == null) {
  3214. return [];
  3215. }
  3216. object4 = Object(object4);
  3217. return arrayFilter_default(nativeGetSymbols(object4), function(symbol) {
  3218. return propertyIsEnumerable2.call(object4, symbol);
  3219. });
  3220. };
  3221. var getSymbols_default = getSymbols;
  3222. // node_modules/lodash-es/_copySymbols.js
  3223. function copySymbols(source, object4) {
  3224. return copyObject_default(source, getSymbols_default(source), object4);
  3225. }
  3226. var copySymbols_default = copySymbols;
  3227. // node_modules/lodash-es/_getSymbolsIn.js
  3228. var nativeGetSymbols2 = Object.getOwnPropertySymbols;
  3229. var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object4) {
  3230. var result2 = [];
  3231. while (object4) {
  3232. arrayPush_default(result2, getSymbols_default(object4));
  3233. object4 = getPrototype_default(object4);
  3234. }
  3235. return result2;
  3236. };
  3237. var getSymbolsIn_default = getSymbolsIn;
  3238. // node_modules/lodash-es/_copySymbolsIn.js
  3239. function copySymbolsIn(source, object4) {
  3240. return copyObject_default(source, getSymbolsIn_default(source), object4);
  3241. }
  3242. var copySymbolsIn_default = copySymbolsIn;
  3243. // node_modules/lodash-es/_baseGetAllKeys.js
  3244. function baseGetAllKeys(object4, keysFunc, symbolsFunc) {
  3245. var result2 = keysFunc(object4);
  3246. return isArray_default(object4) ? result2 : arrayPush_default(result2, symbolsFunc(object4));
  3247. }
  3248. var baseGetAllKeys_default = baseGetAllKeys;
  3249. // node_modules/lodash-es/_getAllKeys.js
  3250. function getAllKeys(object4) {
  3251. return baseGetAllKeys_default(object4, keys_default, getSymbols_default);
  3252. }
  3253. var getAllKeys_default = getAllKeys;
  3254. // node_modules/lodash-es/_getAllKeysIn.js
  3255. function getAllKeysIn(object4) {
  3256. return baseGetAllKeys_default(object4, keysIn_default, getSymbolsIn_default);
  3257. }
  3258. var getAllKeysIn_default = getAllKeysIn;
  3259. // node_modules/lodash-es/_DataView.js
  3260. var DataView = getNative_default(root_default, "DataView");
  3261. var DataView_default = DataView;
  3262. // node_modules/lodash-es/_Promise.js
  3263. var Promise2 = getNative_default(root_default, "Promise");
  3264. var Promise_default = Promise2;
  3265. // node_modules/lodash-es/_Set.js
  3266. var Set2 = getNative_default(root_default, "Set");
  3267. var Set_default = Set2;
  3268. // node_modules/lodash-es/_getTag.js
  3269. var mapTag2 = "[object Map]";
  3270. var objectTag3 = "[object Object]";
  3271. var promiseTag = "[object Promise]";
  3272. var setTag2 = "[object Set]";
  3273. var weakMapTag2 = "[object WeakMap]";
  3274. var dataViewTag2 = "[object DataView]";
  3275. var dataViewCtorString = toSource_default(DataView_default);
  3276. var mapCtorString = toSource_default(Map_default);
  3277. var promiseCtorString = toSource_default(Promise_default);
  3278. var setCtorString = toSource_default(Set_default);
  3279. var weakMapCtorString = toSource_default(WeakMap_default);
  3280. var getTag = baseGetTag_default;
  3281. if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
  3282. getTag = function(value) {
  3283. var result2 = baseGetTag_default(value), Ctor = result2 == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
  3284. if (ctorString) {
  3285. switch (ctorString) {
  3286. case dataViewCtorString:
  3287. return dataViewTag2;
  3288. case mapCtorString:
  3289. return mapTag2;
  3290. case promiseCtorString:
  3291. return promiseTag;
  3292. case setCtorString:
  3293. return setTag2;
  3294. case weakMapCtorString:
  3295. return weakMapTag2;
  3296. }
  3297. }
  3298. return result2;
  3299. };
  3300. }
  3301. var getTag_default = getTag;
  3302. // node_modules/lodash-es/_initCloneArray.js
  3303. var objectProto17 = Object.prototype;
  3304. var hasOwnProperty14 = objectProto17.hasOwnProperty;
  3305. function initCloneArray(array4) {
  3306. var length = array4.length, result2 = new array4.constructor(length);
  3307. if (length && typeof array4[0] == "string" && hasOwnProperty14.call(array4, "index")) {
  3308. result2.index = array4.index;
  3309. result2.input = array4.input;
  3310. }
  3311. return result2;
  3312. }
  3313. var initCloneArray_default = initCloneArray;
  3314. // node_modules/lodash-es/_Uint8Array.js
  3315. var Uint8Array2 = root_default.Uint8Array;
  3316. var Uint8Array_default = Uint8Array2;
  3317. // node_modules/lodash-es/_cloneArrayBuffer.js
  3318. function cloneArrayBuffer(arrayBuffer) {
  3319. var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
  3320. new Uint8Array_default(result2).set(new Uint8Array_default(arrayBuffer));
  3321. return result2;
  3322. }
  3323. var cloneArrayBuffer_default = cloneArrayBuffer;
  3324. // node_modules/lodash-es/_cloneDataView.js
  3325. function cloneDataView(dataView, isDeep) {
  3326. var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
  3327. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  3328. }
  3329. var cloneDataView_default = cloneDataView;
  3330. // node_modules/lodash-es/_cloneRegExp.js
  3331. var reFlags = /\w*$/;
  3332. function cloneRegExp(regexp4) {
  3333. var result2 = new regexp4.constructor(regexp4.source, reFlags.exec(regexp4));
  3334. result2.lastIndex = regexp4.lastIndex;
  3335. return result2;
  3336. }
  3337. var cloneRegExp_default = cloneRegExp;
  3338. // node_modules/lodash-es/_cloneSymbol.js
  3339. var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
  3340. var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
  3341. function cloneSymbol(symbol) {
  3342. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  3343. }
  3344. var cloneSymbol_default = cloneSymbol;
  3345. // node_modules/lodash-es/_cloneTypedArray.js
  3346. function cloneTypedArray(typedArray, isDeep) {
  3347. var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
  3348. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  3349. }
  3350. var cloneTypedArray_default = cloneTypedArray;
  3351. // node_modules/lodash-es/_initCloneByTag.js
  3352. var boolTag2 = "[object Boolean]";
  3353. var dateTag2 = "[object Date]";
  3354. var mapTag3 = "[object Map]";
  3355. var numberTag2 = "[object Number]";
  3356. var regexpTag2 = "[object RegExp]";
  3357. var setTag3 = "[object Set]";
  3358. var stringTag2 = "[object String]";
  3359. var symbolTag2 = "[object Symbol]";
  3360. var arrayBufferTag2 = "[object ArrayBuffer]";
  3361. var dataViewTag3 = "[object DataView]";
  3362. var float32Tag2 = "[object Float32Array]";
  3363. var float64Tag2 = "[object Float64Array]";
  3364. var int8Tag2 = "[object Int8Array]";
  3365. var int16Tag2 = "[object Int16Array]";
  3366. var int32Tag2 = "[object Int32Array]";
  3367. var uint8Tag2 = "[object Uint8Array]";
  3368. var uint8ClampedTag2 = "[object Uint8ClampedArray]";
  3369. var uint16Tag2 = "[object Uint16Array]";
  3370. var uint32Tag2 = "[object Uint32Array]";
  3371. function initCloneByTag(object4, tag, isDeep) {
  3372. var Ctor = object4.constructor;
  3373. switch (tag) {
  3374. case arrayBufferTag2:
  3375. return cloneArrayBuffer_default(object4);
  3376. case boolTag2:
  3377. case dateTag2:
  3378. return new Ctor(+object4);
  3379. case dataViewTag3:
  3380. return cloneDataView_default(object4, isDeep);
  3381. case float32Tag2:
  3382. case float64Tag2:
  3383. case int8Tag2:
  3384. case int16Tag2:
  3385. case int32Tag2:
  3386. case uint8Tag2:
  3387. case uint8ClampedTag2:
  3388. case uint16Tag2:
  3389. case uint32Tag2:
  3390. return cloneTypedArray_default(object4, isDeep);
  3391. case mapTag3:
  3392. return new Ctor();
  3393. case numberTag2:
  3394. case stringTag2:
  3395. return new Ctor(object4);
  3396. case regexpTag2:
  3397. return cloneRegExp_default(object4);
  3398. case setTag3:
  3399. return new Ctor();
  3400. case symbolTag2:
  3401. return cloneSymbol_default(object4);
  3402. }
  3403. }
  3404. var initCloneByTag_default = initCloneByTag;
  3405. // node_modules/lodash-es/_initCloneObject.js
  3406. function initCloneObject(object4) {
  3407. return typeof object4.constructor == "function" && !isPrototype_default(object4) ? baseCreate_default(getPrototype_default(object4)) : {};
  3408. }
  3409. var initCloneObject_default = initCloneObject;
  3410. // node_modules/lodash-es/_baseIsMap.js
  3411. var mapTag4 = "[object Map]";
  3412. function baseIsMap(value) {
  3413. return isObjectLike_default(value) && getTag_default(value) == mapTag4;
  3414. }
  3415. var baseIsMap_default = baseIsMap;
  3416. // node_modules/lodash-es/isMap.js
  3417. var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
  3418. var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
  3419. var isMap_default = isMap;
  3420. // node_modules/lodash-es/_baseIsSet.js
  3421. var setTag4 = "[object Set]";
  3422. function baseIsSet(value) {
  3423. return isObjectLike_default(value) && getTag_default(value) == setTag4;
  3424. }
  3425. var baseIsSet_default = baseIsSet;
  3426. // node_modules/lodash-es/isSet.js
  3427. var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
  3428. var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
  3429. var isSet_default = isSet;
  3430. // node_modules/lodash-es/_baseClone.js
  3431. var CLONE_DEEP_FLAG = 1;
  3432. var CLONE_FLAT_FLAG = 2;
  3433. var CLONE_SYMBOLS_FLAG = 4;
  3434. var argsTag3 = "[object Arguments]";
  3435. var arrayTag2 = "[object Array]";
  3436. var boolTag3 = "[object Boolean]";
  3437. var dateTag3 = "[object Date]";
  3438. var errorTag3 = "[object Error]";
  3439. var funcTag3 = "[object Function]";
  3440. var genTag2 = "[object GeneratorFunction]";
  3441. var mapTag5 = "[object Map]";
  3442. var numberTag3 = "[object Number]";
  3443. var objectTag4 = "[object Object]";
  3444. var regexpTag3 = "[object RegExp]";
  3445. var setTag5 = "[object Set]";
  3446. var stringTag3 = "[object String]";
  3447. var symbolTag3 = "[object Symbol]";
  3448. var weakMapTag3 = "[object WeakMap]";
  3449. var arrayBufferTag3 = "[object ArrayBuffer]";
  3450. var dataViewTag4 = "[object DataView]";
  3451. var float32Tag3 = "[object Float32Array]";
  3452. var float64Tag3 = "[object Float64Array]";
  3453. var int8Tag3 = "[object Int8Array]";
  3454. var int16Tag3 = "[object Int16Array]";
  3455. var int32Tag3 = "[object Int32Array]";
  3456. var uint8Tag3 = "[object Uint8Array]";
  3457. var uint8ClampedTag3 = "[object Uint8ClampedArray]";
  3458. var uint16Tag3 = "[object Uint16Array]";
  3459. var uint32Tag3 = "[object Uint32Array]";
  3460. var cloneableTags = {};
  3461. cloneableTags[argsTag3] = cloneableTags[arrayTag2] = cloneableTags[arrayBufferTag3] = cloneableTags[dataViewTag4] = cloneableTags[boolTag3] = cloneableTags[dateTag3] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag5] = cloneableTags[numberTag3] = cloneableTags[objectTag4] = cloneableTags[regexpTag3] = cloneableTags[setTag5] = cloneableTags[stringTag3] = cloneableTags[symbolTag3] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true;
  3462. cloneableTags[errorTag3] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false;
  3463. function baseClone(value, bitmask, customizer, key, object4, stack) {
  3464. var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
  3465. if (customizer) {
  3466. result2 = object4 ? customizer(value, key, object4, stack) : customizer(value);
  3467. }
  3468. if (result2 !== void 0) {
  3469. return result2;
  3470. }
  3471. if (!isObject_default(value)) {
  3472. return value;
  3473. }
  3474. var isArr = isArray_default(value);
  3475. if (isArr) {
  3476. result2 = initCloneArray_default(value);
  3477. if (!isDeep) {
  3478. return copyArray_default(value, result2);
  3479. }
  3480. } else {
  3481. var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2;
  3482. if (isBuffer_default(value)) {
  3483. return cloneBuffer_default(value, isDeep);
  3484. }
  3485. if (tag == objectTag4 || tag == argsTag3 || isFunc && !object4) {
  3486. result2 = isFlat || isFunc ? {} : initCloneObject_default(value);
  3487. if (!isDeep) {
  3488. return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result2, value)) : copySymbols_default(value, baseAssign_default(result2, value));
  3489. }
  3490. } else {
  3491. if (!cloneableTags[tag]) {
  3492. return object4 ? value : {};
  3493. }
  3494. result2 = initCloneByTag_default(value, tag, isDeep);
  3495. }
  3496. }
  3497. stack || (stack = new Stack_default());
  3498. var stacked = stack.get(value);
  3499. if (stacked) {
  3500. return stacked;
  3501. }
  3502. stack.set(value, result2);
  3503. if (isSet_default(value)) {
  3504. value.forEach(function(subValue) {
  3505. result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  3506. });
  3507. } else if (isMap_default(value)) {
  3508. value.forEach(function(subValue, key2) {
  3509. result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
  3510. });
  3511. }
  3512. var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
  3513. var props2 = isArr ? void 0 : keysFunc(value);
  3514. arrayEach_default(props2 || value, function(subValue, key2) {
  3515. if (props2) {
  3516. key2 = subValue;
  3517. subValue = value[key2];
  3518. }
  3519. assignValue_default(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
  3520. });
  3521. return result2;
  3522. }
  3523. var baseClone_default = baseClone;
  3524. // node_modules/lodash-es/clone.js
  3525. var CLONE_SYMBOLS_FLAG2 = 4;
  3526. function clone(value) {
  3527. return baseClone_default(value, CLONE_SYMBOLS_FLAG2);
  3528. }
  3529. var clone_default = clone;
  3530. // node_modules/lodash-es/cloneDeep.js
  3531. var CLONE_DEEP_FLAG2 = 1;
  3532. var CLONE_SYMBOLS_FLAG3 = 4;
  3533. function cloneDeep(value) {
  3534. return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG3);
  3535. }
  3536. var cloneDeep_default = cloneDeep;
  3537. // node_modules/lodash-es/cloneDeepWith.js
  3538. var CLONE_DEEP_FLAG3 = 1;
  3539. var CLONE_SYMBOLS_FLAG4 = 4;
  3540. function cloneDeepWith(value, customizer) {
  3541. customizer = typeof customizer == "function" ? customizer : void 0;
  3542. return baseClone_default(value, CLONE_DEEP_FLAG3 | CLONE_SYMBOLS_FLAG4, customizer);
  3543. }
  3544. var cloneDeepWith_default = cloneDeepWith;
  3545. // node_modules/lodash-es/cloneWith.js
  3546. var CLONE_SYMBOLS_FLAG5 = 4;
  3547. function cloneWith(value, customizer) {
  3548. customizer = typeof customizer == "function" ? customizer : void 0;
  3549. return baseClone_default(value, CLONE_SYMBOLS_FLAG5, customizer);
  3550. }
  3551. var cloneWith_default = cloneWith;
  3552. // node_modules/lodash-es/commit.js
  3553. function wrapperCommit() {
  3554. return new LodashWrapper_default(this.value(), this.__chain__);
  3555. }
  3556. var commit_default = wrapperCommit;
  3557. // node_modules/lodash-es/compact.js
  3558. function compact(array4) {
  3559. var index = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result2 = [];
  3560. while (++index < length) {
  3561. var value = array4[index];
  3562. if (value) {
  3563. result2[resIndex++] = value;
  3564. }
  3565. }
  3566. return result2;
  3567. }
  3568. var compact_default = compact;
  3569. // node_modules/lodash-es/concat.js
  3570. function concat() {
  3571. var length = arguments.length;
  3572. if (!length) {
  3573. return [];
  3574. }
  3575. var args = Array(length - 1), array4 = arguments[0], index = length;
  3576. while (index--) {
  3577. args[index - 1] = arguments[index];
  3578. }
  3579. return arrayPush_default(isArray_default(array4) ? copyArray_default(array4) : [array4], baseFlatten_default(args, 1));
  3580. }
  3581. var concat_default = concat;
  3582. // node_modules/lodash-es/_setCacheAdd.js
  3583. var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
  3584. function setCacheAdd(value) {
  3585. this.__data__.set(value, HASH_UNDEFINED3);
  3586. return this;
  3587. }
  3588. var setCacheAdd_default = setCacheAdd;
  3589. // node_modules/lodash-es/_setCacheHas.js
  3590. function setCacheHas(value) {
  3591. return this.__data__.has(value);
  3592. }
  3593. var setCacheHas_default = setCacheHas;
  3594. // node_modules/lodash-es/_SetCache.js
  3595. function SetCache(values2) {
  3596. var index = -1, length = values2 == null ? 0 : values2.length;
  3597. this.__data__ = new MapCache_default();
  3598. while (++index < length) {
  3599. this.add(values2[index]);
  3600. }
  3601. }
  3602. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
  3603. SetCache.prototype.has = setCacheHas_default;
  3604. var SetCache_default = SetCache;
  3605. // node_modules/lodash-es/_arraySome.js
  3606. function arraySome(array4, predicate) {
  3607. var index = -1, length = array4 == null ? 0 : array4.length;
  3608. while (++index < length) {
  3609. if (predicate(array4[index], index, array4)) {
  3610. return true;
  3611. }
  3612. }
  3613. return false;
  3614. }
  3615. var arraySome_default = arraySome;
  3616. // node_modules/lodash-es/_cacheHas.js
  3617. function cacheHas(cache2, key) {
  3618. return cache2.has(key);
  3619. }
  3620. var cacheHas_default = cacheHas;
  3621. // node_modules/lodash-es/_equalArrays.js
  3622. var COMPARE_PARTIAL_FLAG = 1;
  3623. var COMPARE_UNORDERED_FLAG = 2;
  3624. function equalArrays(array4, other, bitmask, customizer, equalFunc, stack) {
  3625. var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array4.length, othLength = other.length;
  3626. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  3627. return false;
  3628. }
  3629. var arrStacked = stack.get(array4);
  3630. var othStacked = stack.get(other);
  3631. if (arrStacked && othStacked) {
  3632. return arrStacked == other && othStacked == array4;
  3633. }
  3634. var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
  3635. stack.set(array4, other);
  3636. stack.set(other, array4);
  3637. while (++index < arrLength) {
  3638. var arrValue = array4[index], othValue = other[index];
  3639. if (customizer) {
  3640. var compared = isPartial ? customizer(othValue, arrValue, index, other, array4, stack) : customizer(arrValue, othValue, index, array4, other, stack);
  3641. }
  3642. if (compared !== void 0) {
  3643. if (compared) {
  3644. continue;
  3645. }
  3646. result2 = false;
  3647. break;
  3648. }
  3649. if (seen) {
  3650. if (!arraySome_default(other, function(othValue2, othIndex) {
  3651. if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
  3652. return seen.push(othIndex);
  3653. }
  3654. })) {
  3655. result2 = false;
  3656. break;
  3657. }
  3658. } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  3659. result2 = false;
  3660. break;
  3661. }
  3662. }
  3663. stack["delete"](array4);
  3664. stack["delete"](other);
  3665. return result2;
  3666. }
  3667. var equalArrays_default = equalArrays;
  3668. // node_modules/lodash-es/_mapToArray.js
  3669. function mapToArray(map2) {
  3670. var index = -1, result2 = Array(map2.size);
  3671. map2.forEach(function(value, key) {
  3672. result2[++index] = [key, value];
  3673. });
  3674. return result2;
  3675. }
  3676. var mapToArray_default = mapToArray;
  3677. // node_modules/lodash-es/_setToArray.js
  3678. function setToArray(set3) {
  3679. var index = -1, result2 = Array(set3.size);
  3680. set3.forEach(function(value) {
  3681. result2[++index] = value;
  3682. });
  3683. return result2;
  3684. }
  3685. var setToArray_default = setToArray;
  3686. // node_modules/lodash-es/_equalByTag.js
  3687. var COMPARE_PARTIAL_FLAG2 = 1;
  3688. var COMPARE_UNORDERED_FLAG2 = 2;
  3689. var boolTag4 = "[object Boolean]";
  3690. var dateTag4 = "[object Date]";
  3691. var errorTag4 = "[object Error]";
  3692. var mapTag6 = "[object Map]";
  3693. var numberTag4 = "[object Number]";
  3694. var regexpTag4 = "[object RegExp]";
  3695. var setTag6 = "[object Set]";
  3696. var stringTag4 = "[object String]";
  3697. var symbolTag4 = "[object Symbol]";
  3698. var arrayBufferTag4 = "[object ArrayBuffer]";
  3699. var dataViewTag5 = "[object DataView]";
  3700. var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0;
  3701. var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0;
  3702. function equalByTag(object4, other, tag, bitmask, customizer, equalFunc, stack) {
  3703. switch (tag) {
  3704. case dataViewTag5:
  3705. if (object4.byteLength != other.byteLength || object4.byteOffset != other.byteOffset) {
  3706. return false;
  3707. }
  3708. object4 = object4.buffer;
  3709. other = other.buffer;
  3710. case arrayBufferTag4:
  3711. if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object4), new Uint8Array_default(other))) {
  3712. return false;
  3713. }
  3714. return true;
  3715. case boolTag4:
  3716. case dateTag4:
  3717. case numberTag4:
  3718. return eq_default(+object4, +other);
  3719. case errorTag4:
  3720. return object4.name == other.name && object4.message == other.message;
  3721. case regexpTag4:
  3722. case stringTag4:
  3723. return object4 == other + "";
  3724. case mapTag6:
  3725. var convert = mapToArray_default;
  3726. case setTag6:
  3727. var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
  3728. convert || (convert = setToArray_default);
  3729. if (object4.size != other.size && !isPartial) {
  3730. return false;
  3731. }
  3732. var stacked = stack.get(object4);
  3733. if (stacked) {
  3734. return stacked == other;
  3735. }
  3736. bitmask |= COMPARE_UNORDERED_FLAG2;
  3737. stack.set(object4, other);
  3738. var result2 = equalArrays_default(convert(object4), convert(other), bitmask, customizer, equalFunc, stack);
  3739. stack["delete"](object4);
  3740. return result2;
  3741. case symbolTag4:
  3742. if (symbolValueOf2) {
  3743. return symbolValueOf2.call(object4) == symbolValueOf2.call(other);
  3744. }
  3745. }
  3746. return false;
  3747. }
  3748. var equalByTag_default = equalByTag;
  3749. // node_modules/lodash-es/_equalObjects.js
  3750. var COMPARE_PARTIAL_FLAG3 = 1;
  3751. var objectProto18 = Object.prototype;
  3752. var hasOwnProperty15 = objectProto18.hasOwnProperty;
  3753. function equalObjects(object4, other, bitmask, customizer, equalFunc, stack) {
  3754. var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object4), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
  3755. if (objLength != othLength && !isPartial) {
  3756. return false;
  3757. }
  3758. var index = objLength;
  3759. while (index--) {
  3760. var key = objProps[index];
  3761. if (!(isPartial ? key in other : hasOwnProperty15.call(other, key))) {
  3762. return false;
  3763. }
  3764. }
  3765. var objStacked = stack.get(object4);
  3766. var othStacked = stack.get(other);
  3767. if (objStacked && othStacked) {
  3768. return objStacked == other && othStacked == object4;
  3769. }
  3770. var result2 = true;
  3771. stack.set(object4, other);
  3772. stack.set(other, object4);
  3773. var skipCtor = isPartial;
  3774. while (++index < objLength) {
  3775. key = objProps[index];
  3776. var objValue = object4[key], othValue = other[key];
  3777. if (customizer) {
  3778. var compared = isPartial ? customizer(othValue, objValue, key, other, object4, stack) : customizer(objValue, othValue, key, object4, other, stack);
  3779. }
  3780. if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
  3781. result2 = false;
  3782. break;
  3783. }
  3784. skipCtor || (skipCtor = key == "constructor");
  3785. }
  3786. if (result2 && !skipCtor) {
  3787. var objCtor = object4.constructor, othCtor = other.constructor;
  3788. if (objCtor != othCtor && ("constructor" in object4 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
  3789. result2 = false;
  3790. }
  3791. }
  3792. stack["delete"](object4);
  3793. stack["delete"](other);
  3794. return result2;
  3795. }
  3796. var equalObjects_default = equalObjects;
  3797. // node_modules/lodash-es/_baseIsEqualDeep.js
  3798. var COMPARE_PARTIAL_FLAG4 = 1;
  3799. var argsTag4 = "[object Arguments]";
  3800. var arrayTag3 = "[object Array]";
  3801. var objectTag5 = "[object Object]";
  3802. var objectProto19 = Object.prototype;
  3803. var hasOwnProperty16 = objectProto19.hasOwnProperty;
  3804. function baseIsEqualDeep(object4, other, bitmask, customizer, equalFunc, stack) {
  3805. var objIsArr = isArray_default(object4), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag3 : getTag_default(object4), othTag = othIsArr ? arrayTag3 : getTag_default(other);
  3806. objTag = objTag == argsTag4 ? objectTag5 : objTag;
  3807. othTag = othTag == argsTag4 ? objectTag5 : othTag;
  3808. var objIsObj = objTag == objectTag5, othIsObj = othTag == objectTag5, isSameTag = objTag == othTag;
  3809. if (isSameTag && isBuffer_default(object4)) {
  3810. if (!isBuffer_default(other)) {
  3811. return false;
  3812. }
  3813. objIsArr = true;
  3814. objIsObj = false;
  3815. }
  3816. if (isSameTag && !objIsObj) {
  3817. stack || (stack = new Stack_default());
  3818. return objIsArr || isTypedArray_default(object4) ? equalArrays_default(object4, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object4, other, objTag, bitmask, customizer, equalFunc, stack);
  3819. }
  3820. if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
  3821. var objIsWrapped = objIsObj && hasOwnProperty16.call(object4, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty16.call(other, "__wrapped__");
  3822. if (objIsWrapped || othIsWrapped) {
  3823. var objUnwrapped = objIsWrapped ? object4.value() : object4, othUnwrapped = othIsWrapped ? other.value() : other;
  3824. stack || (stack = new Stack_default());
  3825. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  3826. }
  3827. }
  3828. if (!isSameTag) {
  3829. return false;
  3830. }
  3831. stack || (stack = new Stack_default());
  3832. return equalObjects_default(object4, other, bitmask, customizer, equalFunc, stack);
  3833. }
  3834. var baseIsEqualDeep_default = baseIsEqualDeep;
  3835. // node_modules/lodash-es/_baseIsEqual.js
  3836. function baseIsEqual(value, other, bitmask, customizer, stack) {
  3837. if (value === other) {
  3838. return true;
  3839. }
  3840. if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
  3841. return value !== value && other !== other;
  3842. }
  3843. return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
  3844. }
  3845. var baseIsEqual_default = baseIsEqual;
  3846. // node_modules/lodash-es/_baseIsMatch.js
  3847. var COMPARE_PARTIAL_FLAG5 = 1;
  3848. var COMPARE_UNORDERED_FLAG3 = 2;
  3849. function baseIsMatch(object4, source, matchData, customizer) {
  3850. var index = matchData.length, length = index, noCustomizer = !customizer;
  3851. if (object4 == null) {
  3852. return !length;
  3853. }
  3854. object4 = Object(object4);
  3855. while (index--) {
  3856. var data = matchData[index];
  3857. if (noCustomizer && data[2] ? data[1] !== object4[data[0]] : !(data[0] in object4)) {
  3858. return false;
  3859. }
  3860. }
  3861. while (++index < length) {
  3862. data = matchData[index];
  3863. var key = data[0], objValue = object4[key], srcValue = data[1];
  3864. if (noCustomizer && data[2]) {
  3865. if (objValue === void 0 && !(key in object4)) {
  3866. return false;
  3867. }
  3868. } else {
  3869. var stack = new Stack_default();
  3870. if (customizer) {
  3871. var result2 = customizer(objValue, srcValue, key, object4, source, stack);
  3872. }
  3873. if (!(result2 === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result2)) {
  3874. return false;
  3875. }
  3876. }
  3877. }
  3878. return true;
  3879. }
  3880. var baseIsMatch_default = baseIsMatch;
  3881. // node_modules/lodash-es/_isStrictComparable.js
  3882. function isStrictComparable(value) {
  3883. return value === value && !isObject_default(value);
  3884. }
  3885. var isStrictComparable_default = isStrictComparable;
  3886. // node_modules/lodash-es/_getMatchData.js
  3887. function getMatchData(object4) {
  3888. var result2 = keys_default(object4), length = result2.length;
  3889. while (length--) {
  3890. var key = result2[length], value = object4[key];
  3891. result2[length] = [key, value, isStrictComparable_default(value)];
  3892. }
  3893. return result2;
  3894. }
  3895. var getMatchData_default = getMatchData;
  3896. // node_modules/lodash-es/_matchesStrictComparable.js
  3897. function matchesStrictComparable(key, srcValue) {
  3898. return function(object4) {
  3899. if (object4 == null) {
  3900. return false;
  3901. }
  3902. return object4[key] === srcValue && (srcValue !== void 0 || key in Object(object4));
  3903. };
  3904. }
  3905. var matchesStrictComparable_default = matchesStrictComparable;
  3906. // node_modules/lodash-es/_baseMatches.js
  3907. function baseMatches(source) {
  3908. var matchData = getMatchData_default(source);
  3909. if (matchData.length == 1 && matchData[0][2]) {
  3910. return matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
  3911. }
  3912. return function(object4) {
  3913. return object4 === source || baseIsMatch_default(object4, source, matchData);
  3914. };
  3915. }
  3916. var baseMatches_default = baseMatches;
  3917. // node_modules/lodash-es/_baseHasIn.js
  3918. function baseHasIn(object4, key) {
  3919. return object4 != null && key in Object(object4);
  3920. }
  3921. var baseHasIn_default = baseHasIn;
  3922. // node_modules/lodash-es/_hasPath.js
  3923. function hasPath(object4, path, hasFunc) {
  3924. path = castPath_default(path, object4);
  3925. var index = -1, length = path.length, result2 = false;
  3926. while (++index < length) {
  3927. var key = toKey_default(path[index]);
  3928. if (!(result2 = object4 != null && hasFunc(object4, key))) {
  3929. break;
  3930. }
  3931. object4 = object4[key];
  3932. }
  3933. if (result2 || ++index != length) {
  3934. return result2;
  3935. }
  3936. length = object4 == null ? 0 : object4.length;
  3937. return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object4) || isArguments_default(object4));
  3938. }
  3939. var hasPath_default = hasPath;
  3940. // node_modules/lodash-es/hasIn.js
  3941. function hasIn(object4, path) {
  3942. return object4 != null && hasPath_default(object4, path, baseHasIn_default);
  3943. }
  3944. var hasIn_default = hasIn;
  3945. // node_modules/lodash-es/_baseMatchesProperty.js
  3946. var COMPARE_PARTIAL_FLAG6 = 1;
  3947. var COMPARE_UNORDERED_FLAG4 = 2;
  3948. function baseMatchesProperty(path, srcValue) {
  3949. if (isKey_default(path) && isStrictComparable_default(srcValue)) {
  3950. return matchesStrictComparable_default(toKey_default(path), srcValue);
  3951. }
  3952. return function(object4) {
  3953. var objValue = get_default(object4, path);
  3954. return objValue === void 0 && objValue === srcValue ? hasIn_default(object4, path) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
  3955. };
  3956. }
  3957. var baseMatchesProperty_default = baseMatchesProperty;
  3958. // node_modules/lodash-es/_baseProperty.js
  3959. function baseProperty(key) {
  3960. return function(object4) {
  3961. return object4 == null ? void 0 : object4[key];
  3962. };
  3963. }
  3964. var baseProperty_default = baseProperty;
  3965. // node_modules/lodash-es/_basePropertyDeep.js
  3966. function basePropertyDeep(path) {
  3967. return function(object4) {
  3968. return baseGet_default(object4, path);
  3969. };
  3970. }
  3971. var basePropertyDeep_default = basePropertyDeep;
  3972. // node_modules/lodash-es/property.js
  3973. function property(path) {
  3974. return isKey_default(path) ? baseProperty_default(toKey_default(path)) : basePropertyDeep_default(path);
  3975. }
  3976. var property_default = property;
  3977. // node_modules/lodash-es/_baseIteratee.js
  3978. function baseIteratee(value) {
  3979. if (typeof value == "function") {
  3980. return value;
  3981. }
  3982. if (value == null) {
  3983. return identity_default;
  3984. }
  3985. if (typeof value == "object") {
  3986. return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value);
  3987. }
  3988. return property_default(value);
  3989. }
  3990. var baseIteratee_default = baseIteratee;
  3991. // node_modules/lodash-es/cond.js
  3992. var FUNC_ERROR_TEXT5 = "Expected a function";
  3993. function cond(pairs) {
  3994. var length = pairs == null ? 0 : pairs.length, toIteratee = baseIteratee_default;
  3995. pairs = !length ? [] : arrayMap_default(pairs, function(pair) {
  3996. if (typeof pair[1] != "function") {
  3997. throw new TypeError(FUNC_ERROR_TEXT5);
  3998. }
  3999. return [toIteratee(pair[0]), pair[1]];
  4000. });
  4001. return baseRest_default(function(args) {
  4002. var index = -1;
  4003. while (++index < length) {
  4004. var pair = pairs[index];
  4005. if (apply_default(pair[0], this, args)) {
  4006. return apply_default(pair[1], this, args);
  4007. }
  4008. }
  4009. });
  4010. }
  4011. var cond_default = cond;
  4012. // node_modules/lodash-es/_baseConformsTo.js
  4013. function baseConformsTo(object4, source, props2) {
  4014. var length = props2.length;
  4015. if (object4 == null) {
  4016. return !length;
  4017. }
  4018. object4 = Object(object4);
  4019. while (length--) {
  4020. var key = props2[length], predicate = source[key], value = object4[key];
  4021. if (value === void 0 && !(key in object4) || !predicate(value)) {
  4022. return false;
  4023. }
  4024. }
  4025. return true;
  4026. }
  4027. var baseConformsTo_default = baseConformsTo;
  4028. // node_modules/lodash-es/_baseConforms.js
  4029. function baseConforms(source) {
  4030. var props2 = keys_default(source);
  4031. return function(object4) {
  4032. return baseConformsTo_default(object4, source, props2);
  4033. };
  4034. }
  4035. var baseConforms_default = baseConforms;
  4036. // node_modules/lodash-es/conforms.js
  4037. var CLONE_DEEP_FLAG4 = 1;
  4038. function conforms(source) {
  4039. return baseConforms_default(baseClone_default(source, CLONE_DEEP_FLAG4));
  4040. }
  4041. var conforms_default = conforms;
  4042. // node_modules/lodash-es/conformsTo.js
  4043. function conformsTo(object4, source) {
  4044. return source == null || baseConformsTo_default(object4, source, keys_default(source));
  4045. }
  4046. var conformsTo_default = conformsTo;
  4047. // node_modules/lodash-es/_arrayAggregator.js
  4048. function arrayAggregator(array4, setter, iteratee2, accumulator) {
  4049. var index = -1, length = array4 == null ? 0 : array4.length;
  4050. while (++index < length) {
  4051. var value = array4[index];
  4052. setter(accumulator, value, iteratee2(value), array4);
  4053. }
  4054. return accumulator;
  4055. }
  4056. var arrayAggregator_default = arrayAggregator;
  4057. // node_modules/lodash-es/_createBaseFor.js
  4058. function createBaseFor(fromRight) {
  4059. return function(object4, iteratee2, keysFunc) {
  4060. var index = -1, iterable = Object(object4), props2 = keysFunc(object4), length = props2.length;
  4061. while (length--) {
  4062. var key = props2[fromRight ? length : ++index];
  4063. if (iteratee2(iterable[key], key, iterable) === false) {
  4064. break;
  4065. }
  4066. }
  4067. return object4;
  4068. };
  4069. }
  4070. var createBaseFor_default = createBaseFor;
  4071. // node_modules/lodash-es/_baseFor.js
  4072. var baseFor = createBaseFor_default();
  4073. var baseFor_default = baseFor;
  4074. // node_modules/lodash-es/_baseForOwn.js
  4075. function baseForOwn(object4, iteratee2) {
  4076. return object4 && baseFor_default(object4, iteratee2, keys_default);
  4077. }
  4078. var baseForOwn_default = baseForOwn;
  4079. // node_modules/lodash-es/_createBaseEach.js
  4080. function createBaseEach(eachFunc, fromRight) {
  4081. return function(collection, iteratee2) {
  4082. if (collection == null) {
  4083. return collection;
  4084. }
  4085. if (!isArrayLike_default(collection)) {
  4086. return eachFunc(collection, iteratee2);
  4087. }
  4088. var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
  4089. while (fromRight ? index-- : ++index < length) {
  4090. if (iteratee2(iterable[index], index, iterable) === false) {
  4091. break;
  4092. }
  4093. }
  4094. return collection;
  4095. };
  4096. }
  4097. var createBaseEach_default = createBaseEach;
  4098. // node_modules/lodash-es/_baseEach.js
  4099. var baseEach = createBaseEach_default(baseForOwn_default);
  4100. var baseEach_default = baseEach;
  4101. // node_modules/lodash-es/_baseAggregator.js
  4102. function baseAggregator(collection, setter, iteratee2, accumulator) {
  4103. baseEach_default(collection, function(value, key, collection2) {
  4104. setter(accumulator, value, iteratee2(value), collection2);
  4105. });
  4106. return accumulator;
  4107. }
  4108. var baseAggregator_default = baseAggregator;
  4109. // node_modules/lodash-es/_createAggregator.js
  4110. function createAggregator(setter, initializer) {
  4111. return function(collection, iteratee2) {
  4112. var func = isArray_default(collection) ? arrayAggregator_default : baseAggregator_default, accumulator = initializer ? initializer() : {};
  4113. return func(collection, setter, baseIteratee_default(iteratee2, 2), accumulator);
  4114. };
  4115. }
  4116. var createAggregator_default = createAggregator;
  4117. // node_modules/lodash-es/countBy.js
  4118. var objectProto20 = Object.prototype;
  4119. var hasOwnProperty17 = objectProto20.hasOwnProperty;
  4120. var countBy = createAggregator_default(function(result2, value, key) {
  4121. if (hasOwnProperty17.call(result2, key)) {
  4122. ++result2[key];
  4123. } else {
  4124. baseAssignValue_default(result2, key, 1);
  4125. }
  4126. });
  4127. var countBy_default = countBy;
  4128. // node_modules/lodash-es/create.js
  4129. function create(prototype, properties) {
  4130. var result2 = baseCreate_default(prototype);
  4131. return properties == null ? result2 : baseAssign_default(result2, properties);
  4132. }
  4133. var create_default = create;
  4134. // node_modules/lodash-es/curry.js
  4135. var WRAP_CURRY_FLAG6 = 8;
  4136. function curry(func, arity, guard) {
  4137. arity = guard ? void 0 : arity;
  4138. var result2 = createWrap_default(func, WRAP_CURRY_FLAG6, void 0, void 0, void 0, void 0, void 0, arity);
  4139. result2.placeholder = curry.placeholder;
  4140. return result2;
  4141. }
  4142. curry.placeholder = {};
  4143. var curry_default = curry;
  4144. // node_modules/lodash-es/curryRight.js
  4145. var WRAP_CURRY_RIGHT_FLAG4 = 16;
  4146. function curryRight(func, arity, guard) {
  4147. arity = guard ? void 0 : arity;
  4148. var result2 = createWrap_default(func, WRAP_CURRY_RIGHT_FLAG4, void 0, void 0, void 0, void 0, void 0, arity);
  4149. result2.placeholder = curryRight.placeholder;
  4150. return result2;
  4151. }
  4152. curryRight.placeholder = {};
  4153. var curryRight_default = curryRight;
  4154. // node_modules/lodash-es/now.js
  4155. var now = function() {
  4156. return root_default.Date.now();
  4157. };
  4158. var now_default = now;
  4159. // node_modules/lodash-es/debounce.js
  4160. var FUNC_ERROR_TEXT6 = "Expected a function";
  4161. var nativeMax6 = Math.max;
  4162. var nativeMin4 = Math.min;
  4163. function debounce(func, wait, options) {
  4164. var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
  4165. if (typeof func != "function") {
  4166. throw new TypeError(FUNC_ERROR_TEXT6);
  4167. }
  4168. wait = toNumber_default(wait) || 0;
  4169. if (isObject_default(options)) {
  4170. leading = !!options.leading;
  4171. maxing = "maxWait" in options;
  4172. maxWait = maxing ? nativeMax6(toNumber_default(options.maxWait) || 0, wait) : maxWait;
  4173. trailing = "trailing" in options ? !!options.trailing : trailing;
  4174. }
  4175. function invokeFunc(time) {
  4176. var args = lastArgs, thisArg = lastThis;
  4177. lastArgs = lastThis = void 0;
  4178. lastInvokeTime = time;
  4179. result2 = func.apply(thisArg, args);
  4180. return result2;
  4181. }
  4182. function leadingEdge(time) {
  4183. lastInvokeTime = time;
  4184. timerId = setTimeout(timerExpired, wait);
  4185. return leading ? invokeFunc(time) : result2;
  4186. }
  4187. function remainingWait(time) {
  4188. var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
  4189. return maxing ? nativeMin4(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
  4190. }
  4191. function shouldInvoke(time) {
  4192. var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
  4193. return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
  4194. }
  4195. function timerExpired() {
  4196. var time = now_default();
  4197. if (shouldInvoke(time)) {
  4198. return trailingEdge(time);
  4199. }
  4200. timerId = setTimeout(timerExpired, remainingWait(time));
  4201. }
  4202. function trailingEdge(time) {
  4203. timerId = void 0;
  4204. if (trailing && lastArgs) {
  4205. return invokeFunc(time);
  4206. }
  4207. lastArgs = lastThis = void 0;
  4208. return result2;
  4209. }
  4210. function cancel() {
  4211. if (timerId !== void 0) {
  4212. clearTimeout(timerId);
  4213. }
  4214. lastInvokeTime = 0;
  4215. lastArgs = lastCallTime = lastThis = timerId = void 0;
  4216. }
  4217. function flush() {
  4218. return timerId === void 0 ? result2 : trailingEdge(now_default());
  4219. }
  4220. function debounced() {
  4221. var time = now_default(), isInvoking = shouldInvoke(time);
  4222. lastArgs = arguments;
  4223. lastThis = this;
  4224. lastCallTime = time;
  4225. if (isInvoking) {
  4226. if (timerId === void 0) {
  4227. return leadingEdge(lastCallTime);
  4228. }
  4229. if (maxing) {
  4230. clearTimeout(timerId);
  4231. timerId = setTimeout(timerExpired, wait);
  4232. return invokeFunc(lastCallTime);
  4233. }
  4234. }
  4235. if (timerId === void 0) {
  4236. timerId = setTimeout(timerExpired, wait);
  4237. }
  4238. return result2;
  4239. }
  4240. debounced.cancel = cancel;
  4241. debounced.flush = flush;
  4242. return debounced;
  4243. }
  4244. var debounce_default = debounce;
  4245. // node_modules/lodash-es/defaultTo.js
  4246. function defaultTo(value, defaultValue) {
  4247. return value == null || value !== value ? defaultValue : value;
  4248. }
  4249. var defaultTo_default = defaultTo;
  4250. // node_modules/lodash-es/defaults.js
  4251. var objectProto21 = Object.prototype;
  4252. var hasOwnProperty18 = objectProto21.hasOwnProperty;
  4253. var defaults = baseRest_default(function(object4, sources) {
  4254. object4 = Object(object4);
  4255. var index = -1;
  4256. var length = sources.length;
  4257. var guard = length > 2 ? sources[2] : void 0;
  4258. if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
  4259. length = 1;
  4260. }
  4261. while (++index < length) {
  4262. var source = sources[index];
  4263. var props2 = keysIn_default(source);
  4264. var propsIndex = -1;
  4265. var propsLength = props2.length;
  4266. while (++propsIndex < propsLength) {
  4267. var key = props2[propsIndex];
  4268. var value = object4[key];
  4269. if (value === void 0 || eq_default(value, objectProto21[key]) && !hasOwnProperty18.call(object4, key)) {
  4270. object4[key] = source[key];
  4271. }
  4272. }
  4273. }
  4274. return object4;
  4275. });
  4276. var defaults_default = defaults;
  4277. // node_modules/lodash-es/_assignMergeValue.js
  4278. function assignMergeValue(object4, key, value) {
  4279. if (value !== void 0 && !eq_default(object4[key], value) || value === void 0 && !(key in object4)) {
  4280. baseAssignValue_default(object4, key, value);
  4281. }
  4282. }
  4283. var assignMergeValue_default = assignMergeValue;
  4284. // node_modules/lodash-es/isArrayLikeObject.js
  4285. function isArrayLikeObject(value) {
  4286. return isObjectLike_default(value) && isArrayLike_default(value);
  4287. }
  4288. var isArrayLikeObject_default = isArrayLikeObject;
  4289. // node_modules/lodash-es/_safeGet.js
  4290. function safeGet(object4, key) {
  4291. if (key === "constructor" && typeof object4[key] === "function") {
  4292. return;
  4293. }
  4294. if (key == "__proto__") {
  4295. return;
  4296. }
  4297. return object4[key];
  4298. }
  4299. var safeGet_default = safeGet;
  4300. // node_modules/lodash-es/toPlainObject.js
  4301. function toPlainObject(value) {
  4302. return copyObject_default(value, keysIn_default(value));
  4303. }
  4304. var toPlainObject_default = toPlainObject;
  4305. // node_modules/lodash-es/_baseMergeDeep.js
  4306. function baseMergeDeep(object4, source, key, srcIndex, mergeFunc, customizer, stack) {
  4307. var objValue = safeGet_default(object4, key), srcValue = safeGet_default(source, key), stacked = stack.get(srcValue);
  4308. if (stacked) {
  4309. assignMergeValue_default(object4, key, stacked);
  4310. return;
  4311. }
  4312. var newValue = customizer ? customizer(objValue, srcValue, key + "", object4, source, stack) : void 0;
  4313. var isCommon = newValue === void 0;
  4314. if (isCommon) {
  4315. var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue);
  4316. newValue = srcValue;
  4317. if (isArr || isBuff || isTyped) {
  4318. if (isArray_default(objValue)) {
  4319. newValue = objValue;
  4320. } else if (isArrayLikeObject_default(objValue)) {
  4321. newValue = copyArray_default(objValue);
  4322. } else if (isBuff) {
  4323. isCommon = false;
  4324. newValue = cloneBuffer_default(srcValue, true);
  4325. } else if (isTyped) {
  4326. isCommon = false;
  4327. newValue = cloneTypedArray_default(srcValue, true);
  4328. } else {
  4329. newValue = [];
  4330. }
  4331. } else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) {
  4332. newValue = objValue;
  4333. if (isArguments_default(objValue)) {
  4334. newValue = toPlainObject_default(objValue);
  4335. } else if (!isObject_default(objValue) || isFunction_default(objValue)) {
  4336. newValue = initCloneObject_default(srcValue);
  4337. }
  4338. } else {
  4339. isCommon = false;
  4340. }
  4341. }
  4342. if (isCommon) {
  4343. stack.set(srcValue, newValue);
  4344. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  4345. stack["delete"](srcValue);
  4346. }
  4347. assignMergeValue_default(object4, key, newValue);
  4348. }
  4349. var baseMergeDeep_default = baseMergeDeep;
  4350. // node_modules/lodash-es/_baseMerge.js
  4351. function baseMerge(object4, source, srcIndex, customizer, stack) {
  4352. if (object4 === source) {
  4353. return;
  4354. }
  4355. baseFor_default(source, function(srcValue, key) {
  4356. stack || (stack = new Stack_default());
  4357. if (isObject_default(srcValue)) {
  4358. baseMergeDeep_default(object4, source, key, srcIndex, baseMerge, customizer, stack);
  4359. } else {
  4360. var newValue = customizer ? customizer(safeGet_default(object4, key), srcValue, key + "", object4, source, stack) : void 0;
  4361. if (newValue === void 0) {
  4362. newValue = srcValue;
  4363. }
  4364. assignMergeValue_default(object4, key, newValue);
  4365. }
  4366. }, keysIn_default);
  4367. }
  4368. var baseMerge_default = baseMerge;
  4369. // node_modules/lodash-es/_customDefaultsMerge.js
  4370. function customDefaultsMerge(objValue, srcValue, key, object4, source, stack) {
  4371. if (isObject_default(objValue) && isObject_default(srcValue)) {
  4372. stack.set(srcValue, objValue);
  4373. baseMerge_default(objValue, srcValue, void 0, customDefaultsMerge, stack);
  4374. stack["delete"](srcValue);
  4375. }
  4376. return objValue;
  4377. }
  4378. var customDefaultsMerge_default = customDefaultsMerge;
  4379. // node_modules/lodash-es/mergeWith.js
  4380. var mergeWith = createAssigner_default(function(object4, source, srcIndex, customizer) {
  4381. baseMerge_default(object4, source, srcIndex, customizer);
  4382. });
  4383. var mergeWith_default = mergeWith;
  4384. // node_modules/lodash-es/defaultsDeep.js
  4385. var defaultsDeep = baseRest_default(function(args) {
  4386. args.push(void 0, customDefaultsMerge_default);
  4387. return apply_default(mergeWith_default, void 0, args);
  4388. });
  4389. var defaultsDeep_default = defaultsDeep;
  4390. // node_modules/lodash-es/_baseDelay.js
  4391. var FUNC_ERROR_TEXT7 = "Expected a function";
  4392. function baseDelay(func, wait, args) {
  4393. if (typeof func != "function") {
  4394. throw new TypeError(FUNC_ERROR_TEXT7);
  4395. }
  4396. return setTimeout(function() {
  4397. func.apply(void 0, args);
  4398. }, wait);
  4399. }
  4400. var baseDelay_default = baseDelay;
  4401. // node_modules/lodash-es/defer.js
  4402. var defer = baseRest_default(function(func, args) {
  4403. return baseDelay_default(func, 1, args);
  4404. });
  4405. var defer_default = defer;
  4406. // node_modules/lodash-es/delay.js
  4407. var delay = baseRest_default(function(func, wait, args) {
  4408. return baseDelay_default(func, toNumber_default(wait) || 0, args);
  4409. });
  4410. var delay_default = delay;
  4411. // node_modules/lodash-es/_arrayIncludesWith.js
  4412. function arrayIncludesWith(array4, value, comparator) {
  4413. var index = -1, length = array4 == null ? 0 : array4.length;
  4414. while (++index < length) {
  4415. if (comparator(value, array4[index])) {
  4416. return true;
  4417. }
  4418. }
  4419. return false;
  4420. }
  4421. var arrayIncludesWith_default = arrayIncludesWith;
  4422. // node_modules/lodash-es/_baseDifference.js
  4423. var LARGE_ARRAY_SIZE2 = 200;
  4424. function baseDifference(array4, values2, iteratee2, comparator) {
  4425. var index = -1, includes2 = arrayIncludes_default, isCommon = true, length = array4.length, result2 = [], valuesLength = values2.length;
  4426. if (!length) {
  4427. return result2;
  4428. }
  4429. if (iteratee2) {
  4430. values2 = arrayMap_default(values2, baseUnary_default(iteratee2));
  4431. }
  4432. if (comparator) {
  4433. includes2 = arrayIncludesWith_default;
  4434. isCommon = false;
  4435. } else if (values2.length >= LARGE_ARRAY_SIZE2) {
  4436. includes2 = cacheHas_default;
  4437. isCommon = false;
  4438. values2 = new SetCache_default(values2);
  4439. }
  4440. outer:
  4441. while (++index < length) {
  4442. var value = array4[index], computed2 = iteratee2 == null ? value : iteratee2(value);
  4443. value = comparator || value !== 0 ? value : 0;
  4444. if (isCommon && computed2 === computed2) {
  4445. var valuesIndex = valuesLength;
  4446. while (valuesIndex--) {
  4447. if (values2[valuesIndex] === computed2) {
  4448. continue outer;
  4449. }
  4450. }
  4451. result2.push(value);
  4452. } else if (!includes2(values2, computed2, comparator)) {
  4453. result2.push(value);
  4454. }
  4455. }
  4456. return result2;
  4457. }
  4458. var baseDifference_default = baseDifference;
  4459. // node_modules/lodash-es/difference.js
  4460. var difference = baseRest_default(function(array4, values2) {
  4461. return isArrayLikeObject_default(array4) ? baseDifference_default(array4, baseFlatten_default(values2, 1, isArrayLikeObject_default, true)) : [];
  4462. });
  4463. var difference_default = difference;
  4464. // node_modules/lodash-es/last.js
  4465. function last(array4) {
  4466. var length = array4 == null ? 0 : array4.length;
  4467. return length ? array4[length - 1] : void 0;
  4468. }
  4469. var last_default = last;
  4470. // node_modules/lodash-es/differenceBy.js
  4471. var differenceBy = baseRest_default(function(array4, values2) {
  4472. var iteratee2 = last_default(values2);
  4473. if (isArrayLikeObject_default(iteratee2)) {
  4474. iteratee2 = void 0;
  4475. }
  4476. return isArrayLikeObject_default(array4) ? baseDifference_default(array4, baseFlatten_default(values2, 1, isArrayLikeObject_default, true), baseIteratee_default(iteratee2, 2)) : [];
  4477. });
  4478. var differenceBy_default = differenceBy;
  4479. // node_modules/lodash-es/differenceWith.js
  4480. var differenceWith = baseRest_default(function(array4, values2) {
  4481. var comparator = last_default(values2);
  4482. if (isArrayLikeObject_default(comparator)) {
  4483. comparator = void 0;
  4484. }
  4485. return isArrayLikeObject_default(array4) ? baseDifference_default(array4, baseFlatten_default(values2, 1, isArrayLikeObject_default, true), void 0, comparator) : [];
  4486. });
  4487. var differenceWith_default = differenceWith;
  4488. // node_modules/lodash-es/divide.js
  4489. var divide = createMathOperation_default(function(dividend, divisor) {
  4490. return dividend / divisor;
  4491. }, 1);
  4492. var divide_default = divide;
  4493. // node_modules/lodash-es/drop.js
  4494. function drop(array4, n, guard) {
  4495. var length = array4 == null ? 0 : array4.length;
  4496. if (!length) {
  4497. return [];
  4498. }
  4499. n = guard || n === void 0 ? 1 : toInteger_default(n);
  4500. return baseSlice_default(array4, n < 0 ? 0 : n, length);
  4501. }
  4502. var drop_default = drop;
  4503. // node_modules/lodash-es/dropRight.js
  4504. function dropRight(array4, n, guard) {
  4505. var length = array4 == null ? 0 : array4.length;
  4506. if (!length) {
  4507. return [];
  4508. }
  4509. n = guard || n === void 0 ? 1 : toInteger_default(n);
  4510. n = length - n;
  4511. return baseSlice_default(array4, 0, n < 0 ? 0 : n);
  4512. }
  4513. var dropRight_default = dropRight;
  4514. // node_modules/lodash-es/_baseWhile.js
  4515. function baseWhile(array4, predicate, isDrop, fromRight) {
  4516. var length = array4.length, index = fromRight ? length : -1;
  4517. while ((fromRight ? index-- : ++index < length) && predicate(array4[index], index, array4)) {
  4518. }
  4519. return isDrop ? baseSlice_default(array4, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice_default(array4, fromRight ? index + 1 : 0, fromRight ? length : index);
  4520. }
  4521. var baseWhile_default = baseWhile;
  4522. // node_modules/lodash-es/dropRightWhile.js
  4523. function dropRightWhile(array4, predicate) {
  4524. return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3), true, true) : [];
  4525. }
  4526. var dropRightWhile_default = dropRightWhile;
  4527. // node_modules/lodash-es/dropWhile.js
  4528. function dropWhile(array4, predicate) {
  4529. return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3), true) : [];
  4530. }
  4531. var dropWhile_default = dropWhile;
  4532. // node_modules/lodash-es/_castFunction.js
  4533. function castFunction(value) {
  4534. return typeof value == "function" ? value : identity_default;
  4535. }
  4536. var castFunction_default = castFunction;
  4537. // node_modules/lodash-es/forEach.js
  4538. function forEach(collection, iteratee2) {
  4539. var func = isArray_default(collection) ? arrayEach_default : baseEach_default;
  4540. return func(collection, castFunction_default(iteratee2));
  4541. }
  4542. var forEach_default = forEach;
  4543. // node_modules/lodash-es/_arrayEachRight.js
  4544. function arrayEachRight(array4, iteratee2) {
  4545. var length = array4 == null ? 0 : array4.length;
  4546. while (length--) {
  4547. if (iteratee2(array4[length], length, array4) === false) {
  4548. break;
  4549. }
  4550. }
  4551. return array4;
  4552. }
  4553. var arrayEachRight_default = arrayEachRight;
  4554. // node_modules/lodash-es/_baseForRight.js
  4555. var baseForRight = createBaseFor_default(true);
  4556. var baseForRight_default = baseForRight;
  4557. // node_modules/lodash-es/_baseForOwnRight.js
  4558. function baseForOwnRight(object4, iteratee2) {
  4559. return object4 && baseForRight_default(object4, iteratee2, keys_default);
  4560. }
  4561. var baseForOwnRight_default = baseForOwnRight;
  4562. // node_modules/lodash-es/_baseEachRight.js
  4563. var baseEachRight = createBaseEach_default(baseForOwnRight_default, true);
  4564. var baseEachRight_default = baseEachRight;
  4565. // node_modules/lodash-es/forEachRight.js
  4566. function forEachRight(collection, iteratee2) {
  4567. var func = isArray_default(collection) ? arrayEachRight_default : baseEachRight_default;
  4568. return func(collection, castFunction_default(iteratee2));
  4569. }
  4570. var forEachRight_default = forEachRight;
  4571. // node_modules/lodash-es/endsWith.js
  4572. function endsWith(string3, target2, position) {
  4573. string3 = toString_default(string3);
  4574. target2 = baseToString_default(target2);
  4575. var length = string3.length;
  4576. position = position === void 0 ? length : baseClamp_default(toInteger_default(position), 0, length);
  4577. var end = position;
  4578. position -= target2.length;
  4579. return position >= 0 && string3.slice(position, end) == target2;
  4580. }
  4581. var endsWith_default = endsWith;
  4582. // node_modules/lodash-es/_baseToPairs.js
  4583. function baseToPairs(object4, props2) {
  4584. return arrayMap_default(props2, function(key) {
  4585. return [key, object4[key]];
  4586. });
  4587. }
  4588. var baseToPairs_default = baseToPairs;
  4589. // node_modules/lodash-es/_setToPairs.js
  4590. function setToPairs(set3) {
  4591. var index = -1, result2 = Array(set3.size);
  4592. set3.forEach(function(value) {
  4593. result2[++index] = [value, value];
  4594. });
  4595. return result2;
  4596. }
  4597. var setToPairs_default = setToPairs;
  4598. // node_modules/lodash-es/_createToPairs.js
  4599. var mapTag7 = "[object Map]";
  4600. var setTag7 = "[object Set]";
  4601. function createToPairs(keysFunc) {
  4602. return function(object4) {
  4603. var tag = getTag_default(object4);
  4604. if (tag == mapTag7) {
  4605. return mapToArray_default(object4);
  4606. }
  4607. if (tag == setTag7) {
  4608. return setToPairs_default(object4);
  4609. }
  4610. return baseToPairs_default(object4, keysFunc(object4));
  4611. };
  4612. }
  4613. var createToPairs_default = createToPairs;
  4614. // node_modules/lodash-es/toPairs.js
  4615. var toPairs = createToPairs_default(keys_default);
  4616. var toPairs_default = toPairs;
  4617. // node_modules/lodash-es/toPairsIn.js
  4618. var toPairsIn = createToPairs_default(keysIn_default);
  4619. var toPairsIn_default = toPairsIn;
  4620. // node_modules/lodash-es/_escapeHtmlChar.js
  4621. var htmlEscapes = {
  4622. "&": "&amp;",
  4623. "<": "&lt;",
  4624. ">": "&gt;",
  4625. '"': "&quot;",
  4626. "'": "&#39;"
  4627. };
  4628. var escapeHtmlChar = basePropertyOf_default(htmlEscapes);
  4629. var escapeHtmlChar_default = escapeHtmlChar;
  4630. // node_modules/lodash-es/escape.js
  4631. var reUnescapedHtml = /[&<>"']/g;
  4632. var reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  4633. function escape(string3) {
  4634. string3 = toString_default(string3);
  4635. return string3 && reHasUnescapedHtml.test(string3) ? string3.replace(reUnescapedHtml, escapeHtmlChar_default) : string3;
  4636. }
  4637. var escape_default = escape;
  4638. // node_modules/lodash-es/escapeRegExp.js
  4639. var reRegExpChar2 = /[\\^$.*+?()[\]{}|]/g;
  4640. var reHasRegExpChar = RegExp(reRegExpChar2.source);
  4641. function escapeRegExp(string3) {
  4642. string3 = toString_default(string3);
  4643. return string3 && reHasRegExpChar.test(string3) ? string3.replace(reRegExpChar2, "\\$&") : string3;
  4644. }
  4645. var escapeRegExp_default = escapeRegExp;
  4646. // node_modules/lodash-es/_arrayEvery.js
  4647. function arrayEvery(array4, predicate) {
  4648. var index = -1, length = array4 == null ? 0 : array4.length;
  4649. while (++index < length) {
  4650. if (!predicate(array4[index], index, array4)) {
  4651. return false;
  4652. }
  4653. }
  4654. return true;
  4655. }
  4656. var arrayEvery_default = arrayEvery;
  4657. // node_modules/lodash-es/_baseEvery.js
  4658. function baseEvery(collection, predicate) {
  4659. var result2 = true;
  4660. baseEach_default(collection, function(value, index, collection2) {
  4661. result2 = !!predicate(value, index, collection2);
  4662. return result2;
  4663. });
  4664. return result2;
  4665. }
  4666. var baseEvery_default = baseEvery;
  4667. // node_modules/lodash-es/every.js
  4668. function every(collection, predicate, guard) {
  4669. var func = isArray_default(collection) ? arrayEvery_default : baseEvery_default;
  4670. if (guard && isIterateeCall_default(collection, predicate, guard)) {
  4671. predicate = void 0;
  4672. }
  4673. return func(collection, baseIteratee_default(predicate, 3));
  4674. }
  4675. var every_default = every;
  4676. // node_modules/lodash-es/toLength.js
  4677. var MAX_ARRAY_LENGTH2 = 4294967295;
  4678. function toLength(value) {
  4679. return value ? baseClamp_default(toInteger_default(value), 0, MAX_ARRAY_LENGTH2) : 0;
  4680. }
  4681. var toLength_default = toLength;
  4682. // node_modules/lodash-es/_baseFill.js
  4683. function baseFill(array4, value, start, end) {
  4684. var length = array4.length;
  4685. start = toInteger_default(start);
  4686. if (start < 0) {
  4687. start = -start > length ? 0 : length + start;
  4688. }
  4689. end = end === void 0 || end > length ? length : toInteger_default(end);
  4690. if (end < 0) {
  4691. end += length;
  4692. }
  4693. end = start > end ? 0 : toLength_default(end);
  4694. while (start < end) {
  4695. array4[start++] = value;
  4696. }
  4697. return array4;
  4698. }
  4699. var baseFill_default = baseFill;
  4700. // node_modules/lodash-es/fill.js
  4701. function fill(array4, value, start, end) {
  4702. var length = array4 == null ? 0 : array4.length;
  4703. if (!length) {
  4704. return [];
  4705. }
  4706. if (start && typeof start != "number" && isIterateeCall_default(array4, value, start)) {
  4707. start = 0;
  4708. end = length;
  4709. }
  4710. return baseFill_default(array4, value, start, end);
  4711. }
  4712. var fill_default = fill;
  4713. // node_modules/lodash-es/_baseFilter.js
  4714. function baseFilter(collection, predicate) {
  4715. var result2 = [];
  4716. baseEach_default(collection, function(value, index, collection2) {
  4717. if (predicate(value, index, collection2)) {
  4718. result2.push(value);
  4719. }
  4720. });
  4721. return result2;
  4722. }
  4723. var baseFilter_default = baseFilter;
  4724. // node_modules/lodash-es/filter.js
  4725. function filter(collection, predicate) {
  4726. var func = isArray_default(collection) ? arrayFilter_default : baseFilter_default;
  4727. return func(collection, baseIteratee_default(predicate, 3));
  4728. }
  4729. var filter_default = filter;
  4730. // node_modules/lodash-es/_createFind.js
  4731. function createFind(findIndexFunc) {
  4732. return function(collection, predicate, fromIndex) {
  4733. var iterable = Object(collection);
  4734. if (!isArrayLike_default(collection)) {
  4735. var iteratee2 = baseIteratee_default(predicate, 3);
  4736. collection = keys_default(collection);
  4737. predicate = function(key) {
  4738. return iteratee2(iterable[key], key, iterable);
  4739. };
  4740. }
  4741. var index = findIndexFunc(collection, predicate, fromIndex);
  4742. return index > -1 ? iterable[iteratee2 ? collection[index] : index] : void 0;
  4743. };
  4744. }
  4745. var createFind_default = createFind;
  4746. // node_modules/lodash-es/findIndex.js
  4747. var nativeMax7 = Math.max;
  4748. function findIndex(array4, predicate, fromIndex) {
  4749. var length = array4 == null ? 0 : array4.length;
  4750. if (!length) {
  4751. return -1;
  4752. }
  4753. var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
  4754. if (index < 0) {
  4755. index = nativeMax7(length + index, 0);
  4756. }
  4757. return baseFindIndex_default(array4, baseIteratee_default(predicate, 3), index);
  4758. }
  4759. var findIndex_default = findIndex;
  4760. // node_modules/lodash-es/find.js
  4761. var find = createFind_default(findIndex_default);
  4762. var find_default = find;
  4763. // node_modules/lodash-es/_baseFindKey.js
  4764. function baseFindKey(collection, predicate, eachFunc) {
  4765. var result2;
  4766. eachFunc(collection, function(value, key, collection2) {
  4767. if (predicate(value, key, collection2)) {
  4768. result2 = key;
  4769. return false;
  4770. }
  4771. });
  4772. return result2;
  4773. }
  4774. var baseFindKey_default = baseFindKey;
  4775. // node_modules/lodash-es/findKey.js
  4776. function findKey(object4, predicate) {
  4777. return baseFindKey_default(object4, baseIteratee_default(predicate, 3), baseForOwn_default);
  4778. }
  4779. var findKey_default = findKey;
  4780. // node_modules/lodash-es/findLastIndex.js
  4781. var nativeMax8 = Math.max;
  4782. var nativeMin5 = Math.min;
  4783. function findLastIndex(array4, predicate, fromIndex) {
  4784. var length = array4 == null ? 0 : array4.length;
  4785. if (!length) {
  4786. return -1;
  4787. }
  4788. var index = length - 1;
  4789. if (fromIndex !== void 0) {
  4790. index = toInteger_default(fromIndex);
  4791. index = fromIndex < 0 ? nativeMax8(length + index, 0) : nativeMin5(index, length - 1);
  4792. }
  4793. return baseFindIndex_default(array4, baseIteratee_default(predicate, 3), index, true);
  4794. }
  4795. var findLastIndex_default = findLastIndex;
  4796. // node_modules/lodash-es/findLast.js
  4797. var findLast = createFind_default(findLastIndex_default);
  4798. var findLast_default = findLast;
  4799. // node_modules/lodash-es/findLastKey.js
  4800. function findLastKey(object4, predicate) {
  4801. return baseFindKey_default(object4, baseIteratee_default(predicate, 3), baseForOwnRight_default);
  4802. }
  4803. var findLastKey_default = findLastKey;
  4804. // node_modules/lodash-es/head.js
  4805. function head(array4) {
  4806. return array4 && array4.length ? array4[0] : void 0;
  4807. }
  4808. var head_default = head;
  4809. // node_modules/lodash-es/_baseMap.js
  4810. function baseMap(collection, iteratee2) {
  4811. var index = -1, result2 = isArrayLike_default(collection) ? Array(collection.length) : [];
  4812. baseEach_default(collection, function(value, key, collection2) {
  4813. result2[++index] = iteratee2(value, key, collection2);
  4814. });
  4815. return result2;
  4816. }
  4817. var baseMap_default = baseMap;
  4818. // node_modules/lodash-es/map.js
  4819. function map(collection, iteratee2) {
  4820. var func = isArray_default(collection) ? arrayMap_default : baseMap_default;
  4821. return func(collection, baseIteratee_default(iteratee2, 3));
  4822. }
  4823. var map_default = map;
  4824. // node_modules/lodash-es/flatMap.js
  4825. function flatMap(collection, iteratee2) {
  4826. return baseFlatten_default(map_default(collection, iteratee2), 1);
  4827. }
  4828. var flatMap_default = flatMap;
  4829. // node_modules/lodash-es/flatMapDeep.js
  4830. var INFINITY4 = 1 / 0;
  4831. function flatMapDeep(collection, iteratee2) {
  4832. return baseFlatten_default(map_default(collection, iteratee2), INFINITY4);
  4833. }
  4834. var flatMapDeep_default = flatMapDeep;
  4835. // node_modules/lodash-es/flatMapDepth.js
  4836. function flatMapDepth(collection, iteratee2, depth) {
  4837. depth = depth === void 0 ? 1 : toInteger_default(depth);
  4838. return baseFlatten_default(map_default(collection, iteratee2), depth);
  4839. }
  4840. var flatMapDepth_default = flatMapDepth;
  4841. // node_modules/lodash-es/flattenDeep.js
  4842. var INFINITY5 = 1 / 0;
  4843. function flattenDeep(array4) {
  4844. var length = array4 == null ? 0 : array4.length;
  4845. return length ? baseFlatten_default(array4, INFINITY5) : [];
  4846. }
  4847. var flattenDeep_default = flattenDeep;
  4848. // node_modules/lodash-es/flattenDepth.js
  4849. function flattenDepth(array4, depth) {
  4850. var length = array4 == null ? 0 : array4.length;
  4851. if (!length) {
  4852. return [];
  4853. }
  4854. depth = depth === void 0 ? 1 : toInteger_default(depth);
  4855. return baseFlatten_default(array4, depth);
  4856. }
  4857. var flattenDepth_default = flattenDepth;
  4858. // node_modules/lodash-es/flip.js
  4859. var WRAP_FLIP_FLAG3 = 512;
  4860. function flip(func) {
  4861. return createWrap_default(func, WRAP_FLIP_FLAG3);
  4862. }
  4863. var flip_default = flip;
  4864. // node_modules/lodash-es/floor.js
  4865. var floor = createRound_default("floor");
  4866. var floor_default = floor;
  4867. // node_modules/lodash-es/_createFlow.js
  4868. var FUNC_ERROR_TEXT8 = "Expected a function";
  4869. var WRAP_CURRY_FLAG7 = 8;
  4870. var WRAP_PARTIAL_FLAG6 = 32;
  4871. var WRAP_ARY_FLAG5 = 128;
  4872. var WRAP_REARG_FLAG3 = 256;
  4873. function createFlow(fromRight) {
  4874. return flatRest_default(function(funcs) {
  4875. var length = funcs.length, index = length, prereq = LodashWrapper_default.prototype.thru;
  4876. if (fromRight) {
  4877. funcs.reverse();
  4878. }
  4879. while (index--) {
  4880. var func = funcs[index];
  4881. if (typeof func != "function") {
  4882. throw new TypeError(FUNC_ERROR_TEXT8);
  4883. }
  4884. if (prereq && !wrapper && getFuncName_default(func) == "wrapper") {
  4885. var wrapper = new LodashWrapper_default([], true);
  4886. }
  4887. }
  4888. index = wrapper ? index : length;
  4889. while (++index < length) {
  4890. func = funcs[index];
  4891. var funcName = getFuncName_default(func), data = funcName == "wrapper" ? getData_default(func) : void 0;
  4892. if (data && isLaziable_default(data[0]) && data[1] == (WRAP_ARY_FLAG5 | WRAP_CURRY_FLAG7 | WRAP_PARTIAL_FLAG6 | WRAP_REARG_FLAG3) && !data[4].length && data[9] == 1) {
  4893. wrapper = wrapper[getFuncName_default(data[0])].apply(wrapper, data[3]);
  4894. } else {
  4895. wrapper = func.length == 1 && isLaziable_default(func) ? wrapper[funcName]() : wrapper.thru(func);
  4896. }
  4897. }
  4898. return function() {
  4899. var args = arguments, value = args[0];
  4900. if (wrapper && args.length == 1 && isArray_default(value)) {
  4901. return wrapper.plant(value).value();
  4902. }
  4903. var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
  4904. while (++index2 < length) {
  4905. result2 = funcs[index2].call(this, result2);
  4906. }
  4907. return result2;
  4908. };
  4909. });
  4910. }
  4911. var createFlow_default = createFlow;
  4912. // node_modules/lodash-es/flow.js
  4913. var flow = createFlow_default();
  4914. var flow_default = flow;
  4915. // node_modules/lodash-es/flowRight.js
  4916. var flowRight = createFlow_default(true);
  4917. var flowRight_default = flowRight;
  4918. // node_modules/lodash-es/forIn.js
  4919. function forIn(object4, iteratee2) {
  4920. return object4 == null ? object4 : baseFor_default(object4, castFunction_default(iteratee2), keysIn_default);
  4921. }
  4922. var forIn_default = forIn;
  4923. // node_modules/lodash-es/forInRight.js
  4924. function forInRight(object4, iteratee2) {
  4925. return object4 == null ? object4 : baseForRight_default(object4, castFunction_default(iteratee2), keysIn_default);
  4926. }
  4927. var forInRight_default = forInRight;
  4928. // node_modules/lodash-es/forOwn.js
  4929. function forOwn(object4, iteratee2) {
  4930. return object4 && baseForOwn_default(object4, castFunction_default(iteratee2));
  4931. }
  4932. var forOwn_default = forOwn;
  4933. // node_modules/lodash-es/forOwnRight.js
  4934. function forOwnRight(object4, iteratee2) {
  4935. return object4 && baseForOwnRight_default(object4, castFunction_default(iteratee2));
  4936. }
  4937. var forOwnRight_default = forOwnRight;
  4938. // node_modules/lodash-es/fromPairs.js
  4939. function fromPairs(pairs) {
  4940. var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
  4941. while (++index < length) {
  4942. var pair = pairs[index];
  4943. result2[pair[0]] = pair[1];
  4944. }
  4945. return result2;
  4946. }
  4947. var fromPairs_default = fromPairs;
  4948. // node_modules/lodash-es/_baseFunctions.js
  4949. function baseFunctions(object4, props2) {
  4950. return arrayFilter_default(props2, function(key) {
  4951. return isFunction_default(object4[key]);
  4952. });
  4953. }
  4954. var baseFunctions_default = baseFunctions;
  4955. // node_modules/lodash-es/functions.js
  4956. function functions(object4) {
  4957. return object4 == null ? [] : baseFunctions_default(object4, keys_default(object4));
  4958. }
  4959. var functions_default = functions;
  4960. // node_modules/lodash-es/functionsIn.js
  4961. function functionsIn(object4) {
  4962. return object4 == null ? [] : baseFunctions_default(object4, keysIn_default(object4));
  4963. }
  4964. var functionsIn_default = functionsIn;
  4965. // node_modules/lodash-es/groupBy.js
  4966. var objectProto22 = Object.prototype;
  4967. var hasOwnProperty19 = objectProto22.hasOwnProperty;
  4968. var groupBy = createAggregator_default(function(result2, value, key) {
  4969. if (hasOwnProperty19.call(result2, key)) {
  4970. result2[key].push(value);
  4971. } else {
  4972. baseAssignValue_default(result2, key, [value]);
  4973. }
  4974. });
  4975. var groupBy_default = groupBy;
  4976. // node_modules/lodash-es/_baseGt.js
  4977. function baseGt(value, other) {
  4978. return value > other;
  4979. }
  4980. var baseGt_default = baseGt;
  4981. // node_modules/lodash-es/_createRelationalOperation.js
  4982. function createRelationalOperation(operator) {
  4983. return function(value, other) {
  4984. if (!(typeof value == "string" && typeof other == "string")) {
  4985. value = toNumber_default(value);
  4986. other = toNumber_default(other);
  4987. }
  4988. return operator(value, other);
  4989. };
  4990. }
  4991. var createRelationalOperation_default = createRelationalOperation;
  4992. // node_modules/lodash-es/gt.js
  4993. var gt = createRelationalOperation_default(baseGt_default);
  4994. var gt_default = gt;
  4995. // node_modules/lodash-es/gte.js
  4996. var gte = createRelationalOperation_default(function(value, other) {
  4997. return value >= other;
  4998. });
  4999. var gte_default = gte;
  5000. // node_modules/lodash-es/_baseHas.js
  5001. var objectProto23 = Object.prototype;
  5002. var hasOwnProperty20 = objectProto23.hasOwnProperty;
  5003. function baseHas(object4, key) {
  5004. return object4 != null && hasOwnProperty20.call(object4, key);
  5005. }
  5006. var baseHas_default = baseHas;
  5007. // node_modules/lodash-es/has.js
  5008. function has(object4, path) {
  5009. return object4 != null && hasPath_default(object4, path, baseHas_default);
  5010. }
  5011. var has_default = has;
  5012. // node_modules/lodash-es/_baseInRange.js
  5013. var nativeMax9 = Math.max;
  5014. var nativeMin6 = Math.min;
  5015. function baseInRange(number4, start, end) {
  5016. return number4 >= nativeMin6(start, end) && number4 < nativeMax9(start, end);
  5017. }
  5018. var baseInRange_default = baseInRange;
  5019. // node_modules/lodash-es/inRange.js
  5020. function inRange(number4, start, end) {
  5021. start = toFinite_default(start);
  5022. if (end === void 0) {
  5023. end = start;
  5024. start = 0;
  5025. } else {
  5026. end = toFinite_default(end);
  5027. }
  5028. number4 = toNumber_default(number4);
  5029. return baseInRange_default(number4, start, end);
  5030. }
  5031. var inRange_default = inRange;
  5032. // node_modules/lodash-es/isString.js
  5033. var stringTag5 = "[object String]";
  5034. function isString2(value) {
  5035. return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && baseGetTag_default(value) == stringTag5;
  5036. }
  5037. var isString_default = isString2;
  5038. // node_modules/lodash-es/_baseValues.js
  5039. function baseValues(object4, props2) {
  5040. return arrayMap_default(props2, function(key) {
  5041. return object4[key];
  5042. });
  5043. }
  5044. var baseValues_default = baseValues;
  5045. // node_modules/lodash-es/values.js
  5046. function values(object4) {
  5047. return object4 == null ? [] : baseValues_default(object4, keys_default(object4));
  5048. }
  5049. var values_default = values;
  5050. // node_modules/lodash-es/includes.js
  5051. var nativeMax10 = Math.max;
  5052. function includes(collection, value, fromIndex, guard) {
  5053. collection = isArrayLike_default(collection) ? collection : values_default(collection);
  5054. fromIndex = fromIndex && !guard ? toInteger_default(fromIndex) : 0;
  5055. var length = collection.length;
  5056. if (fromIndex < 0) {
  5057. fromIndex = nativeMax10(length + fromIndex, 0);
  5058. }
  5059. return isString_default(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf_default(collection, value, fromIndex) > -1;
  5060. }
  5061. var includes_default = includes;
  5062. // node_modules/lodash-es/indexOf.js
  5063. var nativeMax11 = Math.max;
  5064. function indexOf(array4, value, fromIndex) {
  5065. var length = array4 == null ? 0 : array4.length;
  5066. if (!length) {
  5067. return -1;
  5068. }
  5069. var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
  5070. if (index < 0) {
  5071. index = nativeMax11(length + index, 0);
  5072. }
  5073. return baseIndexOf_default(array4, value, index);
  5074. }
  5075. var indexOf_default = indexOf;
  5076. // node_modules/lodash-es/initial.js
  5077. function initial(array4) {
  5078. var length = array4 == null ? 0 : array4.length;
  5079. return length ? baseSlice_default(array4, 0, -1) : [];
  5080. }
  5081. var initial_default = initial;
  5082. // node_modules/lodash-es/_baseIntersection.js
  5083. var nativeMin7 = Math.min;
  5084. function baseIntersection(arrays, iteratee2, comparator) {
  5085. var includes2 = comparator ? arrayIncludesWith_default : arrayIncludes_default, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = Infinity, result2 = [];
  5086. while (othIndex--) {
  5087. var array4 = arrays[othIndex];
  5088. if (othIndex && iteratee2) {
  5089. array4 = arrayMap_default(array4, baseUnary_default(iteratee2));
  5090. }
  5091. maxLength = nativeMin7(array4.length, maxLength);
  5092. caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array4.length >= 120) ? new SetCache_default(othIndex && array4) : void 0;
  5093. }
  5094. array4 = arrays[0];
  5095. var index = -1, seen = caches[0];
  5096. outer:
  5097. while (++index < length && result2.length < maxLength) {
  5098. var value = array4[index], computed2 = iteratee2 ? iteratee2(value) : value;
  5099. value = comparator || value !== 0 ? value : 0;
  5100. if (!(seen ? cacheHas_default(seen, computed2) : includes2(result2, computed2, comparator))) {
  5101. othIndex = othLength;
  5102. while (--othIndex) {
  5103. var cache2 = caches[othIndex];
  5104. if (!(cache2 ? cacheHas_default(cache2, computed2) : includes2(arrays[othIndex], computed2, comparator))) {
  5105. continue outer;
  5106. }
  5107. }
  5108. if (seen) {
  5109. seen.push(computed2);
  5110. }
  5111. result2.push(value);
  5112. }
  5113. }
  5114. return result2;
  5115. }
  5116. var baseIntersection_default = baseIntersection;
  5117. // node_modules/lodash-es/_castArrayLikeObject.js
  5118. function castArrayLikeObject(value) {
  5119. return isArrayLikeObject_default(value) ? value : [];
  5120. }
  5121. var castArrayLikeObject_default = castArrayLikeObject;
  5122. // node_modules/lodash-es/intersection.js
  5123. var intersection = baseRest_default(function(arrays) {
  5124. var mapped = arrayMap_default(arrays, castArrayLikeObject_default);
  5125. return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped) : [];
  5126. });
  5127. var intersection_default = intersection;
  5128. // node_modules/lodash-es/intersectionBy.js
  5129. var intersectionBy = baseRest_default(function(arrays) {
  5130. var iteratee2 = last_default(arrays), mapped = arrayMap_default(arrays, castArrayLikeObject_default);
  5131. if (iteratee2 === last_default(mapped)) {
  5132. iteratee2 = void 0;
  5133. } else {
  5134. mapped.pop();
  5135. }
  5136. return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped, baseIteratee_default(iteratee2, 2)) : [];
  5137. });
  5138. var intersectionBy_default = intersectionBy;
  5139. // node_modules/lodash-es/intersectionWith.js
  5140. var intersectionWith = baseRest_default(function(arrays) {
  5141. var comparator = last_default(arrays), mapped = arrayMap_default(arrays, castArrayLikeObject_default);
  5142. comparator = typeof comparator == "function" ? comparator : void 0;
  5143. if (comparator) {
  5144. mapped.pop();
  5145. }
  5146. return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped, void 0, comparator) : [];
  5147. });
  5148. var intersectionWith_default = intersectionWith;
  5149. // node_modules/lodash-es/_baseInverter.js
  5150. function baseInverter(object4, setter, iteratee2, accumulator) {
  5151. baseForOwn_default(object4, function(value, key, object5) {
  5152. setter(accumulator, iteratee2(value), key, object5);
  5153. });
  5154. return accumulator;
  5155. }
  5156. var baseInverter_default = baseInverter;
  5157. // node_modules/lodash-es/_createInverter.js
  5158. function createInverter(setter, toIteratee) {
  5159. return function(object4, iteratee2) {
  5160. return baseInverter_default(object4, setter, toIteratee(iteratee2), {});
  5161. };
  5162. }
  5163. var createInverter_default = createInverter;
  5164. // node_modules/lodash-es/invert.js
  5165. var objectProto24 = Object.prototype;
  5166. var nativeObjectToString3 = objectProto24.toString;
  5167. var invert = createInverter_default(function(result2, value, key) {
  5168. if (value != null && typeof value.toString != "function") {
  5169. value = nativeObjectToString3.call(value);
  5170. }
  5171. result2[value] = key;
  5172. }, constant_default(identity_default));
  5173. var invert_default = invert;
  5174. // node_modules/lodash-es/invertBy.js
  5175. var objectProto25 = Object.prototype;
  5176. var hasOwnProperty21 = objectProto25.hasOwnProperty;
  5177. var nativeObjectToString4 = objectProto25.toString;
  5178. var invertBy = createInverter_default(function(result2, value, key) {
  5179. if (value != null && typeof value.toString != "function") {
  5180. value = nativeObjectToString4.call(value);
  5181. }
  5182. if (hasOwnProperty21.call(result2, value)) {
  5183. result2[value].push(key);
  5184. } else {
  5185. result2[value] = [key];
  5186. }
  5187. }, baseIteratee_default);
  5188. var invertBy_default = invertBy;
  5189. // node_modules/lodash-es/_parent.js
  5190. function parent(object4, path) {
  5191. return path.length < 2 ? object4 : baseGet_default(object4, baseSlice_default(path, 0, -1));
  5192. }
  5193. var parent_default = parent;
  5194. // node_modules/lodash-es/_baseInvoke.js
  5195. function baseInvoke(object4, path, args) {
  5196. path = castPath_default(path, object4);
  5197. object4 = parent_default(object4, path);
  5198. var func = object4 == null ? object4 : object4[toKey_default(last_default(path))];
  5199. return func == null ? void 0 : apply_default(func, object4, args);
  5200. }
  5201. var baseInvoke_default = baseInvoke;
  5202. // node_modules/lodash-es/invoke.js
  5203. var invoke = baseRest_default(baseInvoke_default);
  5204. var invoke_default = invoke;
  5205. // node_modules/lodash-es/invokeMap.js
  5206. var invokeMap = baseRest_default(function(collection, path, args) {
  5207. var index = -1, isFunc = typeof path == "function", result2 = isArrayLike_default(collection) ? Array(collection.length) : [];
  5208. baseEach_default(collection, function(value) {
  5209. result2[++index] = isFunc ? apply_default(path, value, args) : baseInvoke_default(value, path, args);
  5210. });
  5211. return result2;
  5212. });
  5213. var invokeMap_default = invokeMap;
  5214. // node_modules/lodash-es/_baseIsArrayBuffer.js
  5215. var arrayBufferTag5 = "[object ArrayBuffer]";
  5216. function baseIsArrayBuffer(value) {
  5217. return isObjectLike_default(value) && baseGetTag_default(value) == arrayBufferTag5;
  5218. }
  5219. var baseIsArrayBuffer_default = baseIsArrayBuffer;
  5220. // node_modules/lodash-es/isArrayBuffer.js
  5221. var nodeIsArrayBuffer = nodeUtil_default && nodeUtil_default.isArrayBuffer;
  5222. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary_default(nodeIsArrayBuffer) : baseIsArrayBuffer_default;
  5223. var isArrayBuffer_default = isArrayBuffer;
  5224. // node_modules/lodash-es/isBoolean.js
  5225. var boolTag5 = "[object Boolean]";
  5226. function isBoolean(value) {
  5227. return value === true || value === false || isObjectLike_default(value) && baseGetTag_default(value) == boolTag5;
  5228. }
  5229. var isBoolean_default = isBoolean;
  5230. // node_modules/lodash-es/_baseIsDate.js
  5231. var dateTag5 = "[object Date]";
  5232. function baseIsDate(value) {
  5233. return isObjectLike_default(value) && baseGetTag_default(value) == dateTag5;
  5234. }
  5235. var baseIsDate_default = baseIsDate;
  5236. // node_modules/lodash-es/isDate.js
  5237. var nodeIsDate = nodeUtil_default && nodeUtil_default.isDate;
  5238. var isDate2 = nodeIsDate ? baseUnary_default(nodeIsDate) : baseIsDate_default;
  5239. var isDate_default = isDate2;
  5240. // node_modules/lodash-es/isElement.js
  5241. function isElement(value) {
  5242. return isObjectLike_default(value) && value.nodeType === 1 && !isPlainObject_default(value);
  5243. }
  5244. var isElement_default = isElement;
  5245. // node_modules/lodash-es/isEmpty.js
  5246. var mapTag8 = "[object Map]";
  5247. var setTag8 = "[object Set]";
  5248. var objectProto26 = Object.prototype;
  5249. var hasOwnProperty22 = objectProto26.hasOwnProperty;
  5250. function isEmpty(value) {
  5251. if (value == null) {
  5252. return true;
  5253. }
  5254. if (isArrayLike_default(value) && (isArray_default(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer_default(value) || isTypedArray_default(value) || isArguments_default(value))) {
  5255. return !value.length;
  5256. }
  5257. var tag = getTag_default(value);
  5258. if (tag == mapTag8 || tag == setTag8) {
  5259. return !value.size;
  5260. }
  5261. if (isPrototype_default(value)) {
  5262. return !baseKeys_default(value).length;
  5263. }
  5264. for (var key in value) {
  5265. if (hasOwnProperty22.call(value, key)) {
  5266. return false;
  5267. }
  5268. }
  5269. return true;
  5270. }
  5271. var isEmpty_default = isEmpty;
  5272. // node_modules/lodash-es/isEqual.js
  5273. function isEqual(value, other) {
  5274. return baseIsEqual_default(value, other);
  5275. }
  5276. var isEqual_default = isEqual;
  5277. // node_modules/lodash-es/isEqualWith.js
  5278. function isEqualWith(value, other, customizer) {
  5279. customizer = typeof customizer == "function" ? customizer : void 0;
  5280. var result2 = customizer ? customizer(value, other) : void 0;
  5281. return result2 === void 0 ? baseIsEqual_default(value, other, void 0, customizer) : !!result2;
  5282. }
  5283. var isEqualWith_default = isEqualWith;
  5284. // node_modules/lodash-es/isFinite.js
  5285. var nativeIsFinite2 = root_default.isFinite;
  5286. function isFinite(value) {
  5287. return typeof value == "number" && nativeIsFinite2(value);
  5288. }
  5289. var isFinite_default = isFinite;
  5290. // node_modules/lodash-es/isInteger.js
  5291. function isInteger(value) {
  5292. return typeof value == "number" && value == toInteger_default(value);
  5293. }
  5294. var isInteger_default = isInteger;
  5295. // node_modules/lodash-es/isMatch.js
  5296. function isMatch(object4, source) {
  5297. return object4 === source || baseIsMatch_default(object4, source, getMatchData_default(source));
  5298. }
  5299. var isMatch_default = isMatch;
  5300. // node_modules/lodash-es/isMatchWith.js
  5301. function isMatchWith(object4, source, customizer) {
  5302. customizer = typeof customizer == "function" ? customizer : void 0;
  5303. return baseIsMatch_default(object4, source, getMatchData_default(source), customizer);
  5304. }
  5305. var isMatchWith_default = isMatchWith;
  5306. // node_modules/lodash-es/isNumber.js
  5307. var numberTag5 = "[object Number]";
  5308. function isNumber(value) {
  5309. return typeof value == "number" || isObjectLike_default(value) && baseGetTag_default(value) == numberTag5;
  5310. }
  5311. var isNumber_default = isNumber;
  5312. // node_modules/lodash-es/isNaN.js
  5313. function isNaN2(value) {
  5314. return isNumber_default(value) && value != +value;
  5315. }
  5316. var isNaN_default = isNaN2;
  5317. // node_modules/lodash-es/_isMaskable.js
  5318. var isMaskable = coreJsData_default ? isFunction_default : stubFalse_default;
  5319. var isMaskable_default = isMaskable;
  5320. // node_modules/lodash-es/isNative.js
  5321. var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";
  5322. function isNative(value) {
  5323. if (isMaskable_default(value)) {
  5324. throw new Error(CORE_ERROR_TEXT);
  5325. }
  5326. return baseIsNative_default(value);
  5327. }
  5328. var isNative_default = isNative;
  5329. // node_modules/lodash-es/isNil.js
  5330. function isNil(value) {
  5331. return value == null;
  5332. }
  5333. var isNil_default = isNil;
  5334. // node_modules/lodash-es/isNull.js
  5335. function isNull(value) {
  5336. return value === null;
  5337. }
  5338. var isNull_default = isNull;
  5339. // node_modules/lodash-es/_baseIsRegExp.js
  5340. var regexpTag5 = "[object RegExp]";
  5341. function baseIsRegExp(value) {
  5342. return isObjectLike_default(value) && baseGetTag_default(value) == regexpTag5;
  5343. }
  5344. var baseIsRegExp_default = baseIsRegExp;
  5345. // node_modules/lodash-es/isRegExp.js
  5346. var nodeIsRegExp = nodeUtil_default && nodeUtil_default.isRegExp;
  5347. var isRegExp = nodeIsRegExp ? baseUnary_default(nodeIsRegExp) : baseIsRegExp_default;
  5348. var isRegExp_default = isRegExp;
  5349. // node_modules/lodash-es/isSafeInteger.js
  5350. var MAX_SAFE_INTEGER3 = 9007199254740991;
  5351. function isSafeInteger(value) {
  5352. return isInteger_default(value) && value >= -MAX_SAFE_INTEGER3 && value <= MAX_SAFE_INTEGER3;
  5353. }
  5354. var isSafeInteger_default = isSafeInteger;
  5355. // node_modules/lodash-es/isUndefined.js
  5356. function isUndefined(value) {
  5357. return value === void 0;
  5358. }
  5359. var isUndefined_default = isUndefined;
  5360. // node_modules/lodash-es/isWeakMap.js
  5361. var weakMapTag4 = "[object WeakMap]";
  5362. function isWeakMap(value) {
  5363. return isObjectLike_default(value) && getTag_default(value) == weakMapTag4;
  5364. }
  5365. var isWeakMap_default = isWeakMap;
  5366. // node_modules/lodash-es/isWeakSet.js
  5367. var weakSetTag = "[object WeakSet]";
  5368. function isWeakSet(value) {
  5369. return isObjectLike_default(value) && baseGetTag_default(value) == weakSetTag;
  5370. }
  5371. var isWeakSet_default = isWeakSet;
  5372. // node_modules/lodash-es/iteratee.js
  5373. var CLONE_DEEP_FLAG5 = 1;
  5374. function iteratee(func) {
  5375. return baseIteratee_default(typeof func == "function" ? func : baseClone_default(func, CLONE_DEEP_FLAG5));
  5376. }
  5377. var iteratee_default = iteratee;
  5378. // node_modules/lodash-es/join.js
  5379. var arrayProto2 = Array.prototype;
  5380. var nativeJoin = arrayProto2.join;
  5381. function join(array4, separator) {
  5382. return array4 == null ? "" : nativeJoin.call(array4, separator);
  5383. }
  5384. var join_default = join;
  5385. // node_modules/lodash-es/kebabCase.js
  5386. var kebabCase = createCompounder_default(function(result2, word, index) {
  5387. return result2 + (index ? "-" : "") + word.toLowerCase();
  5388. });
  5389. var kebabCase_default = kebabCase;
  5390. // node_modules/lodash-es/keyBy.js
  5391. var keyBy = createAggregator_default(function(result2, value, key) {
  5392. baseAssignValue_default(result2, key, value);
  5393. });
  5394. var keyBy_default = keyBy;
  5395. // node_modules/lodash-es/_strictLastIndexOf.js
  5396. function strictLastIndexOf(array4, value, fromIndex) {
  5397. var index = fromIndex + 1;
  5398. while (index--) {
  5399. if (array4[index] === value) {
  5400. return index;
  5401. }
  5402. }
  5403. return index;
  5404. }
  5405. var strictLastIndexOf_default = strictLastIndexOf;
  5406. // node_modules/lodash-es/lastIndexOf.js
  5407. var nativeMax12 = Math.max;
  5408. var nativeMin8 = Math.min;
  5409. function lastIndexOf(array4, value, fromIndex) {
  5410. var length = array4 == null ? 0 : array4.length;
  5411. if (!length) {
  5412. return -1;
  5413. }
  5414. var index = length;
  5415. if (fromIndex !== void 0) {
  5416. index = toInteger_default(fromIndex);
  5417. index = index < 0 ? nativeMax12(length + index, 0) : nativeMin8(index, length - 1);
  5418. }
  5419. return value === value ? strictLastIndexOf_default(array4, value, index) : baseFindIndex_default(array4, baseIsNaN_default, index, true);
  5420. }
  5421. var lastIndexOf_default = lastIndexOf;
  5422. // node_modules/lodash-es/lowerCase.js
  5423. var lowerCase = createCompounder_default(function(result2, word, index) {
  5424. return result2 + (index ? " " : "") + word.toLowerCase();
  5425. });
  5426. var lowerCase_default = lowerCase;
  5427. // node_modules/lodash-es/lowerFirst.js
  5428. var lowerFirst = createCaseFirst_default("toLowerCase");
  5429. var lowerFirst_default = lowerFirst;
  5430. // node_modules/lodash-es/_baseLt.js
  5431. function baseLt(value, other) {
  5432. return value < other;
  5433. }
  5434. var baseLt_default = baseLt;
  5435. // node_modules/lodash-es/lt.js
  5436. var lt = createRelationalOperation_default(baseLt_default);
  5437. var lt_default = lt;
  5438. // node_modules/lodash-es/lte.js
  5439. var lte = createRelationalOperation_default(function(value, other) {
  5440. return value <= other;
  5441. });
  5442. var lte_default = lte;
  5443. // node_modules/lodash-es/mapKeys.js
  5444. function mapKeys(object4, iteratee2) {
  5445. var result2 = {};
  5446. iteratee2 = baseIteratee_default(iteratee2, 3);
  5447. baseForOwn_default(object4, function(value, key, object5) {
  5448. baseAssignValue_default(result2, iteratee2(value, key, object5), value);
  5449. });
  5450. return result2;
  5451. }
  5452. var mapKeys_default = mapKeys;
  5453. // node_modules/lodash-es/mapValues.js
  5454. function mapValues(object4, iteratee2) {
  5455. var result2 = {};
  5456. iteratee2 = baseIteratee_default(iteratee2, 3);
  5457. baseForOwn_default(object4, function(value, key, object5) {
  5458. baseAssignValue_default(result2, key, iteratee2(value, key, object5));
  5459. });
  5460. return result2;
  5461. }
  5462. var mapValues_default = mapValues;
  5463. // node_modules/lodash-es/matches.js
  5464. var CLONE_DEEP_FLAG6 = 1;
  5465. function matches(source) {
  5466. return baseMatches_default(baseClone_default(source, CLONE_DEEP_FLAG6));
  5467. }
  5468. var matches_default = matches;
  5469. // node_modules/lodash-es/matchesProperty.js
  5470. var CLONE_DEEP_FLAG7 = 1;
  5471. function matchesProperty(path, srcValue) {
  5472. return baseMatchesProperty_default(path, baseClone_default(srcValue, CLONE_DEEP_FLAG7));
  5473. }
  5474. var matchesProperty_default = matchesProperty;
  5475. // node_modules/lodash-es/_baseExtremum.js
  5476. function baseExtremum(array4, iteratee2, comparator) {
  5477. var index = -1, length = array4.length;
  5478. while (++index < length) {
  5479. var value = array4[index], current = iteratee2(value);
  5480. if (current != null && (computed2 === void 0 ? current === current && !isSymbol_default(current) : comparator(current, computed2))) {
  5481. var computed2 = current, result2 = value;
  5482. }
  5483. }
  5484. return result2;
  5485. }
  5486. var baseExtremum_default = baseExtremum;
  5487. // node_modules/lodash-es/max.js
  5488. function max(array4) {
  5489. return array4 && array4.length ? baseExtremum_default(array4, identity_default, baseGt_default) : void 0;
  5490. }
  5491. var max_default = max;
  5492. // node_modules/lodash-es/maxBy.js
  5493. function maxBy(array4, iteratee2) {
  5494. return array4 && array4.length ? baseExtremum_default(array4, baseIteratee_default(iteratee2, 2), baseGt_default) : void 0;
  5495. }
  5496. var maxBy_default = maxBy;
  5497. // node_modules/lodash-es/_baseSum.js
  5498. function baseSum(array4, iteratee2) {
  5499. var result2, index = -1, length = array4.length;
  5500. while (++index < length) {
  5501. var current = iteratee2(array4[index]);
  5502. if (current !== void 0) {
  5503. result2 = result2 === void 0 ? current : result2 + current;
  5504. }
  5505. }
  5506. return result2;
  5507. }
  5508. var baseSum_default = baseSum;
  5509. // node_modules/lodash-es/_baseMean.js
  5510. var NAN3 = 0 / 0;
  5511. function baseMean(array4, iteratee2) {
  5512. var length = array4 == null ? 0 : array4.length;
  5513. return length ? baseSum_default(array4, iteratee2) / length : NAN3;
  5514. }
  5515. var baseMean_default = baseMean;
  5516. // node_modules/lodash-es/mean.js
  5517. function mean(array4) {
  5518. return baseMean_default(array4, identity_default);
  5519. }
  5520. var mean_default = mean;
  5521. // node_modules/lodash-es/meanBy.js
  5522. function meanBy(array4, iteratee2) {
  5523. return baseMean_default(array4, baseIteratee_default(iteratee2, 2));
  5524. }
  5525. var meanBy_default = meanBy;
  5526. // node_modules/lodash-es/merge.js
  5527. var merge = createAssigner_default(function(object4, source, srcIndex) {
  5528. baseMerge_default(object4, source, srcIndex);
  5529. });
  5530. var merge_default = merge;
  5531. // node_modules/lodash-es/method.js
  5532. var method = baseRest_default(function(path, args) {
  5533. return function(object4) {
  5534. return baseInvoke_default(object4, path, args);
  5535. };
  5536. });
  5537. var method_default = method;
  5538. // node_modules/lodash-es/methodOf.js
  5539. var methodOf = baseRest_default(function(object4, args) {
  5540. return function(path) {
  5541. return baseInvoke_default(object4, path, args);
  5542. };
  5543. });
  5544. var methodOf_default = methodOf;
  5545. // node_modules/lodash-es/min.js
  5546. function min(array4) {
  5547. return array4 && array4.length ? baseExtremum_default(array4, identity_default, baseLt_default) : void 0;
  5548. }
  5549. var min_default = min;
  5550. // node_modules/lodash-es/minBy.js
  5551. function minBy(array4, iteratee2) {
  5552. return array4 && array4.length ? baseExtremum_default(array4, baseIteratee_default(iteratee2, 2), baseLt_default) : void 0;
  5553. }
  5554. var minBy_default = minBy;
  5555. // node_modules/lodash-es/mixin.js
  5556. function mixin(object4, source, options) {
  5557. var props2 = keys_default(source), methodNames = baseFunctions_default(source, props2);
  5558. var chain2 = !(isObject_default(options) && "chain" in options) || !!options.chain, isFunc = isFunction_default(object4);
  5559. arrayEach_default(methodNames, function(methodName) {
  5560. var func = source[methodName];
  5561. object4[methodName] = func;
  5562. if (isFunc) {
  5563. object4.prototype[methodName] = function() {
  5564. var chainAll = this.__chain__;
  5565. if (chain2 || chainAll) {
  5566. var result2 = object4(this.__wrapped__), actions = result2.__actions__ = copyArray_default(this.__actions__);
  5567. actions.push({ "func": func, "args": arguments, "thisArg": object4 });
  5568. result2.__chain__ = chainAll;
  5569. return result2;
  5570. }
  5571. return func.apply(object4, arrayPush_default([this.value()], arguments));
  5572. };
  5573. }
  5574. });
  5575. return object4;
  5576. }
  5577. var mixin_default = mixin;
  5578. // node_modules/lodash-es/multiply.js
  5579. var multiply = createMathOperation_default(function(multiplier, multiplicand) {
  5580. return multiplier * multiplicand;
  5581. }, 1);
  5582. var multiply_default = multiply;
  5583. // node_modules/lodash-es/negate.js
  5584. var FUNC_ERROR_TEXT9 = "Expected a function";
  5585. function negate(predicate) {
  5586. if (typeof predicate != "function") {
  5587. throw new TypeError(FUNC_ERROR_TEXT9);
  5588. }
  5589. return function() {
  5590. var args = arguments;
  5591. switch (args.length) {
  5592. case 0:
  5593. return !predicate.call(this);
  5594. case 1:
  5595. return !predicate.call(this, args[0]);
  5596. case 2:
  5597. return !predicate.call(this, args[0], args[1]);
  5598. case 3:
  5599. return !predicate.call(this, args[0], args[1], args[2]);
  5600. }
  5601. return !predicate.apply(this, args);
  5602. };
  5603. }
  5604. var negate_default = negate;
  5605. // node_modules/lodash-es/_iteratorToArray.js
  5606. function iteratorToArray(iterator) {
  5607. var data, result2 = [];
  5608. while (!(data = iterator.next()).done) {
  5609. result2.push(data.value);
  5610. }
  5611. return result2;
  5612. }
  5613. var iteratorToArray_default = iteratorToArray;
  5614. // node_modules/lodash-es/toArray.js
  5615. var mapTag9 = "[object Map]";
  5616. var setTag9 = "[object Set]";
  5617. var symIterator = Symbol_default ? Symbol_default.iterator : void 0;
  5618. function toArray(value) {
  5619. if (!value) {
  5620. return [];
  5621. }
  5622. if (isArrayLike_default(value)) {
  5623. return isString_default(value) ? stringToArray_default(value) : copyArray_default(value);
  5624. }
  5625. if (symIterator && value[symIterator]) {
  5626. return iteratorToArray_default(value[symIterator]());
  5627. }
  5628. var tag = getTag_default(value), func = tag == mapTag9 ? mapToArray_default : tag == setTag9 ? setToArray_default : values_default;
  5629. return func(value);
  5630. }
  5631. var toArray_default = toArray;
  5632. // node_modules/lodash-es/next.js
  5633. function wrapperNext() {
  5634. if (this.__values__ === void 0) {
  5635. this.__values__ = toArray_default(this.value());
  5636. }
  5637. var done = this.__index__ >= this.__values__.length, value = done ? void 0 : this.__values__[this.__index__++];
  5638. return { "done": done, "value": value };
  5639. }
  5640. var next_default = wrapperNext;
  5641. // node_modules/lodash-es/_baseNth.js
  5642. function baseNth(array4, n) {
  5643. var length = array4.length;
  5644. if (!length) {
  5645. return;
  5646. }
  5647. n += n < 0 ? length : 0;
  5648. return isIndex_default(n, length) ? array4[n] : void 0;
  5649. }
  5650. var baseNth_default = baseNth;
  5651. // node_modules/lodash-es/nth.js
  5652. function nth(array4, n) {
  5653. return array4 && array4.length ? baseNth_default(array4, toInteger_default(n)) : void 0;
  5654. }
  5655. var nth_default = nth;
  5656. // node_modules/lodash-es/nthArg.js
  5657. function nthArg(n) {
  5658. n = toInteger_default(n);
  5659. return baseRest_default(function(args) {
  5660. return baseNth_default(args, n);
  5661. });
  5662. }
  5663. var nthArg_default = nthArg;
  5664. // node_modules/lodash-es/_baseUnset.js
  5665. function baseUnset(object4, path) {
  5666. path = castPath_default(path, object4);
  5667. object4 = parent_default(object4, path);
  5668. return object4 == null || delete object4[toKey_default(last_default(path))];
  5669. }
  5670. var baseUnset_default = baseUnset;
  5671. // node_modules/lodash-es/_customOmitClone.js
  5672. function customOmitClone(value) {
  5673. return isPlainObject_default(value) ? void 0 : value;
  5674. }
  5675. var customOmitClone_default = customOmitClone;
  5676. // node_modules/lodash-es/omit.js
  5677. var CLONE_DEEP_FLAG8 = 1;
  5678. var CLONE_FLAT_FLAG2 = 2;
  5679. var CLONE_SYMBOLS_FLAG6 = 4;
  5680. var omit = flatRest_default(function(object4, paths) {
  5681. var result2 = {};
  5682. if (object4 == null) {
  5683. return result2;
  5684. }
  5685. var isDeep = false;
  5686. paths = arrayMap_default(paths, function(path) {
  5687. path = castPath_default(path, object4);
  5688. isDeep || (isDeep = path.length > 1);
  5689. return path;
  5690. });
  5691. copyObject_default(object4, getAllKeysIn_default(object4), result2);
  5692. if (isDeep) {
  5693. result2 = baseClone_default(result2, CLONE_DEEP_FLAG8 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG6, customOmitClone_default);
  5694. }
  5695. var length = paths.length;
  5696. while (length--) {
  5697. baseUnset_default(result2, paths[length]);
  5698. }
  5699. return result2;
  5700. });
  5701. var omit_default = omit;
  5702. // node_modules/lodash-es/_baseSet.js
  5703. function baseSet(object4, path, value, customizer) {
  5704. if (!isObject_default(object4)) {
  5705. return object4;
  5706. }
  5707. path = castPath_default(path, object4);
  5708. var index = -1, length = path.length, lastIndex = length - 1, nested = object4;
  5709. while (nested != null && ++index < length) {
  5710. var key = toKey_default(path[index]), newValue = value;
  5711. if (key === "__proto__" || key === "constructor" || key === "prototype") {
  5712. return object4;
  5713. }
  5714. if (index != lastIndex) {
  5715. var objValue = nested[key];
  5716. newValue = customizer ? customizer(objValue, key, nested) : void 0;
  5717. if (newValue === void 0) {
  5718. newValue = isObject_default(objValue) ? objValue : isIndex_default(path[index + 1]) ? [] : {};
  5719. }
  5720. }
  5721. assignValue_default(nested, key, newValue);
  5722. nested = nested[key];
  5723. }
  5724. return object4;
  5725. }
  5726. var baseSet_default = baseSet;
  5727. // node_modules/lodash-es/_basePickBy.js
  5728. function basePickBy(object4, paths, predicate) {
  5729. var index = -1, length = paths.length, result2 = {};
  5730. while (++index < length) {
  5731. var path = paths[index], value = baseGet_default(object4, path);
  5732. if (predicate(value, path)) {
  5733. baseSet_default(result2, castPath_default(path, object4), value);
  5734. }
  5735. }
  5736. return result2;
  5737. }
  5738. var basePickBy_default = basePickBy;
  5739. // node_modules/lodash-es/pickBy.js
  5740. function pickBy(object4, predicate) {
  5741. if (object4 == null) {
  5742. return {};
  5743. }
  5744. var props2 = arrayMap_default(getAllKeysIn_default(object4), function(prop) {
  5745. return [prop];
  5746. });
  5747. predicate = baseIteratee_default(predicate);
  5748. return basePickBy_default(object4, props2, function(value, path) {
  5749. return predicate(value, path[0]);
  5750. });
  5751. }
  5752. var pickBy_default = pickBy;
  5753. // node_modules/lodash-es/omitBy.js
  5754. function omitBy(object4, predicate) {
  5755. return pickBy_default(object4, negate_default(baseIteratee_default(predicate)));
  5756. }
  5757. var omitBy_default = omitBy;
  5758. // node_modules/lodash-es/once.js
  5759. function once(func) {
  5760. return before_default(2, func);
  5761. }
  5762. var once_default = once;
  5763. // node_modules/lodash-es/_baseSortBy.js
  5764. function baseSortBy(array4, comparer) {
  5765. var length = array4.length;
  5766. array4.sort(comparer);
  5767. while (length--) {
  5768. array4[length] = array4[length].value;
  5769. }
  5770. return array4;
  5771. }
  5772. var baseSortBy_default = baseSortBy;
  5773. // node_modules/lodash-es/_compareAscending.js
  5774. function compareAscending(value, other) {
  5775. if (value !== other) {
  5776. var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value);
  5777. var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other);
  5778. if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
  5779. return 1;
  5780. }
  5781. if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
  5782. return -1;
  5783. }
  5784. }
  5785. return 0;
  5786. }
  5787. var compareAscending_default = compareAscending;
  5788. // node_modules/lodash-es/_compareMultiple.js
  5789. function compareMultiple(object4, other, orders) {
  5790. var index = -1, objCriteria = object4.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
  5791. while (++index < length) {
  5792. var result2 = compareAscending_default(objCriteria[index], othCriteria[index]);
  5793. if (result2) {
  5794. if (index >= ordersLength) {
  5795. return result2;
  5796. }
  5797. var order = orders[index];
  5798. return result2 * (order == "desc" ? -1 : 1);
  5799. }
  5800. }
  5801. return object4.index - other.index;
  5802. }
  5803. var compareMultiple_default = compareMultiple;
  5804. // node_modules/lodash-es/_baseOrderBy.js
  5805. function baseOrderBy(collection, iteratees, orders) {
  5806. if (iteratees.length) {
  5807. iteratees = arrayMap_default(iteratees, function(iteratee2) {
  5808. if (isArray_default(iteratee2)) {
  5809. return function(value) {
  5810. return baseGet_default(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2);
  5811. };
  5812. }
  5813. return iteratee2;
  5814. });
  5815. } else {
  5816. iteratees = [identity_default];
  5817. }
  5818. var index = -1;
  5819. iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default));
  5820. var result2 = baseMap_default(collection, function(value, key, collection2) {
  5821. var criteria = arrayMap_default(iteratees, function(iteratee2) {
  5822. return iteratee2(value);
  5823. });
  5824. return { "criteria": criteria, "index": ++index, "value": value };
  5825. });
  5826. return baseSortBy_default(result2, function(object4, other) {
  5827. return compareMultiple_default(object4, other, orders);
  5828. });
  5829. }
  5830. var baseOrderBy_default = baseOrderBy;
  5831. // node_modules/lodash-es/orderBy.js
  5832. function orderBy(collection, iteratees, orders, guard) {
  5833. if (collection == null) {
  5834. return [];
  5835. }
  5836. if (!isArray_default(iteratees)) {
  5837. iteratees = iteratees == null ? [] : [iteratees];
  5838. }
  5839. orders = guard ? void 0 : orders;
  5840. if (!isArray_default(orders)) {
  5841. orders = orders == null ? [] : [orders];
  5842. }
  5843. return baseOrderBy_default(collection, iteratees, orders);
  5844. }
  5845. var orderBy_default = orderBy;
  5846. // node_modules/lodash-es/_createOver.js
  5847. function createOver(arrayFunc) {
  5848. return flatRest_default(function(iteratees) {
  5849. iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default));
  5850. return baseRest_default(function(args) {
  5851. var thisArg = this;
  5852. return arrayFunc(iteratees, function(iteratee2) {
  5853. return apply_default(iteratee2, thisArg, args);
  5854. });
  5855. });
  5856. });
  5857. }
  5858. var createOver_default = createOver;
  5859. // node_modules/lodash-es/over.js
  5860. var over = createOver_default(arrayMap_default);
  5861. var over_default = over;
  5862. // node_modules/lodash-es/_castRest.js
  5863. var castRest = baseRest_default;
  5864. var castRest_default = castRest;
  5865. // node_modules/lodash-es/overArgs.js
  5866. var nativeMin9 = Math.min;
  5867. var overArgs = castRest_default(function(func, transforms) {
  5868. transforms = transforms.length == 1 && isArray_default(transforms[0]) ? arrayMap_default(transforms[0], baseUnary_default(baseIteratee_default)) : arrayMap_default(baseFlatten_default(transforms, 1), baseUnary_default(baseIteratee_default));
  5869. var funcsLength = transforms.length;
  5870. return baseRest_default(function(args) {
  5871. var index = -1, length = nativeMin9(args.length, funcsLength);
  5872. while (++index < length) {
  5873. args[index] = transforms[index].call(this, args[index]);
  5874. }
  5875. return apply_default(func, this, args);
  5876. });
  5877. });
  5878. var overArgs_default = overArgs;
  5879. // node_modules/lodash-es/overEvery.js
  5880. var overEvery = createOver_default(arrayEvery_default);
  5881. var overEvery_default = overEvery;
  5882. // node_modules/lodash-es/overSome.js
  5883. var overSome = createOver_default(arraySome_default);
  5884. var overSome_default = overSome;
  5885. // node_modules/lodash-es/_baseRepeat.js
  5886. var MAX_SAFE_INTEGER4 = 9007199254740991;
  5887. var nativeFloor = Math.floor;
  5888. function baseRepeat(string3, n) {
  5889. var result2 = "";
  5890. if (!string3 || n < 1 || n > MAX_SAFE_INTEGER4) {
  5891. return result2;
  5892. }
  5893. do {
  5894. if (n % 2) {
  5895. result2 += string3;
  5896. }
  5897. n = nativeFloor(n / 2);
  5898. if (n) {
  5899. string3 += string3;
  5900. }
  5901. } while (n);
  5902. return result2;
  5903. }
  5904. var baseRepeat_default = baseRepeat;
  5905. // node_modules/lodash-es/_asciiSize.js
  5906. var asciiSize = baseProperty_default("length");
  5907. var asciiSize_default = asciiSize;
  5908. // node_modules/lodash-es/_unicodeSize.js
  5909. var rsAstralRange4 = "\\ud800-\\udfff";
  5910. var rsComboMarksRange5 = "\\u0300-\\u036f";
  5911. var reComboHalfMarksRange5 = "\\ufe20-\\ufe2f";
  5912. var rsComboSymbolsRange5 = "\\u20d0-\\u20ff";
  5913. var rsComboRange5 = rsComboMarksRange5 + reComboHalfMarksRange5 + rsComboSymbolsRange5;
  5914. var rsVarRange4 = "\\ufe0e\\ufe0f";
  5915. var rsAstral2 = "[" + rsAstralRange4 + "]";
  5916. var rsCombo4 = "[" + rsComboRange5 + "]";
  5917. var rsFitz3 = "\\ud83c[\\udffb-\\udfff]";
  5918. var rsModifier3 = "(?:" + rsCombo4 + "|" + rsFitz3 + ")";
  5919. var rsNonAstral3 = "[^" + rsAstralRange4 + "]";
  5920. var rsRegional3 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
  5921. var rsSurrPair3 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
  5922. var rsZWJ4 = "\\u200d";
  5923. var reOptMod3 = rsModifier3 + "?";
  5924. var rsOptVar3 = "[" + rsVarRange4 + "]?";
  5925. var rsOptJoin3 = "(?:" + rsZWJ4 + "(?:" + [rsNonAstral3, rsRegional3, rsSurrPair3].join("|") + ")" + rsOptVar3 + reOptMod3 + ")*";
  5926. var rsSeq3 = rsOptVar3 + reOptMod3 + rsOptJoin3;
  5927. var rsSymbol2 = "(?:" + [rsNonAstral3 + rsCombo4 + "?", rsCombo4, rsRegional3, rsSurrPair3, rsAstral2].join("|") + ")";
  5928. var reUnicode2 = RegExp(rsFitz3 + "(?=" + rsFitz3 + ")|" + rsSymbol2 + rsSeq3, "g");
  5929. function unicodeSize(string3) {
  5930. var result2 = reUnicode2.lastIndex = 0;
  5931. while (reUnicode2.test(string3)) {
  5932. ++result2;
  5933. }
  5934. return result2;
  5935. }
  5936. var unicodeSize_default = unicodeSize;
  5937. // node_modules/lodash-es/_stringSize.js
  5938. function stringSize(string3) {
  5939. return hasUnicode_default(string3) ? unicodeSize_default(string3) : asciiSize_default(string3);
  5940. }
  5941. var stringSize_default = stringSize;
  5942. // node_modules/lodash-es/_createPadding.js
  5943. var nativeCeil2 = Math.ceil;
  5944. function createPadding(length, chars) {
  5945. chars = chars === void 0 ? " " : baseToString_default(chars);
  5946. var charsLength = chars.length;
  5947. if (charsLength < 2) {
  5948. return charsLength ? baseRepeat_default(chars, length) : chars;
  5949. }
  5950. var result2 = baseRepeat_default(chars, nativeCeil2(length / stringSize_default(chars)));
  5951. return hasUnicode_default(chars) ? castSlice_default(stringToArray_default(result2), 0, length).join("") : result2.slice(0, length);
  5952. }
  5953. var createPadding_default = createPadding;
  5954. // node_modules/lodash-es/pad.js
  5955. var nativeCeil3 = Math.ceil;
  5956. var nativeFloor2 = Math.floor;
  5957. function pad(string3, length, chars) {
  5958. string3 = toString_default(string3);
  5959. length = toInteger_default(length);
  5960. var strLength = length ? stringSize_default(string3) : 0;
  5961. if (!length || strLength >= length) {
  5962. return string3;
  5963. }
  5964. var mid = (length - strLength) / 2;
  5965. return createPadding_default(nativeFloor2(mid), chars) + string3 + createPadding_default(nativeCeil3(mid), chars);
  5966. }
  5967. var pad_default = pad;
  5968. // node_modules/lodash-es/padEnd.js
  5969. function padEnd(string3, length, chars) {
  5970. string3 = toString_default(string3);
  5971. length = toInteger_default(length);
  5972. var strLength = length ? stringSize_default(string3) : 0;
  5973. return length && strLength < length ? string3 + createPadding_default(length - strLength, chars) : string3;
  5974. }
  5975. var padEnd_default = padEnd;
  5976. // node_modules/lodash-es/padStart.js
  5977. function padStart(string3, length, chars) {
  5978. string3 = toString_default(string3);
  5979. length = toInteger_default(length);
  5980. var strLength = length ? stringSize_default(string3) : 0;
  5981. return length && strLength < length ? createPadding_default(length - strLength, chars) + string3 : string3;
  5982. }
  5983. var padStart_default = padStart;
  5984. // node_modules/lodash-es/parseInt.js
  5985. var reTrimStart2 = /^\s+/;
  5986. var nativeParseInt = root_default.parseInt;
  5987. function parseInt2(string3, radix, guard) {
  5988. if (guard || radix == null) {
  5989. radix = 0;
  5990. } else if (radix) {
  5991. radix = +radix;
  5992. }
  5993. return nativeParseInt(toString_default(string3).replace(reTrimStart2, ""), radix || 0);
  5994. }
  5995. var parseInt_default = parseInt2;
  5996. // node_modules/lodash-es/partial.js
  5997. var WRAP_PARTIAL_FLAG7 = 32;
  5998. var partial = baseRest_default(function(func, partials) {
  5999. var holders = replaceHolders_default(partials, getHolder_default(partial));
  6000. return createWrap_default(func, WRAP_PARTIAL_FLAG7, void 0, partials, holders);
  6001. });
  6002. partial.placeholder = {};
  6003. var partial_default = partial;
  6004. // node_modules/lodash-es/partialRight.js
  6005. var WRAP_PARTIAL_RIGHT_FLAG4 = 64;
  6006. var partialRight = baseRest_default(function(func, partials) {
  6007. var holders = replaceHolders_default(partials, getHolder_default(partialRight));
  6008. return createWrap_default(func, WRAP_PARTIAL_RIGHT_FLAG4, void 0, partials, holders);
  6009. });
  6010. partialRight.placeholder = {};
  6011. var partialRight_default = partialRight;
  6012. // node_modules/lodash-es/partition.js
  6013. var partition = createAggregator_default(function(result2, value, key) {
  6014. result2[key ? 0 : 1].push(value);
  6015. }, function() {
  6016. return [[], []];
  6017. });
  6018. var partition_default = partition;
  6019. // node_modules/lodash-es/_basePick.js
  6020. function basePick(object4, paths) {
  6021. return basePickBy_default(object4, paths, function(value, path) {
  6022. return hasIn_default(object4, path);
  6023. });
  6024. }
  6025. var basePick_default = basePick;
  6026. // node_modules/lodash-es/pick.js
  6027. var pick = flatRest_default(function(object4, paths) {
  6028. return object4 == null ? {} : basePick_default(object4, paths);
  6029. });
  6030. var pick_default = pick;
  6031. // node_modules/lodash-es/plant.js
  6032. function wrapperPlant(value) {
  6033. var result2, parent2 = this;
  6034. while (parent2 instanceof baseLodash_default) {
  6035. var clone2 = wrapperClone_default(parent2);
  6036. clone2.__index__ = 0;
  6037. clone2.__values__ = void 0;
  6038. if (result2) {
  6039. previous.__wrapped__ = clone2;
  6040. } else {
  6041. result2 = clone2;
  6042. }
  6043. var previous = clone2;
  6044. parent2 = parent2.__wrapped__;
  6045. }
  6046. previous.__wrapped__ = value;
  6047. return result2;
  6048. }
  6049. var plant_default = wrapperPlant;
  6050. // node_modules/lodash-es/propertyOf.js
  6051. function propertyOf(object4) {
  6052. return function(path) {
  6053. return object4 == null ? void 0 : baseGet_default(object4, path);
  6054. };
  6055. }
  6056. var propertyOf_default = propertyOf;
  6057. // node_modules/lodash-es/_baseIndexOfWith.js
  6058. function baseIndexOfWith(array4, value, fromIndex, comparator) {
  6059. var index = fromIndex - 1, length = array4.length;
  6060. while (++index < length) {
  6061. if (comparator(array4[index], value)) {
  6062. return index;
  6063. }
  6064. }
  6065. return -1;
  6066. }
  6067. var baseIndexOfWith_default = baseIndexOfWith;
  6068. // node_modules/lodash-es/_basePullAll.js
  6069. var arrayProto3 = Array.prototype;
  6070. var splice2 = arrayProto3.splice;
  6071. function basePullAll(array4, values2, iteratee2, comparator) {
  6072. var indexOf2 = comparator ? baseIndexOfWith_default : baseIndexOf_default, index = -1, length = values2.length, seen = array4;
  6073. if (array4 === values2) {
  6074. values2 = copyArray_default(values2);
  6075. }
  6076. if (iteratee2) {
  6077. seen = arrayMap_default(array4, baseUnary_default(iteratee2));
  6078. }
  6079. while (++index < length) {
  6080. var fromIndex = 0, value = values2[index], computed2 = iteratee2 ? iteratee2(value) : value;
  6081. while ((fromIndex = indexOf2(seen, computed2, fromIndex, comparator)) > -1) {
  6082. if (seen !== array4) {
  6083. splice2.call(seen, fromIndex, 1);
  6084. }
  6085. splice2.call(array4, fromIndex, 1);
  6086. }
  6087. }
  6088. return array4;
  6089. }
  6090. var basePullAll_default = basePullAll;
  6091. // node_modules/lodash-es/pullAll.js
  6092. function pullAll(array4, values2) {
  6093. return array4 && array4.length && values2 && values2.length ? basePullAll_default(array4, values2) : array4;
  6094. }
  6095. var pullAll_default = pullAll;
  6096. // node_modules/lodash-es/pull.js
  6097. var pull = baseRest_default(pullAll_default);
  6098. var pull_default = pull;
  6099. // node_modules/lodash-es/pullAllBy.js
  6100. function pullAllBy(array4, values2, iteratee2) {
  6101. return array4 && array4.length && values2 && values2.length ? basePullAll_default(array4, values2, baseIteratee_default(iteratee2, 2)) : array4;
  6102. }
  6103. var pullAllBy_default = pullAllBy;
  6104. // node_modules/lodash-es/pullAllWith.js
  6105. function pullAllWith(array4, values2, comparator) {
  6106. return array4 && array4.length && values2 && values2.length ? basePullAll_default(array4, values2, void 0, comparator) : array4;
  6107. }
  6108. var pullAllWith_default = pullAllWith;
  6109. // node_modules/lodash-es/_basePullAt.js
  6110. var arrayProto4 = Array.prototype;
  6111. var splice3 = arrayProto4.splice;
  6112. function basePullAt(array4, indexes) {
  6113. var length = array4 ? indexes.length : 0, lastIndex = length - 1;
  6114. while (length--) {
  6115. var index = indexes[length];
  6116. if (length == lastIndex || index !== previous) {
  6117. var previous = index;
  6118. if (isIndex_default(index)) {
  6119. splice3.call(array4, index, 1);
  6120. } else {
  6121. baseUnset_default(array4, index);
  6122. }
  6123. }
  6124. }
  6125. return array4;
  6126. }
  6127. var basePullAt_default = basePullAt;
  6128. // node_modules/lodash-es/pullAt.js
  6129. var pullAt = flatRest_default(function(array4, indexes) {
  6130. var length = array4 == null ? 0 : array4.length, result2 = baseAt_default(array4, indexes);
  6131. basePullAt_default(array4, arrayMap_default(indexes, function(index) {
  6132. return isIndex_default(index, length) ? +index : index;
  6133. }).sort(compareAscending_default));
  6134. return result2;
  6135. });
  6136. var pullAt_default = pullAt;
  6137. // node_modules/lodash-es/_baseRandom.js
  6138. var nativeFloor3 = Math.floor;
  6139. var nativeRandom = Math.random;
  6140. function baseRandom(lower, upper) {
  6141. return lower + nativeFloor3(nativeRandom() * (upper - lower + 1));
  6142. }
  6143. var baseRandom_default = baseRandom;
  6144. // node_modules/lodash-es/random.js
  6145. var freeParseFloat = parseFloat;
  6146. var nativeMin10 = Math.min;
  6147. var nativeRandom2 = Math.random;
  6148. function random(lower, upper, floating) {
  6149. if (floating && typeof floating != "boolean" && isIterateeCall_default(lower, upper, floating)) {
  6150. upper = floating = void 0;
  6151. }
  6152. if (floating === void 0) {
  6153. if (typeof upper == "boolean") {
  6154. floating = upper;
  6155. upper = void 0;
  6156. } else if (typeof lower == "boolean") {
  6157. floating = lower;
  6158. lower = void 0;
  6159. }
  6160. }
  6161. if (lower === void 0 && upper === void 0) {
  6162. lower = 0;
  6163. upper = 1;
  6164. } else {
  6165. lower = toFinite_default(lower);
  6166. if (upper === void 0) {
  6167. upper = lower;
  6168. lower = 0;
  6169. } else {
  6170. upper = toFinite_default(upper);
  6171. }
  6172. }
  6173. if (lower > upper) {
  6174. var temp = lower;
  6175. lower = upper;
  6176. upper = temp;
  6177. }
  6178. if (floating || lower % 1 || upper % 1) {
  6179. var rand = nativeRandom2();
  6180. return nativeMin10(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper);
  6181. }
  6182. return baseRandom_default(lower, upper);
  6183. }
  6184. var random_default = random;
  6185. // node_modules/lodash-es/_baseRange.js
  6186. var nativeCeil4 = Math.ceil;
  6187. var nativeMax13 = Math.max;
  6188. function baseRange(start, end, step2, fromRight) {
  6189. var index = -1, length = nativeMax13(nativeCeil4((end - start) / (step2 || 1)), 0), result2 = Array(length);
  6190. while (length--) {
  6191. result2[fromRight ? length : ++index] = start;
  6192. start += step2;
  6193. }
  6194. return result2;
  6195. }
  6196. var baseRange_default = baseRange;
  6197. // node_modules/lodash-es/_createRange.js
  6198. function createRange(fromRight) {
  6199. return function(start, end, step2) {
  6200. if (step2 && typeof step2 != "number" && isIterateeCall_default(start, end, step2)) {
  6201. end = step2 = void 0;
  6202. }
  6203. start = toFinite_default(start);
  6204. if (end === void 0) {
  6205. end = start;
  6206. start = 0;
  6207. } else {
  6208. end = toFinite_default(end);
  6209. }
  6210. step2 = step2 === void 0 ? start < end ? 1 : -1 : toFinite_default(step2);
  6211. return baseRange_default(start, end, step2, fromRight);
  6212. };
  6213. }
  6214. var createRange_default = createRange;
  6215. // node_modules/lodash-es/range.js
  6216. var range = createRange_default();
  6217. var range_default = range;
  6218. // node_modules/lodash-es/rangeRight.js
  6219. var rangeRight = createRange_default(true);
  6220. var rangeRight_default = rangeRight;
  6221. // node_modules/lodash-es/rearg.js
  6222. var WRAP_REARG_FLAG4 = 256;
  6223. var rearg = flatRest_default(function(func, indexes) {
  6224. return createWrap_default(func, WRAP_REARG_FLAG4, void 0, void 0, void 0, indexes);
  6225. });
  6226. var rearg_default = rearg;
  6227. // node_modules/lodash-es/_baseReduce.js
  6228. function baseReduce(collection, iteratee2, accumulator, initAccum, eachFunc) {
  6229. eachFunc(collection, function(value, index, collection2) {
  6230. accumulator = initAccum ? (initAccum = false, value) : iteratee2(accumulator, value, index, collection2);
  6231. });
  6232. return accumulator;
  6233. }
  6234. var baseReduce_default = baseReduce;
  6235. // node_modules/lodash-es/reduce.js
  6236. function reduce(collection, iteratee2, accumulator) {
  6237. var func = isArray_default(collection) ? arrayReduce_default : baseReduce_default, initAccum = arguments.length < 3;
  6238. return func(collection, baseIteratee_default(iteratee2, 4), accumulator, initAccum, baseEach_default);
  6239. }
  6240. var reduce_default = reduce;
  6241. // node_modules/lodash-es/_arrayReduceRight.js
  6242. function arrayReduceRight(array4, iteratee2, accumulator, initAccum) {
  6243. var length = array4 == null ? 0 : array4.length;
  6244. if (initAccum && length) {
  6245. accumulator = array4[--length];
  6246. }
  6247. while (length--) {
  6248. accumulator = iteratee2(accumulator, array4[length], length, array4);
  6249. }
  6250. return accumulator;
  6251. }
  6252. var arrayReduceRight_default = arrayReduceRight;
  6253. // node_modules/lodash-es/reduceRight.js
  6254. function reduceRight(collection, iteratee2, accumulator) {
  6255. var func = isArray_default(collection) ? arrayReduceRight_default : baseReduce_default, initAccum = arguments.length < 3;
  6256. return func(collection, baseIteratee_default(iteratee2, 4), accumulator, initAccum, baseEachRight_default);
  6257. }
  6258. var reduceRight_default = reduceRight;
  6259. // node_modules/lodash-es/reject.js
  6260. function reject(collection, predicate) {
  6261. var func = isArray_default(collection) ? arrayFilter_default : baseFilter_default;
  6262. return func(collection, negate_default(baseIteratee_default(predicate, 3)));
  6263. }
  6264. var reject_default = reject;
  6265. // node_modules/lodash-es/remove.js
  6266. function remove(array4, predicate) {
  6267. var result2 = [];
  6268. if (!(array4 && array4.length)) {
  6269. return result2;
  6270. }
  6271. var index = -1, indexes = [], length = array4.length;
  6272. predicate = baseIteratee_default(predicate, 3);
  6273. while (++index < length) {
  6274. var value = array4[index];
  6275. if (predicate(value, index, array4)) {
  6276. result2.push(value);
  6277. indexes.push(index);
  6278. }
  6279. }
  6280. basePullAt_default(array4, indexes);
  6281. return result2;
  6282. }
  6283. var remove_default = remove;
  6284. // node_modules/lodash-es/repeat.js
  6285. function repeat(string3, n, guard) {
  6286. if (guard ? isIterateeCall_default(string3, n, guard) : n === void 0) {
  6287. n = 1;
  6288. } else {
  6289. n = toInteger_default(n);
  6290. }
  6291. return baseRepeat_default(toString_default(string3), n);
  6292. }
  6293. var repeat_default = repeat;
  6294. // node_modules/lodash-es/replace.js
  6295. function replace() {
  6296. var args = arguments, string3 = toString_default(args[0]);
  6297. return args.length < 3 ? string3 : string3.replace(args[1], args[2]);
  6298. }
  6299. var replace_default = replace;
  6300. // node_modules/lodash-es/rest.js
  6301. var FUNC_ERROR_TEXT10 = "Expected a function";
  6302. function rest(func, start) {
  6303. if (typeof func != "function") {
  6304. throw new TypeError(FUNC_ERROR_TEXT10);
  6305. }
  6306. start = start === void 0 ? start : toInteger_default(start);
  6307. return baseRest_default(func, start);
  6308. }
  6309. var rest_default = rest;
  6310. // node_modules/lodash-es/result.js
  6311. function result(object4, path, defaultValue) {
  6312. path = castPath_default(path, object4);
  6313. var index = -1, length = path.length;
  6314. if (!length) {
  6315. length = 1;
  6316. object4 = void 0;
  6317. }
  6318. while (++index < length) {
  6319. var value = object4 == null ? void 0 : object4[toKey_default(path[index])];
  6320. if (value === void 0) {
  6321. index = length;
  6322. value = defaultValue;
  6323. }
  6324. object4 = isFunction_default(value) ? value.call(object4) : value;
  6325. }
  6326. return object4;
  6327. }
  6328. var result_default = result;
  6329. // node_modules/lodash-es/reverse.js
  6330. var arrayProto5 = Array.prototype;
  6331. var nativeReverse = arrayProto5.reverse;
  6332. function reverse(array4) {
  6333. return array4 == null ? array4 : nativeReverse.call(array4);
  6334. }
  6335. var reverse_default = reverse;
  6336. // node_modules/lodash-es/round.js
  6337. var round = createRound_default("round");
  6338. var round_default = round;
  6339. // node_modules/lodash-es/_arraySample.js
  6340. function arraySample(array4) {
  6341. var length = array4.length;
  6342. return length ? array4[baseRandom_default(0, length - 1)] : void 0;
  6343. }
  6344. var arraySample_default = arraySample;
  6345. // node_modules/lodash-es/_baseSample.js
  6346. function baseSample(collection) {
  6347. return arraySample_default(values_default(collection));
  6348. }
  6349. var baseSample_default = baseSample;
  6350. // node_modules/lodash-es/sample.js
  6351. function sample(collection) {
  6352. var func = isArray_default(collection) ? arraySample_default : baseSample_default;
  6353. return func(collection);
  6354. }
  6355. var sample_default = sample;
  6356. // node_modules/lodash-es/_shuffleSelf.js
  6357. function shuffleSelf(array4, size3) {
  6358. var index = -1, length = array4.length, lastIndex = length - 1;
  6359. size3 = size3 === void 0 ? length : size3;
  6360. while (++index < size3) {
  6361. var rand = baseRandom_default(index, lastIndex), value = array4[rand];
  6362. array4[rand] = array4[index];
  6363. array4[index] = value;
  6364. }
  6365. array4.length = size3;
  6366. return array4;
  6367. }
  6368. var shuffleSelf_default = shuffleSelf;
  6369. // node_modules/lodash-es/_arraySampleSize.js
  6370. function arraySampleSize(array4, n) {
  6371. return shuffleSelf_default(copyArray_default(array4), baseClamp_default(n, 0, array4.length));
  6372. }
  6373. var arraySampleSize_default = arraySampleSize;
  6374. // node_modules/lodash-es/_baseSampleSize.js
  6375. function baseSampleSize(collection, n) {
  6376. var array4 = values_default(collection);
  6377. return shuffleSelf_default(array4, baseClamp_default(n, 0, array4.length));
  6378. }
  6379. var baseSampleSize_default = baseSampleSize;
  6380. // node_modules/lodash-es/sampleSize.js
  6381. function sampleSize(collection, n, guard) {
  6382. if (guard ? isIterateeCall_default(collection, n, guard) : n === void 0) {
  6383. n = 1;
  6384. } else {
  6385. n = toInteger_default(n);
  6386. }
  6387. var func = isArray_default(collection) ? arraySampleSize_default : baseSampleSize_default;
  6388. return func(collection, n);
  6389. }
  6390. var sampleSize_default = sampleSize;
  6391. // node_modules/lodash-es/set.js
  6392. function set(object4, path, value) {
  6393. return object4 == null ? object4 : baseSet_default(object4, path, value);
  6394. }
  6395. var set_default = set;
  6396. // node_modules/lodash-es/setWith.js
  6397. function setWith(object4, path, value, customizer) {
  6398. customizer = typeof customizer == "function" ? customizer : void 0;
  6399. return object4 == null ? object4 : baseSet_default(object4, path, value, customizer);
  6400. }
  6401. var setWith_default = setWith;
  6402. // node_modules/lodash-es/_arrayShuffle.js
  6403. function arrayShuffle(array4) {
  6404. return shuffleSelf_default(copyArray_default(array4));
  6405. }
  6406. var arrayShuffle_default = arrayShuffle;
  6407. // node_modules/lodash-es/_baseShuffle.js
  6408. function baseShuffle(collection) {
  6409. return shuffleSelf_default(values_default(collection));
  6410. }
  6411. var baseShuffle_default = baseShuffle;
  6412. // node_modules/lodash-es/shuffle.js
  6413. function shuffle(collection) {
  6414. var func = isArray_default(collection) ? arrayShuffle_default : baseShuffle_default;
  6415. return func(collection);
  6416. }
  6417. var shuffle_default = shuffle;
  6418. // node_modules/lodash-es/size.js
  6419. var mapTag10 = "[object Map]";
  6420. var setTag10 = "[object Set]";
  6421. function size(collection) {
  6422. if (collection == null) {
  6423. return 0;
  6424. }
  6425. if (isArrayLike_default(collection)) {
  6426. return isString_default(collection) ? stringSize_default(collection) : collection.length;
  6427. }
  6428. var tag = getTag_default(collection);
  6429. if (tag == mapTag10 || tag == setTag10) {
  6430. return collection.size;
  6431. }
  6432. return baseKeys_default(collection).length;
  6433. }
  6434. var size_default = size;
  6435. // node_modules/lodash-es/slice.js
  6436. function slice(array4, start, end) {
  6437. var length = array4 == null ? 0 : array4.length;
  6438. if (!length) {
  6439. return [];
  6440. }
  6441. if (end && typeof end != "number" && isIterateeCall_default(array4, start, end)) {
  6442. start = 0;
  6443. end = length;
  6444. } else {
  6445. start = start == null ? 0 : toInteger_default(start);
  6446. end = end === void 0 ? length : toInteger_default(end);
  6447. }
  6448. return baseSlice_default(array4, start, end);
  6449. }
  6450. var slice_default = slice;
  6451. // node_modules/lodash-es/snakeCase.js
  6452. var snakeCase = createCompounder_default(function(result2, word, index) {
  6453. return result2 + (index ? "_" : "") + word.toLowerCase();
  6454. });
  6455. var snakeCase_default = snakeCase;
  6456. // node_modules/lodash-es/_baseSome.js
  6457. function baseSome(collection, predicate) {
  6458. var result2;
  6459. baseEach_default(collection, function(value, index, collection2) {
  6460. result2 = predicate(value, index, collection2);
  6461. return !result2;
  6462. });
  6463. return !!result2;
  6464. }
  6465. var baseSome_default = baseSome;
  6466. // node_modules/lodash-es/some.js
  6467. function some(collection, predicate, guard) {
  6468. var func = isArray_default(collection) ? arraySome_default : baseSome_default;
  6469. if (guard && isIterateeCall_default(collection, predicate, guard)) {
  6470. predicate = void 0;
  6471. }
  6472. return func(collection, baseIteratee_default(predicate, 3));
  6473. }
  6474. var some_default = some;
  6475. // node_modules/lodash-es/sortBy.js
  6476. var sortBy = baseRest_default(function(collection, iteratees) {
  6477. if (collection == null) {
  6478. return [];
  6479. }
  6480. var length = iteratees.length;
  6481. if (length > 1 && isIterateeCall_default(collection, iteratees[0], iteratees[1])) {
  6482. iteratees = [];
  6483. } else if (length > 2 && isIterateeCall_default(iteratees[0], iteratees[1], iteratees[2])) {
  6484. iteratees = [iteratees[0]];
  6485. }
  6486. return baseOrderBy_default(collection, baseFlatten_default(iteratees, 1), []);
  6487. });
  6488. var sortBy_default = sortBy;
  6489. // node_modules/lodash-es/_baseSortedIndexBy.js
  6490. var MAX_ARRAY_LENGTH3 = 4294967295;
  6491. var MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH3 - 1;
  6492. var nativeFloor4 = Math.floor;
  6493. var nativeMin11 = Math.min;
  6494. function baseSortedIndexBy(array4, value, iteratee2, retHighest) {
  6495. var low = 0, high = array4 == null ? 0 : array4.length;
  6496. if (high === 0) {
  6497. return 0;
  6498. }
  6499. value = iteratee2(value);
  6500. var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol_default(value), valIsUndefined = value === void 0;
  6501. while (low < high) {
  6502. var mid = nativeFloor4((low + high) / 2), computed2 = iteratee2(array4[mid]), othIsDefined = computed2 !== void 0, othIsNull = computed2 === null, othIsReflexive = computed2 === computed2, othIsSymbol = isSymbol_default(computed2);
  6503. if (valIsNaN) {
  6504. var setLow = retHighest || othIsReflexive;
  6505. } else if (valIsUndefined) {
  6506. setLow = othIsReflexive && (retHighest || othIsDefined);
  6507. } else if (valIsNull) {
  6508. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  6509. } else if (valIsSymbol) {
  6510. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  6511. } else if (othIsNull || othIsSymbol) {
  6512. setLow = false;
  6513. } else {
  6514. setLow = retHighest ? computed2 <= value : computed2 < value;
  6515. }
  6516. if (setLow) {
  6517. low = mid + 1;
  6518. } else {
  6519. high = mid;
  6520. }
  6521. }
  6522. return nativeMin11(high, MAX_ARRAY_INDEX);
  6523. }
  6524. var baseSortedIndexBy_default = baseSortedIndexBy;
  6525. // node_modules/lodash-es/_baseSortedIndex.js
  6526. var MAX_ARRAY_LENGTH4 = 4294967295;
  6527. var HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH4 >>> 1;
  6528. function baseSortedIndex(array4, value, retHighest) {
  6529. var low = 0, high = array4 == null ? low : array4.length;
  6530. if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  6531. while (low < high) {
  6532. var mid = low + high >>> 1, computed2 = array4[mid];
  6533. if (computed2 !== null && !isSymbol_default(computed2) && (retHighest ? computed2 <= value : computed2 < value)) {
  6534. low = mid + 1;
  6535. } else {
  6536. high = mid;
  6537. }
  6538. }
  6539. return high;
  6540. }
  6541. return baseSortedIndexBy_default(array4, value, identity_default, retHighest);
  6542. }
  6543. var baseSortedIndex_default = baseSortedIndex;
  6544. // node_modules/lodash-es/sortedIndex.js
  6545. function sortedIndex(array4, value) {
  6546. return baseSortedIndex_default(array4, value);
  6547. }
  6548. var sortedIndex_default = sortedIndex;
  6549. // node_modules/lodash-es/sortedIndexBy.js
  6550. function sortedIndexBy(array4, value, iteratee2) {
  6551. return baseSortedIndexBy_default(array4, value, baseIteratee_default(iteratee2, 2));
  6552. }
  6553. var sortedIndexBy_default = sortedIndexBy;
  6554. // node_modules/lodash-es/sortedIndexOf.js
  6555. function sortedIndexOf(array4, value) {
  6556. var length = array4 == null ? 0 : array4.length;
  6557. if (length) {
  6558. var index = baseSortedIndex_default(array4, value);
  6559. if (index < length && eq_default(array4[index], value)) {
  6560. return index;
  6561. }
  6562. }
  6563. return -1;
  6564. }
  6565. var sortedIndexOf_default = sortedIndexOf;
  6566. // node_modules/lodash-es/sortedLastIndex.js
  6567. function sortedLastIndex(array4, value) {
  6568. return baseSortedIndex_default(array4, value, true);
  6569. }
  6570. var sortedLastIndex_default = sortedLastIndex;
  6571. // node_modules/lodash-es/sortedLastIndexBy.js
  6572. function sortedLastIndexBy(array4, value, iteratee2) {
  6573. return baseSortedIndexBy_default(array4, value, baseIteratee_default(iteratee2, 2), true);
  6574. }
  6575. var sortedLastIndexBy_default = sortedLastIndexBy;
  6576. // node_modules/lodash-es/sortedLastIndexOf.js
  6577. function sortedLastIndexOf(array4, value) {
  6578. var length = array4 == null ? 0 : array4.length;
  6579. if (length) {
  6580. var index = baseSortedIndex_default(array4, value, true) - 1;
  6581. if (eq_default(array4[index], value)) {
  6582. return index;
  6583. }
  6584. }
  6585. return -1;
  6586. }
  6587. var sortedLastIndexOf_default = sortedLastIndexOf;
  6588. // node_modules/lodash-es/_baseSortedUniq.js
  6589. function baseSortedUniq(array4, iteratee2) {
  6590. var index = -1, length = array4.length, resIndex = 0, result2 = [];
  6591. while (++index < length) {
  6592. var value = array4[index], computed2 = iteratee2 ? iteratee2(value) : value;
  6593. if (!index || !eq_default(computed2, seen)) {
  6594. var seen = computed2;
  6595. result2[resIndex++] = value === 0 ? 0 : value;
  6596. }
  6597. }
  6598. return result2;
  6599. }
  6600. var baseSortedUniq_default = baseSortedUniq;
  6601. // node_modules/lodash-es/sortedUniq.js
  6602. function sortedUniq(array4) {
  6603. return array4 && array4.length ? baseSortedUniq_default(array4) : [];
  6604. }
  6605. var sortedUniq_default = sortedUniq;
  6606. // node_modules/lodash-es/sortedUniqBy.js
  6607. function sortedUniqBy(array4, iteratee2) {
  6608. return array4 && array4.length ? baseSortedUniq_default(array4, baseIteratee_default(iteratee2, 2)) : [];
  6609. }
  6610. var sortedUniqBy_default = sortedUniqBy;
  6611. // node_modules/lodash-es/split.js
  6612. var MAX_ARRAY_LENGTH5 = 4294967295;
  6613. function split(string3, separator, limit) {
  6614. if (limit && typeof limit != "number" && isIterateeCall_default(string3, separator, limit)) {
  6615. separator = limit = void 0;
  6616. }
  6617. limit = limit === void 0 ? MAX_ARRAY_LENGTH5 : limit >>> 0;
  6618. if (!limit) {
  6619. return [];
  6620. }
  6621. string3 = toString_default(string3);
  6622. if (string3 && (typeof separator == "string" || separator != null && !isRegExp_default(separator))) {
  6623. separator = baseToString_default(separator);
  6624. if (!separator && hasUnicode_default(string3)) {
  6625. return castSlice_default(stringToArray_default(string3), 0, limit);
  6626. }
  6627. }
  6628. return string3.split(separator, limit);
  6629. }
  6630. var split_default = split;
  6631. // node_modules/lodash-es/spread.js
  6632. var FUNC_ERROR_TEXT11 = "Expected a function";
  6633. var nativeMax14 = Math.max;
  6634. function spread(func, start) {
  6635. if (typeof func != "function") {
  6636. throw new TypeError(FUNC_ERROR_TEXT11);
  6637. }
  6638. start = start == null ? 0 : nativeMax14(toInteger_default(start), 0);
  6639. return baseRest_default(function(args) {
  6640. var array4 = args[start], otherArgs = castSlice_default(args, 0, start);
  6641. if (array4) {
  6642. arrayPush_default(otherArgs, array4);
  6643. }
  6644. return apply_default(func, this, otherArgs);
  6645. });
  6646. }
  6647. var spread_default = spread;
  6648. // node_modules/lodash-es/startCase.js
  6649. var startCase = createCompounder_default(function(result2, word, index) {
  6650. return result2 + (index ? " " : "") + upperFirst_default(word);
  6651. });
  6652. var startCase_default = startCase;
  6653. // node_modules/lodash-es/startsWith.js
  6654. function startsWith(string3, target2, position) {
  6655. string3 = toString_default(string3);
  6656. position = position == null ? 0 : baseClamp_default(toInteger_default(position), 0, string3.length);
  6657. target2 = baseToString_default(target2);
  6658. return string3.slice(position, position + target2.length) == target2;
  6659. }
  6660. var startsWith_default = startsWith;
  6661. // node_modules/lodash-es/stubObject.js
  6662. function stubObject() {
  6663. return {};
  6664. }
  6665. var stubObject_default = stubObject;
  6666. // node_modules/lodash-es/stubString.js
  6667. function stubString() {
  6668. return "";
  6669. }
  6670. var stubString_default = stubString;
  6671. // node_modules/lodash-es/stubTrue.js
  6672. function stubTrue() {
  6673. return true;
  6674. }
  6675. var stubTrue_default = stubTrue;
  6676. // node_modules/lodash-es/subtract.js
  6677. var subtract = createMathOperation_default(function(minuend, subtrahend) {
  6678. return minuend - subtrahend;
  6679. }, 0);
  6680. var subtract_default = subtract;
  6681. // node_modules/lodash-es/sum.js
  6682. function sum(array4) {
  6683. return array4 && array4.length ? baseSum_default(array4, identity_default) : 0;
  6684. }
  6685. var sum_default = sum;
  6686. // node_modules/lodash-es/sumBy.js
  6687. function sumBy(array4, iteratee2) {
  6688. return array4 && array4.length ? baseSum_default(array4, baseIteratee_default(iteratee2, 2)) : 0;
  6689. }
  6690. var sumBy_default = sumBy;
  6691. // node_modules/lodash-es/tail.js
  6692. function tail(array4) {
  6693. var length = array4 == null ? 0 : array4.length;
  6694. return length ? baseSlice_default(array4, 1, length) : [];
  6695. }
  6696. var tail_default = tail;
  6697. // node_modules/lodash-es/take.js
  6698. function take(array4, n, guard) {
  6699. if (!(array4 && array4.length)) {
  6700. return [];
  6701. }
  6702. n = guard || n === void 0 ? 1 : toInteger_default(n);
  6703. return baseSlice_default(array4, 0, n < 0 ? 0 : n);
  6704. }
  6705. var take_default = take;
  6706. // node_modules/lodash-es/takeRight.js
  6707. function takeRight(array4, n, guard) {
  6708. var length = array4 == null ? 0 : array4.length;
  6709. if (!length) {
  6710. return [];
  6711. }
  6712. n = guard || n === void 0 ? 1 : toInteger_default(n);
  6713. n = length - n;
  6714. return baseSlice_default(array4, n < 0 ? 0 : n, length);
  6715. }
  6716. var takeRight_default = takeRight;
  6717. // node_modules/lodash-es/takeRightWhile.js
  6718. function takeRightWhile(array4, predicate) {
  6719. return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3), false, true) : [];
  6720. }
  6721. var takeRightWhile_default = takeRightWhile;
  6722. // node_modules/lodash-es/takeWhile.js
  6723. function takeWhile(array4, predicate) {
  6724. return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3)) : [];
  6725. }
  6726. var takeWhile_default = takeWhile;
  6727. // node_modules/lodash-es/tap.js
  6728. function tap(value, interceptor) {
  6729. interceptor(value);
  6730. return value;
  6731. }
  6732. var tap_default = tap;
  6733. // node_modules/lodash-es/_customDefaultsAssignIn.js
  6734. var objectProto27 = Object.prototype;
  6735. var hasOwnProperty23 = objectProto27.hasOwnProperty;
  6736. function customDefaultsAssignIn(objValue, srcValue, key, object4) {
  6737. if (objValue === void 0 || eq_default(objValue, objectProto27[key]) && !hasOwnProperty23.call(object4, key)) {
  6738. return srcValue;
  6739. }
  6740. return objValue;
  6741. }
  6742. var customDefaultsAssignIn_default = customDefaultsAssignIn;
  6743. // node_modules/lodash-es/_escapeStringChar.js
  6744. var stringEscapes = {
  6745. "\\": "\\",
  6746. "'": "'",
  6747. "\n": "n",
  6748. "\r": "r",
  6749. "\u2028": "u2028",
  6750. "\u2029": "u2029"
  6751. };
  6752. function escapeStringChar(chr) {
  6753. return "\\" + stringEscapes[chr];
  6754. }
  6755. var escapeStringChar_default = escapeStringChar;
  6756. // node_modules/lodash-es/_reInterpolate.js
  6757. var reInterpolate = /<%=([\s\S]+?)%>/g;
  6758. var reInterpolate_default = reInterpolate;
  6759. // node_modules/lodash-es/_reEscape.js
  6760. var reEscape = /<%-([\s\S]+?)%>/g;
  6761. var reEscape_default = reEscape;
  6762. // node_modules/lodash-es/_reEvaluate.js
  6763. var reEvaluate = /<%([\s\S]+?)%>/g;
  6764. var reEvaluate_default = reEvaluate;
  6765. // node_modules/lodash-es/templateSettings.js
  6766. var templateSettings = {
  6767. /**
  6768. * Used to detect `data` property values to be HTML-escaped.
  6769. *
  6770. * @memberOf _.templateSettings
  6771. * @type {RegExp}
  6772. */
  6773. "escape": reEscape_default,
  6774. /**
  6775. * Used to detect code to be evaluated.
  6776. *
  6777. * @memberOf _.templateSettings
  6778. * @type {RegExp}
  6779. */
  6780. "evaluate": reEvaluate_default,
  6781. /**
  6782. * Used to detect `data` property values to inject.
  6783. *
  6784. * @memberOf _.templateSettings
  6785. * @type {RegExp}
  6786. */
  6787. "interpolate": reInterpolate_default,
  6788. /**
  6789. * Used to reference the data object in the template text.
  6790. *
  6791. * @memberOf _.templateSettings
  6792. * @type {string}
  6793. */
  6794. "variable": "",
  6795. /**
  6796. * Used to import variables into the compiled template.
  6797. *
  6798. * @memberOf _.templateSettings
  6799. * @type {Object}
  6800. */
  6801. "imports": {
  6802. /**
  6803. * A reference to the `lodash` function.
  6804. *
  6805. * @memberOf _.templateSettings.imports
  6806. * @type {Function}
  6807. */
  6808. "_": { "escape": escape_default }
  6809. }
  6810. };
  6811. var templateSettings_default = templateSettings;
  6812. // node_modules/lodash-es/template.js
  6813. var INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
  6814. var reEmptyStringLeading = /\b__p \+= '';/g;
  6815. var reEmptyStringMiddle = /\b(__p \+=) '' \+/g;
  6816. var reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  6817. var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/;
  6818. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  6819. var reNoMatch = /($^)/;
  6820. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  6821. var objectProto28 = Object.prototype;
  6822. var hasOwnProperty24 = objectProto28.hasOwnProperty;
  6823. function template(string3, options, guard) {
  6824. var settings = templateSettings_default.imports._.templateSettings || templateSettings_default;
  6825. if (guard && isIterateeCall_default(string3, options, guard)) {
  6826. options = void 0;
  6827. }
  6828. string3 = toString_default(string3);
  6829. options = assignInWith_default({}, options, settings, customDefaultsAssignIn_default);
  6830. var imports = assignInWith_default({}, options.imports, settings.imports, customDefaultsAssignIn_default), importsKeys = keys_default(imports), importsValues = baseValues_default(imports, importsKeys);
  6831. var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
  6832. var reDelimiters = RegExp(
  6833. (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate_default ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
  6834. "g"
  6835. );
  6836. var sourceURL = hasOwnProperty24.call(options, "sourceURL") ? "//# sourceURL=" + (options.sourceURL + "").replace(/\s/g, " ") + "\n" : "";
  6837. string3.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset3) {
  6838. interpolateValue || (interpolateValue = esTemplateValue);
  6839. source += string3.slice(index, offset3).replace(reUnescapedString, escapeStringChar_default);
  6840. if (escapeValue) {
  6841. isEscaping = true;
  6842. source += "' +\n__e(" + escapeValue + ") +\n'";
  6843. }
  6844. if (evaluateValue) {
  6845. isEvaluating = true;
  6846. source += "';\n" + evaluateValue + ";\n__p += '";
  6847. }
  6848. if (interpolateValue) {
  6849. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  6850. }
  6851. index = offset3 + match.length;
  6852. return match;
  6853. });
  6854. source += "';\n";
  6855. var variable = hasOwnProperty24.call(options, "variable") && options.variable;
  6856. if (!variable) {
  6857. source = "with (obj) {\n" + source + "\n}\n";
  6858. } else if (reForbiddenIdentifierChars.test(variable)) {
  6859. throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
  6860. }
  6861. source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
  6862. source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
  6863. var result2 = attempt_default(function() {
  6864. return Function(importsKeys, sourceURL + "return " + source).apply(void 0, importsValues);
  6865. });
  6866. result2.source = source;
  6867. if (isError_default(result2)) {
  6868. throw result2;
  6869. }
  6870. return result2;
  6871. }
  6872. var template_default = template;
  6873. // node_modules/lodash-es/throttle.js
  6874. var FUNC_ERROR_TEXT12 = "Expected a function";
  6875. function throttle(func, wait, options) {
  6876. var leading = true, trailing = true;
  6877. if (typeof func != "function") {
  6878. throw new TypeError(FUNC_ERROR_TEXT12);
  6879. }
  6880. if (isObject_default(options)) {
  6881. leading = "leading" in options ? !!options.leading : leading;
  6882. trailing = "trailing" in options ? !!options.trailing : trailing;
  6883. }
  6884. return debounce_default(func, wait, {
  6885. "leading": leading,
  6886. "maxWait": wait,
  6887. "trailing": trailing
  6888. });
  6889. }
  6890. var throttle_default = throttle;
  6891. // node_modules/lodash-es/thru.js
  6892. function thru(value, interceptor) {
  6893. return interceptor(value);
  6894. }
  6895. var thru_default = thru;
  6896. // node_modules/lodash-es/times.js
  6897. var MAX_SAFE_INTEGER5 = 9007199254740991;
  6898. var MAX_ARRAY_LENGTH6 = 4294967295;
  6899. var nativeMin12 = Math.min;
  6900. function times(n, iteratee2) {
  6901. n = toInteger_default(n);
  6902. if (n < 1 || n > MAX_SAFE_INTEGER5) {
  6903. return [];
  6904. }
  6905. var index = MAX_ARRAY_LENGTH6, length = nativeMin12(n, MAX_ARRAY_LENGTH6);
  6906. iteratee2 = castFunction_default(iteratee2);
  6907. n -= MAX_ARRAY_LENGTH6;
  6908. var result2 = baseTimes_default(length, iteratee2);
  6909. while (++index < n) {
  6910. iteratee2(index);
  6911. }
  6912. return result2;
  6913. }
  6914. var times_default = times;
  6915. // node_modules/lodash-es/toIterator.js
  6916. function wrapperToIterator() {
  6917. return this;
  6918. }
  6919. var toIterator_default = wrapperToIterator;
  6920. // node_modules/lodash-es/_baseWrapperValue.js
  6921. function baseWrapperValue(value, actions) {
  6922. var result2 = value;
  6923. if (result2 instanceof LazyWrapper_default) {
  6924. result2 = result2.value();
  6925. }
  6926. return arrayReduce_default(actions, function(result3, action) {
  6927. return action.func.apply(action.thisArg, arrayPush_default([result3], action.args));
  6928. }, result2);
  6929. }
  6930. var baseWrapperValue_default = baseWrapperValue;
  6931. // node_modules/lodash-es/wrapperValue.js
  6932. function wrapperValue() {
  6933. return baseWrapperValue_default(this.__wrapped__, this.__actions__);
  6934. }
  6935. var wrapperValue_default = wrapperValue;
  6936. // node_modules/lodash-es/toLower.js
  6937. function toLower(value) {
  6938. return toString_default(value).toLowerCase();
  6939. }
  6940. var toLower_default = toLower;
  6941. // node_modules/lodash-es/toPath.js
  6942. function toPath(value) {
  6943. if (isArray_default(value)) {
  6944. return arrayMap_default(value, toKey_default);
  6945. }
  6946. return isSymbol_default(value) ? [value] : copyArray_default(stringToPath_default(toString_default(value)));
  6947. }
  6948. var toPath_default = toPath;
  6949. // node_modules/lodash-es/toSafeInteger.js
  6950. var MAX_SAFE_INTEGER6 = 9007199254740991;
  6951. function toSafeInteger(value) {
  6952. return value ? baseClamp_default(toInteger_default(value), -MAX_SAFE_INTEGER6, MAX_SAFE_INTEGER6) : value === 0 ? value : 0;
  6953. }
  6954. var toSafeInteger_default = toSafeInteger;
  6955. // node_modules/lodash-es/toUpper.js
  6956. function toUpper(value) {
  6957. return toString_default(value).toUpperCase();
  6958. }
  6959. var toUpper_default = toUpper;
  6960. // node_modules/lodash-es/transform.js
  6961. function transform(object4, iteratee2, accumulator) {
  6962. var isArr = isArray_default(object4), isArrLike = isArr || isBuffer_default(object4) || isTypedArray_default(object4);
  6963. iteratee2 = baseIteratee_default(iteratee2, 4);
  6964. if (accumulator == null) {
  6965. var Ctor = object4 && object4.constructor;
  6966. if (isArrLike) {
  6967. accumulator = isArr ? new Ctor() : [];
  6968. } else if (isObject_default(object4)) {
  6969. accumulator = isFunction_default(Ctor) ? baseCreate_default(getPrototype_default(object4)) : {};
  6970. } else {
  6971. accumulator = {};
  6972. }
  6973. }
  6974. (isArrLike ? arrayEach_default : baseForOwn_default)(object4, function(value, index, object5) {
  6975. return iteratee2(accumulator, value, index, object5);
  6976. });
  6977. return accumulator;
  6978. }
  6979. var transform_default = transform;
  6980. // node_modules/lodash-es/_charsEndIndex.js
  6981. function charsEndIndex(strSymbols, chrSymbols) {
  6982. var index = strSymbols.length;
  6983. while (index-- && baseIndexOf_default(chrSymbols, strSymbols[index], 0) > -1) {
  6984. }
  6985. return index;
  6986. }
  6987. var charsEndIndex_default = charsEndIndex;
  6988. // node_modules/lodash-es/_charsStartIndex.js
  6989. function charsStartIndex(strSymbols, chrSymbols) {
  6990. var index = -1, length = strSymbols.length;
  6991. while (++index < length && baseIndexOf_default(chrSymbols, strSymbols[index], 0) > -1) {
  6992. }
  6993. return index;
  6994. }
  6995. var charsStartIndex_default = charsStartIndex;
  6996. // node_modules/lodash-es/trim.js
  6997. function trim(string3, chars, guard) {
  6998. string3 = toString_default(string3);
  6999. if (string3 && (guard || chars === void 0)) {
  7000. return baseTrim_default(string3);
  7001. }
  7002. if (!string3 || !(chars = baseToString_default(chars))) {
  7003. return string3;
  7004. }
  7005. var strSymbols = stringToArray_default(string3), chrSymbols = stringToArray_default(chars), start = charsStartIndex_default(strSymbols, chrSymbols), end = charsEndIndex_default(strSymbols, chrSymbols) + 1;
  7006. return castSlice_default(strSymbols, start, end).join("");
  7007. }
  7008. var trim_default = trim;
  7009. // node_modules/lodash-es/trimEnd.js
  7010. function trimEnd(string3, chars, guard) {
  7011. string3 = toString_default(string3);
  7012. if (string3 && (guard || chars === void 0)) {
  7013. return string3.slice(0, trimmedEndIndex_default(string3) + 1);
  7014. }
  7015. if (!string3 || !(chars = baseToString_default(chars))) {
  7016. return string3;
  7017. }
  7018. var strSymbols = stringToArray_default(string3), end = charsEndIndex_default(strSymbols, stringToArray_default(chars)) + 1;
  7019. return castSlice_default(strSymbols, 0, end).join("");
  7020. }
  7021. var trimEnd_default = trimEnd;
  7022. // node_modules/lodash-es/trimStart.js
  7023. var reTrimStart3 = /^\s+/;
  7024. function trimStart(string3, chars, guard) {
  7025. string3 = toString_default(string3);
  7026. if (string3 && (guard || chars === void 0)) {
  7027. return string3.replace(reTrimStart3, "");
  7028. }
  7029. if (!string3 || !(chars = baseToString_default(chars))) {
  7030. return string3;
  7031. }
  7032. var strSymbols = stringToArray_default(string3), start = charsStartIndex_default(strSymbols, stringToArray_default(chars));
  7033. return castSlice_default(strSymbols, start).join("");
  7034. }
  7035. var trimStart_default = trimStart;
  7036. // node_modules/lodash-es/truncate.js
  7037. var DEFAULT_TRUNC_LENGTH = 30;
  7038. var DEFAULT_TRUNC_OMISSION = "...";
  7039. var reFlags2 = /\w*$/;
  7040. function truncate(string3, options) {
  7041. var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
  7042. if (isObject_default(options)) {
  7043. var separator = "separator" in options ? options.separator : separator;
  7044. length = "length" in options ? toInteger_default(options.length) : length;
  7045. omission = "omission" in options ? baseToString_default(options.omission) : omission;
  7046. }
  7047. string3 = toString_default(string3);
  7048. var strLength = string3.length;
  7049. if (hasUnicode_default(string3)) {
  7050. var strSymbols = stringToArray_default(string3);
  7051. strLength = strSymbols.length;
  7052. }
  7053. if (length >= strLength) {
  7054. return string3;
  7055. }
  7056. var end = length - stringSize_default(omission);
  7057. if (end < 1) {
  7058. return omission;
  7059. }
  7060. var result2 = strSymbols ? castSlice_default(strSymbols, 0, end).join("") : string3.slice(0, end);
  7061. if (separator === void 0) {
  7062. return result2 + omission;
  7063. }
  7064. if (strSymbols) {
  7065. end += result2.length - end;
  7066. }
  7067. if (isRegExp_default(separator)) {
  7068. if (string3.slice(end).search(separator)) {
  7069. var match, substring = result2;
  7070. if (!separator.global) {
  7071. separator = RegExp(separator.source, toString_default(reFlags2.exec(separator)) + "g");
  7072. }
  7073. separator.lastIndex = 0;
  7074. while (match = separator.exec(substring)) {
  7075. var newEnd = match.index;
  7076. }
  7077. result2 = result2.slice(0, newEnd === void 0 ? end : newEnd);
  7078. }
  7079. } else if (string3.indexOf(baseToString_default(separator), end) != end) {
  7080. var index = result2.lastIndexOf(separator);
  7081. if (index > -1) {
  7082. result2 = result2.slice(0, index);
  7083. }
  7084. }
  7085. return result2 + omission;
  7086. }
  7087. var truncate_default = truncate;
  7088. // node_modules/lodash-es/unary.js
  7089. function unary(func) {
  7090. return ary_default(func, 1);
  7091. }
  7092. var unary_default = unary;
  7093. // node_modules/lodash-es/_unescapeHtmlChar.js
  7094. var htmlUnescapes = {
  7095. "&amp;": "&",
  7096. "&lt;": "<",
  7097. "&gt;": ">",
  7098. "&quot;": '"',
  7099. "&#39;": "'"
  7100. };
  7101. var unescapeHtmlChar = basePropertyOf_default(htmlUnescapes);
  7102. var unescapeHtmlChar_default = unescapeHtmlChar;
  7103. // node_modules/lodash-es/unescape.js
  7104. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g;
  7105. var reHasEscapedHtml = RegExp(reEscapedHtml.source);
  7106. function unescape(string3) {
  7107. string3 = toString_default(string3);
  7108. return string3 && reHasEscapedHtml.test(string3) ? string3.replace(reEscapedHtml, unescapeHtmlChar_default) : string3;
  7109. }
  7110. var unescape_default = unescape;
  7111. // node_modules/lodash-es/_createSet.js
  7112. var INFINITY6 = 1 / 0;
  7113. var createSet = !(Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY6) ? noop_default : function(values2) {
  7114. return new Set_default(values2);
  7115. };
  7116. var createSet_default = createSet;
  7117. // node_modules/lodash-es/_baseUniq.js
  7118. var LARGE_ARRAY_SIZE3 = 200;
  7119. function baseUniq(array4, iteratee2, comparator) {
  7120. var index = -1, includes2 = arrayIncludes_default, length = array4.length, isCommon = true, result2 = [], seen = result2;
  7121. if (comparator) {
  7122. isCommon = false;
  7123. includes2 = arrayIncludesWith_default;
  7124. } else if (length >= LARGE_ARRAY_SIZE3) {
  7125. var set3 = iteratee2 ? null : createSet_default(array4);
  7126. if (set3) {
  7127. return setToArray_default(set3);
  7128. }
  7129. isCommon = false;
  7130. includes2 = cacheHas_default;
  7131. seen = new SetCache_default();
  7132. } else {
  7133. seen = iteratee2 ? [] : result2;
  7134. }
  7135. outer:
  7136. while (++index < length) {
  7137. var value = array4[index], computed2 = iteratee2 ? iteratee2(value) : value;
  7138. value = comparator || value !== 0 ? value : 0;
  7139. if (isCommon && computed2 === computed2) {
  7140. var seenIndex = seen.length;
  7141. while (seenIndex--) {
  7142. if (seen[seenIndex] === computed2) {
  7143. continue outer;
  7144. }
  7145. }
  7146. if (iteratee2) {
  7147. seen.push(computed2);
  7148. }
  7149. result2.push(value);
  7150. } else if (!includes2(seen, computed2, comparator)) {
  7151. if (seen !== result2) {
  7152. seen.push(computed2);
  7153. }
  7154. result2.push(value);
  7155. }
  7156. }
  7157. return result2;
  7158. }
  7159. var baseUniq_default = baseUniq;
  7160. // node_modules/lodash-es/union.js
  7161. var union = baseRest_default(function(arrays) {
  7162. return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true));
  7163. });
  7164. var union_default = union;
  7165. // node_modules/lodash-es/unionBy.js
  7166. var unionBy = baseRest_default(function(arrays) {
  7167. var iteratee2 = last_default(arrays);
  7168. if (isArrayLikeObject_default(iteratee2)) {
  7169. iteratee2 = void 0;
  7170. }
  7171. return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true), baseIteratee_default(iteratee2, 2));
  7172. });
  7173. var unionBy_default = unionBy;
  7174. // node_modules/lodash-es/unionWith.js
  7175. var unionWith = baseRest_default(function(arrays) {
  7176. var comparator = last_default(arrays);
  7177. comparator = typeof comparator == "function" ? comparator : void 0;
  7178. return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true), void 0, comparator);
  7179. });
  7180. var unionWith_default = unionWith;
  7181. // node_modules/lodash-es/uniq.js
  7182. function uniq(array4) {
  7183. return array4 && array4.length ? baseUniq_default(array4) : [];
  7184. }
  7185. var uniq_default = uniq;
  7186. // node_modules/lodash-es/uniqBy.js
  7187. function uniqBy(array4, iteratee2) {
  7188. return array4 && array4.length ? baseUniq_default(array4, baseIteratee_default(iteratee2, 2)) : [];
  7189. }
  7190. var uniqBy_default = uniqBy;
  7191. // node_modules/lodash-es/uniqWith.js
  7192. function uniqWith(array4, comparator) {
  7193. comparator = typeof comparator == "function" ? comparator : void 0;
  7194. return array4 && array4.length ? baseUniq_default(array4, void 0, comparator) : [];
  7195. }
  7196. var uniqWith_default = uniqWith;
  7197. // node_modules/lodash-es/uniqueId.js
  7198. var idCounter = 0;
  7199. function uniqueId(prefix) {
  7200. var id = ++idCounter;
  7201. return toString_default(prefix) + id;
  7202. }
  7203. var uniqueId_default = uniqueId;
  7204. // node_modules/lodash-es/unset.js
  7205. function unset(object4, path) {
  7206. return object4 == null ? true : baseUnset_default(object4, path);
  7207. }
  7208. var unset_default = unset;
  7209. // node_modules/lodash-es/unzip.js
  7210. var nativeMax15 = Math.max;
  7211. function unzip(array4) {
  7212. if (!(array4 && array4.length)) {
  7213. return [];
  7214. }
  7215. var length = 0;
  7216. array4 = arrayFilter_default(array4, function(group) {
  7217. if (isArrayLikeObject_default(group)) {
  7218. length = nativeMax15(group.length, length);
  7219. return true;
  7220. }
  7221. });
  7222. return baseTimes_default(length, function(index) {
  7223. return arrayMap_default(array4, baseProperty_default(index));
  7224. });
  7225. }
  7226. var unzip_default = unzip;
  7227. // node_modules/lodash-es/unzipWith.js
  7228. function unzipWith(array4, iteratee2) {
  7229. if (!(array4 && array4.length)) {
  7230. return [];
  7231. }
  7232. var result2 = unzip_default(array4);
  7233. if (iteratee2 == null) {
  7234. return result2;
  7235. }
  7236. return arrayMap_default(result2, function(group) {
  7237. return apply_default(iteratee2, void 0, group);
  7238. });
  7239. }
  7240. var unzipWith_default = unzipWith;
  7241. // node_modules/lodash-es/_baseUpdate.js
  7242. function baseUpdate(object4, path, updater, customizer) {
  7243. return baseSet_default(object4, path, updater(baseGet_default(object4, path)), customizer);
  7244. }
  7245. var baseUpdate_default = baseUpdate;
  7246. // node_modules/lodash-es/update.js
  7247. function update(object4, path, updater) {
  7248. return object4 == null ? object4 : baseUpdate_default(object4, path, castFunction_default(updater));
  7249. }
  7250. var update_default = update;
  7251. // node_modules/lodash-es/updateWith.js
  7252. function updateWith(object4, path, updater, customizer) {
  7253. customizer = typeof customizer == "function" ? customizer : void 0;
  7254. return object4 == null ? object4 : baseUpdate_default(object4, path, castFunction_default(updater), customizer);
  7255. }
  7256. var updateWith_default = updateWith;
  7257. // node_modules/lodash-es/upperCase.js
  7258. var upperCase = createCompounder_default(function(result2, word, index) {
  7259. return result2 + (index ? " " : "") + word.toUpperCase();
  7260. });
  7261. var upperCase_default = upperCase;
  7262. // node_modules/lodash-es/valuesIn.js
  7263. function valuesIn(object4) {
  7264. return object4 == null ? [] : baseValues_default(object4, keysIn_default(object4));
  7265. }
  7266. var valuesIn_default = valuesIn;
  7267. // node_modules/lodash-es/without.js
  7268. var without = baseRest_default(function(array4, values2) {
  7269. return isArrayLikeObject_default(array4) ? baseDifference_default(array4, values2) : [];
  7270. });
  7271. var without_default = without;
  7272. // node_modules/lodash-es/wrap.js
  7273. function wrap(value, wrapper) {
  7274. return partial_default(castFunction_default(wrapper), value);
  7275. }
  7276. var wrap_default = wrap;
  7277. // node_modules/lodash-es/wrapperAt.js
  7278. var wrapperAt = flatRest_default(function(paths) {
  7279. var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object4) {
  7280. return baseAt_default(object4, paths);
  7281. };
  7282. if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper_default) || !isIndex_default(start)) {
  7283. return this.thru(interceptor);
  7284. }
  7285. value = value.slice(start, +start + (length ? 1 : 0));
  7286. value.__actions__.push({
  7287. "func": thru_default,
  7288. "args": [interceptor],
  7289. "thisArg": void 0
  7290. });
  7291. return new LodashWrapper_default(value, this.__chain__).thru(function(array4) {
  7292. if (length && !array4.length) {
  7293. array4.push(void 0);
  7294. }
  7295. return array4;
  7296. });
  7297. });
  7298. var wrapperAt_default = wrapperAt;
  7299. // node_modules/lodash-es/wrapperChain.js
  7300. function wrapperChain() {
  7301. return chain_default(this);
  7302. }
  7303. var wrapperChain_default = wrapperChain;
  7304. // node_modules/lodash-es/wrapperReverse.js
  7305. function wrapperReverse() {
  7306. var value = this.__wrapped__;
  7307. if (value instanceof LazyWrapper_default) {
  7308. var wrapped = value;
  7309. if (this.__actions__.length) {
  7310. wrapped = new LazyWrapper_default(this);
  7311. }
  7312. wrapped = wrapped.reverse();
  7313. wrapped.__actions__.push({
  7314. "func": thru_default,
  7315. "args": [reverse_default],
  7316. "thisArg": void 0
  7317. });
  7318. return new LodashWrapper_default(wrapped, this.__chain__);
  7319. }
  7320. return this.thru(reverse_default);
  7321. }
  7322. var wrapperReverse_default = wrapperReverse;
  7323. // node_modules/lodash-es/_baseXor.js
  7324. function baseXor(arrays, iteratee2, comparator) {
  7325. var length = arrays.length;
  7326. if (length < 2) {
  7327. return length ? baseUniq_default(arrays[0]) : [];
  7328. }
  7329. var index = -1, result2 = Array(length);
  7330. while (++index < length) {
  7331. var array4 = arrays[index], othIndex = -1;
  7332. while (++othIndex < length) {
  7333. if (othIndex != index) {
  7334. result2[index] = baseDifference_default(result2[index] || array4, arrays[othIndex], iteratee2, comparator);
  7335. }
  7336. }
  7337. }
  7338. return baseUniq_default(baseFlatten_default(result2, 1), iteratee2, comparator);
  7339. }
  7340. var baseXor_default = baseXor;
  7341. // node_modules/lodash-es/xor.js
  7342. var xor = baseRest_default(function(arrays) {
  7343. return baseXor_default(arrayFilter_default(arrays, isArrayLikeObject_default));
  7344. });
  7345. var xor_default = xor;
  7346. // node_modules/lodash-es/xorBy.js
  7347. var xorBy = baseRest_default(function(arrays) {
  7348. var iteratee2 = last_default(arrays);
  7349. if (isArrayLikeObject_default(iteratee2)) {
  7350. iteratee2 = void 0;
  7351. }
  7352. return baseXor_default(arrayFilter_default(arrays, isArrayLikeObject_default), baseIteratee_default(iteratee2, 2));
  7353. });
  7354. var xorBy_default = xorBy;
  7355. // node_modules/lodash-es/xorWith.js
  7356. var xorWith = baseRest_default(function(arrays) {
  7357. var comparator = last_default(arrays);
  7358. comparator = typeof comparator == "function" ? comparator : void 0;
  7359. return baseXor_default(arrayFilter_default(arrays, isArrayLikeObject_default), void 0, comparator);
  7360. });
  7361. var xorWith_default = xorWith;
  7362. // node_modules/lodash-es/zip.js
  7363. var zip = baseRest_default(unzip_default);
  7364. var zip_default = zip;
  7365. // node_modules/lodash-es/_baseZipObject.js
  7366. function baseZipObject(props2, values2, assignFunc) {
  7367. var index = -1, length = props2.length, valsLength = values2.length, result2 = {};
  7368. while (++index < length) {
  7369. var value = index < valsLength ? values2[index] : void 0;
  7370. assignFunc(result2, props2[index], value);
  7371. }
  7372. return result2;
  7373. }
  7374. var baseZipObject_default = baseZipObject;
  7375. // node_modules/lodash-es/zipObject.js
  7376. function zipObject(props2, values2) {
  7377. return baseZipObject_default(props2 || [], values2 || [], assignValue_default);
  7378. }
  7379. var zipObject_default = zipObject;
  7380. // node_modules/lodash-es/zipObjectDeep.js
  7381. function zipObjectDeep(props2, values2) {
  7382. return baseZipObject_default(props2 || [], values2 || [], baseSet_default);
  7383. }
  7384. var zipObjectDeep_default = zipObjectDeep;
  7385. // node_modules/lodash-es/zipWith.js
  7386. var zipWith = baseRest_default(function(arrays) {
  7387. var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : void 0;
  7388. iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : void 0;
  7389. return unzipWith_default(arrays, iteratee2);
  7390. });
  7391. var zipWith_default = zipWith;
  7392. // node_modules/lodash-es/array.default.js
  7393. var array_default_default = {
  7394. chunk: chunk_default,
  7395. compact: compact_default,
  7396. concat: concat_default,
  7397. difference: difference_default,
  7398. differenceBy: differenceBy_default,
  7399. differenceWith: differenceWith_default,
  7400. drop: drop_default,
  7401. dropRight: dropRight_default,
  7402. dropRightWhile: dropRightWhile_default,
  7403. dropWhile: dropWhile_default,
  7404. fill: fill_default,
  7405. findIndex: findIndex_default,
  7406. findLastIndex: findLastIndex_default,
  7407. first: head_default,
  7408. flatten: flatten_default,
  7409. flattenDeep: flattenDeep_default,
  7410. flattenDepth: flattenDepth_default,
  7411. fromPairs: fromPairs_default,
  7412. head: head_default,
  7413. indexOf: indexOf_default,
  7414. initial: initial_default,
  7415. intersection: intersection_default,
  7416. intersectionBy: intersectionBy_default,
  7417. intersectionWith: intersectionWith_default,
  7418. join: join_default,
  7419. last: last_default,
  7420. lastIndexOf: lastIndexOf_default,
  7421. nth: nth_default,
  7422. pull: pull_default,
  7423. pullAll: pullAll_default,
  7424. pullAllBy: pullAllBy_default,
  7425. pullAllWith: pullAllWith_default,
  7426. pullAt: pullAt_default,
  7427. remove: remove_default,
  7428. reverse: reverse_default,
  7429. slice: slice_default,
  7430. sortedIndex: sortedIndex_default,
  7431. sortedIndexBy: sortedIndexBy_default,
  7432. sortedIndexOf: sortedIndexOf_default,
  7433. sortedLastIndex: sortedLastIndex_default,
  7434. sortedLastIndexBy: sortedLastIndexBy_default,
  7435. sortedLastIndexOf: sortedLastIndexOf_default,
  7436. sortedUniq: sortedUniq_default,
  7437. sortedUniqBy: sortedUniqBy_default,
  7438. tail: tail_default,
  7439. take: take_default,
  7440. takeRight: takeRight_default,
  7441. takeRightWhile: takeRightWhile_default,
  7442. takeWhile: takeWhile_default,
  7443. union: union_default,
  7444. unionBy: unionBy_default,
  7445. unionWith: unionWith_default,
  7446. uniq: uniq_default,
  7447. uniqBy: uniqBy_default,
  7448. uniqWith: uniqWith_default,
  7449. unzip: unzip_default,
  7450. unzipWith: unzipWith_default,
  7451. without: without_default,
  7452. xor: xor_default,
  7453. xorBy: xorBy_default,
  7454. xorWith: xorWith_default,
  7455. zip: zip_default,
  7456. zipObject: zipObject_default,
  7457. zipObjectDeep: zipObjectDeep_default,
  7458. zipWith: zipWith_default
  7459. };
  7460. // node_modules/lodash-es/collection.default.js
  7461. var collection_default_default = {
  7462. countBy: countBy_default,
  7463. each: forEach_default,
  7464. eachRight: forEachRight_default,
  7465. every: every_default,
  7466. filter: filter_default,
  7467. find: find_default,
  7468. findLast: findLast_default,
  7469. flatMap: flatMap_default,
  7470. flatMapDeep: flatMapDeep_default,
  7471. flatMapDepth: flatMapDepth_default,
  7472. forEach: forEach_default,
  7473. forEachRight: forEachRight_default,
  7474. groupBy: groupBy_default,
  7475. includes: includes_default,
  7476. invokeMap: invokeMap_default,
  7477. keyBy: keyBy_default,
  7478. map: map_default,
  7479. orderBy: orderBy_default,
  7480. partition: partition_default,
  7481. reduce: reduce_default,
  7482. reduceRight: reduceRight_default,
  7483. reject: reject_default,
  7484. sample: sample_default,
  7485. sampleSize: sampleSize_default,
  7486. shuffle: shuffle_default,
  7487. size: size_default,
  7488. some: some_default,
  7489. sortBy: sortBy_default
  7490. };
  7491. // node_modules/lodash-es/date.default.js
  7492. var date_default_default = {
  7493. now: now_default
  7494. };
  7495. // node_modules/lodash-es/function.default.js
  7496. var function_default_default = {
  7497. after: after_default,
  7498. ary: ary_default,
  7499. before: before_default,
  7500. bind: bind_default,
  7501. bindKey: bindKey_default,
  7502. curry: curry_default,
  7503. curryRight: curryRight_default,
  7504. debounce: debounce_default,
  7505. defer: defer_default,
  7506. delay: delay_default,
  7507. flip: flip_default,
  7508. memoize: memoize_default,
  7509. negate: negate_default,
  7510. once: once_default,
  7511. overArgs: overArgs_default,
  7512. partial: partial_default,
  7513. partialRight: partialRight_default,
  7514. rearg: rearg_default,
  7515. rest: rest_default,
  7516. spread: spread_default,
  7517. throttle: throttle_default,
  7518. unary: unary_default,
  7519. wrap: wrap_default
  7520. };
  7521. // node_modules/lodash-es/lang.default.js
  7522. var lang_default_default = {
  7523. castArray: castArray_default,
  7524. clone: clone_default,
  7525. cloneDeep: cloneDeep_default,
  7526. cloneDeepWith: cloneDeepWith_default,
  7527. cloneWith: cloneWith_default,
  7528. conformsTo: conformsTo_default,
  7529. eq: eq_default,
  7530. gt: gt_default,
  7531. gte: gte_default,
  7532. isArguments: isArguments_default,
  7533. isArray: isArray_default,
  7534. isArrayBuffer: isArrayBuffer_default,
  7535. isArrayLike: isArrayLike_default,
  7536. isArrayLikeObject: isArrayLikeObject_default,
  7537. isBoolean: isBoolean_default,
  7538. isBuffer: isBuffer_default,
  7539. isDate: isDate_default,
  7540. isElement: isElement_default,
  7541. isEmpty: isEmpty_default,
  7542. isEqual: isEqual_default,
  7543. isEqualWith: isEqualWith_default,
  7544. isError: isError_default,
  7545. isFinite: isFinite_default,
  7546. isFunction: isFunction_default,
  7547. isInteger: isInteger_default,
  7548. isLength: isLength_default,
  7549. isMap: isMap_default,
  7550. isMatch: isMatch_default,
  7551. isMatchWith: isMatchWith_default,
  7552. isNaN: isNaN_default,
  7553. isNative: isNative_default,
  7554. isNil: isNil_default,
  7555. isNull: isNull_default,
  7556. isNumber: isNumber_default,
  7557. isObject: isObject_default,
  7558. isObjectLike: isObjectLike_default,
  7559. isPlainObject: isPlainObject_default,
  7560. isRegExp: isRegExp_default,
  7561. isSafeInteger: isSafeInteger_default,
  7562. isSet: isSet_default,
  7563. isString: isString_default,
  7564. isSymbol: isSymbol_default,
  7565. isTypedArray: isTypedArray_default,
  7566. isUndefined: isUndefined_default,
  7567. isWeakMap: isWeakMap_default,
  7568. isWeakSet: isWeakSet_default,
  7569. lt: lt_default,
  7570. lte: lte_default,
  7571. toArray: toArray_default,
  7572. toFinite: toFinite_default,
  7573. toInteger: toInteger_default,
  7574. toLength: toLength_default,
  7575. toNumber: toNumber_default,
  7576. toPlainObject: toPlainObject_default,
  7577. toSafeInteger: toSafeInteger_default,
  7578. toString: toString_default
  7579. };
  7580. // node_modules/lodash-es/math.default.js
  7581. var math_default_default = {
  7582. add: add_default,
  7583. ceil: ceil_default,
  7584. divide: divide_default,
  7585. floor: floor_default,
  7586. max: max_default,
  7587. maxBy: maxBy_default,
  7588. mean: mean_default,
  7589. meanBy: meanBy_default,
  7590. min: min_default,
  7591. minBy: minBy_default,
  7592. multiply: multiply_default,
  7593. round: round_default,
  7594. subtract: subtract_default,
  7595. sum: sum_default,
  7596. sumBy: sumBy_default
  7597. };
  7598. // node_modules/lodash-es/number.default.js
  7599. var number_default_default = {
  7600. clamp: clamp_default,
  7601. inRange: inRange_default,
  7602. random: random_default
  7603. };
  7604. // node_modules/lodash-es/object.default.js
  7605. var object_default_default = {
  7606. assign: assign_default,
  7607. assignIn: assignIn_default,
  7608. assignInWith: assignInWith_default,
  7609. assignWith: assignWith_default,
  7610. at: at_default,
  7611. create: create_default,
  7612. defaults: defaults_default,
  7613. defaultsDeep: defaultsDeep_default,
  7614. entries: toPairs_default,
  7615. entriesIn: toPairsIn_default,
  7616. extend: assignIn_default,
  7617. extendWith: assignInWith_default,
  7618. findKey: findKey_default,
  7619. findLastKey: findLastKey_default,
  7620. forIn: forIn_default,
  7621. forInRight: forInRight_default,
  7622. forOwn: forOwn_default,
  7623. forOwnRight: forOwnRight_default,
  7624. functions: functions_default,
  7625. functionsIn: functionsIn_default,
  7626. get: get_default,
  7627. has: has_default,
  7628. hasIn: hasIn_default,
  7629. invert: invert_default,
  7630. invertBy: invertBy_default,
  7631. invoke: invoke_default,
  7632. keys: keys_default,
  7633. keysIn: keysIn_default,
  7634. mapKeys: mapKeys_default,
  7635. mapValues: mapValues_default,
  7636. merge: merge_default,
  7637. mergeWith: mergeWith_default,
  7638. omit: omit_default,
  7639. omitBy: omitBy_default,
  7640. pick: pick_default,
  7641. pickBy: pickBy_default,
  7642. result: result_default,
  7643. set: set_default,
  7644. setWith: setWith_default,
  7645. toPairs: toPairs_default,
  7646. toPairsIn: toPairsIn_default,
  7647. transform: transform_default,
  7648. unset: unset_default,
  7649. update: update_default,
  7650. updateWith: updateWith_default,
  7651. values: values_default,
  7652. valuesIn: valuesIn_default
  7653. };
  7654. // node_modules/lodash-es/seq.default.js
  7655. var seq_default_default = {
  7656. at: wrapperAt_default,
  7657. chain: chain_default,
  7658. commit: commit_default,
  7659. lodash: wrapperLodash_default,
  7660. next: next_default,
  7661. plant: plant_default,
  7662. reverse: wrapperReverse_default,
  7663. tap: tap_default,
  7664. thru: thru_default,
  7665. toIterator: toIterator_default,
  7666. toJSON: wrapperValue_default,
  7667. value: wrapperValue_default,
  7668. valueOf: wrapperValue_default,
  7669. wrapperChain: wrapperChain_default
  7670. };
  7671. // node_modules/lodash-es/string.default.js
  7672. var string_default_default = {
  7673. camelCase: camelCase_default,
  7674. capitalize: capitalize_default,
  7675. deburr: deburr_default,
  7676. endsWith: endsWith_default,
  7677. escape: escape_default,
  7678. escapeRegExp: escapeRegExp_default,
  7679. kebabCase: kebabCase_default,
  7680. lowerCase: lowerCase_default,
  7681. lowerFirst: lowerFirst_default,
  7682. pad: pad_default,
  7683. padEnd: padEnd_default,
  7684. padStart: padStart_default,
  7685. parseInt: parseInt_default,
  7686. repeat: repeat_default,
  7687. replace: replace_default,
  7688. snakeCase: snakeCase_default,
  7689. split: split_default,
  7690. startCase: startCase_default,
  7691. startsWith: startsWith_default,
  7692. template: template_default,
  7693. templateSettings: templateSettings_default,
  7694. toLower: toLower_default,
  7695. toUpper: toUpper_default,
  7696. trim: trim_default,
  7697. trimEnd: trimEnd_default,
  7698. trimStart: trimStart_default,
  7699. truncate: truncate_default,
  7700. unescape: unescape_default,
  7701. upperCase: upperCase_default,
  7702. upperFirst: upperFirst_default,
  7703. words: words_default
  7704. };
  7705. // node_modules/lodash-es/util.default.js
  7706. var util_default_default = {
  7707. attempt: attempt_default,
  7708. bindAll: bindAll_default,
  7709. cond: cond_default,
  7710. conforms: conforms_default,
  7711. constant: constant_default,
  7712. defaultTo: defaultTo_default,
  7713. flow: flow_default,
  7714. flowRight: flowRight_default,
  7715. identity: identity_default,
  7716. iteratee: iteratee_default,
  7717. matches: matches_default,
  7718. matchesProperty: matchesProperty_default,
  7719. method: method_default,
  7720. methodOf: methodOf_default,
  7721. mixin: mixin_default,
  7722. noop: noop_default,
  7723. nthArg: nthArg_default,
  7724. over: over_default,
  7725. overEvery: overEvery_default,
  7726. overSome: overSome_default,
  7727. property: property_default,
  7728. propertyOf: propertyOf_default,
  7729. range: range_default,
  7730. rangeRight: rangeRight_default,
  7731. stubArray: stubArray_default,
  7732. stubFalse: stubFalse_default,
  7733. stubObject: stubObject_default,
  7734. stubString: stubString_default,
  7735. stubTrue: stubTrue_default,
  7736. times: times_default,
  7737. toPath: toPath_default,
  7738. uniqueId: uniqueId_default
  7739. };
  7740. // node_modules/lodash-es/_lazyClone.js
  7741. function lazyClone() {
  7742. var result2 = new LazyWrapper_default(this.__wrapped__);
  7743. result2.__actions__ = copyArray_default(this.__actions__);
  7744. result2.__dir__ = this.__dir__;
  7745. result2.__filtered__ = this.__filtered__;
  7746. result2.__iteratees__ = copyArray_default(this.__iteratees__);
  7747. result2.__takeCount__ = this.__takeCount__;
  7748. result2.__views__ = copyArray_default(this.__views__);
  7749. return result2;
  7750. }
  7751. var lazyClone_default = lazyClone;
  7752. // node_modules/lodash-es/_lazyReverse.js
  7753. function lazyReverse() {
  7754. if (this.__filtered__) {
  7755. var result2 = new LazyWrapper_default(this);
  7756. result2.__dir__ = -1;
  7757. result2.__filtered__ = true;
  7758. } else {
  7759. result2 = this.clone();
  7760. result2.__dir__ *= -1;
  7761. }
  7762. return result2;
  7763. }
  7764. var lazyReverse_default = lazyReverse;
  7765. // node_modules/lodash-es/_getView.js
  7766. var nativeMax16 = Math.max;
  7767. var nativeMin13 = Math.min;
  7768. function getView(start, end, transforms) {
  7769. var index = -1, length = transforms.length;
  7770. while (++index < length) {
  7771. var data = transforms[index], size3 = data.size;
  7772. switch (data.type) {
  7773. case "drop":
  7774. start += size3;
  7775. break;
  7776. case "dropRight":
  7777. end -= size3;
  7778. break;
  7779. case "take":
  7780. end = nativeMin13(end, start + size3);
  7781. break;
  7782. case "takeRight":
  7783. start = nativeMax16(start, end - size3);
  7784. break;
  7785. }
  7786. }
  7787. return { "start": start, "end": end };
  7788. }
  7789. var getView_default = getView;
  7790. // node_modules/lodash-es/_lazyValue.js
  7791. var LAZY_FILTER_FLAG = 1;
  7792. var LAZY_MAP_FLAG = 2;
  7793. var nativeMin14 = Math.min;
  7794. function lazyValue() {
  7795. var array4 = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray_default(array4), isRight = dir < 0, arrLength = isArr ? array4.length : 0, view = getView_default(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin14(length, this.__takeCount__);
  7796. if (!isArr || !isRight && arrLength == length && takeCount == length) {
  7797. return baseWrapperValue_default(array4, this.__actions__);
  7798. }
  7799. var result2 = [];
  7800. outer:
  7801. while (length-- && resIndex < takeCount) {
  7802. index += dir;
  7803. var iterIndex = -1, value = array4[index];
  7804. while (++iterIndex < iterLength) {
  7805. var data = iteratees[iterIndex], iteratee2 = data.iteratee, type4 = data.type, computed2 = iteratee2(value);
  7806. if (type4 == LAZY_MAP_FLAG) {
  7807. value = computed2;
  7808. } else if (!computed2) {
  7809. if (type4 == LAZY_FILTER_FLAG) {
  7810. continue outer;
  7811. } else {
  7812. break outer;
  7813. }
  7814. }
  7815. }
  7816. result2[resIndex++] = value;
  7817. }
  7818. return result2;
  7819. }
  7820. var lazyValue_default = lazyValue;
  7821. // node_modules/lodash-es/lodash.default.js
  7822. var VERSION = "4.17.21";
  7823. var WRAP_BIND_KEY_FLAG7 = 2;
  7824. var LAZY_FILTER_FLAG2 = 1;
  7825. var LAZY_WHILE_FLAG = 3;
  7826. var MAX_ARRAY_LENGTH7 = 4294967295;
  7827. var arrayProto6 = Array.prototype;
  7828. var objectProto29 = Object.prototype;
  7829. var hasOwnProperty25 = objectProto29.hasOwnProperty;
  7830. var symIterator2 = Symbol_default ? Symbol_default.iterator : void 0;
  7831. var nativeMax17 = Math.max;
  7832. var nativeMin15 = Math.min;
  7833. var mixin2 = /* @__PURE__ */ function(func) {
  7834. return function(object4, source, options) {
  7835. if (options == null) {
  7836. var isObj = isObject_default(source), props2 = isObj && keys_default(source), methodNames = props2 && props2.length && baseFunctions_default(source, props2);
  7837. if (!(methodNames ? methodNames.length : isObj)) {
  7838. options = source;
  7839. source = object4;
  7840. object4 = this;
  7841. }
  7842. }
  7843. return func(object4, source, options);
  7844. };
  7845. }(mixin_default);
  7846. wrapperLodash_default.after = function_default_default.after;
  7847. wrapperLodash_default.ary = function_default_default.ary;
  7848. wrapperLodash_default.assign = object_default_default.assign;
  7849. wrapperLodash_default.assignIn = object_default_default.assignIn;
  7850. wrapperLodash_default.assignInWith = object_default_default.assignInWith;
  7851. wrapperLodash_default.assignWith = object_default_default.assignWith;
  7852. wrapperLodash_default.at = object_default_default.at;
  7853. wrapperLodash_default.before = function_default_default.before;
  7854. wrapperLodash_default.bind = function_default_default.bind;
  7855. wrapperLodash_default.bindAll = util_default_default.bindAll;
  7856. wrapperLodash_default.bindKey = function_default_default.bindKey;
  7857. wrapperLodash_default.castArray = lang_default_default.castArray;
  7858. wrapperLodash_default.chain = seq_default_default.chain;
  7859. wrapperLodash_default.chunk = array_default_default.chunk;
  7860. wrapperLodash_default.compact = array_default_default.compact;
  7861. wrapperLodash_default.concat = array_default_default.concat;
  7862. wrapperLodash_default.cond = util_default_default.cond;
  7863. wrapperLodash_default.conforms = util_default_default.conforms;
  7864. wrapperLodash_default.constant = util_default_default.constant;
  7865. wrapperLodash_default.countBy = collection_default_default.countBy;
  7866. wrapperLodash_default.create = object_default_default.create;
  7867. wrapperLodash_default.curry = function_default_default.curry;
  7868. wrapperLodash_default.curryRight = function_default_default.curryRight;
  7869. wrapperLodash_default.debounce = function_default_default.debounce;
  7870. wrapperLodash_default.defaults = object_default_default.defaults;
  7871. wrapperLodash_default.defaultsDeep = object_default_default.defaultsDeep;
  7872. wrapperLodash_default.defer = function_default_default.defer;
  7873. wrapperLodash_default.delay = function_default_default.delay;
  7874. wrapperLodash_default.difference = array_default_default.difference;
  7875. wrapperLodash_default.differenceBy = array_default_default.differenceBy;
  7876. wrapperLodash_default.differenceWith = array_default_default.differenceWith;
  7877. wrapperLodash_default.drop = array_default_default.drop;
  7878. wrapperLodash_default.dropRight = array_default_default.dropRight;
  7879. wrapperLodash_default.dropRightWhile = array_default_default.dropRightWhile;
  7880. wrapperLodash_default.dropWhile = array_default_default.dropWhile;
  7881. wrapperLodash_default.fill = array_default_default.fill;
  7882. wrapperLodash_default.filter = collection_default_default.filter;
  7883. wrapperLodash_default.flatMap = collection_default_default.flatMap;
  7884. wrapperLodash_default.flatMapDeep = collection_default_default.flatMapDeep;
  7885. wrapperLodash_default.flatMapDepth = collection_default_default.flatMapDepth;
  7886. wrapperLodash_default.flatten = array_default_default.flatten;
  7887. wrapperLodash_default.flattenDeep = array_default_default.flattenDeep;
  7888. wrapperLodash_default.flattenDepth = array_default_default.flattenDepth;
  7889. wrapperLodash_default.flip = function_default_default.flip;
  7890. wrapperLodash_default.flow = util_default_default.flow;
  7891. wrapperLodash_default.flowRight = util_default_default.flowRight;
  7892. wrapperLodash_default.fromPairs = array_default_default.fromPairs;
  7893. wrapperLodash_default.functions = object_default_default.functions;
  7894. wrapperLodash_default.functionsIn = object_default_default.functionsIn;
  7895. wrapperLodash_default.groupBy = collection_default_default.groupBy;
  7896. wrapperLodash_default.initial = array_default_default.initial;
  7897. wrapperLodash_default.intersection = array_default_default.intersection;
  7898. wrapperLodash_default.intersectionBy = array_default_default.intersectionBy;
  7899. wrapperLodash_default.intersectionWith = array_default_default.intersectionWith;
  7900. wrapperLodash_default.invert = object_default_default.invert;
  7901. wrapperLodash_default.invertBy = object_default_default.invertBy;
  7902. wrapperLodash_default.invokeMap = collection_default_default.invokeMap;
  7903. wrapperLodash_default.iteratee = util_default_default.iteratee;
  7904. wrapperLodash_default.keyBy = collection_default_default.keyBy;
  7905. wrapperLodash_default.keys = keys_default;
  7906. wrapperLodash_default.keysIn = object_default_default.keysIn;
  7907. wrapperLodash_default.map = collection_default_default.map;
  7908. wrapperLodash_default.mapKeys = object_default_default.mapKeys;
  7909. wrapperLodash_default.mapValues = object_default_default.mapValues;
  7910. wrapperLodash_default.matches = util_default_default.matches;
  7911. wrapperLodash_default.matchesProperty = util_default_default.matchesProperty;
  7912. wrapperLodash_default.memoize = function_default_default.memoize;
  7913. wrapperLodash_default.merge = object_default_default.merge;
  7914. wrapperLodash_default.mergeWith = object_default_default.mergeWith;
  7915. wrapperLodash_default.method = util_default_default.method;
  7916. wrapperLodash_default.methodOf = util_default_default.methodOf;
  7917. wrapperLodash_default.mixin = mixin2;
  7918. wrapperLodash_default.negate = negate_default;
  7919. wrapperLodash_default.nthArg = util_default_default.nthArg;
  7920. wrapperLodash_default.omit = object_default_default.omit;
  7921. wrapperLodash_default.omitBy = object_default_default.omitBy;
  7922. wrapperLodash_default.once = function_default_default.once;
  7923. wrapperLodash_default.orderBy = collection_default_default.orderBy;
  7924. wrapperLodash_default.over = util_default_default.over;
  7925. wrapperLodash_default.overArgs = function_default_default.overArgs;
  7926. wrapperLodash_default.overEvery = util_default_default.overEvery;
  7927. wrapperLodash_default.overSome = util_default_default.overSome;
  7928. wrapperLodash_default.partial = function_default_default.partial;
  7929. wrapperLodash_default.partialRight = function_default_default.partialRight;
  7930. wrapperLodash_default.partition = collection_default_default.partition;
  7931. wrapperLodash_default.pick = object_default_default.pick;
  7932. wrapperLodash_default.pickBy = object_default_default.pickBy;
  7933. wrapperLodash_default.property = util_default_default.property;
  7934. wrapperLodash_default.propertyOf = util_default_default.propertyOf;
  7935. wrapperLodash_default.pull = array_default_default.pull;
  7936. wrapperLodash_default.pullAll = array_default_default.pullAll;
  7937. wrapperLodash_default.pullAllBy = array_default_default.pullAllBy;
  7938. wrapperLodash_default.pullAllWith = array_default_default.pullAllWith;
  7939. wrapperLodash_default.pullAt = array_default_default.pullAt;
  7940. wrapperLodash_default.range = util_default_default.range;
  7941. wrapperLodash_default.rangeRight = util_default_default.rangeRight;
  7942. wrapperLodash_default.rearg = function_default_default.rearg;
  7943. wrapperLodash_default.reject = collection_default_default.reject;
  7944. wrapperLodash_default.remove = array_default_default.remove;
  7945. wrapperLodash_default.rest = function_default_default.rest;
  7946. wrapperLodash_default.reverse = array_default_default.reverse;
  7947. wrapperLodash_default.sampleSize = collection_default_default.sampleSize;
  7948. wrapperLodash_default.set = object_default_default.set;
  7949. wrapperLodash_default.setWith = object_default_default.setWith;
  7950. wrapperLodash_default.shuffle = collection_default_default.shuffle;
  7951. wrapperLodash_default.slice = array_default_default.slice;
  7952. wrapperLodash_default.sortBy = collection_default_default.sortBy;
  7953. wrapperLodash_default.sortedUniq = array_default_default.sortedUniq;
  7954. wrapperLodash_default.sortedUniqBy = array_default_default.sortedUniqBy;
  7955. wrapperLodash_default.split = string_default_default.split;
  7956. wrapperLodash_default.spread = function_default_default.spread;
  7957. wrapperLodash_default.tail = array_default_default.tail;
  7958. wrapperLodash_default.take = array_default_default.take;
  7959. wrapperLodash_default.takeRight = array_default_default.takeRight;
  7960. wrapperLodash_default.takeRightWhile = array_default_default.takeRightWhile;
  7961. wrapperLodash_default.takeWhile = array_default_default.takeWhile;
  7962. wrapperLodash_default.tap = seq_default_default.tap;
  7963. wrapperLodash_default.throttle = function_default_default.throttle;
  7964. wrapperLodash_default.thru = thru_default;
  7965. wrapperLodash_default.toArray = lang_default_default.toArray;
  7966. wrapperLodash_default.toPairs = object_default_default.toPairs;
  7967. wrapperLodash_default.toPairsIn = object_default_default.toPairsIn;
  7968. wrapperLodash_default.toPath = util_default_default.toPath;
  7969. wrapperLodash_default.toPlainObject = lang_default_default.toPlainObject;
  7970. wrapperLodash_default.transform = object_default_default.transform;
  7971. wrapperLodash_default.unary = function_default_default.unary;
  7972. wrapperLodash_default.union = array_default_default.union;
  7973. wrapperLodash_default.unionBy = array_default_default.unionBy;
  7974. wrapperLodash_default.unionWith = array_default_default.unionWith;
  7975. wrapperLodash_default.uniq = array_default_default.uniq;
  7976. wrapperLodash_default.uniqBy = array_default_default.uniqBy;
  7977. wrapperLodash_default.uniqWith = array_default_default.uniqWith;
  7978. wrapperLodash_default.unset = object_default_default.unset;
  7979. wrapperLodash_default.unzip = array_default_default.unzip;
  7980. wrapperLodash_default.unzipWith = array_default_default.unzipWith;
  7981. wrapperLodash_default.update = object_default_default.update;
  7982. wrapperLodash_default.updateWith = object_default_default.updateWith;
  7983. wrapperLodash_default.values = object_default_default.values;
  7984. wrapperLodash_default.valuesIn = object_default_default.valuesIn;
  7985. wrapperLodash_default.without = array_default_default.without;
  7986. wrapperLodash_default.words = string_default_default.words;
  7987. wrapperLodash_default.wrap = function_default_default.wrap;
  7988. wrapperLodash_default.xor = array_default_default.xor;
  7989. wrapperLodash_default.xorBy = array_default_default.xorBy;
  7990. wrapperLodash_default.xorWith = array_default_default.xorWith;
  7991. wrapperLodash_default.zip = array_default_default.zip;
  7992. wrapperLodash_default.zipObject = array_default_default.zipObject;
  7993. wrapperLodash_default.zipObjectDeep = array_default_default.zipObjectDeep;
  7994. wrapperLodash_default.zipWith = array_default_default.zipWith;
  7995. wrapperLodash_default.entries = object_default_default.toPairs;
  7996. wrapperLodash_default.entriesIn = object_default_default.toPairsIn;
  7997. wrapperLodash_default.extend = object_default_default.assignIn;
  7998. wrapperLodash_default.extendWith = object_default_default.assignInWith;
  7999. mixin2(wrapperLodash_default, wrapperLodash_default);
  8000. wrapperLodash_default.add = math_default_default.add;
  8001. wrapperLodash_default.attempt = util_default_default.attempt;
  8002. wrapperLodash_default.camelCase = string_default_default.camelCase;
  8003. wrapperLodash_default.capitalize = string_default_default.capitalize;
  8004. wrapperLodash_default.ceil = math_default_default.ceil;
  8005. wrapperLodash_default.clamp = number_default_default.clamp;
  8006. wrapperLodash_default.clone = lang_default_default.clone;
  8007. wrapperLodash_default.cloneDeep = lang_default_default.cloneDeep;
  8008. wrapperLodash_default.cloneDeepWith = lang_default_default.cloneDeepWith;
  8009. wrapperLodash_default.cloneWith = lang_default_default.cloneWith;
  8010. wrapperLodash_default.conformsTo = lang_default_default.conformsTo;
  8011. wrapperLodash_default.deburr = string_default_default.deburr;
  8012. wrapperLodash_default.defaultTo = util_default_default.defaultTo;
  8013. wrapperLodash_default.divide = math_default_default.divide;
  8014. wrapperLodash_default.endsWith = string_default_default.endsWith;
  8015. wrapperLodash_default.eq = lang_default_default.eq;
  8016. wrapperLodash_default.escape = string_default_default.escape;
  8017. wrapperLodash_default.escapeRegExp = string_default_default.escapeRegExp;
  8018. wrapperLodash_default.every = collection_default_default.every;
  8019. wrapperLodash_default.find = collection_default_default.find;
  8020. wrapperLodash_default.findIndex = array_default_default.findIndex;
  8021. wrapperLodash_default.findKey = object_default_default.findKey;
  8022. wrapperLodash_default.findLast = collection_default_default.findLast;
  8023. wrapperLodash_default.findLastIndex = array_default_default.findLastIndex;
  8024. wrapperLodash_default.findLastKey = object_default_default.findLastKey;
  8025. wrapperLodash_default.floor = math_default_default.floor;
  8026. wrapperLodash_default.forEach = collection_default_default.forEach;
  8027. wrapperLodash_default.forEachRight = collection_default_default.forEachRight;
  8028. wrapperLodash_default.forIn = object_default_default.forIn;
  8029. wrapperLodash_default.forInRight = object_default_default.forInRight;
  8030. wrapperLodash_default.forOwn = object_default_default.forOwn;
  8031. wrapperLodash_default.forOwnRight = object_default_default.forOwnRight;
  8032. wrapperLodash_default.get = object_default_default.get;
  8033. wrapperLodash_default.gt = lang_default_default.gt;
  8034. wrapperLodash_default.gte = lang_default_default.gte;
  8035. wrapperLodash_default.has = object_default_default.has;
  8036. wrapperLodash_default.hasIn = object_default_default.hasIn;
  8037. wrapperLodash_default.head = array_default_default.head;
  8038. wrapperLodash_default.identity = identity_default;
  8039. wrapperLodash_default.includes = collection_default_default.includes;
  8040. wrapperLodash_default.indexOf = array_default_default.indexOf;
  8041. wrapperLodash_default.inRange = number_default_default.inRange;
  8042. wrapperLodash_default.invoke = object_default_default.invoke;
  8043. wrapperLodash_default.isArguments = lang_default_default.isArguments;
  8044. wrapperLodash_default.isArray = isArray_default;
  8045. wrapperLodash_default.isArrayBuffer = lang_default_default.isArrayBuffer;
  8046. wrapperLodash_default.isArrayLike = lang_default_default.isArrayLike;
  8047. wrapperLodash_default.isArrayLikeObject = lang_default_default.isArrayLikeObject;
  8048. wrapperLodash_default.isBoolean = lang_default_default.isBoolean;
  8049. wrapperLodash_default.isBuffer = lang_default_default.isBuffer;
  8050. wrapperLodash_default.isDate = lang_default_default.isDate;
  8051. wrapperLodash_default.isElement = lang_default_default.isElement;
  8052. wrapperLodash_default.isEmpty = lang_default_default.isEmpty;
  8053. wrapperLodash_default.isEqual = lang_default_default.isEqual;
  8054. wrapperLodash_default.isEqualWith = lang_default_default.isEqualWith;
  8055. wrapperLodash_default.isError = lang_default_default.isError;
  8056. wrapperLodash_default.isFinite = lang_default_default.isFinite;
  8057. wrapperLodash_default.isFunction = lang_default_default.isFunction;
  8058. wrapperLodash_default.isInteger = lang_default_default.isInteger;
  8059. wrapperLodash_default.isLength = lang_default_default.isLength;
  8060. wrapperLodash_default.isMap = lang_default_default.isMap;
  8061. wrapperLodash_default.isMatch = lang_default_default.isMatch;
  8062. wrapperLodash_default.isMatchWith = lang_default_default.isMatchWith;
  8063. wrapperLodash_default.isNaN = lang_default_default.isNaN;
  8064. wrapperLodash_default.isNative = lang_default_default.isNative;
  8065. wrapperLodash_default.isNil = lang_default_default.isNil;
  8066. wrapperLodash_default.isNull = lang_default_default.isNull;
  8067. wrapperLodash_default.isNumber = lang_default_default.isNumber;
  8068. wrapperLodash_default.isObject = isObject_default;
  8069. wrapperLodash_default.isObjectLike = lang_default_default.isObjectLike;
  8070. wrapperLodash_default.isPlainObject = lang_default_default.isPlainObject;
  8071. wrapperLodash_default.isRegExp = lang_default_default.isRegExp;
  8072. wrapperLodash_default.isSafeInteger = lang_default_default.isSafeInteger;
  8073. wrapperLodash_default.isSet = lang_default_default.isSet;
  8074. wrapperLodash_default.isString = lang_default_default.isString;
  8075. wrapperLodash_default.isSymbol = lang_default_default.isSymbol;
  8076. wrapperLodash_default.isTypedArray = lang_default_default.isTypedArray;
  8077. wrapperLodash_default.isUndefined = lang_default_default.isUndefined;
  8078. wrapperLodash_default.isWeakMap = lang_default_default.isWeakMap;
  8079. wrapperLodash_default.isWeakSet = lang_default_default.isWeakSet;
  8080. wrapperLodash_default.join = array_default_default.join;
  8081. wrapperLodash_default.kebabCase = string_default_default.kebabCase;
  8082. wrapperLodash_default.last = last_default;
  8083. wrapperLodash_default.lastIndexOf = array_default_default.lastIndexOf;
  8084. wrapperLodash_default.lowerCase = string_default_default.lowerCase;
  8085. wrapperLodash_default.lowerFirst = string_default_default.lowerFirst;
  8086. wrapperLodash_default.lt = lang_default_default.lt;
  8087. wrapperLodash_default.lte = lang_default_default.lte;
  8088. wrapperLodash_default.max = math_default_default.max;
  8089. wrapperLodash_default.maxBy = math_default_default.maxBy;
  8090. wrapperLodash_default.mean = math_default_default.mean;
  8091. wrapperLodash_default.meanBy = math_default_default.meanBy;
  8092. wrapperLodash_default.min = math_default_default.min;
  8093. wrapperLodash_default.minBy = math_default_default.minBy;
  8094. wrapperLodash_default.stubArray = util_default_default.stubArray;
  8095. wrapperLodash_default.stubFalse = util_default_default.stubFalse;
  8096. wrapperLodash_default.stubObject = util_default_default.stubObject;
  8097. wrapperLodash_default.stubString = util_default_default.stubString;
  8098. wrapperLodash_default.stubTrue = util_default_default.stubTrue;
  8099. wrapperLodash_default.multiply = math_default_default.multiply;
  8100. wrapperLodash_default.nth = array_default_default.nth;
  8101. wrapperLodash_default.noop = util_default_default.noop;
  8102. wrapperLodash_default.now = date_default_default.now;
  8103. wrapperLodash_default.pad = string_default_default.pad;
  8104. wrapperLodash_default.padEnd = string_default_default.padEnd;
  8105. wrapperLodash_default.padStart = string_default_default.padStart;
  8106. wrapperLodash_default.parseInt = string_default_default.parseInt;
  8107. wrapperLodash_default.random = number_default_default.random;
  8108. wrapperLodash_default.reduce = collection_default_default.reduce;
  8109. wrapperLodash_default.reduceRight = collection_default_default.reduceRight;
  8110. wrapperLodash_default.repeat = string_default_default.repeat;
  8111. wrapperLodash_default.replace = string_default_default.replace;
  8112. wrapperLodash_default.result = object_default_default.result;
  8113. wrapperLodash_default.round = math_default_default.round;
  8114. wrapperLodash_default.sample = collection_default_default.sample;
  8115. wrapperLodash_default.size = collection_default_default.size;
  8116. wrapperLodash_default.snakeCase = string_default_default.snakeCase;
  8117. wrapperLodash_default.some = collection_default_default.some;
  8118. wrapperLodash_default.sortedIndex = array_default_default.sortedIndex;
  8119. wrapperLodash_default.sortedIndexBy = array_default_default.sortedIndexBy;
  8120. wrapperLodash_default.sortedIndexOf = array_default_default.sortedIndexOf;
  8121. wrapperLodash_default.sortedLastIndex = array_default_default.sortedLastIndex;
  8122. wrapperLodash_default.sortedLastIndexBy = array_default_default.sortedLastIndexBy;
  8123. wrapperLodash_default.sortedLastIndexOf = array_default_default.sortedLastIndexOf;
  8124. wrapperLodash_default.startCase = string_default_default.startCase;
  8125. wrapperLodash_default.startsWith = string_default_default.startsWith;
  8126. wrapperLodash_default.subtract = math_default_default.subtract;
  8127. wrapperLodash_default.sum = math_default_default.sum;
  8128. wrapperLodash_default.sumBy = math_default_default.sumBy;
  8129. wrapperLodash_default.template = string_default_default.template;
  8130. wrapperLodash_default.times = util_default_default.times;
  8131. wrapperLodash_default.toFinite = lang_default_default.toFinite;
  8132. wrapperLodash_default.toInteger = toInteger_default;
  8133. wrapperLodash_default.toLength = lang_default_default.toLength;
  8134. wrapperLodash_default.toLower = string_default_default.toLower;
  8135. wrapperLodash_default.toNumber = lang_default_default.toNumber;
  8136. wrapperLodash_default.toSafeInteger = lang_default_default.toSafeInteger;
  8137. wrapperLodash_default.toString = lang_default_default.toString;
  8138. wrapperLodash_default.toUpper = string_default_default.toUpper;
  8139. wrapperLodash_default.trim = string_default_default.trim;
  8140. wrapperLodash_default.trimEnd = string_default_default.trimEnd;
  8141. wrapperLodash_default.trimStart = string_default_default.trimStart;
  8142. wrapperLodash_default.truncate = string_default_default.truncate;
  8143. wrapperLodash_default.unescape = string_default_default.unescape;
  8144. wrapperLodash_default.uniqueId = util_default_default.uniqueId;
  8145. wrapperLodash_default.upperCase = string_default_default.upperCase;
  8146. wrapperLodash_default.upperFirst = string_default_default.upperFirst;
  8147. wrapperLodash_default.each = collection_default_default.forEach;
  8148. wrapperLodash_default.eachRight = collection_default_default.forEachRight;
  8149. wrapperLodash_default.first = array_default_default.head;
  8150. mixin2(wrapperLodash_default, function() {
  8151. var source = {};
  8152. baseForOwn_default(wrapperLodash_default, function(func, methodName) {
  8153. if (!hasOwnProperty25.call(wrapperLodash_default.prototype, methodName)) {
  8154. source[methodName] = func;
  8155. }
  8156. });
  8157. return source;
  8158. }(), { "chain": false });
  8159. wrapperLodash_default.VERSION = VERSION;
  8160. (wrapperLodash_default.templateSettings = string_default_default.templateSettings).imports._ = wrapperLodash_default;
  8161. arrayEach_default(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
  8162. wrapperLodash_default[methodName].placeholder = wrapperLodash_default;
  8163. });
  8164. arrayEach_default(["drop", "take"], function(methodName, index) {
  8165. LazyWrapper_default.prototype[methodName] = function(n) {
  8166. n = n === void 0 ? 1 : nativeMax17(toInteger_default(n), 0);
  8167. var result2 = this.__filtered__ && !index ? new LazyWrapper_default(this) : this.clone();
  8168. if (result2.__filtered__) {
  8169. result2.__takeCount__ = nativeMin15(n, result2.__takeCount__);
  8170. } else {
  8171. result2.__views__.push({
  8172. "size": nativeMin15(n, MAX_ARRAY_LENGTH7),
  8173. "type": methodName + (result2.__dir__ < 0 ? "Right" : "")
  8174. });
  8175. }
  8176. return result2;
  8177. };
  8178. LazyWrapper_default.prototype[methodName + "Right"] = function(n) {
  8179. return this.reverse()[methodName](n).reverse();
  8180. };
  8181. });
  8182. arrayEach_default(["filter", "map", "takeWhile"], function(methodName, index) {
  8183. var type4 = index + 1, isFilter = type4 == LAZY_FILTER_FLAG2 || type4 == LAZY_WHILE_FLAG;
  8184. LazyWrapper_default.prototype[methodName] = function(iteratee2) {
  8185. var result2 = this.clone();
  8186. result2.__iteratees__.push({
  8187. "iteratee": baseIteratee_default(iteratee2, 3),
  8188. "type": type4
  8189. });
  8190. result2.__filtered__ = result2.__filtered__ || isFilter;
  8191. return result2;
  8192. };
  8193. });
  8194. arrayEach_default(["head", "last"], function(methodName, index) {
  8195. var takeName = "take" + (index ? "Right" : "");
  8196. LazyWrapper_default.prototype[methodName] = function() {
  8197. return this[takeName](1).value()[0];
  8198. };
  8199. });
  8200. arrayEach_default(["initial", "tail"], function(methodName, index) {
  8201. var dropName = "drop" + (index ? "" : "Right");
  8202. LazyWrapper_default.prototype[methodName] = function() {
  8203. return this.__filtered__ ? new LazyWrapper_default(this) : this[dropName](1);
  8204. };
  8205. });
  8206. LazyWrapper_default.prototype.compact = function() {
  8207. return this.filter(identity_default);
  8208. };
  8209. LazyWrapper_default.prototype.find = function(predicate) {
  8210. return this.filter(predicate).head();
  8211. };
  8212. LazyWrapper_default.prototype.findLast = function(predicate) {
  8213. return this.reverse().find(predicate);
  8214. };
  8215. LazyWrapper_default.prototype.invokeMap = baseRest_default(function(path, args) {
  8216. if (typeof path == "function") {
  8217. return new LazyWrapper_default(this);
  8218. }
  8219. return this.map(function(value) {
  8220. return baseInvoke_default(value, path, args);
  8221. });
  8222. });
  8223. LazyWrapper_default.prototype.reject = function(predicate) {
  8224. return this.filter(negate_default(baseIteratee_default(predicate)));
  8225. };
  8226. LazyWrapper_default.prototype.slice = function(start, end) {
  8227. start = toInteger_default(start);
  8228. var result2 = this;
  8229. if (result2.__filtered__ && (start > 0 || end < 0)) {
  8230. return new LazyWrapper_default(result2);
  8231. }
  8232. if (start < 0) {
  8233. result2 = result2.takeRight(-start);
  8234. } else if (start) {
  8235. result2 = result2.drop(start);
  8236. }
  8237. if (end !== void 0) {
  8238. end = toInteger_default(end);
  8239. result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start);
  8240. }
  8241. return result2;
  8242. };
  8243. LazyWrapper_default.prototype.takeRightWhile = function(predicate) {
  8244. return this.reverse().takeWhile(predicate).reverse();
  8245. };
  8246. LazyWrapper_default.prototype.toArray = function() {
  8247. return this.take(MAX_ARRAY_LENGTH7);
  8248. };
  8249. baseForOwn_default(LazyWrapper_default.prototype, function(func, methodName) {
  8250. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = wrapperLodash_default[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName);
  8251. if (!lodashFunc) {
  8252. return;
  8253. }
  8254. wrapperLodash_default.prototype[methodName] = function() {
  8255. var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper_default, iteratee2 = args[0], useLazy = isLazy || isArray_default(value);
  8256. var interceptor = function(value2) {
  8257. var result3 = lodashFunc.apply(wrapperLodash_default, arrayPush_default([value2], args));
  8258. return isTaker && chainAll ? result3[0] : result3;
  8259. };
  8260. if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) {
  8261. isLazy = useLazy = false;
  8262. }
  8263. var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid;
  8264. if (!retUnwrapped && useLazy) {
  8265. value = onlyLazy ? value : new LazyWrapper_default(this);
  8266. var result2 = func.apply(value, args);
  8267. result2.__actions__.push({ "func": thru_default, "args": [interceptor], "thisArg": void 0 });
  8268. return new LodashWrapper_default(result2, chainAll);
  8269. }
  8270. if (isUnwrapped && onlyLazy) {
  8271. return func.apply(this, args);
  8272. }
  8273. result2 = this.thru(interceptor);
  8274. return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2;
  8275. };
  8276. });
  8277. arrayEach_default(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) {
  8278. var func = arrayProto6[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  8279. wrapperLodash_default.prototype[methodName] = function() {
  8280. var args = arguments;
  8281. if (retUnwrapped && !this.__chain__) {
  8282. var value = this.value();
  8283. return func.apply(isArray_default(value) ? value : [], args);
  8284. }
  8285. return this[chainName](function(value2) {
  8286. return func.apply(isArray_default(value2) ? value2 : [], args);
  8287. });
  8288. };
  8289. });
  8290. baseForOwn_default(LazyWrapper_default.prototype, function(func, methodName) {
  8291. var lodashFunc = wrapperLodash_default[methodName];
  8292. if (lodashFunc) {
  8293. var key = lodashFunc.name + "";
  8294. if (!hasOwnProperty25.call(realNames_default, key)) {
  8295. realNames_default[key] = [];
  8296. }
  8297. realNames_default[key].push({ "name": methodName, "func": lodashFunc });
  8298. }
  8299. });
  8300. realNames_default[createHybrid_default(void 0, WRAP_BIND_KEY_FLAG7).name] = [{
  8301. "name": "wrapper",
  8302. "func": void 0
  8303. }];
  8304. LazyWrapper_default.prototype.clone = lazyClone_default;
  8305. LazyWrapper_default.prototype.reverse = lazyReverse_default;
  8306. LazyWrapper_default.prototype.value = lazyValue_default;
  8307. wrapperLodash_default.prototype.at = seq_default_default.at;
  8308. wrapperLodash_default.prototype.chain = seq_default_default.wrapperChain;
  8309. wrapperLodash_default.prototype.commit = seq_default_default.commit;
  8310. wrapperLodash_default.prototype.next = seq_default_default.next;
  8311. wrapperLodash_default.prototype.plant = seq_default_default.plant;
  8312. wrapperLodash_default.prototype.reverse = seq_default_default.reverse;
  8313. wrapperLodash_default.prototype.toJSON = wrapperLodash_default.prototype.valueOf = wrapperLodash_default.prototype.value = seq_default_default.value;
  8314. wrapperLodash_default.prototype.first = wrapperLodash_default.prototype.head;
  8315. if (symIterator2) {
  8316. wrapperLodash_default.prototype[symIterator2] = seq_default_default.toIterator;
  8317. }
  8318. // node_modules/element-plus/es/utils/types.mjs
  8319. var isUndefined2 = (val) => val === void 0;
  8320. var isBoolean2 = (val) => typeof val === "boolean";
  8321. var isNumber2 = (val) => typeof val === "number";
  8322. var isEmpty2 = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
  8323. var isElement2 = (e) => {
  8324. if (typeof Element === "undefined")
  8325. return false;
  8326. return e instanceof Element;
  8327. };
  8328. var isPropAbsent = (prop) => isNil_default(prop);
  8329. var isStringNumber = (val) => {
  8330. if (!isString(val)) {
  8331. return false;
  8332. }
  8333. return !Number.isNaN(Number(val));
  8334. };
  8335. var isWindow = (val) => val === window;
  8336. // node_modules/@vueuse/shared/index.mjs
  8337. var __defProp$9 = Object.defineProperty;
  8338. var __defProps$6 = Object.defineProperties;
  8339. var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
  8340. var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
  8341. var __hasOwnProp$b = Object.prototype.hasOwnProperty;
  8342. var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
  8343. var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  8344. var __spreadValues$9 = (a2, b2) => {
  8345. for (var prop in b2 || (b2 = {}))
  8346. if (__hasOwnProp$b.call(b2, prop))
  8347. __defNormalProp$9(a2, prop, b2[prop]);
  8348. if (__getOwnPropSymbols$b)
  8349. for (var prop of __getOwnPropSymbols$b(b2)) {
  8350. if (__propIsEnum$b.call(b2, prop))
  8351. __defNormalProp$9(a2, prop, b2[prop]);
  8352. }
  8353. return a2;
  8354. };
  8355. var __spreadProps$6 = (a2, b2) => __defProps$6(a2, __getOwnPropDescs$6(b2));
  8356. function computedEager(fn2, options) {
  8357. var _a2;
  8358. const result2 = shallowRef();
  8359. watchEffect(() => {
  8360. result2.value = fn2();
  8361. }, __spreadProps$6(__spreadValues$9({}, options), {
  8362. flush: (_a2 = options == null ? void 0 : options.flush) != null ? _a2 : "sync"
  8363. }));
  8364. return readonly(result2);
  8365. }
  8366. var _a;
  8367. var isClient = typeof window !== "undefined";
  8368. var isDef = (val) => typeof val !== "undefined";
  8369. var isFunction3 = (val) => typeof val === "function";
  8370. var isString3 = (val) => typeof val === "string";
  8371. var clamp2 = (n, min4, max4) => Math.min(max4, Math.max(min4, n));
  8372. var noop2 = () => {
  8373. };
  8374. var isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
  8375. function resolveUnref(r) {
  8376. return typeof r === "function" ? r() : unref(r);
  8377. }
  8378. function createFilterWrapper(filter2, fn2) {
  8379. function wrapper(...args) {
  8380. return new Promise((resolve, reject2) => {
  8381. Promise.resolve(filter2(() => fn2.apply(this, args), { fn: fn2, thisArg: this, args })).then(resolve).catch(reject2);
  8382. });
  8383. }
  8384. return wrapper;
  8385. }
  8386. function debounceFilter(ms, options = {}) {
  8387. let timer;
  8388. let maxTimer;
  8389. let lastRejector = noop2;
  8390. const _clearTimeout = (timer2) => {
  8391. clearTimeout(timer2);
  8392. lastRejector();
  8393. lastRejector = noop2;
  8394. };
  8395. const filter2 = (invoke2) => {
  8396. const duration = resolveUnref(ms);
  8397. const maxDuration = resolveUnref(options.maxWait);
  8398. if (timer)
  8399. _clearTimeout(timer);
  8400. if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
  8401. if (maxTimer) {
  8402. _clearTimeout(maxTimer);
  8403. maxTimer = null;
  8404. }
  8405. return Promise.resolve(invoke2());
  8406. }
  8407. return new Promise((resolve, reject2) => {
  8408. lastRejector = options.rejectOnCancel ? reject2 : resolve;
  8409. if (maxDuration && !maxTimer) {
  8410. maxTimer = setTimeout(() => {
  8411. if (timer)
  8412. _clearTimeout(timer);
  8413. maxTimer = null;
  8414. resolve(invoke2());
  8415. }, maxDuration);
  8416. }
  8417. timer = setTimeout(() => {
  8418. if (maxTimer)
  8419. _clearTimeout(maxTimer);
  8420. maxTimer = null;
  8421. resolve(invoke2());
  8422. }, duration);
  8423. });
  8424. };
  8425. return filter2;
  8426. }
  8427. function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
  8428. let lastExec = 0;
  8429. let timer;
  8430. let isLeading = true;
  8431. let lastRejector = noop2;
  8432. let lastValue;
  8433. const clear = () => {
  8434. if (timer) {
  8435. clearTimeout(timer);
  8436. timer = void 0;
  8437. lastRejector();
  8438. lastRejector = noop2;
  8439. }
  8440. };
  8441. const filter2 = (_invoke) => {
  8442. const duration = resolveUnref(ms);
  8443. const elapsed = Date.now() - lastExec;
  8444. const invoke2 = () => {
  8445. return lastValue = _invoke();
  8446. };
  8447. clear();
  8448. if (duration <= 0) {
  8449. lastExec = Date.now();
  8450. return invoke2();
  8451. }
  8452. if (elapsed > duration && (leading || !isLeading)) {
  8453. lastExec = Date.now();
  8454. invoke2();
  8455. } else if (trailing) {
  8456. lastValue = new Promise((resolve, reject2) => {
  8457. lastRejector = rejectOnCancel ? reject2 : resolve;
  8458. timer = setTimeout(() => {
  8459. lastExec = Date.now();
  8460. isLeading = true;
  8461. resolve(invoke2());
  8462. clear();
  8463. }, Math.max(0, duration - elapsed));
  8464. });
  8465. }
  8466. if (!leading && !timer)
  8467. timer = setTimeout(() => isLeading = true, duration);
  8468. isLeading = false;
  8469. return lastValue;
  8470. };
  8471. return filter2;
  8472. }
  8473. function identity2(arg) {
  8474. return arg;
  8475. }
  8476. function computedWithControl(source, fn2) {
  8477. let v2 = void 0;
  8478. let track;
  8479. let trigger;
  8480. const dirty = ref(true);
  8481. const update2 = () => {
  8482. dirty.value = true;
  8483. trigger();
  8484. };
  8485. watch(source, update2, { flush: "sync" });
  8486. const get2 = isFunction3(fn2) ? fn2 : fn2.get;
  8487. const set3 = isFunction3(fn2) ? void 0 : fn2.set;
  8488. const result2 = customRef((_track, _trigger) => {
  8489. track = _track;
  8490. trigger = _trigger;
  8491. return {
  8492. get() {
  8493. if (dirty.value) {
  8494. v2 = get2();
  8495. dirty.value = false;
  8496. }
  8497. track();
  8498. return v2;
  8499. },
  8500. set(v22) {
  8501. set3 == null ? void 0 : set3(v22);
  8502. }
  8503. };
  8504. });
  8505. if (Object.isExtensible(result2))
  8506. result2.trigger = update2;
  8507. return result2;
  8508. }
  8509. function tryOnScopeDispose(fn2) {
  8510. if (getCurrentScope()) {
  8511. onScopeDispose(fn2);
  8512. return true;
  8513. }
  8514. return false;
  8515. }
  8516. function toReactive(objectRef) {
  8517. if (!isRef(objectRef))
  8518. return reactive(objectRef);
  8519. const proxy = new Proxy({}, {
  8520. get(_2, p2, receiver) {
  8521. return unref(Reflect.get(objectRef.value, p2, receiver));
  8522. },
  8523. set(_2, p2, value) {
  8524. if (isRef(objectRef.value[p2]) && !isRef(value))
  8525. objectRef.value[p2].value = value;
  8526. else
  8527. objectRef.value[p2] = value;
  8528. return true;
  8529. },
  8530. deleteProperty(_2, p2) {
  8531. return Reflect.deleteProperty(objectRef.value, p2);
  8532. },
  8533. has(_2, p2) {
  8534. return Reflect.has(objectRef.value, p2);
  8535. },
  8536. ownKeys() {
  8537. return Object.keys(objectRef.value);
  8538. },
  8539. getOwnPropertyDescriptor() {
  8540. return {
  8541. enumerable: true,
  8542. configurable: true
  8543. };
  8544. }
  8545. });
  8546. return reactive(proxy);
  8547. }
  8548. function reactiveComputed(fn2) {
  8549. return toReactive(computed(fn2));
  8550. }
  8551. function useDebounceFn(fn2, ms = 200, options = {}) {
  8552. return createFilterWrapper(debounceFilter(ms, options), fn2);
  8553. }
  8554. function refDebounced(value, ms = 200, options = {}) {
  8555. const debounced = ref(value.value);
  8556. const updater = useDebounceFn(() => {
  8557. debounced.value = value.value;
  8558. }, ms, options);
  8559. watch(value, () => updater());
  8560. return debounced;
  8561. }
  8562. function useThrottleFn(fn2, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
  8563. return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn2);
  8564. }
  8565. function tryOnMounted(fn2, sync = true) {
  8566. if (getCurrentInstance())
  8567. onMounted(fn2);
  8568. else if (sync)
  8569. fn2();
  8570. else
  8571. nextTick(fn2);
  8572. }
  8573. function useTimeoutFn(cb, interval, options = {}) {
  8574. const {
  8575. immediate = true
  8576. } = options;
  8577. const isPending = ref(false);
  8578. let timer = null;
  8579. function clear() {
  8580. if (timer) {
  8581. clearTimeout(timer);
  8582. timer = null;
  8583. }
  8584. }
  8585. function stop() {
  8586. isPending.value = false;
  8587. clear();
  8588. }
  8589. function start(...args) {
  8590. clear();
  8591. isPending.value = true;
  8592. timer = setTimeout(() => {
  8593. isPending.value = false;
  8594. timer = null;
  8595. cb(...args);
  8596. }, resolveUnref(interval));
  8597. }
  8598. if (immediate) {
  8599. isPending.value = true;
  8600. if (isClient)
  8601. start();
  8602. }
  8603. tryOnScopeDispose(stop);
  8604. return {
  8605. isPending: readonly(isPending),
  8606. start,
  8607. stop
  8608. };
  8609. }
  8610. // node_modules/@vueuse/core/index.mjs
  8611. function unrefElement(elRef) {
  8612. var _a2;
  8613. const plain = resolveUnref(elRef);
  8614. return (_a2 = plain == null ? void 0 : plain.$el) != null ? _a2 : plain;
  8615. }
  8616. var defaultWindow = isClient ? window : void 0;
  8617. var defaultDocument = isClient ? window.document : void 0;
  8618. var defaultNavigator = isClient ? window.navigator : void 0;
  8619. var defaultLocation = isClient ? window.location : void 0;
  8620. function useEventListener(...args) {
  8621. let target2;
  8622. let events;
  8623. let listeners;
  8624. let options;
  8625. if (isString3(args[0]) || Array.isArray(args[0])) {
  8626. [events, listeners, options] = args;
  8627. target2 = defaultWindow;
  8628. } else {
  8629. [target2, events, listeners, options] = args;
  8630. }
  8631. if (!target2)
  8632. return noop2;
  8633. if (!Array.isArray(events))
  8634. events = [events];
  8635. if (!Array.isArray(listeners))
  8636. listeners = [listeners];
  8637. const cleanups = [];
  8638. const cleanup = () => {
  8639. cleanups.forEach((fn2) => fn2());
  8640. cleanups.length = 0;
  8641. };
  8642. const register2 = (el, event, listener, options2) => {
  8643. el.addEventListener(event, listener, options2);
  8644. return () => el.removeEventListener(event, listener, options2);
  8645. };
  8646. const stopWatch = watch(() => [unrefElement(target2), resolveUnref(options)], ([el, options2]) => {
  8647. cleanup();
  8648. if (!el)
  8649. return;
  8650. cleanups.push(...events.flatMap((event) => {
  8651. return listeners.map((listener) => register2(el, event, listener, options2));
  8652. }));
  8653. }, { immediate: true, flush: "post" });
  8654. const stop = () => {
  8655. stopWatch();
  8656. cleanup();
  8657. };
  8658. tryOnScopeDispose(stop);
  8659. return stop;
  8660. }
  8661. var _iOSWorkaround = false;
  8662. function onClickOutside(target2, handler, options = {}) {
  8663. const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
  8664. if (!window2)
  8665. return;
  8666. if (isIOS && !_iOSWorkaround) {
  8667. _iOSWorkaround = true;
  8668. Array.from(window2.document.body.children).forEach((el) => el.addEventListener("click", noop2));
  8669. }
  8670. let shouldListen = true;
  8671. const shouldIgnore = (event) => {
  8672. return ignore.some((target22) => {
  8673. if (typeof target22 === "string") {
  8674. return Array.from(window2.document.querySelectorAll(target22)).some((el) => el === event.target || event.composedPath().includes(el));
  8675. } else {
  8676. const el = unrefElement(target22);
  8677. return el && (event.target === el || event.composedPath().includes(el));
  8678. }
  8679. });
  8680. };
  8681. const listener = (event) => {
  8682. const el = unrefElement(target2);
  8683. if (!el || el === event.target || event.composedPath().includes(el))
  8684. return;
  8685. if (event.detail === 0)
  8686. shouldListen = !shouldIgnore(event);
  8687. if (!shouldListen) {
  8688. shouldListen = true;
  8689. return;
  8690. }
  8691. handler(event);
  8692. };
  8693. const cleanup = [
  8694. useEventListener(window2, "click", listener, { passive: true, capture }),
  8695. useEventListener(window2, "pointerdown", (e) => {
  8696. const el = unrefElement(target2);
  8697. if (el)
  8698. shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
  8699. }, { passive: true }),
  8700. detectIframe && useEventListener(window2, "blur", (event) => {
  8701. var _a2;
  8702. const el = unrefElement(target2);
  8703. if (((_a2 = window2.document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement)))
  8704. handler(event);
  8705. })
  8706. ].filter(Boolean);
  8707. const stop = () => cleanup.forEach((fn2) => fn2());
  8708. return stop;
  8709. }
  8710. function useActiveElement(options = {}) {
  8711. var _a2;
  8712. const { window: window2 = defaultWindow } = options;
  8713. const document2 = (_a2 = options.document) != null ? _a2 : window2 == null ? void 0 : window2.document;
  8714. const activeElement = computedWithControl(() => null, () => document2 == null ? void 0 : document2.activeElement);
  8715. if (window2) {
  8716. useEventListener(window2, "blur", (event) => {
  8717. if (event.relatedTarget !== null)
  8718. return;
  8719. activeElement.trigger();
  8720. }, true);
  8721. useEventListener(window2, "focus", activeElement.trigger, true);
  8722. }
  8723. return activeElement;
  8724. }
  8725. function useSupported(callback, sync = false) {
  8726. const isSupported = ref();
  8727. const update2 = () => isSupported.value = Boolean(callback());
  8728. update2();
  8729. tryOnMounted(update2, sync);
  8730. return isSupported;
  8731. }
  8732. function cloneFnJSON(source) {
  8733. return JSON.parse(JSON.stringify(source));
  8734. }
  8735. var _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
  8736. var globalKey = "__vueuse_ssr_handlers__";
  8737. _global[globalKey] = _global[globalKey] || {};
  8738. var handlers = _global[globalKey];
  8739. function useCssVar(prop, target2, { window: window2 = defaultWindow, initialValue = "" } = {}) {
  8740. const variable = ref(initialValue);
  8741. const elRef = computed(() => {
  8742. var _a2;
  8743. return unrefElement(target2) || ((_a2 = window2 == null ? void 0 : window2.document) == null ? void 0 : _a2.documentElement);
  8744. });
  8745. watch([elRef, () => resolveUnref(prop)], ([el, prop2]) => {
  8746. var _a2;
  8747. if (el && window2) {
  8748. const value = (_a2 = window2.getComputedStyle(el).getPropertyValue(prop2)) == null ? void 0 : _a2.trim();
  8749. variable.value = value || initialValue;
  8750. }
  8751. }, { immediate: true });
  8752. watch(variable, (val) => {
  8753. var _a2;
  8754. if ((_a2 = elRef.value) == null ? void 0 : _a2.style)
  8755. elRef.value.style.setProperty(resolveUnref(prop), val);
  8756. });
  8757. return variable;
  8758. }
  8759. function useDocumentVisibility({ document: document2 = defaultDocument } = {}) {
  8760. if (!document2)
  8761. return ref("visible");
  8762. const visibility = ref(document2.visibilityState);
  8763. useEventListener(document2, "visibilitychange", () => {
  8764. visibility.value = document2.visibilityState;
  8765. });
  8766. return visibility;
  8767. }
  8768. var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
  8769. var __hasOwnProp$g = Object.prototype.hasOwnProperty;
  8770. var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
  8771. var __objRest$2 = (source, exclude) => {
  8772. var target2 = {};
  8773. for (var prop in source)
  8774. if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
  8775. target2[prop] = source[prop];
  8776. if (source != null && __getOwnPropSymbols$g)
  8777. for (var prop of __getOwnPropSymbols$g(source)) {
  8778. if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
  8779. target2[prop] = source[prop];
  8780. }
  8781. return target2;
  8782. };
  8783. function useResizeObserver(target2, callback, options = {}) {
  8784. const _a2 = options, { window: window2 = defaultWindow } = _a2, observerOptions = __objRest$2(_a2, ["window"]);
  8785. let observer;
  8786. const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
  8787. const cleanup = () => {
  8788. if (observer) {
  8789. observer.disconnect();
  8790. observer = void 0;
  8791. }
  8792. };
  8793. const stopWatch = watch(() => unrefElement(target2), (el) => {
  8794. cleanup();
  8795. if (isSupported.value && window2 && el) {
  8796. observer = new ResizeObserver(callback);
  8797. observer.observe(el, observerOptions);
  8798. }
  8799. }, { immediate: true, flush: "post" });
  8800. const stop = () => {
  8801. cleanup();
  8802. stopWatch();
  8803. };
  8804. tryOnScopeDispose(stop);
  8805. return {
  8806. isSupported,
  8807. stop
  8808. };
  8809. }
  8810. function useElementBounding(target2, options = {}) {
  8811. const {
  8812. reset = true,
  8813. windowResize = true,
  8814. windowScroll = true,
  8815. immediate = true
  8816. } = options;
  8817. const height = ref(0);
  8818. const bottom = ref(0);
  8819. const left = ref(0);
  8820. const right = ref(0);
  8821. const top = ref(0);
  8822. const width = ref(0);
  8823. const x2 = ref(0);
  8824. const y = ref(0);
  8825. function update2() {
  8826. const el = unrefElement(target2);
  8827. if (!el) {
  8828. if (reset) {
  8829. height.value = 0;
  8830. bottom.value = 0;
  8831. left.value = 0;
  8832. right.value = 0;
  8833. top.value = 0;
  8834. width.value = 0;
  8835. x2.value = 0;
  8836. y.value = 0;
  8837. }
  8838. return;
  8839. }
  8840. const rect = el.getBoundingClientRect();
  8841. height.value = rect.height;
  8842. bottom.value = rect.bottom;
  8843. left.value = rect.left;
  8844. right.value = rect.right;
  8845. top.value = rect.top;
  8846. width.value = rect.width;
  8847. x2.value = rect.x;
  8848. y.value = rect.y;
  8849. }
  8850. useResizeObserver(target2, update2);
  8851. watch(() => unrefElement(target2), (ele) => !ele && update2());
  8852. if (windowScroll)
  8853. useEventListener("scroll", update2, { capture: true, passive: true });
  8854. if (windowResize)
  8855. useEventListener("resize", update2, { passive: true });
  8856. tryOnMounted(() => {
  8857. if (immediate)
  8858. update2();
  8859. });
  8860. return {
  8861. height,
  8862. bottom,
  8863. left,
  8864. right,
  8865. top,
  8866. width,
  8867. x: x2,
  8868. y,
  8869. update: update2
  8870. };
  8871. }
  8872. function useElementSize(target2, initialSize = { width: 0, height: 0 }, options = {}) {
  8873. const { window: window2 = defaultWindow, box = "content-box" } = options;
  8874. const isSVG = computed(() => {
  8875. var _a2, _b;
  8876. return (_b = (_a2 = unrefElement(target2)) == null ? void 0 : _a2.namespaceURI) == null ? void 0 : _b.includes("svg");
  8877. });
  8878. const width = ref(initialSize.width);
  8879. const height = ref(initialSize.height);
  8880. useResizeObserver(target2, ([entry]) => {
  8881. const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
  8882. if (window2 && isSVG.value) {
  8883. const $elem = unrefElement(target2);
  8884. if ($elem) {
  8885. const styles = window2.getComputedStyle($elem);
  8886. width.value = parseFloat(styles.width);
  8887. height.value = parseFloat(styles.height);
  8888. }
  8889. } else {
  8890. if (boxSize) {
  8891. const formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize];
  8892. width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);
  8893. height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);
  8894. } else {
  8895. width.value = entry.contentRect.width;
  8896. height.value = entry.contentRect.height;
  8897. }
  8898. }
  8899. }, options);
  8900. watch(() => unrefElement(target2), (ele) => {
  8901. width.value = ele ? initialSize.width : 0;
  8902. height.value = ele ? initialSize.height : 0;
  8903. });
  8904. return {
  8905. width,
  8906. height
  8907. };
  8908. }
  8909. function useIntersectionObserver(target2, callback, options = {}) {
  8910. const {
  8911. root: root2,
  8912. rootMargin = "0px",
  8913. threshold = 0.1,
  8914. window: window2 = defaultWindow
  8915. } = options;
  8916. const isSupported = useSupported(() => window2 && "IntersectionObserver" in window2);
  8917. let cleanup = noop2;
  8918. const stopWatch = isSupported.value ? watch(() => ({
  8919. el: unrefElement(target2),
  8920. root: unrefElement(root2)
  8921. }), ({ el, root: root22 }) => {
  8922. cleanup();
  8923. if (!el)
  8924. return;
  8925. const observer = new IntersectionObserver(callback, {
  8926. root: root22,
  8927. rootMargin,
  8928. threshold
  8929. });
  8930. observer.observe(el);
  8931. cleanup = () => {
  8932. observer.disconnect();
  8933. cleanup = noop2;
  8934. };
  8935. }, { immediate: true, flush: "post" }) : noop2;
  8936. const stop = () => {
  8937. cleanup();
  8938. stopWatch();
  8939. };
  8940. tryOnScopeDispose(stop);
  8941. return {
  8942. isSupported,
  8943. stop
  8944. };
  8945. }
  8946. var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
  8947. var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
  8948. var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
  8949. var __objRest$1 = (source, exclude) => {
  8950. var target2 = {};
  8951. for (var prop in source)
  8952. if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
  8953. target2[prop] = source[prop];
  8954. if (source != null && __getOwnPropSymbols$8)
  8955. for (var prop of __getOwnPropSymbols$8(source)) {
  8956. if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
  8957. target2[prop] = source[prop];
  8958. }
  8959. return target2;
  8960. };
  8961. function useMutationObserver(target2, callback, options = {}) {
  8962. const _a2 = options, { window: window2 = defaultWindow } = _a2, mutationOptions = __objRest$1(_a2, ["window"]);
  8963. let observer;
  8964. const isSupported = useSupported(() => window2 && "MutationObserver" in window2);
  8965. const cleanup = () => {
  8966. if (observer) {
  8967. observer.disconnect();
  8968. observer = void 0;
  8969. }
  8970. };
  8971. const stopWatch = watch(() => unrefElement(target2), (el) => {
  8972. cleanup();
  8973. if (isSupported.value && window2 && el) {
  8974. observer = new MutationObserver(callback);
  8975. observer.observe(el, mutationOptions);
  8976. }
  8977. }, { immediate: true });
  8978. const stop = () => {
  8979. cleanup();
  8980. stopWatch();
  8981. };
  8982. tryOnScopeDispose(stop);
  8983. return {
  8984. isSupported,
  8985. stop
  8986. };
  8987. }
  8988. var defaultState = {
  8989. x: 0,
  8990. y: 0,
  8991. pointerId: 0,
  8992. pressure: 0,
  8993. tiltX: 0,
  8994. tiltY: 0,
  8995. width: 0,
  8996. height: 0,
  8997. twist: 0,
  8998. pointerType: null
  8999. };
  9000. var keys2 = Object.keys(defaultState);
  9001. var SwipeDirection;
  9002. (function(SwipeDirection2) {
  9003. SwipeDirection2["UP"] = "UP";
  9004. SwipeDirection2["RIGHT"] = "RIGHT";
  9005. SwipeDirection2["DOWN"] = "DOWN";
  9006. SwipeDirection2["LEFT"] = "LEFT";
  9007. SwipeDirection2["NONE"] = "NONE";
  9008. })(SwipeDirection || (SwipeDirection = {}));
  9009. var __defProp = Object.defineProperty;
  9010. var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  9011. var __hasOwnProp = Object.prototype.hasOwnProperty;
  9012. var __propIsEnum = Object.prototype.propertyIsEnumerable;
  9013. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  9014. var __spreadValues = (a2, b2) => {
  9015. for (var prop in b2 || (b2 = {}))
  9016. if (__hasOwnProp.call(b2, prop))
  9017. __defNormalProp(a2, prop, b2[prop]);
  9018. if (__getOwnPropSymbols)
  9019. for (var prop of __getOwnPropSymbols(b2)) {
  9020. if (__propIsEnum.call(b2, prop))
  9021. __defNormalProp(a2, prop, b2[prop]);
  9022. }
  9023. return a2;
  9024. };
  9025. var _TransitionPresets = {
  9026. easeInSine: [0.12, 0, 0.39, 0],
  9027. easeOutSine: [0.61, 1, 0.88, 1],
  9028. easeInOutSine: [0.37, 0, 0.63, 1],
  9029. easeInQuad: [0.11, 0, 0.5, 0],
  9030. easeOutQuad: [0.5, 1, 0.89, 1],
  9031. easeInOutQuad: [0.45, 0, 0.55, 1],
  9032. easeInCubic: [0.32, 0, 0.67, 0],
  9033. easeOutCubic: [0.33, 1, 0.68, 1],
  9034. easeInOutCubic: [0.65, 0, 0.35, 1],
  9035. easeInQuart: [0.5, 0, 0.75, 0],
  9036. easeOutQuart: [0.25, 1, 0.5, 1],
  9037. easeInOutQuart: [0.76, 0, 0.24, 1],
  9038. easeInQuint: [0.64, 0, 0.78, 0],
  9039. easeOutQuint: [0.22, 1, 0.36, 1],
  9040. easeInOutQuint: [0.83, 0, 0.17, 1],
  9041. easeInExpo: [0.7, 0, 0.84, 0],
  9042. easeOutExpo: [0.16, 1, 0.3, 1],
  9043. easeInOutExpo: [0.87, 0, 0.13, 1],
  9044. easeInCirc: [0.55, 0, 1, 0.45],
  9045. easeOutCirc: [0, 0.55, 0.45, 1],
  9046. easeInOutCirc: [0.85, 0, 0.15, 1],
  9047. easeInBack: [0.36, 0, 0.66, -0.56],
  9048. easeOutBack: [0.34, 1.56, 0.64, 1],
  9049. easeInOutBack: [0.68, -0.6, 0.32, 1.6]
  9050. };
  9051. var TransitionPresets = __spreadValues({
  9052. linear: identity2
  9053. }, _TransitionPresets);
  9054. function useVModel(props2, key, emit, options = {}) {
  9055. var _a2, _b, _c, _d, _e;
  9056. const {
  9057. clone: clone2 = false,
  9058. passive = false,
  9059. eventName,
  9060. deep = false,
  9061. defaultValue
  9062. } = options;
  9063. const vm = getCurrentInstance();
  9064. const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a2 = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a2.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
  9065. let event = eventName;
  9066. if (!key) {
  9067. if (isVue2) {
  9068. const modelOptions = (_e = (_d = vm == null ? void 0 : vm.proxy) == null ? void 0 : _d.$options) == null ? void 0 : _e.model;
  9069. key = (modelOptions == null ? void 0 : modelOptions.value) || "value";
  9070. if (!eventName)
  9071. event = (modelOptions == null ? void 0 : modelOptions.event) || "input";
  9072. } else {
  9073. key = "modelValue";
  9074. }
  9075. }
  9076. event = eventName || event || `update:${key.toString()}`;
  9077. const cloneFn = (val) => !clone2 ? val : isFunction3(clone2) ? clone2(val) : cloneFnJSON(val);
  9078. const getValue3 = () => isDef(props2[key]) ? cloneFn(props2[key]) : defaultValue;
  9079. if (passive) {
  9080. const initialValue = getValue3();
  9081. const proxy = ref(initialValue);
  9082. watch(() => props2[key], (v2) => proxy.value = cloneFn(v2));
  9083. watch(proxy, (v2) => {
  9084. if (v2 !== props2[key] || deep)
  9085. _emit(event, v2);
  9086. }, { deep });
  9087. return proxy;
  9088. } else {
  9089. return computed({
  9090. get() {
  9091. return getValue3();
  9092. },
  9093. set(value) {
  9094. _emit(event, value);
  9095. }
  9096. });
  9097. }
  9098. }
  9099. function useWindowFocus({ window: window2 = defaultWindow } = {}) {
  9100. if (!window2)
  9101. return ref(false);
  9102. const focused = ref(window2.document.hasFocus());
  9103. useEventListener(window2, "blur", () => {
  9104. focused.value = false;
  9105. });
  9106. useEventListener(window2, "focus", () => {
  9107. focused.value = true;
  9108. });
  9109. return focused;
  9110. }
  9111. function useWindowSize(options = {}) {
  9112. const {
  9113. window: window2 = defaultWindow,
  9114. initialWidth = Infinity,
  9115. initialHeight = Infinity,
  9116. listenOrientation = true,
  9117. includeScrollbar = true
  9118. } = options;
  9119. const width = ref(initialWidth);
  9120. const height = ref(initialHeight);
  9121. const update2 = () => {
  9122. if (window2) {
  9123. if (includeScrollbar) {
  9124. width.value = window2.innerWidth;
  9125. height.value = window2.innerHeight;
  9126. } else {
  9127. width.value = window2.document.documentElement.clientWidth;
  9128. height.value = window2.document.documentElement.clientHeight;
  9129. }
  9130. }
  9131. };
  9132. update2();
  9133. tryOnMounted(update2);
  9134. useEventListener("resize", update2, { passive: true });
  9135. if (listenOrientation)
  9136. useEventListener("orientationchange", update2, { passive: true });
  9137. return { width, height };
  9138. }
  9139. // node_modules/element-plus/es/utils/error.mjs
  9140. var ElementPlusError = class extends Error {
  9141. constructor(m2) {
  9142. super(m2);
  9143. this.name = "ElementPlusError";
  9144. }
  9145. };
  9146. function throwError(scope, m2) {
  9147. throw new ElementPlusError(`[${scope}] ${m2}`);
  9148. }
  9149. function debugWarn(scope, message2) {
  9150. const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message2}`) : scope;
  9151. console.warn(error);
  9152. }
  9153. // node_modules/element-plus/es/hooks/use-z-index/index.mjs
  9154. var initial2 = {
  9155. current: 0
  9156. };
  9157. var zIndex = ref(0);
  9158. var defaultInitialZIndex = 2e3;
  9159. var ZINDEX_INJECTION_KEY = Symbol("elZIndexContextKey");
  9160. var zIndexContextKey = Symbol("zIndexContextKey");
  9161. var useZIndex = (zIndexOverrides) => {
  9162. const increasingInjection = getCurrentInstance() ? inject(ZINDEX_INJECTION_KEY, initial2) : initial2;
  9163. const zIndexInjection = zIndexOverrides || (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0);
  9164. const initialZIndex = computed(() => {
  9165. const zIndexFromInjection = unref(zIndexInjection);
  9166. return isNumber2(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
  9167. });
  9168. const currentZIndex = computed(() => initialZIndex.value + zIndex.value);
  9169. const nextZIndex = () => {
  9170. increasingInjection.current++;
  9171. zIndex.value = increasingInjection.current;
  9172. return currentZIndex.value;
  9173. };
  9174. if (!isClient && !inject(ZINDEX_INJECTION_KEY)) {
  9175. debugWarn("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
  9176. usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
  9177. }
  9178. return {
  9179. initialZIndex,
  9180. currentZIndex,
  9181. nextZIndex
  9182. };
  9183. };
  9184. // node_modules/element-plus/es/locale/lang/en.mjs
  9185. var English = {
  9186. name: "en",
  9187. el: {
  9188. breadcrumb: {
  9189. label: "Breadcrumb"
  9190. },
  9191. colorpicker: {
  9192. confirm: "OK",
  9193. clear: "Clear",
  9194. defaultLabel: "color picker",
  9195. description: "current color is {color}. press enter to select a new color.",
  9196. alphaLabel: "pick alpha value",
  9197. alphaDescription: "alpha {alpha}, current color is {color}",
  9198. hueLabel: "pick hue value",
  9199. hueDescription: "hue {hue}, current color is {color}",
  9200. svLabel: "pick saturation and brightness value",
  9201. svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
  9202. predefineDescription: "select {value} as the color"
  9203. },
  9204. datepicker: {
  9205. now: "Now",
  9206. today: "Today",
  9207. cancel: "Cancel",
  9208. clear: "Clear",
  9209. confirm: "OK",
  9210. dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
  9211. monthTablePrompt: "Use the arrow keys and enter to select the month",
  9212. yearTablePrompt: "Use the arrow keys and enter to select the year",
  9213. selectedDate: "Selected date",
  9214. selectDate: "Select date",
  9215. selectTime: "Select time",
  9216. startDate: "Start Date",
  9217. startTime: "Start Time",
  9218. endDate: "End Date",
  9219. endTime: "End Time",
  9220. prevYear: "Previous Year",
  9221. nextYear: "Next Year",
  9222. prevMonth: "Previous Month",
  9223. nextMonth: "Next Month",
  9224. year: "",
  9225. month1: "January",
  9226. month2: "February",
  9227. month3: "March",
  9228. month4: "April",
  9229. month5: "May",
  9230. month6: "June",
  9231. month7: "July",
  9232. month8: "August",
  9233. month9: "September",
  9234. month10: "October",
  9235. month11: "November",
  9236. month12: "December",
  9237. weeks: {
  9238. sun: "Sun",
  9239. mon: "Mon",
  9240. tue: "Tue",
  9241. wed: "Wed",
  9242. thu: "Thu",
  9243. fri: "Fri",
  9244. sat: "Sat"
  9245. },
  9246. weeksFull: {
  9247. sun: "Sunday",
  9248. mon: "Monday",
  9249. tue: "Tuesday",
  9250. wed: "Wednesday",
  9251. thu: "Thursday",
  9252. fri: "Friday",
  9253. sat: "Saturday"
  9254. },
  9255. months: {
  9256. jan: "Jan",
  9257. feb: "Feb",
  9258. mar: "Mar",
  9259. apr: "Apr",
  9260. may: "May",
  9261. jun: "Jun",
  9262. jul: "Jul",
  9263. aug: "Aug",
  9264. sep: "Sep",
  9265. oct: "Oct",
  9266. nov: "Nov",
  9267. dec: "Dec"
  9268. }
  9269. },
  9270. inputNumber: {
  9271. decrease: "decrease number",
  9272. increase: "increase number"
  9273. },
  9274. select: {
  9275. loading: "Loading",
  9276. noMatch: "No matching data",
  9277. noData: "No data",
  9278. placeholder: "Select"
  9279. },
  9280. mention: {
  9281. loading: "Loading"
  9282. },
  9283. dropdown: {
  9284. toggleDropdown: "Toggle Dropdown"
  9285. },
  9286. cascader: {
  9287. noMatch: "No matching data",
  9288. loading: "Loading",
  9289. placeholder: "Select",
  9290. noData: "No data"
  9291. },
  9292. pagination: {
  9293. goto: "Go to",
  9294. pagesize: "/page",
  9295. total: "Total {total}",
  9296. pageClassifier: "",
  9297. page: "Page",
  9298. prev: "Go to previous page",
  9299. next: "Go to next page",
  9300. currentPage: "page {pager}",
  9301. prevPages: "Previous {pager} pages",
  9302. nextPages: "Next {pager} pages",
  9303. deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
  9304. },
  9305. dialog: {
  9306. close: "Close this dialog"
  9307. },
  9308. drawer: {
  9309. close: "Close this dialog"
  9310. },
  9311. messagebox: {
  9312. title: "Message",
  9313. confirm: "OK",
  9314. cancel: "Cancel",
  9315. error: "Illegal input",
  9316. close: "Close this dialog"
  9317. },
  9318. upload: {
  9319. deleteTip: "press delete to remove",
  9320. delete: "Delete",
  9321. preview: "Preview",
  9322. continue: "Continue"
  9323. },
  9324. slider: {
  9325. defaultLabel: "slider between {min} and {max}",
  9326. defaultRangeStartLabel: "pick start value",
  9327. defaultRangeEndLabel: "pick end value"
  9328. },
  9329. table: {
  9330. emptyText: "No Data",
  9331. confirmFilter: "Confirm",
  9332. resetFilter: "Reset",
  9333. clearFilter: "All",
  9334. sumText: "Sum"
  9335. },
  9336. tour: {
  9337. next: "Next",
  9338. previous: "Previous",
  9339. finish: "Finish",
  9340. close: "Close this dialog"
  9341. },
  9342. tree: {
  9343. emptyText: "No Data"
  9344. },
  9345. transfer: {
  9346. noMatch: "No matching data",
  9347. noData: "No data",
  9348. titles: ["List 1", "List 2"],
  9349. filterPlaceholder: "Enter keyword",
  9350. noCheckedFormat: "{total} items",
  9351. hasCheckedFormat: "{checked}/{total} checked"
  9352. },
  9353. image: {
  9354. error: "FAILED"
  9355. },
  9356. pageHeader: {
  9357. title: "Back"
  9358. },
  9359. popconfirm: {
  9360. confirmButtonText: "Yes",
  9361. cancelButtonText: "No"
  9362. },
  9363. carousel: {
  9364. leftArrow: "Carousel arrow left",
  9365. rightArrow: "Carousel arrow right",
  9366. indicator: "Carousel switch to index {index}"
  9367. }
  9368. }
  9369. };
  9370. // node_modules/element-plus/es/hooks/use-locale/index.mjs
  9371. var buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
  9372. var translate = (path, option, locale) => get_default(locale, path, path).replace(/\{(\w+)\}/g, (_2, key) => {
  9373. var _a2;
  9374. return `${(_a2 = option == null ? void 0 : option[key]) != null ? _a2 : `{${key}}`}`;
  9375. });
  9376. var buildLocaleContext = (locale) => {
  9377. const lang = computed(() => unref(locale).name);
  9378. const localeRef = isRef(locale) ? locale : ref(locale);
  9379. return {
  9380. lang,
  9381. locale: localeRef,
  9382. t: buildTranslator(locale)
  9383. };
  9384. };
  9385. var localeContextKey = Symbol("localeContextKey");
  9386. var useLocale = (localeOverrides) => {
  9387. const locale = localeOverrides || inject(localeContextKey, ref());
  9388. return buildLocaleContext(computed(() => locale.value || English));
  9389. };
  9390. // node_modules/element-plus/es/utils/vue/props/runtime.mjs
  9391. var epPropKey = "__epPropKey";
  9392. var definePropType = (val) => val;
  9393. var isEpProp = (val) => isObject(val) && !!val[epPropKey];
  9394. var buildProp = (prop, key) => {
  9395. if (!isObject(prop) || isEpProp(prop))
  9396. return prop;
  9397. const { values: values2, required: required4, default: defaultValue, type: type4, validator } = prop;
  9398. const _validator = values2 || validator ? (val) => {
  9399. let valid = false;
  9400. let allowedValues = [];
  9401. if (values2) {
  9402. allowedValues = Array.from(values2);
  9403. if (hasOwn(prop, "default")) {
  9404. allowedValues.push(defaultValue);
  9405. }
  9406. valid || (valid = allowedValues.includes(val));
  9407. }
  9408. if (validator)
  9409. valid || (valid = validator(val));
  9410. if (!valid && allowedValues.length > 0) {
  9411. const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
  9412. warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
  9413. }
  9414. return valid;
  9415. } : void 0;
  9416. const epProp = {
  9417. type: type4,
  9418. required: !!required4,
  9419. validator: _validator,
  9420. [epPropKey]: true
  9421. };
  9422. if (hasOwn(prop, "default"))
  9423. epProp.default = defaultValue;
  9424. return epProp;
  9425. };
  9426. var buildProps = (props2) => fromPairs_default(Object.entries(props2).map(([key, option]) => [
  9427. key,
  9428. buildProp(option, key)
  9429. ]));
  9430. // node_modules/element-plus/es/constants/size.mjs
  9431. var componentSizes = ["", "default", "small", "large"];
  9432. var componentSizeMap = {
  9433. large: 40,
  9434. default: 32,
  9435. small: 24
  9436. };
  9437. // node_modules/element-plus/es/hooks/use-size/index.mjs
  9438. var useSizeProp = buildProp({
  9439. type: String,
  9440. values: componentSizes,
  9441. required: false
  9442. });
  9443. var useSizeProps = {
  9444. size: useSizeProp
  9445. };
  9446. var SIZE_INJECTION_KEY = Symbol("size");
  9447. var useGlobalSize = () => {
  9448. const injectedSize = inject(SIZE_INJECTION_KEY, {});
  9449. return computed(() => {
  9450. return unref(injectedSize.size) || "";
  9451. });
  9452. };
  9453. // node_modules/element-plus/es/hooks/use-empty-values/index.mjs
  9454. var emptyValuesContextKey = Symbol("emptyValuesContextKey");
  9455. var SCOPE = "use-empty-values";
  9456. var DEFAULT_EMPTY_VALUES = ["", void 0, null];
  9457. var DEFAULT_VALUE_ON_CLEAR = void 0;
  9458. var useEmptyValuesProps = buildProps({
  9459. emptyValues: Array,
  9460. valueOnClear: {
  9461. type: definePropType([
  9462. String,
  9463. Number,
  9464. Boolean,
  9465. Function
  9466. ]),
  9467. default: void 0,
  9468. validator: (val) => {
  9469. val = isFunction(val) ? val() : val;
  9470. if (isArray(val)) {
  9471. return val.every((item) => !item);
  9472. }
  9473. return !val;
  9474. }
  9475. }
  9476. });
  9477. var useEmptyValues = (props2, defaultValue) => {
  9478. const config = getCurrentInstance() ? inject(emptyValuesContextKey, ref({})) : ref({});
  9479. const emptyValues = computed(() => props2.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
  9480. const valueOnClear = computed(() => {
  9481. if (isFunction(props2.valueOnClear)) {
  9482. return props2.valueOnClear();
  9483. } else if (props2.valueOnClear !== void 0) {
  9484. return props2.valueOnClear;
  9485. } else if (isFunction(config.value.valueOnClear)) {
  9486. return config.value.valueOnClear();
  9487. } else if (config.value.valueOnClear !== void 0) {
  9488. return config.value.valueOnClear;
  9489. }
  9490. return defaultValue !== void 0 ? defaultValue : DEFAULT_VALUE_ON_CLEAR;
  9491. });
  9492. const isEmptyValue2 = (value) => {
  9493. let result2 = true;
  9494. if (isArray(value)) {
  9495. result2 = emptyValues.value.some((emptyValue) => {
  9496. return isEqual_default(value, emptyValue);
  9497. });
  9498. } else {
  9499. result2 = emptyValues.value.includes(value);
  9500. }
  9501. return result2;
  9502. };
  9503. if (!isEmptyValue2(valueOnClear.value)) {
  9504. debugWarn(SCOPE, "value-on-clear should be a value of empty-values");
  9505. }
  9506. return {
  9507. emptyValues,
  9508. valueOnClear,
  9509. isEmptyValue: isEmptyValue2
  9510. };
  9511. };
  9512. // node_modules/element-plus/es/utils/objects.mjs
  9513. var keysOf = (arr) => Object.keys(arr);
  9514. var entriesOf = (arr) => Object.entries(arr);
  9515. var getProp = (obj, path, defaultValue) => {
  9516. return {
  9517. get value() {
  9518. return get_default(obj, path, defaultValue);
  9519. },
  9520. set value(val) {
  9521. set_default(obj, path, val);
  9522. }
  9523. };
  9524. };
  9525. // node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config.mjs
  9526. var globalConfig = ref();
  9527. function useGlobalConfig(key, defaultValue = void 0) {
  9528. const config = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig;
  9529. if (key) {
  9530. return computed(() => {
  9531. var _a2, _b;
  9532. return (_b = (_a2 = config.value) == null ? void 0 : _a2[key]) != null ? _b : defaultValue;
  9533. });
  9534. } else {
  9535. return config;
  9536. }
  9537. }
  9538. function useGlobalComponentSettings(block, sizeFallback) {
  9539. const config = useGlobalConfig();
  9540. const ns = useNamespace(block, computed(() => {
  9541. var _a2;
  9542. return ((_a2 = config.value) == null ? void 0 : _a2.namespace) || defaultNamespace;
  9543. }));
  9544. const locale = useLocale(computed(() => {
  9545. var _a2;
  9546. return (_a2 = config.value) == null ? void 0 : _a2.locale;
  9547. }));
  9548. const zIndex2 = useZIndex(computed(() => {
  9549. var _a2;
  9550. return ((_a2 = config.value) == null ? void 0 : _a2.zIndex) || defaultInitialZIndex;
  9551. }));
  9552. const size3 = computed(() => {
  9553. var _a2;
  9554. return unref(sizeFallback) || ((_a2 = config.value) == null ? void 0 : _a2.size) || "";
  9555. });
  9556. provideGlobalConfig(computed(() => unref(config) || {}));
  9557. return {
  9558. ns,
  9559. locale,
  9560. zIndex: zIndex2,
  9561. size: size3
  9562. };
  9563. }
  9564. var provideGlobalConfig = (config, app, global2 = false) => {
  9565. var _a2;
  9566. const inSetup = !!getCurrentInstance();
  9567. const oldConfig = inSetup ? useGlobalConfig() : void 0;
  9568. const provideFn = (_a2 = app == null ? void 0 : app.provide) != null ? _a2 : inSetup ? provide : void 0;
  9569. if (!provideFn) {
  9570. debugWarn("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
  9571. return;
  9572. }
  9573. const context = computed(() => {
  9574. const cfg = unref(config);
  9575. if (!(oldConfig == null ? void 0 : oldConfig.value))
  9576. return cfg;
  9577. return mergeConfig(oldConfig.value, cfg);
  9578. });
  9579. provideFn(configProviderContextKey, context);
  9580. provideFn(localeContextKey, computed(() => context.value.locale));
  9581. provideFn(namespaceContextKey, computed(() => context.value.namespace));
  9582. provideFn(zIndexContextKey, computed(() => context.value.zIndex));
  9583. provideFn(SIZE_INJECTION_KEY, {
  9584. size: computed(() => context.value.size || "")
  9585. });
  9586. provideFn(emptyValuesContextKey, computed(() => ({
  9587. emptyValues: context.value.emptyValues,
  9588. valueOnClear: context.value.valueOnClear
  9589. })));
  9590. if (global2 || !globalConfig.value) {
  9591. globalConfig.value = context.value;
  9592. }
  9593. return context;
  9594. };
  9595. var mergeConfig = (a2, b2) => {
  9596. const keys3 = [.../* @__PURE__ */ new Set([...keysOf(a2), ...keysOf(b2)])];
  9597. const obj = {};
  9598. for (const key of keys3) {
  9599. obj[key] = b2[key] !== void 0 ? b2[key] : a2[key];
  9600. }
  9601. return obj;
  9602. };
  9603. // node_modules/element-plus/es/make-installer.mjs
  9604. var makeInstaller = (components = []) => {
  9605. const install2 = (app, options) => {
  9606. if (app[INSTALLED_KEY])
  9607. return;
  9608. app[INSTALLED_KEY] = true;
  9609. components.forEach((c2) => app.use(c2));
  9610. if (options)
  9611. provideGlobalConfig(options, app, true);
  9612. };
  9613. return {
  9614. version,
  9615. install: install2
  9616. };
  9617. };
  9618. // node_modules/element-plus/es/constants/event.mjs
  9619. var UPDATE_MODEL_EVENT = "update:modelValue";
  9620. var CHANGE_EVENT = "change";
  9621. var INPUT_EVENT = "input";
  9622. // node_modules/element-plus/es/components/affix/src/affix.mjs
  9623. var affixProps = buildProps({
  9624. zIndex: {
  9625. type: definePropType([Number, String]),
  9626. default: 100
  9627. },
  9628. target: {
  9629. type: String,
  9630. default: ""
  9631. },
  9632. offset: {
  9633. type: Number,
  9634. default: 0
  9635. },
  9636. position: {
  9637. type: String,
  9638. values: ["top", "bottom"],
  9639. default: "top"
  9640. }
  9641. });
  9642. var affixEmits = {
  9643. scroll: ({ scrollTop, fixed }) => isNumber2(scrollTop) && isBoolean2(fixed),
  9644. [CHANGE_EVENT]: (fixed) => isBoolean2(fixed)
  9645. };
  9646. // node_modules/element-plus/es/_virtual/plugin-vue_export-helper.mjs
  9647. var _export_sfc = (sfc, props2) => {
  9648. const target2 = sfc.__vccOpts || sfc;
  9649. for (const [key, val] of props2) {
  9650. target2[key] = val;
  9651. }
  9652. return target2;
  9653. };
  9654. // node_modules/element-plus/es/utils/easings.mjs
  9655. function easeInOutCubic(t, b2, c2, d2) {
  9656. const cc = c2 - b2;
  9657. t /= d2 / 2;
  9658. if (t < 1) {
  9659. return cc / 2 * t * t * t + b2;
  9660. }
  9661. return cc / 2 * ((t -= 2) * t * t + 2) + b2;
  9662. }
  9663. // node_modules/element-plus/es/utils/raf.mjs
  9664. var rAF = (fn2) => isClient ? window.requestAnimationFrame(fn2) : setTimeout(fn2, 16);
  9665. var cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
  9666. // node_modules/element-plus/es/utils/dom/style.mjs
  9667. var SCOPE2 = "utils/dom/style";
  9668. var classNameToArray = (cls = "") => cls.split(" ").filter((item) => !!item.trim());
  9669. var hasClass = (el, cls) => {
  9670. if (!el || !cls)
  9671. return false;
  9672. if (cls.includes(" "))
  9673. throw new Error("className should not contain space.");
  9674. return el.classList.contains(cls);
  9675. };
  9676. var addClass = (el, cls) => {
  9677. if (!el || !cls.trim())
  9678. return;
  9679. el.classList.add(...classNameToArray(cls));
  9680. };
  9681. var removeClass = (el, cls) => {
  9682. if (!el || !cls.trim())
  9683. return;
  9684. el.classList.remove(...classNameToArray(cls));
  9685. };
  9686. var getStyle = (element, styleName) => {
  9687. var _a2;
  9688. if (!isClient || !element || !styleName)
  9689. return "";
  9690. let key = camelize(styleName);
  9691. if (key === "float")
  9692. key = "cssFloat";
  9693. try {
  9694. const style = element.style[key];
  9695. if (style)
  9696. return style;
  9697. const computed2 = (_a2 = document.defaultView) == null ? void 0 : _a2.getComputedStyle(element, "");
  9698. return computed2 ? computed2[key] : "";
  9699. } catch (e) {
  9700. return element.style[key];
  9701. }
  9702. };
  9703. var setStyle = (element, styleName, value) => {
  9704. if (!element || !styleName)
  9705. return;
  9706. if (isObject(styleName)) {
  9707. entriesOf(styleName).forEach(([prop, value2]) => setStyle(element, prop, value2));
  9708. } else {
  9709. const key = camelize(styleName);
  9710. element.style[key] = value;
  9711. }
  9712. };
  9713. function addUnit(value, defaultUnit = "px") {
  9714. if (!value)
  9715. return "";
  9716. if (isNumber2(value) || isStringNumber(value)) {
  9717. return `${value}${defaultUnit}`;
  9718. } else if (isString(value)) {
  9719. return value;
  9720. }
  9721. debugWarn(SCOPE2, "binding value must be a string or number");
  9722. }
  9723. // node_modules/element-plus/es/utils/dom/scroll.mjs
  9724. var isScroll = (el, isVertical) => {
  9725. if (!isClient)
  9726. return false;
  9727. const key = {
  9728. undefined: "overflow",
  9729. true: "overflow-y",
  9730. false: "overflow-x"
  9731. }[String(isVertical)];
  9732. const overflow = getStyle(el, key);
  9733. return ["scroll", "auto", "overlay"].some((s2) => overflow.includes(s2));
  9734. };
  9735. var getScrollContainer = (el, isVertical) => {
  9736. if (!isClient)
  9737. return;
  9738. let parent2 = el;
  9739. while (parent2) {
  9740. if ([window, document, document.documentElement].includes(parent2))
  9741. return window;
  9742. if (isScroll(parent2, isVertical))
  9743. return parent2;
  9744. parent2 = parent2.parentNode;
  9745. }
  9746. return parent2;
  9747. };
  9748. var scrollBarWidth;
  9749. var getScrollBarWidth = (namespace) => {
  9750. var _a2;
  9751. if (!isClient)
  9752. return 0;
  9753. if (scrollBarWidth !== void 0)
  9754. return scrollBarWidth;
  9755. const outer = document.createElement("div");
  9756. outer.className = `${namespace}-scrollbar__wrap`;
  9757. outer.style.visibility = "hidden";
  9758. outer.style.width = "100px";
  9759. outer.style.position = "absolute";
  9760. outer.style.top = "-9999px";
  9761. document.body.appendChild(outer);
  9762. const widthNoScroll = outer.offsetWidth;
  9763. outer.style.overflow = "scroll";
  9764. const inner = document.createElement("div");
  9765. inner.style.width = "100%";
  9766. outer.appendChild(inner);
  9767. const widthWithScroll = inner.offsetWidth;
  9768. (_a2 = outer.parentNode) == null ? void 0 : _a2.removeChild(outer);
  9769. scrollBarWidth = widthNoScroll - widthWithScroll;
  9770. return scrollBarWidth;
  9771. };
  9772. function scrollIntoView(container, selected) {
  9773. if (!isClient)
  9774. return;
  9775. if (!selected) {
  9776. container.scrollTop = 0;
  9777. return;
  9778. }
  9779. const offsetParents = [];
  9780. let pointer = selected.offsetParent;
  9781. while (pointer !== null && container !== pointer && container.contains(pointer)) {
  9782. offsetParents.push(pointer);
  9783. pointer = pointer.offsetParent;
  9784. }
  9785. const top = selected.offsetTop + offsetParents.reduce((prev, curr) => prev + curr.offsetTop, 0);
  9786. const bottom = top + selected.offsetHeight;
  9787. const viewRectTop = container.scrollTop;
  9788. const viewRectBottom = viewRectTop + container.clientHeight;
  9789. if (top < viewRectTop) {
  9790. container.scrollTop = top;
  9791. } else if (bottom > viewRectBottom) {
  9792. container.scrollTop = bottom - container.clientHeight;
  9793. }
  9794. }
  9795. function animateScrollTo(container, from, to, duration, callback) {
  9796. const startTime = Date.now();
  9797. let handle;
  9798. const scroll = () => {
  9799. const timestamp2 = Date.now();
  9800. const time = timestamp2 - startTime;
  9801. const nextScrollTop = easeInOutCubic(time > duration ? duration : time, from, to, duration);
  9802. if (isWindow(container)) {
  9803. container.scrollTo(window.pageXOffset, nextScrollTop);
  9804. } else {
  9805. container.scrollTop = nextScrollTop;
  9806. }
  9807. if (time < duration) {
  9808. handle = rAF(scroll);
  9809. } else if (isFunction(callback)) {
  9810. callback();
  9811. }
  9812. };
  9813. scroll();
  9814. return () => {
  9815. handle && cAF(handle);
  9816. };
  9817. }
  9818. var getScrollElement = (target2, container) => {
  9819. if (isWindow(container)) {
  9820. return target2.ownerDocument.documentElement;
  9821. }
  9822. return container;
  9823. };
  9824. var getScrollTop = (container) => {
  9825. if (isWindow(container)) {
  9826. return window.scrollY;
  9827. }
  9828. return container.scrollTop;
  9829. };
  9830. // node_modules/element-plus/es/components/affix/src/affix2.mjs
  9831. var COMPONENT_NAME = "ElAffix";
  9832. var __default__ = defineComponent({
  9833. name: COMPONENT_NAME
  9834. });
  9835. var _sfc_main = defineComponent({
  9836. ...__default__,
  9837. props: affixProps,
  9838. emits: affixEmits,
  9839. setup(__props, { expose, emit }) {
  9840. const props2 = __props;
  9841. const ns = useNamespace("affix");
  9842. const target2 = shallowRef();
  9843. const root2 = shallowRef();
  9844. const scrollContainer = shallowRef();
  9845. const { height: windowHeight } = useWindowSize();
  9846. const {
  9847. height: rootHeight,
  9848. width: rootWidth,
  9849. top: rootTop,
  9850. bottom: rootBottom,
  9851. update: updateRoot
  9852. } = useElementBounding(root2, { windowScroll: false });
  9853. const targetRect = useElementBounding(target2);
  9854. const fixed = ref(false);
  9855. const scrollTop = ref(0);
  9856. const transform2 = ref(0);
  9857. const rootStyle = computed(() => {
  9858. return {
  9859. height: fixed.value ? `${rootHeight.value}px` : "",
  9860. width: fixed.value ? `${rootWidth.value}px` : ""
  9861. };
  9862. });
  9863. const affixStyle = computed(() => {
  9864. if (!fixed.value)
  9865. return {};
  9866. const offset3 = props2.offset ? addUnit(props2.offset) : 0;
  9867. return {
  9868. height: `${rootHeight.value}px`,
  9869. width: `${rootWidth.value}px`,
  9870. top: props2.position === "top" ? offset3 : "",
  9871. bottom: props2.position === "bottom" ? offset3 : "",
  9872. transform: transform2.value ? `translateY(${transform2.value}px)` : "",
  9873. zIndex: props2.zIndex
  9874. };
  9875. });
  9876. const update2 = () => {
  9877. if (!scrollContainer.value)
  9878. return;
  9879. scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
  9880. const { position, target: target22, offset: offset3 } = props2;
  9881. const rootHeightOffset = offset3 + rootHeight.value;
  9882. if (position === "top") {
  9883. if (target22) {
  9884. const difference2 = targetRect.bottom.value - rootHeightOffset;
  9885. fixed.value = offset3 > rootTop.value && targetRect.bottom.value > 0;
  9886. transform2.value = difference2 < 0 ? difference2 : 0;
  9887. } else {
  9888. fixed.value = offset3 > rootTop.value;
  9889. }
  9890. } else if (target22) {
  9891. const difference2 = windowHeight.value - targetRect.top.value - rootHeightOffset;
  9892. fixed.value = windowHeight.value - offset3 < rootBottom.value && windowHeight.value > targetRect.top.value;
  9893. transform2.value = difference2 < 0 ? -difference2 : 0;
  9894. } else {
  9895. fixed.value = windowHeight.value - offset3 < rootBottom.value;
  9896. }
  9897. };
  9898. const updateRootRect = async () => {
  9899. if (!fixed.value) {
  9900. updateRoot();
  9901. return;
  9902. }
  9903. fixed.value = false;
  9904. await nextTick();
  9905. updateRoot();
  9906. fixed.value = true;
  9907. };
  9908. const handleScroll2 = async () => {
  9909. updateRoot();
  9910. await nextTick();
  9911. emit("scroll", {
  9912. scrollTop: scrollTop.value,
  9913. fixed: fixed.value
  9914. });
  9915. };
  9916. watch(fixed, (val) => emit(CHANGE_EVENT, val));
  9917. onMounted(() => {
  9918. var _a2;
  9919. if (props2.target) {
  9920. target2.value = (_a2 = document.querySelector(props2.target)) != null ? _a2 : void 0;
  9921. if (!target2.value)
  9922. throwError(COMPONENT_NAME, `Target does not exist: ${props2.target}`);
  9923. } else {
  9924. target2.value = document.documentElement;
  9925. }
  9926. scrollContainer.value = getScrollContainer(root2.value, true);
  9927. updateRoot();
  9928. });
  9929. useEventListener(scrollContainer, "scroll", handleScroll2);
  9930. watchEffect(update2);
  9931. expose({
  9932. update: update2,
  9933. updateRoot: updateRootRect
  9934. });
  9935. return (_ctx, _cache) => {
  9936. return openBlock(), createElementBlock("div", {
  9937. ref_key: "root",
  9938. ref: root2,
  9939. class: normalizeClass(unref(ns).b()),
  9940. style: normalizeStyle(unref(rootStyle))
  9941. }, [
  9942. createBaseVNode("div", {
  9943. class: normalizeClass({ [unref(ns).m("fixed")]: fixed.value }),
  9944. style: normalizeStyle(unref(affixStyle))
  9945. }, [
  9946. renderSlot(_ctx.$slots, "default")
  9947. ], 6)
  9948. ], 6);
  9949. };
  9950. }
  9951. });
  9952. var Affix = _export_sfc(_sfc_main, [["__file", "affix.vue"]]);
  9953. // node_modules/element-plus/es/utils/vue/install.mjs
  9954. var withInstall = (main, extra) => {
  9955. main.install = (app) => {
  9956. for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
  9957. app.component(comp.name, comp);
  9958. }
  9959. };
  9960. if (extra) {
  9961. for (const [key, comp] of Object.entries(extra)) {
  9962. main[key] = comp;
  9963. }
  9964. }
  9965. return main;
  9966. };
  9967. var withInstallFunction = (fn2, name) => {
  9968. fn2.install = (app) => {
  9969. fn2._context = app._context;
  9970. app.config.globalProperties[name] = fn2;
  9971. };
  9972. return fn2;
  9973. };
  9974. var withInstallDirective = (directive, name) => {
  9975. directive.install = (app) => {
  9976. app.directive(name, directive);
  9977. };
  9978. return directive;
  9979. };
  9980. var withNoopInstall = (component2) => {
  9981. component2.install = NOOP;
  9982. return component2;
  9983. };
  9984. // node_modules/element-plus/es/components/affix/index.mjs
  9985. var ElAffix = withInstall(Affix);
  9986. // node_modules/element-plus/es/components/icon/src/icon.mjs
  9987. var iconProps = buildProps({
  9988. size: {
  9989. type: definePropType([Number, String])
  9990. },
  9991. color: {
  9992. type: String
  9993. }
  9994. });
  9995. // node_modules/element-plus/es/components/icon/src/icon2.mjs
  9996. var __default__2 = defineComponent({
  9997. name: "ElIcon",
  9998. inheritAttrs: false
  9999. });
  10000. var _sfc_main2 = defineComponent({
  10001. ...__default__2,
  10002. props: iconProps,
  10003. setup(__props) {
  10004. const props2 = __props;
  10005. const ns = useNamespace("icon");
  10006. const style = computed(() => {
  10007. const { size: size3, color } = props2;
  10008. if (!size3 && !color)
  10009. return {};
  10010. return {
  10011. fontSize: isUndefined2(size3) ? void 0 : addUnit(size3),
  10012. "--color": color
  10013. };
  10014. });
  10015. return (_ctx, _cache) => {
  10016. return openBlock(), createElementBlock("i", mergeProps({
  10017. class: unref(ns).b(),
  10018. style: unref(style)
  10019. }, _ctx.$attrs), [
  10020. renderSlot(_ctx.$slots, "default")
  10021. ], 16);
  10022. };
  10023. }
  10024. });
  10025. var Icon = _export_sfc(_sfc_main2, [["__file", "icon.vue"]]);
  10026. // node_modules/element-plus/es/components/icon/index.mjs
  10027. var ElIcon = withInstall(Icon);
  10028. // node_modules/element-plus/es/hooks/use-timeout/index.mjs
  10029. function useTimeout() {
  10030. let timeoutHandle;
  10031. const registerTimeout = (fn2, delay2) => {
  10032. cancelTimeout();
  10033. timeoutHandle = window.setTimeout(fn2, delay2);
  10034. };
  10035. const cancelTimeout = () => window.clearTimeout(timeoutHandle);
  10036. tryOnScopeDispose(() => cancelTimeout());
  10037. return {
  10038. registerTimeout,
  10039. cancelTimeout
  10040. };
  10041. }
  10042. // node_modules/element-plus/es/hooks/use-delayed-toggle/index.mjs
  10043. var useDelayedToggleProps = buildProps({
  10044. showAfter: {
  10045. type: Number,
  10046. default: 0
  10047. },
  10048. hideAfter: {
  10049. type: Number,
  10050. default: 200
  10051. },
  10052. autoClose: {
  10053. type: Number,
  10054. default: 0
  10055. }
  10056. });
  10057. var useDelayedToggle = ({
  10058. showAfter,
  10059. hideAfter,
  10060. autoClose,
  10061. open,
  10062. close: close2
  10063. }) => {
  10064. const { registerTimeout } = useTimeout();
  10065. const {
  10066. registerTimeout: registerTimeoutForAutoClose,
  10067. cancelTimeout: cancelTimeoutForAutoClose
  10068. } = useTimeout();
  10069. const onOpen = (event, delay2 = unref(showAfter)) => {
  10070. registerTimeout(() => {
  10071. open(event);
  10072. const _autoClose = unref(autoClose);
  10073. if (isNumber2(_autoClose) && _autoClose > 0) {
  10074. registerTimeoutForAutoClose(() => {
  10075. close2(event);
  10076. }, _autoClose);
  10077. }
  10078. }, delay2);
  10079. };
  10080. const onClose = (event, delay2 = unref(hideAfter)) => {
  10081. cancelTimeoutForAutoClose();
  10082. registerTimeout(() => {
  10083. close2(event);
  10084. }, delay2);
  10085. };
  10086. return {
  10087. onOpen,
  10088. onClose
  10089. };
  10090. };
  10091. // node_modules/element-plus/es/utils/vue/icon.mjs
  10092. var iconPropType = definePropType([
  10093. String,
  10094. Object,
  10095. Function
  10096. ]);
  10097. var CloseComponents = {
  10098. Close: close_default
  10099. };
  10100. var TypeComponents = {
  10101. Close: close_default,
  10102. SuccessFilled: success_filled_default,
  10103. InfoFilled: info_filled_default,
  10104. WarningFilled: warning_filled_default,
  10105. CircleCloseFilled: circle_close_filled_default
  10106. };
  10107. var TypeComponentsMap = {
  10108. primary: info_filled_default,
  10109. success: success_filled_default,
  10110. warning: warning_filled_default,
  10111. error: circle_close_filled_default,
  10112. info: info_filled_default
  10113. };
  10114. var ValidateComponentsMap = {
  10115. validating: loading_default,
  10116. success: circle_check_default,
  10117. error: circle_close_default
  10118. };
  10119. // node_modules/element-plus/es/components/alert/src/alert2.mjs
  10120. var alertEffects = ["light", "dark"];
  10121. var alertProps = buildProps({
  10122. title: {
  10123. type: String,
  10124. default: ""
  10125. },
  10126. description: {
  10127. type: String,
  10128. default: ""
  10129. },
  10130. type: {
  10131. type: String,
  10132. values: keysOf(TypeComponentsMap),
  10133. default: "info"
  10134. },
  10135. closable: {
  10136. type: Boolean,
  10137. default: true
  10138. },
  10139. closeText: {
  10140. type: String,
  10141. default: ""
  10142. },
  10143. showIcon: Boolean,
  10144. center: Boolean,
  10145. effect: {
  10146. type: String,
  10147. values: alertEffects,
  10148. default: "light"
  10149. },
  10150. ...useDelayedToggleProps,
  10151. showAfter: Number
  10152. });
  10153. var alertEmits = {
  10154. open: () => true,
  10155. close: (evt) => isUndefined2(evt) || evt instanceof Event
  10156. };
  10157. // node_modules/element-plus/es/components/alert/src/alert.mjs
  10158. var __default__3 = defineComponent({
  10159. name: "ElAlert"
  10160. });
  10161. var _sfc_main3 = defineComponent({
  10162. ...__default__3,
  10163. props: alertProps,
  10164. emits: alertEmits,
  10165. setup(__props, { emit }) {
  10166. const props2 = __props;
  10167. const { Close } = TypeComponents;
  10168. const slots = useSlots();
  10169. const ns = useNamespace("alert");
  10170. const visible = ref(isUndefined2(props2.showAfter));
  10171. const iconComponent = computed(() => TypeComponentsMap[props2.type]);
  10172. const hasDesc = computed(() => !!(props2.description || slots.default));
  10173. const open = () => {
  10174. visible.value = true;
  10175. emit("open");
  10176. };
  10177. const close2 = (event) => {
  10178. visible.value = false;
  10179. emit("close", event);
  10180. };
  10181. const { onOpen, onClose } = useDelayedToggle({
  10182. showAfter: toRef(props2, "showAfter", 0),
  10183. hideAfter: toRef(props2, "hideAfter"),
  10184. autoClose: toRef(props2, "autoClose"),
  10185. open,
  10186. close: close2
  10187. });
  10188. if (isClient) {
  10189. onOpen();
  10190. }
  10191. return (_ctx, _cache) => {
  10192. return openBlock(), createBlock(Transition, {
  10193. name: unref(ns).b("fade"),
  10194. persisted: ""
  10195. }, {
  10196. default: withCtx(() => [
  10197. withDirectives(createBaseVNode("div", {
  10198. class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.type), unref(ns).is("center", _ctx.center), unref(ns).is(_ctx.effect)]),
  10199. role: "alert"
  10200. }, [
  10201. _ctx.showIcon && (_ctx.$slots.icon || unref(iconComponent)) ? (openBlock(), createBlock(unref(ElIcon), {
  10202. key: 0,
  10203. class: normalizeClass([unref(ns).e("icon"), unref(ns).is("big", unref(hasDesc))])
  10204. }, {
  10205. default: withCtx(() => [
  10206. renderSlot(_ctx.$slots, "icon", {}, () => [
  10207. (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
  10208. ])
  10209. ]),
  10210. _: 3
  10211. }, 8, ["class"])) : createCommentVNode("v-if", true),
  10212. createBaseVNode("div", {
  10213. class: normalizeClass(unref(ns).e("content"))
  10214. }, [
  10215. _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", {
  10216. key: 0,
  10217. class: normalizeClass([unref(ns).e("title"), { "with-description": unref(hasDesc) }])
  10218. }, [
  10219. renderSlot(_ctx.$slots, "title", {}, () => [
  10220. createTextVNode(toDisplayString(_ctx.title), 1)
  10221. ])
  10222. ], 2)) : createCommentVNode("v-if", true),
  10223. unref(hasDesc) ? (openBlock(), createElementBlock("p", {
  10224. key: 1,
  10225. class: normalizeClass(unref(ns).e("description"))
  10226. }, [
  10227. renderSlot(_ctx.$slots, "default", {}, () => [
  10228. createTextVNode(toDisplayString(_ctx.description), 1)
  10229. ])
  10230. ], 2)) : createCommentVNode("v-if", true),
  10231. _ctx.closable ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
  10232. _ctx.closeText ? (openBlock(), createElementBlock("div", {
  10233. key: 0,
  10234. class: normalizeClass([unref(ns).e("close-btn"), unref(ns).is("customed")]),
  10235. onClick: close2
  10236. }, toDisplayString(_ctx.closeText), 3)) : (openBlock(), createBlock(unref(ElIcon), {
  10237. key: 1,
  10238. class: normalizeClass(unref(ns).e("close-btn")),
  10239. onClick: unref(onClose)
  10240. }, {
  10241. default: withCtx(() => [
  10242. createVNode(unref(Close))
  10243. ]),
  10244. _: 1
  10245. }, 8, ["class", "onClick"]))
  10246. ], 64)) : createCommentVNode("v-if", true)
  10247. ], 2)
  10248. ], 2), [
  10249. [vShow, visible.value]
  10250. ])
  10251. ]),
  10252. _: 3
  10253. }, 8, ["name"]);
  10254. };
  10255. }
  10256. });
  10257. var Alert = _export_sfc(_sfc_main3, [["__file", "alert.vue"]]);
  10258. // node_modules/element-plus/es/components/alert/index.mjs
  10259. var ElAlert = withInstall(Alert);
  10260. // node_modules/element-plus/es/utils/browser.mjs
  10261. var isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
  10262. var isAndroid = () => isClient && /android/i.test(window.navigator.userAgent);
  10263. // node_modules/element-plus/es/components/input/src/utils.mjs
  10264. var hiddenTextarea = void 0;
  10265. var HIDDEN_STYLE = {
  10266. height: "0",
  10267. visibility: "hidden",
  10268. overflow: isFirefox() ? "" : "hidden",
  10269. position: "absolute",
  10270. "z-index": "-1000",
  10271. top: "0",
  10272. right: "0"
  10273. };
  10274. var CONTEXT_STYLE = [
  10275. "letter-spacing",
  10276. "line-height",
  10277. "padding-top",
  10278. "padding-bottom",
  10279. "font-family",
  10280. "font-weight",
  10281. "font-size",
  10282. "text-rendering",
  10283. "text-transform",
  10284. "width",
  10285. "text-indent",
  10286. "padding-left",
  10287. "padding-right",
  10288. "border-width",
  10289. "box-sizing",
  10290. "word-break"
  10291. ];
  10292. var looseToNumber = (val) => {
  10293. const n = Number.parseFloat(val);
  10294. return Number.isNaN(n) ? val : n;
  10295. };
  10296. function calculateNodeStyling(targetElement) {
  10297. const style = window.getComputedStyle(targetElement);
  10298. const boxSizing = style.getPropertyValue("box-sizing");
  10299. const paddingSize = Number.parseFloat(style.getPropertyValue("padding-bottom")) + Number.parseFloat(style.getPropertyValue("padding-top"));
  10300. const borderSize = Number.parseFloat(style.getPropertyValue("border-bottom-width")) + Number.parseFloat(style.getPropertyValue("border-top-width"));
  10301. const contextStyle = CONTEXT_STYLE.map((name) => [
  10302. name,
  10303. style.getPropertyValue(name)
  10304. ]);
  10305. return { contextStyle, paddingSize, borderSize, boxSizing };
  10306. }
  10307. function calcTextareaHeight(targetElement, minRows = 1, maxRows) {
  10308. var _a2, _b;
  10309. if (!hiddenTextarea) {
  10310. hiddenTextarea = document.createElement("textarea");
  10311. ((_a2 = targetElement.parentNode) != null ? _a2 : document.body).appendChild(hiddenTextarea);
  10312. }
  10313. const { paddingSize, borderSize, boxSizing, contextStyle } = calculateNodeStyling(targetElement);
  10314. contextStyle.forEach(([key, value]) => hiddenTextarea == null ? void 0 : hiddenTextarea.style.setProperty(key, value));
  10315. Object.entries(HIDDEN_STYLE).forEach(([key, value]) => hiddenTextarea == null ? void 0 : hiddenTextarea.style.setProperty(key, value, "important"));
  10316. hiddenTextarea.value = targetElement.value || targetElement.placeholder || "";
  10317. let height = hiddenTextarea.scrollHeight;
  10318. const result2 = {};
  10319. if (boxSizing === "border-box") {
  10320. height = height + borderSize;
  10321. } else if (boxSizing === "content-box") {
  10322. height = height - paddingSize;
  10323. }
  10324. hiddenTextarea.value = "";
  10325. const singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
  10326. if (isNumber2(minRows)) {
  10327. let minHeight = singleRowHeight * minRows;
  10328. if (boxSizing === "border-box") {
  10329. minHeight = minHeight + paddingSize + borderSize;
  10330. }
  10331. height = Math.max(minHeight, height);
  10332. result2.minHeight = `${minHeight}px`;
  10333. }
  10334. if (isNumber2(maxRows)) {
  10335. let maxHeight = singleRowHeight * maxRows;
  10336. if (boxSizing === "border-box") {
  10337. maxHeight = maxHeight + paddingSize + borderSize;
  10338. }
  10339. height = Math.min(maxHeight, height);
  10340. }
  10341. result2.height = `${height}px`;
  10342. (_b = hiddenTextarea.parentNode) == null ? void 0 : _b.removeChild(hiddenTextarea);
  10343. hiddenTextarea = void 0;
  10344. return result2;
  10345. }
  10346. // node_modules/element-plus/es/utils/typescript.mjs
  10347. var mutable = (val) => val;
  10348. // node_modules/element-plus/es/hooks/use-aria/index.mjs
  10349. var ariaProps = buildProps({
  10350. ariaLabel: String,
  10351. ariaOrientation: {
  10352. type: String,
  10353. values: ["horizontal", "vertical", "undefined"]
  10354. },
  10355. ariaControls: String
  10356. });
  10357. var useAriaProps = (arias) => {
  10358. return pick_default(ariaProps, arias);
  10359. };
  10360. // node_modules/element-plus/es/components/input/src/input.mjs
  10361. var inputProps = buildProps({
  10362. id: {
  10363. type: String,
  10364. default: void 0
  10365. },
  10366. size: useSizeProp,
  10367. disabled: Boolean,
  10368. modelValue: {
  10369. type: definePropType([
  10370. String,
  10371. Number,
  10372. Object
  10373. ]),
  10374. default: ""
  10375. },
  10376. modelModifiers: {
  10377. type: definePropType(Object),
  10378. default: () => ({})
  10379. },
  10380. maxlength: {
  10381. type: [String, Number]
  10382. },
  10383. minlength: {
  10384. type: [String, Number]
  10385. },
  10386. type: {
  10387. type: String,
  10388. default: "text"
  10389. },
  10390. resize: {
  10391. type: String,
  10392. values: ["none", "both", "horizontal", "vertical"]
  10393. },
  10394. autosize: {
  10395. type: definePropType([Boolean, Object]),
  10396. default: false
  10397. },
  10398. autocomplete: {
  10399. type: definePropType(String),
  10400. default: "off"
  10401. },
  10402. formatter: {
  10403. type: Function
  10404. },
  10405. parser: {
  10406. type: Function
  10407. },
  10408. placeholder: {
  10409. type: String
  10410. },
  10411. form: {
  10412. type: String
  10413. },
  10414. readonly: Boolean,
  10415. clearable: Boolean,
  10416. clearIcon: {
  10417. type: iconPropType,
  10418. default: circle_close_default
  10419. },
  10420. showPassword: Boolean,
  10421. showWordLimit: Boolean,
  10422. wordLimitPosition: {
  10423. type: String,
  10424. values: ["inside", "outside"],
  10425. default: "inside"
  10426. },
  10427. suffixIcon: {
  10428. type: iconPropType
  10429. },
  10430. prefixIcon: {
  10431. type: iconPropType
  10432. },
  10433. containerRole: {
  10434. type: String,
  10435. default: void 0
  10436. },
  10437. tabindex: {
  10438. type: [String, Number],
  10439. default: 0
  10440. },
  10441. validateEvent: {
  10442. type: Boolean,
  10443. default: true
  10444. },
  10445. inputStyle: {
  10446. type: definePropType([Object, Array, String]),
  10447. default: () => mutable({})
  10448. },
  10449. autofocus: Boolean,
  10450. rows: {
  10451. type: Number,
  10452. default: 2
  10453. },
  10454. ...useAriaProps(["ariaLabel"]),
  10455. inputmode: {
  10456. type: definePropType(String),
  10457. default: void 0
  10458. },
  10459. name: String
  10460. });
  10461. var inputEmits = {
  10462. [UPDATE_MODEL_EVENT]: (value) => isString(value),
  10463. input: (value) => isString(value),
  10464. change: (value) => isString(value),
  10465. focus: (evt) => evt instanceof FocusEvent,
  10466. blur: (evt) => evt instanceof FocusEvent,
  10467. clear: () => true,
  10468. mouseleave: (evt) => evt instanceof MouseEvent,
  10469. mouseenter: (evt) => evt instanceof MouseEvent,
  10470. keydown: (evt) => evt instanceof Event,
  10471. compositionstart: (evt) => evt instanceof CompositionEvent,
  10472. compositionupdate: (evt) => evt instanceof CompositionEvent,
  10473. compositionend: (evt) => evt instanceof CompositionEvent
  10474. };
  10475. // node_modules/element-plus/es/hooks/use-attrs/index.mjs
  10476. var DEFAULT_EXCLUDE_KEYS = ["class", "style"];
  10477. var LISTENER_PREFIX = /^on[A-Z]/;
  10478. var useAttrs2 = (params = {}) => {
  10479. const { excludeListeners = false, excludeKeys } = params;
  10480. const allExcludeKeys = computed(() => {
  10481. return ((excludeKeys == null ? void 0 : excludeKeys.value) || []).concat(DEFAULT_EXCLUDE_KEYS);
  10482. });
  10483. const instance = getCurrentInstance();
  10484. if (!instance) {
  10485. debugWarn("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function");
  10486. return computed(() => ({}));
  10487. }
  10488. return computed(() => {
  10489. var _a2;
  10490. return fromPairs_default(Object.entries((_a2 = instance.proxy) == null ? void 0 : _a2.$attrs).filter(([key]) => !allExcludeKeys.value.includes(key) && !(excludeListeners && LISTENER_PREFIX.test(key))));
  10491. });
  10492. };
  10493. // node_modules/element-plus/es/hooks/use-id/index.mjs
  10494. var defaultIdInjection = {
  10495. prefix: Math.floor(Math.random() * 1e4),
  10496. current: 0
  10497. };
  10498. var ID_INJECTION_KEY = Symbol("elIdInjection");
  10499. var useIdInjection = () => {
  10500. return getCurrentInstance() ? inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
  10501. };
  10502. var useId = (deterministicId) => {
  10503. const idInjection = useIdInjection();
  10504. if (!isClient && idInjection === defaultIdInjection) {
  10505. debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
  10506. usage: app.provide(ID_INJECTION_KEY, {
  10507. prefix: number,
  10508. current: number,
  10509. })`);
  10510. }
  10511. const namespace = useGetDerivedNamespace();
  10512. const idRef = computedEager(() => unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
  10513. return idRef;
  10514. };
  10515. // node_modules/element-plus/es/components/form/src/constants.mjs
  10516. var formContextKey = Symbol("formContextKey");
  10517. var formItemContextKey = Symbol("formItemContextKey");
  10518. // node_modules/element-plus/es/components/form/src/hooks/use-form-item.mjs
  10519. var useFormItem = () => {
  10520. const form = inject(formContextKey, void 0);
  10521. const formItem = inject(formItemContextKey, void 0);
  10522. return {
  10523. form,
  10524. formItem
  10525. };
  10526. };
  10527. var useFormItemInputId = (props2, {
  10528. formItemContext,
  10529. disableIdGeneration,
  10530. disableIdManagement
  10531. }) => {
  10532. if (!disableIdGeneration) {
  10533. disableIdGeneration = ref(false);
  10534. }
  10535. if (!disableIdManagement) {
  10536. disableIdManagement = ref(false);
  10537. }
  10538. const instance = getCurrentInstance();
  10539. const inLabel = () => {
  10540. let parent2 = instance == null ? void 0 : instance.parent;
  10541. while (parent2) {
  10542. if (parent2.type.name === "ElFormItem") {
  10543. return false;
  10544. }
  10545. if (parent2.type.name === "ElLabelWrap") {
  10546. return true;
  10547. }
  10548. parent2 = parent2.parent;
  10549. }
  10550. return false;
  10551. };
  10552. const inputId = ref();
  10553. let idUnwatch = void 0;
  10554. const isLabeledByFormItem = computed(() => {
  10555. var _a2;
  10556. return !!(!(props2.label || props2.ariaLabel) && formItemContext && formItemContext.inputIds && ((_a2 = formItemContext.inputIds) == null ? void 0 : _a2.length) <= 1);
  10557. });
  10558. onMounted(() => {
  10559. idUnwatch = watch([toRef(props2, "id"), disableIdGeneration], ([id, disableIdGeneration2]) => {
  10560. const newId = id != null ? id : !disableIdGeneration2 ? useId().value : void 0;
  10561. if (newId !== inputId.value) {
  10562. if ((formItemContext == null ? void 0 : formItemContext.removeInputId) && !inLabel()) {
  10563. inputId.value && formItemContext.removeInputId(inputId.value);
  10564. if (!(disableIdManagement == null ? void 0 : disableIdManagement.value) && !disableIdGeneration2 && newId) {
  10565. formItemContext.addInputId(newId);
  10566. }
  10567. }
  10568. inputId.value = newId;
  10569. }
  10570. }, { immediate: true });
  10571. });
  10572. onUnmounted(() => {
  10573. idUnwatch && idUnwatch();
  10574. if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
  10575. inputId.value && formItemContext.removeInputId(inputId.value);
  10576. }
  10577. });
  10578. return {
  10579. isLabeledByFormItem,
  10580. inputId
  10581. };
  10582. };
  10583. // node_modules/element-plus/es/hooks/use-prop/index.mjs
  10584. var useProp = (name) => {
  10585. const vm = getCurrentInstance();
  10586. return computed(() => {
  10587. var _a2, _b;
  10588. return (_b = (_a2 = vm == null ? void 0 : vm.proxy) == null ? void 0 : _a2.$props) == null ? void 0 : _b[name];
  10589. });
  10590. };
  10591. // node_modules/element-plus/es/components/form/src/hooks/use-form-common-props.mjs
  10592. var useFormSize = (fallback, ignore = {}) => {
  10593. const emptyRef = ref(void 0);
  10594. const size3 = ignore.prop ? emptyRef : useProp("size");
  10595. const globalConfig2 = ignore.global ? emptyRef : useGlobalSize();
  10596. const form = ignore.form ? { size: void 0 } : inject(formContextKey, void 0);
  10597. const formItem = ignore.formItem ? { size: void 0 } : inject(formItemContextKey, void 0);
  10598. return computed(() => size3.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig2.value || "");
  10599. };
  10600. var useFormDisabled = (fallback) => {
  10601. const disabled = useProp("disabled");
  10602. const form = inject(formContextKey, void 0);
  10603. return computed(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false);
  10604. };
  10605. var useSize = useFormSize;
  10606. var useDisabled = useFormDisabled;
  10607. // node_modules/element-plus/es/utils/dom/aria.mjs
  10608. 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])`;
  10609. var isHTMLElement = (e) => {
  10610. if (typeof Element === "undefined")
  10611. return false;
  10612. return e instanceof Element;
  10613. };
  10614. var isVisible = (element) => {
  10615. const computed2 = getComputedStyle(element);
  10616. return computed2.position === "fixed" ? false : element.offsetParent !== null;
  10617. };
  10618. var obtainAllFocusableElements = (element) => {
  10619. return Array.from(element.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter((item) => isFocusable(item) && isVisible(item));
  10620. };
  10621. var isFocusable = (element) => {
  10622. if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
  10623. return true;
  10624. }
  10625. if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
  10626. return false;
  10627. }
  10628. switch (element.nodeName) {
  10629. case "A": {
  10630. return !!element.href && element.rel !== "ignore";
  10631. }
  10632. case "INPUT": {
  10633. return !(element.type === "hidden" || element.type === "file");
  10634. }
  10635. case "BUTTON":
  10636. case "SELECT":
  10637. case "TEXTAREA": {
  10638. return true;
  10639. }
  10640. default: {
  10641. return false;
  10642. }
  10643. }
  10644. };
  10645. var triggerEvent = function(elm, name, ...opts) {
  10646. let eventName;
  10647. if (name.includes("mouse") || name.includes("click")) {
  10648. eventName = "MouseEvents";
  10649. } else if (name.includes("key")) {
  10650. eventName = "KeyboardEvent";
  10651. } else {
  10652. eventName = "HTMLEvents";
  10653. }
  10654. const evt = document.createEvent(eventName);
  10655. evt.initEvent(name, ...opts);
  10656. elm.dispatchEvent(evt);
  10657. return elm;
  10658. };
  10659. var isLeaf = (el) => !el.getAttribute("aria-owns");
  10660. var getSibling = (el, distance, elClass) => {
  10661. const { parentNode } = el;
  10662. if (!parentNode)
  10663. return null;
  10664. const siblings = parentNode.querySelectorAll(elClass);
  10665. const index = Array.prototype.indexOf.call(siblings, el);
  10666. return siblings[index + distance] || null;
  10667. };
  10668. var focusElement = (el, options) => {
  10669. if (!el || !el.focus)
  10670. return;
  10671. let cleanup = false;
  10672. if (isHTMLElement(el) && !isFocusable(el) && !el.getAttribute("tabindex")) {
  10673. el.setAttribute("tabindex", "-1");
  10674. cleanup = true;
  10675. }
  10676. el.focus(options);
  10677. if (isHTMLElement(el) && cleanup) {
  10678. el.removeAttribute("tabindex");
  10679. }
  10680. };
  10681. var focusNode = (el) => {
  10682. if (!el)
  10683. return;
  10684. focusElement(el);
  10685. !isLeaf(el) && el.click();
  10686. };
  10687. // node_modules/element-plus/es/hooks/use-focus-controller/index.mjs
  10688. function useFocusController(target2, {
  10689. disabled,
  10690. beforeFocus,
  10691. afterFocus,
  10692. beforeBlur,
  10693. afterBlur
  10694. } = {}) {
  10695. const instance = getCurrentInstance();
  10696. const { emit } = instance;
  10697. const wrapperRef = shallowRef();
  10698. const isFocused = ref(false);
  10699. const handleFocus = (event) => {
  10700. const cancelFocus = isFunction(beforeFocus) ? beforeFocus(event) : false;
  10701. if (unref(disabled) || isFocused.value || cancelFocus)
  10702. return;
  10703. isFocused.value = true;
  10704. emit("focus", event);
  10705. afterFocus == null ? void 0 : afterFocus();
  10706. };
  10707. const handleBlur = (event) => {
  10708. var _a2;
  10709. const cancelBlur = isFunction(beforeBlur) ? beforeBlur(event) : false;
  10710. if (unref(disabled) || event.relatedTarget && ((_a2 = wrapperRef.value) == null ? void 0 : _a2.contains(event.relatedTarget)) || cancelBlur)
  10711. return;
  10712. isFocused.value = false;
  10713. emit("blur", event);
  10714. afterBlur == null ? void 0 : afterBlur();
  10715. };
  10716. const handleClick = (event) => {
  10717. var _a2, _b;
  10718. if (unref(disabled) || isFocusable(event.target) || ((_a2 = wrapperRef.value) == null ? void 0 : _a2.contains(document.activeElement)) && wrapperRef.value !== document.activeElement)
  10719. return;
  10720. (_b = target2.value) == null ? void 0 : _b.focus();
  10721. };
  10722. watch([wrapperRef, () => unref(disabled)], ([el, disabled2]) => {
  10723. if (!el)
  10724. return;
  10725. if (disabled2) {
  10726. el.removeAttribute("tabindex");
  10727. } else {
  10728. el.setAttribute("tabindex", "-1");
  10729. }
  10730. });
  10731. useEventListener(wrapperRef, "focus", handleFocus, true);
  10732. useEventListener(wrapperRef, "blur", handleBlur, true);
  10733. useEventListener(wrapperRef, "click", handleClick, true);
  10734. return {
  10735. isFocused,
  10736. wrapperRef,
  10737. handleFocus,
  10738. handleBlur
  10739. };
  10740. }
  10741. // node_modules/element-plus/es/utils/i18n.mjs
  10742. var isKorean = (text) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(text);
  10743. // node_modules/element-plus/es/hooks/use-composition/index.mjs
  10744. function useComposition({
  10745. afterComposition,
  10746. emit
  10747. }) {
  10748. const isComposing = ref(false);
  10749. const handleCompositionStart = (event) => {
  10750. emit == null ? void 0 : emit("compositionstart", event);
  10751. isComposing.value = true;
  10752. };
  10753. const handleCompositionUpdate = (event) => {
  10754. var _a2;
  10755. emit == null ? void 0 : emit("compositionupdate", event);
  10756. const text = (_a2 = event.target) == null ? void 0 : _a2.value;
  10757. const lastCharacter = text[text.length - 1] || "";
  10758. isComposing.value = !isKorean(lastCharacter);
  10759. };
  10760. const handleCompositionEnd = (event) => {
  10761. emit == null ? void 0 : emit("compositionend", event);
  10762. if (isComposing.value) {
  10763. isComposing.value = false;
  10764. nextTick(() => afterComposition(event));
  10765. }
  10766. };
  10767. const handleComposition = (event) => {
  10768. event.type === "compositionend" ? handleCompositionEnd(event) : handleCompositionUpdate(event);
  10769. };
  10770. return {
  10771. isComposing,
  10772. handleComposition,
  10773. handleCompositionStart,
  10774. handleCompositionUpdate,
  10775. handleCompositionEnd
  10776. };
  10777. }
  10778. // node_modules/element-plus/es/hooks/use-cursor/index.mjs
  10779. function useCursor(input) {
  10780. let selectionInfo;
  10781. function recordCursor() {
  10782. if (input.value == void 0)
  10783. return;
  10784. const { selectionStart, selectionEnd, value } = input.value;
  10785. if (selectionStart == null || selectionEnd == null)
  10786. return;
  10787. const beforeTxt = value.slice(0, Math.max(0, selectionStart));
  10788. const afterTxt = value.slice(Math.max(0, selectionEnd));
  10789. selectionInfo = {
  10790. selectionStart,
  10791. selectionEnd,
  10792. value,
  10793. beforeTxt,
  10794. afterTxt
  10795. };
  10796. }
  10797. function setCursor() {
  10798. if (input.value == void 0 || selectionInfo == void 0)
  10799. return;
  10800. const { value } = input.value;
  10801. const { beforeTxt, afterTxt, selectionStart } = selectionInfo;
  10802. if (beforeTxt == void 0 || afterTxt == void 0 || selectionStart == void 0)
  10803. return;
  10804. let startPos = value.length;
  10805. if (value.endsWith(afterTxt)) {
  10806. startPos = value.length - afterTxt.length;
  10807. } else if (value.startsWith(beforeTxt)) {
  10808. startPos = beforeTxt.length;
  10809. } else {
  10810. const beforeLastChar = beforeTxt[selectionStart - 1];
  10811. const newIndex = value.indexOf(beforeLastChar, selectionStart - 1);
  10812. if (newIndex !== -1) {
  10813. startPos = newIndex + 1;
  10814. }
  10815. }
  10816. input.value.setSelectionRange(startPos, startPos);
  10817. }
  10818. return [recordCursor, setCursor];
  10819. }
  10820. // node_modules/element-plus/es/components/input/src/input2.mjs
  10821. var COMPONENT_NAME2 = "ElInput";
  10822. var __default__4 = defineComponent({
  10823. name: COMPONENT_NAME2,
  10824. inheritAttrs: false
  10825. });
  10826. var _sfc_main4 = defineComponent({
  10827. ...__default__4,
  10828. props: inputProps,
  10829. emits: inputEmits,
  10830. setup(__props, { expose, emit }) {
  10831. const props2 = __props;
  10832. const rawAttrs = useAttrs();
  10833. const attrs = useAttrs2();
  10834. const slots = useSlots();
  10835. const containerKls = computed(() => [
  10836. props2.type === "textarea" ? nsTextarea.b() : nsInput.b(),
  10837. nsInput.m(inputSize.value),
  10838. nsInput.is("disabled", inputDisabled.value),
  10839. nsInput.is("exceed", inputExceed.value),
  10840. {
  10841. [nsInput.b("group")]: slots.prepend || slots.append,
  10842. [nsInput.m("prefix")]: slots.prefix || props2.prefixIcon,
  10843. [nsInput.m("suffix")]: slots.suffix || props2.suffixIcon || props2.clearable || props2.showPassword,
  10844. [nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value,
  10845. [nsInput.b("hidden")]: props2.type === "hidden"
  10846. },
  10847. rawAttrs.class
  10848. ]);
  10849. const wrapperKls = computed(() => [
  10850. nsInput.e("wrapper"),
  10851. nsInput.is("focus", isFocused.value)
  10852. ]);
  10853. const { form: elForm, formItem: elFormItem } = useFormItem();
  10854. const { inputId } = useFormItemInputId(props2, {
  10855. formItemContext: elFormItem
  10856. });
  10857. const inputSize = useFormSize();
  10858. const inputDisabled = useFormDisabled();
  10859. const nsInput = useNamespace("input");
  10860. const nsTextarea = useNamespace("textarea");
  10861. const input = shallowRef();
  10862. const textarea = shallowRef();
  10863. const hovering = ref(false);
  10864. const passwordVisible = ref(false);
  10865. const countStyle = ref();
  10866. const textareaCalcStyle = shallowRef(props2.inputStyle);
  10867. const _ref = computed(() => input.value || textarea.value);
  10868. const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
  10869. disabled: inputDisabled,
  10870. afterBlur() {
  10871. var _a2;
  10872. if (props2.validateEvent) {
  10873. (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "blur").catch((err) => debugWarn(err));
  10874. }
  10875. }
  10876. });
  10877. const needStatusIcon = computed(() => {
  10878. var _a2;
  10879. return (_a2 = elForm == null ? void 0 : elForm.statusIcon) != null ? _a2 : false;
  10880. });
  10881. const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
  10882. const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
  10883. const passwordIcon = computed(() => passwordVisible.value ? view_default : hide_default);
  10884. const containerStyle = computed(() => [
  10885. rawAttrs.style
  10886. ]);
  10887. const textareaStyle = computed(() => [
  10888. props2.inputStyle,
  10889. textareaCalcStyle.value,
  10890. { resize: props2.resize }
  10891. ]);
  10892. const nativeInputValue = computed(() => isNil_default(props2.modelValue) ? "" : String(props2.modelValue));
  10893. const showClear = computed(() => props2.clearable && !inputDisabled.value && !props2.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
  10894. const showPwdVisible = computed(() => props2.showPassword && !inputDisabled.value && !!nativeInputValue.value);
  10895. const isWordLimitVisible = computed(() => props2.showWordLimit && !!props2.maxlength && (props2.type === "text" || props2.type === "textarea") && !inputDisabled.value && !props2.readonly && !props2.showPassword);
  10896. const textLength = computed(() => nativeInputValue.value.length);
  10897. const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(props2.maxlength));
  10898. const suffixVisible = computed(() => !!slots.suffix || !!props2.suffixIcon || showClear.value || props2.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
  10899. const hasModelModifiers = computed(() => !!Object.keys(props2.modelModifiers).length);
  10900. const [recordCursor, setCursor] = useCursor(input);
  10901. useResizeObserver(textarea, (entries) => {
  10902. onceInitSizeTextarea();
  10903. if (!isWordLimitVisible.value || props2.resize !== "both")
  10904. return;
  10905. const entry = entries[0];
  10906. const { width } = entry.contentRect;
  10907. countStyle.value = {
  10908. right: `calc(100% - ${width + 15 + 6}px)`
  10909. };
  10910. });
  10911. const resizeTextarea = () => {
  10912. const { type: type4, autosize } = props2;
  10913. if (!isClient || type4 !== "textarea" || !textarea.value)
  10914. return;
  10915. if (autosize) {
  10916. const minRows = isObject(autosize) ? autosize.minRows : void 0;
  10917. const maxRows = isObject(autosize) ? autosize.maxRows : void 0;
  10918. const textareaStyle2 = calcTextareaHeight(textarea.value, minRows, maxRows);
  10919. textareaCalcStyle.value = {
  10920. overflowY: "hidden",
  10921. ...textareaStyle2
  10922. };
  10923. nextTick(() => {
  10924. textarea.value.offsetHeight;
  10925. textareaCalcStyle.value = textareaStyle2;
  10926. });
  10927. } else {
  10928. textareaCalcStyle.value = {
  10929. minHeight: calcTextareaHeight(textarea.value).minHeight
  10930. };
  10931. }
  10932. };
  10933. const createOnceInitResize = (resizeTextarea2) => {
  10934. let isInit = false;
  10935. return () => {
  10936. var _a2;
  10937. if (isInit || !props2.autosize)
  10938. return;
  10939. const isElHidden = ((_a2 = textarea.value) == null ? void 0 : _a2.offsetParent) === null;
  10940. if (!isElHidden) {
  10941. setTimeout(resizeTextarea2);
  10942. isInit = true;
  10943. }
  10944. };
  10945. };
  10946. const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
  10947. const setNativeInputValue = () => {
  10948. const input2 = _ref.value;
  10949. const formatterValue = props2.formatter ? props2.formatter(nativeInputValue.value) : nativeInputValue.value;
  10950. if (!input2 || input2.value === formatterValue)
  10951. return;
  10952. input2.value = formatterValue;
  10953. };
  10954. const formatValue = (value) => {
  10955. const { trim: trim2, number: number4 } = props2.modelModifiers;
  10956. if (trim2) {
  10957. value = value.trim();
  10958. }
  10959. if (number4) {
  10960. value = `${looseToNumber(value)}`;
  10961. }
  10962. if (props2.formatter && props2.parser) {
  10963. value = props2.parser(value);
  10964. }
  10965. return value;
  10966. };
  10967. const handleInput = async (event) => {
  10968. if (isComposing.value)
  10969. return;
  10970. const { lazy } = props2.modelModifiers;
  10971. let { value } = event.target;
  10972. if (lazy) {
  10973. emit(INPUT_EVENT, value);
  10974. return;
  10975. }
  10976. value = formatValue(value);
  10977. if (String(value) === nativeInputValue.value) {
  10978. if (props2.formatter) {
  10979. setNativeInputValue();
  10980. }
  10981. return;
  10982. }
  10983. recordCursor();
  10984. emit(UPDATE_MODEL_EVENT, value);
  10985. emit(INPUT_EVENT, value);
  10986. await nextTick();
  10987. if (props2.formatter && props2.parser || !hasModelModifiers.value) {
  10988. setNativeInputValue();
  10989. }
  10990. setCursor();
  10991. };
  10992. const handleChange = async (event) => {
  10993. let { value } = event.target;
  10994. value = formatValue(value);
  10995. if (props2.modelModifiers.lazy) {
  10996. emit(UPDATE_MODEL_EVENT, value);
  10997. }
  10998. emit(CHANGE_EVENT, value);
  10999. await nextTick();
  11000. setNativeInputValue();
  11001. };
  11002. const {
  11003. isComposing,
  11004. handleCompositionStart,
  11005. handleCompositionUpdate,
  11006. handleCompositionEnd
  11007. } = useComposition({ emit, afterComposition: handleInput });
  11008. const handlePasswordVisible = () => {
  11009. passwordVisible.value = !passwordVisible.value;
  11010. };
  11011. const focus = () => {
  11012. var _a2;
  11013. return (_a2 = _ref.value) == null ? void 0 : _a2.focus();
  11014. };
  11015. const blur = () => {
  11016. var _a2;
  11017. return (_a2 = _ref.value) == null ? void 0 : _a2.blur();
  11018. };
  11019. const handleMouseLeave = (evt) => {
  11020. hovering.value = false;
  11021. emit("mouseleave", evt);
  11022. };
  11023. const handleMouseEnter = (evt) => {
  11024. hovering.value = true;
  11025. emit("mouseenter", evt);
  11026. };
  11027. const handleKeydown = (evt) => {
  11028. emit("keydown", evt);
  11029. };
  11030. const select = () => {
  11031. var _a2;
  11032. (_a2 = _ref.value) == null ? void 0 : _a2.select();
  11033. };
  11034. const clear = () => {
  11035. emit(UPDATE_MODEL_EVENT, "");
  11036. emit(CHANGE_EVENT, "");
  11037. emit("clear");
  11038. emit(INPUT_EVENT, "");
  11039. };
  11040. watch(() => props2.modelValue, () => {
  11041. var _a2;
  11042. nextTick(() => resizeTextarea());
  11043. if (props2.validateEvent) {
  11044. (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change").catch((err) => debugWarn(err));
  11045. }
  11046. });
  11047. watch(nativeInputValue, (newValue) => {
  11048. if (!_ref.value) {
  11049. return;
  11050. }
  11051. const { trim: trim2, number: number4 } = props2.modelModifiers;
  11052. const elValue = _ref.value.value;
  11053. const displayValue = (number4 || props2.type === "number") && !/^0\d/.test(elValue) ? `${looseToNumber(elValue)}` : elValue;
  11054. if (displayValue === newValue) {
  11055. return;
  11056. }
  11057. if (document.activeElement === _ref.value && _ref.value.type !== "range") {
  11058. if (trim2 && displayValue.trim() === newValue) {
  11059. return;
  11060. }
  11061. }
  11062. setNativeInputValue();
  11063. });
  11064. watch(() => props2.type, async () => {
  11065. await nextTick();
  11066. setNativeInputValue();
  11067. resizeTextarea();
  11068. });
  11069. onMounted(() => {
  11070. if (!props2.formatter && props2.parser) {
  11071. debugWarn(COMPONENT_NAME2, "If you set the parser, you also need to set the formatter.");
  11072. }
  11073. setNativeInputValue();
  11074. nextTick(resizeTextarea);
  11075. });
  11076. expose({
  11077. input,
  11078. textarea,
  11079. ref: _ref,
  11080. textareaStyle,
  11081. autosize: toRef(props2, "autosize"),
  11082. isComposing,
  11083. focus,
  11084. blur,
  11085. select,
  11086. clear,
  11087. resizeTextarea
  11088. });
  11089. return (_ctx, _cache) => {
  11090. return openBlock(), createElementBlock("div", {
  11091. class: normalizeClass([
  11092. unref(containerKls),
  11093. {
  11094. [unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
  11095. [unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend
  11096. }
  11097. ]),
  11098. style: normalizeStyle(unref(containerStyle)),
  11099. onMouseenter: handleMouseEnter,
  11100. onMouseleave: handleMouseLeave
  11101. }, [
  11102. createCommentVNode(" input "),
  11103. _ctx.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  11104. createCommentVNode(" prepend slot "),
  11105. _ctx.$slots.prepend ? (openBlock(), createElementBlock("div", {
  11106. key: 0,
  11107. class: normalizeClass(unref(nsInput).be("group", "prepend"))
  11108. }, [
  11109. renderSlot(_ctx.$slots, "prepend")
  11110. ], 2)) : createCommentVNode("v-if", true),
  11111. createBaseVNode("div", {
  11112. ref_key: "wrapperRef",
  11113. ref: wrapperRef,
  11114. class: normalizeClass(unref(wrapperKls))
  11115. }, [
  11116. createCommentVNode(" prefix slot "),
  11117. _ctx.$slots.prefix || _ctx.prefixIcon ? (openBlock(), createElementBlock("span", {
  11118. key: 0,
  11119. class: normalizeClass(unref(nsInput).e("prefix"))
  11120. }, [
  11121. createBaseVNode("span", {
  11122. class: normalizeClass(unref(nsInput).e("prefix-inner"))
  11123. }, [
  11124. renderSlot(_ctx.$slots, "prefix"),
  11125. _ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
  11126. key: 0,
  11127. class: normalizeClass(unref(nsInput).e("icon"))
  11128. }, {
  11129. default: withCtx(() => [
  11130. (openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
  11131. ]),
  11132. _: 1
  11133. }, 8, ["class"])) : createCommentVNode("v-if", true)
  11134. ], 2)
  11135. ], 2)) : createCommentVNode("v-if", true),
  11136. createBaseVNode("input", mergeProps({
  11137. id: unref(inputId),
  11138. ref_key: "input",
  11139. ref: input,
  11140. class: unref(nsInput).e("inner")
  11141. }, unref(attrs), {
  11142. name: _ctx.name,
  11143. minlength: _ctx.minlength,
  11144. maxlength: _ctx.maxlength,
  11145. type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
  11146. disabled: unref(inputDisabled),
  11147. readonly: _ctx.readonly,
  11148. autocomplete: _ctx.autocomplete,
  11149. tabindex: _ctx.tabindex,
  11150. "aria-label": _ctx.ariaLabel,
  11151. placeholder: _ctx.placeholder,
  11152. style: _ctx.inputStyle,
  11153. form: _ctx.form,
  11154. autofocus: _ctx.autofocus,
  11155. role: _ctx.containerRole,
  11156. inputmode: _ctx.inputmode,
  11157. onCompositionstart: unref(handleCompositionStart),
  11158. onCompositionupdate: unref(handleCompositionUpdate),
  11159. onCompositionend: unref(handleCompositionEnd),
  11160. onInput: handleInput,
  11161. onChange: handleChange,
  11162. onKeydown: handleKeydown
  11163. }), null, 16, ["id", "name", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "inputmode", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
  11164. createCommentVNode(" suffix slot "),
  11165. unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
  11166. key: 1,
  11167. class: normalizeClass(unref(nsInput).e("suffix"))
  11168. }, [
  11169. createBaseVNode("span", {
  11170. class: normalizeClass(unref(nsInput).e("suffix-inner"))
  11171. }, [
  11172. !unref(showClear) || !unref(showPwdVisible) || !unref(isWordLimitVisible) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  11173. renderSlot(_ctx.$slots, "suffix"),
  11174. _ctx.suffixIcon ? (openBlock(), createBlock(unref(ElIcon), {
  11175. key: 0,
  11176. class: normalizeClass(unref(nsInput).e("icon"))
  11177. }, {
  11178. default: withCtx(() => [
  11179. (openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon)))
  11180. ]),
  11181. _: 1
  11182. }, 8, ["class"])) : createCommentVNode("v-if", true)
  11183. ], 64)) : createCommentVNode("v-if", true),
  11184. unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
  11185. key: 1,
  11186. class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("clear")]),
  11187. onMousedown: withModifiers(unref(NOOP), ["prevent"]),
  11188. onClick: clear
  11189. }, {
  11190. default: withCtx(() => [
  11191. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  11192. ]),
  11193. _: 1
  11194. }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
  11195. unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
  11196. key: 2,
  11197. class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
  11198. onClick: handlePasswordVisible,
  11199. onMousedown: withModifiers(unref(NOOP), ["prevent"]),
  11200. onMouseup: withModifiers(unref(NOOP), ["prevent"])
  11201. }, {
  11202. default: withCtx(() => [
  11203. (openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
  11204. ]),
  11205. _: 1
  11206. }, 8, ["class", "onMousedown", "onMouseup"])) : createCommentVNode("v-if", true),
  11207. unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
  11208. key: 3,
  11209. class: normalizeClass([
  11210. unref(nsInput).e("count"),
  11211. unref(nsInput).is("outside", _ctx.wordLimitPosition === "outside")
  11212. ])
  11213. }, [
  11214. createBaseVNode("span", {
  11215. class: normalizeClass(unref(nsInput).e("count-inner"))
  11216. }, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 3)
  11217. ], 2)) : createCommentVNode("v-if", true),
  11218. unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
  11219. key: 4,
  11220. class: normalizeClass([
  11221. unref(nsInput).e("icon"),
  11222. unref(nsInput).e("validateIcon"),
  11223. unref(nsInput).is("loading", unref(validateState) === "validating")
  11224. ])
  11225. }, {
  11226. default: withCtx(() => [
  11227. (openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
  11228. ]),
  11229. _: 1
  11230. }, 8, ["class"])) : createCommentVNode("v-if", true)
  11231. ], 2)
  11232. ], 2)) : createCommentVNode("v-if", true)
  11233. ], 2),
  11234. createCommentVNode(" append slot "),
  11235. _ctx.$slots.append ? (openBlock(), createElementBlock("div", {
  11236. key: 1,
  11237. class: normalizeClass(unref(nsInput).be("group", "append"))
  11238. }, [
  11239. renderSlot(_ctx.$slots, "append")
  11240. ], 2)) : createCommentVNode("v-if", true)
  11241. ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  11242. createCommentVNode(" textarea "),
  11243. createBaseVNode("textarea", mergeProps({
  11244. id: unref(inputId),
  11245. ref_key: "textarea",
  11246. ref: textarea,
  11247. class: [unref(nsTextarea).e("inner"), unref(nsInput).is("focus", unref(isFocused))]
  11248. }, unref(attrs), {
  11249. minlength: _ctx.minlength,
  11250. maxlength: _ctx.maxlength,
  11251. tabindex: _ctx.tabindex,
  11252. disabled: unref(inputDisabled),
  11253. readonly: _ctx.readonly,
  11254. autocomplete: _ctx.autocomplete,
  11255. style: unref(textareaStyle),
  11256. "aria-label": _ctx.ariaLabel,
  11257. placeholder: _ctx.placeholder,
  11258. form: _ctx.form,
  11259. autofocus: _ctx.autofocus,
  11260. rows: _ctx.rows,
  11261. role: _ctx.containerRole,
  11262. onCompositionstart: unref(handleCompositionStart),
  11263. onCompositionupdate: unref(handleCompositionUpdate),
  11264. onCompositionend: unref(handleCompositionEnd),
  11265. onInput: handleInput,
  11266. onFocus: unref(handleFocus),
  11267. onBlur: unref(handleBlur),
  11268. onChange: handleChange,
  11269. onKeydown: handleKeydown
  11270. }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
  11271. unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
  11272. key: 0,
  11273. style: normalizeStyle(countStyle.value),
  11274. class: normalizeClass([
  11275. unref(nsInput).e("count"),
  11276. unref(nsInput).is("outside", _ctx.wordLimitPosition === "outside")
  11277. ])
  11278. }, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 7)) : createCommentVNode("v-if", true)
  11279. ], 64))
  11280. ], 38);
  11281. };
  11282. }
  11283. });
  11284. var Input = _export_sfc(_sfc_main4, [["__file", "input.vue"]]);
  11285. // node_modules/element-plus/es/components/input/index.mjs
  11286. var ElInput = withInstall(Input);
  11287. // node_modules/element-plus/es/components/scrollbar/src/util.mjs
  11288. var GAP = 4;
  11289. var BAR_MAP = {
  11290. vertical: {
  11291. offset: "offsetHeight",
  11292. scroll: "scrollTop",
  11293. scrollSize: "scrollHeight",
  11294. size: "height",
  11295. key: "vertical",
  11296. axis: "Y",
  11297. client: "clientY",
  11298. direction: "top"
  11299. },
  11300. horizontal: {
  11301. offset: "offsetWidth",
  11302. scroll: "scrollLeft",
  11303. scrollSize: "scrollWidth",
  11304. size: "width",
  11305. key: "horizontal",
  11306. axis: "X",
  11307. client: "clientX",
  11308. direction: "left"
  11309. }
  11310. };
  11311. var renderThumbStyle = ({
  11312. move,
  11313. size: size3,
  11314. bar
  11315. }) => ({
  11316. [bar.size]: size3,
  11317. transform: `translate${bar.axis}(${move}%)`
  11318. });
  11319. // node_modules/element-plus/es/components/scrollbar/src/constants.mjs
  11320. var scrollbarContextKey = Symbol("scrollbarContextKey");
  11321. // node_modules/element-plus/es/components/scrollbar/src/thumb.mjs
  11322. var thumbProps = buildProps({
  11323. vertical: Boolean,
  11324. size: String,
  11325. move: Number,
  11326. ratio: {
  11327. type: Number,
  11328. required: true
  11329. },
  11330. always: Boolean
  11331. });
  11332. // node_modules/element-plus/es/components/scrollbar/src/thumb2.mjs
  11333. var COMPONENT_NAME3 = "Thumb";
  11334. var _sfc_main5 = defineComponent({
  11335. __name: "thumb",
  11336. props: thumbProps,
  11337. setup(__props) {
  11338. const props2 = __props;
  11339. const scrollbar = inject(scrollbarContextKey);
  11340. const ns = useNamespace("scrollbar");
  11341. if (!scrollbar)
  11342. throwError(COMPONENT_NAME3, "can not inject scrollbar context");
  11343. const instance = ref();
  11344. const thumb = ref();
  11345. const thumbState = ref({});
  11346. const visible = ref(false);
  11347. let cursorDown = false;
  11348. let cursorLeave = false;
  11349. let baseScrollHeight = 0;
  11350. let baseScrollWidth = 0;
  11351. let originalOnSelectStart = isClient ? document.onselectstart : null;
  11352. const bar = computed(() => BAR_MAP[props2.vertical ? "vertical" : "horizontal"]);
  11353. const thumbStyle = computed(() => renderThumbStyle({
  11354. size: props2.size,
  11355. move: props2.move,
  11356. bar: bar.value
  11357. }));
  11358. const offsetRatio = computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props2.ratio / thumb.value[bar.value.offset]);
  11359. const clickThumbHandler = (e) => {
  11360. var _a2;
  11361. e.stopPropagation();
  11362. if (e.ctrlKey || [1, 2].includes(e.button))
  11363. return;
  11364. (_a2 = window.getSelection()) == null ? void 0 : _a2.removeAllRanges();
  11365. startDrag(e);
  11366. const el = e.currentTarget;
  11367. if (!el)
  11368. return;
  11369. thumbState.value[bar.value.axis] = el[bar.value.offset] - (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction]);
  11370. };
  11371. const clickTrackHandler = (e) => {
  11372. if (!thumb.value || !instance.value || !scrollbar.wrapElement)
  11373. return;
  11374. const offset3 = Math.abs(e.target.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]);
  11375. const thumbHalf = thumb.value[bar.value.offset] / 2;
  11376. const thumbPositionPercentage = (offset3 - thumbHalf) * 100 * offsetRatio.value / instance.value[bar.value.offset];
  11377. scrollbar.wrapElement[bar.value.scroll] = thumbPositionPercentage * scrollbar.wrapElement[bar.value.scrollSize] / 100;
  11378. };
  11379. const startDrag = (e) => {
  11380. e.stopImmediatePropagation();
  11381. cursorDown = true;
  11382. baseScrollHeight = scrollbar.wrapElement.scrollHeight;
  11383. baseScrollWidth = scrollbar.wrapElement.scrollWidth;
  11384. document.addEventListener("mousemove", mouseMoveDocumentHandler);
  11385. document.addEventListener("mouseup", mouseUpDocumentHandler);
  11386. originalOnSelectStart = document.onselectstart;
  11387. document.onselectstart = () => false;
  11388. };
  11389. const mouseMoveDocumentHandler = (e) => {
  11390. if (!instance.value || !thumb.value)
  11391. return;
  11392. if (cursorDown === false)
  11393. return;
  11394. const prevPage = thumbState.value[bar.value.axis];
  11395. if (!prevPage)
  11396. return;
  11397. const offset3 = (instance.value.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]) * -1;
  11398. const thumbClickPosition = thumb.value[bar.value.offset] - prevPage;
  11399. const thumbPositionPercentage = (offset3 - thumbClickPosition) * 100 * offsetRatio.value / instance.value[bar.value.offset];
  11400. if (bar.value.scroll === "scrollLeft") {
  11401. scrollbar.wrapElement[bar.value.scroll] = thumbPositionPercentage * baseScrollWidth / 100;
  11402. } else {
  11403. scrollbar.wrapElement[bar.value.scroll] = thumbPositionPercentage * baseScrollHeight / 100;
  11404. }
  11405. };
  11406. const mouseUpDocumentHandler = () => {
  11407. cursorDown = false;
  11408. thumbState.value[bar.value.axis] = 0;
  11409. document.removeEventListener("mousemove", mouseMoveDocumentHandler);
  11410. document.removeEventListener("mouseup", mouseUpDocumentHandler);
  11411. restoreOnselectstart();
  11412. if (cursorLeave)
  11413. visible.value = false;
  11414. };
  11415. const mouseMoveScrollbarHandler = () => {
  11416. cursorLeave = false;
  11417. visible.value = !!props2.size;
  11418. };
  11419. const mouseLeaveScrollbarHandler = () => {
  11420. cursorLeave = true;
  11421. visible.value = cursorDown;
  11422. };
  11423. onBeforeUnmount(() => {
  11424. restoreOnselectstart();
  11425. document.removeEventListener("mouseup", mouseUpDocumentHandler);
  11426. });
  11427. const restoreOnselectstart = () => {
  11428. if (document.onselectstart !== originalOnSelectStart)
  11429. document.onselectstart = originalOnSelectStart;
  11430. };
  11431. useEventListener(toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
  11432. useEventListener(toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
  11433. return (_ctx, _cache) => {
  11434. return openBlock(), createBlock(Transition, {
  11435. name: unref(ns).b("fade"),
  11436. persisted: ""
  11437. }, {
  11438. default: withCtx(() => [
  11439. withDirectives(createBaseVNode("div", {
  11440. ref_key: "instance",
  11441. ref: instance,
  11442. class: normalizeClass([unref(ns).e("bar"), unref(ns).is(unref(bar).key)]),
  11443. onMousedown: clickTrackHandler,
  11444. onClick: withModifiers(() => {
  11445. }, ["stop"])
  11446. }, [
  11447. createBaseVNode("div", {
  11448. ref_key: "thumb",
  11449. ref: thumb,
  11450. class: normalizeClass(unref(ns).e("thumb")),
  11451. style: normalizeStyle(unref(thumbStyle)),
  11452. onMousedown: clickThumbHandler
  11453. }, null, 38)
  11454. ], 42, ["onClick"]), [
  11455. [vShow, _ctx.always || visible.value]
  11456. ])
  11457. ]),
  11458. _: 1
  11459. }, 8, ["name"]);
  11460. };
  11461. }
  11462. });
  11463. var Thumb = _export_sfc(_sfc_main5, [["__file", "thumb.vue"]]);
  11464. // node_modules/element-plus/es/components/scrollbar/src/bar.mjs
  11465. var barProps = buildProps({
  11466. always: {
  11467. type: Boolean,
  11468. default: true
  11469. },
  11470. minSize: {
  11471. type: Number,
  11472. required: true
  11473. }
  11474. });
  11475. // node_modules/element-plus/es/components/scrollbar/src/bar2.mjs
  11476. var _sfc_main6 = defineComponent({
  11477. __name: "bar",
  11478. props: barProps,
  11479. setup(__props, { expose }) {
  11480. const props2 = __props;
  11481. const scrollbar = inject(scrollbarContextKey);
  11482. const moveX = ref(0);
  11483. const moveY = ref(0);
  11484. const sizeWidth = ref("");
  11485. const sizeHeight = ref("");
  11486. const ratioY = ref(1);
  11487. const ratioX = ref(1);
  11488. const handleScroll2 = (wrap2) => {
  11489. if (wrap2) {
  11490. const offsetHeight = wrap2.offsetHeight - GAP;
  11491. const offsetWidth = wrap2.offsetWidth - GAP;
  11492. moveY.value = wrap2.scrollTop * 100 / offsetHeight * ratioY.value;
  11493. moveX.value = wrap2.scrollLeft * 100 / offsetWidth * ratioX.value;
  11494. }
  11495. };
  11496. const update2 = () => {
  11497. const wrap2 = scrollbar == null ? void 0 : scrollbar.wrapElement;
  11498. if (!wrap2)
  11499. return;
  11500. const offsetHeight = wrap2.offsetHeight - GAP;
  11501. const offsetWidth = wrap2.offsetWidth - GAP;
  11502. const originalHeight = offsetHeight ** 2 / wrap2.scrollHeight;
  11503. const originalWidth = offsetWidth ** 2 / wrap2.scrollWidth;
  11504. const height = Math.max(originalHeight, props2.minSize);
  11505. const width = Math.max(originalWidth, props2.minSize);
  11506. ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
  11507. ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
  11508. sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : "";
  11509. sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : "";
  11510. };
  11511. expose({
  11512. handleScroll: handleScroll2,
  11513. update: update2
  11514. });
  11515. return (_ctx, _cache) => {
  11516. return openBlock(), createElementBlock(Fragment, null, [
  11517. createVNode(Thumb, {
  11518. move: moveX.value,
  11519. ratio: ratioX.value,
  11520. size: sizeWidth.value,
  11521. always: _ctx.always
  11522. }, null, 8, ["move", "ratio", "size", "always"]),
  11523. createVNode(Thumb, {
  11524. move: moveY.value,
  11525. ratio: ratioY.value,
  11526. size: sizeHeight.value,
  11527. vertical: "",
  11528. always: _ctx.always
  11529. }, null, 8, ["move", "ratio", "size", "always"])
  11530. ], 64);
  11531. };
  11532. }
  11533. });
  11534. var Bar = _export_sfc(_sfc_main6, [["__file", "bar.vue"]]);
  11535. // node_modules/element-plus/es/components/scrollbar/src/scrollbar.mjs
  11536. var scrollbarProps = buildProps({
  11537. distance: {
  11538. type: Number,
  11539. default: 0
  11540. },
  11541. height: {
  11542. type: [String, Number],
  11543. default: ""
  11544. },
  11545. maxHeight: {
  11546. type: [String, Number],
  11547. default: ""
  11548. },
  11549. native: Boolean,
  11550. wrapStyle: {
  11551. type: definePropType([String, Object, Array]),
  11552. default: ""
  11553. },
  11554. wrapClass: {
  11555. type: [String, Array],
  11556. default: ""
  11557. },
  11558. viewClass: {
  11559. type: [String, Array],
  11560. default: ""
  11561. },
  11562. viewStyle: {
  11563. type: [String, Array, Object],
  11564. default: ""
  11565. },
  11566. noresize: Boolean,
  11567. tag: {
  11568. type: String,
  11569. default: "div"
  11570. },
  11571. always: Boolean,
  11572. minSize: {
  11573. type: Number,
  11574. default: 20
  11575. },
  11576. tabindex: {
  11577. type: [String, Number],
  11578. default: void 0
  11579. },
  11580. id: String,
  11581. role: String,
  11582. ...useAriaProps(["ariaLabel", "ariaOrientation"])
  11583. });
  11584. var scrollbarEmits = {
  11585. "end-reached": (direction2) => ["left", "right", "top", "bottom"].includes(direction2),
  11586. scroll: ({
  11587. scrollTop,
  11588. scrollLeft
  11589. }) => [scrollTop, scrollLeft].every(isNumber2)
  11590. };
  11591. // node_modules/element-plus/es/components/scrollbar/src/scrollbar2.mjs
  11592. var COMPONENT_NAME4 = "ElScrollbar";
  11593. var __default__5 = defineComponent({
  11594. name: COMPONENT_NAME4
  11595. });
  11596. var _sfc_main7 = defineComponent({
  11597. ...__default__5,
  11598. props: scrollbarProps,
  11599. emits: scrollbarEmits,
  11600. setup(__props, { expose, emit }) {
  11601. const props2 = __props;
  11602. const ns = useNamespace("scrollbar");
  11603. let stopResizeObserver = void 0;
  11604. let stopWrapResizeObserver = void 0;
  11605. let stopResizeListener = void 0;
  11606. let wrapScrollTop = 0;
  11607. let wrapScrollLeft = 0;
  11608. let direction2 = "";
  11609. const distanceScrollState = {
  11610. bottom: false,
  11611. top: false,
  11612. right: false,
  11613. left: false
  11614. };
  11615. const scrollbarRef = ref();
  11616. const wrapRef = ref();
  11617. const resizeRef = ref();
  11618. const barRef = ref();
  11619. const wrapStyle = computed(() => {
  11620. const style = {};
  11621. if (props2.height)
  11622. style.height = addUnit(props2.height);
  11623. if (props2.maxHeight)
  11624. style.maxHeight = addUnit(props2.maxHeight);
  11625. return [props2.wrapStyle, style];
  11626. });
  11627. const wrapKls = computed(() => {
  11628. return [
  11629. props2.wrapClass,
  11630. ns.e("wrap"),
  11631. { [ns.em("wrap", "hidden-default")]: !props2.native }
  11632. ];
  11633. });
  11634. const resizeKls = computed(() => {
  11635. return [ns.e("view"), props2.viewClass];
  11636. });
  11637. const shouldSkipDirection = (direction22) => {
  11638. var _a2;
  11639. return (_a2 = distanceScrollState[direction22]) != null ? _a2 : false;
  11640. };
  11641. const DIRECTION_PAIRS = {
  11642. top: "bottom",
  11643. bottom: "top",
  11644. left: "right",
  11645. right: "left"
  11646. };
  11647. const updateTriggerStatus = (arrivedStates) => {
  11648. const oppositeDirection = DIRECTION_PAIRS[direction2];
  11649. if (!oppositeDirection)
  11650. return;
  11651. const arrived = arrivedStates[direction2];
  11652. const oppositeArrived = arrivedStates[oppositeDirection];
  11653. if (arrived && !distanceScrollState[direction2]) {
  11654. distanceScrollState[direction2] = true;
  11655. }
  11656. if (!oppositeArrived && distanceScrollState[oppositeDirection]) {
  11657. distanceScrollState[oppositeDirection] = false;
  11658. }
  11659. };
  11660. const handleScroll2 = () => {
  11661. var _a2;
  11662. if (wrapRef.value) {
  11663. (_a2 = barRef.value) == null ? void 0 : _a2.handleScroll(wrapRef.value);
  11664. const prevTop = wrapScrollTop;
  11665. const prevLeft = wrapScrollLeft;
  11666. wrapScrollTop = wrapRef.value.scrollTop;
  11667. wrapScrollLeft = wrapRef.value.scrollLeft;
  11668. const arrivedStates = {
  11669. bottom: wrapScrollTop + wrapRef.value.clientHeight >= wrapRef.value.scrollHeight - props2.distance,
  11670. top: wrapScrollTop <= props2.distance && prevTop !== 0,
  11671. right: wrapScrollLeft + wrapRef.value.clientWidth >= wrapRef.value.scrollWidth - props2.distance && prevLeft !== wrapScrollLeft,
  11672. left: wrapScrollLeft <= props2.distance && prevLeft !== 0
  11673. };
  11674. emit("scroll", {
  11675. scrollTop: wrapScrollTop,
  11676. scrollLeft: wrapScrollLeft
  11677. });
  11678. if (prevTop !== wrapScrollTop) {
  11679. direction2 = wrapScrollTop > prevTop ? "bottom" : "top";
  11680. }
  11681. if (prevLeft !== wrapScrollLeft) {
  11682. direction2 = wrapScrollLeft > prevLeft ? "right" : "left";
  11683. }
  11684. if (props2.distance > 0) {
  11685. if (shouldSkipDirection(direction2)) {
  11686. return;
  11687. }
  11688. updateTriggerStatus(arrivedStates);
  11689. }
  11690. if (arrivedStates[direction2])
  11691. emit("end-reached", direction2);
  11692. }
  11693. };
  11694. function scrollTo(arg1, arg2) {
  11695. if (isObject(arg1)) {
  11696. wrapRef.value.scrollTo(arg1);
  11697. } else if (isNumber2(arg1) && isNumber2(arg2)) {
  11698. wrapRef.value.scrollTo(arg1, arg2);
  11699. }
  11700. }
  11701. const setScrollTop = (value) => {
  11702. if (!isNumber2(value)) {
  11703. debugWarn(COMPONENT_NAME4, "value must be a number");
  11704. return;
  11705. }
  11706. wrapRef.value.scrollTop = value;
  11707. };
  11708. const setScrollLeft = (value) => {
  11709. if (!isNumber2(value)) {
  11710. debugWarn(COMPONENT_NAME4, "value must be a number");
  11711. return;
  11712. }
  11713. wrapRef.value.scrollLeft = value;
  11714. };
  11715. const update2 = () => {
  11716. var _a2;
  11717. (_a2 = barRef.value) == null ? void 0 : _a2.update();
  11718. distanceScrollState[direction2] = false;
  11719. };
  11720. watch(() => props2.noresize, (noresize) => {
  11721. if (noresize) {
  11722. stopResizeObserver == null ? void 0 : stopResizeObserver();
  11723. stopWrapResizeObserver == null ? void 0 : stopWrapResizeObserver();
  11724. stopResizeListener == null ? void 0 : stopResizeListener();
  11725. } else {
  11726. ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update2));
  11727. ({ stop: stopWrapResizeObserver } = useResizeObserver(wrapRef, update2));
  11728. stopResizeListener = useEventListener("resize", update2);
  11729. }
  11730. }, { immediate: true });
  11731. watch(() => [props2.maxHeight, props2.height], () => {
  11732. if (!props2.native)
  11733. nextTick(() => {
  11734. var _a2;
  11735. update2();
  11736. if (wrapRef.value) {
  11737. (_a2 = barRef.value) == null ? void 0 : _a2.handleScroll(wrapRef.value);
  11738. }
  11739. });
  11740. });
  11741. provide(scrollbarContextKey, reactive({
  11742. scrollbarElement: scrollbarRef,
  11743. wrapElement: wrapRef
  11744. }));
  11745. onActivated(() => {
  11746. if (wrapRef.value) {
  11747. wrapRef.value.scrollTop = wrapScrollTop;
  11748. wrapRef.value.scrollLeft = wrapScrollLeft;
  11749. }
  11750. });
  11751. onMounted(() => {
  11752. if (!props2.native)
  11753. nextTick(() => {
  11754. update2();
  11755. });
  11756. });
  11757. onUpdated(() => update2());
  11758. expose({
  11759. wrapRef,
  11760. update: update2,
  11761. scrollTo,
  11762. setScrollTop,
  11763. setScrollLeft,
  11764. handleScroll: handleScroll2
  11765. });
  11766. return (_ctx, _cache) => {
  11767. return openBlock(), createElementBlock("div", {
  11768. ref_key: "scrollbarRef",
  11769. ref: scrollbarRef,
  11770. class: normalizeClass(unref(ns).b())
  11771. }, [
  11772. createBaseVNode("div", {
  11773. ref_key: "wrapRef",
  11774. ref: wrapRef,
  11775. class: normalizeClass(unref(wrapKls)),
  11776. style: normalizeStyle(unref(wrapStyle)),
  11777. tabindex: _ctx.tabindex,
  11778. onScroll: handleScroll2
  11779. }, [
  11780. (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
  11781. id: _ctx.id,
  11782. ref_key: "resizeRef",
  11783. ref: resizeRef,
  11784. class: normalizeClass(unref(resizeKls)),
  11785. style: normalizeStyle(_ctx.viewStyle),
  11786. role: _ctx.role,
  11787. "aria-label": _ctx.ariaLabel,
  11788. "aria-orientation": _ctx.ariaOrientation
  11789. }, {
  11790. default: withCtx(() => [
  11791. renderSlot(_ctx.$slots, "default")
  11792. ]),
  11793. _: 3
  11794. }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
  11795. ], 46, ["tabindex"]),
  11796. !_ctx.native ? (openBlock(), createBlock(Bar, {
  11797. key: 0,
  11798. ref_key: "barRef",
  11799. ref: barRef,
  11800. always: _ctx.always,
  11801. "min-size": _ctx.minSize
  11802. }, null, 8, ["always", "min-size"])) : createCommentVNode("v-if", true)
  11803. ], 2);
  11804. };
  11805. }
  11806. });
  11807. var Scrollbar = _export_sfc(_sfc_main7, [["__file", "scrollbar.vue"]]);
  11808. // node_modules/element-plus/es/components/scrollbar/index.mjs
  11809. var ElScrollbar = withInstall(Scrollbar);
  11810. // node_modules/element-plus/es/components/popper/src/constants.mjs
  11811. var POPPER_INJECTION_KEY = Symbol("popper");
  11812. var POPPER_CONTENT_INJECTION_KEY = Symbol("popperContent");
  11813. // node_modules/element-plus/es/components/popper/src/popper.mjs
  11814. var Effect = {
  11815. LIGHT: "light",
  11816. DARK: "dark"
  11817. };
  11818. var roleTypes = [
  11819. "dialog",
  11820. "grid",
  11821. "group",
  11822. "listbox",
  11823. "menu",
  11824. "navigation",
  11825. "tooltip",
  11826. "tree"
  11827. ];
  11828. var popperProps = buildProps({
  11829. role: {
  11830. type: String,
  11831. values: roleTypes,
  11832. default: "tooltip"
  11833. }
  11834. });
  11835. var usePopperProps = popperProps;
  11836. // node_modules/element-plus/es/components/popper/src/popper2.mjs
  11837. var __default__6 = defineComponent({
  11838. name: "ElPopper",
  11839. inheritAttrs: false
  11840. });
  11841. var _sfc_main8 = defineComponent({
  11842. ...__default__6,
  11843. props: popperProps,
  11844. setup(__props, { expose }) {
  11845. const props2 = __props;
  11846. const triggerRef2 = ref();
  11847. const popperInstanceRef = ref();
  11848. const contentRef = ref();
  11849. const referenceRef = ref();
  11850. const role = computed(() => props2.role);
  11851. const popperProvides = {
  11852. triggerRef: triggerRef2,
  11853. popperInstanceRef,
  11854. contentRef,
  11855. referenceRef,
  11856. role
  11857. };
  11858. expose(popperProvides);
  11859. provide(POPPER_INJECTION_KEY, popperProvides);
  11860. return (_ctx, _cache) => {
  11861. return renderSlot(_ctx.$slots, "default");
  11862. };
  11863. }
  11864. });
  11865. var Popper = _export_sfc(_sfc_main8, [["__file", "popper.vue"]]);
  11866. // node_modules/element-plus/es/components/popper/src/arrow2.mjs
  11867. var __default__7 = defineComponent({
  11868. name: "ElPopperArrow",
  11869. inheritAttrs: false
  11870. });
  11871. var _sfc_main9 = defineComponent({
  11872. ...__default__7,
  11873. setup(__props, { expose }) {
  11874. const ns = useNamespace("popper");
  11875. const { arrowRef, arrowStyle } = inject(POPPER_CONTENT_INJECTION_KEY, void 0);
  11876. onBeforeUnmount(() => {
  11877. arrowRef.value = void 0;
  11878. });
  11879. expose({
  11880. arrowRef
  11881. });
  11882. return (_ctx, _cache) => {
  11883. return openBlock(), createElementBlock("span", {
  11884. ref_key: "arrowRef",
  11885. ref: arrowRef,
  11886. class: normalizeClass(unref(ns).e("arrow")),
  11887. style: normalizeStyle(unref(arrowStyle)),
  11888. "data-popper-arrow": ""
  11889. }, null, 6);
  11890. };
  11891. }
  11892. });
  11893. var ElPopperArrow = _export_sfc(_sfc_main9, [["__file", "arrow.vue"]]);
  11894. // node_modules/element-plus/es/components/popper/src/trigger.mjs
  11895. var popperTriggerProps = buildProps({
  11896. virtualRef: {
  11897. type: definePropType(Object)
  11898. },
  11899. virtualTriggering: Boolean,
  11900. onMouseenter: {
  11901. type: definePropType(Function)
  11902. },
  11903. onMouseleave: {
  11904. type: definePropType(Function)
  11905. },
  11906. onClick: {
  11907. type: definePropType(Function)
  11908. },
  11909. onKeydown: {
  11910. type: definePropType(Function)
  11911. },
  11912. onFocus: {
  11913. type: definePropType(Function)
  11914. },
  11915. onBlur: {
  11916. type: definePropType(Function)
  11917. },
  11918. onContextmenu: {
  11919. type: definePropType(Function)
  11920. },
  11921. id: String,
  11922. open: Boolean
  11923. });
  11924. var usePopperTriggerProps = popperTriggerProps;
  11925. // node_modules/element-plus/es/hooks/use-forward-ref/index.mjs
  11926. var FORWARD_REF_INJECTION_KEY = Symbol("elForwardRef");
  11927. var useForwardRef = (forwardRef) => {
  11928. const setForwardRef = (el) => {
  11929. forwardRef.value = el;
  11930. };
  11931. provide(FORWARD_REF_INJECTION_KEY, {
  11932. setForwardRef
  11933. });
  11934. };
  11935. var useForwardRefDirective = (setForwardRef) => {
  11936. return {
  11937. mounted(el) {
  11938. setForwardRef(el);
  11939. },
  11940. updated(el) {
  11941. setForwardRef(el);
  11942. },
  11943. unmounted() {
  11944. setForwardRef(null);
  11945. }
  11946. };
  11947. };
  11948. // node_modules/element-plus/es/components/slot/src/only-child.mjs
  11949. var NAME = "ElOnlyChild";
  11950. var OnlyChild = defineComponent({
  11951. name: NAME,
  11952. setup(_2, {
  11953. slots,
  11954. attrs
  11955. }) {
  11956. var _a2;
  11957. const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY);
  11958. const forwardRefDirective = useForwardRefDirective((_a2 = forwardRefInjection == null ? void 0 : forwardRefInjection.setForwardRef) != null ? _a2 : NOOP);
  11959. return () => {
  11960. var _a22;
  11961. const defaultSlot = (_a22 = slots.default) == null ? void 0 : _a22.call(slots, attrs);
  11962. if (!defaultSlot)
  11963. return null;
  11964. const [firstLegitNode, length] = findFirstLegitChild(defaultSlot);
  11965. if (!firstLegitNode) {
  11966. debugWarn(NAME, "no valid child node found");
  11967. return null;
  11968. }
  11969. if (length > 1) {
  11970. debugWarn(NAME, "requires exact only one valid child.");
  11971. }
  11972. return withDirectives(cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
  11973. };
  11974. }
  11975. });
  11976. function findFirstLegitChild(node) {
  11977. if (!node)
  11978. return [null, 0];
  11979. const children = node;
  11980. const len = children.filter((c2) => c2.type !== Comment).length;
  11981. for (const child of children) {
  11982. if (isObject(child)) {
  11983. switch (child.type) {
  11984. case Comment:
  11985. continue;
  11986. case Text:
  11987. case "svg":
  11988. return [wrapTextContent(child), len];
  11989. case Fragment:
  11990. return findFirstLegitChild(child.children);
  11991. default:
  11992. return [child, len];
  11993. }
  11994. }
  11995. return [wrapTextContent(child), len];
  11996. }
  11997. return [null, 0];
  11998. }
  11999. function wrapTextContent(s2) {
  12000. const ns = useNamespace("only-child");
  12001. return createVNode("span", {
  12002. "class": ns.e("content")
  12003. }, [s2]);
  12004. }
  12005. // node_modules/element-plus/es/components/popper/src/trigger2.mjs
  12006. var __default__8 = defineComponent({
  12007. name: "ElPopperTrigger",
  12008. inheritAttrs: false
  12009. });
  12010. var _sfc_main10 = defineComponent({
  12011. ...__default__8,
  12012. props: popperTriggerProps,
  12013. setup(__props, { expose }) {
  12014. const props2 = __props;
  12015. const { role, triggerRef: triggerRef2 } = inject(POPPER_INJECTION_KEY, void 0);
  12016. useForwardRef(triggerRef2);
  12017. const ariaControls = computed(() => {
  12018. return ariaHaspopup.value ? props2.id : void 0;
  12019. });
  12020. const ariaDescribedby = computed(() => {
  12021. if (role && role.value === "tooltip") {
  12022. return props2.open && props2.id ? props2.id : void 0;
  12023. }
  12024. return void 0;
  12025. });
  12026. const ariaHaspopup = computed(() => {
  12027. if (role && role.value !== "tooltip") {
  12028. return role.value;
  12029. }
  12030. return void 0;
  12031. });
  12032. const ariaExpanded = computed(() => {
  12033. return ariaHaspopup.value ? `${props2.open}` : void 0;
  12034. });
  12035. let virtualTriggerAriaStopWatch = void 0;
  12036. const TRIGGER_ELE_EVENTS = [
  12037. "onMouseenter",
  12038. "onMouseleave",
  12039. "onClick",
  12040. "onKeydown",
  12041. "onFocus",
  12042. "onBlur",
  12043. "onContextmenu"
  12044. ];
  12045. onMounted(() => {
  12046. watch(() => props2.virtualRef, (virtualEl) => {
  12047. if (virtualEl) {
  12048. triggerRef2.value = unrefElement(virtualEl);
  12049. }
  12050. }, {
  12051. immediate: true
  12052. });
  12053. watch(triggerRef2, (el, prevEl) => {
  12054. virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
  12055. virtualTriggerAriaStopWatch = void 0;
  12056. if (isElement2(el)) {
  12057. TRIGGER_ELE_EVENTS.forEach((eventName) => {
  12058. var _a2;
  12059. const handler = props2[eventName];
  12060. if (handler) {
  12061. el.addEventListener(eventName.slice(2).toLowerCase(), handler, ["onFocus", "onBlur"].includes(eventName));
  12062. (_a2 = prevEl == null ? void 0 : prevEl.removeEventListener) == null ? void 0 : _a2.call(prevEl, eventName.slice(2).toLowerCase(), handler, ["onFocus", "onBlur"].includes(eventName));
  12063. }
  12064. });
  12065. if (isFocusable(el)) {
  12066. virtualTriggerAriaStopWatch = watch([ariaControls, ariaDescribedby, ariaHaspopup, ariaExpanded], (watches) => {
  12067. [
  12068. "aria-controls",
  12069. "aria-describedby",
  12070. "aria-haspopup",
  12071. "aria-expanded"
  12072. ].forEach((key, idx) => {
  12073. isNil_default(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
  12074. });
  12075. }, { immediate: true });
  12076. }
  12077. }
  12078. if (isElement2(prevEl) && isFocusable(prevEl)) {
  12079. [
  12080. "aria-controls",
  12081. "aria-describedby",
  12082. "aria-haspopup",
  12083. "aria-expanded"
  12084. ].forEach((key) => prevEl.removeAttribute(key));
  12085. }
  12086. }, {
  12087. immediate: true
  12088. });
  12089. });
  12090. onBeforeUnmount(() => {
  12091. virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
  12092. virtualTriggerAriaStopWatch = void 0;
  12093. if (triggerRef2.value && isElement2(triggerRef2.value)) {
  12094. const el = triggerRef2.value;
  12095. TRIGGER_ELE_EVENTS.forEach((eventName) => {
  12096. const handler = props2[eventName];
  12097. if (handler) {
  12098. el.removeEventListener(eventName.slice(2).toLowerCase(), handler, ["onFocus", "onBlur"].includes(eventName));
  12099. }
  12100. });
  12101. triggerRef2.value = void 0;
  12102. }
  12103. });
  12104. expose({
  12105. triggerRef: triggerRef2
  12106. });
  12107. return (_ctx, _cache) => {
  12108. return !_ctx.virtualTriggering ? (openBlock(), createBlock(unref(OnlyChild), mergeProps({ key: 0 }, _ctx.$attrs, {
  12109. "aria-controls": unref(ariaControls),
  12110. "aria-describedby": unref(ariaDescribedby),
  12111. "aria-expanded": unref(ariaExpanded),
  12112. "aria-haspopup": unref(ariaHaspopup)
  12113. }), {
  12114. default: withCtx(() => [
  12115. renderSlot(_ctx.$slots, "default")
  12116. ]),
  12117. _: 3
  12118. }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])) : createCommentVNode("v-if", true);
  12119. };
  12120. }
  12121. });
  12122. var ElPopperTrigger = _export_sfc(_sfc_main10, [["__file", "trigger.vue"]]);
  12123. // node_modules/element-plus/es/components/focus-trap/src/tokens.mjs
  12124. var FOCUS_AFTER_TRAPPED = "focus-trap.focus-after-trapped";
  12125. var FOCUS_AFTER_RELEASED = "focus-trap.focus-after-released";
  12126. var FOCUSOUT_PREVENTED = "focus-trap.focusout-prevented";
  12127. var FOCUS_AFTER_TRAPPED_OPTS = {
  12128. cancelable: true,
  12129. bubbles: false
  12130. };
  12131. var FOCUSOUT_PREVENTED_OPTS = {
  12132. cancelable: true,
  12133. bubbles: false
  12134. };
  12135. var ON_TRAP_FOCUS_EVT = "focusAfterTrapped";
  12136. var ON_RELEASE_FOCUS_EVT = "focusAfterReleased";
  12137. var FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
  12138. // node_modules/element-plus/es/components/focus-trap/src/utils.mjs
  12139. var focusReason = ref();
  12140. var lastUserFocusTimestamp = ref(0);
  12141. var lastAutomatedFocusTimestamp = ref(0);
  12142. var focusReasonUserCount = 0;
  12143. var obtainAllFocusableElements2 = (element) => {
  12144. const nodes = [];
  12145. const walker = document.createTreeWalker(element, NodeFilter.SHOW_ELEMENT, {
  12146. acceptNode: (node) => {
  12147. const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
  12148. if (node.disabled || node.hidden || isHiddenInput)
  12149. return NodeFilter.FILTER_SKIP;
  12150. return node.tabIndex >= 0 || node === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
  12151. }
  12152. });
  12153. while (walker.nextNode())
  12154. nodes.push(walker.currentNode);
  12155. return nodes;
  12156. };
  12157. var getVisibleElement = (elements, container) => {
  12158. for (const element of elements) {
  12159. if (!isHidden(element, container))
  12160. return element;
  12161. }
  12162. };
  12163. var isHidden = (element, container) => {
  12164. if (getComputedStyle(element).visibility === "hidden")
  12165. return true;
  12166. while (element) {
  12167. if (container && element === container)
  12168. return false;
  12169. if (getComputedStyle(element).display === "none")
  12170. return true;
  12171. element = element.parentElement;
  12172. }
  12173. return false;
  12174. };
  12175. var getEdges = (container) => {
  12176. const focusable = obtainAllFocusableElements2(container);
  12177. const first = getVisibleElement(focusable, container);
  12178. const last2 = getVisibleElement(focusable.reverse(), container);
  12179. return [first, last2];
  12180. };
  12181. var isSelectable = (element) => {
  12182. return element instanceof HTMLInputElement && "select" in element;
  12183. };
  12184. var tryFocus = (element, shouldSelect) => {
  12185. if (element) {
  12186. const prevFocusedElement = document.activeElement;
  12187. focusElement(element, { preventScroll: true });
  12188. lastAutomatedFocusTimestamp.value = window.performance.now();
  12189. if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) {
  12190. element.select();
  12191. }
  12192. }
  12193. };
  12194. function removeFromStack(list, item) {
  12195. const copy = [...list];
  12196. const idx = list.indexOf(item);
  12197. if (idx !== -1) {
  12198. copy.splice(idx, 1);
  12199. }
  12200. return copy;
  12201. }
  12202. var createFocusableStack = () => {
  12203. let stack = [];
  12204. const push = (layer) => {
  12205. const currentLayer = stack[0];
  12206. if (currentLayer && layer !== currentLayer) {
  12207. currentLayer.pause();
  12208. }
  12209. stack = removeFromStack(stack, layer);
  12210. stack.unshift(layer);
  12211. };
  12212. const remove2 = (layer) => {
  12213. var _a2, _b;
  12214. stack = removeFromStack(stack, layer);
  12215. (_b = (_a2 = stack[0]) == null ? void 0 : _a2.resume) == null ? void 0 : _b.call(_a2);
  12216. };
  12217. return {
  12218. push,
  12219. remove: remove2
  12220. };
  12221. };
  12222. var focusFirstDescendant = (elements, shouldSelect = false) => {
  12223. const prevFocusedElement = document.activeElement;
  12224. for (const element of elements) {
  12225. tryFocus(element, shouldSelect);
  12226. if (document.activeElement !== prevFocusedElement)
  12227. return;
  12228. }
  12229. };
  12230. var focusableStack = createFocusableStack();
  12231. var isFocusCausedByUserEvent = () => {
  12232. return lastUserFocusTimestamp.value > lastAutomatedFocusTimestamp.value;
  12233. };
  12234. var notifyFocusReasonPointer = () => {
  12235. focusReason.value = "pointer";
  12236. lastUserFocusTimestamp.value = window.performance.now();
  12237. };
  12238. var notifyFocusReasonKeydown = () => {
  12239. focusReason.value = "keyboard";
  12240. lastUserFocusTimestamp.value = window.performance.now();
  12241. };
  12242. var useFocusReason = () => {
  12243. onMounted(() => {
  12244. if (focusReasonUserCount === 0) {
  12245. document.addEventListener("mousedown", notifyFocusReasonPointer);
  12246. document.addEventListener("touchstart", notifyFocusReasonPointer);
  12247. document.addEventListener("keydown", notifyFocusReasonKeydown);
  12248. }
  12249. focusReasonUserCount++;
  12250. });
  12251. onBeforeUnmount(() => {
  12252. focusReasonUserCount--;
  12253. if (focusReasonUserCount <= 0) {
  12254. document.removeEventListener("mousedown", notifyFocusReasonPointer);
  12255. document.removeEventListener("touchstart", notifyFocusReasonPointer);
  12256. document.removeEventListener("keydown", notifyFocusReasonKeydown);
  12257. }
  12258. });
  12259. return {
  12260. focusReason,
  12261. lastUserFocusTimestamp,
  12262. lastAutomatedFocusTimestamp
  12263. };
  12264. };
  12265. var createFocusOutPreventedEvent = (detail) => {
  12266. return new CustomEvent(FOCUSOUT_PREVENTED, {
  12267. ...FOCUSOUT_PREVENTED_OPTS,
  12268. detail
  12269. });
  12270. };
  12271. // node_modules/element-plus/es/constants/aria.mjs
  12272. var EVENT_CODE = {
  12273. tab: "Tab",
  12274. enter: "Enter",
  12275. space: "Space",
  12276. left: "ArrowLeft",
  12277. up: "ArrowUp",
  12278. right: "ArrowRight",
  12279. down: "ArrowDown",
  12280. esc: "Escape",
  12281. delete: "Delete",
  12282. backspace: "Backspace",
  12283. numpadEnter: "NumpadEnter",
  12284. pageUp: "PageUp",
  12285. pageDown: "PageDown",
  12286. home: "Home",
  12287. end: "End"
  12288. };
  12289. // node_modules/element-plus/es/utils/dom/event.mjs
  12290. var composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
  12291. const handleEvent = (event) => {
  12292. const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
  12293. if (checkForDefaultPrevented === false || !shouldPrevent) {
  12294. return oursHandler == null ? void 0 : oursHandler(event);
  12295. }
  12296. };
  12297. return handleEvent;
  12298. };
  12299. var whenMouse = (handler) => {
  12300. return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
  12301. };
  12302. var getEventCode = (event) => {
  12303. if (event.code && event.code !== "Unidentified")
  12304. return event.code;
  12305. const key = getEventKey(event);
  12306. if (key) {
  12307. if (Object.values(EVENT_CODE).includes(key))
  12308. return key;
  12309. switch (key) {
  12310. case " ":
  12311. return EVENT_CODE.space;
  12312. default:
  12313. return "";
  12314. }
  12315. }
  12316. return "";
  12317. };
  12318. var getEventKey = (event) => {
  12319. let key = event.key && event.key !== "Unidentified" ? event.key : "";
  12320. if (!key && event.type === "keyup" && isAndroid()) {
  12321. const target2 = event.target;
  12322. key = target2.value.charAt(target2.selectionStart - 1);
  12323. }
  12324. return key;
  12325. };
  12326. // node_modules/element-plus/es/hooks/use-escape-keydown/index.mjs
  12327. var registeredEscapeHandlers = [];
  12328. var cachedHandler = (event) => {
  12329. const code = getEventCode(event);
  12330. if (code === EVENT_CODE.esc) {
  12331. registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
  12332. }
  12333. };
  12334. var useEscapeKeydown = (handler) => {
  12335. onMounted(() => {
  12336. if (registeredEscapeHandlers.length === 0) {
  12337. document.addEventListener("keydown", cachedHandler);
  12338. }
  12339. if (isClient)
  12340. registeredEscapeHandlers.push(handler);
  12341. });
  12342. onBeforeUnmount(() => {
  12343. registeredEscapeHandlers = registeredEscapeHandlers.filter((registeredHandler) => registeredHandler !== handler);
  12344. if (registeredEscapeHandlers.length === 0) {
  12345. if (isClient)
  12346. document.removeEventListener("keydown", cachedHandler);
  12347. }
  12348. });
  12349. };
  12350. // node_modules/element-plus/es/components/focus-trap/src/focus-trap.mjs
  12351. var _sfc_main11 = defineComponent({
  12352. name: "ElFocusTrap",
  12353. inheritAttrs: false,
  12354. props: {
  12355. loop: Boolean,
  12356. trapped: Boolean,
  12357. focusTrapEl: Object,
  12358. focusStartEl: {
  12359. type: [Object, String],
  12360. default: "first"
  12361. }
  12362. },
  12363. emits: [
  12364. ON_TRAP_FOCUS_EVT,
  12365. ON_RELEASE_FOCUS_EVT,
  12366. "focusin",
  12367. "focusout",
  12368. "focusout-prevented",
  12369. "release-requested"
  12370. ],
  12371. setup(props2, { emit }) {
  12372. const forwardRef = ref();
  12373. let lastFocusBeforeTrapped;
  12374. let lastFocusAfterTrapped;
  12375. const { focusReason: focusReason2 } = useFocusReason();
  12376. useEscapeKeydown((event) => {
  12377. if (props2.trapped && !focusLayer.paused) {
  12378. emit("release-requested", event);
  12379. }
  12380. });
  12381. const focusLayer = {
  12382. paused: false,
  12383. pause() {
  12384. this.paused = true;
  12385. },
  12386. resume() {
  12387. this.paused = false;
  12388. }
  12389. };
  12390. const onKeydown = (e) => {
  12391. if (!props2.loop && !props2.trapped)
  12392. return;
  12393. if (focusLayer.paused)
  12394. return;
  12395. const { altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e;
  12396. const { loop } = props2;
  12397. const code = getEventCode(e);
  12398. const isTabbing = code === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey;
  12399. const currentFocusingEl = document.activeElement;
  12400. if (isTabbing && currentFocusingEl) {
  12401. const container = currentTarget;
  12402. const [first, last2] = getEdges(container);
  12403. const isTabbable = first && last2;
  12404. if (!isTabbable) {
  12405. if (currentFocusingEl === container) {
  12406. const focusoutPreventedEvent = createFocusOutPreventedEvent({
  12407. focusReason: focusReason2.value
  12408. });
  12409. emit("focusout-prevented", focusoutPreventedEvent);
  12410. if (!focusoutPreventedEvent.defaultPrevented) {
  12411. e.preventDefault();
  12412. }
  12413. }
  12414. } else {
  12415. if (!shiftKey && currentFocusingEl === last2) {
  12416. const focusoutPreventedEvent = createFocusOutPreventedEvent({
  12417. focusReason: focusReason2.value
  12418. });
  12419. emit("focusout-prevented", focusoutPreventedEvent);
  12420. if (!focusoutPreventedEvent.defaultPrevented) {
  12421. e.preventDefault();
  12422. if (loop)
  12423. tryFocus(first, true);
  12424. }
  12425. } else if (shiftKey && [first, container].includes(currentFocusingEl)) {
  12426. const focusoutPreventedEvent = createFocusOutPreventedEvent({
  12427. focusReason: focusReason2.value
  12428. });
  12429. emit("focusout-prevented", focusoutPreventedEvent);
  12430. if (!focusoutPreventedEvent.defaultPrevented) {
  12431. e.preventDefault();
  12432. if (loop)
  12433. tryFocus(last2, true);
  12434. }
  12435. }
  12436. }
  12437. }
  12438. };
  12439. provide(FOCUS_TRAP_INJECTION_KEY, {
  12440. focusTrapRef: forwardRef,
  12441. onKeydown
  12442. });
  12443. watch(() => props2.focusTrapEl, (focusTrapEl) => {
  12444. if (focusTrapEl) {
  12445. forwardRef.value = focusTrapEl;
  12446. }
  12447. }, { immediate: true });
  12448. watch([forwardRef], ([forwardRef2], [oldForwardRef]) => {
  12449. if (forwardRef2) {
  12450. forwardRef2.addEventListener("keydown", onKeydown);
  12451. forwardRef2.addEventListener("focusin", onFocusIn);
  12452. forwardRef2.addEventListener("focusout", onFocusOut);
  12453. }
  12454. if (oldForwardRef) {
  12455. oldForwardRef.removeEventListener("keydown", onKeydown);
  12456. oldForwardRef.removeEventListener("focusin", onFocusIn);
  12457. oldForwardRef.removeEventListener("focusout", onFocusOut);
  12458. }
  12459. });
  12460. const trapOnFocus = (e) => {
  12461. emit(ON_TRAP_FOCUS_EVT, e);
  12462. };
  12463. const releaseOnFocus = (e) => emit(ON_RELEASE_FOCUS_EVT, e);
  12464. const onFocusIn = (e) => {
  12465. const trapContainer = unref(forwardRef);
  12466. if (!trapContainer)
  12467. return;
  12468. const target2 = e.target;
  12469. const relatedTarget = e.relatedTarget;
  12470. const isFocusedInTrap = target2 && trapContainer.contains(target2);
  12471. if (!props2.trapped) {
  12472. const isPrevFocusedInTrap = relatedTarget && trapContainer.contains(relatedTarget);
  12473. if (!isPrevFocusedInTrap) {
  12474. lastFocusBeforeTrapped = relatedTarget;
  12475. }
  12476. }
  12477. if (isFocusedInTrap)
  12478. emit("focusin", e);
  12479. if (focusLayer.paused)
  12480. return;
  12481. if (props2.trapped) {
  12482. if (isFocusedInTrap) {
  12483. lastFocusAfterTrapped = target2;
  12484. } else {
  12485. tryFocus(lastFocusAfterTrapped, true);
  12486. }
  12487. }
  12488. };
  12489. const onFocusOut = (e) => {
  12490. const trapContainer = unref(forwardRef);
  12491. if (focusLayer.paused || !trapContainer)
  12492. return;
  12493. if (props2.trapped) {
  12494. const relatedTarget = e.relatedTarget;
  12495. if (!isNil_default(relatedTarget) && !trapContainer.contains(relatedTarget)) {
  12496. setTimeout(() => {
  12497. if (!focusLayer.paused && props2.trapped) {
  12498. const focusoutPreventedEvent = createFocusOutPreventedEvent({
  12499. focusReason: focusReason2.value
  12500. });
  12501. emit("focusout-prevented", focusoutPreventedEvent);
  12502. if (!focusoutPreventedEvent.defaultPrevented) {
  12503. tryFocus(lastFocusAfterTrapped, true);
  12504. }
  12505. }
  12506. }, 0);
  12507. }
  12508. } else {
  12509. const target2 = e.target;
  12510. const isFocusedInTrap = target2 && trapContainer.contains(target2);
  12511. if (!isFocusedInTrap)
  12512. emit("focusout", e);
  12513. }
  12514. };
  12515. async function startTrap() {
  12516. await nextTick();
  12517. const trapContainer = unref(forwardRef);
  12518. if (trapContainer) {
  12519. focusableStack.push(focusLayer);
  12520. const prevFocusedElement = trapContainer.contains(document.activeElement) ? lastFocusBeforeTrapped : document.activeElement;
  12521. lastFocusBeforeTrapped = prevFocusedElement;
  12522. const isPrevFocusContained = trapContainer.contains(prevFocusedElement);
  12523. if (!isPrevFocusContained) {
  12524. const focusEvent = new Event(FOCUS_AFTER_TRAPPED, FOCUS_AFTER_TRAPPED_OPTS);
  12525. trapContainer.addEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus);
  12526. trapContainer.dispatchEvent(focusEvent);
  12527. if (!focusEvent.defaultPrevented) {
  12528. nextTick(() => {
  12529. let focusStartEl = props2.focusStartEl;
  12530. if (!isString(focusStartEl)) {
  12531. tryFocus(focusStartEl);
  12532. if (document.activeElement !== focusStartEl) {
  12533. focusStartEl = "first";
  12534. }
  12535. }
  12536. if (focusStartEl === "first") {
  12537. focusFirstDescendant(obtainAllFocusableElements2(trapContainer), true);
  12538. }
  12539. if (document.activeElement === prevFocusedElement || focusStartEl === "container") {
  12540. tryFocus(trapContainer);
  12541. }
  12542. });
  12543. }
  12544. }
  12545. }
  12546. }
  12547. function stopTrap() {
  12548. const trapContainer = unref(forwardRef);
  12549. if (trapContainer) {
  12550. trapContainer.removeEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus);
  12551. const releasedEvent = new CustomEvent(FOCUS_AFTER_RELEASED, {
  12552. ...FOCUS_AFTER_TRAPPED_OPTS,
  12553. detail: {
  12554. focusReason: focusReason2.value
  12555. }
  12556. });
  12557. trapContainer.addEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
  12558. trapContainer.dispatchEvent(releasedEvent);
  12559. if (!releasedEvent.defaultPrevented && (focusReason2.value == "keyboard" || !isFocusCausedByUserEvent() || trapContainer.contains(document.activeElement))) {
  12560. tryFocus(lastFocusBeforeTrapped != null ? lastFocusBeforeTrapped : document.body);
  12561. }
  12562. trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
  12563. focusableStack.remove(focusLayer);
  12564. lastFocusBeforeTrapped = null;
  12565. lastFocusAfterTrapped = null;
  12566. }
  12567. }
  12568. onMounted(() => {
  12569. if (props2.trapped) {
  12570. startTrap();
  12571. }
  12572. watch(() => props2.trapped, (trapped) => {
  12573. if (trapped) {
  12574. startTrap();
  12575. } else {
  12576. stopTrap();
  12577. }
  12578. });
  12579. });
  12580. onBeforeUnmount(() => {
  12581. if (props2.trapped) {
  12582. stopTrap();
  12583. }
  12584. if (forwardRef.value) {
  12585. forwardRef.value.removeEventListener("keydown", onKeydown);
  12586. forwardRef.value.removeEventListener("focusin", onFocusIn);
  12587. forwardRef.value.removeEventListener("focusout", onFocusOut);
  12588. forwardRef.value = void 0;
  12589. }
  12590. });
  12591. return {
  12592. onKeydown
  12593. };
  12594. }
  12595. });
  12596. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  12597. return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
  12598. }
  12599. var ElFocusTrap = _export_sfc(_sfc_main11, [["render", _sfc_render], ["__file", "focus-trap.vue"]]);
  12600. // node_modules/@popperjs/core/dist/index.mjs
  12601. var E = "top";
  12602. var R = "bottom";
  12603. var W = "right";
  12604. var P = "left";
  12605. var me = "auto";
  12606. var G = [E, R, W, P];
  12607. var U = "start";
  12608. var J = "end";
  12609. var Xe = "clippingParents";
  12610. var je = "viewport";
  12611. var K = "popper";
  12612. var Ye = "reference";
  12613. var De = G.reduce(function(t, e) {
  12614. return t.concat([e + "-" + U, e + "-" + J]);
  12615. }, []);
  12616. var Ee = [].concat(G, [me]).reduce(function(t, e) {
  12617. return t.concat([e, e + "-" + U, e + "-" + J]);
  12618. }, []);
  12619. var Ge = "beforeRead";
  12620. var Je = "read";
  12621. var Ke = "afterRead";
  12622. var Qe = "beforeMain";
  12623. var Ze = "main";
  12624. var et = "afterMain";
  12625. var tt = "beforeWrite";
  12626. var nt = "write";
  12627. var rt = "afterWrite";
  12628. var ot = [Ge, Je, Ke, Qe, Ze, et, tt, nt, rt];
  12629. function C(t) {
  12630. return t ? (t.nodeName || "").toLowerCase() : null;
  12631. }
  12632. function H(t) {
  12633. if (t == null) return window;
  12634. if (t.toString() !== "[object Window]") {
  12635. var e = t.ownerDocument;
  12636. return e && e.defaultView || window;
  12637. }
  12638. return t;
  12639. }
  12640. function Q(t) {
  12641. var e = H(t).Element;
  12642. return t instanceof e || t instanceof Element;
  12643. }
  12644. function B(t) {
  12645. var e = H(t).HTMLElement;
  12646. return t instanceof e || t instanceof HTMLElement;
  12647. }
  12648. function Pe(t) {
  12649. if (typeof ShadowRoot == "undefined") return false;
  12650. var e = H(t).ShadowRoot;
  12651. return t instanceof e || t instanceof ShadowRoot;
  12652. }
  12653. function Mt(t) {
  12654. var e = t.state;
  12655. Object.keys(e.elements).forEach(function(n) {
  12656. var r = e.styles[n] || {}, o2 = e.attributes[n] || {}, i = e.elements[n];
  12657. !B(i) || !C(i) || (Object.assign(i.style, r), Object.keys(o2).forEach(function(a2) {
  12658. var s2 = o2[a2];
  12659. s2 === false ? i.removeAttribute(a2) : i.setAttribute(a2, s2 === true ? "" : s2);
  12660. }));
  12661. });
  12662. }
  12663. function Rt(t) {
  12664. var e = t.state, n = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
  12665. return Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow), function() {
  12666. Object.keys(e.elements).forEach(function(r) {
  12667. var o2 = e.elements[r], i = e.attributes[r] || {}, a2 = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), s2 = a2.reduce(function(f2, c2) {
  12668. return f2[c2] = "", f2;
  12669. }, {});
  12670. !B(o2) || !C(o2) || (Object.assign(o2.style, s2), Object.keys(i).forEach(function(f2) {
  12671. o2.removeAttribute(f2);
  12672. }));
  12673. });
  12674. };
  12675. }
  12676. var Ae = { name: "applyStyles", enabled: true, phase: "write", fn: Mt, effect: Rt, requires: ["computeStyles"] };
  12677. function q(t) {
  12678. return t.split("-")[0];
  12679. }
  12680. var X = Math.max;
  12681. var ve = Math.min;
  12682. var Z = Math.round;
  12683. function ee(t, e) {
  12684. e === void 0 && (e = false);
  12685. var n = t.getBoundingClientRect(), r = 1, o2 = 1;
  12686. if (B(t) && e) {
  12687. var i = t.offsetHeight, a2 = t.offsetWidth;
  12688. a2 > 0 && (r = Z(n.width) / a2 || 1), i > 0 && (o2 = Z(n.height) / i || 1);
  12689. }
  12690. return { width: n.width / r, height: n.height / o2, top: n.top / o2, right: n.right / r, bottom: n.bottom / o2, left: n.left / r, x: n.left / r, y: n.top / o2 };
  12691. }
  12692. function ke(t) {
  12693. var e = ee(t), n = t.offsetWidth, r = t.offsetHeight;
  12694. 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 };
  12695. }
  12696. function it(t, e) {
  12697. var n = e.getRootNode && e.getRootNode();
  12698. if (t.contains(e)) return true;
  12699. if (n && Pe(n)) {
  12700. var r = e;
  12701. do {
  12702. if (r && t.isSameNode(r)) return true;
  12703. r = r.parentNode || r.host;
  12704. } while (r);
  12705. }
  12706. return false;
  12707. }
  12708. function N(t) {
  12709. return H(t).getComputedStyle(t);
  12710. }
  12711. function Wt(t) {
  12712. return ["table", "td", "th"].indexOf(C(t)) >= 0;
  12713. }
  12714. function I(t) {
  12715. return ((Q(t) ? t.ownerDocument : t.document) || window.document).documentElement;
  12716. }
  12717. function ge(t) {
  12718. return C(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I(t);
  12719. }
  12720. function at2(t) {
  12721. return !B(t) || N(t).position === "fixed" ? null : t.offsetParent;
  12722. }
  12723. function Bt(t) {
  12724. var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
  12725. if (n && B(t)) {
  12726. var r = N(t);
  12727. if (r.position === "fixed") return null;
  12728. }
  12729. var o2 = ge(t);
  12730. for (Pe(o2) && (o2 = o2.host); B(o2) && ["html", "body"].indexOf(C(o2)) < 0; ) {
  12731. var i = N(o2);
  12732. 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 o2;
  12733. o2 = o2.parentNode;
  12734. }
  12735. return null;
  12736. }
  12737. function se(t) {
  12738. for (var e = H(t), n = at2(t); n && Wt(n) && N(n).position === "static"; ) n = at2(n);
  12739. return n && (C(n) === "html" || C(n) === "body" && N(n).position === "static") ? e : n || Bt(t) || e;
  12740. }
  12741. function Le(t) {
  12742. return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
  12743. }
  12744. function fe(t, e, n) {
  12745. return X(t, ve(e, n));
  12746. }
  12747. function St(t, e, n) {
  12748. var r = fe(t, e, n);
  12749. return r > n ? n : r;
  12750. }
  12751. function st() {
  12752. return { top: 0, right: 0, bottom: 0, left: 0 };
  12753. }
  12754. function ft(t) {
  12755. return Object.assign({}, st(), t);
  12756. }
  12757. function ct(t, e) {
  12758. return e.reduce(function(n, r) {
  12759. return n[r] = t, n;
  12760. }, {});
  12761. }
  12762. var Tt = function(t, e) {
  12763. return t = typeof t == "function" ? t(Object.assign({}, e.rects, { placement: e.placement })) : t, ft(typeof t != "number" ? t : ct(t, G));
  12764. };
  12765. function Ht(t) {
  12766. var e, n = t.state, r = t.name, o2 = t.options, i = n.elements.arrow, a2 = n.modifiersData.popperOffsets, s2 = q(n.placement), f2 = Le(s2), c2 = [P, W].indexOf(s2) >= 0, u2 = c2 ? "height" : "width";
  12767. if (!(!i || !a2)) {
  12768. var m2 = Tt(o2.padding, n), v2 = ke(i), l2 = f2 === "y" ? E : P, h3 = f2 === "y" ? R : W, p2 = n.rects.reference[u2] + n.rects.reference[f2] - a2[f2] - n.rects.popper[u2], g = a2[f2] - n.rects.reference[f2], x2 = se(i), y = x2 ? f2 === "y" ? x2.clientHeight || 0 : x2.clientWidth || 0 : 0, $ = p2 / 2 - g / 2, d2 = m2[l2], b2 = y - v2[u2] - m2[h3], w2 = y / 2 - v2[u2] / 2 + $, O2 = fe(d2, w2, b2), j = f2;
  12769. n.modifiersData[r] = (e = {}, e[j] = O2, e.centerOffset = O2 - w2, e);
  12770. }
  12771. }
  12772. function Ct(t) {
  12773. var e = t.state, n = t.options, r = n.element, o2 = r === void 0 ? "[data-popper-arrow]" : r;
  12774. o2 != null && (typeof o2 == "string" && (o2 = e.elements.popper.querySelector(o2), !o2) || !it(e.elements.popper, o2) || (e.elements.arrow = o2));
  12775. }
  12776. var pt = { name: "arrow", enabled: true, phase: "main", fn: Ht, effect: Ct, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
  12777. function te(t) {
  12778. return t.split("-")[1];
  12779. }
  12780. var qt = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
  12781. function Vt(t) {
  12782. var e = t.x, n = t.y, r = window, o2 = r.devicePixelRatio || 1;
  12783. return { x: Z(e * o2) / o2 || 0, y: Z(n * o2) / o2 || 0 };
  12784. }
  12785. function ut(t) {
  12786. var e, n = t.popper, r = t.popperRect, o2 = t.placement, i = t.variation, a2 = t.offsets, s2 = t.position, f2 = t.gpuAcceleration, c2 = t.adaptive, u2 = t.roundOffsets, m2 = t.isFixed, v2 = a2.x, l2 = v2 === void 0 ? 0 : v2, h3 = a2.y, p2 = h3 === void 0 ? 0 : h3, g = typeof u2 == "function" ? u2({ x: l2, y: p2 }) : { x: l2, y: p2 };
  12787. l2 = g.x, p2 = g.y;
  12788. var x2 = a2.hasOwnProperty("x"), y = a2.hasOwnProperty("y"), $ = P, d2 = E, b2 = window;
  12789. if (c2) {
  12790. var w2 = se(n), O2 = "clientHeight", j = "clientWidth";
  12791. if (w2 === H(n) && (w2 = I(n), N(w2).position !== "static" && s2 === "absolute" && (O2 = "scrollHeight", j = "scrollWidth")), w2 = w2, o2 === E || (o2 === P || o2 === W) && i === J) {
  12792. d2 = R;
  12793. var A2 = m2 && w2 === b2 && b2.visualViewport ? b2.visualViewport.height : w2[O2];
  12794. p2 -= A2 - r.height, p2 *= f2 ? 1 : -1;
  12795. }
  12796. if (o2 === P || (o2 === E || o2 === R) && i === J) {
  12797. $ = W;
  12798. var k = m2 && w2 === b2 && b2.visualViewport ? b2.visualViewport.width : w2[j];
  12799. l2 -= k - r.width, l2 *= f2 ? 1 : -1;
  12800. }
  12801. }
  12802. var D2 = Object.assign({ position: s2 }, c2 && qt), S2 = u2 === true ? Vt({ x: l2, y: p2 }) : { x: l2, y: p2 };
  12803. if (l2 = S2.x, p2 = S2.y, f2) {
  12804. var L;
  12805. return Object.assign({}, D2, (L = {}, L[d2] = y ? "0" : "", L[$] = x2 ? "0" : "", L.transform = (b2.devicePixelRatio || 1) <= 1 ? "translate(" + l2 + "px, " + p2 + "px)" : "translate3d(" + l2 + "px, " + p2 + "px, 0)", L));
  12806. }
  12807. return Object.assign({}, D2, (e = {}, e[d2] = y ? p2 + "px" : "", e[$] = x2 ? l2 + "px" : "", e.transform = "", e));
  12808. }
  12809. function Nt(t) {
  12810. var e = t.state, n = t.options, r = n.gpuAcceleration, o2 = r === void 0 ? true : r, i = n.adaptive, a2 = i === void 0 ? true : i, s2 = n.roundOffsets, f2 = s2 === void 0 ? true : s2, c2 = { placement: q(e.placement), variation: te(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: o2, isFixed: e.options.strategy === "fixed" };
  12811. e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ut(Object.assign({}, c2, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: a2, roundOffsets: f2 })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ut(Object.assign({}, c2, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: false, roundOffsets: f2 })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement });
  12812. }
  12813. var Me = { name: "computeStyles", enabled: true, phase: "beforeWrite", fn: Nt, data: {} };
  12814. var ye = { passive: true };
  12815. function It(t) {
  12816. var e = t.state, n = t.instance, r = t.options, o2 = r.scroll, i = o2 === void 0 ? true : o2, a2 = r.resize, s2 = a2 === void 0 ? true : a2, f2 = H(e.elements.popper), c2 = [].concat(e.scrollParents.reference, e.scrollParents.popper);
  12817. return i && c2.forEach(function(u2) {
  12818. u2.addEventListener("scroll", n.update, ye);
  12819. }), s2 && f2.addEventListener("resize", n.update, ye), function() {
  12820. i && c2.forEach(function(u2) {
  12821. u2.removeEventListener("scroll", n.update, ye);
  12822. }), s2 && f2.removeEventListener("resize", n.update, ye);
  12823. };
  12824. }
  12825. var Re = { name: "eventListeners", enabled: true, phase: "write", fn: function() {
  12826. }, effect: It, data: {} };
  12827. var _t = { left: "right", right: "left", bottom: "top", top: "bottom" };
  12828. function be(t) {
  12829. return t.replace(/left|right|bottom|top/g, function(e) {
  12830. return _t[e];
  12831. });
  12832. }
  12833. var zt = { start: "end", end: "start" };
  12834. function lt2(t) {
  12835. return t.replace(/start|end/g, function(e) {
  12836. return zt[e];
  12837. });
  12838. }
  12839. function We(t) {
  12840. var e = H(t), n = e.pageXOffset, r = e.pageYOffset;
  12841. return { scrollLeft: n, scrollTop: r };
  12842. }
  12843. function Be(t) {
  12844. return ee(I(t)).left + We(t).scrollLeft;
  12845. }
  12846. function Ft(t) {
  12847. var e = H(t), n = I(t), r = e.visualViewport, o2 = n.clientWidth, i = n.clientHeight, a2 = 0, s2 = 0;
  12848. return r && (o2 = r.width, i = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (a2 = r.offsetLeft, s2 = r.offsetTop)), { width: o2, height: i, x: a2 + Be(t), y: s2 };
  12849. }
  12850. function Ut(t) {
  12851. var e, n = I(t), r = We(t), o2 = (e = t.ownerDocument) == null ? void 0 : e.body, i = X(n.scrollWidth, n.clientWidth, o2 ? o2.scrollWidth : 0, o2 ? o2.clientWidth : 0), a2 = X(n.scrollHeight, n.clientHeight, o2 ? o2.scrollHeight : 0, o2 ? o2.clientHeight : 0), s2 = -r.scrollLeft + Be(t), f2 = -r.scrollTop;
  12852. return N(o2 || n).direction === "rtl" && (s2 += X(n.clientWidth, o2 ? o2.clientWidth : 0) - i), { width: i, height: a2, x: s2, y: f2 };
  12853. }
  12854. function Se(t) {
  12855. var e = N(t), n = e.overflow, r = e.overflowX, o2 = e.overflowY;
  12856. return /auto|scroll|overlay|hidden/.test(n + o2 + r);
  12857. }
  12858. function dt(t) {
  12859. return ["html", "body", "#document"].indexOf(C(t)) >= 0 ? t.ownerDocument.body : B(t) && Se(t) ? t : dt(ge(t));
  12860. }
  12861. function ce(t, e) {
  12862. var n;
  12863. e === void 0 && (e = []);
  12864. var r = dt(t), o2 = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i = H(r), a2 = o2 ? [i].concat(i.visualViewport || [], Se(r) ? r : []) : r, s2 = e.concat(a2);
  12865. return o2 ? s2 : s2.concat(ce(ge(a2)));
  12866. }
  12867. function Te(t) {
  12868. return Object.assign({}, t, { left: t.x, top: t.y, right: t.x + t.width, bottom: t.y + t.height });
  12869. }
  12870. function Xt(t) {
  12871. var e = ee(t);
  12872. 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;
  12873. }
  12874. function ht(t, e) {
  12875. return e === je ? Te(Ft(t)) : Q(e) ? Xt(e) : Te(Ut(I(t)));
  12876. }
  12877. function Yt(t) {
  12878. var e = ce(ge(t)), n = ["absolute", "fixed"].indexOf(N(t).position) >= 0, r = n && B(t) ? se(t) : t;
  12879. return Q(r) ? e.filter(function(o2) {
  12880. return Q(o2) && it(o2, r) && C(o2) !== "body";
  12881. }) : [];
  12882. }
  12883. function Gt(t, e, n) {
  12884. var r = e === "clippingParents" ? Yt(t) : [].concat(e), o2 = [].concat(r, [n]), i = o2[0], a2 = o2.reduce(function(s2, f2) {
  12885. var c2 = ht(t, f2);
  12886. return s2.top = X(c2.top, s2.top), s2.right = ve(c2.right, s2.right), s2.bottom = ve(c2.bottom, s2.bottom), s2.left = X(c2.left, s2.left), s2;
  12887. }, ht(t, i));
  12888. return a2.width = a2.right - a2.left, a2.height = a2.bottom - a2.top, a2.x = a2.left, a2.y = a2.top, a2;
  12889. }
  12890. function mt(t) {
  12891. var e = t.reference, n = t.element, r = t.placement, o2 = r ? q(r) : null, i = r ? te(r) : null, a2 = e.x + e.width / 2 - n.width / 2, s2 = e.y + e.height / 2 - n.height / 2, f2;
  12892. switch (o2) {
  12893. case E:
  12894. f2 = { x: a2, y: e.y - n.height };
  12895. break;
  12896. case R:
  12897. f2 = { x: a2, y: e.y + e.height };
  12898. break;
  12899. case W:
  12900. f2 = { x: e.x + e.width, y: s2 };
  12901. break;
  12902. case P:
  12903. f2 = { x: e.x - n.width, y: s2 };
  12904. break;
  12905. default:
  12906. f2 = { x: e.x, y: e.y };
  12907. }
  12908. var c2 = o2 ? Le(o2) : null;
  12909. if (c2 != null) {
  12910. var u2 = c2 === "y" ? "height" : "width";
  12911. switch (i) {
  12912. case U:
  12913. f2[c2] = f2[c2] - (e[u2] / 2 - n[u2] / 2);
  12914. break;
  12915. case J:
  12916. f2[c2] = f2[c2] + (e[u2] / 2 - n[u2] / 2);
  12917. break;
  12918. }
  12919. }
  12920. return f2;
  12921. }
  12922. function ne(t, e) {
  12923. e === void 0 && (e = {});
  12924. var n = e, r = n.placement, o2 = r === void 0 ? t.placement : r, i = n.boundary, a2 = i === void 0 ? Xe : i, s2 = n.rootBoundary, f2 = s2 === void 0 ? je : s2, c2 = n.elementContext, u2 = c2 === void 0 ? K : c2, m2 = n.altBoundary, v2 = m2 === void 0 ? false : m2, l2 = n.padding, h3 = l2 === void 0 ? 0 : l2, p2 = ft(typeof h3 != "number" ? h3 : ct(h3, G)), g = u2 === K ? Ye : K, x2 = t.rects.popper, y = t.elements[v2 ? g : u2], $ = Gt(Q(y) ? y : y.contextElement || I(t.elements.popper), a2, f2), d2 = ee(t.elements.reference), b2 = mt({ reference: d2, element: x2, strategy: "absolute", placement: o2 }), w2 = Te(Object.assign({}, x2, b2)), O2 = u2 === K ? w2 : d2, j = { top: $.top - O2.top + p2.top, bottom: O2.bottom - $.bottom + p2.bottom, left: $.left - O2.left + p2.left, right: O2.right - $.right + p2.right }, A2 = t.modifiersData.offset;
  12925. if (u2 === K && A2) {
  12926. var k = A2[o2];
  12927. Object.keys(j).forEach(function(D2) {
  12928. var S2 = [W, R].indexOf(D2) >= 0 ? 1 : -1, L = [E, R].indexOf(D2) >= 0 ? "y" : "x";
  12929. j[D2] += k[L] * S2;
  12930. });
  12931. }
  12932. return j;
  12933. }
  12934. function Jt(t, e) {
  12935. e === void 0 && (e = {});
  12936. var n = e, r = n.placement, o2 = n.boundary, i = n.rootBoundary, a2 = n.padding, s2 = n.flipVariations, f2 = n.allowedAutoPlacements, c2 = f2 === void 0 ? Ee : f2, u2 = te(r), m2 = u2 ? s2 ? De : De.filter(function(h3) {
  12937. return te(h3) === u2;
  12938. }) : G, v2 = m2.filter(function(h3) {
  12939. return c2.indexOf(h3) >= 0;
  12940. });
  12941. v2.length === 0 && (v2 = m2);
  12942. var l2 = v2.reduce(function(h3, p2) {
  12943. return h3[p2] = ne(t, { placement: p2, boundary: o2, rootBoundary: i, padding: a2 })[q(p2)], h3;
  12944. }, {});
  12945. return Object.keys(l2).sort(function(h3, p2) {
  12946. return l2[h3] - l2[p2];
  12947. });
  12948. }
  12949. function Kt(t) {
  12950. if (q(t) === me) return [];
  12951. var e = be(t);
  12952. return [lt2(t), e, lt2(e)];
  12953. }
  12954. function Qt(t) {
  12955. var e = t.state, n = t.options, r = t.name;
  12956. if (!e.modifiersData[r]._skip) {
  12957. for (var o2 = n.mainAxis, i = o2 === void 0 ? true : o2, a2 = n.altAxis, s2 = a2 === void 0 ? true : a2, f2 = n.fallbackPlacements, c2 = n.padding, u2 = n.boundary, m2 = n.rootBoundary, v2 = n.altBoundary, l2 = n.flipVariations, h3 = l2 === void 0 ? true : l2, p2 = n.allowedAutoPlacements, g = e.options.placement, x2 = q(g), y = x2 === g, $ = f2 || (y || !h3 ? [be(g)] : Kt(g)), d2 = [g].concat($).reduce(function(z, V) {
  12958. return z.concat(q(V) === me ? Jt(e, { placement: V, boundary: u2, rootBoundary: m2, padding: c2, flipVariations: h3, allowedAutoPlacements: p2 }) : V);
  12959. }, []), b2 = e.rects.reference, w2 = e.rects.popper, O2 = /* @__PURE__ */ new Map(), j = true, A2 = d2[0], k = 0; k < d2.length; k++) {
  12960. var D2 = d2[k], S2 = q(D2), L = te(D2) === U, re = [E, R].indexOf(S2) >= 0, oe = re ? "width" : "height", M2 = ne(e, { placement: D2, boundary: u2, rootBoundary: m2, altBoundary: v2, padding: c2 }), T2 = re ? L ? W : P : L ? R : E;
  12961. b2[oe] > w2[oe] && (T2 = be(T2));
  12962. var pe = be(T2), _2 = [];
  12963. if (i && _2.push(M2[S2] <= 0), s2 && _2.push(M2[T2] <= 0, M2[pe] <= 0), _2.every(function(z) {
  12964. return z;
  12965. })) {
  12966. A2 = D2, j = false;
  12967. break;
  12968. }
  12969. O2.set(D2, _2);
  12970. }
  12971. if (j) for (var ue = h3 ? 3 : 1, xe = function(z) {
  12972. var V = d2.find(function(de) {
  12973. var ae = O2.get(de);
  12974. if (ae) return ae.slice(0, z).every(function(Y2) {
  12975. return Y2;
  12976. });
  12977. });
  12978. if (V) return A2 = V, "break";
  12979. }, ie = ue; ie > 0; ie--) {
  12980. var le = xe(ie);
  12981. if (le === "break") break;
  12982. }
  12983. e.placement !== A2 && (e.modifiersData[r]._skip = true, e.placement = A2, e.reset = true);
  12984. }
  12985. }
  12986. var vt = { name: "flip", enabled: true, phase: "main", fn: Qt, requiresIfExists: ["offset"], data: { _skip: false } };
  12987. function gt2(t, e, n) {
  12988. 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 };
  12989. }
  12990. function yt(t) {
  12991. return [E, W, R, P].some(function(e) {
  12992. return t[e] >= 0;
  12993. });
  12994. }
  12995. function Zt(t) {
  12996. var e = t.state, n = t.name, r = e.rects.reference, o2 = e.rects.popper, i = e.modifiersData.preventOverflow, a2 = ne(e, { elementContext: "reference" }), s2 = ne(e, { altBoundary: true }), f2 = gt2(a2, r), c2 = gt2(s2, o2, i), u2 = yt(f2), m2 = yt(c2);
  12997. e.modifiersData[n] = { referenceClippingOffsets: f2, popperEscapeOffsets: c2, isReferenceHidden: u2, hasPopperEscaped: m2 }, e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-reference-hidden": u2, "data-popper-escaped": m2 });
  12998. }
  12999. var bt = { name: "hide", enabled: true, phase: "main", requiresIfExists: ["preventOverflow"], fn: Zt };
  13000. function en(t, e, n) {
  13001. var r = q(t), o2 = [P, E].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, { placement: t })) : n, a2 = i[0], s2 = i[1];
  13002. return a2 = a2 || 0, s2 = (s2 || 0) * o2, [P, W].indexOf(r) >= 0 ? { x: s2, y: a2 } : { x: a2, y: s2 };
  13003. }
  13004. function tn(t) {
  13005. var e = t.state, n = t.options, r = t.name, o2 = n.offset, i = o2 === void 0 ? [0, 0] : o2, a2 = Ee.reduce(function(u2, m2) {
  13006. return u2[m2] = en(m2, e.rects, i), u2;
  13007. }, {}), s2 = a2[e.placement], f2 = s2.x, c2 = s2.y;
  13008. e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += f2, e.modifiersData.popperOffsets.y += c2), e.modifiersData[r] = a2;
  13009. }
  13010. var wt = { name: "offset", enabled: true, phase: "main", requires: ["popperOffsets"], fn: tn };
  13011. function nn(t) {
  13012. var e = t.state, n = t.name;
  13013. e.modifiersData[n] = mt({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement });
  13014. }
  13015. var He = { name: "popperOffsets", enabled: true, phase: "read", fn: nn, data: {} };
  13016. function rn(t) {
  13017. return t === "x" ? "y" : "x";
  13018. }
  13019. function on(t) {
  13020. var e = t.state, n = t.options, r = t.name, o2 = n.mainAxis, i = o2 === void 0 ? true : o2, a2 = n.altAxis, s2 = a2 === void 0 ? false : a2, f2 = n.boundary, c2 = n.rootBoundary, u2 = n.altBoundary, m2 = n.padding, v2 = n.tether, l2 = v2 === void 0 ? true : v2, h3 = n.tetherOffset, p2 = h3 === void 0 ? 0 : h3, g = ne(e, { boundary: f2, rootBoundary: c2, padding: m2, altBoundary: u2 }), x2 = q(e.placement), y = te(e.placement), $ = !y, d2 = Le(x2), b2 = rn(d2), w2 = e.modifiersData.popperOffsets, O2 = e.rects.reference, j = e.rects.popper, A2 = typeof p2 == "function" ? p2(Object.assign({}, e.rects, { placement: e.placement })) : p2, k = typeof A2 == "number" ? { mainAxis: A2, altAxis: A2 } : Object.assign({ mainAxis: 0, altAxis: 0 }, A2), D2 = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, S2 = { x: 0, y: 0 };
  13021. if (w2) {
  13022. if (i) {
  13023. var L, re = d2 === "y" ? E : P, oe = d2 === "y" ? R : W, M2 = d2 === "y" ? "height" : "width", T2 = w2[d2], pe = T2 + g[re], _2 = T2 - g[oe], ue = l2 ? -j[M2] / 2 : 0, xe = y === U ? O2[M2] : j[M2], ie = y === U ? -j[M2] : -O2[M2], le = e.elements.arrow, z = l2 && le ? ke(le) : { width: 0, height: 0 }, V = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : st(), de = V[re], ae = V[oe], Y2 = fe(0, O2[M2], z[M2]), jt = $ ? O2[M2] / 2 - ue - Y2 - de - k.mainAxis : xe - Y2 - de - k.mainAxis, Dt = $ ? -O2[M2] / 2 + ue + Y2 + ae + k.mainAxis : ie + Y2 + ae + k.mainAxis, Oe = e.elements.arrow && se(e.elements.arrow), Et = Oe ? d2 === "y" ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0, Ce = (L = D2 == null ? void 0 : D2[d2]) != null ? L : 0, Pt = T2 + jt - Ce - Et, At = T2 + Dt - Ce, qe = fe(l2 ? ve(pe, Pt) : pe, T2, l2 ? X(_2, At) : _2);
  13024. w2[d2] = qe, S2[d2] = qe - T2;
  13025. }
  13026. if (s2) {
  13027. var Ve, kt = d2 === "x" ? E : P, Lt = d2 === "x" ? R : W, F2 = w2[b2], he = b2 === "y" ? "height" : "width", Ne = F2 + g[kt], Ie = F2 - g[Lt], $e = [E, P].indexOf(x2) !== -1, _e = (Ve = D2 == null ? void 0 : D2[b2]) != null ? Ve : 0, ze = $e ? Ne : F2 - O2[he] - j[he] - _e + k.altAxis, Fe = $e ? F2 + O2[he] + j[he] - _e - k.altAxis : Ie, Ue = l2 && $e ? St(ze, F2, Fe) : fe(l2 ? ze : Ne, F2, l2 ? Fe : Ie);
  13028. w2[b2] = Ue, S2[b2] = Ue - F2;
  13029. }
  13030. e.modifiersData[r] = S2;
  13031. }
  13032. }
  13033. var xt = { name: "preventOverflow", enabled: true, phase: "main", fn: on, requiresIfExists: ["offset"] };
  13034. function an(t) {
  13035. return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop };
  13036. }
  13037. function sn(t) {
  13038. return t === H(t) || !B(t) ? We(t) : an(t);
  13039. }
  13040. function fn(t) {
  13041. var e = t.getBoundingClientRect(), n = Z(e.width) / t.offsetWidth || 1, r = Z(e.height) / t.offsetHeight || 1;
  13042. return n !== 1 || r !== 1;
  13043. }
  13044. function cn(t, e, n) {
  13045. n === void 0 && (n = false);
  13046. var r = B(e), o2 = B(e) && fn(e), i = I(e), a2 = ee(t, o2), s2 = { scrollLeft: 0, scrollTop: 0 }, f2 = { x: 0, y: 0 };
  13047. return (r || !r && !n) && ((C(e) !== "body" || Se(i)) && (s2 = sn(e)), B(e) ? (f2 = ee(e, true), f2.x += e.clientLeft, f2.y += e.clientTop) : i && (f2.x = Be(i))), { x: a2.left + s2.scrollLeft - f2.x, y: a2.top + s2.scrollTop - f2.y, width: a2.width, height: a2.height };
  13048. }
  13049. function pn(t) {
  13050. var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
  13051. t.forEach(function(i) {
  13052. e.set(i.name, i);
  13053. });
  13054. function o2(i) {
  13055. n.add(i.name);
  13056. var a2 = [].concat(i.requires || [], i.requiresIfExists || []);
  13057. a2.forEach(function(s2) {
  13058. if (!n.has(s2)) {
  13059. var f2 = e.get(s2);
  13060. f2 && o2(f2);
  13061. }
  13062. }), r.push(i);
  13063. }
  13064. return t.forEach(function(i) {
  13065. n.has(i.name) || o2(i);
  13066. }), r;
  13067. }
  13068. function un(t) {
  13069. var e = pn(t);
  13070. return ot.reduce(function(n, r) {
  13071. return n.concat(e.filter(function(o2) {
  13072. return o2.phase === r;
  13073. }));
  13074. }, []);
  13075. }
  13076. function ln(t) {
  13077. var e;
  13078. return function() {
  13079. return e || (e = new Promise(function(n) {
  13080. Promise.resolve().then(function() {
  13081. e = void 0, n(t());
  13082. });
  13083. })), e;
  13084. };
  13085. }
  13086. function dn(t) {
  13087. var e = t.reduce(function(n, r) {
  13088. var o2 = n[r.name];
  13089. return n[r.name] = o2 ? Object.assign({}, o2, r, { options: Object.assign({}, o2.options, r.options), data: Object.assign({}, o2.data, r.data) }) : r, n;
  13090. }, {});
  13091. return Object.keys(e).map(function(n) {
  13092. return e[n];
  13093. });
  13094. }
  13095. var Ot = { placement: "bottom", modifiers: [], strategy: "absolute" };
  13096. function $t() {
  13097. for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
  13098. return !e.some(function(r) {
  13099. return !(r && typeof r.getBoundingClientRect == "function");
  13100. });
  13101. }
  13102. function we(t) {
  13103. t === void 0 && (t = {});
  13104. var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o2 = e.defaultOptions, i = o2 === void 0 ? Ot : o2;
  13105. return function(a2, s2, f2) {
  13106. f2 === void 0 && (f2 = i);
  13107. var c2 = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Ot, i), modifiersData: {}, elements: { reference: a2, popper: s2 }, attributes: {}, styles: {} }, u2 = [], m2 = false, v2 = { state: c2, setOptions: function(p2) {
  13108. var g = typeof p2 == "function" ? p2(c2.options) : p2;
  13109. h3(), c2.options = Object.assign({}, i, c2.options, g), c2.scrollParents = { reference: Q(a2) ? ce(a2) : a2.contextElement ? ce(a2.contextElement) : [], popper: ce(s2) };
  13110. var x2 = un(dn([].concat(r, c2.options.modifiers)));
  13111. return c2.orderedModifiers = x2.filter(function(y) {
  13112. return y.enabled;
  13113. }), l2(), v2.update();
  13114. }, forceUpdate: function() {
  13115. if (!m2) {
  13116. var p2 = c2.elements, g = p2.reference, x2 = p2.popper;
  13117. if ($t(g, x2)) {
  13118. c2.rects = { reference: cn(g, se(x2), c2.options.strategy === "fixed"), popper: ke(x2) }, c2.reset = false, c2.placement = c2.options.placement, c2.orderedModifiers.forEach(function(j) {
  13119. return c2.modifiersData[j.name] = Object.assign({}, j.data);
  13120. });
  13121. for (var y = 0; y < c2.orderedModifiers.length; y++) {
  13122. if (c2.reset === true) {
  13123. c2.reset = false, y = -1;
  13124. continue;
  13125. }
  13126. var $ = c2.orderedModifiers[y], d2 = $.fn, b2 = $.options, w2 = b2 === void 0 ? {} : b2, O2 = $.name;
  13127. typeof d2 == "function" && (c2 = d2({ state: c2, options: w2, name: O2, instance: v2 }) || c2);
  13128. }
  13129. }
  13130. }
  13131. }, update: ln(function() {
  13132. return new Promise(function(p2) {
  13133. v2.forceUpdate(), p2(c2);
  13134. });
  13135. }), destroy: function() {
  13136. h3(), m2 = true;
  13137. } };
  13138. if (!$t(a2, s2)) return v2;
  13139. v2.setOptions(f2).then(function(p2) {
  13140. !m2 && f2.onFirstUpdate && f2.onFirstUpdate(p2);
  13141. });
  13142. function l2() {
  13143. c2.orderedModifiers.forEach(function(p2) {
  13144. var g = p2.name, x2 = p2.options, y = x2 === void 0 ? {} : x2, $ = p2.effect;
  13145. if (typeof $ == "function") {
  13146. var d2 = $({ state: c2, name: g, instance: v2, options: y }), b2 = function() {
  13147. };
  13148. u2.push(d2 || b2);
  13149. }
  13150. });
  13151. }
  13152. function h3() {
  13153. u2.forEach(function(p2) {
  13154. return p2();
  13155. }), u2 = [];
  13156. }
  13157. return v2;
  13158. };
  13159. }
  13160. var hn = we();
  13161. var mn = [Re, He, Me, Ae];
  13162. var vn = we({ defaultModifiers: mn });
  13163. var gn = [Re, He, Me, Ae, wt, vt, xt, pt, bt];
  13164. var yn = we({ defaultModifiers: gn });
  13165. // node_modules/element-plus/es/components/popper/src/arrow.mjs
  13166. var popperArrowProps = buildProps({
  13167. arrowOffset: {
  13168. type: Number,
  13169. default: 5
  13170. }
  13171. });
  13172. var usePopperArrowProps = popperArrowProps;
  13173. // node_modules/element-plus/es/components/popper/src/content.mjs
  13174. var POSITIONING_STRATEGIES = ["fixed", "absolute"];
  13175. var popperCoreConfigProps = buildProps({
  13176. boundariesPadding: {
  13177. type: Number,
  13178. default: 0
  13179. },
  13180. fallbackPlacements: {
  13181. type: definePropType(Array),
  13182. default: void 0
  13183. },
  13184. gpuAcceleration: {
  13185. type: Boolean,
  13186. default: true
  13187. },
  13188. offset: {
  13189. type: Number,
  13190. default: 12
  13191. },
  13192. placement: {
  13193. type: String,
  13194. values: Ee,
  13195. default: "bottom"
  13196. },
  13197. popperOptions: {
  13198. type: definePropType(Object),
  13199. default: () => ({})
  13200. },
  13201. strategy: {
  13202. type: String,
  13203. values: POSITIONING_STRATEGIES,
  13204. default: "absolute"
  13205. }
  13206. });
  13207. var popperContentProps = buildProps({
  13208. ...popperCoreConfigProps,
  13209. ...popperArrowProps,
  13210. id: String,
  13211. style: {
  13212. type: definePropType([String, Array, Object])
  13213. },
  13214. className: {
  13215. type: definePropType([String, Array, Object])
  13216. },
  13217. effect: {
  13218. type: definePropType(String),
  13219. default: "dark"
  13220. },
  13221. visible: Boolean,
  13222. enterable: {
  13223. type: Boolean,
  13224. default: true
  13225. },
  13226. pure: Boolean,
  13227. focusOnShow: Boolean,
  13228. trapping: Boolean,
  13229. popperClass: {
  13230. type: definePropType([String, Array, Object])
  13231. },
  13232. popperStyle: {
  13233. type: definePropType([String, Array, Object])
  13234. },
  13235. referenceEl: {
  13236. type: definePropType(Object)
  13237. },
  13238. triggerTargetEl: {
  13239. type: definePropType(Object)
  13240. },
  13241. stopPopperMouseEvent: {
  13242. type: Boolean,
  13243. default: true
  13244. },
  13245. virtualTriggering: Boolean,
  13246. zIndex: Number,
  13247. ...useAriaProps(["ariaLabel"]),
  13248. loop: Boolean
  13249. });
  13250. var popperContentEmits = {
  13251. mouseenter: (evt) => evt instanceof MouseEvent,
  13252. mouseleave: (evt) => evt instanceof MouseEvent,
  13253. focus: () => true,
  13254. blur: () => true,
  13255. close: () => true
  13256. };
  13257. var usePopperCoreConfigProps = popperCoreConfigProps;
  13258. var usePopperContentProps = popperContentProps;
  13259. var usePopperContentEmits = popperContentEmits;
  13260. // node_modules/element-plus/es/components/popper/src/composables/use-focus-trap.mjs
  13261. var usePopperContentFocusTrap = (props2, emit) => {
  13262. const trapped = ref(false);
  13263. const focusStartRef = ref();
  13264. const onFocusAfterTrapped = () => {
  13265. emit("focus");
  13266. };
  13267. const onFocusAfterReleased = (event) => {
  13268. var _a2;
  13269. if (((_a2 = event.detail) == null ? void 0 : _a2.focusReason) !== "pointer") {
  13270. focusStartRef.value = "first";
  13271. emit("blur");
  13272. }
  13273. };
  13274. const onFocusInTrap = (event) => {
  13275. if (props2.visible && !trapped.value) {
  13276. if (event.target) {
  13277. focusStartRef.value = event.target;
  13278. }
  13279. trapped.value = true;
  13280. }
  13281. };
  13282. const onFocusoutPrevented = (event) => {
  13283. if (!props2.trapping) {
  13284. if (event.detail.focusReason === "pointer") {
  13285. event.preventDefault();
  13286. }
  13287. trapped.value = false;
  13288. }
  13289. };
  13290. const onReleaseRequested = () => {
  13291. trapped.value = false;
  13292. emit("close");
  13293. };
  13294. return {
  13295. focusStartRef,
  13296. trapped,
  13297. onFocusAfterReleased,
  13298. onFocusAfterTrapped,
  13299. onFocusInTrap,
  13300. onFocusoutPrevented,
  13301. onReleaseRequested
  13302. };
  13303. };
  13304. // node_modules/element-plus/es/components/popper/src/utils.mjs
  13305. var buildPopperOptions = (props2, modifiers = []) => {
  13306. const { placement, strategy, popperOptions } = props2;
  13307. const options = {
  13308. placement,
  13309. strategy,
  13310. ...popperOptions,
  13311. modifiers: [...genModifiers(props2), ...modifiers]
  13312. };
  13313. deriveExtraModifiers(options, popperOptions == null ? void 0 : popperOptions.modifiers);
  13314. return options;
  13315. };
  13316. var unwrapMeasurableEl = ($el) => {
  13317. if (!isClient)
  13318. return;
  13319. return unrefElement($el);
  13320. };
  13321. function genModifiers(options) {
  13322. const { offset: offset3, gpuAcceleration, fallbackPlacements } = options;
  13323. return [
  13324. {
  13325. name: "offset",
  13326. options: {
  13327. offset: [0, offset3 != null ? offset3 : 12]
  13328. }
  13329. },
  13330. {
  13331. name: "preventOverflow",
  13332. options: {
  13333. padding: {
  13334. top: 0,
  13335. bottom: 0,
  13336. left: 0,
  13337. right: 0
  13338. }
  13339. }
  13340. },
  13341. {
  13342. name: "flip",
  13343. options: {
  13344. padding: 5,
  13345. fallbackPlacements
  13346. }
  13347. },
  13348. {
  13349. name: "computeStyles",
  13350. options: {
  13351. gpuAcceleration
  13352. }
  13353. }
  13354. ];
  13355. }
  13356. function deriveExtraModifiers(options, modifiers) {
  13357. if (modifiers) {
  13358. options.modifiers = [...options.modifiers, ...modifiers != null ? modifiers : []];
  13359. }
  13360. }
  13361. // node_modules/element-plus/es/hooks/use-popper/index.mjs
  13362. var usePopper = (referenceElementRef, popperElementRef, opts = {}) => {
  13363. const stateUpdater = {
  13364. name: "updateState",
  13365. enabled: true,
  13366. phase: "write",
  13367. fn: ({ state }) => {
  13368. const derivedState = deriveState(state);
  13369. Object.assign(states.value, derivedState);
  13370. },
  13371. requires: ["computeStyles"]
  13372. };
  13373. const options = computed(() => {
  13374. const { onFirstUpdate, placement, strategy, modifiers } = unref(opts);
  13375. return {
  13376. onFirstUpdate,
  13377. placement: placement || "bottom",
  13378. strategy: strategy || "absolute",
  13379. modifiers: [
  13380. ...modifiers || [],
  13381. stateUpdater,
  13382. { name: "applyStyles", enabled: false }
  13383. ]
  13384. };
  13385. });
  13386. const instanceRef = shallowRef();
  13387. const states = ref({
  13388. styles: {
  13389. popper: {
  13390. position: unref(options).strategy,
  13391. left: "0",
  13392. top: "0"
  13393. },
  13394. arrow: {
  13395. position: "absolute"
  13396. }
  13397. },
  13398. attributes: {}
  13399. });
  13400. const destroy = () => {
  13401. if (!instanceRef.value)
  13402. return;
  13403. instanceRef.value.destroy();
  13404. instanceRef.value = void 0;
  13405. };
  13406. watch(options, (newOptions) => {
  13407. const instance = unref(instanceRef);
  13408. if (instance) {
  13409. instance.setOptions(newOptions);
  13410. }
  13411. }, {
  13412. deep: true
  13413. });
  13414. watch([referenceElementRef, popperElementRef], ([referenceElement, popperElement]) => {
  13415. destroy();
  13416. if (!referenceElement || !popperElement)
  13417. return;
  13418. instanceRef.value = yn(referenceElement, popperElement, unref(options));
  13419. });
  13420. onBeforeUnmount(() => {
  13421. destroy();
  13422. });
  13423. return {
  13424. state: computed(() => {
  13425. var _a2;
  13426. return { ...((_a2 = unref(instanceRef)) == null ? void 0 : _a2.state) || {} };
  13427. }),
  13428. styles: computed(() => unref(states).styles),
  13429. attributes: computed(() => unref(states).attributes),
  13430. update: () => {
  13431. var _a2;
  13432. return (_a2 = unref(instanceRef)) == null ? void 0 : _a2.update();
  13433. },
  13434. forceUpdate: () => {
  13435. var _a2;
  13436. return (_a2 = unref(instanceRef)) == null ? void 0 : _a2.forceUpdate();
  13437. },
  13438. instanceRef: computed(() => unref(instanceRef))
  13439. };
  13440. };
  13441. function deriveState(state) {
  13442. const elements = Object.keys(state.elements);
  13443. const styles = fromPairs_default(elements.map((element) => [element, state.styles[element] || {}]));
  13444. const attributes2 = fromPairs_default(elements.map((element) => [element, state.attributes[element]]));
  13445. return {
  13446. styles,
  13447. attributes: attributes2
  13448. };
  13449. }
  13450. // node_modules/element-plus/es/components/popper/src/composables/use-content.mjs
  13451. var DEFAULT_ARROW_OFFSET = 0;
  13452. var usePopperContent = (props2) => {
  13453. const { popperInstanceRef, contentRef, triggerRef: triggerRef2, role } = inject(POPPER_INJECTION_KEY, void 0);
  13454. const arrowRef = ref();
  13455. const arrowOffset = computed(() => props2.arrowOffset);
  13456. const eventListenerModifier = computed(() => {
  13457. return {
  13458. name: "eventListeners",
  13459. enabled: !!props2.visible
  13460. };
  13461. });
  13462. const arrowModifier = computed(() => {
  13463. var _a2;
  13464. const arrowEl = unref(arrowRef);
  13465. const offset3 = (_a2 = unref(arrowOffset)) != null ? _a2 : DEFAULT_ARROW_OFFSET;
  13466. return {
  13467. name: "arrow",
  13468. enabled: !isUndefined_default(arrowEl),
  13469. options: {
  13470. element: arrowEl,
  13471. padding: offset3
  13472. }
  13473. };
  13474. });
  13475. const options = computed(() => {
  13476. return {
  13477. onFirstUpdate: () => {
  13478. update2();
  13479. },
  13480. ...buildPopperOptions(props2, [
  13481. unref(arrowModifier),
  13482. unref(eventListenerModifier)
  13483. ])
  13484. };
  13485. });
  13486. const computedReference = computed(() => unwrapMeasurableEl(props2.referenceEl) || unref(triggerRef2));
  13487. const { attributes: attributes2, state, styles, update: update2, forceUpdate, instanceRef } = usePopper(computedReference, contentRef, options);
  13488. watch(instanceRef, (instance) => popperInstanceRef.value = instance, {
  13489. flush: "sync"
  13490. });
  13491. onMounted(() => {
  13492. watch(() => {
  13493. var _a2, _b;
  13494. return (_b = (_a2 = unref(computedReference)) == null ? void 0 : _a2.getBoundingClientRect) == null ? void 0 : _b.call(_a2);
  13495. }, () => {
  13496. update2();
  13497. });
  13498. });
  13499. return {
  13500. attributes: attributes2,
  13501. arrowRef,
  13502. contentRef,
  13503. instanceRef,
  13504. state,
  13505. styles,
  13506. role,
  13507. forceUpdate,
  13508. update: update2
  13509. };
  13510. };
  13511. // node_modules/element-plus/es/components/popper/src/composables/use-content-dom.mjs
  13512. var usePopperContentDOM = (props2, {
  13513. attributes: attributes2,
  13514. styles,
  13515. role
  13516. }) => {
  13517. const { nextZIndex } = useZIndex();
  13518. const ns = useNamespace("popper");
  13519. const contentAttrs = computed(() => unref(attributes2).popper);
  13520. const contentZIndex = ref(isNumber2(props2.zIndex) ? props2.zIndex : nextZIndex());
  13521. const contentClass = computed(() => [
  13522. ns.b(),
  13523. ns.is("pure", props2.pure),
  13524. ns.is(props2.effect),
  13525. props2.popperClass
  13526. ]);
  13527. const contentStyle = computed(() => {
  13528. return [
  13529. { zIndex: unref(contentZIndex) },
  13530. unref(styles).popper,
  13531. props2.popperStyle || {}
  13532. ];
  13533. });
  13534. const ariaModal = computed(() => role.value === "dialog" ? "false" : void 0);
  13535. const arrowStyle = computed(() => unref(styles).arrow || {});
  13536. const updateZIndex = () => {
  13537. contentZIndex.value = isNumber2(props2.zIndex) ? props2.zIndex : nextZIndex();
  13538. };
  13539. return {
  13540. ariaModal,
  13541. arrowStyle,
  13542. contentAttrs,
  13543. contentClass,
  13544. contentStyle,
  13545. contentZIndex,
  13546. updateZIndex
  13547. };
  13548. };
  13549. // node_modules/element-plus/es/components/popper/src/content2.mjs
  13550. var __default__9 = defineComponent({
  13551. name: "ElPopperContent"
  13552. });
  13553. var _sfc_main12 = defineComponent({
  13554. ...__default__9,
  13555. props: popperContentProps,
  13556. emits: popperContentEmits,
  13557. setup(__props, { expose, emit }) {
  13558. const props2 = __props;
  13559. const {
  13560. focusStartRef,
  13561. trapped,
  13562. onFocusAfterReleased,
  13563. onFocusAfterTrapped,
  13564. onFocusInTrap,
  13565. onFocusoutPrevented,
  13566. onReleaseRequested
  13567. } = usePopperContentFocusTrap(props2, emit);
  13568. const { attributes: attributes2, arrowRef, contentRef, styles, instanceRef, role, update: update2 } = usePopperContent(props2);
  13569. const {
  13570. ariaModal,
  13571. arrowStyle,
  13572. contentAttrs,
  13573. contentClass,
  13574. contentStyle,
  13575. updateZIndex
  13576. } = usePopperContentDOM(props2, {
  13577. styles,
  13578. attributes: attributes2,
  13579. role
  13580. });
  13581. const formItemContext = inject(formItemContextKey, void 0);
  13582. provide(POPPER_CONTENT_INJECTION_KEY, {
  13583. arrowStyle,
  13584. arrowRef
  13585. });
  13586. if (formItemContext) {
  13587. provide(formItemContextKey, {
  13588. ...formItemContext,
  13589. addInputId: NOOP,
  13590. removeInputId: NOOP
  13591. });
  13592. }
  13593. let triggerTargetAriaStopWatch = void 0;
  13594. const updatePopper = (shouldUpdateZIndex = true) => {
  13595. update2();
  13596. shouldUpdateZIndex && updateZIndex();
  13597. };
  13598. const togglePopperAlive = () => {
  13599. updatePopper(false);
  13600. if (props2.visible && props2.focusOnShow) {
  13601. trapped.value = true;
  13602. } else if (props2.visible === false) {
  13603. trapped.value = false;
  13604. }
  13605. };
  13606. onMounted(() => {
  13607. watch(() => props2.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
  13608. triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
  13609. triggerTargetAriaStopWatch = void 0;
  13610. const el = unref(triggerTargetEl || contentRef.value);
  13611. const prevEl = unref(prevTriggerTargetEl || contentRef.value);
  13612. if (isElement2(el)) {
  13613. triggerTargetAriaStopWatch = watch([role, () => props2.ariaLabel, ariaModal, () => props2.id], (watches) => {
  13614. ["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
  13615. isNil_default(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
  13616. });
  13617. }, { immediate: true });
  13618. }
  13619. if (prevEl !== el && isElement2(prevEl)) {
  13620. ["role", "aria-label", "aria-modal", "id"].forEach((key) => {
  13621. prevEl.removeAttribute(key);
  13622. });
  13623. }
  13624. }, { immediate: true });
  13625. watch(() => props2.visible, togglePopperAlive, { immediate: true });
  13626. });
  13627. onBeforeUnmount(() => {
  13628. triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
  13629. triggerTargetAriaStopWatch = void 0;
  13630. });
  13631. expose({
  13632. popperContentRef: contentRef,
  13633. popperInstanceRef: instanceRef,
  13634. updatePopper,
  13635. contentStyle
  13636. });
  13637. return (_ctx, _cache) => {
  13638. return openBlock(), createElementBlock("div", mergeProps({
  13639. ref_key: "contentRef",
  13640. ref: contentRef
  13641. }, unref(contentAttrs), {
  13642. style: unref(contentStyle),
  13643. class: unref(contentClass),
  13644. tabindex: "-1",
  13645. onMouseenter: (e) => _ctx.$emit("mouseenter", e),
  13646. onMouseleave: (e) => _ctx.$emit("mouseleave", e)
  13647. }), [
  13648. createVNode(unref(ElFocusTrap), {
  13649. loop: _ctx.loop,
  13650. trapped: unref(trapped),
  13651. "trap-on-focus-in": true,
  13652. "focus-trap-el": unref(contentRef),
  13653. "focus-start-el": unref(focusStartRef),
  13654. onFocusAfterTrapped: unref(onFocusAfterTrapped),
  13655. onFocusAfterReleased: unref(onFocusAfterReleased),
  13656. onFocusin: unref(onFocusInTrap),
  13657. onFocusoutPrevented: unref(onFocusoutPrevented),
  13658. onReleaseRequested: unref(onReleaseRequested)
  13659. }, {
  13660. default: withCtx(() => [
  13661. renderSlot(_ctx.$slots, "default")
  13662. ]),
  13663. _: 3
  13664. }, 8, ["loop", "trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
  13665. ], 16, ["onMouseenter", "onMouseleave"]);
  13666. };
  13667. }
  13668. });
  13669. var ElPopperContent = _export_sfc(_sfc_main12, [["__file", "content.vue"]]);
  13670. // node_modules/element-plus/es/components/popper/index.mjs
  13671. var ElPopper = withInstall(Popper);
  13672. // node_modules/element-plus/es/components/tooltip/src/constants.mjs
  13673. var TOOLTIP_INJECTION_KEY = Symbol("elTooltip");
  13674. // node_modules/element-plus/es/components/teleport/src/teleport.mjs
  13675. var teleportProps = buildProps({
  13676. to: {
  13677. type: definePropType([String, Object]),
  13678. required: true
  13679. },
  13680. disabled: Boolean
  13681. });
  13682. // node_modules/element-plus/es/components/tooltip/src/content.mjs
  13683. var useTooltipContentProps = buildProps({
  13684. ...useDelayedToggleProps,
  13685. ...popperContentProps,
  13686. appendTo: {
  13687. type: teleportProps.to.type
  13688. },
  13689. content: {
  13690. type: String,
  13691. default: ""
  13692. },
  13693. rawContent: Boolean,
  13694. persistent: Boolean,
  13695. visible: {
  13696. type: definePropType(Boolean),
  13697. default: null
  13698. },
  13699. transition: String,
  13700. teleported: {
  13701. type: Boolean,
  13702. default: true
  13703. },
  13704. disabled: Boolean,
  13705. ...useAriaProps(["ariaLabel"])
  13706. });
  13707. // node_modules/element-plus/es/components/tooltip/src/trigger.mjs
  13708. var useTooltipTriggerProps = buildProps({
  13709. ...popperTriggerProps,
  13710. disabled: Boolean,
  13711. trigger: {
  13712. type: definePropType([String, Array]),
  13713. default: "hover"
  13714. },
  13715. triggerKeys: {
  13716. type: definePropType(Array),
  13717. default: () => [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space]
  13718. },
  13719. focusOnTarget: Boolean
  13720. });
  13721. // node_modules/element-plus/es/hooks/use-model-toggle/index.mjs
  13722. var _prop = buildProp({
  13723. type: definePropType(Boolean),
  13724. default: null
  13725. });
  13726. var _event = buildProp({
  13727. type: definePropType(Function)
  13728. });
  13729. var createModelToggleComposable = (name) => {
  13730. const updateEventKey = `update:${name}`;
  13731. const updateEventKeyRaw2 = `onUpdate:${name}`;
  13732. const useModelToggleEmits2 = [updateEventKey];
  13733. const useModelToggleProps2 = {
  13734. [name]: _prop,
  13735. [updateEventKeyRaw2]: _event
  13736. };
  13737. const useModelToggle2 = ({
  13738. indicator,
  13739. toggleReason,
  13740. shouldHideWhenRouteChanges,
  13741. shouldProceed,
  13742. onShow,
  13743. onHide
  13744. }) => {
  13745. const instance = getCurrentInstance();
  13746. const { emit } = instance;
  13747. const props2 = instance.props;
  13748. const hasUpdateHandler = computed(() => isFunction(props2[updateEventKeyRaw2]));
  13749. const isModelBindingAbsent = computed(() => props2[name] === null);
  13750. const doShow = (event) => {
  13751. if (indicator.value === true) {
  13752. return;
  13753. }
  13754. indicator.value = true;
  13755. if (toggleReason) {
  13756. toggleReason.value = event;
  13757. }
  13758. if (isFunction(onShow)) {
  13759. onShow(event);
  13760. }
  13761. };
  13762. const doHide = (event) => {
  13763. if (indicator.value === false) {
  13764. return;
  13765. }
  13766. indicator.value = false;
  13767. if (toggleReason) {
  13768. toggleReason.value = event;
  13769. }
  13770. if (isFunction(onHide)) {
  13771. onHide(event);
  13772. }
  13773. };
  13774. const show = (event) => {
  13775. if (props2.disabled === true || isFunction(shouldProceed) && !shouldProceed())
  13776. return;
  13777. const shouldEmit = hasUpdateHandler.value && isClient;
  13778. if (shouldEmit) {
  13779. emit(updateEventKey, true);
  13780. }
  13781. if (isModelBindingAbsent.value || !shouldEmit) {
  13782. doShow(event);
  13783. }
  13784. };
  13785. const hide2 = (event) => {
  13786. if (props2.disabled === true || !isClient)
  13787. return;
  13788. const shouldEmit = hasUpdateHandler.value && isClient;
  13789. if (shouldEmit) {
  13790. emit(updateEventKey, false);
  13791. }
  13792. if (isModelBindingAbsent.value || !shouldEmit) {
  13793. doHide(event);
  13794. }
  13795. };
  13796. const onChange = (val) => {
  13797. if (!isBoolean2(val))
  13798. return;
  13799. if (props2.disabled && val) {
  13800. if (hasUpdateHandler.value) {
  13801. emit(updateEventKey, false);
  13802. }
  13803. } else if (indicator.value !== val) {
  13804. if (val) {
  13805. doShow();
  13806. } else {
  13807. doHide();
  13808. }
  13809. }
  13810. };
  13811. const toggle = () => {
  13812. if (indicator.value) {
  13813. hide2();
  13814. } else {
  13815. show();
  13816. }
  13817. };
  13818. watch(() => props2[name], onChange);
  13819. if (shouldHideWhenRouteChanges && instance.appContext.config.globalProperties.$route !== void 0) {
  13820. watch(() => ({
  13821. ...instance.proxy.$route
  13822. }), () => {
  13823. if (shouldHideWhenRouteChanges.value && indicator.value) {
  13824. hide2();
  13825. }
  13826. });
  13827. }
  13828. onMounted(() => {
  13829. onChange(props2[name]);
  13830. });
  13831. return {
  13832. hide: hide2,
  13833. show,
  13834. toggle,
  13835. hasUpdateHandler
  13836. };
  13837. };
  13838. return {
  13839. useModelToggle: useModelToggle2,
  13840. useModelToggleProps: useModelToggleProps2,
  13841. useModelToggleEmits: useModelToggleEmits2
  13842. };
  13843. };
  13844. var { useModelToggle, useModelToggleProps, useModelToggleEmits } = createModelToggleComposable("modelValue");
  13845. // node_modules/element-plus/es/components/tooltip/src/tooltip.mjs
  13846. var {
  13847. useModelToggleProps: useTooltipModelToggleProps,
  13848. useModelToggleEmits: useTooltipModelToggleEmits,
  13849. useModelToggle: useTooltipModelToggle
  13850. } = createModelToggleComposable("visible");
  13851. var useTooltipProps = buildProps({
  13852. ...popperProps,
  13853. ...useTooltipModelToggleProps,
  13854. ...useTooltipContentProps,
  13855. ...useTooltipTriggerProps,
  13856. ...popperArrowProps,
  13857. showArrow: {
  13858. type: Boolean,
  13859. default: true
  13860. }
  13861. });
  13862. var tooltipEmits = [
  13863. ...useTooltipModelToggleEmits,
  13864. "before-show",
  13865. "before-hide",
  13866. "show",
  13867. "hide",
  13868. "open",
  13869. "close"
  13870. ];
  13871. // node_modules/element-plus/es/components/tooltip/src/utils.mjs
  13872. var isTriggerType = (trigger, type4) => {
  13873. if (isArray(trigger)) {
  13874. return trigger.includes(type4);
  13875. }
  13876. return trigger === type4;
  13877. };
  13878. var whenTrigger = (trigger, type4, handler) => {
  13879. return (e) => {
  13880. isTriggerType(unref(trigger), type4) && handler(e);
  13881. };
  13882. };
  13883. // node_modules/element-plus/es/components/tooltip/src/trigger2.mjs
  13884. var __default__10 = defineComponent({
  13885. name: "ElTooltipTrigger"
  13886. });
  13887. var _sfc_main13 = defineComponent({
  13888. ...__default__10,
  13889. props: useTooltipTriggerProps,
  13890. setup(__props, { expose }) {
  13891. const props2 = __props;
  13892. const ns = useNamespace("tooltip");
  13893. const { controlled, id, open, onOpen, onClose, onToggle } = inject(TOOLTIP_INJECTION_KEY, void 0);
  13894. const triggerRef2 = ref(null);
  13895. const stopWhenControlledOrDisabled = () => {
  13896. if (unref(controlled) || props2.disabled) {
  13897. return true;
  13898. }
  13899. };
  13900. const trigger = toRef(props2, "trigger");
  13901. const onMouseenter = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", (e) => {
  13902. onOpen(e);
  13903. if (props2.focusOnTarget && e.target) {
  13904. nextTick(() => {
  13905. focusElement(e.target, { preventScroll: true });
  13906. });
  13907. }
  13908. }));
  13909. const onMouseleave = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onClose));
  13910. const onClick = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "click", (e) => {
  13911. if (e.button === 0) {
  13912. onToggle(e);
  13913. }
  13914. }));
  13915. const onFocus = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onOpen));
  13916. const onBlur = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onClose));
  13917. const onContextMenu = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "contextmenu", (e) => {
  13918. e.preventDefault();
  13919. onToggle(e);
  13920. }));
  13921. const onKeydown = composeEventHandlers(stopWhenControlledOrDisabled, (e) => {
  13922. const code = getEventCode(e);
  13923. if (props2.triggerKeys.includes(code)) {
  13924. e.preventDefault();
  13925. onToggle(e);
  13926. }
  13927. });
  13928. expose({
  13929. triggerRef: triggerRef2
  13930. });
  13931. return (_ctx, _cache) => {
  13932. return openBlock(), createBlock(unref(ElPopperTrigger), {
  13933. id: unref(id),
  13934. "virtual-ref": _ctx.virtualRef,
  13935. open: unref(open),
  13936. "virtual-triggering": _ctx.virtualTriggering,
  13937. class: normalizeClass(unref(ns).e("trigger")),
  13938. onBlur: unref(onBlur),
  13939. onClick: unref(onClick),
  13940. onContextmenu: unref(onContextMenu),
  13941. onFocus: unref(onFocus),
  13942. onMouseenter: unref(onMouseenter),
  13943. onMouseleave: unref(onMouseleave),
  13944. onKeydown: unref(onKeydown)
  13945. }, {
  13946. default: withCtx(() => [
  13947. renderSlot(_ctx.$slots, "default")
  13948. ]),
  13949. _: 3
  13950. }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
  13951. };
  13952. }
  13953. });
  13954. var ElTooltipTrigger = _export_sfc(_sfc_main13, [["__file", "trigger.vue"]]);
  13955. // node_modules/element-plus/es/components/teleport/src/teleport2.mjs
  13956. var _sfc_main14 = defineComponent({
  13957. __name: "teleport",
  13958. props: teleportProps,
  13959. setup(__props) {
  13960. return (_ctx, _cache) => {
  13961. return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport, {
  13962. key: 1,
  13963. to: _ctx.to
  13964. }, [
  13965. renderSlot(_ctx.$slots, "default")
  13966. ], 8, ["to"]));
  13967. };
  13968. }
  13969. });
  13970. var Teleport2 = _export_sfc(_sfc_main14, [["__file", "teleport.vue"]]);
  13971. // node_modules/element-plus/es/components/teleport/index.mjs
  13972. var ElTeleport = withInstall(Teleport2);
  13973. // node_modules/element-plus/es/hooks/use-popper-container/index.mjs
  13974. var usePopperContainerId = () => {
  13975. const namespace = useGetDerivedNamespace();
  13976. const idInjection = useIdInjection();
  13977. const id = computed(() => {
  13978. return `${namespace.value}-popper-container-${idInjection.prefix}`;
  13979. });
  13980. const selector = computed(() => `#${id.value}`);
  13981. return {
  13982. id,
  13983. selector
  13984. };
  13985. };
  13986. var createContainer = (id) => {
  13987. const container = document.createElement("div");
  13988. container.id = id;
  13989. document.body.appendChild(container);
  13990. return container;
  13991. };
  13992. var usePopperContainer = () => {
  13993. const { id, selector } = usePopperContainerId();
  13994. onBeforeMount(() => {
  13995. if (!isClient)
  13996. return;
  13997. if (!document.body.querySelector(selector.value)) {
  13998. createContainer(id.value);
  13999. }
  14000. });
  14001. return {
  14002. id,
  14003. selector
  14004. };
  14005. };
  14006. // node_modules/element-plus/es/utils/arrays.mjs
  14007. var unique = (arr) => [...new Set(arr)];
  14008. var extractFirst = (arr) => {
  14009. return isArray(arr) ? arr[0] : arr;
  14010. };
  14011. var castArray2 = (arr) => {
  14012. if (!arr && arr !== 0)
  14013. return [];
  14014. return isArray(arr) ? arr : [arr];
  14015. };
  14016. // node_modules/element-plus/es/components/tooltip/src/content2.mjs
  14017. var __default__11 = defineComponent({
  14018. name: "ElTooltipContent",
  14019. inheritAttrs: false
  14020. });
  14021. var _sfc_main15 = defineComponent({
  14022. ...__default__11,
  14023. props: useTooltipContentProps,
  14024. setup(__props, { expose }) {
  14025. const props2 = __props;
  14026. const { selector } = usePopperContainerId();
  14027. const ns = useNamespace("tooltip");
  14028. const contentRef = ref();
  14029. const popperContentRef = computedEager(() => {
  14030. var _a2;
  14031. return (_a2 = contentRef.value) == null ? void 0 : _a2.popperContentRef;
  14032. });
  14033. let stopHandle;
  14034. const {
  14035. controlled,
  14036. id,
  14037. open,
  14038. trigger,
  14039. onClose,
  14040. onOpen,
  14041. onShow,
  14042. onHide,
  14043. onBeforeShow,
  14044. onBeforeHide
  14045. } = inject(TOOLTIP_INJECTION_KEY, void 0);
  14046. const transitionClass = computed(() => {
  14047. return props2.transition || `${ns.namespace.value}-fade-in-linear`;
  14048. });
  14049. const persistentRef = computed(() => {
  14050. return props2.persistent;
  14051. });
  14052. onBeforeUnmount(() => {
  14053. stopHandle == null ? void 0 : stopHandle();
  14054. });
  14055. const shouldRender = computed(() => {
  14056. return unref(persistentRef) ? true : unref(open);
  14057. });
  14058. const shouldShow = computed(() => {
  14059. return props2.disabled ? false : unref(open);
  14060. });
  14061. const appendTo = computed(() => {
  14062. return props2.appendTo || selector.value;
  14063. });
  14064. const contentStyle = computed(() => {
  14065. var _a2;
  14066. return (_a2 = props2.style) != null ? _a2 : {};
  14067. });
  14068. const ariaHidden = ref(true);
  14069. const onTransitionLeave = () => {
  14070. onHide();
  14071. isFocusInsideContent() && focusElement(document.body, { preventScroll: true });
  14072. ariaHidden.value = true;
  14073. };
  14074. const stopWhenControlled = () => {
  14075. if (unref(controlled))
  14076. return true;
  14077. };
  14078. const onContentEnter = composeEventHandlers(stopWhenControlled, () => {
  14079. if (props2.enterable && isTriggerType(unref(trigger), "hover")) {
  14080. onOpen();
  14081. }
  14082. });
  14083. const onContentLeave = composeEventHandlers(stopWhenControlled, () => {
  14084. if (isTriggerType(unref(trigger), "hover")) {
  14085. onClose();
  14086. }
  14087. });
  14088. const onBeforeEnter = () => {
  14089. var _a2, _b;
  14090. (_b = (_a2 = contentRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  14091. onBeforeShow == null ? void 0 : onBeforeShow();
  14092. };
  14093. const onBeforeLeave = () => {
  14094. onBeforeHide == null ? void 0 : onBeforeHide();
  14095. };
  14096. const onAfterShow = () => {
  14097. onShow();
  14098. };
  14099. const onBlur = () => {
  14100. if (!props2.virtualTriggering) {
  14101. onClose();
  14102. }
  14103. };
  14104. const isFocusInsideContent = (event) => {
  14105. var _a2;
  14106. const popperContent = (_a2 = contentRef.value) == null ? void 0 : _a2.popperContentRef;
  14107. const activeElement = (event == null ? void 0 : event.relatedTarget) || document.activeElement;
  14108. return popperContent == null ? void 0 : popperContent.contains(activeElement);
  14109. };
  14110. watch(() => unref(open), (val) => {
  14111. if (!val) {
  14112. stopHandle == null ? void 0 : stopHandle();
  14113. } else {
  14114. ariaHidden.value = false;
  14115. stopHandle = onClickOutside(popperContentRef, () => {
  14116. if (unref(controlled))
  14117. return;
  14118. const needClose = castArray2(unref(trigger)).every((item) => {
  14119. return item !== "hover" && item !== "focus";
  14120. });
  14121. if (needClose) {
  14122. onClose();
  14123. }
  14124. }, { detectIframe: true });
  14125. }
  14126. }, {
  14127. flush: "post"
  14128. });
  14129. watch(() => props2.content, () => {
  14130. var _a2, _b;
  14131. (_b = (_a2 = contentRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  14132. });
  14133. expose({
  14134. contentRef,
  14135. isFocusInsideContent
  14136. });
  14137. return (_ctx, _cache) => {
  14138. return openBlock(), createBlock(unref(ElTeleport), {
  14139. disabled: !_ctx.teleported,
  14140. to: unref(appendTo)
  14141. }, {
  14142. default: withCtx(() => [
  14143. unref(shouldRender) || !ariaHidden.value ? (openBlock(), createBlock(Transition, {
  14144. key: 0,
  14145. name: unref(transitionClass),
  14146. appear: !unref(persistentRef),
  14147. onAfterLeave: onTransitionLeave,
  14148. onBeforeEnter,
  14149. onAfterEnter: onAfterShow,
  14150. onBeforeLeave,
  14151. persisted: ""
  14152. }, {
  14153. default: withCtx(() => [
  14154. withDirectives(createVNode(unref(ElPopperContent), mergeProps({
  14155. id: unref(id),
  14156. ref_key: "contentRef",
  14157. ref: contentRef
  14158. }, _ctx.$attrs, {
  14159. "aria-label": _ctx.ariaLabel,
  14160. "aria-hidden": ariaHidden.value,
  14161. "boundaries-padding": _ctx.boundariesPadding,
  14162. "fallback-placements": _ctx.fallbackPlacements,
  14163. "gpu-acceleration": _ctx.gpuAcceleration,
  14164. offset: _ctx.offset,
  14165. placement: _ctx.placement,
  14166. "popper-options": _ctx.popperOptions,
  14167. "arrow-offset": _ctx.arrowOffset,
  14168. strategy: _ctx.strategy,
  14169. effect: _ctx.effect,
  14170. enterable: _ctx.enterable,
  14171. pure: _ctx.pure,
  14172. "popper-class": _ctx.popperClass,
  14173. "popper-style": [_ctx.popperStyle, unref(contentStyle)],
  14174. "reference-el": _ctx.referenceEl,
  14175. "trigger-target-el": _ctx.triggerTargetEl,
  14176. visible: unref(shouldShow),
  14177. "z-index": _ctx.zIndex,
  14178. loop: _ctx.loop,
  14179. onMouseenter: unref(onContentEnter),
  14180. onMouseleave: unref(onContentLeave),
  14181. onBlur,
  14182. onClose: unref(onClose)
  14183. }), {
  14184. default: withCtx(() => [
  14185. renderSlot(_ctx.$slots, "default")
  14186. ]),
  14187. _: 3
  14188. }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "arrow-offset", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "loop", "onMouseenter", "onMouseleave", "onClose"]), [
  14189. [vShow, unref(shouldShow)]
  14190. ])
  14191. ]),
  14192. _: 3
  14193. }, 8, ["name", "appear"])) : createCommentVNode("v-if", true)
  14194. ]),
  14195. _: 3
  14196. }, 8, ["disabled", "to"]);
  14197. };
  14198. }
  14199. });
  14200. var ElTooltipContent = _export_sfc(_sfc_main15, [["__file", "content.vue"]]);
  14201. // node_modules/element-plus/es/components/tooltip/src/tooltip2.mjs
  14202. var __default__12 = defineComponent({
  14203. name: "ElTooltip"
  14204. });
  14205. var _sfc_main16 = defineComponent({
  14206. ...__default__12,
  14207. props: useTooltipProps,
  14208. emits: tooltipEmits,
  14209. setup(__props, { expose, emit }) {
  14210. const props2 = __props;
  14211. usePopperContainer();
  14212. const ns = useNamespace("tooltip");
  14213. const id = useId();
  14214. const popperRef = ref();
  14215. const contentRef = ref();
  14216. const updatePopper = () => {
  14217. var _a2;
  14218. const popperComponent = unref(popperRef);
  14219. if (popperComponent) {
  14220. (_a2 = popperComponent.popperInstanceRef) == null ? void 0 : _a2.update();
  14221. }
  14222. };
  14223. const open = ref(false);
  14224. const toggleReason = ref();
  14225. const { show, hide: hide2, hasUpdateHandler } = useTooltipModelToggle({
  14226. indicator: open,
  14227. toggleReason
  14228. });
  14229. const { onOpen, onClose } = useDelayedToggle({
  14230. showAfter: toRef(props2, "showAfter"),
  14231. hideAfter: toRef(props2, "hideAfter"),
  14232. autoClose: toRef(props2, "autoClose"),
  14233. open: show,
  14234. close: hide2
  14235. });
  14236. const controlled = computed(() => isBoolean2(props2.visible) && !hasUpdateHandler.value);
  14237. const kls = computed(() => {
  14238. return [ns.b(), props2.popperClass];
  14239. });
  14240. provide(TOOLTIP_INJECTION_KEY, {
  14241. controlled,
  14242. id,
  14243. open: readonly(open),
  14244. trigger: toRef(props2, "trigger"),
  14245. onOpen,
  14246. onClose,
  14247. onToggle: (event) => {
  14248. if (unref(open)) {
  14249. onClose(event);
  14250. } else {
  14251. onOpen(event);
  14252. }
  14253. },
  14254. onShow: () => {
  14255. emit("show", toggleReason.value);
  14256. },
  14257. onHide: () => {
  14258. emit("hide", toggleReason.value);
  14259. },
  14260. onBeforeShow: () => {
  14261. emit("before-show", toggleReason.value);
  14262. },
  14263. onBeforeHide: () => {
  14264. emit("before-hide", toggleReason.value);
  14265. },
  14266. updatePopper
  14267. });
  14268. watch(() => props2.disabled, (disabled) => {
  14269. if (disabled && open.value) {
  14270. open.value = false;
  14271. }
  14272. });
  14273. const isFocusInsideContent = (event) => {
  14274. var _a2;
  14275. return (_a2 = contentRef.value) == null ? void 0 : _a2.isFocusInsideContent(event);
  14276. };
  14277. onDeactivated(() => open.value && hide2());
  14278. expose({
  14279. popperRef,
  14280. contentRef,
  14281. isFocusInsideContent,
  14282. updatePopper,
  14283. onOpen,
  14284. onClose,
  14285. hide: hide2
  14286. });
  14287. return (_ctx, _cache) => {
  14288. return openBlock(), createBlock(unref(ElPopper), {
  14289. ref_key: "popperRef",
  14290. ref: popperRef,
  14291. role: _ctx.role
  14292. }, {
  14293. default: withCtx(() => [
  14294. createVNode(ElTooltipTrigger, {
  14295. disabled: _ctx.disabled,
  14296. trigger: _ctx.trigger,
  14297. "trigger-keys": _ctx.triggerKeys,
  14298. "virtual-ref": _ctx.virtualRef,
  14299. "virtual-triggering": _ctx.virtualTriggering,
  14300. "focus-on-target": _ctx.focusOnTarget
  14301. }, {
  14302. default: withCtx(() => [
  14303. _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true)
  14304. ]),
  14305. _: 3
  14306. }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering", "focus-on-target"]),
  14307. createVNode(ElTooltipContent, {
  14308. ref_key: "contentRef",
  14309. ref: contentRef,
  14310. "aria-label": _ctx.ariaLabel,
  14311. "boundaries-padding": _ctx.boundariesPadding,
  14312. content: _ctx.content,
  14313. disabled: _ctx.disabled,
  14314. effect: _ctx.effect,
  14315. enterable: _ctx.enterable,
  14316. "fallback-placements": _ctx.fallbackPlacements,
  14317. "hide-after": _ctx.hideAfter,
  14318. "gpu-acceleration": _ctx.gpuAcceleration,
  14319. offset: _ctx.offset,
  14320. persistent: _ctx.persistent,
  14321. "popper-class": unref(kls),
  14322. "popper-style": _ctx.popperStyle,
  14323. placement: _ctx.placement,
  14324. "popper-options": _ctx.popperOptions,
  14325. "arrow-offset": _ctx.arrowOffset,
  14326. pure: _ctx.pure,
  14327. "raw-content": _ctx.rawContent,
  14328. "reference-el": _ctx.referenceEl,
  14329. "trigger-target-el": _ctx.triggerTargetEl,
  14330. "show-after": _ctx.showAfter,
  14331. strategy: _ctx.strategy,
  14332. teleported: _ctx.teleported,
  14333. transition: _ctx.transition,
  14334. "virtual-triggering": _ctx.virtualTriggering,
  14335. "z-index": _ctx.zIndex,
  14336. "append-to": _ctx.appendTo,
  14337. loop: _ctx.loop
  14338. }, {
  14339. default: withCtx(() => [
  14340. renderSlot(_ctx.$slots, "content", {}, () => [
  14341. _ctx.rawContent ? (openBlock(), createElementBlock("span", {
  14342. key: 0,
  14343. innerHTML: _ctx.content
  14344. }, null, 8, ["innerHTML"])) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.content), 1))
  14345. ]),
  14346. _ctx.showArrow ? (openBlock(), createBlock(unref(ElPopperArrow), { key: 0 })) : createCommentVNode("v-if", true)
  14347. ]),
  14348. _: 3
  14349. }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "arrow-offset", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to", "loop"])
  14350. ]),
  14351. _: 3
  14352. }, 8, ["role"]);
  14353. };
  14354. }
  14355. });
  14356. var Tooltip = _export_sfc(_sfc_main16, [["__file", "tooltip.vue"]]);
  14357. // node_modules/element-plus/es/components/tooltip/index.mjs
  14358. var ElTooltip = withInstall(Tooltip);
  14359. // node_modules/element-plus/es/components/autocomplete/src/autocomplete2.mjs
  14360. var autocompleteProps = buildProps({
  14361. ...inputProps,
  14362. valueKey: {
  14363. type: String,
  14364. default: "value"
  14365. },
  14366. modelValue: {
  14367. type: [String, Number],
  14368. default: ""
  14369. },
  14370. debounce: {
  14371. type: Number,
  14372. default: 300
  14373. },
  14374. placement: {
  14375. type: definePropType(String),
  14376. values: [
  14377. "top",
  14378. "top-start",
  14379. "top-end",
  14380. "bottom",
  14381. "bottom-start",
  14382. "bottom-end"
  14383. ],
  14384. default: "bottom-start"
  14385. },
  14386. fetchSuggestions: {
  14387. type: definePropType([Function, Array]),
  14388. default: NOOP
  14389. },
  14390. popperClass: useTooltipContentProps.popperClass,
  14391. popperStyle: useTooltipContentProps.popperStyle,
  14392. triggerOnFocus: {
  14393. type: Boolean,
  14394. default: true
  14395. },
  14396. selectWhenUnmatched: Boolean,
  14397. hideLoading: Boolean,
  14398. teleported: useTooltipContentProps.teleported,
  14399. appendTo: useTooltipContentProps.appendTo,
  14400. highlightFirstItem: Boolean,
  14401. fitInputWidth: Boolean,
  14402. loopNavigation: {
  14403. type: Boolean,
  14404. default: true
  14405. }
  14406. });
  14407. var autocompleteEmits = {
  14408. [UPDATE_MODEL_EVENT]: (value) => isString(value) || isNumber2(value),
  14409. [INPUT_EVENT]: (value) => isString(value) || isNumber2(value),
  14410. [CHANGE_EVENT]: (value) => isString(value) || isNumber2(value),
  14411. focus: (evt) => evt instanceof FocusEvent,
  14412. blur: (evt) => evt instanceof FocusEvent,
  14413. clear: () => true,
  14414. select: (item) => isObject(item)
  14415. };
  14416. // node_modules/element-plus/es/components/autocomplete/src/autocomplete.mjs
  14417. var COMPONENT_NAME5 = "ElAutocomplete";
  14418. var __default__13 = defineComponent({
  14419. name: COMPONENT_NAME5,
  14420. inheritAttrs: false
  14421. });
  14422. var _sfc_main17 = defineComponent({
  14423. ...__default__13,
  14424. props: autocompleteProps,
  14425. emits: autocompleteEmits,
  14426. setup(__props, { expose, emit }) {
  14427. const props2 = __props;
  14428. const passInputProps = computed(() => pick_default(props2, Object.keys(inputProps)));
  14429. const rawAttrs = useAttrs();
  14430. const disabled = useFormDisabled();
  14431. const ns = useNamespace("autocomplete");
  14432. const inputRef = ref();
  14433. const regionRef = ref();
  14434. const popperRef = ref();
  14435. const listboxRef = ref();
  14436. let readonly2 = false;
  14437. let ignoreFocusEvent = false;
  14438. const suggestions = ref([]);
  14439. const highlightedIndex = ref(-1);
  14440. const dropdownWidth = ref("");
  14441. const activated = ref(false);
  14442. const suggestionDisabled = ref(false);
  14443. const loading = ref(false);
  14444. const listboxId = useId();
  14445. const styles = computed(() => rawAttrs.style);
  14446. const suggestionVisible = computed(() => {
  14447. const isValidData = suggestions.value.length > 0;
  14448. return (isValidData || loading.value) && activated.value;
  14449. });
  14450. const suggestionLoading = computed(() => !props2.hideLoading && loading.value);
  14451. const refInput = computed(() => {
  14452. if (inputRef.value) {
  14453. return Array.from(inputRef.value.$el.querySelectorAll("input"));
  14454. }
  14455. return [];
  14456. });
  14457. const onSuggestionShow = () => {
  14458. if (suggestionVisible.value) {
  14459. dropdownWidth.value = `${inputRef.value.$el.offsetWidth}px`;
  14460. }
  14461. };
  14462. const onHide = () => {
  14463. highlightedIndex.value = -1;
  14464. };
  14465. const getData2 = async (queryString) => {
  14466. if (suggestionDisabled.value)
  14467. return;
  14468. const cb = (suggestionList) => {
  14469. loading.value = false;
  14470. if (suggestionDisabled.value)
  14471. return;
  14472. if (isArray(suggestionList)) {
  14473. suggestions.value = suggestionList;
  14474. highlightedIndex.value = props2.highlightFirstItem ? 0 : -1;
  14475. } else {
  14476. throwError(COMPONENT_NAME5, "autocomplete suggestions must be an array");
  14477. }
  14478. };
  14479. loading.value = true;
  14480. if (isArray(props2.fetchSuggestions)) {
  14481. cb(props2.fetchSuggestions);
  14482. } else {
  14483. const result2 = await props2.fetchSuggestions(queryString, cb);
  14484. if (isArray(result2))
  14485. cb(result2);
  14486. }
  14487. };
  14488. const debounce2 = computed(() => props2.debounce);
  14489. const debouncedGetData = useDebounceFn(getData2, debounce2);
  14490. const handleInput = (value) => {
  14491. const valuePresented = !!value;
  14492. emit(INPUT_EVENT, value);
  14493. emit(UPDATE_MODEL_EVENT, value);
  14494. suggestionDisabled.value = false;
  14495. activated.value || (activated.value = valuePresented);
  14496. if (!props2.triggerOnFocus && !value) {
  14497. suggestionDisabled.value = true;
  14498. suggestions.value = [];
  14499. return;
  14500. }
  14501. debouncedGetData(value);
  14502. };
  14503. const handleMouseDown = (event) => {
  14504. var _a2;
  14505. if (disabled.value)
  14506. return;
  14507. if (((_a2 = event.target) == null ? void 0 : _a2.tagName) !== "INPUT" || refInput.value.includes(document.activeElement)) {
  14508. activated.value = true;
  14509. }
  14510. };
  14511. const handleChange = (value) => {
  14512. emit(CHANGE_EVENT, value);
  14513. };
  14514. const handleFocus = (evt) => {
  14515. var _a2;
  14516. if (!ignoreFocusEvent) {
  14517. activated.value = true;
  14518. emit("focus", evt);
  14519. const queryString = (_a2 = props2.modelValue) != null ? _a2 : "";
  14520. if (props2.triggerOnFocus && !readonly2) {
  14521. debouncedGetData(String(queryString));
  14522. }
  14523. } else {
  14524. ignoreFocusEvent = false;
  14525. }
  14526. };
  14527. const handleBlur = (evt) => {
  14528. setTimeout(() => {
  14529. var _a2;
  14530. if ((_a2 = popperRef.value) == null ? void 0 : _a2.isFocusInsideContent()) {
  14531. ignoreFocusEvent = true;
  14532. return;
  14533. }
  14534. activated.value && close2();
  14535. emit("blur", evt);
  14536. });
  14537. };
  14538. const handleClear = () => {
  14539. activated.value = false;
  14540. emit(UPDATE_MODEL_EVENT, "");
  14541. emit("clear");
  14542. };
  14543. const handleKeyEnter = async () => {
  14544. var _a2;
  14545. if ((_a2 = inputRef.value) == null ? void 0 : _a2.isComposing) {
  14546. return;
  14547. }
  14548. if (suggestionVisible.value && highlightedIndex.value >= 0 && highlightedIndex.value < suggestions.value.length) {
  14549. handleSelect(suggestions.value[highlightedIndex.value]);
  14550. } else {
  14551. if (props2.selectWhenUnmatched) {
  14552. emit("select", { value: props2.modelValue });
  14553. suggestions.value = [];
  14554. highlightedIndex.value = -1;
  14555. }
  14556. activated.value = true;
  14557. debouncedGetData(String(props2.modelValue));
  14558. }
  14559. };
  14560. const handleKeyEscape = (evt) => {
  14561. if (suggestionVisible.value) {
  14562. evt.preventDefault();
  14563. evt.stopPropagation();
  14564. close2();
  14565. }
  14566. };
  14567. const close2 = () => {
  14568. activated.value = false;
  14569. };
  14570. const focus = () => {
  14571. var _a2;
  14572. (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
  14573. };
  14574. const blur = () => {
  14575. var _a2;
  14576. (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
  14577. };
  14578. const handleSelect = async (item) => {
  14579. emit(INPUT_EVENT, item[props2.valueKey]);
  14580. emit(UPDATE_MODEL_EVENT, item[props2.valueKey]);
  14581. emit("select", item);
  14582. suggestions.value = [];
  14583. highlightedIndex.value = -1;
  14584. };
  14585. const highlight = (index) => {
  14586. var _a2, _b;
  14587. if (!suggestionVisible.value || loading.value)
  14588. return;
  14589. if (index < 0) {
  14590. if (!props2.loopNavigation) {
  14591. highlightedIndex.value = -1;
  14592. return;
  14593. }
  14594. index = suggestions.value.length - 1;
  14595. }
  14596. if (index >= suggestions.value.length) {
  14597. index = props2.loopNavigation ? 0 : suggestions.value.length - 1;
  14598. }
  14599. const [suggestion, suggestionList] = getSuggestionContext();
  14600. const highlightItem = suggestionList[index];
  14601. const scrollTop = suggestion.scrollTop;
  14602. const { offsetTop, scrollHeight } = highlightItem;
  14603. if (offsetTop + scrollHeight > scrollTop + suggestion.clientHeight) {
  14604. suggestion.scrollTop = offsetTop + scrollHeight - suggestion.clientHeight;
  14605. }
  14606. if (offsetTop < scrollTop) {
  14607. suggestion.scrollTop = offsetTop;
  14608. }
  14609. highlightedIndex.value = index;
  14610. (_b = (_a2 = inputRef.value) == null ? void 0 : _a2.ref) == null ? void 0 : _b.setAttribute("aria-activedescendant", `${listboxId.value}-item-${highlightedIndex.value}`);
  14611. };
  14612. const getSuggestionContext = () => {
  14613. const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
  14614. const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
  14615. return [suggestion, suggestionList];
  14616. };
  14617. const stopHandle = onClickOutside(listboxRef, () => {
  14618. var _a2;
  14619. if ((_a2 = popperRef.value) == null ? void 0 : _a2.isFocusInsideContent())
  14620. return;
  14621. suggestionVisible.value && close2();
  14622. });
  14623. const handleKeydown = (e) => {
  14624. const code = getEventCode(e);
  14625. switch (code) {
  14626. case EVENT_CODE.up:
  14627. e.preventDefault();
  14628. highlight(highlightedIndex.value - 1);
  14629. break;
  14630. case EVENT_CODE.down:
  14631. e.preventDefault();
  14632. highlight(highlightedIndex.value + 1);
  14633. break;
  14634. case EVENT_CODE.enter:
  14635. e.preventDefault();
  14636. handleKeyEnter();
  14637. break;
  14638. case EVENT_CODE.tab:
  14639. close2();
  14640. break;
  14641. case EVENT_CODE.esc:
  14642. handleKeyEscape(e);
  14643. break;
  14644. case EVENT_CODE.home:
  14645. e.preventDefault();
  14646. highlight(0);
  14647. break;
  14648. case EVENT_CODE.end:
  14649. e.preventDefault();
  14650. highlight(suggestions.value.length - 1);
  14651. break;
  14652. case EVENT_CODE.pageUp:
  14653. e.preventDefault();
  14654. highlight(Math.max(0, highlightedIndex.value - 10));
  14655. break;
  14656. case EVENT_CODE.pageDown:
  14657. e.preventDefault();
  14658. highlight(Math.min(suggestions.value.length - 1, highlightedIndex.value + 10));
  14659. break;
  14660. }
  14661. };
  14662. onBeforeUnmount(() => {
  14663. stopHandle == null ? void 0 : stopHandle();
  14664. });
  14665. onMounted(() => {
  14666. var _a2;
  14667. const inputElement = (_a2 = inputRef.value) == null ? void 0 : _a2.ref;
  14668. if (!inputElement)
  14669. return;
  14670. [
  14671. { key: "role", value: "textbox" },
  14672. { key: "aria-autocomplete", value: "list" },
  14673. { key: "aria-controls", value: "id" },
  14674. {
  14675. key: "aria-activedescendant",
  14676. value: `${listboxId.value}-item-${highlightedIndex.value}`
  14677. }
  14678. ].forEach(({ key, value }) => inputElement.setAttribute(key, value));
  14679. readonly2 = inputElement.hasAttribute("readonly");
  14680. });
  14681. expose({
  14682. highlightedIndex,
  14683. activated,
  14684. loading,
  14685. inputRef,
  14686. popperRef,
  14687. suggestions,
  14688. handleSelect,
  14689. handleKeyEnter,
  14690. focus,
  14691. blur,
  14692. close: close2,
  14693. highlight,
  14694. getData: getData2
  14695. });
  14696. return (_ctx, _cache) => {
  14697. return openBlock(), createBlock(unref(ElTooltip), {
  14698. ref_key: "popperRef",
  14699. ref: popperRef,
  14700. visible: unref(suggestionVisible),
  14701. placement: _ctx.placement,
  14702. "fallback-placements": ["bottom-start", "top-start"],
  14703. "popper-class": [unref(ns).e("popper"), _ctx.popperClass],
  14704. "popper-style": _ctx.popperStyle,
  14705. teleported: _ctx.teleported,
  14706. "append-to": _ctx.appendTo,
  14707. "gpu-acceleration": false,
  14708. pure: "",
  14709. "manual-mode": "",
  14710. effect: "light",
  14711. trigger: "click",
  14712. transition: `${unref(ns).namespace.value}-zoom-in-top`,
  14713. persistent: "",
  14714. role: "listbox",
  14715. onBeforeShow: onSuggestionShow,
  14716. onHide
  14717. }, {
  14718. content: withCtx(() => [
  14719. createBaseVNode("div", {
  14720. ref_key: "regionRef",
  14721. ref: regionRef,
  14722. class: normalizeClass([unref(ns).b("suggestion"), unref(ns).is("loading", unref(suggestionLoading))]),
  14723. style: normalizeStyle({
  14724. [_ctx.fitInputWidth ? "width" : "minWidth"]: dropdownWidth.value,
  14725. outline: "none"
  14726. }),
  14727. role: "region"
  14728. }, [
  14729. _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
  14730. key: 0,
  14731. class: normalizeClass(unref(ns).be("suggestion", "header")),
  14732. onClick: withModifiers(() => {
  14733. }, ["stop"])
  14734. }, [
  14735. renderSlot(_ctx.$slots, "header")
  14736. ], 10, ["onClick"])) : createCommentVNode("v-if", true),
  14737. createVNode(unref(ElScrollbar), {
  14738. id: unref(listboxId),
  14739. tag: "ul",
  14740. "wrap-class": unref(ns).be("suggestion", "wrap"),
  14741. "view-class": unref(ns).be("suggestion", "list"),
  14742. role: "listbox"
  14743. }, {
  14744. default: withCtx(() => [
  14745. unref(suggestionLoading) ? (openBlock(), createElementBlock("li", { key: 0 }, [
  14746. renderSlot(_ctx.$slots, "loading", {}, () => [
  14747. createVNode(unref(ElIcon), {
  14748. class: normalizeClass(unref(ns).is("loading"))
  14749. }, {
  14750. default: withCtx(() => [
  14751. createVNode(unref(loading_default))
  14752. ]),
  14753. _: 1
  14754. }, 8, ["class"])
  14755. ])
  14756. ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(suggestions.value, (item, index) => {
  14757. return openBlock(), createElementBlock("li", {
  14758. id: `${unref(listboxId)}-item-${index}`,
  14759. key: index,
  14760. class: normalizeClass({ highlighted: highlightedIndex.value === index }),
  14761. role: "option",
  14762. "aria-selected": highlightedIndex.value === index,
  14763. onClick: ($event) => handleSelect(item)
  14764. }, [
  14765. renderSlot(_ctx.$slots, "default", { item }, () => [
  14766. createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
  14767. ])
  14768. ], 10, ["id", "aria-selected", "onClick"]);
  14769. }), 128))
  14770. ]),
  14771. _: 3
  14772. }, 8, ["id", "wrap-class", "view-class"]),
  14773. _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
  14774. key: 1,
  14775. class: normalizeClass(unref(ns).be("suggestion", "footer")),
  14776. onClick: withModifiers(() => {
  14777. }, ["stop"])
  14778. }, [
  14779. renderSlot(_ctx.$slots, "footer")
  14780. ], 10, ["onClick"])) : createCommentVNode("v-if", true)
  14781. ], 6)
  14782. ]),
  14783. default: withCtx(() => [
  14784. createBaseVNode("div", {
  14785. ref_key: "listboxRef",
  14786. ref: listboxRef,
  14787. class: normalizeClass([unref(ns).b(), _ctx.$attrs.class]),
  14788. style: normalizeStyle(unref(styles)),
  14789. role: "combobox",
  14790. "aria-haspopup": "listbox",
  14791. "aria-expanded": unref(suggestionVisible),
  14792. "aria-owns": unref(listboxId)
  14793. }, [
  14794. createVNode(unref(ElInput), mergeProps({
  14795. ref_key: "inputRef",
  14796. ref: inputRef
  14797. }, mergeProps(unref(passInputProps), _ctx.$attrs), {
  14798. "model-value": _ctx.modelValue,
  14799. disabled: unref(disabled),
  14800. onInput: handleInput,
  14801. onChange: handleChange,
  14802. onFocus: handleFocus,
  14803. onBlur: handleBlur,
  14804. onClear: handleClear,
  14805. onKeydown: handleKeydown,
  14806. onMousedown: handleMouseDown
  14807. }), createSlots({
  14808. _: 2
  14809. }, [
  14810. _ctx.$slots.prepend ? {
  14811. name: "prepend",
  14812. fn: withCtx(() => [
  14813. renderSlot(_ctx.$slots, "prepend")
  14814. ])
  14815. } : void 0,
  14816. _ctx.$slots.append ? {
  14817. name: "append",
  14818. fn: withCtx(() => [
  14819. renderSlot(_ctx.$slots, "append")
  14820. ])
  14821. } : void 0,
  14822. _ctx.$slots.prefix ? {
  14823. name: "prefix",
  14824. fn: withCtx(() => [
  14825. renderSlot(_ctx.$slots, "prefix")
  14826. ])
  14827. } : void 0,
  14828. _ctx.$slots.suffix ? {
  14829. name: "suffix",
  14830. fn: withCtx(() => [
  14831. renderSlot(_ctx.$slots, "suffix")
  14832. ])
  14833. } : void 0
  14834. ]), 1040, ["model-value", "disabled"])
  14835. ], 14, ["aria-expanded", "aria-owns"])
  14836. ]),
  14837. _: 3
  14838. }, 8, ["visible", "placement", "popper-class", "popper-style", "teleported", "append-to", "transition"]);
  14839. };
  14840. }
  14841. });
  14842. var Autocomplete = _export_sfc(_sfc_main17, [["__file", "autocomplete.vue"]]);
  14843. // node_modules/element-plus/es/components/autocomplete/index.mjs
  14844. var ElAutocomplete = withInstall(Autocomplete);
  14845. // node_modules/element-plus/es/components/avatar/src/avatar.mjs
  14846. var avatarProps = buildProps({
  14847. size: {
  14848. type: [Number, String],
  14849. values: componentSizes,
  14850. default: "",
  14851. validator: (val) => isNumber2(val)
  14852. },
  14853. shape: {
  14854. type: String,
  14855. values: ["circle", "square"],
  14856. default: "circle"
  14857. },
  14858. icon: {
  14859. type: iconPropType
  14860. },
  14861. src: {
  14862. type: String,
  14863. default: ""
  14864. },
  14865. alt: String,
  14866. srcSet: String,
  14867. fit: {
  14868. type: definePropType(String),
  14869. default: "cover"
  14870. }
  14871. });
  14872. var avatarEmits = {
  14873. error: (evt) => evt instanceof Event
  14874. };
  14875. // node_modules/element-plus/es/components/avatar/src/avatar2.mjs
  14876. var __default__14 = defineComponent({
  14877. name: "ElAvatar"
  14878. });
  14879. var _sfc_main18 = defineComponent({
  14880. ...__default__14,
  14881. props: avatarProps,
  14882. emits: avatarEmits,
  14883. setup(__props, { emit }) {
  14884. const props2 = __props;
  14885. const ns = useNamespace("avatar");
  14886. const hasLoadError = ref(false);
  14887. const avatarClass = computed(() => {
  14888. const { size: size3, icon, shape } = props2;
  14889. const classList = [ns.b()];
  14890. if (isString(size3))
  14891. classList.push(ns.m(size3));
  14892. if (icon)
  14893. classList.push(ns.m("icon"));
  14894. if (shape)
  14895. classList.push(ns.m(shape));
  14896. return classList;
  14897. });
  14898. const sizeStyle = computed(() => {
  14899. const { size: size3 } = props2;
  14900. return isNumber2(size3) ? ns.cssVarBlock({
  14901. size: addUnit(size3) || ""
  14902. }) : void 0;
  14903. });
  14904. const fitStyle = computed(() => ({
  14905. objectFit: props2.fit
  14906. }));
  14907. watch(() => props2.src, () => hasLoadError.value = false);
  14908. function handleError(e) {
  14909. hasLoadError.value = true;
  14910. emit("error", e);
  14911. }
  14912. return (_ctx, _cache) => {
  14913. return openBlock(), createElementBlock("span", {
  14914. class: normalizeClass(unref(avatarClass)),
  14915. style: normalizeStyle(unref(sizeStyle))
  14916. }, [
  14917. (_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (openBlock(), createElementBlock("img", {
  14918. key: 0,
  14919. src: _ctx.src,
  14920. alt: _ctx.alt,
  14921. srcset: _ctx.srcSet,
  14922. style: normalizeStyle(unref(fitStyle)),
  14923. onError: handleError
  14924. }, null, 44, ["src", "alt", "srcset"])) : _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
  14925. default: withCtx(() => [
  14926. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  14927. ]),
  14928. _: 1
  14929. })) : renderSlot(_ctx.$slots, "default", { key: 2 })
  14930. ], 6);
  14931. };
  14932. }
  14933. });
  14934. var Avatar = _export_sfc(_sfc_main18, [["__file", "avatar.vue"]]);
  14935. // node_modules/element-plus/es/components/avatar/index.mjs
  14936. var ElAvatar = withInstall(Avatar);
  14937. // node_modules/element-plus/es/components/backtop/src/backtop.mjs
  14938. var backtopProps = {
  14939. visibilityHeight: {
  14940. type: Number,
  14941. default: 200
  14942. },
  14943. target: {
  14944. type: String,
  14945. default: ""
  14946. },
  14947. right: {
  14948. type: Number,
  14949. default: 40
  14950. },
  14951. bottom: {
  14952. type: Number,
  14953. default: 40
  14954. }
  14955. };
  14956. var backtopEmits = {
  14957. click: (evt) => evt instanceof MouseEvent
  14958. };
  14959. // node_modules/element-plus/es/components/backtop/src/use-backtop.mjs
  14960. var useBackTop = (props2, emit, componentName2) => {
  14961. const el = shallowRef();
  14962. const container = shallowRef();
  14963. const visible = ref(false);
  14964. const handleScroll2 = () => {
  14965. if (el.value)
  14966. visible.value = el.value.scrollTop >= props2.visibilityHeight;
  14967. };
  14968. const handleClick = (event) => {
  14969. var _a2;
  14970. (_a2 = el.value) == null ? void 0 : _a2.scrollTo({ top: 0, behavior: "smooth" });
  14971. emit("click", event);
  14972. };
  14973. const handleScrollThrottled = useThrottleFn(handleScroll2, 300, true);
  14974. useEventListener(container, "scroll", handleScrollThrottled);
  14975. onMounted(() => {
  14976. var _a2;
  14977. container.value = document;
  14978. el.value = document.documentElement;
  14979. if (props2.target) {
  14980. el.value = (_a2 = document.querySelector(props2.target)) != null ? _a2 : void 0;
  14981. if (!el.value) {
  14982. throwError(componentName2, `target does not exist: ${props2.target}`);
  14983. }
  14984. container.value = el.value;
  14985. }
  14986. handleScroll2();
  14987. });
  14988. return {
  14989. visible,
  14990. handleClick
  14991. };
  14992. };
  14993. // node_modules/element-plus/es/components/backtop/src/backtop2.mjs
  14994. var COMPONENT_NAME6 = "ElBacktop";
  14995. var __default__15 = defineComponent({
  14996. name: COMPONENT_NAME6
  14997. });
  14998. var _sfc_main19 = defineComponent({
  14999. ...__default__15,
  15000. props: backtopProps,
  15001. emits: backtopEmits,
  15002. setup(__props, { emit }) {
  15003. const props2 = __props;
  15004. const ns = useNamespace("backtop");
  15005. const { handleClick, visible } = useBackTop(props2, emit, COMPONENT_NAME6);
  15006. const backTopStyle = computed(() => ({
  15007. right: `${props2.right}px`,
  15008. bottom: `${props2.bottom}px`
  15009. }));
  15010. return (_ctx, _cache) => {
  15011. return openBlock(), createBlock(Transition, {
  15012. name: `${unref(ns).namespace.value}-fade-in`
  15013. }, {
  15014. default: withCtx(() => [
  15015. unref(visible) ? (openBlock(), createElementBlock("div", {
  15016. key: 0,
  15017. style: normalizeStyle(unref(backTopStyle)),
  15018. class: normalizeClass(unref(ns).b()),
  15019. onClick: withModifiers(unref(handleClick), ["stop"])
  15020. }, [
  15021. renderSlot(_ctx.$slots, "default", {}, () => [
  15022. createVNode(unref(ElIcon), {
  15023. class: normalizeClass(unref(ns).e("icon"))
  15024. }, {
  15025. default: withCtx(() => [
  15026. createVNode(unref(caret_top_default))
  15027. ]),
  15028. _: 1
  15029. }, 8, ["class"])
  15030. ])
  15031. ], 14, ["onClick"])) : createCommentVNode("v-if", true)
  15032. ]),
  15033. _: 3
  15034. }, 8, ["name"]);
  15035. };
  15036. }
  15037. });
  15038. var Backtop = _export_sfc(_sfc_main19, [["__file", "backtop.vue"]]);
  15039. // node_modules/element-plus/es/components/backtop/index.mjs
  15040. var ElBacktop = withInstall(Backtop);
  15041. // node_modules/element-plus/es/components/badge/src/badge.mjs
  15042. var badgeProps = buildProps({
  15043. value: {
  15044. type: [String, Number],
  15045. default: ""
  15046. },
  15047. max: {
  15048. type: Number,
  15049. default: 99
  15050. },
  15051. isDot: Boolean,
  15052. hidden: Boolean,
  15053. type: {
  15054. type: String,
  15055. values: ["primary", "success", "warning", "info", "danger"],
  15056. default: "danger"
  15057. },
  15058. showZero: {
  15059. type: Boolean,
  15060. default: true
  15061. },
  15062. color: String,
  15063. badgeStyle: {
  15064. type: definePropType([String, Object, Array])
  15065. },
  15066. offset: {
  15067. type: definePropType(Array),
  15068. default: [0, 0]
  15069. },
  15070. badgeClass: {
  15071. type: String
  15072. }
  15073. });
  15074. // node_modules/element-plus/es/components/badge/src/badge2.mjs
  15075. var __default__16 = defineComponent({
  15076. name: "ElBadge"
  15077. });
  15078. var _sfc_main20 = defineComponent({
  15079. ...__default__16,
  15080. props: badgeProps,
  15081. setup(__props, { expose }) {
  15082. const props2 = __props;
  15083. const ns = useNamespace("badge");
  15084. const content = computed(() => {
  15085. if (props2.isDot)
  15086. return "";
  15087. if (isNumber2(props2.value) && isNumber2(props2.max)) {
  15088. return props2.max < props2.value ? `${props2.max}+` : `${props2.value}`;
  15089. }
  15090. return `${props2.value}`;
  15091. });
  15092. const style = computed(() => {
  15093. var _a2, _b, _c, _d, _e;
  15094. return [
  15095. {
  15096. backgroundColor: props2.color,
  15097. marginRight: addUnit(-((_b = (_a2 = props2.offset) == null ? void 0 : _a2[0]) != null ? _b : 0)),
  15098. marginTop: addUnit((_d = (_c = props2.offset) == null ? void 0 : _c[1]) != null ? _d : 0)
  15099. },
  15100. (_e = props2.badgeStyle) != null ? _e : {}
  15101. ];
  15102. });
  15103. expose({
  15104. content
  15105. });
  15106. return (_ctx, _cache) => {
  15107. return openBlock(), createElementBlock("div", {
  15108. class: normalizeClass(unref(ns).b())
  15109. }, [
  15110. renderSlot(_ctx.$slots, "default"),
  15111. createVNode(Transition, {
  15112. name: `${unref(ns).namespace.value}-zoom-in-center`,
  15113. persisted: ""
  15114. }, {
  15115. default: withCtx(() => [
  15116. withDirectives(createBaseVNode("sup", {
  15117. class: normalizeClass([
  15118. unref(ns).e("content"),
  15119. unref(ns).em("content", _ctx.type),
  15120. unref(ns).is("fixed", !!_ctx.$slots.default),
  15121. unref(ns).is("dot", _ctx.isDot),
  15122. unref(ns).is("hide-zero", !_ctx.showZero && _ctx.value === 0),
  15123. _ctx.badgeClass
  15124. ]),
  15125. style: normalizeStyle(unref(style))
  15126. }, [
  15127. renderSlot(_ctx.$slots, "content", { value: unref(content) }, () => [
  15128. createTextVNode(toDisplayString(unref(content)), 1)
  15129. ])
  15130. ], 6), [
  15131. [vShow, !_ctx.hidden && (unref(content) || _ctx.isDot || _ctx.$slots.content)]
  15132. ])
  15133. ]),
  15134. _: 3
  15135. }, 8, ["name"])
  15136. ], 2);
  15137. };
  15138. }
  15139. });
  15140. var Badge = _export_sfc(_sfc_main20, [["__file", "badge.vue"]]);
  15141. // node_modules/element-plus/es/components/badge/index.mjs
  15142. var ElBadge = withInstall(Badge);
  15143. // node_modules/element-plus/es/components/breadcrumb/src/constants.mjs
  15144. var breadcrumbKey = Symbol("breadcrumbKey");
  15145. // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb2.mjs
  15146. var breadcrumbProps = buildProps({
  15147. separator: {
  15148. type: String,
  15149. default: "/"
  15150. },
  15151. separatorIcon: {
  15152. type: iconPropType
  15153. }
  15154. });
  15155. // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb.mjs
  15156. var __default__17 = defineComponent({
  15157. name: "ElBreadcrumb"
  15158. });
  15159. var _sfc_main21 = defineComponent({
  15160. ...__default__17,
  15161. props: breadcrumbProps,
  15162. setup(__props) {
  15163. const props2 = __props;
  15164. const { t } = useLocale();
  15165. const ns = useNamespace("breadcrumb");
  15166. const breadcrumb = ref();
  15167. provide(breadcrumbKey, props2);
  15168. onMounted(() => {
  15169. const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
  15170. if (items.length) {
  15171. items[items.length - 1].setAttribute("aria-current", "page");
  15172. }
  15173. });
  15174. return (_ctx, _cache) => {
  15175. return openBlock(), createElementBlock("div", {
  15176. ref_key: "breadcrumb",
  15177. ref: breadcrumb,
  15178. class: normalizeClass(unref(ns).b()),
  15179. "aria-label": unref(t)("el.breadcrumb.label"),
  15180. role: "navigation"
  15181. }, [
  15182. renderSlot(_ctx.$slots, "default")
  15183. ], 10, ["aria-label"]);
  15184. };
  15185. }
  15186. });
  15187. var Breadcrumb = _export_sfc(_sfc_main21, [["__file", "breadcrumb.vue"]]);
  15188. // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item.mjs
  15189. var breadcrumbItemProps = buildProps({
  15190. to: {
  15191. type: definePropType([String, Object]),
  15192. default: ""
  15193. },
  15194. replace: Boolean
  15195. });
  15196. // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item2.mjs
  15197. var __default__18 = defineComponent({
  15198. name: "ElBreadcrumbItem"
  15199. });
  15200. var _sfc_main22 = defineComponent({
  15201. ...__default__18,
  15202. props: breadcrumbItemProps,
  15203. setup(__props) {
  15204. const props2 = __props;
  15205. const instance = getCurrentInstance();
  15206. const breadcrumbContext = inject(breadcrumbKey, void 0);
  15207. const ns = useNamespace("breadcrumb");
  15208. const router = instance.appContext.config.globalProperties.$router;
  15209. const link = ref();
  15210. const onClick = () => {
  15211. if (!props2.to || !router)
  15212. return;
  15213. props2.replace ? router.replace(props2.to) : router.push(props2.to);
  15214. };
  15215. return (_ctx, _cache) => {
  15216. var _a2, _b;
  15217. return openBlock(), createElementBlock("span", {
  15218. class: normalizeClass(unref(ns).e("item"))
  15219. }, [
  15220. createBaseVNode("span", {
  15221. ref_key: "link",
  15222. ref: link,
  15223. class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
  15224. role: "link",
  15225. onClick
  15226. }, [
  15227. renderSlot(_ctx.$slots, "default")
  15228. ], 2),
  15229. ((_a2 = unref(breadcrumbContext)) == null ? void 0 : _a2.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
  15230. key: 0,
  15231. class: normalizeClass(unref(ns).e("separator"))
  15232. }, {
  15233. default: withCtx(() => [
  15234. (openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
  15235. ]),
  15236. _: 1
  15237. }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
  15238. key: 1,
  15239. class: normalizeClass(unref(ns).e("separator")),
  15240. role: "presentation"
  15241. }, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
  15242. ], 2);
  15243. };
  15244. }
  15245. });
  15246. var BreadcrumbItem = _export_sfc(_sfc_main22, [["__file", "breadcrumb-item.vue"]]);
  15247. // node_modules/element-plus/es/components/breadcrumb/index.mjs
  15248. var ElBreadcrumb = withInstall(Breadcrumb, {
  15249. BreadcrumbItem
  15250. });
  15251. var ElBreadcrumbItem = withNoopInstall(BreadcrumbItem);
  15252. // node_modules/element-plus/es/components/button/src/constants.mjs
  15253. var buttonGroupContextKey = Symbol("buttonGroupContextKey");
  15254. // node_modules/element-plus/es/hooks/use-deprecated/index.mjs
  15255. var useDeprecated = ({ from, replacement, scope, version: version4, ref: ref2, type: type4 = "API" }, condition) => {
  15256. watch(() => unref(condition), (val) => {
  15257. if (val) {
  15258. debugWarn(scope, `[${type4}] ${from} is about to be deprecated in version ${version4}, please use ${replacement} instead.
  15259. For more detail, please visit: ${ref2}
  15260. `);
  15261. }
  15262. }, {
  15263. immediate: true
  15264. });
  15265. };
  15266. // node_modules/element-plus/es/components/button/src/use-button.mjs
  15267. var useButton = (props2, emit) => {
  15268. useDeprecated({
  15269. from: "type.text",
  15270. replacement: "link",
  15271. version: "3.0.0",
  15272. scope: "props",
  15273. ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
  15274. }, computed(() => props2.type === "text"));
  15275. const buttonGroupContext = inject(buttonGroupContextKey, void 0);
  15276. const globalConfig2 = useGlobalConfig("button");
  15277. const { form } = useFormItem();
  15278. const _size = useFormSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
  15279. const _disabled = useFormDisabled();
  15280. const _ref = ref();
  15281. const slots = useSlots();
  15282. const _type = computed(() => {
  15283. var _a2;
  15284. return props2.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || ((_a2 = globalConfig2.value) == null ? void 0 : _a2.type) || "";
  15285. });
  15286. const autoInsertSpace = computed(() => {
  15287. var _a2, _b, _c;
  15288. return (_c = (_b = props2.autoInsertSpace) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.autoInsertSpace) != null ? _c : false;
  15289. });
  15290. const _plain = computed(() => {
  15291. var _a2, _b, _c;
  15292. return (_c = (_b = props2.plain) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.plain) != null ? _c : false;
  15293. });
  15294. const _round = computed(() => {
  15295. var _a2, _b, _c;
  15296. return (_c = (_b = props2.round) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.round) != null ? _c : false;
  15297. });
  15298. const _text = computed(() => {
  15299. var _a2, _b, _c;
  15300. return (_c = (_b = props2.text) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.text) != null ? _c : false;
  15301. });
  15302. const _props = computed(() => {
  15303. if (props2.tag === "button") {
  15304. return {
  15305. ariaDisabled: _disabled.value || props2.loading,
  15306. disabled: _disabled.value || props2.loading,
  15307. autofocus: props2.autofocus,
  15308. type: props2.nativeType
  15309. };
  15310. }
  15311. return {};
  15312. });
  15313. const shouldAddSpace = computed(() => {
  15314. var _a2;
  15315. const defaultSlot = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
  15316. if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
  15317. const slot = defaultSlot[0];
  15318. if ((slot == null ? void 0 : slot.type) === Text) {
  15319. const text = slot.children;
  15320. return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(text.trim());
  15321. }
  15322. }
  15323. return false;
  15324. });
  15325. const handleClick = (evt) => {
  15326. if (_disabled.value || props2.loading) {
  15327. evt.stopPropagation();
  15328. return;
  15329. }
  15330. if (props2.nativeType === "reset") {
  15331. form == null ? void 0 : form.resetFields();
  15332. }
  15333. emit("click", evt);
  15334. };
  15335. return {
  15336. _disabled,
  15337. _size,
  15338. _type,
  15339. _ref,
  15340. _props,
  15341. _plain,
  15342. _round,
  15343. _text,
  15344. shouldAddSpace,
  15345. handleClick
  15346. };
  15347. };
  15348. // node_modules/element-plus/es/components/button/src/button.mjs
  15349. var buttonTypes = [
  15350. "default",
  15351. "primary",
  15352. "success",
  15353. "warning",
  15354. "info",
  15355. "danger",
  15356. "text",
  15357. ""
  15358. ];
  15359. var buttonNativeTypes = ["button", "submit", "reset"];
  15360. var buttonProps = buildProps({
  15361. size: useSizeProp,
  15362. disabled: Boolean,
  15363. type: {
  15364. type: String,
  15365. values: buttonTypes,
  15366. default: ""
  15367. },
  15368. icon: {
  15369. type: iconPropType
  15370. },
  15371. nativeType: {
  15372. type: String,
  15373. values: buttonNativeTypes,
  15374. default: "button"
  15375. },
  15376. loading: Boolean,
  15377. loadingIcon: {
  15378. type: iconPropType,
  15379. default: () => loading_default
  15380. },
  15381. plain: {
  15382. type: Boolean,
  15383. default: void 0
  15384. },
  15385. text: {
  15386. type: Boolean,
  15387. default: void 0
  15388. },
  15389. link: Boolean,
  15390. bg: Boolean,
  15391. autofocus: Boolean,
  15392. round: {
  15393. type: Boolean,
  15394. default: void 0
  15395. },
  15396. circle: Boolean,
  15397. color: String,
  15398. dark: Boolean,
  15399. autoInsertSpace: {
  15400. type: Boolean,
  15401. default: void 0
  15402. },
  15403. tag: {
  15404. type: definePropType([String, Object]),
  15405. default: "button"
  15406. }
  15407. });
  15408. var buttonEmits = {
  15409. click: (evt) => evt instanceof MouseEvent
  15410. };
  15411. // node_modules/@ctrl/tinycolor/dist/module/util.js
  15412. function bound01(n, max4) {
  15413. if (isOnePointZero(n)) {
  15414. n = "100%";
  15415. }
  15416. var isPercent = isPercentage(n);
  15417. n = max4 === 360 ? n : Math.min(max4, Math.max(0, parseFloat(n)));
  15418. if (isPercent) {
  15419. n = parseInt(String(n * max4), 10) / 100;
  15420. }
  15421. if (Math.abs(n - max4) < 1e-6) {
  15422. return 1;
  15423. }
  15424. if (max4 === 360) {
  15425. n = (n < 0 ? n % max4 + max4 : n % max4) / parseFloat(String(max4));
  15426. } else {
  15427. n = n % max4 / parseFloat(String(max4));
  15428. }
  15429. return n;
  15430. }
  15431. function clamp01(val) {
  15432. return Math.min(1, Math.max(0, val));
  15433. }
  15434. function isOnePointZero(n) {
  15435. return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
  15436. }
  15437. function isPercentage(n) {
  15438. return typeof n === "string" && n.indexOf("%") !== -1;
  15439. }
  15440. function boundAlpha(a2) {
  15441. a2 = parseFloat(a2);
  15442. if (isNaN(a2) || a2 < 0 || a2 > 1) {
  15443. a2 = 1;
  15444. }
  15445. return a2;
  15446. }
  15447. function convertToPercentage(n) {
  15448. if (n <= 1) {
  15449. return "".concat(Number(n) * 100, "%");
  15450. }
  15451. return n;
  15452. }
  15453. function pad2(c2) {
  15454. return c2.length === 1 ? "0" + c2 : String(c2);
  15455. }
  15456. // node_modules/@ctrl/tinycolor/dist/module/conversion.js
  15457. function rgbToRgb(r, g, b2) {
  15458. return {
  15459. r: bound01(r, 255) * 255,
  15460. g: bound01(g, 255) * 255,
  15461. b: bound01(b2, 255) * 255
  15462. };
  15463. }
  15464. function rgbToHsl(r, g, b2) {
  15465. r = bound01(r, 255);
  15466. g = bound01(g, 255);
  15467. b2 = bound01(b2, 255);
  15468. var max4 = Math.max(r, g, b2);
  15469. var min4 = Math.min(r, g, b2);
  15470. var h3 = 0;
  15471. var s2 = 0;
  15472. var l2 = (max4 + min4) / 2;
  15473. if (max4 === min4) {
  15474. s2 = 0;
  15475. h3 = 0;
  15476. } else {
  15477. var d2 = max4 - min4;
  15478. s2 = l2 > 0.5 ? d2 / (2 - max4 - min4) : d2 / (max4 + min4);
  15479. switch (max4) {
  15480. case r:
  15481. h3 = (g - b2) / d2 + (g < b2 ? 6 : 0);
  15482. break;
  15483. case g:
  15484. h3 = (b2 - r) / d2 + 2;
  15485. break;
  15486. case b2:
  15487. h3 = (r - g) / d2 + 4;
  15488. break;
  15489. default:
  15490. break;
  15491. }
  15492. h3 /= 6;
  15493. }
  15494. return { h: h3, s: s2, l: l2 };
  15495. }
  15496. function hue2rgb(p2, q2, t) {
  15497. if (t < 0) {
  15498. t += 1;
  15499. }
  15500. if (t > 1) {
  15501. t -= 1;
  15502. }
  15503. if (t < 1 / 6) {
  15504. return p2 + (q2 - p2) * (6 * t);
  15505. }
  15506. if (t < 1 / 2) {
  15507. return q2;
  15508. }
  15509. if (t < 2 / 3) {
  15510. return p2 + (q2 - p2) * (2 / 3 - t) * 6;
  15511. }
  15512. return p2;
  15513. }
  15514. function hslToRgb(h3, s2, l2) {
  15515. var r;
  15516. var g;
  15517. var b2;
  15518. h3 = bound01(h3, 360);
  15519. s2 = bound01(s2, 100);
  15520. l2 = bound01(l2, 100);
  15521. if (s2 === 0) {
  15522. g = l2;
  15523. b2 = l2;
  15524. r = l2;
  15525. } else {
  15526. var q2 = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2;
  15527. var p2 = 2 * l2 - q2;
  15528. r = hue2rgb(p2, q2, h3 + 1 / 3);
  15529. g = hue2rgb(p2, q2, h3);
  15530. b2 = hue2rgb(p2, q2, h3 - 1 / 3);
  15531. }
  15532. return { r: r * 255, g: g * 255, b: b2 * 255 };
  15533. }
  15534. function rgbToHsv(r, g, b2) {
  15535. r = bound01(r, 255);
  15536. g = bound01(g, 255);
  15537. b2 = bound01(b2, 255);
  15538. var max4 = Math.max(r, g, b2);
  15539. var min4 = Math.min(r, g, b2);
  15540. var h3 = 0;
  15541. var v2 = max4;
  15542. var d2 = max4 - min4;
  15543. var s2 = max4 === 0 ? 0 : d2 / max4;
  15544. if (max4 === min4) {
  15545. h3 = 0;
  15546. } else {
  15547. switch (max4) {
  15548. case r:
  15549. h3 = (g - b2) / d2 + (g < b2 ? 6 : 0);
  15550. break;
  15551. case g:
  15552. h3 = (b2 - r) / d2 + 2;
  15553. break;
  15554. case b2:
  15555. h3 = (r - g) / d2 + 4;
  15556. break;
  15557. default:
  15558. break;
  15559. }
  15560. h3 /= 6;
  15561. }
  15562. return { h: h3, s: s2, v: v2 };
  15563. }
  15564. function hsvToRgb(h3, s2, v2) {
  15565. h3 = bound01(h3, 360) * 6;
  15566. s2 = bound01(s2, 100);
  15567. v2 = bound01(v2, 100);
  15568. var i = Math.floor(h3);
  15569. var f2 = h3 - i;
  15570. var p2 = v2 * (1 - s2);
  15571. var q2 = v2 * (1 - f2 * s2);
  15572. var t = v2 * (1 - (1 - f2) * s2);
  15573. var mod = i % 6;
  15574. var r = [v2, q2, p2, p2, t, v2][mod];
  15575. var g = [t, v2, v2, q2, p2, p2][mod];
  15576. var b2 = [p2, p2, t, v2, v2, q2][mod];
  15577. return { r: r * 255, g: g * 255, b: b2 * 255 };
  15578. }
  15579. function rgbToHex(r, g, b2, allow3Char) {
  15580. var hex2 = [
  15581. pad2(Math.round(r).toString(16)),
  15582. pad2(Math.round(g).toString(16)),
  15583. pad2(Math.round(b2).toString(16))
  15584. ];
  15585. if (allow3Char && hex2[0].startsWith(hex2[0].charAt(1)) && hex2[1].startsWith(hex2[1].charAt(1)) && hex2[2].startsWith(hex2[2].charAt(1))) {
  15586. return hex2[0].charAt(0) + hex2[1].charAt(0) + hex2[2].charAt(0);
  15587. }
  15588. return hex2.join("");
  15589. }
  15590. function rgbaToHex(r, g, b2, a2, allow4Char) {
  15591. var hex2 = [
  15592. pad2(Math.round(r).toString(16)),
  15593. pad2(Math.round(g).toString(16)),
  15594. pad2(Math.round(b2).toString(16)),
  15595. pad2(convertDecimalToHex(a2))
  15596. ];
  15597. if (allow4Char && hex2[0].startsWith(hex2[0].charAt(1)) && hex2[1].startsWith(hex2[1].charAt(1)) && hex2[2].startsWith(hex2[2].charAt(1)) && hex2[3].startsWith(hex2[3].charAt(1))) {
  15598. return hex2[0].charAt(0) + hex2[1].charAt(0) + hex2[2].charAt(0) + hex2[3].charAt(0);
  15599. }
  15600. return hex2.join("");
  15601. }
  15602. function convertDecimalToHex(d2) {
  15603. return Math.round(parseFloat(d2) * 255).toString(16);
  15604. }
  15605. function convertHexToDecimal(h3) {
  15606. return parseIntFromHex(h3) / 255;
  15607. }
  15608. function parseIntFromHex(val) {
  15609. return parseInt(val, 16);
  15610. }
  15611. function numberInputToObject(color) {
  15612. return {
  15613. r: color >> 16,
  15614. g: (color & 65280) >> 8,
  15615. b: color & 255
  15616. };
  15617. }
  15618. // node_modules/@ctrl/tinycolor/dist/module/css-color-names.js
  15619. var names = {
  15620. aliceblue: "#f0f8ff",
  15621. antiquewhite: "#faebd7",
  15622. aqua: "#00ffff",
  15623. aquamarine: "#7fffd4",
  15624. azure: "#f0ffff",
  15625. beige: "#f5f5dc",
  15626. bisque: "#ffe4c4",
  15627. black: "#000000",
  15628. blanchedalmond: "#ffebcd",
  15629. blue: "#0000ff",
  15630. blueviolet: "#8a2be2",
  15631. brown: "#a52a2a",
  15632. burlywood: "#deb887",
  15633. cadetblue: "#5f9ea0",
  15634. chartreuse: "#7fff00",
  15635. chocolate: "#d2691e",
  15636. coral: "#ff7f50",
  15637. cornflowerblue: "#6495ed",
  15638. cornsilk: "#fff8dc",
  15639. crimson: "#dc143c",
  15640. cyan: "#00ffff",
  15641. darkblue: "#00008b",
  15642. darkcyan: "#008b8b",
  15643. darkgoldenrod: "#b8860b",
  15644. darkgray: "#a9a9a9",
  15645. darkgreen: "#006400",
  15646. darkgrey: "#a9a9a9",
  15647. darkkhaki: "#bdb76b",
  15648. darkmagenta: "#8b008b",
  15649. darkolivegreen: "#556b2f",
  15650. darkorange: "#ff8c00",
  15651. darkorchid: "#9932cc",
  15652. darkred: "#8b0000",
  15653. darksalmon: "#e9967a",
  15654. darkseagreen: "#8fbc8f",
  15655. darkslateblue: "#483d8b",
  15656. darkslategray: "#2f4f4f",
  15657. darkslategrey: "#2f4f4f",
  15658. darkturquoise: "#00ced1",
  15659. darkviolet: "#9400d3",
  15660. deeppink: "#ff1493",
  15661. deepskyblue: "#00bfff",
  15662. dimgray: "#696969",
  15663. dimgrey: "#696969",
  15664. dodgerblue: "#1e90ff",
  15665. firebrick: "#b22222",
  15666. floralwhite: "#fffaf0",
  15667. forestgreen: "#228b22",
  15668. fuchsia: "#ff00ff",
  15669. gainsboro: "#dcdcdc",
  15670. ghostwhite: "#f8f8ff",
  15671. goldenrod: "#daa520",
  15672. gold: "#ffd700",
  15673. gray: "#808080",
  15674. green: "#008000",
  15675. greenyellow: "#adff2f",
  15676. grey: "#808080",
  15677. honeydew: "#f0fff0",
  15678. hotpink: "#ff69b4",
  15679. indianred: "#cd5c5c",
  15680. indigo: "#4b0082",
  15681. ivory: "#fffff0",
  15682. khaki: "#f0e68c",
  15683. lavenderblush: "#fff0f5",
  15684. lavender: "#e6e6fa",
  15685. lawngreen: "#7cfc00",
  15686. lemonchiffon: "#fffacd",
  15687. lightblue: "#add8e6",
  15688. lightcoral: "#f08080",
  15689. lightcyan: "#e0ffff",
  15690. lightgoldenrodyellow: "#fafad2",
  15691. lightgray: "#d3d3d3",
  15692. lightgreen: "#90ee90",
  15693. lightgrey: "#d3d3d3",
  15694. lightpink: "#ffb6c1",
  15695. lightsalmon: "#ffa07a",
  15696. lightseagreen: "#20b2aa",
  15697. lightskyblue: "#87cefa",
  15698. lightslategray: "#778899",
  15699. lightslategrey: "#778899",
  15700. lightsteelblue: "#b0c4de",
  15701. lightyellow: "#ffffe0",
  15702. lime: "#00ff00",
  15703. limegreen: "#32cd32",
  15704. linen: "#faf0e6",
  15705. magenta: "#ff00ff",
  15706. maroon: "#800000",
  15707. mediumaquamarine: "#66cdaa",
  15708. mediumblue: "#0000cd",
  15709. mediumorchid: "#ba55d3",
  15710. mediumpurple: "#9370db",
  15711. mediumseagreen: "#3cb371",
  15712. mediumslateblue: "#7b68ee",
  15713. mediumspringgreen: "#00fa9a",
  15714. mediumturquoise: "#48d1cc",
  15715. mediumvioletred: "#c71585",
  15716. midnightblue: "#191970",
  15717. mintcream: "#f5fffa",
  15718. mistyrose: "#ffe4e1",
  15719. moccasin: "#ffe4b5",
  15720. navajowhite: "#ffdead",
  15721. navy: "#000080",
  15722. oldlace: "#fdf5e6",
  15723. olive: "#808000",
  15724. olivedrab: "#6b8e23",
  15725. orange: "#ffa500",
  15726. orangered: "#ff4500",
  15727. orchid: "#da70d6",
  15728. palegoldenrod: "#eee8aa",
  15729. palegreen: "#98fb98",
  15730. paleturquoise: "#afeeee",
  15731. palevioletred: "#db7093",
  15732. papayawhip: "#ffefd5",
  15733. peachpuff: "#ffdab9",
  15734. peru: "#cd853f",
  15735. pink: "#ffc0cb",
  15736. plum: "#dda0dd",
  15737. powderblue: "#b0e0e6",
  15738. purple: "#800080",
  15739. rebeccapurple: "#663399",
  15740. red: "#ff0000",
  15741. rosybrown: "#bc8f8f",
  15742. royalblue: "#4169e1",
  15743. saddlebrown: "#8b4513",
  15744. salmon: "#fa8072",
  15745. sandybrown: "#f4a460",
  15746. seagreen: "#2e8b57",
  15747. seashell: "#fff5ee",
  15748. sienna: "#a0522d",
  15749. silver: "#c0c0c0",
  15750. skyblue: "#87ceeb",
  15751. slateblue: "#6a5acd",
  15752. slategray: "#708090",
  15753. slategrey: "#708090",
  15754. snow: "#fffafa",
  15755. springgreen: "#00ff7f",
  15756. steelblue: "#4682b4",
  15757. tan: "#d2b48c",
  15758. teal: "#008080",
  15759. thistle: "#d8bfd8",
  15760. tomato: "#ff6347",
  15761. turquoise: "#40e0d0",
  15762. violet: "#ee82ee",
  15763. wheat: "#f5deb3",
  15764. white: "#ffffff",
  15765. whitesmoke: "#f5f5f5",
  15766. yellow: "#ffff00",
  15767. yellowgreen: "#9acd32"
  15768. };
  15769. // node_modules/@ctrl/tinycolor/dist/module/format-input.js
  15770. function inputToRGB(color) {
  15771. var rgb = { r: 0, g: 0, b: 0 };
  15772. var a2 = 1;
  15773. var s2 = null;
  15774. var v2 = null;
  15775. var l2 = null;
  15776. var ok = false;
  15777. var format2 = false;
  15778. if (typeof color === "string") {
  15779. color = stringInputToObject(color);
  15780. }
  15781. if (typeof color === "object") {
  15782. if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
  15783. rgb = rgbToRgb(color.r, color.g, color.b);
  15784. ok = true;
  15785. format2 = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
  15786. } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
  15787. s2 = convertToPercentage(color.s);
  15788. v2 = convertToPercentage(color.v);
  15789. rgb = hsvToRgb(color.h, s2, v2);
  15790. ok = true;
  15791. format2 = "hsv";
  15792. } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
  15793. s2 = convertToPercentage(color.s);
  15794. l2 = convertToPercentage(color.l);
  15795. rgb = hslToRgb(color.h, s2, l2);
  15796. ok = true;
  15797. format2 = "hsl";
  15798. }
  15799. if (Object.prototype.hasOwnProperty.call(color, "a")) {
  15800. a2 = color.a;
  15801. }
  15802. }
  15803. a2 = boundAlpha(a2);
  15804. return {
  15805. ok,
  15806. format: color.format || format2,
  15807. r: Math.min(255, Math.max(rgb.r, 0)),
  15808. g: Math.min(255, Math.max(rgb.g, 0)),
  15809. b: Math.min(255, Math.max(rgb.b, 0)),
  15810. a: a2
  15811. };
  15812. }
  15813. var CSS_INTEGER = "[-\\+]?\\d+%?";
  15814. var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
  15815. var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
  15816. var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
  15817. var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
  15818. var matchers = {
  15819. CSS_UNIT: new RegExp(CSS_UNIT),
  15820. rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
  15821. rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
  15822. hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
  15823. hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
  15824. hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
  15825. hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
  15826. hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  15827. hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  15828. hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  15829. hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
  15830. };
  15831. function stringInputToObject(color) {
  15832. color = color.trim().toLowerCase();
  15833. if (color.length === 0) {
  15834. return false;
  15835. }
  15836. var named = false;
  15837. if (names[color]) {
  15838. color = names[color];
  15839. named = true;
  15840. } else if (color === "transparent") {
  15841. return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  15842. }
  15843. var match = matchers.rgb.exec(color);
  15844. if (match) {
  15845. return { r: match[1], g: match[2], b: match[3] };
  15846. }
  15847. match = matchers.rgba.exec(color);
  15848. if (match) {
  15849. return { r: match[1], g: match[2], b: match[3], a: match[4] };
  15850. }
  15851. match = matchers.hsl.exec(color);
  15852. if (match) {
  15853. return { h: match[1], s: match[2], l: match[3] };
  15854. }
  15855. match = matchers.hsla.exec(color);
  15856. if (match) {
  15857. return { h: match[1], s: match[2], l: match[3], a: match[4] };
  15858. }
  15859. match = matchers.hsv.exec(color);
  15860. if (match) {
  15861. return { h: match[1], s: match[2], v: match[3] };
  15862. }
  15863. match = matchers.hsva.exec(color);
  15864. if (match) {
  15865. return { h: match[1], s: match[2], v: match[3], a: match[4] };
  15866. }
  15867. match = matchers.hex8.exec(color);
  15868. if (match) {
  15869. return {
  15870. r: parseIntFromHex(match[1]),
  15871. g: parseIntFromHex(match[2]),
  15872. b: parseIntFromHex(match[3]),
  15873. a: convertHexToDecimal(match[4]),
  15874. format: named ? "name" : "hex8"
  15875. };
  15876. }
  15877. match = matchers.hex6.exec(color);
  15878. if (match) {
  15879. return {
  15880. r: parseIntFromHex(match[1]),
  15881. g: parseIntFromHex(match[2]),
  15882. b: parseIntFromHex(match[3]),
  15883. format: named ? "name" : "hex"
  15884. };
  15885. }
  15886. match = matchers.hex4.exec(color);
  15887. if (match) {
  15888. return {
  15889. r: parseIntFromHex(match[1] + match[1]),
  15890. g: parseIntFromHex(match[2] + match[2]),
  15891. b: parseIntFromHex(match[3] + match[3]),
  15892. a: convertHexToDecimal(match[4] + match[4]),
  15893. format: named ? "name" : "hex8"
  15894. };
  15895. }
  15896. match = matchers.hex3.exec(color);
  15897. if (match) {
  15898. return {
  15899. r: parseIntFromHex(match[1] + match[1]),
  15900. g: parseIntFromHex(match[2] + match[2]),
  15901. b: parseIntFromHex(match[3] + match[3]),
  15902. format: named ? "name" : "hex"
  15903. };
  15904. }
  15905. return false;
  15906. }
  15907. function isValidCSSUnit(color) {
  15908. return Boolean(matchers.CSS_UNIT.exec(String(color)));
  15909. }
  15910. // node_modules/@ctrl/tinycolor/dist/module/index.js
  15911. var TinyColor = (
  15912. /** @class */
  15913. function() {
  15914. function TinyColor2(color, opts) {
  15915. if (color === void 0) {
  15916. color = "";
  15917. }
  15918. if (opts === void 0) {
  15919. opts = {};
  15920. }
  15921. var _a2;
  15922. if (color instanceof TinyColor2) {
  15923. return color;
  15924. }
  15925. if (typeof color === "number") {
  15926. color = numberInputToObject(color);
  15927. }
  15928. this.originalInput = color;
  15929. var rgb = inputToRGB(color);
  15930. this.originalInput = color;
  15931. this.r = rgb.r;
  15932. this.g = rgb.g;
  15933. this.b = rgb.b;
  15934. this.a = rgb.a;
  15935. this.roundA = Math.round(100 * this.a) / 100;
  15936. this.format = (_a2 = opts.format) !== null && _a2 !== void 0 ? _a2 : rgb.format;
  15937. this.gradientType = opts.gradientType;
  15938. if (this.r < 1) {
  15939. this.r = Math.round(this.r);
  15940. }
  15941. if (this.g < 1) {
  15942. this.g = Math.round(this.g);
  15943. }
  15944. if (this.b < 1) {
  15945. this.b = Math.round(this.b);
  15946. }
  15947. this.isValid = rgb.ok;
  15948. }
  15949. TinyColor2.prototype.isDark = function() {
  15950. return this.getBrightness() < 128;
  15951. };
  15952. TinyColor2.prototype.isLight = function() {
  15953. return !this.isDark();
  15954. };
  15955. TinyColor2.prototype.getBrightness = function() {
  15956. var rgb = this.toRgb();
  15957. return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1e3;
  15958. };
  15959. TinyColor2.prototype.getLuminance = function() {
  15960. var rgb = this.toRgb();
  15961. var R2;
  15962. var G2;
  15963. var B2;
  15964. var RsRGB = rgb.r / 255;
  15965. var GsRGB = rgb.g / 255;
  15966. var BsRGB = rgb.b / 255;
  15967. if (RsRGB <= 0.03928) {
  15968. R2 = RsRGB / 12.92;
  15969. } else {
  15970. R2 = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
  15971. }
  15972. if (GsRGB <= 0.03928) {
  15973. G2 = GsRGB / 12.92;
  15974. } else {
  15975. G2 = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
  15976. }
  15977. if (BsRGB <= 0.03928) {
  15978. B2 = BsRGB / 12.92;
  15979. } else {
  15980. B2 = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
  15981. }
  15982. return 0.2126 * R2 + 0.7152 * G2 + 0.0722 * B2;
  15983. };
  15984. TinyColor2.prototype.getAlpha = function() {
  15985. return this.a;
  15986. };
  15987. TinyColor2.prototype.setAlpha = function(alpha) {
  15988. this.a = boundAlpha(alpha);
  15989. this.roundA = Math.round(100 * this.a) / 100;
  15990. return this;
  15991. };
  15992. TinyColor2.prototype.isMonochrome = function() {
  15993. var s2 = this.toHsl().s;
  15994. return s2 === 0;
  15995. };
  15996. TinyColor2.prototype.toHsv = function() {
  15997. var hsv = rgbToHsv(this.r, this.g, this.b);
  15998. return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };
  15999. };
  16000. TinyColor2.prototype.toHsvString = function() {
  16001. var hsv = rgbToHsv(this.r, this.g, this.b);
  16002. var h3 = Math.round(hsv.h * 360);
  16003. var s2 = Math.round(hsv.s * 100);
  16004. var v2 = Math.round(hsv.v * 100);
  16005. return this.a === 1 ? "hsv(".concat(h3, ", ").concat(s2, "%, ").concat(v2, "%)") : "hsva(".concat(h3, ", ").concat(s2, "%, ").concat(v2, "%, ").concat(this.roundA, ")");
  16006. };
  16007. TinyColor2.prototype.toHsl = function() {
  16008. var hsl = rgbToHsl(this.r, this.g, this.b);
  16009. return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };
  16010. };
  16011. TinyColor2.prototype.toHslString = function() {
  16012. var hsl = rgbToHsl(this.r, this.g, this.b);
  16013. var h3 = Math.round(hsl.h * 360);
  16014. var s2 = Math.round(hsl.s * 100);
  16015. var l2 = Math.round(hsl.l * 100);
  16016. return this.a === 1 ? "hsl(".concat(h3, ", ").concat(s2, "%, ").concat(l2, "%)") : "hsla(".concat(h3, ", ").concat(s2, "%, ").concat(l2, "%, ").concat(this.roundA, ")");
  16017. };
  16018. TinyColor2.prototype.toHex = function(allow3Char) {
  16019. if (allow3Char === void 0) {
  16020. allow3Char = false;
  16021. }
  16022. return rgbToHex(this.r, this.g, this.b, allow3Char);
  16023. };
  16024. TinyColor2.prototype.toHexString = function(allow3Char) {
  16025. if (allow3Char === void 0) {
  16026. allow3Char = false;
  16027. }
  16028. return "#" + this.toHex(allow3Char);
  16029. };
  16030. TinyColor2.prototype.toHex8 = function(allow4Char) {
  16031. if (allow4Char === void 0) {
  16032. allow4Char = false;
  16033. }
  16034. return rgbaToHex(this.r, this.g, this.b, this.a, allow4Char);
  16035. };
  16036. TinyColor2.prototype.toHex8String = function(allow4Char) {
  16037. if (allow4Char === void 0) {
  16038. allow4Char = false;
  16039. }
  16040. return "#" + this.toHex8(allow4Char);
  16041. };
  16042. TinyColor2.prototype.toHexShortString = function(allowShortChar) {
  16043. if (allowShortChar === void 0) {
  16044. allowShortChar = false;
  16045. }
  16046. return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar);
  16047. };
  16048. TinyColor2.prototype.toRgb = function() {
  16049. return {
  16050. r: Math.round(this.r),
  16051. g: Math.round(this.g),
  16052. b: Math.round(this.b),
  16053. a: this.a
  16054. };
  16055. };
  16056. TinyColor2.prototype.toRgbString = function() {
  16057. var r = Math.round(this.r);
  16058. var g = Math.round(this.g);
  16059. var b2 = Math.round(this.b);
  16060. return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b2, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b2, ", ").concat(this.roundA, ")");
  16061. };
  16062. TinyColor2.prototype.toPercentageRgb = function() {
  16063. var fmt = function(x2) {
  16064. return "".concat(Math.round(bound01(x2, 255) * 100), "%");
  16065. };
  16066. return {
  16067. r: fmt(this.r),
  16068. g: fmt(this.g),
  16069. b: fmt(this.b),
  16070. a: this.a
  16071. };
  16072. };
  16073. TinyColor2.prototype.toPercentageRgbString = function() {
  16074. var rnd = function(x2) {
  16075. return Math.round(bound01(x2, 255) * 100);
  16076. };
  16077. 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, ")");
  16078. };
  16079. TinyColor2.prototype.toName = function() {
  16080. if (this.a === 0) {
  16081. return "transparent";
  16082. }
  16083. if (this.a < 1) {
  16084. return false;
  16085. }
  16086. var hex2 = "#" + rgbToHex(this.r, this.g, this.b, false);
  16087. for (var _i = 0, _a2 = Object.entries(names); _i < _a2.length; _i++) {
  16088. var _b = _a2[_i], key = _b[0], value = _b[1];
  16089. if (hex2 === value) {
  16090. return key;
  16091. }
  16092. }
  16093. return false;
  16094. };
  16095. TinyColor2.prototype.toString = function(format2) {
  16096. var formatSet = Boolean(format2);
  16097. format2 = format2 !== null && format2 !== void 0 ? format2 : this.format;
  16098. var formattedString = false;
  16099. var hasAlpha = this.a < 1 && this.a >= 0;
  16100. var needsAlphaFormat = !formatSet && hasAlpha && (format2.startsWith("hex") || format2 === "name");
  16101. if (needsAlphaFormat) {
  16102. if (format2 === "name" && this.a === 0) {
  16103. return this.toName();
  16104. }
  16105. return this.toRgbString();
  16106. }
  16107. if (format2 === "rgb") {
  16108. formattedString = this.toRgbString();
  16109. }
  16110. if (format2 === "prgb") {
  16111. formattedString = this.toPercentageRgbString();
  16112. }
  16113. if (format2 === "hex" || format2 === "hex6") {
  16114. formattedString = this.toHexString();
  16115. }
  16116. if (format2 === "hex3") {
  16117. formattedString = this.toHexString(true);
  16118. }
  16119. if (format2 === "hex4") {
  16120. formattedString = this.toHex8String(true);
  16121. }
  16122. if (format2 === "hex8") {
  16123. formattedString = this.toHex8String();
  16124. }
  16125. if (format2 === "name") {
  16126. formattedString = this.toName();
  16127. }
  16128. if (format2 === "hsl") {
  16129. formattedString = this.toHslString();
  16130. }
  16131. if (format2 === "hsv") {
  16132. formattedString = this.toHsvString();
  16133. }
  16134. return formattedString || this.toHexString();
  16135. };
  16136. TinyColor2.prototype.toNumber = function() {
  16137. return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
  16138. };
  16139. TinyColor2.prototype.clone = function() {
  16140. return new TinyColor2(this.toString());
  16141. };
  16142. TinyColor2.prototype.lighten = function(amount) {
  16143. if (amount === void 0) {
  16144. amount = 10;
  16145. }
  16146. var hsl = this.toHsl();
  16147. hsl.l += amount / 100;
  16148. hsl.l = clamp01(hsl.l);
  16149. return new TinyColor2(hsl);
  16150. };
  16151. TinyColor2.prototype.brighten = function(amount) {
  16152. if (amount === void 0) {
  16153. amount = 10;
  16154. }
  16155. var rgb = this.toRgb();
  16156. rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
  16157. rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
  16158. rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
  16159. return new TinyColor2(rgb);
  16160. };
  16161. TinyColor2.prototype.darken = function(amount) {
  16162. if (amount === void 0) {
  16163. amount = 10;
  16164. }
  16165. var hsl = this.toHsl();
  16166. hsl.l -= amount / 100;
  16167. hsl.l = clamp01(hsl.l);
  16168. return new TinyColor2(hsl);
  16169. };
  16170. TinyColor2.prototype.tint = function(amount) {
  16171. if (amount === void 0) {
  16172. amount = 10;
  16173. }
  16174. return this.mix("white", amount);
  16175. };
  16176. TinyColor2.prototype.shade = function(amount) {
  16177. if (amount === void 0) {
  16178. amount = 10;
  16179. }
  16180. return this.mix("black", amount);
  16181. };
  16182. TinyColor2.prototype.desaturate = function(amount) {
  16183. if (amount === void 0) {
  16184. amount = 10;
  16185. }
  16186. var hsl = this.toHsl();
  16187. hsl.s -= amount / 100;
  16188. hsl.s = clamp01(hsl.s);
  16189. return new TinyColor2(hsl);
  16190. };
  16191. TinyColor2.prototype.saturate = function(amount) {
  16192. if (amount === void 0) {
  16193. amount = 10;
  16194. }
  16195. var hsl = this.toHsl();
  16196. hsl.s += amount / 100;
  16197. hsl.s = clamp01(hsl.s);
  16198. return new TinyColor2(hsl);
  16199. };
  16200. TinyColor2.prototype.greyscale = function() {
  16201. return this.desaturate(100);
  16202. };
  16203. TinyColor2.prototype.spin = function(amount) {
  16204. var hsl = this.toHsl();
  16205. var hue = (hsl.h + amount) % 360;
  16206. hsl.h = hue < 0 ? 360 + hue : hue;
  16207. return new TinyColor2(hsl);
  16208. };
  16209. TinyColor2.prototype.mix = function(color, amount) {
  16210. if (amount === void 0) {
  16211. amount = 50;
  16212. }
  16213. var rgb1 = this.toRgb();
  16214. var rgb2 = new TinyColor2(color).toRgb();
  16215. var p2 = amount / 100;
  16216. var rgba = {
  16217. r: (rgb2.r - rgb1.r) * p2 + rgb1.r,
  16218. g: (rgb2.g - rgb1.g) * p2 + rgb1.g,
  16219. b: (rgb2.b - rgb1.b) * p2 + rgb1.b,
  16220. a: (rgb2.a - rgb1.a) * p2 + rgb1.a
  16221. };
  16222. return new TinyColor2(rgba);
  16223. };
  16224. TinyColor2.prototype.analogous = function(results, slices) {
  16225. if (results === void 0) {
  16226. results = 6;
  16227. }
  16228. if (slices === void 0) {
  16229. slices = 30;
  16230. }
  16231. var hsl = this.toHsl();
  16232. var part = 360 / slices;
  16233. var ret = [this];
  16234. for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results; ) {
  16235. hsl.h = (hsl.h + part) % 360;
  16236. ret.push(new TinyColor2(hsl));
  16237. }
  16238. return ret;
  16239. };
  16240. TinyColor2.prototype.complement = function() {
  16241. var hsl = this.toHsl();
  16242. hsl.h = (hsl.h + 180) % 360;
  16243. return new TinyColor2(hsl);
  16244. };
  16245. TinyColor2.prototype.monochromatic = function(results) {
  16246. if (results === void 0) {
  16247. results = 6;
  16248. }
  16249. var hsv = this.toHsv();
  16250. var h3 = hsv.h;
  16251. var s2 = hsv.s;
  16252. var v2 = hsv.v;
  16253. var res = [];
  16254. var modification = 1 / results;
  16255. while (results--) {
  16256. res.push(new TinyColor2({ h: h3, s: s2, v: v2 }));
  16257. v2 = (v2 + modification) % 1;
  16258. }
  16259. return res;
  16260. };
  16261. TinyColor2.prototype.splitcomplement = function() {
  16262. var hsl = this.toHsl();
  16263. var h3 = hsl.h;
  16264. return [
  16265. this,
  16266. new TinyColor2({ h: (h3 + 72) % 360, s: hsl.s, l: hsl.l }),
  16267. new TinyColor2({ h: (h3 + 216) % 360, s: hsl.s, l: hsl.l })
  16268. ];
  16269. };
  16270. TinyColor2.prototype.onBackground = function(background) {
  16271. var fg = this.toRgb();
  16272. var bg = new TinyColor2(background).toRgb();
  16273. var alpha = fg.a + bg.a * (1 - fg.a);
  16274. return new TinyColor2({
  16275. r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha,
  16276. g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha,
  16277. b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha,
  16278. a: alpha
  16279. });
  16280. };
  16281. TinyColor2.prototype.triad = function() {
  16282. return this.polyad(3);
  16283. };
  16284. TinyColor2.prototype.tetrad = function() {
  16285. return this.polyad(4);
  16286. };
  16287. TinyColor2.prototype.polyad = function(n) {
  16288. var hsl = this.toHsl();
  16289. var h3 = hsl.h;
  16290. var result2 = [this];
  16291. var increment = 360 / n;
  16292. for (var i = 1; i < n; i++) {
  16293. result2.push(new TinyColor2({ h: (h3 + i * increment) % 360, s: hsl.s, l: hsl.l }));
  16294. }
  16295. return result2;
  16296. };
  16297. TinyColor2.prototype.equals = function(color) {
  16298. return this.toRgbString() === new TinyColor2(color).toRgbString();
  16299. };
  16300. return TinyColor2;
  16301. }()
  16302. );
  16303. // node_modules/element-plus/es/components/button/src/button-custom.mjs
  16304. function darken(color, amount = 20) {
  16305. return color.mix("#141414", amount).toString();
  16306. }
  16307. function useButtonCustomStyle(props2) {
  16308. const _disabled = useFormDisabled();
  16309. const ns = useNamespace("button");
  16310. return computed(() => {
  16311. let styles = {};
  16312. let buttonColor = props2.color;
  16313. if (buttonColor) {
  16314. const match = buttonColor.match(/var\((.*?)\)/);
  16315. if (match) {
  16316. buttonColor = window.getComputedStyle(window.document.documentElement).getPropertyValue(match[1]);
  16317. }
  16318. const color = new TinyColor(buttonColor);
  16319. const activeBgColor = props2.dark ? color.tint(20).toString() : darken(color, 20);
  16320. if (props2.plain) {
  16321. styles = ns.cssVarBlock({
  16322. "bg-color": props2.dark ? darken(color, 90) : color.tint(90).toString(),
  16323. "text-color": buttonColor,
  16324. "border-color": props2.dark ? darken(color, 50) : color.tint(50).toString(),
  16325. "hover-text-color": `var(${ns.cssVarName("color-white")})`,
  16326. "hover-bg-color": buttonColor,
  16327. "hover-border-color": buttonColor,
  16328. "active-bg-color": activeBgColor,
  16329. "active-text-color": `var(${ns.cssVarName("color-white")})`,
  16330. "active-border-color": activeBgColor
  16331. });
  16332. if (_disabled.value) {
  16333. styles[ns.cssVarBlockName("disabled-bg-color")] = props2.dark ? darken(color, 90) : color.tint(90).toString();
  16334. styles[ns.cssVarBlockName("disabled-text-color")] = props2.dark ? darken(color, 50) : color.tint(50).toString();
  16335. styles[ns.cssVarBlockName("disabled-border-color")] = props2.dark ? darken(color, 80) : color.tint(80).toString();
  16336. }
  16337. } else {
  16338. const hoverBgColor = props2.dark ? darken(color, 30) : color.tint(30).toString();
  16339. const textColor = color.isDark() ? `var(${ns.cssVarName("color-white")})` : `var(${ns.cssVarName("color-black")})`;
  16340. styles = ns.cssVarBlock({
  16341. "bg-color": buttonColor,
  16342. "text-color": textColor,
  16343. "border-color": buttonColor,
  16344. "hover-bg-color": hoverBgColor,
  16345. "hover-text-color": textColor,
  16346. "hover-border-color": hoverBgColor,
  16347. "active-bg-color": activeBgColor,
  16348. "active-border-color": activeBgColor
  16349. });
  16350. if (_disabled.value) {
  16351. const disabledButtonColor = props2.dark ? darken(color, 50) : color.tint(50).toString();
  16352. styles[ns.cssVarBlockName("disabled-bg-color")] = disabledButtonColor;
  16353. styles[ns.cssVarBlockName("disabled-text-color")] = props2.dark ? "rgba(255, 255, 255, 0.5)" : `var(${ns.cssVarName("color-white")})`;
  16354. styles[ns.cssVarBlockName("disabled-border-color")] = disabledButtonColor;
  16355. }
  16356. }
  16357. }
  16358. return styles;
  16359. });
  16360. }
  16361. // node_modules/element-plus/es/components/button/src/button2.mjs
  16362. var __default__19 = defineComponent({
  16363. name: "ElButton"
  16364. });
  16365. var _sfc_main23 = defineComponent({
  16366. ...__default__19,
  16367. props: buttonProps,
  16368. emits: buttonEmits,
  16369. setup(__props, { expose, emit }) {
  16370. const props2 = __props;
  16371. const buttonStyle = useButtonCustomStyle(props2);
  16372. const ns = useNamespace("button");
  16373. const {
  16374. _ref,
  16375. _size,
  16376. _type,
  16377. _disabled,
  16378. _props,
  16379. _plain,
  16380. _round,
  16381. _text,
  16382. shouldAddSpace,
  16383. handleClick
  16384. } = useButton(props2, emit);
  16385. const buttonKls = computed(() => [
  16386. ns.b(),
  16387. ns.m(_type.value),
  16388. ns.m(_size.value),
  16389. ns.is("disabled", _disabled.value),
  16390. ns.is("loading", props2.loading),
  16391. ns.is("plain", _plain.value),
  16392. ns.is("round", _round.value),
  16393. ns.is("circle", props2.circle),
  16394. ns.is("text", _text.value),
  16395. ns.is("link", props2.link),
  16396. ns.is("has-bg", props2.bg)
  16397. ]);
  16398. expose({
  16399. ref: _ref,
  16400. size: _size,
  16401. type: _type,
  16402. disabled: _disabled,
  16403. shouldAddSpace
  16404. });
  16405. return (_ctx, _cache) => {
  16406. return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps({
  16407. ref_key: "_ref",
  16408. ref: _ref
  16409. }, unref(_props), {
  16410. class: unref(buttonKls),
  16411. style: unref(buttonStyle),
  16412. onClick: unref(handleClick)
  16413. }), {
  16414. default: withCtx(() => [
  16415. _ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  16416. _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), {
  16417. key: 1,
  16418. class: normalizeClass(unref(ns).is("loading"))
  16419. }, {
  16420. default: withCtx(() => [
  16421. (openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon)))
  16422. ]),
  16423. _: 1
  16424. }, 8, ["class"]))
  16425. ], 64)) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
  16426. default: withCtx(() => [
  16427. _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
  16428. ]),
  16429. _: 3
  16430. })) : createCommentVNode("v-if", true),
  16431. _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
  16432. key: 2,
  16433. class: normalizeClass({ [unref(ns).em("text", "expand")]: unref(shouldAddSpace) })
  16434. }, [
  16435. renderSlot(_ctx.$slots, "default")
  16436. ], 2)) : createCommentVNode("v-if", true)
  16437. ]),
  16438. _: 3
  16439. }, 16, ["class", "style", "onClick"]);
  16440. };
  16441. }
  16442. });
  16443. var Button = _export_sfc(_sfc_main23, [["__file", "button.vue"]]);
  16444. // node_modules/element-plus/es/components/button/src/button-group.mjs
  16445. var buttonGroupProps = {
  16446. size: buttonProps.size,
  16447. type: buttonProps.type
  16448. };
  16449. // node_modules/element-plus/es/components/button/src/button-group2.mjs
  16450. var __default__20 = defineComponent({
  16451. name: "ElButtonGroup"
  16452. });
  16453. var _sfc_main24 = defineComponent({
  16454. ...__default__20,
  16455. props: buttonGroupProps,
  16456. setup(__props) {
  16457. const props2 = __props;
  16458. provide(buttonGroupContextKey, reactive({
  16459. size: toRef(props2, "size"),
  16460. type: toRef(props2, "type")
  16461. }));
  16462. const ns = useNamespace("button");
  16463. return (_ctx, _cache) => {
  16464. return openBlock(), createElementBlock("div", {
  16465. class: normalizeClass(unref(ns).b("group"))
  16466. }, [
  16467. renderSlot(_ctx.$slots, "default")
  16468. ], 2);
  16469. };
  16470. }
  16471. });
  16472. var ButtonGroup = _export_sfc(_sfc_main24, [["__file", "button-group.vue"]]);
  16473. // node_modules/element-plus/es/components/button/index.mjs
  16474. var ElButton = withInstall(Button, {
  16475. ButtonGroup
  16476. });
  16477. var ElButtonGroup = withNoopInstall(ButtonGroup);
  16478. // node_modules/element-plus/es/components/time-picker/src/utils.mjs
  16479. var import_dayjs = __toESM(require_dayjs_min(), 1);
  16480. var buildTimeList = (value, bound) => {
  16481. return [
  16482. value > 0 ? value - 1 : void 0,
  16483. value,
  16484. value < bound ? value + 1 : void 0
  16485. ];
  16486. };
  16487. var rangeArr = (n) => Array.from(Array.from({ length: n }).keys());
  16488. var extractDateFormat = (format2) => {
  16489. return format2.replace(/\W?m{1,2}|\W?ZZ/g, "").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, "").trim();
  16490. };
  16491. var extractTimeFormat = (format2) => {
  16492. return format2.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g, "").trim();
  16493. };
  16494. var dateEquals = function(a2, b2) {
  16495. const aIsDate = isDate(a2);
  16496. const bIsDate = isDate(b2);
  16497. if (aIsDate && bIsDate) {
  16498. return a2.getTime() === b2.getTime();
  16499. }
  16500. if (!aIsDate && !bIsDate) {
  16501. return a2 === b2;
  16502. }
  16503. return false;
  16504. };
  16505. var valueEquals = function(a2, b2) {
  16506. const aIsArray = isArray(a2);
  16507. const bIsArray = isArray(b2);
  16508. if (aIsArray && bIsArray) {
  16509. if (a2.length !== b2.length) {
  16510. return false;
  16511. }
  16512. return a2.every((item, index) => dateEquals(item, b2[index]));
  16513. }
  16514. if (!aIsArray && !bIsArray) {
  16515. return dateEquals(a2, b2);
  16516. }
  16517. return false;
  16518. };
  16519. var parseDate = function(date4, format2, lang) {
  16520. const day = isEmpty2(format2) || format2 === "x" ? (0, import_dayjs.default)(date4).locale(lang) : (0, import_dayjs.default)(date4, format2).locale(lang);
  16521. return day.isValid() ? day : void 0;
  16522. };
  16523. var formatter = function(date4, format2, lang) {
  16524. if (isEmpty2(format2))
  16525. return date4;
  16526. if (format2 === "x")
  16527. return +date4;
  16528. return (0, import_dayjs.default)(date4).locale(lang).format(format2);
  16529. };
  16530. var makeList = (total2, method5) => {
  16531. var _a2;
  16532. const arr = [];
  16533. const disabledArr = method5 == null ? void 0 : method5();
  16534. for (let i = 0; i < total2; i++) {
  16535. arr.push((_a2 = disabledArr == null ? void 0 : disabledArr.includes(i)) != null ? _a2 : false);
  16536. }
  16537. return arr;
  16538. };
  16539. var dayOrDaysToDate = (dayOrDays) => {
  16540. return isArray(dayOrDays) ? dayOrDays.map((d2) => d2.toDate()) : dayOrDays.toDate();
  16541. };
  16542. // node_modules/element-plus/es/components/calendar/src/date-table.mjs
  16543. var getPrevMonthLastDays = (date4, count) => {
  16544. const lastDay = date4.subtract(1, "month").endOf("month").date();
  16545. return rangeArr(count).map((_2, index) => lastDay - (count - index - 1));
  16546. };
  16547. var getMonthDays = (date4) => {
  16548. const days = date4.daysInMonth();
  16549. return rangeArr(days).map((_2, index) => index + 1);
  16550. };
  16551. var toNestedArr = (days) => rangeArr(days.length / 7).map((index) => {
  16552. const start = index * 7;
  16553. return days.slice(start, start + 7);
  16554. });
  16555. var dateTableProps = buildProps({
  16556. selectedDay: {
  16557. type: definePropType(Object)
  16558. },
  16559. range: {
  16560. type: definePropType(Array)
  16561. },
  16562. date: {
  16563. type: definePropType(Object),
  16564. required: true
  16565. },
  16566. hideHeader: {
  16567. type: Boolean
  16568. }
  16569. });
  16570. var dateTableEmits = {
  16571. pick: (value) => isObject(value)
  16572. };
  16573. // node_modules/element-plus/es/components/calendar/src/use-date-table.mjs
  16574. var import_dayjs2 = __toESM(require_dayjs_min(), 1);
  16575. var import_localeData = __toESM(require_localeData(), 1);
  16576. // node_modules/element-plus/es/constants/date.mjs
  16577. var datePickTypes = [
  16578. "year",
  16579. "years",
  16580. "month",
  16581. "months",
  16582. "date",
  16583. "dates",
  16584. "week",
  16585. "datetime",
  16586. "datetimerange",
  16587. "daterange",
  16588. "monthrange",
  16589. "yearrange"
  16590. ];
  16591. var WEEK_DAYS = [
  16592. "sun",
  16593. "mon",
  16594. "tue",
  16595. "wed",
  16596. "thu",
  16597. "fri",
  16598. "sat"
  16599. ];
  16600. // node_modules/element-plus/es/components/calendar/src/use-date-table.mjs
  16601. var useDateTable = (props2, emit) => {
  16602. import_dayjs2.default.extend(import_localeData.default);
  16603. const firstDayOfWeek = import_dayjs2.default.localeData().firstDayOfWeek();
  16604. const { t, lang } = useLocale();
  16605. const now2 = (0, import_dayjs2.default)().locale(lang.value);
  16606. const isInRange = computed(() => !!props2.range && !!props2.range.length);
  16607. const rows = computed(() => {
  16608. let days = [];
  16609. if (isInRange.value) {
  16610. const [start, end] = props2.range;
  16611. const currentMonthRange = rangeArr(end.date() - start.date() + 1).map((index) => ({
  16612. text: start.date() + index,
  16613. type: "current"
  16614. }));
  16615. let remaining = currentMonthRange.length % 7;
  16616. remaining = remaining === 0 ? 0 : 7 - remaining;
  16617. const nextMonthRange = rangeArr(remaining).map((_2, index) => ({
  16618. text: index + 1,
  16619. type: "next"
  16620. }));
  16621. days = currentMonthRange.concat(nextMonthRange);
  16622. } else {
  16623. const firstDay = props2.date.startOf("month").day();
  16624. const prevMonthDays = getPrevMonthLastDays(props2.date, (firstDay - firstDayOfWeek + 7) % 7).map((day) => ({
  16625. text: day,
  16626. type: "prev"
  16627. }));
  16628. const currentMonthDays = getMonthDays(props2.date).map((day) => ({
  16629. text: day,
  16630. type: "current"
  16631. }));
  16632. days = [...prevMonthDays, ...currentMonthDays];
  16633. const remaining = 7 - (days.length % 7 || 7);
  16634. const nextMonthDays = rangeArr(remaining).map((_2, index) => ({
  16635. text: index + 1,
  16636. type: "next"
  16637. }));
  16638. days = days.concat(nextMonthDays);
  16639. }
  16640. return toNestedArr(days);
  16641. });
  16642. const weekDays = computed(() => {
  16643. const start = firstDayOfWeek;
  16644. if (start === 0) {
  16645. return WEEK_DAYS.map((_2) => t(`el.datepicker.weeks.${_2}`));
  16646. } else {
  16647. return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start)).map((_2) => t(`el.datepicker.weeks.${_2}`));
  16648. }
  16649. });
  16650. const getFormattedDate = (day, type4) => {
  16651. switch (type4) {
  16652. case "prev":
  16653. return props2.date.startOf("month").subtract(1, "month").date(day);
  16654. case "next":
  16655. return props2.date.startOf("month").add(1, "month").date(day);
  16656. case "current":
  16657. return props2.date.date(day);
  16658. }
  16659. };
  16660. const handlePickDay = ({ text, type: type4 }) => {
  16661. const date4 = getFormattedDate(text, type4);
  16662. emit("pick", date4);
  16663. };
  16664. const getSlotData = ({ text, type: type4 }) => {
  16665. const day = getFormattedDate(text, type4);
  16666. return {
  16667. isSelected: day.isSame(props2.selectedDay),
  16668. type: `${type4}-month`,
  16669. day: day.format("YYYY-MM-DD"),
  16670. date: day.toDate()
  16671. };
  16672. };
  16673. return {
  16674. now: now2,
  16675. isInRange,
  16676. rows,
  16677. weekDays,
  16678. getFormattedDate,
  16679. handlePickDay,
  16680. getSlotData
  16681. };
  16682. };
  16683. // node_modules/element-plus/es/components/calendar/src/date-table2.mjs
  16684. var __default__21 = defineComponent({
  16685. name: "DateTable"
  16686. });
  16687. var _sfc_main25 = defineComponent({
  16688. ...__default__21,
  16689. props: dateTableProps,
  16690. emits: dateTableEmits,
  16691. setup(__props, { expose, emit }) {
  16692. const props2 = __props;
  16693. const {
  16694. isInRange,
  16695. now: now2,
  16696. rows,
  16697. weekDays,
  16698. getFormattedDate,
  16699. handlePickDay,
  16700. getSlotData
  16701. } = useDateTable(props2, emit);
  16702. const nsTable = useNamespace("calendar-table");
  16703. const nsDay = useNamespace("calendar-day");
  16704. const getCellClass = ({ text, type: type4 }) => {
  16705. const classes = [type4];
  16706. if (type4 === "current") {
  16707. const date4 = getFormattedDate(text, type4);
  16708. if (date4.isSame(props2.selectedDay, "day")) {
  16709. classes.push(nsDay.is("selected"));
  16710. }
  16711. if (date4.isSame(now2, "day")) {
  16712. classes.push(nsDay.is("today"));
  16713. }
  16714. }
  16715. return classes;
  16716. };
  16717. expose({
  16718. getFormattedDate
  16719. });
  16720. return (_ctx, _cache) => {
  16721. return openBlock(), createElementBlock("table", {
  16722. class: normalizeClass([unref(nsTable).b(), unref(nsTable).is("range", unref(isInRange))]),
  16723. cellspacing: "0",
  16724. cellpadding: "0"
  16725. }, [
  16726. !_ctx.hideHeader ? (openBlock(), createElementBlock("thead", { key: 0 }, [
  16727. createBaseVNode("tr", null, [
  16728. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(weekDays), (day) => {
  16729. return openBlock(), createElementBlock("th", {
  16730. key: day,
  16731. scope: "col"
  16732. }, toDisplayString(day), 1);
  16733. }), 128))
  16734. ])
  16735. ])) : createCommentVNode("v-if", true),
  16736. createBaseVNode("tbody", null, [
  16737. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, index) => {
  16738. return openBlock(), createElementBlock("tr", {
  16739. key: index,
  16740. class: normalizeClass({
  16741. [unref(nsTable).e("row")]: true,
  16742. [unref(nsTable).em("row", "hide-border")]: index === 0 && _ctx.hideHeader
  16743. })
  16744. }, [
  16745. (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key) => {
  16746. return openBlock(), createElementBlock("td", {
  16747. key,
  16748. class: normalizeClass(getCellClass(cell)),
  16749. onClick: ($event) => unref(handlePickDay)(cell)
  16750. }, [
  16751. createBaseVNode("div", {
  16752. class: normalizeClass(unref(nsDay).b())
  16753. }, [
  16754. renderSlot(_ctx.$slots, "date-cell", {
  16755. data: unref(getSlotData)(cell)
  16756. }, () => [
  16757. createBaseVNode("span", null, toDisplayString(cell.text), 1)
  16758. ])
  16759. ], 2)
  16760. ], 10, ["onClick"]);
  16761. }), 128))
  16762. ], 2);
  16763. }), 128))
  16764. ])
  16765. ], 2);
  16766. };
  16767. }
  16768. });
  16769. var DateTable = _export_sfc(_sfc_main25, [["__file", "date-table.vue"]]);
  16770. // node_modules/element-plus/es/components/calendar/src/use-calendar.mjs
  16771. var import_dayjs3 = __toESM(require_dayjs_min(), 1);
  16772. var adjacentMonth = (start, end) => {
  16773. const firstMonthLastDay = start.endOf("month");
  16774. const lastMonthFirstDay = end.startOf("month");
  16775. const isSameWeek = firstMonthLastDay.isSame(lastMonthFirstDay, "week");
  16776. const lastMonthStartDay = isSameWeek ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
  16777. return [
  16778. [start, firstMonthLastDay],
  16779. [lastMonthStartDay.startOf("week"), end]
  16780. ];
  16781. };
  16782. var threeConsecutiveMonth = (start, end) => {
  16783. const firstMonthLastDay = start.endOf("month");
  16784. const secondMonthFirstDay = start.add(1, "month").startOf("month");
  16785. const secondMonthStartDay = firstMonthLastDay.isSame(secondMonthFirstDay, "week") ? secondMonthFirstDay.add(1, "week") : secondMonthFirstDay;
  16786. const secondMonthLastDay = secondMonthStartDay.endOf("month");
  16787. const lastMonthFirstDay = end.startOf("month");
  16788. const lastMonthStartDay = secondMonthLastDay.isSame(lastMonthFirstDay, "week") ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
  16789. return [
  16790. [start, firstMonthLastDay],
  16791. [secondMonthStartDay.startOf("week"), secondMonthLastDay],
  16792. [lastMonthStartDay.startOf("week"), end]
  16793. ];
  16794. };
  16795. var useCalendar = (props2, emit, componentName2) => {
  16796. const { lang } = useLocale();
  16797. const selectedDay = ref();
  16798. const now2 = (0, import_dayjs3.default)().locale(lang.value);
  16799. const realSelectedDay = computed({
  16800. get() {
  16801. if (!props2.modelValue)
  16802. return selectedDay.value;
  16803. return date4.value;
  16804. },
  16805. set(val) {
  16806. if (!val)
  16807. return;
  16808. selectedDay.value = val;
  16809. const result2 = val.toDate();
  16810. emit(INPUT_EVENT, result2);
  16811. emit(UPDATE_MODEL_EVENT, result2);
  16812. }
  16813. });
  16814. const validatedRange = computed(() => {
  16815. if (!props2.range || !isArray(props2.range) || props2.range.length !== 2 || props2.range.some((item) => !isDate(item)))
  16816. return [];
  16817. const rangeArrDayjs = props2.range.map((_2) => (0, import_dayjs3.default)(_2).locale(lang.value));
  16818. const [startDayjs, endDayjs] = rangeArrDayjs;
  16819. if (startDayjs.isAfter(endDayjs)) {
  16820. debugWarn(componentName2, "end time should be greater than start time");
  16821. return [];
  16822. }
  16823. if (startDayjs.isSame(endDayjs, "month")) {
  16824. return calculateValidatedDateRange(startDayjs, endDayjs);
  16825. } else {
  16826. if (startDayjs.add(1, "month").month() !== endDayjs.month()) {
  16827. debugWarn(componentName2, "start time and end time interval must not exceed two months");
  16828. return [];
  16829. }
  16830. return calculateValidatedDateRange(startDayjs, endDayjs);
  16831. }
  16832. });
  16833. const date4 = computed(() => {
  16834. if (!props2.modelValue) {
  16835. return realSelectedDay.value || (validatedRange.value.length ? validatedRange.value[0][0] : now2);
  16836. } else {
  16837. return (0, import_dayjs3.default)(props2.modelValue).locale(lang.value);
  16838. }
  16839. });
  16840. const prevMonthDayjs = computed(() => date4.value.subtract(1, "month").date(1));
  16841. const nextMonthDayjs = computed(() => date4.value.add(1, "month").date(1));
  16842. const prevYearDayjs = computed(() => date4.value.subtract(1, "year").date(1));
  16843. const nextYearDayjs = computed(() => date4.value.add(1, "year").date(1));
  16844. const calculateValidatedDateRange = (startDayjs, endDayjs) => {
  16845. const firstDay = startDayjs.startOf("week");
  16846. const lastDay = endDayjs.endOf("week");
  16847. const firstMonth = firstDay.get("month");
  16848. const lastMonth = lastDay.get("month");
  16849. if (firstMonth === lastMonth) {
  16850. return [[firstDay, lastDay]];
  16851. } else if ((firstMonth + 1) % 12 === lastMonth) {
  16852. return adjacentMonth(firstDay, lastDay);
  16853. } else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
  16854. return threeConsecutiveMonth(firstDay, lastDay);
  16855. } else {
  16856. debugWarn(componentName2, "start time and end time interval must not exceed two months");
  16857. return [];
  16858. }
  16859. };
  16860. const pickDay = (day) => {
  16861. realSelectedDay.value = day;
  16862. };
  16863. const selectDate = (type4) => {
  16864. const dateMap = {
  16865. "prev-month": prevMonthDayjs.value,
  16866. "next-month": nextMonthDayjs.value,
  16867. "prev-year": prevYearDayjs.value,
  16868. "next-year": nextYearDayjs.value,
  16869. today: now2
  16870. };
  16871. const day = dateMap[type4];
  16872. if (!day.isSame(date4.value, "day")) {
  16873. pickDay(day);
  16874. }
  16875. };
  16876. return {
  16877. calculateValidatedDateRange,
  16878. date: date4,
  16879. realSelectedDay,
  16880. pickDay,
  16881. selectDate,
  16882. validatedRange
  16883. };
  16884. };
  16885. // node_modules/element-plus/es/components/calendar/src/calendar.mjs
  16886. var isValidRange = (range4) => isArray(range4) && range4.length === 2 && range4.every((item) => isDate(item));
  16887. var calendarProps = buildProps({
  16888. modelValue: {
  16889. type: Date
  16890. },
  16891. range: {
  16892. type: definePropType(Array),
  16893. validator: isValidRange
  16894. }
  16895. });
  16896. var calendarEmits = {
  16897. [UPDATE_MODEL_EVENT]: (value) => isDate(value),
  16898. [INPUT_EVENT]: (value) => isDate(value)
  16899. };
  16900. // node_modules/element-plus/es/components/calendar/src/calendar2.mjs
  16901. var COMPONENT_NAME7 = "ElCalendar";
  16902. var __default__22 = defineComponent({
  16903. name: COMPONENT_NAME7
  16904. });
  16905. var _sfc_main26 = defineComponent({
  16906. ...__default__22,
  16907. props: calendarProps,
  16908. emits: calendarEmits,
  16909. setup(__props, { expose, emit }) {
  16910. const props2 = __props;
  16911. const ns = useNamespace("calendar");
  16912. const {
  16913. calculateValidatedDateRange,
  16914. date: date4,
  16915. pickDay,
  16916. realSelectedDay,
  16917. selectDate,
  16918. validatedRange
  16919. } = useCalendar(props2, emit, COMPONENT_NAME7);
  16920. const { t } = useLocale();
  16921. const i18nDate = computed(() => {
  16922. const pickedMonth = `el.datepicker.month${date4.value.format("M")}`;
  16923. return `${date4.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
  16924. });
  16925. expose({
  16926. selectedDay: realSelectedDay,
  16927. pickDay,
  16928. selectDate,
  16929. calculateValidatedDateRange
  16930. });
  16931. return (_ctx, _cache) => {
  16932. return openBlock(), createElementBlock("div", {
  16933. class: normalizeClass(unref(ns).b())
  16934. }, [
  16935. createBaseVNode("div", {
  16936. class: normalizeClass(unref(ns).e("header"))
  16937. }, [
  16938. renderSlot(_ctx.$slots, "header", { date: unref(i18nDate) }, () => [
  16939. createBaseVNode("div", {
  16940. class: normalizeClass(unref(ns).e("title"))
  16941. }, toDisplayString(unref(i18nDate)), 3),
  16942. unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
  16943. key: 0,
  16944. class: normalizeClass(unref(ns).e("button-group"))
  16945. }, [
  16946. createVNode(unref(ElButtonGroup), null, {
  16947. default: withCtx(() => [
  16948. createVNode(unref(ElButton), {
  16949. size: "small",
  16950. onClick: ($event) => unref(selectDate)("prev-month")
  16951. }, {
  16952. default: withCtx(() => [
  16953. createTextVNode(toDisplayString(unref(t)("el.datepicker.prevMonth")), 1)
  16954. ]),
  16955. _: 1
  16956. }, 8, ["onClick"]),
  16957. createVNode(unref(ElButton), {
  16958. size: "small",
  16959. onClick: ($event) => unref(selectDate)("today")
  16960. }, {
  16961. default: withCtx(() => [
  16962. createTextVNode(toDisplayString(unref(t)("el.datepicker.today")), 1)
  16963. ]),
  16964. _: 1
  16965. }, 8, ["onClick"]),
  16966. createVNode(unref(ElButton), {
  16967. size: "small",
  16968. onClick: ($event) => unref(selectDate)("next-month")
  16969. }, {
  16970. default: withCtx(() => [
  16971. createTextVNode(toDisplayString(unref(t)("el.datepicker.nextMonth")), 1)
  16972. ]),
  16973. _: 1
  16974. }, 8, ["onClick"])
  16975. ]),
  16976. _: 1
  16977. })
  16978. ], 2)) : createCommentVNode("v-if", true)
  16979. ])
  16980. ], 2),
  16981. unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
  16982. key: 0,
  16983. class: normalizeClass(unref(ns).e("body"))
  16984. }, [
  16985. createVNode(DateTable, {
  16986. date: unref(date4),
  16987. "selected-day": unref(realSelectedDay),
  16988. onPick: unref(pickDay)
  16989. }, createSlots({
  16990. _: 2
  16991. }, [
  16992. _ctx.$slots["date-cell"] ? {
  16993. name: "date-cell",
  16994. fn: withCtx((data) => [
  16995. renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
  16996. ])
  16997. } : void 0
  16998. ]), 1032, ["date", "selected-day", "onPick"])
  16999. ], 2)) : (openBlock(), createElementBlock("div", {
  17000. key: 1,
  17001. class: normalizeClass(unref(ns).e("body"))
  17002. }, [
  17003. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(validatedRange), (range_, index) => {
  17004. return openBlock(), createBlock(DateTable, {
  17005. key: index,
  17006. date: range_[0],
  17007. "selected-day": unref(realSelectedDay),
  17008. range: range_,
  17009. "hide-header": index !== 0,
  17010. onPick: unref(pickDay)
  17011. }, createSlots({
  17012. _: 2
  17013. }, [
  17014. _ctx.$slots["date-cell"] ? {
  17015. name: "date-cell",
  17016. fn: withCtx((data) => [
  17017. renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
  17018. ])
  17019. } : void 0
  17020. ]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
  17021. }), 128))
  17022. ], 2))
  17023. ], 2);
  17024. };
  17025. }
  17026. });
  17027. var Calendar = _export_sfc(_sfc_main26, [["__file", "calendar.vue"]]);
  17028. // node_modules/element-plus/es/components/calendar/index.mjs
  17029. var ElCalendar = withInstall(Calendar);
  17030. // node_modules/element-plus/es/components/card/src/card.mjs
  17031. var cardProps = buildProps({
  17032. header: {
  17033. type: String,
  17034. default: ""
  17035. },
  17036. footer: {
  17037. type: String,
  17038. default: ""
  17039. },
  17040. bodyStyle: {
  17041. type: definePropType([String, Object, Array]),
  17042. default: ""
  17043. },
  17044. headerClass: String,
  17045. bodyClass: String,
  17046. footerClass: String,
  17047. shadow: {
  17048. type: String,
  17049. values: ["always", "hover", "never"],
  17050. default: void 0
  17051. }
  17052. });
  17053. var cardContextKey = Symbol("cardContextKey");
  17054. // node_modules/element-plus/es/components/card/src/card2.mjs
  17055. var __default__23 = defineComponent({
  17056. name: "ElCard"
  17057. });
  17058. var _sfc_main27 = defineComponent({
  17059. ...__default__23,
  17060. props: cardProps,
  17061. setup(__props) {
  17062. const globalConfig2 = useGlobalConfig("card");
  17063. const ns = useNamespace("card");
  17064. return (_ctx, _cache) => {
  17065. var _a2;
  17066. return openBlock(), createElementBlock("div", {
  17067. class: normalizeClass([
  17068. unref(ns).b(),
  17069. unref(ns).is(`${_ctx.shadow || ((_a2 = unref(globalConfig2)) == null ? void 0 : _a2.shadow) || "always"}-shadow`)
  17070. ])
  17071. }, [
  17072. _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", {
  17073. key: 0,
  17074. class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
  17075. }, [
  17076. renderSlot(_ctx.$slots, "header", {}, () => [
  17077. createTextVNode(toDisplayString(_ctx.header), 1)
  17078. ])
  17079. ], 2)) : createCommentVNode("v-if", true),
  17080. createBaseVNode("div", {
  17081. class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
  17082. style: normalizeStyle(_ctx.bodyStyle)
  17083. }, [
  17084. renderSlot(_ctx.$slots, "default")
  17085. ], 6),
  17086. _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", {
  17087. key: 1,
  17088. class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
  17089. }, [
  17090. renderSlot(_ctx.$slots, "footer", {}, () => [
  17091. createTextVNode(toDisplayString(_ctx.footer), 1)
  17092. ])
  17093. ], 2)) : createCommentVNode("v-if", true)
  17094. ], 2);
  17095. };
  17096. }
  17097. });
  17098. var Card = _export_sfc(_sfc_main27, [["__file", "card.vue"]]);
  17099. // node_modules/element-plus/es/components/card/index.mjs
  17100. var ElCard = withInstall(Card);
  17101. // node_modules/element-plus/es/components/carousel/src/carousel.mjs
  17102. var carouselProps = buildProps({
  17103. initialIndex: {
  17104. type: Number,
  17105. default: 0
  17106. },
  17107. height: {
  17108. type: String,
  17109. default: ""
  17110. },
  17111. trigger: {
  17112. type: String,
  17113. values: ["hover", "click"],
  17114. default: "hover"
  17115. },
  17116. autoplay: {
  17117. type: Boolean,
  17118. default: true
  17119. },
  17120. interval: {
  17121. type: Number,
  17122. default: 3e3
  17123. },
  17124. indicatorPosition: {
  17125. type: String,
  17126. values: ["", "none", "outside"],
  17127. default: ""
  17128. },
  17129. arrow: {
  17130. type: String,
  17131. values: ["always", "hover", "never"],
  17132. default: "hover"
  17133. },
  17134. type: {
  17135. type: String,
  17136. values: ["", "card"],
  17137. default: ""
  17138. },
  17139. cardScale: {
  17140. type: Number,
  17141. default: 0.83
  17142. },
  17143. loop: {
  17144. type: Boolean,
  17145. default: true
  17146. },
  17147. direction: {
  17148. type: String,
  17149. values: ["horizontal", "vertical"],
  17150. default: "horizontal"
  17151. },
  17152. pauseOnHover: {
  17153. type: Boolean,
  17154. default: true
  17155. },
  17156. motionBlur: Boolean
  17157. });
  17158. var carouselEmits = {
  17159. change: (current, prev) => [current, prev].every(isNumber2)
  17160. };
  17161. // node_modules/element-plus/es/components/carousel/src/constants.mjs
  17162. var carouselContextKey = Symbol("carouselContextKey");
  17163. var CAROUSEL_ITEM_NAME = "ElCarouselItem";
  17164. // node_modules/element-plus/es/utils/vue/vnode.mjs
  17165. var SCOPE3 = "utils/vue/vnode";
  17166. var PatchFlags = ((PatchFlags2) => {
  17167. PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT";
  17168. PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS";
  17169. PatchFlags2[PatchFlags2["STYLE"] = 4] = "STYLE";
  17170. PatchFlags2[PatchFlags2["PROPS"] = 8] = "PROPS";
  17171. PatchFlags2[PatchFlags2["FULL_PROPS"] = 16] = "FULL_PROPS";
  17172. PatchFlags2[PatchFlags2["HYDRATE_EVENTS"] = 32] = "HYDRATE_EVENTS";
  17173. PatchFlags2[PatchFlags2["STABLE_FRAGMENT"] = 64] = "STABLE_FRAGMENT";
  17174. PatchFlags2[PatchFlags2["KEYED_FRAGMENT"] = 128] = "KEYED_FRAGMENT";
  17175. PatchFlags2[PatchFlags2["UNKEYED_FRAGMENT"] = 256] = "UNKEYED_FRAGMENT";
  17176. PatchFlags2[PatchFlags2["NEED_PATCH"] = 512] = "NEED_PATCH";
  17177. PatchFlags2[PatchFlags2["DYNAMIC_SLOTS"] = 1024] = "DYNAMIC_SLOTS";
  17178. PatchFlags2[PatchFlags2["HOISTED"] = -1] = "HOISTED";
  17179. PatchFlags2[PatchFlags2["BAIL"] = -2] = "BAIL";
  17180. return PatchFlags2;
  17181. })(PatchFlags || {});
  17182. function isFragment(node) {
  17183. return isVNode(node) && node.type === Fragment;
  17184. }
  17185. function isComment(node) {
  17186. return isVNode(node) && node.type === Comment;
  17187. }
  17188. function isValidElementNode(node) {
  17189. return isVNode(node) && !isFragment(node) && !isComment(node);
  17190. }
  17191. var getNormalizedProps = (node) => {
  17192. if (!isVNode(node)) {
  17193. debugWarn(SCOPE3, "[getNormalizedProps] must be a VNode");
  17194. return {};
  17195. }
  17196. const raw = node.props || {};
  17197. const type4 = (isVNode(node.type) ? node.type.props : void 0) || {};
  17198. const props2 = {};
  17199. Object.keys(type4).forEach((key) => {
  17200. if (hasOwn(type4[key], "default")) {
  17201. props2[key] = type4[key].default;
  17202. }
  17203. });
  17204. Object.keys(raw).forEach((key) => {
  17205. props2[camelize(key)] = raw[key];
  17206. });
  17207. return props2;
  17208. };
  17209. var flattedChildren = (children) => {
  17210. const vNodes = isArray(children) ? children : [children];
  17211. const result2 = [];
  17212. vNodes.forEach((child) => {
  17213. var _a2;
  17214. if (isArray(child)) {
  17215. result2.push(...flattedChildren(child));
  17216. } else if (isVNode(child) && ((_a2 = child.component) == null ? void 0 : _a2.subTree)) {
  17217. result2.push(child, ...flattedChildren(child.component.subTree));
  17218. } else if (isVNode(child) && isArray(child.children)) {
  17219. result2.push(...flattedChildren(child.children));
  17220. } else if (isVNode(child) && child.shapeFlag === 2) {
  17221. result2.push(...flattedChildren(child.type()));
  17222. } else {
  17223. result2.push(child);
  17224. }
  17225. });
  17226. return result2;
  17227. };
  17228. // node_modules/element-plus/es/hooks/use-ordered-children/index.mjs
  17229. var getOrderedChildren = (vm, childComponentName, children) => {
  17230. const nodes = flattedChildren(vm.subTree).filter((n) => {
  17231. var _a2;
  17232. return isVNode(n) && ((_a2 = n.type) == null ? void 0 : _a2.name) === childComponentName && !!n.component;
  17233. });
  17234. const uids = nodes.map((n) => n.component.uid);
  17235. return uids.map((uid2) => children[uid2]).filter((p2) => !!p2);
  17236. };
  17237. var useOrderedChildren = (vm, childComponentName) => {
  17238. const children = shallowRef({});
  17239. const orderedChildren = shallowRef([]);
  17240. const nodesMap = /* @__PURE__ */ new WeakMap();
  17241. const addChild = (child) => {
  17242. children.value[child.uid] = child;
  17243. triggerRef(children);
  17244. onMounted(() => {
  17245. const childNode = child.getVnode().el;
  17246. const parentNode = childNode.parentNode;
  17247. if (!nodesMap.has(parentNode)) {
  17248. nodesMap.set(parentNode, []);
  17249. const originalFn = parentNode.insertBefore.bind(parentNode);
  17250. parentNode.insertBefore = (node, anchor) => {
  17251. const shouldSortChildren = nodesMap.get(parentNode).some((el) => node === el || anchor === el);
  17252. if (shouldSortChildren)
  17253. triggerRef(children);
  17254. return originalFn(node, anchor);
  17255. };
  17256. }
  17257. nodesMap.get(parentNode).push(childNode);
  17258. });
  17259. };
  17260. const removeChild = (child) => {
  17261. delete children.value[child.uid];
  17262. triggerRef(children);
  17263. const childNode = child.getVnode().el;
  17264. const parentNode = childNode.parentNode;
  17265. const childNodes = nodesMap.get(parentNode);
  17266. const index = childNodes.indexOf(childNode);
  17267. childNodes.splice(index, 1);
  17268. };
  17269. const sortChildren = () => {
  17270. orderedChildren.value = getOrderedChildren(vm, childComponentName, children.value);
  17271. };
  17272. const IsolatedRenderer = (props2) => {
  17273. return props2.render();
  17274. };
  17275. const ChildrenSorter = defineComponent({
  17276. setup(_2, { slots }) {
  17277. return () => {
  17278. sortChildren();
  17279. return slots.default ? h(IsolatedRenderer, {
  17280. render: slots.default
  17281. }) : null;
  17282. };
  17283. }
  17284. });
  17285. return {
  17286. children: orderedChildren,
  17287. addChild,
  17288. removeChild,
  17289. ChildrenSorter
  17290. };
  17291. };
  17292. // node_modules/element-plus/es/components/carousel/src/use-carousel.mjs
  17293. var THROTTLE_TIME = 300;
  17294. var useCarousel = (props2, emit, componentName2) => {
  17295. const {
  17296. children: items,
  17297. addChild: addItem,
  17298. removeChild: removeItem,
  17299. ChildrenSorter: ItemsSorter
  17300. } = useOrderedChildren(getCurrentInstance(), CAROUSEL_ITEM_NAME);
  17301. const slots = useSlots();
  17302. const activeIndex = ref(-1);
  17303. const timer = ref(null);
  17304. const hover = ref(false);
  17305. const root2 = ref();
  17306. const containerHeight = ref(0);
  17307. const isItemsTwoLength = ref(true);
  17308. const arrowDisplay = computed(() => props2.arrow !== "never" && !unref(isVertical));
  17309. const hasLabel = computed(() => {
  17310. return items.value.some((item) => item.props.label.toString().length > 0);
  17311. });
  17312. const isCardType = computed(() => props2.type === "card");
  17313. const isVertical = computed(() => props2.direction === "vertical");
  17314. const containerStyle = computed(() => {
  17315. if (props2.height !== "auto") {
  17316. return {
  17317. height: props2.height
  17318. };
  17319. }
  17320. return {
  17321. height: `${containerHeight.value}px`,
  17322. overflow: "hidden"
  17323. };
  17324. });
  17325. const throttledArrowClick = throttle_default((index) => {
  17326. setActiveItem(index);
  17327. }, THROTTLE_TIME, { trailing: true });
  17328. const throttledIndicatorHover = throttle_default((index) => {
  17329. handleIndicatorHover(index);
  17330. }, THROTTLE_TIME);
  17331. const isTwoLengthShow = (index) => {
  17332. if (!isItemsTwoLength.value)
  17333. return true;
  17334. return activeIndex.value <= 1 ? index <= 1 : index > 1;
  17335. };
  17336. function pauseTimer() {
  17337. if (timer.value) {
  17338. clearInterval(timer.value);
  17339. timer.value = null;
  17340. }
  17341. }
  17342. function startTimer() {
  17343. if (props2.interval <= 0 || !props2.autoplay || timer.value)
  17344. return;
  17345. timer.value = setInterval(() => playSlides(), props2.interval);
  17346. }
  17347. const playSlides = () => {
  17348. if (activeIndex.value < items.value.length - 1) {
  17349. activeIndex.value = activeIndex.value + 1;
  17350. } else if (props2.loop) {
  17351. activeIndex.value = 0;
  17352. }
  17353. };
  17354. function setActiveItem(index) {
  17355. if (isString(index)) {
  17356. const filteredItems = items.value.filter((item) => item.props.name === index);
  17357. if (filteredItems.length > 0) {
  17358. index = items.value.indexOf(filteredItems[0]);
  17359. }
  17360. }
  17361. index = Number(index);
  17362. if (Number.isNaN(index) || index !== Math.floor(index)) {
  17363. debugWarn(componentName2, "index must be integer.");
  17364. return;
  17365. }
  17366. const itemCount = items.value.length;
  17367. const oldIndex = activeIndex.value;
  17368. if (index < 0) {
  17369. activeIndex.value = props2.loop ? itemCount - 1 : 0;
  17370. } else if (index >= itemCount) {
  17371. activeIndex.value = props2.loop ? 0 : itemCount - 1;
  17372. } else {
  17373. activeIndex.value = index;
  17374. }
  17375. if (oldIndex === activeIndex.value) {
  17376. resetItemPosition(oldIndex);
  17377. }
  17378. resetTimer();
  17379. }
  17380. function resetItemPosition(oldIndex) {
  17381. items.value.forEach((item, index) => {
  17382. item.translateItem(index, activeIndex.value, oldIndex);
  17383. });
  17384. }
  17385. function itemInStage(item, index) {
  17386. var _a2, _b, _c, _d;
  17387. const _items = unref(items);
  17388. const itemCount = _items.length;
  17389. if (itemCount === 0 || !item.states.inStage)
  17390. return false;
  17391. const nextItemIndex = index + 1;
  17392. const prevItemIndex = index - 1;
  17393. const lastItemIndex = itemCount - 1;
  17394. const isLastItemActive = _items[lastItemIndex].states.active;
  17395. const isFirstItemActive = _items[0].states.active;
  17396. const isNextItemActive = (_b = (_a2 = _items[nextItemIndex]) == null ? void 0 : _a2.states) == null ? void 0 : _b.active;
  17397. const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
  17398. if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
  17399. return "left";
  17400. } else if (index === 0 && isLastItemActive || isPrevItemActive) {
  17401. return "right";
  17402. }
  17403. return false;
  17404. }
  17405. function handleMouseEnter() {
  17406. hover.value = true;
  17407. if (props2.pauseOnHover) {
  17408. pauseTimer();
  17409. }
  17410. }
  17411. function handleMouseLeave() {
  17412. hover.value = false;
  17413. startTimer();
  17414. }
  17415. function handleButtonEnter(arrow3) {
  17416. if (unref(isVertical))
  17417. return;
  17418. items.value.forEach((item, index) => {
  17419. if (arrow3 === itemInStage(item, index)) {
  17420. item.states.hover = true;
  17421. }
  17422. });
  17423. }
  17424. function handleButtonLeave() {
  17425. if (unref(isVertical))
  17426. return;
  17427. items.value.forEach((item) => {
  17428. item.states.hover = false;
  17429. });
  17430. }
  17431. function handleIndicatorClick(index) {
  17432. activeIndex.value = index;
  17433. }
  17434. function handleIndicatorHover(index) {
  17435. if (props2.trigger === "hover" && index !== activeIndex.value) {
  17436. activeIndex.value = index;
  17437. }
  17438. }
  17439. function prev() {
  17440. setActiveItem(activeIndex.value - 1);
  17441. }
  17442. function next() {
  17443. setActiveItem(activeIndex.value + 1);
  17444. }
  17445. function resetTimer() {
  17446. pauseTimer();
  17447. if (!props2.pauseOnHover)
  17448. startTimer();
  17449. }
  17450. function setContainerHeight(height) {
  17451. if (props2.height !== "auto")
  17452. return;
  17453. containerHeight.value = height;
  17454. }
  17455. function PlaceholderItem() {
  17456. var _a2;
  17457. const defaultSlots = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
  17458. if (!defaultSlots)
  17459. return null;
  17460. const flatSlots = flattedChildren(defaultSlots);
  17461. const normalizeSlots = flatSlots.filter((slot) => {
  17462. return isVNode(slot) && slot.type.name === CAROUSEL_ITEM_NAME;
  17463. });
  17464. if ((normalizeSlots == null ? void 0 : normalizeSlots.length) === 2 && props2.loop && !isCardType.value) {
  17465. isItemsTwoLength.value = true;
  17466. return normalizeSlots;
  17467. }
  17468. isItemsTwoLength.value = false;
  17469. return null;
  17470. }
  17471. watch(() => activeIndex.value, (current, prev2) => {
  17472. resetItemPosition(prev2);
  17473. if (isItemsTwoLength.value) {
  17474. current = current % 2;
  17475. prev2 = prev2 % 2;
  17476. }
  17477. if (prev2 > -1) {
  17478. emit(CHANGE_EVENT, current, prev2);
  17479. }
  17480. });
  17481. const exposeActiveIndex = computed({
  17482. get: () => {
  17483. return isItemsTwoLength.value ? activeIndex.value % 2 : activeIndex.value;
  17484. },
  17485. set: (value) => activeIndex.value = value
  17486. });
  17487. watch(() => props2.autoplay, (autoplay) => {
  17488. autoplay ? startTimer() : pauseTimer();
  17489. });
  17490. watch(() => props2.loop, () => {
  17491. setActiveItem(activeIndex.value);
  17492. });
  17493. watch(() => props2.interval, () => {
  17494. resetTimer();
  17495. });
  17496. const resizeObserver = shallowRef();
  17497. onMounted(() => {
  17498. watch(() => items.value, () => {
  17499. if (items.value.length > 0)
  17500. setActiveItem(props2.initialIndex);
  17501. }, {
  17502. immediate: true
  17503. });
  17504. resizeObserver.value = useResizeObserver(root2.value, () => {
  17505. resetItemPosition();
  17506. });
  17507. startTimer();
  17508. });
  17509. onBeforeUnmount(() => {
  17510. pauseTimer();
  17511. if (root2.value && resizeObserver.value)
  17512. resizeObserver.value.stop();
  17513. });
  17514. provide(carouselContextKey, {
  17515. root: root2,
  17516. isCardType,
  17517. isVertical,
  17518. items,
  17519. loop: props2.loop,
  17520. cardScale: props2.cardScale,
  17521. addItem,
  17522. removeItem,
  17523. setActiveItem,
  17524. setContainerHeight
  17525. });
  17526. return {
  17527. root: root2,
  17528. activeIndex,
  17529. exposeActiveIndex,
  17530. arrowDisplay,
  17531. hasLabel,
  17532. hover,
  17533. isCardType,
  17534. items,
  17535. isVertical,
  17536. containerStyle,
  17537. isItemsTwoLength,
  17538. handleButtonEnter,
  17539. handleButtonLeave,
  17540. handleIndicatorClick,
  17541. handleMouseEnter,
  17542. handleMouseLeave,
  17543. setActiveItem,
  17544. prev,
  17545. next,
  17546. PlaceholderItem,
  17547. isTwoLengthShow,
  17548. ItemsSorter,
  17549. throttledArrowClick,
  17550. throttledIndicatorHover
  17551. };
  17552. };
  17553. // node_modules/element-plus/es/components/carousel/src/carousel2.mjs
  17554. var COMPONENT_NAME8 = "ElCarousel";
  17555. var __default__24 = defineComponent({
  17556. name: COMPONENT_NAME8
  17557. });
  17558. var _sfc_main28 = defineComponent({
  17559. ...__default__24,
  17560. props: carouselProps,
  17561. emits: carouselEmits,
  17562. setup(__props, { expose, emit }) {
  17563. const props2 = __props;
  17564. const {
  17565. root: root2,
  17566. activeIndex,
  17567. exposeActiveIndex,
  17568. arrowDisplay,
  17569. hasLabel,
  17570. hover,
  17571. isCardType,
  17572. items,
  17573. isVertical,
  17574. containerStyle,
  17575. handleButtonEnter,
  17576. handleButtonLeave,
  17577. handleIndicatorClick,
  17578. handleMouseEnter,
  17579. handleMouseLeave,
  17580. setActiveItem,
  17581. prev,
  17582. next,
  17583. PlaceholderItem,
  17584. isTwoLengthShow,
  17585. ItemsSorter,
  17586. throttledArrowClick,
  17587. throttledIndicatorHover
  17588. } = useCarousel(props2, emit, COMPONENT_NAME8);
  17589. const ns = useNamespace("carousel");
  17590. const { t } = useLocale();
  17591. const carouselClasses = computed(() => {
  17592. const classes = [ns.b(), ns.m(props2.direction)];
  17593. if (unref(isCardType)) {
  17594. classes.push(ns.m("card"));
  17595. }
  17596. return classes;
  17597. });
  17598. const indicatorsClasses = computed(() => {
  17599. const classes = [ns.e("indicators"), ns.em("indicators", props2.direction)];
  17600. if (unref(hasLabel)) {
  17601. classes.push(ns.em("indicators", "labels"));
  17602. }
  17603. if (props2.indicatorPosition === "outside") {
  17604. classes.push(ns.em("indicators", "outside"));
  17605. }
  17606. if (unref(isVertical)) {
  17607. classes.push(ns.em("indicators", "right"));
  17608. }
  17609. return classes;
  17610. });
  17611. function handleTransitionStart(e) {
  17612. if (!props2.motionBlur)
  17613. return;
  17614. const kls = unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`;
  17615. e.currentTarget.classList.add(kls);
  17616. }
  17617. function handleTransitionEnd(e) {
  17618. if (!props2.motionBlur)
  17619. return;
  17620. const kls = unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`;
  17621. e.currentTarget.classList.remove(kls);
  17622. }
  17623. expose({
  17624. activeIndex: exposeActiveIndex,
  17625. setActiveItem,
  17626. prev,
  17627. next
  17628. });
  17629. return (_ctx, _cache) => {
  17630. return openBlock(), createElementBlock("div", {
  17631. ref_key: "root",
  17632. ref: root2,
  17633. class: normalizeClass(unref(carouselClasses)),
  17634. onMouseenter: withModifiers(unref(handleMouseEnter), ["stop"]),
  17635. onMouseleave: withModifiers(unref(handleMouseLeave), ["stop"])
  17636. }, [
  17637. unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
  17638. key: 0,
  17639. name: "carousel-arrow-left",
  17640. persisted: ""
  17641. }, {
  17642. default: withCtx(() => [
  17643. withDirectives(createBaseVNode("button", {
  17644. type: "button",
  17645. class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
  17646. "aria-label": unref(t)("el.carousel.leftArrow"),
  17647. onMouseenter: ($event) => unref(handleButtonEnter)("left"),
  17648. onMouseleave: unref(handleButtonLeave),
  17649. onClick: withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"])
  17650. }, [
  17651. createVNode(unref(ElIcon), null, {
  17652. default: withCtx(() => [
  17653. createVNode(unref(arrow_left_default))
  17654. ]),
  17655. _: 1
  17656. })
  17657. ], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
  17658. [vShow, (_ctx.arrow === "always" || unref(hover)) && (_ctx.loop || unref(activeIndex) > 0)]
  17659. ])
  17660. ]),
  17661. _: 1
  17662. })) : createCommentVNode("v-if", true),
  17663. unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
  17664. key: 1,
  17665. name: "carousel-arrow-right",
  17666. persisted: ""
  17667. }, {
  17668. default: withCtx(() => [
  17669. withDirectives(createBaseVNode("button", {
  17670. type: "button",
  17671. class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
  17672. "aria-label": unref(t)("el.carousel.rightArrow"),
  17673. onMouseenter: ($event) => unref(handleButtonEnter)("right"),
  17674. onMouseleave: unref(handleButtonLeave),
  17675. onClick: withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"])
  17676. }, [
  17677. createVNode(unref(ElIcon), null, {
  17678. default: withCtx(() => [
  17679. createVNode(unref(arrow_right_default))
  17680. ]),
  17681. _: 1
  17682. })
  17683. ], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
  17684. [
  17685. vShow,
  17686. (_ctx.arrow === "always" || unref(hover)) && (_ctx.loop || unref(activeIndex) < unref(items).length - 1)
  17687. ]
  17688. ])
  17689. ]),
  17690. _: 1
  17691. })) : createCommentVNode("v-if", true),
  17692. createBaseVNode("div", {
  17693. class: normalizeClass(unref(ns).e("container")),
  17694. style: normalizeStyle(unref(containerStyle)),
  17695. onTransitionstart: handleTransitionStart,
  17696. onTransitionend: handleTransitionEnd
  17697. }, [
  17698. createVNode(unref(PlaceholderItem)),
  17699. renderSlot(_ctx.$slots, "default")
  17700. ], 38),
  17701. createVNode(unref(ItemsSorter), null, {
  17702. default: withCtx(() => [
  17703. _ctx.indicatorPosition !== "none" ? (openBlock(), createElementBlock("ul", {
  17704. key: 0,
  17705. class: normalizeClass(unref(indicatorsClasses))
  17706. }, [
  17707. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item, index) => {
  17708. return withDirectives((openBlock(), createElementBlock("li", {
  17709. key: index,
  17710. class: normalizeClass([
  17711. unref(ns).e("indicator"),
  17712. unref(ns).em("indicator", _ctx.direction),
  17713. unref(ns).is("active", index === unref(activeIndex))
  17714. ]),
  17715. onMouseenter: ($event) => unref(throttledIndicatorHover)(index),
  17716. onClick: withModifiers(($event) => unref(handleIndicatorClick)(index), ["stop"])
  17717. }, [
  17718. createBaseVNode("button", {
  17719. class: normalizeClass(unref(ns).e("button")),
  17720. "aria-label": unref(t)("el.carousel.indicator", { index: index + 1 })
  17721. }, [
  17722. unref(hasLabel) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
  17723. ], 10, ["aria-label"])
  17724. ], 42, ["onMouseenter", "onClick"])), [
  17725. [vShow, unref(isTwoLengthShow)(index)]
  17726. ]);
  17727. }), 128))
  17728. ], 2)) : createCommentVNode("v-if", true)
  17729. ]),
  17730. _: 1
  17731. }),
  17732. _ctx.motionBlur ? (openBlock(), createElementBlock("svg", {
  17733. key: 2,
  17734. xmlns: "http://www.w3.org/2000/svg",
  17735. version: "1.1",
  17736. style: { "display": "none" }
  17737. }, [
  17738. createBaseVNode("defs", null, [
  17739. createBaseVNode("filter", { id: "elCarouselHorizontal" }, [
  17740. createBaseVNode("feGaussianBlur", {
  17741. in: "SourceGraphic",
  17742. stdDeviation: "12,0"
  17743. })
  17744. ]),
  17745. createBaseVNode("filter", { id: "elCarouselVertical" }, [
  17746. createBaseVNode("feGaussianBlur", {
  17747. in: "SourceGraphic",
  17748. stdDeviation: "0,10"
  17749. })
  17750. ])
  17751. ])
  17752. ])) : createCommentVNode("v-if", true)
  17753. ], 42, ["onMouseenter", "onMouseleave"]);
  17754. };
  17755. }
  17756. });
  17757. var Carousel = _export_sfc(_sfc_main28, [["__file", "carousel.vue"]]);
  17758. // node_modules/element-plus/es/components/carousel/src/carousel-item2.mjs
  17759. var carouselItemProps = buildProps({
  17760. name: { type: String, default: "" },
  17761. label: {
  17762. type: [String, Number],
  17763. default: ""
  17764. }
  17765. });
  17766. // node_modules/element-plus/es/components/carousel/src/use-carousel-item.mjs
  17767. var useCarouselItem = (props2) => {
  17768. const carouselContext = inject(carouselContextKey);
  17769. const instance = getCurrentInstance();
  17770. if (!carouselContext) {
  17771. debugWarn(CAROUSEL_ITEM_NAME, "usage: <el-carousel></el-carousel-item></el-carousel>");
  17772. }
  17773. if (!instance) {
  17774. debugWarn(CAROUSEL_ITEM_NAME, "compositional hook can only be invoked inside setups");
  17775. }
  17776. const carouselItemRef = ref();
  17777. const hover = ref(false);
  17778. const translate2 = ref(0);
  17779. const scale = ref(1);
  17780. const active = ref(false);
  17781. const ready = ref(false);
  17782. const inStage = ref(false);
  17783. const animating = ref(false);
  17784. const { isCardType, isVertical, cardScale } = carouselContext;
  17785. function processIndex(index, activeIndex, length) {
  17786. const lastItemIndex = length - 1;
  17787. const prevItemIndex = activeIndex - 1;
  17788. const nextItemIndex = activeIndex + 1;
  17789. const halfItemIndex = length / 2;
  17790. if (activeIndex === 0 && index === lastItemIndex) {
  17791. return -1;
  17792. } else if (activeIndex === lastItemIndex && index === 0) {
  17793. return length;
  17794. } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
  17795. return length + 1;
  17796. } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
  17797. return -2;
  17798. }
  17799. return index;
  17800. }
  17801. function calcCardTranslate(index, activeIndex) {
  17802. var _a2, _b;
  17803. const parentWidth = unref(isVertical) ? ((_a2 = carouselContext.root.value) == null ? void 0 : _a2.offsetHeight) || 0 : ((_b = carouselContext.root.value) == null ? void 0 : _b.offsetWidth) || 0;
  17804. if (inStage.value) {
  17805. return parentWidth * ((2 - cardScale) * (index - activeIndex) + 1) / 4;
  17806. } else if (index < activeIndex) {
  17807. return -(1 + cardScale) * parentWidth / 4;
  17808. } else {
  17809. return (3 + cardScale) * parentWidth / 4;
  17810. }
  17811. }
  17812. function calcTranslate(index, activeIndex, isVertical2) {
  17813. const rootEl = carouselContext.root.value;
  17814. if (!rootEl)
  17815. return 0;
  17816. const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
  17817. return distance * (index - activeIndex);
  17818. }
  17819. const translateItem = (index, activeIndex, oldIndex) => {
  17820. var _a2;
  17821. const _isCardType = unref(isCardType);
  17822. const carouselItemLength = (_a2 = carouselContext.items.value.length) != null ? _a2 : Number.NaN;
  17823. const isActive = index === activeIndex;
  17824. if (!_isCardType && !isUndefined2(oldIndex)) {
  17825. animating.value = isActive || index === oldIndex;
  17826. }
  17827. if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
  17828. index = processIndex(index, activeIndex, carouselItemLength);
  17829. }
  17830. const _isVertical = unref(isVertical);
  17831. active.value = isActive;
  17832. if (_isCardType) {
  17833. inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
  17834. translate2.value = calcCardTranslate(index, activeIndex);
  17835. scale.value = unref(active) ? 1 : cardScale;
  17836. } else {
  17837. translate2.value = calcTranslate(index, activeIndex, _isVertical);
  17838. }
  17839. ready.value = true;
  17840. if (isActive && carouselItemRef.value) {
  17841. carouselContext.setContainerHeight(carouselItemRef.value.offsetHeight);
  17842. }
  17843. };
  17844. function handleItemClick() {
  17845. if (carouselContext && unref(isCardType)) {
  17846. const index = carouselContext.items.value.findIndex(({ uid: uid2 }) => uid2 === instance.uid);
  17847. carouselContext.setActiveItem(index);
  17848. }
  17849. }
  17850. const carouselItemContext = {
  17851. props: props2,
  17852. states: reactive({
  17853. hover,
  17854. translate: translate2,
  17855. scale,
  17856. active,
  17857. ready,
  17858. inStage,
  17859. animating
  17860. }),
  17861. uid: instance.uid,
  17862. getVnode: () => instance.vnode,
  17863. translateItem
  17864. };
  17865. carouselContext.addItem(carouselItemContext);
  17866. onBeforeUnmount(() => {
  17867. carouselContext.removeItem(carouselItemContext);
  17868. });
  17869. return {
  17870. carouselItemRef,
  17871. active,
  17872. animating,
  17873. hover,
  17874. inStage,
  17875. isVertical,
  17876. translate: translate2,
  17877. isCardType,
  17878. scale,
  17879. ready,
  17880. handleItemClick
  17881. };
  17882. };
  17883. // node_modules/element-plus/es/components/carousel/src/carousel-item.mjs
  17884. var __default__25 = defineComponent({
  17885. name: CAROUSEL_ITEM_NAME
  17886. });
  17887. var _sfc_main29 = defineComponent({
  17888. ...__default__25,
  17889. props: carouselItemProps,
  17890. setup(__props) {
  17891. const props2 = __props;
  17892. const ns = useNamespace("carousel");
  17893. const {
  17894. carouselItemRef,
  17895. active,
  17896. animating,
  17897. hover,
  17898. inStage,
  17899. isVertical,
  17900. translate: translate2,
  17901. isCardType,
  17902. scale,
  17903. ready,
  17904. handleItemClick
  17905. } = useCarouselItem(props2);
  17906. const itemKls = computed(() => [
  17907. ns.e("item"),
  17908. ns.is("active", active.value),
  17909. ns.is("in-stage", inStage.value),
  17910. ns.is("hover", hover.value),
  17911. ns.is("animating", animating.value),
  17912. {
  17913. [ns.em("item", "card")]: isCardType.value,
  17914. [ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
  17915. }
  17916. ]);
  17917. const itemStyle = computed(() => {
  17918. const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
  17919. const _translate = `${translateType}(${unref(translate2)}px)`;
  17920. const _scale = `scale(${unref(scale)})`;
  17921. const transform2 = [_translate, _scale].join(" ");
  17922. return {
  17923. transform: transform2
  17924. };
  17925. });
  17926. return (_ctx, _cache) => {
  17927. return withDirectives((openBlock(), createElementBlock("div", {
  17928. ref_key: "carouselItemRef",
  17929. ref: carouselItemRef,
  17930. class: normalizeClass(unref(itemKls)),
  17931. style: normalizeStyle(unref(itemStyle)),
  17932. onClick: unref(handleItemClick)
  17933. }, [
  17934. unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
  17935. key: 0,
  17936. class: normalizeClass(unref(ns).e("mask"))
  17937. }, null, 2)), [
  17938. [vShow, !unref(active)]
  17939. ]) : createCommentVNode("v-if", true),
  17940. renderSlot(_ctx.$slots, "default")
  17941. ], 14, ["onClick"])), [
  17942. [vShow, unref(ready)]
  17943. ]);
  17944. };
  17945. }
  17946. });
  17947. var CarouselItem = _export_sfc(_sfc_main29, [["__file", "carousel-item.vue"]]);
  17948. // node_modules/element-plus/es/components/carousel/index.mjs
  17949. var ElCarousel = withInstall(Carousel, {
  17950. CarouselItem
  17951. });
  17952. var ElCarouselItem = withNoopInstall(CarouselItem);
  17953. // node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
  17954. var checkboxProps = {
  17955. modelValue: {
  17956. type: [Number, String, Boolean],
  17957. default: void 0
  17958. },
  17959. label: {
  17960. type: [String, Boolean, Number, Object],
  17961. default: void 0
  17962. },
  17963. value: {
  17964. type: [String, Boolean, Number, Object],
  17965. default: void 0
  17966. },
  17967. indeterminate: Boolean,
  17968. disabled: Boolean,
  17969. checked: Boolean,
  17970. name: {
  17971. type: String,
  17972. default: void 0
  17973. },
  17974. trueValue: {
  17975. type: [String, Number],
  17976. default: void 0
  17977. },
  17978. falseValue: {
  17979. type: [String, Number],
  17980. default: void 0
  17981. },
  17982. trueLabel: {
  17983. type: [String, Number],
  17984. default: void 0
  17985. },
  17986. falseLabel: {
  17987. type: [String, Number],
  17988. default: void 0
  17989. },
  17990. id: {
  17991. type: String,
  17992. default: void 0
  17993. },
  17994. border: Boolean,
  17995. size: useSizeProp,
  17996. tabindex: [String, Number],
  17997. validateEvent: {
  17998. type: Boolean,
  17999. default: true
  18000. },
  18001. ...useAriaProps(["ariaControls"])
  18002. };
  18003. var checkboxEmits = {
  18004. [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val),
  18005. change: (val) => isString(val) || isNumber2(val) || isBoolean2(val)
  18006. };
  18007. // node_modules/element-plus/es/components/checkbox/src/constants.mjs
  18008. var checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
  18009. // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.mjs
  18010. var useCheckboxDisabled = ({
  18011. model,
  18012. isChecked
  18013. }) => {
  18014. const checkboxGroup = inject(checkboxGroupContextKey, void 0);
  18015. const isLimitDisabled = computed(() => {
  18016. var _a2, _b;
  18017. const max4 = (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a2.value;
  18018. const min4 = (_b = checkboxGroup == null ? void 0 : checkboxGroup.min) == null ? void 0 : _b.value;
  18019. return !isUndefined2(max4) && model.value.length >= max4 && !isChecked.value || !isUndefined2(min4) && model.value.length <= min4 && isChecked.value;
  18020. });
  18021. const isDisabled = useFormDisabled(computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.disabled.value) || isLimitDisabled.value));
  18022. return {
  18023. isDisabled,
  18024. isLimitDisabled
  18025. };
  18026. };
  18027. // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.mjs
  18028. var useCheckboxEvent = (props2, {
  18029. model,
  18030. isLimitExceeded,
  18031. hasOwnLabel,
  18032. isDisabled,
  18033. isLabeledByFormItem
  18034. }) => {
  18035. const checkboxGroup = inject(checkboxGroupContextKey, void 0);
  18036. const { formItem } = useFormItem();
  18037. const { emit } = getCurrentInstance();
  18038. function getLabeledValue(value) {
  18039. var _a2, _b, _c, _d;
  18040. return [true, props2.trueValue, props2.trueLabel].includes(value) ? (_b = (_a2 = props2.trueValue) != null ? _a2 : props2.trueLabel) != null ? _b : true : (_d = (_c = props2.falseValue) != null ? _c : props2.falseLabel) != null ? _d : false;
  18041. }
  18042. function emitChangeEvent(checked, e) {
  18043. emit(CHANGE_EVENT, getLabeledValue(checked), e);
  18044. }
  18045. function handleChange(e) {
  18046. if (isLimitExceeded.value)
  18047. return;
  18048. const target2 = e.target;
  18049. emit(CHANGE_EVENT, getLabeledValue(target2.checked), e);
  18050. }
  18051. async function onClickRoot(e) {
  18052. if (isLimitExceeded.value)
  18053. return;
  18054. if (!hasOwnLabel.value && !isDisabled.value && isLabeledByFormItem.value) {
  18055. const eventTargets = e.composedPath();
  18056. const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
  18057. if (!hasLabel) {
  18058. model.value = getLabeledValue([false, props2.falseValue, props2.falseLabel].includes(model.value));
  18059. await nextTick();
  18060. emitChangeEvent(model.value, e);
  18061. }
  18062. }
  18063. }
  18064. const validateEvent = computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props2.validateEvent);
  18065. watch(() => props2.modelValue, () => {
  18066. if (validateEvent.value) {
  18067. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  18068. }
  18069. });
  18070. return {
  18071. handleChange,
  18072. onClickRoot
  18073. };
  18074. };
  18075. // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.mjs
  18076. var useCheckboxModel = (props2) => {
  18077. const selfModel = ref(false);
  18078. const { emit } = getCurrentInstance();
  18079. const checkboxGroup = inject(checkboxGroupContextKey, void 0);
  18080. const isGroup = computed(() => isUndefined2(checkboxGroup) === false);
  18081. const isLimitExceeded = ref(false);
  18082. const model = computed({
  18083. get() {
  18084. var _a2, _b;
  18085. return isGroup.value ? (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.modelValue) == null ? void 0 : _a2.value : (_b = props2.modelValue) != null ? _b : selfModel.value;
  18086. },
  18087. set(val) {
  18088. var _a2, _b;
  18089. if (isGroup.value && isArray(val)) {
  18090. isLimitExceeded.value = ((_a2 = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a2.value) !== void 0 && val.length > (checkboxGroup == null ? void 0 : checkboxGroup.max.value) && val.length > model.value.length;
  18091. isLimitExceeded.value === false && ((_b = checkboxGroup == null ? void 0 : checkboxGroup.changeEvent) == null ? void 0 : _b.call(checkboxGroup, val));
  18092. } else {
  18093. emit(UPDATE_MODEL_EVENT, val);
  18094. selfModel.value = val;
  18095. }
  18096. }
  18097. });
  18098. return {
  18099. model,
  18100. isGroup,
  18101. isLimitExceeded
  18102. };
  18103. };
  18104. // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.mjs
  18105. var useCheckboxStatus = (props2, slots, { model }) => {
  18106. const checkboxGroup = inject(checkboxGroupContextKey, void 0);
  18107. const isFocused = ref(false);
  18108. const actualValue = computed(() => {
  18109. if (!isPropAbsent(props2.value)) {
  18110. return props2.value;
  18111. }
  18112. return props2.label;
  18113. });
  18114. const isChecked = computed(() => {
  18115. const value = model.value;
  18116. if (isBoolean2(value)) {
  18117. return value;
  18118. } else if (isArray(value)) {
  18119. if (isObject(actualValue.value)) {
  18120. return value.map(toRaw).some((o2) => isEqual_default(o2, actualValue.value));
  18121. } else {
  18122. return value.map(toRaw).includes(actualValue.value);
  18123. }
  18124. } else if (value !== null && value !== void 0) {
  18125. return value === props2.trueValue || value === props2.trueLabel;
  18126. } else {
  18127. return !!value;
  18128. }
  18129. });
  18130. const checkboxButtonSize = useFormSize(computed(() => {
  18131. var _a2;
  18132. return (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a2.value;
  18133. }), {
  18134. prop: true
  18135. });
  18136. const checkboxSize = useFormSize(computed(() => {
  18137. var _a2;
  18138. return (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a2.value;
  18139. }));
  18140. const hasOwnLabel = computed(() => {
  18141. return !!slots.default || !isPropAbsent(actualValue.value);
  18142. });
  18143. return {
  18144. checkboxButtonSize,
  18145. isChecked,
  18146. isFocused,
  18147. checkboxSize,
  18148. hasOwnLabel,
  18149. actualValue
  18150. };
  18151. };
  18152. // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.mjs
  18153. var useCheckbox = (props2, slots) => {
  18154. const { formItem: elFormItem } = useFormItem();
  18155. const { model, isGroup, isLimitExceeded } = useCheckboxModel(props2);
  18156. const {
  18157. isFocused,
  18158. isChecked,
  18159. checkboxButtonSize,
  18160. checkboxSize,
  18161. hasOwnLabel,
  18162. actualValue
  18163. } = useCheckboxStatus(props2, slots, { model });
  18164. const { isDisabled } = useCheckboxDisabled({ model, isChecked });
  18165. const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
  18166. formItemContext: elFormItem,
  18167. disableIdGeneration: hasOwnLabel,
  18168. disableIdManagement: isGroup
  18169. });
  18170. const { handleChange, onClickRoot } = useCheckboxEvent(props2, {
  18171. model,
  18172. isLimitExceeded,
  18173. hasOwnLabel,
  18174. isDisabled,
  18175. isLabeledByFormItem
  18176. });
  18177. const setStoreValue = () => {
  18178. function addToStore() {
  18179. var _a2, _b;
  18180. if (isArray(model.value) && !model.value.includes(actualValue.value)) {
  18181. model.value.push(actualValue.value);
  18182. } else {
  18183. model.value = (_b = (_a2 = props2.trueValue) != null ? _a2 : props2.trueLabel) != null ? _b : true;
  18184. }
  18185. }
  18186. props2.checked && addToStore();
  18187. };
  18188. setStoreValue();
  18189. useDeprecated({
  18190. from: "label act as value",
  18191. replacement: "value",
  18192. version: "3.0.0",
  18193. scope: "el-checkbox",
  18194. ref: "https://element-plus.org/en-US/component/checkbox.html"
  18195. }, computed(() => isGroup.value && isPropAbsent(props2.value)));
  18196. useDeprecated({
  18197. from: "true-label",
  18198. replacement: "true-value",
  18199. version: "3.0.0",
  18200. scope: "el-checkbox",
  18201. ref: "https://element-plus.org/en-US/component/checkbox.html"
  18202. }, computed(() => !!props2.trueLabel));
  18203. useDeprecated({
  18204. from: "false-label",
  18205. replacement: "false-value",
  18206. version: "3.0.0",
  18207. scope: "el-checkbox",
  18208. ref: "https://element-plus.org/en-US/component/checkbox.html"
  18209. }, computed(() => !!props2.falseLabel));
  18210. return {
  18211. inputId,
  18212. isLabeledByFormItem,
  18213. isChecked,
  18214. isDisabled,
  18215. isFocused,
  18216. checkboxButtonSize,
  18217. checkboxSize,
  18218. hasOwnLabel,
  18219. model,
  18220. actualValue,
  18221. handleChange,
  18222. onClickRoot
  18223. };
  18224. };
  18225. // node_modules/element-plus/es/components/checkbox/src/checkbox2.mjs
  18226. var __default__26 = defineComponent({
  18227. name: "ElCheckbox"
  18228. });
  18229. var _sfc_main30 = defineComponent({
  18230. ...__default__26,
  18231. props: checkboxProps,
  18232. emits: checkboxEmits,
  18233. setup(__props) {
  18234. const props2 = __props;
  18235. const slots = useSlots();
  18236. const {
  18237. inputId,
  18238. isLabeledByFormItem,
  18239. isChecked,
  18240. isDisabled,
  18241. isFocused,
  18242. checkboxSize,
  18243. hasOwnLabel,
  18244. model,
  18245. actualValue,
  18246. handleChange,
  18247. onClickRoot
  18248. } = useCheckbox(props2, slots);
  18249. const inputBindings = computed(() => {
  18250. var _a2, _b, _c, _d;
  18251. if (props2.trueValue || props2.falseValue || props2.trueLabel || props2.falseLabel) {
  18252. return {
  18253. "true-value": (_b = (_a2 = props2.trueValue) != null ? _a2 : props2.trueLabel) != null ? _b : true,
  18254. "false-value": (_d = (_c = props2.falseValue) != null ? _c : props2.falseLabel) != null ? _d : false
  18255. };
  18256. }
  18257. return {
  18258. value: actualValue.value
  18259. };
  18260. });
  18261. const ns = useNamespace("checkbox");
  18262. const compKls = computed(() => {
  18263. return [
  18264. ns.b(),
  18265. ns.m(checkboxSize.value),
  18266. ns.is("disabled", isDisabled.value),
  18267. ns.is("bordered", props2.border),
  18268. ns.is("checked", isChecked.value)
  18269. ];
  18270. });
  18271. const spanKls = computed(() => {
  18272. return [
  18273. ns.e("input"),
  18274. ns.is("disabled", isDisabled.value),
  18275. ns.is("checked", isChecked.value),
  18276. ns.is("indeterminate", props2.indeterminate),
  18277. ns.is("focus", isFocused.value)
  18278. ];
  18279. });
  18280. return (_ctx, _cache) => {
  18281. return openBlock(), createBlock(resolveDynamicComponent(!unref(hasOwnLabel) && unref(isLabeledByFormItem) ? "span" : "label"), {
  18282. class: normalizeClass(unref(compKls)),
  18283. "aria-controls": _ctx.indeterminate ? _ctx.ariaControls : null,
  18284. onClick: unref(onClickRoot)
  18285. }, {
  18286. default: withCtx(() => [
  18287. createBaseVNode("span", {
  18288. class: normalizeClass(unref(spanKls))
  18289. }, [
  18290. withDirectives(createBaseVNode("input", mergeProps({
  18291. id: unref(inputId),
  18292. "onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
  18293. class: unref(ns).e("original"),
  18294. type: "checkbox",
  18295. indeterminate: _ctx.indeterminate,
  18296. name: _ctx.name,
  18297. tabindex: _ctx.tabindex,
  18298. disabled: unref(isDisabled)
  18299. }, unref(inputBindings), {
  18300. onChange: unref(handleChange),
  18301. onFocus: ($event) => isFocused.value = true,
  18302. onBlur: ($event) => isFocused.value = false,
  18303. onClick: withModifiers(() => {
  18304. }, ["stop"])
  18305. }), null, 16, ["id", "onUpdate:modelValue", "indeterminate", "name", "tabindex", "disabled", "onChange", "onFocus", "onBlur", "onClick"]), [
  18306. [vModelCheckbox, unref(model)]
  18307. ]),
  18308. createBaseVNode("span", {
  18309. class: normalizeClass(unref(ns).e("inner"))
  18310. }, null, 2)
  18311. ], 2),
  18312. unref(hasOwnLabel) ? (openBlock(), createElementBlock("span", {
  18313. key: 0,
  18314. class: normalizeClass(unref(ns).e("label"))
  18315. }, [
  18316. renderSlot(_ctx.$slots, "default"),
  18317. !_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  18318. createTextVNode(toDisplayString(_ctx.label), 1)
  18319. ], 64)) : createCommentVNode("v-if", true)
  18320. ], 2)) : createCommentVNode("v-if", true)
  18321. ]),
  18322. _: 3
  18323. }, 8, ["class", "aria-controls", "onClick"]);
  18324. };
  18325. }
  18326. });
  18327. var Checkbox = _export_sfc(_sfc_main30, [["__file", "checkbox.vue"]]);
  18328. // node_modules/element-plus/es/components/checkbox/src/checkbox-button.mjs
  18329. var __default__27 = defineComponent({
  18330. name: "ElCheckboxButton"
  18331. });
  18332. var _sfc_main31 = defineComponent({
  18333. ...__default__27,
  18334. props: checkboxProps,
  18335. emits: checkboxEmits,
  18336. setup(__props) {
  18337. const props2 = __props;
  18338. const slots = useSlots();
  18339. const {
  18340. isFocused,
  18341. isChecked,
  18342. isDisabled,
  18343. checkboxButtonSize,
  18344. model,
  18345. actualValue,
  18346. handleChange
  18347. } = useCheckbox(props2, slots);
  18348. const inputBindings = computed(() => {
  18349. var _a2, _b, _c, _d;
  18350. if (props2.trueValue || props2.falseValue || props2.trueLabel || props2.falseLabel) {
  18351. return {
  18352. "true-value": (_b = (_a2 = props2.trueValue) != null ? _a2 : props2.trueLabel) != null ? _b : true,
  18353. "false-value": (_d = (_c = props2.falseValue) != null ? _c : props2.falseLabel) != null ? _d : false
  18354. };
  18355. }
  18356. return {
  18357. value: actualValue.value
  18358. };
  18359. });
  18360. const checkboxGroup = inject(checkboxGroupContextKey, void 0);
  18361. const ns = useNamespace("checkbox");
  18362. const activeStyle = computed(() => {
  18363. var _a2, _b, _c, _d;
  18364. const fillValue = (_b = (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a2.value) != null ? _b : "";
  18365. return {
  18366. backgroundColor: fillValue,
  18367. borderColor: fillValue,
  18368. color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
  18369. boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : void 0
  18370. };
  18371. });
  18372. const labelKls = computed(() => {
  18373. return [
  18374. ns.b("button"),
  18375. ns.bm("button", checkboxButtonSize.value),
  18376. ns.is("disabled", isDisabled.value),
  18377. ns.is("checked", isChecked.value),
  18378. ns.is("focus", isFocused.value)
  18379. ];
  18380. });
  18381. return (_ctx, _cache) => {
  18382. return openBlock(), createElementBlock("label", {
  18383. class: normalizeClass(unref(labelKls))
  18384. }, [
  18385. withDirectives(createBaseVNode("input", mergeProps({
  18386. "onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
  18387. class: unref(ns).be("button", "original"),
  18388. type: "checkbox",
  18389. name: _ctx.name,
  18390. tabindex: _ctx.tabindex,
  18391. disabled: unref(isDisabled)
  18392. }, unref(inputBindings), {
  18393. onChange: unref(handleChange),
  18394. onFocus: ($event) => isFocused.value = true,
  18395. onBlur: ($event) => isFocused.value = false,
  18396. onClick: withModifiers(() => {
  18397. }, ["stop"])
  18398. }), null, 16, ["onUpdate:modelValue", "name", "tabindex", "disabled", "onChange", "onFocus", "onBlur", "onClick"]), [
  18399. [vModelCheckbox, unref(model)]
  18400. ]),
  18401. _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
  18402. key: 0,
  18403. class: normalizeClass(unref(ns).be("button", "inner")),
  18404. style: normalizeStyle(unref(isChecked) ? unref(activeStyle) : void 0)
  18405. }, [
  18406. renderSlot(_ctx.$slots, "default", {}, () => [
  18407. createTextVNode(toDisplayString(_ctx.label), 1)
  18408. ])
  18409. ], 6)) : createCommentVNode("v-if", true)
  18410. ], 2);
  18411. };
  18412. }
  18413. });
  18414. var CheckboxButton = _export_sfc(_sfc_main31, [["__file", "checkbox-button.vue"]]);
  18415. // node_modules/element-plus/es/components/checkbox/src/checkbox-group.mjs
  18416. var checkboxGroupProps = buildProps({
  18417. modelValue: {
  18418. type: definePropType(Array),
  18419. default: () => []
  18420. },
  18421. disabled: Boolean,
  18422. min: Number,
  18423. max: Number,
  18424. size: useSizeProp,
  18425. fill: String,
  18426. textColor: String,
  18427. tag: {
  18428. type: String,
  18429. default: "div"
  18430. },
  18431. validateEvent: {
  18432. type: Boolean,
  18433. default: true
  18434. },
  18435. options: {
  18436. type: definePropType(Array)
  18437. },
  18438. props: {
  18439. type: definePropType(Object),
  18440. default: () => checkboxDefaultProps
  18441. },
  18442. type: {
  18443. type: String,
  18444. values: ["checkbox", "button"],
  18445. default: "checkbox"
  18446. },
  18447. ...useAriaProps(["ariaLabel"])
  18448. });
  18449. var checkboxGroupEmits = {
  18450. [UPDATE_MODEL_EVENT]: (val) => isArray(val),
  18451. change: (val) => isArray(val)
  18452. };
  18453. var checkboxDefaultProps = {
  18454. label: "label",
  18455. value: "value",
  18456. disabled: "disabled"
  18457. };
  18458. // node_modules/element-plus/es/components/checkbox/src/checkbox-group2.mjs
  18459. var __default__28 = defineComponent({
  18460. name: "ElCheckboxGroup"
  18461. });
  18462. var _sfc_main32 = defineComponent({
  18463. ...__default__28,
  18464. props: checkboxGroupProps,
  18465. emits: checkboxGroupEmits,
  18466. setup(__props, { emit }) {
  18467. const props2 = __props;
  18468. const ns = useNamespace("checkbox");
  18469. const { formItem } = useFormItem();
  18470. const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props2, {
  18471. formItemContext: formItem
  18472. });
  18473. const changeEvent = async (value) => {
  18474. emit(UPDATE_MODEL_EVENT, value);
  18475. await nextTick();
  18476. emit(CHANGE_EVENT, value);
  18477. };
  18478. const modelValue = computed({
  18479. get() {
  18480. return props2.modelValue;
  18481. },
  18482. set(val) {
  18483. changeEvent(val);
  18484. }
  18485. });
  18486. const aliasProps = computed(() => ({
  18487. ...checkboxDefaultProps,
  18488. ...props2.props
  18489. }));
  18490. const getOptionProps = (option) => {
  18491. const { label, value, disabled } = aliasProps.value;
  18492. const base = {
  18493. label: option[label],
  18494. value: option[value],
  18495. disabled: option[disabled]
  18496. };
  18497. return { ...omit_default(option, [label, value, disabled]), ...base };
  18498. };
  18499. const optionComponent = computed(() => props2.type === "button" ? CheckboxButton : Checkbox);
  18500. provide(checkboxGroupContextKey, {
  18501. ...pick_default(toRefs(props2), [
  18502. "size",
  18503. "min",
  18504. "max",
  18505. "disabled",
  18506. "validateEvent",
  18507. "fill",
  18508. "textColor"
  18509. ]),
  18510. modelValue,
  18511. changeEvent
  18512. });
  18513. watch(() => props2.modelValue, (newVal, oldValue) => {
  18514. if (props2.validateEvent && !isEqual_default(newVal, oldValue)) {
  18515. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  18516. }
  18517. });
  18518. return (_ctx, _cache) => {
  18519. var _a2;
  18520. return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
  18521. id: unref(groupId),
  18522. class: normalizeClass(unref(ns).b("group")),
  18523. role: "group",
  18524. "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "checkbox-group" : void 0,
  18525. "aria-labelledby": unref(isLabeledByFormItem) ? (_a2 = unref(formItem)) == null ? void 0 : _a2.labelId : void 0
  18526. }, {
  18527. default: withCtx(() => [
  18528. renderSlot(_ctx.$slots, "default", {}, () => [
  18529. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
  18530. return openBlock(), createBlock(resolveDynamicComponent(unref(optionComponent)), mergeProps({ key: index }, getOptionProps(item)), null, 16);
  18531. }), 128))
  18532. ])
  18533. ]),
  18534. _: 3
  18535. }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
  18536. };
  18537. }
  18538. });
  18539. var CheckboxGroup = _export_sfc(_sfc_main32, [["__file", "checkbox-group.vue"]]);
  18540. // node_modules/element-plus/es/components/checkbox/index.mjs
  18541. var ElCheckbox = withInstall(Checkbox, {
  18542. CheckboxButton,
  18543. CheckboxGroup
  18544. });
  18545. var ElCheckboxButton = withNoopInstall(CheckboxButton);
  18546. var ElCheckboxGroup = withNoopInstall(CheckboxGroup);
  18547. // node_modules/element-plus/es/components/radio/src/radio.mjs
  18548. var radioPropsBase = buildProps({
  18549. modelValue: {
  18550. type: [String, Number, Boolean],
  18551. default: void 0
  18552. },
  18553. size: useSizeProp,
  18554. disabled: Boolean,
  18555. label: {
  18556. type: [String, Number, Boolean],
  18557. default: void 0
  18558. },
  18559. value: {
  18560. type: [String, Number, Boolean],
  18561. default: void 0
  18562. },
  18563. name: {
  18564. type: String,
  18565. default: void 0
  18566. }
  18567. });
  18568. var radioProps = buildProps({
  18569. ...radioPropsBase,
  18570. border: Boolean
  18571. });
  18572. var radioEmits = {
  18573. [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val),
  18574. [CHANGE_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val)
  18575. };
  18576. // node_modules/element-plus/es/components/radio/src/constants.mjs
  18577. var radioGroupKey = Symbol("radioGroupKey");
  18578. // node_modules/element-plus/es/components/radio/src/use-radio.mjs
  18579. var useRadio = (props2, emit) => {
  18580. const radioRef = ref();
  18581. const radioGroup = inject(radioGroupKey, void 0);
  18582. const isGroup = computed(() => !!radioGroup);
  18583. const actualValue = computed(() => {
  18584. if (!isPropAbsent(props2.value)) {
  18585. return props2.value;
  18586. }
  18587. return props2.label;
  18588. });
  18589. const modelValue = computed({
  18590. get() {
  18591. return isGroup.value ? radioGroup.modelValue : props2.modelValue;
  18592. },
  18593. set(val) {
  18594. if (isGroup.value) {
  18595. radioGroup.changeEvent(val);
  18596. } else {
  18597. emit && emit(UPDATE_MODEL_EVENT, val);
  18598. }
  18599. radioRef.value.checked = props2.modelValue === actualValue.value;
  18600. }
  18601. });
  18602. const size3 = useFormSize(computed(() => radioGroup == null ? void 0 : radioGroup.size));
  18603. const disabled = useFormDisabled(computed(() => radioGroup == null ? void 0 : radioGroup.disabled));
  18604. const focus = ref(false);
  18605. const tabIndex = computed(() => {
  18606. return disabled.value || isGroup.value && modelValue.value !== actualValue.value ? -1 : 0;
  18607. });
  18608. useDeprecated({
  18609. from: "label act as value",
  18610. replacement: "value",
  18611. version: "3.0.0",
  18612. scope: "el-radio",
  18613. ref: "https://element-plus.org/en-US/component/radio.html"
  18614. }, computed(() => isGroup.value && isPropAbsent(props2.value)));
  18615. return {
  18616. radioRef,
  18617. isGroup,
  18618. radioGroup,
  18619. focus,
  18620. size: size3,
  18621. disabled,
  18622. tabIndex,
  18623. modelValue,
  18624. actualValue
  18625. };
  18626. };
  18627. // node_modules/element-plus/es/components/radio/src/radio2.mjs
  18628. var __default__29 = defineComponent({
  18629. name: "ElRadio"
  18630. });
  18631. var _sfc_main33 = defineComponent({
  18632. ...__default__29,
  18633. props: radioProps,
  18634. emits: radioEmits,
  18635. setup(__props, { emit }) {
  18636. const props2 = __props;
  18637. const ns = useNamespace("radio");
  18638. const { radioRef, radioGroup, focus, size: size3, disabled, modelValue, actualValue } = useRadio(props2, emit);
  18639. function handleChange() {
  18640. nextTick(() => emit(CHANGE_EVENT, modelValue.value));
  18641. }
  18642. return (_ctx, _cache) => {
  18643. var _a2;
  18644. return openBlock(), createElementBlock("label", {
  18645. class: normalizeClass([
  18646. unref(ns).b(),
  18647. unref(ns).is("disabled", unref(disabled)),
  18648. unref(ns).is("focus", unref(focus)),
  18649. unref(ns).is("bordered", _ctx.border),
  18650. unref(ns).is("checked", unref(modelValue) === unref(actualValue)),
  18651. unref(ns).m(unref(size3))
  18652. ])
  18653. }, [
  18654. createBaseVNode("span", {
  18655. class: normalizeClass([
  18656. unref(ns).e("input"),
  18657. unref(ns).is("disabled", unref(disabled)),
  18658. unref(ns).is("checked", unref(modelValue) === unref(actualValue))
  18659. ])
  18660. }, [
  18661. withDirectives(createBaseVNode("input", {
  18662. ref_key: "radioRef",
  18663. ref: radioRef,
  18664. "onUpdate:modelValue": ($event) => isRef(modelValue) ? modelValue.value = $event : null,
  18665. class: normalizeClass(unref(ns).e("original")),
  18666. value: unref(actualValue),
  18667. name: _ctx.name || ((_a2 = unref(radioGroup)) == null ? void 0 : _a2.name),
  18668. disabled: unref(disabled),
  18669. checked: unref(modelValue) === unref(actualValue),
  18670. type: "radio",
  18671. onFocus: ($event) => focus.value = true,
  18672. onBlur: ($event) => focus.value = false,
  18673. onChange: handleChange,
  18674. onClick: withModifiers(() => {
  18675. }, ["stop"])
  18676. }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
  18677. [vModelRadio, unref(modelValue)]
  18678. ]),
  18679. createBaseVNode("span", {
  18680. class: normalizeClass(unref(ns).e("inner"))
  18681. }, null, 2)
  18682. ], 2),
  18683. createBaseVNode("span", {
  18684. class: normalizeClass(unref(ns).e("label")),
  18685. onKeydown: withModifiers(() => {
  18686. }, ["stop"])
  18687. }, [
  18688. renderSlot(_ctx.$slots, "default", {}, () => [
  18689. createTextVNode(toDisplayString(_ctx.label), 1)
  18690. ])
  18691. ], 42, ["onKeydown"])
  18692. ], 2);
  18693. };
  18694. }
  18695. });
  18696. var Radio = _export_sfc(_sfc_main33, [["__file", "radio.vue"]]);
  18697. // node_modules/element-plus/es/components/radio/src/radio-button.mjs
  18698. var radioButtonProps = buildProps({
  18699. ...radioPropsBase
  18700. });
  18701. // node_modules/element-plus/es/components/radio/src/radio-button2.mjs
  18702. var __default__30 = defineComponent({
  18703. name: "ElRadioButton"
  18704. });
  18705. var _sfc_main34 = defineComponent({
  18706. ...__default__30,
  18707. props: radioButtonProps,
  18708. setup(__props) {
  18709. const props2 = __props;
  18710. const ns = useNamespace("radio");
  18711. const { radioRef, focus, size: size3, disabled, modelValue, radioGroup, actualValue } = useRadio(props2);
  18712. const activeStyle = computed(() => {
  18713. return {
  18714. backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
  18715. borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
  18716. boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
  18717. color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
  18718. };
  18719. });
  18720. return (_ctx, _cache) => {
  18721. var _a2;
  18722. return openBlock(), createElementBlock("label", {
  18723. class: normalizeClass([
  18724. unref(ns).b("button"),
  18725. unref(ns).is("active", unref(modelValue) === unref(actualValue)),
  18726. unref(ns).is("disabled", unref(disabled)),
  18727. unref(ns).is("focus", unref(focus)),
  18728. unref(ns).bm("button", unref(size3))
  18729. ])
  18730. }, [
  18731. withDirectives(createBaseVNode("input", {
  18732. ref_key: "radioRef",
  18733. ref: radioRef,
  18734. "onUpdate:modelValue": ($event) => isRef(modelValue) ? modelValue.value = $event : null,
  18735. class: normalizeClass(unref(ns).be("button", "original-radio")),
  18736. value: unref(actualValue),
  18737. type: "radio",
  18738. name: _ctx.name || ((_a2 = unref(radioGroup)) == null ? void 0 : _a2.name),
  18739. disabled: unref(disabled),
  18740. onFocus: ($event) => focus.value = true,
  18741. onBlur: ($event) => focus.value = false,
  18742. onClick: withModifiers(() => {
  18743. }, ["stop"])
  18744. }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
  18745. [vModelRadio, unref(modelValue)]
  18746. ]),
  18747. createBaseVNode("span", {
  18748. class: normalizeClass(unref(ns).be("button", "inner")),
  18749. style: normalizeStyle(unref(modelValue) === unref(actualValue) ? unref(activeStyle) : {}),
  18750. onKeydown: withModifiers(() => {
  18751. }, ["stop"])
  18752. }, [
  18753. renderSlot(_ctx.$slots, "default", {}, () => [
  18754. createTextVNode(toDisplayString(_ctx.label), 1)
  18755. ])
  18756. ], 46, ["onKeydown"])
  18757. ], 2);
  18758. };
  18759. }
  18760. });
  18761. var RadioButton = _export_sfc(_sfc_main34, [["__file", "radio-button.vue"]]);
  18762. // node_modules/element-plus/es/components/radio/src/radio-group.mjs
  18763. var radioGroupProps = buildProps({
  18764. id: {
  18765. type: String,
  18766. default: void 0
  18767. },
  18768. size: useSizeProp,
  18769. disabled: Boolean,
  18770. modelValue: {
  18771. type: [String, Number, Boolean],
  18772. default: void 0
  18773. },
  18774. fill: {
  18775. type: String,
  18776. default: ""
  18777. },
  18778. textColor: {
  18779. type: String,
  18780. default: ""
  18781. },
  18782. name: {
  18783. type: String,
  18784. default: void 0
  18785. },
  18786. validateEvent: {
  18787. type: Boolean,
  18788. default: true
  18789. },
  18790. options: {
  18791. type: definePropType(Array)
  18792. },
  18793. props: {
  18794. type: definePropType(Object),
  18795. default: () => radioDefaultProps
  18796. },
  18797. type: {
  18798. type: String,
  18799. values: ["radio", "button"],
  18800. default: "radio"
  18801. },
  18802. ...useAriaProps(["ariaLabel"])
  18803. });
  18804. var radioGroupEmits = radioEmits;
  18805. var radioDefaultProps = {
  18806. label: "label",
  18807. value: "value",
  18808. disabled: "disabled"
  18809. };
  18810. // node_modules/element-plus/es/components/radio/src/radio-group2.mjs
  18811. var __default__31 = defineComponent({
  18812. name: "ElRadioGroup"
  18813. });
  18814. var _sfc_main35 = defineComponent({
  18815. ...__default__31,
  18816. props: radioGroupProps,
  18817. emits: radioGroupEmits,
  18818. setup(__props, { emit }) {
  18819. const props2 = __props;
  18820. const ns = useNamespace("radio");
  18821. const radioId = useId();
  18822. const radioGroupRef = ref();
  18823. const { formItem } = useFormItem();
  18824. const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props2, {
  18825. formItemContext: formItem
  18826. });
  18827. const changeEvent = (value) => {
  18828. emit(UPDATE_MODEL_EVENT, value);
  18829. nextTick(() => emit(CHANGE_EVENT, value));
  18830. };
  18831. onMounted(() => {
  18832. const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
  18833. const firstLabel = radios[0];
  18834. if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
  18835. firstLabel.tabIndex = 0;
  18836. }
  18837. });
  18838. const name = computed(() => {
  18839. return props2.name || radioId.value;
  18840. });
  18841. const aliasProps = computed(() => ({
  18842. ...radioDefaultProps,
  18843. ...props2.props
  18844. }));
  18845. const getOptionProps = (option) => {
  18846. const { label, value, disabled } = aliasProps.value;
  18847. const base = {
  18848. label: option[label],
  18849. value: option[value],
  18850. disabled: option[disabled]
  18851. };
  18852. return { ...omit_default(option, [label, value, disabled]), ...base };
  18853. };
  18854. const optionComponent = computed(() => props2.type === "button" ? RadioButton : Radio);
  18855. provide(radioGroupKey, reactive({
  18856. ...toRefs(props2),
  18857. changeEvent,
  18858. name
  18859. }));
  18860. watch(() => props2.modelValue, (newVal, oldValue) => {
  18861. if (props2.validateEvent && !isEqual_default(newVal, oldValue)) {
  18862. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  18863. }
  18864. });
  18865. return (_ctx, _cache) => {
  18866. return openBlock(), createElementBlock("div", {
  18867. id: unref(groupId),
  18868. ref_key: "radioGroupRef",
  18869. ref: radioGroupRef,
  18870. class: normalizeClass(unref(ns).b("group")),
  18871. role: "radiogroup",
  18872. "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "radio-group" : void 0,
  18873. "aria-labelledby": unref(isLabeledByFormItem) ? unref(formItem).labelId : void 0
  18874. }, [
  18875. renderSlot(_ctx.$slots, "default", {}, () => [
  18876. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
  18877. return openBlock(), createBlock(resolveDynamicComponent(unref(optionComponent)), mergeProps({ key: index }, getOptionProps(item)), null, 16);
  18878. }), 128))
  18879. ])
  18880. ], 10, ["id", "aria-label", "aria-labelledby"]);
  18881. };
  18882. }
  18883. });
  18884. var RadioGroup = _export_sfc(_sfc_main35, [["__file", "radio-group.vue"]]);
  18885. // node_modules/element-plus/es/components/radio/index.mjs
  18886. var ElRadio = withInstall(Radio, {
  18887. RadioButton,
  18888. RadioGroup
  18889. });
  18890. var ElRadioGroup = withNoopInstall(RadioGroup);
  18891. var ElRadioButton = withNoopInstall(RadioButton);
  18892. // node_modules/element-plus/es/components/cascader-panel/src/types.mjs
  18893. var CASCADER_PANEL_INJECTION_KEY = Symbol();
  18894. // node_modules/element-plus/es/components/cascader-panel/src/node-content.mjs
  18895. function isVNodeEmpty(vnodes) {
  18896. return !!(isArray(vnodes) ? vnodes.every(({
  18897. type: type4
  18898. }) => type4 === Comment) : (vnodes == null ? void 0 : vnodes.type) === Comment);
  18899. }
  18900. var NodeContent = defineComponent({
  18901. name: "NodeContent",
  18902. props: {
  18903. node: {
  18904. type: Object,
  18905. required: true
  18906. }
  18907. },
  18908. setup(props2) {
  18909. const ns = useNamespace("cascader-node");
  18910. const {
  18911. renderLabelFn
  18912. } = inject(CASCADER_PANEL_INJECTION_KEY);
  18913. const {
  18914. node
  18915. } = props2;
  18916. const {
  18917. data,
  18918. label: nodeLabel
  18919. } = node;
  18920. const label = () => {
  18921. const renderLabel = renderLabelFn == null ? void 0 : renderLabelFn({
  18922. node,
  18923. data
  18924. });
  18925. return isVNodeEmpty(renderLabel) ? nodeLabel : renderLabel != null ? renderLabel : nodeLabel;
  18926. };
  18927. return () => createVNode("span", {
  18928. "class": ns.e("label")
  18929. }, [label()]);
  18930. }
  18931. });
  18932. // node_modules/element-plus/es/components/cascader-panel/src/node2.mjs
  18933. var __default__32 = defineComponent({
  18934. name: "ElCascaderNode"
  18935. });
  18936. var _sfc_main36 = defineComponent({
  18937. ...__default__32,
  18938. props: {
  18939. node: {
  18940. type: Object,
  18941. required: true
  18942. },
  18943. menuId: String
  18944. },
  18945. emits: ["expand"],
  18946. setup(__props, { emit }) {
  18947. const props2 = __props;
  18948. const panel = inject(CASCADER_PANEL_INJECTION_KEY);
  18949. const ns = useNamespace("cascader-node");
  18950. const isHoverMenu = computed(() => panel.isHoverMenu);
  18951. const multiple = computed(() => panel.config.multiple);
  18952. const checkStrictly = computed(() => panel.config.checkStrictly);
  18953. const showPrefix = computed(() => panel.config.showPrefix);
  18954. const checkedNodeId = computed(() => {
  18955. var _a2;
  18956. return (_a2 = panel.checkedNodes[0]) == null ? void 0 : _a2.uid;
  18957. });
  18958. const isDisabled = computed(() => props2.node.isDisabled);
  18959. const isLeaf2 = computed(() => props2.node.isLeaf);
  18960. const expandable = computed(() => checkStrictly.value && !isLeaf2.value || !isDisabled.value);
  18961. const inExpandingPath = computed(() => isInPath(panel.expandingNode));
  18962. const inCheckedPath = computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
  18963. const isInPath = (node) => {
  18964. var _a2;
  18965. const { level, uid: uid2 } = props2.node;
  18966. return ((_a2 = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a2.uid) === uid2;
  18967. };
  18968. const doExpand = () => {
  18969. if (inExpandingPath.value)
  18970. return;
  18971. panel.expandNode(props2.node);
  18972. };
  18973. const doCheck = (checked) => {
  18974. const { node } = props2;
  18975. if (checked === node.checked)
  18976. return;
  18977. panel.handleCheckChange(node, checked);
  18978. };
  18979. const doLoad = () => {
  18980. panel.lazyLoad(props2.node, () => {
  18981. if (!isLeaf2.value)
  18982. doExpand();
  18983. });
  18984. };
  18985. const handleHoverExpand = (e) => {
  18986. if (!isHoverMenu.value)
  18987. return;
  18988. handleExpand();
  18989. !isLeaf2.value && emit("expand", e);
  18990. };
  18991. const handleExpand = () => {
  18992. const { node } = props2;
  18993. if (!expandable.value || node.loading)
  18994. return;
  18995. node.loaded ? doExpand() : doLoad();
  18996. };
  18997. const handleClick = () => {
  18998. if (isLeaf2.value && !isDisabled.value && !checkStrictly.value && !multiple.value) {
  18999. handleCheck(true);
  19000. } else if ((panel.config.checkOnClickNode && (multiple.value || checkStrictly.value) || isLeaf2.value && panel.config.checkOnClickLeaf) && !isDisabled.value) {
  19001. handleSelectCheck(!props2.node.checked);
  19002. } else if (!isHoverMenu.value) {
  19003. handleExpand();
  19004. }
  19005. };
  19006. const handleSelectCheck = (checked) => {
  19007. if (checkStrictly.value) {
  19008. doCheck(checked);
  19009. if (props2.node.loaded) {
  19010. doExpand();
  19011. }
  19012. } else {
  19013. handleCheck(checked);
  19014. }
  19015. };
  19016. const handleCheck = (checked) => {
  19017. if (!props2.node.loaded) {
  19018. doLoad();
  19019. } else {
  19020. doCheck(checked);
  19021. !checkStrictly.value && doExpand();
  19022. }
  19023. };
  19024. return (_ctx, _cache) => {
  19025. return openBlock(), createElementBlock("li", {
  19026. id: `${__props.menuId}-${__props.node.uid}`,
  19027. role: "menuitem",
  19028. "aria-haspopup": !unref(isLeaf2),
  19029. "aria-owns": unref(isLeaf2) ? void 0 : __props.menuId,
  19030. "aria-expanded": unref(inExpandingPath),
  19031. tabindex: unref(expandable) ? -1 : void 0,
  19032. class: normalizeClass([
  19033. unref(ns).b(),
  19034. unref(ns).is("selectable", unref(checkStrictly)),
  19035. unref(ns).is("active", __props.node.checked),
  19036. unref(ns).is("disabled", !unref(expandable)),
  19037. unref(inExpandingPath) && "in-active-path",
  19038. unref(inCheckedPath) && "in-checked-path"
  19039. ]),
  19040. onMouseenter: handleHoverExpand,
  19041. onFocus: handleHoverExpand,
  19042. onClick: handleClick
  19043. }, [
  19044. createCommentVNode(" prefix "),
  19045. unref(multiple) && unref(showPrefix) ? (openBlock(), createBlock(unref(ElCheckbox), {
  19046. key: 0,
  19047. "model-value": __props.node.checked,
  19048. indeterminate: __props.node.indeterminate,
  19049. disabled: unref(isDisabled),
  19050. onClick: withModifiers(() => {
  19051. }, ["stop"]),
  19052. "onUpdate:modelValue": handleSelectCheck
  19053. }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : unref(checkStrictly) && unref(showPrefix) ? (openBlock(), createBlock(unref(ElRadio), {
  19054. key: 1,
  19055. "model-value": unref(checkedNodeId),
  19056. label: __props.node.uid,
  19057. disabled: unref(isDisabled),
  19058. "onUpdate:modelValue": handleSelectCheck,
  19059. onClick: withModifiers(() => {
  19060. }, ["stop"])
  19061. }, {
  19062. default: withCtx(() => [
  19063. createCommentVNode("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),
  19064. createBaseVNode("span")
  19065. ]),
  19066. _: 1
  19067. }, 8, ["model-value", "label", "disabled", "onClick"])) : unref(isLeaf2) && __props.node.checked ? (openBlock(), createBlock(unref(ElIcon), {
  19068. key: 2,
  19069. class: normalizeClass(unref(ns).e("prefix"))
  19070. }, {
  19071. default: withCtx(() => [
  19072. createVNode(unref(check_default))
  19073. ]),
  19074. _: 1
  19075. }, 8, ["class"])) : createCommentVNode("v-if", true),
  19076. createCommentVNode(" content "),
  19077. createVNode(unref(NodeContent), { node: __props.node }, null, 8, ["node"]),
  19078. createCommentVNode(" postfix "),
  19079. !unref(isLeaf2) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
  19080. __props.node.loading ? (openBlock(), createBlock(unref(ElIcon), {
  19081. key: 0,
  19082. class: normalizeClass([unref(ns).is("loading"), unref(ns).e("postfix")])
  19083. }, {
  19084. default: withCtx(() => [
  19085. createVNode(unref(loading_default))
  19086. ]),
  19087. _: 1
  19088. }, 8, ["class"])) : (openBlock(), createBlock(unref(ElIcon), {
  19089. key: 1,
  19090. class: normalizeClass(["arrow-right", unref(ns).e("postfix")])
  19091. }, {
  19092. default: withCtx(() => [
  19093. createVNode(unref(arrow_right_default))
  19094. ]),
  19095. _: 1
  19096. }, 8, ["class"]))
  19097. ], 64)) : createCommentVNode("v-if", true)
  19098. ], 42, ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"]);
  19099. };
  19100. }
  19101. });
  19102. var ElCascaderNode = _export_sfc(_sfc_main36, [["__file", "node.vue"]]);
  19103. // node_modules/element-plus/es/components/cascader-panel/src/menu.mjs
  19104. var __default__33 = defineComponent({
  19105. name: "ElCascaderMenu"
  19106. });
  19107. var _sfc_main37 = defineComponent({
  19108. ...__default__33,
  19109. props: {
  19110. nodes: {
  19111. type: Array,
  19112. required: true
  19113. },
  19114. index: {
  19115. type: Number,
  19116. required: true
  19117. }
  19118. },
  19119. setup(__props) {
  19120. const props2 = __props;
  19121. const instance = getCurrentInstance();
  19122. const ns = useNamespace("cascader-menu");
  19123. const { t } = useLocale();
  19124. const id = useId();
  19125. let activeNode;
  19126. let hoverTimer;
  19127. const panel = inject(CASCADER_PANEL_INJECTION_KEY);
  19128. const hoverZone = ref();
  19129. const isEmpty3 = computed(() => !props2.nodes.length);
  19130. const isLoading = computed(() => !panel.initialLoaded);
  19131. const menuId = computed(() => `${id.value}-${props2.index}`);
  19132. const handleExpand = (e) => {
  19133. activeNode = e.target;
  19134. };
  19135. const handleMouseMove = (e) => {
  19136. if (!panel.isHoverMenu || !activeNode || !hoverZone.value)
  19137. return;
  19138. if (activeNode.contains(e.target)) {
  19139. clearHoverTimer();
  19140. const el = instance.vnode.el;
  19141. const { left } = el.getBoundingClientRect();
  19142. const { offsetWidth, offsetHeight } = el;
  19143. const startX = e.clientX - left;
  19144. const top = activeNode.offsetTop;
  19145. const bottom = top + activeNode.offsetHeight;
  19146. hoverZone.value.innerHTML = `
  19147. <path style="pointer-events: auto;" fill="transparent" d="M${startX} ${top} L${offsetWidth} 0 V${top} Z" />
  19148. <path style="pointer-events: auto;" fill="transparent" d="M${startX} ${bottom} L${offsetWidth} ${offsetHeight} V${bottom} Z" />
  19149. `;
  19150. } else if (!hoverTimer) {
  19151. hoverTimer = window.setTimeout(clearHoverZone, panel.config.hoverThreshold);
  19152. }
  19153. };
  19154. const clearHoverTimer = () => {
  19155. if (!hoverTimer)
  19156. return;
  19157. clearTimeout(hoverTimer);
  19158. hoverTimer = void 0;
  19159. };
  19160. const clearHoverZone = () => {
  19161. if (!hoverZone.value)
  19162. return;
  19163. hoverZone.value.innerHTML = "";
  19164. clearHoverTimer();
  19165. };
  19166. return (_ctx, _cache) => {
  19167. return openBlock(), createBlock(unref(ElScrollbar), {
  19168. key: unref(menuId),
  19169. tag: "ul",
  19170. role: "menu",
  19171. class: normalizeClass(unref(ns).b()),
  19172. "wrap-class": unref(ns).e("wrap"),
  19173. "view-class": [unref(ns).e("list"), unref(ns).is("empty", unref(isEmpty3))],
  19174. onMousemove: handleMouseMove,
  19175. onMouseleave: clearHoverZone
  19176. }, {
  19177. default: withCtx(() => {
  19178. var _a2;
  19179. return [
  19180. (openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes, (node) => {
  19181. return openBlock(), createBlock(ElCascaderNode, {
  19182. key: node.uid,
  19183. node,
  19184. "menu-id": unref(menuId),
  19185. onExpand: handleExpand
  19186. }, null, 8, ["node", "menu-id"]);
  19187. }), 128)),
  19188. unref(isLoading) ? (openBlock(), createElementBlock("div", {
  19189. key: 0,
  19190. class: normalizeClass(unref(ns).e("empty-text"))
  19191. }, [
  19192. createVNode(unref(ElIcon), {
  19193. size: "14",
  19194. class: normalizeClass(unref(ns).is("loading"))
  19195. }, {
  19196. default: withCtx(() => [
  19197. createVNode(unref(loading_default))
  19198. ]),
  19199. _: 1
  19200. }, 8, ["class"]),
  19201. createTextVNode(" " + toDisplayString(unref(t)("el.cascader.loading")), 1)
  19202. ], 2)) : unref(isEmpty3) ? (openBlock(), createElementBlock("div", {
  19203. key: 1,
  19204. class: normalizeClass(unref(ns).e("empty-text"))
  19205. }, [
  19206. renderSlot(_ctx.$slots, "empty", {}, () => [
  19207. createTextVNode(toDisplayString(unref(t)("el.cascader.noData")), 1)
  19208. ])
  19209. ], 2)) : ((_a2 = unref(panel)) == null ? void 0 : _a2.isHoverMenu) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
  19210. createCommentVNode(" eslint-disable-next-line vue/html-self-closing "),
  19211. (openBlock(), createElementBlock("svg", {
  19212. ref_key: "hoverZone",
  19213. ref: hoverZone,
  19214. class: normalizeClass(unref(ns).e("hover-zone"))
  19215. }, null, 2))
  19216. ], 2112)) : createCommentVNode("v-if", true)
  19217. ];
  19218. }),
  19219. _: 3
  19220. }, 8, ["class", "wrap-class", "view-class"]);
  19221. };
  19222. }
  19223. });
  19224. var ElCascaderMenu = _export_sfc(_sfc_main37, [["__file", "menu.vue"]]);
  19225. // node_modules/element-plus/es/components/cascader-panel/src/node.mjs
  19226. var uid = 0;
  19227. var calculatePathNodes = (node) => {
  19228. const nodes = [node];
  19229. let { parent: parent2 } = node;
  19230. while (parent2) {
  19231. nodes.unshift(parent2);
  19232. parent2 = parent2.parent;
  19233. }
  19234. return nodes;
  19235. };
  19236. var Node2 = class _Node {
  19237. constructor(data, config, parent2, root2 = false) {
  19238. this.data = data;
  19239. this.config = config;
  19240. this.parent = parent2;
  19241. this.root = root2;
  19242. this.uid = uid++;
  19243. this.checked = false;
  19244. this.indeterminate = false;
  19245. this.loading = false;
  19246. const { value: valueKey, label: labelKey, children: childrenKey } = config;
  19247. const childrenData = data[childrenKey];
  19248. const pathNodes = calculatePathNodes(this);
  19249. this.level = root2 ? 0 : parent2 ? parent2.level + 1 : 1;
  19250. this.value = data[valueKey];
  19251. this.label = data[labelKey];
  19252. this.pathNodes = pathNodes;
  19253. this.pathValues = pathNodes.map((node) => node.value);
  19254. this.pathLabels = pathNodes.map((node) => node.label);
  19255. this.childrenData = childrenData;
  19256. this.children = (childrenData || []).map((child) => new _Node(child, config, this));
  19257. this.loaded = !config.lazy || this.isLeaf || !isEmpty2(childrenData);
  19258. this.text = "";
  19259. }
  19260. get isDisabled() {
  19261. const { data, parent: parent2, config } = this;
  19262. const { disabled, checkStrictly } = config;
  19263. const isDisabled = isFunction(disabled) ? disabled(data, this) : !!data[disabled];
  19264. return isDisabled || !checkStrictly && !!(parent2 == null ? void 0 : parent2.isDisabled);
  19265. }
  19266. get isLeaf() {
  19267. const { data, config, childrenData, loaded } = this;
  19268. const { lazy, leaf } = config;
  19269. const isLeaf2 = isFunction(leaf) ? leaf(data, this) : data[leaf];
  19270. return isUndefined2(isLeaf2) ? lazy && !loaded ? false : !(isArray(childrenData) && childrenData.length) : !!isLeaf2;
  19271. }
  19272. get valueByOption() {
  19273. return this.config.emitPath ? this.pathValues : this.value;
  19274. }
  19275. appendChild(childData) {
  19276. const { childrenData, children } = this;
  19277. const node = new _Node(childData, this.config, this);
  19278. if (isArray(childrenData)) {
  19279. childrenData.push(childData);
  19280. } else {
  19281. this.childrenData = [childData];
  19282. }
  19283. children.push(node);
  19284. return node;
  19285. }
  19286. calcText(allLevels, separator) {
  19287. const text = allLevels ? this.pathLabels.join(separator) : this.label;
  19288. this.text = text;
  19289. return text;
  19290. }
  19291. broadcast(checked) {
  19292. this.children.forEach((child) => {
  19293. var _a2;
  19294. if (child) {
  19295. child.broadcast(checked);
  19296. (_a2 = child.onParentCheck) == null ? void 0 : _a2.call(child, checked);
  19297. }
  19298. });
  19299. }
  19300. emit() {
  19301. var _a2;
  19302. const { parent: parent2 } = this;
  19303. if (parent2) {
  19304. (_a2 = parent2.onChildCheck) == null ? void 0 : _a2.call(parent2);
  19305. parent2.emit();
  19306. }
  19307. }
  19308. onParentCheck(checked) {
  19309. if (!this.isDisabled) {
  19310. this.setCheckState(checked);
  19311. }
  19312. }
  19313. onChildCheck() {
  19314. const { children } = this;
  19315. const validChildren = children.filter((child) => !child.isDisabled);
  19316. const checked = validChildren.length ? validChildren.every((child) => child.checked) : false;
  19317. this.setCheckState(checked);
  19318. }
  19319. setCheckState(checked) {
  19320. const totalNum = this.children.length;
  19321. const checkedNum = this.children.reduce((c2, p2) => {
  19322. const num = p2.checked ? 1 : p2.indeterminate ? 0.5 : 0;
  19323. return c2 + num;
  19324. }, 0);
  19325. this.checked = this.loaded && this.children.filter((child) => !child.isDisabled).every((child) => child.loaded && child.checked) && checked;
  19326. this.indeterminate = this.loaded && checkedNum !== totalNum && checkedNum > 0;
  19327. }
  19328. doCheck(checked) {
  19329. if (this.checked === checked)
  19330. return;
  19331. const { checkStrictly, multiple } = this.config;
  19332. if (checkStrictly || !multiple) {
  19333. this.checked = checked;
  19334. } else {
  19335. this.broadcast(checked);
  19336. this.setCheckState(checked);
  19337. this.emit();
  19338. }
  19339. }
  19340. };
  19341. // node_modules/element-plus/es/components/cascader-panel/src/store.mjs
  19342. var flatNodes = (nodes, leafOnly) => {
  19343. return nodes.reduce((res, node) => {
  19344. if (node.isLeaf) {
  19345. res.push(node);
  19346. } else {
  19347. !leafOnly && res.push(node);
  19348. res = res.concat(flatNodes(node.children, leafOnly));
  19349. }
  19350. return res;
  19351. }, []);
  19352. };
  19353. var Store = class {
  19354. constructor(data, config) {
  19355. this.config = config;
  19356. const nodes = (data || []).map((nodeData) => new Node2(nodeData, this.config));
  19357. this.nodes = nodes;
  19358. this.allNodes = flatNodes(nodes, false);
  19359. this.leafNodes = flatNodes(nodes, true);
  19360. }
  19361. getNodes() {
  19362. return this.nodes;
  19363. }
  19364. getFlattedNodes(leafOnly) {
  19365. return leafOnly ? this.leafNodes : this.allNodes;
  19366. }
  19367. appendNode(nodeData, parentNode) {
  19368. const node = parentNode ? parentNode.appendChild(nodeData) : new Node2(nodeData, this.config);
  19369. if (!parentNode)
  19370. this.nodes.push(node);
  19371. this.appendAllNodesAndLeafNodes(node);
  19372. }
  19373. appendNodes(nodeDataList, parentNode) {
  19374. if (nodeDataList.length > 0) {
  19375. nodeDataList.forEach((nodeData) => this.appendNode(nodeData, parentNode));
  19376. } else {
  19377. parentNode && parentNode.isLeaf && this.leafNodes.push(parentNode);
  19378. }
  19379. }
  19380. appendAllNodesAndLeafNodes(node) {
  19381. this.allNodes.push(node);
  19382. node.isLeaf && this.leafNodes.push(node);
  19383. if (node.children) {
  19384. node.children.forEach((subNode) => {
  19385. this.appendAllNodesAndLeafNodes(subNode);
  19386. });
  19387. }
  19388. }
  19389. getNodeByValue(value, leafOnly = false) {
  19390. if (isPropAbsent(value))
  19391. return null;
  19392. const node = this.getFlattedNodes(leafOnly).find((node2) => isEqual_default(node2.value, value) || isEqual_default(node2.pathValues, value));
  19393. return node || null;
  19394. }
  19395. getSameNode(node) {
  19396. if (!node)
  19397. return null;
  19398. const node_ = this.getFlattedNodes(false).find(({ value, level }) => isEqual_default(node.value, value) && node.level === level);
  19399. return node_ || null;
  19400. }
  19401. };
  19402. // node_modules/element-plus/es/components/cascader-panel/src/config.mjs
  19403. var CommonProps = buildProps({
  19404. modelValue: {
  19405. type: definePropType([Number, String, Array, Object])
  19406. },
  19407. options: {
  19408. type: definePropType(Array),
  19409. default: () => []
  19410. },
  19411. props: {
  19412. type: definePropType(Object),
  19413. default: () => ({})
  19414. }
  19415. });
  19416. var DefaultProps = {
  19417. expandTrigger: "click",
  19418. multiple: false,
  19419. checkStrictly: false,
  19420. emitPath: true,
  19421. lazy: false,
  19422. lazyLoad: NOOP,
  19423. value: "value",
  19424. label: "label",
  19425. children: "children",
  19426. leaf: "leaf",
  19427. disabled: "disabled",
  19428. hoverThreshold: 500,
  19429. checkOnClickNode: false,
  19430. checkOnClickLeaf: true,
  19431. showPrefix: true
  19432. };
  19433. var cascaderPanelProps = buildProps({
  19434. ...CommonProps,
  19435. border: {
  19436. type: Boolean,
  19437. default: true
  19438. },
  19439. renderLabel: {
  19440. type: Function
  19441. }
  19442. });
  19443. var emitChangeFn = (value) => true;
  19444. var cascaderPanelEmits = {
  19445. [UPDATE_MODEL_EVENT]: emitChangeFn,
  19446. [CHANGE_EVENT]: emitChangeFn,
  19447. close: () => true,
  19448. "expand-change": (value) => value
  19449. };
  19450. var useCascaderConfig = (props2) => {
  19451. return computed(() => ({
  19452. ...DefaultProps,
  19453. ...props2.props
  19454. }));
  19455. };
  19456. // node_modules/element-plus/es/components/cascader-panel/src/utils.mjs
  19457. var getMenuIndex = (el) => {
  19458. if (!el)
  19459. return 0;
  19460. const pieces = el.id.split("-");
  19461. return Number(pieces[pieces.length - 2]);
  19462. };
  19463. var checkNode = (el) => {
  19464. if (!el)
  19465. return;
  19466. const input = el.querySelector("input");
  19467. if (input) {
  19468. input.click();
  19469. } else if (isLeaf(el)) {
  19470. el.click();
  19471. }
  19472. };
  19473. var sortByOriginalOrder = (oldNodes, newNodes) => {
  19474. const newNodesCopy = newNodes.slice(0);
  19475. const newIds = newNodesCopy.map((node) => node.uid);
  19476. const res = oldNodes.reduce((acc, item) => {
  19477. const index = newIds.indexOf(item.uid);
  19478. if (index > -1) {
  19479. acc.push(item);
  19480. newNodesCopy.splice(index, 1);
  19481. newIds.splice(index, 1);
  19482. }
  19483. return acc;
  19484. }, []);
  19485. res.push(...newNodesCopy);
  19486. return res;
  19487. };
  19488. // node_modules/element-plus/es/components/cascader-panel/src/index.mjs
  19489. var __default__34 = defineComponent({
  19490. name: "ElCascaderPanel",
  19491. inheritAttrs: false
  19492. });
  19493. var _sfc_main38 = defineComponent({
  19494. ...__default__34,
  19495. props: cascaderPanelProps,
  19496. emits: cascaderPanelEmits,
  19497. setup(__props, { expose, emit }) {
  19498. const props2 = __props;
  19499. let manualChecked = false;
  19500. const ns = useNamespace("cascader");
  19501. const config = useCascaderConfig(props2);
  19502. const slots = useSlots();
  19503. let store;
  19504. const initialLoaded = ref(true);
  19505. const initialLoadedOnce = ref(false);
  19506. const menuList = ref([]);
  19507. const checkedValue = ref();
  19508. const menus = ref([]);
  19509. const expandingNode = ref();
  19510. const checkedNodes = ref([]);
  19511. const isHoverMenu = computed(() => config.value.expandTrigger === "hover");
  19512. const renderLabelFn = computed(() => props2.renderLabel || slots.default);
  19513. const initStore = () => {
  19514. const { options } = props2;
  19515. const cfg = config.value;
  19516. manualChecked = false;
  19517. store = new Store(options, cfg);
  19518. menus.value = [store.getNodes()];
  19519. if (cfg.lazy && isEmpty2(props2.options)) {
  19520. initialLoaded.value = false;
  19521. lazyLoad(void 0, (list) => {
  19522. if (list) {
  19523. store = new Store(list, cfg);
  19524. menus.value = [store.getNodes()];
  19525. }
  19526. initialLoaded.value = true;
  19527. syncCheckedValue(false, true);
  19528. });
  19529. } else {
  19530. syncCheckedValue(false, true);
  19531. }
  19532. };
  19533. const lazyLoad = (node, cb) => {
  19534. const cfg = config.value;
  19535. node = node || new Node2({}, cfg, void 0, true);
  19536. node.loading = true;
  19537. const resolve = (dataList) => {
  19538. const _node = node;
  19539. const parent2 = _node.root ? null : _node;
  19540. _node.loading = false;
  19541. _node.loaded = true;
  19542. _node.childrenData = _node.childrenData || [];
  19543. dataList && (store == null ? void 0 : store.appendNodes(dataList, parent2));
  19544. dataList && (cb == null ? void 0 : cb(dataList));
  19545. if (node.level === 0) {
  19546. initialLoadedOnce.value = true;
  19547. }
  19548. };
  19549. const reject2 = () => {
  19550. node.loading = false;
  19551. node.loaded = false;
  19552. if (node.level === 0) {
  19553. initialLoaded.value = true;
  19554. }
  19555. };
  19556. cfg.lazyLoad(node, resolve, reject2);
  19557. };
  19558. const expandNode = (node, silent) => {
  19559. var _a2;
  19560. const { level } = node;
  19561. const newMenus = menus.value.slice(0, level);
  19562. let newExpandingNode;
  19563. if (node.isLeaf) {
  19564. newExpandingNode = node.pathNodes[level - 2];
  19565. } else {
  19566. newExpandingNode = node;
  19567. newMenus.push(node.children);
  19568. }
  19569. if (((_a2 = expandingNode.value) == null ? void 0 : _a2.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
  19570. expandingNode.value = node;
  19571. menus.value = newMenus;
  19572. !silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
  19573. }
  19574. };
  19575. const handleCheckChange = (node, checked, emitClose = true) => {
  19576. const { checkStrictly, multiple } = config.value;
  19577. const oldNode = checkedNodes.value[0];
  19578. manualChecked = true;
  19579. !multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
  19580. node.doCheck(checked);
  19581. calculateCheckedValue();
  19582. emitClose && !multiple && !checkStrictly && emit("close");
  19583. !emitClose && !multiple && expandParentNode(node);
  19584. };
  19585. const expandParentNode = (node) => {
  19586. if (!node)
  19587. return;
  19588. node = node.parent;
  19589. expandParentNode(node);
  19590. node && expandNode(node);
  19591. };
  19592. const getFlattedNodes = (leafOnly) => store == null ? void 0 : store.getFlattedNodes(leafOnly);
  19593. const getCheckedNodes = (leafOnly) => {
  19594. var _a2;
  19595. return (_a2 = getFlattedNodes(leafOnly)) == null ? void 0 : _a2.filter(({ checked }) => checked !== false);
  19596. };
  19597. const clearCheckedNodes = () => {
  19598. checkedNodes.value.forEach((node) => node.doCheck(false));
  19599. calculateCheckedValue();
  19600. menus.value = menus.value.slice(0, 1);
  19601. expandingNode.value = void 0;
  19602. emit("expand-change", []);
  19603. };
  19604. const calculateCheckedValue = () => {
  19605. var _a2;
  19606. const { checkStrictly, multiple } = config.value;
  19607. const oldNodes = checkedNodes.value;
  19608. const newNodes = getCheckedNodes(!checkStrictly);
  19609. const nodes = sortByOriginalOrder(oldNodes, newNodes);
  19610. const values2 = nodes.map((node) => node.valueByOption);
  19611. checkedNodes.value = nodes;
  19612. checkedValue.value = multiple ? values2 : (_a2 = values2[0]) != null ? _a2 : null;
  19613. };
  19614. const syncCheckedValue = (loaded = false, forced = false) => {
  19615. const { modelValue } = props2;
  19616. const { lazy, multiple, checkStrictly } = config.value;
  19617. const leafOnly = !checkStrictly;
  19618. if (!initialLoaded.value || manualChecked || !forced && isEqual_default(modelValue, checkedValue.value))
  19619. return;
  19620. if (lazy && !loaded) {
  19621. const values2 = unique(flattenDeep_default(castArray2(modelValue)));
  19622. const nodes = values2.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
  19623. if (nodes.length) {
  19624. nodes.forEach((node) => {
  19625. lazyLoad(node, () => syncCheckedValue(false, forced));
  19626. });
  19627. } else {
  19628. syncCheckedValue(true, forced);
  19629. }
  19630. } else {
  19631. const values2 = multiple ? castArray2(modelValue) : [modelValue];
  19632. const nodes = unique(values2.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
  19633. syncMenuState(nodes, forced);
  19634. checkedValue.value = cloneDeep_default(modelValue != null ? modelValue : void 0);
  19635. }
  19636. };
  19637. const syncMenuState = (newCheckedNodes, reserveExpandingState = true) => {
  19638. const { checkStrictly } = config.value;
  19639. const oldNodes = checkedNodes.value;
  19640. const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
  19641. const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
  19642. const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
  19643. if (newExpandingNode) {
  19644. newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
  19645. } else {
  19646. expandingNode.value = void 0;
  19647. }
  19648. oldNodes.forEach((node) => node.doCheck(false));
  19649. reactive(newNodes).forEach((node) => node.doCheck(true));
  19650. checkedNodes.value = newNodes;
  19651. nextTick(scrollToExpandingNode);
  19652. };
  19653. const scrollToExpandingNode = () => {
  19654. if (!isClient)
  19655. return;
  19656. menuList.value.forEach((menu) => {
  19657. const menuElement = menu == null ? void 0 : menu.$el;
  19658. if (menuElement) {
  19659. const container = menuElement.querySelector(`.${ns.namespace.value}-scrollbar__wrap`);
  19660. const activeNode = menuElement.querySelector(`.${ns.b("node")}.${ns.is("active")}:last-child`) || menuElement.querySelector(`.${ns.b("node")}.in-active-path`);
  19661. scrollIntoView(container, activeNode);
  19662. }
  19663. });
  19664. };
  19665. const handleKeyDown = (e) => {
  19666. const target2 = e.target;
  19667. const code = getEventCode(e);
  19668. switch (code) {
  19669. case EVENT_CODE.up:
  19670. case EVENT_CODE.down: {
  19671. e.preventDefault();
  19672. const distance = code === EVENT_CODE.up ? -1 : 1;
  19673. focusNode(getSibling(target2, distance, `.${ns.b("node")}[tabindex="-1"]`));
  19674. break;
  19675. }
  19676. case EVENT_CODE.left: {
  19677. e.preventDefault();
  19678. const preMenu = menuList.value[getMenuIndex(target2) - 1];
  19679. const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector(`.${ns.b("node")}[aria-expanded="true"]`);
  19680. focusNode(expandedNode);
  19681. break;
  19682. }
  19683. case EVENT_CODE.right: {
  19684. e.preventDefault();
  19685. const nextMenu = menuList.value[getMenuIndex(target2) + 1];
  19686. const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector(`.${ns.b("node")}[tabindex="-1"]`);
  19687. focusNode(firstNode);
  19688. break;
  19689. }
  19690. case EVENT_CODE.enter:
  19691. case EVENT_CODE.numpadEnter:
  19692. checkNode(target2);
  19693. break;
  19694. }
  19695. };
  19696. provide(CASCADER_PANEL_INJECTION_KEY, reactive({
  19697. config,
  19698. expandingNode,
  19699. checkedNodes,
  19700. isHoverMenu,
  19701. initialLoaded,
  19702. renderLabelFn,
  19703. lazyLoad,
  19704. expandNode,
  19705. handleCheckChange
  19706. }));
  19707. watch(config, (newVal, oldVal) => {
  19708. if (isEqual_default(newVal, oldVal))
  19709. return;
  19710. initStore();
  19711. }, {
  19712. immediate: true
  19713. });
  19714. watch(() => props2.options, initStore, {
  19715. deep: true
  19716. });
  19717. watch(() => props2.modelValue, () => {
  19718. manualChecked = false;
  19719. syncCheckedValue();
  19720. }, {
  19721. deep: true
  19722. });
  19723. watch(() => checkedValue.value, (val) => {
  19724. if (!isEqual_default(val, props2.modelValue)) {
  19725. emit(UPDATE_MODEL_EVENT, val);
  19726. emit(CHANGE_EVENT, val);
  19727. }
  19728. });
  19729. const loadLazyRootNodes = () => {
  19730. if (initialLoadedOnce.value)
  19731. return;
  19732. initStore();
  19733. };
  19734. onBeforeUpdate(() => menuList.value = []);
  19735. onMounted(() => !isEmpty2(props2.modelValue) && syncCheckedValue());
  19736. expose({
  19737. menuList,
  19738. menus,
  19739. checkedNodes,
  19740. handleKeyDown,
  19741. handleCheckChange,
  19742. getFlattedNodes,
  19743. getCheckedNodes,
  19744. clearCheckedNodes,
  19745. calculateCheckedValue,
  19746. scrollToExpandingNode,
  19747. loadLazyRootNodes
  19748. });
  19749. return (_ctx, _cache) => {
  19750. return openBlock(), createElementBlock("div", {
  19751. class: normalizeClass([unref(ns).b("panel"), unref(ns).is("bordered", _ctx.border)]),
  19752. onKeydown: handleKeyDown
  19753. }, [
  19754. (openBlock(true), createElementBlock(Fragment, null, renderList(menus.value, (menu, index) => {
  19755. return openBlock(), createBlock(ElCascaderMenu, {
  19756. key: index,
  19757. ref_for: true,
  19758. ref: (item) => menuList.value[index] = item,
  19759. index,
  19760. nodes: [...menu]
  19761. }, {
  19762. empty: withCtx(() => [
  19763. renderSlot(_ctx.$slots, "empty")
  19764. ]),
  19765. _: 2
  19766. }, 1032, ["index", "nodes"]);
  19767. }), 128))
  19768. ], 34);
  19769. };
  19770. }
  19771. });
  19772. var CascaderPanel = _export_sfc(_sfc_main38, [["__file", "index.vue"]]);
  19773. // node_modules/element-plus/es/components/cascader-panel/index.mjs
  19774. var ElCascaderPanel = withInstall(CascaderPanel);
  19775. // node_modules/element-plus/es/components/tag/src/tag.mjs
  19776. var tagProps = buildProps({
  19777. type: {
  19778. type: String,
  19779. values: ["primary", "success", "info", "warning", "danger"],
  19780. default: "primary"
  19781. },
  19782. closable: Boolean,
  19783. disableTransitions: Boolean,
  19784. hit: Boolean,
  19785. color: String,
  19786. size: {
  19787. type: String,
  19788. values: componentSizes
  19789. },
  19790. effect: {
  19791. type: String,
  19792. values: ["dark", "light", "plain"],
  19793. default: "light"
  19794. },
  19795. round: Boolean
  19796. });
  19797. var tagEmits = {
  19798. close: (evt) => evt instanceof MouseEvent,
  19799. click: (evt) => evt instanceof MouseEvent
  19800. };
  19801. // node_modules/element-plus/es/components/tag/src/tag2.mjs
  19802. var __default__35 = defineComponent({
  19803. name: "ElTag"
  19804. });
  19805. var _sfc_main39 = defineComponent({
  19806. ...__default__35,
  19807. props: tagProps,
  19808. emits: tagEmits,
  19809. setup(__props, { emit }) {
  19810. const props2 = __props;
  19811. const tagSize = useFormSize();
  19812. const ns = useNamespace("tag");
  19813. const containerKls = computed(() => {
  19814. const { type: type4, hit, effect, closable, round: round3 } = props2;
  19815. return [
  19816. ns.b(),
  19817. ns.is("closable", closable),
  19818. ns.m(type4 || "primary"),
  19819. ns.m(tagSize.value),
  19820. ns.m(effect),
  19821. ns.is("hit", hit),
  19822. ns.is("round", round3)
  19823. ];
  19824. });
  19825. const handleClose = (event) => {
  19826. emit("close", event);
  19827. };
  19828. const handleClick = (event) => {
  19829. emit("click", event);
  19830. };
  19831. const handleVNodeMounted = (vnode) => {
  19832. var _a2, _b, _c;
  19833. if ((_c = (_b = (_a2 = vnode == null ? void 0 : vnode.component) == null ? void 0 : _a2.subTree) == null ? void 0 : _b.component) == null ? void 0 : _c.bum) {
  19834. vnode.component.subTree.component.bum = null;
  19835. }
  19836. };
  19837. return (_ctx, _cache) => {
  19838. return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
  19839. key: 0,
  19840. class: normalizeClass(unref(containerKls)),
  19841. style: normalizeStyle({ backgroundColor: _ctx.color }),
  19842. onClick: handleClick
  19843. }, [
  19844. createBaseVNode("span", {
  19845. class: normalizeClass(unref(ns).e("content"))
  19846. }, [
  19847. renderSlot(_ctx.$slots, "default")
  19848. ], 2),
  19849. _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
  19850. key: 0,
  19851. class: normalizeClass(unref(ns).e("close")),
  19852. onClick: withModifiers(handleClose, ["stop"])
  19853. }, {
  19854. default: withCtx(() => [
  19855. createVNode(unref(close_default))
  19856. ]),
  19857. _: 1
  19858. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
  19859. ], 6)) : (openBlock(), createBlock(Transition, {
  19860. key: 1,
  19861. name: `${unref(ns).namespace.value}-zoom-in-center`,
  19862. appear: "",
  19863. onVnodeMounted: handleVNodeMounted
  19864. }, {
  19865. default: withCtx(() => [
  19866. createBaseVNode("span", {
  19867. class: normalizeClass(unref(containerKls)),
  19868. style: normalizeStyle({ backgroundColor: _ctx.color }),
  19869. onClick: handleClick
  19870. }, [
  19871. createBaseVNode("span", {
  19872. class: normalizeClass(unref(ns).e("content"))
  19873. }, [
  19874. renderSlot(_ctx.$slots, "default")
  19875. ], 2),
  19876. _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
  19877. key: 0,
  19878. class: normalizeClass(unref(ns).e("close")),
  19879. onClick: withModifiers(handleClose, ["stop"])
  19880. }, {
  19881. default: withCtx(() => [
  19882. createVNode(unref(close_default))
  19883. ]),
  19884. _: 1
  19885. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
  19886. ], 6)
  19887. ]),
  19888. _: 3
  19889. }, 8, ["name"]));
  19890. };
  19891. }
  19892. });
  19893. var Tag = _export_sfc(_sfc_main39, [["__file", "tag.vue"]]);
  19894. // node_modules/element-plus/es/components/tag/index.mjs
  19895. var ElTag = withInstall(Tag);
  19896. // node_modules/element-plus/es/components/cascader/src/cascader.mjs
  19897. var cascaderProps = buildProps({
  19898. ...CommonProps,
  19899. size: useSizeProp,
  19900. placeholder: String,
  19901. disabled: Boolean,
  19902. clearable: Boolean,
  19903. clearIcon: {
  19904. type: iconPropType,
  19905. default: circle_close_default
  19906. },
  19907. filterable: Boolean,
  19908. filterMethod: {
  19909. type: definePropType(Function),
  19910. default: (node, keyword) => node.text.includes(keyword)
  19911. },
  19912. separator: {
  19913. type: String,
  19914. default: " / "
  19915. },
  19916. showAllLevels: {
  19917. type: Boolean,
  19918. default: true
  19919. },
  19920. collapseTags: Boolean,
  19921. maxCollapseTags: {
  19922. type: Number,
  19923. default: 1
  19924. },
  19925. collapseTagsTooltip: Boolean,
  19926. maxCollapseTagsTooltipHeight: {
  19927. type: [String, Number]
  19928. },
  19929. debounce: {
  19930. type: Number,
  19931. default: 300
  19932. },
  19933. beforeFilter: {
  19934. type: definePropType(Function),
  19935. default: () => true
  19936. },
  19937. placement: {
  19938. type: definePropType(String),
  19939. values: Ee,
  19940. default: "bottom-start"
  19941. },
  19942. fallbackPlacements: {
  19943. type: definePropType(Array),
  19944. default: ["bottom-start", "bottom", "top-start", "top", "right", "left"]
  19945. },
  19946. popperClass: useTooltipContentProps.popperClass,
  19947. popperStyle: useTooltipContentProps.popperStyle,
  19948. teleported: useTooltipContentProps.teleported,
  19949. effect: {
  19950. type: definePropType(String),
  19951. default: "light"
  19952. },
  19953. tagType: { ...tagProps.type, default: "info" },
  19954. tagEffect: { ...tagProps.effect, default: "light" },
  19955. validateEvent: {
  19956. type: Boolean,
  19957. default: true
  19958. },
  19959. persistent: {
  19960. type: Boolean,
  19961. default: true
  19962. },
  19963. showCheckedStrategy: {
  19964. type: String,
  19965. values: ["parent", "child"],
  19966. default: "child"
  19967. },
  19968. checkOnClickNode: Boolean,
  19969. showPrefix: {
  19970. type: Boolean,
  19971. default: true
  19972. },
  19973. ...useEmptyValuesProps
  19974. });
  19975. var emitChangeFn2 = (value) => true;
  19976. var cascaderEmits = {
  19977. [UPDATE_MODEL_EVENT]: emitChangeFn2,
  19978. [CHANGE_EVENT]: emitChangeFn2,
  19979. focus: (evt) => evt instanceof FocusEvent,
  19980. blur: (evt) => evt instanceof FocusEvent,
  19981. clear: () => true,
  19982. visibleChange: (val) => isBoolean2(val),
  19983. expandChange: (val) => !!val,
  19984. removeTag: (val) => !!val
  19985. };
  19986. // node_modules/element-plus/es/directives/click-outside/index.mjs
  19987. var nodeList = /* @__PURE__ */ new Map();
  19988. if (isClient) {
  19989. let startClick;
  19990. document.addEventListener("mousedown", (e) => startClick = e);
  19991. document.addEventListener("mouseup", (e) => {
  19992. if (startClick) {
  19993. for (const handlers2 of nodeList.values()) {
  19994. for (const { documentHandler } of handlers2) {
  19995. documentHandler(e, startClick);
  19996. }
  19997. }
  19998. startClick = void 0;
  19999. }
  20000. });
  20001. }
  20002. function createDocumentHandler(el, binding) {
  20003. let excludes = [];
  20004. if (isArray(binding.arg)) {
  20005. excludes = binding.arg;
  20006. } else if (isElement2(binding.arg)) {
  20007. excludes.push(binding.arg);
  20008. }
  20009. return function(mouseup, mousedown) {
  20010. const popperRef = binding.instance.popperRef;
  20011. const mouseUpTarget = mouseup.target;
  20012. const mouseDownTarget = mousedown == null ? void 0 : mousedown.target;
  20013. const isBound = !binding || !binding.instance;
  20014. const isTargetExists = !mouseUpTarget || !mouseDownTarget;
  20015. const isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
  20016. const isSelf = el === mouseUpTarget;
  20017. const isTargetExcluded = excludes.length && excludes.some((item) => item == null ? void 0 : item.contains(mouseUpTarget)) || excludes.length && excludes.includes(mouseDownTarget);
  20018. const isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
  20019. if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
  20020. return;
  20021. }
  20022. binding.value(mouseup, mousedown);
  20023. };
  20024. }
  20025. var ClickOutside = {
  20026. beforeMount(el, binding) {
  20027. if (!nodeList.has(el)) {
  20028. nodeList.set(el, []);
  20029. }
  20030. nodeList.get(el).push({
  20031. documentHandler: createDocumentHandler(el, binding),
  20032. bindingFn: binding.value
  20033. });
  20034. },
  20035. updated(el, binding) {
  20036. if (!nodeList.has(el)) {
  20037. nodeList.set(el, []);
  20038. }
  20039. const handlers2 = nodeList.get(el);
  20040. const oldHandlerIndex = handlers2.findIndex((item) => item.bindingFn === binding.oldValue);
  20041. const newHandler = {
  20042. documentHandler: createDocumentHandler(el, binding),
  20043. bindingFn: binding.value
  20044. };
  20045. if (oldHandlerIndex >= 0) {
  20046. handlers2.splice(oldHandlerIndex, 1, newHandler);
  20047. } else {
  20048. handlers2.push(newHandler);
  20049. }
  20050. },
  20051. unmounted(el) {
  20052. nodeList.delete(el);
  20053. }
  20054. };
  20055. // node_modules/element-plus/es/components/cascader/src/cascader2.mjs
  20056. var __default__36 = defineComponent({
  20057. name: "ElCascader"
  20058. });
  20059. var _sfc_main40 = defineComponent({
  20060. ...__default__36,
  20061. props: cascaderProps,
  20062. emits: cascaderEmits,
  20063. setup(__props, { expose, emit }) {
  20064. const props2 = __props;
  20065. const popperOptions = {
  20066. modifiers: [
  20067. {
  20068. name: "arrowPosition",
  20069. enabled: true,
  20070. phase: "main",
  20071. fn: ({ state }) => {
  20072. const { modifiersData, placement } = state;
  20073. if (["right", "left", "bottom", "top"].includes(placement))
  20074. return;
  20075. if (modifiersData.arrow) {
  20076. modifiersData.arrow.x = 35;
  20077. }
  20078. },
  20079. requires: ["arrow"]
  20080. }
  20081. ]
  20082. };
  20083. const attrs = useAttrs();
  20084. let inputInitialHeight = 0;
  20085. let pressDeleteCount = 0;
  20086. const nsCascader = useNamespace("cascader");
  20087. const nsInput = useNamespace("input");
  20088. const { t } = useLocale();
  20089. const { formItem } = useFormItem();
  20090. const isDisabled = useFormDisabled();
  20091. const { valueOnClear } = useEmptyValues(props2);
  20092. const { isComposing, handleComposition } = useComposition({
  20093. afterComposition(event) {
  20094. var _a2;
  20095. const text = (_a2 = event.target) == null ? void 0 : _a2.value;
  20096. handleInput(text);
  20097. }
  20098. });
  20099. const tooltipRef = ref();
  20100. const tagTooltipRef = ref();
  20101. const inputRef = ref();
  20102. const tagWrapper = ref();
  20103. const cascaderPanelRef = ref();
  20104. const suggestionPanel = ref();
  20105. const popperVisible = ref(false);
  20106. const inputHover = ref(false);
  20107. const filtering = ref(false);
  20108. const inputValue = ref("");
  20109. const searchInputValue = ref("");
  20110. const tags = ref([]);
  20111. const suggestions = ref([]);
  20112. const showTagList = computed(() => {
  20113. if (!props2.props.multiple) {
  20114. return [];
  20115. }
  20116. return props2.collapseTags ? tags.value.slice(0, props2.maxCollapseTags) : tags.value;
  20117. });
  20118. const collapseTagList = computed(() => {
  20119. if (!props2.props.multiple) {
  20120. return [];
  20121. }
  20122. return props2.collapseTags ? tags.value.slice(props2.maxCollapseTags) : [];
  20123. });
  20124. const cascaderStyle = computed(() => {
  20125. return attrs.style;
  20126. });
  20127. const inputPlaceholder = computed(() => {
  20128. var _a2;
  20129. return (_a2 = props2.placeholder) != null ? _a2 : t("el.cascader.placeholder");
  20130. });
  20131. const currentPlaceholder = computed(() => searchInputValue.value || tags.value.length > 0 || isComposing.value ? "" : inputPlaceholder.value);
  20132. const realSize = useFormSize();
  20133. const tagSize = computed(() => realSize.value === "small" ? "small" : "default");
  20134. const multiple = computed(() => !!props2.props.multiple);
  20135. const readonly2 = computed(() => !props2.filterable || multiple.value);
  20136. const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
  20137. const checkedNodes = computed(() => {
  20138. var _a2;
  20139. return ((_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.checkedNodes) || [];
  20140. });
  20141. const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {
  20142. disabled: isDisabled,
  20143. beforeBlur(event) {
  20144. var _a2, _b;
  20145. return ((_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event)) || ((_b = tagTooltipRef.value) == null ? void 0 : _b.isFocusInsideContent(event));
  20146. },
  20147. afterBlur() {
  20148. var _a2;
  20149. if (props2.validateEvent) {
  20150. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn(err));
  20151. }
  20152. }
  20153. });
  20154. const clearBtnVisible = computed(() => {
  20155. if (!props2.clearable || isDisabled.value || filtering.value || !inputHover.value && !isFocused.value)
  20156. return false;
  20157. return !!checkedNodes.value.length;
  20158. });
  20159. const presentText = computed(() => {
  20160. const { showAllLevels, separator } = props2;
  20161. const nodes = checkedNodes.value;
  20162. return nodes.length ? multiple.value ? "" : nodes[0].calcText(showAllLevels, separator) : "";
  20163. });
  20164. const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
  20165. const checkedValue = computed({
  20166. get() {
  20167. return cloneDeep_default(props2.modelValue);
  20168. },
  20169. set(val) {
  20170. const value = val != null ? val : valueOnClear.value;
  20171. emit(UPDATE_MODEL_EVENT, value);
  20172. emit(CHANGE_EVENT, value);
  20173. if (props2.validateEvent) {
  20174. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  20175. }
  20176. }
  20177. });
  20178. const cascaderKls = computed(() => {
  20179. return [
  20180. nsCascader.b(),
  20181. nsCascader.m(realSize.value),
  20182. nsCascader.is("disabled", isDisabled.value),
  20183. attrs.class
  20184. ];
  20185. });
  20186. const cascaderIconKls = computed(() => {
  20187. return [
  20188. nsInput.e("icon"),
  20189. "icon-arrow-down",
  20190. nsCascader.is("reverse", popperVisible.value)
  20191. ];
  20192. });
  20193. const inputClass = computed(() => nsCascader.is("focus", isFocused.value));
  20194. const contentRef = computed(() => {
  20195. var _a2, _b;
  20196. return (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
  20197. });
  20198. const handleClickOutside = (event) => {
  20199. if (isFocused.value) {
  20200. const _event2 = new FocusEvent("blur", event);
  20201. handleBlur(_event2);
  20202. }
  20203. togglePopperVisible(false);
  20204. };
  20205. const togglePopperVisible = (visible) => {
  20206. var _a2, _b, _c;
  20207. if (isDisabled.value)
  20208. return;
  20209. visible = visible != null ? visible : !popperVisible.value;
  20210. if (visible !== popperVisible.value) {
  20211. popperVisible.value = visible;
  20212. (_b = (_a2 = inputRef.value) == null ? void 0 : _a2.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
  20213. if (visible) {
  20214. updatePopperPosition();
  20215. nextTick((_c = cascaderPanelRef.value) == null ? void 0 : _c.scrollToExpandingNode);
  20216. } else if (props2.filterable) {
  20217. syncPresentTextValue();
  20218. }
  20219. emit("visibleChange", visible);
  20220. }
  20221. };
  20222. const updatePopperPosition = () => {
  20223. nextTick(() => {
  20224. var _a2;
  20225. (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper();
  20226. });
  20227. };
  20228. const hideSuggestionPanel = () => {
  20229. filtering.value = false;
  20230. };
  20231. const genTag3 = (node) => {
  20232. const { showAllLevels, separator } = props2;
  20233. return {
  20234. node,
  20235. key: node.uid,
  20236. text: node.calcText(showAllLevels, separator),
  20237. hitState: false,
  20238. closable: !isDisabled.value && !node.isDisabled
  20239. };
  20240. };
  20241. const deleteTag = (tag) => {
  20242. var _a2;
  20243. const node = tag.node;
  20244. node.doCheck(false);
  20245. (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.calculateCheckedValue();
  20246. emit("removeTag", node.valueByOption);
  20247. };
  20248. const getStrategyCheckedNodes = () => {
  20249. switch (props2.showCheckedStrategy) {
  20250. case "child":
  20251. return checkedNodes.value;
  20252. case "parent": {
  20253. const clickedNodes = getCheckedNodes(false);
  20254. const clickedNodesValue = clickedNodes.map((o2) => o2.value);
  20255. const parentNodes = clickedNodes.filter((o2) => !o2.parent || !clickedNodesValue.includes(o2.parent.value));
  20256. return parentNodes;
  20257. }
  20258. default:
  20259. return [];
  20260. }
  20261. };
  20262. const calculatePresentTags = () => {
  20263. if (!multiple.value)
  20264. return;
  20265. const nodes = getStrategyCheckedNodes();
  20266. const allTags = [];
  20267. nodes.forEach((node) => allTags.push(genTag3(node)));
  20268. tags.value = allTags;
  20269. };
  20270. const calculateSuggestions = () => {
  20271. var _a2, _b;
  20272. const { filterMethod, showAllLevels, separator } = props2;
  20273. const res = (_b = (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.getFlattedNodes(!props2.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
  20274. if (node.isDisabled)
  20275. return false;
  20276. node.calcText(showAllLevels, separator);
  20277. return filterMethod(node, searchKeyword.value);
  20278. });
  20279. if (multiple.value) {
  20280. tags.value.forEach((tag) => {
  20281. tag.hitState = false;
  20282. });
  20283. }
  20284. filtering.value = true;
  20285. suggestions.value = res;
  20286. updatePopperPosition();
  20287. };
  20288. const focusFirstNode = () => {
  20289. var _a2;
  20290. let firstNode;
  20291. if (filtering.value && suggestionPanel.value) {
  20292. firstNode = suggestionPanel.value.$el.querySelector(`.${nsCascader.e("suggestion-item")}`);
  20293. } else {
  20294. firstNode = (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.$el.querySelector(`.${nsCascader.b("node")}[tabindex="-1"]`);
  20295. }
  20296. if (firstNode) {
  20297. firstNode.focus();
  20298. !filtering.value && firstNode.click();
  20299. }
  20300. };
  20301. const updateStyle = () => {
  20302. var _a2, _b;
  20303. const inputInner = (_a2 = inputRef.value) == null ? void 0 : _a2.input;
  20304. const tagWrapperEl = tagWrapper.value;
  20305. const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
  20306. if (!isClient || !inputInner)
  20307. return;
  20308. if (suggestionPanelEl) {
  20309. const suggestionList = suggestionPanelEl.querySelector(`.${nsCascader.e("suggestion-list")}`);
  20310. suggestionList.style.minWidth = `${inputInner.offsetWidth}px`;
  20311. }
  20312. if (tagWrapperEl) {
  20313. const { offsetHeight } = tagWrapperEl;
  20314. const height = tags.value.length > 0 ? `${Math.max(offsetHeight, inputInitialHeight) - 2}px` : `${inputInitialHeight}px`;
  20315. inputInner.style.height = height;
  20316. updatePopperPosition();
  20317. }
  20318. };
  20319. const getCheckedNodes = (leafOnly) => {
  20320. var _a2;
  20321. return (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.getCheckedNodes(leafOnly);
  20322. };
  20323. const handleExpandChange = (value) => {
  20324. updatePopperPosition();
  20325. emit("expandChange", value);
  20326. };
  20327. const handleKeyDown = (e) => {
  20328. if (isComposing.value)
  20329. return;
  20330. const code = getEventCode(e);
  20331. switch (code) {
  20332. case EVENT_CODE.enter:
  20333. case EVENT_CODE.numpadEnter:
  20334. togglePopperVisible();
  20335. break;
  20336. case EVENT_CODE.down:
  20337. togglePopperVisible(true);
  20338. nextTick(focusFirstNode);
  20339. e.preventDefault();
  20340. break;
  20341. case EVENT_CODE.esc:
  20342. if (popperVisible.value === true) {
  20343. e.preventDefault();
  20344. e.stopPropagation();
  20345. togglePopperVisible(false);
  20346. }
  20347. break;
  20348. case EVENT_CODE.tab:
  20349. togglePopperVisible(false);
  20350. break;
  20351. }
  20352. };
  20353. const handleClear = () => {
  20354. var _a2;
  20355. (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.clearCheckedNodes();
  20356. if (!popperVisible.value && props2.filterable) {
  20357. syncPresentTextValue();
  20358. }
  20359. togglePopperVisible(false);
  20360. emit("clear");
  20361. };
  20362. const syncPresentTextValue = () => {
  20363. const { value } = presentText;
  20364. inputValue.value = value;
  20365. searchInputValue.value = value;
  20366. };
  20367. const handleSuggestionClick = (node) => {
  20368. var _a2, _b;
  20369. const { checked } = node;
  20370. if (multiple.value) {
  20371. (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.handleCheckChange(node, !checked, false);
  20372. } else {
  20373. !checked && ((_b = cascaderPanelRef.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
  20374. togglePopperVisible(false);
  20375. }
  20376. };
  20377. const handleSuggestionKeyDown = (e) => {
  20378. const target2 = e.target;
  20379. const code = getEventCode(e);
  20380. switch (code) {
  20381. case EVENT_CODE.up:
  20382. case EVENT_CODE.down: {
  20383. e.preventDefault();
  20384. const distance = code === EVENT_CODE.up ? -1 : 1;
  20385. focusNode(getSibling(target2, distance, `.${nsCascader.e("suggestion-item")}[tabindex="-1"]`));
  20386. break;
  20387. }
  20388. case EVENT_CODE.enter:
  20389. case EVENT_CODE.numpadEnter:
  20390. target2.click();
  20391. break;
  20392. }
  20393. };
  20394. const handleDelete = () => {
  20395. const lastTag = tags.value[tags.value.length - 1];
  20396. pressDeleteCount = searchInputValue.value ? 0 : pressDeleteCount + 1;
  20397. if (!lastTag || !pressDeleteCount || props2.collapseTags && tags.value.length > 1)
  20398. return;
  20399. if (lastTag.hitState) {
  20400. deleteTag(lastTag);
  20401. } else {
  20402. lastTag.hitState = true;
  20403. }
  20404. };
  20405. const debounce2 = computed(() => props2.debounce);
  20406. const handleFilter = useDebounceFn(() => {
  20407. const { value } = searchKeyword;
  20408. if (!value)
  20409. return;
  20410. const passed = props2.beforeFilter(value);
  20411. if (isPromise(passed)) {
  20412. passed.then(calculateSuggestions).catch(() => {
  20413. });
  20414. } else if (passed !== false) {
  20415. calculateSuggestions();
  20416. } else {
  20417. hideSuggestionPanel();
  20418. }
  20419. }, debounce2);
  20420. const handleInput = (val, e) => {
  20421. !popperVisible.value && togglePopperVisible(true);
  20422. if (e == null ? void 0 : e.isComposing)
  20423. return;
  20424. val ? handleFilter() : hideSuggestionPanel();
  20425. };
  20426. const getInputInnerHeight = (inputInner) => Number.parseFloat(useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
  20427. watch(filtering, updatePopperPosition);
  20428. watch([
  20429. checkedNodes,
  20430. isDisabled,
  20431. () => props2.collapseTags,
  20432. () => props2.maxCollapseTags
  20433. ], calculatePresentTags);
  20434. watch(tags, () => {
  20435. nextTick(() => updateStyle());
  20436. });
  20437. watch(realSize, async () => {
  20438. await nextTick();
  20439. const inputInner = inputRef.value.input;
  20440. inputInitialHeight = getInputInnerHeight(inputInner) || inputInitialHeight;
  20441. updateStyle();
  20442. });
  20443. watch(presentText, syncPresentTextValue, { immediate: true });
  20444. watch(() => popperVisible.value, (val) => {
  20445. var _a2;
  20446. if (val && props2.props.lazy && props2.props.lazyLoad) {
  20447. (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.loadLazyRootNodes();
  20448. }
  20449. });
  20450. onMounted(() => {
  20451. const inputInner = inputRef.value.input;
  20452. const inputInnerHeight = getInputInnerHeight(inputInner);
  20453. inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
  20454. useResizeObserver(inputInner, updateStyle);
  20455. });
  20456. expose({
  20457. getCheckedNodes,
  20458. cascaderPanelRef,
  20459. togglePopperVisible,
  20460. contentRef,
  20461. presentText
  20462. });
  20463. return (_ctx, _cache) => {
  20464. return openBlock(), createBlock(unref(ElTooltip), {
  20465. ref_key: "tooltipRef",
  20466. ref: tooltipRef,
  20467. visible: popperVisible.value,
  20468. teleported: _ctx.teleported,
  20469. "popper-class": [unref(nsCascader).e("dropdown"), _ctx.popperClass],
  20470. "popper-style": _ctx.popperStyle,
  20471. "popper-options": popperOptions,
  20472. "fallback-placements": _ctx.fallbackPlacements,
  20473. "stop-popper-mouse-event": false,
  20474. "gpu-acceleration": false,
  20475. placement: _ctx.placement,
  20476. transition: `${unref(nsCascader).namespace.value}-zoom-in-top`,
  20477. effect: _ctx.effect,
  20478. pure: "",
  20479. persistent: _ctx.persistent,
  20480. onHide: hideSuggestionPanel
  20481. }, {
  20482. default: withCtx(() => [
  20483. withDirectives((openBlock(), createElementBlock("div", {
  20484. ref_key: "wrapperRef",
  20485. ref: wrapperRef,
  20486. class: normalizeClass(unref(cascaderKls)),
  20487. style: normalizeStyle(unref(cascaderStyle)),
  20488. onClick: () => togglePopperVisible(unref(readonly2) ? void 0 : true),
  20489. onKeydown: handleKeyDown,
  20490. onMouseenter: ($event) => inputHover.value = true,
  20491. onMouseleave: ($event) => inputHover.value = false
  20492. }, [
  20493. createVNode(unref(ElInput), {
  20494. ref_key: "inputRef",
  20495. ref: inputRef,
  20496. modelValue: inputValue.value,
  20497. "onUpdate:modelValue": ($event) => inputValue.value = $event,
  20498. placeholder: unref(currentPlaceholder),
  20499. readonly: unref(readonly2),
  20500. disabled: unref(isDisabled),
  20501. "validate-event": false,
  20502. size: unref(realSize),
  20503. class: normalizeClass(unref(inputClass)),
  20504. tabindex: unref(multiple) && _ctx.filterable && !unref(isDisabled) ? -1 : void 0,
  20505. onCompositionstart: unref(handleComposition),
  20506. onCompositionupdate: unref(handleComposition),
  20507. onCompositionend: unref(handleComposition),
  20508. onInput: handleInput
  20509. }, createSlots({
  20510. suffix: withCtx(() => [
  20511. unref(clearBtnVisible) ? (openBlock(), createBlock(unref(ElIcon), {
  20512. key: "clear",
  20513. class: normalizeClass([unref(nsInput).e("icon"), "icon-circle-close"]),
  20514. onClick: withModifiers(handleClear, ["stop"])
  20515. }, {
  20516. default: withCtx(() => [
  20517. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  20518. ]),
  20519. _: 1
  20520. }, 8, ["class", "onClick"])) : (openBlock(), createBlock(unref(ElIcon), {
  20521. key: "arrow-down",
  20522. class: normalizeClass(unref(cascaderIconKls)),
  20523. onClick: withModifiers(($event) => togglePopperVisible(), ["stop"])
  20524. }, {
  20525. default: withCtx(() => [
  20526. createVNode(unref(arrow_down_default))
  20527. ]),
  20528. _: 1
  20529. }, 8, ["class", "onClick"]))
  20530. ]),
  20531. _: 2
  20532. }, [
  20533. _ctx.$slots.prefix ? {
  20534. name: "prefix",
  20535. fn: withCtx(() => [
  20536. renderSlot(_ctx.$slots, "prefix")
  20537. ])
  20538. } : void 0
  20539. ]), 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "size", "class", "tabindex", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
  20540. unref(multiple) ? (openBlock(), createElementBlock("div", {
  20541. key: 0,
  20542. ref_key: "tagWrapper",
  20543. ref: tagWrapper,
  20544. class: normalizeClass([
  20545. unref(nsCascader).e("tags"),
  20546. unref(nsCascader).is("validate", Boolean(unref(validateState)))
  20547. ])
  20548. }, [
  20549. renderSlot(_ctx.$slots, "tag", {
  20550. data: tags.value,
  20551. deleteTag
  20552. }, () => [
  20553. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showTagList), (tag) => {
  20554. return openBlock(), createBlock(unref(ElTag), {
  20555. key: tag.key,
  20556. type: _ctx.tagType,
  20557. size: unref(tagSize),
  20558. effect: _ctx.tagEffect,
  20559. hit: tag.hitState,
  20560. closable: tag.closable,
  20561. "disable-transitions": "",
  20562. onClose: ($event) => deleteTag(tag)
  20563. }, {
  20564. default: withCtx(() => [
  20565. createBaseVNode("span", null, toDisplayString(tag.text), 1)
  20566. ]),
  20567. _: 2
  20568. }, 1032, ["type", "size", "effect", "hit", "closable", "onClose"]);
  20569. }), 128))
  20570. ]),
  20571. _ctx.collapseTags && tags.value.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(unref(ElTooltip), {
  20572. key: 0,
  20573. ref_key: "tagTooltipRef",
  20574. ref: tagTooltipRef,
  20575. disabled: popperVisible.value || !_ctx.collapseTagsTooltip,
  20576. "fallback-placements": ["bottom", "top", "right", "left"],
  20577. placement: "bottom",
  20578. "popper-class": _ctx.popperClass,
  20579. "popper-style": _ctx.popperStyle,
  20580. effect: _ctx.effect,
  20581. persistent: _ctx.persistent
  20582. }, {
  20583. default: withCtx(() => [
  20584. createVNode(unref(ElTag), {
  20585. closable: false,
  20586. size: unref(tagSize),
  20587. type: _ctx.tagType,
  20588. effect: _ctx.tagEffect,
  20589. "disable-transitions": ""
  20590. }, {
  20591. default: withCtx(() => [
  20592. createBaseVNode("span", {
  20593. class: normalizeClass(unref(nsCascader).e("tags-text"))
  20594. }, " + " + toDisplayString(tags.value.length - _ctx.maxCollapseTags), 3)
  20595. ]),
  20596. _: 1
  20597. }, 8, ["size", "type", "effect"])
  20598. ]),
  20599. content: withCtx(() => [
  20600. createVNode(unref(ElScrollbar), { "max-height": _ctx.maxCollapseTagsTooltipHeight }, {
  20601. default: withCtx(() => [
  20602. createBaseVNode("div", {
  20603. class: normalizeClass(unref(nsCascader).e("collapse-tags"))
  20604. }, [
  20605. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(collapseTagList), (tag, idx) => {
  20606. return openBlock(), createElementBlock("div", {
  20607. key: idx,
  20608. class: normalizeClass(unref(nsCascader).e("collapse-tag"))
  20609. }, [
  20610. (openBlock(), createBlock(unref(ElTag), {
  20611. key: tag.key,
  20612. class: "in-tooltip",
  20613. type: _ctx.tagType,
  20614. size: unref(tagSize),
  20615. effect: _ctx.tagEffect,
  20616. hit: tag.hitState,
  20617. closable: tag.closable,
  20618. "disable-transitions": "",
  20619. onClose: ($event) => deleteTag(tag)
  20620. }, {
  20621. default: withCtx(() => [
  20622. createBaseVNode("span", null, toDisplayString(tag.text), 1)
  20623. ]),
  20624. _: 2
  20625. }, 1032, ["type", "size", "effect", "hit", "closable", "onClose"]))
  20626. ], 2);
  20627. }), 128))
  20628. ], 2)
  20629. ]),
  20630. _: 1
  20631. }, 8, ["max-height"])
  20632. ]),
  20633. _: 1
  20634. }, 8, ["disabled", "popper-class", "popper-style", "effect", "persistent"])) : createCommentVNode("v-if", true),
  20635. _ctx.filterable && !unref(isDisabled) ? withDirectives((openBlock(), createElementBlock("input", {
  20636. key: 1,
  20637. "onUpdate:modelValue": ($event) => searchInputValue.value = $event,
  20638. type: "text",
  20639. class: normalizeClass(unref(nsCascader).e("search-input")),
  20640. placeholder: unref(presentText) ? "" : unref(inputPlaceholder),
  20641. onInput: (e) => handleInput(searchInputValue.value, e),
  20642. onClick: withModifiers(($event) => togglePopperVisible(true), ["stop"]),
  20643. onKeydown: withKeys(handleDelete, ["delete"]),
  20644. onCompositionstart: unref(handleComposition),
  20645. onCompositionupdate: unref(handleComposition),
  20646. onCompositionend: unref(handleComposition)
  20647. }, null, 42, ["onUpdate:modelValue", "placeholder", "onInput", "onClick", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend"])), [
  20648. [vModelText, searchInputValue.value]
  20649. ]) : createCommentVNode("v-if", true)
  20650. ], 2)) : createCommentVNode("v-if", true)
  20651. ], 46, ["onClick", "onMouseenter", "onMouseleave"])), [
  20652. [unref(ClickOutside), handleClickOutside, unref(contentRef)]
  20653. ])
  20654. ]),
  20655. content: withCtx(() => [
  20656. _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
  20657. key: 0,
  20658. class: normalizeClass(unref(nsCascader).e("header")),
  20659. onClick: withModifiers(() => {
  20660. }, ["stop"])
  20661. }, [
  20662. renderSlot(_ctx.$slots, "header")
  20663. ], 10, ["onClick"])) : createCommentVNode("v-if", true),
  20664. withDirectives(createVNode(unref(ElCascaderPanel), {
  20665. ref_key: "cascaderPanelRef",
  20666. ref: cascaderPanelRef,
  20667. modelValue: unref(checkedValue),
  20668. "onUpdate:modelValue": ($event) => isRef(checkedValue) ? checkedValue.value = $event : null,
  20669. options: _ctx.options,
  20670. props: props2.props,
  20671. border: false,
  20672. "render-label": _ctx.$slots.default,
  20673. onExpandChange: handleExpandChange,
  20674. onClose: ($event) => _ctx.$nextTick(() => togglePopperVisible(false))
  20675. }, {
  20676. empty: withCtx(() => [
  20677. renderSlot(_ctx.$slots, "empty")
  20678. ]),
  20679. _: 3
  20680. }, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "render-label", "onClose"]), [
  20681. [vShow, !filtering.value]
  20682. ]),
  20683. _ctx.filterable ? withDirectives((openBlock(), createBlock(unref(ElScrollbar), {
  20684. key: 1,
  20685. ref_key: "suggestionPanel",
  20686. ref: suggestionPanel,
  20687. tag: "ul",
  20688. class: normalizeClass(unref(nsCascader).e("suggestion-panel")),
  20689. "view-class": unref(nsCascader).e("suggestion-list"),
  20690. onKeydown: handleSuggestionKeyDown
  20691. }, {
  20692. default: withCtx(() => [
  20693. suggestions.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(suggestions.value, (item) => {
  20694. return openBlock(), createElementBlock("li", {
  20695. key: item.uid,
  20696. class: normalizeClass([
  20697. unref(nsCascader).e("suggestion-item"),
  20698. unref(nsCascader).is("checked", item.checked)
  20699. ]),
  20700. tabindex: -1,
  20701. onClick: ($event) => handleSuggestionClick(item)
  20702. }, [
  20703. renderSlot(_ctx.$slots, "suggestion-item", { item }, () => [
  20704. createBaseVNode("span", null, toDisplayString(item.text), 1),
  20705. item.checked ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  20706. default: withCtx(() => [
  20707. createVNode(unref(check_default))
  20708. ]),
  20709. _: 1
  20710. })) : createCommentVNode("v-if", true)
  20711. ])
  20712. ], 10, ["onClick"]);
  20713. }), 128)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
  20714. createBaseVNode("li", {
  20715. class: normalizeClass(unref(nsCascader).e("empty-text"))
  20716. }, toDisplayString(unref(t)("el.cascader.noMatch")), 3)
  20717. ])
  20718. ]),
  20719. _: 3
  20720. }, 8, ["class", "view-class"])), [
  20721. [vShow, filtering.value]
  20722. ]) : createCommentVNode("v-if", true),
  20723. _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
  20724. key: 2,
  20725. class: normalizeClass(unref(nsCascader).e("footer")),
  20726. onClick: withModifiers(() => {
  20727. }, ["stop"])
  20728. }, [
  20729. renderSlot(_ctx.$slots, "footer")
  20730. ], 10, ["onClick"])) : createCommentVNode("v-if", true)
  20731. ]),
  20732. _: 3
  20733. }, 8, ["visible", "teleported", "popper-class", "popper-style", "fallback-placements", "placement", "transition", "effect", "persistent"]);
  20734. };
  20735. }
  20736. });
  20737. var Cascader = _export_sfc(_sfc_main40, [["__file", "cascader.vue"]]);
  20738. // node_modules/element-plus/es/components/cascader/index.mjs
  20739. var ElCascader = withInstall(Cascader);
  20740. // node_modules/element-plus/es/components/check-tag/src/check-tag2.mjs
  20741. var checkTagProps = buildProps({
  20742. checked: Boolean,
  20743. disabled: Boolean,
  20744. type: {
  20745. type: String,
  20746. values: ["primary", "success", "info", "warning", "danger"],
  20747. default: "primary"
  20748. }
  20749. });
  20750. var checkTagEmits = {
  20751. "update:checked": (value) => isBoolean2(value),
  20752. [CHANGE_EVENT]: (value) => isBoolean2(value)
  20753. };
  20754. // node_modules/element-plus/es/components/check-tag/src/check-tag.mjs
  20755. var __default__37 = defineComponent({
  20756. name: "ElCheckTag"
  20757. });
  20758. var _sfc_main41 = defineComponent({
  20759. ...__default__37,
  20760. props: checkTagProps,
  20761. emits: checkTagEmits,
  20762. setup(__props, { emit }) {
  20763. const props2 = __props;
  20764. const ns = useNamespace("check-tag");
  20765. const containerKls = computed(() => [
  20766. ns.b(),
  20767. ns.is("checked", props2.checked),
  20768. ns.is("disabled", props2.disabled),
  20769. ns.m(props2.type || "primary")
  20770. ]);
  20771. const handleChange = () => {
  20772. if (props2.disabled)
  20773. return;
  20774. const checked = !props2.checked;
  20775. emit(CHANGE_EVENT, checked);
  20776. emit("update:checked", checked);
  20777. };
  20778. return (_ctx, _cache) => {
  20779. return openBlock(), createElementBlock("span", {
  20780. class: normalizeClass(unref(containerKls)),
  20781. onClick: handleChange
  20782. }, [
  20783. renderSlot(_ctx.$slots, "default")
  20784. ], 2);
  20785. };
  20786. }
  20787. });
  20788. var CheckTag = _export_sfc(_sfc_main41, [["__file", "check-tag.vue"]]);
  20789. // node_modules/element-plus/es/components/check-tag/index.mjs
  20790. var ElCheckTag = withInstall(CheckTag);
  20791. // node_modules/element-plus/es/components/col/src/col.mjs
  20792. var colProps = buildProps({
  20793. tag: {
  20794. type: String,
  20795. default: "div"
  20796. },
  20797. span: {
  20798. type: Number,
  20799. default: 24
  20800. },
  20801. offset: {
  20802. type: Number,
  20803. default: 0
  20804. },
  20805. pull: {
  20806. type: Number,
  20807. default: 0
  20808. },
  20809. push: {
  20810. type: Number,
  20811. default: 0
  20812. },
  20813. xs: {
  20814. type: definePropType([Number, Object]),
  20815. default: () => mutable({})
  20816. },
  20817. sm: {
  20818. type: definePropType([Number, Object]),
  20819. default: () => mutable({})
  20820. },
  20821. md: {
  20822. type: definePropType([Number, Object]),
  20823. default: () => mutable({})
  20824. },
  20825. lg: {
  20826. type: definePropType([Number, Object]),
  20827. default: () => mutable({})
  20828. },
  20829. xl: {
  20830. type: definePropType([Number, Object]),
  20831. default: () => mutable({})
  20832. }
  20833. });
  20834. // node_modules/element-plus/es/components/row/src/constants.mjs
  20835. var rowContextKey = Symbol("rowContextKey");
  20836. // node_modules/element-plus/es/components/col/src/col2.mjs
  20837. var __default__38 = defineComponent({
  20838. name: "ElCol"
  20839. });
  20840. var _sfc_main42 = defineComponent({
  20841. ...__default__38,
  20842. props: colProps,
  20843. setup(__props) {
  20844. const props2 = __props;
  20845. const { gutter } = inject(rowContextKey, { gutter: computed(() => 0) });
  20846. const ns = useNamespace("col");
  20847. const style = computed(() => {
  20848. const styles = {};
  20849. if (gutter.value) {
  20850. styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`;
  20851. }
  20852. return styles;
  20853. });
  20854. const colKls = computed(() => {
  20855. const classes = [];
  20856. const pos = ["span", "offset", "pull", "push"];
  20857. pos.forEach((prop) => {
  20858. const size3 = props2[prop];
  20859. if (isNumber2(size3)) {
  20860. if (prop === "span")
  20861. classes.push(ns.b(`${props2[prop]}`));
  20862. else if (size3 > 0)
  20863. classes.push(ns.b(`${prop}-${props2[prop]}`));
  20864. }
  20865. });
  20866. const sizes = ["xs", "sm", "md", "lg", "xl"];
  20867. sizes.forEach((size3) => {
  20868. if (isNumber2(props2[size3])) {
  20869. classes.push(ns.b(`${size3}-${props2[size3]}`));
  20870. } else if (isObject(props2[size3])) {
  20871. Object.entries(props2[size3]).forEach(([prop, sizeProp]) => {
  20872. classes.push(prop !== "span" ? ns.b(`${size3}-${prop}-${sizeProp}`) : ns.b(`${size3}-${sizeProp}`));
  20873. });
  20874. }
  20875. });
  20876. if (gutter.value) {
  20877. classes.push(ns.is("guttered"));
  20878. }
  20879. return [ns.b(), classes];
  20880. });
  20881. return (_ctx, _cache) => {
  20882. return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
  20883. class: normalizeClass(unref(colKls)),
  20884. style: normalizeStyle(unref(style))
  20885. }, {
  20886. default: withCtx(() => [
  20887. renderSlot(_ctx.$slots, "default")
  20888. ]),
  20889. _: 3
  20890. }, 8, ["class", "style"]);
  20891. };
  20892. }
  20893. });
  20894. var Col = _export_sfc(_sfc_main42, [["__file", "col.vue"]]);
  20895. // node_modules/element-plus/es/components/col/index.mjs
  20896. var ElCol = withInstall(Col);
  20897. // node_modules/element-plus/es/components/collapse/src/collapse.mjs
  20898. var emitChangeFn3 = (value) => isNumber2(value) || isString(value) || isArray(value);
  20899. var collapseProps = buildProps({
  20900. accordion: Boolean,
  20901. modelValue: {
  20902. type: definePropType([Array, String, Number]),
  20903. default: () => mutable([])
  20904. },
  20905. expandIconPosition: {
  20906. type: definePropType([String]),
  20907. default: "right"
  20908. },
  20909. beforeCollapse: {
  20910. type: definePropType(Function)
  20911. }
  20912. });
  20913. var collapseEmits = {
  20914. [UPDATE_MODEL_EVENT]: emitChangeFn3,
  20915. [CHANGE_EVENT]: emitChangeFn3
  20916. };
  20917. // node_modules/element-plus/es/components/collapse/src/constants.mjs
  20918. var collapseContextKey = Symbol("collapseContextKey");
  20919. // node_modules/element-plus/es/components/collapse/src/use-collapse.mjs
  20920. var SCOPE4 = "ElCollapse";
  20921. var useCollapse = (props2, emit) => {
  20922. const activeNames = ref(castArray_default(props2.modelValue));
  20923. const setActiveNames = (_activeNames) => {
  20924. activeNames.value = _activeNames;
  20925. const value = props2.accordion ? activeNames.value[0] : activeNames.value;
  20926. emit(UPDATE_MODEL_EVENT, value);
  20927. emit(CHANGE_EVENT, value);
  20928. };
  20929. const handleChange = (name) => {
  20930. if (props2.accordion) {
  20931. setActiveNames([activeNames.value[0] === name ? "" : name]);
  20932. } else {
  20933. const _activeNames = [...activeNames.value];
  20934. const index = _activeNames.indexOf(name);
  20935. if (index > -1) {
  20936. _activeNames.splice(index, 1);
  20937. } else {
  20938. _activeNames.push(name);
  20939. }
  20940. setActiveNames(_activeNames);
  20941. }
  20942. };
  20943. const handleItemClick = async (name) => {
  20944. const { beforeCollapse } = props2;
  20945. if (!beforeCollapse) {
  20946. handleChange(name);
  20947. return;
  20948. }
  20949. const shouldChange = beforeCollapse(name);
  20950. const isPromiseOrBool = [
  20951. isPromise(shouldChange),
  20952. isBoolean2(shouldChange)
  20953. ].includes(true);
  20954. if (!isPromiseOrBool) {
  20955. throwError(SCOPE4, "beforeCollapse must return type `Promise<boolean>` or `boolean`");
  20956. }
  20957. if (isPromise(shouldChange)) {
  20958. shouldChange.then((result2) => {
  20959. if (result2 !== false) {
  20960. handleChange(name);
  20961. }
  20962. }).catch((e) => {
  20963. debugWarn(SCOPE4, `some error occurred: ${e}`);
  20964. });
  20965. } else if (shouldChange) {
  20966. handleChange(name);
  20967. }
  20968. };
  20969. watch(() => props2.modelValue, () => activeNames.value = castArray_default(props2.modelValue), { deep: true });
  20970. provide(collapseContextKey, {
  20971. activeNames,
  20972. handleItemClick
  20973. });
  20974. return {
  20975. activeNames,
  20976. setActiveNames
  20977. };
  20978. };
  20979. var useCollapseDOM = (props2) => {
  20980. const ns = useNamespace("collapse");
  20981. const rootKls = computed(() => [
  20982. ns.b(),
  20983. ns.b(`icon-position-${props2.expandIconPosition}`)
  20984. ]);
  20985. return {
  20986. rootKls
  20987. };
  20988. };
  20989. // node_modules/element-plus/es/components/collapse/src/collapse2.mjs
  20990. var __default__39 = defineComponent({
  20991. name: "ElCollapse"
  20992. });
  20993. var _sfc_main43 = defineComponent({
  20994. ...__default__39,
  20995. props: collapseProps,
  20996. emits: collapseEmits,
  20997. setup(__props, { expose, emit }) {
  20998. const props2 = __props;
  20999. const { activeNames, setActiveNames } = useCollapse(props2, emit);
  21000. const { rootKls } = useCollapseDOM(props2);
  21001. expose({
  21002. activeNames,
  21003. setActiveNames
  21004. });
  21005. return (_ctx, _cache) => {
  21006. return openBlock(), createElementBlock("div", {
  21007. class: normalizeClass(unref(rootKls))
  21008. }, [
  21009. renderSlot(_ctx.$slots, "default")
  21010. ], 2);
  21011. };
  21012. }
  21013. });
  21014. var Collapse = _export_sfc(_sfc_main43, [["__file", "collapse.vue"]]);
  21015. // node_modules/element-plus/es/components/collapse-transition/src/collapse-transition.mjs
  21016. var __default__40 = defineComponent({
  21017. name: "ElCollapseTransition"
  21018. });
  21019. var _sfc_main44 = defineComponent({
  21020. ...__default__40,
  21021. setup(__props) {
  21022. const ns = useNamespace("collapse-transition");
  21023. const reset = (el) => {
  21024. el.style.maxHeight = "";
  21025. el.style.overflow = el.dataset.oldOverflow;
  21026. el.style.paddingTop = el.dataset.oldPaddingTop;
  21027. el.style.paddingBottom = el.dataset.oldPaddingBottom;
  21028. };
  21029. const on2 = {
  21030. beforeEnter(el) {
  21031. if (!el.dataset)
  21032. el.dataset = {};
  21033. el.dataset.oldPaddingTop = el.style.paddingTop;
  21034. el.dataset.oldPaddingBottom = el.style.paddingBottom;
  21035. if (el.style.height)
  21036. el.dataset.elExistsHeight = el.style.height;
  21037. el.style.maxHeight = 0;
  21038. el.style.paddingTop = 0;
  21039. el.style.paddingBottom = 0;
  21040. },
  21041. enter(el) {
  21042. requestAnimationFrame(() => {
  21043. el.dataset.oldOverflow = el.style.overflow;
  21044. if (el.dataset.elExistsHeight) {
  21045. el.style.maxHeight = el.dataset.elExistsHeight;
  21046. } else if (el.scrollHeight !== 0) {
  21047. el.style.maxHeight = `${el.scrollHeight}px`;
  21048. } else {
  21049. el.style.maxHeight = 0;
  21050. }
  21051. el.style.paddingTop = el.dataset.oldPaddingTop;
  21052. el.style.paddingBottom = el.dataset.oldPaddingBottom;
  21053. el.style.overflow = "hidden";
  21054. });
  21055. },
  21056. afterEnter(el) {
  21057. el.style.maxHeight = "";
  21058. el.style.overflow = el.dataset.oldOverflow;
  21059. },
  21060. enterCancelled(el) {
  21061. reset(el);
  21062. },
  21063. beforeLeave(el) {
  21064. if (!el.dataset)
  21065. el.dataset = {};
  21066. el.dataset.oldPaddingTop = el.style.paddingTop;
  21067. el.dataset.oldPaddingBottom = el.style.paddingBottom;
  21068. el.dataset.oldOverflow = el.style.overflow;
  21069. el.style.maxHeight = `${el.scrollHeight}px`;
  21070. el.style.overflow = "hidden";
  21071. },
  21072. leave(el) {
  21073. if (el.scrollHeight !== 0) {
  21074. el.style.maxHeight = 0;
  21075. el.style.paddingTop = 0;
  21076. el.style.paddingBottom = 0;
  21077. }
  21078. },
  21079. afterLeave(el) {
  21080. reset(el);
  21081. },
  21082. leaveCancelled(el) {
  21083. reset(el);
  21084. }
  21085. };
  21086. return (_ctx, _cache) => {
  21087. return openBlock(), createBlock(Transition, mergeProps({
  21088. name: unref(ns).b()
  21089. }, toHandlers(on2)), {
  21090. default: withCtx(() => [
  21091. renderSlot(_ctx.$slots, "default")
  21092. ]),
  21093. _: 3
  21094. }, 16, ["name"]);
  21095. };
  21096. }
  21097. });
  21098. var CollapseTransition = _export_sfc(_sfc_main44, [["__file", "collapse-transition.vue"]]);
  21099. // node_modules/element-plus/es/components/collapse-transition/index.mjs
  21100. var ElCollapseTransition = withInstall(CollapseTransition);
  21101. // node_modules/element-plus/es/components/collapse/src/collapse-item.mjs
  21102. var collapseItemProps = buildProps({
  21103. title: {
  21104. type: String,
  21105. default: ""
  21106. },
  21107. name: {
  21108. type: definePropType([String, Number]),
  21109. default: void 0
  21110. },
  21111. icon: {
  21112. type: iconPropType,
  21113. default: arrow_right_default
  21114. },
  21115. disabled: Boolean
  21116. });
  21117. // node_modules/element-plus/es/components/collapse/src/use-collapse-item.mjs
  21118. var useCollapseItem = (props2) => {
  21119. const collapse = inject(collapseContextKey);
  21120. const { namespace } = useNamespace("collapse");
  21121. const focusing = ref(false);
  21122. const isClick = ref(false);
  21123. const idInjection = useIdInjection();
  21124. const id = computed(() => idInjection.current++);
  21125. const name = computed(() => {
  21126. var _a2;
  21127. return (_a2 = props2.name) != null ? _a2 : `${namespace.value}-id-${idInjection.prefix}-${unref(id)}`;
  21128. });
  21129. const isActive = computed(() => collapse == null ? void 0 : collapse.activeNames.value.includes(unref(name)));
  21130. const handleFocus = () => {
  21131. setTimeout(() => {
  21132. if (!isClick.value) {
  21133. focusing.value = true;
  21134. } else {
  21135. isClick.value = false;
  21136. }
  21137. }, 50);
  21138. };
  21139. const handleHeaderClick = (e) => {
  21140. if (props2.disabled)
  21141. return;
  21142. const target2 = e.target;
  21143. if (target2 == null ? void 0 : target2.closest("input, textarea, select"))
  21144. return;
  21145. collapse == null ? void 0 : collapse.handleItemClick(unref(name));
  21146. focusing.value = false;
  21147. isClick.value = true;
  21148. };
  21149. const handleEnterClick = (e) => {
  21150. const target2 = e.target;
  21151. if (target2 == null ? void 0 : target2.closest("input, textarea, select"))
  21152. return;
  21153. e.preventDefault();
  21154. collapse == null ? void 0 : collapse.handleItemClick(unref(name));
  21155. };
  21156. return {
  21157. focusing,
  21158. id,
  21159. isActive,
  21160. handleFocus,
  21161. handleHeaderClick,
  21162. handleEnterClick
  21163. };
  21164. };
  21165. var useCollapseItemDOM = (props2, { focusing, isActive, id }) => {
  21166. const ns = useNamespace("collapse");
  21167. const rootKls = computed(() => [
  21168. ns.b("item"),
  21169. ns.is("active", unref(isActive)),
  21170. ns.is("disabled", props2.disabled)
  21171. ]);
  21172. const headKls = computed(() => [
  21173. ns.be("item", "header"),
  21174. ns.is("active", unref(isActive)),
  21175. { focusing: unref(focusing) && !props2.disabled }
  21176. ]);
  21177. const arrowKls = computed(() => [
  21178. ns.be("item", "arrow"),
  21179. ns.is("active", unref(isActive))
  21180. ]);
  21181. const itemTitleKls = computed(() => [ns.be("item", "title")]);
  21182. const itemWrapperKls = computed(() => ns.be("item", "wrap"));
  21183. const itemContentKls = computed(() => ns.be("item", "content"));
  21184. const scopedContentId = computed(() => ns.b(`content-${unref(id)}`));
  21185. const scopedHeadId = computed(() => ns.b(`head-${unref(id)}`));
  21186. return {
  21187. itemTitleKls,
  21188. arrowKls,
  21189. headKls,
  21190. rootKls,
  21191. itemWrapperKls,
  21192. itemContentKls,
  21193. scopedContentId,
  21194. scopedHeadId
  21195. };
  21196. };
  21197. // node_modules/element-plus/es/components/collapse/src/collapse-item2.mjs
  21198. var __default__41 = defineComponent({
  21199. name: "ElCollapseItem"
  21200. });
  21201. var _sfc_main45 = defineComponent({
  21202. ...__default__41,
  21203. props: collapseItemProps,
  21204. setup(__props, { expose }) {
  21205. const props2 = __props;
  21206. const {
  21207. focusing,
  21208. id,
  21209. isActive,
  21210. handleFocus,
  21211. handleHeaderClick,
  21212. handleEnterClick
  21213. } = useCollapseItem(props2);
  21214. const {
  21215. arrowKls,
  21216. headKls,
  21217. rootKls,
  21218. itemTitleKls,
  21219. itemWrapperKls,
  21220. itemContentKls,
  21221. scopedContentId,
  21222. scopedHeadId
  21223. } = useCollapseItemDOM(props2, { focusing, isActive, id });
  21224. expose({
  21225. isActive
  21226. });
  21227. return (_ctx, _cache) => {
  21228. return openBlock(), createElementBlock("div", {
  21229. class: normalizeClass(unref(rootKls))
  21230. }, [
  21231. createBaseVNode("div", {
  21232. id: unref(scopedHeadId),
  21233. class: normalizeClass(unref(headKls)),
  21234. "aria-expanded": unref(isActive),
  21235. "aria-controls": unref(scopedContentId),
  21236. "aria-describedby": unref(scopedContentId),
  21237. tabindex: _ctx.disabled ? void 0 : 0,
  21238. "aria-disabled": _ctx.disabled,
  21239. role: "button",
  21240. onClick: unref(handleHeaderClick),
  21241. onKeydown: withKeys(withModifiers(unref(handleEnterClick), ["stop"]), ["space", "enter"]),
  21242. onFocus: unref(handleFocus),
  21243. onBlur: ($event) => focusing.value = false
  21244. }, [
  21245. createBaseVNode("span", {
  21246. class: normalizeClass(unref(itemTitleKls))
  21247. }, [
  21248. renderSlot(_ctx.$slots, "title", { isActive: unref(isActive) }, () => [
  21249. createTextVNode(toDisplayString(_ctx.title), 1)
  21250. ])
  21251. ], 2),
  21252. renderSlot(_ctx.$slots, "icon", { isActive: unref(isActive) }, () => [
  21253. createVNode(unref(ElIcon), {
  21254. class: normalizeClass(unref(arrowKls))
  21255. }, {
  21256. default: withCtx(() => [
  21257. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  21258. ]),
  21259. _: 1
  21260. }, 8, ["class"])
  21261. ])
  21262. ], 42, ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex", "aria-disabled", "onClick", "onKeydown", "onFocus", "onBlur"]),
  21263. createVNode(unref(ElCollapseTransition), null, {
  21264. default: withCtx(() => [
  21265. withDirectives(createBaseVNode("div", {
  21266. id: unref(scopedContentId),
  21267. role: "region",
  21268. class: normalizeClass(unref(itemWrapperKls)),
  21269. "aria-hidden": !unref(isActive),
  21270. "aria-labelledby": unref(scopedHeadId)
  21271. }, [
  21272. createBaseVNode("div", {
  21273. class: normalizeClass(unref(itemContentKls))
  21274. }, [
  21275. renderSlot(_ctx.$slots, "default")
  21276. ], 2)
  21277. ], 10, ["id", "aria-hidden", "aria-labelledby"]), [
  21278. [vShow, unref(isActive)]
  21279. ])
  21280. ]),
  21281. _: 3
  21282. })
  21283. ], 2);
  21284. };
  21285. }
  21286. });
  21287. var CollapseItem = _export_sfc(_sfc_main45, [["__file", "collapse-item.vue"]]);
  21288. // node_modules/element-plus/es/components/collapse/index.mjs
  21289. var ElCollapse = withInstall(Collapse, {
  21290. CollapseItem
  21291. });
  21292. var ElCollapseItem = withNoopInstall(CollapseItem);
  21293. // node_modules/element-plus/es/components/color-picker-panel/src/props/slider.mjs
  21294. var alphaSliderProps = buildProps({
  21295. color: {
  21296. type: definePropType(Object),
  21297. required: true
  21298. },
  21299. vertical: Boolean,
  21300. disabled: Boolean
  21301. });
  21302. var hueSliderProps = alphaSliderProps;
  21303. // node_modules/element-plus/es/components/color-picker-panel/src/utils/draggable.mjs
  21304. var isDragging = false;
  21305. function draggable(element, options) {
  21306. if (!isClient)
  21307. return;
  21308. const moveFn = function(event) {
  21309. var _a2;
  21310. (_a2 = options.drag) == null ? void 0 : _a2.call(options, event);
  21311. };
  21312. const upFn = function(event) {
  21313. var _a2;
  21314. document.removeEventListener("mousemove", moveFn);
  21315. document.removeEventListener("mouseup", upFn);
  21316. document.removeEventListener("touchmove", moveFn);
  21317. document.removeEventListener("touchend", upFn);
  21318. document.onselectstart = null;
  21319. document.ondragstart = null;
  21320. isDragging = false;
  21321. (_a2 = options.end) == null ? void 0 : _a2.call(options, event);
  21322. };
  21323. const downFn = function(event) {
  21324. var _a2;
  21325. if (isDragging)
  21326. return;
  21327. document.onselectstart = () => false;
  21328. document.ondragstart = () => false;
  21329. document.addEventListener("mousemove", moveFn);
  21330. document.addEventListener("mouseup", upFn);
  21331. document.addEventListener("touchmove", moveFn);
  21332. document.addEventListener("touchend", upFn);
  21333. isDragging = true;
  21334. (_a2 = options.start) == null ? void 0 : _a2.call(options, event);
  21335. };
  21336. element.addEventListener("mousedown", downFn);
  21337. element.addEventListener("touchstart", downFn, { passive: false });
  21338. }
  21339. // node_modules/element-plus/es/utils/dom/position.mjs
  21340. var getOffsetTop = (el) => {
  21341. let offset3 = 0;
  21342. let parent2 = el;
  21343. while (parent2) {
  21344. offset3 += parent2.offsetTop;
  21345. parent2 = parent2.offsetParent;
  21346. }
  21347. return offset3;
  21348. };
  21349. var getOffsetTopDistance = (el, containerEl) => {
  21350. return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl));
  21351. };
  21352. var getClientXY = (event) => {
  21353. let clientX;
  21354. let clientY;
  21355. if (event.type === "touchend") {
  21356. clientY = event.changedTouches[0].clientY;
  21357. clientX = event.changedTouches[0].clientX;
  21358. } else if (event.type.startsWith("touch")) {
  21359. clientY = event.touches[0].clientY;
  21360. clientX = event.touches[0].clientX;
  21361. } else {
  21362. clientY = event.clientY;
  21363. clientX = event.clientX;
  21364. }
  21365. return {
  21366. clientX,
  21367. clientY
  21368. };
  21369. };
  21370. // node_modules/element-plus/es/components/color-picker-panel/src/composables/use-slider.mjs
  21371. var useSlider = (props2, { key, minValue: minValue3, maxValue: maxValue3 }) => {
  21372. const instance = getCurrentInstance();
  21373. const thumb = shallowRef();
  21374. const bar = shallowRef();
  21375. const currentValue = computed(() => props2.color.get(key));
  21376. function handleClick(event) {
  21377. var _a2;
  21378. if (props2.disabled)
  21379. return;
  21380. const target2 = event.target;
  21381. if (target2 !== thumb.value) {
  21382. handleDrag(event);
  21383. }
  21384. (_a2 = thumb.value) == null ? void 0 : _a2.focus();
  21385. }
  21386. function handleDrag(event) {
  21387. if (!bar.value || !thumb.value || props2.disabled)
  21388. return;
  21389. const el = instance.vnode.el;
  21390. const rect = el.getBoundingClientRect();
  21391. const { clientX, clientY } = getClientXY(event);
  21392. let value;
  21393. if (!props2.vertical) {
  21394. let left = clientX - rect.left;
  21395. left = Math.max(thumb.value.offsetWidth / 2, left);
  21396. left = Math.min(left, rect.width - thumb.value.offsetWidth / 2);
  21397. value = Math.round((left - thumb.value.offsetWidth / 2) / (rect.width - thumb.value.offsetWidth) * maxValue3);
  21398. } else {
  21399. let top = clientY - rect.top;
  21400. top = Math.max(thumb.value.offsetHeight / 2, top);
  21401. top = Math.min(top, rect.height - thumb.value.offsetHeight / 2);
  21402. value = Math.round((top - thumb.value.offsetHeight / 2) / (rect.height - thumb.value.offsetHeight) * maxValue3);
  21403. }
  21404. props2.color.set(key, value);
  21405. }
  21406. function handleKeydown(event) {
  21407. if (props2.disabled)
  21408. return;
  21409. const { shiftKey } = event;
  21410. const code = getEventCode(event);
  21411. const step2 = shiftKey ? 10 : 1;
  21412. const reverse2 = key === "hue" ? -1 : 1;
  21413. let isPreventDefault = true;
  21414. switch (code) {
  21415. case EVENT_CODE.left:
  21416. case EVENT_CODE.down:
  21417. incrementPosition(-step2 * reverse2);
  21418. break;
  21419. case EVENT_CODE.right:
  21420. case EVENT_CODE.up:
  21421. incrementPosition(step2 * reverse2);
  21422. break;
  21423. case EVENT_CODE.home:
  21424. props2.color.set(key, key === "hue" ? maxValue3 : minValue3);
  21425. break;
  21426. case EVENT_CODE.end:
  21427. props2.color.set(key, key === "hue" ? minValue3 : maxValue3);
  21428. break;
  21429. case EVENT_CODE.pageDown:
  21430. incrementPosition(-4 * reverse2);
  21431. break;
  21432. case EVENT_CODE.pageUp:
  21433. incrementPosition(4 * reverse2);
  21434. break;
  21435. default:
  21436. isPreventDefault = false;
  21437. break;
  21438. }
  21439. isPreventDefault && event.preventDefault();
  21440. }
  21441. function incrementPosition(step2) {
  21442. let next = currentValue.value + step2;
  21443. next = next < minValue3 ? minValue3 : next > maxValue3 ? maxValue3 : next;
  21444. props2.color.set(key, next);
  21445. }
  21446. return {
  21447. thumb,
  21448. bar,
  21449. currentValue,
  21450. handleDrag,
  21451. handleClick,
  21452. handleKeydown
  21453. };
  21454. };
  21455. var useSliderDOM = (props2, {
  21456. namespace,
  21457. maxValue: maxValue3,
  21458. bar,
  21459. thumb,
  21460. currentValue,
  21461. handleDrag,
  21462. getBackground
  21463. }) => {
  21464. const instance = getCurrentInstance();
  21465. const ns = useNamespace(namespace);
  21466. const thumbLeft = ref(0);
  21467. const thumbTop = ref(0);
  21468. const background = ref();
  21469. function getThumbLeft() {
  21470. if (!thumb.value)
  21471. return 0;
  21472. if (props2.vertical)
  21473. return 0;
  21474. const el = instance.vnode.el;
  21475. const value = currentValue.value;
  21476. if (!el)
  21477. return 0;
  21478. return Math.round(value * (el.offsetWidth - thumb.value.offsetWidth / 2) / maxValue3);
  21479. }
  21480. function getThumbTop() {
  21481. if (!thumb.value)
  21482. return 0;
  21483. const el = instance.vnode.el;
  21484. if (!props2.vertical)
  21485. return 0;
  21486. const value = currentValue.value;
  21487. if (!el)
  21488. return 0;
  21489. return Math.round(value * (el.offsetHeight - thumb.value.offsetHeight / 2) / maxValue3);
  21490. }
  21491. function update2() {
  21492. thumbLeft.value = getThumbLeft();
  21493. thumbTop.value = getThumbTop();
  21494. background.value = getBackground == null ? void 0 : getBackground();
  21495. }
  21496. onMounted(() => {
  21497. if (!bar.value || !thumb.value)
  21498. return;
  21499. const dragConfig = {
  21500. drag: (event) => {
  21501. handleDrag(event);
  21502. },
  21503. end: (event) => {
  21504. handleDrag(event);
  21505. }
  21506. };
  21507. draggable(bar.value, dragConfig);
  21508. draggable(thumb.value, dragConfig);
  21509. update2();
  21510. });
  21511. watch(currentValue, () => update2());
  21512. watch(() => props2.color.value, () => update2());
  21513. const rootKls = computed(() => [
  21514. ns.b(),
  21515. ns.is("vertical", props2.vertical),
  21516. ns.is("disabled", props2.disabled)
  21517. ]);
  21518. const barKls = computed(() => ns.e("bar"));
  21519. const thumbKls = computed(() => ns.e("thumb"));
  21520. const barStyle = computed(() => ({ background: background.value }));
  21521. const thumbStyle = computed(() => ({
  21522. left: addUnit(thumbLeft.value),
  21523. top: addUnit(thumbTop.value)
  21524. }));
  21525. return {
  21526. rootKls,
  21527. barKls,
  21528. barStyle,
  21529. thumbKls,
  21530. thumbStyle,
  21531. thumbLeft,
  21532. thumbTop,
  21533. update: update2
  21534. };
  21535. };
  21536. // node_modules/element-plus/es/components/color-picker-panel/src/components/alpha-slider.mjs
  21537. var minValue = 0;
  21538. var maxValue = 100;
  21539. var __default__42 = defineComponent({
  21540. name: "ElColorAlphaSlider"
  21541. });
  21542. var _sfc_main46 = defineComponent({
  21543. ...__default__42,
  21544. props: alphaSliderProps,
  21545. setup(__props, { expose }) {
  21546. const props2 = __props;
  21547. const { currentValue, bar, thumb, handleDrag, handleClick, handleKeydown } = useSlider(props2, { key: "alpha", minValue, maxValue });
  21548. const { rootKls, barKls, barStyle, thumbKls, thumbStyle, update: update2 } = useSliderDOM(props2, {
  21549. namespace: "color-alpha-slider",
  21550. maxValue,
  21551. currentValue,
  21552. bar,
  21553. thumb,
  21554. handleDrag,
  21555. getBackground
  21556. });
  21557. const { t } = useLocale();
  21558. const ariaLabel = computed(() => t("el.colorpicker.alphaLabel"));
  21559. const ariaValuetext = computed(() => {
  21560. return t("el.colorpicker.alphaDescription", {
  21561. alpha: currentValue.value,
  21562. color: props2.color.value
  21563. });
  21564. });
  21565. function getBackground() {
  21566. if (props2.color && props2.color.value) {
  21567. const { r, g, b: b2 } = props2.color.toRgb();
  21568. return `linear-gradient(to right, rgba(${r}, ${g}, ${b2}, 0) 0%, rgba(${r}, ${g}, ${b2}, 1) 100%)`;
  21569. }
  21570. return "";
  21571. }
  21572. expose({
  21573. update: update2,
  21574. bar,
  21575. thumb
  21576. });
  21577. return (_ctx, _cache) => {
  21578. return openBlock(), createElementBlock("div", {
  21579. class: normalizeClass(unref(rootKls))
  21580. }, [
  21581. createBaseVNode("div", {
  21582. ref_key: "bar",
  21583. ref: bar,
  21584. class: normalizeClass(unref(barKls)),
  21585. style: normalizeStyle(unref(barStyle)),
  21586. onClick: unref(handleClick)
  21587. }, null, 14, ["onClick"]),
  21588. createBaseVNode("div", {
  21589. ref_key: "thumb",
  21590. ref: thumb,
  21591. class: normalizeClass(unref(thumbKls)),
  21592. style: normalizeStyle(unref(thumbStyle)),
  21593. "aria-label": unref(ariaLabel),
  21594. "aria-valuenow": unref(currentValue),
  21595. "aria-valuetext": unref(ariaValuetext),
  21596. "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
  21597. "aria-valuemin": minValue,
  21598. "aria-valuemax": maxValue,
  21599. role: "slider",
  21600. tabindex: "0",
  21601. onKeydown: unref(handleKeydown)
  21602. }, null, 46, ["aria-label", "aria-valuenow", "aria-valuetext", "aria-orientation", "onKeydown"])
  21603. ], 2);
  21604. };
  21605. }
  21606. });
  21607. var AlphaSlider = _export_sfc(_sfc_main46, [["__file", "alpha-slider.vue"]]);
  21608. // node_modules/element-plus/es/components/color-picker-panel/src/components/hue-slider.mjs
  21609. var minValue2 = 0;
  21610. var maxValue2 = 360;
  21611. var __default__43 = defineComponent({
  21612. name: "ElColorHueSlider"
  21613. });
  21614. var _sfc_main47 = defineComponent({
  21615. ...__default__43,
  21616. props: hueSliderProps,
  21617. setup(__props, { expose }) {
  21618. const props2 = __props;
  21619. const { currentValue, bar, thumb, handleDrag, handleClick, handleKeydown } = useSlider(props2, { key: "hue", minValue: minValue2, maxValue: maxValue2 });
  21620. const { rootKls, barKls, thumbKls, thumbStyle, thumbTop, update: update2 } = useSliderDOM(props2, {
  21621. namespace: "color-hue-slider",
  21622. maxValue: maxValue2,
  21623. currentValue,
  21624. bar,
  21625. thumb,
  21626. handleDrag
  21627. });
  21628. const { t } = useLocale();
  21629. const ariaLabel = computed(() => t("el.colorpicker.hueLabel"));
  21630. const ariaValuetext = computed(() => {
  21631. return t("el.colorpicker.hueDescription", {
  21632. hue: currentValue.value,
  21633. color: props2.color.value
  21634. });
  21635. });
  21636. expose({
  21637. bar,
  21638. thumb,
  21639. thumbTop,
  21640. update: update2
  21641. });
  21642. return (_ctx, _cache) => {
  21643. return openBlock(), createElementBlock("div", {
  21644. class: normalizeClass(unref(rootKls))
  21645. }, [
  21646. createBaseVNode("div", {
  21647. ref_key: "bar",
  21648. ref: bar,
  21649. class: normalizeClass(unref(barKls)),
  21650. onClick: unref(handleClick)
  21651. }, null, 10, ["onClick"]),
  21652. createBaseVNode("div", {
  21653. ref_key: "thumb",
  21654. ref: thumb,
  21655. class: normalizeClass(unref(thumbKls)),
  21656. style: normalizeStyle(unref(thumbStyle)),
  21657. "aria-label": unref(ariaLabel),
  21658. "aria-valuenow": unref(currentValue),
  21659. "aria-valuetext": unref(ariaValuetext),
  21660. "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
  21661. "aria-valuemin": minValue2,
  21662. "aria-valuemax": maxValue2,
  21663. role: "slider",
  21664. tabindex: "0",
  21665. onKeydown: unref(handleKeydown)
  21666. }, null, 46, ["aria-label", "aria-valuenow", "aria-valuetext", "aria-orientation", "onKeydown"])
  21667. ], 2);
  21668. };
  21669. }
  21670. });
  21671. var HueSlider = _export_sfc(_sfc_main47, [["__file", "hue-slider.vue"]]);
  21672. // node_modules/element-plus/es/components/color-picker-panel/src/props/predefine.mjs
  21673. var predefineProps = buildProps({
  21674. colors: {
  21675. type: definePropType(Array),
  21676. required: true
  21677. },
  21678. color: {
  21679. type: definePropType(Object),
  21680. required: true
  21681. },
  21682. enableAlpha: {
  21683. type: Boolean,
  21684. required: true
  21685. },
  21686. disabled: Boolean
  21687. });
  21688. // node_modules/element-plus/es/components/color-picker-panel/src/color-picker-panel.mjs
  21689. var colorPickerPanelProps = buildProps({
  21690. modelValue: {
  21691. type: definePropType(String),
  21692. default: void 0
  21693. },
  21694. border: {
  21695. type: Boolean,
  21696. default: true
  21697. },
  21698. showAlpha: Boolean,
  21699. colorFormat: String,
  21700. disabled: Boolean,
  21701. predefine: {
  21702. type: definePropType(Array)
  21703. },
  21704. validateEvent: {
  21705. type: Boolean,
  21706. default: true
  21707. }
  21708. });
  21709. var colorPickerPanelEmits = {
  21710. [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil_default(val)
  21711. };
  21712. var ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
  21713. var colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
  21714. // node_modules/element-plus/es/components/color-picker-panel/src/utils/color.mjs
  21715. var Color = class {
  21716. constructor(options = {}) {
  21717. this._hue = 0;
  21718. this._saturation = 100;
  21719. this._value = 100;
  21720. this._alpha = 100;
  21721. this._tiny = new TinyColor();
  21722. this._isValid = false;
  21723. this.enableAlpha = false;
  21724. this.format = "";
  21725. this.value = "";
  21726. for (const option in options) {
  21727. if (hasOwn(options, option)) {
  21728. this[option] = options[option];
  21729. }
  21730. }
  21731. if (options.value) {
  21732. this.fromString(options.value);
  21733. } else {
  21734. this.doOnChange();
  21735. }
  21736. }
  21737. set(prop, value) {
  21738. if (arguments.length === 1 && typeof prop === "object") {
  21739. for (const p2 in prop) {
  21740. if (hasOwn(prop, p2)) {
  21741. this.set(p2, prop[p2]);
  21742. }
  21743. }
  21744. return;
  21745. }
  21746. this[`_${prop}`] = value;
  21747. this._isValid = true;
  21748. this.doOnChange();
  21749. }
  21750. get(prop) {
  21751. if (["hue", "saturation", "value", "alpha"].includes(prop)) {
  21752. return Math.round(this[`_${prop}`]);
  21753. }
  21754. return this[`_${prop}`];
  21755. }
  21756. toRgb() {
  21757. return this._isValid ? this._tiny.toRgb() : { r: 255, g: 255, b: 255, a: 0 };
  21758. }
  21759. fromString(value) {
  21760. const color = new TinyColor(value);
  21761. this._isValid = color.isValid;
  21762. if (color.isValid) {
  21763. const { h: h3, s: s2, v: v2, a: a2 } = color.toHsv();
  21764. this._hue = h3;
  21765. this._saturation = s2 * 100;
  21766. this._value = v2 * 100;
  21767. this._alpha = a2 * 100;
  21768. } else {
  21769. this._hue = 0;
  21770. this._saturation = 100;
  21771. this._value = 100;
  21772. this._alpha = 100;
  21773. }
  21774. this.doOnChange();
  21775. }
  21776. clear() {
  21777. this._isValid = false;
  21778. this.value = "";
  21779. this._hue = 0;
  21780. this._saturation = 100;
  21781. this._value = 100;
  21782. this._alpha = 100;
  21783. }
  21784. compare(color) {
  21785. const compareColor = new TinyColor({
  21786. h: color._hue,
  21787. s: color._saturation / 100,
  21788. v: color._value / 100,
  21789. a: color._alpha / 100
  21790. });
  21791. return this._tiny.equals(compareColor);
  21792. }
  21793. doOnChange() {
  21794. const { _hue, _saturation, _value, _alpha, format: format2, enableAlpha } = this;
  21795. let _format = format2 || (enableAlpha ? "rgb" : "hex");
  21796. if (format2 === "hex" && enableAlpha) {
  21797. _format = "hex8";
  21798. }
  21799. this._tiny = new TinyColor({
  21800. h: _hue,
  21801. s: _saturation / 100,
  21802. v: _value / 100,
  21803. a: _alpha / 100
  21804. });
  21805. this.value = this._isValid ? this._tiny.toString(_format) : "";
  21806. }
  21807. };
  21808. // node_modules/element-plus/es/components/color-picker-panel/src/composables/use-predefine.mjs
  21809. var usePredefine = (props2) => {
  21810. const { currentColor } = inject(colorPickerPanelContextKey);
  21811. const rgbaColors = ref(parseColors(props2.colors, props2.color));
  21812. watch(() => currentColor.value, (val) => {
  21813. const color = new Color({
  21814. value: val,
  21815. enableAlpha: props2.enableAlpha
  21816. });
  21817. rgbaColors.value.forEach((item) => {
  21818. item.selected = color.compare(item);
  21819. });
  21820. });
  21821. watchEffect(() => {
  21822. rgbaColors.value = parseColors(props2.colors, props2.color);
  21823. });
  21824. function handleSelect(index) {
  21825. props2.color.fromString(props2.colors[index]);
  21826. }
  21827. function parseColors(colors, color) {
  21828. return colors.map((value) => {
  21829. const c2 = new Color({
  21830. value,
  21831. enableAlpha: props2.enableAlpha
  21832. });
  21833. c2.selected = c2.compare(color);
  21834. return c2;
  21835. });
  21836. }
  21837. return {
  21838. rgbaColors,
  21839. handleSelect
  21840. };
  21841. };
  21842. var usePredefineDOM = (props2) => {
  21843. const ns = useNamespace("color-predefine");
  21844. const rootKls = computed(() => [ns.b(), ns.is("disabled", props2.disabled)]);
  21845. const colorsKls = computed(() => ns.e("colors"));
  21846. function colorSelectorKls(item) {
  21847. return [
  21848. ns.e("color-selector"),
  21849. ns.is("alpha", item.get("alpha") < 100),
  21850. { selected: item.selected }
  21851. ];
  21852. }
  21853. return {
  21854. rootKls,
  21855. colorsKls,
  21856. colorSelectorKls
  21857. };
  21858. };
  21859. // node_modules/element-plus/es/components/color-picker-panel/src/components/predefine.mjs
  21860. var __default__44 = defineComponent({
  21861. name: "ElColorPredefine"
  21862. });
  21863. var _sfc_main48 = defineComponent({
  21864. ...__default__44,
  21865. props: predefineProps,
  21866. setup(__props) {
  21867. const props2 = __props;
  21868. const { rgbaColors, handleSelect } = usePredefine(props2);
  21869. const { rootKls, colorsKls, colorSelectorKls } = usePredefineDOM(props2);
  21870. const { t } = useLocale();
  21871. const ariaLabel = (value) => {
  21872. return t("el.colorpicker.predefineDescription", { value });
  21873. };
  21874. return (_ctx, _cache) => {
  21875. return openBlock(), createElementBlock("div", {
  21876. class: normalizeClass(unref(rootKls))
  21877. }, [
  21878. createBaseVNode("div", {
  21879. class: normalizeClass(unref(colorsKls))
  21880. }, [
  21881. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rgbaColors), (item, index) => {
  21882. return openBlock(), createElementBlock("button", {
  21883. key: _ctx.colors[index],
  21884. type: "button",
  21885. disabled: _ctx.disabled,
  21886. "aria-label": ariaLabel(item.value),
  21887. class: normalizeClass(unref(colorSelectorKls)(item)),
  21888. onClick: ($event) => unref(handleSelect)(index)
  21889. }, [
  21890. createBaseVNode("div", {
  21891. style: normalizeStyle({ backgroundColor: item.value })
  21892. }, null, 4)
  21893. ], 10, ["disabled", "aria-label", "onClick"]);
  21894. }), 128))
  21895. ], 2)
  21896. ], 2);
  21897. };
  21898. }
  21899. });
  21900. var Predefine = _export_sfc(_sfc_main48, [["__file", "predefine.vue"]]);
  21901. // node_modules/element-plus/es/components/color-picker-panel/src/props/sv-panel.mjs
  21902. var svPanelProps = buildProps({
  21903. color: {
  21904. type: definePropType(Object),
  21905. required: true
  21906. },
  21907. disabled: Boolean
  21908. });
  21909. // node_modules/element-plus/es/components/color-picker-panel/src/composables/use-sv-panel.mjs
  21910. var useSvPanel = (props2) => {
  21911. const instance = getCurrentInstance();
  21912. const cursorRef = ref();
  21913. const cursorTop = ref(0);
  21914. const cursorLeft = ref(0);
  21915. const background = ref("hsl(0, 100%, 50%)");
  21916. const saturation = computed(() => props2.color.get("saturation"));
  21917. const brightness = computed(() => props2.color.get("value"));
  21918. const hue = computed(() => props2.color.get("hue"));
  21919. function handleClick(event) {
  21920. var _a2;
  21921. if (props2.disabled)
  21922. return;
  21923. const target2 = event.target;
  21924. if (target2 !== cursorRef.value) {
  21925. handleDrag(event);
  21926. }
  21927. (_a2 = cursorRef.value) == null ? void 0 : _a2.focus({ preventScroll: true });
  21928. }
  21929. function handleDrag(event) {
  21930. if (props2.disabled)
  21931. return;
  21932. const el = instance.vnode.el;
  21933. const rect = el.getBoundingClientRect();
  21934. const { clientX, clientY } = getClientXY(event);
  21935. let left = clientX - rect.left;
  21936. let top = clientY - rect.top;
  21937. left = Math.max(0, left);
  21938. left = Math.min(left, rect.width);
  21939. top = Math.max(0, top);
  21940. top = Math.min(top, rect.height);
  21941. cursorLeft.value = left;
  21942. cursorTop.value = top;
  21943. props2.color.set({
  21944. saturation: left / rect.width * 100,
  21945. value: 100 - top / rect.height * 100
  21946. });
  21947. }
  21948. function handleKeydown(event) {
  21949. if (props2.disabled)
  21950. return;
  21951. const { shiftKey } = event;
  21952. const code = getEventCode(event);
  21953. const step2 = shiftKey ? 10 : 1;
  21954. let isPreventDefault = true;
  21955. switch (code) {
  21956. case EVENT_CODE.left:
  21957. incrementSaturation(-step2);
  21958. break;
  21959. case EVENT_CODE.right:
  21960. incrementSaturation(step2);
  21961. break;
  21962. case EVENT_CODE.up:
  21963. incrementBrightness(step2);
  21964. break;
  21965. case EVENT_CODE.down:
  21966. incrementBrightness(-step2);
  21967. break;
  21968. default:
  21969. isPreventDefault = false;
  21970. break;
  21971. }
  21972. isPreventDefault && event.preventDefault();
  21973. }
  21974. function incrementSaturation(step2) {
  21975. let next = saturation.value + step2;
  21976. next = next < 0 ? 0 : next > 100 ? 100 : next;
  21977. props2.color.set("saturation", next);
  21978. }
  21979. function incrementBrightness(step2) {
  21980. let next = brightness.value + step2;
  21981. next = next < 0 ? 0 : next > 100 ? 100 : next;
  21982. props2.color.set("value", next);
  21983. }
  21984. return {
  21985. cursorRef,
  21986. cursorTop,
  21987. cursorLeft,
  21988. background,
  21989. saturation,
  21990. brightness,
  21991. hue,
  21992. handleClick,
  21993. handleDrag,
  21994. handleKeydown
  21995. };
  21996. };
  21997. var useSvPanelDOM = (props2, {
  21998. cursorTop,
  21999. cursorLeft,
  22000. background,
  22001. handleDrag
  22002. }) => {
  22003. const instance = getCurrentInstance();
  22004. const ns = useNamespace("color-svpanel");
  22005. function update2() {
  22006. const saturation = props2.color.get("saturation");
  22007. const brightness = props2.color.get("value");
  22008. const el = instance.vnode.el;
  22009. const { clientWidth: width, clientHeight: height } = el;
  22010. cursorLeft.value = saturation * width / 100;
  22011. cursorTop.value = (100 - brightness) * height / 100;
  22012. background.value = `hsl(${props2.color.get("hue")}, 100%, 50%)`;
  22013. }
  22014. onMounted(() => {
  22015. draggable(instance.vnode.el, {
  22016. drag: (event) => {
  22017. handleDrag(event);
  22018. },
  22019. end: (event) => {
  22020. handleDrag(event);
  22021. }
  22022. });
  22023. update2();
  22024. });
  22025. watch([
  22026. () => props2.color.get("hue"),
  22027. () => props2.color.get("value"),
  22028. () => props2.color.value
  22029. ], () => update2());
  22030. const rootKls = computed(() => ns.b());
  22031. const cursorKls = computed(() => ns.e("cursor"));
  22032. const rootStyle = computed(() => ({
  22033. backgroundColor: background.value
  22034. }));
  22035. const cursorStyle = computed(() => ({
  22036. top: addUnit(cursorTop.value),
  22037. left: addUnit(cursorLeft.value)
  22038. }));
  22039. return {
  22040. rootKls,
  22041. cursorKls,
  22042. rootStyle,
  22043. cursorStyle,
  22044. update: update2
  22045. };
  22046. };
  22047. // node_modules/element-plus/es/components/color-picker-panel/src/components/sv-panel.mjs
  22048. var __default__45 = defineComponent({
  22049. name: "ElSvPanel"
  22050. });
  22051. var _sfc_main49 = defineComponent({
  22052. ...__default__45,
  22053. props: svPanelProps,
  22054. setup(__props, { expose }) {
  22055. const props2 = __props;
  22056. const {
  22057. cursorRef,
  22058. cursorTop,
  22059. cursorLeft,
  22060. background,
  22061. saturation,
  22062. brightness,
  22063. handleClick,
  22064. handleDrag,
  22065. handleKeydown
  22066. } = useSvPanel(props2);
  22067. const { rootKls, cursorKls, rootStyle, cursorStyle, update: update2 } = useSvPanelDOM(props2, {
  22068. cursorTop,
  22069. cursorLeft,
  22070. background,
  22071. handleDrag
  22072. });
  22073. const { t } = useLocale();
  22074. const ariaLabel = computed(() => t("el.colorpicker.svLabel"));
  22075. const ariaValuetext = computed(() => {
  22076. return t("el.colorpicker.svDescription", {
  22077. saturation: saturation.value,
  22078. brightness: brightness.value,
  22079. color: props2.color.value
  22080. });
  22081. });
  22082. expose({
  22083. update: update2
  22084. });
  22085. return (_ctx, _cache) => {
  22086. return openBlock(), createElementBlock("div", {
  22087. class: normalizeClass(unref(rootKls)),
  22088. style: normalizeStyle(unref(rootStyle)),
  22089. onClick: unref(handleClick)
  22090. }, [
  22091. createBaseVNode("div", {
  22092. ref_key: "cursorRef",
  22093. ref: cursorRef,
  22094. class: normalizeClass(unref(cursorKls)),
  22095. style: normalizeStyle(unref(cursorStyle)),
  22096. tabindex: "0",
  22097. role: "slider",
  22098. "aria-valuemin": "0,0",
  22099. "aria-valuemax": "100,100",
  22100. "aria-label": unref(ariaLabel),
  22101. "aria-valuenow": `${unref(saturation)},${unref(brightness)}`,
  22102. "aria-valuetext": unref(ariaValuetext),
  22103. onKeydown: unref(handleKeydown)
  22104. }, null, 46, ["aria-label", "aria-valuenow", "aria-valuetext", "onKeydown"])
  22105. ], 14, ["onClick"]);
  22106. };
  22107. }
  22108. });
  22109. var SvPanel = _export_sfc(_sfc_main49, [["__file", "sv-panel.vue"]]);
  22110. // node_modules/element-plus/es/components/color-picker-panel/src/composables/use-common-color.mjs
  22111. var useCommonColor = (props2, emit) => {
  22112. const color = reactive(new Color({
  22113. enableAlpha: props2.showAlpha,
  22114. format: props2.colorFormat || "",
  22115. value: props2.modelValue
  22116. }));
  22117. watch(() => [props2.colorFormat, props2.showAlpha], () => {
  22118. color.enableAlpha = props2.showAlpha;
  22119. color.format = props2.colorFormat || color.format;
  22120. color.doOnChange();
  22121. emit(UPDATE_MODEL_EVENT, color.value);
  22122. });
  22123. return {
  22124. color
  22125. };
  22126. };
  22127. // node_modules/element-plus/es/components/color-picker-panel/src/color-picker-panel2.mjs
  22128. var __default__46 = defineComponent({
  22129. name: "ElColorPickerPanel"
  22130. });
  22131. var _sfc_main50 = defineComponent({
  22132. ...__default__46,
  22133. props: colorPickerPanelProps,
  22134. emits: colorPickerPanelEmits,
  22135. setup(__props, { expose, emit }) {
  22136. const props2 = __props;
  22137. const ns = useNamespace("color-picker-panel");
  22138. const { formItem } = useFormItem();
  22139. const disabled = useFormDisabled();
  22140. const hueRef = ref();
  22141. const svRef = ref();
  22142. const alphaRef = ref();
  22143. const inputRef = ref();
  22144. const customInput = ref("");
  22145. const { color } = inject(ROOT_COMMON_COLOR_INJECTION_KEY, () => useCommonColor(props2, emit), true);
  22146. function handleConfirm() {
  22147. color.fromString(customInput.value);
  22148. if (color.value !== customInput.value) {
  22149. customInput.value = color.value;
  22150. }
  22151. }
  22152. function handleFocusout() {
  22153. var _a2;
  22154. if (props2.validateEvent) {
  22155. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn(err));
  22156. }
  22157. }
  22158. function update2() {
  22159. var _a2, _b, _c;
  22160. (_a2 = hueRef.value) == null ? void 0 : _a2.update();
  22161. (_b = svRef.value) == null ? void 0 : _b.update();
  22162. (_c = alphaRef.value) == null ? void 0 : _c.update();
  22163. }
  22164. onMounted(() => {
  22165. if (props2.modelValue) {
  22166. customInput.value = color.value;
  22167. }
  22168. nextTick(update2);
  22169. });
  22170. watch(() => props2.modelValue, (newVal) => {
  22171. if (newVal !== color.value) {
  22172. newVal ? color.fromString(newVal) : color.clear();
  22173. }
  22174. });
  22175. watch(() => color.value, (val) => {
  22176. emit(UPDATE_MODEL_EVENT, val);
  22177. customInput.value = val;
  22178. if (props2.validateEvent) {
  22179. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  22180. }
  22181. });
  22182. provide(colorPickerPanelContextKey, {
  22183. currentColor: computed(() => color.value)
  22184. });
  22185. expose({
  22186. color,
  22187. inputRef,
  22188. update: update2
  22189. });
  22190. return (_ctx, _cache) => {
  22191. return openBlock(), createElementBlock("div", {
  22192. class: normalizeClass([unref(ns).b(), unref(ns).is("disabled", unref(disabled)), unref(ns).is("border", _ctx.border)]),
  22193. onFocusout: handleFocusout
  22194. }, [
  22195. createBaseVNode("div", {
  22196. class: normalizeClass(unref(ns).e("wrapper"))
  22197. }, [
  22198. createVNode(HueSlider, {
  22199. ref_key: "hueRef",
  22200. ref: hueRef,
  22201. class: "hue-slider",
  22202. color: unref(color),
  22203. vertical: "",
  22204. disabled: unref(disabled)
  22205. }, null, 8, ["color", "disabled"]),
  22206. createVNode(SvPanel, {
  22207. ref_key: "svRef",
  22208. ref: svRef,
  22209. color: unref(color),
  22210. disabled: unref(disabled)
  22211. }, null, 8, ["color", "disabled"])
  22212. ], 2),
  22213. _ctx.showAlpha ? (openBlock(), createBlock(AlphaSlider, {
  22214. key: 0,
  22215. ref_key: "alphaRef",
  22216. ref: alphaRef,
  22217. color: unref(color),
  22218. disabled: unref(disabled)
  22219. }, null, 8, ["color", "disabled"])) : createCommentVNode("v-if", true),
  22220. _ctx.predefine ? (openBlock(), createBlock(Predefine, {
  22221. key: 1,
  22222. ref: "predefine",
  22223. "enable-alpha": _ctx.showAlpha,
  22224. color: unref(color),
  22225. colors: _ctx.predefine,
  22226. disabled: unref(disabled)
  22227. }, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : createCommentVNode("v-if", true),
  22228. createBaseVNode("div", {
  22229. class: normalizeClass(unref(ns).e("footer"))
  22230. }, [
  22231. createVNode(unref(ElInput), {
  22232. ref_key: "inputRef",
  22233. ref: inputRef,
  22234. modelValue: customInput.value,
  22235. "onUpdate:modelValue": ($event) => customInput.value = $event,
  22236. "validate-event": false,
  22237. size: "small",
  22238. disabled: unref(disabled),
  22239. onChange: handleConfirm
  22240. }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
  22241. renderSlot(_ctx.$slots, "footer")
  22242. ], 2)
  22243. ], 34);
  22244. };
  22245. }
  22246. });
  22247. var ColorPickerPanel = _export_sfc(_sfc_main50, [["__file", "color-picker-panel.vue"]]);
  22248. // node_modules/element-plus/es/components/color-picker-panel/index.mjs
  22249. var ElColorPickerPanel = withInstall(ColorPickerPanel);
  22250. // node_modules/element-plus/es/components/color-picker/src/color-picker.mjs
  22251. var colorPickerProps = buildProps({
  22252. persistent: {
  22253. type: Boolean,
  22254. default: true
  22255. },
  22256. modelValue: {
  22257. type: definePropType(String),
  22258. default: void 0
  22259. },
  22260. id: String,
  22261. showAlpha: Boolean,
  22262. colorFormat: String,
  22263. disabled: Boolean,
  22264. size: useSizeProp,
  22265. popperClass: useTooltipContentProps.popperClass,
  22266. popperStyle: useTooltipContentProps.popperStyle,
  22267. tabindex: {
  22268. type: [String, Number],
  22269. default: 0
  22270. },
  22271. teleported: useTooltipContentProps.teleported,
  22272. appendTo: useTooltipContentProps.appendTo,
  22273. predefine: {
  22274. type: definePropType(Array)
  22275. },
  22276. validateEvent: {
  22277. type: Boolean,
  22278. default: true
  22279. },
  22280. ...useEmptyValuesProps,
  22281. ...useAriaProps(["ariaLabel"])
  22282. });
  22283. var colorPickerEmits = {
  22284. [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil_default(val),
  22285. [CHANGE_EVENT]: (val) => isString(val) || isNil_default(val),
  22286. activeChange: (val) => isString(val) || isNil_default(val),
  22287. focus: (evt) => evt instanceof FocusEvent,
  22288. blur: (evt) => evt instanceof FocusEvent
  22289. };
  22290. // node_modules/element-plus/es/components/color-picker/src/color-picker2.mjs
  22291. var __default__47 = defineComponent({
  22292. name: "ElColorPicker"
  22293. });
  22294. var _sfc_main51 = defineComponent({
  22295. ...__default__47,
  22296. props: colorPickerProps,
  22297. emits: colorPickerEmits,
  22298. setup(__props, { expose, emit }) {
  22299. const props2 = __props;
  22300. const { t } = useLocale();
  22301. const ns = useNamespace("color");
  22302. const { formItem } = useFormItem();
  22303. const colorSize = useFormSize();
  22304. const colorDisabled = useFormDisabled();
  22305. const { valueOnClear, isEmptyValue: isEmptyValue2 } = useEmptyValues(props2, null);
  22306. const commonColor = useCommonColor(props2, emit);
  22307. const { inputId: buttonId, isLabeledByFormItem } = useFormItemInputId(props2, {
  22308. formItemContext: formItem
  22309. });
  22310. const popper = ref();
  22311. const triggerRef2 = ref();
  22312. const pickerPanelRef = ref();
  22313. const showPicker = ref(false);
  22314. const showPanelColor = ref(false);
  22315. let shouldActiveChange = true;
  22316. const { isFocused, handleFocus, handleBlur } = useFocusController(triggerRef2, {
  22317. disabled: colorDisabled,
  22318. beforeBlur(event) {
  22319. var _a2;
  22320. return (_a2 = popper.value) == null ? void 0 : _a2.isFocusInsideContent(event);
  22321. },
  22322. afterBlur() {
  22323. var _a2;
  22324. setShowPicker(false);
  22325. resetColor();
  22326. if (props2.validateEvent) {
  22327. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn(err));
  22328. }
  22329. }
  22330. });
  22331. const color = reactiveComputed(() => {
  22332. var _a2, _b;
  22333. return (_b = (_a2 = pickerPanelRef.value) == null ? void 0 : _a2.color) != null ? _b : commonColor.color;
  22334. });
  22335. const panelProps = computed(() => pick_default(props2, Object.keys(colorPickerPanelProps)));
  22336. const displayedColor = computed(() => {
  22337. if (!props2.modelValue && !showPanelColor.value) {
  22338. return "transparent";
  22339. }
  22340. return displayedRgb(color, props2.showAlpha);
  22341. });
  22342. const currentColor = computed(() => {
  22343. return !props2.modelValue && !showPanelColor.value ? "" : color.value;
  22344. });
  22345. const buttonAriaLabel = computed(() => {
  22346. return !isLabeledByFormItem.value ? props2.ariaLabel || t("el.colorpicker.defaultLabel") : void 0;
  22347. });
  22348. const buttonAriaLabelledby = computed(() => {
  22349. return isLabeledByFormItem.value ? formItem == null ? void 0 : formItem.labelId : void 0;
  22350. });
  22351. const btnKls = computed(() => {
  22352. return [
  22353. ns.b("picker"),
  22354. ns.is("disabled", colorDisabled.value),
  22355. ns.bm("picker", colorSize.value),
  22356. ns.is("focused", isFocused.value)
  22357. ];
  22358. });
  22359. function displayedRgb(color2, showAlpha) {
  22360. const { r, g, b: b2, a: a2 } = color2.toRgb();
  22361. return showAlpha ? `rgba(${r}, ${g}, ${b2}, ${a2})` : `rgb(${r}, ${g}, ${b2})`;
  22362. }
  22363. function setShowPicker(value) {
  22364. showPicker.value = value;
  22365. }
  22366. const debounceSetShowPicker = debounce_default(setShowPicker, 100, { leading: true });
  22367. function show() {
  22368. if (colorDisabled.value)
  22369. return;
  22370. setShowPicker(true);
  22371. }
  22372. function hide2() {
  22373. debounceSetShowPicker(false);
  22374. resetColor();
  22375. }
  22376. function resetColor() {
  22377. nextTick(() => {
  22378. if (props2.modelValue) {
  22379. color.fromString(props2.modelValue);
  22380. } else {
  22381. color.value = "";
  22382. nextTick(() => {
  22383. showPanelColor.value = false;
  22384. });
  22385. }
  22386. });
  22387. }
  22388. function handleTrigger() {
  22389. if (colorDisabled.value)
  22390. return;
  22391. if (showPicker.value) {
  22392. resetColor();
  22393. }
  22394. debounceSetShowPicker(!showPicker.value);
  22395. }
  22396. function confirmValue() {
  22397. const value = isEmptyValue2(color.value) ? valueOnClear.value : color.value;
  22398. emit(UPDATE_MODEL_EVENT, value);
  22399. emit(CHANGE_EVENT, value);
  22400. if (props2.validateEvent) {
  22401. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  22402. }
  22403. debounceSetShowPicker(false);
  22404. nextTick(() => {
  22405. const newColor = new Color({
  22406. enableAlpha: props2.showAlpha,
  22407. format: props2.colorFormat || "",
  22408. value: props2.modelValue
  22409. });
  22410. if (!color.compare(newColor)) {
  22411. resetColor();
  22412. }
  22413. });
  22414. }
  22415. function clear() {
  22416. debounceSetShowPicker(false);
  22417. emit(UPDATE_MODEL_EVENT, valueOnClear.value);
  22418. emit(CHANGE_EVENT, valueOnClear.value);
  22419. if (props2.modelValue !== valueOnClear.value && props2.validateEvent) {
  22420. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  22421. }
  22422. resetColor();
  22423. }
  22424. function handleShowTooltip() {
  22425. var _a2, _b;
  22426. (_b = (_a2 = pickerPanelRef == null ? void 0 : pickerPanelRef.value) == null ? void 0 : _a2.inputRef) == null ? void 0 : _b.focus();
  22427. }
  22428. function handleClickOutside() {
  22429. if (!showPicker.value)
  22430. return;
  22431. hide2();
  22432. isFocused.value && focus();
  22433. }
  22434. function handleEsc(event) {
  22435. event.preventDefault();
  22436. event.stopPropagation();
  22437. setShowPicker(false);
  22438. resetColor();
  22439. }
  22440. function handleKeyDown(event) {
  22441. const code = getEventCode(event);
  22442. switch (code) {
  22443. case EVENT_CODE.enter:
  22444. case EVENT_CODE.numpadEnter:
  22445. case EVENT_CODE.space:
  22446. event.preventDefault();
  22447. event.stopPropagation();
  22448. show();
  22449. break;
  22450. case EVENT_CODE.esc:
  22451. handleEsc(event);
  22452. break;
  22453. }
  22454. }
  22455. function focus() {
  22456. triggerRef2.value.focus();
  22457. }
  22458. function blur() {
  22459. triggerRef2.value.blur();
  22460. }
  22461. watch(() => currentColor.value, (val) => {
  22462. shouldActiveChange && emit("activeChange", val);
  22463. shouldActiveChange = true;
  22464. });
  22465. watch(() => color.value, () => {
  22466. if (!props2.modelValue && !showPanelColor.value) {
  22467. showPanelColor.value = true;
  22468. }
  22469. });
  22470. watch(() => props2.modelValue, (newVal) => {
  22471. if (!newVal) {
  22472. showPanelColor.value = false;
  22473. } else if (newVal && newVal !== color.value) {
  22474. shouldActiveChange = false;
  22475. color.fromString(newVal);
  22476. }
  22477. });
  22478. watch(() => showPicker.value, () => {
  22479. var _a2;
  22480. nextTick((_a2 = pickerPanelRef.value) == null ? void 0 : _a2.update);
  22481. });
  22482. provide(ROOT_COMMON_COLOR_INJECTION_KEY, commonColor);
  22483. expose({
  22484. color,
  22485. show,
  22486. hide: hide2,
  22487. focus,
  22488. blur
  22489. });
  22490. return (_ctx, _cache) => {
  22491. return openBlock(), createBlock(unref(ElTooltip), {
  22492. ref_key: "popper",
  22493. ref: popper,
  22494. visible: showPicker.value,
  22495. "show-arrow": false,
  22496. "fallback-placements": ["bottom", "top", "right", "left"],
  22497. offset: 0,
  22498. "gpu-acceleration": false,
  22499. "popper-class": [unref(ns).be("picker", "panel"), _ctx.popperClass],
  22500. "popper-style": _ctx.popperStyle,
  22501. "stop-popper-mouse-event": false,
  22502. pure: "",
  22503. loop: "",
  22504. role: "dialog",
  22505. effect: "light",
  22506. trigger: "click",
  22507. teleported: _ctx.teleported,
  22508. transition: `${unref(ns).namespace.value}-zoom-in-top`,
  22509. persistent: _ctx.persistent,
  22510. "append-to": _ctx.appendTo,
  22511. onShow: handleShowTooltip,
  22512. onHide: ($event) => setShowPicker(false)
  22513. }, {
  22514. content: withCtx(() => [
  22515. withDirectives((openBlock(), createBlock(unref(ElColorPickerPanel), mergeProps({
  22516. ref_key: "pickerPanelRef",
  22517. ref: pickerPanelRef
  22518. }, unref(panelProps), {
  22519. border: false,
  22520. "validate-event": false,
  22521. onKeydown: withKeys(handleEsc, ["esc"])
  22522. }), {
  22523. footer: withCtx(() => [
  22524. createBaseVNode("div", null, [
  22525. createVNode(unref(ElButton), {
  22526. class: normalizeClass(unref(ns).be("footer", "link-btn")),
  22527. text: "",
  22528. size: "small",
  22529. onClick: clear
  22530. }, {
  22531. default: withCtx(() => [
  22532. createTextVNode(toDisplayString(unref(t)("el.colorpicker.clear")), 1)
  22533. ]),
  22534. _: 1
  22535. }, 8, ["class"]),
  22536. createVNode(unref(ElButton), {
  22537. plain: "",
  22538. size: "small",
  22539. class: normalizeClass(unref(ns).be("footer", "btn")),
  22540. onClick: confirmValue
  22541. }, {
  22542. default: withCtx(() => [
  22543. createTextVNode(toDisplayString(unref(t)("el.colorpicker.confirm")), 1)
  22544. ]),
  22545. _: 1
  22546. }, 8, ["class"])
  22547. ])
  22548. ]),
  22549. _: 1
  22550. }, 16, ["onKeydown"])), [
  22551. [unref(ClickOutside), handleClickOutside, triggerRef2.value]
  22552. ])
  22553. ]),
  22554. default: withCtx(() => [
  22555. createBaseVNode("div", mergeProps({
  22556. id: unref(buttonId),
  22557. ref_key: "triggerRef",
  22558. ref: triggerRef2
  22559. }, _ctx.$attrs, {
  22560. class: unref(btnKls),
  22561. role: "button",
  22562. "aria-label": unref(buttonAriaLabel),
  22563. "aria-labelledby": unref(buttonAriaLabelledby),
  22564. "aria-description": unref(t)("el.colorpicker.description", { color: _ctx.modelValue || "" }),
  22565. "aria-disabled": unref(colorDisabled),
  22566. tabindex: unref(colorDisabled) ? void 0 : _ctx.tabindex,
  22567. onKeydown: handleKeyDown,
  22568. onFocus: unref(handleFocus),
  22569. onBlur: unref(handleBlur)
  22570. }), [
  22571. createBaseVNode("div", {
  22572. class: normalizeClass(unref(ns).be("picker", "trigger")),
  22573. onClick: handleTrigger
  22574. }, [
  22575. createBaseVNode("span", {
  22576. class: normalizeClass([unref(ns).be("picker", "color"), unref(ns).is("alpha", _ctx.showAlpha)])
  22577. }, [
  22578. createBaseVNode("span", {
  22579. class: normalizeClass(unref(ns).be("picker", "color-inner")),
  22580. style: normalizeStyle({
  22581. backgroundColor: unref(displayedColor)
  22582. })
  22583. }, [
  22584. withDirectives(createVNode(unref(ElIcon), {
  22585. class: normalizeClass([unref(ns).be("picker", "icon"), unref(ns).is("icon-arrow-down")])
  22586. }, {
  22587. default: withCtx(() => [
  22588. createVNode(unref(arrow_down_default))
  22589. ]),
  22590. _: 1
  22591. }, 8, ["class"]), [
  22592. [vShow, _ctx.modelValue || showPanelColor.value]
  22593. ]),
  22594. withDirectives(createVNode(unref(ElIcon), {
  22595. class: normalizeClass([unref(ns).be("picker", "empty"), unref(ns).is("icon-close")])
  22596. }, {
  22597. default: withCtx(() => [
  22598. createVNode(unref(close_default))
  22599. ]),
  22600. _: 1
  22601. }, 8, ["class"]), [
  22602. [vShow, !_ctx.modelValue && !showPanelColor.value]
  22603. ])
  22604. ], 6)
  22605. ], 2)
  22606. ], 2)
  22607. ], 16, ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex", "onFocus", "onBlur"])
  22608. ]),
  22609. _: 1
  22610. }, 8, ["visible", "popper-class", "popper-style", "teleported", "transition", "persistent", "append-to", "onHide"]);
  22611. };
  22612. }
  22613. });
  22614. var ColorPicker = _export_sfc(_sfc_main51, [["__file", "color-picker.vue"]]);
  22615. // node_modules/element-plus/es/components/color-picker/index.mjs
  22616. var ElColorPicker = withInstall(ColorPicker);
  22617. // node_modules/element-plus/es/components/config-provider/src/config-provider-props.mjs
  22618. var configProviderProps = buildProps({
  22619. a11y: {
  22620. type: Boolean,
  22621. default: true
  22622. },
  22623. locale: {
  22624. type: definePropType(Object)
  22625. },
  22626. size: useSizeProp,
  22627. button: {
  22628. type: definePropType(Object)
  22629. },
  22630. card: {
  22631. type: definePropType(Object)
  22632. },
  22633. dialog: {
  22634. type: definePropType(Object)
  22635. },
  22636. link: {
  22637. type: definePropType(Object)
  22638. },
  22639. experimentalFeatures: {
  22640. type: definePropType(Object)
  22641. },
  22642. keyboardNavigation: {
  22643. type: Boolean,
  22644. default: true
  22645. },
  22646. message: {
  22647. type: definePropType(Object)
  22648. },
  22649. zIndex: Number,
  22650. namespace: {
  22651. type: String,
  22652. default: "el"
  22653. },
  22654. ...useEmptyValuesProps
  22655. });
  22656. // node_modules/element-plus/es/components/config-provider/src/config-provider.mjs
  22657. var messageConfig = {
  22658. placement: "top"
  22659. };
  22660. var ConfigProvider = defineComponent({
  22661. name: "ElConfigProvider",
  22662. props: configProviderProps,
  22663. setup(props2, { slots }) {
  22664. const config = provideGlobalConfig(props2);
  22665. watch(() => props2.message, (val) => {
  22666. var _a2, _b;
  22667. Object.assign(messageConfig, (_b = (_a2 = config == null ? void 0 : config.value) == null ? void 0 : _a2.message) != null ? _b : {}, val != null ? val : {});
  22668. }, { immediate: true, deep: true });
  22669. return () => renderSlot(slots, "default", { config: config == null ? void 0 : config.value });
  22670. }
  22671. });
  22672. // node_modules/element-plus/es/components/config-provider/index.mjs
  22673. var ElConfigProvider = withInstall(ConfigProvider);
  22674. // node_modules/element-plus/es/components/container/src/container.mjs
  22675. var __default__48 = defineComponent({
  22676. name: "ElContainer"
  22677. });
  22678. var _sfc_main52 = defineComponent({
  22679. ...__default__48,
  22680. props: buildProps({
  22681. direction: {
  22682. type: String,
  22683. values: ["horizontal", "vertical"]
  22684. }
  22685. }),
  22686. setup(__props) {
  22687. const props2 = __props;
  22688. const slots = useSlots();
  22689. const ns = useNamespace("container");
  22690. const isVertical = computed(() => {
  22691. if (props2.direction === "vertical") {
  22692. return true;
  22693. } else if (props2.direction === "horizontal") {
  22694. return false;
  22695. }
  22696. if (slots && slots.default) {
  22697. const vNodes = slots.default();
  22698. return vNodes.some((vNode) => {
  22699. const tag = vNode.type.name;
  22700. return tag === "ElHeader" || tag === "ElFooter";
  22701. });
  22702. } else {
  22703. return false;
  22704. }
  22705. });
  22706. return (_ctx, _cache) => {
  22707. return openBlock(), createElementBlock("section", {
  22708. class: normalizeClass([unref(ns).b(), unref(ns).is("vertical", unref(isVertical))])
  22709. }, [
  22710. renderSlot(_ctx.$slots, "default")
  22711. ], 2);
  22712. };
  22713. }
  22714. });
  22715. var Container = _export_sfc(_sfc_main52, [["__file", "container.vue"]]);
  22716. // node_modules/element-plus/es/components/container/src/aside.mjs
  22717. var __default__49 = defineComponent({
  22718. name: "ElAside"
  22719. });
  22720. var _sfc_main53 = defineComponent({
  22721. ...__default__49,
  22722. props: {
  22723. width: {
  22724. type: String,
  22725. default: null
  22726. }
  22727. },
  22728. setup(__props) {
  22729. const props2 = __props;
  22730. const ns = useNamespace("aside");
  22731. const style = computed(() => props2.width ? ns.cssVarBlock({ width: props2.width }) : {});
  22732. return (_ctx, _cache) => {
  22733. return openBlock(), createElementBlock("aside", {
  22734. class: normalizeClass(unref(ns).b()),
  22735. style: normalizeStyle(unref(style))
  22736. }, [
  22737. renderSlot(_ctx.$slots, "default")
  22738. ], 6);
  22739. };
  22740. }
  22741. });
  22742. var Aside = _export_sfc(_sfc_main53, [["__file", "aside.vue"]]);
  22743. // node_modules/element-plus/es/components/container/src/footer.mjs
  22744. var __default__50 = defineComponent({
  22745. name: "ElFooter"
  22746. });
  22747. var _sfc_main54 = defineComponent({
  22748. ...__default__50,
  22749. props: {
  22750. height: {
  22751. type: String,
  22752. default: null
  22753. }
  22754. },
  22755. setup(__props) {
  22756. const props2 = __props;
  22757. const ns = useNamespace("footer");
  22758. const style = computed(() => props2.height ? ns.cssVarBlock({ height: props2.height }) : {});
  22759. return (_ctx, _cache) => {
  22760. return openBlock(), createElementBlock("footer", {
  22761. class: normalizeClass(unref(ns).b()),
  22762. style: normalizeStyle(unref(style))
  22763. }, [
  22764. renderSlot(_ctx.$slots, "default")
  22765. ], 6);
  22766. };
  22767. }
  22768. });
  22769. var Footer = _export_sfc(_sfc_main54, [["__file", "footer.vue"]]);
  22770. // node_modules/element-plus/es/components/container/src/header.mjs
  22771. var __default__51 = defineComponent({
  22772. name: "ElHeader"
  22773. });
  22774. var _sfc_main55 = defineComponent({
  22775. ...__default__51,
  22776. props: {
  22777. height: {
  22778. type: String,
  22779. default: null
  22780. }
  22781. },
  22782. setup(__props) {
  22783. const props2 = __props;
  22784. const ns = useNamespace("header");
  22785. const style = computed(() => {
  22786. return props2.height ? ns.cssVarBlock({
  22787. height: props2.height
  22788. }) : {};
  22789. });
  22790. return (_ctx, _cache) => {
  22791. return openBlock(), createElementBlock("header", {
  22792. class: normalizeClass(unref(ns).b()),
  22793. style: normalizeStyle(unref(style))
  22794. }, [
  22795. renderSlot(_ctx.$slots, "default")
  22796. ], 6);
  22797. };
  22798. }
  22799. });
  22800. var Header = _export_sfc(_sfc_main55, [["__file", "header.vue"]]);
  22801. // node_modules/element-plus/es/components/container/src/main.mjs
  22802. var __default__52 = defineComponent({
  22803. name: "ElMain"
  22804. });
  22805. var _sfc_main56 = defineComponent({
  22806. ...__default__52,
  22807. setup(__props) {
  22808. const ns = useNamespace("main");
  22809. return (_ctx, _cache) => {
  22810. return openBlock(), createElementBlock("main", {
  22811. class: normalizeClass(unref(ns).b())
  22812. }, [
  22813. renderSlot(_ctx.$slots, "default")
  22814. ], 2);
  22815. };
  22816. }
  22817. });
  22818. var Main = _export_sfc(_sfc_main56, [["__file", "main.vue"]]);
  22819. // node_modules/element-plus/es/components/container/index.mjs
  22820. var ElContainer = withInstall(Container, {
  22821. Aside,
  22822. Footer,
  22823. Header,
  22824. Main
  22825. });
  22826. var ElAside = withNoopInstall(Aside);
  22827. var ElFooter = withNoopInstall(Footer);
  22828. var ElHeader = withNoopInstall(Header);
  22829. var ElMain = withNoopInstall(Main);
  22830. // node_modules/element-plus/es/components/time-picker/src/time-picker.mjs
  22831. var import_dayjs6 = __toESM(require_dayjs_min(), 1);
  22832. var import_customParseFormat = __toESM(require_customParseFormat(), 1);
  22833. // node_modules/element-plus/es/components/time-picker/src/constants.mjs
  22834. var timeUnits = ["hours", "minutes", "seconds"];
  22835. var PICKER_BASE_INJECTION_KEY = "EP_PICKER_BASE";
  22836. var PICKER_POPPER_OPTIONS_INJECTION_KEY = "ElPopperOptions";
  22837. var ROOT_COMMON_PICKER_INJECTION_KEY = Symbol("commonPickerContextKey");
  22838. var DEFAULT_FORMATS_TIME = "HH:mm:ss";
  22839. var DEFAULT_FORMATS_DATE = "YYYY-MM-DD";
  22840. var DEFAULT_FORMATS_DATEPICKER = {
  22841. date: DEFAULT_FORMATS_DATE,
  22842. dates: DEFAULT_FORMATS_DATE,
  22843. week: "gggg[w]ww",
  22844. year: "YYYY",
  22845. years: "YYYY",
  22846. month: "YYYY-MM",
  22847. months: "YYYY-MM",
  22848. datetime: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,
  22849. monthrange: "YYYY-MM",
  22850. yearrange: "YYYY",
  22851. daterange: DEFAULT_FORMATS_DATE,
  22852. datetimerange: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`
  22853. };
  22854. // node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.mjs
  22855. var useCommonPicker = (props2, emit) => {
  22856. const { lang } = useLocale();
  22857. const pickerVisible = ref(false);
  22858. const pickerActualVisible = ref(false);
  22859. const userInput = ref(null);
  22860. const valueIsEmpty = computed(() => {
  22861. const { modelValue } = props2;
  22862. return !modelValue || isArray(modelValue) && !modelValue.filter(Boolean).length;
  22863. });
  22864. const emitInput = (input) => {
  22865. if (!valueEquals(props2.modelValue, input)) {
  22866. let formatted;
  22867. if (isArray(input)) {
  22868. formatted = input.map((item) => formatter(item, props2.valueFormat, lang.value));
  22869. } else if (input) {
  22870. formatted = formatter(input, props2.valueFormat, lang.value);
  22871. }
  22872. const emitVal = input ? formatted : input;
  22873. emit(UPDATE_MODEL_EVENT, emitVal, lang.value);
  22874. }
  22875. };
  22876. const parsedValue = computed(() => {
  22877. var _a2;
  22878. let dayOrDays;
  22879. if (valueIsEmpty.value) {
  22880. if (pickerOptions.value.getDefaultValue) {
  22881. dayOrDays = pickerOptions.value.getDefaultValue();
  22882. }
  22883. } else {
  22884. if (isArray(props2.modelValue)) {
  22885. dayOrDays = props2.modelValue.map((d2) => parseDate(d2, props2.valueFormat, lang.value));
  22886. } else {
  22887. dayOrDays = parseDate((_a2 = props2.modelValue) != null ? _a2 : "", props2.valueFormat, lang.value);
  22888. }
  22889. }
  22890. if (pickerOptions.value.getRangeAvailableTime) {
  22891. const availableResult = pickerOptions.value.getRangeAvailableTime(dayOrDays);
  22892. if (!isEqual_default(availableResult, dayOrDays)) {
  22893. dayOrDays = availableResult;
  22894. if (!valueIsEmpty.value) {
  22895. emitInput(dayOrDaysToDate(dayOrDays));
  22896. }
  22897. }
  22898. }
  22899. if (isArray(dayOrDays) && dayOrDays.some((day) => !day)) {
  22900. dayOrDays = [];
  22901. }
  22902. return dayOrDays;
  22903. });
  22904. const pickerOptions = ref({});
  22905. const onSetPickerOption = (e) => {
  22906. pickerOptions.value[e[0]] = e[1];
  22907. pickerOptions.value.panelReady = true;
  22908. };
  22909. const onCalendarChange = (e) => {
  22910. emit("calendar-change", e);
  22911. };
  22912. const onPanelChange = (value, mode, view) => {
  22913. emit("panel-change", value, mode, view);
  22914. };
  22915. const onPick = (date4 = "", visible = false) => {
  22916. pickerVisible.value = visible;
  22917. let result2;
  22918. if (isArray(date4)) {
  22919. result2 = date4.map((_2) => _2.toDate());
  22920. } else {
  22921. result2 = date4 ? date4.toDate() : date4;
  22922. }
  22923. userInput.value = null;
  22924. emitInput(result2);
  22925. };
  22926. return {
  22927. parsedValue,
  22928. pickerActualVisible,
  22929. pickerOptions,
  22930. pickerVisible,
  22931. userInput,
  22932. valueIsEmpty,
  22933. emitInput,
  22934. onCalendarChange,
  22935. onPanelChange,
  22936. onPick,
  22937. onSetPickerOption
  22938. };
  22939. };
  22940. // node_modules/element-plus/es/components/time-picker/src/props/shared.mjs
  22941. var disabledTimeListsProps = buildProps({
  22942. disabledHours: {
  22943. type: definePropType(Function)
  22944. },
  22945. disabledMinutes: {
  22946. type: definePropType(Function)
  22947. },
  22948. disabledSeconds: {
  22949. type: definePropType(Function)
  22950. }
  22951. });
  22952. var timePanelSharedProps = buildProps({
  22953. visible: Boolean,
  22954. actualVisible: {
  22955. type: Boolean,
  22956. default: void 0
  22957. },
  22958. format: {
  22959. type: String,
  22960. default: ""
  22961. }
  22962. });
  22963. // node_modules/element-plus/es/components/time-picker/src/common/props.mjs
  22964. var timePickerDefaultProps = buildProps({
  22965. automaticDropdown: {
  22966. type: Boolean,
  22967. default: true
  22968. },
  22969. id: {
  22970. type: definePropType([Array, String])
  22971. },
  22972. name: {
  22973. type: definePropType([Array, String])
  22974. },
  22975. popperClass: useTooltipContentProps.popperClass,
  22976. popperStyle: useTooltipContentProps.popperStyle,
  22977. format: String,
  22978. valueFormat: String,
  22979. dateFormat: String,
  22980. timeFormat: String,
  22981. type: {
  22982. type: String,
  22983. default: ""
  22984. },
  22985. clearable: {
  22986. type: Boolean,
  22987. default: true
  22988. },
  22989. clearIcon: {
  22990. type: definePropType([String, Object]),
  22991. default: circle_close_default
  22992. },
  22993. editable: {
  22994. type: Boolean,
  22995. default: true
  22996. },
  22997. prefixIcon: {
  22998. type: definePropType([String, Object]),
  22999. default: ""
  23000. },
  23001. size: useSizeProp,
  23002. readonly: Boolean,
  23003. disabled: Boolean,
  23004. placeholder: {
  23005. type: String,
  23006. default: ""
  23007. },
  23008. popperOptions: {
  23009. type: definePropType(Object),
  23010. default: () => ({})
  23011. },
  23012. modelValue: {
  23013. type: definePropType([Date, Array, String, Number]),
  23014. default: ""
  23015. },
  23016. rangeSeparator: {
  23017. type: String,
  23018. default: "-"
  23019. },
  23020. startPlaceholder: String,
  23021. endPlaceholder: String,
  23022. defaultValue: {
  23023. type: definePropType([Date, Array])
  23024. },
  23025. defaultTime: {
  23026. type: definePropType([Date, Array])
  23027. },
  23028. isRange: Boolean,
  23029. ...disabledTimeListsProps,
  23030. disabledDate: {
  23031. type: Function
  23032. },
  23033. cellClassName: {
  23034. type: Function
  23035. },
  23036. shortcuts: {
  23037. type: Array,
  23038. default: () => []
  23039. },
  23040. arrowControl: Boolean,
  23041. tabindex: {
  23042. type: definePropType([String, Number]),
  23043. default: 0
  23044. },
  23045. validateEvent: {
  23046. type: Boolean,
  23047. default: true
  23048. },
  23049. unlinkPanels: Boolean,
  23050. placement: {
  23051. type: definePropType(String),
  23052. values: Ee,
  23053. default: "bottom"
  23054. },
  23055. fallbackPlacements: {
  23056. type: definePropType(Array),
  23057. default: ["bottom", "top", "right", "left"]
  23058. },
  23059. ...useEmptyValuesProps,
  23060. ...useAriaProps(["ariaLabel"]),
  23061. showNow: {
  23062. type: Boolean,
  23063. default: true
  23064. },
  23065. showConfirm: {
  23066. type: Boolean,
  23067. default: true
  23068. },
  23069. showFooter: {
  23070. type: Boolean,
  23071. default: true
  23072. },
  23073. showWeekNumber: Boolean
  23074. });
  23075. var timePickerRangeTriggerProps = buildProps({
  23076. id: {
  23077. type: definePropType(Array)
  23078. },
  23079. name: {
  23080. type: definePropType(Array)
  23081. },
  23082. modelValue: {
  23083. type: definePropType([Array, String])
  23084. },
  23085. startPlaceholder: String,
  23086. endPlaceholder: String,
  23087. disabled: Boolean
  23088. });
  23089. var timePickerRngeTriggerProps = timePickerRangeTriggerProps;
  23090. // node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.mjs
  23091. var __default__53 = defineComponent({
  23092. name: "PickerRangeTrigger",
  23093. inheritAttrs: false
  23094. });
  23095. var _sfc_main57 = defineComponent({
  23096. ...__default__53,
  23097. props: timePickerRangeTriggerProps,
  23098. emits: [
  23099. "mouseenter",
  23100. "mouseleave",
  23101. "click",
  23102. "touchstart",
  23103. "focus",
  23104. "blur",
  23105. "startInput",
  23106. "endInput",
  23107. "startChange",
  23108. "endChange"
  23109. ],
  23110. setup(__props, { expose, emit }) {
  23111. const props2 = __props;
  23112. const { formItem } = useFormItem();
  23113. const { inputId } = useFormItemInputId(reactive({ id: computed(() => {
  23114. var _a2;
  23115. return (_a2 = props2.id) == null ? void 0 : _a2[0];
  23116. }) }), {
  23117. formItemContext: formItem
  23118. });
  23119. const attrs = useAttrs2();
  23120. const nsDate = useNamespace("date");
  23121. const nsRange = useNamespace("range");
  23122. const inputRef = ref();
  23123. const endInputRef = ref();
  23124. const { wrapperRef, isFocused } = useFocusController(inputRef, {
  23125. disabled: computed(() => props2.disabled)
  23126. });
  23127. const handleClick = (evt) => {
  23128. emit("click", evt);
  23129. };
  23130. const handleMouseEnter = (evt) => {
  23131. emit("mouseenter", evt);
  23132. };
  23133. const handleMouseLeave = (evt) => {
  23134. emit("mouseleave", evt);
  23135. };
  23136. const handleTouchStart = (evt) => {
  23137. emit("touchstart", evt);
  23138. };
  23139. const handleStartInput = (evt) => {
  23140. emit("startInput", evt);
  23141. };
  23142. const handleEndInput = (evt) => {
  23143. emit("endInput", evt);
  23144. };
  23145. const handleStartChange = (evt) => {
  23146. emit("startChange", evt);
  23147. };
  23148. const handleEndChange = (evt) => {
  23149. emit("endChange", evt);
  23150. };
  23151. const focus = () => {
  23152. var _a2;
  23153. (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
  23154. };
  23155. const blur = () => {
  23156. var _a2, _b;
  23157. (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
  23158. (_b = endInputRef.value) == null ? void 0 : _b.blur();
  23159. };
  23160. expose({
  23161. focus,
  23162. blur
  23163. });
  23164. return (_ctx, _cache) => {
  23165. return openBlock(), createElementBlock("div", {
  23166. ref_key: "wrapperRef",
  23167. ref: wrapperRef,
  23168. class: normalizeClass([unref(nsDate).is("active", unref(isFocused)), _ctx.$attrs.class]),
  23169. style: normalizeStyle(_ctx.$attrs.style),
  23170. onClick: handleClick,
  23171. onMouseenter: handleMouseEnter,
  23172. onMouseleave: handleMouseLeave,
  23173. onTouchstartPassive: handleTouchStart
  23174. }, [
  23175. renderSlot(_ctx.$slots, "prefix"),
  23176. createBaseVNode("input", mergeProps(unref(attrs), {
  23177. id: unref(inputId),
  23178. ref_key: "inputRef",
  23179. ref: inputRef,
  23180. name: _ctx.name && _ctx.name[0],
  23181. placeholder: _ctx.startPlaceholder,
  23182. value: _ctx.modelValue && _ctx.modelValue[0],
  23183. class: unref(nsRange).b("input"),
  23184. disabled: _ctx.disabled,
  23185. onInput: handleStartInput,
  23186. onChange: handleStartChange
  23187. }), null, 16, ["id", "name", "placeholder", "value", "disabled"]),
  23188. renderSlot(_ctx.$slots, "range-separator"),
  23189. createBaseVNode("input", mergeProps(unref(attrs), {
  23190. id: _ctx.id && _ctx.id[1],
  23191. ref_key: "endInputRef",
  23192. ref: endInputRef,
  23193. name: _ctx.name && _ctx.name[1],
  23194. placeholder: _ctx.endPlaceholder,
  23195. value: _ctx.modelValue && _ctx.modelValue[1],
  23196. class: unref(nsRange).b("input"),
  23197. disabled: _ctx.disabled,
  23198. onInput: handleEndInput,
  23199. onChange: handleEndChange
  23200. }), null, 16, ["id", "name", "placeholder", "value", "disabled"]),
  23201. renderSlot(_ctx.$slots, "suffix")
  23202. ], 38);
  23203. };
  23204. }
  23205. });
  23206. var PickerRangeTrigger = _export_sfc(_sfc_main57, [["__file", "picker-range-trigger.vue"]]);
  23207. // node_modules/element-plus/es/components/time-picker/src/common/picker.mjs
  23208. var __default__54 = defineComponent({
  23209. name: "Picker"
  23210. });
  23211. var _sfc_main58 = defineComponent({
  23212. ...__default__54,
  23213. props: timePickerDefaultProps,
  23214. emits: [
  23215. UPDATE_MODEL_EVENT,
  23216. CHANGE_EVENT,
  23217. "focus",
  23218. "blur",
  23219. "clear",
  23220. "calendar-change",
  23221. "panel-change",
  23222. "visible-change",
  23223. "keydown"
  23224. ],
  23225. setup(__props, { expose, emit }) {
  23226. const props2 = __props;
  23227. const attrs = useAttrs();
  23228. const nsDate = useNamespace("date");
  23229. const nsInput = useNamespace("input");
  23230. const nsRange = useNamespace("range");
  23231. const { formItem } = useFormItem();
  23232. const elPopperOptions = inject(PICKER_POPPER_OPTIONS_INJECTION_KEY, {});
  23233. const emptyValues = useEmptyValues(props2, null);
  23234. const refPopper = ref();
  23235. const inputRef = ref();
  23236. const valueOnOpen = ref(null);
  23237. let hasJustTabExitedInput = false;
  23238. const pickerDisabled = useFormDisabled();
  23239. const commonPicker = useCommonPicker(props2, emit);
  23240. const {
  23241. parsedValue,
  23242. pickerActualVisible,
  23243. userInput,
  23244. pickerVisible,
  23245. pickerOptions,
  23246. valueIsEmpty,
  23247. emitInput,
  23248. onPick,
  23249. onSetPickerOption,
  23250. onCalendarChange,
  23251. onPanelChange
  23252. } = commonPicker;
  23253. const { isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
  23254. disabled: pickerDisabled,
  23255. beforeFocus() {
  23256. return props2.readonly;
  23257. },
  23258. afterFocus() {
  23259. if (!props2.automaticDropdown)
  23260. return;
  23261. pickerVisible.value = true;
  23262. },
  23263. beforeBlur(event) {
  23264. var _a2;
  23265. return !hasJustTabExitedInput && ((_a2 = refPopper.value) == null ? void 0 : _a2.isFocusInsideContent(event));
  23266. },
  23267. afterBlur() {
  23268. handleChange();
  23269. pickerVisible.value = false;
  23270. hasJustTabExitedInput = false;
  23271. props2.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn(err)));
  23272. }
  23273. });
  23274. const hovering = ref(false);
  23275. const rangeInputKls = computed(() => [
  23276. nsDate.b("editor"),
  23277. nsDate.bm("editor", props2.type),
  23278. nsInput.e("wrapper"),
  23279. nsDate.is("disabled", pickerDisabled.value),
  23280. nsDate.is("active", pickerVisible.value),
  23281. nsRange.b("editor"),
  23282. pickerSize ? nsRange.bm("editor", pickerSize.value) : "",
  23283. attrs.class
  23284. ]);
  23285. const clearIconKls = computed(() => [
  23286. nsInput.e("icon"),
  23287. nsRange.e("close-icon"),
  23288. !showClearBtn.value ? nsRange.em("close-icon", "hidden") : ""
  23289. ]);
  23290. watch(pickerVisible, (val) => {
  23291. if (!val) {
  23292. userInput.value = null;
  23293. nextTick(() => {
  23294. emitChange(props2.modelValue);
  23295. });
  23296. } else {
  23297. nextTick(() => {
  23298. if (val) {
  23299. valueOnOpen.value = props2.modelValue;
  23300. }
  23301. });
  23302. }
  23303. });
  23304. const emitChange = (val, isClear) => {
  23305. if (isClear || !valueEquals(val, valueOnOpen.value)) {
  23306. emit(CHANGE_EVENT, val);
  23307. isClear && (valueOnOpen.value = val);
  23308. props2.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err)));
  23309. }
  23310. };
  23311. const emitKeydown = (e) => {
  23312. emit("keydown", e);
  23313. };
  23314. const refInput = computed(() => {
  23315. if (inputRef.value) {
  23316. return Array.from(inputRef.value.$el.querySelectorAll("input"));
  23317. }
  23318. return [];
  23319. });
  23320. const setSelectionRange = (start, end, pos) => {
  23321. const _inputs = refInput.value;
  23322. if (!_inputs.length)
  23323. return;
  23324. if (!pos || pos === "min") {
  23325. _inputs[0].setSelectionRange(start, end);
  23326. _inputs[0].focus();
  23327. } else if (pos === "max") {
  23328. _inputs[1].setSelectionRange(start, end);
  23329. _inputs[1].focus();
  23330. }
  23331. };
  23332. const onBeforeShow = () => {
  23333. pickerActualVisible.value = true;
  23334. };
  23335. const onShow = () => {
  23336. emit("visible-change", true);
  23337. };
  23338. const onHide = () => {
  23339. pickerActualVisible.value = false;
  23340. pickerVisible.value = false;
  23341. emit("visible-change", false);
  23342. };
  23343. const handleOpen = () => {
  23344. pickerVisible.value = true;
  23345. };
  23346. const handleClose = () => {
  23347. pickerVisible.value = false;
  23348. };
  23349. const displayValue = computed(() => {
  23350. const formattedValue = formatToString(parsedValue.value);
  23351. if (isArray(userInput.value)) {
  23352. return [
  23353. userInput.value[0] || formattedValue && formattedValue[0] || "",
  23354. userInput.value[1] || formattedValue && formattedValue[1] || ""
  23355. ];
  23356. } else if (userInput.value !== null) {
  23357. return userInput.value;
  23358. }
  23359. if (!isTimePicker.value && valueIsEmpty.value)
  23360. return "";
  23361. if (!pickerVisible.value && valueIsEmpty.value)
  23362. return "";
  23363. if (formattedValue) {
  23364. return isDatesPicker.value || isMonthsPicker.value || isYearsPicker.value ? formattedValue.join(", ") : formattedValue;
  23365. }
  23366. return "";
  23367. });
  23368. const isTimeLikePicker = computed(() => props2.type.includes("time"));
  23369. const isTimePicker = computed(() => props2.type.startsWith("time"));
  23370. const isDatesPicker = computed(() => props2.type === "dates");
  23371. const isMonthsPicker = computed(() => props2.type === "months");
  23372. const isYearsPicker = computed(() => props2.type === "years");
  23373. const triggerIcon = computed(() => props2.prefixIcon || (isTimeLikePicker.value ? clock_default : calendar_default));
  23374. const showClearBtn = computed(() => props2.clearable && !pickerDisabled.value && !props2.readonly && !valueIsEmpty.value && (hovering.value || isFocused.value));
  23375. const onClearIconClick = (event) => {
  23376. if (props2.readonly || pickerDisabled.value)
  23377. return;
  23378. if (showClearBtn.value) {
  23379. event.stopPropagation();
  23380. if (pickerOptions.value.handleClear) {
  23381. pickerOptions.value.handleClear();
  23382. } else {
  23383. emitInput(emptyValues.valueOnClear.value);
  23384. }
  23385. emitChange(emptyValues.valueOnClear.value, true);
  23386. onHide();
  23387. }
  23388. emit("clear");
  23389. };
  23390. const onMouseDownInput = async (event) => {
  23391. var _a2;
  23392. if (props2.readonly || pickerDisabled.value)
  23393. return;
  23394. if (((_a2 = event.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isFocused.value || !props2.automaticDropdown) {
  23395. pickerVisible.value = true;
  23396. }
  23397. };
  23398. const onMouseEnter = () => {
  23399. if (props2.readonly || pickerDisabled.value)
  23400. return;
  23401. if (!valueIsEmpty.value && props2.clearable) {
  23402. hovering.value = true;
  23403. }
  23404. };
  23405. const onMouseLeave = () => {
  23406. hovering.value = false;
  23407. };
  23408. const onTouchStartInput = (event) => {
  23409. var _a2;
  23410. if (props2.readonly || pickerDisabled.value)
  23411. return;
  23412. if (((_a2 = event.touches[0].target) == null ? void 0 : _a2.tagName) !== "INPUT" || isFocused.value || !props2.automaticDropdown) {
  23413. pickerVisible.value = true;
  23414. }
  23415. };
  23416. const isRangeInput = computed(() => {
  23417. return props2.type.includes("range");
  23418. });
  23419. const pickerSize = useFormSize();
  23420. const popperEl = computed(() => {
  23421. var _a2, _b;
  23422. return (_b = (_a2 = unref(refPopper)) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
  23423. });
  23424. const stophandle = onClickOutside(inputRef, (e) => {
  23425. const unrefedPopperEl = unref(popperEl);
  23426. const inputEl = unrefElement(inputRef);
  23427. if (unrefedPopperEl && (e.target === unrefedPopperEl || e.composedPath().includes(unrefedPopperEl)) || e.target === inputEl || inputEl && e.composedPath().includes(inputEl))
  23428. return;
  23429. pickerVisible.value = false;
  23430. });
  23431. onBeforeUnmount(() => {
  23432. stophandle == null ? void 0 : stophandle();
  23433. });
  23434. const handleChange = () => {
  23435. if (userInput.value) {
  23436. const value = parseUserInputToDayjs(displayValue.value);
  23437. if (value) {
  23438. if (isValidValue3(value)) {
  23439. emitInput(dayOrDaysToDate(value));
  23440. userInput.value = null;
  23441. }
  23442. }
  23443. }
  23444. if (userInput.value === "") {
  23445. emitInput(emptyValues.valueOnClear.value);
  23446. emitChange(emptyValues.valueOnClear.value, true);
  23447. userInput.value = null;
  23448. }
  23449. };
  23450. const parseUserInputToDayjs = (value) => {
  23451. if (!value)
  23452. return null;
  23453. return pickerOptions.value.parseUserInput(value);
  23454. };
  23455. const formatToString = (value) => {
  23456. if (!value)
  23457. return null;
  23458. const res = isArray(value) ? value.map((_2) => _2.format(props2.format)) : value.format(props2.format);
  23459. return res;
  23460. };
  23461. const isValidValue3 = (value) => {
  23462. return pickerOptions.value.isValidValue(value);
  23463. };
  23464. const handleKeydownInput = async (event) => {
  23465. if (props2.readonly || pickerDisabled.value)
  23466. return;
  23467. const code = getEventCode(event);
  23468. emitKeydown(event);
  23469. if (code === EVENT_CODE.esc) {
  23470. if (pickerVisible.value === true) {
  23471. pickerVisible.value = false;
  23472. event.preventDefault();
  23473. event.stopPropagation();
  23474. }
  23475. return;
  23476. }
  23477. if (code === EVENT_CODE.down) {
  23478. if (pickerOptions.value.handleFocusPicker) {
  23479. event.preventDefault();
  23480. event.stopPropagation();
  23481. }
  23482. if (pickerVisible.value === false) {
  23483. pickerVisible.value = true;
  23484. await nextTick();
  23485. }
  23486. if (pickerOptions.value.handleFocusPicker) {
  23487. pickerOptions.value.handleFocusPicker();
  23488. return;
  23489. }
  23490. }
  23491. if (code === EVENT_CODE.tab) {
  23492. hasJustTabExitedInput = true;
  23493. return;
  23494. }
  23495. if (code === EVENT_CODE.enter || code === EVENT_CODE.numpadEnter) {
  23496. if (!pickerVisible.value) {
  23497. pickerVisible.value = true;
  23498. } else if (userInput.value === null || userInput.value === "" || isValidValue3(parseUserInputToDayjs(displayValue.value))) {
  23499. handleChange();
  23500. pickerVisible.value = false;
  23501. }
  23502. event.preventDefault();
  23503. event.stopPropagation();
  23504. return;
  23505. }
  23506. if (userInput.value) {
  23507. event.stopPropagation();
  23508. return;
  23509. }
  23510. if (pickerOptions.value.handleKeydownInput) {
  23511. pickerOptions.value.handleKeydownInput(event);
  23512. }
  23513. };
  23514. const onUserInput = (e) => {
  23515. userInput.value = e;
  23516. if (!pickerVisible.value) {
  23517. pickerVisible.value = true;
  23518. }
  23519. };
  23520. const handleStartInput = (event) => {
  23521. const target2 = event.target;
  23522. if (userInput.value) {
  23523. userInput.value = [target2.value, userInput.value[1]];
  23524. } else {
  23525. userInput.value = [target2.value, null];
  23526. }
  23527. };
  23528. const handleEndInput = (event) => {
  23529. const target2 = event.target;
  23530. if (userInput.value) {
  23531. userInput.value = [userInput.value[0], target2.value];
  23532. } else {
  23533. userInput.value = [null, target2.value];
  23534. }
  23535. };
  23536. const handleStartChange = () => {
  23537. var _a2;
  23538. const values2 = userInput.value;
  23539. const value = parseUserInputToDayjs(values2 && values2[0]);
  23540. const parsedVal = unref(parsedValue);
  23541. if (value && value.isValid()) {
  23542. userInput.value = [
  23543. formatToString(value),
  23544. ((_a2 = displayValue.value) == null ? void 0 : _a2[1]) || null
  23545. ];
  23546. const newValue = [value, parsedVal && (parsedVal[1] || null)];
  23547. if (isValidValue3(newValue)) {
  23548. emitInput(dayOrDaysToDate(newValue));
  23549. userInput.value = null;
  23550. }
  23551. }
  23552. };
  23553. const handleEndChange = () => {
  23554. var _a2;
  23555. const values2 = unref(userInput);
  23556. const value = parseUserInputToDayjs(values2 && values2[1]);
  23557. const parsedVal = unref(parsedValue);
  23558. if (value && value.isValid()) {
  23559. userInput.value = [
  23560. ((_a2 = unref(displayValue)) == null ? void 0 : _a2[0]) || null,
  23561. formatToString(value)
  23562. ];
  23563. const newValue = [parsedVal && parsedVal[0], value];
  23564. if (isValidValue3(newValue)) {
  23565. emitInput(dayOrDaysToDate(newValue));
  23566. userInput.value = null;
  23567. }
  23568. }
  23569. };
  23570. const focus = () => {
  23571. var _a2;
  23572. (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
  23573. };
  23574. const blur = () => {
  23575. var _a2;
  23576. (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
  23577. };
  23578. provide(PICKER_BASE_INJECTION_KEY, {
  23579. props: props2,
  23580. emptyValues
  23581. });
  23582. provide(ROOT_COMMON_PICKER_INJECTION_KEY, commonPicker);
  23583. expose({
  23584. focus,
  23585. blur,
  23586. handleOpen,
  23587. handleClose,
  23588. onPick
  23589. });
  23590. return (_ctx, _cache) => {
  23591. return openBlock(), createBlock(unref(ElTooltip), mergeProps({
  23592. ref_key: "refPopper",
  23593. ref: refPopper,
  23594. visible: unref(pickerVisible),
  23595. effect: "light",
  23596. pure: "",
  23597. trigger: "click"
  23598. }, _ctx.$attrs, {
  23599. role: "dialog",
  23600. teleported: "",
  23601. transition: `${unref(nsDate).namespace.value}-zoom-in-top`,
  23602. "popper-class": [`${unref(nsDate).namespace.value}-picker__popper`, _ctx.popperClass],
  23603. "popper-style": _ctx.popperStyle,
  23604. "popper-options": unref(elPopperOptions),
  23605. "fallback-placements": _ctx.fallbackPlacements,
  23606. "gpu-acceleration": false,
  23607. placement: _ctx.placement,
  23608. "stop-popper-mouse-event": false,
  23609. "hide-after": 0,
  23610. persistent: "",
  23611. onBeforeShow,
  23612. onShow,
  23613. onHide
  23614. }), {
  23615. default: withCtx(() => [
  23616. !unref(isRangeInput) ? (openBlock(), createBlock(unref(ElInput), {
  23617. key: 0,
  23618. id: _ctx.id,
  23619. ref_key: "inputRef",
  23620. ref: inputRef,
  23621. "container-role": "combobox",
  23622. "model-value": unref(displayValue),
  23623. name: _ctx.name,
  23624. size: unref(pickerSize),
  23625. disabled: unref(pickerDisabled),
  23626. placeholder: _ctx.placeholder,
  23627. class: normalizeClass([
  23628. unref(nsDate).b("editor"),
  23629. unref(nsDate).bm("editor", _ctx.type),
  23630. unref(nsDate).is("focus", unref(pickerVisible)),
  23631. _ctx.$attrs.class
  23632. ]),
  23633. style: normalizeStyle(_ctx.$attrs.style),
  23634. readonly: !_ctx.editable || _ctx.readonly || unref(isDatesPicker) || unref(isMonthsPicker) || unref(isYearsPicker) || _ctx.type === "week",
  23635. "aria-label": _ctx.ariaLabel,
  23636. tabindex: _ctx.tabindex,
  23637. "validate-event": false,
  23638. onInput: onUserInput,
  23639. onFocus: unref(handleFocus),
  23640. onBlur: unref(handleBlur),
  23641. onKeydown: handleKeydownInput,
  23642. onChange: handleChange,
  23643. onMousedown: onMouseDownInput,
  23644. onMouseenter: onMouseEnter,
  23645. onMouseleave: onMouseLeave,
  23646. onTouchstartPassive: onTouchStartInput,
  23647. onClick: withModifiers(() => {
  23648. }, ["stop"])
  23649. }, {
  23650. prefix: withCtx(() => [
  23651. unref(triggerIcon) ? (openBlock(), createBlock(unref(ElIcon), {
  23652. key: 0,
  23653. class: normalizeClass(unref(nsInput).e("icon")),
  23654. onMousedown: withModifiers(onMouseDownInput, ["prevent"]),
  23655. onTouchstartPassive: onTouchStartInput
  23656. }, {
  23657. default: withCtx(() => [
  23658. (openBlock(), createBlock(resolveDynamicComponent(unref(triggerIcon))))
  23659. ]),
  23660. _: 1
  23661. }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
  23662. ]),
  23663. suffix: withCtx(() => [
  23664. unref(showClearBtn) && _ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
  23665. key: 0,
  23666. class: normalizeClass(`${unref(nsInput).e("icon")} clear-icon`),
  23667. onMousedown: withModifiers(unref(NOOP), ["prevent"]),
  23668. onClick: onClearIconClick
  23669. }, {
  23670. default: withCtx(() => [
  23671. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  23672. ]),
  23673. _: 1
  23674. }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
  23675. ]),
  23676. _: 1
  23677. }, 8, ["id", "model-value", "name", "size", "disabled", "placeholder", "class", "style", "readonly", "aria-label", "tabindex", "onFocus", "onBlur", "onClick"])) : (openBlock(), createBlock(PickerRangeTrigger, {
  23678. key: 1,
  23679. id: _ctx.id,
  23680. ref_key: "inputRef",
  23681. ref: inputRef,
  23682. "model-value": unref(displayValue),
  23683. name: _ctx.name,
  23684. disabled: unref(pickerDisabled),
  23685. readonly: !_ctx.editable || _ctx.readonly,
  23686. "start-placeholder": _ctx.startPlaceholder,
  23687. "end-placeholder": _ctx.endPlaceholder,
  23688. class: normalizeClass(unref(rangeInputKls)),
  23689. style: normalizeStyle(_ctx.$attrs.style),
  23690. "aria-label": _ctx.ariaLabel,
  23691. tabindex: _ctx.tabindex,
  23692. autocomplete: "off",
  23693. role: "combobox",
  23694. onClick: onMouseDownInput,
  23695. onFocus: unref(handleFocus),
  23696. onBlur: unref(handleBlur),
  23697. onStartInput: handleStartInput,
  23698. onStartChange: handleStartChange,
  23699. onEndInput: handleEndInput,
  23700. onEndChange: handleEndChange,
  23701. onMousedown: onMouseDownInput,
  23702. onMouseenter: onMouseEnter,
  23703. onMouseleave: onMouseLeave,
  23704. onTouchstartPassive: onTouchStartInput,
  23705. onKeydown: handleKeydownInput
  23706. }, {
  23707. prefix: withCtx(() => [
  23708. unref(triggerIcon) ? (openBlock(), createBlock(unref(ElIcon), {
  23709. key: 0,
  23710. class: normalizeClass([unref(nsInput).e("icon"), unref(nsRange).e("icon")])
  23711. }, {
  23712. default: withCtx(() => [
  23713. (openBlock(), createBlock(resolveDynamicComponent(unref(triggerIcon))))
  23714. ]),
  23715. _: 1
  23716. }, 8, ["class"])) : createCommentVNode("v-if", true)
  23717. ]),
  23718. "range-separator": withCtx(() => [
  23719. renderSlot(_ctx.$slots, "range-separator", {}, () => [
  23720. createBaseVNode("span", {
  23721. class: normalizeClass(unref(nsRange).b("separator"))
  23722. }, toDisplayString(_ctx.rangeSeparator), 3)
  23723. ])
  23724. ]),
  23725. suffix: withCtx(() => [
  23726. _ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
  23727. key: 0,
  23728. class: normalizeClass(unref(clearIconKls)),
  23729. onMousedown: withModifiers(unref(NOOP), ["prevent"]),
  23730. onClick: onClearIconClick
  23731. }, {
  23732. default: withCtx(() => [
  23733. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  23734. ]),
  23735. _: 1
  23736. }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
  23737. ]),
  23738. _: 3
  23739. }, 8, ["id", "model-value", "name", "disabled", "readonly", "start-placeholder", "end-placeholder", "class", "style", "aria-label", "tabindex", "onFocus", "onBlur"]))
  23740. ]),
  23741. content: withCtx(() => [
  23742. renderSlot(_ctx.$slots, "default", {
  23743. visible: unref(pickerVisible),
  23744. actualVisible: unref(pickerActualVisible),
  23745. parsedValue: unref(parsedValue),
  23746. format: _ctx.format,
  23747. dateFormat: _ctx.dateFormat,
  23748. timeFormat: _ctx.timeFormat,
  23749. unlinkPanels: _ctx.unlinkPanels,
  23750. type: _ctx.type,
  23751. defaultValue: _ctx.defaultValue,
  23752. showNow: _ctx.showNow,
  23753. showConfirm: _ctx.showConfirm,
  23754. showFooter: _ctx.showFooter,
  23755. showWeekNumber: _ctx.showWeekNumber,
  23756. onPick: unref(onPick),
  23757. onSelectRange: setSelectionRange,
  23758. onSetPickerOption: unref(onSetPickerOption),
  23759. onCalendarChange: unref(onCalendarChange),
  23760. onPanelChange: unref(onPanelChange),
  23761. onMousedown: withModifiers(() => {
  23762. }, ["stop"])
  23763. })
  23764. ]),
  23765. _: 3
  23766. }, 16, ["visible", "transition", "popper-class", "popper-style", "popper-options", "fallback-placements", "placement"]);
  23767. };
  23768. }
  23769. });
  23770. var CommonPicker = _export_sfc(_sfc_main58, [["__file", "picker.vue"]]);
  23771. // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs
  23772. var import_dayjs4 = __toESM(require_dayjs_min(), 1);
  23773. // node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.mjs
  23774. var panelTimePickerProps = buildProps({
  23775. ...timePanelSharedProps,
  23776. datetimeRole: String,
  23777. parsedValue: {
  23778. type: definePropType(Object)
  23779. }
  23780. });
  23781. // node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.mjs
  23782. var useTimePanel = ({
  23783. getAvailableHours,
  23784. getAvailableMinutes,
  23785. getAvailableSeconds
  23786. }) => {
  23787. const getAvailableTime = (date4, role, first, compareDate) => {
  23788. const availableTimeGetters = {
  23789. hour: getAvailableHours,
  23790. minute: getAvailableMinutes,
  23791. second: getAvailableSeconds
  23792. };
  23793. let result2 = date4;
  23794. ["hour", "minute", "second"].forEach((type4) => {
  23795. if (availableTimeGetters[type4]) {
  23796. let availableTimeSlots;
  23797. const method5 = availableTimeGetters[type4];
  23798. switch (type4) {
  23799. case "minute": {
  23800. availableTimeSlots = method5(result2.hour(), role, compareDate);
  23801. break;
  23802. }
  23803. case "second": {
  23804. availableTimeSlots = method5(result2.hour(), result2.minute(), role, compareDate);
  23805. break;
  23806. }
  23807. default: {
  23808. availableTimeSlots = method5(role, compareDate);
  23809. break;
  23810. }
  23811. }
  23812. if ((availableTimeSlots == null ? void 0 : availableTimeSlots.length) && !availableTimeSlots.includes(result2[type4]())) {
  23813. const pos = first ? 0 : availableTimeSlots.length - 1;
  23814. result2 = result2[type4](availableTimeSlots[pos]);
  23815. }
  23816. }
  23817. });
  23818. return result2;
  23819. };
  23820. const timePickerOptions = {};
  23821. const onSetOption = ([key, val]) => {
  23822. timePickerOptions[key] = val;
  23823. };
  23824. return {
  23825. timePickerOptions,
  23826. getAvailableTime,
  23827. onSetOption
  23828. };
  23829. };
  23830. // node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.mjs
  23831. var makeAvailableArr = (disabledList) => {
  23832. const trueOrNumber = (isDisabled, index) => isDisabled || index;
  23833. const getNumber = (predicate) => predicate !== true;
  23834. return disabledList.map(trueOrNumber).filter(getNumber);
  23835. };
  23836. var getTimeLists = (disabledHours, disabledMinutes, disabledSeconds) => {
  23837. const getHoursList = (role, compare) => {
  23838. return makeList(24, disabledHours && (() => disabledHours == null ? void 0 : disabledHours(role, compare)));
  23839. };
  23840. const getMinutesList = (hour, role, compare) => {
  23841. return makeList(60, disabledMinutes && (() => disabledMinutes == null ? void 0 : disabledMinutes(hour, role, compare)));
  23842. };
  23843. const getSecondsList = (hour, minute, role, compare) => {
  23844. return makeList(60, disabledSeconds && (() => disabledSeconds == null ? void 0 : disabledSeconds(hour, minute, role, compare)));
  23845. };
  23846. return {
  23847. getHoursList,
  23848. getMinutesList,
  23849. getSecondsList
  23850. };
  23851. };
  23852. var buildAvailableTimeSlotGetter = (disabledHours, disabledMinutes, disabledSeconds) => {
  23853. const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(disabledHours, disabledMinutes, disabledSeconds);
  23854. const getAvailableHours = (role, compare) => {
  23855. return makeAvailableArr(getHoursList(role, compare));
  23856. };
  23857. const getAvailableMinutes = (hour, role, compare) => {
  23858. return makeAvailableArr(getMinutesList(hour, role, compare));
  23859. };
  23860. const getAvailableSeconds = (hour, minute, role, compare) => {
  23861. return makeAvailableArr(getSecondsList(hour, minute, role, compare));
  23862. };
  23863. return {
  23864. getAvailableHours,
  23865. getAvailableMinutes,
  23866. getAvailableSeconds
  23867. };
  23868. };
  23869. var useOldValue = (props2) => {
  23870. const oldValue = ref(props2.parsedValue);
  23871. watch(() => props2.visible, (val) => {
  23872. if (!val) {
  23873. oldValue.value = props2.parsedValue;
  23874. }
  23875. });
  23876. return oldValue;
  23877. };
  23878. // node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.mjs
  23879. var basicTimeSpinnerProps = buildProps({
  23880. role: {
  23881. type: String,
  23882. required: true
  23883. },
  23884. spinnerDate: {
  23885. type: definePropType(Object),
  23886. required: true
  23887. },
  23888. showSeconds: {
  23889. type: Boolean,
  23890. default: true
  23891. },
  23892. arrowControl: Boolean,
  23893. amPmMode: {
  23894. type: definePropType(String),
  23895. default: ""
  23896. },
  23897. ...disabledTimeListsProps
  23898. });
  23899. // node_modules/element-plus/es/directives/repeat-click/index.mjs
  23900. var REPEAT_INTERVAL = 100;
  23901. var REPEAT_DELAY = 600;
  23902. var SCOPE5 = "_RepeatClick";
  23903. var vRepeatClick = {
  23904. beforeMount(el, binding) {
  23905. const value = binding.value;
  23906. const { interval = REPEAT_INTERVAL, delay: delay2 = REPEAT_DELAY } = isFunction(value) ? {} : value;
  23907. let intervalId;
  23908. let delayId;
  23909. const handler = () => isFunction(value) ? value() : value.handler();
  23910. const clear = () => {
  23911. if (delayId) {
  23912. clearTimeout(delayId);
  23913. delayId = void 0;
  23914. }
  23915. if (intervalId) {
  23916. clearInterval(intervalId);
  23917. intervalId = void 0;
  23918. }
  23919. };
  23920. const start = (evt) => {
  23921. if (evt.button !== 0)
  23922. return;
  23923. clear();
  23924. handler();
  23925. document.addEventListener("mouseup", clear, { once: true });
  23926. delayId = setTimeout(() => {
  23927. intervalId = setInterval(() => {
  23928. handler();
  23929. }, interval);
  23930. }, delay2);
  23931. };
  23932. el[SCOPE5] = { start, clear };
  23933. el.addEventListener("mousedown", start);
  23934. },
  23935. unmounted(el) {
  23936. if (!el[SCOPE5])
  23937. return;
  23938. const { start, clear } = el[SCOPE5];
  23939. if (start) {
  23940. el.removeEventListener("mousedown", start);
  23941. }
  23942. if (clear) {
  23943. clear();
  23944. document.removeEventListener("mouseup", clear);
  23945. }
  23946. el[SCOPE5] = null;
  23947. }
  23948. };
  23949. // node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs
  23950. var _sfc_main59 = defineComponent({
  23951. __name: "basic-time-spinner",
  23952. props: basicTimeSpinnerProps,
  23953. emits: [CHANGE_EVENT, "select-range", "set-option"],
  23954. setup(__props, { emit }) {
  23955. const props2 = __props;
  23956. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  23957. const { isRange, format: format2 } = pickerBase.props;
  23958. const ns = useNamespace("time");
  23959. const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(props2.disabledHours, props2.disabledMinutes, props2.disabledSeconds);
  23960. let isScrolling = false;
  23961. const currentScrollbar = ref();
  23962. const listHoursRef = ref();
  23963. const listMinutesRef = ref();
  23964. const listSecondsRef = ref();
  23965. const listRefsMap = {
  23966. hours: listHoursRef,
  23967. minutes: listMinutesRef,
  23968. seconds: listSecondsRef
  23969. };
  23970. const spinnerItems = computed(() => {
  23971. return props2.showSeconds ? timeUnits : timeUnits.slice(0, 2);
  23972. });
  23973. const timePartials = computed(() => {
  23974. const { spinnerDate } = props2;
  23975. const hours = spinnerDate.hour();
  23976. const minutes = spinnerDate.minute();
  23977. const seconds = spinnerDate.second();
  23978. return { hours, minutes, seconds };
  23979. });
  23980. const timeList = computed(() => {
  23981. const { hours, minutes } = unref(timePartials);
  23982. const { role, spinnerDate } = props2;
  23983. const compare = !isRange ? spinnerDate : void 0;
  23984. return {
  23985. hours: getHoursList(role, compare),
  23986. minutes: getMinutesList(hours, role, compare),
  23987. seconds: getSecondsList(hours, minutes, role, compare)
  23988. };
  23989. });
  23990. const arrowControlTimeList = computed(() => {
  23991. const { hours, minutes, seconds } = unref(timePartials);
  23992. return {
  23993. hours: buildTimeList(hours, 23),
  23994. minutes: buildTimeList(minutes, 59),
  23995. seconds: buildTimeList(seconds, 59)
  23996. };
  23997. });
  23998. const debouncedResetScroll = debounce_default((type4) => {
  23999. isScrolling = false;
  24000. adjustCurrentSpinner(type4);
  24001. }, 200);
  24002. const getAmPmFlag = (hour) => {
  24003. const shouldShowAmPm = !!props2.amPmMode;
  24004. if (!shouldShowAmPm)
  24005. return "";
  24006. const isCapital = props2.amPmMode === "A";
  24007. let content = hour < 12 ? " am" : " pm";
  24008. if (isCapital)
  24009. content = content.toUpperCase();
  24010. return content;
  24011. };
  24012. const emitSelectRange = (type4) => {
  24013. let range4 = [0, 0];
  24014. const actualFormat = format2 || DEFAULT_FORMATS_TIME;
  24015. const hourIndex = actualFormat.indexOf("HH");
  24016. const minuteIndex = actualFormat.indexOf("mm");
  24017. const secondIndex = actualFormat.indexOf("ss");
  24018. switch (type4) {
  24019. case "hours":
  24020. if (hourIndex !== -1) {
  24021. range4 = [hourIndex, hourIndex + 2];
  24022. }
  24023. break;
  24024. case "minutes":
  24025. if (minuteIndex !== -1) {
  24026. range4 = [minuteIndex, minuteIndex + 2];
  24027. }
  24028. break;
  24029. case "seconds":
  24030. if (secondIndex !== -1) {
  24031. range4 = [secondIndex, secondIndex + 2];
  24032. }
  24033. break;
  24034. }
  24035. const [left, right] = range4;
  24036. emit("select-range", left, right);
  24037. currentScrollbar.value = type4;
  24038. };
  24039. const adjustCurrentSpinner = (type4) => {
  24040. adjustSpinner(type4, unref(timePartials)[type4]);
  24041. };
  24042. const adjustSpinners = () => {
  24043. adjustCurrentSpinner("hours");
  24044. adjustCurrentSpinner("minutes");
  24045. adjustCurrentSpinner("seconds");
  24046. };
  24047. const getScrollbarElement = (el) => el.querySelector(`.${ns.namespace.value}-scrollbar__wrap`);
  24048. const adjustSpinner = (type4, value) => {
  24049. if (props2.arrowControl)
  24050. return;
  24051. const scrollbar = unref(listRefsMap[type4]);
  24052. if (scrollbar && scrollbar.$el) {
  24053. getScrollbarElement(scrollbar.$el).scrollTop = Math.max(0, value * typeItemHeight(type4));
  24054. }
  24055. };
  24056. const typeItemHeight = (type4) => {
  24057. const scrollbar = unref(listRefsMap[type4]);
  24058. const listItem = scrollbar == null ? void 0 : scrollbar.$el.querySelector("li");
  24059. if (listItem) {
  24060. return Number.parseFloat(getStyle(listItem, "height")) || 0;
  24061. }
  24062. return 0;
  24063. };
  24064. const onIncrement = () => {
  24065. scrollDown(1);
  24066. };
  24067. const onDecrement = () => {
  24068. scrollDown(-1);
  24069. };
  24070. const scrollDown = (step2) => {
  24071. if (!currentScrollbar.value) {
  24072. emitSelectRange("hours");
  24073. }
  24074. const label = currentScrollbar.value;
  24075. const now2 = unref(timePartials)[label];
  24076. const total2 = currentScrollbar.value === "hours" ? 24 : 60;
  24077. const next = findNextUnDisabled(label, now2, step2, total2);
  24078. modifyDateField(label, next);
  24079. adjustSpinner(label, next);
  24080. nextTick(() => emitSelectRange(label));
  24081. };
  24082. const findNextUnDisabled = (type4, now2, step2, total2) => {
  24083. let next = (now2 + step2 + total2) % total2;
  24084. const list = unref(timeList)[type4];
  24085. while (list[next] && next !== now2) {
  24086. next = (next + step2 + total2) % total2;
  24087. }
  24088. return next;
  24089. };
  24090. const modifyDateField = (type4, value) => {
  24091. const list = unref(timeList)[type4];
  24092. const isDisabled = list[value];
  24093. if (isDisabled)
  24094. return;
  24095. const { hours, minutes, seconds } = unref(timePartials);
  24096. let changeTo;
  24097. switch (type4) {
  24098. case "hours":
  24099. changeTo = props2.spinnerDate.hour(value).minute(minutes).second(seconds);
  24100. break;
  24101. case "minutes":
  24102. changeTo = props2.spinnerDate.hour(hours).minute(value).second(seconds);
  24103. break;
  24104. case "seconds":
  24105. changeTo = props2.spinnerDate.hour(hours).minute(minutes).second(value);
  24106. break;
  24107. }
  24108. emit(CHANGE_EVENT, changeTo);
  24109. };
  24110. const handleClick = (type4, { value, disabled }) => {
  24111. if (!disabled) {
  24112. modifyDateField(type4, value);
  24113. emitSelectRange(type4);
  24114. adjustSpinner(type4, value);
  24115. }
  24116. };
  24117. const handleScroll2 = (type4) => {
  24118. const scrollbar = unref(listRefsMap[type4]);
  24119. if (!scrollbar)
  24120. return;
  24121. isScrolling = true;
  24122. debouncedResetScroll(type4);
  24123. const value = Math.min(Math.round((getScrollbarElement(scrollbar.$el).scrollTop - (scrollBarHeight(type4) * 0.5 - 10) / typeItemHeight(type4) + 3) / typeItemHeight(type4)), type4 === "hours" ? 23 : 59);
  24124. modifyDateField(type4, value);
  24125. };
  24126. const scrollBarHeight = (type4) => {
  24127. return unref(listRefsMap[type4]).$el.offsetHeight;
  24128. };
  24129. const bindScrollEvent = () => {
  24130. const bindFunction = (type4) => {
  24131. const scrollbar = unref(listRefsMap[type4]);
  24132. if (scrollbar && scrollbar.$el) {
  24133. getScrollbarElement(scrollbar.$el).onscroll = () => {
  24134. handleScroll2(type4);
  24135. };
  24136. }
  24137. };
  24138. bindFunction("hours");
  24139. bindFunction("minutes");
  24140. bindFunction("seconds");
  24141. };
  24142. onMounted(() => {
  24143. nextTick(() => {
  24144. !props2.arrowControl && bindScrollEvent();
  24145. adjustSpinners();
  24146. if (props2.role === "start")
  24147. emitSelectRange("hours");
  24148. });
  24149. });
  24150. const setRef = (scrollbar, type4) => {
  24151. listRefsMap[type4].value = scrollbar != null ? scrollbar : void 0;
  24152. };
  24153. emit("set-option", [`${props2.role}_scrollDown`, scrollDown]);
  24154. emit("set-option", [`${props2.role}_emitSelectRange`, emitSelectRange]);
  24155. watch(() => props2.spinnerDate, () => {
  24156. if (isScrolling)
  24157. return;
  24158. adjustSpinners();
  24159. });
  24160. return (_ctx, _cache) => {
  24161. return openBlock(), createElementBlock("div", {
  24162. class: normalizeClass([unref(ns).b("spinner"), { "has-seconds": _ctx.showSeconds }])
  24163. }, [
  24164. !_ctx.arrowControl ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(spinnerItems), (item) => {
  24165. return openBlock(), createBlock(unref(ElScrollbar), {
  24166. key: item,
  24167. ref_for: true,
  24168. ref: (scrollbar) => setRef(scrollbar, item),
  24169. class: normalizeClass(unref(ns).be("spinner", "wrapper")),
  24170. "wrap-style": "max-height: inherit;",
  24171. "view-class": unref(ns).be("spinner", "list"),
  24172. noresize: "",
  24173. tag: "ul",
  24174. onMouseenter: ($event) => emitSelectRange(item),
  24175. onMousemove: ($event) => adjustCurrentSpinner(item)
  24176. }, {
  24177. default: withCtx(() => [
  24178. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(timeList)[item], (disabled, key) => {
  24179. return openBlock(), createElementBlock("li", {
  24180. key,
  24181. class: normalizeClass([
  24182. unref(ns).be("spinner", "item"),
  24183. unref(ns).is("active", key === unref(timePartials)[item]),
  24184. unref(ns).is("disabled", disabled)
  24185. ]),
  24186. onClick: ($event) => handleClick(item, { value: key, disabled })
  24187. }, [
  24188. item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  24189. createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? key % 12 || 12 : key)).slice(-2)) + toDisplayString(getAmPmFlag(key)), 1)
  24190. ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  24191. createTextVNode(toDisplayString(("0" + key).slice(-2)), 1)
  24192. ], 64))
  24193. ], 10, ["onClick"]);
  24194. }), 128))
  24195. ]),
  24196. _: 2
  24197. }, 1032, ["class", "view-class", "onMouseenter", "onMousemove"]);
  24198. }), 128)) : createCommentVNode("v-if", true),
  24199. _ctx.arrowControl ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(spinnerItems), (item) => {
  24200. return openBlock(), createElementBlock("div", {
  24201. key: item,
  24202. class: normalizeClass([unref(ns).be("spinner", "wrapper"), unref(ns).is("arrow")]),
  24203. onMouseenter: ($event) => emitSelectRange(item)
  24204. }, [
  24205. withDirectives((openBlock(), createBlock(unref(ElIcon), {
  24206. class: normalizeClass(["arrow-up", unref(ns).be("spinner", "arrow")])
  24207. }, {
  24208. default: withCtx(() => [
  24209. createVNode(unref(arrow_up_default))
  24210. ]),
  24211. _: 1
  24212. }, 8, ["class"])), [
  24213. [unref(vRepeatClick), onDecrement]
  24214. ]),
  24215. withDirectives((openBlock(), createBlock(unref(ElIcon), {
  24216. class: normalizeClass(["arrow-down", unref(ns).be("spinner", "arrow")])
  24217. }, {
  24218. default: withCtx(() => [
  24219. createVNode(unref(arrow_down_default))
  24220. ]),
  24221. _: 1
  24222. }, 8, ["class"])), [
  24223. [unref(vRepeatClick), onIncrement]
  24224. ]),
  24225. createBaseVNode("ul", {
  24226. class: normalizeClass(unref(ns).be("spinner", "list"))
  24227. }, [
  24228. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(arrowControlTimeList)[item], (time, key) => {
  24229. return openBlock(), createElementBlock("li", {
  24230. key,
  24231. class: normalizeClass([
  24232. unref(ns).be("spinner", "item"),
  24233. unref(ns).is("active", time === unref(timePartials)[item]),
  24234. unref(ns).is("disabled", unref(timeList)[item][time])
  24235. ])
  24236. }, [
  24237. unref(isNumber2)(time) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  24238. item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  24239. createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? time % 12 || 12 : time)).slice(-2)) + toDisplayString(getAmPmFlag(time)), 1)
  24240. ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  24241. createTextVNode(toDisplayString(("0" + time).slice(-2)), 1)
  24242. ], 64))
  24243. ], 64)) : createCommentVNode("v-if", true)
  24244. ], 2);
  24245. }), 128))
  24246. ], 2)
  24247. ], 42, ["onMouseenter"]);
  24248. }), 128)) : createCommentVNode("v-if", true)
  24249. ], 2);
  24250. };
  24251. }
  24252. });
  24253. var TimeSpinner = _export_sfc(_sfc_main59, [["__file", "basic-time-spinner.vue"]]);
  24254. // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs
  24255. var _sfc_main60 = defineComponent({
  24256. __name: "panel-time-pick",
  24257. props: panelTimePickerProps,
  24258. emits: ["pick", "select-range", "set-picker-option"],
  24259. setup(__props, { emit }) {
  24260. const props2 = __props;
  24261. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  24262. const {
  24263. arrowControl,
  24264. disabledHours,
  24265. disabledMinutes,
  24266. disabledSeconds,
  24267. defaultValue
  24268. } = pickerBase.props;
  24269. const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours, disabledMinutes, disabledSeconds);
  24270. const ns = useNamespace("time");
  24271. const { t, lang } = useLocale();
  24272. const selectionRange = ref([0, 2]);
  24273. const oldValue = useOldValue(props2);
  24274. const transitionName = computed(() => {
  24275. return isUndefined2(props2.actualVisible) ? `${ns.namespace.value}-zoom-in-top` : "";
  24276. });
  24277. const showSeconds = computed(() => {
  24278. return props2.format.includes("ss");
  24279. });
  24280. const amPmMode = computed(() => {
  24281. if (props2.format.includes("A"))
  24282. return "A";
  24283. if (props2.format.includes("a"))
  24284. return "a";
  24285. return "";
  24286. });
  24287. const isValidValue3 = (_date) => {
  24288. const parsedDate = (0, import_dayjs4.default)(_date).locale(lang.value);
  24289. const result2 = getRangeAvailableTime(parsedDate);
  24290. return parsedDate.isSame(result2);
  24291. };
  24292. const handleCancel = () => {
  24293. const old = oldValue.value;
  24294. emit("pick", old, false);
  24295. nextTick(() => {
  24296. oldValue.value = old;
  24297. });
  24298. };
  24299. const handleConfirm = (visible = false, first = false) => {
  24300. if (first)
  24301. return;
  24302. emit("pick", props2.parsedValue, visible);
  24303. };
  24304. const handleChange = (_date) => {
  24305. if (!props2.visible) {
  24306. return;
  24307. }
  24308. const result2 = getRangeAvailableTime(_date).millisecond(0);
  24309. emit("pick", result2, true);
  24310. };
  24311. const setSelectionRange = (start, end) => {
  24312. emit("select-range", start, end);
  24313. selectionRange.value = [start, end];
  24314. };
  24315. const changeSelectionRange = (step2) => {
  24316. const actualFormat = props2.format;
  24317. const hourIndex = actualFormat.indexOf("HH");
  24318. const minuteIndex = actualFormat.indexOf("mm");
  24319. const secondIndex = actualFormat.indexOf("ss");
  24320. const list = [];
  24321. const mapping = [];
  24322. if (hourIndex !== -1) {
  24323. list.push(hourIndex);
  24324. mapping.push("hours");
  24325. }
  24326. if (minuteIndex !== -1) {
  24327. list.push(minuteIndex);
  24328. mapping.push("minutes");
  24329. }
  24330. if (secondIndex !== -1 && showSeconds.value) {
  24331. list.push(secondIndex);
  24332. mapping.push("seconds");
  24333. }
  24334. const index = list.indexOf(selectionRange.value[0]);
  24335. const next = (index + step2 + list.length) % list.length;
  24336. timePickerOptions["start_emitSelectRange"](mapping[next]);
  24337. };
  24338. const handleKeydown = (event) => {
  24339. const code = getEventCode(event);
  24340. const { left, right, up, down } = EVENT_CODE;
  24341. if ([left, right].includes(code)) {
  24342. const step2 = code === left ? -1 : 1;
  24343. changeSelectionRange(step2);
  24344. event.preventDefault();
  24345. return;
  24346. }
  24347. if ([up, down].includes(code)) {
  24348. const step2 = code === up ? -1 : 1;
  24349. timePickerOptions["start_scrollDown"](step2);
  24350. event.preventDefault();
  24351. return;
  24352. }
  24353. };
  24354. const { timePickerOptions, onSetOption, getAvailableTime } = useTimePanel({
  24355. getAvailableHours,
  24356. getAvailableMinutes,
  24357. getAvailableSeconds
  24358. });
  24359. const getRangeAvailableTime = (date4) => {
  24360. return getAvailableTime(date4, props2.datetimeRole || "", true);
  24361. };
  24362. const parseUserInput = (value) => {
  24363. if (!value)
  24364. return null;
  24365. return (0, import_dayjs4.default)(value, props2.format).locale(lang.value);
  24366. };
  24367. const getDefaultValue2 = () => {
  24368. return (0, import_dayjs4.default)(defaultValue).locale(lang.value);
  24369. };
  24370. emit("set-picker-option", ["isValidValue", isValidValue3]);
  24371. emit("set-picker-option", ["parseUserInput", parseUserInput]);
  24372. emit("set-picker-option", ["handleKeydownInput", handleKeydown]);
  24373. emit("set-picker-option", ["getRangeAvailableTime", getRangeAvailableTime]);
  24374. emit("set-picker-option", ["getDefaultValue", getDefaultValue2]);
  24375. return (_ctx, _cache) => {
  24376. return openBlock(), createBlock(Transition, { name: unref(transitionName) }, {
  24377. default: withCtx(() => [
  24378. _ctx.actualVisible || _ctx.visible ? (openBlock(), createElementBlock("div", {
  24379. key: 0,
  24380. class: normalizeClass(unref(ns).b("panel"))
  24381. }, [
  24382. createBaseVNode("div", {
  24383. class: normalizeClass([unref(ns).be("panel", "content"), { "has-seconds": unref(showSeconds) }])
  24384. }, [
  24385. createVNode(TimeSpinner, {
  24386. ref: "spinner",
  24387. role: _ctx.datetimeRole || "start",
  24388. "arrow-control": unref(arrowControl),
  24389. "show-seconds": unref(showSeconds),
  24390. "am-pm-mode": unref(amPmMode),
  24391. "spinner-date": _ctx.parsedValue,
  24392. "disabled-hours": unref(disabledHours),
  24393. "disabled-minutes": unref(disabledMinutes),
  24394. "disabled-seconds": unref(disabledSeconds),
  24395. onChange: handleChange,
  24396. onSetOption: unref(onSetOption),
  24397. onSelectRange: setSelectionRange
  24398. }, null, 8, ["role", "arrow-control", "show-seconds", "am-pm-mode", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onSetOption"])
  24399. ], 2),
  24400. createBaseVNode("div", {
  24401. class: normalizeClass(unref(ns).be("panel", "footer"))
  24402. }, [
  24403. createBaseVNode("button", {
  24404. type: "button",
  24405. class: normalizeClass([unref(ns).be("panel", "btn"), "cancel"]),
  24406. onClick: handleCancel
  24407. }, toDisplayString(unref(t)("el.datepicker.cancel")), 3),
  24408. createBaseVNode("button", {
  24409. type: "button",
  24410. class: normalizeClass([unref(ns).be("panel", "btn"), "confirm"]),
  24411. onClick: ($event) => handleConfirm()
  24412. }, toDisplayString(unref(t)("el.datepicker.confirm")), 11, ["onClick"])
  24413. ], 2)
  24414. ], 2)) : createCommentVNode("v-if", true)
  24415. ]),
  24416. _: 1
  24417. }, 8, ["name"]);
  24418. };
  24419. }
  24420. });
  24421. var TimePickPanel = _export_sfc(_sfc_main60, [["__file", "panel-time-pick.vue"]]);
  24422. // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs
  24423. var import_dayjs5 = __toESM(require_dayjs_min(), 1);
  24424. // node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.mjs
  24425. var panelTimeRangeProps = buildProps({
  24426. ...timePanelSharedProps,
  24427. parsedValue: {
  24428. type: definePropType(Array)
  24429. }
  24430. });
  24431. // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs
  24432. var _sfc_main61 = defineComponent({
  24433. __name: "panel-time-range",
  24434. props: panelTimeRangeProps,
  24435. emits: ["pick", "select-range", "set-picker-option"],
  24436. setup(__props, { emit }) {
  24437. const props2 = __props;
  24438. const makeSelectRange = (start, end) => {
  24439. const result2 = [];
  24440. for (let i = start; i <= end; i++) {
  24441. result2.push(i);
  24442. }
  24443. return result2;
  24444. };
  24445. const { t, lang } = useLocale();
  24446. const nsTime = useNamespace("time");
  24447. const nsPicker = useNamespace("picker");
  24448. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  24449. const {
  24450. arrowControl,
  24451. disabledHours,
  24452. disabledMinutes,
  24453. disabledSeconds,
  24454. defaultValue
  24455. } = pickerBase.props;
  24456. const startContainerKls = computed(() => [
  24457. nsTime.be("range-picker", "body"),
  24458. nsTime.be("panel", "content"),
  24459. nsTime.is("arrow", arrowControl),
  24460. showSeconds.value ? "has-seconds" : ""
  24461. ]);
  24462. const endContainerKls = computed(() => [
  24463. nsTime.be("range-picker", "body"),
  24464. nsTime.be("panel", "content"),
  24465. nsTime.is("arrow", arrowControl),
  24466. showSeconds.value ? "has-seconds" : ""
  24467. ]);
  24468. const startTime = computed(() => props2.parsedValue[0]);
  24469. const endTime = computed(() => props2.parsedValue[1]);
  24470. const oldValue = useOldValue(props2);
  24471. const handleCancel = () => {
  24472. const old = oldValue.value;
  24473. emit("pick", old, false);
  24474. nextTick(() => {
  24475. oldValue.value = old;
  24476. });
  24477. };
  24478. const showSeconds = computed(() => {
  24479. return props2.format.includes("ss");
  24480. });
  24481. const amPmMode = computed(() => {
  24482. if (props2.format.includes("A"))
  24483. return "A";
  24484. if (props2.format.includes("a"))
  24485. return "a";
  24486. return "";
  24487. });
  24488. const handleConfirm = (visible = false) => {
  24489. emit("pick", [startTime.value, endTime.value], visible);
  24490. };
  24491. const handleMinChange = (date4) => {
  24492. handleChange(date4.millisecond(0), endTime.value);
  24493. };
  24494. const handleMaxChange = (date4) => {
  24495. handleChange(startTime.value, date4.millisecond(0));
  24496. };
  24497. const isValidValue3 = (_date) => {
  24498. const parsedDate = _date.map((_2) => (0, import_dayjs5.default)(_2).locale(lang.value));
  24499. const result2 = getRangeAvailableTime(parsedDate);
  24500. return parsedDate[0].isSame(result2[0]) && parsedDate[1].isSame(result2[1]);
  24501. };
  24502. const handleChange = (start, end) => {
  24503. if (!props2.visible) {
  24504. return;
  24505. }
  24506. emit("pick", [start, end], true);
  24507. };
  24508. const btnConfirmDisabled = computed(() => {
  24509. return startTime.value > endTime.value;
  24510. });
  24511. const selectionRange = ref([0, 2]);
  24512. const setMinSelectionRange = (start, end) => {
  24513. emit("select-range", start, end, "min");
  24514. selectionRange.value = [start, end];
  24515. };
  24516. const offset3 = computed(() => showSeconds.value ? 11 : 8);
  24517. const setMaxSelectionRange = (start, end) => {
  24518. emit("select-range", start, end, "max");
  24519. const _offset = unref(offset3);
  24520. selectionRange.value = [start + _offset, end + _offset];
  24521. };
  24522. const changeSelectionRange = (step2) => {
  24523. const list = showSeconds.value ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11];
  24524. const mapping = ["hours", "minutes"].concat(showSeconds.value ? ["seconds"] : []);
  24525. const index = list.indexOf(selectionRange.value[0]);
  24526. const next = (index + step2 + list.length) % list.length;
  24527. const half = list.length / 2;
  24528. if (next < half) {
  24529. timePickerOptions["start_emitSelectRange"](mapping[next]);
  24530. } else {
  24531. timePickerOptions["end_emitSelectRange"](mapping[next - half]);
  24532. }
  24533. };
  24534. const handleKeydown = (event) => {
  24535. const code = getEventCode(event);
  24536. const { left, right, up, down } = EVENT_CODE;
  24537. if ([left, right].includes(code)) {
  24538. const step2 = code === left ? -1 : 1;
  24539. changeSelectionRange(step2);
  24540. event.preventDefault();
  24541. return;
  24542. }
  24543. if ([up, down].includes(code)) {
  24544. const step2 = code === up ? -1 : 1;
  24545. const role = selectionRange.value[0] < offset3.value ? "start" : "end";
  24546. timePickerOptions[`${role}_scrollDown`](step2);
  24547. event.preventDefault();
  24548. return;
  24549. }
  24550. };
  24551. const disabledHours_ = (role, compare) => {
  24552. const defaultDisable = disabledHours ? disabledHours(role) : [];
  24553. const isStart = role === "start";
  24554. const compareDate = compare || (isStart ? endTime.value : startTime.value);
  24555. const compareHour = compareDate.hour();
  24556. const nextDisable = isStart ? makeSelectRange(compareHour + 1, 23) : makeSelectRange(0, compareHour - 1);
  24557. return union_default(defaultDisable, nextDisable);
  24558. };
  24559. const disabledMinutes_ = (hour, role, compare) => {
  24560. const defaultDisable = disabledMinutes ? disabledMinutes(hour, role) : [];
  24561. const isStart = role === "start";
  24562. const compareDate = compare || (isStart ? endTime.value : startTime.value);
  24563. const compareHour = compareDate.hour();
  24564. if (hour !== compareHour) {
  24565. return defaultDisable;
  24566. }
  24567. const compareMinute = compareDate.minute();
  24568. const nextDisable = isStart ? makeSelectRange(compareMinute + 1, 59) : makeSelectRange(0, compareMinute - 1);
  24569. return union_default(defaultDisable, nextDisable);
  24570. };
  24571. const disabledSeconds_ = (hour, minute, role, compare) => {
  24572. const defaultDisable = disabledSeconds ? disabledSeconds(hour, minute, role) : [];
  24573. const isStart = role === "start";
  24574. const compareDate = compare || (isStart ? endTime.value : startTime.value);
  24575. const compareHour = compareDate.hour();
  24576. const compareMinute = compareDate.minute();
  24577. if (hour !== compareHour || minute !== compareMinute) {
  24578. return defaultDisable;
  24579. }
  24580. const compareSecond = compareDate.second();
  24581. const nextDisable = isStart ? makeSelectRange(compareSecond + 1, 59) : makeSelectRange(0, compareSecond - 1);
  24582. return union_default(defaultDisable, nextDisable);
  24583. };
  24584. const getRangeAvailableTime = ([start, end]) => {
  24585. return [
  24586. getAvailableTime(start, "start", true, end),
  24587. getAvailableTime(end, "end", false, start)
  24588. ];
  24589. };
  24590. const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours_, disabledMinutes_, disabledSeconds_);
  24591. const {
  24592. timePickerOptions,
  24593. getAvailableTime,
  24594. onSetOption
  24595. } = useTimePanel({
  24596. getAvailableHours,
  24597. getAvailableMinutes,
  24598. getAvailableSeconds
  24599. });
  24600. const parseUserInput = (days) => {
  24601. if (!days)
  24602. return null;
  24603. if (isArray(days)) {
  24604. return days.map((d2) => (0, import_dayjs5.default)(d2, props2.format).locale(lang.value));
  24605. }
  24606. return (0, import_dayjs5.default)(days, props2.format).locale(lang.value);
  24607. };
  24608. const getDefaultValue2 = () => {
  24609. if (isArray(defaultValue)) {
  24610. return defaultValue.map((d2) => (0, import_dayjs5.default)(d2).locale(lang.value));
  24611. }
  24612. const defaultDay = (0, import_dayjs5.default)(defaultValue).locale(lang.value);
  24613. return [defaultDay, defaultDay.add(60, "m")];
  24614. };
  24615. emit("set-picker-option", ["parseUserInput", parseUserInput]);
  24616. emit("set-picker-option", ["isValidValue", isValidValue3]);
  24617. emit("set-picker-option", ["handleKeydownInput", handleKeydown]);
  24618. emit("set-picker-option", ["getDefaultValue", getDefaultValue2]);
  24619. emit("set-picker-option", ["getRangeAvailableTime", getRangeAvailableTime]);
  24620. return (_ctx, _cache) => {
  24621. return _ctx.actualVisible ? (openBlock(), createElementBlock("div", {
  24622. key: 0,
  24623. class: normalizeClass([unref(nsTime).b("range-picker"), unref(nsPicker).b("panel")])
  24624. }, [
  24625. createBaseVNode("div", {
  24626. class: normalizeClass(unref(nsTime).be("range-picker", "content"))
  24627. }, [
  24628. createBaseVNode("div", {
  24629. class: normalizeClass(unref(nsTime).be("range-picker", "cell"))
  24630. }, [
  24631. createBaseVNode("div", {
  24632. class: normalizeClass(unref(nsTime).be("range-picker", "header"))
  24633. }, toDisplayString(unref(t)("el.datepicker.startTime")), 3),
  24634. createBaseVNode("div", {
  24635. class: normalizeClass(unref(startContainerKls))
  24636. }, [
  24637. createVNode(TimeSpinner, {
  24638. ref: "minSpinner",
  24639. role: "start",
  24640. "show-seconds": unref(showSeconds),
  24641. "am-pm-mode": unref(amPmMode),
  24642. "arrow-control": unref(arrowControl),
  24643. "spinner-date": unref(startTime),
  24644. "disabled-hours": disabledHours_,
  24645. "disabled-minutes": disabledMinutes_,
  24646. "disabled-seconds": disabledSeconds_,
  24647. onChange: handleMinChange,
  24648. onSetOption: unref(onSetOption),
  24649. onSelectRange: setMinSelectionRange
  24650. }, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
  24651. ], 2)
  24652. ], 2),
  24653. createBaseVNode("div", {
  24654. class: normalizeClass(unref(nsTime).be("range-picker", "cell"))
  24655. }, [
  24656. createBaseVNode("div", {
  24657. class: normalizeClass(unref(nsTime).be("range-picker", "header"))
  24658. }, toDisplayString(unref(t)("el.datepicker.endTime")), 3),
  24659. createBaseVNode("div", {
  24660. class: normalizeClass(unref(endContainerKls))
  24661. }, [
  24662. createVNode(TimeSpinner, {
  24663. ref: "maxSpinner",
  24664. role: "end",
  24665. "show-seconds": unref(showSeconds),
  24666. "am-pm-mode": unref(amPmMode),
  24667. "arrow-control": unref(arrowControl),
  24668. "spinner-date": unref(endTime),
  24669. "disabled-hours": disabledHours_,
  24670. "disabled-minutes": disabledMinutes_,
  24671. "disabled-seconds": disabledSeconds_,
  24672. onChange: handleMaxChange,
  24673. onSetOption: unref(onSetOption),
  24674. onSelectRange: setMaxSelectionRange
  24675. }, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
  24676. ], 2)
  24677. ], 2)
  24678. ], 2),
  24679. createBaseVNode("div", {
  24680. class: normalizeClass(unref(nsTime).be("panel", "footer"))
  24681. }, [
  24682. createBaseVNode("button", {
  24683. type: "button",
  24684. class: normalizeClass([unref(nsTime).be("panel", "btn"), "cancel"]),
  24685. onClick: ($event) => handleCancel()
  24686. }, toDisplayString(unref(t)("el.datepicker.cancel")), 11, ["onClick"]),
  24687. createBaseVNode("button", {
  24688. type: "button",
  24689. class: normalizeClass([unref(nsTime).be("panel", "btn"), "confirm"]),
  24690. disabled: unref(btnConfirmDisabled),
  24691. onClick: ($event) => handleConfirm()
  24692. }, toDisplayString(unref(t)("el.datepicker.confirm")), 11, ["disabled", "onClick"])
  24693. ], 2)
  24694. ], 2)) : createCommentVNode("v-if", true);
  24695. };
  24696. }
  24697. });
  24698. var TimeRangePanel = _export_sfc(_sfc_main61, [["__file", "panel-time-range.vue"]]);
  24699. // node_modules/element-plus/es/components/time-picker/src/time-picker.mjs
  24700. import_dayjs6.default.extend(import_customParseFormat.default);
  24701. var TimePicker = defineComponent({
  24702. name: "ElTimePicker",
  24703. install: null,
  24704. props: {
  24705. ...timePickerDefaultProps,
  24706. isRange: Boolean
  24707. },
  24708. emits: [UPDATE_MODEL_EVENT],
  24709. setup(props2, ctx) {
  24710. const commonPicker = ref();
  24711. const [type4, Panel] = props2.isRange ? ["timerange", TimeRangePanel] : ["time", TimePickPanel];
  24712. const modelUpdater = (value) => ctx.emit(UPDATE_MODEL_EVENT, value);
  24713. provide(PICKER_POPPER_OPTIONS_INJECTION_KEY, props2.popperOptions);
  24714. ctx.expose({
  24715. focus: () => {
  24716. var _a2;
  24717. (_a2 = commonPicker.value) == null ? void 0 : _a2.focus();
  24718. },
  24719. blur: () => {
  24720. var _a2;
  24721. (_a2 = commonPicker.value) == null ? void 0 : _a2.blur();
  24722. },
  24723. handleOpen: () => {
  24724. var _a2;
  24725. (_a2 = commonPicker.value) == null ? void 0 : _a2.handleOpen();
  24726. },
  24727. handleClose: () => {
  24728. var _a2;
  24729. (_a2 = commonPicker.value) == null ? void 0 : _a2.handleClose();
  24730. }
  24731. });
  24732. return () => {
  24733. var _a2;
  24734. const format2 = (_a2 = props2.format) != null ? _a2 : DEFAULT_FORMATS_TIME;
  24735. return createVNode(CommonPicker, mergeProps(props2, {
  24736. "ref": commonPicker,
  24737. "type": type4,
  24738. "format": format2,
  24739. "onUpdate:modelValue": modelUpdater
  24740. }), {
  24741. default: (props22) => createVNode(Panel, props22, null)
  24742. });
  24743. };
  24744. }
  24745. });
  24746. // node_modules/element-plus/es/components/time-picker/index.mjs
  24747. var ElTimePicker = withInstall(TimePicker);
  24748. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.mjs
  24749. var import_dayjs17 = __toESM(require_dayjs_min(), 1);
  24750. var import_customParseFormat2 = __toESM(require_customParseFormat(), 1);
  24751. var import_advancedFormat = __toESM(require_advancedFormat(), 1);
  24752. var import_localeData2 = __toESM(require_localeData(), 1);
  24753. var import_weekOfYear = __toESM(require_weekOfYear(), 1);
  24754. var import_weekYear = __toESM(require_weekYear(), 1);
  24755. var import_dayOfYear = __toESM(require_dayOfYear(), 1);
  24756. var import_isSameOrAfter = __toESM(require_isSameOrAfter(), 1);
  24757. var import_isSameOrBefore = __toESM(require_isSameOrBefore(), 1);
  24758. // node_modules/element-plus/es/components/date-picker-panel/src/props/date-picker-panel.mjs
  24759. var datePickerPanelProps = buildProps({
  24760. valueFormat: String,
  24761. dateFormat: String,
  24762. timeFormat: String,
  24763. disabled: Boolean,
  24764. modelValue: {
  24765. type: definePropType([Date, Array, String, Number]),
  24766. default: ""
  24767. },
  24768. defaultValue: {
  24769. type: definePropType([Date, Array])
  24770. },
  24771. defaultTime: {
  24772. type: definePropType([Date, Array])
  24773. },
  24774. isRange: Boolean,
  24775. ...disabledTimeListsProps,
  24776. disabledDate: {
  24777. type: Function
  24778. },
  24779. cellClassName: {
  24780. type: Function
  24781. },
  24782. shortcuts: {
  24783. type: Array,
  24784. default: () => []
  24785. },
  24786. arrowControl: Boolean,
  24787. unlinkPanels: Boolean,
  24788. showNow: {
  24789. type: Boolean,
  24790. default: true
  24791. },
  24792. showConfirm: Boolean,
  24793. showFooter: Boolean,
  24794. showWeekNumber: Boolean,
  24795. type: {
  24796. type: definePropType(String),
  24797. default: "date"
  24798. },
  24799. clearable: {
  24800. type: Boolean,
  24801. default: true
  24802. },
  24803. border: {
  24804. type: Boolean,
  24805. default: true
  24806. }
  24807. });
  24808. // node_modules/element-plus/es/components/date-picker-panel/src/constants.mjs
  24809. var ROOT_PICKER_INJECTION_KEY = Symbol("rootPickerContextKey");
  24810. var ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY = "ElIsDefaultFormat";
  24811. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs
  24812. var import_dayjs11 = __toESM(require_dayjs_min(), 1);
  24813. // node_modules/element-plus/es/components/date-picker-panel/src/props/shared.mjs
  24814. var selectionModes = [
  24815. "date",
  24816. "dates",
  24817. "year",
  24818. "years",
  24819. "month",
  24820. "months",
  24821. "week",
  24822. "range"
  24823. ];
  24824. var datePickerSharedProps = buildProps({
  24825. cellClassName: {
  24826. type: definePropType(Function)
  24827. },
  24828. disabledDate: {
  24829. type: definePropType(Function)
  24830. },
  24831. date: {
  24832. type: definePropType(Object),
  24833. required: true
  24834. },
  24835. minDate: {
  24836. type: definePropType(Object)
  24837. },
  24838. maxDate: {
  24839. type: definePropType(Object)
  24840. },
  24841. parsedValue: {
  24842. type: definePropType([Object, Array])
  24843. },
  24844. rangeState: {
  24845. type: definePropType(Object),
  24846. default: () => ({
  24847. endDate: null,
  24848. selecting: false
  24849. })
  24850. },
  24851. disabled: Boolean
  24852. });
  24853. var panelSharedProps = buildProps({
  24854. type: {
  24855. type: definePropType(String),
  24856. required: true,
  24857. values: datePickTypes
  24858. },
  24859. dateFormat: String,
  24860. timeFormat: String,
  24861. showNow: {
  24862. type: Boolean,
  24863. default: true
  24864. },
  24865. showConfirm: Boolean,
  24866. showFooter: {
  24867. type: Boolean,
  24868. default: true
  24869. },
  24870. showWeekNumber: Boolean,
  24871. border: Boolean,
  24872. disabled: Boolean
  24873. });
  24874. var panelRangeSharedProps = buildProps({
  24875. unlinkPanels: Boolean,
  24876. visible: {
  24877. type: Boolean,
  24878. default: true
  24879. },
  24880. showConfirm: Boolean,
  24881. showFooter: {
  24882. type: Boolean,
  24883. default: true
  24884. },
  24885. border: Boolean,
  24886. disabled: Boolean,
  24887. parsedValue: {
  24888. type: definePropType(Array)
  24889. }
  24890. });
  24891. var selectionModeWithDefault = (mode) => {
  24892. return {
  24893. type: String,
  24894. values: selectionModes,
  24895. default: mode
  24896. };
  24897. };
  24898. // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-pick.mjs
  24899. var panelDatePickProps = buildProps({
  24900. ...panelSharedProps,
  24901. parsedValue: {
  24902. type: definePropType([Object, Array])
  24903. },
  24904. visible: {
  24905. type: Boolean,
  24906. default: true
  24907. },
  24908. format: {
  24909. type: String,
  24910. default: ""
  24911. }
  24912. });
  24913. // node_modules/element-plus/es/components/date-picker-panel/src/utils.mjs
  24914. var import_dayjs7 = __toESM(require_dayjs_min(), 1);
  24915. var isValidRange2 = (range4) => {
  24916. if (!isArray(range4))
  24917. return false;
  24918. const [left, right] = range4;
  24919. return import_dayjs7.default.isDayjs(left) && import_dayjs7.default.isDayjs(right) && (0, import_dayjs7.default)(left).isValid() && (0, import_dayjs7.default)(right).isValid() && left.isSameOrBefore(right);
  24920. };
  24921. var getDefaultValue = (defaultValue, { lang, step: step2 = 1, unit: unit4, unlinkPanels }) => {
  24922. let start;
  24923. if (isArray(defaultValue)) {
  24924. let [left, right] = defaultValue.map((d2) => (0, import_dayjs7.default)(d2).locale(lang));
  24925. if (!unlinkPanels) {
  24926. right = left.add(step2, unit4);
  24927. }
  24928. return [left, right];
  24929. } else if (defaultValue) {
  24930. start = (0, import_dayjs7.default)(defaultValue);
  24931. } else {
  24932. start = (0, import_dayjs7.default)();
  24933. }
  24934. start = start.locale(lang);
  24935. return [start, start.add(step2, unit4)];
  24936. };
  24937. var buildPickerTable = (dimension, rows, {
  24938. columnIndexOffset,
  24939. startDate,
  24940. nextEndDate,
  24941. now: now2,
  24942. unit: unit4,
  24943. relativeDateGetter,
  24944. setCellMetadata,
  24945. setRowMetadata
  24946. }) => {
  24947. for (let rowIndex = 0; rowIndex < dimension.row; rowIndex++) {
  24948. const row = rows[rowIndex];
  24949. for (let columnIndex = 0; columnIndex < dimension.column; columnIndex++) {
  24950. let cell = row[columnIndex + columnIndexOffset];
  24951. if (!cell) {
  24952. cell = {
  24953. row: rowIndex,
  24954. column: columnIndex,
  24955. type: "normal",
  24956. inRange: false,
  24957. start: false,
  24958. end: false
  24959. };
  24960. }
  24961. const index = rowIndex * dimension.column + columnIndex;
  24962. const nextStartDate = relativeDateGetter(index);
  24963. cell.dayjs = nextStartDate;
  24964. cell.date = nextStartDate.toDate();
  24965. cell.timestamp = nextStartDate.valueOf();
  24966. cell.type = "normal";
  24967. cell.inRange = !!(startDate && nextStartDate.isSameOrAfter(startDate, unit4) && nextEndDate && nextStartDate.isSameOrBefore(nextEndDate, unit4)) || !!(startDate && nextStartDate.isSameOrBefore(startDate, unit4) && nextEndDate && nextStartDate.isSameOrAfter(nextEndDate, unit4));
  24968. if (startDate == null ? void 0 : startDate.isSameOrAfter(nextEndDate)) {
  24969. cell.start = !!nextEndDate && nextStartDate.isSame(nextEndDate, unit4);
  24970. cell.end = startDate && nextStartDate.isSame(startDate, unit4);
  24971. } else {
  24972. cell.start = !!startDate && nextStartDate.isSame(startDate, unit4);
  24973. cell.end = !!nextEndDate && nextStartDate.isSame(nextEndDate, unit4);
  24974. }
  24975. const isToday = nextStartDate.isSame(now2, unit4);
  24976. if (isToday) {
  24977. cell.type = "today";
  24978. }
  24979. setCellMetadata == null ? void 0 : setCellMetadata(cell, { rowIndex, columnIndex });
  24980. row[columnIndex + columnIndexOffset] = cell;
  24981. }
  24982. setRowMetadata == null ? void 0 : setRowMetadata(row);
  24983. }
  24984. };
  24985. var datesInMonth = (date4, year, month, lang) => {
  24986. const firstDay = (0, import_dayjs7.default)().locale(lang).startOf("month").month(month).year(year).hour(date4.hour()).minute(date4.minute()).second(date4.second());
  24987. const numOfDays = firstDay.daysInMonth();
  24988. return rangeArr(numOfDays).map((n) => firstDay.add(n, "day").toDate());
  24989. };
  24990. var getValidDateOfMonth = (date4, year, month, lang, disabledDate) => {
  24991. const _value = (0, import_dayjs7.default)().year(year).month(month).startOf("month").hour(date4.hour()).minute(date4.minute()).second(date4.second());
  24992. const _date = datesInMonth(date4, year, month, lang).find((date22) => {
  24993. return !(disabledDate == null ? void 0 : disabledDate(date22));
  24994. });
  24995. if (_date) {
  24996. return (0, import_dayjs7.default)(_date).locale(lang);
  24997. }
  24998. return _value.locale(lang);
  24999. };
  25000. var getValidDateOfYear = (value, lang, disabledDate) => {
  25001. const year = value.year();
  25002. if (!(disabledDate == null ? void 0 : disabledDate(value.toDate()))) {
  25003. return value.locale(lang);
  25004. }
  25005. const month = value.month();
  25006. if (!datesInMonth(value, year, month, lang).every(disabledDate)) {
  25007. return getValidDateOfMonth(value, year, month, lang, disabledDate);
  25008. }
  25009. for (let i = 0; i < 12; i++) {
  25010. if (!datesInMonth(value, year, i, lang).every(disabledDate)) {
  25011. return getValidDateOfMonth(value, year, i, lang, disabledDate);
  25012. }
  25013. }
  25014. return value;
  25015. };
  25016. var correctlyParseUserInput = (value, format2, lang, defaultFormat) => {
  25017. if (isArray(value)) {
  25018. return value.map((v2) => correctlyParseUserInput(v2, format2, lang, defaultFormat));
  25019. }
  25020. if (isString(value)) {
  25021. const dayjsValue = (defaultFormat == null ? void 0 : defaultFormat.value) ? (0, import_dayjs7.default)(value) : (0, import_dayjs7.default)(value, format2);
  25022. if (!dayjsValue.isValid()) {
  25023. return dayjsValue;
  25024. }
  25025. }
  25026. return (0, import_dayjs7.default)(value, format2).locale(lang);
  25027. };
  25028. // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-date-table.mjs
  25029. var basicDateTableProps = buildProps({
  25030. ...datePickerSharedProps,
  25031. showWeekNumber: Boolean,
  25032. selectionMode: selectionModeWithDefault("date")
  25033. });
  25034. var basicDateTableEmits = ["changerange", "pick", "select"];
  25035. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-basic-date-table.mjs
  25036. var import_dayjs8 = __toESM(require_dayjs_min(), 1);
  25037. var isNormalDay = (type4 = "") => {
  25038. return ["normal", "today"].includes(type4);
  25039. };
  25040. var useBasicDateTable = (props2, emit) => {
  25041. const { lang } = useLocale();
  25042. const tbodyRef = ref();
  25043. const currentCellRef = ref();
  25044. const lastRow = ref();
  25045. const lastColumn = ref();
  25046. const tableRows = ref([[], [], [], [], [], []]);
  25047. let focusWithClick = false;
  25048. const firstDayOfWeek = props2.date.$locale().weekStart || 7;
  25049. const WEEKS_CONSTANT = props2.date.locale("en").localeData().weekdaysShort().map((_2) => _2.toLowerCase());
  25050. const offsetDay = computed(() => {
  25051. return firstDayOfWeek > 3 ? 7 - firstDayOfWeek : -firstDayOfWeek;
  25052. });
  25053. const startDate = computed(() => {
  25054. const startDayOfMonth = props2.date.startOf("month");
  25055. return startDayOfMonth.subtract(startDayOfMonth.day() || 7, "day");
  25056. });
  25057. const WEEKS = computed(() => {
  25058. return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
  25059. });
  25060. const hasCurrent = computed(() => {
  25061. return flatten_default(unref(rows)).some((row) => {
  25062. return row.isCurrent;
  25063. });
  25064. });
  25065. const days = computed(() => {
  25066. const startOfMonth = props2.date.startOf("month");
  25067. const startOfMonthDay = startOfMonth.day() || 7;
  25068. const dateCountOfMonth = startOfMonth.daysInMonth();
  25069. const dateCountOfLastMonth = startOfMonth.subtract(1, "month").daysInMonth();
  25070. return {
  25071. startOfMonthDay,
  25072. dateCountOfMonth,
  25073. dateCountOfLastMonth
  25074. };
  25075. });
  25076. const selectedDate = computed(() => {
  25077. return props2.selectionMode === "dates" ? castArray2(props2.parsedValue) : [];
  25078. });
  25079. const setDateText = (cell, { count, rowIndex, columnIndex }) => {
  25080. const { startOfMonthDay, dateCountOfMonth, dateCountOfLastMonth } = unref(days);
  25081. const offset3 = unref(offsetDay);
  25082. if (rowIndex >= 0 && rowIndex <= 1) {
  25083. const numberOfDaysFromPreviousMonth = startOfMonthDay + offset3 < 0 ? 7 + startOfMonthDay + offset3 : startOfMonthDay + offset3;
  25084. if (columnIndex + rowIndex * 7 >= numberOfDaysFromPreviousMonth) {
  25085. cell.text = count;
  25086. return true;
  25087. } else {
  25088. cell.text = dateCountOfLastMonth - (numberOfDaysFromPreviousMonth - columnIndex % 7) + 1 + rowIndex * 7;
  25089. cell.type = "prev-month";
  25090. }
  25091. } else {
  25092. if (count <= dateCountOfMonth) {
  25093. cell.text = count;
  25094. } else {
  25095. cell.text = count - dateCountOfMonth;
  25096. cell.type = "next-month";
  25097. }
  25098. return true;
  25099. }
  25100. return false;
  25101. };
  25102. const setCellMetadata = (cell, { columnIndex, rowIndex }, count) => {
  25103. const { disabledDate, cellClassName } = props2;
  25104. const _selectedDate = unref(selectedDate);
  25105. const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex });
  25106. const cellDate = cell.dayjs.toDate();
  25107. cell.selected = _selectedDate.find((d2) => d2.isSame(cell.dayjs, "day"));
  25108. cell.isSelected = !!cell.selected;
  25109. cell.isCurrent = isCurrent(cell);
  25110. cell.disabled = disabledDate == null ? void 0 : disabledDate(cellDate);
  25111. cell.customClass = cellClassName == null ? void 0 : cellClassName(cellDate);
  25112. return shouldIncrement;
  25113. };
  25114. const setRowMetadata = (row) => {
  25115. if (props2.selectionMode === "week") {
  25116. const [start, end] = props2.showWeekNumber ? [1, 7] : [0, 6];
  25117. const isActive = isWeekActive(row[start + 1]);
  25118. row[start].inRange = isActive;
  25119. row[start].start = isActive;
  25120. row[end].inRange = isActive;
  25121. row[end].end = isActive;
  25122. }
  25123. };
  25124. const rows = computed(() => {
  25125. const { minDate, maxDate, rangeState, showWeekNumber } = props2;
  25126. const offset3 = unref(offsetDay);
  25127. const rows_ = unref(tableRows);
  25128. const dateUnit = "day";
  25129. let count = 1;
  25130. buildPickerTable({ row: 6, column: 7 }, rows_, {
  25131. startDate: minDate,
  25132. columnIndexOffset: showWeekNumber ? 1 : 0,
  25133. nextEndDate: rangeState.endDate || maxDate || rangeState.selecting && minDate || null,
  25134. now: (0, import_dayjs8.default)().locale(unref(lang)).startOf(dateUnit),
  25135. unit: dateUnit,
  25136. relativeDateGetter: (idx) => unref(startDate).add(idx - offset3, dateUnit),
  25137. setCellMetadata: (...args) => {
  25138. if (setCellMetadata(...args, count)) {
  25139. count += 1;
  25140. }
  25141. },
  25142. setRowMetadata
  25143. });
  25144. if (showWeekNumber) {
  25145. for (let rowIndex = 0; rowIndex < 6; rowIndex++) {
  25146. if (rows_[rowIndex][1].dayjs) {
  25147. rows_[rowIndex][0] = {
  25148. type: "week",
  25149. text: rows_[rowIndex][1].dayjs.week()
  25150. };
  25151. }
  25152. }
  25153. }
  25154. return rows_;
  25155. });
  25156. watch(() => props2.date, async () => {
  25157. var _a2;
  25158. if ((_a2 = unref(tbodyRef)) == null ? void 0 : _a2.contains(document.activeElement)) {
  25159. await nextTick();
  25160. await focus();
  25161. }
  25162. });
  25163. const focus = async () => {
  25164. var _a2;
  25165. return (_a2 = unref(currentCellRef)) == null ? void 0 : _a2.focus();
  25166. };
  25167. const isCurrent = (cell) => {
  25168. return props2.selectionMode === "date" && isNormalDay(cell.type) && cellMatchesDate(cell, props2.parsedValue);
  25169. };
  25170. const cellMatchesDate = (cell, date4) => {
  25171. if (!date4)
  25172. return false;
  25173. return (0, import_dayjs8.default)(date4).locale(unref(lang)).isSame(props2.date.date(Number(cell.text)), "day");
  25174. };
  25175. const getDateOfCell = (row, column2) => {
  25176. const offsetFromStart = row * 7 + (column2 - (props2.showWeekNumber ? 1 : 0)) - unref(offsetDay);
  25177. return unref(startDate).add(offsetFromStart, "day");
  25178. };
  25179. const handleMouseMove = (event) => {
  25180. var _a2;
  25181. if (!props2.rangeState.selecting)
  25182. return;
  25183. let target2 = event.target;
  25184. if (target2.tagName === "SPAN") {
  25185. target2 = (_a2 = target2.parentNode) == null ? void 0 : _a2.parentNode;
  25186. }
  25187. if (target2.tagName === "DIV") {
  25188. target2 = target2.parentNode;
  25189. }
  25190. if (target2.tagName !== "TD")
  25191. return;
  25192. const row = target2.parentNode.rowIndex - 1;
  25193. const column2 = target2.cellIndex;
  25194. if (unref(rows)[row][column2].disabled)
  25195. return;
  25196. if (row !== unref(lastRow) || column2 !== unref(lastColumn)) {
  25197. lastRow.value = row;
  25198. lastColumn.value = column2;
  25199. emit("changerange", {
  25200. selecting: true,
  25201. endDate: getDateOfCell(row, column2)
  25202. });
  25203. }
  25204. };
  25205. const isSelectedCell = (cell) => {
  25206. return !unref(hasCurrent) && (cell == null ? void 0 : cell.text) === 1 && cell.type === "normal" || cell.isCurrent;
  25207. };
  25208. const handleFocus = (event) => {
  25209. if (focusWithClick || unref(hasCurrent) || props2.selectionMode !== "date")
  25210. return;
  25211. handlePickDate(event, true);
  25212. };
  25213. const handleMouseDown = (event) => {
  25214. const target2 = event.target.closest("td");
  25215. if (!target2)
  25216. return;
  25217. focusWithClick = true;
  25218. };
  25219. const handleMouseUp = (event) => {
  25220. const target2 = event.target.closest("td");
  25221. if (!target2)
  25222. return;
  25223. focusWithClick = false;
  25224. };
  25225. const handleRangePick = (newDate) => {
  25226. if (!props2.rangeState.selecting || !props2.minDate) {
  25227. emit("pick", { minDate: newDate, maxDate: null });
  25228. emit("select", true);
  25229. } else {
  25230. if (newDate >= props2.minDate) {
  25231. emit("pick", { minDate: props2.minDate, maxDate: newDate });
  25232. } else {
  25233. emit("pick", { minDate: newDate, maxDate: props2.minDate });
  25234. }
  25235. emit("select", false);
  25236. }
  25237. };
  25238. const handleWeekPick = (newDate) => {
  25239. const weekNumber = newDate.week();
  25240. const value = `${newDate.year()}w${weekNumber}`;
  25241. emit("pick", {
  25242. year: newDate.year(),
  25243. week: weekNumber,
  25244. value,
  25245. date: newDate.startOf("week")
  25246. });
  25247. };
  25248. const handleDatesPick = (newDate, selected) => {
  25249. const newValue = selected ? castArray2(props2.parsedValue).filter((d2) => (d2 == null ? void 0 : d2.valueOf()) !== newDate.valueOf()) : castArray2(props2.parsedValue).concat([newDate]);
  25250. emit("pick", newValue);
  25251. };
  25252. const handlePickDate = (event, isKeyboardMovement = false) => {
  25253. if (props2.disabled)
  25254. return;
  25255. const target2 = event.target.closest("td");
  25256. if (!target2)
  25257. return;
  25258. const row = target2.parentNode.rowIndex - 1;
  25259. const column2 = target2.cellIndex;
  25260. const cell = unref(rows)[row][column2];
  25261. if (cell.disabled || cell.type === "week")
  25262. return;
  25263. const newDate = getDateOfCell(row, column2);
  25264. switch (props2.selectionMode) {
  25265. case "range": {
  25266. handleRangePick(newDate);
  25267. break;
  25268. }
  25269. case "date": {
  25270. emit("pick", newDate, isKeyboardMovement);
  25271. break;
  25272. }
  25273. case "week": {
  25274. handleWeekPick(newDate);
  25275. break;
  25276. }
  25277. case "dates": {
  25278. handleDatesPick(newDate, !!cell.selected);
  25279. break;
  25280. }
  25281. }
  25282. };
  25283. const isWeekActive = (cell) => {
  25284. if (props2.selectionMode !== "week")
  25285. return false;
  25286. let newDate = props2.date.startOf("day");
  25287. if (cell.type === "prev-month") {
  25288. newDate = newDate.subtract(1, "month");
  25289. }
  25290. if (cell.type === "next-month") {
  25291. newDate = newDate.add(1, "month");
  25292. }
  25293. newDate = newDate.date(Number.parseInt(cell.text, 10));
  25294. if (props2.parsedValue && !isArray(props2.parsedValue)) {
  25295. const dayOffset = (props2.parsedValue.day() - firstDayOfWeek + 7) % 7 - 1;
  25296. const weekDate = props2.parsedValue.subtract(dayOffset, "day");
  25297. return weekDate.isSame(newDate, "day");
  25298. }
  25299. return false;
  25300. };
  25301. return {
  25302. WEEKS,
  25303. rows,
  25304. tbodyRef,
  25305. currentCellRef,
  25306. focus,
  25307. isCurrent,
  25308. isWeekActive,
  25309. isSelectedCell,
  25310. handlePickDate,
  25311. handleMouseUp,
  25312. handleMouseDown,
  25313. handleMouseMove,
  25314. handleFocus
  25315. };
  25316. };
  25317. var useBasicDateTableDOM = (props2, {
  25318. isCurrent,
  25319. isWeekActive
  25320. }) => {
  25321. const ns = useNamespace("date-table");
  25322. const { t } = useLocale();
  25323. const tableKls = computed(() => [
  25324. ns.b(),
  25325. ns.is("week-mode", props2.selectionMode === "week" && !props2.disabled)
  25326. ]);
  25327. const tableLabel = computed(() => t("el.datepicker.dateTablePrompt"));
  25328. const getCellClasses = (cell) => {
  25329. const classes = [];
  25330. if (isNormalDay(cell.type) && !cell.disabled) {
  25331. classes.push("available");
  25332. if (cell.type === "today") {
  25333. classes.push("today");
  25334. }
  25335. } else {
  25336. classes.push(cell.type);
  25337. }
  25338. if (isCurrent(cell)) {
  25339. classes.push("current");
  25340. }
  25341. if (cell.inRange && (isNormalDay(cell.type) || props2.selectionMode === "week")) {
  25342. classes.push("in-range");
  25343. if (cell.start) {
  25344. classes.push("start-date");
  25345. }
  25346. if (cell.end) {
  25347. classes.push("end-date");
  25348. }
  25349. }
  25350. if (cell.disabled || props2.disabled) {
  25351. classes.push("disabled");
  25352. }
  25353. if (cell.selected) {
  25354. classes.push("selected");
  25355. }
  25356. if (cell.customClass) {
  25357. classes.push(cell.customClass);
  25358. }
  25359. return classes.join(" ");
  25360. };
  25361. const getRowKls = (cell) => [
  25362. ns.e("row"),
  25363. { current: isWeekActive(cell) }
  25364. ];
  25365. return {
  25366. tableKls,
  25367. tableLabel,
  25368. weekHeaderClass: ns.e("week-header"),
  25369. getCellClasses,
  25370. getRowKls,
  25371. t
  25372. };
  25373. };
  25374. // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-cell.mjs
  25375. var basicCellProps = buildProps({
  25376. cell: {
  25377. type: definePropType(Object)
  25378. }
  25379. });
  25380. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-cell-render.mjs
  25381. var ElDatePickerCell = defineComponent({
  25382. name: "ElDatePickerCell",
  25383. props: basicCellProps,
  25384. setup(props2) {
  25385. const ns = useNamespace("date-table-cell");
  25386. const {
  25387. slots
  25388. } = inject(ROOT_PICKER_INJECTION_KEY);
  25389. return () => {
  25390. const {
  25391. cell
  25392. } = props2;
  25393. return renderSlot(slots, "default", {
  25394. ...cell
  25395. }, () => {
  25396. var _a2;
  25397. return [createVNode("div", {
  25398. "class": ns.b()
  25399. }, [createVNode("span", {
  25400. "class": ns.e("text")
  25401. }, [(_a2 = cell == null ? void 0 : cell.renderText) != null ? _a2 : cell == null ? void 0 : cell.text])])];
  25402. });
  25403. };
  25404. }
  25405. });
  25406. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs
  25407. var _sfc_main62 = defineComponent({
  25408. __name: "basic-date-table",
  25409. props: basicDateTableProps,
  25410. emits: basicDateTableEmits,
  25411. setup(__props, { expose, emit }) {
  25412. const props2 = __props;
  25413. const {
  25414. WEEKS,
  25415. rows,
  25416. tbodyRef,
  25417. currentCellRef,
  25418. focus,
  25419. isCurrent,
  25420. isWeekActive,
  25421. isSelectedCell,
  25422. handlePickDate,
  25423. handleMouseUp,
  25424. handleMouseDown,
  25425. handleMouseMove,
  25426. handleFocus
  25427. } = useBasicDateTable(props2, emit);
  25428. const { tableLabel, tableKls, getCellClasses, getRowKls, weekHeaderClass, t } = useBasicDateTableDOM(props2, {
  25429. isCurrent,
  25430. isWeekActive
  25431. });
  25432. let isUnmounting = false;
  25433. onBeforeUnmount(() => {
  25434. isUnmounting = true;
  25435. });
  25436. expose({
  25437. focus
  25438. });
  25439. return (_ctx, _cache) => {
  25440. return openBlock(), createElementBlock("table", {
  25441. "aria-label": unref(tableLabel),
  25442. class: normalizeClass(unref(tableKls)),
  25443. cellspacing: "0",
  25444. cellpadding: "0",
  25445. role: "grid",
  25446. onClick: unref(handlePickDate),
  25447. onMousemove: unref(handleMouseMove),
  25448. onMousedown: unref(handleMouseDown),
  25449. onMouseup: unref(handleMouseUp)
  25450. }, [
  25451. createBaseVNode("tbody", {
  25452. ref_key: "tbodyRef",
  25453. ref: tbodyRef
  25454. }, [
  25455. createBaseVNode("tr", null, [
  25456. _ctx.showWeekNumber ? (openBlock(), createElementBlock("th", {
  25457. key: 0,
  25458. scope: "col",
  25459. class: normalizeClass(unref(weekHeaderClass))
  25460. }, null, 2)) : createCommentVNode("v-if", true),
  25461. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(WEEKS), (week, key) => {
  25462. return openBlock(), createElementBlock("th", {
  25463. key,
  25464. "aria-label": unref(t)("el.datepicker.weeksFull." + week),
  25465. scope: "col"
  25466. }, toDisplayString(unref(t)("el.datepicker.weeks." + week)), 9, ["aria-label"]);
  25467. }), 128))
  25468. ]),
  25469. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, rowKey2) => {
  25470. return openBlock(), createElementBlock("tr", {
  25471. key: rowKey2,
  25472. class: normalizeClass(unref(getRowKls)(_ctx.showWeekNumber ? row[2] : row[1]))
  25473. }, [
  25474. (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, columnKey) => {
  25475. return openBlock(), createElementBlock("td", {
  25476. key: `${rowKey2}.${columnKey}`,
  25477. ref_for: true,
  25478. ref: (el) => !unref(isUnmounting) && unref(isSelectedCell)(cell) && (currentCellRef.value = el),
  25479. class: normalizeClass(unref(getCellClasses)(cell)),
  25480. "aria-current": cell.isCurrent ? "date" : void 0,
  25481. "aria-selected": cell.isCurrent,
  25482. tabindex: unref(isSelectedCell)(cell) ? 0 : -1,
  25483. onFocus: unref(handleFocus)
  25484. }, [
  25485. createVNode(unref(ElDatePickerCell), { cell }, null, 8, ["cell"])
  25486. ], 42, ["aria-current", "aria-selected", "tabindex", "onFocus"]);
  25487. }), 128))
  25488. ], 2);
  25489. }), 128))
  25490. ], 512)
  25491. ], 42, ["aria-label", "onClick", "onMousemove", "onMousedown", "onMouseup"]);
  25492. };
  25493. }
  25494. });
  25495. var DateTable2 = _export_sfc(_sfc_main62, [["__file", "basic-date-table.vue"]]);
  25496. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.mjs
  25497. var import_dayjs9 = __toESM(require_dayjs_min(), 1);
  25498. // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-month-table.mjs
  25499. var basicMonthTableProps = buildProps({
  25500. ...datePickerSharedProps,
  25501. selectionMode: selectionModeWithDefault("month")
  25502. });
  25503. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.mjs
  25504. var _sfc_main63 = defineComponent({
  25505. __name: "basic-month-table",
  25506. props: basicMonthTableProps,
  25507. emits: ["changerange", "pick", "select"],
  25508. setup(__props, { expose, emit }) {
  25509. const props2 = __props;
  25510. const ns = useNamespace("month-table");
  25511. const { t, lang } = useLocale();
  25512. const tbodyRef = ref();
  25513. const currentCellRef = ref();
  25514. const months = ref(props2.date.locale("en").localeData().monthsShort().map((_2) => _2.toLowerCase()));
  25515. const tableRows = ref([[], [], []]);
  25516. const lastRow = ref();
  25517. const lastColumn = ref();
  25518. const rows = computed(() => {
  25519. var _a2, _b, _c;
  25520. const rows2 = tableRows.value;
  25521. const now2 = (0, import_dayjs9.default)().locale(lang.value).startOf("month");
  25522. for (let i = 0; i < 3; i++) {
  25523. const row = rows2[i];
  25524. for (let j = 0; j < 4; j++) {
  25525. const cell = row[j] || (row[j] = {
  25526. row: i,
  25527. column: j,
  25528. type: "normal",
  25529. inRange: false,
  25530. start: false,
  25531. end: false,
  25532. text: -1,
  25533. disabled: false,
  25534. isSelected: false,
  25535. customClass: void 0,
  25536. date: void 0,
  25537. dayjs: void 0,
  25538. isCurrent: void 0,
  25539. selected: void 0,
  25540. renderText: void 0,
  25541. timestamp: void 0
  25542. });
  25543. cell.type = "normal";
  25544. const index = i * 4 + j;
  25545. const calTime = props2.date.startOf("year").month(index);
  25546. const calEndDate = props2.rangeState.endDate || props2.maxDate || props2.rangeState.selecting && props2.minDate || null;
  25547. cell.inRange = !!(props2.minDate && calTime.isSameOrAfter(props2.minDate, "month") && calEndDate && calTime.isSameOrBefore(calEndDate, "month")) || !!(props2.minDate && calTime.isSameOrBefore(props2.minDate, "month") && calEndDate && calTime.isSameOrAfter(calEndDate, "month"));
  25548. if ((_a2 = props2.minDate) == null ? void 0 : _a2.isSameOrAfter(calEndDate)) {
  25549. cell.start = !!(calEndDate && calTime.isSame(calEndDate, "month"));
  25550. cell.end = props2.minDate && calTime.isSame(props2.minDate, "month");
  25551. } else {
  25552. cell.start = !!(props2.minDate && calTime.isSame(props2.minDate, "month"));
  25553. cell.end = !!(calEndDate && calTime.isSame(calEndDate, "month"));
  25554. }
  25555. const isToday = now2.isSame(calTime);
  25556. if (isToday) {
  25557. cell.type = "today";
  25558. }
  25559. const cellDate = calTime.toDate();
  25560. cell.text = index;
  25561. cell.disabled = ((_b = props2.disabledDate) == null ? void 0 : _b.call(props2, cellDate)) || false;
  25562. cell.date = cellDate;
  25563. cell.customClass = (_c = props2.cellClassName) == null ? void 0 : _c.call(props2, cellDate);
  25564. cell.dayjs = calTime;
  25565. cell.timestamp = calTime.valueOf();
  25566. cell.isSelected = isSelectedCell(cell);
  25567. }
  25568. }
  25569. return rows2;
  25570. });
  25571. const focus = () => {
  25572. var _a2;
  25573. (_a2 = currentCellRef.value) == null ? void 0 : _a2.focus();
  25574. };
  25575. const getCellStyle = (cell) => {
  25576. const style = {};
  25577. const year = props2.date.year();
  25578. const today = /* @__PURE__ */ new Date();
  25579. const month = cell.text;
  25580. style.disabled = props2.disabled || (props2.disabledDate ? datesInMonth(props2.date, year, month, lang.value).every(props2.disabledDate) : false);
  25581. style.current = castArray2(props2.parsedValue).some((date4) => import_dayjs9.default.isDayjs(date4) && date4.year() === year && date4.month() === month);
  25582. style.today = today.getFullYear() === year && today.getMonth() === month;
  25583. if (cell.customClass) {
  25584. style[cell.customClass] = true;
  25585. }
  25586. if (cell.inRange) {
  25587. style["in-range"] = true;
  25588. if (cell.start) {
  25589. style["start-date"] = true;
  25590. }
  25591. if (cell.end) {
  25592. style["end-date"] = true;
  25593. }
  25594. }
  25595. return style;
  25596. };
  25597. const isSelectedCell = (cell) => {
  25598. const year = props2.date.year();
  25599. const month = cell.text;
  25600. return castArray2(props2.date).some((date4) => date4.year() === year && date4.month() === month);
  25601. };
  25602. const handleMouseMove = (event) => {
  25603. var _a2;
  25604. if (!props2.rangeState.selecting)
  25605. return;
  25606. let target2 = event.target;
  25607. if (target2.tagName === "SPAN") {
  25608. target2 = (_a2 = target2.parentNode) == null ? void 0 : _a2.parentNode;
  25609. }
  25610. if (target2.tagName === "DIV") {
  25611. target2 = target2.parentNode;
  25612. }
  25613. if (target2.tagName !== "TD")
  25614. return;
  25615. const row = target2.parentNode.rowIndex;
  25616. const column2 = target2.cellIndex;
  25617. if (rows.value[row][column2].disabled)
  25618. return;
  25619. if (row !== lastRow.value || column2 !== lastColumn.value) {
  25620. lastRow.value = row;
  25621. lastColumn.value = column2;
  25622. emit("changerange", {
  25623. selecting: true,
  25624. endDate: props2.date.startOf("year").month(row * 4 + column2)
  25625. });
  25626. }
  25627. };
  25628. const handleMonthTableClick = (event) => {
  25629. var _a2;
  25630. if (props2.disabled)
  25631. return;
  25632. const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("td");
  25633. if ((target2 == null ? void 0 : target2.tagName) !== "TD")
  25634. return;
  25635. if (hasClass(target2, "disabled"))
  25636. return;
  25637. const column2 = target2.cellIndex;
  25638. const row = target2.parentNode.rowIndex;
  25639. const month = row * 4 + column2;
  25640. const newDate = props2.date.startOf("year").month(month);
  25641. if (props2.selectionMode === "months") {
  25642. if (event.type === "keydown") {
  25643. emit("pick", castArray2(props2.parsedValue), false);
  25644. return;
  25645. }
  25646. const newMonth = getValidDateOfMonth(props2.date, props2.date.year(), month, lang.value, props2.disabledDate);
  25647. const newValue = hasClass(target2, "current") ? castArray2(props2.parsedValue).filter((d2) => (d2 == null ? void 0 : d2.year()) !== newMonth.year() || (d2 == null ? void 0 : d2.month()) !== newMonth.month()) : castArray2(props2.parsedValue).concat([(0, import_dayjs9.default)(newMonth)]);
  25648. emit("pick", newValue);
  25649. } else if (props2.selectionMode === "range") {
  25650. if (!props2.rangeState.selecting) {
  25651. emit("pick", { minDate: newDate, maxDate: null });
  25652. emit("select", true);
  25653. } else {
  25654. if (props2.minDate && newDate >= props2.minDate) {
  25655. emit("pick", { minDate: props2.minDate, maxDate: newDate });
  25656. } else {
  25657. emit("pick", { minDate: newDate, maxDate: props2.minDate });
  25658. }
  25659. emit("select", false);
  25660. }
  25661. } else {
  25662. emit("pick", month);
  25663. }
  25664. };
  25665. watch(() => props2.date, async () => {
  25666. var _a2, _b;
  25667. if ((_a2 = tbodyRef.value) == null ? void 0 : _a2.contains(document.activeElement)) {
  25668. await nextTick();
  25669. (_b = currentCellRef.value) == null ? void 0 : _b.focus();
  25670. }
  25671. });
  25672. expose({
  25673. focus
  25674. });
  25675. return (_ctx, _cache) => {
  25676. return openBlock(), createElementBlock("table", {
  25677. role: "grid",
  25678. "aria-label": unref(t)("el.datepicker.monthTablePrompt"),
  25679. class: normalizeClass(unref(ns).b()),
  25680. onClick: handleMonthTableClick,
  25681. onMousemove: handleMouseMove
  25682. }, [
  25683. createBaseVNode("tbody", {
  25684. ref_key: "tbodyRef",
  25685. ref: tbodyRef
  25686. }, [
  25687. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, key) => {
  25688. return openBlock(), createElementBlock("tr", { key }, [
  25689. (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key_) => {
  25690. return openBlock(), createElementBlock("td", {
  25691. key: key_,
  25692. ref_for: true,
  25693. ref: (el) => cell.isSelected && (currentCellRef.value = el),
  25694. class: normalizeClass(getCellStyle(cell)),
  25695. "aria-selected": !!cell.isSelected,
  25696. "aria-label": unref(t)(`el.datepicker.month${+cell.text + 1}`),
  25697. tabindex: cell.isSelected ? 0 : -1,
  25698. onKeydown: [
  25699. withKeys(withModifiers(handleMonthTableClick, ["prevent", "stop"]), ["space"]),
  25700. withKeys(withModifiers(handleMonthTableClick, ["prevent", "stop"]), ["enter"])
  25701. ]
  25702. }, [
  25703. createVNode(unref(ElDatePickerCell), {
  25704. cell: {
  25705. ...cell,
  25706. renderText: unref(t)("el.datepicker.months." + months.value[cell.text])
  25707. }
  25708. }, null, 8, ["cell"])
  25709. ], 42, ["aria-selected", "aria-label", "tabindex", "onKeydown"]);
  25710. }), 128))
  25711. ]);
  25712. }), 128))
  25713. ], 512)
  25714. ], 42, ["aria-label"]);
  25715. };
  25716. }
  25717. });
  25718. var MonthTable = _export_sfc(_sfc_main63, [["__file", "basic-month-table.vue"]]);
  25719. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.mjs
  25720. var import_dayjs10 = __toESM(require_dayjs_min(), 1);
  25721. // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-year-table.mjs
  25722. var basicYearTableProps = buildProps({
  25723. ...datePickerSharedProps,
  25724. selectionMode: selectionModeWithDefault("year")
  25725. });
  25726. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.mjs
  25727. var _sfc_main64 = defineComponent({
  25728. __name: "basic-year-table",
  25729. props: basicYearTableProps,
  25730. emits: ["changerange", "pick", "select"],
  25731. setup(__props, { expose, emit }) {
  25732. const props2 = __props;
  25733. const datesInYear = (year, lang2) => {
  25734. const firstDay = (0, import_dayjs10.default)(String(year)).locale(lang2).startOf("year");
  25735. const lastDay = firstDay.endOf("year");
  25736. const numOfDays = lastDay.dayOfYear();
  25737. return rangeArr(numOfDays).map((n) => firstDay.add(n, "day").toDate());
  25738. };
  25739. const ns = useNamespace("year-table");
  25740. const { t, lang } = useLocale();
  25741. const tbodyRef = ref();
  25742. const currentCellRef = ref();
  25743. const startYear = computed(() => {
  25744. return Math.floor(props2.date.year() / 10) * 10;
  25745. });
  25746. const tableRows = ref([[], [], []]);
  25747. const lastRow = ref();
  25748. const lastColumn = ref();
  25749. const rows = computed(() => {
  25750. var _a2, _b, _c;
  25751. const rows2 = tableRows.value;
  25752. const now2 = (0, import_dayjs10.default)().locale(lang.value).startOf("year");
  25753. for (let i = 0; i < 3; i++) {
  25754. const row = rows2[i];
  25755. for (let j = 0; j < 4; j++) {
  25756. if (i * 4 + j >= 10) {
  25757. break;
  25758. }
  25759. let cell = row[j];
  25760. if (!cell) {
  25761. cell = {
  25762. row: i,
  25763. column: j,
  25764. type: "normal",
  25765. inRange: false,
  25766. start: false,
  25767. end: false,
  25768. text: -1,
  25769. disabled: false,
  25770. isSelected: false,
  25771. customClass: void 0,
  25772. date: void 0,
  25773. dayjs: void 0,
  25774. isCurrent: void 0,
  25775. selected: void 0,
  25776. renderText: void 0,
  25777. timestamp: void 0
  25778. };
  25779. }
  25780. cell.type = "normal";
  25781. const index = i * 4 + j + startYear.value;
  25782. const calTime = (0, import_dayjs10.default)().year(index);
  25783. const calEndDate = props2.rangeState.endDate || props2.maxDate || props2.rangeState.selecting && props2.minDate || null;
  25784. cell.inRange = !!(props2.minDate && calTime.isSameOrAfter(props2.minDate, "year") && calEndDate && calTime.isSameOrBefore(calEndDate, "year")) || !!(props2.minDate && calTime.isSameOrBefore(props2.minDate, "year") && calEndDate && calTime.isSameOrAfter(calEndDate, "year"));
  25785. if ((_a2 = props2.minDate) == null ? void 0 : _a2.isSameOrAfter(calEndDate)) {
  25786. cell.start = !!(calEndDate && calTime.isSame(calEndDate, "year"));
  25787. cell.end = !!(props2.minDate && calTime.isSame(props2.minDate, "year"));
  25788. } else {
  25789. cell.start = !!(props2.minDate && calTime.isSame(props2.minDate, "year"));
  25790. cell.end = !!(calEndDate && calTime.isSame(calEndDate, "year"));
  25791. }
  25792. const isToday = now2.isSame(calTime);
  25793. if (isToday) {
  25794. cell.type = "today";
  25795. }
  25796. cell.text = index;
  25797. const cellDate = calTime.toDate();
  25798. cell.disabled = ((_b = props2.disabledDate) == null ? void 0 : _b.call(props2, cellDate)) || false;
  25799. cell.date = cellDate;
  25800. cell.customClass = (_c = props2.cellClassName) == null ? void 0 : _c.call(props2, cellDate);
  25801. cell.dayjs = calTime;
  25802. cell.timestamp = calTime.valueOf();
  25803. cell.isSelected = isSelectedCell(cell);
  25804. row[j] = cell;
  25805. }
  25806. }
  25807. return rows2;
  25808. });
  25809. const focus = () => {
  25810. var _a2;
  25811. (_a2 = currentCellRef.value) == null ? void 0 : _a2.focus();
  25812. };
  25813. const getCellKls = (cell) => {
  25814. const kls = {};
  25815. const today = (0, import_dayjs10.default)().locale(lang.value);
  25816. const year = cell.text;
  25817. kls.disabled = props2.disabled || (props2.disabledDate ? datesInYear(year, lang.value).every(props2.disabledDate) : false);
  25818. kls.today = today.year() === year;
  25819. kls.current = castArray2(props2.parsedValue).some((d2) => d2.year() === year);
  25820. if (cell.customClass) {
  25821. kls[cell.customClass] = true;
  25822. }
  25823. if (cell.inRange) {
  25824. kls["in-range"] = true;
  25825. if (cell.start) {
  25826. kls["start-date"] = true;
  25827. }
  25828. if (cell.end) {
  25829. kls["end-date"] = true;
  25830. }
  25831. }
  25832. return kls;
  25833. };
  25834. const isSelectedCell = (cell) => {
  25835. const year = cell.text;
  25836. return castArray2(props2.date).some((date4) => date4.year() === year);
  25837. };
  25838. const handleYearTableClick = (event) => {
  25839. var _a2;
  25840. if (props2.disabled)
  25841. return;
  25842. const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("td");
  25843. if (!target2 || !target2.textContent || hasClass(target2, "disabled"))
  25844. return;
  25845. const column2 = target2.cellIndex;
  25846. const row = target2.parentNode.rowIndex;
  25847. const selectedYear = row * 4 + column2 + startYear.value;
  25848. const newDate = (0, import_dayjs10.default)().year(selectedYear);
  25849. if (props2.selectionMode === "range") {
  25850. if (!props2.rangeState.selecting) {
  25851. emit("pick", { minDate: newDate, maxDate: null });
  25852. emit("select", true);
  25853. } else {
  25854. if (props2.minDate && newDate >= props2.minDate) {
  25855. emit("pick", { minDate: props2.minDate, maxDate: newDate });
  25856. } else {
  25857. emit("pick", { minDate: newDate, maxDate: props2.minDate });
  25858. }
  25859. emit("select", false);
  25860. }
  25861. } else if (props2.selectionMode === "years") {
  25862. if (event.type === "keydown") {
  25863. emit("pick", castArray2(props2.parsedValue), false);
  25864. return;
  25865. }
  25866. const vaildYear = getValidDateOfYear(newDate.startOf("year"), lang.value, props2.disabledDate);
  25867. const newValue = hasClass(target2, "current") ? castArray2(props2.parsedValue).filter((d2) => (d2 == null ? void 0 : d2.year()) !== selectedYear) : castArray2(props2.parsedValue).concat([vaildYear]);
  25868. emit("pick", newValue);
  25869. } else {
  25870. emit("pick", selectedYear);
  25871. }
  25872. };
  25873. const handleMouseMove = (event) => {
  25874. var _a2;
  25875. if (!props2.rangeState.selecting)
  25876. return;
  25877. const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("td");
  25878. if (!target2)
  25879. return;
  25880. const row = target2.parentNode.rowIndex;
  25881. const column2 = target2.cellIndex;
  25882. if (rows.value[row][column2].disabled)
  25883. return;
  25884. if (row !== lastRow.value || column2 !== lastColumn.value) {
  25885. lastRow.value = row;
  25886. lastColumn.value = column2;
  25887. emit("changerange", {
  25888. selecting: true,
  25889. endDate: (0, import_dayjs10.default)().year(startYear.value).add(row * 4 + column2, "year")
  25890. });
  25891. }
  25892. };
  25893. watch(() => props2.date, async () => {
  25894. var _a2, _b;
  25895. if ((_a2 = tbodyRef.value) == null ? void 0 : _a2.contains(document.activeElement)) {
  25896. await nextTick();
  25897. (_b = currentCellRef.value) == null ? void 0 : _b.focus();
  25898. }
  25899. });
  25900. expose({
  25901. focus
  25902. });
  25903. return (_ctx, _cache) => {
  25904. return openBlock(), createElementBlock("table", {
  25905. role: "grid",
  25906. "aria-label": unref(t)("el.datepicker.yearTablePrompt"),
  25907. class: normalizeClass(unref(ns).b()),
  25908. onClick: handleYearTableClick,
  25909. onMousemove: handleMouseMove
  25910. }, [
  25911. createBaseVNode("tbody", {
  25912. ref_key: "tbodyRef",
  25913. ref: tbodyRef
  25914. }, [
  25915. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, rowKey2) => {
  25916. return openBlock(), createElementBlock("tr", { key: rowKey2 }, [
  25917. (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, cellKey) => {
  25918. return openBlock(), createElementBlock("td", {
  25919. key: `${rowKey2}_${cellKey}`,
  25920. ref_for: true,
  25921. ref: (el) => cell.isSelected && (currentCellRef.value = el),
  25922. class: normalizeClass(["available", getCellKls(cell)]),
  25923. "aria-selected": cell.isSelected,
  25924. "aria-label": String(cell.text),
  25925. tabindex: cell.isSelected ? 0 : -1,
  25926. onKeydown: [
  25927. withKeys(withModifiers(handleYearTableClick, ["prevent", "stop"]), ["space"]),
  25928. withKeys(withModifiers(handleYearTableClick, ["prevent", "stop"]), ["enter"])
  25929. ]
  25930. }, [
  25931. createVNode(unref(ElDatePickerCell), { cell }, null, 8, ["cell"])
  25932. ], 42, ["aria-selected", "aria-label", "tabindex", "onKeydown"]);
  25933. }), 128))
  25934. ]);
  25935. }), 128))
  25936. ], 512)
  25937. ], 42, ["aria-label"]);
  25938. };
  25939. }
  25940. });
  25941. var YearTable = _export_sfc(_sfc_main64, [["__file", "basic-year-table.vue"]]);
  25942. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs
  25943. var _sfc_main65 = defineComponent({
  25944. __name: "panel-date-pick",
  25945. props: panelDatePickProps,
  25946. emits: ["pick", "set-picker-option", "panel-change"],
  25947. setup(__props, { emit: contextEmit }) {
  25948. const props2 = __props;
  25949. const timeWithinRange = (_2, __, ___) => true;
  25950. const ppNs = useNamespace("picker-panel");
  25951. const dpNs = useNamespace("date-picker");
  25952. const attrs = useAttrs();
  25953. const slots = useSlots();
  25954. const { t, lang } = useLocale();
  25955. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  25956. const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
  25957. const { shortcuts, disabledDate, cellClassName, defaultTime } = pickerBase.props;
  25958. const defaultValue = toRef(pickerBase.props, "defaultValue");
  25959. const currentViewRef = ref();
  25960. const innerDate = ref((0, import_dayjs11.default)().locale(lang.value));
  25961. const isChangeToNow = ref(false);
  25962. let isShortcut = false;
  25963. const defaultTimeD = computed(() => {
  25964. return (0, import_dayjs11.default)(defaultTime).locale(lang.value);
  25965. });
  25966. const month = computed(() => {
  25967. return innerDate.value.month();
  25968. });
  25969. const year = computed(() => {
  25970. return innerDate.value.year();
  25971. });
  25972. const selectableRange = ref([]);
  25973. const userInputDate = ref(null);
  25974. const userInputTime = ref(null);
  25975. const checkDateWithinRange = (date4) => {
  25976. return selectableRange.value.length > 0 ? timeWithinRange(date4, selectableRange.value, props2.format || "HH:mm:ss") : true;
  25977. };
  25978. const formatEmit = (emitDayjs) => {
  25979. if (defaultTime && !visibleTime.value && !isChangeToNow.value && !isShortcut) {
  25980. return defaultTimeD.value.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());
  25981. }
  25982. if (showTime.value)
  25983. return emitDayjs.millisecond(0);
  25984. return emitDayjs.startOf("day");
  25985. };
  25986. const emit = (value, ...args) => {
  25987. if (!value) {
  25988. contextEmit("pick", value, ...args);
  25989. } else if (isArray(value)) {
  25990. const dates = value.map(formatEmit);
  25991. contextEmit("pick", dates, ...args);
  25992. } else {
  25993. contextEmit("pick", formatEmit(value), ...args);
  25994. }
  25995. userInputDate.value = null;
  25996. userInputTime.value = null;
  25997. isChangeToNow.value = false;
  25998. isShortcut = false;
  25999. };
  26000. const handleDatePick = async (value, keepOpen) => {
  26001. if (selectionMode.value === "date" && import_dayjs11.default.isDayjs(value)) {
  26002. const parsedDateValue = extractFirst(props2.parsedValue);
  26003. let newDate = parsedDateValue ? parsedDateValue.year(value.year()).month(value.month()).date(value.date()) : value;
  26004. if (!checkDateWithinRange(newDate)) {
  26005. newDate = selectableRange.value[0][0].year(value.year()).month(value.month()).date(value.date());
  26006. }
  26007. innerDate.value = newDate;
  26008. emit(newDate, showTime.value || keepOpen);
  26009. } else if (selectionMode.value === "week") {
  26010. emit(value.date);
  26011. } else if (selectionMode.value === "dates") {
  26012. emit(value, true);
  26013. }
  26014. };
  26015. const moveByMonth = (forward) => {
  26016. const action = forward ? "add" : "subtract";
  26017. innerDate.value = innerDate.value[action](1, "month");
  26018. handlePanelChange("month");
  26019. };
  26020. const moveByYear = (forward) => {
  26021. const currentDate = innerDate.value;
  26022. const action = forward ? "add" : "subtract";
  26023. innerDate.value = currentView.value === "year" ? currentDate[action](10, "year") : currentDate[action](1, "year");
  26024. handlePanelChange("year");
  26025. };
  26026. const currentView = ref("date");
  26027. const yearLabel = computed(() => {
  26028. const yearTranslation = t("el.datepicker.year");
  26029. if (currentView.value === "year") {
  26030. const startYear = Math.floor(year.value / 10) * 10;
  26031. if (yearTranslation) {
  26032. return `${startYear} ${yearTranslation} - ${startYear + 9} ${yearTranslation}`;
  26033. }
  26034. return `${startYear} - ${startYear + 9}`;
  26035. }
  26036. return `${year.value} ${yearTranslation}`;
  26037. });
  26038. const handleShortcutClick = (shortcut) => {
  26039. const shortcutValue = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
  26040. if (shortcutValue) {
  26041. isShortcut = true;
  26042. emit((0, import_dayjs11.default)(shortcutValue).locale(lang.value));
  26043. return;
  26044. }
  26045. if (shortcut.onClick) {
  26046. shortcut.onClick({
  26047. attrs,
  26048. slots,
  26049. emit: contextEmit
  26050. });
  26051. }
  26052. };
  26053. const selectionMode = computed(() => {
  26054. const { type: type4 } = props2;
  26055. if (["week", "month", "months", "year", "years", "dates"].includes(type4))
  26056. return type4;
  26057. return "date";
  26058. });
  26059. const isMultipleType = computed(() => {
  26060. return selectionMode.value === "dates" || selectionMode.value === "months" || selectionMode.value === "years";
  26061. });
  26062. const keyboardMode = computed(() => {
  26063. return selectionMode.value === "date" ? currentView.value : selectionMode.value;
  26064. });
  26065. const hasShortcuts = computed(() => !!shortcuts.length);
  26066. const handleMonthPick = async (month2, keepOpen) => {
  26067. if (selectionMode.value === "month") {
  26068. innerDate.value = getValidDateOfMonth(innerDate.value, innerDate.value.year(), month2, lang.value, disabledDate);
  26069. emit(innerDate.value, false);
  26070. } else if (selectionMode.value === "months") {
  26071. emit(month2, keepOpen != null ? keepOpen : true);
  26072. } else {
  26073. innerDate.value = getValidDateOfMonth(innerDate.value, innerDate.value.year(), month2, lang.value, disabledDate);
  26074. currentView.value = "date";
  26075. if (["month", "year", "date", "week"].includes(selectionMode.value)) {
  26076. emit(innerDate.value, true);
  26077. await nextTick();
  26078. handleFocusPicker();
  26079. }
  26080. }
  26081. handlePanelChange("month");
  26082. };
  26083. const handleYearPick = async (year2, keepOpen) => {
  26084. if (selectionMode.value === "year") {
  26085. const data = innerDate.value.startOf("year").year(year2);
  26086. innerDate.value = getValidDateOfYear(data, lang.value, disabledDate);
  26087. emit(innerDate.value, false);
  26088. } else if (selectionMode.value === "years") {
  26089. emit(year2, keepOpen != null ? keepOpen : true);
  26090. } else {
  26091. const data = innerDate.value.year(year2);
  26092. innerDate.value = getValidDateOfYear(data, lang.value, disabledDate);
  26093. currentView.value = "month";
  26094. if (["month", "year", "date", "week"].includes(selectionMode.value)) {
  26095. emit(innerDate.value, true);
  26096. await nextTick();
  26097. handleFocusPicker();
  26098. }
  26099. }
  26100. handlePanelChange("year");
  26101. };
  26102. const showPicker = async (view) => {
  26103. if (props2.disabled)
  26104. return;
  26105. currentView.value = view;
  26106. await nextTick();
  26107. handleFocusPicker();
  26108. };
  26109. const showTime = computed(() => props2.type === "datetime" || props2.type === "datetimerange");
  26110. const footerVisible = computed(() => {
  26111. const showDateFooter = showTime.value || selectionMode.value === "dates";
  26112. const showYearFooter = selectionMode.value === "years";
  26113. const showMonthFooter = selectionMode.value === "months";
  26114. const isDateView = currentView.value === "date";
  26115. const isYearView = currentView.value === "year";
  26116. const isMonthView = currentView.value === "month";
  26117. return showDateFooter && isDateView || showYearFooter && isYearView || showMonthFooter && isMonthView;
  26118. });
  26119. const footerFilled = computed(() => !isMultipleType.value && props2.showNow || props2.showConfirm);
  26120. const disabledConfirm = computed(() => {
  26121. if (!disabledDate)
  26122. return false;
  26123. if (!props2.parsedValue)
  26124. return true;
  26125. if (isArray(props2.parsedValue)) {
  26126. return disabledDate(props2.parsedValue[0].toDate());
  26127. }
  26128. return disabledDate(props2.parsedValue.toDate());
  26129. });
  26130. const onConfirm = () => {
  26131. if (isMultipleType.value) {
  26132. emit(props2.parsedValue);
  26133. } else {
  26134. let result2 = extractFirst(props2.parsedValue);
  26135. if (!result2) {
  26136. const defaultTimeD2 = (0, import_dayjs11.default)(defaultTime).locale(lang.value);
  26137. const defaultValueD = getDefaultValue2();
  26138. result2 = defaultTimeD2.year(defaultValueD.year()).month(defaultValueD.month()).date(defaultValueD.date());
  26139. }
  26140. innerDate.value = result2;
  26141. emit(result2);
  26142. }
  26143. };
  26144. const disabledNow = computed(() => {
  26145. if (!disabledDate)
  26146. return false;
  26147. return disabledDate((0, import_dayjs11.default)().locale(lang.value).toDate());
  26148. });
  26149. const changeToNow = () => {
  26150. const now2 = (0, import_dayjs11.default)().locale(lang.value);
  26151. const nowDate = now2.toDate();
  26152. isChangeToNow.value = true;
  26153. if ((!disabledDate || !disabledDate(nowDate)) && checkDateWithinRange(nowDate)) {
  26154. innerDate.value = (0, import_dayjs11.default)().locale(lang.value);
  26155. emit(innerDate.value);
  26156. }
  26157. };
  26158. const timeFormat = computed(() => {
  26159. return props2.timeFormat || extractTimeFormat(props2.format) || DEFAULT_FORMATS_TIME;
  26160. });
  26161. const dateFormat = computed(() => {
  26162. return props2.dateFormat || extractDateFormat(props2.format) || DEFAULT_FORMATS_DATE;
  26163. });
  26164. const visibleTime = computed(() => {
  26165. if (userInputTime.value)
  26166. return userInputTime.value;
  26167. if (!props2.parsedValue && !defaultValue.value)
  26168. return;
  26169. const dateValue = extractFirst(props2.parsedValue) || innerDate.value;
  26170. return dateValue.format(timeFormat.value);
  26171. });
  26172. const visibleDate = computed(() => {
  26173. if (userInputDate.value)
  26174. return userInputDate.value;
  26175. if (!props2.parsedValue && !defaultValue.value)
  26176. return;
  26177. const dateValue = extractFirst(props2.parsedValue) || innerDate.value;
  26178. return dateValue.format(dateFormat.value);
  26179. });
  26180. const timePickerVisible = ref(false);
  26181. const onTimePickerInputFocus = () => {
  26182. timePickerVisible.value = true;
  26183. };
  26184. const handleTimePickClose = () => {
  26185. timePickerVisible.value = false;
  26186. };
  26187. const getUnits = (date4) => {
  26188. return {
  26189. hour: date4.hour(),
  26190. minute: date4.minute(),
  26191. second: date4.second(),
  26192. year: date4.year(),
  26193. month: date4.month(),
  26194. date: date4.date()
  26195. };
  26196. };
  26197. const handleTimePick = (value, visible, first) => {
  26198. const { hour, minute, second } = getUnits(value);
  26199. const parsedDateValue = extractFirst(props2.parsedValue);
  26200. const newDate = parsedDateValue ? parsedDateValue.hour(hour).minute(minute).second(second) : value;
  26201. innerDate.value = newDate;
  26202. emit(innerDate.value, true);
  26203. if (!first) {
  26204. timePickerVisible.value = visible;
  26205. }
  26206. };
  26207. const handleVisibleTimeChange = (value) => {
  26208. const newDate = (0, import_dayjs11.default)(value, timeFormat.value).locale(lang.value);
  26209. if (newDate.isValid() && checkDateWithinRange(newDate)) {
  26210. const { year: year2, month: month2, date: date4 } = getUnits(innerDate.value);
  26211. innerDate.value = newDate.year(year2).month(month2).date(date4);
  26212. userInputTime.value = null;
  26213. timePickerVisible.value = false;
  26214. emit(innerDate.value, true);
  26215. }
  26216. };
  26217. const handleVisibleDateChange = (value) => {
  26218. const newDate = correctlyParseUserInput(value, dateFormat.value, lang.value, isDefaultFormat);
  26219. if (newDate.isValid()) {
  26220. if (disabledDate && disabledDate(newDate.toDate())) {
  26221. return;
  26222. }
  26223. const { hour, minute, second } = getUnits(innerDate.value);
  26224. innerDate.value = newDate.hour(hour).minute(minute).second(second);
  26225. userInputDate.value = null;
  26226. emit(innerDate.value, true);
  26227. }
  26228. };
  26229. const isValidValue3 = (date4) => {
  26230. return import_dayjs11.default.isDayjs(date4) && date4.isValid() && (disabledDate ? !disabledDate(date4.toDate()) : true);
  26231. };
  26232. const parseUserInput = (value) => {
  26233. return correctlyParseUserInput(value, props2.format, lang.value, isDefaultFormat);
  26234. };
  26235. const getDefaultValue2 = () => {
  26236. const parseDate2 = (0, import_dayjs11.default)(defaultValue.value).locale(lang.value);
  26237. if (!defaultValue.value) {
  26238. const defaultTimeDValue = defaultTimeD.value;
  26239. return (0, import_dayjs11.default)().hour(defaultTimeDValue.hour()).minute(defaultTimeDValue.minute()).second(defaultTimeDValue.second()).locale(lang.value);
  26240. }
  26241. return parseDate2;
  26242. };
  26243. const handleFocusPicker = () => {
  26244. var _a2;
  26245. if (["week", "month", "year", "date"].includes(selectionMode.value)) {
  26246. (_a2 = currentViewRef.value) == null ? void 0 : _a2.focus();
  26247. }
  26248. };
  26249. const _handleFocusPicker = () => {
  26250. handleFocusPicker();
  26251. if (selectionMode.value === "week") {
  26252. handleKeyControl(EVENT_CODE.down);
  26253. }
  26254. };
  26255. const handleKeydownTable = (event) => {
  26256. const code = getEventCode(event);
  26257. const validCode = [
  26258. EVENT_CODE.up,
  26259. EVENT_CODE.down,
  26260. EVENT_CODE.left,
  26261. EVENT_CODE.right,
  26262. EVENT_CODE.home,
  26263. EVENT_CODE.end,
  26264. EVENT_CODE.pageUp,
  26265. EVENT_CODE.pageDown
  26266. ];
  26267. if (validCode.includes(code)) {
  26268. handleKeyControl(code);
  26269. event.stopPropagation();
  26270. event.preventDefault();
  26271. }
  26272. if ([EVENT_CODE.enter, EVENT_CODE.space, EVENT_CODE.numpadEnter].includes(code) && userInputDate.value === null && userInputTime.value === null) {
  26273. event.preventDefault();
  26274. emit(innerDate.value, false);
  26275. }
  26276. };
  26277. const handleKeyControl = (code) => {
  26278. var _a2;
  26279. const { up, down, left, right, home, end, pageUp, pageDown } = EVENT_CODE;
  26280. const mapping = {
  26281. year: {
  26282. [up]: -4,
  26283. [down]: 4,
  26284. [left]: -1,
  26285. [right]: 1,
  26286. offset: (date4, step2) => date4.setFullYear(date4.getFullYear() + step2)
  26287. },
  26288. month: {
  26289. [up]: -4,
  26290. [down]: 4,
  26291. [left]: -1,
  26292. [right]: 1,
  26293. offset: (date4, step2) => date4.setMonth(date4.getMonth() + step2)
  26294. },
  26295. week: {
  26296. [up]: -1,
  26297. [down]: 1,
  26298. [left]: -1,
  26299. [right]: 1,
  26300. offset: (date4, step2) => date4.setDate(date4.getDate() + step2 * 7)
  26301. },
  26302. date: {
  26303. [up]: -7,
  26304. [down]: 7,
  26305. [left]: -1,
  26306. [right]: 1,
  26307. [home]: (date4) => -date4.getDay(),
  26308. [end]: (date4) => -date4.getDay() + 6,
  26309. [pageUp]: (date4) => -new Date(date4.getFullYear(), date4.getMonth(), 0).getDate(),
  26310. [pageDown]: (date4) => new Date(date4.getFullYear(), date4.getMonth() + 1, 0).getDate(),
  26311. offset: (date4, step2) => date4.setDate(date4.getDate() + step2)
  26312. }
  26313. };
  26314. const newDate = innerDate.value.toDate();
  26315. while (Math.abs(innerDate.value.diff(newDate, "year", true)) < 1) {
  26316. const map2 = mapping[keyboardMode.value];
  26317. if (!map2)
  26318. return;
  26319. map2.offset(newDate, isFunction(map2[code]) ? map2[code](newDate) : (_a2 = map2[code]) != null ? _a2 : 0);
  26320. if (disabledDate && disabledDate(newDate)) {
  26321. break;
  26322. }
  26323. const result2 = (0, import_dayjs11.default)(newDate).locale(lang.value);
  26324. innerDate.value = result2;
  26325. contextEmit("pick", result2, true);
  26326. break;
  26327. }
  26328. };
  26329. const handlePanelChange = (mode) => {
  26330. contextEmit("panel-change", innerDate.value.toDate(), mode, currentView.value);
  26331. };
  26332. watch(() => selectionMode.value, (val) => {
  26333. if (["month", "year"].includes(val)) {
  26334. currentView.value = val;
  26335. return;
  26336. } else if (val === "years") {
  26337. currentView.value = "year";
  26338. return;
  26339. } else if (val === "months") {
  26340. currentView.value = "month";
  26341. return;
  26342. }
  26343. currentView.value = "date";
  26344. }, { immediate: true });
  26345. watch(() => defaultValue.value, (val) => {
  26346. if (val) {
  26347. innerDate.value = getDefaultValue2();
  26348. }
  26349. }, { immediate: true });
  26350. watch(() => props2.parsedValue, (val) => {
  26351. if (val) {
  26352. if (isMultipleType.value)
  26353. return;
  26354. if (isArray(val))
  26355. return;
  26356. innerDate.value = val;
  26357. } else {
  26358. innerDate.value = getDefaultValue2();
  26359. }
  26360. }, { immediate: true });
  26361. contextEmit("set-picker-option", ["isValidValue", isValidValue3]);
  26362. contextEmit("set-picker-option", ["parseUserInput", parseUserInput]);
  26363. contextEmit("set-picker-option", ["handleFocusPicker", _handleFocusPicker]);
  26364. return (_ctx, _cache) => {
  26365. return openBlock(), createElementBlock("div", {
  26366. class: normalizeClass([
  26367. unref(ppNs).b(),
  26368. unref(dpNs).b(),
  26369. unref(ppNs).is("border", _ctx.border),
  26370. unref(ppNs).is("disabled", _ctx.disabled),
  26371. {
  26372. "has-sidebar": _ctx.$slots.sidebar || unref(hasShortcuts),
  26373. "has-time": unref(showTime)
  26374. }
  26375. ])
  26376. }, [
  26377. createBaseVNode("div", {
  26378. class: normalizeClass(unref(ppNs).e("body-wrapper"))
  26379. }, [
  26380. renderSlot(_ctx.$slots, "sidebar", {
  26381. class: normalizeClass(unref(ppNs).e("sidebar"))
  26382. }),
  26383. unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
  26384. key: 0,
  26385. class: normalizeClass(unref(ppNs).e("sidebar"))
  26386. }, [
  26387. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
  26388. return openBlock(), createElementBlock("button", {
  26389. key,
  26390. type: "button",
  26391. disabled: _ctx.disabled,
  26392. class: normalizeClass(unref(ppNs).e("shortcut")),
  26393. onClick: ($event) => handleShortcutClick(shortcut)
  26394. }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
  26395. }), 128))
  26396. ], 2)) : createCommentVNode("v-if", true),
  26397. createBaseVNode("div", {
  26398. class: normalizeClass(unref(ppNs).e("body"))
  26399. }, [
  26400. unref(showTime) ? (openBlock(), createElementBlock("div", {
  26401. key: 0,
  26402. class: normalizeClass(unref(dpNs).e("time-header"))
  26403. }, [
  26404. createBaseVNode("span", {
  26405. class: normalizeClass(unref(dpNs).e("editor-wrap"))
  26406. }, [
  26407. createVNode(unref(ElInput), {
  26408. placeholder: unref(t)("el.datepicker.selectDate"),
  26409. "model-value": unref(visibleDate),
  26410. size: "small",
  26411. "validate-event": false,
  26412. disabled: _ctx.disabled,
  26413. onInput: (val) => userInputDate.value = val,
  26414. onChange: handleVisibleDateChange
  26415. }, null, 8, ["placeholder", "model-value", "disabled", "onInput"])
  26416. ], 2),
  26417. withDirectives((openBlock(), createElementBlock("span", {
  26418. class: normalizeClass(unref(dpNs).e("editor-wrap"))
  26419. }, [
  26420. createVNode(unref(ElInput), {
  26421. placeholder: unref(t)("el.datepicker.selectTime"),
  26422. "model-value": unref(visibleTime),
  26423. size: "small",
  26424. "validate-event": false,
  26425. disabled: _ctx.disabled,
  26426. onFocus: onTimePickerInputFocus,
  26427. onInput: (val) => userInputTime.value = val,
  26428. onChange: handleVisibleTimeChange
  26429. }, null, 8, ["placeholder", "model-value", "disabled", "onInput"]),
  26430. createVNode(unref(TimePickPanel), {
  26431. visible: timePickerVisible.value,
  26432. format: unref(timeFormat),
  26433. "parsed-value": innerDate.value,
  26434. onPick: handleTimePick
  26435. }, null, 8, ["visible", "format", "parsed-value"])
  26436. ], 2)), [
  26437. [unref(ClickOutside), handleTimePickClose]
  26438. ])
  26439. ], 2)) : createCommentVNode("v-if", true),
  26440. withDirectives(createBaseVNode("div", {
  26441. class: normalizeClass([
  26442. unref(dpNs).e("header"),
  26443. (currentView.value === "year" || currentView.value === "month") && unref(dpNs).em("header", "bordered")
  26444. ])
  26445. }, [
  26446. createBaseVNode("span", {
  26447. class: normalizeClass(unref(dpNs).e("prev-btn"))
  26448. }, [
  26449. createBaseVNode("button", {
  26450. type: "button",
  26451. "aria-label": unref(t)(`el.datepicker.prevYear`),
  26452. class: normalizeClass(["d-arrow-left", unref(ppNs).e("icon-btn")]),
  26453. disabled: _ctx.disabled,
  26454. onClick: ($event) => moveByYear(false)
  26455. }, [
  26456. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  26457. createVNode(unref(ElIcon), null, {
  26458. default: withCtx(() => [
  26459. createVNode(unref(d_arrow_left_default))
  26460. ]),
  26461. _: 1
  26462. })
  26463. ])
  26464. ], 10, ["aria-label", "disabled", "onClick"]),
  26465. withDirectives(createBaseVNode("button", {
  26466. type: "button",
  26467. "aria-label": unref(t)(`el.datepicker.prevMonth`),
  26468. class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-left"]),
  26469. disabled: _ctx.disabled,
  26470. onClick: ($event) => moveByMonth(false)
  26471. }, [
  26472. renderSlot(_ctx.$slots, "prev-month", {}, () => [
  26473. createVNode(unref(ElIcon), null, {
  26474. default: withCtx(() => [
  26475. createVNode(unref(arrow_left_default))
  26476. ]),
  26477. _: 1
  26478. })
  26479. ])
  26480. ], 10, ["aria-label", "disabled", "onClick"]), [
  26481. [vShow, currentView.value === "date"]
  26482. ])
  26483. ], 2),
  26484. createBaseVNode("span", {
  26485. role: "button",
  26486. class: normalizeClass(unref(dpNs).e("header-label")),
  26487. "aria-live": "polite",
  26488. tabindex: "0",
  26489. onKeydown: withKeys(($event) => showPicker("year"), ["enter"]),
  26490. onClick: ($event) => showPicker("year")
  26491. }, toDisplayString(unref(yearLabel)), 43, ["onKeydown", "onClick"]),
  26492. withDirectives(createBaseVNode("span", {
  26493. role: "button",
  26494. "aria-live": "polite",
  26495. tabindex: "0",
  26496. class: normalizeClass([
  26497. unref(dpNs).e("header-label"),
  26498. { active: currentView.value === "month" }
  26499. ]),
  26500. onKeydown: withKeys(($event) => showPicker("month"), ["enter"]),
  26501. onClick: ($event) => showPicker("month")
  26502. }, toDisplayString(unref(t)(`el.datepicker.month${unref(month) + 1}`)), 43, ["onKeydown", "onClick"]), [
  26503. [vShow, currentView.value === "date"]
  26504. ]),
  26505. createBaseVNode("span", {
  26506. class: normalizeClass(unref(dpNs).e("next-btn"))
  26507. }, [
  26508. withDirectives(createBaseVNode("button", {
  26509. type: "button",
  26510. "aria-label": unref(t)(`el.datepicker.nextMonth`),
  26511. class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-right"]),
  26512. disabled: _ctx.disabled,
  26513. onClick: ($event) => moveByMonth(true)
  26514. }, [
  26515. renderSlot(_ctx.$slots, "next-month", {}, () => [
  26516. createVNode(unref(ElIcon), null, {
  26517. default: withCtx(() => [
  26518. createVNode(unref(arrow_right_default))
  26519. ]),
  26520. _: 1
  26521. })
  26522. ])
  26523. ], 10, ["aria-label", "disabled", "onClick"]), [
  26524. [vShow, currentView.value === "date"]
  26525. ]),
  26526. createBaseVNode("button", {
  26527. type: "button",
  26528. "aria-label": unref(t)(`el.datepicker.nextYear`),
  26529. class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
  26530. disabled: _ctx.disabled,
  26531. onClick: ($event) => moveByYear(true)
  26532. }, [
  26533. renderSlot(_ctx.$slots, "next-year", {}, () => [
  26534. createVNode(unref(ElIcon), null, {
  26535. default: withCtx(() => [
  26536. createVNode(unref(d_arrow_right_default))
  26537. ]),
  26538. _: 1
  26539. })
  26540. ])
  26541. ], 10, ["aria-label", "disabled", "onClick"])
  26542. ], 2)
  26543. ], 2), [
  26544. [vShow, currentView.value !== "time"]
  26545. ]),
  26546. createBaseVNode("div", {
  26547. class: normalizeClass(unref(ppNs).e("content")),
  26548. onKeydown: handleKeydownTable
  26549. }, [
  26550. currentView.value === "date" ? (openBlock(), createBlock(DateTable2, {
  26551. key: 0,
  26552. ref_key: "currentViewRef",
  26553. ref: currentViewRef,
  26554. "selection-mode": unref(selectionMode),
  26555. date: innerDate.value,
  26556. "parsed-value": _ctx.parsedValue,
  26557. "disabled-date": unref(disabledDate),
  26558. disabled: _ctx.disabled,
  26559. "cell-class-name": unref(cellClassName),
  26560. "show-week-number": _ctx.showWeekNumber,
  26561. onPick: handleDatePick
  26562. }, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "disabled", "cell-class-name", "show-week-number"])) : createCommentVNode("v-if", true),
  26563. currentView.value === "year" ? (openBlock(), createBlock(YearTable, {
  26564. key: 1,
  26565. ref_key: "currentViewRef",
  26566. ref: currentViewRef,
  26567. "selection-mode": unref(selectionMode),
  26568. date: innerDate.value,
  26569. "disabled-date": unref(disabledDate),
  26570. disabled: _ctx.disabled,
  26571. "parsed-value": _ctx.parsedValue,
  26572. "cell-class-name": unref(cellClassName),
  26573. onPick: handleYearPick
  26574. }, null, 8, ["selection-mode", "date", "disabled-date", "disabled", "parsed-value", "cell-class-name"])) : createCommentVNode("v-if", true),
  26575. currentView.value === "month" ? (openBlock(), createBlock(MonthTable, {
  26576. key: 2,
  26577. ref_key: "currentViewRef",
  26578. ref: currentViewRef,
  26579. "selection-mode": unref(selectionMode),
  26580. date: innerDate.value,
  26581. "parsed-value": _ctx.parsedValue,
  26582. "disabled-date": unref(disabledDate),
  26583. disabled: _ctx.disabled,
  26584. "cell-class-name": unref(cellClassName),
  26585. onPick: handleMonthPick
  26586. }, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "disabled", "cell-class-name"])) : createCommentVNode("v-if", true)
  26587. ], 34)
  26588. ], 2)
  26589. ], 2),
  26590. _ctx.showFooter && unref(footerVisible) && unref(footerFilled) ? (openBlock(), createElementBlock("div", {
  26591. key: 0,
  26592. class: normalizeClass(unref(ppNs).e("footer"))
  26593. }, [
  26594. withDirectives(createVNode(unref(ElButton), {
  26595. text: "",
  26596. size: "small",
  26597. class: normalizeClass(unref(ppNs).e("link-btn")),
  26598. disabled: unref(disabledNow),
  26599. onClick: changeToNow
  26600. }, {
  26601. default: withCtx(() => [
  26602. createTextVNode(toDisplayString(unref(t)("el.datepicker.now")), 1)
  26603. ]),
  26604. _: 1
  26605. }, 8, ["class", "disabled"]), [
  26606. [vShow, !unref(isMultipleType) && _ctx.showNow]
  26607. ]),
  26608. _ctx.showConfirm ? (openBlock(), createBlock(unref(ElButton), {
  26609. key: 0,
  26610. plain: "",
  26611. size: "small",
  26612. class: normalizeClass(unref(ppNs).e("link-btn")),
  26613. disabled: unref(disabledConfirm),
  26614. onClick: onConfirm
  26615. }, {
  26616. default: withCtx(() => [
  26617. createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")), 1)
  26618. ]),
  26619. _: 1
  26620. }, 8, ["class", "disabled"])) : createCommentVNode("v-if", true)
  26621. ], 2)) : createCommentVNode("v-if", true)
  26622. ], 2);
  26623. };
  26624. }
  26625. });
  26626. var DatePickPanel = _export_sfc(_sfc_main65, [["__file", "panel-date-pick.vue"]]);
  26627. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs
  26628. var import_dayjs14 = __toESM(require_dayjs_min(), 1);
  26629. // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-range.mjs
  26630. var panelDateRangeProps = buildProps({
  26631. ...panelSharedProps,
  26632. ...panelRangeSharedProps
  26633. });
  26634. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.mjs
  26635. var import_dayjs13 = __toESM(require_dayjs_min(), 1);
  26636. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-shortcut.mjs
  26637. var import_dayjs12 = __toESM(require_dayjs_min(), 1);
  26638. var useShortcut = (lang) => {
  26639. const { emit } = getCurrentInstance();
  26640. const attrs = useAttrs();
  26641. const slots = useSlots();
  26642. const handleShortcutClick = (shortcut) => {
  26643. const shortcutValues = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
  26644. if (shortcutValues) {
  26645. emit("pick", [
  26646. (0, import_dayjs12.default)(shortcutValues[0]).locale(lang.value),
  26647. (0, import_dayjs12.default)(shortcutValues[1]).locale(lang.value)
  26648. ]);
  26649. return;
  26650. }
  26651. if (shortcut.onClick) {
  26652. shortcut.onClick({
  26653. attrs,
  26654. slots,
  26655. emit
  26656. });
  26657. }
  26658. };
  26659. return handleShortcutClick;
  26660. };
  26661. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.mjs
  26662. var useRangePicker = (props2, {
  26663. defaultValue,
  26664. defaultTime,
  26665. leftDate,
  26666. rightDate,
  26667. step: step2,
  26668. unit: unit4,
  26669. sortDates
  26670. }) => {
  26671. const { emit } = getCurrentInstance();
  26672. const { pickerNs } = inject(ROOT_PICKER_INJECTION_KEY);
  26673. const drpNs = useNamespace("date-range-picker");
  26674. const { t, lang } = useLocale();
  26675. const handleShortcutClick = useShortcut(lang);
  26676. const minDate = ref();
  26677. const maxDate = ref();
  26678. const rangeState = ref({
  26679. endDate: null,
  26680. selecting: false
  26681. });
  26682. const handleChangeRange = (val) => {
  26683. rangeState.value = val;
  26684. };
  26685. const handleRangeConfirm = (visible = false) => {
  26686. const _minDate = unref(minDate);
  26687. const _maxDate = unref(maxDate);
  26688. if (isValidRange2([_minDate, _maxDate])) {
  26689. emit("pick", [_minDate, _maxDate], visible);
  26690. }
  26691. };
  26692. const onSelect = (selecting) => {
  26693. rangeState.value.selecting = selecting;
  26694. if (!selecting) {
  26695. rangeState.value.endDate = null;
  26696. }
  26697. };
  26698. const parseValue = (parsedValue) => {
  26699. if (isArray(parsedValue) && parsedValue.length === 2) {
  26700. const [start, end] = parsedValue;
  26701. minDate.value = start;
  26702. leftDate.value = start;
  26703. maxDate.value = end;
  26704. sortDates(unref(minDate), unref(maxDate));
  26705. } else {
  26706. restoreDefault();
  26707. }
  26708. };
  26709. const restoreDefault = () => {
  26710. let [start, end] = getDefaultValue(unref(defaultValue), {
  26711. lang: unref(lang),
  26712. step: step2,
  26713. unit: unit4,
  26714. unlinkPanels: props2.unlinkPanels
  26715. });
  26716. const getShift = (day) => {
  26717. return day.diff(day.startOf("d"), "ms");
  26718. };
  26719. const maybeTimes = unref(defaultTime);
  26720. if (maybeTimes) {
  26721. let leftShift = 0;
  26722. let rightShift = 0;
  26723. if (isArray(maybeTimes)) {
  26724. const [timeStart, timeEnd] = maybeTimes.map(import_dayjs13.default);
  26725. leftShift = getShift(timeStart);
  26726. rightShift = getShift(timeEnd);
  26727. } else {
  26728. const shift3 = getShift((0, import_dayjs13.default)(maybeTimes));
  26729. leftShift = shift3;
  26730. rightShift = shift3;
  26731. }
  26732. start = start.startOf("d").add(leftShift, "ms");
  26733. end = end.startOf("d").add(rightShift, "ms");
  26734. }
  26735. minDate.value = void 0;
  26736. maxDate.value = void 0;
  26737. leftDate.value = start;
  26738. rightDate.value = end;
  26739. };
  26740. watch(defaultValue, (val) => {
  26741. if (val) {
  26742. restoreDefault();
  26743. }
  26744. }, { immediate: true });
  26745. watch(() => props2.parsedValue, (parsedValue) => {
  26746. if (!(parsedValue == null ? void 0 : parsedValue.length) || !isEqual_default(parsedValue, [minDate.value, maxDate.value])) {
  26747. parseValue(parsedValue);
  26748. }
  26749. }, {
  26750. immediate: true
  26751. });
  26752. watch(() => props2.visible, () => {
  26753. if (props2.visible) {
  26754. parseValue(props2.parsedValue);
  26755. }
  26756. }, { immediate: true });
  26757. return {
  26758. minDate,
  26759. maxDate,
  26760. rangeState,
  26761. lang,
  26762. ppNs: pickerNs,
  26763. drpNs,
  26764. handleChangeRange,
  26765. handleRangeConfirm,
  26766. handleShortcutClick,
  26767. onSelect,
  26768. parseValue,
  26769. t
  26770. };
  26771. };
  26772. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-panel-date-range.mjs
  26773. var usePanelDateRange = (props2, emit, leftDate, rightDate) => {
  26774. const leftCurrentView = ref("date");
  26775. const leftCurrentViewRef = ref();
  26776. const rightCurrentView = ref("date");
  26777. const rightCurrentViewRef = ref();
  26778. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  26779. const { disabledDate } = pickerBase.props;
  26780. const { t, lang } = useLocale();
  26781. const leftYear = computed(() => {
  26782. return leftDate.value.year();
  26783. });
  26784. const leftMonth = computed(() => {
  26785. return leftDate.value.month();
  26786. });
  26787. const rightYear = computed(() => {
  26788. return rightDate.value.year();
  26789. });
  26790. const rightMonth = computed(() => {
  26791. return rightDate.value.month();
  26792. });
  26793. function computedYearLabel(currentView, yearValue) {
  26794. const yearTranslation = t("el.datepicker.year");
  26795. if (currentView.value === "year") {
  26796. const startYear = Math.floor(yearValue.value / 10) * 10;
  26797. return yearTranslation ? `${startYear} ${yearTranslation} - ${startYear + 9} ${yearTranslation}` : `${startYear} - ${startYear + 9}`;
  26798. }
  26799. return `${yearValue.value} ${yearTranslation}`;
  26800. }
  26801. function focusPicker(currentViewRef) {
  26802. currentViewRef == null ? void 0 : currentViewRef.focus();
  26803. }
  26804. async function showPicker(pickerType, view) {
  26805. if (props2.disabled)
  26806. return;
  26807. const currentView = pickerType === "left" ? leftCurrentView : rightCurrentView;
  26808. const currentViewRef = pickerType === "left" ? leftCurrentViewRef : rightCurrentViewRef;
  26809. currentView.value = view;
  26810. await nextTick();
  26811. focusPicker(currentViewRef.value);
  26812. }
  26813. async function handlePick(mode, pickerType, value) {
  26814. if (props2.disabled)
  26815. return;
  26816. const isLeftPicker = pickerType === "left";
  26817. const startDate = isLeftPicker ? leftDate : rightDate;
  26818. const endDate = isLeftPicker ? rightDate : leftDate;
  26819. const currentView = isLeftPicker ? leftCurrentView : rightCurrentView;
  26820. const currentViewRef = isLeftPicker ? leftCurrentViewRef : rightCurrentViewRef;
  26821. if (mode === "year") {
  26822. const data = startDate.value.year(value);
  26823. startDate.value = getValidDateOfYear(data, lang.value, disabledDate);
  26824. }
  26825. if (mode === "month") {
  26826. startDate.value = getValidDateOfMonth(startDate.value, startDate.value.year(), value, lang.value, disabledDate);
  26827. }
  26828. if (!props2.unlinkPanels) {
  26829. endDate.value = pickerType === "left" ? startDate.value.add(1, "month") : startDate.value.subtract(1, "month");
  26830. }
  26831. currentView.value = mode === "year" ? "month" : "date";
  26832. await nextTick();
  26833. focusPicker(currentViewRef.value);
  26834. handlePanelChange(mode);
  26835. }
  26836. function handlePanelChange(mode) {
  26837. emit("panel-change", [leftDate.value.toDate(), rightDate.value.toDate()], mode);
  26838. }
  26839. function adjustDateByView(currentView, date4, forward) {
  26840. const action = forward ? "add" : "subtract";
  26841. return currentView === "year" ? date4[action](10, "year") : date4[action](1, "year");
  26842. }
  26843. return {
  26844. leftCurrentView,
  26845. rightCurrentView,
  26846. leftCurrentViewRef,
  26847. rightCurrentViewRef,
  26848. leftYear,
  26849. rightYear,
  26850. leftMonth,
  26851. rightMonth,
  26852. leftYearLabel: computed(() => computedYearLabel(leftCurrentView, leftYear)),
  26853. rightYearLabel: computed(() => computedYearLabel(rightCurrentView, rightYear)),
  26854. showLeftPicker: (view) => showPicker("left", view),
  26855. showRightPicker: (view) => showPicker("right", view),
  26856. handleLeftYearPick: (year) => handlePick("year", "left", year),
  26857. handleRightYearPick: (year) => handlePick("year", "right", year),
  26858. handleLeftMonthPick: (month) => handlePick("month", "left", month),
  26859. handleRightMonthPick: (month) => handlePick("month", "right", month),
  26860. handlePanelChange,
  26861. adjustDateByView
  26862. };
  26863. };
  26864. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs
  26865. var unit = "month";
  26866. var _sfc_main66 = defineComponent({
  26867. __name: "panel-date-range",
  26868. props: panelDateRangeProps,
  26869. emits: [
  26870. "pick",
  26871. "set-picker-option",
  26872. "calendar-change",
  26873. "panel-change"
  26874. ],
  26875. setup(__props, { emit }) {
  26876. const props2 = __props;
  26877. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  26878. const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
  26879. const { disabledDate, cellClassName, defaultTime, clearable } = pickerBase.props;
  26880. const format2 = toRef(pickerBase.props, "format");
  26881. const shortcuts = toRef(pickerBase.props, "shortcuts");
  26882. const defaultValue = toRef(pickerBase.props, "defaultValue");
  26883. const { lang } = useLocale();
  26884. const leftDate = ref((0, import_dayjs14.default)().locale(lang.value));
  26885. const rightDate = ref((0, import_dayjs14.default)().locale(lang.value).add(1, unit));
  26886. const {
  26887. minDate,
  26888. maxDate,
  26889. rangeState,
  26890. ppNs,
  26891. drpNs,
  26892. handleChangeRange,
  26893. handleRangeConfirm,
  26894. handleShortcutClick,
  26895. onSelect,
  26896. parseValue,
  26897. t
  26898. } = useRangePicker(props2, {
  26899. defaultValue,
  26900. defaultTime,
  26901. leftDate,
  26902. rightDate,
  26903. unit,
  26904. sortDates
  26905. });
  26906. watch(() => props2.visible, (visible) => {
  26907. if (!visible && rangeState.value.selecting) {
  26908. parseValue(props2.parsedValue);
  26909. onSelect(false);
  26910. }
  26911. });
  26912. const dateUserInput = ref({
  26913. min: null,
  26914. max: null
  26915. });
  26916. const timeUserInput = ref({
  26917. min: null,
  26918. max: null
  26919. });
  26920. const {
  26921. leftCurrentView,
  26922. rightCurrentView,
  26923. leftCurrentViewRef,
  26924. rightCurrentViewRef,
  26925. leftYear,
  26926. rightYear,
  26927. leftMonth,
  26928. rightMonth,
  26929. leftYearLabel,
  26930. rightYearLabel,
  26931. showLeftPicker,
  26932. showRightPicker,
  26933. handleLeftYearPick,
  26934. handleRightYearPick,
  26935. handleLeftMonthPick,
  26936. handleRightMonthPick,
  26937. handlePanelChange,
  26938. adjustDateByView
  26939. } = usePanelDateRange(props2, emit, leftDate, rightDate);
  26940. const hasShortcuts = computed(() => !!shortcuts.value.length);
  26941. const minVisibleDate = computed(() => {
  26942. if (dateUserInput.value.min !== null)
  26943. return dateUserInput.value.min;
  26944. if (minDate.value)
  26945. return minDate.value.format(dateFormat.value);
  26946. return "";
  26947. });
  26948. const maxVisibleDate = computed(() => {
  26949. if (dateUserInput.value.max !== null)
  26950. return dateUserInput.value.max;
  26951. if (maxDate.value || minDate.value)
  26952. return (maxDate.value || minDate.value).format(dateFormat.value);
  26953. return "";
  26954. });
  26955. const minVisibleTime = computed(() => {
  26956. if (timeUserInput.value.min !== null)
  26957. return timeUserInput.value.min;
  26958. if (minDate.value)
  26959. return minDate.value.format(timeFormat.value);
  26960. return "";
  26961. });
  26962. const maxVisibleTime = computed(() => {
  26963. if (timeUserInput.value.max !== null)
  26964. return timeUserInput.value.max;
  26965. if (maxDate.value || minDate.value)
  26966. return (maxDate.value || minDate.value).format(timeFormat.value);
  26967. return "";
  26968. });
  26969. const timeFormat = computed(() => {
  26970. return props2.timeFormat || extractTimeFormat(format2.value || "") || DEFAULT_FORMATS_TIME;
  26971. });
  26972. const dateFormat = computed(() => {
  26973. return props2.dateFormat || extractDateFormat(format2.value || "") || DEFAULT_FORMATS_DATE;
  26974. });
  26975. const isValidValue3 = (date4) => {
  26976. return isValidRange2(date4) && (disabledDate ? !disabledDate(date4[0].toDate()) && !disabledDate(date4[1].toDate()) : true);
  26977. };
  26978. const leftPrevYear = () => {
  26979. leftDate.value = adjustDateByView(leftCurrentView.value, leftDate.value, false);
  26980. if (!props2.unlinkPanels) {
  26981. rightDate.value = leftDate.value.add(1, "month");
  26982. }
  26983. handlePanelChange("year");
  26984. };
  26985. const leftPrevMonth = () => {
  26986. leftDate.value = leftDate.value.subtract(1, "month");
  26987. if (!props2.unlinkPanels) {
  26988. rightDate.value = leftDate.value.add(1, "month");
  26989. }
  26990. handlePanelChange("month");
  26991. };
  26992. const rightNextYear = () => {
  26993. if (!props2.unlinkPanels) {
  26994. leftDate.value = adjustDateByView(rightCurrentView.value, leftDate.value, true);
  26995. rightDate.value = leftDate.value.add(1, "month");
  26996. } else {
  26997. rightDate.value = adjustDateByView(rightCurrentView.value, rightDate.value, true);
  26998. }
  26999. handlePanelChange("year");
  27000. };
  27001. const rightNextMonth = () => {
  27002. if (!props2.unlinkPanels) {
  27003. leftDate.value = leftDate.value.add(1, "month");
  27004. rightDate.value = leftDate.value.add(1, "month");
  27005. } else {
  27006. rightDate.value = rightDate.value.add(1, "month");
  27007. }
  27008. handlePanelChange("month");
  27009. };
  27010. const leftNextYear = () => {
  27011. leftDate.value = adjustDateByView(leftCurrentView.value, leftDate.value, true);
  27012. handlePanelChange("year");
  27013. };
  27014. const leftNextMonth = () => {
  27015. leftDate.value = leftDate.value.add(1, "month");
  27016. handlePanelChange("month");
  27017. };
  27018. const rightPrevYear = () => {
  27019. rightDate.value = adjustDateByView(rightCurrentView.value, rightDate.value, false);
  27020. handlePanelChange("year");
  27021. };
  27022. const rightPrevMonth = () => {
  27023. rightDate.value = rightDate.value.subtract(1, "month");
  27024. handlePanelChange("month");
  27025. };
  27026. const enableMonthArrow = computed(() => {
  27027. const nextMonth = (leftMonth.value + 1) % 12;
  27028. const yearOffset = leftMonth.value + 1 >= 12 ? 1 : 0;
  27029. return props2.unlinkPanels && new Date(leftYear.value + yearOffset, nextMonth) < new Date(rightYear.value, rightMonth.value);
  27030. });
  27031. const enableYearArrow = computed(() => {
  27032. return props2.unlinkPanels && rightYear.value * 12 + rightMonth.value - (leftYear.value * 12 + leftMonth.value + 1) >= 12;
  27033. });
  27034. const btnDisabled = computed(() => {
  27035. return !(minDate.value && maxDate.value && !rangeState.value.selecting && isValidRange2([minDate.value, maxDate.value]));
  27036. });
  27037. const showTime = computed(() => props2.type === "datetime" || props2.type === "datetimerange");
  27038. const formatEmit = (emitDayjs, index) => {
  27039. if (!emitDayjs)
  27040. return;
  27041. if (defaultTime) {
  27042. const defaultTimeD = (0, import_dayjs14.default)(defaultTime[index] || defaultTime).locale(lang.value);
  27043. return defaultTimeD.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());
  27044. }
  27045. return emitDayjs;
  27046. };
  27047. const handleRangePick = (val, close2 = true) => {
  27048. const min_ = val.minDate;
  27049. const max_ = val.maxDate;
  27050. const minDate_ = formatEmit(min_, 0);
  27051. const maxDate_ = formatEmit(max_, 1);
  27052. if (maxDate.value === maxDate_ && minDate.value === minDate_) {
  27053. return;
  27054. }
  27055. emit("calendar-change", [min_.toDate(), max_ && max_.toDate()]);
  27056. maxDate.value = maxDate_;
  27057. minDate.value = minDate_;
  27058. if (!showTime.value && close2) {
  27059. close2 = !minDate_ || !maxDate_;
  27060. }
  27061. handleRangeConfirm(close2);
  27062. };
  27063. const minTimePickerVisible = ref(false);
  27064. const maxTimePickerVisible = ref(false);
  27065. const handleMinTimeClose = () => {
  27066. minTimePickerVisible.value = false;
  27067. };
  27068. const handleMaxTimeClose = () => {
  27069. maxTimePickerVisible.value = false;
  27070. };
  27071. const handleDateInput = (value, type4) => {
  27072. dateUserInput.value[type4] = value;
  27073. const parsedValueD = (0, import_dayjs14.default)(value, dateFormat.value).locale(lang.value);
  27074. if (parsedValueD.isValid()) {
  27075. if (disabledDate && disabledDate(parsedValueD.toDate())) {
  27076. return;
  27077. }
  27078. if (type4 === "min") {
  27079. leftDate.value = parsedValueD;
  27080. minDate.value = (minDate.value || leftDate.value).year(parsedValueD.year()).month(parsedValueD.month()).date(parsedValueD.date());
  27081. if (!props2.unlinkPanels && (!maxDate.value || maxDate.value.isBefore(minDate.value))) {
  27082. rightDate.value = parsedValueD.add(1, "month");
  27083. maxDate.value = minDate.value.add(1, "month");
  27084. }
  27085. } else {
  27086. rightDate.value = parsedValueD;
  27087. maxDate.value = (maxDate.value || rightDate.value).year(parsedValueD.year()).month(parsedValueD.month()).date(parsedValueD.date());
  27088. if (!props2.unlinkPanels && (!minDate.value || minDate.value.isAfter(maxDate.value))) {
  27089. leftDate.value = parsedValueD.subtract(1, "month");
  27090. minDate.value = maxDate.value.subtract(1, "month");
  27091. }
  27092. }
  27093. sortDates(minDate.value, maxDate.value);
  27094. handleRangeConfirm(true);
  27095. }
  27096. };
  27097. const handleDateChange = (_2, type4) => {
  27098. dateUserInput.value[type4] = null;
  27099. };
  27100. const handleTimeInput = (value, type4) => {
  27101. timeUserInput.value[type4] = value;
  27102. const parsedValueD = (0, import_dayjs14.default)(value, timeFormat.value).locale(lang.value);
  27103. if (parsedValueD.isValid()) {
  27104. if (type4 === "min") {
  27105. minTimePickerVisible.value = true;
  27106. minDate.value = (minDate.value || leftDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());
  27107. leftDate.value = minDate.value;
  27108. } else {
  27109. maxTimePickerVisible.value = true;
  27110. maxDate.value = (maxDate.value || rightDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());
  27111. rightDate.value = maxDate.value;
  27112. }
  27113. }
  27114. };
  27115. const handleTimeChange = (_value, type4) => {
  27116. timeUserInput.value[type4] = null;
  27117. if (type4 === "min") {
  27118. leftDate.value = minDate.value;
  27119. minTimePickerVisible.value = false;
  27120. if (!maxDate.value || maxDate.value.isBefore(minDate.value)) {
  27121. maxDate.value = minDate.value;
  27122. }
  27123. } else {
  27124. rightDate.value = maxDate.value;
  27125. maxTimePickerVisible.value = false;
  27126. if (maxDate.value && maxDate.value.isBefore(minDate.value)) {
  27127. minDate.value = maxDate.value;
  27128. }
  27129. }
  27130. handleRangeConfirm(true);
  27131. };
  27132. const handleMinTimePick = (value, visible, first) => {
  27133. if (timeUserInput.value.min)
  27134. return;
  27135. if (value) {
  27136. leftDate.value = value;
  27137. minDate.value = (minDate.value || leftDate.value).hour(value.hour()).minute(value.minute()).second(value.second());
  27138. }
  27139. if (!first) {
  27140. minTimePickerVisible.value = visible;
  27141. }
  27142. if (!maxDate.value || maxDate.value.isBefore(minDate.value)) {
  27143. maxDate.value = minDate.value;
  27144. rightDate.value = value;
  27145. nextTick(() => {
  27146. parseValue(props2.parsedValue);
  27147. });
  27148. }
  27149. handleRangeConfirm(true);
  27150. };
  27151. const handleMaxTimePick = (value, visible, first) => {
  27152. if (timeUserInput.value.max)
  27153. return;
  27154. if (value) {
  27155. rightDate.value = value;
  27156. maxDate.value = (maxDate.value || rightDate.value).hour(value.hour()).minute(value.minute()).second(value.second());
  27157. }
  27158. if (!first) {
  27159. maxTimePickerVisible.value = visible;
  27160. }
  27161. if (maxDate.value && maxDate.value.isBefore(minDate.value)) {
  27162. minDate.value = maxDate.value;
  27163. }
  27164. handleRangeConfirm(true);
  27165. };
  27166. const handleClear = () => {
  27167. let valueOnClear = null;
  27168. if (pickerBase == null ? void 0 : pickerBase.emptyValues) {
  27169. valueOnClear = pickerBase.emptyValues.valueOnClear.value;
  27170. }
  27171. leftDate.value = getDefaultValue(unref(defaultValue), {
  27172. lang: unref(lang),
  27173. unit: "month",
  27174. unlinkPanels: props2.unlinkPanels
  27175. })[0];
  27176. rightDate.value = leftDate.value.add(1, "month");
  27177. maxDate.value = void 0;
  27178. minDate.value = void 0;
  27179. handleRangeConfirm(true);
  27180. emit("pick", valueOnClear);
  27181. };
  27182. const parseUserInput = (value) => {
  27183. return correctlyParseUserInput(value, format2.value || "", lang.value, isDefaultFormat);
  27184. };
  27185. function sortDates(minDate2, maxDate2) {
  27186. if (props2.unlinkPanels && maxDate2) {
  27187. const minDateYear = (minDate2 == null ? void 0 : minDate2.year()) || 0;
  27188. const minDateMonth = (minDate2 == null ? void 0 : minDate2.month()) || 0;
  27189. const maxDateYear = maxDate2.year();
  27190. const maxDateMonth = maxDate2.month();
  27191. rightDate.value = minDateYear === maxDateYear && minDateMonth === maxDateMonth ? maxDate2.add(1, unit) : maxDate2;
  27192. } else {
  27193. rightDate.value = leftDate.value.add(1, unit);
  27194. if (maxDate2) {
  27195. rightDate.value = rightDate.value.hour(maxDate2.hour()).minute(maxDate2.minute()).second(maxDate2.second());
  27196. }
  27197. }
  27198. }
  27199. emit("set-picker-option", ["isValidValue", isValidValue3]);
  27200. emit("set-picker-option", ["parseUserInput", parseUserInput]);
  27201. emit("set-picker-option", ["handleClear", handleClear]);
  27202. return (_ctx, _cache) => {
  27203. return openBlock(), createElementBlock("div", {
  27204. class: normalizeClass([
  27205. unref(ppNs).b(),
  27206. unref(drpNs).b(),
  27207. unref(ppNs).is("border", _ctx.border),
  27208. unref(ppNs).is("disabled", _ctx.disabled),
  27209. {
  27210. "has-sidebar": _ctx.$slots.sidebar || unref(hasShortcuts),
  27211. "has-time": unref(showTime)
  27212. }
  27213. ])
  27214. }, [
  27215. createBaseVNode("div", {
  27216. class: normalizeClass(unref(ppNs).e("body-wrapper"))
  27217. }, [
  27218. renderSlot(_ctx.$slots, "sidebar", {
  27219. class: normalizeClass(unref(ppNs).e("sidebar"))
  27220. }),
  27221. unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
  27222. key: 0,
  27223. class: normalizeClass(unref(ppNs).e("sidebar"))
  27224. }, [
  27225. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
  27226. return openBlock(), createElementBlock("button", {
  27227. key,
  27228. type: "button",
  27229. disabled: _ctx.disabled,
  27230. class: normalizeClass(unref(ppNs).e("shortcut")),
  27231. onClick: ($event) => unref(handleShortcutClick)(shortcut)
  27232. }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
  27233. }), 128))
  27234. ], 2)) : createCommentVNode("v-if", true),
  27235. createBaseVNode("div", {
  27236. class: normalizeClass(unref(ppNs).e("body"))
  27237. }, [
  27238. unref(showTime) ? (openBlock(), createElementBlock("div", {
  27239. key: 0,
  27240. class: normalizeClass(unref(drpNs).e("time-header"))
  27241. }, [
  27242. createBaseVNode("span", {
  27243. class: normalizeClass(unref(drpNs).e("editors-wrap"))
  27244. }, [
  27245. createBaseVNode("span", {
  27246. class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
  27247. }, [
  27248. createVNode(unref(ElInput), {
  27249. size: "small",
  27250. disabled: unref(rangeState).selecting || _ctx.disabled,
  27251. placeholder: unref(t)("el.datepicker.startDate"),
  27252. class: normalizeClass(unref(drpNs).e("editor")),
  27253. "model-value": unref(minVisibleDate),
  27254. "validate-event": false,
  27255. onInput: (val) => handleDateInput(val, "min"),
  27256. onChange: (val) => handleDateChange(val, "min")
  27257. }, null, 8, ["disabled", "placeholder", "class", "model-value", "onInput", "onChange"])
  27258. ], 2),
  27259. withDirectives((openBlock(), createElementBlock("span", {
  27260. class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
  27261. }, [
  27262. createVNode(unref(ElInput), {
  27263. size: "small",
  27264. class: normalizeClass(unref(drpNs).e("editor")),
  27265. disabled: unref(rangeState).selecting || _ctx.disabled,
  27266. placeholder: unref(t)("el.datepicker.startTime"),
  27267. "model-value": unref(minVisibleTime),
  27268. "validate-event": false,
  27269. onFocus: ($event) => minTimePickerVisible.value = true,
  27270. onInput: (val) => handleTimeInput(val, "min"),
  27271. onChange: (val) => handleTimeChange(val, "min")
  27272. }, null, 8, ["class", "disabled", "placeholder", "model-value", "onFocus", "onInput", "onChange"]),
  27273. createVNode(unref(TimePickPanel), {
  27274. visible: minTimePickerVisible.value,
  27275. format: unref(timeFormat),
  27276. "datetime-role": "start",
  27277. "parsed-value": leftDate.value,
  27278. onPick: handleMinTimePick
  27279. }, null, 8, ["visible", "format", "parsed-value"])
  27280. ], 2)), [
  27281. [unref(ClickOutside), handleMinTimeClose]
  27282. ])
  27283. ], 2),
  27284. createBaseVNode("span", null, [
  27285. createVNode(unref(ElIcon), null, {
  27286. default: withCtx(() => [
  27287. createVNode(unref(arrow_right_default))
  27288. ]),
  27289. _: 1
  27290. })
  27291. ]),
  27292. createBaseVNode("span", {
  27293. class: normalizeClass([unref(drpNs).e("editors-wrap"), "is-right"])
  27294. }, [
  27295. createBaseVNode("span", {
  27296. class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
  27297. }, [
  27298. createVNode(unref(ElInput), {
  27299. size: "small",
  27300. class: normalizeClass(unref(drpNs).e("editor")),
  27301. disabled: unref(rangeState).selecting || _ctx.disabled,
  27302. placeholder: unref(t)("el.datepicker.endDate"),
  27303. "model-value": unref(maxVisibleDate),
  27304. readonly: !unref(minDate),
  27305. "validate-event": false,
  27306. onInput: (val) => handleDateInput(val, "max"),
  27307. onChange: (val) => handleDateChange(val, "max")
  27308. }, null, 8, ["class", "disabled", "placeholder", "model-value", "readonly", "onInput", "onChange"])
  27309. ], 2),
  27310. withDirectives((openBlock(), createElementBlock("span", {
  27311. class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
  27312. }, [
  27313. createVNode(unref(ElInput), {
  27314. size: "small",
  27315. class: normalizeClass(unref(drpNs).e("editor")),
  27316. disabled: unref(rangeState).selecting || _ctx.disabled,
  27317. placeholder: unref(t)("el.datepicker.endTime"),
  27318. "model-value": unref(maxVisibleTime),
  27319. readonly: !unref(minDate),
  27320. "validate-event": false,
  27321. onFocus: ($event) => unref(minDate) && (maxTimePickerVisible.value = true),
  27322. onInput: (val) => handleTimeInput(val, "max"),
  27323. onChange: (val) => handleTimeChange(val, "max")
  27324. }, null, 8, ["class", "disabled", "placeholder", "model-value", "readonly", "onFocus", "onInput", "onChange"]),
  27325. createVNode(unref(TimePickPanel), {
  27326. "datetime-role": "end",
  27327. visible: maxTimePickerVisible.value,
  27328. format: unref(timeFormat),
  27329. "parsed-value": rightDate.value,
  27330. onPick: handleMaxTimePick
  27331. }, null, 8, ["visible", "format", "parsed-value"])
  27332. ], 2)), [
  27333. [unref(ClickOutside), handleMaxTimeClose]
  27334. ])
  27335. ], 2)
  27336. ], 2)) : createCommentVNode("v-if", true),
  27337. createBaseVNode("div", {
  27338. class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-left"])
  27339. }, [
  27340. createBaseVNode("div", {
  27341. class: normalizeClass(unref(drpNs).e("header"))
  27342. }, [
  27343. createBaseVNode("button", {
  27344. type: "button",
  27345. class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-left"]),
  27346. "aria-label": unref(t)(`el.datepicker.prevYear`),
  27347. disabled: _ctx.disabled,
  27348. onClick: leftPrevYear
  27349. }, [
  27350. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  27351. createVNode(unref(ElIcon), null, {
  27352. default: withCtx(() => [
  27353. createVNode(unref(d_arrow_left_default))
  27354. ]),
  27355. _: 1
  27356. })
  27357. ])
  27358. ], 10, ["aria-label", "disabled"]),
  27359. withDirectives(createBaseVNode("button", {
  27360. type: "button",
  27361. class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-left"]),
  27362. "aria-label": unref(t)(`el.datepicker.prevMonth`),
  27363. disabled: _ctx.disabled,
  27364. onClick: leftPrevMonth
  27365. }, [
  27366. renderSlot(_ctx.$slots, "prev-month", {}, () => [
  27367. createVNode(unref(ElIcon), null, {
  27368. default: withCtx(() => [
  27369. createVNode(unref(arrow_left_default))
  27370. ]),
  27371. _: 1
  27372. })
  27373. ])
  27374. ], 10, ["aria-label", "disabled"]), [
  27375. [vShow, unref(leftCurrentView) === "date"]
  27376. ]),
  27377. _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
  27378. key: 0,
  27379. type: "button",
  27380. disabled: !unref(enableYearArrow) || _ctx.disabled,
  27381. class: normalizeClass([[
  27382. unref(ppNs).e("icon-btn"),
  27383. unref(ppNs).is("disabled", !unref(enableYearArrow) || _ctx.disabled)
  27384. ], "d-arrow-right"]),
  27385. "aria-label": unref(t)(`el.datepicker.nextYear`),
  27386. onClick: leftNextYear
  27387. }, [
  27388. renderSlot(_ctx.$slots, "next-year", {}, () => [
  27389. createVNode(unref(ElIcon), null, {
  27390. default: withCtx(() => [
  27391. createVNode(unref(d_arrow_right_default))
  27392. ]),
  27393. _: 1
  27394. })
  27395. ])
  27396. ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
  27397. _ctx.unlinkPanels && unref(leftCurrentView) === "date" ? (openBlock(), createElementBlock("button", {
  27398. key: 1,
  27399. type: "button",
  27400. disabled: !unref(enableMonthArrow) || _ctx.disabled,
  27401. class: normalizeClass([[
  27402. unref(ppNs).e("icon-btn"),
  27403. unref(ppNs).is("disabled", !unref(enableMonthArrow) || _ctx.disabled)
  27404. ], "arrow-right"]),
  27405. "aria-label": unref(t)(`el.datepicker.nextMonth`),
  27406. onClick: leftNextMonth
  27407. }, [
  27408. renderSlot(_ctx.$slots, "next-month", {}, () => [
  27409. createVNode(unref(ElIcon), null, {
  27410. default: withCtx(() => [
  27411. createVNode(unref(arrow_right_default))
  27412. ]),
  27413. _: 1
  27414. })
  27415. ])
  27416. ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
  27417. createBaseVNode("div", null, [
  27418. createBaseVNode("span", {
  27419. role: "button",
  27420. class: normalizeClass(unref(drpNs).e("header-label")),
  27421. "aria-live": "polite",
  27422. tabindex: "0",
  27423. onKeydown: withKeys(($event) => unref(showLeftPicker)("year"), ["enter"]),
  27424. onClick: ($event) => unref(showLeftPicker)("year")
  27425. }, toDisplayString(unref(leftYearLabel)), 43, ["onKeydown", "onClick"]),
  27426. withDirectives(createBaseVNode("span", {
  27427. role: "button",
  27428. "aria-live": "polite",
  27429. tabindex: "0",
  27430. class: normalizeClass([
  27431. unref(drpNs).e("header-label"),
  27432. { active: unref(leftCurrentView) === "month" }
  27433. ]),
  27434. onKeydown: withKeys(($event) => unref(showLeftPicker)("month"), ["enter"]),
  27435. onClick: ($event) => unref(showLeftPicker)("month")
  27436. }, toDisplayString(unref(t)(`el.datepicker.month${leftDate.value.month() + 1}`)), 43, ["onKeydown", "onClick"]), [
  27437. [vShow, unref(leftCurrentView) === "date"]
  27438. ])
  27439. ])
  27440. ], 2),
  27441. unref(leftCurrentView) === "date" ? (openBlock(), createBlock(DateTable2, {
  27442. key: 0,
  27443. ref_key: "leftCurrentViewRef",
  27444. ref: leftCurrentViewRef,
  27445. "selection-mode": "range",
  27446. date: leftDate.value,
  27447. "min-date": unref(minDate),
  27448. "max-date": unref(maxDate),
  27449. "range-state": unref(rangeState),
  27450. "disabled-date": unref(disabledDate),
  27451. "cell-class-name": unref(cellClassName),
  27452. "show-week-number": _ctx.showWeekNumber,
  27453. disabled: _ctx.disabled,
  27454. onChangerange: unref(handleChangeRange),
  27455. onPick: handleRangePick,
  27456. onSelect: unref(onSelect)
  27457. }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "disabled", "onChangerange", "onSelect"])) : createCommentVNode("v-if", true),
  27458. unref(leftCurrentView) === "year" ? (openBlock(), createBlock(YearTable, {
  27459. key: 1,
  27460. ref_key: "leftCurrentViewRef",
  27461. ref: leftCurrentViewRef,
  27462. "selection-mode": "year",
  27463. date: leftDate.value,
  27464. "disabled-date": unref(disabledDate),
  27465. "parsed-value": _ctx.parsedValue,
  27466. disabled: _ctx.disabled,
  27467. onPick: unref(handleLeftYearPick)
  27468. }, null, 8, ["date", "disabled-date", "parsed-value", "disabled", "onPick"])) : createCommentVNode("v-if", true),
  27469. unref(leftCurrentView) === "month" ? (openBlock(), createBlock(MonthTable, {
  27470. key: 2,
  27471. ref_key: "leftCurrentViewRef",
  27472. ref: leftCurrentViewRef,
  27473. "selection-mode": "month",
  27474. date: leftDate.value,
  27475. "parsed-value": _ctx.parsedValue,
  27476. "disabled-date": unref(disabledDate),
  27477. disabled: _ctx.disabled,
  27478. onPick: unref(handleLeftMonthPick)
  27479. }, null, 8, ["date", "parsed-value", "disabled-date", "disabled", "onPick"])) : createCommentVNode("v-if", true)
  27480. ], 2),
  27481. createBaseVNode("div", {
  27482. class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-right"])
  27483. }, [
  27484. createBaseVNode("div", {
  27485. class: normalizeClass([
  27486. unref(drpNs).e("header"),
  27487. unref(ppNs).is("disabled", !unref(enableYearArrow) || _ctx.disabled)
  27488. ])
  27489. }, [
  27490. _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
  27491. key: 0,
  27492. type: "button",
  27493. disabled: !unref(enableYearArrow) || _ctx.disabled,
  27494. class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-left"]),
  27495. "aria-label": unref(t)(`el.datepicker.prevYear`),
  27496. onClick: rightPrevYear
  27497. }, [
  27498. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  27499. createVNode(unref(ElIcon), null, {
  27500. default: withCtx(() => [
  27501. createVNode(unref(d_arrow_left_default))
  27502. ]),
  27503. _: 1
  27504. })
  27505. ])
  27506. ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
  27507. _ctx.unlinkPanels && unref(rightCurrentView) === "date" ? (openBlock(), createElementBlock("button", {
  27508. key: 1,
  27509. type: "button",
  27510. disabled: !unref(enableMonthArrow) || _ctx.disabled,
  27511. class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-left"]),
  27512. "aria-label": unref(t)(`el.datepicker.prevMonth`),
  27513. onClick: rightPrevMonth
  27514. }, [
  27515. renderSlot(_ctx.$slots, "prev-month", {}, () => [
  27516. createVNode(unref(ElIcon), null, {
  27517. default: withCtx(() => [
  27518. createVNode(unref(arrow_left_default))
  27519. ]),
  27520. _: 1
  27521. })
  27522. ])
  27523. ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
  27524. createBaseVNode("button", {
  27525. type: "button",
  27526. "aria-label": unref(t)(`el.datepicker.nextYear`),
  27527. class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
  27528. disabled: _ctx.disabled,
  27529. onClick: rightNextYear
  27530. }, [
  27531. renderSlot(_ctx.$slots, "next-year", {}, () => [
  27532. createVNode(unref(ElIcon), null, {
  27533. default: withCtx(() => [
  27534. createVNode(unref(d_arrow_right_default))
  27535. ]),
  27536. _: 1
  27537. })
  27538. ])
  27539. ], 10, ["aria-label", "disabled"]),
  27540. withDirectives(createBaseVNode("button", {
  27541. type: "button",
  27542. class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-right"]),
  27543. disabled: _ctx.disabled,
  27544. "aria-label": unref(t)(`el.datepicker.nextMonth`),
  27545. onClick: rightNextMonth
  27546. }, [
  27547. renderSlot(_ctx.$slots, "next-month", {}, () => [
  27548. createVNode(unref(ElIcon), null, {
  27549. default: withCtx(() => [
  27550. createVNode(unref(arrow_right_default))
  27551. ]),
  27552. _: 1
  27553. })
  27554. ])
  27555. ], 10, ["disabled", "aria-label"]), [
  27556. [vShow, unref(rightCurrentView) === "date"]
  27557. ]),
  27558. createBaseVNode("div", null, [
  27559. createBaseVNode("span", {
  27560. role: "button",
  27561. class: normalizeClass(unref(drpNs).e("header-label")),
  27562. "aria-live": "polite",
  27563. tabindex: "0",
  27564. onKeydown: withKeys(($event) => unref(showRightPicker)("year"), ["enter"]),
  27565. onClick: ($event) => unref(showRightPicker)("year")
  27566. }, toDisplayString(unref(rightYearLabel)), 43, ["onKeydown", "onClick"]),
  27567. withDirectives(createBaseVNode("span", {
  27568. role: "button",
  27569. "aria-live": "polite",
  27570. tabindex: "0",
  27571. class: normalizeClass([
  27572. unref(drpNs).e("header-label"),
  27573. { active: unref(rightCurrentView) === "month" }
  27574. ]),
  27575. onKeydown: withKeys(($event) => unref(showRightPicker)("month"), ["enter"]),
  27576. onClick: ($event) => unref(showRightPicker)("month")
  27577. }, toDisplayString(unref(t)(`el.datepicker.month${rightDate.value.month() + 1}`)), 43, ["onKeydown", "onClick"]), [
  27578. [vShow, unref(rightCurrentView) === "date"]
  27579. ])
  27580. ])
  27581. ], 2),
  27582. unref(rightCurrentView) === "date" ? (openBlock(), createBlock(DateTable2, {
  27583. key: 0,
  27584. ref_key: "rightCurrentViewRef",
  27585. ref: rightCurrentViewRef,
  27586. "selection-mode": "range",
  27587. date: rightDate.value,
  27588. "min-date": unref(minDate),
  27589. "max-date": unref(maxDate),
  27590. "range-state": unref(rangeState),
  27591. "disabled-date": unref(disabledDate),
  27592. "cell-class-name": unref(cellClassName),
  27593. "show-week-number": _ctx.showWeekNumber,
  27594. disabled: _ctx.disabled,
  27595. onChangerange: unref(handleChangeRange),
  27596. onPick: handleRangePick,
  27597. onSelect: unref(onSelect)
  27598. }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "disabled", "onChangerange", "onSelect"])) : createCommentVNode("v-if", true),
  27599. unref(rightCurrentView) === "year" ? (openBlock(), createBlock(YearTable, {
  27600. key: 1,
  27601. ref_key: "rightCurrentViewRef",
  27602. ref: rightCurrentViewRef,
  27603. "selection-mode": "year",
  27604. date: rightDate.value,
  27605. "disabled-date": unref(disabledDate),
  27606. "parsed-value": _ctx.parsedValue,
  27607. disabled: _ctx.disabled,
  27608. onPick: unref(handleRightYearPick)
  27609. }, null, 8, ["date", "disabled-date", "parsed-value", "disabled", "onPick"])) : createCommentVNode("v-if", true),
  27610. unref(rightCurrentView) === "month" ? (openBlock(), createBlock(MonthTable, {
  27611. key: 2,
  27612. ref_key: "rightCurrentViewRef",
  27613. ref: rightCurrentViewRef,
  27614. "selection-mode": "month",
  27615. date: rightDate.value,
  27616. "parsed-value": _ctx.parsedValue,
  27617. "disabled-date": unref(disabledDate),
  27618. disabled: _ctx.disabled,
  27619. onPick: unref(handleRightMonthPick)
  27620. }, null, 8, ["date", "parsed-value", "disabled-date", "disabled", "onPick"])) : createCommentVNode("v-if", true)
  27621. ], 2)
  27622. ], 2)
  27623. ], 2),
  27624. _ctx.showFooter && unref(showTime) && (_ctx.showConfirm || unref(clearable)) ? (openBlock(), createElementBlock("div", {
  27625. key: 0,
  27626. class: normalizeClass(unref(ppNs).e("footer"))
  27627. }, [
  27628. unref(clearable) ? (openBlock(), createBlock(unref(ElButton), {
  27629. key: 0,
  27630. text: "",
  27631. size: "small",
  27632. class: normalizeClass(unref(ppNs).e("link-btn")),
  27633. onClick: handleClear
  27634. }, {
  27635. default: withCtx(() => [
  27636. createTextVNode(toDisplayString(unref(t)("el.datepicker.clear")), 1)
  27637. ]),
  27638. _: 1
  27639. }, 8, ["class"])) : createCommentVNode("v-if", true),
  27640. _ctx.showConfirm ? (openBlock(), createBlock(unref(ElButton), {
  27641. key: 1,
  27642. plain: "",
  27643. size: "small",
  27644. class: normalizeClass(unref(ppNs).e("link-btn")),
  27645. disabled: unref(btnDisabled),
  27646. onClick: ($event) => unref(handleRangeConfirm)(false)
  27647. }, {
  27648. default: withCtx(() => [
  27649. createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")), 1)
  27650. ]),
  27651. _: 1
  27652. }, 8, ["class", "disabled", "onClick"])) : createCommentVNode("v-if", true)
  27653. ], 2)) : createCommentVNode("v-if", true)
  27654. ], 2);
  27655. };
  27656. }
  27657. });
  27658. var DateRangePickPanel = _export_sfc(_sfc_main66, [["__file", "panel-date-range.vue"]]);
  27659. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.mjs
  27660. var import_dayjs15 = __toESM(require_dayjs_min(), 1);
  27661. // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-month-range.mjs
  27662. var panelMonthRangeProps = buildProps({
  27663. ...panelRangeSharedProps
  27664. });
  27665. var panelMonthRangeEmits = [
  27666. "pick",
  27667. "set-picker-option",
  27668. "calendar-change"
  27669. ];
  27670. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-month-range-header.mjs
  27671. var useMonthRangeHeader = ({
  27672. unlinkPanels,
  27673. leftDate,
  27674. rightDate
  27675. }) => {
  27676. const { t } = useLocale();
  27677. const leftPrevYear = () => {
  27678. leftDate.value = leftDate.value.subtract(1, "year");
  27679. if (!unlinkPanels.value) {
  27680. rightDate.value = rightDate.value.subtract(1, "year");
  27681. }
  27682. };
  27683. const rightNextYear = () => {
  27684. if (!unlinkPanels.value) {
  27685. leftDate.value = leftDate.value.add(1, "year");
  27686. }
  27687. rightDate.value = rightDate.value.add(1, "year");
  27688. };
  27689. const leftNextYear = () => {
  27690. leftDate.value = leftDate.value.add(1, "year");
  27691. };
  27692. const rightPrevYear = () => {
  27693. rightDate.value = rightDate.value.subtract(1, "year");
  27694. };
  27695. const leftLabel = computed(() => {
  27696. return `${leftDate.value.year()} ${t("el.datepicker.year")}`;
  27697. });
  27698. const rightLabel = computed(() => {
  27699. return `${rightDate.value.year()} ${t("el.datepicker.year")}`;
  27700. });
  27701. const leftYear = computed(() => {
  27702. return leftDate.value.year();
  27703. });
  27704. const rightYear = computed(() => {
  27705. return rightDate.value.year() === leftDate.value.year() ? leftDate.value.year() + 1 : rightDate.value.year();
  27706. });
  27707. return {
  27708. leftPrevYear,
  27709. rightNextYear,
  27710. leftNextYear,
  27711. rightPrevYear,
  27712. leftLabel,
  27713. rightLabel,
  27714. leftYear,
  27715. rightYear
  27716. };
  27717. };
  27718. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.mjs
  27719. var unit2 = "year";
  27720. var __default__55 = defineComponent({
  27721. name: "DatePickerMonthRange"
  27722. });
  27723. var _sfc_main67 = defineComponent({
  27724. ...__default__55,
  27725. props: panelMonthRangeProps,
  27726. emits: panelMonthRangeEmits,
  27727. setup(__props, { emit }) {
  27728. const props2 = __props;
  27729. const { lang } = useLocale();
  27730. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  27731. const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
  27732. const { shortcuts, disabledDate, cellClassName } = pickerBase.props;
  27733. const format2 = toRef(pickerBase.props, "format");
  27734. const defaultValue = toRef(pickerBase.props, "defaultValue");
  27735. const leftDate = ref((0, import_dayjs15.default)().locale(lang.value));
  27736. const rightDate = ref((0, import_dayjs15.default)().locale(lang.value).add(1, unit2));
  27737. const {
  27738. minDate,
  27739. maxDate,
  27740. rangeState,
  27741. ppNs,
  27742. drpNs,
  27743. handleChangeRange,
  27744. handleRangeConfirm,
  27745. handleShortcutClick,
  27746. onSelect,
  27747. parseValue
  27748. } = useRangePicker(props2, {
  27749. defaultValue,
  27750. leftDate,
  27751. rightDate,
  27752. unit: unit2,
  27753. sortDates
  27754. });
  27755. const hasShortcuts = computed(() => !!shortcuts.length);
  27756. const {
  27757. leftPrevYear,
  27758. rightNextYear,
  27759. leftNextYear,
  27760. rightPrevYear,
  27761. leftLabel,
  27762. rightLabel,
  27763. leftYear,
  27764. rightYear
  27765. } = useMonthRangeHeader({
  27766. unlinkPanels: toRef(props2, "unlinkPanels"),
  27767. leftDate,
  27768. rightDate
  27769. });
  27770. const enableYearArrow = computed(() => {
  27771. return props2.unlinkPanels && rightYear.value > leftYear.value + 1;
  27772. });
  27773. const handleRangePick = (val, close2 = true) => {
  27774. const minDate_ = val.minDate;
  27775. const maxDate_ = val.maxDate;
  27776. if (maxDate.value === maxDate_ && minDate.value === minDate_) {
  27777. return;
  27778. }
  27779. emit("calendar-change", [minDate_.toDate(), maxDate_ && maxDate_.toDate()]);
  27780. maxDate.value = maxDate_;
  27781. minDate.value = minDate_;
  27782. if (!close2)
  27783. return;
  27784. handleRangeConfirm();
  27785. };
  27786. const handleClear = () => {
  27787. let valueOnClear = null;
  27788. if (pickerBase == null ? void 0 : pickerBase.emptyValues) {
  27789. valueOnClear = pickerBase.emptyValues.valueOnClear.value;
  27790. }
  27791. leftDate.value = getDefaultValue(unref(defaultValue), {
  27792. lang: unref(lang),
  27793. unit: "year",
  27794. unlinkPanels: props2.unlinkPanels
  27795. })[0];
  27796. rightDate.value = leftDate.value.add(1, "year");
  27797. emit("pick", valueOnClear);
  27798. };
  27799. const parseUserInput = (value) => {
  27800. return correctlyParseUserInput(value, format2.value, lang.value, isDefaultFormat);
  27801. };
  27802. function sortDates(minDate2, maxDate2) {
  27803. if (props2.unlinkPanels && maxDate2) {
  27804. const minDateYear = (minDate2 == null ? void 0 : minDate2.year()) || 0;
  27805. const maxDateYear = maxDate2.year();
  27806. rightDate.value = minDateYear === maxDateYear ? maxDate2.add(1, unit2) : maxDate2;
  27807. } else {
  27808. rightDate.value = leftDate.value.add(1, unit2);
  27809. }
  27810. }
  27811. watch(() => props2.visible, (visible) => {
  27812. if (!visible && rangeState.value.selecting) {
  27813. parseValue(props2.parsedValue);
  27814. onSelect(false);
  27815. }
  27816. });
  27817. emit("set-picker-option", ["isValidValue", isValidRange2]);
  27818. emit("set-picker-option", ["parseUserInput", parseUserInput]);
  27819. emit("set-picker-option", ["handleClear", handleClear]);
  27820. return (_ctx, _cache) => {
  27821. return openBlock(), createElementBlock("div", {
  27822. class: normalizeClass([
  27823. unref(ppNs).b(),
  27824. unref(drpNs).b(),
  27825. unref(ppNs).is("border", _ctx.border),
  27826. unref(ppNs).is("disabled", _ctx.disabled),
  27827. {
  27828. "has-sidebar": Boolean(_ctx.$slots.sidebar) || unref(hasShortcuts)
  27829. }
  27830. ])
  27831. }, [
  27832. createBaseVNode("div", {
  27833. class: normalizeClass(unref(ppNs).e("body-wrapper"))
  27834. }, [
  27835. renderSlot(_ctx.$slots, "sidebar", {
  27836. class: normalizeClass(unref(ppNs).e("sidebar"))
  27837. }),
  27838. unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
  27839. key: 0,
  27840. class: normalizeClass(unref(ppNs).e("sidebar"))
  27841. }, [
  27842. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
  27843. return openBlock(), createElementBlock("button", {
  27844. key,
  27845. type: "button",
  27846. class: normalizeClass(unref(ppNs).e("shortcut")),
  27847. disabled: _ctx.disabled,
  27848. onClick: ($event) => unref(handleShortcutClick)(shortcut)
  27849. }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
  27850. }), 128))
  27851. ], 2)) : createCommentVNode("v-if", true),
  27852. createBaseVNode("div", {
  27853. class: normalizeClass(unref(ppNs).e("body"))
  27854. }, [
  27855. createBaseVNode("div", {
  27856. class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-left"])
  27857. }, [
  27858. createBaseVNode("div", {
  27859. class: normalizeClass(unref(drpNs).e("header"))
  27860. }, [
  27861. createBaseVNode("button", {
  27862. type: "button",
  27863. class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-left"]),
  27864. disabled: _ctx.disabled,
  27865. onClick: unref(leftPrevYear)
  27866. }, [
  27867. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  27868. createVNode(unref(ElIcon), null, {
  27869. default: withCtx(() => [
  27870. createVNode(unref(d_arrow_left_default))
  27871. ]),
  27872. _: 1
  27873. })
  27874. ])
  27875. ], 10, ["disabled", "onClick"]),
  27876. _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
  27877. key: 0,
  27878. type: "button",
  27879. disabled: !unref(enableYearArrow) || _ctx.disabled,
  27880. class: normalizeClass([[
  27881. unref(ppNs).e("icon-btn"),
  27882. unref(ppNs).is("disabled", !unref(enableYearArrow))
  27883. ], "d-arrow-right"]),
  27884. onClick: unref(leftNextYear)
  27885. }, [
  27886. renderSlot(_ctx.$slots, "next-year", {}, () => [
  27887. createVNode(unref(ElIcon), null, {
  27888. default: withCtx(() => [
  27889. createVNode(unref(d_arrow_right_default))
  27890. ]),
  27891. _: 1
  27892. })
  27893. ])
  27894. ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
  27895. createBaseVNode("div", null, toDisplayString(unref(leftLabel)), 1)
  27896. ], 2),
  27897. createVNode(MonthTable, {
  27898. "selection-mode": "range",
  27899. date: leftDate.value,
  27900. "min-date": unref(minDate),
  27901. "max-date": unref(maxDate),
  27902. "range-state": unref(rangeState),
  27903. "disabled-date": unref(disabledDate),
  27904. disabled: _ctx.disabled,
  27905. "cell-class-name": unref(cellClassName),
  27906. onChangerange: unref(handleChangeRange),
  27907. onPick: handleRangePick,
  27908. onSelect: unref(onSelect)
  27909. }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
  27910. ], 2),
  27911. createBaseVNode("div", {
  27912. class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-right"])
  27913. }, [
  27914. createBaseVNode("div", {
  27915. class: normalizeClass(unref(drpNs).e("header"))
  27916. }, [
  27917. _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
  27918. key: 0,
  27919. type: "button",
  27920. disabled: !unref(enableYearArrow) || _ctx.disabled,
  27921. class: normalizeClass([[
  27922. unref(ppNs).e("icon-btn"),
  27923. unref(ppNs).is("disabled", !unref(enableYearArrow))
  27924. ], "d-arrow-left"]),
  27925. onClick: unref(rightPrevYear)
  27926. }, [
  27927. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  27928. createVNode(unref(ElIcon), null, {
  27929. default: withCtx(() => [
  27930. createVNode(unref(d_arrow_left_default))
  27931. ]),
  27932. _: 1
  27933. })
  27934. ])
  27935. ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
  27936. createBaseVNode("button", {
  27937. type: "button",
  27938. class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
  27939. disabled: _ctx.disabled,
  27940. onClick: unref(rightNextYear)
  27941. }, [
  27942. renderSlot(_ctx.$slots, "next-year", {}, () => [
  27943. createVNode(unref(ElIcon), null, {
  27944. default: withCtx(() => [
  27945. createVNode(unref(d_arrow_right_default))
  27946. ]),
  27947. _: 1
  27948. })
  27949. ])
  27950. ], 10, ["disabled", "onClick"]),
  27951. createBaseVNode("div", null, toDisplayString(unref(rightLabel)), 1)
  27952. ], 2),
  27953. createVNode(MonthTable, {
  27954. "selection-mode": "range",
  27955. date: rightDate.value,
  27956. "min-date": unref(minDate),
  27957. "max-date": unref(maxDate),
  27958. "range-state": unref(rangeState),
  27959. "disabled-date": unref(disabledDate),
  27960. disabled: _ctx.disabled,
  27961. "cell-class-name": unref(cellClassName),
  27962. onChangerange: unref(handleChangeRange),
  27963. onPick: handleRangePick,
  27964. onSelect: unref(onSelect)
  27965. }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
  27966. ], 2)
  27967. ], 2)
  27968. ], 2)
  27969. ], 2);
  27970. };
  27971. }
  27972. });
  27973. var MonthRangePickPanel = _export_sfc(_sfc_main67, [["__file", "panel-month-range.vue"]]);
  27974. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.mjs
  27975. var import_dayjs16 = __toESM(require_dayjs_min(), 1);
  27976. // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-year-range.mjs
  27977. var panelYearRangeProps = buildProps({
  27978. ...panelRangeSharedProps
  27979. });
  27980. var panelYearRangeEmits = [
  27981. "pick",
  27982. "set-picker-option",
  27983. "calendar-change"
  27984. ];
  27985. // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-year-range-header.mjs
  27986. var useYearRangeHeader = ({
  27987. unlinkPanels,
  27988. leftDate,
  27989. rightDate
  27990. }) => {
  27991. const leftPrevYear = () => {
  27992. leftDate.value = leftDate.value.subtract(10, "year");
  27993. if (!unlinkPanels.value) {
  27994. rightDate.value = rightDate.value.subtract(10, "year");
  27995. }
  27996. };
  27997. const rightNextYear = () => {
  27998. if (!unlinkPanels.value) {
  27999. leftDate.value = leftDate.value.add(10, "year");
  28000. }
  28001. rightDate.value = rightDate.value.add(10, "year");
  28002. };
  28003. const leftNextYear = () => {
  28004. leftDate.value = leftDate.value.add(10, "year");
  28005. };
  28006. const rightPrevYear = () => {
  28007. rightDate.value = rightDate.value.subtract(10, "year");
  28008. };
  28009. const leftLabel = computed(() => {
  28010. const leftStartDate = Math.floor(leftDate.value.year() / 10) * 10;
  28011. return `${leftStartDate}-${leftStartDate + 9}`;
  28012. });
  28013. const rightLabel = computed(() => {
  28014. const rightStartDate = Math.floor(rightDate.value.year() / 10) * 10;
  28015. return `${rightStartDate}-${rightStartDate + 9}`;
  28016. });
  28017. const leftYear = computed(() => {
  28018. const leftEndDate = Math.floor(leftDate.value.year() / 10) * 10 + 9;
  28019. return leftEndDate;
  28020. });
  28021. const rightYear = computed(() => {
  28022. const rightStartDate = Math.floor(rightDate.value.year() / 10) * 10;
  28023. return rightStartDate;
  28024. });
  28025. return {
  28026. leftPrevYear,
  28027. rightNextYear,
  28028. leftNextYear,
  28029. rightPrevYear,
  28030. leftLabel,
  28031. rightLabel,
  28032. leftYear,
  28033. rightYear
  28034. };
  28035. };
  28036. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.mjs
  28037. var step = 10;
  28038. var unit3 = "year";
  28039. var __default__56 = defineComponent({
  28040. name: "DatePickerYearRange"
  28041. });
  28042. var _sfc_main68 = defineComponent({
  28043. ...__default__56,
  28044. props: panelYearRangeProps,
  28045. emits: panelYearRangeEmits,
  28046. setup(__props, { emit }) {
  28047. const props2 = __props;
  28048. const { lang } = useLocale();
  28049. const leftDate = ref((0, import_dayjs16.default)().locale(lang.value));
  28050. const rightDate = ref((0, import_dayjs16.default)().locale(lang.value).add(step, unit3));
  28051. const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
  28052. const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
  28053. const { shortcuts, disabledDate, cellClassName } = pickerBase.props;
  28054. const format2 = toRef(pickerBase.props, "format");
  28055. const defaultValue = toRef(pickerBase.props, "defaultValue");
  28056. const {
  28057. minDate,
  28058. maxDate,
  28059. rangeState,
  28060. ppNs,
  28061. drpNs,
  28062. handleChangeRange,
  28063. handleRangeConfirm,
  28064. handleShortcutClick,
  28065. onSelect,
  28066. parseValue
  28067. } = useRangePicker(props2, {
  28068. defaultValue,
  28069. leftDate,
  28070. rightDate,
  28071. step,
  28072. unit: unit3,
  28073. sortDates
  28074. });
  28075. const {
  28076. leftPrevYear,
  28077. rightNextYear,
  28078. leftNextYear,
  28079. rightPrevYear,
  28080. leftLabel,
  28081. rightLabel,
  28082. leftYear,
  28083. rightYear
  28084. } = useYearRangeHeader({
  28085. unlinkPanels: toRef(props2, "unlinkPanels"),
  28086. leftDate,
  28087. rightDate
  28088. });
  28089. const hasShortcuts = computed(() => !!shortcuts.length);
  28090. const panelKls = computed(() => [
  28091. ppNs.b(),
  28092. drpNs.b(),
  28093. ppNs.is("border", props2.border),
  28094. ppNs.is("disabled", props2.disabled),
  28095. {
  28096. "has-sidebar": Boolean(useSlots().sidebar) || hasShortcuts.value
  28097. }
  28098. ]);
  28099. const leftPanelKls = computed(() => {
  28100. return {
  28101. content: [ppNs.e("content"), drpNs.e("content"), "is-left"],
  28102. arrowLeftBtn: [ppNs.e("icon-btn"), "d-arrow-left"],
  28103. arrowRightBtn: [
  28104. ppNs.e("icon-btn"),
  28105. ppNs.is("disabled", !enableYearArrow.value),
  28106. "d-arrow-right"
  28107. ]
  28108. };
  28109. });
  28110. const rightPanelKls = computed(() => {
  28111. return {
  28112. content: [ppNs.e("content"), drpNs.e("content"), "is-right"],
  28113. arrowLeftBtn: [
  28114. ppNs.e("icon-btn"),
  28115. ppNs.is("disabled", !enableYearArrow.value),
  28116. "d-arrow-left"
  28117. ],
  28118. arrowRightBtn: [ppNs.e("icon-btn"), "d-arrow-right"]
  28119. };
  28120. });
  28121. const enableYearArrow = computed(() => {
  28122. return props2.unlinkPanels && rightYear.value > leftYear.value + 1;
  28123. });
  28124. const handleRangePick = (val, close2 = true) => {
  28125. const minDate_ = val.minDate;
  28126. const maxDate_ = val.maxDate;
  28127. if (maxDate.value === maxDate_ && minDate.value === minDate_) {
  28128. return;
  28129. }
  28130. emit("calendar-change", [minDate_.toDate(), maxDate_ && maxDate_.toDate()]);
  28131. maxDate.value = maxDate_;
  28132. minDate.value = minDate_;
  28133. if (!close2)
  28134. return;
  28135. handleRangeConfirm();
  28136. };
  28137. const parseUserInput = (value) => {
  28138. return correctlyParseUserInput(value, format2.value, lang.value, isDefaultFormat);
  28139. };
  28140. const isValidValue3 = (date4) => {
  28141. return isValidRange2(date4) && (disabledDate ? !disabledDate(date4[0].toDate()) && !disabledDate(date4[1].toDate()) : true);
  28142. };
  28143. const handleClear = () => {
  28144. let valueOnClear = null;
  28145. if (pickerBase == null ? void 0 : pickerBase.emptyValues) {
  28146. valueOnClear = pickerBase.emptyValues.valueOnClear.value;
  28147. }
  28148. const defaultArr = getDefaultValue(unref(defaultValue), {
  28149. lang: unref(lang),
  28150. step,
  28151. unit: unit3,
  28152. unlinkPanels: props2.unlinkPanels
  28153. });
  28154. leftDate.value = defaultArr[0];
  28155. rightDate.value = defaultArr[1];
  28156. emit("pick", valueOnClear);
  28157. };
  28158. function sortDates(minDate2, maxDate2) {
  28159. if (props2.unlinkPanels && maxDate2) {
  28160. const minDateYear = (minDate2 == null ? void 0 : minDate2.year()) || 0;
  28161. const maxDateYear = maxDate2.year();
  28162. rightDate.value = minDateYear + step > maxDateYear ? maxDate2.add(step, unit3) : maxDate2;
  28163. } else {
  28164. rightDate.value = leftDate.value.add(step, unit3);
  28165. }
  28166. }
  28167. watch(() => props2.visible, (visible) => {
  28168. if (!visible && rangeState.value.selecting) {
  28169. parseValue(props2.parsedValue);
  28170. onSelect(false);
  28171. }
  28172. });
  28173. emit("set-picker-option", ["isValidValue", isValidValue3]);
  28174. emit("set-picker-option", ["parseUserInput", parseUserInput]);
  28175. emit("set-picker-option", ["handleClear", handleClear]);
  28176. return (_ctx, _cache) => {
  28177. return openBlock(), createElementBlock("div", {
  28178. class: normalizeClass(unref(panelKls))
  28179. }, [
  28180. createBaseVNode("div", {
  28181. class: normalizeClass(unref(ppNs).e("body-wrapper"))
  28182. }, [
  28183. renderSlot(_ctx.$slots, "sidebar", {
  28184. class: normalizeClass(unref(ppNs).e("sidebar"))
  28185. }),
  28186. unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
  28187. key: 0,
  28188. class: normalizeClass(unref(ppNs).e("sidebar"))
  28189. }, [
  28190. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
  28191. return openBlock(), createElementBlock("button", {
  28192. key,
  28193. type: "button",
  28194. class: normalizeClass(unref(ppNs).e("shortcut")),
  28195. disabled: _ctx.disabled,
  28196. onClick: ($event) => unref(handleShortcutClick)(shortcut)
  28197. }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
  28198. }), 128))
  28199. ], 2)) : createCommentVNode("v-if", true),
  28200. createBaseVNode("div", {
  28201. class: normalizeClass(unref(ppNs).e("body"))
  28202. }, [
  28203. createBaseVNode("div", {
  28204. class: normalizeClass(unref(leftPanelKls).content)
  28205. }, [
  28206. createBaseVNode("div", {
  28207. class: normalizeClass(unref(drpNs).e("header"))
  28208. }, [
  28209. createBaseVNode("button", {
  28210. type: "button",
  28211. class: normalizeClass(unref(leftPanelKls).arrowLeftBtn),
  28212. disabled: _ctx.disabled,
  28213. onClick: unref(leftPrevYear)
  28214. }, [
  28215. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  28216. createVNode(unref(ElIcon), null, {
  28217. default: withCtx(() => [
  28218. createVNode(unref(d_arrow_left_default))
  28219. ]),
  28220. _: 1
  28221. })
  28222. ])
  28223. ], 10, ["disabled", "onClick"]),
  28224. _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
  28225. key: 0,
  28226. type: "button",
  28227. disabled: !unref(enableYearArrow) || _ctx.disabled,
  28228. class: normalizeClass(unref(leftPanelKls).arrowRightBtn),
  28229. onClick: unref(leftNextYear)
  28230. }, [
  28231. renderSlot(_ctx.$slots, "next-year", {}, () => [
  28232. createVNode(unref(ElIcon), null, {
  28233. default: withCtx(() => [
  28234. createVNode(unref(d_arrow_right_default))
  28235. ]),
  28236. _: 1
  28237. })
  28238. ])
  28239. ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
  28240. createBaseVNode("div", null, toDisplayString(unref(leftLabel)), 1)
  28241. ], 2),
  28242. createVNode(YearTable, {
  28243. "selection-mode": "range",
  28244. date: leftDate.value,
  28245. "min-date": unref(minDate),
  28246. "max-date": unref(maxDate),
  28247. "range-state": unref(rangeState),
  28248. "disabled-date": unref(disabledDate),
  28249. disabled: _ctx.disabled,
  28250. "cell-class-name": unref(cellClassName),
  28251. onChangerange: unref(handleChangeRange),
  28252. onPick: handleRangePick,
  28253. onSelect: unref(onSelect)
  28254. }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
  28255. ], 2),
  28256. createBaseVNode("div", {
  28257. class: normalizeClass(unref(rightPanelKls).content)
  28258. }, [
  28259. createBaseVNode("div", {
  28260. class: normalizeClass(unref(drpNs).e("header"))
  28261. }, [
  28262. _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
  28263. key: 0,
  28264. type: "button",
  28265. disabled: !unref(enableYearArrow) || _ctx.disabled,
  28266. class: normalizeClass(unref(rightPanelKls).arrowLeftBtn),
  28267. onClick: unref(rightPrevYear)
  28268. }, [
  28269. renderSlot(_ctx.$slots, "prev-year", {}, () => [
  28270. createVNode(unref(ElIcon), null, {
  28271. default: withCtx(() => [
  28272. createVNode(unref(d_arrow_left_default))
  28273. ]),
  28274. _: 1
  28275. })
  28276. ])
  28277. ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
  28278. createBaseVNode("button", {
  28279. type: "button",
  28280. class: normalizeClass(unref(rightPanelKls).arrowRightBtn),
  28281. disabled: _ctx.disabled,
  28282. onClick: unref(rightNextYear)
  28283. }, [
  28284. renderSlot(_ctx.$slots, "next-year", {}, () => [
  28285. createVNode(unref(ElIcon), null, {
  28286. default: withCtx(() => [
  28287. createVNode(unref(d_arrow_right_default))
  28288. ]),
  28289. _: 1
  28290. })
  28291. ])
  28292. ], 10, ["disabled", "onClick"]),
  28293. createBaseVNode("div", null, toDisplayString(unref(rightLabel)), 1)
  28294. ], 2),
  28295. createVNode(YearTable, {
  28296. "selection-mode": "range",
  28297. date: rightDate.value,
  28298. "min-date": unref(minDate),
  28299. "max-date": unref(maxDate),
  28300. "range-state": unref(rangeState),
  28301. "disabled-date": unref(disabledDate),
  28302. disabled: _ctx.disabled,
  28303. "cell-class-name": unref(cellClassName),
  28304. onChangerange: unref(handleChangeRange),
  28305. onPick: handleRangePick,
  28306. onSelect: unref(onSelect)
  28307. }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
  28308. ], 2)
  28309. ], 2)
  28310. ], 2)
  28311. ], 2);
  28312. };
  28313. }
  28314. });
  28315. var YearRangePickPanel = _export_sfc(_sfc_main68, [["__file", "panel-year-range.vue"]]);
  28316. // node_modules/element-plus/es/components/date-picker-panel/src/panel-utils.mjs
  28317. var getPanel = function(type4) {
  28318. switch (type4) {
  28319. case "daterange":
  28320. case "datetimerange": {
  28321. return DateRangePickPanel;
  28322. }
  28323. case "monthrange": {
  28324. return MonthRangePickPanel;
  28325. }
  28326. case "yearrange": {
  28327. return YearRangePickPanel;
  28328. }
  28329. default: {
  28330. return DatePickPanel;
  28331. }
  28332. }
  28333. };
  28334. // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.mjs
  28335. function _isSlot(s2) {
  28336. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  28337. }
  28338. import_dayjs17.default.extend(import_localeData2.default);
  28339. import_dayjs17.default.extend(import_advancedFormat.default);
  28340. import_dayjs17.default.extend(import_customParseFormat2.default);
  28341. import_dayjs17.default.extend(import_weekOfYear.default);
  28342. import_dayjs17.default.extend(import_weekYear.default);
  28343. import_dayjs17.default.extend(import_dayOfYear.default);
  28344. import_dayjs17.default.extend(import_isSameOrAfter.default);
  28345. import_dayjs17.default.extend(import_isSameOrBefore.default);
  28346. var DatePickerPanel = defineComponent({
  28347. name: "ElDatePickerPanel",
  28348. install: null,
  28349. props: datePickerPanelProps,
  28350. emits: [UPDATE_MODEL_EVENT, "calendar-change", "panel-change", "visible-change", "pick"],
  28351. setup(props2, {
  28352. slots,
  28353. emit
  28354. }) {
  28355. const ns = useNamespace("picker-panel");
  28356. const pickerInjection = inject(PICKER_BASE_INJECTION_KEY, void 0);
  28357. if (isUndefined2(pickerInjection)) {
  28358. const _props = reactive({
  28359. ...toRefs(props2)
  28360. });
  28361. provide(PICKER_BASE_INJECTION_KEY, {
  28362. props: _props
  28363. });
  28364. }
  28365. provide(ROOT_PICKER_INJECTION_KEY, {
  28366. slots,
  28367. pickerNs: ns
  28368. });
  28369. const {
  28370. parsedValue,
  28371. onCalendarChange,
  28372. onPanelChange,
  28373. onSetPickerOption,
  28374. onPick
  28375. } = inject(ROOT_COMMON_PICKER_INJECTION_KEY, () => useCommonPicker(props2, emit), true);
  28376. return () => {
  28377. const Component = getPanel(props2.type);
  28378. return createVNode(Component, mergeProps(props2, {
  28379. "parsedValue": parsedValue.value,
  28380. "onSet-picker-option": onSetPickerOption,
  28381. "onCalendar-change": onCalendarChange,
  28382. "onPanel-change": onPanelChange,
  28383. "onPick": onPick
  28384. }), _isSlot(slots) ? slots : {
  28385. default: () => [slots]
  28386. });
  28387. };
  28388. }
  28389. });
  28390. // node_modules/element-plus/es/components/date-picker-panel/index.mjs
  28391. var ElDatePickerPanel = withInstall(DatePickerPanel);
  28392. // node_modules/element-plus/es/components/date-picker/src/props.mjs
  28393. var datePickerProps = buildProps({
  28394. ...timePickerDefaultProps,
  28395. type: {
  28396. type: definePropType(String),
  28397. default: "date"
  28398. }
  28399. });
  28400. // node_modules/element-plus/es/components/date-picker/src/date-picker.mjs
  28401. function _isSlot2(s2) {
  28402. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  28403. }
  28404. var DatePicker = defineComponent({
  28405. name: "ElDatePicker",
  28406. install: null,
  28407. props: datePickerProps,
  28408. emits: [UPDATE_MODEL_EVENT],
  28409. setup(props2, {
  28410. expose,
  28411. emit,
  28412. slots
  28413. }) {
  28414. const isDefaultFormat = computed(() => {
  28415. return !props2.format;
  28416. });
  28417. provide(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, isDefaultFormat);
  28418. provide(PICKER_POPPER_OPTIONS_INJECTION_KEY, reactive(toRef(props2, "popperOptions")));
  28419. const commonPicker = ref();
  28420. const refProps = {
  28421. focus: () => {
  28422. var _a2;
  28423. (_a2 = commonPicker.value) == null ? void 0 : _a2.focus();
  28424. },
  28425. blur: () => {
  28426. var _a2;
  28427. (_a2 = commonPicker.value) == null ? void 0 : _a2.blur();
  28428. },
  28429. handleOpen: () => {
  28430. var _a2;
  28431. (_a2 = commonPicker.value) == null ? void 0 : _a2.handleOpen();
  28432. },
  28433. handleClose: () => {
  28434. var _a2;
  28435. (_a2 = commonPicker.value) == null ? void 0 : _a2.handleClose();
  28436. }
  28437. };
  28438. expose(refProps);
  28439. const onModelValueUpdated = (val) => {
  28440. emit(UPDATE_MODEL_EVENT, val);
  28441. };
  28442. return () => {
  28443. var _a2;
  28444. const format2 = (_a2 = props2.format) != null ? _a2 : DEFAULT_FORMATS_DATEPICKER[props2.type] || DEFAULT_FORMATS_DATE;
  28445. return createVNode(CommonPicker, mergeProps(props2, {
  28446. "format": format2,
  28447. "type": props2.type,
  28448. "ref": commonPicker,
  28449. "onUpdate:modelValue": onModelValueUpdated
  28450. }), {
  28451. default: (scopedProps) => createVNode(ElDatePickerPanel, mergeProps({
  28452. "border": false
  28453. }, scopedProps), _isSlot2(slots) ? slots : {
  28454. default: () => [slots]
  28455. }),
  28456. "range-separator": slots["range-separator"]
  28457. });
  28458. };
  28459. }
  28460. });
  28461. // node_modules/element-plus/es/components/date-picker/index.mjs
  28462. var ElDatePicker = withInstall(DatePicker);
  28463. // node_modules/element-plus/es/components/descriptions/src/token.mjs
  28464. var descriptionsKey = Symbol("elDescriptions");
  28465. // node_modules/element-plus/es/components/descriptions/src/descriptions-cell.mjs
  28466. var ElDescriptionsCell = defineComponent({
  28467. name: "ElDescriptionsCell",
  28468. props: {
  28469. cell: {
  28470. type: Object
  28471. },
  28472. tag: {
  28473. type: String,
  28474. default: "td"
  28475. },
  28476. type: {
  28477. type: String
  28478. }
  28479. },
  28480. setup() {
  28481. const descriptions = inject(descriptionsKey, {});
  28482. return {
  28483. descriptions
  28484. };
  28485. },
  28486. render() {
  28487. var _a2;
  28488. const item = getNormalizedProps(this.cell);
  28489. const directives = (((_a2 = this.cell) == null ? void 0 : _a2.dirs) || []).map((dire) => {
  28490. const { dir, arg, modifiers, value } = dire;
  28491. return [dir, value, arg, modifiers];
  28492. });
  28493. const { border, direction: direction2 } = this.descriptions;
  28494. const isVertical = direction2 === "vertical";
  28495. const renderLabel = () => {
  28496. var _a22, _b, _c;
  28497. return ((_c = (_b = (_a22 = this.cell) == null ? void 0 : _a22.children) == null ? void 0 : _b.label) == null ? void 0 : _c.call(_b)) || item.label;
  28498. };
  28499. const renderContent = () => {
  28500. var _a22, _b, _c;
  28501. return (_c = (_b = (_a22 = this.cell) == null ? void 0 : _a22.children) == null ? void 0 : _b.default) == null ? void 0 : _c.call(_b);
  28502. };
  28503. const span = item.span;
  28504. const rowspan = item.rowspan;
  28505. const align = item.align ? `is-${item.align}` : "";
  28506. const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : align;
  28507. const className = item.className;
  28508. const labelClassName = item.labelClassName;
  28509. const width = this.type === "label" ? item.labelWidth || this.descriptions.labelWidth || item.width : item.width;
  28510. const style = {
  28511. width: addUnit(width),
  28512. minWidth: addUnit(item.minWidth)
  28513. };
  28514. const ns = useNamespace("descriptions");
  28515. switch (this.type) {
  28516. case "label":
  28517. return withDirectives(h(this.tag, {
  28518. style,
  28519. class: [
  28520. ns.e("cell"),
  28521. ns.e("label"),
  28522. ns.is("bordered-label", border),
  28523. ns.is("vertical-label", isVertical),
  28524. labelAlign,
  28525. labelClassName
  28526. ],
  28527. colSpan: isVertical ? span : 1,
  28528. rowspan: isVertical ? 1 : rowspan
  28529. }, renderLabel()), directives);
  28530. case "content":
  28531. return withDirectives(h(this.tag, {
  28532. style,
  28533. class: [
  28534. ns.e("cell"),
  28535. ns.e("content"),
  28536. ns.is("bordered-content", border),
  28537. ns.is("vertical-content", isVertical),
  28538. align,
  28539. className
  28540. ],
  28541. colSpan: isVertical ? span : span * 2 - 1,
  28542. rowspan: isVertical ? rowspan * 2 - 1 : rowspan
  28543. }, renderContent()), directives);
  28544. default: {
  28545. const label = renderLabel();
  28546. const labelStyle = {};
  28547. const width2 = addUnit(item.labelWidth || this.descriptions.labelWidth);
  28548. if (width2) {
  28549. labelStyle.width = width2;
  28550. labelStyle.display = "inline-block";
  28551. }
  28552. return withDirectives(h("td", {
  28553. style,
  28554. class: [ns.e("cell"), align],
  28555. colSpan: span,
  28556. rowspan
  28557. }, [
  28558. !isNil_default(label) ? h("span", {
  28559. style: labelStyle,
  28560. class: [ns.e("label"), labelClassName]
  28561. }, label) : void 0,
  28562. h("span", {
  28563. class: [ns.e("content"), className]
  28564. }, renderContent())
  28565. ]), directives);
  28566. }
  28567. }
  28568. }
  28569. });
  28570. // node_modules/element-plus/es/components/descriptions/src/descriptions-row.mjs
  28571. var descriptionsRowProps = buildProps({
  28572. row: {
  28573. type: definePropType(Array),
  28574. default: () => []
  28575. }
  28576. });
  28577. // node_modules/element-plus/es/components/descriptions/src/descriptions-row2.mjs
  28578. var __default__57 = defineComponent({
  28579. name: "ElDescriptionsRow"
  28580. });
  28581. var _sfc_main69 = defineComponent({
  28582. ...__default__57,
  28583. props: descriptionsRowProps,
  28584. setup(__props) {
  28585. const descriptions = inject(descriptionsKey, {});
  28586. return (_ctx, _cache) => {
  28587. return unref(descriptions).direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  28588. createBaseVNode("tr", null, [
  28589. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
  28590. return openBlock(), createBlock(unref(ElDescriptionsCell), {
  28591. key: `tr1-${_index}`,
  28592. cell,
  28593. tag: "th",
  28594. type: "label"
  28595. }, null, 8, ["cell"]);
  28596. }), 128))
  28597. ]),
  28598. createBaseVNode("tr", null, [
  28599. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
  28600. return openBlock(), createBlock(unref(ElDescriptionsCell), {
  28601. key: `tr2-${_index}`,
  28602. cell,
  28603. tag: "td",
  28604. type: "content"
  28605. }, null, 8, ["cell"]);
  28606. }), 128))
  28607. ])
  28608. ], 64)) : (openBlock(), createElementBlock("tr", { key: 1 }, [
  28609. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
  28610. return openBlock(), createElementBlock(Fragment, {
  28611. key: `tr3-${_index}`
  28612. }, [
  28613. unref(descriptions).border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  28614. createVNode(unref(ElDescriptionsCell), {
  28615. cell,
  28616. tag: "td",
  28617. type: "label"
  28618. }, null, 8, ["cell"]),
  28619. createVNode(unref(ElDescriptionsCell), {
  28620. cell,
  28621. tag: "td",
  28622. type: "content"
  28623. }, null, 8, ["cell"])
  28624. ], 64)) : (openBlock(), createBlock(unref(ElDescriptionsCell), {
  28625. key: 1,
  28626. cell,
  28627. tag: "td",
  28628. type: "both"
  28629. }, null, 8, ["cell"]))
  28630. ], 64);
  28631. }), 128))
  28632. ]));
  28633. };
  28634. }
  28635. });
  28636. var ElDescriptionsRow = _export_sfc(_sfc_main69, [["__file", "descriptions-row.vue"]]);
  28637. // node_modules/element-plus/es/components/descriptions/src/description.mjs
  28638. var descriptionProps = buildProps({
  28639. border: Boolean,
  28640. column: {
  28641. type: Number,
  28642. default: 3
  28643. },
  28644. direction: {
  28645. type: String,
  28646. values: ["horizontal", "vertical"],
  28647. default: "horizontal"
  28648. },
  28649. size: useSizeProp,
  28650. title: {
  28651. type: String,
  28652. default: ""
  28653. },
  28654. extra: {
  28655. type: String,
  28656. default: ""
  28657. },
  28658. labelWidth: {
  28659. type: [String, Number],
  28660. default: ""
  28661. }
  28662. });
  28663. // node_modules/element-plus/es/components/descriptions/src/constants.mjs
  28664. var COMPONENT_NAME9 = "ElDescriptionsItem";
  28665. // node_modules/element-plus/es/components/descriptions/src/description2.mjs
  28666. var __default__58 = defineComponent({
  28667. name: "ElDescriptions"
  28668. });
  28669. var _sfc_main70 = defineComponent({
  28670. ...__default__58,
  28671. props: descriptionProps,
  28672. setup(__props) {
  28673. const props2 = __props;
  28674. const ns = useNamespace("descriptions");
  28675. const descriptionsSize = useFormSize();
  28676. const slots = useSlots();
  28677. provide(descriptionsKey, props2);
  28678. const descriptionKls = computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
  28679. const filledNode = (node, span, count, isLast = false) => {
  28680. if (!node.props) {
  28681. node.props = {};
  28682. }
  28683. if (span > count) {
  28684. node.props.span = count;
  28685. }
  28686. if (isLast) {
  28687. node.props.span = span;
  28688. }
  28689. return node;
  28690. };
  28691. const getRows = () => {
  28692. if (!slots.default)
  28693. return [];
  28694. const children = flattedChildren(slots.default()).filter((node) => {
  28695. var _a2;
  28696. return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === COMPONENT_NAME9;
  28697. });
  28698. const rows = [];
  28699. let temp = [];
  28700. let count = props2.column;
  28701. let totalSpan = 0;
  28702. const rowspanTemp = [];
  28703. children.forEach((node, index) => {
  28704. var _a2, _b, _c;
  28705. const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
  28706. const rowspan = ((_b = node.props) == null ? void 0 : _b.rowspan) || 1;
  28707. const rowNo = rows.length;
  28708. rowspanTemp[rowNo] || (rowspanTemp[rowNo] = 0);
  28709. if (rowspan > 1) {
  28710. for (let i = 1; i < rowspan; i++) {
  28711. rowspanTemp[_c = rowNo + i] || (rowspanTemp[_c] = 0);
  28712. rowspanTemp[rowNo + i]++;
  28713. totalSpan++;
  28714. }
  28715. }
  28716. if (rowspanTemp[rowNo] > 0) {
  28717. count -= rowspanTemp[rowNo];
  28718. rowspanTemp[rowNo] = 0;
  28719. }
  28720. if (index < children.length - 1) {
  28721. totalSpan += span > count ? count : span;
  28722. }
  28723. if (index === children.length - 1) {
  28724. const lastSpan = props2.column - totalSpan % props2.column;
  28725. temp.push(filledNode(node, lastSpan, count, true));
  28726. rows.push(temp);
  28727. return;
  28728. }
  28729. if (span < count) {
  28730. count -= span;
  28731. temp.push(node);
  28732. } else {
  28733. temp.push(filledNode(node, span, count));
  28734. rows.push(temp);
  28735. count = props2.column;
  28736. temp = [];
  28737. }
  28738. });
  28739. return rows;
  28740. };
  28741. return (_ctx, _cache) => {
  28742. return openBlock(), createElementBlock("div", {
  28743. class: normalizeClass(unref(descriptionKls))
  28744. }, [
  28745. _ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
  28746. key: 0,
  28747. class: normalizeClass(unref(ns).e("header"))
  28748. }, [
  28749. createBaseVNode("div", {
  28750. class: normalizeClass(unref(ns).e("title"))
  28751. }, [
  28752. renderSlot(_ctx.$slots, "title", {}, () => [
  28753. createTextVNode(toDisplayString(_ctx.title), 1)
  28754. ])
  28755. ], 2),
  28756. createBaseVNode("div", {
  28757. class: normalizeClass(unref(ns).e("extra"))
  28758. }, [
  28759. renderSlot(_ctx.$slots, "extra", {}, () => [
  28760. createTextVNode(toDisplayString(_ctx.extra), 1)
  28761. ])
  28762. ], 2)
  28763. ], 2)) : createCommentVNode("v-if", true),
  28764. createBaseVNode("div", {
  28765. class: normalizeClass(unref(ns).e("body"))
  28766. }, [
  28767. createBaseVNode("table", {
  28768. class: normalizeClass([unref(ns).e("table"), unref(ns).is("bordered", _ctx.border)])
  28769. }, [
  28770. createBaseVNode("tbody", null, [
  28771. (openBlock(true), createElementBlock(Fragment, null, renderList(getRows(), (row, _index) => {
  28772. return openBlock(), createBlock(ElDescriptionsRow, {
  28773. key: _index,
  28774. row
  28775. }, null, 8, ["row"]);
  28776. }), 128))
  28777. ])
  28778. ], 2)
  28779. ], 2)
  28780. ], 2);
  28781. };
  28782. }
  28783. });
  28784. var Descriptions = _export_sfc(_sfc_main70, [["__file", "description.vue"]]);
  28785. // node_modules/element-plus/es/constants/column-alignment.mjs
  28786. var columnAlignment = ["left", "center", "right"];
  28787. // node_modules/element-plus/es/components/descriptions/src/description-item.mjs
  28788. var descriptionItemProps = buildProps({
  28789. label: {
  28790. type: String,
  28791. default: ""
  28792. },
  28793. span: {
  28794. type: Number,
  28795. default: 1
  28796. },
  28797. rowspan: {
  28798. type: Number,
  28799. default: 1
  28800. },
  28801. width: {
  28802. type: [String, Number],
  28803. default: ""
  28804. },
  28805. minWidth: {
  28806. type: [String, Number],
  28807. default: ""
  28808. },
  28809. labelWidth: {
  28810. type: [String, Number],
  28811. default: ""
  28812. },
  28813. align: {
  28814. type: String,
  28815. values: columnAlignment,
  28816. default: "left"
  28817. },
  28818. labelAlign: {
  28819. type: String,
  28820. values: columnAlignment
  28821. },
  28822. className: {
  28823. type: String,
  28824. default: ""
  28825. },
  28826. labelClassName: {
  28827. type: String,
  28828. default: ""
  28829. }
  28830. });
  28831. var DescriptionItem = defineComponent({
  28832. name: COMPONENT_NAME9,
  28833. props: descriptionItemProps
  28834. });
  28835. // node_modules/element-plus/es/components/descriptions/index.mjs
  28836. var ElDescriptions = withInstall(Descriptions, {
  28837. DescriptionsItem: DescriptionItem
  28838. });
  28839. var ElDescriptionsItem = withNoopInstall(DescriptionItem);
  28840. // node_modules/element-plus/es/hooks/use-same-target/index.mjs
  28841. var useSameTarget = (handleClick) => {
  28842. if (!handleClick) {
  28843. return { onClick: NOOP, onMousedown: NOOP, onMouseup: NOOP };
  28844. }
  28845. let mousedownTarget = false;
  28846. let mouseupTarget = false;
  28847. const onClick = (e) => {
  28848. if (mousedownTarget && mouseupTarget) {
  28849. handleClick(e);
  28850. }
  28851. mousedownTarget = mouseupTarget = false;
  28852. };
  28853. const onMousedown = (e) => {
  28854. mousedownTarget = e.target === e.currentTarget;
  28855. };
  28856. const onMouseup = (e) => {
  28857. mouseupTarget = e.target === e.currentTarget;
  28858. };
  28859. return { onClick, onMousedown, onMouseup };
  28860. };
  28861. // node_modules/element-plus/es/components/overlay/src/overlay.mjs
  28862. var overlayProps = buildProps({
  28863. mask: {
  28864. type: Boolean,
  28865. default: true
  28866. },
  28867. customMaskEvent: Boolean,
  28868. overlayClass: {
  28869. type: definePropType([
  28870. String,
  28871. Array,
  28872. Object
  28873. ])
  28874. },
  28875. zIndex: {
  28876. type: definePropType([String, Number])
  28877. }
  28878. });
  28879. var overlayEmits = {
  28880. click: (evt) => evt instanceof MouseEvent
  28881. };
  28882. var BLOCK = "overlay";
  28883. var Overlay = defineComponent({
  28884. name: "ElOverlay",
  28885. props: overlayProps,
  28886. emits: overlayEmits,
  28887. setup(props2, { slots, emit }) {
  28888. const ns = useNamespace(BLOCK);
  28889. const onMaskClick = (e) => {
  28890. emit("click", e);
  28891. };
  28892. const { onClick, onMousedown, onMouseup } = useSameTarget(props2.customMaskEvent ? void 0 : onMaskClick);
  28893. return () => {
  28894. return props2.mask ? createVNode("div", {
  28895. class: [ns.b(), props2.overlayClass],
  28896. style: {
  28897. zIndex: props2.zIndex
  28898. },
  28899. onClick,
  28900. onMousedown,
  28901. onMouseup
  28902. }, [renderSlot(slots, "default")], PatchFlags.STYLE | PatchFlags.CLASS | PatchFlags.PROPS, ["onClick", "onMouseup", "onMousedown"]) : h("div", {
  28903. class: props2.overlayClass,
  28904. style: {
  28905. zIndex: props2.zIndex,
  28906. position: "fixed",
  28907. top: "0px",
  28908. right: "0px",
  28909. bottom: "0px",
  28910. left: "0px"
  28911. }
  28912. }, [renderSlot(slots, "default")]);
  28913. };
  28914. }
  28915. });
  28916. // node_modules/element-plus/es/components/overlay/index.mjs
  28917. var ElOverlay = Overlay;
  28918. // node_modules/element-plus/es/components/dialog/src/constants.mjs
  28919. var dialogInjectionKey = Symbol("dialogInjectionKey");
  28920. var DEFAULT_DIALOG_TRANSITION = "dialog-fade";
  28921. // node_modules/element-plus/es/components/dialog/src/dialog-content.mjs
  28922. var dialogContentProps = buildProps({
  28923. center: Boolean,
  28924. alignCenter: {
  28925. type: Boolean,
  28926. default: void 0
  28927. },
  28928. closeIcon: {
  28929. type: iconPropType
  28930. },
  28931. draggable: {
  28932. type: Boolean,
  28933. default: void 0
  28934. },
  28935. overflow: {
  28936. type: Boolean,
  28937. default: void 0
  28938. },
  28939. fullscreen: Boolean,
  28940. headerClass: String,
  28941. bodyClass: String,
  28942. footerClass: String,
  28943. showClose: {
  28944. type: Boolean,
  28945. default: true
  28946. },
  28947. title: {
  28948. type: String,
  28949. default: ""
  28950. },
  28951. ariaLevel: {
  28952. type: String,
  28953. default: "2"
  28954. }
  28955. });
  28956. var dialogContentEmits = {
  28957. close: () => true
  28958. };
  28959. // node_modules/element-plus/es/hooks/use-draggable/index.mjs
  28960. var useDraggable = (targetRef, dragRef, draggable2, overflow) => {
  28961. const transform2 = {
  28962. offsetX: 0,
  28963. offsetY: 0
  28964. };
  28965. const isDragging2 = ref(false);
  28966. const adjustPosition = (moveX, moveY) => {
  28967. if (targetRef.value) {
  28968. const { offsetX, offsetY } = transform2;
  28969. const targetRect = targetRef.value.getBoundingClientRect();
  28970. const targetLeft = targetRect.left;
  28971. const targetTop = targetRect.top;
  28972. const targetWidth = targetRect.width;
  28973. const targetHeight = targetRect.height;
  28974. const clientWidth = document.documentElement.clientWidth;
  28975. const clientHeight = document.documentElement.clientHeight;
  28976. const minLeft = -targetLeft + offsetX;
  28977. const minTop = -targetTop + offsetY;
  28978. const maxLeft = clientWidth - targetLeft - targetWidth + offsetX;
  28979. const maxTop = clientHeight - targetTop - (targetHeight < clientHeight ? targetHeight : 0) + offsetY;
  28980. if (!(overflow == null ? void 0 : overflow.value)) {
  28981. moveX = Math.min(Math.max(moveX, minLeft), maxLeft);
  28982. moveY = Math.min(Math.max(moveY, minTop), maxTop);
  28983. }
  28984. transform2.offsetX = moveX;
  28985. transform2.offsetY = moveY;
  28986. targetRef.value.style.transform = `translate(${addUnit(moveX)}, ${addUnit(moveY)})`;
  28987. }
  28988. };
  28989. const onMousedown = (e) => {
  28990. const downX = e.clientX;
  28991. const downY = e.clientY;
  28992. const { offsetX, offsetY } = transform2;
  28993. const onMousemove = (e2) => {
  28994. if (!isDragging2.value) {
  28995. isDragging2.value = true;
  28996. }
  28997. const moveX = offsetX + e2.clientX - downX;
  28998. const moveY = offsetY + e2.clientY - downY;
  28999. adjustPosition(moveX, moveY);
  29000. };
  29001. const onMouseup = () => {
  29002. isDragging2.value = false;
  29003. document.removeEventListener("mousemove", onMousemove);
  29004. document.removeEventListener("mouseup", onMouseup);
  29005. };
  29006. document.addEventListener("mousemove", onMousemove);
  29007. document.addEventListener("mouseup", onMouseup);
  29008. };
  29009. const onDraggable = () => {
  29010. if (dragRef.value && targetRef.value) {
  29011. dragRef.value.addEventListener("mousedown", onMousedown);
  29012. window.addEventListener("resize", updatePosition);
  29013. }
  29014. };
  29015. const offDraggable = () => {
  29016. if (dragRef.value && targetRef.value) {
  29017. dragRef.value.removeEventListener("mousedown", onMousedown);
  29018. window.removeEventListener("resize", updatePosition);
  29019. }
  29020. };
  29021. const resetPosition = () => {
  29022. transform2.offsetX = 0;
  29023. transform2.offsetY = 0;
  29024. if (targetRef.value) {
  29025. targetRef.value.style.transform = "";
  29026. }
  29027. };
  29028. const updatePosition = () => {
  29029. const { offsetX, offsetY } = transform2;
  29030. adjustPosition(offsetX, offsetY);
  29031. };
  29032. onMounted(() => {
  29033. watchEffect(() => {
  29034. if (draggable2.value) {
  29035. onDraggable();
  29036. } else {
  29037. offDraggable();
  29038. }
  29039. });
  29040. });
  29041. onBeforeUnmount(() => {
  29042. offDraggable();
  29043. });
  29044. return {
  29045. isDragging: isDragging2,
  29046. resetPosition,
  29047. updatePosition
  29048. };
  29049. };
  29050. // node_modules/element-plus/es/utils/vue/refs.mjs
  29051. var composeRefs = (...refs) => {
  29052. return (el) => {
  29053. refs.forEach((ref2) => {
  29054. ref2.value = el;
  29055. });
  29056. };
  29057. };
  29058. // node_modules/element-plus/es/components/dialog/src/dialog-content2.mjs
  29059. var __default__59 = defineComponent({ name: "ElDialogContent" });
  29060. var _sfc_main71 = defineComponent({
  29061. ...__default__59,
  29062. props: dialogContentProps,
  29063. emits: dialogContentEmits,
  29064. setup(__props, { expose }) {
  29065. const props2 = __props;
  29066. const { t } = useLocale();
  29067. const { Close } = CloseComponents;
  29068. const { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey);
  29069. const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY);
  29070. const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
  29071. const draggable2 = computed(() => !!props2.draggable);
  29072. const overflow = computed(() => !!props2.overflow);
  29073. const { resetPosition, updatePosition, isDragging: isDragging2 } = useDraggable(dialogRef, headerRef, draggable2, overflow);
  29074. const dialogKls = computed(() => [
  29075. ns.b(),
  29076. ns.is("fullscreen", props2.fullscreen),
  29077. ns.is("draggable", draggable2.value),
  29078. ns.is("dragging", isDragging2.value),
  29079. ns.is("align-center", !!props2.alignCenter),
  29080. { [ns.m("center")]: props2.center }
  29081. ]);
  29082. expose({
  29083. resetPosition,
  29084. updatePosition
  29085. });
  29086. return (_ctx, _cache) => {
  29087. return openBlock(), createElementBlock("div", {
  29088. ref: unref(composedDialogRef),
  29089. class: normalizeClass(unref(dialogKls)),
  29090. style: normalizeStyle(unref(style)),
  29091. tabindex: "-1"
  29092. }, [
  29093. createBaseVNode("header", {
  29094. ref_key: "headerRef",
  29095. ref: headerRef,
  29096. class: normalizeClass([unref(ns).e("header"), _ctx.headerClass, { "show-close": _ctx.showClose }])
  29097. }, [
  29098. renderSlot(_ctx.$slots, "header", {}, () => [
  29099. createBaseVNode("span", {
  29100. role: "heading",
  29101. "aria-level": _ctx.ariaLevel,
  29102. class: normalizeClass(unref(ns).e("title"))
  29103. }, toDisplayString(_ctx.title), 11, ["aria-level"])
  29104. ]),
  29105. _ctx.showClose ? (openBlock(), createElementBlock("button", {
  29106. key: 0,
  29107. "aria-label": unref(t)("el.dialog.close"),
  29108. class: normalizeClass(unref(ns).e("headerbtn")),
  29109. type: "button",
  29110. onClick: ($event) => _ctx.$emit("close")
  29111. }, [
  29112. createVNode(unref(ElIcon), {
  29113. class: normalizeClass(unref(ns).e("close"))
  29114. }, {
  29115. default: withCtx(() => [
  29116. (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || unref(Close))))
  29117. ]),
  29118. _: 1
  29119. }, 8, ["class"])
  29120. ], 10, ["aria-label", "onClick"])) : createCommentVNode("v-if", true)
  29121. ], 2),
  29122. createBaseVNode("div", {
  29123. id: unref(bodyId),
  29124. class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass])
  29125. }, [
  29126. renderSlot(_ctx.$slots, "default")
  29127. ], 10, ["id"]),
  29128. _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", {
  29129. key: 0,
  29130. class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
  29131. }, [
  29132. renderSlot(_ctx.$slots, "footer")
  29133. ], 2)) : createCommentVNode("v-if", true)
  29134. ], 6);
  29135. };
  29136. }
  29137. });
  29138. var ElDialogContent = _export_sfc(_sfc_main71, [["__file", "dialog-content.vue"]]);
  29139. // node_modules/element-plus/es/components/dialog/src/dialog.mjs
  29140. var dialogProps = buildProps({
  29141. ...dialogContentProps,
  29142. appendToBody: Boolean,
  29143. appendTo: {
  29144. type: teleportProps.to.type,
  29145. default: "body"
  29146. },
  29147. beforeClose: {
  29148. type: definePropType(Function)
  29149. },
  29150. destroyOnClose: Boolean,
  29151. closeOnClickModal: {
  29152. type: Boolean,
  29153. default: true
  29154. },
  29155. closeOnPressEscape: {
  29156. type: Boolean,
  29157. default: true
  29158. },
  29159. lockScroll: {
  29160. type: Boolean,
  29161. default: true
  29162. },
  29163. modal: {
  29164. type: Boolean,
  29165. default: true
  29166. },
  29167. modalPenetrable: Boolean,
  29168. openDelay: {
  29169. type: Number,
  29170. default: 0
  29171. },
  29172. closeDelay: {
  29173. type: Number,
  29174. default: 0
  29175. },
  29176. top: {
  29177. type: String
  29178. },
  29179. modelValue: Boolean,
  29180. modalClass: String,
  29181. headerClass: String,
  29182. bodyClass: String,
  29183. footerClass: String,
  29184. width: {
  29185. type: [String, Number]
  29186. },
  29187. zIndex: {
  29188. type: Number
  29189. },
  29190. trapFocus: Boolean,
  29191. headerAriaLevel: {
  29192. type: String,
  29193. default: "2"
  29194. },
  29195. transition: {
  29196. type: definePropType([String, Object]),
  29197. default: void 0
  29198. }
  29199. });
  29200. var dialogEmits = {
  29201. open: () => true,
  29202. opened: () => true,
  29203. close: () => true,
  29204. closed: () => true,
  29205. [UPDATE_MODEL_EVENT]: (value) => isBoolean2(value),
  29206. openAutoFocus: () => true,
  29207. closeAutoFocus: () => true
  29208. };
  29209. var dialogContextKey = Symbol("dialogContextKey");
  29210. // node_modules/element-plus/es/hooks/use-lockscreen/index.mjs
  29211. var useLockscreen = (trigger, options = {}) => {
  29212. if (!isRef(trigger)) {
  29213. throwError("[useLockscreen]", "You need to pass a ref param to this function");
  29214. }
  29215. const ns = options.ns || useNamespace("popup");
  29216. const hiddenCls = computed(() => ns.bm("parent", "hidden"));
  29217. let scrollBarWidth2 = 0;
  29218. let withoutHiddenClass = false;
  29219. let bodyWidth = "0";
  29220. const cleanup = () => {
  29221. setTimeout(() => {
  29222. if (typeof document === "undefined")
  29223. return;
  29224. if (withoutHiddenClass && document) {
  29225. document.body.style.width = bodyWidth;
  29226. removeClass(document.body, hiddenCls.value);
  29227. }
  29228. }, 200);
  29229. };
  29230. watch(trigger, (val) => {
  29231. if (!val) {
  29232. cleanup();
  29233. return;
  29234. }
  29235. withoutHiddenClass = !hasClass(document.body, hiddenCls.value);
  29236. if (withoutHiddenClass) {
  29237. bodyWidth = document.body.style.width;
  29238. addClass(document.body, hiddenCls.value);
  29239. }
  29240. scrollBarWidth2 = getScrollBarWidth(ns.namespace.value);
  29241. const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
  29242. const bodyOverflowY = getStyle(document.body, "overflowY");
  29243. if (scrollBarWidth2 > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
  29244. document.body.style.width = `calc(100% - ${scrollBarWidth2}px)`;
  29245. }
  29246. });
  29247. onScopeDispose(() => cleanup());
  29248. };
  29249. // node_modules/element-plus/es/components/dialog/src/use-dialog.mjs
  29250. var COMPONENT_NAME10 = "ElDialog";
  29251. var useDialog = (props2, targetRef) => {
  29252. var _a2;
  29253. const instance = getCurrentInstance();
  29254. const emit = instance.emit;
  29255. const { nextZIndex } = useZIndex();
  29256. let lastPosition = "";
  29257. const titleId = useId();
  29258. const bodyId = useId();
  29259. const visible = ref(false);
  29260. const closed = ref(false);
  29261. const rendered = ref(false);
  29262. const zIndex2 = ref((_a2 = props2.zIndex) != null ? _a2 : nextZIndex());
  29263. let openTimer = void 0;
  29264. let closeTimer = void 0;
  29265. const config = useGlobalConfig();
  29266. const namespace = computed(() => {
  29267. var _a22, _b;
  29268. return (_b = (_a22 = config.value) == null ? void 0 : _a22.namespace) != null ? _b : defaultNamespace;
  29269. });
  29270. const globalConfig2 = computed(() => {
  29271. var _a22;
  29272. return (_a22 = config.value) == null ? void 0 : _a22.dialog;
  29273. });
  29274. const style = computed(() => {
  29275. const style2 = {};
  29276. const varPrefix = `--${namespace.value}-dialog`;
  29277. if (!props2.fullscreen) {
  29278. if (props2.top) {
  29279. style2[`${varPrefix}-margin-top`] = props2.top;
  29280. }
  29281. if (props2.width) {
  29282. style2[`${varPrefix}-width`] = addUnit(props2.width);
  29283. }
  29284. }
  29285. return style2;
  29286. });
  29287. const _draggable = computed(() => {
  29288. var _a22, _b, _c;
  29289. return ((_c = (_b = props2.draggable) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.draggable) != null ? _c : false) && !props2.fullscreen;
  29290. });
  29291. const _alignCenter = computed(() => {
  29292. var _a22, _b, _c;
  29293. return (_c = (_b = props2.alignCenter) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.alignCenter) != null ? _c : false;
  29294. });
  29295. const _overflow = computed(() => {
  29296. var _a22, _b, _c;
  29297. return (_c = (_b = props2.overflow) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.overflow) != null ? _c : false;
  29298. });
  29299. const overlayDialogStyle = computed(() => {
  29300. if (_alignCenter.value) {
  29301. return { display: "flex" };
  29302. }
  29303. return {};
  29304. });
  29305. const transitionConfig = computed(() => {
  29306. var _a22, _b, _c;
  29307. const transition = (_c = (_b = props2.transition) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.transition) != null ? _c : DEFAULT_DIALOG_TRANSITION;
  29308. const baseConfig = {
  29309. name: transition,
  29310. onAfterEnter: afterEnter,
  29311. onBeforeLeave: beforeLeave,
  29312. onAfterLeave: afterLeave
  29313. };
  29314. if (isObject(transition)) {
  29315. const config2 = { ...transition };
  29316. const _mergeHook = (userHook, defaultHook) => {
  29317. return (el) => {
  29318. if (isArray(userHook)) {
  29319. userHook.forEach((fn2) => {
  29320. if (isFunction(fn2))
  29321. fn2(el);
  29322. });
  29323. } else if (isFunction(userHook)) {
  29324. userHook(el);
  29325. }
  29326. defaultHook();
  29327. };
  29328. };
  29329. config2.onAfterEnter = _mergeHook(config2.onAfterEnter, afterEnter);
  29330. config2.onBeforeLeave = _mergeHook(config2.onBeforeLeave, beforeLeave);
  29331. config2.onAfterLeave = _mergeHook(config2.onAfterLeave, afterLeave);
  29332. if (!config2.name) {
  29333. config2.name = DEFAULT_DIALOG_TRANSITION;
  29334. debugWarn(COMPONENT_NAME10, `transition.name is missing when using object syntax, fallback to '${DEFAULT_DIALOG_TRANSITION}'`);
  29335. }
  29336. return config2;
  29337. }
  29338. return baseConfig;
  29339. });
  29340. function afterEnter() {
  29341. emit("opened");
  29342. }
  29343. function afterLeave() {
  29344. emit("closed");
  29345. emit(UPDATE_MODEL_EVENT, false);
  29346. if (props2.destroyOnClose) {
  29347. rendered.value = false;
  29348. }
  29349. }
  29350. function beforeLeave() {
  29351. emit("close");
  29352. }
  29353. function open() {
  29354. closeTimer == null ? void 0 : closeTimer();
  29355. openTimer == null ? void 0 : openTimer();
  29356. if (props2.openDelay && props2.openDelay > 0) {
  29357. ({ stop: openTimer } = useTimeoutFn(() => doOpen(), props2.openDelay));
  29358. } else {
  29359. doOpen();
  29360. }
  29361. }
  29362. function close2() {
  29363. openTimer == null ? void 0 : openTimer();
  29364. closeTimer == null ? void 0 : closeTimer();
  29365. if (props2.closeDelay && props2.closeDelay > 0) {
  29366. ({ stop: closeTimer } = useTimeoutFn(() => doClose(), props2.closeDelay));
  29367. } else {
  29368. doClose();
  29369. }
  29370. }
  29371. function handleClose() {
  29372. function hide2(shouldCancel) {
  29373. if (shouldCancel)
  29374. return;
  29375. closed.value = true;
  29376. visible.value = false;
  29377. }
  29378. if (props2.beforeClose) {
  29379. props2.beforeClose(hide2);
  29380. } else {
  29381. close2();
  29382. }
  29383. }
  29384. function onModalClick() {
  29385. if (props2.closeOnClickModal) {
  29386. handleClose();
  29387. }
  29388. }
  29389. function doOpen() {
  29390. if (!isClient)
  29391. return;
  29392. visible.value = true;
  29393. }
  29394. function doClose() {
  29395. visible.value = false;
  29396. }
  29397. function onOpenAutoFocus() {
  29398. emit("openAutoFocus");
  29399. }
  29400. function onCloseAutoFocus() {
  29401. emit("closeAutoFocus");
  29402. }
  29403. function onFocusoutPrevented(event) {
  29404. var _a22;
  29405. if (((_a22 = event.detail) == null ? void 0 : _a22.focusReason) === "pointer") {
  29406. event.preventDefault();
  29407. }
  29408. }
  29409. if (props2.lockScroll) {
  29410. useLockscreen(visible);
  29411. }
  29412. function onCloseRequested() {
  29413. if (props2.closeOnPressEscape) {
  29414. handleClose();
  29415. }
  29416. }
  29417. watch(() => props2.zIndex, () => {
  29418. var _a22;
  29419. zIndex2.value = (_a22 = props2.zIndex) != null ? _a22 : nextZIndex();
  29420. });
  29421. watch(() => props2.modelValue, (val) => {
  29422. var _a22;
  29423. if (val) {
  29424. closed.value = false;
  29425. open();
  29426. rendered.value = true;
  29427. zIndex2.value = (_a22 = props2.zIndex) != null ? _a22 : nextZIndex();
  29428. nextTick(() => {
  29429. emit("open");
  29430. if (targetRef.value) {
  29431. targetRef.value.parentElement.scrollTop = 0;
  29432. targetRef.value.parentElement.scrollLeft = 0;
  29433. targetRef.value.scrollTop = 0;
  29434. }
  29435. });
  29436. } else {
  29437. if (visible.value) {
  29438. close2();
  29439. }
  29440. }
  29441. });
  29442. watch(() => props2.fullscreen, (val) => {
  29443. if (!targetRef.value)
  29444. return;
  29445. if (val) {
  29446. lastPosition = targetRef.value.style.transform;
  29447. targetRef.value.style.transform = "";
  29448. } else {
  29449. targetRef.value.style.transform = lastPosition;
  29450. }
  29451. });
  29452. onMounted(() => {
  29453. if (props2.modelValue) {
  29454. visible.value = true;
  29455. rendered.value = true;
  29456. open();
  29457. }
  29458. });
  29459. return {
  29460. afterEnter,
  29461. afterLeave,
  29462. beforeLeave,
  29463. handleClose,
  29464. onModalClick,
  29465. close: close2,
  29466. doClose,
  29467. onOpenAutoFocus,
  29468. onCloseAutoFocus,
  29469. onCloseRequested,
  29470. onFocusoutPrevented,
  29471. titleId,
  29472. bodyId,
  29473. closed,
  29474. style,
  29475. overlayDialogStyle,
  29476. rendered,
  29477. visible,
  29478. zIndex: zIndex2,
  29479. transitionConfig,
  29480. _draggable,
  29481. _alignCenter,
  29482. _overflow
  29483. };
  29484. };
  29485. // node_modules/element-plus/es/components/dialog/src/dialog2.mjs
  29486. var __default__60 = defineComponent({
  29487. name: "ElDialog",
  29488. inheritAttrs: false
  29489. });
  29490. var _sfc_main72 = defineComponent({
  29491. ...__default__60,
  29492. props: dialogProps,
  29493. emits: dialogEmits,
  29494. setup(__props, { expose }) {
  29495. const props2 = __props;
  29496. const slots = useSlots();
  29497. useDeprecated({
  29498. scope: "el-dialog",
  29499. from: "the title slot",
  29500. replacement: "the header slot",
  29501. version: "3.0.0",
  29502. ref: "https://element-plus.org/en-US/component/dialog.html#slots"
  29503. }, computed(() => !!slots.title));
  29504. const ns = useNamespace("dialog");
  29505. const dialogRef = ref();
  29506. const headerRef = ref();
  29507. const dialogContentRef = ref();
  29508. const {
  29509. visible,
  29510. titleId,
  29511. bodyId,
  29512. style,
  29513. overlayDialogStyle,
  29514. rendered,
  29515. transitionConfig,
  29516. zIndex: zIndex2,
  29517. _draggable,
  29518. _alignCenter,
  29519. _overflow,
  29520. handleClose,
  29521. onModalClick,
  29522. onOpenAutoFocus,
  29523. onCloseAutoFocus,
  29524. onCloseRequested,
  29525. onFocusoutPrevented
  29526. } = useDialog(props2, dialogRef);
  29527. provide(dialogInjectionKey, {
  29528. dialogRef,
  29529. headerRef,
  29530. bodyId,
  29531. ns,
  29532. rendered,
  29533. style
  29534. });
  29535. const overlayEvent = useSameTarget(onModalClick);
  29536. const penetrable = computed(() => props2.modalPenetrable && !props2.modal && !props2.fullscreen);
  29537. const resetPosition = () => {
  29538. var _a2;
  29539. (_a2 = dialogContentRef.value) == null ? void 0 : _a2.resetPosition();
  29540. };
  29541. expose({
  29542. visible,
  29543. dialogContentRef,
  29544. resetPosition,
  29545. handleClose
  29546. });
  29547. return (_ctx, _cache) => {
  29548. return openBlock(), createBlock(unref(ElTeleport), {
  29549. to: _ctx.appendTo,
  29550. disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
  29551. }, {
  29552. default: withCtx(() => [
  29553. createVNode(Transition, mergeProps(unref(transitionConfig), { persisted: "" }), {
  29554. default: withCtx(() => {
  29555. var _a2;
  29556. return [
  29557. withDirectives(createVNode(unref(ElOverlay), {
  29558. "custom-mask-event": "",
  29559. mask: _ctx.modal,
  29560. "overlay-class": [
  29561. (_a2 = _ctx.modalClass) != null ? _a2 : "",
  29562. `${unref(ns).namespace.value}-modal-dialog`,
  29563. unref(ns).is("penetrable", unref(penetrable))
  29564. ],
  29565. "z-index": unref(zIndex2)
  29566. }, {
  29567. default: withCtx(() => [
  29568. createBaseVNode("div", {
  29569. role: "dialog",
  29570. "aria-modal": "true",
  29571. "aria-label": _ctx.title || void 0,
  29572. "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
  29573. "aria-describedby": unref(bodyId),
  29574. class: normalizeClass(`${unref(ns).namespace.value}-overlay-dialog`),
  29575. style: normalizeStyle(unref(overlayDialogStyle)),
  29576. onClick: unref(overlayEvent).onClick,
  29577. onMousedown: unref(overlayEvent).onMousedown,
  29578. onMouseup: unref(overlayEvent).onMouseup
  29579. }, [
  29580. createVNode(unref(ElFocusTrap), {
  29581. loop: "",
  29582. trapped: unref(visible),
  29583. "focus-start-el": "container",
  29584. onFocusAfterTrapped: unref(onOpenAutoFocus),
  29585. onFocusAfterReleased: unref(onCloseAutoFocus),
  29586. onFocusoutPrevented: unref(onFocusoutPrevented),
  29587. onReleaseRequested: unref(onCloseRequested)
  29588. }, {
  29589. default: withCtx(() => [
  29590. unref(rendered) ? (openBlock(), createBlock(ElDialogContent, mergeProps({
  29591. key: 0,
  29592. ref_key: "dialogContentRef",
  29593. ref: dialogContentRef
  29594. }, _ctx.$attrs, {
  29595. center: _ctx.center,
  29596. "align-center": unref(_alignCenter),
  29597. "close-icon": _ctx.closeIcon,
  29598. draggable: unref(_draggable),
  29599. overflow: unref(_overflow),
  29600. fullscreen: _ctx.fullscreen,
  29601. "header-class": _ctx.headerClass,
  29602. "body-class": _ctx.bodyClass,
  29603. "footer-class": _ctx.footerClass,
  29604. "show-close": _ctx.showClose,
  29605. title: _ctx.title,
  29606. "aria-level": _ctx.headerAriaLevel,
  29607. onClose: unref(handleClose)
  29608. }), createSlots({
  29609. header: withCtx(() => [
  29610. !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
  29611. key: 0,
  29612. close: unref(handleClose),
  29613. titleId: unref(titleId),
  29614. titleClass: unref(ns).e("title")
  29615. }) : renderSlot(_ctx.$slots, "title", { key: 1 })
  29616. ]),
  29617. default: withCtx(() => [
  29618. renderSlot(_ctx.$slots, "default")
  29619. ]),
  29620. _: 2
  29621. }, [
  29622. _ctx.$slots.footer ? {
  29623. name: "footer",
  29624. fn: withCtx(() => [
  29625. renderSlot(_ctx.$slots, "footer")
  29626. ])
  29627. } : void 0
  29628. ]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : createCommentVNode("v-if", true)
  29629. ]),
  29630. _: 3
  29631. }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
  29632. ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
  29633. ]),
  29634. _: 3
  29635. }, 8, ["mask", "overlay-class", "z-index"]), [
  29636. [vShow, unref(visible)]
  29637. ])
  29638. ];
  29639. }),
  29640. _: 3
  29641. }, 16)
  29642. ]),
  29643. _: 3
  29644. }, 8, ["to", "disabled"]);
  29645. };
  29646. }
  29647. });
  29648. var Dialog = _export_sfc(_sfc_main72, [["__file", "dialog.vue"]]);
  29649. // node_modules/element-plus/es/components/dialog/index.mjs
  29650. var ElDialog = withInstall(Dialog);
  29651. // node_modules/element-plus/es/components/divider/src/divider.mjs
  29652. var dividerProps = buildProps({
  29653. direction: {
  29654. type: String,
  29655. values: ["horizontal", "vertical"],
  29656. default: "horizontal"
  29657. },
  29658. contentPosition: {
  29659. type: String,
  29660. values: ["left", "center", "right"],
  29661. default: "center"
  29662. },
  29663. borderStyle: {
  29664. type: definePropType(String),
  29665. default: "solid"
  29666. }
  29667. });
  29668. // node_modules/element-plus/es/components/divider/src/divider2.mjs
  29669. var __default__61 = defineComponent({
  29670. name: "ElDivider"
  29671. });
  29672. var _sfc_main73 = defineComponent({
  29673. ...__default__61,
  29674. props: dividerProps,
  29675. setup(__props) {
  29676. const props2 = __props;
  29677. const ns = useNamespace("divider");
  29678. const dividerStyle = computed(() => {
  29679. return ns.cssVar({
  29680. "border-style": props2.borderStyle
  29681. });
  29682. });
  29683. return (_ctx, _cache) => {
  29684. return openBlock(), createElementBlock("div", {
  29685. class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
  29686. style: normalizeStyle(unref(dividerStyle)),
  29687. role: "separator"
  29688. }, [
  29689. _ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
  29690. key: 0,
  29691. class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
  29692. }, [
  29693. renderSlot(_ctx.$slots, "default")
  29694. ], 2)) : createCommentVNode("v-if", true)
  29695. ], 6);
  29696. };
  29697. }
  29698. });
  29699. var Divider = _export_sfc(_sfc_main73, [["__file", "divider.vue"]]);
  29700. // node_modules/element-plus/es/components/divider/index.mjs
  29701. var ElDivider = withInstall(Divider);
  29702. // node_modules/element-plus/es/components/drawer/src/drawer.mjs
  29703. var drawerProps = buildProps({
  29704. ...dialogProps,
  29705. direction: {
  29706. type: String,
  29707. default: "rtl",
  29708. values: ["ltr", "rtl", "ttb", "btt"]
  29709. },
  29710. resizable: Boolean,
  29711. size: {
  29712. type: [String, Number],
  29713. default: "30%"
  29714. },
  29715. withHeader: {
  29716. type: Boolean,
  29717. default: true
  29718. },
  29719. modalFade: {
  29720. type: Boolean,
  29721. default: true
  29722. },
  29723. headerAriaLevel: {
  29724. type: String,
  29725. default: "2"
  29726. }
  29727. });
  29728. var drawerEmits = dialogEmits;
  29729. // node_modules/element-plus/es/components/drawer/src/composables/useResizable.mjs
  29730. function useResizable(props2, target2) {
  29731. const { width, height } = useWindowSize();
  29732. const isHorizontal2 = computed(() => ["ltr", "rtl"].includes(props2.direction));
  29733. const sign = computed(() => ["ltr", "ttb"].includes(props2.direction) ? 1 : -1);
  29734. const windowSize = computed(() => isHorizontal2.value ? width.value : height.value);
  29735. const getSize = computed(() => {
  29736. return clamp2(startSize.value + sign.value * offset3.value, 4, windowSize.value);
  29737. });
  29738. const startSize = ref(0);
  29739. const offset3 = ref(0);
  29740. const isResizing = ref(false);
  29741. const hasStartedDragging = ref(false);
  29742. let startPos = [];
  29743. let cleanups = [];
  29744. const getActualSize = () => {
  29745. var _a2;
  29746. const drawerEl = (_a2 = target2.value) == null ? void 0 : _a2.closest('[aria-modal="true"]');
  29747. if (drawerEl) {
  29748. return isHorizontal2.value ? drawerEl.offsetWidth : drawerEl.offsetHeight;
  29749. }
  29750. return 100;
  29751. };
  29752. watch(() => [props2.size, props2.resizable], () => {
  29753. hasStartedDragging.value = false;
  29754. startSize.value = 0;
  29755. offset3.value = 0;
  29756. onMouseUp();
  29757. });
  29758. const onMousedown = (e) => {
  29759. if (!props2.resizable)
  29760. return;
  29761. if (!hasStartedDragging.value) {
  29762. startSize.value = getActualSize();
  29763. hasStartedDragging.value = true;
  29764. }
  29765. startPos = [e.pageX, e.pageY];
  29766. isResizing.value = true;
  29767. cleanups.push(useEventListener(window, "mouseup", onMouseUp), useEventListener(window, "mousemove", onMouseMove));
  29768. };
  29769. const onMouseMove = (e) => {
  29770. const { pageX, pageY } = e;
  29771. const offsetX = pageX - startPos[0];
  29772. const offsetY = pageY - startPos[1];
  29773. offset3.value = isHorizontal2.value ? offsetX : offsetY;
  29774. };
  29775. const onMouseUp = () => {
  29776. startPos = [];
  29777. startSize.value = getSize.value;
  29778. offset3.value = 0;
  29779. isResizing.value = false;
  29780. cleanups.forEach((cleanup2) => cleanup2 == null ? void 0 : cleanup2());
  29781. cleanups = [];
  29782. };
  29783. const cleanup = useEventListener(target2, "mousedown", onMousedown);
  29784. onBeforeUnmount(() => {
  29785. cleanup();
  29786. onMouseUp();
  29787. });
  29788. return {
  29789. size: computed(() => {
  29790. return hasStartedDragging.value ? `${getSize.value}px` : addUnit(props2.size);
  29791. }),
  29792. isResizing,
  29793. isHorizontal: isHorizontal2
  29794. };
  29795. }
  29796. // node_modules/element-plus/es/components/drawer/src/drawer2.mjs
  29797. var __default__62 = defineComponent({
  29798. name: "ElDrawer",
  29799. inheritAttrs: false
  29800. });
  29801. var _sfc_main74 = defineComponent({
  29802. ...__default__62,
  29803. props: drawerProps,
  29804. emits: drawerEmits,
  29805. setup(__props, { expose }) {
  29806. const props2 = __props;
  29807. const slots = useSlots();
  29808. useDeprecated({
  29809. scope: "el-drawer",
  29810. from: "the title slot",
  29811. replacement: "the header slot",
  29812. version: "3.0.0",
  29813. ref: "https://element-plus.org/en-US/component/drawer.html#slots"
  29814. }, computed(() => !!slots.title));
  29815. const drawerRef = ref();
  29816. const focusStartRef = ref();
  29817. const draggerRef = ref();
  29818. const ns = useNamespace("drawer");
  29819. const { t } = useLocale();
  29820. const {
  29821. afterEnter,
  29822. afterLeave,
  29823. beforeLeave,
  29824. visible,
  29825. rendered,
  29826. titleId,
  29827. bodyId,
  29828. zIndex: zIndex2,
  29829. onModalClick,
  29830. onOpenAutoFocus,
  29831. onCloseAutoFocus,
  29832. onFocusoutPrevented,
  29833. onCloseRequested,
  29834. handleClose
  29835. } = useDialog(props2, drawerRef);
  29836. const { isHorizontal: isHorizontal2, size: size3, isResizing } = useResizable(props2, draggerRef);
  29837. const penetrable = computed(() => props2.modalPenetrable && !props2.modal);
  29838. expose({
  29839. handleClose,
  29840. afterEnter,
  29841. afterLeave
  29842. });
  29843. return (_ctx, _cache) => {
  29844. return openBlock(), createBlock(unref(ElTeleport), {
  29845. to: _ctx.appendTo,
  29846. disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
  29847. }, {
  29848. default: withCtx(() => [
  29849. createVNode(Transition, {
  29850. name: unref(ns).b("fade"),
  29851. onAfterEnter: unref(afterEnter),
  29852. onAfterLeave: unref(afterLeave),
  29853. onBeforeLeave: unref(beforeLeave),
  29854. persisted: ""
  29855. }, {
  29856. default: withCtx(() => {
  29857. var _a2;
  29858. return [
  29859. withDirectives(createVNode(unref(ElOverlay), {
  29860. mask: _ctx.modal,
  29861. "overlay-class": [
  29862. unref(ns).is("drawer"),
  29863. (_a2 = _ctx.modalClass) != null ? _a2 : "",
  29864. `${unref(ns).namespace.value}-modal-drawer`,
  29865. unref(ns).is("penetrable", unref(penetrable))
  29866. ],
  29867. "z-index": unref(zIndex2),
  29868. onClick: unref(onModalClick)
  29869. }, {
  29870. default: withCtx(() => [
  29871. createVNode(unref(ElFocusTrap), {
  29872. loop: "",
  29873. trapped: unref(visible),
  29874. "focus-trap-el": drawerRef.value,
  29875. "focus-start-el": focusStartRef.value,
  29876. onFocusAfterTrapped: unref(onOpenAutoFocus),
  29877. onFocusAfterReleased: unref(onCloseAutoFocus),
  29878. onFocusoutPrevented: unref(onFocusoutPrevented),
  29879. onReleaseRequested: unref(onCloseRequested)
  29880. }, {
  29881. default: withCtx(() => [
  29882. createBaseVNode("div", mergeProps({
  29883. ref_key: "drawerRef",
  29884. ref: drawerRef,
  29885. "aria-modal": "true",
  29886. "aria-label": _ctx.title || void 0,
  29887. "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
  29888. "aria-describedby": unref(bodyId)
  29889. }, _ctx.$attrs, {
  29890. class: [
  29891. unref(ns).b(),
  29892. _ctx.direction,
  29893. unref(visible) && "open",
  29894. unref(ns).is("dragging", unref(isResizing))
  29895. ],
  29896. style: { [unref(isHorizontal2) ? "width" : "height"]: unref(size3) },
  29897. role: "dialog",
  29898. onClick: withModifiers(() => {
  29899. }, ["stop"])
  29900. }), [
  29901. createBaseVNode("span", {
  29902. ref_key: "focusStartRef",
  29903. ref: focusStartRef,
  29904. class: normalizeClass(unref(ns).e("sr-focus")),
  29905. tabindex: "-1"
  29906. }, null, 2),
  29907. _ctx.withHeader ? (openBlock(), createElementBlock("header", {
  29908. key: 0,
  29909. class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
  29910. }, [
  29911. !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
  29912. key: 0,
  29913. close: unref(handleClose),
  29914. titleId: unref(titleId),
  29915. titleClass: unref(ns).e("title")
  29916. }, () => [
  29917. createBaseVNode("span", {
  29918. id: unref(titleId),
  29919. role: "heading",
  29920. "aria-level": _ctx.headerAriaLevel,
  29921. class: normalizeClass(unref(ns).e("title"))
  29922. }, toDisplayString(_ctx.title), 11, ["id", "aria-level"])
  29923. ]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
  29924. createCommentVNode(" DEPRECATED SLOT ")
  29925. ]),
  29926. _ctx.showClose ? (openBlock(), createElementBlock("button", {
  29927. key: 2,
  29928. "aria-label": unref(t)("el.drawer.close"),
  29929. class: normalizeClass(unref(ns).e("close-btn")),
  29930. type: "button",
  29931. onClick: unref(handleClose)
  29932. }, [
  29933. createVNode(unref(ElIcon), {
  29934. class: normalizeClass(unref(ns).e("close"))
  29935. }, {
  29936. default: withCtx(() => [
  29937. createVNode(unref(close_default))
  29938. ]),
  29939. _: 1
  29940. }, 8, ["class"])
  29941. ], 10, ["aria-label", "onClick"])) : createCommentVNode("v-if", true)
  29942. ], 2)) : createCommentVNode("v-if", true),
  29943. unref(rendered) ? (openBlock(), createElementBlock("div", {
  29944. key: 1,
  29945. id: unref(bodyId),
  29946. class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass])
  29947. }, [
  29948. renderSlot(_ctx.$slots, "default")
  29949. ], 10, ["id"])) : createCommentVNode("v-if", true),
  29950. _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
  29951. key: 2,
  29952. class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
  29953. }, [
  29954. renderSlot(_ctx.$slots, "footer")
  29955. ], 2)) : createCommentVNode("v-if", true),
  29956. _ctx.resizable ? (openBlock(), createElementBlock("div", {
  29957. key: 3,
  29958. ref_key: "draggerRef",
  29959. ref: draggerRef,
  29960. style: normalizeStyle({ zIndex: unref(zIndex2) }),
  29961. class: normalizeClass(unref(ns).e("dragger"))
  29962. }, null, 6)) : createCommentVNode("v-if", true)
  29963. ], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
  29964. ]),
  29965. _: 3
  29966. }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
  29967. ]),
  29968. _: 3
  29969. }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
  29970. [vShow, unref(visible)]
  29971. ])
  29972. ];
  29973. }),
  29974. _: 3
  29975. }, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
  29976. ]),
  29977. _: 3
  29978. }, 8, ["to", "disabled"]);
  29979. };
  29980. }
  29981. });
  29982. var Drawer = _export_sfc(_sfc_main74, [["__file", "drawer.vue"]]);
  29983. // node_modules/element-plus/es/components/drawer/index.mjs
  29984. var ElDrawer = withInstall(Drawer);
  29985. // node_modules/element-plus/es/components/collection/src/collection2.mjs
  29986. var _sfc_main75 = defineComponent({
  29987. inheritAttrs: false
  29988. });
  29989. function _sfc_render2(_ctx, _cache, $props, $setup, $data, $options) {
  29990. return renderSlot(_ctx.$slots, "default");
  29991. }
  29992. var Collection = _export_sfc(_sfc_main75, [["render", _sfc_render2], ["__file", "collection.vue"]]);
  29993. // node_modules/element-plus/es/components/collection/src/collection-item.mjs
  29994. var _sfc_main76 = defineComponent({
  29995. name: "ElCollectionItem",
  29996. inheritAttrs: false
  29997. });
  29998. function _sfc_render3(_ctx, _cache, $props, $setup, $data, $options) {
  29999. return renderSlot(_ctx.$slots, "default");
  30000. }
  30001. var CollectionItem = _export_sfc(_sfc_main76, [["render", _sfc_render3], ["__file", "collection-item.vue"]]);
  30002. // node_modules/element-plus/es/components/collection/src/collection.mjs
  30003. var COLLECTION_ITEM_SIGN = `data-el-collection-item`;
  30004. var createCollectionWithScope = (name) => {
  30005. const COLLECTION_NAME = `El${name}Collection`;
  30006. const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`;
  30007. const COLLECTION_INJECTION_KEY2 = Symbol(COLLECTION_NAME);
  30008. const COLLECTION_ITEM_INJECTION_KEY2 = Symbol(COLLECTION_ITEM_NAME);
  30009. const ElCollection2 = {
  30010. ...Collection,
  30011. name: COLLECTION_NAME,
  30012. setup() {
  30013. const collectionRef = ref();
  30014. const itemMap = /* @__PURE__ */ new Map();
  30015. const getItems = () => {
  30016. const collectionEl = unref(collectionRef);
  30017. if (!collectionEl)
  30018. return [];
  30019. const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));
  30020. const items = [...itemMap.values()];
  30021. return items.sort((a2, b2) => orderedNodes.indexOf(a2.ref) - orderedNodes.indexOf(b2.ref));
  30022. };
  30023. provide(COLLECTION_INJECTION_KEY2, {
  30024. itemMap,
  30025. getItems,
  30026. collectionRef
  30027. });
  30028. }
  30029. };
  30030. const ElCollectionItem2 = {
  30031. ...CollectionItem,
  30032. name: COLLECTION_ITEM_NAME,
  30033. setup(_2, { attrs }) {
  30034. const collectionItemRef = ref();
  30035. const collectionInjection = inject(COLLECTION_INJECTION_KEY2, void 0);
  30036. provide(COLLECTION_ITEM_INJECTION_KEY2, {
  30037. collectionItemRef
  30038. });
  30039. onMounted(() => {
  30040. const collectionItemEl = unref(collectionItemRef);
  30041. if (collectionItemEl) {
  30042. collectionInjection.itemMap.set(collectionItemEl, {
  30043. ref: collectionItemEl,
  30044. ...attrs
  30045. });
  30046. }
  30047. });
  30048. onBeforeUnmount(() => {
  30049. const collectionItemEl = unref(collectionItemRef);
  30050. collectionInjection.itemMap.delete(collectionItemEl);
  30051. });
  30052. }
  30053. };
  30054. return {
  30055. COLLECTION_INJECTION_KEY: COLLECTION_INJECTION_KEY2,
  30056. COLLECTION_ITEM_INJECTION_KEY: COLLECTION_ITEM_INJECTION_KEY2,
  30057. ElCollection: ElCollection2,
  30058. ElCollectionItem: ElCollectionItem2
  30059. };
  30060. };
  30061. // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.mjs
  30062. var rovingFocusGroupProps = buildProps({
  30063. style: { type: definePropType([String, Array, Object]) },
  30064. currentTabId: {
  30065. type: definePropType(String)
  30066. },
  30067. defaultCurrentTabId: String,
  30068. loop: Boolean,
  30069. dir: {
  30070. type: String,
  30071. values: ["ltr", "rtl"],
  30072. default: "ltr"
  30073. },
  30074. orientation: {
  30075. type: definePropType(String)
  30076. },
  30077. onBlur: Function,
  30078. onFocus: Function,
  30079. onMousedown: Function
  30080. });
  30081. var {
  30082. ElCollection,
  30083. ElCollectionItem,
  30084. COLLECTION_INJECTION_KEY,
  30085. COLLECTION_ITEM_INJECTION_KEY
  30086. } = createCollectionWithScope("RovingFocusGroup");
  30087. // node_modules/element-plus/es/components/roving-focus-group/src/tokens.mjs
  30088. var ROVING_FOCUS_GROUP_INJECTION_KEY = Symbol("elRovingFocusGroup");
  30089. var ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY = Symbol("elRovingFocusGroupItem");
  30090. // node_modules/element-plus/es/components/roving-focus-group/src/utils.mjs
  30091. var MAP_KEY_TO_FOCUS_INTENT = {
  30092. ArrowLeft: "prev",
  30093. ArrowUp: "prev",
  30094. ArrowRight: "next",
  30095. ArrowDown: "next",
  30096. PageUp: "first",
  30097. Home: "first",
  30098. PageDown: "last",
  30099. End: "last"
  30100. };
  30101. var getDirectionAwareKey = (key, dir) => {
  30102. if (dir !== "rtl")
  30103. return key;
  30104. switch (key) {
  30105. case EVENT_CODE.right:
  30106. return EVENT_CODE.left;
  30107. case EVENT_CODE.left:
  30108. return EVENT_CODE.right;
  30109. default:
  30110. return key;
  30111. }
  30112. };
  30113. var getFocusIntent = (event, orientation, dir) => {
  30114. const code = getEventCode(event);
  30115. const key = getDirectionAwareKey(code, dir);
  30116. if (orientation === "vertical" && [EVENT_CODE.left, EVENT_CODE.right].includes(key))
  30117. return void 0;
  30118. if (orientation === "horizontal" && [EVENT_CODE.up, EVENT_CODE.down].includes(key))
  30119. return void 0;
  30120. return MAP_KEY_TO_FOCUS_INTENT[key];
  30121. };
  30122. var reorderArray = (array4, atIdx) => {
  30123. return array4.map((_2, idx) => array4[(idx + atIdx) % array4.length]);
  30124. };
  30125. var focusFirst = (elements) => {
  30126. const { activeElement: prevActive } = document;
  30127. for (const element of elements) {
  30128. if (element === prevActive)
  30129. return;
  30130. element.focus();
  30131. if (prevActive !== document.activeElement)
  30132. return;
  30133. }
  30134. };
  30135. // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.mjs
  30136. var CURRENT_TAB_ID_CHANGE_EVT = "currentTabIdChange";
  30137. var ENTRY_FOCUS_EVT = "rovingFocusGroup.entryFocus";
  30138. var EVT_OPTS = { bubbles: false, cancelable: true };
  30139. var _sfc_main77 = defineComponent({
  30140. name: "ElRovingFocusGroupImpl",
  30141. inheritAttrs: false,
  30142. props: rovingFocusGroupProps,
  30143. emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
  30144. setup(props2, { emit }) {
  30145. var _a2;
  30146. const currentTabbedId = ref((_a2 = props2.currentTabId || props2.defaultCurrentTabId) != null ? _a2 : null);
  30147. const isBackingOut = ref(false);
  30148. const isClickFocus = ref(false);
  30149. const rovingFocusGroupRef = ref();
  30150. const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);
  30151. const rovingFocusGroupRootStyle = computed(() => {
  30152. return [
  30153. {
  30154. outline: "none"
  30155. },
  30156. props2.style
  30157. ];
  30158. });
  30159. const onItemFocus = (tabbedId) => {
  30160. emit(CURRENT_TAB_ID_CHANGE_EVT, tabbedId);
  30161. };
  30162. const onItemShiftTab = () => {
  30163. isBackingOut.value = true;
  30164. };
  30165. const onMousedown = composeEventHandlers((e) => {
  30166. var _a22;
  30167. (_a22 = props2.onMousedown) == null ? void 0 : _a22.call(props2, e);
  30168. }, () => {
  30169. isClickFocus.value = true;
  30170. });
  30171. const onFocus = composeEventHandlers((e) => {
  30172. var _a22;
  30173. (_a22 = props2.onFocus) == null ? void 0 : _a22.call(props2, e);
  30174. }, (e) => {
  30175. const isKeyboardFocus = !unref(isClickFocus);
  30176. const { target: target2, currentTarget } = e;
  30177. if (target2 === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {
  30178. const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
  30179. currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
  30180. if (!entryFocusEvt.defaultPrevented) {
  30181. const items = getItems().filter((item) => item.focusable);
  30182. const activeItem = items.find((item) => item.active);
  30183. const currentItem = items.find((item) => item.id === unref(currentTabbedId));
  30184. const candidates = [activeItem, currentItem, ...items].filter(Boolean);
  30185. const candidateNodes = candidates.map((item) => item.ref);
  30186. focusFirst(candidateNodes);
  30187. }
  30188. }
  30189. isClickFocus.value = false;
  30190. });
  30191. const onBlur = composeEventHandlers((e) => {
  30192. var _a22;
  30193. (_a22 = props2.onBlur) == null ? void 0 : _a22.call(props2, e);
  30194. }, () => {
  30195. isBackingOut.value = false;
  30196. });
  30197. const handleEntryFocus = (...args) => {
  30198. emit("entryFocus", ...args);
  30199. };
  30200. const onKeydown = (e) => {
  30201. const focusIntent = getFocusIntent(e);
  30202. if (focusIntent) {
  30203. e.preventDefault();
  30204. const items = getItems().filter((item) => item.focusable);
  30205. let elements = items.map((item) => item.ref);
  30206. switch (focusIntent) {
  30207. case "last": {
  30208. elements.reverse();
  30209. break;
  30210. }
  30211. case "prev":
  30212. case "next": {
  30213. if (focusIntent === "prev") {
  30214. elements.reverse();
  30215. }
  30216. const currentIdx = elements.indexOf(e.currentTarget);
  30217. elements = props2.loop ? reorderArray(elements, currentIdx + 1) : elements.slice(currentIdx + 1);
  30218. break;
  30219. }
  30220. }
  30221. nextTick(() => {
  30222. focusFirst(elements);
  30223. });
  30224. }
  30225. };
  30226. provide(ROVING_FOCUS_GROUP_INJECTION_KEY, {
  30227. currentTabbedId: readonly(currentTabbedId),
  30228. loop: toRef(props2, "loop"),
  30229. tabIndex: computed(() => {
  30230. return unref(isBackingOut) ? -1 : 0;
  30231. }),
  30232. rovingFocusGroupRef,
  30233. rovingFocusGroupRootStyle,
  30234. orientation: toRef(props2, "orientation"),
  30235. dir: toRef(props2, "dir"),
  30236. onItemFocus,
  30237. onItemShiftTab,
  30238. onBlur,
  30239. onFocus,
  30240. onMousedown,
  30241. onKeydown
  30242. });
  30243. watch(() => props2.currentTabId, (val) => {
  30244. currentTabbedId.value = val != null ? val : null;
  30245. });
  30246. useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
  30247. }
  30248. });
  30249. function _sfc_render4(_ctx, _cache, $props, $setup, $data, $options) {
  30250. return renderSlot(_ctx.$slots, "default");
  30251. }
  30252. var ElRovingFocusGroupImpl = _export_sfc(_sfc_main77, [["render", _sfc_render4], ["__file", "roving-focus-group-impl.vue"]]);
  30253. // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.mjs
  30254. var _sfc_main78 = defineComponent({
  30255. name: "ElRovingFocusGroup",
  30256. components: {
  30257. ElFocusGroupCollection: ElCollection,
  30258. ElRovingFocusGroupImpl
  30259. }
  30260. });
  30261. function _sfc_render5(_ctx, _cache, $props, $setup, $data, $options) {
  30262. const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
  30263. const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
  30264. return openBlock(), createBlock(_component_el_focus_group_collection, null, {
  30265. default: withCtx(() => [
  30266. createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
  30267. default: withCtx(() => [
  30268. renderSlot(_ctx.$slots, "default")
  30269. ]),
  30270. _: 3
  30271. }, 16)
  30272. ]),
  30273. _: 3
  30274. });
  30275. }
  30276. var ElRovingFocusGroup = _export_sfc(_sfc_main78, [["render", _sfc_render5], ["__file", "roving-focus-group.vue"]]);
  30277. // node_modules/element-plus/es/components/dropdown/src/dropdown.mjs
  30278. var dropdownProps = buildProps({
  30279. trigger: {
  30280. ...useTooltipTriggerProps.trigger,
  30281. type: definePropType([
  30282. String,
  30283. Array
  30284. ])
  30285. },
  30286. triggerKeys: {
  30287. type: definePropType(Array),
  30288. default: () => [
  30289. EVENT_CODE.enter,
  30290. EVENT_CODE.numpadEnter,
  30291. EVENT_CODE.space,
  30292. EVENT_CODE.down
  30293. ]
  30294. },
  30295. virtualTriggering: useTooltipTriggerProps.virtualTriggering,
  30296. virtualRef: useTooltipTriggerProps.virtualRef,
  30297. effect: {
  30298. ...useTooltipContentProps.effect,
  30299. default: "light"
  30300. },
  30301. type: {
  30302. type: definePropType(String)
  30303. },
  30304. placement: {
  30305. type: definePropType(String),
  30306. default: "bottom"
  30307. },
  30308. popperOptions: {
  30309. type: definePropType(Object),
  30310. default: () => ({})
  30311. },
  30312. id: String,
  30313. size: {
  30314. type: String,
  30315. default: ""
  30316. },
  30317. splitButton: Boolean,
  30318. hideOnClick: {
  30319. type: Boolean,
  30320. default: true
  30321. },
  30322. loop: {
  30323. type: Boolean,
  30324. default: true
  30325. },
  30326. showArrow: {
  30327. type: Boolean,
  30328. default: true
  30329. },
  30330. showTimeout: {
  30331. type: Number,
  30332. default: 150
  30333. },
  30334. hideTimeout: {
  30335. type: Number,
  30336. default: 150
  30337. },
  30338. tabindex: {
  30339. type: definePropType([Number, String]),
  30340. default: 0
  30341. },
  30342. maxHeight: {
  30343. type: definePropType([Number, String]),
  30344. default: ""
  30345. },
  30346. popperClass: useTooltipContentProps.popperClass,
  30347. popperStyle: useTooltipContentProps.popperStyle,
  30348. disabled: Boolean,
  30349. role: {
  30350. type: String,
  30351. values: roleTypes,
  30352. default: "menu"
  30353. },
  30354. buttonProps: {
  30355. type: definePropType(Object)
  30356. },
  30357. teleported: useTooltipContentProps.teleported,
  30358. persistent: {
  30359. type: Boolean,
  30360. default: true
  30361. }
  30362. });
  30363. var dropdownItemProps = buildProps({
  30364. command: {
  30365. type: [Object, String, Number],
  30366. default: () => ({})
  30367. },
  30368. disabled: Boolean,
  30369. divided: Boolean,
  30370. textValue: String,
  30371. icon: {
  30372. type: iconPropType
  30373. }
  30374. });
  30375. var dropdownMenuProps = buildProps({
  30376. onKeydown: { type: definePropType(Function) }
  30377. });
  30378. var FIRST_KEYS = [
  30379. EVENT_CODE.down,
  30380. EVENT_CODE.pageDown,
  30381. EVENT_CODE.home
  30382. ];
  30383. var LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end];
  30384. var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
  30385. // node_modules/element-plus/es/components/dropdown/src/tokens.mjs
  30386. var DROPDOWN_INJECTION_KEY = Symbol("elDropdown");
  30387. var DROPDOWN_INSTANCE_INJECTION_KEY = "elDropdown";
  30388. // node_modules/element-plus/es/components/dropdown/src/dropdown2.mjs
  30389. var { ButtonGroup: ElButtonGroup2 } = ElButton;
  30390. var _sfc_main79 = defineComponent({
  30391. name: "ElDropdown",
  30392. components: {
  30393. ElButton,
  30394. ElButtonGroup: ElButtonGroup2,
  30395. ElScrollbar,
  30396. ElTooltip,
  30397. ElRovingFocusGroup,
  30398. ElOnlyChild: OnlyChild,
  30399. ElIcon,
  30400. ArrowDown: arrow_down_default
  30401. },
  30402. props: dropdownProps,
  30403. emits: ["visible-change", "click", "command"],
  30404. setup(props2, { emit }) {
  30405. const _instance = getCurrentInstance();
  30406. const ns = useNamespace("dropdown");
  30407. const { t } = useLocale();
  30408. const triggeringElementRef = ref();
  30409. const referenceElementRef = ref();
  30410. const popperRef = ref();
  30411. const contentRef = ref();
  30412. const scrollbar = ref(null);
  30413. const currentTabId = ref(null);
  30414. const isUsingKeyboard = ref(false);
  30415. const wrapStyle = computed(() => ({
  30416. maxHeight: addUnit(props2.maxHeight)
  30417. }));
  30418. const dropdownTriggerKls = computed(() => [ns.m(dropdownSize.value)]);
  30419. const trigger = computed(() => castArray_default(props2.trigger));
  30420. const defaultTriggerId = useId().value;
  30421. const triggerId = computed(() => props2.id || defaultTriggerId);
  30422. function handleClick() {
  30423. var _a2;
  30424. (_a2 = popperRef.value) == null ? void 0 : _a2.onClose(void 0, 0);
  30425. }
  30426. function handleClose() {
  30427. var _a2;
  30428. (_a2 = popperRef.value) == null ? void 0 : _a2.onClose();
  30429. }
  30430. function handleOpen() {
  30431. var _a2;
  30432. (_a2 = popperRef.value) == null ? void 0 : _a2.onOpen();
  30433. }
  30434. const dropdownSize = useFormSize();
  30435. function commandHandler(...args) {
  30436. emit("command", ...args);
  30437. }
  30438. function onItemEnter() {
  30439. }
  30440. function onItemLeave() {
  30441. const contentEl = unref(contentRef);
  30442. trigger.value.includes("hover") && (contentEl == null ? void 0 : contentEl.focus({
  30443. preventScroll: true
  30444. }));
  30445. currentTabId.value = null;
  30446. }
  30447. function handleCurrentTabIdChange(id) {
  30448. currentTabId.value = id;
  30449. }
  30450. function handleBeforeShowTooltip() {
  30451. emit("visible-change", true);
  30452. }
  30453. function handleShowTooltip(event) {
  30454. var _a2;
  30455. isUsingKeyboard.value = (event == null ? void 0 : event.type) === "keydown";
  30456. (_a2 = contentRef.value) == null ? void 0 : _a2.focus();
  30457. }
  30458. function handleBeforeHideTooltip() {
  30459. emit("visible-change", false);
  30460. }
  30461. provide(DROPDOWN_INJECTION_KEY, {
  30462. contentRef,
  30463. role: computed(() => props2.role),
  30464. triggerId,
  30465. isUsingKeyboard,
  30466. onItemEnter,
  30467. onItemLeave,
  30468. handleClose
  30469. });
  30470. provide(DROPDOWN_INSTANCE_INJECTION_KEY, {
  30471. instance: _instance,
  30472. dropdownSize,
  30473. handleClick,
  30474. commandHandler,
  30475. trigger: toRef(props2, "trigger"),
  30476. hideOnClick: toRef(props2, "hideOnClick")
  30477. });
  30478. const handlerMainButtonClick = (event) => {
  30479. emit("click", event);
  30480. };
  30481. return {
  30482. t,
  30483. ns,
  30484. scrollbar,
  30485. wrapStyle,
  30486. dropdownTriggerKls,
  30487. dropdownSize,
  30488. triggerId,
  30489. currentTabId,
  30490. handleCurrentTabIdChange,
  30491. handlerMainButtonClick,
  30492. handleClose,
  30493. handleOpen,
  30494. handleBeforeShowTooltip,
  30495. handleShowTooltip,
  30496. handleBeforeHideTooltip,
  30497. popperRef,
  30498. contentRef,
  30499. triggeringElementRef,
  30500. referenceElementRef
  30501. };
  30502. }
  30503. });
  30504. function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
  30505. var _a2;
  30506. const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
  30507. const _component_el_scrollbar = resolveComponent("el-scrollbar");
  30508. const _component_el_only_child = resolveComponent("el-only-child");
  30509. const _component_el_tooltip = resolveComponent("el-tooltip");
  30510. const _component_el_button = resolveComponent("el-button");
  30511. const _component_arrow_down = resolveComponent("arrow-down");
  30512. const _component_el_icon = resolveComponent("el-icon");
  30513. const _component_el_button_group = resolveComponent("el-button-group");
  30514. return openBlock(), createElementBlock("div", {
  30515. class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("disabled", _ctx.disabled)])
  30516. }, [
  30517. createVNode(_component_el_tooltip, {
  30518. ref: "popperRef",
  30519. role: _ctx.role,
  30520. effect: _ctx.effect,
  30521. "fallback-placements": ["bottom", "top"],
  30522. "popper-options": _ctx.popperOptions,
  30523. "gpu-acceleration": false,
  30524. placement: _ctx.placement,
  30525. "popper-class": [_ctx.ns.e("popper"), _ctx.popperClass],
  30526. "popper-style": _ctx.popperStyle,
  30527. trigger: _ctx.trigger,
  30528. "trigger-keys": _ctx.triggerKeys,
  30529. "trigger-target-el": _ctx.contentRef,
  30530. "show-arrow": _ctx.showArrow,
  30531. "show-after": _ctx.trigger === "hover" ? _ctx.showTimeout : 0,
  30532. "hide-after": _ctx.trigger === "hover" ? _ctx.hideTimeout : 0,
  30533. "virtual-ref": (_a2 = _ctx.virtualRef) != null ? _a2 : _ctx.triggeringElementRef,
  30534. "virtual-triggering": _ctx.virtualTriggering || _ctx.splitButton,
  30535. disabled: _ctx.disabled,
  30536. transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
  30537. teleported: _ctx.teleported,
  30538. pure: "",
  30539. "focus-on-target": "",
  30540. persistent: _ctx.persistent,
  30541. onBeforeShow: _ctx.handleBeforeShowTooltip,
  30542. onShow: _ctx.handleShowTooltip,
  30543. onBeforeHide: _ctx.handleBeforeHideTooltip
  30544. }, createSlots({
  30545. content: withCtx(() => [
  30546. createVNode(_component_el_scrollbar, {
  30547. ref: "scrollbar",
  30548. "wrap-style": _ctx.wrapStyle,
  30549. tag: "div",
  30550. "view-class": _ctx.ns.e("list")
  30551. }, {
  30552. default: withCtx(() => [
  30553. createVNode(_component_el_roving_focus_group, {
  30554. loop: _ctx.loop,
  30555. "current-tab-id": _ctx.currentTabId,
  30556. orientation: "horizontal",
  30557. onCurrentTabIdChange: _ctx.handleCurrentTabIdChange
  30558. }, {
  30559. default: withCtx(() => [
  30560. renderSlot(_ctx.$slots, "dropdown")
  30561. ]),
  30562. _: 3
  30563. }, 8, ["loop", "current-tab-id", "onCurrentTabIdChange"])
  30564. ]),
  30565. _: 3
  30566. }, 8, ["wrap-style", "view-class"])
  30567. ]),
  30568. _: 2
  30569. }, [
  30570. !_ctx.splitButton ? {
  30571. name: "default",
  30572. fn: withCtx(() => [
  30573. createVNode(_component_el_only_child, {
  30574. id: _ctx.triggerId,
  30575. ref: "triggeringElementRef",
  30576. role: "button",
  30577. tabindex: _ctx.tabindex
  30578. }, {
  30579. default: withCtx(() => [
  30580. renderSlot(_ctx.$slots, "default")
  30581. ]),
  30582. _: 3
  30583. }, 8, ["id", "tabindex"])
  30584. ])
  30585. } : void 0
  30586. ]), 1032, ["role", "effect", "popper-options", "placement", "popper-class", "popper-style", "trigger", "trigger-keys", "trigger-target-el", "show-arrow", "show-after", "hide-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "persistent", "onBeforeShow", "onShow", "onBeforeHide"]),
  30587. _ctx.splitButton ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {
  30588. default: withCtx(() => [
  30589. createVNode(_component_el_button, mergeProps({ ref: "referenceElementRef" }, _ctx.buttonProps, {
  30590. size: _ctx.dropdownSize,
  30591. type: _ctx.type,
  30592. disabled: _ctx.disabled,
  30593. tabindex: _ctx.tabindex,
  30594. onClick: _ctx.handlerMainButtonClick
  30595. }), {
  30596. default: withCtx(() => [
  30597. renderSlot(_ctx.$slots, "default")
  30598. ]),
  30599. _: 3
  30600. }, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
  30601. createVNode(_component_el_button, mergeProps({
  30602. id: _ctx.triggerId,
  30603. ref: "triggeringElementRef"
  30604. }, _ctx.buttonProps, {
  30605. role: "button",
  30606. size: _ctx.dropdownSize,
  30607. type: _ctx.type,
  30608. class: _ctx.ns.e("caret-button"),
  30609. disabled: _ctx.disabled,
  30610. tabindex: _ctx.tabindex,
  30611. "aria-label": _ctx.t("el.dropdown.toggleDropdown")
  30612. }), {
  30613. default: withCtx(() => [
  30614. createVNode(_component_el_icon, {
  30615. class: normalizeClass(_ctx.ns.e("icon"))
  30616. }, {
  30617. default: withCtx(() => [
  30618. createVNode(_component_arrow_down)
  30619. ]),
  30620. _: 1
  30621. }, 8, ["class"])
  30622. ]),
  30623. _: 1
  30624. }, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
  30625. ]),
  30626. _: 3
  30627. })) : createCommentVNode("v-if", true)
  30628. ], 2);
  30629. }
  30630. var Dropdown = _export_sfc(_sfc_main79, [["render", _sfc_render6], ["__file", "dropdown.vue"]]);
  30631. // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.mjs
  30632. var _sfc_main80 = defineComponent({
  30633. components: {
  30634. ElRovingFocusCollectionItem: ElCollectionItem
  30635. },
  30636. props: {
  30637. focusable: {
  30638. type: Boolean,
  30639. default: true
  30640. },
  30641. active: Boolean
  30642. },
  30643. emits: ["mousedown", "focus", "keydown"],
  30644. setup(props2, { emit }) {
  30645. const { currentTabbedId, onItemFocus, onItemShiftTab, onKeydown } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
  30646. const id = useId();
  30647. const rovingFocusGroupItemRef = ref();
  30648. const handleMousedown = composeEventHandlers((e) => {
  30649. emit("mousedown", e);
  30650. }, (e) => {
  30651. if (!props2.focusable) {
  30652. e.preventDefault();
  30653. } else {
  30654. onItemFocus(unref(id));
  30655. }
  30656. });
  30657. const handleFocus = composeEventHandlers((e) => {
  30658. emit("focus", e);
  30659. }, () => {
  30660. onItemFocus(unref(id));
  30661. });
  30662. const handleKeydown = composeEventHandlers((e) => {
  30663. emit("keydown", e);
  30664. }, (e) => {
  30665. const { shiftKey, target: target2, currentTarget } = e;
  30666. const code = getEventCode(e);
  30667. if (code === EVENT_CODE.tab && shiftKey) {
  30668. onItemShiftTab();
  30669. return;
  30670. }
  30671. if (target2 !== currentTarget)
  30672. return;
  30673. onKeydown(e);
  30674. });
  30675. const isCurrentTab = computed(() => currentTabbedId.value === unref(id));
  30676. provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, {
  30677. rovingFocusGroupItemRef,
  30678. tabIndex: computed(() => unref(isCurrentTab) ? 0 : -1),
  30679. handleMousedown,
  30680. handleFocus,
  30681. handleKeydown
  30682. });
  30683. return {
  30684. id,
  30685. handleKeydown,
  30686. handleFocus,
  30687. handleMousedown
  30688. };
  30689. }
  30690. });
  30691. function _sfc_render7(_ctx, _cache, $props, $setup, $data, $options) {
  30692. const _component_el_roving_focus_collection_item = resolveComponent("el-roving-focus-collection-item");
  30693. return openBlock(), createBlock(_component_el_roving_focus_collection_item, {
  30694. id: _ctx.id,
  30695. focusable: _ctx.focusable,
  30696. active: _ctx.active
  30697. }, {
  30698. default: withCtx(() => [
  30699. renderSlot(_ctx.$slots, "default")
  30700. ]),
  30701. _: 3
  30702. }, 8, ["id", "focusable", "active"]);
  30703. }
  30704. var ElRovingFocusItem = _export_sfc(_sfc_main80, [["render", _sfc_render7], ["__file", "roving-focus-item.vue"]]);
  30705. // node_modules/element-plus/es/components/dropdown/src/dropdown-item-impl.mjs
  30706. var _sfc_main81 = defineComponent({
  30707. name: "DropdownItemImpl",
  30708. components: {
  30709. ElIcon
  30710. },
  30711. props: dropdownItemProps,
  30712. emits: ["pointermove", "pointerleave", "click", "clickimpl"],
  30713. setup(_2, { emit }) {
  30714. const ns = useNamespace("dropdown");
  30715. const { role: menuRole } = inject(DROPDOWN_INJECTION_KEY, void 0);
  30716. const { collectionItemRef: rovingFocusCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY, void 0);
  30717. const {
  30718. rovingFocusGroupItemRef,
  30719. tabIndex,
  30720. handleFocus,
  30721. handleKeydown: handleItemKeydown,
  30722. handleMousedown
  30723. } = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, void 0);
  30724. const itemRef = composeRefs(rovingFocusCollectionItemRef, rovingFocusGroupItemRef);
  30725. const role = computed(() => {
  30726. if (menuRole.value === "menu") {
  30727. return "menuitem";
  30728. } else if (menuRole.value === "navigation") {
  30729. return "link";
  30730. }
  30731. return "button";
  30732. });
  30733. const handleKeydown = composeEventHandlers((e) => {
  30734. const code = getEventCode(e);
  30735. if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(code)) {
  30736. e.preventDefault();
  30737. e.stopImmediatePropagation();
  30738. emit("clickimpl", e);
  30739. return true;
  30740. }
  30741. }, handleItemKeydown);
  30742. return {
  30743. ns,
  30744. itemRef,
  30745. dataset: {
  30746. [COLLECTION_ITEM_SIGN]: ""
  30747. },
  30748. role,
  30749. tabIndex,
  30750. handleFocus,
  30751. handleKeydown,
  30752. handleMousedown
  30753. };
  30754. }
  30755. });
  30756. function _sfc_render8(_ctx, _cache, $props, $setup, $data, $options) {
  30757. const _component_el_icon = resolveComponent("el-icon");
  30758. return openBlock(), createElementBlock(Fragment, null, [
  30759. _ctx.divided ? (openBlock(), createElementBlock("li", {
  30760. key: 0,
  30761. role: "separator",
  30762. class: normalizeClass(_ctx.ns.bem("menu", "item", "divided"))
  30763. }, null, 2)) : createCommentVNode("v-if", true),
  30764. createBaseVNode("li", mergeProps({ ref: _ctx.itemRef }, { ..._ctx.dataset, ..._ctx.$attrs }, {
  30765. "aria-disabled": _ctx.disabled,
  30766. class: [_ctx.ns.be("menu", "item"), _ctx.ns.is("disabled", _ctx.disabled)],
  30767. tabindex: _ctx.tabIndex,
  30768. role: _ctx.role,
  30769. onClick: (e) => _ctx.$emit("clickimpl", e),
  30770. onFocus: _ctx.handleFocus,
  30771. onKeydown: withModifiers(_ctx.handleKeydown, ["self"]),
  30772. onMousedown: _ctx.handleMousedown,
  30773. onPointermove: (e) => _ctx.$emit("pointermove", e),
  30774. onPointerleave: (e) => _ctx.$emit("pointerleave", e)
  30775. }), [
  30776. _ctx.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
  30777. default: withCtx(() => [
  30778. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  30779. ]),
  30780. _: 1
  30781. })) : createCommentVNode("v-if", true),
  30782. renderSlot(_ctx.$slots, "default")
  30783. ], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
  30784. ], 64);
  30785. }
  30786. var ElDropdownItemImpl = _export_sfc(_sfc_main81, [["render", _sfc_render8], ["__file", "dropdown-item-impl.vue"]]);
  30787. // node_modules/element-plus/es/components/dropdown/src/useDropdown.mjs
  30788. var useDropdown = () => {
  30789. const elDropdown = inject(DROPDOWN_INSTANCE_INJECTION_KEY, {});
  30790. const _elDropdownSize = computed(() => elDropdown == null ? void 0 : elDropdown.dropdownSize);
  30791. return {
  30792. elDropdown,
  30793. _elDropdownSize
  30794. };
  30795. };
  30796. // node_modules/element-plus/es/components/dropdown/src/dropdown-item.mjs
  30797. var _sfc_main82 = defineComponent({
  30798. name: "ElDropdownItem",
  30799. components: {
  30800. ElRovingFocusItem,
  30801. ElDropdownItemImpl
  30802. },
  30803. inheritAttrs: false,
  30804. props: dropdownItemProps,
  30805. emits: ["pointermove", "pointerleave", "click"],
  30806. setup(props2, { emit, attrs }) {
  30807. const { elDropdown } = useDropdown();
  30808. const _instance = getCurrentInstance();
  30809. const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);
  30810. const handlePointerMove = composeEventHandlers((e) => {
  30811. emit("pointermove", e);
  30812. return e.defaultPrevented;
  30813. }, whenMouse((e) => {
  30814. if (props2.disabled) {
  30815. onItemLeave(e);
  30816. return;
  30817. }
  30818. const target2 = e.currentTarget;
  30819. if (target2 === document.activeElement || target2.contains(document.activeElement)) {
  30820. return;
  30821. }
  30822. onItemEnter(e);
  30823. if (!e.defaultPrevented) {
  30824. target2 == null ? void 0 : target2.focus({
  30825. preventScroll: true
  30826. });
  30827. }
  30828. }));
  30829. const handlePointerLeave = composeEventHandlers((e) => {
  30830. emit("pointerleave", e);
  30831. return e.defaultPrevented;
  30832. }, whenMouse(onItemLeave));
  30833. const handleClick = composeEventHandlers((e) => {
  30834. if (props2.disabled) {
  30835. return;
  30836. }
  30837. emit("click", e);
  30838. return e.type !== "keydown" && e.defaultPrevented;
  30839. }, (e) => {
  30840. var _a2, _b, _c;
  30841. if (props2.disabled) {
  30842. e.stopImmediatePropagation();
  30843. return;
  30844. }
  30845. if ((_a2 = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a2.value) {
  30846. (_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);
  30847. }
  30848. (_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props2.command, _instance, e);
  30849. });
  30850. const propsAndAttrs = computed(() => ({ ...props2, ...attrs }));
  30851. return {
  30852. handleClick,
  30853. handlePointerMove,
  30854. handlePointerLeave,
  30855. propsAndAttrs
  30856. };
  30857. }
  30858. });
  30859. function _sfc_render9(_ctx, _cache, $props, $setup, $data, $options) {
  30860. const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
  30861. const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
  30862. return openBlock(), createBlock(_component_el_roving_focus_item, {
  30863. focusable: !_ctx.disabled
  30864. }, {
  30865. default: withCtx(() => [
  30866. createVNode(_component_el_dropdown_item_impl, mergeProps(_ctx.propsAndAttrs, {
  30867. onPointerleave: _ctx.handlePointerLeave,
  30868. onPointermove: _ctx.handlePointerMove,
  30869. onClickimpl: _ctx.handleClick
  30870. }), {
  30871. default: withCtx(() => [
  30872. renderSlot(_ctx.$slots, "default")
  30873. ]),
  30874. _: 3
  30875. }, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
  30876. ]),
  30877. _: 3
  30878. }, 8, ["focusable"]);
  30879. }
  30880. var DropdownItem = _export_sfc(_sfc_main82, [["render", _sfc_render9], ["__file", "dropdown-item.vue"]]);
  30881. // node_modules/element-plus/es/components/dropdown/src/dropdown-menu.mjs
  30882. var _sfc_main83 = defineComponent({
  30883. name: "ElDropdownMenu",
  30884. props: dropdownMenuProps,
  30885. setup(props2) {
  30886. const ns = useNamespace("dropdown");
  30887. const { _elDropdownSize } = useDropdown();
  30888. const size3 = _elDropdownSize.value;
  30889. const { contentRef, role, triggerId, isUsingKeyboard, handleClose } = inject(DROPDOWN_INJECTION_KEY, void 0);
  30890. const {
  30891. rovingFocusGroupRef,
  30892. rovingFocusGroupRootStyle,
  30893. onBlur,
  30894. onFocus,
  30895. onKeydown,
  30896. onMousedown
  30897. } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
  30898. const { collectionRef: rovingFocusGroupCollectionRef } = inject(COLLECTION_INJECTION_KEY, void 0);
  30899. const dropdownKls = computed(() => {
  30900. return [ns.b("menu"), ns.bm("menu", size3 == null ? void 0 : size3.value)];
  30901. });
  30902. const dropdownListWrapperRef = composeRefs(contentRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
  30903. const handleKeydown = composeEventHandlers((e) => {
  30904. var _a2;
  30905. (_a2 = props2.onKeydown) == null ? void 0 : _a2.call(props2, e);
  30906. }, (e) => {
  30907. const { currentTarget, target: target2 } = e;
  30908. const code = getEventCode(e);
  30909. currentTarget.contains(target2);
  30910. if (EVENT_CODE.tab === code) {
  30911. return handleClose();
  30912. }
  30913. onKeydown(e);
  30914. });
  30915. function handleFocus(e) {
  30916. isUsingKeyboard.value && onFocus(e);
  30917. }
  30918. return {
  30919. size: size3,
  30920. rovingFocusGroupRootStyle,
  30921. dropdownKls,
  30922. role,
  30923. triggerId,
  30924. dropdownListWrapperRef,
  30925. handleKeydown,
  30926. onBlur,
  30927. handleFocus,
  30928. onMousedown
  30929. };
  30930. }
  30931. });
  30932. function _sfc_render10(_ctx, _cache, $props, $setup, $data, $options) {
  30933. return openBlock(), createElementBlock("ul", {
  30934. ref: _ctx.dropdownListWrapperRef,
  30935. class: normalizeClass(_ctx.dropdownKls),
  30936. style: normalizeStyle(_ctx.rovingFocusGroupRootStyle),
  30937. tabindex: -1,
  30938. role: _ctx.role,
  30939. "aria-labelledby": _ctx.triggerId,
  30940. onFocusin: _ctx.handleFocus,
  30941. onFocusout: _ctx.onBlur,
  30942. onKeydown: withModifiers(_ctx.handleKeydown, ["self"]),
  30943. onMousedown: withModifiers(_ctx.onMousedown, ["self"])
  30944. }, [
  30945. renderSlot(_ctx.$slots, "default")
  30946. ], 46, ["role", "aria-labelledby", "onFocusin", "onFocusout", "onKeydown", "onMousedown"]);
  30947. }
  30948. var DropdownMenu = _export_sfc(_sfc_main83, [["render", _sfc_render10], ["__file", "dropdown-menu.vue"]]);
  30949. // node_modules/element-plus/es/components/dropdown/index.mjs
  30950. var ElDropdown = withInstall(Dropdown, {
  30951. DropdownItem,
  30952. DropdownMenu
  30953. });
  30954. var ElDropdownItem = withNoopInstall(DropdownItem);
  30955. var ElDropdownMenu = withNoopInstall(DropdownMenu);
  30956. // node_modules/element-plus/es/components/empty/src/img-empty.mjs
  30957. var __default__63 = defineComponent({
  30958. name: "ImgEmpty"
  30959. });
  30960. var _sfc_main84 = defineComponent({
  30961. ...__default__63,
  30962. setup(__props) {
  30963. const ns = useNamespace("empty");
  30964. const id = useId();
  30965. return (_ctx, _cache) => {
  30966. return openBlock(), createElementBlock("svg", {
  30967. viewBox: "0 0 79 86",
  30968. version: "1.1",
  30969. xmlns: "http://www.w3.org/2000/svg",
  30970. "xmlns:xlink": "http://www.w3.org/1999/xlink"
  30971. }, [
  30972. createBaseVNode("defs", null, [
  30973. createBaseVNode("linearGradient", {
  30974. id: `linearGradient-1-${unref(id)}`,
  30975. x1: "38.8503086%",
  30976. y1: "0%",
  30977. x2: "61.1496914%",
  30978. y2: "100%"
  30979. }, [
  30980. createBaseVNode("stop", {
  30981. "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-1")})`,
  30982. offset: "0%"
  30983. }, null, 8, ["stop-color"]),
  30984. createBaseVNode("stop", {
  30985. "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-4")})`,
  30986. offset: "100%"
  30987. }, null, 8, ["stop-color"])
  30988. ], 8, ["id"]),
  30989. createBaseVNode("linearGradient", {
  30990. id: `linearGradient-2-${unref(id)}`,
  30991. x1: "0%",
  30992. y1: "9.5%",
  30993. x2: "100%",
  30994. y2: "90.5%"
  30995. }, [
  30996. createBaseVNode("stop", {
  30997. "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-1")})`,
  30998. offset: "0%"
  30999. }, null, 8, ["stop-color"]),
  31000. createBaseVNode("stop", {
  31001. "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-6")})`,
  31002. offset: "100%"
  31003. }, null, 8, ["stop-color"])
  31004. ], 8, ["id"]),
  31005. createBaseVNode("rect", {
  31006. id: `path-3-${unref(id)}`,
  31007. x: "0",
  31008. y: "0",
  31009. width: "17",
  31010. height: "36"
  31011. }, null, 8, ["id"])
  31012. ]),
  31013. createBaseVNode("g", {
  31014. stroke: "none",
  31015. "stroke-width": "1",
  31016. fill: "none",
  31017. "fill-rule": "evenodd"
  31018. }, [
  31019. createBaseVNode("g", { transform: "translate(-1268.000000, -535.000000)" }, [
  31020. createBaseVNode("g", { transform: "translate(1268.000000, 535.000000)" }, [
  31021. createBaseVNode("path", {
  31022. d: "M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",
  31023. fill: `var(${unref(ns).cssVarBlockName("fill-color-3")})`
  31024. }, null, 8, ["fill"]),
  31025. createBaseVNode("polygon", {
  31026. fill: `var(${unref(ns).cssVarBlockName("fill-color-7")})`,
  31027. transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
  31028. points: "13 58 53 58 42 45 2 45"
  31029. }, null, 8, ["fill"]),
  31030. createBaseVNode("g", { transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)" }, [
  31031. createBaseVNode("polygon", {
  31032. fill: `var(${unref(ns).cssVarBlockName("fill-color-7")})`,
  31033. transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
  31034. points: "2.84078316e-14 3 18 3 23 7 5 7"
  31035. }, null, 8, ["fill"]),
  31036. createBaseVNode("polygon", {
  31037. fill: `var(${unref(ns).cssVarBlockName("fill-color-5")})`,
  31038. points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
  31039. }, null, 8, ["fill"]),
  31040. createBaseVNode("rect", {
  31041. fill: `url(#linearGradient-1-${unref(id)})`,
  31042. transform: "translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",
  31043. x: "38",
  31044. y: "7",
  31045. width: "17",
  31046. height: "36"
  31047. }, null, 8, ["fill"]),
  31048. createBaseVNode("polygon", {
  31049. fill: `var(${unref(ns).cssVarBlockName("fill-color-2")})`,
  31050. transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
  31051. points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
  31052. }, null, 8, ["fill"])
  31053. ]),
  31054. createBaseVNode("rect", {
  31055. fill: `url(#linearGradient-2-${unref(id)})`,
  31056. x: "13",
  31057. y: "45",
  31058. width: "40",
  31059. height: "36"
  31060. }, null, 8, ["fill"]),
  31061. createBaseVNode("g", { transform: "translate(53.000000, 45.000000)" }, [
  31062. createBaseVNode("use", {
  31063. fill: `var(${unref(ns).cssVarBlockName("fill-color-8")})`,
  31064. transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
  31065. "xlink:href": `#path-3-${unref(id)}`
  31066. }, null, 8, ["fill", "xlink:href"]),
  31067. createBaseVNode("polygon", {
  31068. fill: `var(${unref(ns).cssVarBlockName("fill-color-9")})`,
  31069. mask: `url(#mask-4-${unref(id)})`,
  31070. transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
  31071. points: "7 0 24 0 20 18 7 16.5"
  31072. }, null, 8, ["fill", "mask"])
  31073. ]),
  31074. createBaseVNode("polygon", {
  31075. fill: `var(${unref(ns).cssVarBlockName("fill-color-2")})`,
  31076. transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
  31077. points: "62 45 79 45 70 58 53 58"
  31078. }, null, 8, ["fill"])
  31079. ])
  31080. ])
  31081. ])
  31082. ]);
  31083. };
  31084. }
  31085. });
  31086. var ImgEmpty = _export_sfc(_sfc_main84, [["__file", "img-empty.vue"]]);
  31087. // node_modules/element-plus/es/components/empty/src/empty.mjs
  31088. var emptyProps = buildProps({
  31089. image: {
  31090. type: String,
  31091. default: ""
  31092. },
  31093. imageSize: Number,
  31094. description: {
  31095. type: String,
  31096. default: ""
  31097. }
  31098. });
  31099. // node_modules/element-plus/es/components/empty/src/empty2.mjs
  31100. var __default__64 = defineComponent({
  31101. name: "ElEmpty"
  31102. });
  31103. var _sfc_main85 = defineComponent({
  31104. ...__default__64,
  31105. props: emptyProps,
  31106. setup(__props) {
  31107. const props2 = __props;
  31108. const { t } = useLocale();
  31109. const ns = useNamespace("empty");
  31110. const emptyDescription = computed(() => props2.description || t("el.table.emptyText"));
  31111. const imageStyle = computed(() => ({
  31112. width: addUnit(props2.imageSize)
  31113. }));
  31114. return (_ctx, _cache) => {
  31115. return openBlock(), createElementBlock("div", {
  31116. class: normalizeClass(unref(ns).b())
  31117. }, [
  31118. createBaseVNode("div", {
  31119. class: normalizeClass(unref(ns).e("image")),
  31120. style: normalizeStyle(unref(imageStyle))
  31121. }, [
  31122. _ctx.image ? (openBlock(), createElementBlock("img", {
  31123. key: 0,
  31124. src: _ctx.image,
  31125. ondragstart: "return false"
  31126. }, null, 8, ["src"])) : renderSlot(_ctx.$slots, "image", { key: 1 }, () => [
  31127. createVNode(ImgEmpty)
  31128. ])
  31129. ], 6),
  31130. createBaseVNode("div", {
  31131. class: normalizeClass(unref(ns).e("description"))
  31132. }, [
  31133. _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("p", { key: 1 }, toDisplayString(unref(emptyDescription)), 1))
  31134. ], 2),
  31135. _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
  31136. key: 0,
  31137. class: normalizeClass(unref(ns).e("bottom"))
  31138. }, [
  31139. renderSlot(_ctx.$slots, "default")
  31140. ], 2)) : createCommentVNode("v-if", true)
  31141. ], 2);
  31142. };
  31143. }
  31144. });
  31145. var Empty = _export_sfc(_sfc_main85, [["__file", "empty.vue"]]);
  31146. // node_modules/element-plus/es/components/empty/index.mjs
  31147. var ElEmpty = withInstall(Empty);
  31148. // node_modules/element-plus/es/components/form/src/form.mjs
  31149. var formMetaProps = buildProps({
  31150. size: {
  31151. type: String,
  31152. values: componentSizes
  31153. },
  31154. disabled: Boolean
  31155. });
  31156. var formProps = buildProps({
  31157. ...formMetaProps,
  31158. model: Object,
  31159. rules: {
  31160. type: definePropType(Object)
  31161. },
  31162. labelPosition: {
  31163. type: String,
  31164. values: ["left", "right", "top"],
  31165. default: "right"
  31166. },
  31167. requireAsteriskPosition: {
  31168. type: String,
  31169. values: ["left", "right"],
  31170. default: "left"
  31171. },
  31172. labelWidth: {
  31173. type: [String, Number],
  31174. default: ""
  31175. },
  31176. labelSuffix: {
  31177. type: String,
  31178. default: ""
  31179. },
  31180. inline: Boolean,
  31181. inlineMessage: Boolean,
  31182. statusIcon: Boolean,
  31183. showMessage: {
  31184. type: Boolean,
  31185. default: true
  31186. },
  31187. validateOnRuleChange: {
  31188. type: Boolean,
  31189. default: true
  31190. },
  31191. hideRequiredAsterisk: Boolean,
  31192. scrollToError: Boolean,
  31193. scrollIntoViewOptions: {
  31194. type: definePropType([Object, Boolean]),
  31195. default: true
  31196. }
  31197. });
  31198. var formEmits = {
  31199. validate: (prop, isValid, message2) => (isArray(prop) || isString(prop)) && isBoolean2(isValid) && isString(message2)
  31200. };
  31201. // node_modules/element-plus/es/components/form/src/utils.mjs
  31202. var SCOPE6 = "ElForm";
  31203. function useFormLabelWidth() {
  31204. const potentialLabelWidthArr = ref([]);
  31205. const autoLabelWidth = computed(() => {
  31206. if (!potentialLabelWidthArr.value.length)
  31207. return "0";
  31208. const max4 = Math.max(...potentialLabelWidthArr.value);
  31209. return max4 ? `${max4}px` : "";
  31210. });
  31211. function getLabelWidthIndex(width) {
  31212. const index = potentialLabelWidthArr.value.indexOf(width);
  31213. if (index === -1 && autoLabelWidth.value === "0") {
  31214. debugWarn(SCOPE6, `unexpected width ${width}`);
  31215. }
  31216. return index;
  31217. }
  31218. function registerLabelWidth(val, oldVal) {
  31219. if (val && oldVal) {
  31220. const index = getLabelWidthIndex(oldVal);
  31221. potentialLabelWidthArr.value.splice(index, 1, val);
  31222. } else if (val) {
  31223. potentialLabelWidthArr.value.push(val);
  31224. }
  31225. }
  31226. function deregisterLabelWidth(val) {
  31227. const index = getLabelWidthIndex(val);
  31228. if (index > -1) {
  31229. potentialLabelWidthArr.value.splice(index, 1);
  31230. }
  31231. }
  31232. return {
  31233. autoLabelWidth,
  31234. registerLabelWidth,
  31235. deregisterLabelWidth
  31236. };
  31237. }
  31238. var filterFields = (fields, props2) => {
  31239. const normalized = castArray_default(props2).map((prop) => isArray(prop) ? prop.join(".") : prop);
  31240. return normalized.length > 0 ? fields.filter((field) => field.propString && normalized.includes(field.propString)) : fields;
  31241. };
  31242. // node_modules/element-plus/es/components/form/src/form2.mjs
  31243. var COMPONENT_NAME11 = "ElForm";
  31244. var __default__65 = defineComponent({
  31245. name: COMPONENT_NAME11
  31246. });
  31247. var _sfc_main86 = defineComponent({
  31248. ...__default__65,
  31249. props: formProps,
  31250. emits: formEmits,
  31251. setup(__props, { expose, emit }) {
  31252. const props2 = __props;
  31253. const formRef = ref();
  31254. const fields = reactive([]);
  31255. const formSize = useFormSize();
  31256. const ns = useNamespace("form");
  31257. const formClasses = computed(() => {
  31258. const { labelPosition, inline: inline2 } = props2;
  31259. return [
  31260. ns.b(),
  31261. ns.m(formSize.value || "default"),
  31262. {
  31263. [ns.m(`label-${labelPosition}`)]: labelPosition,
  31264. [ns.m("inline")]: inline2
  31265. }
  31266. ];
  31267. });
  31268. const getField = (prop) => {
  31269. return filterFields(fields, [prop])[0];
  31270. };
  31271. const addField = (field) => {
  31272. fields.push(field);
  31273. };
  31274. const removeField = (field) => {
  31275. if (field.prop) {
  31276. fields.splice(fields.indexOf(field), 1);
  31277. }
  31278. };
  31279. const resetFields = (properties = []) => {
  31280. if (!props2.model) {
  31281. debugWarn(COMPONENT_NAME11, "model is required for resetFields to work.");
  31282. return;
  31283. }
  31284. filterFields(fields, properties).forEach((field) => field.resetField());
  31285. };
  31286. const clearValidate = (props22 = []) => {
  31287. filterFields(fields, props22).forEach((field) => field.clearValidate());
  31288. };
  31289. const isValidatable = computed(() => {
  31290. const hasModel = !!props2.model;
  31291. if (!hasModel) {
  31292. debugWarn(COMPONENT_NAME11, "model is required for validate to work.");
  31293. }
  31294. return hasModel;
  31295. });
  31296. const obtainValidateFields = (props22) => {
  31297. if (fields.length === 0)
  31298. return [];
  31299. const filteredFields = filterFields(fields, props22);
  31300. if (!filteredFields.length) {
  31301. debugWarn(COMPONENT_NAME11, "please pass correct props!");
  31302. return [];
  31303. }
  31304. return filteredFields;
  31305. };
  31306. const validate = async (callback) => validateField(void 0, callback);
  31307. const doValidateField = async (props22 = []) => {
  31308. if (!isValidatable.value)
  31309. return false;
  31310. const fields2 = obtainValidateFields(props22);
  31311. if (fields2.length === 0)
  31312. return true;
  31313. let validationErrors = {};
  31314. for (const field of fields2) {
  31315. try {
  31316. await field.validate("");
  31317. if (field.validateState === "error" && !field.error)
  31318. field.resetField();
  31319. } catch (fields3) {
  31320. validationErrors = {
  31321. ...validationErrors,
  31322. ...fields3
  31323. };
  31324. }
  31325. }
  31326. if (Object.keys(validationErrors).length === 0)
  31327. return true;
  31328. return Promise.reject(validationErrors);
  31329. };
  31330. const validateField = async (modelProps = [], callback) => {
  31331. let result2 = false;
  31332. const shouldThrow = !isFunction(callback);
  31333. try {
  31334. result2 = await doValidateField(modelProps);
  31335. if (result2 === true) {
  31336. await (callback == null ? void 0 : callback(result2));
  31337. }
  31338. return result2;
  31339. } catch (e) {
  31340. if (e instanceof Error)
  31341. throw e;
  31342. const invalidFields = e;
  31343. if (props2.scrollToError) {
  31344. if (formRef.value) {
  31345. const formItem = formRef.value.querySelector(`.${ns.b()}-item.is-error`);
  31346. formItem == null ? void 0 : formItem.scrollIntoView(props2.scrollIntoViewOptions);
  31347. }
  31348. }
  31349. !result2 && await (callback == null ? void 0 : callback(false, invalidFields));
  31350. return shouldThrow && Promise.reject(invalidFields);
  31351. }
  31352. };
  31353. const scrollToField = (prop) => {
  31354. var _a2;
  31355. const field = getField(prop);
  31356. if (field) {
  31357. (_a2 = field.$el) == null ? void 0 : _a2.scrollIntoView(props2.scrollIntoViewOptions);
  31358. }
  31359. };
  31360. watch(() => props2.rules, () => {
  31361. if (props2.validateOnRuleChange) {
  31362. validate().catch((err) => debugWarn(err));
  31363. }
  31364. }, { deep: true, flush: "post" });
  31365. provide(formContextKey, reactive({
  31366. ...toRefs(props2),
  31367. emit,
  31368. resetFields,
  31369. clearValidate,
  31370. validateField,
  31371. getField,
  31372. addField,
  31373. removeField,
  31374. ...useFormLabelWidth()
  31375. }));
  31376. expose({
  31377. validate,
  31378. validateField,
  31379. resetFields,
  31380. clearValidate,
  31381. scrollToField,
  31382. getField,
  31383. fields
  31384. });
  31385. return (_ctx, _cache) => {
  31386. return openBlock(), createElementBlock("form", {
  31387. ref_key: "formRef",
  31388. ref: formRef,
  31389. class: normalizeClass(unref(formClasses))
  31390. }, [
  31391. renderSlot(_ctx.$slots, "default")
  31392. ], 2);
  31393. };
  31394. }
  31395. });
  31396. var Form = _export_sfc(_sfc_main86, [["__file", "form.vue"]]);
  31397. // node_modules/async-validator/dist-web/index.js
  31398. function _extends() {
  31399. _extends = Object.assign ? Object.assign.bind() : function(target2) {
  31400. for (var i = 1; i < arguments.length; i++) {
  31401. var source = arguments[i];
  31402. for (var key in source) {
  31403. if (Object.prototype.hasOwnProperty.call(source, key)) {
  31404. target2[key] = source[key];
  31405. }
  31406. }
  31407. }
  31408. return target2;
  31409. };
  31410. return _extends.apply(this, arguments);
  31411. }
  31412. function _inheritsLoose(subClass, superClass) {
  31413. subClass.prototype = Object.create(superClass.prototype);
  31414. subClass.prototype.constructor = subClass;
  31415. _setPrototypeOf(subClass, superClass);
  31416. }
  31417. function _getPrototypeOf(o2) {
  31418. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
  31419. return o3.__proto__ || Object.getPrototypeOf(o3);
  31420. };
  31421. return _getPrototypeOf(o2);
  31422. }
  31423. function _setPrototypeOf(o2, p2) {
  31424. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
  31425. o3.__proto__ = p3;
  31426. return o3;
  31427. };
  31428. return _setPrototypeOf(o2, p2);
  31429. }
  31430. function _isNativeReflectConstruct() {
  31431. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  31432. if (Reflect.construct.sham) return false;
  31433. if (typeof Proxy === "function") return true;
  31434. try {
  31435. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
  31436. }));
  31437. return true;
  31438. } catch (e) {
  31439. return false;
  31440. }
  31441. }
  31442. function _construct(Parent, args, Class) {
  31443. if (_isNativeReflectConstruct()) {
  31444. _construct = Reflect.construct.bind();
  31445. } else {
  31446. _construct = function _construct2(Parent2, args2, Class2) {
  31447. var a2 = [null];
  31448. a2.push.apply(a2, args2);
  31449. var Constructor = Function.bind.apply(Parent2, a2);
  31450. var instance = new Constructor();
  31451. if (Class2) _setPrototypeOf(instance, Class2.prototype);
  31452. return instance;
  31453. };
  31454. }
  31455. return _construct.apply(null, arguments);
  31456. }
  31457. function _isNativeFunction(fn2) {
  31458. return Function.toString.call(fn2).indexOf("[native code]") !== -1;
  31459. }
  31460. function _wrapNativeSuper(Class) {
  31461. var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
  31462. _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
  31463. if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
  31464. if (typeof Class2 !== "function") {
  31465. throw new TypeError("Super expression must either be null or a function");
  31466. }
  31467. if (typeof _cache !== "undefined") {
  31468. if (_cache.has(Class2)) return _cache.get(Class2);
  31469. _cache.set(Class2, Wrapper);
  31470. }
  31471. function Wrapper() {
  31472. return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
  31473. }
  31474. Wrapper.prototype = Object.create(Class2.prototype, {
  31475. constructor: {
  31476. value: Wrapper,
  31477. enumerable: false,
  31478. writable: true,
  31479. configurable: true
  31480. }
  31481. });
  31482. return _setPrototypeOf(Wrapper, Class2);
  31483. };
  31484. return _wrapNativeSuper(Class);
  31485. }
  31486. var formatRegExp = /%[sdj%]/g;
  31487. var warning = function warning2() {
  31488. };
  31489. if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
  31490. warning = function warning3(type4, errors) {
  31491. if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
  31492. if (errors.every(function(e) {
  31493. return typeof e === "string";
  31494. })) {
  31495. console.warn(type4, errors);
  31496. }
  31497. }
  31498. };
  31499. }
  31500. function convertFieldsError(errors) {
  31501. if (!errors || !errors.length) return null;
  31502. var fields = {};
  31503. errors.forEach(function(error) {
  31504. var field = error.field;
  31505. fields[field] = fields[field] || [];
  31506. fields[field].push(error);
  31507. });
  31508. return fields;
  31509. }
  31510. function format(template2) {
  31511. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  31512. args[_key - 1] = arguments[_key];
  31513. }
  31514. var i = 0;
  31515. var len = args.length;
  31516. if (typeof template2 === "function") {
  31517. return template2.apply(null, args);
  31518. }
  31519. if (typeof template2 === "string") {
  31520. var str = template2.replace(formatRegExp, function(x2) {
  31521. if (x2 === "%%") {
  31522. return "%";
  31523. }
  31524. if (i >= len) {
  31525. return x2;
  31526. }
  31527. switch (x2) {
  31528. case "%s":
  31529. return String(args[i++]);
  31530. case "%d":
  31531. return Number(args[i++]);
  31532. case "%j":
  31533. try {
  31534. return JSON.stringify(args[i++]);
  31535. } catch (_2) {
  31536. return "[Circular]";
  31537. }
  31538. break;
  31539. default:
  31540. return x2;
  31541. }
  31542. });
  31543. return str;
  31544. }
  31545. return template2;
  31546. }
  31547. function isNativeStringType(type4) {
  31548. return type4 === "string" || type4 === "url" || type4 === "hex" || type4 === "email" || type4 === "date" || type4 === "pattern";
  31549. }
  31550. function isEmptyValue(value, type4) {
  31551. if (value === void 0 || value === null) {
  31552. return true;
  31553. }
  31554. if (type4 === "array" && Array.isArray(value) && !value.length) {
  31555. return true;
  31556. }
  31557. if (isNativeStringType(type4) && typeof value === "string" && !value) {
  31558. return true;
  31559. }
  31560. return false;
  31561. }
  31562. function asyncParallelArray(arr, func, callback) {
  31563. var results = [];
  31564. var total2 = 0;
  31565. var arrLength = arr.length;
  31566. function count(errors) {
  31567. results.push.apply(results, errors || []);
  31568. total2++;
  31569. if (total2 === arrLength) {
  31570. callback(results);
  31571. }
  31572. }
  31573. arr.forEach(function(a2) {
  31574. func(a2, count);
  31575. });
  31576. }
  31577. function asyncSerialArray(arr, func, callback) {
  31578. var index = 0;
  31579. var arrLength = arr.length;
  31580. function next(errors) {
  31581. if (errors && errors.length) {
  31582. callback(errors);
  31583. return;
  31584. }
  31585. var original = index;
  31586. index = index + 1;
  31587. if (original < arrLength) {
  31588. func(arr[original], next);
  31589. } else {
  31590. callback([]);
  31591. }
  31592. }
  31593. next([]);
  31594. }
  31595. function flattenObjArr(objArr) {
  31596. var ret = [];
  31597. Object.keys(objArr).forEach(function(k) {
  31598. ret.push.apply(ret, objArr[k] || []);
  31599. });
  31600. return ret;
  31601. }
  31602. var AsyncValidationError = function(_Error) {
  31603. _inheritsLoose(AsyncValidationError2, _Error);
  31604. function AsyncValidationError2(errors, fields) {
  31605. var _this;
  31606. _this = _Error.call(this, "Async Validation Error") || this;
  31607. _this.errors = errors;
  31608. _this.fields = fields;
  31609. return _this;
  31610. }
  31611. return AsyncValidationError2;
  31612. }(_wrapNativeSuper(Error));
  31613. function asyncMap(objArr, option, func, callback, source) {
  31614. if (option.first) {
  31615. var _pending = new Promise(function(resolve, reject2) {
  31616. var next = function next2(errors) {
  31617. callback(errors);
  31618. return errors.length ? reject2(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);
  31619. };
  31620. var flattenArr = flattenObjArr(objArr);
  31621. asyncSerialArray(flattenArr, func, next);
  31622. });
  31623. _pending["catch"](function(e) {
  31624. return e;
  31625. });
  31626. return _pending;
  31627. }
  31628. var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];
  31629. var objArrKeys = Object.keys(objArr);
  31630. var objArrLength = objArrKeys.length;
  31631. var total2 = 0;
  31632. var results = [];
  31633. var pending = new Promise(function(resolve, reject2) {
  31634. var next = function next2(errors) {
  31635. results.push.apply(results, errors);
  31636. total2++;
  31637. if (total2 === objArrLength) {
  31638. callback(results);
  31639. return results.length ? reject2(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);
  31640. }
  31641. };
  31642. if (!objArrKeys.length) {
  31643. callback(results);
  31644. resolve(source);
  31645. }
  31646. objArrKeys.forEach(function(key) {
  31647. var arr = objArr[key];
  31648. if (firstFields.indexOf(key) !== -1) {
  31649. asyncSerialArray(arr, func, next);
  31650. } else {
  31651. asyncParallelArray(arr, func, next);
  31652. }
  31653. });
  31654. });
  31655. pending["catch"](function(e) {
  31656. return e;
  31657. });
  31658. return pending;
  31659. }
  31660. function isErrorObj(obj) {
  31661. return !!(obj && obj.message !== void 0);
  31662. }
  31663. function getValue2(value, path) {
  31664. var v2 = value;
  31665. for (var i = 0; i < path.length; i++) {
  31666. if (v2 == void 0) {
  31667. return v2;
  31668. }
  31669. v2 = v2[path[i]];
  31670. }
  31671. return v2;
  31672. }
  31673. function complementError(rule, source) {
  31674. return function(oe) {
  31675. var fieldValue;
  31676. if (rule.fullFields) {
  31677. fieldValue = getValue2(source, rule.fullFields);
  31678. } else {
  31679. fieldValue = source[oe.field || rule.fullField];
  31680. }
  31681. if (isErrorObj(oe)) {
  31682. oe.field = oe.field || rule.fullField;
  31683. oe.fieldValue = fieldValue;
  31684. return oe;
  31685. }
  31686. return {
  31687. message: typeof oe === "function" ? oe() : oe,
  31688. fieldValue,
  31689. field: oe.field || rule.fullField
  31690. };
  31691. };
  31692. }
  31693. function deepMerge(target2, source) {
  31694. if (source) {
  31695. for (var s2 in source) {
  31696. if (source.hasOwnProperty(s2)) {
  31697. var value = source[s2];
  31698. if (typeof value === "object" && typeof target2[s2] === "object") {
  31699. target2[s2] = _extends({}, target2[s2], value);
  31700. } else {
  31701. target2[s2] = value;
  31702. }
  31703. }
  31704. }
  31705. }
  31706. return target2;
  31707. }
  31708. var required$1 = function required(rule, value, source, errors, options, type4) {
  31709. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type4 || rule.type))) {
  31710. errors.push(format(options.messages.required, rule.fullField));
  31711. }
  31712. };
  31713. var whitespace = function whitespace2(rule, value, source, errors, options) {
  31714. if (/^\s+$/.test(value) || value === "") {
  31715. errors.push(format(options.messages.whitespace, rule.fullField));
  31716. }
  31717. };
  31718. var urlReg;
  31719. var getUrlRegex = function() {
  31720. if (urlReg) {
  31721. return urlReg;
  31722. }
  31723. var word = "[a-fA-F\\d:]";
  31724. var b2 = function b3(options) {
  31725. return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
  31726. };
  31727. 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}";
  31728. var v6seg = "[a-fA-F\\d]{1,4}";
  31729. 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();
  31730. var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
  31731. var v4exact = new RegExp("^" + v4 + "$");
  31732. var v6exact = new RegExp("^" + v6 + "$");
  31733. var ip = function ip2(options) {
  31734. return options && options.exact ? v46Exact : new RegExp("(?:" + b2(options) + v4 + b2(options) + ")|(?:" + b2(options) + v6 + b2(options) + ")", "g");
  31735. };
  31736. ip.v4 = function(options) {
  31737. return options && options.exact ? v4exact : new RegExp("" + b2(options) + v4 + b2(options), "g");
  31738. };
  31739. ip.v6 = function(options) {
  31740. return options && options.exact ? v6exact : new RegExp("" + b2(options) + v6 + b2(options), "g");
  31741. };
  31742. var protocol = "(?:(?:[a-z]+:)?//)";
  31743. var auth = "(?:\\S+(?::\\S*)?@)?";
  31744. var ipv4 = ip.v4().source;
  31745. var ipv6 = ip.v6().source;
  31746. var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
  31747. var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
  31748. var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
  31749. var port = "(?::\\d{2,5})?";
  31750. var path = '(?:[/?#][^\\s"]*)?';
  31751. var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
  31752. urlReg = new RegExp("(?:^" + regex + "$)", "i");
  31753. return urlReg;
  31754. };
  31755. var pattern$2 = {
  31756. // http://emailregex.com/
  31757. 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,}))$/,
  31758. // url: new RegExp(
  31759. // '^(?!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]*)?$',
  31760. // 'i',
  31761. // ),
  31762. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  31763. };
  31764. var types = {
  31765. integer: function integer(value) {
  31766. return types.number(value) && parseInt(value, 10) === value;
  31767. },
  31768. "float": function float(value) {
  31769. return types.number(value) && !types.integer(value);
  31770. },
  31771. array: function array(value) {
  31772. return Array.isArray(value);
  31773. },
  31774. regexp: function regexp(value) {
  31775. if (value instanceof RegExp) {
  31776. return true;
  31777. }
  31778. try {
  31779. return !!new RegExp(value);
  31780. } catch (e) {
  31781. return false;
  31782. }
  31783. },
  31784. date: function date(value) {
  31785. return typeof value.getTime === "function" && typeof value.getMonth === "function" && typeof value.getYear === "function" && !isNaN(value.getTime());
  31786. },
  31787. number: function number(value) {
  31788. if (isNaN(value)) {
  31789. return false;
  31790. }
  31791. return typeof value === "number";
  31792. },
  31793. object: function object(value) {
  31794. return typeof value === "object" && !types.array(value);
  31795. },
  31796. method: function method2(value) {
  31797. return typeof value === "function";
  31798. },
  31799. email: function email(value) {
  31800. return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
  31801. },
  31802. url: function url(value) {
  31803. return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
  31804. },
  31805. hex: function hex(value) {
  31806. return typeof value === "string" && !!value.match(pattern$2.hex);
  31807. }
  31808. };
  31809. var type$1 = function type(rule, value, source, errors, options) {
  31810. if (rule.required && value === void 0) {
  31811. required$1(rule, value, source, errors, options);
  31812. return;
  31813. }
  31814. var custom = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"];
  31815. var ruleType = rule.type;
  31816. if (custom.indexOf(ruleType) > -1) {
  31817. if (!types[ruleType](value)) {
  31818. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  31819. }
  31820. } else if (ruleType && typeof value !== rule.type) {
  31821. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  31822. }
  31823. };
  31824. var range2 = function range3(rule, value, source, errors, options) {
  31825. var len = typeof rule.len === "number";
  31826. var min4 = typeof rule.min === "number";
  31827. var max4 = typeof rule.max === "number";
  31828. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  31829. var val = value;
  31830. var key = null;
  31831. var num = typeof value === "number";
  31832. var str = typeof value === "string";
  31833. var arr = Array.isArray(value);
  31834. if (num) {
  31835. key = "number";
  31836. } else if (str) {
  31837. key = "string";
  31838. } else if (arr) {
  31839. key = "array";
  31840. }
  31841. if (!key) {
  31842. return false;
  31843. }
  31844. if (arr) {
  31845. val = value.length;
  31846. }
  31847. if (str) {
  31848. val = value.replace(spRegexp, "_").length;
  31849. }
  31850. if (len) {
  31851. if (val !== rule.len) {
  31852. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  31853. }
  31854. } else if (min4 && !max4 && val < rule.min) {
  31855. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  31856. } else if (max4 && !min4 && val > rule.max) {
  31857. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  31858. } else if (min4 && max4 && (val < rule.min || val > rule.max)) {
  31859. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  31860. }
  31861. };
  31862. var ENUM$1 = "enum";
  31863. var enumerable$1 = function enumerable(rule, value, source, errors, options) {
  31864. rule[ENUM$1] = Array.isArray(rule[ENUM$1]) ? rule[ENUM$1] : [];
  31865. if (rule[ENUM$1].indexOf(value) === -1) {
  31866. errors.push(format(options.messages[ENUM$1], rule.fullField, rule[ENUM$1].join(", ")));
  31867. }
  31868. };
  31869. var pattern$1 = function pattern(rule, value, source, errors, options) {
  31870. if (rule.pattern) {
  31871. if (rule.pattern instanceof RegExp) {
  31872. rule.pattern.lastIndex = 0;
  31873. if (!rule.pattern.test(value)) {
  31874. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  31875. }
  31876. } else if (typeof rule.pattern === "string") {
  31877. var _pattern = new RegExp(rule.pattern);
  31878. if (!_pattern.test(value)) {
  31879. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  31880. }
  31881. }
  31882. }
  31883. };
  31884. var rules = {
  31885. required: required$1,
  31886. whitespace,
  31887. type: type$1,
  31888. range: range2,
  31889. "enum": enumerable$1,
  31890. pattern: pattern$1
  31891. };
  31892. var string = function string2(rule, value, callback, source, options) {
  31893. var errors = [];
  31894. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31895. if (validate) {
  31896. if (isEmptyValue(value, "string") && !rule.required) {
  31897. return callback();
  31898. }
  31899. rules.required(rule, value, source, errors, options, "string");
  31900. if (!isEmptyValue(value, "string")) {
  31901. rules.type(rule, value, source, errors, options);
  31902. rules.range(rule, value, source, errors, options);
  31903. rules.pattern(rule, value, source, errors, options);
  31904. if (rule.whitespace === true) {
  31905. rules.whitespace(rule, value, source, errors, options);
  31906. }
  31907. }
  31908. }
  31909. callback(errors);
  31910. };
  31911. var method3 = function method4(rule, value, callback, source, options) {
  31912. var errors = [];
  31913. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31914. if (validate) {
  31915. if (isEmptyValue(value) && !rule.required) {
  31916. return callback();
  31917. }
  31918. rules.required(rule, value, source, errors, options);
  31919. if (value !== void 0) {
  31920. rules.type(rule, value, source, errors, options);
  31921. }
  31922. }
  31923. callback(errors);
  31924. };
  31925. var number2 = function number3(rule, value, callback, source, options) {
  31926. var errors = [];
  31927. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31928. if (validate) {
  31929. if (value === "") {
  31930. value = void 0;
  31931. }
  31932. if (isEmptyValue(value) && !rule.required) {
  31933. return callback();
  31934. }
  31935. rules.required(rule, value, source, errors, options);
  31936. if (value !== void 0) {
  31937. rules.type(rule, value, source, errors, options);
  31938. rules.range(rule, value, source, errors, options);
  31939. }
  31940. }
  31941. callback(errors);
  31942. };
  31943. var _boolean = function _boolean2(rule, value, callback, source, options) {
  31944. var errors = [];
  31945. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31946. if (validate) {
  31947. if (isEmptyValue(value) && !rule.required) {
  31948. return callback();
  31949. }
  31950. rules.required(rule, value, source, errors, options);
  31951. if (value !== void 0) {
  31952. rules.type(rule, value, source, errors, options);
  31953. }
  31954. }
  31955. callback(errors);
  31956. };
  31957. var regexp2 = function regexp3(rule, value, callback, source, options) {
  31958. var errors = [];
  31959. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31960. if (validate) {
  31961. if (isEmptyValue(value) && !rule.required) {
  31962. return callback();
  31963. }
  31964. rules.required(rule, value, source, errors, options);
  31965. if (!isEmptyValue(value)) {
  31966. rules.type(rule, value, source, errors, options);
  31967. }
  31968. }
  31969. callback(errors);
  31970. };
  31971. var integer2 = function integer3(rule, value, callback, source, options) {
  31972. var errors = [];
  31973. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31974. if (validate) {
  31975. if (isEmptyValue(value) && !rule.required) {
  31976. return callback();
  31977. }
  31978. rules.required(rule, value, source, errors, options);
  31979. if (value !== void 0) {
  31980. rules.type(rule, value, source, errors, options);
  31981. rules.range(rule, value, source, errors, options);
  31982. }
  31983. }
  31984. callback(errors);
  31985. };
  31986. var floatFn = function floatFn2(rule, value, callback, source, options) {
  31987. var errors = [];
  31988. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  31989. if (validate) {
  31990. if (isEmptyValue(value) && !rule.required) {
  31991. return callback();
  31992. }
  31993. rules.required(rule, value, source, errors, options);
  31994. if (value !== void 0) {
  31995. rules.type(rule, value, source, errors, options);
  31996. rules.range(rule, value, source, errors, options);
  31997. }
  31998. }
  31999. callback(errors);
  32000. };
  32001. var array2 = function array3(rule, value, callback, source, options) {
  32002. var errors = [];
  32003. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32004. if (validate) {
  32005. if ((value === void 0 || value === null) && !rule.required) {
  32006. return callback();
  32007. }
  32008. rules.required(rule, value, source, errors, options, "array");
  32009. if (value !== void 0 && value !== null) {
  32010. rules.type(rule, value, source, errors, options);
  32011. rules.range(rule, value, source, errors, options);
  32012. }
  32013. }
  32014. callback(errors);
  32015. };
  32016. var object2 = function object3(rule, value, callback, source, options) {
  32017. var errors = [];
  32018. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32019. if (validate) {
  32020. if (isEmptyValue(value) && !rule.required) {
  32021. return callback();
  32022. }
  32023. rules.required(rule, value, source, errors, options);
  32024. if (value !== void 0) {
  32025. rules.type(rule, value, source, errors, options);
  32026. }
  32027. }
  32028. callback(errors);
  32029. };
  32030. var ENUM = "enum";
  32031. var enumerable2 = function enumerable3(rule, value, callback, source, options) {
  32032. var errors = [];
  32033. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32034. if (validate) {
  32035. if (isEmptyValue(value) && !rule.required) {
  32036. return callback();
  32037. }
  32038. rules.required(rule, value, source, errors, options);
  32039. if (value !== void 0) {
  32040. rules[ENUM](rule, value, source, errors, options);
  32041. }
  32042. }
  32043. callback(errors);
  32044. };
  32045. var pattern2 = function pattern3(rule, value, callback, source, options) {
  32046. var errors = [];
  32047. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32048. if (validate) {
  32049. if (isEmptyValue(value, "string") && !rule.required) {
  32050. return callback();
  32051. }
  32052. rules.required(rule, value, source, errors, options);
  32053. if (!isEmptyValue(value, "string")) {
  32054. rules.pattern(rule, value, source, errors, options);
  32055. }
  32056. }
  32057. callback(errors);
  32058. };
  32059. var date2 = function date3(rule, value, callback, source, options) {
  32060. var errors = [];
  32061. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32062. if (validate) {
  32063. if (isEmptyValue(value, "date") && !rule.required) {
  32064. return callback();
  32065. }
  32066. rules.required(rule, value, source, errors, options);
  32067. if (!isEmptyValue(value, "date")) {
  32068. var dateObject;
  32069. if (value instanceof Date) {
  32070. dateObject = value;
  32071. } else {
  32072. dateObject = new Date(value);
  32073. }
  32074. rules.type(rule, dateObject, source, errors, options);
  32075. if (dateObject) {
  32076. rules.range(rule, dateObject.getTime(), source, errors, options);
  32077. }
  32078. }
  32079. }
  32080. callback(errors);
  32081. };
  32082. var required2 = function required3(rule, value, callback, source, options) {
  32083. var errors = [];
  32084. var type4 = Array.isArray(value) ? "array" : typeof value;
  32085. rules.required(rule, value, source, errors, options, type4);
  32086. callback(errors);
  32087. };
  32088. var type2 = function type3(rule, value, callback, source, options) {
  32089. var ruleType = rule.type;
  32090. var errors = [];
  32091. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32092. if (validate) {
  32093. if (isEmptyValue(value, ruleType) && !rule.required) {
  32094. return callback();
  32095. }
  32096. rules.required(rule, value, source, errors, options, ruleType);
  32097. if (!isEmptyValue(value, ruleType)) {
  32098. rules.type(rule, value, source, errors, options);
  32099. }
  32100. }
  32101. callback(errors);
  32102. };
  32103. var any = function any2(rule, value, callback, source, options) {
  32104. var errors = [];
  32105. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32106. if (validate) {
  32107. if (isEmptyValue(value) && !rule.required) {
  32108. return callback();
  32109. }
  32110. rules.required(rule, value, source, errors, options);
  32111. }
  32112. callback(errors);
  32113. };
  32114. var validators = {
  32115. string,
  32116. method: method3,
  32117. number: number2,
  32118. "boolean": _boolean,
  32119. regexp: regexp2,
  32120. integer: integer2,
  32121. "float": floatFn,
  32122. array: array2,
  32123. object: object2,
  32124. "enum": enumerable2,
  32125. pattern: pattern2,
  32126. date: date2,
  32127. url: type2,
  32128. hex: type2,
  32129. email: type2,
  32130. required: required2,
  32131. any
  32132. };
  32133. function newMessages() {
  32134. return {
  32135. "default": "Validation error on field %s",
  32136. required: "%s is required",
  32137. "enum": "%s must be one of %s",
  32138. whitespace: "%s cannot be empty",
  32139. date: {
  32140. format: "%s date %s is invalid for format %s",
  32141. parse: "%s date could not be parsed, %s is invalid ",
  32142. invalid: "%s date %s is invalid"
  32143. },
  32144. types: {
  32145. string: "%s is not a %s",
  32146. method: "%s is not a %s (function)",
  32147. array: "%s is not an %s",
  32148. object: "%s is not an %s",
  32149. number: "%s is not a %s",
  32150. date: "%s is not a %s",
  32151. "boolean": "%s is not a %s",
  32152. integer: "%s is not an %s",
  32153. "float": "%s is not a %s",
  32154. regexp: "%s is not a valid %s",
  32155. email: "%s is not a valid %s",
  32156. url: "%s is not a valid %s",
  32157. hex: "%s is not a valid %s"
  32158. },
  32159. string: {
  32160. len: "%s must be exactly %s characters",
  32161. min: "%s must be at least %s characters",
  32162. max: "%s cannot be longer than %s characters",
  32163. range: "%s must be between %s and %s characters"
  32164. },
  32165. number: {
  32166. len: "%s must equal %s",
  32167. min: "%s cannot be less than %s",
  32168. max: "%s cannot be greater than %s",
  32169. range: "%s must be between %s and %s"
  32170. },
  32171. array: {
  32172. len: "%s must be exactly %s in length",
  32173. min: "%s cannot be less than %s in length",
  32174. max: "%s cannot be greater than %s in length",
  32175. range: "%s must be between %s and %s in length"
  32176. },
  32177. pattern: {
  32178. mismatch: "%s value %s does not match pattern %s"
  32179. },
  32180. clone: function clone2() {
  32181. var cloned = JSON.parse(JSON.stringify(this));
  32182. cloned.clone = this.clone;
  32183. return cloned;
  32184. }
  32185. };
  32186. }
  32187. var messages = newMessages();
  32188. var Schema = function() {
  32189. function Schema2(descriptor) {
  32190. this.rules = null;
  32191. this._messages = messages;
  32192. this.define(descriptor);
  32193. }
  32194. var _proto = Schema2.prototype;
  32195. _proto.define = function define2(rules2) {
  32196. var _this = this;
  32197. if (!rules2) {
  32198. throw new Error("Cannot configure a schema with no rules");
  32199. }
  32200. if (typeof rules2 !== "object" || Array.isArray(rules2)) {
  32201. throw new Error("Rules must be an object");
  32202. }
  32203. this.rules = {};
  32204. Object.keys(rules2).forEach(function(name) {
  32205. var item = rules2[name];
  32206. _this.rules[name] = Array.isArray(item) ? item : [item];
  32207. });
  32208. };
  32209. _proto.messages = function messages2(_messages) {
  32210. if (_messages) {
  32211. this._messages = deepMerge(newMessages(), _messages);
  32212. }
  32213. return this._messages;
  32214. };
  32215. _proto.validate = function validate(source_, o2, oc) {
  32216. var _this2 = this;
  32217. if (o2 === void 0) {
  32218. o2 = {};
  32219. }
  32220. if (oc === void 0) {
  32221. oc = function oc2() {
  32222. };
  32223. }
  32224. var source = source_;
  32225. var options = o2;
  32226. var callback = oc;
  32227. if (typeof options === "function") {
  32228. callback = options;
  32229. options = {};
  32230. }
  32231. if (!this.rules || Object.keys(this.rules).length === 0) {
  32232. if (callback) {
  32233. callback(null, source);
  32234. }
  32235. return Promise.resolve(source);
  32236. }
  32237. function complete(results) {
  32238. var errors = [];
  32239. var fields = {};
  32240. function add2(e) {
  32241. if (Array.isArray(e)) {
  32242. var _errors;
  32243. errors = (_errors = errors).concat.apply(_errors, e);
  32244. } else {
  32245. errors.push(e);
  32246. }
  32247. }
  32248. for (var i = 0; i < results.length; i++) {
  32249. add2(results[i]);
  32250. }
  32251. if (!errors.length) {
  32252. callback(null, source);
  32253. } else {
  32254. fields = convertFieldsError(errors);
  32255. callback(errors, fields);
  32256. }
  32257. }
  32258. if (options.messages) {
  32259. var messages$1 = this.messages();
  32260. if (messages$1 === messages) {
  32261. messages$1 = newMessages();
  32262. }
  32263. deepMerge(messages$1, options.messages);
  32264. options.messages = messages$1;
  32265. } else {
  32266. options.messages = this.messages();
  32267. }
  32268. var series = {};
  32269. var keys3 = options.keys || Object.keys(this.rules);
  32270. keys3.forEach(function(z) {
  32271. var arr = _this2.rules[z];
  32272. var value = source[z];
  32273. arr.forEach(function(r) {
  32274. var rule = r;
  32275. if (typeof rule.transform === "function") {
  32276. if (source === source_) {
  32277. source = _extends({}, source);
  32278. }
  32279. value = source[z] = rule.transform(value);
  32280. }
  32281. if (typeof rule === "function") {
  32282. rule = {
  32283. validator: rule
  32284. };
  32285. } else {
  32286. rule = _extends({}, rule);
  32287. }
  32288. rule.validator = _this2.getValidationMethod(rule);
  32289. if (!rule.validator) {
  32290. return;
  32291. }
  32292. rule.field = z;
  32293. rule.fullField = rule.fullField || z;
  32294. rule.type = _this2.getType(rule);
  32295. series[z] = series[z] || [];
  32296. series[z].push({
  32297. rule,
  32298. value,
  32299. source,
  32300. field: z
  32301. });
  32302. });
  32303. });
  32304. var errorFields = {};
  32305. return asyncMap(series, options, function(data, doIt) {
  32306. var rule = data.rule;
  32307. var deep = (rule.type === "object" || rule.type === "array") && (typeof rule.fields === "object" || typeof rule.defaultField === "object");
  32308. deep = deep && (rule.required || !rule.required && data.value);
  32309. rule.field = data.field;
  32310. function addFullField(key, schema) {
  32311. return _extends({}, schema, {
  32312. fullField: rule.fullField + "." + key,
  32313. fullFields: rule.fullFields ? [].concat(rule.fullFields, [key]) : [key]
  32314. });
  32315. }
  32316. function cb(e) {
  32317. if (e === void 0) {
  32318. e = [];
  32319. }
  32320. var errorList = Array.isArray(e) ? e : [e];
  32321. if (!options.suppressWarning && errorList.length) {
  32322. Schema2.warning("async-validator:", errorList);
  32323. }
  32324. if (errorList.length && rule.message !== void 0) {
  32325. errorList = [].concat(rule.message);
  32326. }
  32327. var filledErrors = errorList.map(complementError(rule, source));
  32328. if (options.first && filledErrors.length) {
  32329. errorFields[rule.field] = 1;
  32330. return doIt(filledErrors);
  32331. }
  32332. if (!deep) {
  32333. doIt(filledErrors);
  32334. } else {
  32335. if (rule.required && !data.value) {
  32336. if (rule.message !== void 0) {
  32337. filledErrors = [].concat(rule.message).map(complementError(rule, source));
  32338. } else if (options.error) {
  32339. filledErrors = [options.error(rule, format(options.messages.required, rule.field))];
  32340. }
  32341. return doIt(filledErrors);
  32342. }
  32343. var fieldsSchema = {};
  32344. if (rule.defaultField) {
  32345. Object.keys(data.value).map(function(key) {
  32346. fieldsSchema[key] = rule.defaultField;
  32347. });
  32348. }
  32349. fieldsSchema = _extends({}, fieldsSchema, data.rule.fields);
  32350. var paredFieldsSchema = {};
  32351. Object.keys(fieldsSchema).forEach(function(field) {
  32352. var fieldSchema = fieldsSchema[field];
  32353. var fieldSchemaList = Array.isArray(fieldSchema) ? fieldSchema : [fieldSchema];
  32354. paredFieldsSchema[field] = fieldSchemaList.map(addFullField.bind(null, field));
  32355. });
  32356. var schema = new Schema2(paredFieldsSchema);
  32357. schema.messages(options.messages);
  32358. if (data.rule.options) {
  32359. data.rule.options.messages = options.messages;
  32360. data.rule.options.error = options.error;
  32361. }
  32362. schema.validate(data.value, data.rule.options || options, function(errs) {
  32363. var finalErrors = [];
  32364. if (filledErrors && filledErrors.length) {
  32365. finalErrors.push.apply(finalErrors, filledErrors);
  32366. }
  32367. if (errs && errs.length) {
  32368. finalErrors.push.apply(finalErrors, errs);
  32369. }
  32370. doIt(finalErrors.length ? finalErrors : null);
  32371. });
  32372. }
  32373. }
  32374. var res;
  32375. if (rule.asyncValidator) {
  32376. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  32377. } else if (rule.validator) {
  32378. try {
  32379. res = rule.validator(rule, data.value, cb, data.source, options);
  32380. } catch (error) {
  32381. console.error == null ? void 0 : console.error(error);
  32382. if (!options.suppressValidatorError) {
  32383. setTimeout(function() {
  32384. throw error;
  32385. }, 0);
  32386. }
  32387. cb(error.message);
  32388. }
  32389. if (res === true) {
  32390. cb();
  32391. } else if (res === false) {
  32392. cb(typeof rule.message === "function" ? rule.message(rule.fullField || rule.field) : rule.message || (rule.fullField || rule.field) + " fails");
  32393. } else if (res instanceof Array) {
  32394. cb(res);
  32395. } else if (res instanceof Error) {
  32396. cb(res.message);
  32397. }
  32398. }
  32399. if (res && res.then) {
  32400. res.then(function() {
  32401. return cb();
  32402. }, function(e) {
  32403. return cb(e);
  32404. });
  32405. }
  32406. }, function(results) {
  32407. complete(results);
  32408. }, source);
  32409. };
  32410. _proto.getType = function getType(rule) {
  32411. if (rule.type === void 0 && rule.pattern instanceof RegExp) {
  32412. rule.type = "pattern";
  32413. }
  32414. if (typeof rule.validator !== "function" && rule.type && !validators.hasOwnProperty(rule.type)) {
  32415. throw new Error(format("Unknown rule type %s", rule.type));
  32416. }
  32417. return rule.type || "string";
  32418. };
  32419. _proto.getValidationMethod = function getValidationMethod(rule) {
  32420. if (typeof rule.validator === "function") {
  32421. return rule.validator;
  32422. }
  32423. var keys3 = Object.keys(rule);
  32424. var messageIndex = keys3.indexOf("message");
  32425. if (messageIndex !== -1) {
  32426. keys3.splice(messageIndex, 1);
  32427. }
  32428. if (keys3.length === 1 && keys3[0] === "required") {
  32429. return validators.required;
  32430. }
  32431. return validators[this.getType(rule)] || void 0;
  32432. };
  32433. return Schema2;
  32434. }();
  32435. Schema.register = function register(type4, validator) {
  32436. if (typeof validator !== "function") {
  32437. throw new Error("Cannot register a validator by type, validator is not a function");
  32438. }
  32439. validators[type4] = validator;
  32440. };
  32441. Schema.warning = warning;
  32442. Schema.messages = messages;
  32443. Schema.validators = validators;
  32444. // node_modules/element-plus/es/components/form/src/form-item.mjs
  32445. var formItemValidateStates = [
  32446. "",
  32447. "error",
  32448. "validating",
  32449. "success"
  32450. ];
  32451. var formItemProps = buildProps({
  32452. label: String,
  32453. labelWidth: {
  32454. type: [String, Number],
  32455. default: ""
  32456. },
  32457. labelPosition: {
  32458. type: String,
  32459. values: ["left", "right", "top", ""],
  32460. default: ""
  32461. },
  32462. prop: {
  32463. type: definePropType([String, Array])
  32464. },
  32465. required: {
  32466. type: Boolean,
  32467. default: void 0
  32468. },
  32469. rules: {
  32470. type: definePropType([Object, Array])
  32471. },
  32472. error: String,
  32473. validateStatus: {
  32474. type: String,
  32475. values: formItemValidateStates
  32476. },
  32477. for: String,
  32478. inlineMessage: {
  32479. type: Boolean,
  32480. default: void 0
  32481. },
  32482. showMessage: {
  32483. type: Boolean,
  32484. default: true
  32485. },
  32486. size: {
  32487. type: String,
  32488. values: componentSizes
  32489. }
  32490. });
  32491. // node_modules/element-plus/es/components/form/src/form-label-wrap.mjs
  32492. var COMPONENT_NAME12 = "ElLabelWrap";
  32493. var FormLabelWrap = defineComponent({
  32494. name: COMPONENT_NAME12,
  32495. props: {
  32496. isAutoWidth: Boolean,
  32497. updateAll: Boolean
  32498. },
  32499. setup(props2, {
  32500. slots
  32501. }) {
  32502. const formContext = inject(formContextKey, void 0);
  32503. const formItemContext = inject(formItemContextKey);
  32504. if (!formItemContext)
  32505. throwError(COMPONENT_NAME12, "usage: <el-form-item><label-wrap /></el-form-item>");
  32506. const ns = useNamespace("form");
  32507. const el = ref();
  32508. const computedWidth = ref(0);
  32509. const getLabelWidth = () => {
  32510. var _a2;
  32511. if ((_a2 = el.value) == null ? void 0 : _a2.firstElementChild) {
  32512. const width = window.getComputedStyle(el.value.firstElementChild).width;
  32513. return Math.ceil(Number.parseFloat(width));
  32514. } else {
  32515. return 0;
  32516. }
  32517. };
  32518. const updateLabelWidth = (action = "update") => {
  32519. nextTick(() => {
  32520. if (slots.default && props2.isAutoWidth) {
  32521. if (action === "update") {
  32522. computedWidth.value = getLabelWidth();
  32523. } else if (action === "remove") {
  32524. formContext == null ? void 0 : formContext.deregisterLabelWidth(computedWidth.value);
  32525. }
  32526. }
  32527. });
  32528. };
  32529. const updateLabelWidthFn = () => updateLabelWidth("update");
  32530. onMounted(() => {
  32531. updateLabelWidthFn();
  32532. });
  32533. onBeforeUnmount(() => {
  32534. updateLabelWidth("remove");
  32535. });
  32536. onUpdated(() => updateLabelWidthFn());
  32537. watch(computedWidth, (val, oldVal) => {
  32538. if (props2.updateAll) {
  32539. formContext == null ? void 0 : formContext.registerLabelWidth(val, oldVal);
  32540. }
  32541. });
  32542. useResizeObserver(computed(() => {
  32543. var _a2, _b;
  32544. return (_b = (_a2 = el.value) == null ? void 0 : _a2.firstElementChild) != null ? _b : null;
  32545. }), updateLabelWidthFn);
  32546. return () => {
  32547. var _a2, _b;
  32548. if (!slots)
  32549. return null;
  32550. const {
  32551. isAutoWidth
  32552. } = props2;
  32553. if (isAutoWidth) {
  32554. const autoLabelWidth = formContext == null ? void 0 : formContext.autoLabelWidth;
  32555. const hasLabel = formItemContext == null ? void 0 : formItemContext.hasLabel;
  32556. const style = {};
  32557. if (hasLabel && autoLabelWidth && autoLabelWidth !== "auto") {
  32558. const marginWidth = Math.max(0, Number.parseInt(autoLabelWidth, 10) - computedWidth.value);
  32559. const labelPosition = formItemContext.labelPosition || formContext.labelPosition;
  32560. const marginPosition = labelPosition === "left" ? "marginRight" : "marginLeft";
  32561. if (marginWidth) {
  32562. style[marginPosition] = `${marginWidth}px`;
  32563. }
  32564. }
  32565. return createVNode("div", {
  32566. "ref": el,
  32567. "class": [ns.be("item", "label-wrap")],
  32568. "style": style
  32569. }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
  32570. } else {
  32571. return createVNode(Fragment, {
  32572. "ref": el
  32573. }, [(_b = slots.default) == null ? void 0 : _b.call(slots)]);
  32574. }
  32575. };
  32576. }
  32577. });
  32578. // node_modules/element-plus/es/components/form/src/form-item2.mjs
  32579. var __default__66 = defineComponent({
  32580. name: "ElFormItem"
  32581. });
  32582. var _sfc_main87 = defineComponent({
  32583. ...__default__66,
  32584. props: formItemProps,
  32585. setup(__props, { expose }) {
  32586. const props2 = __props;
  32587. const slots = useSlots();
  32588. const formContext = inject(formContextKey, void 0);
  32589. const parentFormItemContext = inject(formItemContextKey, void 0);
  32590. const _size = useFormSize(void 0, { formItem: false });
  32591. const ns = useNamespace("form-item");
  32592. const labelId = useId().value;
  32593. const inputIds = ref([]);
  32594. const validateState = ref("");
  32595. const validateStateDebounced = refDebounced(validateState, 100);
  32596. const validateMessage = ref("");
  32597. const formItemRef = ref();
  32598. let initialValue = void 0;
  32599. let isResettingField = false;
  32600. const labelPosition = computed(() => props2.labelPosition || (formContext == null ? void 0 : formContext.labelPosition));
  32601. const labelStyle = computed(() => {
  32602. if (labelPosition.value === "top") {
  32603. return {};
  32604. }
  32605. const labelWidth = addUnit(props2.labelWidth || (formContext == null ? void 0 : formContext.labelWidth) || "");
  32606. if (labelWidth)
  32607. return { width: labelWidth };
  32608. return {};
  32609. });
  32610. const contentStyle = computed(() => {
  32611. if (labelPosition.value === "top" || (formContext == null ? void 0 : formContext.inline)) {
  32612. return {};
  32613. }
  32614. if (!props2.label && !props2.labelWidth && isNested) {
  32615. return {};
  32616. }
  32617. const labelWidth = addUnit(props2.labelWidth || (formContext == null ? void 0 : formContext.labelWidth) || "");
  32618. if (!props2.label && !slots.label) {
  32619. return { marginLeft: labelWidth };
  32620. }
  32621. return {};
  32622. });
  32623. const formItemClasses = computed(() => [
  32624. ns.b(),
  32625. ns.m(_size.value),
  32626. ns.is("error", validateState.value === "error"),
  32627. ns.is("validating", validateState.value === "validating"),
  32628. ns.is("success", validateState.value === "success"),
  32629. ns.is("required", isRequired.value || props2.required),
  32630. ns.is("no-asterisk", formContext == null ? void 0 : formContext.hideRequiredAsterisk),
  32631. (formContext == null ? void 0 : formContext.requireAsteriskPosition) === "right" ? "asterisk-right" : "asterisk-left",
  32632. {
  32633. [ns.m("feedback")]: formContext == null ? void 0 : formContext.statusIcon,
  32634. [ns.m(`label-${labelPosition.value}`)]: labelPosition.value
  32635. }
  32636. ]);
  32637. const _inlineMessage = computed(() => isBoolean2(props2.inlineMessage) ? props2.inlineMessage : (formContext == null ? void 0 : formContext.inlineMessage) || false);
  32638. const validateClasses = computed(() => [
  32639. ns.e("error"),
  32640. { [ns.em("error", "inline")]: _inlineMessage.value }
  32641. ]);
  32642. const propString = computed(() => {
  32643. if (!props2.prop)
  32644. return "";
  32645. return isArray(props2.prop) ? props2.prop.join(".") : props2.prop;
  32646. });
  32647. const hasLabel = computed(() => {
  32648. return !!(props2.label || slots.label);
  32649. });
  32650. const labelFor = computed(() => {
  32651. var _a2;
  32652. return (_a2 = props2.for) != null ? _a2 : inputIds.value.length === 1 ? inputIds.value[0] : void 0;
  32653. });
  32654. const isGroup = computed(() => {
  32655. return !labelFor.value && hasLabel.value;
  32656. });
  32657. const isNested = !!parentFormItemContext;
  32658. const fieldValue = computed(() => {
  32659. const model = formContext == null ? void 0 : formContext.model;
  32660. if (!model || !props2.prop) {
  32661. return;
  32662. }
  32663. return getProp(model, props2.prop).value;
  32664. });
  32665. const normalizedRules = computed(() => {
  32666. const { required: required4 } = props2;
  32667. const rules2 = [];
  32668. if (props2.rules) {
  32669. rules2.push(...castArray_default(props2.rules));
  32670. }
  32671. const formRules = formContext == null ? void 0 : formContext.rules;
  32672. if (formRules && props2.prop) {
  32673. const _rules = getProp(formRules, props2.prop).value;
  32674. if (_rules) {
  32675. rules2.push(...castArray_default(_rules));
  32676. }
  32677. }
  32678. if (required4 !== void 0) {
  32679. const requiredRules = rules2.map((rule, i) => [rule, i]).filter(([rule]) => "required" in rule);
  32680. if (requiredRules.length > 0) {
  32681. for (const [rule, i] of requiredRules) {
  32682. if (rule.required === required4)
  32683. continue;
  32684. rules2[i] = { ...rule, required: required4 };
  32685. }
  32686. } else {
  32687. rules2.push({ required: required4 });
  32688. }
  32689. }
  32690. return rules2;
  32691. });
  32692. const validateEnabled = computed(() => normalizedRules.value.length > 0);
  32693. const getFilteredRule = (trigger) => {
  32694. const rules2 = normalizedRules.value;
  32695. return rules2.filter((rule) => {
  32696. if (!rule.trigger || !trigger)
  32697. return true;
  32698. if (isArray(rule.trigger)) {
  32699. return rule.trigger.includes(trigger);
  32700. } else {
  32701. return rule.trigger === trigger;
  32702. }
  32703. }).map(({ trigger: trigger2, ...rule }) => rule);
  32704. };
  32705. const isRequired = computed(() => normalizedRules.value.some((rule) => rule.required));
  32706. const shouldShowError = computed(() => {
  32707. var _a2;
  32708. return validateStateDebounced.value === "error" && props2.showMessage && ((_a2 = formContext == null ? void 0 : formContext.showMessage) != null ? _a2 : true);
  32709. });
  32710. const currentLabel = computed(() => `${props2.label || ""}${(formContext == null ? void 0 : formContext.labelSuffix) || ""}`);
  32711. const setValidationState = (state) => {
  32712. validateState.value = state;
  32713. };
  32714. const onValidationFailed = (error) => {
  32715. var _a2, _b;
  32716. const { errors, fields } = error;
  32717. if (!errors || !fields) {
  32718. console.error(error);
  32719. }
  32720. setValidationState("error");
  32721. validateMessage.value = errors ? (_b = (_a2 = errors == null ? void 0 : errors[0]) == null ? void 0 : _a2.message) != null ? _b : `${props2.prop} is required` : "";
  32722. formContext == null ? void 0 : formContext.emit("validate", props2.prop, false, validateMessage.value);
  32723. };
  32724. const onValidationSucceeded = () => {
  32725. setValidationState("success");
  32726. formContext == null ? void 0 : formContext.emit("validate", props2.prop, true, "");
  32727. };
  32728. const doValidate = async (rules2) => {
  32729. const modelName = propString.value;
  32730. const validator = new Schema({
  32731. [modelName]: rules2
  32732. });
  32733. return validator.validate({ [modelName]: fieldValue.value }, { firstFields: true }).then(() => {
  32734. onValidationSucceeded();
  32735. return true;
  32736. }).catch((err) => {
  32737. onValidationFailed(err);
  32738. return Promise.reject(err);
  32739. });
  32740. };
  32741. const validate = async (trigger, callback) => {
  32742. if (isResettingField || !props2.prop) {
  32743. return false;
  32744. }
  32745. const hasCallback = isFunction(callback);
  32746. if (!validateEnabled.value) {
  32747. callback == null ? void 0 : callback(false);
  32748. return false;
  32749. }
  32750. const rules2 = getFilteredRule(trigger);
  32751. if (rules2.length === 0) {
  32752. callback == null ? void 0 : callback(true);
  32753. return true;
  32754. }
  32755. setValidationState("validating");
  32756. return doValidate(rules2).then(() => {
  32757. callback == null ? void 0 : callback(true);
  32758. return true;
  32759. }).catch((err) => {
  32760. const { fields } = err;
  32761. callback == null ? void 0 : callback(false, fields);
  32762. return hasCallback ? false : Promise.reject(fields);
  32763. });
  32764. };
  32765. const clearValidate = () => {
  32766. setValidationState("");
  32767. validateMessage.value = "";
  32768. isResettingField = false;
  32769. };
  32770. const resetField = async () => {
  32771. const model = formContext == null ? void 0 : formContext.model;
  32772. if (!model || !props2.prop)
  32773. return;
  32774. const computedValue = getProp(model, props2.prop);
  32775. isResettingField = true;
  32776. computedValue.value = clone_default(initialValue);
  32777. await nextTick();
  32778. clearValidate();
  32779. isResettingField = false;
  32780. };
  32781. const addInputId = (id) => {
  32782. if (!inputIds.value.includes(id)) {
  32783. inputIds.value.push(id);
  32784. }
  32785. };
  32786. const removeInputId = (id) => {
  32787. inputIds.value = inputIds.value.filter((listId) => listId !== id);
  32788. };
  32789. watch(() => props2.error, (val) => {
  32790. validateMessage.value = val || "";
  32791. setValidationState(val ? "error" : "");
  32792. }, { immediate: true });
  32793. watch(() => props2.validateStatus, (val) => setValidationState(val || ""));
  32794. const context = reactive({
  32795. ...toRefs(props2),
  32796. $el: formItemRef,
  32797. size: _size,
  32798. validateMessage,
  32799. validateState,
  32800. labelId,
  32801. inputIds,
  32802. isGroup,
  32803. hasLabel,
  32804. fieldValue,
  32805. addInputId,
  32806. removeInputId,
  32807. resetField,
  32808. clearValidate,
  32809. validate,
  32810. propString
  32811. });
  32812. provide(formItemContextKey, context);
  32813. onMounted(() => {
  32814. if (props2.prop) {
  32815. formContext == null ? void 0 : formContext.addField(context);
  32816. initialValue = clone_default(fieldValue.value);
  32817. }
  32818. });
  32819. onBeforeUnmount(() => {
  32820. formContext == null ? void 0 : formContext.removeField(context);
  32821. });
  32822. expose({
  32823. size: _size,
  32824. validateMessage,
  32825. validateState,
  32826. validate,
  32827. clearValidate,
  32828. resetField
  32829. });
  32830. return (_ctx, _cache) => {
  32831. var _a2;
  32832. return openBlock(), createElementBlock("div", {
  32833. ref_key: "formItemRef",
  32834. ref: formItemRef,
  32835. class: normalizeClass(unref(formItemClasses)),
  32836. role: unref(isGroup) ? "group" : void 0,
  32837. "aria-labelledby": unref(isGroup) ? unref(labelId) : void 0
  32838. }, [
  32839. createVNode(unref(FormLabelWrap), {
  32840. "is-auto-width": unref(labelStyle).width === "auto",
  32841. "update-all": ((_a2 = unref(formContext)) == null ? void 0 : _a2.labelWidth) === "auto"
  32842. }, {
  32843. default: withCtx(() => [
  32844. !!(_ctx.label || _ctx.$slots.label) ? (openBlock(), createBlock(resolveDynamicComponent(unref(labelFor) ? "label" : "div"), {
  32845. key: 0,
  32846. id: unref(labelId),
  32847. for: unref(labelFor),
  32848. class: normalizeClass(unref(ns).e("label")),
  32849. style: normalizeStyle(unref(labelStyle))
  32850. }, {
  32851. default: withCtx(() => [
  32852. renderSlot(_ctx.$slots, "label", { label: unref(currentLabel) }, () => [
  32853. createTextVNode(toDisplayString(unref(currentLabel)), 1)
  32854. ])
  32855. ]),
  32856. _: 3
  32857. }, 8, ["id", "for", "class", "style"])) : createCommentVNode("v-if", true)
  32858. ]),
  32859. _: 3
  32860. }, 8, ["is-auto-width", "update-all"]),
  32861. createBaseVNode("div", {
  32862. class: normalizeClass(unref(ns).e("content")),
  32863. style: normalizeStyle(unref(contentStyle))
  32864. }, [
  32865. renderSlot(_ctx.$slots, "default"),
  32866. createVNode(TransitionGroup, {
  32867. name: `${unref(ns).namespace.value}-zoom-in-top`
  32868. }, {
  32869. default: withCtx(() => [
  32870. unref(shouldShowError) ? renderSlot(_ctx.$slots, "error", {
  32871. key: 0,
  32872. error: validateMessage.value
  32873. }, () => [
  32874. createBaseVNode("div", {
  32875. class: normalizeClass(unref(validateClasses))
  32876. }, toDisplayString(validateMessage.value), 3)
  32877. ]) : createCommentVNode("v-if", true)
  32878. ]),
  32879. _: 3
  32880. }, 8, ["name"])
  32881. ], 6)
  32882. ], 10, ["role", "aria-labelledby"]);
  32883. };
  32884. }
  32885. });
  32886. var FormItem = _export_sfc(_sfc_main87, [["__file", "form-item.vue"]]);
  32887. // node_modules/element-plus/es/components/form/index.mjs
  32888. var ElForm = withInstall(Form, {
  32889. FormItem
  32890. });
  32891. var ElFormItem = withNoopInstall(FormItem);
  32892. // node_modules/element-plus/es/components/image-viewer/src/image-viewer.mjs
  32893. var imageViewerProps = buildProps({
  32894. urlList: {
  32895. type: definePropType(Array),
  32896. default: () => mutable([])
  32897. },
  32898. zIndex: {
  32899. type: Number
  32900. },
  32901. initialIndex: {
  32902. type: Number,
  32903. default: 0
  32904. },
  32905. infinite: {
  32906. type: Boolean,
  32907. default: true
  32908. },
  32909. hideOnClickModal: Boolean,
  32910. teleported: Boolean,
  32911. closeOnPressEscape: {
  32912. type: Boolean,
  32913. default: true
  32914. },
  32915. zoomRate: {
  32916. type: Number,
  32917. default: 1.2
  32918. },
  32919. scale: {
  32920. type: Number,
  32921. default: 1
  32922. },
  32923. minScale: {
  32924. type: Number,
  32925. default: 0.2
  32926. },
  32927. maxScale: {
  32928. type: Number,
  32929. default: 7
  32930. },
  32931. showProgress: Boolean,
  32932. crossorigin: {
  32933. type: definePropType(String)
  32934. }
  32935. });
  32936. var imageViewerEmits = {
  32937. close: () => true,
  32938. error: (evt) => evt instanceof Event,
  32939. switch: (index) => isNumber2(index),
  32940. rotate: (deg) => isNumber2(deg)
  32941. };
  32942. // node_modules/element-plus/es/components/image-viewer/src/image-viewer2.mjs
  32943. var __default__67 = defineComponent({
  32944. name: "ElImageViewer"
  32945. });
  32946. var _sfc_main88 = defineComponent({
  32947. ...__default__67,
  32948. props: imageViewerProps,
  32949. emits: imageViewerEmits,
  32950. setup(__props, { expose, emit }) {
  32951. var _a2;
  32952. const props2 = __props;
  32953. const modes = {
  32954. CONTAIN: {
  32955. name: "contain",
  32956. icon: markRaw(full_screen_default)
  32957. },
  32958. ORIGINAL: {
  32959. name: "original",
  32960. icon: markRaw(scale_to_original_default)
  32961. }
  32962. };
  32963. let stopWheelListener;
  32964. let prevOverflow = "";
  32965. const { t } = useLocale();
  32966. const ns = useNamespace("image-viewer");
  32967. const { nextZIndex } = useZIndex();
  32968. const wrapper = ref();
  32969. const imgRef = ref();
  32970. const scopeEventListener = effectScope();
  32971. const scaleClamped = computed(() => {
  32972. const { scale, minScale, maxScale } = props2;
  32973. return clamp2(scale, minScale, maxScale);
  32974. });
  32975. const loading = ref(true);
  32976. const loadError = ref(false);
  32977. const activeIndex = ref(props2.initialIndex);
  32978. const mode = shallowRef(modes.CONTAIN);
  32979. const transform2 = ref({
  32980. scale: scaleClamped.value,
  32981. deg: 0,
  32982. offsetX: 0,
  32983. offsetY: 0,
  32984. enableTransition: false
  32985. });
  32986. const zIndex2 = ref((_a2 = props2.zIndex) != null ? _a2 : nextZIndex());
  32987. const isSingle = computed(() => {
  32988. const { urlList } = props2;
  32989. return urlList.length <= 1;
  32990. });
  32991. const isFirst = computed(() => activeIndex.value === 0);
  32992. const isLast = computed(() => activeIndex.value === props2.urlList.length - 1);
  32993. const currentImg = computed(() => props2.urlList[activeIndex.value]);
  32994. const arrowPrevKls = computed(() => [
  32995. ns.e("btn"),
  32996. ns.e("prev"),
  32997. ns.is("disabled", !props2.infinite && isFirst.value)
  32998. ]);
  32999. const arrowNextKls = computed(() => [
  33000. ns.e("btn"),
  33001. ns.e("next"),
  33002. ns.is("disabled", !props2.infinite && isLast.value)
  33003. ]);
  33004. const imgStyle = computed(() => {
  33005. const { scale, deg, offsetX, offsetY, enableTransition } = transform2.value;
  33006. let translateX = offsetX / scale;
  33007. let translateY = offsetY / scale;
  33008. const radian = deg * Math.PI / 180;
  33009. const cosRadian = Math.cos(radian);
  33010. const sinRadian = Math.sin(radian);
  33011. translateX = translateX * cosRadian + translateY * sinRadian;
  33012. translateY = translateY * cosRadian - offsetX / scale * sinRadian;
  33013. const style = {
  33014. transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,
  33015. transition: enableTransition ? "transform .3s" : ""
  33016. };
  33017. if (mode.value.name === modes.CONTAIN.name) {
  33018. style.maxWidth = style.maxHeight = "100%";
  33019. }
  33020. return style;
  33021. });
  33022. const progress = computed(() => `${activeIndex.value + 1} / ${props2.urlList.length}`);
  33023. function hide2() {
  33024. unregisterEventListener();
  33025. stopWheelListener == null ? void 0 : stopWheelListener();
  33026. document.body.style.overflow = prevOverflow;
  33027. emit("close");
  33028. }
  33029. function registerEventListener() {
  33030. const keydownHandler = throttle_default((e) => {
  33031. const code = getEventCode(e);
  33032. switch (code) {
  33033. case EVENT_CODE.esc:
  33034. props2.closeOnPressEscape && hide2();
  33035. break;
  33036. case EVENT_CODE.space:
  33037. toggleMode();
  33038. break;
  33039. case EVENT_CODE.left:
  33040. prev();
  33041. break;
  33042. case EVENT_CODE.up:
  33043. handleActions("zoomIn");
  33044. break;
  33045. case EVENT_CODE.right:
  33046. next();
  33047. break;
  33048. case EVENT_CODE.down:
  33049. handleActions("zoomOut");
  33050. break;
  33051. }
  33052. });
  33053. const mousewheelHandler = throttle_default((e) => {
  33054. const delta = e.deltaY || e.deltaX;
  33055. handleActions(delta < 0 ? "zoomIn" : "zoomOut", {
  33056. zoomRate: props2.zoomRate,
  33057. enableTransition: false
  33058. });
  33059. });
  33060. scopeEventListener.run(() => {
  33061. useEventListener(document, "keydown", keydownHandler);
  33062. useEventListener(document, "wheel", mousewheelHandler);
  33063. });
  33064. }
  33065. function unregisterEventListener() {
  33066. scopeEventListener.stop();
  33067. }
  33068. function handleImgLoad() {
  33069. loading.value = false;
  33070. }
  33071. function handleImgError(e) {
  33072. loadError.value = true;
  33073. loading.value = false;
  33074. emit("error", e);
  33075. e.target.alt = t("el.image.error");
  33076. }
  33077. function handleMouseDown(e) {
  33078. if (loading.value || e.button !== 0 || !wrapper.value)
  33079. return;
  33080. transform2.value.enableTransition = false;
  33081. const { offsetX, offsetY } = transform2.value;
  33082. const startX = e.pageX;
  33083. const startY = e.pageY;
  33084. const dragHandler = throttle_default((ev) => {
  33085. transform2.value = {
  33086. ...transform2.value,
  33087. offsetX: offsetX + ev.pageX - startX,
  33088. offsetY: offsetY + ev.pageY - startY
  33089. };
  33090. });
  33091. const removeMousemove = useEventListener(document, "mousemove", dragHandler);
  33092. useEventListener(document, "mouseup", () => {
  33093. removeMousemove();
  33094. });
  33095. e.preventDefault();
  33096. }
  33097. function reset() {
  33098. transform2.value = {
  33099. scale: scaleClamped.value,
  33100. deg: 0,
  33101. offsetX: 0,
  33102. offsetY: 0,
  33103. enableTransition: false
  33104. };
  33105. }
  33106. function toggleMode() {
  33107. if (loading.value || loadError.value)
  33108. return;
  33109. const modeNames = keysOf(modes);
  33110. const modeValues = Object.values(modes);
  33111. const currentMode = mode.value.name;
  33112. const index = modeValues.findIndex((i) => i.name === currentMode);
  33113. const nextIndex = (index + 1) % modeNames.length;
  33114. mode.value = modes[modeNames[nextIndex]];
  33115. reset();
  33116. }
  33117. function setActiveItem(index) {
  33118. loadError.value = false;
  33119. const len = props2.urlList.length;
  33120. activeIndex.value = (index + len) % len;
  33121. }
  33122. function prev() {
  33123. if (isFirst.value && !props2.infinite)
  33124. return;
  33125. setActiveItem(activeIndex.value - 1);
  33126. }
  33127. function next() {
  33128. if (isLast.value && !props2.infinite)
  33129. return;
  33130. setActiveItem(activeIndex.value + 1);
  33131. }
  33132. function handleActions(action, options = {}) {
  33133. if (loading.value || loadError.value)
  33134. return;
  33135. const { minScale, maxScale } = props2;
  33136. const { zoomRate, rotateDeg, enableTransition } = {
  33137. zoomRate: props2.zoomRate,
  33138. rotateDeg: 90,
  33139. enableTransition: true,
  33140. ...options
  33141. };
  33142. switch (action) {
  33143. case "zoomOut":
  33144. if (transform2.value.scale > minScale) {
  33145. transform2.value.scale = Number.parseFloat((transform2.value.scale / zoomRate).toFixed(3));
  33146. }
  33147. break;
  33148. case "zoomIn":
  33149. if (transform2.value.scale < maxScale) {
  33150. transform2.value.scale = Number.parseFloat((transform2.value.scale * zoomRate).toFixed(3));
  33151. }
  33152. break;
  33153. case "clockwise":
  33154. transform2.value.deg += rotateDeg;
  33155. emit("rotate", transform2.value.deg);
  33156. break;
  33157. case "anticlockwise":
  33158. transform2.value.deg -= rotateDeg;
  33159. emit("rotate", transform2.value.deg);
  33160. break;
  33161. }
  33162. transform2.value.enableTransition = enableTransition;
  33163. }
  33164. function onFocusoutPrevented(event) {
  33165. var _a22;
  33166. if (((_a22 = event.detail) == null ? void 0 : _a22.focusReason) === "pointer") {
  33167. event.preventDefault();
  33168. }
  33169. }
  33170. function onCloseRequested() {
  33171. if (props2.closeOnPressEscape) {
  33172. hide2();
  33173. }
  33174. }
  33175. function wheelHandler(e) {
  33176. if (!e.ctrlKey)
  33177. return;
  33178. if (e.deltaY < 0) {
  33179. e.preventDefault();
  33180. return false;
  33181. } else if (e.deltaY > 0) {
  33182. e.preventDefault();
  33183. return false;
  33184. }
  33185. }
  33186. watch(() => scaleClamped.value, (val) => {
  33187. transform2.value.scale = val;
  33188. });
  33189. watch(currentImg, () => {
  33190. nextTick(() => {
  33191. const $img = imgRef.value;
  33192. if (!($img == null ? void 0 : $img.complete)) {
  33193. loading.value = true;
  33194. }
  33195. });
  33196. });
  33197. watch(activeIndex, (val) => {
  33198. reset();
  33199. emit("switch", val);
  33200. });
  33201. onMounted(() => {
  33202. registerEventListener();
  33203. stopWheelListener = useEventListener("wheel", wheelHandler, {
  33204. passive: false
  33205. });
  33206. prevOverflow = document.body.style.overflow;
  33207. document.body.style.overflow = "hidden";
  33208. });
  33209. expose({
  33210. setActiveItem
  33211. });
  33212. return (_ctx, _cache) => {
  33213. return openBlock(), createBlock(unref(ElTeleport), {
  33214. to: "body",
  33215. disabled: !_ctx.teleported
  33216. }, {
  33217. default: withCtx(() => [
  33218. createVNode(Transition, {
  33219. name: "viewer-fade",
  33220. appear: ""
  33221. }, {
  33222. default: withCtx(() => [
  33223. createBaseVNode("div", {
  33224. ref_key: "wrapper",
  33225. ref: wrapper,
  33226. tabindex: -1,
  33227. class: normalizeClass(unref(ns).e("wrapper")),
  33228. style: normalizeStyle({ zIndex: zIndex2.value })
  33229. }, [
  33230. createVNode(unref(ElFocusTrap), {
  33231. loop: "",
  33232. trapped: "",
  33233. "focus-trap-el": wrapper.value,
  33234. "focus-start-el": "container",
  33235. onFocusoutPrevented,
  33236. onReleaseRequested: onCloseRequested
  33237. }, {
  33238. default: withCtx(() => [
  33239. createBaseVNode("div", {
  33240. class: normalizeClass(unref(ns).e("mask")),
  33241. onClick: withModifiers(($event) => _ctx.hideOnClickModal && hide2(), ["self"])
  33242. }, null, 10, ["onClick"]),
  33243. createCommentVNode(" CLOSE "),
  33244. createBaseVNode("span", {
  33245. class: normalizeClass([unref(ns).e("btn"), unref(ns).e("close")]),
  33246. onClick: hide2
  33247. }, [
  33248. createVNode(unref(ElIcon), null, {
  33249. default: withCtx(() => [
  33250. createVNode(unref(close_default))
  33251. ]),
  33252. _: 1
  33253. })
  33254. ], 2),
  33255. createCommentVNode(" ARROW "),
  33256. !unref(isSingle) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  33257. createBaseVNode("span", {
  33258. class: normalizeClass(unref(arrowPrevKls)),
  33259. onClick: prev
  33260. }, [
  33261. createVNode(unref(ElIcon), null, {
  33262. default: withCtx(() => [
  33263. createVNode(unref(arrow_left_default))
  33264. ]),
  33265. _: 1
  33266. })
  33267. ], 2),
  33268. createBaseVNode("span", {
  33269. class: normalizeClass(unref(arrowNextKls)),
  33270. onClick: next
  33271. }, [
  33272. createVNode(unref(ElIcon), null, {
  33273. default: withCtx(() => [
  33274. createVNode(unref(arrow_right_default))
  33275. ]),
  33276. _: 1
  33277. })
  33278. ], 2)
  33279. ], 64)) : createCommentVNode("v-if", true),
  33280. _ctx.$slots.progress || _ctx.showProgress ? (openBlock(), createElementBlock("div", {
  33281. key: 1,
  33282. class: normalizeClass([unref(ns).e("btn"), unref(ns).e("progress")])
  33283. }, [
  33284. renderSlot(_ctx.$slots, "progress", {
  33285. activeIndex: activeIndex.value,
  33286. total: _ctx.urlList.length
  33287. }, () => [
  33288. createTextVNode(toDisplayString(unref(progress)), 1)
  33289. ])
  33290. ], 2)) : createCommentVNode("v-if", true),
  33291. createCommentVNode(" ACTIONS "),
  33292. createBaseVNode("div", {
  33293. class: normalizeClass([unref(ns).e("btn"), unref(ns).e("actions")])
  33294. }, [
  33295. createBaseVNode("div", {
  33296. class: normalizeClass(unref(ns).e("actions__inner"))
  33297. }, [
  33298. renderSlot(_ctx.$slots, "toolbar", {
  33299. actions: handleActions,
  33300. prev,
  33301. next,
  33302. reset: toggleMode,
  33303. activeIndex: activeIndex.value,
  33304. setActiveItem
  33305. }, () => [
  33306. createVNode(unref(ElIcon), {
  33307. onClick: ($event) => handleActions("zoomOut")
  33308. }, {
  33309. default: withCtx(() => [
  33310. createVNode(unref(zoom_out_default))
  33311. ]),
  33312. _: 1
  33313. }, 8, ["onClick"]),
  33314. createVNode(unref(ElIcon), {
  33315. onClick: ($event) => handleActions("zoomIn")
  33316. }, {
  33317. default: withCtx(() => [
  33318. createVNode(unref(zoom_in_default))
  33319. ]),
  33320. _: 1
  33321. }, 8, ["onClick"]),
  33322. createBaseVNode("i", {
  33323. class: normalizeClass(unref(ns).e("actions__divider"))
  33324. }, null, 2),
  33325. createVNode(unref(ElIcon), { onClick: toggleMode }, {
  33326. default: withCtx(() => [
  33327. (openBlock(), createBlock(resolveDynamicComponent(unref(mode).icon)))
  33328. ]),
  33329. _: 1
  33330. }),
  33331. createBaseVNode("i", {
  33332. class: normalizeClass(unref(ns).e("actions__divider"))
  33333. }, null, 2),
  33334. createVNode(unref(ElIcon), {
  33335. onClick: ($event) => handleActions("anticlockwise")
  33336. }, {
  33337. default: withCtx(() => [
  33338. createVNode(unref(refresh_left_default))
  33339. ]),
  33340. _: 1
  33341. }, 8, ["onClick"]),
  33342. createVNode(unref(ElIcon), {
  33343. onClick: ($event) => handleActions("clockwise")
  33344. }, {
  33345. default: withCtx(() => [
  33346. createVNode(unref(refresh_right_default))
  33347. ]),
  33348. _: 1
  33349. }, 8, ["onClick"])
  33350. ])
  33351. ], 2)
  33352. ], 2),
  33353. createCommentVNode(" CANVAS "),
  33354. createBaseVNode("div", {
  33355. class: normalizeClass(unref(ns).e("canvas"))
  33356. }, [
  33357. loadError.value && _ctx.$slots["viewer-error"] ? renderSlot(_ctx.$slots, "viewer-error", {
  33358. key: 0,
  33359. activeIndex: activeIndex.value,
  33360. src: unref(currentImg)
  33361. }) : (openBlock(), createElementBlock("img", {
  33362. ref_key: "imgRef",
  33363. ref: imgRef,
  33364. key: unref(currentImg),
  33365. src: unref(currentImg),
  33366. style: normalizeStyle(unref(imgStyle)),
  33367. class: normalizeClass(unref(ns).e("img")),
  33368. crossorigin: _ctx.crossorigin,
  33369. onLoad: handleImgLoad,
  33370. onError: handleImgError,
  33371. onMousedown: handleMouseDown
  33372. }, null, 46, ["src", "crossorigin"]))
  33373. ], 2),
  33374. renderSlot(_ctx.$slots, "default")
  33375. ]),
  33376. _: 3
  33377. }, 8, ["focus-trap-el"])
  33378. ], 6)
  33379. ]),
  33380. _: 3
  33381. })
  33382. ]),
  33383. _: 3
  33384. }, 8, ["disabled"]);
  33385. };
  33386. }
  33387. });
  33388. var ImageViewer = _export_sfc(_sfc_main88, [["__file", "image-viewer.vue"]]);
  33389. // node_modules/element-plus/es/components/image-viewer/index.mjs
  33390. var ElImageViewer = withInstall(ImageViewer);
  33391. // node_modules/element-plus/es/components/image/src/image2.mjs
  33392. var imageProps = buildProps({
  33393. hideOnClickModal: Boolean,
  33394. src: {
  33395. type: String,
  33396. default: ""
  33397. },
  33398. fit: {
  33399. type: String,
  33400. values: ["", "contain", "cover", "fill", "none", "scale-down"],
  33401. default: ""
  33402. },
  33403. loading: {
  33404. type: String,
  33405. values: ["eager", "lazy"]
  33406. },
  33407. lazy: Boolean,
  33408. scrollContainer: {
  33409. type: definePropType([String, Object])
  33410. },
  33411. previewSrcList: {
  33412. type: definePropType(Array),
  33413. default: () => mutable([])
  33414. },
  33415. previewTeleported: Boolean,
  33416. zIndex: {
  33417. type: Number
  33418. },
  33419. initialIndex: {
  33420. type: Number,
  33421. default: 0
  33422. },
  33423. infinite: {
  33424. type: Boolean,
  33425. default: true
  33426. },
  33427. closeOnPressEscape: {
  33428. type: Boolean,
  33429. default: true
  33430. },
  33431. zoomRate: {
  33432. type: Number,
  33433. default: 1.2
  33434. },
  33435. scale: {
  33436. type: Number,
  33437. default: 1
  33438. },
  33439. minScale: {
  33440. type: Number,
  33441. default: 0.2
  33442. },
  33443. maxScale: {
  33444. type: Number,
  33445. default: 7
  33446. },
  33447. showProgress: Boolean,
  33448. crossorigin: {
  33449. type: definePropType(String)
  33450. }
  33451. });
  33452. var imageEmits = {
  33453. load: (evt) => evt instanceof Event,
  33454. error: (evt) => evt instanceof Event,
  33455. switch: (val) => isNumber2(val),
  33456. close: () => true,
  33457. show: () => true
  33458. };
  33459. // node_modules/element-plus/es/components/image/src/image.mjs
  33460. var __default__68 = defineComponent({
  33461. name: "ElImage",
  33462. inheritAttrs: false
  33463. });
  33464. var _sfc_main89 = defineComponent({
  33465. ...__default__68,
  33466. props: imageProps,
  33467. emits: imageEmits,
  33468. setup(__props, { expose, emit }) {
  33469. const props2 = __props;
  33470. const { t } = useLocale();
  33471. const ns = useNamespace("image");
  33472. const rawAttrs = useAttrs();
  33473. const containerAttrs = computed(() => {
  33474. return fromPairs_default(Object.entries(rawAttrs).filter(([key]) => /^(data-|on[A-Z])/i.test(key) || ["id", "style"].includes(key)));
  33475. });
  33476. const imgAttrs = useAttrs2({
  33477. excludeListeners: true,
  33478. excludeKeys: computed(() => {
  33479. return Object.keys(containerAttrs.value);
  33480. })
  33481. });
  33482. const imageSrc = ref();
  33483. const hasLoadError = ref(false);
  33484. const isLoading = ref(true);
  33485. const showViewer = ref(false);
  33486. const container = ref();
  33487. const _scrollContainer = ref();
  33488. const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
  33489. let stopScrollListener;
  33490. const imageKls = computed(() => [
  33491. ns.e("inner"),
  33492. preview.value && ns.e("preview"),
  33493. isLoading.value && ns.is("loading")
  33494. ]);
  33495. const imageStyle = computed(() => {
  33496. const { fit } = props2;
  33497. if (isClient && fit) {
  33498. return { objectFit: fit };
  33499. }
  33500. return {};
  33501. });
  33502. const preview = computed(() => {
  33503. const { previewSrcList } = props2;
  33504. return isArray(previewSrcList) && previewSrcList.length > 0;
  33505. });
  33506. const imageIndex = computed(() => {
  33507. const { previewSrcList, initialIndex } = props2;
  33508. let previewIndex = initialIndex;
  33509. if (initialIndex > previewSrcList.length - 1) {
  33510. previewIndex = 0;
  33511. }
  33512. return previewIndex;
  33513. });
  33514. const isManual = computed(() => {
  33515. if (props2.loading === "eager")
  33516. return false;
  33517. return !supportLoading && props2.loading === "lazy" || props2.lazy;
  33518. });
  33519. const loadImage = () => {
  33520. if (!isClient)
  33521. return;
  33522. isLoading.value = true;
  33523. hasLoadError.value = false;
  33524. imageSrc.value = props2.src;
  33525. };
  33526. function handleLoad(event) {
  33527. isLoading.value = false;
  33528. hasLoadError.value = false;
  33529. emit("load", event);
  33530. }
  33531. function handleError(event) {
  33532. isLoading.value = false;
  33533. hasLoadError.value = true;
  33534. emit("error", event);
  33535. }
  33536. function handleLazyLoad(isIntersecting) {
  33537. if (isIntersecting) {
  33538. loadImage();
  33539. removeLazyLoadListener();
  33540. }
  33541. }
  33542. const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
  33543. async function addLazyLoadListener() {
  33544. var _a2;
  33545. if (!isClient)
  33546. return;
  33547. await nextTick();
  33548. const { scrollContainer } = props2;
  33549. if (isElement2(scrollContainer)) {
  33550. _scrollContainer.value = scrollContainer;
  33551. } else if (isString(scrollContainer) && scrollContainer !== "") {
  33552. _scrollContainer.value = (_a2 = document.querySelector(scrollContainer)) != null ? _a2 : void 0;
  33553. } else if (container.value) {
  33554. const scrollContainer2 = getScrollContainer(container.value);
  33555. _scrollContainer.value = isWindow(scrollContainer2) ? void 0 : scrollContainer2;
  33556. }
  33557. const { stop } = useIntersectionObserver(container, ([entry]) => {
  33558. lazyLoadHandler(entry.isIntersecting);
  33559. }, { root: _scrollContainer });
  33560. stopScrollListener = stop;
  33561. }
  33562. function removeLazyLoadListener() {
  33563. if (!isClient || !lazyLoadHandler)
  33564. return;
  33565. stopScrollListener == null ? void 0 : stopScrollListener();
  33566. _scrollContainer.value = void 0;
  33567. stopScrollListener = void 0;
  33568. }
  33569. function clickHandler() {
  33570. if (!preview.value)
  33571. return;
  33572. showViewer.value = true;
  33573. emit("show");
  33574. }
  33575. function closeViewer() {
  33576. showViewer.value = false;
  33577. emit("close");
  33578. }
  33579. function switchViewer(val) {
  33580. emit("switch", val);
  33581. }
  33582. watch(() => props2.src, () => {
  33583. if (isManual.value) {
  33584. isLoading.value = true;
  33585. hasLoadError.value = false;
  33586. removeLazyLoadListener();
  33587. addLazyLoadListener();
  33588. } else {
  33589. loadImage();
  33590. }
  33591. });
  33592. onMounted(() => {
  33593. if (isManual.value) {
  33594. addLazyLoadListener();
  33595. } else {
  33596. loadImage();
  33597. }
  33598. });
  33599. expose({
  33600. showPreview: clickHandler
  33601. });
  33602. return (_ctx, _cache) => {
  33603. return openBlock(), createElementBlock("div", mergeProps({
  33604. ref_key: "container",
  33605. ref: container
  33606. }, unref(containerAttrs), {
  33607. class: [unref(ns).b(), _ctx.$attrs.class]
  33608. }), [
  33609. hasLoadError.value ? renderSlot(_ctx.$slots, "error", { key: 0 }, () => [
  33610. createBaseVNode("div", {
  33611. class: normalizeClass(unref(ns).e("error"))
  33612. }, toDisplayString(unref(t)("el.image.error")), 3)
  33613. ]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  33614. imageSrc.value !== void 0 ? (openBlock(), createElementBlock("img", mergeProps({ key: 0 }, unref(imgAttrs), {
  33615. src: imageSrc.value,
  33616. loading: _ctx.loading,
  33617. style: unref(imageStyle),
  33618. class: unref(imageKls),
  33619. crossorigin: _ctx.crossorigin,
  33620. onClick: clickHandler,
  33621. onLoad: handleLoad,
  33622. onError: handleError
  33623. }), null, 16, ["src", "loading", "crossorigin"])) : createCommentVNode("v-if", true),
  33624. isLoading.value ? (openBlock(), createElementBlock("div", {
  33625. key: 1,
  33626. class: normalizeClass(unref(ns).e("wrapper"))
  33627. }, [
  33628. renderSlot(_ctx.$slots, "placeholder", {}, () => [
  33629. createBaseVNode("div", {
  33630. class: normalizeClass(unref(ns).e("placeholder"))
  33631. }, null, 2)
  33632. ])
  33633. ], 2)) : createCommentVNode("v-if", true)
  33634. ], 64)),
  33635. unref(preview) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
  33636. showViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), {
  33637. key: 0,
  33638. "z-index": _ctx.zIndex,
  33639. "initial-index": unref(imageIndex),
  33640. infinite: _ctx.infinite,
  33641. "zoom-rate": _ctx.zoomRate,
  33642. "min-scale": _ctx.minScale,
  33643. "max-scale": _ctx.maxScale,
  33644. "show-progress": _ctx.showProgress,
  33645. "url-list": _ctx.previewSrcList,
  33646. scale: _ctx.scale,
  33647. crossorigin: _ctx.crossorigin,
  33648. "hide-on-click-modal": _ctx.hideOnClickModal,
  33649. teleported: _ctx.previewTeleported,
  33650. "close-on-press-escape": _ctx.closeOnPressEscape,
  33651. onClose: closeViewer,
  33652. onSwitch: switchViewer
  33653. }, createSlots({
  33654. toolbar: withCtx((toolbar) => [
  33655. renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(toolbar)))
  33656. ]),
  33657. default: withCtx(() => [
  33658. _ctx.$slots.viewer ? (openBlock(), createElementBlock("div", { key: 0 }, [
  33659. renderSlot(_ctx.$slots, "viewer")
  33660. ])) : createCommentVNode("v-if", true)
  33661. ]),
  33662. _: 2
  33663. }, [
  33664. _ctx.$slots.progress ? {
  33665. name: "progress",
  33666. fn: withCtx((progress) => [
  33667. renderSlot(_ctx.$slots, "progress", normalizeProps(guardReactiveProps(progress)))
  33668. ])
  33669. } : void 0,
  33670. _ctx.$slots["viewer-error"] ? {
  33671. name: "viewer-error",
  33672. fn: withCtx((viewerError) => [
  33673. renderSlot(_ctx.$slots, "viewer-error", normalizeProps(guardReactiveProps(viewerError)))
  33674. ])
  33675. } : void 0
  33676. ]), 1032, ["z-index", "initial-index", "infinite", "zoom-rate", "min-scale", "max-scale", "show-progress", "url-list", "scale", "crossorigin", "hide-on-click-modal", "teleported", "close-on-press-escape"])) : createCommentVNode("v-if", true)
  33677. ], 64)) : createCommentVNode("v-if", true)
  33678. ], 16);
  33679. };
  33680. }
  33681. });
  33682. var Image2 = _export_sfc(_sfc_main89, [["__file", "image.vue"]]);
  33683. // node_modules/element-plus/es/components/image/index.mjs
  33684. var ElImage = withInstall(Image2);
  33685. // node_modules/element-plus/es/components/input-number/src/input-number.mjs
  33686. var inputNumberProps = buildProps({
  33687. id: {
  33688. type: String,
  33689. default: void 0
  33690. },
  33691. step: {
  33692. type: Number,
  33693. default: 1
  33694. },
  33695. stepStrictly: Boolean,
  33696. max: {
  33697. type: Number,
  33698. default: Number.MAX_SAFE_INTEGER
  33699. },
  33700. min: {
  33701. type: Number,
  33702. default: Number.MIN_SAFE_INTEGER
  33703. },
  33704. modelValue: {
  33705. type: [Number, null]
  33706. },
  33707. readonly: Boolean,
  33708. disabled: Boolean,
  33709. size: useSizeProp,
  33710. controls: {
  33711. type: Boolean,
  33712. default: true
  33713. },
  33714. controlsPosition: {
  33715. type: String,
  33716. default: "",
  33717. values: ["", "right"]
  33718. },
  33719. valueOnClear: {
  33720. type: [String, Number, null],
  33721. validator: (val) => val === null || isNumber2(val) || ["min", "max"].includes(val),
  33722. default: null
  33723. },
  33724. name: String,
  33725. placeholder: String,
  33726. precision: {
  33727. type: Number,
  33728. validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
  33729. },
  33730. validateEvent: {
  33731. type: Boolean,
  33732. default: true
  33733. },
  33734. ...useAriaProps(["ariaLabel"]),
  33735. inputmode: {
  33736. type: definePropType(String),
  33737. default: void 0
  33738. },
  33739. align: {
  33740. type: definePropType(String),
  33741. default: "center"
  33742. },
  33743. disabledScientific: Boolean
  33744. });
  33745. var inputNumberEmits = {
  33746. [CHANGE_EVENT]: (cur, prev) => prev !== cur,
  33747. blur: (e) => e instanceof FocusEvent,
  33748. focus: (e) => e instanceof FocusEvent,
  33749. [INPUT_EVENT]: (val) => isNumber2(val) || isNil_default(val),
  33750. [UPDATE_MODEL_EVENT]: (val) => isNumber2(val) || isNil_default(val)
  33751. };
  33752. // node_modules/element-plus/es/components/input-number/src/input-number2.mjs
  33753. var __default__69 = defineComponent({
  33754. name: "ElInputNumber"
  33755. });
  33756. var _sfc_main90 = defineComponent({
  33757. ...__default__69,
  33758. props: inputNumberProps,
  33759. emits: inputNumberEmits,
  33760. setup(__props, { expose, emit }) {
  33761. const props2 = __props;
  33762. const { t } = useLocale();
  33763. const ns = useNamespace("input-number");
  33764. const input = ref();
  33765. const data = reactive({
  33766. currentValue: props2.modelValue,
  33767. userInput: null
  33768. });
  33769. const { formItem } = useFormItem();
  33770. const minDisabled = computed(() => isNumber2(props2.modelValue) && props2.modelValue <= props2.min);
  33771. const maxDisabled = computed(() => isNumber2(props2.modelValue) && props2.modelValue >= props2.max);
  33772. const numPrecision = computed(() => {
  33773. const stepPrecision = getPrecision(props2.step);
  33774. if (!isUndefined2(props2.precision)) {
  33775. if (stepPrecision > props2.precision) {
  33776. debugWarn("InputNumber", "precision should not be less than the decimal places of step");
  33777. }
  33778. return props2.precision;
  33779. } else {
  33780. return Math.max(getPrecision(props2.modelValue), stepPrecision);
  33781. }
  33782. });
  33783. const controlsAtRight = computed(() => {
  33784. return props2.controls && props2.controlsPosition === "right";
  33785. });
  33786. const inputNumberSize = useFormSize();
  33787. const inputNumberDisabled = useFormDisabled();
  33788. const displayValue = computed(() => {
  33789. if (data.userInput !== null) {
  33790. return data.userInput;
  33791. }
  33792. let currentValue = data.currentValue;
  33793. if (isNil_default(currentValue))
  33794. return "";
  33795. if (isNumber2(currentValue)) {
  33796. if (Number.isNaN(currentValue))
  33797. return "";
  33798. if (!isUndefined2(props2.precision)) {
  33799. currentValue = currentValue.toFixed(props2.precision);
  33800. }
  33801. }
  33802. return currentValue;
  33803. });
  33804. const toPrecision = (num, pre) => {
  33805. if (isUndefined2(pre))
  33806. pre = numPrecision.value;
  33807. if (pre === 0)
  33808. return Math.round(num);
  33809. let snum = String(num);
  33810. const pointPos = snum.indexOf(".");
  33811. if (pointPos === -1)
  33812. return num;
  33813. const nums = snum.replace(".", "").split("");
  33814. const datum = nums[pointPos + pre];
  33815. if (!datum)
  33816. return num;
  33817. const length = snum.length;
  33818. if (snum.charAt(length - 1) === "5") {
  33819. snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
  33820. }
  33821. return Number.parseFloat(Number(snum).toFixed(pre));
  33822. };
  33823. const getPrecision = (value) => {
  33824. if (isNil_default(value))
  33825. return 0;
  33826. const valueString = value.toString();
  33827. const dotPosition = valueString.indexOf(".");
  33828. let precision = 0;
  33829. if (dotPosition !== -1) {
  33830. precision = valueString.length - dotPosition - 1;
  33831. }
  33832. return precision;
  33833. };
  33834. const ensurePrecision = (val, coefficient = 1) => {
  33835. if (!isNumber2(val))
  33836. return data.currentValue;
  33837. if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
  33838. debugWarn("InputNumber", "The value has reached the maximum safe integer limit.");
  33839. return val;
  33840. } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
  33841. debugWarn("InputNumber", "The value has reached the minimum safe integer limit.");
  33842. return val;
  33843. }
  33844. return toPrecision(val + props2.step * coefficient);
  33845. };
  33846. const handleKeydown = (event) => {
  33847. const code = getEventCode(event);
  33848. const key = getEventKey(event);
  33849. if (props2.disabledScientific && ["e", "E"].includes(key)) {
  33850. event.preventDefault();
  33851. return;
  33852. }
  33853. switch (code) {
  33854. case EVENT_CODE.up: {
  33855. event.preventDefault();
  33856. increase();
  33857. break;
  33858. }
  33859. case EVENT_CODE.down: {
  33860. event.preventDefault();
  33861. decrease();
  33862. break;
  33863. }
  33864. }
  33865. };
  33866. const increase = () => {
  33867. if (props2.readonly || inputNumberDisabled.value || maxDisabled.value)
  33868. return;
  33869. const value = Number(displayValue.value) || 0;
  33870. const newVal = ensurePrecision(value);
  33871. setCurrentValue(newVal);
  33872. emit(INPUT_EVENT, data.currentValue);
  33873. setCurrentValueToModelValue();
  33874. };
  33875. const decrease = () => {
  33876. if (props2.readonly || inputNumberDisabled.value || minDisabled.value)
  33877. return;
  33878. const value = Number(displayValue.value) || 0;
  33879. const newVal = ensurePrecision(value, -1);
  33880. setCurrentValue(newVal);
  33881. emit(INPUT_EVENT, data.currentValue);
  33882. setCurrentValueToModelValue();
  33883. };
  33884. const verifyValue = (value, update2) => {
  33885. const { max: max4, min: min4, step: step2, precision, stepStrictly, valueOnClear } = props2;
  33886. if (max4 < min4) {
  33887. throwError("InputNumber", "min should not be greater than max.");
  33888. }
  33889. let newVal = Number(value);
  33890. if (isNil_default(value) || Number.isNaN(newVal)) {
  33891. return null;
  33892. }
  33893. if (value === "") {
  33894. if (valueOnClear === null) {
  33895. return null;
  33896. }
  33897. newVal = isString(valueOnClear) ? { min: min4, max: max4 }[valueOnClear] : valueOnClear;
  33898. }
  33899. if (stepStrictly) {
  33900. newVal = toPrecision(Math.round(toPrecision(newVal / step2)) * step2, precision);
  33901. if (newVal !== value) {
  33902. update2 && emit(UPDATE_MODEL_EVENT, newVal);
  33903. }
  33904. }
  33905. if (!isUndefined2(precision)) {
  33906. newVal = toPrecision(newVal, precision);
  33907. }
  33908. if (newVal > max4 || newVal < min4) {
  33909. newVal = newVal > max4 ? max4 : min4;
  33910. update2 && emit(UPDATE_MODEL_EVENT, newVal);
  33911. }
  33912. return newVal;
  33913. };
  33914. const setCurrentValue = (value, emitChange = true) => {
  33915. var _a2;
  33916. const oldVal = data.currentValue;
  33917. const newVal = verifyValue(value);
  33918. if (!emitChange) {
  33919. emit(UPDATE_MODEL_EVENT, newVal);
  33920. return;
  33921. }
  33922. if (oldVal === newVal && value)
  33923. return;
  33924. data.userInput = null;
  33925. emit(UPDATE_MODEL_EVENT, newVal);
  33926. if (oldVal !== newVal) {
  33927. emit(CHANGE_EVENT, newVal, oldVal);
  33928. }
  33929. if (props2.validateEvent) {
  33930. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn(err));
  33931. }
  33932. data.currentValue = newVal;
  33933. };
  33934. const handleInput = (value) => {
  33935. data.userInput = value;
  33936. const newVal = value === "" ? null : Number(value);
  33937. emit(INPUT_EVENT, newVal);
  33938. setCurrentValue(newVal, false);
  33939. };
  33940. const handleInputChange = (value) => {
  33941. const newVal = value !== "" ? Number(value) : "";
  33942. if (isNumber2(newVal) && !Number.isNaN(newVal) || value === "") {
  33943. setCurrentValue(newVal);
  33944. }
  33945. setCurrentValueToModelValue();
  33946. data.userInput = null;
  33947. };
  33948. const focus = () => {
  33949. var _a2, _b;
  33950. (_b = (_a2 = input.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
  33951. };
  33952. const blur = () => {
  33953. var _a2, _b;
  33954. (_b = (_a2 = input.value) == null ? void 0 : _a2.blur) == null ? void 0 : _b.call(_a2);
  33955. };
  33956. const handleFocus = (event) => {
  33957. emit("focus", event);
  33958. };
  33959. const handleBlur = (event) => {
  33960. var _a2, _b;
  33961. data.userInput = null;
  33962. if (data.currentValue === null && ((_a2 = input.value) == null ? void 0 : _a2.input)) {
  33963. input.value.input.value = "";
  33964. }
  33965. emit("blur", event);
  33966. if (props2.validateEvent) {
  33967. (_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(err));
  33968. }
  33969. };
  33970. const setCurrentValueToModelValue = () => {
  33971. if (data.currentValue !== props2.modelValue) {
  33972. data.currentValue = props2.modelValue;
  33973. }
  33974. };
  33975. const handleWheel = (e) => {
  33976. if (document.activeElement === e.target)
  33977. e.preventDefault();
  33978. };
  33979. watch(() => props2.modelValue, (value, oldValue) => {
  33980. const newValue = verifyValue(value, true);
  33981. if (data.userInput === null && newValue !== oldValue) {
  33982. data.currentValue = newValue;
  33983. }
  33984. }, { immediate: true });
  33985. watch(() => props2.precision, () => {
  33986. data.currentValue = verifyValue(props2.modelValue);
  33987. });
  33988. onMounted(() => {
  33989. var _a2;
  33990. const { min: min4, max: max4, modelValue } = props2;
  33991. const innerInput = (_a2 = input.value) == null ? void 0 : _a2.input;
  33992. innerInput.setAttribute("role", "spinbutton");
  33993. if (Number.isFinite(max4)) {
  33994. innerInput.setAttribute("aria-valuemax", String(max4));
  33995. } else {
  33996. innerInput.removeAttribute("aria-valuemax");
  33997. }
  33998. if (Number.isFinite(min4)) {
  33999. innerInput.setAttribute("aria-valuemin", String(min4));
  34000. } else {
  34001. innerInput.removeAttribute("aria-valuemin");
  34002. }
  34003. innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
  34004. innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
  34005. if (!isNumber2(modelValue) && modelValue != null) {
  34006. let val = Number(modelValue);
  34007. if (Number.isNaN(val)) {
  34008. val = null;
  34009. }
  34010. emit(UPDATE_MODEL_EVENT, val);
  34011. }
  34012. innerInput.addEventListener("wheel", handleWheel, { passive: false });
  34013. });
  34014. onUpdated(() => {
  34015. var _a2, _b;
  34016. const innerInput = (_a2 = input.value) == null ? void 0 : _a2.input;
  34017. innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
  34018. });
  34019. expose({
  34020. focus,
  34021. blur
  34022. });
  34023. return (_ctx, _cache) => {
  34024. return openBlock(), createElementBlock("div", {
  34025. class: normalizeClass([
  34026. unref(ns).b(),
  34027. unref(ns).m(unref(inputNumberSize)),
  34028. unref(ns).is("disabled", unref(inputNumberDisabled)),
  34029. unref(ns).is("without-controls", !_ctx.controls),
  34030. unref(ns).is("controls-right", unref(controlsAtRight)),
  34031. unref(ns).is(_ctx.align, !!_ctx.align)
  34032. ]),
  34033. onDragstart: withModifiers(() => {
  34034. }, ["prevent"])
  34035. }, [
  34036. _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
  34037. key: 0,
  34038. role: "button",
  34039. "aria-label": unref(t)("el.inputNumber.decrease"),
  34040. class: normalizeClass([unref(ns).e("decrease"), unref(ns).is("disabled", unref(minDisabled))]),
  34041. onKeydown: withKeys(decrease, ["enter"])
  34042. }, [
  34043. renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
  34044. createVNode(unref(ElIcon), null, {
  34045. default: withCtx(() => [
  34046. unref(controlsAtRight) ? (openBlock(), createBlock(unref(arrow_down_default), { key: 0 })) : (openBlock(), createBlock(unref(minus_default), { key: 1 }))
  34047. ]),
  34048. _: 1
  34049. })
  34050. ])
  34051. ], 42, ["aria-label", "onKeydown"])), [
  34052. [unref(vRepeatClick), decrease]
  34053. ]) : createCommentVNode("v-if", true),
  34054. _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
  34055. key: 1,
  34056. role: "button",
  34057. "aria-label": unref(t)("el.inputNumber.increase"),
  34058. class: normalizeClass([unref(ns).e("increase"), unref(ns).is("disabled", unref(maxDisabled))]),
  34059. onKeydown: withKeys(increase, ["enter"])
  34060. }, [
  34061. renderSlot(_ctx.$slots, "increase-icon", {}, () => [
  34062. createVNode(unref(ElIcon), null, {
  34063. default: withCtx(() => [
  34064. unref(controlsAtRight) ? (openBlock(), createBlock(unref(arrow_up_default), { key: 0 })) : (openBlock(), createBlock(unref(plus_default), { key: 1 }))
  34065. ]),
  34066. _: 1
  34067. })
  34068. ])
  34069. ], 42, ["aria-label", "onKeydown"])), [
  34070. [unref(vRepeatClick), increase]
  34071. ]) : createCommentVNode("v-if", true),
  34072. createVNode(unref(ElInput), {
  34073. id: _ctx.id,
  34074. ref_key: "input",
  34075. ref: input,
  34076. type: "number",
  34077. step: _ctx.step,
  34078. "model-value": unref(displayValue),
  34079. placeholder: _ctx.placeholder,
  34080. readonly: _ctx.readonly,
  34081. disabled: unref(inputNumberDisabled),
  34082. size: unref(inputNumberSize),
  34083. max: _ctx.max,
  34084. min: _ctx.min,
  34085. name: _ctx.name,
  34086. "aria-label": _ctx.ariaLabel,
  34087. "validate-event": false,
  34088. inputmode: _ctx.inputmode,
  34089. onKeydown: handleKeydown,
  34090. onBlur: handleBlur,
  34091. onFocus: handleFocus,
  34092. onInput: handleInput,
  34093. onChange: handleInputChange
  34094. }, createSlots({
  34095. _: 2
  34096. }, [
  34097. _ctx.$slots.prefix ? {
  34098. name: "prefix",
  34099. fn: withCtx(() => [
  34100. renderSlot(_ctx.$slots, "prefix")
  34101. ])
  34102. } : void 0,
  34103. _ctx.$slots.suffix ? {
  34104. name: "suffix",
  34105. fn: withCtx(() => [
  34106. renderSlot(_ctx.$slots, "suffix")
  34107. ])
  34108. } : void 0
  34109. ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "inputmode"])
  34110. ], 42, ["onDragstart"]);
  34111. };
  34112. }
  34113. });
  34114. var InputNumber = _export_sfc(_sfc_main90, [["__file", "input-number.vue"]]);
  34115. // node_modules/element-plus/es/components/input-number/index.mjs
  34116. var ElInputNumber = withInstall(InputNumber);
  34117. // node_modules/element-plus/es/components/input-tag/src/input-tag2.mjs
  34118. var inputTagProps = buildProps({
  34119. modelValue: {
  34120. type: definePropType(Array)
  34121. },
  34122. max: Number,
  34123. tagType: { ...tagProps.type, default: "info" },
  34124. tagEffect: tagProps.effect,
  34125. trigger: {
  34126. type: definePropType(String),
  34127. default: EVENT_CODE.enter
  34128. },
  34129. draggable: Boolean,
  34130. delimiter: {
  34131. type: [String, RegExp],
  34132. default: ""
  34133. },
  34134. size: useSizeProp,
  34135. clearable: Boolean,
  34136. clearIcon: {
  34137. type: iconPropType,
  34138. default: circle_close_default
  34139. },
  34140. disabled: {
  34141. type: Boolean,
  34142. default: void 0
  34143. },
  34144. validateEvent: {
  34145. type: Boolean,
  34146. default: true
  34147. },
  34148. readonly: Boolean,
  34149. autofocus: Boolean,
  34150. id: {
  34151. type: String,
  34152. default: void 0
  34153. },
  34154. tabindex: {
  34155. type: [String, Number],
  34156. default: 0
  34157. },
  34158. maxlength: {
  34159. type: [String, Number]
  34160. },
  34161. minlength: {
  34162. type: [String, Number]
  34163. },
  34164. placeholder: String,
  34165. autocomplete: {
  34166. type: definePropType(String),
  34167. default: "off"
  34168. },
  34169. saveOnBlur: {
  34170. type: Boolean,
  34171. default: true
  34172. },
  34173. collapseTags: Boolean,
  34174. collapseTagsTooltip: Boolean,
  34175. maxCollapseTags: {
  34176. type: Number,
  34177. default: 1
  34178. },
  34179. ariaLabel: String
  34180. });
  34181. var inputTagEmits = {
  34182. [UPDATE_MODEL_EVENT]: (value) => isArray(value) || isUndefined2(value),
  34183. [CHANGE_EVENT]: (value) => isArray(value) || isUndefined2(value),
  34184. [INPUT_EVENT]: (value) => isString(value),
  34185. "add-tag": (value) => isString(value) || isArray(value),
  34186. "remove-tag": (value, index) => isString(value) && isNumber2(index),
  34187. "drag-tag": (oldIndex, newIndex, value) => isNumber2(oldIndex) && isNumber2(newIndex) && isString(value),
  34188. focus: (evt) => evt instanceof FocusEvent,
  34189. blur: (evt) => evt instanceof FocusEvent,
  34190. clear: () => true
  34191. };
  34192. // node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag.mjs
  34193. function useInputTag({ props: props2, emit, formItem }) {
  34194. const disabled = useFormDisabled();
  34195. const size3 = useFormSize();
  34196. const inputRef = shallowRef();
  34197. const inputValue = ref();
  34198. const tagTooltipRef = ref();
  34199. const tagSize = computed(() => {
  34200. return ["small"].includes(size3.value) ? "small" : "default";
  34201. });
  34202. const placeholder = computed(() => {
  34203. var _a2;
  34204. return ((_a2 = props2.modelValue) == null ? void 0 : _a2.length) ? void 0 : props2.placeholder;
  34205. });
  34206. const closable = computed(() => !(props2.readonly || disabled.value));
  34207. const inputLimit = computed(() => {
  34208. var _a2, _b;
  34209. return isUndefined2(props2.max) ? false : ((_b = (_a2 = props2.modelValue) == null ? void 0 : _a2.length) != null ? _b : 0) >= props2.max;
  34210. });
  34211. const showTagList = computed(() => {
  34212. var _a2;
  34213. return props2.collapseTags ? (_a2 = props2.modelValue) == null ? void 0 : _a2.slice(0, props2.maxCollapseTags) : props2.modelValue;
  34214. });
  34215. const collapseTagList = computed(() => {
  34216. var _a2;
  34217. return props2.collapseTags ? (_a2 = props2.modelValue) == null ? void 0 : _a2.slice(props2.maxCollapseTags) : [];
  34218. });
  34219. const addTagsEmit = (value) => {
  34220. var _a2;
  34221. const list = [...(_a2 = props2.modelValue) != null ? _a2 : [], ...castArray_default(value)];
  34222. emit(UPDATE_MODEL_EVENT, list);
  34223. emit(CHANGE_EVENT, list);
  34224. emit("add-tag", value);
  34225. inputValue.value = void 0;
  34226. };
  34227. const getDelimitedTags = (input) => {
  34228. var _a2, _b;
  34229. const tags = input.split(props2.delimiter).filter((val) => val && val !== input);
  34230. if (props2.max) {
  34231. const maxInsert = props2.max - ((_b = (_a2 = props2.modelValue) == null ? void 0 : _a2.length) != null ? _b : 0);
  34232. tags.splice(maxInsert);
  34233. }
  34234. return tags.length === 1 ? tags[0] : tags;
  34235. };
  34236. const handleInput = (event) => {
  34237. if (inputLimit.value) {
  34238. inputValue.value = void 0;
  34239. return;
  34240. }
  34241. if (isComposing.value)
  34242. return;
  34243. if (props2.delimiter && inputValue.value) {
  34244. const tags = getDelimitedTags(inputValue.value);
  34245. if (tags.length) {
  34246. addTagsEmit(tags);
  34247. }
  34248. }
  34249. emit(INPUT_EVENT, event.target.value);
  34250. };
  34251. const handleKeydown = (event) => {
  34252. var _a2;
  34253. if (isComposing.value)
  34254. return;
  34255. const code = getEventCode(event);
  34256. switch (code) {
  34257. case props2.trigger:
  34258. event.preventDefault();
  34259. event.stopPropagation();
  34260. handleAddTag();
  34261. break;
  34262. case EVENT_CODE.numpadEnter:
  34263. if (props2.trigger === EVENT_CODE.enter) {
  34264. event.preventDefault();
  34265. event.stopPropagation();
  34266. handleAddTag();
  34267. }
  34268. break;
  34269. case EVENT_CODE.backspace:
  34270. if (!inputValue.value && ((_a2 = props2.modelValue) == null ? void 0 : _a2.length)) {
  34271. event.preventDefault();
  34272. event.stopPropagation();
  34273. handleRemoveTag(props2.modelValue.length - 1);
  34274. }
  34275. break;
  34276. }
  34277. };
  34278. const handleKeyup = (event) => {
  34279. if (isComposing.value || !isAndroid())
  34280. return;
  34281. const code = getEventCode(event);
  34282. switch (code) {
  34283. case EVENT_CODE.space:
  34284. if (props2.trigger === EVENT_CODE.space) {
  34285. event.preventDefault();
  34286. event.stopPropagation();
  34287. handleAddTag();
  34288. }
  34289. break;
  34290. }
  34291. };
  34292. const handleAddTag = () => {
  34293. var _a2;
  34294. const value = (_a2 = inputValue.value) == null ? void 0 : _a2.trim();
  34295. if (!value || inputLimit.value)
  34296. return;
  34297. addTagsEmit(value);
  34298. };
  34299. const handleRemoveTag = (index) => {
  34300. var _a2;
  34301. const value = ((_a2 = props2.modelValue) != null ? _a2 : []).slice();
  34302. const [item] = value.splice(index, 1);
  34303. emit(UPDATE_MODEL_EVENT, value);
  34304. emit(CHANGE_EVENT, value);
  34305. emit("remove-tag", item, index);
  34306. };
  34307. const handleClear = () => {
  34308. inputValue.value = void 0;
  34309. emit(UPDATE_MODEL_EVENT, void 0);
  34310. emit(CHANGE_EVENT, void 0);
  34311. emit("clear");
  34312. };
  34313. const handleDragged = (draggingIndex, dropIndex, type4) => {
  34314. var _a2;
  34315. const value = ((_a2 = props2.modelValue) != null ? _a2 : []).slice();
  34316. const [draggedItem] = value.splice(draggingIndex, 1);
  34317. const step2 = dropIndex > draggingIndex && type4 === "before" ? -1 : dropIndex < draggingIndex && type4 === "after" ? 1 : 0;
  34318. value.splice(dropIndex + step2, 0, draggedItem);
  34319. emit(UPDATE_MODEL_EVENT, value);
  34320. emit(CHANGE_EVENT, value);
  34321. emit("drag-tag", draggingIndex, dropIndex + step2, draggedItem);
  34322. };
  34323. const focus = () => {
  34324. var _a2;
  34325. (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
  34326. };
  34327. const blur = () => {
  34328. var _a2;
  34329. (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
  34330. };
  34331. const { wrapperRef, isFocused } = useFocusController(inputRef, {
  34332. disabled,
  34333. beforeBlur(event) {
  34334. var _a2;
  34335. return (_a2 = tagTooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event);
  34336. },
  34337. afterBlur() {
  34338. var _a2;
  34339. if (props2.saveOnBlur) {
  34340. handleAddTag();
  34341. } else {
  34342. inputValue.value = void 0;
  34343. }
  34344. if (props2.validateEvent) {
  34345. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn(err));
  34346. }
  34347. }
  34348. });
  34349. const {
  34350. isComposing,
  34351. handleCompositionStart,
  34352. handleCompositionUpdate,
  34353. handleCompositionEnd
  34354. } = useComposition({ afterComposition: handleInput });
  34355. watch(() => props2.modelValue, () => {
  34356. var _a2;
  34357. if (props2.validateEvent) {
  34358. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, CHANGE_EVENT).catch((err) => debugWarn(err));
  34359. }
  34360. });
  34361. return {
  34362. inputRef,
  34363. wrapperRef,
  34364. tagTooltipRef,
  34365. isFocused,
  34366. isComposing,
  34367. inputValue,
  34368. size: size3,
  34369. tagSize,
  34370. placeholder,
  34371. closable,
  34372. disabled,
  34373. inputLimit,
  34374. showTagList,
  34375. collapseTagList,
  34376. handleDragged,
  34377. handleInput,
  34378. handleKeydown,
  34379. handleKeyup,
  34380. handleAddTag,
  34381. handleRemoveTag,
  34382. handleClear,
  34383. handleCompositionStart,
  34384. handleCompositionUpdate,
  34385. handleCompositionEnd,
  34386. focus,
  34387. blur
  34388. };
  34389. }
  34390. // node_modules/element-plus/es/components/input-tag/src/composables/use-hovering.mjs
  34391. function useHovering() {
  34392. const hovering = ref(false);
  34393. const handleMouseEnter = () => {
  34394. hovering.value = true;
  34395. };
  34396. const handleMouseLeave = () => {
  34397. hovering.value = false;
  34398. };
  34399. return {
  34400. hovering,
  34401. handleMouseEnter,
  34402. handleMouseLeave
  34403. };
  34404. }
  34405. // node_modules/element-plus/es/constants/form.mjs
  34406. var MINIMUM_INPUT_WIDTH = 11;
  34407. var BORDER_HORIZONTAL_WIDTH = 2;
  34408. // node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
  34409. function useCalcInputWidth() {
  34410. const calculatorRef = shallowRef();
  34411. const calculatorWidth = ref(0);
  34412. const inputStyle = computed(() => ({
  34413. minWidth: `${Math.max(calculatorWidth.value, MINIMUM_INPUT_WIDTH)}px`
  34414. }));
  34415. const resetCalculatorWidth = () => {
  34416. var _a2, _b;
  34417. calculatorWidth.value = (_b = (_a2 = calculatorRef.value) == null ? void 0 : _a2.getBoundingClientRect().width) != null ? _b : 0;
  34418. };
  34419. useResizeObserver(calculatorRef, resetCalculatorWidth);
  34420. return {
  34421. calculatorRef,
  34422. calculatorWidth,
  34423. inputStyle
  34424. };
  34425. }
  34426. // node_modules/element-plus/es/components/input-tag/src/composables/use-drag-tag.mjs
  34427. function useDragTag({
  34428. wrapperRef,
  34429. handleDragged,
  34430. afterDragged
  34431. }) {
  34432. const ns = useNamespace("input-tag");
  34433. const dropIndicatorRef = shallowRef();
  34434. const showDropIndicator = ref(false);
  34435. let draggingIndex;
  34436. let draggingTag;
  34437. let dropIndex;
  34438. let dropType;
  34439. function getTagClassName(index) {
  34440. return `.${ns.e("inner")} .${ns.namespace.value}-tag:nth-child(${index + 1})`;
  34441. }
  34442. function handleDragStart(event, index) {
  34443. draggingIndex = index;
  34444. draggingTag = wrapperRef.value.querySelector(getTagClassName(index));
  34445. if (draggingTag) {
  34446. draggingTag.style.opacity = "0.5";
  34447. }
  34448. event.dataTransfer.effectAllowed = "move";
  34449. }
  34450. function handleDragOver(event, index) {
  34451. dropIndex = index;
  34452. event.preventDefault();
  34453. event.dataTransfer.dropEffect = "move";
  34454. if (isUndefined2(draggingIndex) || draggingIndex === index) {
  34455. showDropIndicator.value = false;
  34456. return;
  34457. }
  34458. const dropPosition = wrapperRef.value.querySelector(getTagClassName(index)).getBoundingClientRect();
  34459. const dropPrev = !(draggingIndex + 1 === index);
  34460. const dropNext = !(draggingIndex - 1 === index);
  34461. const distance = event.clientX - dropPosition.left;
  34462. const prevPercent = dropPrev ? dropNext ? 0.5 : 1 : -1;
  34463. const nextPercent = dropNext ? dropPrev ? 0.5 : 0 : 1;
  34464. if (distance <= dropPosition.width * prevPercent) {
  34465. dropType = "before";
  34466. } else if (distance > dropPosition.width * nextPercent) {
  34467. dropType = "after";
  34468. } else {
  34469. dropType = void 0;
  34470. }
  34471. const innerEl = wrapperRef.value.querySelector(`.${ns.e("inner")}`);
  34472. const innerPosition = innerEl.getBoundingClientRect();
  34473. const gap = Number.parseFloat(getStyle(innerEl, "gap")) / 2;
  34474. const indicatorTop = dropPosition.top - innerPosition.top;
  34475. let indicatorLeft = -9999;
  34476. if (dropType === "before") {
  34477. indicatorLeft = Math.max(dropPosition.left - innerPosition.left - gap, Math.floor(-gap / 2));
  34478. } else if (dropType === "after") {
  34479. const left = dropPosition.right - innerPosition.left;
  34480. indicatorLeft = left + (innerPosition.width === left ? Math.floor(gap / 2) : gap);
  34481. }
  34482. setStyle(dropIndicatorRef.value, {
  34483. top: `${indicatorTop}px`,
  34484. left: `${indicatorLeft}px`
  34485. });
  34486. showDropIndicator.value = !!dropType;
  34487. }
  34488. function handleDragEnd(event) {
  34489. event.preventDefault();
  34490. if (draggingTag) {
  34491. draggingTag.style.opacity = "";
  34492. }
  34493. if (dropType && !isUndefined2(draggingIndex) && !isUndefined2(dropIndex) && draggingIndex !== dropIndex) {
  34494. handleDragged(draggingIndex, dropIndex, dropType);
  34495. }
  34496. showDropIndicator.value = false;
  34497. draggingIndex = void 0;
  34498. draggingTag = null;
  34499. dropIndex = void 0;
  34500. dropType = void 0;
  34501. afterDragged == null ? void 0 : afterDragged();
  34502. }
  34503. return {
  34504. dropIndicatorRef,
  34505. showDropIndicator,
  34506. handleDragStart,
  34507. handleDragOver,
  34508. handleDragEnd
  34509. };
  34510. }
  34511. // node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag-dom.mjs
  34512. function useInputTagDom({
  34513. props: props2,
  34514. isFocused,
  34515. hovering,
  34516. disabled,
  34517. inputValue,
  34518. size: size3,
  34519. validateState,
  34520. validateIcon,
  34521. needStatusIcon
  34522. }) {
  34523. const attrs = useAttrs();
  34524. const slots = useSlots();
  34525. const ns = useNamespace("input-tag");
  34526. const nsInput = useNamespace("input");
  34527. const containerKls = computed(() => [
  34528. ns.b(),
  34529. ns.is("focused", isFocused.value),
  34530. ns.is("hovering", hovering.value),
  34531. ns.is("disabled", disabled.value),
  34532. ns.m(size3.value),
  34533. ns.e("wrapper"),
  34534. attrs.class
  34535. ]);
  34536. const containerStyle = computed(() => [attrs.style]);
  34537. const innerKls = computed(() => {
  34538. var _a2, _b;
  34539. return [
  34540. ns.e("inner"),
  34541. ns.is("draggable", props2.draggable),
  34542. ns.is("left-space", !((_a2 = props2.modelValue) == null ? void 0 : _a2.length) && !slots.prefix),
  34543. ns.is("right-space", !((_b = props2.modelValue) == null ? void 0 : _b.length) && !showSuffix.value)
  34544. ];
  34545. });
  34546. const showClear = computed(() => {
  34547. var _a2;
  34548. return props2.clearable && !disabled.value && !props2.readonly && (((_a2 = props2.modelValue) == null ? void 0 : _a2.length) || inputValue.value) && (isFocused.value || hovering.value);
  34549. });
  34550. const showSuffix = computed(() => {
  34551. return slots.suffix || showClear.value || validateState.value && validateIcon.value && needStatusIcon.value;
  34552. });
  34553. return {
  34554. ns,
  34555. nsInput,
  34556. containerKls,
  34557. containerStyle,
  34558. innerKls,
  34559. showClear,
  34560. showSuffix
  34561. };
  34562. }
  34563. // node_modules/element-plus/es/components/input-tag/src/input-tag.mjs
  34564. var __default__70 = defineComponent({
  34565. name: "ElInputTag",
  34566. inheritAttrs: false
  34567. });
  34568. var _sfc_main91 = defineComponent({
  34569. ...__default__70,
  34570. props: inputTagProps,
  34571. emits: inputTagEmits,
  34572. setup(__props, { expose, emit }) {
  34573. const props2 = __props;
  34574. const attrs = useAttrs2();
  34575. const slots = useSlots();
  34576. const { form, formItem } = useFormItem();
  34577. const { inputId } = useFormItemInputId(props2, { formItemContext: formItem });
  34578. const needStatusIcon = computed(() => {
  34579. var _a2;
  34580. return (_a2 = form == null ? void 0 : form.statusIcon) != null ? _a2 : false;
  34581. });
  34582. const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
  34583. const validateIcon = computed(() => {
  34584. return validateState.value && ValidateComponentsMap[validateState.value];
  34585. });
  34586. const {
  34587. inputRef,
  34588. wrapperRef,
  34589. tagTooltipRef,
  34590. isFocused,
  34591. inputValue,
  34592. size: size3,
  34593. tagSize,
  34594. placeholder,
  34595. closable,
  34596. disabled,
  34597. showTagList,
  34598. collapseTagList,
  34599. handleDragged,
  34600. handleInput,
  34601. handleKeydown,
  34602. handleKeyup,
  34603. handleRemoveTag,
  34604. handleClear,
  34605. handleCompositionStart,
  34606. handleCompositionUpdate,
  34607. handleCompositionEnd,
  34608. focus,
  34609. blur
  34610. } = useInputTag({ props: props2, emit, formItem });
  34611. const { hovering, handleMouseEnter, handleMouseLeave } = useHovering();
  34612. const { calculatorRef, inputStyle } = useCalcInputWidth();
  34613. const {
  34614. dropIndicatorRef,
  34615. showDropIndicator,
  34616. handleDragStart,
  34617. handleDragOver,
  34618. handleDragEnd
  34619. } = useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
  34620. const {
  34621. ns,
  34622. nsInput,
  34623. containerKls,
  34624. containerStyle,
  34625. innerKls,
  34626. showClear,
  34627. showSuffix
  34628. } = useInputTagDom({
  34629. props: props2,
  34630. hovering,
  34631. isFocused,
  34632. inputValue,
  34633. disabled,
  34634. size: size3,
  34635. validateState,
  34636. validateIcon,
  34637. needStatusIcon
  34638. });
  34639. expose({
  34640. focus,
  34641. blur
  34642. });
  34643. return (_ctx, _cache) => {
  34644. return openBlock(), createElementBlock("div", {
  34645. ref_key: "wrapperRef",
  34646. ref: wrapperRef,
  34647. class: normalizeClass(unref(containerKls)),
  34648. style: normalizeStyle(unref(containerStyle)),
  34649. onMouseenter: unref(handleMouseEnter),
  34650. onMouseleave: unref(handleMouseLeave)
  34651. }, [
  34652. unref(slots).prefix ? (openBlock(), createElementBlock("div", {
  34653. key: 0,
  34654. class: normalizeClass(unref(ns).e("prefix"))
  34655. }, [
  34656. renderSlot(_ctx.$slots, "prefix")
  34657. ], 2)) : createCommentVNode("v-if", true),
  34658. createBaseVNode("div", {
  34659. class: normalizeClass(unref(innerKls))
  34660. }, [
  34661. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showTagList), (item, index) => {
  34662. return openBlock(), createBlock(unref(ElTag), {
  34663. key: index,
  34664. size: unref(tagSize),
  34665. closable: unref(closable),
  34666. type: _ctx.tagType,
  34667. effect: _ctx.tagEffect,
  34668. draggable: unref(closable) && _ctx.draggable,
  34669. "disable-transitions": "",
  34670. onClose: ($event) => unref(handleRemoveTag)(index),
  34671. onDragstart: (event) => unref(handleDragStart)(event, index),
  34672. onDragover: (event) => unref(handleDragOver)(event, index),
  34673. onDragend: unref(handleDragEnd),
  34674. onDrop: withModifiers(() => {
  34675. }, ["stop"])
  34676. }, {
  34677. default: withCtx(() => [
  34678. renderSlot(_ctx.$slots, "tag", {
  34679. value: item,
  34680. index
  34681. }, () => [
  34682. createTextVNode(toDisplayString(item), 1)
  34683. ])
  34684. ]),
  34685. _: 2
  34686. }, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend", "onDrop"]);
  34687. }), 128)),
  34688. _ctx.collapseTags && _ctx.modelValue && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(unref(ElTooltip), {
  34689. key: 0,
  34690. ref_key: "tagTooltipRef",
  34691. ref: tagTooltipRef,
  34692. disabled: !_ctx.collapseTagsTooltip,
  34693. "fallback-placements": ["bottom", "top", "right", "left"],
  34694. effect: _ctx.tagEffect,
  34695. placement: "bottom"
  34696. }, {
  34697. default: withCtx(() => [
  34698. createVNode(unref(ElTag), {
  34699. closable: false,
  34700. size: unref(tagSize),
  34701. type: _ctx.tagType,
  34702. effect: _ctx.tagEffect,
  34703. "disable-transitions": ""
  34704. }, {
  34705. default: withCtx(() => [
  34706. createTextVNode(" + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags), 1)
  34707. ]),
  34708. _: 1
  34709. }, 8, ["size", "type", "effect"])
  34710. ]),
  34711. content: withCtx(() => [
  34712. createBaseVNode("div", {
  34713. class: normalizeClass(unref(ns).e("input-tag-list"))
  34714. }, [
  34715. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(collapseTagList), (item, index) => {
  34716. return openBlock(), createBlock(unref(ElTag), {
  34717. key: index,
  34718. size: unref(tagSize),
  34719. closable: unref(closable),
  34720. type: _ctx.tagType,
  34721. effect: _ctx.tagEffect,
  34722. "disable-transitions": "",
  34723. onClose: ($event) => unref(handleRemoveTag)(index + _ctx.maxCollapseTags)
  34724. }, {
  34725. default: withCtx(() => [
  34726. renderSlot(_ctx.$slots, "tag", {
  34727. value: item,
  34728. index: index + _ctx.maxCollapseTags
  34729. }, () => [
  34730. createTextVNode(toDisplayString(item), 1)
  34731. ])
  34732. ]),
  34733. _: 2
  34734. }, 1032, ["size", "closable", "type", "effect", "onClose"]);
  34735. }), 128))
  34736. ], 2)
  34737. ]),
  34738. _: 3
  34739. }, 8, ["disabled", "effect"])) : createCommentVNode("v-if", true),
  34740. createBaseVNode("div", {
  34741. class: normalizeClass(unref(ns).e("input-wrapper"))
  34742. }, [
  34743. withDirectives(createBaseVNode("input", mergeProps({
  34744. id: unref(inputId),
  34745. ref_key: "inputRef",
  34746. ref: inputRef,
  34747. "onUpdate:modelValue": ($event) => isRef(inputValue) ? inputValue.value = $event : null
  34748. }, unref(attrs), {
  34749. type: "text",
  34750. minlength: _ctx.minlength,
  34751. maxlength: _ctx.maxlength,
  34752. disabled: unref(disabled),
  34753. readonly: _ctx.readonly,
  34754. autocomplete: _ctx.autocomplete,
  34755. tabindex: _ctx.tabindex,
  34756. placeholder: unref(placeholder),
  34757. autofocus: _ctx.autofocus,
  34758. ariaLabel: _ctx.ariaLabel,
  34759. class: unref(ns).e("input"),
  34760. style: unref(inputStyle),
  34761. onCompositionstart: unref(handleCompositionStart),
  34762. onCompositionupdate: unref(handleCompositionUpdate),
  34763. onCompositionend: unref(handleCompositionEnd),
  34764. onInput: unref(handleInput),
  34765. onKeydown: unref(handleKeydown),
  34766. onKeyup: unref(handleKeyup)
  34767. }), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown", "onKeyup"]), [
  34768. [vModelText, unref(inputValue)]
  34769. ]),
  34770. createBaseVNode("span", {
  34771. ref_key: "calculatorRef",
  34772. ref: calculatorRef,
  34773. "aria-hidden": "true",
  34774. class: normalizeClass(unref(ns).e("input-calculator")),
  34775. textContent: toDisplayString(unref(inputValue))
  34776. }, null, 10, ["textContent"])
  34777. ], 2),
  34778. withDirectives(createBaseVNode("div", {
  34779. ref_key: "dropIndicatorRef",
  34780. ref: dropIndicatorRef,
  34781. class: normalizeClass(unref(ns).e("drop-indicator"))
  34782. }, null, 2), [
  34783. [vShow, unref(showDropIndicator)]
  34784. ])
  34785. ], 2),
  34786. unref(showSuffix) ? (openBlock(), createElementBlock("div", {
  34787. key: 1,
  34788. class: normalizeClass(unref(ns).e("suffix"))
  34789. }, [
  34790. renderSlot(_ctx.$slots, "suffix"),
  34791. unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
  34792. key: 0,
  34793. class: normalizeClass([unref(ns).e("icon"), unref(ns).e("clear")]),
  34794. onMousedown: withModifiers(unref(NOOP), ["prevent"]),
  34795. onClick: unref(handleClear)
  34796. }, {
  34797. default: withCtx(() => [
  34798. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  34799. ]),
  34800. _: 1
  34801. }, 8, ["class", "onMousedown", "onClick"])) : createCommentVNode("v-if", true),
  34802. unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
  34803. key: 1,
  34804. class: normalizeClass([
  34805. unref(nsInput).e("icon"),
  34806. unref(nsInput).e("validateIcon"),
  34807. unref(nsInput).is("loading", unref(validateState) === "validating")
  34808. ])
  34809. }, {
  34810. default: withCtx(() => [
  34811. (openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
  34812. ]),
  34813. _: 1
  34814. }, 8, ["class"])) : createCommentVNode("v-if", true)
  34815. ], 2)) : createCommentVNode("v-if", true)
  34816. ], 46, ["onMouseenter", "onMouseleave"]);
  34817. };
  34818. }
  34819. });
  34820. var InputTag = _export_sfc(_sfc_main91, [["__file", "input-tag.vue"]]);
  34821. // node_modules/element-plus/es/components/input-tag/index.mjs
  34822. var ElInputTag = withInstall(InputTag);
  34823. // node_modules/element-plus/es/components/link/src/link2.mjs
  34824. var linkProps = buildProps({
  34825. type: {
  34826. type: String,
  34827. values: ["primary", "success", "warning", "info", "danger", "default"],
  34828. default: void 0
  34829. },
  34830. underline: {
  34831. type: [Boolean, String],
  34832. values: [true, false, "always", "never", "hover"],
  34833. default: void 0
  34834. },
  34835. disabled: Boolean,
  34836. href: { type: String, default: "" },
  34837. target: {
  34838. type: String,
  34839. default: "_self"
  34840. },
  34841. icon: {
  34842. type: iconPropType
  34843. }
  34844. });
  34845. var linkEmits = {
  34846. click: (evt) => evt instanceof MouseEvent
  34847. };
  34848. // node_modules/element-plus/es/components/link/src/link.mjs
  34849. var __default__71 = defineComponent({
  34850. name: "ElLink"
  34851. });
  34852. var _sfc_main92 = defineComponent({
  34853. ...__default__71,
  34854. props: linkProps,
  34855. emits: linkEmits,
  34856. setup(__props, { emit }) {
  34857. const props2 = __props;
  34858. const globalConfig2 = useGlobalConfig("link");
  34859. useDeprecated({
  34860. scope: "el-link",
  34861. from: "The underline option (boolean)",
  34862. replacement: "'always' | 'hover' | 'never'",
  34863. version: "3.0.0",
  34864. ref: "https://element-plus.org/en-US/component/link.html#underline"
  34865. }, computed(() => isBoolean2(props2.underline)));
  34866. const ns = useNamespace("link");
  34867. const linkKls = computed(() => {
  34868. var _a2, _b, _c;
  34869. return [
  34870. ns.b(),
  34871. ns.m((_c = (_b = props2.type) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.type) != null ? _c : "default"),
  34872. ns.is("disabled", props2.disabled),
  34873. ns.is("underline", underline.value === "always"),
  34874. ns.is("hover-underline", underline.value === "hover" && !props2.disabled)
  34875. ];
  34876. });
  34877. const underline = computed(() => {
  34878. var _a2, _b, _c;
  34879. if (isBoolean2(props2.underline)) {
  34880. return props2.underline ? "hover" : "never";
  34881. } else
  34882. return (_c = (_b = props2.underline) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.underline) != null ? _c : "hover";
  34883. });
  34884. function handleClick(event) {
  34885. if (!props2.disabled)
  34886. emit("click", event);
  34887. }
  34888. return (_ctx, _cache) => {
  34889. return openBlock(), createElementBlock("a", {
  34890. class: normalizeClass(unref(linkKls)),
  34891. href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
  34892. target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
  34893. onClick: handleClick
  34894. }, [
  34895. _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  34896. default: withCtx(() => [
  34897. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  34898. ]),
  34899. _: 1
  34900. })) : createCommentVNode("v-if", true),
  34901. _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
  34902. key: 1,
  34903. class: normalizeClass(unref(ns).e("inner"))
  34904. }, [
  34905. renderSlot(_ctx.$slots, "default")
  34906. ], 2)) : createCommentVNode("v-if", true),
  34907. _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 2 }) : createCommentVNode("v-if", true)
  34908. ], 10, ["href", "target"]);
  34909. };
  34910. }
  34911. });
  34912. var Link = _export_sfc(_sfc_main92, [["__file", "link.vue"]]);
  34913. // node_modules/element-plus/es/components/link/index.mjs
  34914. var ElLink = withInstall(Link);
  34915. // node_modules/element-plus/es/components/menu/src/utils/submenu.mjs
  34916. var SubMenu = class {
  34917. constructor(parent2, domNode) {
  34918. this.parent = parent2;
  34919. this.domNode = domNode;
  34920. this.subIndex = 0;
  34921. this.subIndex = 0;
  34922. this.init();
  34923. }
  34924. init() {
  34925. this.subMenuItems = this.domNode.querySelectorAll("li");
  34926. this.addListeners();
  34927. }
  34928. gotoSubIndex(idx) {
  34929. if (idx === this.subMenuItems.length) {
  34930. idx = 0;
  34931. } else if (idx < 0) {
  34932. idx = this.subMenuItems.length - 1;
  34933. }
  34934. this.subMenuItems[idx].focus();
  34935. this.subIndex = idx;
  34936. }
  34937. addListeners() {
  34938. const parentNode = this.parent.domNode;
  34939. Array.prototype.forEach.call(this.subMenuItems, (el) => {
  34940. el.addEventListener("keydown", (event) => {
  34941. const code = getEventCode(event);
  34942. let prevDef = false;
  34943. switch (code) {
  34944. case EVENT_CODE.down: {
  34945. this.gotoSubIndex(this.subIndex + 1);
  34946. prevDef = true;
  34947. break;
  34948. }
  34949. case EVENT_CODE.up: {
  34950. this.gotoSubIndex(this.subIndex - 1);
  34951. prevDef = true;
  34952. break;
  34953. }
  34954. case EVENT_CODE.tab: {
  34955. triggerEvent(parentNode, "mouseleave");
  34956. break;
  34957. }
  34958. case EVENT_CODE.enter:
  34959. case EVENT_CODE.numpadEnter:
  34960. case EVENT_CODE.space: {
  34961. prevDef = true;
  34962. event.currentTarget.click();
  34963. break;
  34964. }
  34965. }
  34966. if (prevDef) {
  34967. event.preventDefault();
  34968. event.stopPropagation();
  34969. }
  34970. return false;
  34971. });
  34972. });
  34973. }
  34974. };
  34975. // node_modules/element-plus/es/components/menu/src/utils/menu-item.mjs
  34976. var MenuItem = class {
  34977. constructor(domNode, namespace) {
  34978. this.domNode = domNode;
  34979. this.submenu = null;
  34980. this.submenu = null;
  34981. this.init(namespace);
  34982. }
  34983. init(namespace) {
  34984. this.domNode.setAttribute("tabindex", "0");
  34985. const menuChild = this.domNode.querySelector(`.${namespace}-menu`);
  34986. if (menuChild) {
  34987. this.submenu = new SubMenu(this, menuChild);
  34988. }
  34989. this.addListeners();
  34990. }
  34991. addListeners() {
  34992. this.domNode.addEventListener("keydown", (event) => {
  34993. const code = getEventCode(event);
  34994. let prevDef = false;
  34995. switch (code) {
  34996. case EVENT_CODE.down: {
  34997. triggerEvent(event.currentTarget, "mouseenter");
  34998. this.submenu && this.submenu.gotoSubIndex(0);
  34999. prevDef = true;
  35000. break;
  35001. }
  35002. case EVENT_CODE.up: {
  35003. triggerEvent(event.currentTarget, "mouseenter");
  35004. this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1);
  35005. prevDef = true;
  35006. break;
  35007. }
  35008. case EVENT_CODE.tab: {
  35009. triggerEvent(event.currentTarget, "mouseleave");
  35010. break;
  35011. }
  35012. case EVENT_CODE.enter:
  35013. case EVENT_CODE.numpadEnter:
  35014. case EVENT_CODE.space: {
  35015. prevDef = true;
  35016. event.currentTarget.click();
  35017. break;
  35018. }
  35019. }
  35020. if (prevDef) {
  35021. event.preventDefault();
  35022. }
  35023. });
  35024. }
  35025. };
  35026. // node_modules/element-plus/es/components/menu/src/utils/menu-bar.mjs
  35027. var Menu = class {
  35028. constructor(domNode, namespace) {
  35029. this.domNode = domNode;
  35030. this.init(namespace);
  35031. }
  35032. init(namespace) {
  35033. const menuChildren = this.domNode.childNodes;
  35034. Array.from(menuChildren).forEach((child) => {
  35035. if (child.nodeType === 1) {
  35036. new MenuItem(child, namespace);
  35037. }
  35038. });
  35039. }
  35040. };
  35041. // node_modules/element-plus/es/components/menu/src/menu-collapse-transition.mjs
  35042. var __default__72 = defineComponent({
  35043. name: "ElMenuCollapseTransition"
  35044. });
  35045. var _sfc_main93 = defineComponent({
  35046. ...__default__72,
  35047. setup(__props) {
  35048. const ns = useNamespace("menu");
  35049. const listeners = {
  35050. onBeforeEnter: (el) => el.style.opacity = "0.2",
  35051. onEnter(el, done) {
  35052. addClass(el, `${ns.namespace.value}-opacity-transition`);
  35053. el.style.opacity = "1";
  35054. done();
  35055. },
  35056. onAfterEnter(el) {
  35057. removeClass(el, `${ns.namespace.value}-opacity-transition`);
  35058. el.style.opacity = "";
  35059. },
  35060. onBeforeLeave(el) {
  35061. if (!el.dataset)
  35062. el.dataset = {};
  35063. if (hasClass(el, ns.m("collapse"))) {
  35064. removeClass(el, ns.m("collapse"));
  35065. el.dataset.oldOverflow = el.style.overflow;
  35066. el.dataset.scrollWidth = el.clientWidth.toString();
  35067. addClass(el, ns.m("collapse"));
  35068. } else {
  35069. addClass(el, ns.m("collapse"));
  35070. el.dataset.oldOverflow = el.style.overflow;
  35071. el.dataset.scrollWidth = el.clientWidth.toString();
  35072. removeClass(el, ns.m("collapse"));
  35073. }
  35074. el.style.width = `${el.scrollWidth}px`;
  35075. el.style.overflow = "hidden";
  35076. },
  35077. onLeave(el) {
  35078. addClass(el, "horizontal-collapse-transition");
  35079. el.style.width = `${el.dataset.scrollWidth}px`;
  35080. }
  35081. };
  35082. return (_ctx, _cache) => {
  35083. return openBlock(), createBlock(Transition, mergeProps({ mode: "out-in" }, unref(listeners)), {
  35084. default: withCtx(() => [
  35085. renderSlot(_ctx.$slots, "default")
  35086. ]),
  35087. _: 3
  35088. }, 16);
  35089. };
  35090. }
  35091. });
  35092. var ElMenuCollapseTransition = _export_sfc(_sfc_main93, [["__file", "menu-collapse-transition.vue"]]);
  35093. // node_modules/element-plus/es/components/menu/src/use-menu.mjs
  35094. function useMenu(instance, currentIndex) {
  35095. const indexPath = computed(() => {
  35096. let parent2 = instance.parent;
  35097. const path = [currentIndex.value];
  35098. while (parent2.type.name !== "ElMenu") {
  35099. if (parent2.props.index) {
  35100. path.unshift(parent2.props.index);
  35101. }
  35102. parent2 = parent2.parent;
  35103. }
  35104. return path;
  35105. });
  35106. const parentMenu = computed(() => {
  35107. let parent2 = instance.parent;
  35108. while (parent2 && !["ElMenu", "ElSubMenu"].includes(parent2.type.name)) {
  35109. parent2 = parent2.parent;
  35110. }
  35111. return parent2;
  35112. });
  35113. return {
  35114. parentMenu,
  35115. indexPath
  35116. };
  35117. }
  35118. // node_modules/element-plus/es/components/menu/src/use-menu-color.mjs
  35119. function useMenuColor(props2) {
  35120. const menuBarColor = computed(() => {
  35121. const color = props2.backgroundColor;
  35122. return color ? new TinyColor(color).shade(20).toString() : "";
  35123. });
  35124. return menuBarColor;
  35125. }
  35126. // node_modules/element-plus/es/components/menu/src/use-menu-css-var.mjs
  35127. var useMenuCssVar = (props2, level) => {
  35128. const ns = useNamespace("menu");
  35129. return computed(() => ns.cssVarBlock({
  35130. "text-color": props2.textColor || "",
  35131. "hover-text-color": props2.textColor || "",
  35132. "bg-color": props2.backgroundColor || "",
  35133. "hover-bg-color": useMenuColor(props2).value || "",
  35134. "active-color": props2.activeTextColor || "",
  35135. level: `${level}`
  35136. }));
  35137. };
  35138. // node_modules/element-plus/es/components/menu/src/tokens.mjs
  35139. var MENU_INJECTION_KEY = "rootMenu";
  35140. var SUB_MENU_INJECTION_KEY = "subMenu:";
  35141. // node_modules/element-plus/es/components/menu/src/sub-menu.mjs
  35142. var subMenuProps = buildProps({
  35143. index: {
  35144. type: String,
  35145. required: true
  35146. },
  35147. showTimeout: Number,
  35148. hideTimeout: Number,
  35149. popperClass: String,
  35150. popperStyle: {
  35151. type: definePropType([String, Object])
  35152. },
  35153. disabled: Boolean,
  35154. teleported: {
  35155. type: Boolean,
  35156. default: void 0
  35157. },
  35158. popperOffset: Number,
  35159. expandCloseIcon: {
  35160. type: iconPropType
  35161. },
  35162. expandOpenIcon: {
  35163. type: iconPropType
  35164. },
  35165. collapseCloseIcon: {
  35166. type: iconPropType
  35167. },
  35168. collapseOpenIcon: {
  35169. type: iconPropType
  35170. }
  35171. });
  35172. var COMPONENT_NAME13 = "ElSubMenu";
  35173. var SubMenu2 = defineComponent({
  35174. name: COMPONENT_NAME13,
  35175. props: subMenuProps,
  35176. setup(props2, { slots, expose }) {
  35177. const instance = getCurrentInstance();
  35178. const { indexPath, parentMenu } = useMenu(instance, computed(() => props2.index));
  35179. const nsMenu = useNamespace("menu");
  35180. const nsSubMenu = useNamespace("sub-menu");
  35181. const rootMenu = inject(MENU_INJECTION_KEY);
  35182. if (!rootMenu)
  35183. throwError(COMPONENT_NAME13, "can not inject root menu");
  35184. const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
  35185. if (!subMenu)
  35186. throwError(COMPONENT_NAME13, "can not inject sub menu");
  35187. const items = ref({});
  35188. const subMenus = ref({});
  35189. let timeout;
  35190. const mouseInChild = ref(false);
  35191. const verticalTitleRef = ref();
  35192. const vPopper = ref();
  35193. const isFirstLevel = computed(() => subMenu.level === 0);
  35194. const currentPlacement = computed(() => mode.value === "horizontal" && isFirstLevel.value ? "bottom-start" : "right-start");
  35195. const subMenuTitleIcon = computed(() => {
  35196. const isExpandedMode = mode.value === "horizontal" && isFirstLevel.value || mode.value === "vertical" && !rootMenu.props.collapse;
  35197. if (isExpandedMode) {
  35198. if (props2.expandCloseIcon && props2.expandOpenIcon) {
  35199. return opened.value ? props2.expandOpenIcon : props2.expandCloseIcon;
  35200. }
  35201. return arrow_down_default;
  35202. } else {
  35203. if (props2.collapseCloseIcon && props2.collapseOpenIcon) {
  35204. return opened.value ? props2.collapseOpenIcon : props2.collapseCloseIcon;
  35205. }
  35206. return arrow_right_default;
  35207. }
  35208. });
  35209. const appendToBody = computed(() => {
  35210. const value = props2.teleported;
  35211. return isUndefined2(value) ? isFirstLevel.value : value;
  35212. });
  35213. const menuTransitionName = computed(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
  35214. const fallbackPlacements = computed(() => mode.value === "horizontal" && isFirstLevel.value ? [
  35215. "bottom-start",
  35216. "bottom-end",
  35217. "top-start",
  35218. "top-end",
  35219. "right-start",
  35220. "left-start"
  35221. ] : [
  35222. "right-start",
  35223. "right",
  35224. "right-end",
  35225. "left-start",
  35226. "bottom-start",
  35227. "bottom-end",
  35228. "top-start",
  35229. "top-end"
  35230. ]);
  35231. const opened = computed(() => rootMenu.openedMenus.includes(props2.index));
  35232. const active = computed(() => [...Object.values(items.value), ...Object.values(subMenus.value)].some(({ active: active2 }) => active2));
  35233. const mode = computed(() => rootMenu.props.mode);
  35234. const persistent = computed(() => rootMenu.props.persistent);
  35235. const item = reactive({
  35236. index: props2.index,
  35237. indexPath,
  35238. active
  35239. });
  35240. const ulStyle = useMenuCssVar(rootMenu.props, subMenu.level + 1);
  35241. const subMenuPopperOffset = computed(() => {
  35242. var _a2;
  35243. return (_a2 = props2.popperOffset) != null ? _a2 : rootMenu.props.popperOffset;
  35244. });
  35245. const subMenuPopperClass = computed(() => {
  35246. var _a2;
  35247. return (_a2 = props2.popperClass) != null ? _a2 : rootMenu.props.popperClass;
  35248. });
  35249. const subMenuPopperStyle = computed(() => {
  35250. var _a2;
  35251. return (_a2 = props2.popperStyle) != null ? _a2 : rootMenu.props.popperStyle;
  35252. });
  35253. const subMenuShowTimeout = computed(() => {
  35254. var _a2;
  35255. return (_a2 = props2.showTimeout) != null ? _a2 : rootMenu.props.showTimeout;
  35256. });
  35257. const subMenuHideTimeout = computed(() => {
  35258. var _a2;
  35259. return (_a2 = props2.hideTimeout) != null ? _a2 : rootMenu.props.hideTimeout;
  35260. });
  35261. const doDestroy = () => {
  35262. var _a2, _b, _c;
  35263. return (_c = (_b = (_a2 = vPopper.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.popperInstanceRef) == null ? void 0 : _c.destroy();
  35264. };
  35265. const handleCollapseToggle = (value) => {
  35266. if (!value) {
  35267. doDestroy();
  35268. }
  35269. };
  35270. const handleClick = () => {
  35271. if (rootMenu.props.menuTrigger === "hover" && rootMenu.props.mode === "horizontal" || rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props2.disabled)
  35272. return;
  35273. rootMenu.handleSubMenuClick({
  35274. index: props2.index,
  35275. indexPath: indexPath.value,
  35276. active: active.value
  35277. });
  35278. };
  35279. const handleMouseenter = (event, showTimeout = subMenuShowTimeout.value) => {
  35280. var _a2;
  35281. if (event.type === "focus")
  35282. return;
  35283. if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props2.disabled) {
  35284. subMenu.mouseInChild.value = true;
  35285. return;
  35286. }
  35287. subMenu.mouseInChild.value = true;
  35288. timeout == null ? void 0 : timeout();
  35289. ({ stop: timeout } = useTimeoutFn(() => {
  35290. rootMenu.openMenu(props2.index, indexPath.value);
  35291. }, showTimeout));
  35292. if (appendToBody.value) {
  35293. (_a2 = parentMenu.value.vnode.el) == null ? void 0 : _a2.dispatchEvent(new MouseEvent("mouseenter"));
  35294. }
  35295. if (event.type === "mouseenter" && event.target) {
  35296. nextTick(() => {
  35297. focusElement(event.target, { preventScroll: true });
  35298. });
  35299. }
  35300. };
  35301. const handleMouseleave = (deepDispatch = false) => {
  35302. var _a2;
  35303. if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical") {
  35304. subMenu.mouseInChild.value = false;
  35305. return;
  35306. }
  35307. timeout == null ? void 0 : timeout();
  35308. subMenu.mouseInChild.value = false;
  35309. ({ stop: timeout } = useTimeoutFn(() => !mouseInChild.value && rootMenu.closeMenu(props2.index, indexPath.value), subMenuHideTimeout.value));
  35310. if (appendToBody.value && deepDispatch) {
  35311. (_a2 = subMenu.handleMouseleave) == null ? void 0 : _a2.call(subMenu, true);
  35312. }
  35313. };
  35314. watch(() => rootMenu.props.collapse, (value) => handleCollapseToggle(Boolean(value)));
  35315. {
  35316. const addSubMenu = (item2) => {
  35317. subMenus.value[item2.index] = item2;
  35318. };
  35319. const removeSubMenu = (item2) => {
  35320. delete subMenus.value[item2.index];
  35321. };
  35322. provide(`${SUB_MENU_INJECTION_KEY}${instance.uid}`, {
  35323. addSubMenu,
  35324. removeSubMenu,
  35325. handleMouseleave,
  35326. mouseInChild,
  35327. level: subMenu.level + 1
  35328. });
  35329. }
  35330. expose({
  35331. opened
  35332. });
  35333. onMounted(() => {
  35334. rootMenu.addSubMenu(item);
  35335. subMenu.addSubMenu(item);
  35336. });
  35337. onBeforeUnmount(() => {
  35338. subMenu.removeSubMenu(item);
  35339. rootMenu.removeSubMenu(item);
  35340. });
  35341. return () => {
  35342. var _a2;
  35343. const titleTag = [
  35344. (_a2 = slots.title) == null ? void 0 : _a2.call(slots),
  35345. h(ElIcon, {
  35346. class: nsSubMenu.e("icon-arrow"),
  35347. style: {
  35348. transform: opened.value ? props2.expandCloseIcon && props2.expandOpenIcon || props2.collapseCloseIcon && props2.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
  35349. }
  35350. }, {
  35351. default: () => isString(subMenuTitleIcon.value) ? h(instance.appContext.components[subMenuTitleIcon.value]) : h(subMenuTitleIcon.value)
  35352. })
  35353. ];
  35354. const child = rootMenu.isMenuPopup ? h(ElTooltip, {
  35355. ref: vPopper,
  35356. visible: opened.value,
  35357. effect: "light",
  35358. pure: true,
  35359. offset: subMenuPopperOffset.value,
  35360. showArrow: false,
  35361. persistent: persistent.value,
  35362. popperClass: subMenuPopperClass.value,
  35363. popperStyle: subMenuPopperStyle.value,
  35364. placement: currentPlacement.value,
  35365. teleported: appendToBody.value,
  35366. fallbackPlacements: fallbackPlacements.value,
  35367. transition: menuTransitionName.value,
  35368. gpuAcceleration: false
  35369. }, {
  35370. content: () => {
  35371. var _a22;
  35372. return h("div", {
  35373. class: [
  35374. nsMenu.m(mode.value),
  35375. nsMenu.m("popup-container"),
  35376. subMenuPopperClass.value
  35377. ],
  35378. onMouseenter: (evt) => handleMouseenter(evt, 100),
  35379. onMouseleave: () => handleMouseleave(true),
  35380. onFocus: (evt) => handleMouseenter(evt, 100)
  35381. }, [
  35382. h("ul", {
  35383. class: [
  35384. nsMenu.b(),
  35385. nsMenu.m("popup"),
  35386. nsMenu.m(`popup-${currentPlacement.value}`)
  35387. ],
  35388. style: ulStyle.value
  35389. }, [(_a22 = slots.default) == null ? void 0 : _a22.call(slots)])
  35390. ]);
  35391. },
  35392. default: () => h("div", {
  35393. class: nsSubMenu.e("title"),
  35394. onClick: handleClick
  35395. }, titleTag)
  35396. }) : h(Fragment, {}, [
  35397. h("div", {
  35398. class: nsSubMenu.e("title"),
  35399. ref: verticalTitleRef,
  35400. onClick: handleClick
  35401. }, titleTag),
  35402. h(ElCollapseTransition, {}, {
  35403. default: () => {
  35404. var _a22;
  35405. return withDirectives(h("ul", {
  35406. role: "menu",
  35407. class: [nsMenu.b(), nsMenu.m("inline")],
  35408. style: ulStyle.value
  35409. }, [(_a22 = slots.default) == null ? void 0 : _a22.call(slots)]), [[vShow, opened.value]]);
  35410. }
  35411. })
  35412. ]);
  35413. return h("li", {
  35414. class: [
  35415. nsSubMenu.b(),
  35416. nsSubMenu.is("active", active.value),
  35417. nsSubMenu.is("opened", opened.value),
  35418. nsSubMenu.is("disabled", props2.disabled)
  35419. ],
  35420. role: "menuitem",
  35421. ariaHaspopup: true,
  35422. ariaExpanded: opened.value,
  35423. onMouseenter: handleMouseenter,
  35424. onMouseleave: () => handleMouseleave(),
  35425. onFocus: handleMouseenter
  35426. }, [child]);
  35427. };
  35428. }
  35429. });
  35430. // node_modules/element-plus/es/components/menu/src/menu.mjs
  35431. var menuProps = buildProps({
  35432. mode: {
  35433. type: String,
  35434. values: ["horizontal", "vertical"],
  35435. default: "vertical"
  35436. },
  35437. defaultActive: {
  35438. type: String,
  35439. default: ""
  35440. },
  35441. defaultOpeneds: {
  35442. type: definePropType(Array),
  35443. default: () => mutable([])
  35444. },
  35445. uniqueOpened: Boolean,
  35446. router: Boolean,
  35447. menuTrigger: {
  35448. type: String,
  35449. values: ["hover", "click"],
  35450. default: "hover"
  35451. },
  35452. collapse: Boolean,
  35453. backgroundColor: String,
  35454. textColor: String,
  35455. activeTextColor: String,
  35456. closeOnClickOutside: Boolean,
  35457. collapseTransition: {
  35458. type: Boolean,
  35459. default: true
  35460. },
  35461. ellipsis: {
  35462. type: Boolean,
  35463. default: true
  35464. },
  35465. popperOffset: {
  35466. type: Number,
  35467. default: 6
  35468. },
  35469. ellipsisIcon: {
  35470. type: iconPropType,
  35471. default: () => more_default
  35472. },
  35473. popperEffect: {
  35474. type: definePropType(String),
  35475. default: "dark"
  35476. },
  35477. popperClass: String,
  35478. popperStyle: {
  35479. type: definePropType([String, Object])
  35480. },
  35481. showTimeout: {
  35482. type: Number,
  35483. default: 300
  35484. },
  35485. hideTimeout: {
  35486. type: Number,
  35487. default: 300
  35488. },
  35489. persistent: {
  35490. type: Boolean,
  35491. default: true
  35492. }
  35493. });
  35494. var checkIndexPath = (indexPath) => isArray(indexPath) && indexPath.every((path) => isString(path));
  35495. var menuEmits = {
  35496. close: (index, indexPath) => isString(index) && checkIndexPath(indexPath),
  35497. open: (index, indexPath) => isString(index) && checkIndexPath(indexPath),
  35498. select: (index, indexPath, item, routerResult) => isString(index) && checkIndexPath(indexPath) && isObject(item) && (isUndefined2(routerResult) || routerResult instanceof Promise)
  35499. };
  35500. var Menu2 = defineComponent({
  35501. name: "ElMenu",
  35502. props: menuProps,
  35503. emits: menuEmits,
  35504. setup(props2, { emit, slots, expose }) {
  35505. const instance = getCurrentInstance();
  35506. const router = instance.appContext.config.globalProperties.$router;
  35507. const menu = ref();
  35508. const subMenu = ref();
  35509. const nsMenu = useNamespace("menu");
  35510. const nsSubMenu = useNamespace("sub-menu");
  35511. let moreItemWidth = 64;
  35512. const sliceIndex = ref(-1);
  35513. const openedMenus = ref(props2.defaultOpeneds && !props2.collapse ? props2.defaultOpeneds.slice(0) : []);
  35514. const activeIndex = ref(props2.defaultActive);
  35515. const items = ref({});
  35516. const subMenus = ref({});
  35517. const isMenuPopup = computed(() => props2.mode === "horizontal" || props2.mode === "vertical" && props2.collapse);
  35518. const initMenu = () => {
  35519. const activeItem = activeIndex.value && items.value[activeIndex.value];
  35520. if (!activeItem || props2.mode === "horizontal" || props2.collapse)
  35521. return;
  35522. const indexPath = activeItem.indexPath;
  35523. indexPath.forEach((index) => {
  35524. const subMenu2 = subMenus.value[index];
  35525. subMenu2 && openMenu(index, subMenu2.indexPath);
  35526. });
  35527. };
  35528. const openMenu = (index, indexPath) => {
  35529. if (openedMenus.value.includes(index))
  35530. return;
  35531. if (props2.uniqueOpened) {
  35532. openedMenus.value = openedMenus.value.filter((index2) => indexPath.includes(index2));
  35533. }
  35534. openedMenus.value.push(index);
  35535. emit("open", index, indexPath);
  35536. };
  35537. const close2 = (index) => {
  35538. const i = openedMenus.value.indexOf(index);
  35539. if (i !== -1) {
  35540. openedMenus.value.splice(i, 1);
  35541. }
  35542. };
  35543. const closeMenu = (index, indexPath) => {
  35544. close2(index);
  35545. emit("close", index, indexPath);
  35546. };
  35547. const handleSubMenuClick = ({
  35548. index,
  35549. indexPath
  35550. }) => {
  35551. const isOpened = openedMenus.value.includes(index);
  35552. isOpened ? closeMenu(index, indexPath) : openMenu(index, indexPath);
  35553. };
  35554. const handleMenuItemClick = (menuItem) => {
  35555. if (props2.mode === "horizontal" || props2.collapse) {
  35556. openedMenus.value = [];
  35557. }
  35558. const { index, indexPath } = menuItem;
  35559. if (isNil_default(index) || isNil_default(indexPath))
  35560. return;
  35561. if (props2.router && router) {
  35562. const route = menuItem.route || index;
  35563. const routerResult = router.push(route).then((res) => {
  35564. if (!res)
  35565. activeIndex.value = index;
  35566. return res;
  35567. });
  35568. emit("select", index, indexPath, { index, indexPath, route }, routerResult);
  35569. } else {
  35570. activeIndex.value = index;
  35571. emit("select", index, indexPath, { index, indexPath });
  35572. }
  35573. };
  35574. const updateActiveIndex = (val) => {
  35575. var _a2;
  35576. const itemsInData = items.value;
  35577. const item = itemsInData[val] || activeIndex.value && itemsInData[activeIndex.value] || itemsInData[props2.defaultActive];
  35578. activeIndex.value = (_a2 = item == null ? void 0 : item.index) != null ? _a2 : val;
  35579. };
  35580. const calcMenuItemWidth = (menuItem) => {
  35581. const computedStyle = getComputedStyle(menuItem);
  35582. const marginLeft = Number.parseInt(computedStyle.marginLeft, 10);
  35583. const marginRight = Number.parseInt(computedStyle.marginRight, 10);
  35584. return menuItem.offsetWidth + marginLeft + marginRight || 0;
  35585. };
  35586. const calcSliceIndex = () => {
  35587. var _a2, _b;
  35588. if (!menu.value)
  35589. return -1;
  35590. const items2 = Array.from((_b = (_a2 = menu.value) == null ? void 0 : _a2.childNodes) != null ? _b : []).filter((item) => item.nodeName !== "#comment" && (item.nodeName !== "#text" || item.nodeValue));
  35591. const computedMenuStyle = getComputedStyle(menu.value);
  35592. const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10);
  35593. const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10);
  35594. const menuWidth = menu.value.clientWidth - paddingLeft - paddingRight;
  35595. let calcWidth = 0;
  35596. let sliceIndex2 = 0;
  35597. items2.forEach((item, index) => {
  35598. calcWidth += calcMenuItemWidth(item);
  35599. if (calcWidth <= menuWidth - moreItemWidth) {
  35600. sliceIndex2 = index + 1;
  35601. }
  35602. });
  35603. return sliceIndex2 === items2.length ? -1 : sliceIndex2;
  35604. };
  35605. const getIndexPath = (index) => subMenus.value[index].indexPath;
  35606. const debounce2 = (fn2, wait = 33.34) => {
  35607. let timer;
  35608. return () => {
  35609. timer && clearTimeout(timer);
  35610. timer = setTimeout(() => {
  35611. fn2();
  35612. }, wait);
  35613. };
  35614. };
  35615. let isFirstTimeRender = true;
  35616. const handleResize = () => {
  35617. const el = unrefElement(subMenu);
  35618. if (el)
  35619. moreItemWidth = calcMenuItemWidth(el) || 64;
  35620. if (sliceIndex.value === calcSliceIndex())
  35621. return;
  35622. const callback = () => {
  35623. sliceIndex.value = -1;
  35624. nextTick(() => {
  35625. sliceIndex.value = calcSliceIndex();
  35626. });
  35627. };
  35628. isFirstTimeRender ? callback() : debounce2(callback)();
  35629. isFirstTimeRender = false;
  35630. };
  35631. watch(() => props2.defaultActive, (currentActive) => {
  35632. if (!items.value[currentActive]) {
  35633. activeIndex.value = "";
  35634. }
  35635. updateActiveIndex(currentActive);
  35636. });
  35637. watch(() => props2.collapse, (value) => {
  35638. if (value)
  35639. openedMenus.value = [];
  35640. });
  35641. watch(items.value, initMenu);
  35642. let resizeStopper;
  35643. watchEffect(() => {
  35644. if (props2.mode === "horizontal" && props2.ellipsis)
  35645. resizeStopper = useResizeObserver(menu, handleResize).stop;
  35646. else
  35647. resizeStopper == null ? void 0 : resizeStopper();
  35648. });
  35649. const mouseInChild = ref(false);
  35650. {
  35651. const addSubMenu = (item) => {
  35652. subMenus.value[item.index] = item;
  35653. };
  35654. const removeSubMenu = (item) => {
  35655. delete subMenus.value[item.index];
  35656. };
  35657. const addMenuItem = (item) => {
  35658. items.value[item.index] = item;
  35659. };
  35660. const removeMenuItem = (item) => {
  35661. delete items.value[item.index];
  35662. };
  35663. provide(MENU_INJECTION_KEY, reactive({
  35664. props: props2,
  35665. openedMenus,
  35666. items,
  35667. subMenus,
  35668. activeIndex,
  35669. isMenuPopup,
  35670. addMenuItem,
  35671. removeMenuItem,
  35672. addSubMenu,
  35673. removeSubMenu,
  35674. openMenu,
  35675. closeMenu,
  35676. handleMenuItemClick,
  35677. handleSubMenuClick
  35678. }));
  35679. provide(`${SUB_MENU_INJECTION_KEY}${instance.uid}`, {
  35680. addSubMenu,
  35681. removeSubMenu,
  35682. mouseInChild,
  35683. level: 0
  35684. });
  35685. }
  35686. onMounted(() => {
  35687. if (props2.mode === "horizontal") {
  35688. new Menu(instance.vnode.el, nsMenu.namespace.value);
  35689. }
  35690. });
  35691. {
  35692. const open = (index) => {
  35693. const { indexPath } = subMenus.value[index];
  35694. indexPath.forEach((i) => openMenu(i, indexPath));
  35695. };
  35696. expose({
  35697. open,
  35698. close: close2,
  35699. updateActiveIndex,
  35700. handleResize
  35701. });
  35702. }
  35703. const ulStyle = useMenuCssVar(props2, 0);
  35704. return () => {
  35705. var _a2, _b;
  35706. let slot = (_b = (_a2 = slots.default) == null ? void 0 : _a2.call(slots)) != null ? _b : [];
  35707. const vShowMore = [];
  35708. if (props2.mode === "horizontal" && menu.value) {
  35709. const originalSlot = flattedChildren(slot).filter((vnode) => {
  35710. return (vnode == null ? void 0 : vnode.shapeFlag) !== 8;
  35711. });
  35712. const slotDefault = sliceIndex.value === -1 ? originalSlot : originalSlot.slice(0, sliceIndex.value);
  35713. const slotMore = sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value);
  35714. if ((slotMore == null ? void 0 : slotMore.length) && props2.ellipsis) {
  35715. slot = slotDefault;
  35716. vShowMore.push(h(SubMenu2, {
  35717. ref: subMenu,
  35718. index: "sub-menu-more",
  35719. class: nsSubMenu.e("hide-arrow"),
  35720. popperOffset: props2.popperOffset
  35721. }, {
  35722. title: () => h(ElIcon, {
  35723. class: nsSubMenu.e("icon-more")
  35724. }, {
  35725. default: () => h(props2.ellipsisIcon)
  35726. }),
  35727. default: () => slotMore
  35728. }));
  35729. }
  35730. }
  35731. const directives = props2.closeOnClickOutside ? [
  35732. [
  35733. ClickOutside,
  35734. () => {
  35735. if (!openedMenus.value.length)
  35736. return;
  35737. if (!mouseInChild.value) {
  35738. openedMenus.value.forEach((openedMenu) => emit("close", openedMenu, getIndexPath(openedMenu)));
  35739. openedMenus.value = [];
  35740. }
  35741. }
  35742. ]
  35743. ] : [];
  35744. const vMenu = withDirectives(h("ul", {
  35745. key: String(props2.collapse),
  35746. role: "menubar",
  35747. ref: menu,
  35748. style: ulStyle.value,
  35749. class: {
  35750. [nsMenu.b()]: true,
  35751. [nsMenu.m(props2.mode)]: true,
  35752. [nsMenu.m("collapse")]: props2.collapse
  35753. }
  35754. }, [...slot, ...vShowMore]), directives);
  35755. if (props2.collapseTransition && props2.mode === "vertical") {
  35756. return h(ElMenuCollapseTransition, () => vMenu);
  35757. }
  35758. return vMenu;
  35759. };
  35760. }
  35761. });
  35762. // node_modules/element-plus/es/components/menu/src/menu-item.mjs
  35763. var menuItemProps = buildProps({
  35764. index: {
  35765. type: definePropType([String, null]),
  35766. default: null
  35767. },
  35768. route: {
  35769. type: definePropType([String, Object])
  35770. },
  35771. disabled: Boolean
  35772. });
  35773. var menuItemEmits = {
  35774. click: (item) => isString(item.index) && isArray(item.indexPath)
  35775. };
  35776. // node_modules/element-plus/es/components/menu/src/menu-item2.mjs
  35777. var COMPONENT_NAME14 = "ElMenuItem";
  35778. var __default__73 = defineComponent({
  35779. name: COMPONENT_NAME14
  35780. });
  35781. var _sfc_main94 = defineComponent({
  35782. ...__default__73,
  35783. props: menuItemProps,
  35784. emits: menuItemEmits,
  35785. setup(__props, { expose, emit }) {
  35786. const props2 = __props;
  35787. isPropAbsent(props2.index) && debugWarn(COMPONENT_NAME14, 'Missing required prop: "index"');
  35788. const instance = getCurrentInstance();
  35789. const rootMenu = inject(MENU_INJECTION_KEY);
  35790. const nsMenu = useNamespace("menu");
  35791. const nsMenuItem = useNamespace("menu-item");
  35792. if (!rootMenu)
  35793. throwError(COMPONENT_NAME14, "can not inject root menu");
  35794. const { parentMenu, indexPath } = useMenu(instance, toRef(props2, "index"));
  35795. const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
  35796. if (!subMenu)
  35797. throwError(COMPONENT_NAME14, "can not inject sub menu");
  35798. const active = computed(() => props2.index === rootMenu.activeIndex);
  35799. const item = reactive({
  35800. index: props2.index,
  35801. indexPath,
  35802. active
  35803. });
  35804. const handleClick = () => {
  35805. if (!props2.disabled) {
  35806. rootMenu.handleMenuItemClick({
  35807. index: props2.index,
  35808. indexPath: indexPath.value,
  35809. route: props2.route
  35810. });
  35811. emit("click", item);
  35812. }
  35813. };
  35814. onMounted(() => {
  35815. subMenu.addSubMenu(item);
  35816. rootMenu.addMenuItem(item);
  35817. });
  35818. onBeforeUnmount(() => {
  35819. subMenu.removeSubMenu(item);
  35820. rootMenu.removeMenuItem(item);
  35821. });
  35822. expose({
  35823. parentMenu,
  35824. rootMenu,
  35825. active,
  35826. nsMenu,
  35827. nsMenuItem,
  35828. handleClick
  35829. });
  35830. return (_ctx, _cache) => {
  35831. return openBlock(), createElementBlock("li", {
  35832. class: normalizeClass([
  35833. unref(nsMenuItem).b(),
  35834. unref(nsMenuItem).is("active", unref(active)),
  35835. unref(nsMenuItem).is("disabled", _ctx.disabled)
  35836. ]),
  35837. role: "menuitem",
  35838. tabindex: "-1",
  35839. onClick: handleClick
  35840. }, [
  35841. unref(parentMenu).type.name === "ElMenu" && unref(rootMenu).props.collapse && _ctx.$slots.title ? (openBlock(), createBlock(unref(ElTooltip), {
  35842. key: 0,
  35843. effect: unref(rootMenu).props.popperEffect,
  35844. placement: "right",
  35845. "fallback-placements": ["left"],
  35846. persistent: unref(rootMenu).props.persistent,
  35847. "focus-on-target": ""
  35848. }, {
  35849. content: withCtx(() => [
  35850. renderSlot(_ctx.$slots, "title")
  35851. ]),
  35852. default: withCtx(() => [
  35853. createBaseVNode("div", {
  35854. class: normalizeClass(unref(nsMenu).be("tooltip", "trigger"))
  35855. }, [
  35856. renderSlot(_ctx.$slots, "default")
  35857. ], 2)
  35858. ]),
  35859. _: 3
  35860. }, 8, ["effect", "persistent"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  35861. renderSlot(_ctx.$slots, "default"),
  35862. renderSlot(_ctx.$slots, "title")
  35863. ], 64))
  35864. ], 2);
  35865. };
  35866. }
  35867. });
  35868. var MenuItem2 = _export_sfc(_sfc_main94, [["__file", "menu-item.vue"]]);
  35869. // node_modules/element-plus/es/components/menu/src/menu-item-group2.mjs
  35870. var menuItemGroupProps = {
  35871. title: String
  35872. };
  35873. // node_modules/element-plus/es/components/menu/src/menu-item-group.mjs
  35874. var __default__74 = defineComponent({
  35875. name: "ElMenuItemGroup"
  35876. });
  35877. var _sfc_main95 = defineComponent({
  35878. ...__default__74,
  35879. props: menuItemGroupProps,
  35880. setup(__props) {
  35881. const ns = useNamespace("menu-item-group");
  35882. return (_ctx, _cache) => {
  35883. return openBlock(), createElementBlock("li", {
  35884. class: normalizeClass(unref(ns).b())
  35885. }, [
  35886. createBaseVNode("div", {
  35887. class: normalizeClass(unref(ns).e("title"))
  35888. }, [
  35889. !_ctx.$slots.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  35890. createTextVNode(toDisplayString(_ctx.title), 1)
  35891. ], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 })
  35892. ], 2),
  35893. createBaseVNode("ul", null, [
  35894. renderSlot(_ctx.$slots, "default")
  35895. ])
  35896. ], 2);
  35897. };
  35898. }
  35899. });
  35900. var MenuItemGroup = _export_sfc(_sfc_main95, [["__file", "menu-item-group.vue"]]);
  35901. // node_modules/element-plus/es/components/menu/index.mjs
  35902. var ElMenu = withInstall(Menu2, {
  35903. MenuItem: MenuItem2,
  35904. MenuItemGroup,
  35905. SubMenu: SubMenu2
  35906. });
  35907. var ElMenuItem = withNoopInstall(MenuItem2);
  35908. var ElMenuItemGroup = withNoopInstall(MenuItemGroup);
  35909. var ElSubMenu = withNoopInstall(SubMenu2);
  35910. // node_modules/element-plus/es/components/page-header/src/page-header.mjs
  35911. var pageHeaderProps = buildProps({
  35912. icon: {
  35913. type: iconPropType,
  35914. default: () => back_default
  35915. },
  35916. title: String,
  35917. content: {
  35918. type: String,
  35919. default: ""
  35920. }
  35921. });
  35922. var pageHeaderEmits = {
  35923. back: () => true
  35924. };
  35925. // node_modules/element-plus/es/components/page-header/src/page-header2.mjs
  35926. var __default__75 = defineComponent({
  35927. name: "ElPageHeader"
  35928. });
  35929. var _sfc_main96 = defineComponent({
  35930. ...__default__75,
  35931. props: pageHeaderProps,
  35932. emits: pageHeaderEmits,
  35933. setup(__props, { emit }) {
  35934. const { t } = useLocale();
  35935. const ns = useNamespace("page-header");
  35936. function handleClick() {
  35937. emit("back");
  35938. }
  35939. return (_ctx, _cache) => {
  35940. return openBlock(), createElementBlock("div", {
  35941. class: normalizeClass([
  35942. unref(ns).b(),
  35943. unref(ns).is("contentful", !!_ctx.$slots.default),
  35944. {
  35945. [unref(ns).m("has-breadcrumb")]: !!_ctx.$slots.breadcrumb,
  35946. [unref(ns).m("has-extra")]: !!_ctx.$slots.extra
  35947. }
  35948. ])
  35949. }, [
  35950. _ctx.$slots.breadcrumb ? (openBlock(), createElementBlock("div", {
  35951. key: 0,
  35952. class: normalizeClass(unref(ns).e("breadcrumb"))
  35953. }, [
  35954. renderSlot(_ctx.$slots, "breadcrumb")
  35955. ], 2)) : createCommentVNode("v-if", true),
  35956. createBaseVNode("div", {
  35957. class: normalizeClass(unref(ns).e("header"))
  35958. }, [
  35959. createBaseVNode("div", {
  35960. class: normalizeClass(unref(ns).e("left"))
  35961. }, [
  35962. createBaseVNode("div", {
  35963. class: normalizeClass(unref(ns).e("back")),
  35964. role: "button",
  35965. tabindex: "0",
  35966. onClick: handleClick
  35967. }, [
  35968. _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
  35969. key: 0,
  35970. "aria-label": _ctx.title || unref(t)("el.pageHeader.title"),
  35971. class: normalizeClass(unref(ns).e("icon"))
  35972. }, [
  35973. renderSlot(_ctx.$slots, "icon", {}, () => [
  35974. _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  35975. default: withCtx(() => [
  35976. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  35977. ]),
  35978. _: 1
  35979. })) : createCommentVNode("v-if", true)
  35980. ])
  35981. ], 10, ["aria-label"])) : createCommentVNode("v-if", true),
  35982. createBaseVNode("div", {
  35983. class: normalizeClass(unref(ns).e("title"))
  35984. }, [
  35985. renderSlot(_ctx.$slots, "title", {}, () => [
  35986. createTextVNode(toDisplayString(_ctx.title || unref(t)("el.pageHeader.title")), 1)
  35987. ])
  35988. ], 2)
  35989. ], 2),
  35990. createVNode(unref(ElDivider), { direction: "vertical" }),
  35991. createBaseVNode("div", {
  35992. class: normalizeClass(unref(ns).e("content"))
  35993. }, [
  35994. renderSlot(_ctx.$slots, "content", {}, () => [
  35995. createTextVNode(toDisplayString(_ctx.content), 1)
  35996. ])
  35997. ], 2)
  35998. ], 2),
  35999. _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
  36000. key: 0,
  36001. class: normalizeClass(unref(ns).e("extra"))
  36002. }, [
  36003. renderSlot(_ctx.$slots, "extra")
  36004. ], 2)) : createCommentVNode("v-if", true)
  36005. ], 2),
  36006. _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
  36007. key: 1,
  36008. class: normalizeClass(unref(ns).e("main"))
  36009. }, [
  36010. renderSlot(_ctx.$slots, "default")
  36011. ], 2)) : createCommentVNode("v-if", true)
  36012. ], 2);
  36013. };
  36014. }
  36015. });
  36016. var PageHeader = _export_sfc(_sfc_main96, [["__file", "page-header.vue"]]);
  36017. // node_modules/element-plus/es/components/page-header/index.mjs
  36018. var ElPageHeader = withInstall(PageHeader);
  36019. // node_modules/element-plus/es/components/pagination/src/constants.mjs
  36020. var elPaginationKey = Symbol("elPaginationKey");
  36021. // node_modules/element-plus/es/components/pagination/src/components/prev.mjs
  36022. var paginationPrevProps = buildProps({
  36023. disabled: Boolean,
  36024. currentPage: {
  36025. type: Number,
  36026. default: 1
  36027. },
  36028. prevText: {
  36029. type: String
  36030. },
  36031. prevIcon: {
  36032. type: iconPropType
  36033. }
  36034. });
  36035. var paginationPrevEmits = {
  36036. click: (evt) => evt instanceof MouseEvent
  36037. };
  36038. // node_modules/element-plus/es/components/pagination/src/components/prev2.mjs
  36039. var __default__76 = defineComponent({
  36040. name: "ElPaginationPrev"
  36041. });
  36042. var _sfc_main97 = defineComponent({
  36043. ...__default__76,
  36044. props: paginationPrevProps,
  36045. emits: paginationPrevEmits,
  36046. setup(__props) {
  36047. const props2 = __props;
  36048. const { t } = useLocale();
  36049. const internalDisabled = computed(() => props2.disabled || props2.currentPage <= 1);
  36050. return (_ctx, _cache) => {
  36051. return openBlock(), createElementBlock("button", {
  36052. type: "button",
  36053. class: "btn-prev",
  36054. disabled: unref(internalDisabled),
  36055. "aria-label": _ctx.prevText || unref(t)("el.pagination.prev"),
  36056. "aria-disabled": unref(internalDisabled),
  36057. onClick: ($event) => _ctx.$emit("click", $event)
  36058. }, [
  36059. _ctx.prevText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.prevText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
  36060. default: withCtx(() => [
  36061. (openBlock(), createBlock(resolveDynamicComponent(_ctx.prevIcon)))
  36062. ]),
  36063. _: 1
  36064. }))
  36065. ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
  36066. };
  36067. }
  36068. });
  36069. var Prev = _export_sfc(_sfc_main97, [["__file", "prev.vue"]]);
  36070. // node_modules/element-plus/es/components/pagination/src/components/next.mjs
  36071. var paginationNextProps = buildProps({
  36072. disabled: Boolean,
  36073. currentPage: {
  36074. type: Number,
  36075. default: 1
  36076. },
  36077. pageCount: {
  36078. type: Number,
  36079. default: 50
  36080. },
  36081. nextText: {
  36082. type: String
  36083. },
  36084. nextIcon: {
  36085. type: iconPropType
  36086. }
  36087. });
  36088. // node_modules/element-plus/es/components/pagination/src/components/next2.mjs
  36089. var __default__77 = defineComponent({
  36090. name: "ElPaginationNext"
  36091. });
  36092. var _sfc_main98 = defineComponent({
  36093. ...__default__77,
  36094. props: paginationNextProps,
  36095. emits: ["click"],
  36096. setup(__props) {
  36097. const props2 = __props;
  36098. const { t } = useLocale();
  36099. const internalDisabled = computed(() => props2.disabled || props2.currentPage === props2.pageCount || props2.pageCount === 0);
  36100. return (_ctx, _cache) => {
  36101. return openBlock(), createElementBlock("button", {
  36102. type: "button",
  36103. class: "btn-next",
  36104. disabled: unref(internalDisabled),
  36105. "aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
  36106. "aria-disabled": unref(internalDisabled),
  36107. onClick: ($event) => _ctx.$emit("click", $event)
  36108. }, [
  36109. _ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
  36110. default: withCtx(() => [
  36111. (openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
  36112. ]),
  36113. _: 1
  36114. }))
  36115. ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
  36116. };
  36117. }
  36118. });
  36119. var Next = _export_sfc(_sfc_main98, [["__file", "next.vue"]]);
  36120. // node_modules/element-plus/es/components/select-v2/src/useProps.mjs
  36121. var defaultProps = {
  36122. label: "label",
  36123. value: "value",
  36124. disabled: "disabled",
  36125. options: "options"
  36126. };
  36127. function useProps(props2) {
  36128. const aliasProps = computed(() => ({ ...defaultProps, ...props2.props }));
  36129. const getLabel = (option) => get_default(option, aliasProps.value.label);
  36130. const getValue3 = (option) => get_default(option, aliasProps.value.value);
  36131. const getDisabled = (option) => get_default(option, aliasProps.value.disabled);
  36132. const getOptions = (option) => get_default(option, aliasProps.value.options);
  36133. return {
  36134. aliasProps,
  36135. getLabel,
  36136. getValue: getValue3,
  36137. getDisabled,
  36138. getOptions
  36139. };
  36140. }
  36141. // node_modules/element-plus/es/components/select/src/token.mjs
  36142. var selectGroupKey = Symbol("ElSelectGroup");
  36143. var selectKey = Symbol("ElSelect");
  36144. // node_modules/element-plus/es/components/select/src/option.mjs
  36145. var COMPONENT_NAME15 = "ElOption";
  36146. var optionProps = buildProps({
  36147. value: {
  36148. type: [String, Number, Boolean, Object],
  36149. required: true
  36150. },
  36151. label: {
  36152. type: [String, Number]
  36153. },
  36154. created: Boolean,
  36155. disabled: Boolean
  36156. });
  36157. // node_modules/element-plus/es/utils/strings.mjs
  36158. var escapeStringRegexp = (string3 = "") => string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
  36159. var capitalize3 = (str) => capitalize(str);
  36160. // node_modules/element-plus/es/components/select/src/useOption.mjs
  36161. function useOption(props2, states) {
  36162. const select = inject(selectKey);
  36163. if (!select) {
  36164. throwError(COMPONENT_NAME15, "usage: <el-select><el-option /></el-select/>");
  36165. }
  36166. const selectGroup = inject(selectGroupKey, { disabled: false });
  36167. const itemSelected = computed(() => {
  36168. return contains(castArray_default(select.props.modelValue), props2.value);
  36169. });
  36170. const limitReached = computed(() => {
  36171. var _a2;
  36172. if (select.props.multiple) {
  36173. const modelValue = castArray_default((_a2 = select.props.modelValue) != null ? _a2 : []);
  36174. return !itemSelected.value && modelValue.length >= select.props.multipleLimit && select.props.multipleLimit > 0;
  36175. } else {
  36176. return false;
  36177. }
  36178. });
  36179. const currentLabel = computed(() => {
  36180. var _a2;
  36181. return (_a2 = props2.label) != null ? _a2 : isObject(props2.value) ? "" : props2.value;
  36182. });
  36183. const currentValue = computed(() => {
  36184. return props2.value || props2.label || "";
  36185. });
  36186. const isDisabled = computed(() => {
  36187. return props2.disabled || states.groupDisabled || limitReached.value;
  36188. });
  36189. const instance = getCurrentInstance();
  36190. const contains = (arr = [], target2) => {
  36191. if (!isObject(props2.value)) {
  36192. return arr && arr.includes(target2);
  36193. } else {
  36194. const valueKey = select.props.valueKey;
  36195. return arr && arr.some((item) => {
  36196. return toRaw(get_default(item, valueKey)) === get_default(target2, valueKey);
  36197. });
  36198. }
  36199. };
  36200. const hoverItem = () => {
  36201. if (!props2.disabled && !selectGroup.disabled) {
  36202. select.states.hoveringIndex = select.optionsArray.indexOf(instance.proxy);
  36203. }
  36204. };
  36205. const updateOption = (query) => {
  36206. const regexp4 = new RegExp(escapeStringRegexp(query), "i");
  36207. states.visible = regexp4.test(String(currentLabel.value)) || props2.created;
  36208. };
  36209. watch(() => currentLabel.value, () => {
  36210. if (!props2.created && !select.props.remote)
  36211. select.setSelected();
  36212. });
  36213. watch(() => props2.value, (val, oldVal) => {
  36214. const { remote, valueKey } = select.props;
  36215. const shouldUpdate = remote ? val !== oldVal : !isEqual_default(val, oldVal);
  36216. if (shouldUpdate) {
  36217. select.onOptionDestroy(oldVal, instance.proxy);
  36218. select.onOptionCreate(instance.proxy);
  36219. }
  36220. if (!props2.created && !remote) {
  36221. if (valueKey && isObject(val) && isObject(oldVal) && val[valueKey] === oldVal[valueKey]) {
  36222. return;
  36223. }
  36224. select.setSelected();
  36225. }
  36226. });
  36227. watch(() => selectGroup.disabled, () => {
  36228. states.groupDisabled = selectGroup.disabled;
  36229. }, { immediate: true });
  36230. return {
  36231. select,
  36232. currentLabel,
  36233. currentValue,
  36234. itemSelected,
  36235. isDisabled,
  36236. hoverItem,
  36237. updateOption
  36238. };
  36239. }
  36240. // node_modules/element-plus/es/components/select/src/option2.mjs
  36241. var _sfc_main99 = defineComponent({
  36242. name: COMPONENT_NAME15,
  36243. componentName: COMPONENT_NAME15,
  36244. props: optionProps,
  36245. setup(props2) {
  36246. const ns = useNamespace("select");
  36247. const id = useId();
  36248. const containerKls = computed(() => [
  36249. ns.be("dropdown", "item"),
  36250. ns.is("disabled", unref(isDisabled)),
  36251. ns.is("selected", unref(itemSelected)),
  36252. ns.is("hovering", unref(hover))
  36253. ]);
  36254. const states = reactive({
  36255. index: -1,
  36256. groupDisabled: false,
  36257. visible: true,
  36258. hover: false
  36259. });
  36260. const {
  36261. currentLabel,
  36262. itemSelected,
  36263. isDisabled,
  36264. select,
  36265. hoverItem,
  36266. updateOption
  36267. } = useOption(props2, states);
  36268. const { visible, hover } = toRefs(states);
  36269. const vm = getCurrentInstance().proxy;
  36270. select.onOptionCreate(vm);
  36271. onBeforeUnmount(() => {
  36272. const key = vm.value;
  36273. nextTick(() => {
  36274. const { selected: selectedOptions } = select.states;
  36275. const doesSelected = selectedOptions.some((item) => {
  36276. return item.value === vm.value;
  36277. });
  36278. if (select.states.cachedOptions.get(key) === vm && !doesSelected) {
  36279. select.states.cachedOptions.delete(key);
  36280. }
  36281. });
  36282. select.onOptionDestroy(key, vm);
  36283. });
  36284. function selectOptionClick() {
  36285. if (!isDisabled.value) {
  36286. select.handleOptionSelect(vm);
  36287. }
  36288. }
  36289. return {
  36290. ns,
  36291. id,
  36292. containerKls,
  36293. currentLabel,
  36294. itemSelected,
  36295. isDisabled,
  36296. select,
  36297. visible,
  36298. hover,
  36299. states,
  36300. hoverItem,
  36301. updateOption,
  36302. selectOptionClick
  36303. };
  36304. }
  36305. });
  36306. function _sfc_render11(_ctx, _cache) {
  36307. return withDirectives((openBlock(), createElementBlock("li", {
  36308. id: _ctx.id,
  36309. class: normalizeClass(_ctx.containerKls),
  36310. role: "option",
  36311. "aria-disabled": _ctx.isDisabled || void 0,
  36312. "aria-selected": _ctx.itemSelected,
  36313. onMousemove: _ctx.hoverItem,
  36314. onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
  36315. }, [
  36316. renderSlot(_ctx.$slots, "default", {}, () => [
  36317. createBaseVNode("span", null, toDisplayString(_ctx.currentLabel), 1)
  36318. ])
  36319. ], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
  36320. [vShow, _ctx.visible]
  36321. ]);
  36322. }
  36323. var Option = _export_sfc(_sfc_main99, [["render", _sfc_render11], ["__file", "option.vue"]]);
  36324. // node_modules/element-plus/es/components/select/src/select-dropdown.mjs
  36325. var _sfc_main100 = defineComponent({
  36326. name: "ElSelectDropdown",
  36327. componentName: "ElSelectDropdown",
  36328. setup() {
  36329. const select = inject(selectKey);
  36330. const ns = useNamespace("select");
  36331. const popperClass = computed(() => select.props.popperClass);
  36332. const isMultiple = computed(() => select.props.multiple);
  36333. const isFitInputWidth = computed(() => select.props.fitInputWidth);
  36334. const minWidth = ref("");
  36335. function updateMinWidth() {
  36336. var _a2;
  36337. const offsetWidth = (_a2 = select.selectRef) == null ? void 0 : _a2.offsetWidth;
  36338. if (offsetWidth) {
  36339. minWidth.value = `${offsetWidth - BORDER_HORIZONTAL_WIDTH}px`;
  36340. } else {
  36341. minWidth.value = "";
  36342. }
  36343. }
  36344. onMounted(() => {
  36345. updateMinWidth();
  36346. useResizeObserver(select.selectRef, updateMinWidth);
  36347. });
  36348. return {
  36349. ns,
  36350. minWidth,
  36351. popperClass,
  36352. isMultiple,
  36353. isFitInputWidth
  36354. };
  36355. }
  36356. });
  36357. function _sfc_render12(_ctx, _cache, $props, $setup, $data, $options) {
  36358. return openBlock(), createElementBlock("div", {
  36359. class: normalizeClass([_ctx.ns.b("dropdown"), _ctx.ns.is("multiple", _ctx.isMultiple), _ctx.popperClass]),
  36360. style: normalizeStyle({ [_ctx.isFitInputWidth ? "width" : "minWidth"]: _ctx.minWidth })
  36361. }, [
  36362. _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
  36363. key: 0,
  36364. class: normalizeClass(_ctx.ns.be("dropdown", "header"))
  36365. }, [
  36366. renderSlot(_ctx.$slots, "header")
  36367. ], 2)) : createCommentVNode("v-if", true),
  36368. renderSlot(_ctx.$slots, "default"),
  36369. _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
  36370. key: 1,
  36371. class: normalizeClass(_ctx.ns.be("dropdown", "footer"))
  36372. }, [
  36373. renderSlot(_ctx.$slots, "footer")
  36374. ], 2)) : createCommentVNode("v-if", true)
  36375. ], 6);
  36376. }
  36377. var ElSelectMenu = _export_sfc(_sfc_main100, [["render", _sfc_render12], ["__file", "select-dropdown.vue"]]);
  36378. // node_modules/element-plus/es/components/select/src/useSelect.mjs
  36379. var useSelect = (props2, emit) => {
  36380. const { t } = useLocale();
  36381. const contentId = useId();
  36382. const nsSelect = useNamespace("select");
  36383. const nsInput = useNamespace("input");
  36384. const states = reactive({
  36385. inputValue: "",
  36386. options: /* @__PURE__ */ new Map(),
  36387. cachedOptions: /* @__PURE__ */ new Map(),
  36388. optionValues: [],
  36389. selected: [],
  36390. selectionWidth: 0,
  36391. collapseItemWidth: 0,
  36392. selectedLabel: "",
  36393. hoveringIndex: -1,
  36394. previousQuery: null,
  36395. inputHovering: false,
  36396. menuVisibleOnFocus: false,
  36397. isBeforeHide: false
  36398. });
  36399. const selectRef = ref();
  36400. const selectionRef = ref();
  36401. const tooltipRef = ref();
  36402. const tagTooltipRef = ref();
  36403. const inputRef = ref();
  36404. const prefixRef = ref();
  36405. const suffixRef = ref();
  36406. const menuRef = ref();
  36407. const tagMenuRef = ref();
  36408. const collapseItemRef = ref();
  36409. const scrollbarRef = ref();
  36410. const expanded = ref(false);
  36411. const hoverOption = ref();
  36412. const debouncing = ref(false);
  36413. const { form, formItem } = useFormItem();
  36414. const { inputId } = useFormItemInputId(props2, {
  36415. formItemContext: formItem
  36416. });
  36417. const { valueOnClear, isEmptyValue: isEmptyValue2 } = useEmptyValues(props2);
  36418. const {
  36419. isComposing,
  36420. handleCompositionStart,
  36421. handleCompositionUpdate,
  36422. handleCompositionEnd
  36423. } = useComposition({
  36424. afterComposition: (e) => onInput(e)
  36425. });
  36426. const selectDisabled = computed(() => props2.disabled || !!(form == null ? void 0 : form.disabled));
  36427. const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {
  36428. disabled: selectDisabled,
  36429. afterFocus() {
  36430. if (props2.automaticDropdown && !expanded.value) {
  36431. expanded.value = true;
  36432. states.menuVisibleOnFocus = true;
  36433. }
  36434. },
  36435. beforeBlur(event) {
  36436. var _a2, _b;
  36437. return ((_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event)) || ((_b = tagTooltipRef.value) == null ? void 0 : _b.isFocusInsideContent(event));
  36438. },
  36439. afterBlur() {
  36440. var _a2;
  36441. expanded.value = false;
  36442. states.menuVisibleOnFocus = false;
  36443. if (props2.validateEvent) {
  36444. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn(err));
  36445. }
  36446. }
  36447. });
  36448. const hasModelValue = computed(() => {
  36449. return isArray(props2.modelValue) ? props2.modelValue.length > 0 : !isEmptyValue2(props2.modelValue);
  36450. });
  36451. const needStatusIcon = computed(() => {
  36452. var _a2;
  36453. return (_a2 = form == null ? void 0 : form.statusIcon) != null ? _a2 : false;
  36454. });
  36455. const showClearBtn = computed(() => {
  36456. return props2.clearable && !selectDisabled.value && hasModelValue.value && (isFocused.value || states.inputHovering);
  36457. });
  36458. const iconComponent = computed(() => props2.remote && props2.filterable && !props2.remoteShowSuffix ? "" : props2.suffixIcon);
  36459. const iconReverse = computed(() => nsSelect.is("reverse", !!(iconComponent.value && expanded.value)));
  36460. const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
  36461. const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
  36462. const debounce2 = computed(() => props2.remote ? props2.debounce : 0);
  36463. const isRemoteSearchEmpty = computed(() => props2.remote && !states.inputValue && states.options.size === 0);
  36464. const emptyText = computed(() => {
  36465. if (props2.loading) {
  36466. return props2.loadingText || t("el.select.loading");
  36467. } else {
  36468. if (props2.filterable && states.inputValue && states.options.size > 0 && filteredOptionsCount.value === 0) {
  36469. return props2.noMatchText || t("el.select.noMatch");
  36470. }
  36471. if (states.options.size === 0) {
  36472. return props2.noDataText || t("el.select.noData");
  36473. }
  36474. }
  36475. return null;
  36476. });
  36477. const filteredOptionsCount = computed(() => optionsArray.value.filter((option) => option.visible).length);
  36478. const optionsArray = computed(() => {
  36479. const list = Array.from(states.options.values());
  36480. const newList = [];
  36481. states.optionValues.forEach((item) => {
  36482. const index = list.findIndex((i) => i.value === item);
  36483. if (index > -1) {
  36484. newList.push(list[index]);
  36485. }
  36486. });
  36487. return newList.length >= list.length ? newList : list;
  36488. });
  36489. const cachedOptionsArray = computed(() => Array.from(states.cachedOptions.values()));
  36490. const showNewOption = computed(() => {
  36491. const hasExistingOption = optionsArray.value.filter((option) => {
  36492. return !option.created;
  36493. }).some((option) => {
  36494. return option.currentLabel === states.inputValue;
  36495. });
  36496. return props2.filterable && props2.allowCreate && states.inputValue !== "" && !hasExistingOption;
  36497. });
  36498. const updateOptions2 = () => {
  36499. if (props2.filterable && isFunction(props2.filterMethod))
  36500. return;
  36501. if (props2.filterable && props2.remote && isFunction(props2.remoteMethod))
  36502. return;
  36503. optionsArray.value.forEach((option) => {
  36504. var _a2;
  36505. (_a2 = option.updateOption) == null ? void 0 : _a2.call(option, states.inputValue);
  36506. });
  36507. };
  36508. const selectSize = useFormSize();
  36509. const collapseTagSize = computed(() => ["small"].includes(selectSize.value) ? "small" : "default");
  36510. const dropdownMenuVisible = computed({
  36511. get() {
  36512. return expanded.value && (props2.loading || !isRemoteSearchEmpty.value) && (!debouncing.value || !isEmpty2(states.previousQuery));
  36513. },
  36514. set(val) {
  36515. expanded.value = val;
  36516. }
  36517. });
  36518. const shouldShowPlaceholder = computed(() => {
  36519. if (props2.multiple && !isUndefined2(props2.modelValue)) {
  36520. return castArray_default(props2.modelValue).length === 0 && !states.inputValue;
  36521. }
  36522. const value = isArray(props2.modelValue) ? props2.modelValue[0] : props2.modelValue;
  36523. return props2.filterable || isUndefined2(value) ? !states.inputValue : true;
  36524. });
  36525. const currentPlaceholder = computed(() => {
  36526. var _a2;
  36527. const _placeholder = (_a2 = props2.placeholder) != null ? _a2 : t("el.select.placeholder");
  36528. return props2.multiple || !hasModelValue.value ? _placeholder : states.selectedLabel;
  36529. });
  36530. const mouseEnterEventName = computed(() => isIOS ? null : "mouseenter");
  36531. watch(() => props2.modelValue, (val, oldVal) => {
  36532. if (props2.multiple) {
  36533. if (props2.filterable && !props2.reserveKeyword) {
  36534. states.inputValue = "";
  36535. handleQueryChange("");
  36536. }
  36537. }
  36538. setSelected();
  36539. if (!isEqual_default(val, oldVal) && props2.validateEvent) {
  36540. formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
  36541. }
  36542. }, {
  36543. flush: "post",
  36544. deep: true
  36545. });
  36546. watch(() => expanded.value, (val) => {
  36547. if (val) {
  36548. handleQueryChange(states.inputValue);
  36549. } else {
  36550. states.inputValue = "";
  36551. states.previousQuery = null;
  36552. states.isBeforeHide = true;
  36553. }
  36554. emit("visible-change", val);
  36555. });
  36556. watch(() => states.options.entries(), () => {
  36557. if (!isClient)
  36558. return;
  36559. setSelected();
  36560. if (props2.defaultFirstOption && (props2.filterable || props2.remote) && filteredOptionsCount.value) {
  36561. checkDefaultFirstOption();
  36562. }
  36563. }, {
  36564. flush: "post"
  36565. });
  36566. watch([() => states.hoveringIndex, optionsArray], ([val]) => {
  36567. if (isNumber2(val) && val > -1) {
  36568. hoverOption.value = optionsArray.value[val] || {};
  36569. } else {
  36570. hoverOption.value = {};
  36571. }
  36572. optionsArray.value.forEach((option) => {
  36573. option.hover = hoverOption.value === option;
  36574. });
  36575. });
  36576. watchEffect(() => {
  36577. if (states.isBeforeHide)
  36578. return;
  36579. updateOptions2();
  36580. });
  36581. const handleQueryChange = (val) => {
  36582. if (states.previousQuery === val || isComposing.value) {
  36583. return;
  36584. }
  36585. states.previousQuery = val;
  36586. if (props2.filterable && isFunction(props2.filterMethod)) {
  36587. props2.filterMethod(val);
  36588. } else if (props2.filterable && props2.remote && isFunction(props2.remoteMethod)) {
  36589. props2.remoteMethod(val);
  36590. }
  36591. if (props2.defaultFirstOption && (props2.filterable || props2.remote) && filteredOptionsCount.value) {
  36592. nextTick(checkDefaultFirstOption);
  36593. } else {
  36594. nextTick(updateHoveringIndex);
  36595. }
  36596. };
  36597. const checkDefaultFirstOption = () => {
  36598. const optionsInDropdown = optionsArray.value.filter((n) => n.visible && !n.disabled && !n.states.groupDisabled);
  36599. const userCreatedOption = optionsInDropdown.find((n) => n.created);
  36600. const firstOriginOption = optionsInDropdown[0];
  36601. const valueList = optionsArray.value.map((item) => item.value);
  36602. states.hoveringIndex = getValueIndex(valueList, userCreatedOption || firstOriginOption);
  36603. };
  36604. const setSelected = () => {
  36605. if (!props2.multiple) {
  36606. const value = isArray(props2.modelValue) ? props2.modelValue[0] : props2.modelValue;
  36607. const option = getOption(value);
  36608. states.selectedLabel = option.currentLabel;
  36609. states.selected = [option];
  36610. return;
  36611. } else {
  36612. states.selectedLabel = "";
  36613. }
  36614. const result2 = [];
  36615. if (!isUndefined2(props2.modelValue)) {
  36616. castArray_default(props2.modelValue).forEach((value) => {
  36617. result2.push(getOption(value));
  36618. });
  36619. }
  36620. states.selected = result2;
  36621. };
  36622. const getOption = (value) => {
  36623. let option;
  36624. const isObjectValue = isPlainObject(value);
  36625. for (let i = states.cachedOptions.size - 1; i >= 0; i--) {
  36626. const cachedOption = cachedOptionsArray.value[i];
  36627. const isEqualValue = isObjectValue ? get_default(cachedOption.value, props2.valueKey) === get_default(value, props2.valueKey) : cachedOption.value === value;
  36628. if (isEqualValue) {
  36629. option = {
  36630. index: optionsArray.value.filter((opt) => !opt.created).indexOf(cachedOption),
  36631. value,
  36632. currentLabel: cachedOption.currentLabel,
  36633. get isDisabled() {
  36634. return cachedOption.isDisabled;
  36635. }
  36636. };
  36637. break;
  36638. }
  36639. }
  36640. if (option)
  36641. return option;
  36642. const label = isObjectValue ? value.label : value != null ? value : "";
  36643. const newOption = {
  36644. index: -1,
  36645. value,
  36646. currentLabel: label
  36647. };
  36648. return newOption;
  36649. };
  36650. const updateHoveringIndex = () => {
  36651. states.hoveringIndex = optionsArray.value.findIndex((item) => states.selected.some((selected) => getValueKey(selected) === getValueKey(item)));
  36652. };
  36653. const resetSelectionWidth = () => {
  36654. states.selectionWidth = Number.parseFloat(window.getComputedStyle(selectionRef.value).width);
  36655. };
  36656. const resetCollapseItemWidth = () => {
  36657. states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
  36658. };
  36659. const updateTooltip = () => {
  36660. var _a2, _b;
  36661. (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  36662. };
  36663. const updateTagTooltip = () => {
  36664. var _a2, _b;
  36665. (_b = (_a2 = tagTooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  36666. };
  36667. const onInputChange = () => {
  36668. if (states.inputValue.length > 0 && !expanded.value) {
  36669. expanded.value = true;
  36670. }
  36671. handleQueryChange(states.inputValue);
  36672. };
  36673. const onInput = (event) => {
  36674. states.inputValue = event.target.value;
  36675. if (props2.remote) {
  36676. debouncing.value = true;
  36677. debouncedOnInputChange();
  36678. } else {
  36679. return onInputChange();
  36680. }
  36681. };
  36682. const debouncedOnInputChange = useDebounceFn(() => {
  36683. onInputChange();
  36684. debouncing.value = false;
  36685. }, debounce2);
  36686. const emitChange = (val) => {
  36687. if (!isEqual_default(props2.modelValue, val)) {
  36688. emit(CHANGE_EVENT, val);
  36689. }
  36690. };
  36691. const getLastNotDisabledIndex = (value) => findLastIndex_default(value, (it2) => {
  36692. const option = states.cachedOptions.get(it2);
  36693. return option && !option.disabled && !option.states.groupDisabled;
  36694. });
  36695. const deletePrevTag = (e) => {
  36696. const code = getEventCode(e);
  36697. if (!props2.multiple)
  36698. return;
  36699. if (code === EVENT_CODE.delete)
  36700. return;
  36701. if (e.target.value.length <= 0) {
  36702. const value = castArray_default(props2.modelValue).slice();
  36703. const lastNotDisabledIndex = getLastNotDisabledIndex(value);
  36704. if (lastNotDisabledIndex < 0)
  36705. return;
  36706. const removeTagValue = value[lastNotDisabledIndex];
  36707. value.splice(lastNotDisabledIndex, 1);
  36708. emit(UPDATE_MODEL_EVENT, value);
  36709. emitChange(value);
  36710. emit("remove-tag", removeTagValue);
  36711. }
  36712. };
  36713. const deleteTag = (event, tag) => {
  36714. const index = states.selected.indexOf(tag);
  36715. if (index > -1 && !selectDisabled.value) {
  36716. const value = castArray_default(props2.modelValue).slice();
  36717. value.splice(index, 1);
  36718. emit(UPDATE_MODEL_EVENT, value);
  36719. emitChange(value);
  36720. emit("remove-tag", tag.value);
  36721. }
  36722. event.stopPropagation();
  36723. focus();
  36724. };
  36725. const deleteSelected = (event) => {
  36726. event.stopPropagation();
  36727. const value = props2.multiple ? [] : valueOnClear.value;
  36728. if (props2.multiple) {
  36729. for (const item of states.selected) {
  36730. if (item.isDisabled)
  36731. value.push(item.value);
  36732. }
  36733. }
  36734. emit(UPDATE_MODEL_EVENT, value);
  36735. emitChange(value);
  36736. states.hoveringIndex = -1;
  36737. expanded.value = false;
  36738. emit("clear");
  36739. focus();
  36740. };
  36741. const handleOptionSelect = (option) => {
  36742. var _a2;
  36743. if (props2.multiple) {
  36744. const value = castArray_default((_a2 = props2.modelValue) != null ? _a2 : []).slice();
  36745. const optionIndex = getValueIndex(value, option);
  36746. if (optionIndex > -1) {
  36747. value.splice(optionIndex, 1);
  36748. } else if (props2.multipleLimit <= 0 || value.length < props2.multipleLimit) {
  36749. value.push(option.value);
  36750. }
  36751. emit(UPDATE_MODEL_EVENT, value);
  36752. emitChange(value);
  36753. if (option.created) {
  36754. handleQueryChange("");
  36755. }
  36756. if (props2.filterable && !props2.reserveKeyword) {
  36757. states.inputValue = "";
  36758. }
  36759. } else {
  36760. !isEqual_default(props2.modelValue, option.value) && emit(UPDATE_MODEL_EVENT, option.value);
  36761. emitChange(option.value);
  36762. expanded.value = false;
  36763. }
  36764. focus();
  36765. if (expanded.value)
  36766. return;
  36767. nextTick(() => {
  36768. scrollToOption(option);
  36769. });
  36770. };
  36771. const getValueIndex = (arr, option) => {
  36772. if (isUndefined2(option))
  36773. return -1;
  36774. if (!isObject(option.value))
  36775. return arr.indexOf(option.value);
  36776. return arr.findIndex((item) => {
  36777. return isEqual_default(get_default(item, props2.valueKey), getValueKey(option));
  36778. });
  36779. };
  36780. const scrollToOption = (option) => {
  36781. var _a2, _b, _c, _d, _e;
  36782. const targetOption = isArray(option) ? option[0] : option;
  36783. let target2 = null;
  36784. if (!isNil_default(targetOption == null ? void 0 : targetOption.value)) {
  36785. const options = optionsArray.value.filter((item) => item.value === targetOption.value);
  36786. if (options.length > 0) {
  36787. target2 = options[0].$el;
  36788. }
  36789. }
  36790. if (tooltipRef.value && target2) {
  36791. const menu = (_d = (_c = (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef) == null ? void 0 : _c.querySelector) == null ? void 0 : _d.call(_c, `.${nsSelect.be("dropdown", "wrap")}`);
  36792. if (menu) {
  36793. scrollIntoView(menu, target2);
  36794. }
  36795. }
  36796. (_e = scrollbarRef.value) == null ? void 0 : _e.handleScroll();
  36797. };
  36798. const onOptionCreate = (vm) => {
  36799. states.options.set(vm.value, vm);
  36800. states.cachedOptions.set(vm.value, vm);
  36801. };
  36802. const onOptionDestroy = (key, vm) => {
  36803. if (states.options.get(key) === vm) {
  36804. states.options.delete(key);
  36805. }
  36806. };
  36807. const popperRef = computed(() => {
  36808. var _a2, _b;
  36809. return (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
  36810. });
  36811. const handleMenuEnter = () => {
  36812. states.isBeforeHide = false;
  36813. nextTick(() => {
  36814. var _a2;
  36815. (_a2 = scrollbarRef.value) == null ? void 0 : _a2.update();
  36816. scrollToOption(states.selected);
  36817. });
  36818. };
  36819. const focus = () => {
  36820. var _a2;
  36821. (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
  36822. };
  36823. const blur = () => {
  36824. var _a2;
  36825. if (expanded.value) {
  36826. expanded.value = false;
  36827. nextTick(() => {
  36828. var _a22;
  36829. return (_a22 = inputRef.value) == null ? void 0 : _a22.blur();
  36830. });
  36831. return;
  36832. }
  36833. (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
  36834. };
  36835. const handleClearClick = (event) => {
  36836. deleteSelected(event);
  36837. };
  36838. const handleClickOutside = (event) => {
  36839. expanded.value = false;
  36840. if (isFocused.value) {
  36841. const _event2 = new FocusEvent("blur", event);
  36842. nextTick(() => handleBlur(_event2));
  36843. }
  36844. };
  36845. const handleEsc = () => {
  36846. if (states.inputValue.length > 0) {
  36847. states.inputValue = "";
  36848. } else {
  36849. expanded.value = false;
  36850. }
  36851. };
  36852. const toggleMenu = () => {
  36853. if (selectDisabled.value)
  36854. return;
  36855. if (isIOS)
  36856. states.inputHovering = true;
  36857. if (states.menuVisibleOnFocus) {
  36858. states.menuVisibleOnFocus = false;
  36859. } else {
  36860. expanded.value = !expanded.value;
  36861. }
  36862. };
  36863. const selectOption = () => {
  36864. if (!expanded.value) {
  36865. toggleMenu();
  36866. } else {
  36867. const option = optionsArray.value[states.hoveringIndex];
  36868. if (option && !option.isDisabled) {
  36869. handleOptionSelect(option);
  36870. }
  36871. }
  36872. };
  36873. const getValueKey = (item) => {
  36874. return isObject(item.value) ? get_default(item.value, props2.valueKey) : item.value;
  36875. };
  36876. const optionsAllDisabled = computed(() => optionsArray.value.filter((option) => option.visible).every((option) => option.isDisabled));
  36877. const showTagList = computed(() => {
  36878. if (!props2.multiple) {
  36879. return [];
  36880. }
  36881. return props2.collapseTags ? states.selected.slice(0, props2.maxCollapseTags) : states.selected;
  36882. });
  36883. const collapseTagList = computed(() => {
  36884. if (!props2.multiple) {
  36885. return [];
  36886. }
  36887. return props2.collapseTags ? states.selected.slice(props2.maxCollapseTags) : [];
  36888. });
  36889. const navigateOptions = (direction2) => {
  36890. if (!expanded.value) {
  36891. expanded.value = true;
  36892. return;
  36893. }
  36894. if (states.options.size === 0 || filteredOptionsCount.value === 0 || isComposing.value)
  36895. return;
  36896. if (!optionsAllDisabled.value) {
  36897. if (direction2 === "next") {
  36898. states.hoveringIndex++;
  36899. if (states.hoveringIndex === states.options.size) {
  36900. states.hoveringIndex = 0;
  36901. }
  36902. } else if (direction2 === "prev") {
  36903. states.hoveringIndex--;
  36904. if (states.hoveringIndex < 0) {
  36905. states.hoveringIndex = states.options.size - 1;
  36906. }
  36907. }
  36908. const option = optionsArray.value[states.hoveringIndex];
  36909. if (option.isDisabled || !option.visible) {
  36910. navigateOptions(direction2);
  36911. }
  36912. nextTick(() => scrollToOption(hoverOption.value));
  36913. }
  36914. };
  36915. const findFocusableIndex = (arr, start, step2, len) => {
  36916. for (let i = start; i >= 0 && i < len; i += step2) {
  36917. const obj = arr[i];
  36918. if (!(obj == null ? void 0 : obj.isDisabled) && (obj == null ? void 0 : obj.visible)) {
  36919. return i;
  36920. }
  36921. }
  36922. return null;
  36923. };
  36924. const focusOption = (targetIndex, mode) => {
  36925. var _a2;
  36926. const len = states.options.size;
  36927. if (len === 0)
  36928. return;
  36929. const start = clamp_default(targetIndex, 0, len - 1);
  36930. const options = optionsArray.value;
  36931. const direction2 = mode === "up" ? -1 : 1;
  36932. const newIndex = (_a2 = findFocusableIndex(options, start, direction2, len)) != null ? _a2 : findFocusableIndex(options, start - direction2, -direction2, len);
  36933. if (newIndex != null) {
  36934. states.hoveringIndex = newIndex;
  36935. nextTick(() => scrollToOption(hoverOption.value));
  36936. }
  36937. };
  36938. const handleKeydown = (e) => {
  36939. const code = getEventCode(e);
  36940. let isPreventDefault = true;
  36941. switch (code) {
  36942. case EVENT_CODE.up:
  36943. navigateOptions("prev");
  36944. break;
  36945. case EVENT_CODE.down:
  36946. navigateOptions("next");
  36947. break;
  36948. case EVENT_CODE.enter:
  36949. selectOption();
  36950. break;
  36951. case EVENT_CODE.esc:
  36952. handleEsc();
  36953. break;
  36954. case EVENT_CODE.backspace:
  36955. isPreventDefault = false;
  36956. deletePrevTag(e);
  36957. return;
  36958. case EVENT_CODE.home:
  36959. if (!expanded.value)
  36960. return;
  36961. focusOption(0, "down");
  36962. break;
  36963. case EVENT_CODE.end:
  36964. if (!expanded.value)
  36965. return;
  36966. focusOption(states.options.size - 1, "up");
  36967. break;
  36968. case EVENT_CODE.pageUp:
  36969. if (!expanded.value)
  36970. return;
  36971. focusOption(states.hoveringIndex - 10, "up");
  36972. break;
  36973. case EVENT_CODE.pageDown:
  36974. if (!expanded.value)
  36975. return;
  36976. focusOption(states.hoveringIndex + 10, "down");
  36977. break;
  36978. default:
  36979. isPreventDefault = false;
  36980. break;
  36981. }
  36982. if (isPreventDefault) {
  36983. e.preventDefault();
  36984. e.stopPropagation();
  36985. }
  36986. };
  36987. const getGapWidth = () => {
  36988. if (!selectionRef.value)
  36989. return 0;
  36990. const style = window.getComputedStyle(selectionRef.value);
  36991. return Number.parseFloat(style.gap || "6px");
  36992. };
  36993. const tagStyle = computed(() => {
  36994. const gapWidth = getGapWidth();
  36995. const inputSlotWidth = props2.filterable ? gapWidth + MINIMUM_INPUT_WIDTH : 0;
  36996. const maxWidth = collapseItemRef.value && props2.maxCollapseTags === 1 ? states.selectionWidth - states.collapseItemWidth - gapWidth - inputSlotWidth : states.selectionWidth - inputSlotWidth;
  36997. return { maxWidth: `${maxWidth}px` };
  36998. });
  36999. const collapseTagStyle = computed(() => {
  37000. return { maxWidth: `${states.selectionWidth}px` };
  37001. });
  37002. const popupScroll = (data) => {
  37003. emit("popup-scroll", data);
  37004. };
  37005. useResizeObserver(selectionRef, resetSelectionWidth);
  37006. useResizeObserver(wrapperRef, updateTooltip);
  37007. useResizeObserver(tagMenuRef, updateTagTooltip);
  37008. useResizeObserver(collapseItemRef, resetCollapseItemWidth);
  37009. let stop;
  37010. watch(() => dropdownMenuVisible.value, (newVal) => {
  37011. if (newVal) {
  37012. stop = useResizeObserver(menuRef, updateTooltip).stop;
  37013. } else {
  37014. stop == null ? void 0 : stop();
  37015. stop = void 0;
  37016. }
  37017. });
  37018. onMounted(() => {
  37019. setSelected();
  37020. });
  37021. return {
  37022. inputId,
  37023. contentId,
  37024. nsSelect,
  37025. nsInput,
  37026. states,
  37027. isFocused,
  37028. expanded,
  37029. optionsArray,
  37030. hoverOption,
  37031. selectSize,
  37032. filteredOptionsCount,
  37033. updateTooltip,
  37034. updateTagTooltip,
  37035. debouncedOnInputChange,
  37036. onInput,
  37037. deletePrevTag,
  37038. deleteTag,
  37039. deleteSelected,
  37040. handleOptionSelect,
  37041. scrollToOption,
  37042. hasModelValue,
  37043. shouldShowPlaceholder,
  37044. currentPlaceholder,
  37045. mouseEnterEventName,
  37046. needStatusIcon,
  37047. showClearBtn,
  37048. iconComponent,
  37049. iconReverse,
  37050. validateState,
  37051. validateIcon,
  37052. showNewOption,
  37053. updateOptions: updateOptions2,
  37054. collapseTagSize,
  37055. setSelected,
  37056. selectDisabled,
  37057. emptyText,
  37058. handleCompositionStart,
  37059. handleCompositionUpdate,
  37060. handleCompositionEnd,
  37061. handleKeydown,
  37062. onOptionCreate,
  37063. onOptionDestroy,
  37064. handleMenuEnter,
  37065. focus,
  37066. blur,
  37067. handleClearClick,
  37068. handleClickOutside,
  37069. handleEsc,
  37070. toggleMenu,
  37071. selectOption,
  37072. getValueKey,
  37073. navigateOptions,
  37074. dropdownMenuVisible,
  37075. showTagList,
  37076. collapseTagList,
  37077. popupScroll,
  37078. getOption,
  37079. tagStyle,
  37080. collapseTagStyle,
  37081. popperRef,
  37082. inputRef,
  37083. tooltipRef,
  37084. tagTooltipRef,
  37085. prefixRef,
  37086. suffixRef,
  37087. selectRef,
  37088. wrapperRef,
  37089. selectionRef,
  37090. scrollbarRef,
  37091. menuRef,
  37092. tagMenuRef,
  37093. collapseItemRef
  37094. };
  37095. };
  37096. // node_modules/element-plus/es/components/select/src/options.mjs
  37097. var ElOptions = defineComponent({
  37098. name: "ElOptions",
  37099. setup(_2, { slots }) {
  37100. const select = inject(selectKey);
  37101. let cachedValueList = [];
  37102. return () => {
  37103. var _a2, _b;
  37104. const children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
  37105. const valueList = [];
  37106. function filterOptions(children2) {
  37107. if (!isArray(children2))
  37108. return;
  37109. children2.forEach((item) => {
  37110. var _a22, _b2, _c, _d;
  37111. const name = (_a22 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a22.name;
  37112. if (name === "ElOptionGroup") {
  37113. filterOptions(!isString(item.children) && !isArray(item.children) && isFunction((_b2 = item.children) == null ? void 0 : _b2.default) ? (_c = item.children) == null ? void 0 : _c.default() : item.children);
  37114. } else if (name === "ElOption") {
  37115. valueList.push((_d = item.props) == null ? void 0 : _d.value);
  37116. } else if (isArray(item.children)) {
  37117. filterOptions(item.children);
  37118. }
  37119. });
  37120. }
  37121. if (children.length) {
  37122. filterOptions((_b = children[0]) == null ? void 0 : _b.children);
  37123. }
  37124. if (!isEqual_default(valueList, cachedValueList)) {
  37125. cachedValueList = valueList;
  37126. if (select) {
  37127. select.states.optionValues = valueList;
  37128. }
  37129. }
  37130. return children;
  37131. };
  37132. }
  37133. });
  37134. // node_modules/element-plus/es/components/select/src/select.mjs
  37135. var selectProps = buildProps({
  37136. name: String,
  37137. id: String,
  37138. modelValue: {
  37139. type: definePropType([
  37140. Array,
  37141. String,
  37142. Number,
  37143. Boolean,
  37144. Object
  37145. ]),
  37146. default: void 0
  37147. },
  37148. autocomplete: {
  37149. type: String,
  37150. default: "off"
  37151. },
  37152. automaticDropdown: Boolean,
  37153. size: useSizeProp,
  37154. effect: {
  37155. type: definePropType(String),
  37156. default: "light"
  37157. },
  37158. disabled: Boolean,
  37159. clearable: Boolean,
  37160. filterable: Boolean,
  37161. allowCreate: Boolean,
  37162. loading: Boolean,
  37163. popperClass: {
  37164. type: String,
  37165. default: ""
  37166. },
  37167. popperStyle: {
  37168. type: definePropType([String, Object])
  37169. },
  37170. popperOptions: {
  37171. type: definePropType(Object),
  37172. default: () => ({})
  37173. },
  37174. remote: Boolean,
  37175. debounce: {
  37176. type: Number,
  37177. default: 300
  37178. },
  37179. loadingText: String,
  37180. noMatchText: String,
  37181. noDataText: String,
  37182. remoteMethod: {
  37183. type: definePropType(Function)
  37184. },
  37185. filterMethod: {
  37186. type: definePropType(Function)
  37187. },
  37188. multiple: Boolean,
  37189. multipleLimit: {
  37190. type: Number,
  37191. default: 0
  37192. },
  37193. placeholder: {
  37194. type: String
  37195. },
  37196. defaultFirstOption: Boolean,
  37197. reserveKeyword: {
  37198. type: Boolean,
  37199. default: true
  37200. },
  37201. valueKey: {
  37202. type: String,
  37203. default: "value"
  37204. },
  37205. collapseTags: Boolean,
  37206. collapseTagsTooltip: Boolean,
  37207. maxCollapseTags: {
  37208. type: Number,
  37209. default: 1
  37210. },
  37211. teleported: useTooltipContentProps.teleported,
  37212. persistent: {
  37213. type: Boolean,
  37214. default: true
  37215. },
  37216. clearIcon: {
  37217. type: iconPropType,
  37218. default: circle_close_default
  37219. },
  37220. fitInputWidth: Boolean,
  37221. suffixIcon: {
  37222. type: iconPropType,
  37223. default: arrow_down_default
  37224. },
  37225. tagType: { ...tagProps.type, default: "info" },
  37226. tagEffect: { ...tagProps.effect, default: "light" },
  37227. validateEvent: {
  37228. type: Boolean,
  37229. default: true
  37230. },
  37231. remoteShowSuffix: Boolean,
  37232. showArrow: {
  37233. type: Boolean,
  37234. default: true
  37235. },
  37236. offset: {
  37237. type: Number,
  37238. default: 12
  37239. },
  37240. placement: {
  37241. type: definePropType(String),
  37242. values: Ee,
  37243. default: "bottom-start"
  37244. },
  37245. fallbackPlacements: {
  37246. type: definePropType(Array),
  37247. default: ["bottom-start", "top-start", "right", "left"]
  37248. },
  37249. tabindex: {
  37250. type: [String, Number],
  37251. default: 0
  37252. },
  37253. appendTo: useTooltipContentProps.appendTo,
  37254. options: {
  37255. type: definePropType(Array)
  37256. },
  37257. props: {
  37258. type: definePropType(Object),
  37259. default: () => defaultProps
  37260. },
  37261. ...useEmptyValuesProps,
  37262. ...useAriaProps(["ariaLabel"])
  37263. });
  37264. var selectEmits = {
  37265. [UPDATE_MODEL_EVENT]: (val) => true,
  37266. [CHANGE_EVENT]: (val) => true,
  37267. "popup-scroll": scrollbarEmits.scroll,
  37268. "remove-tag": (val) => true,
  37269. "visible-change": (visible) => true,
  37270. focus: (evt) => evt instanceof FocusEvent,
  37271. blur: (evt) => evt instanceof FocusEvent,
  37272. clear: () => true
  37273. };
  37274. // node_modules/element-plus/es/components/select/src/option-group.mjs
  37275. var _sfc_main101 = defineComponent({
  37276. name: "ElOptionGroup",
  37277. componentName: "ElOptionGroup",
  37278. props: {
  37279. label: String,
  37280. disabled: Boolean
  37281. },
  37282. setup(props2) {
  37283. const ns = useNamespace("select");
  37284. const groupRef = ref();
  37285. const instance = getCurrentInstance();
  37286. const children = ref([]);
  37287. provide(selectGroupKey, reactive({
  37288. ...toRefs(props2)
  37289. }));
  37290. const visible = computed(() => children.value.some((option) => option.visible === true));
  37291. const isOption = (node) => {
  37292. var _a2;
  37293. return node.type.name === "ElOption" && !!((_a2 = node.component) == null ? void 0 : _a2.proxy);
  37294. };
  37295. const flattedChildren2 = (node) => {
  37296. const nodes = castArray_default(node);
  37297. const children2 = [];
  37298. nodes.forEach((child) => {
  37299. var _a2;
  37300. if (!isVNode(child))
  37301. return;
  37302. if (isOption(child)) {
  37303. children2.push(child.component.proxy);
  37304. } else if (isArray(child.children) && child.children.length) {
  37305. children2.push(...flattedChildren2(child.children));
  37306. } else if ((_a2 = child.component) == null ? void 0 : _a2.subTree) {
  37307. children2.push(...flattedChildren2(child.component.subTree));
  37308. }
  37309. });
  37310. return children2;
  37311. };
  37312. const updateChildren = () => {
  37313. children.value = flattedChildren2(instance.subTree);
  37314. };
  37315. onMounted(() => {
  37316. updateChildren();
  37317. });
  37318. useMutationObserver(groupRef, updateChildren, {
  37319. attributes: true,
  37320. subtree: true,
  37321. childList: true
  37322. });
  37323. return {
  37324. groupRef,
  37325. visible,
  37326. ns
  37327. };
  37328. }
  37329. });
  37330. function _sfc_render13(_ctx, _cache, $props, $setup, $data, $options) {
  37331. return withDirectives((openBlock(), createElementBlock("ul", {
  37332. ref: "groupRef",
  37333. class: normalizeClass(_ctx.ns.be("group", "wrap"))
  37334. }, [
  37335. createBaseVNode("li", {
  37336. class: normalizeClass(_ctx.ns.be("group", "title"))
  37337. }, toDisplayString(_ctx.label), 3),
  37338. createBaseVNode("li", null, [
  37339. createBaseVNode("ul", {
  37340. class: normalizeClass(_ctx.ns.b("group"))
  37341. }, [
  37342. renderSlot(_ctx.$slots, "default")
  37343. ], 2)
  37344. ])
  37345. ], 2)), [
  37346. [vShow, _ctx.visible]
  37347. ]);
  37348. }
  37349. var OptionGroup = _export_sfc(_sfc_main101, [["render", _sfc_render13], ["__file", "option-group.vue"]]);
  37350. // node_modules/element-plus/es/components/select/src/select2.mjs
  37351. var COMPONENT_NAME16 = "ElSelect";
  37352. var _sfc_main102 = defineComponent({
  37353. name: COMPONENT_NAME16,
  37354. componentName: COMPONENT_NAME16,
  37355. components: {
  37356. ElSelectMenu,
  37357. ElOption: Option,
  37358. ElOptions,
  37359. ElOptionGroup: OptionGroup,
  37360. ElTag,
  37361. ElScrollbar,
  37362. ElTooltip,
  37363. ElIcon
  37364. },
  37365. directives: { ClickOutside },
  37366. props: selectProps,
  37367. emits: [
  37368. UPDATE_MODEL_EVENT,
  37369. CHANGE_EVENT,
  37370. "remove-tag",
  37371. "clear",
  37372. "visible-change",
  37373. "focus",
  37374. "blur",
  37375. "popup-scroll"
  37376. ],
  37377. setup(props2, { emit, slots }) {
  37378. const instance = getCurrentInstance();
  37379. const originalWarnHandler = instance.appContext.config.warnHandler;
  37380. instance.appContext.config.warnHandler = (...args) => {
  37381. if (!args[0] || args[0].includes('Slot "default" invoked outside of the render function')) {
  37382. return;
  37383. }
  37384. console.warn(...args);
  37385. };
  37386. const modelValue = computed(() => {
  37387. const { modelValue: rawModelValue, multiple } = props2;
  37388. const fallback = multiple ? [] : void 0;
  37389. if (isArray(rawModelValue)) {
  37390. return multiple ? rawModelValue : fallback;
  37391. }
  37392. return multiple ? fallback : rawModelValue;
  37393. });
  37394. const _props = reactive({
  37395. ...toRefs(props2),
  37396. modelValue
  37397. });
  37398. const API = useSelect(_props, emit);
  37399. const { calculatorRef, inputStyle } = useCalcInputWidth();
  37400. const { getLabel, getValue: getValue3, getOptions, getDisabled } = useProps(props2);
  37401. const getOptionProps = (option) => ({
  37402. label: getLabel(option),
  37403. value: getValue3(option),
  37404. disabled: getDisabled(option)
  37405. });
  37406. const flatTreeSelectData = (data) => {
  37407. return data.reduce((acc, item) => {
  37408. acc.push(item);
  37409. if (item.children && item.children.length > 0) {
  37410. acc.push(...flatTreeSelectData(item.children));
  37411. }
  37412. return acc;
  37413. }, []);
  37414. };
  37415. const manuallyRenderSlots = (vnodes) => {
  37416. const children = flattedChildren(vnodes || []);
  37417. children.forEach((item) => {
  37418. var _a2;
  37419. if (isObject(item) && (item.type.name === "ElOption" || item.type.name === "ElTree")) {
  37420. const _name = item.type.name;
  37421. if (_name === "ElTree") {
  37422. const treeData = ((_a2 = item.props) == null ? void 0 : _a2.data) || [];
  37423. const flatData = flatTreeSelectData(treeData);
  37424. flatData.forEach((treeItem) => {
  37425. treeItem.currentLabel = treeItem.label || (isObject(treeItem.value) ? "" : treeItem.value);
  37426. API.onOptionCreate(treeItem);
  37427. });
  37428. } else if (_name === "ElOption") {
  37429. const obj = { ...item.props };
  37430. obj.currentLabel = obj.label || (isObject(obj.value) ? "" : obj.value);
  37431. API.onOptionCreate(obj);
  37432. }
  37433. }
  37434. });
  37435. };
  37436. watch(() => {
  37437. var _a2;
  37438. return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots), modelValue.value];
  37439. }, () => {
  37440. var _a2;
  37441. if (props2.persistent || API.states.options.size > 0) {
  37442. return;
  37443. }
  37444. manuallyRenderSlots((_a2 = slots.default) == null ? void 0 : _a2.call(slots));
  37445. }, {
  37446. immediate: true
  37447. });
  37448. provide(selectKey, reactive({
  37449. props: _props,
  37450. states: API.states,
  37451. selectRef: API.selectRef,
  37452. optionsArray: API.optionsArray,
  37453. setSelected: API.setSelected,
  37454. handleOptionSelect: API.handleOptionSelect,
  37455. onOptionCreate: API.onOptionCreate,
  37456. onOptionDestroy: API.onOptionDestroy
  37457. }));
  37458. const selectedLabel = computed(() => {
  37459. if (!props2.multiple) {
  37460. return API.states.selectedLabel;
  37461. }
  37462. return API.states.selected.map((i) => i.currentLabel);
  37463. });
  37464. onBeforeUnmount(() => {
  37465. instance.appContext.config.warnHandler = originalWarnHandler;
  37466. });
  37467. return {
  37468. ...API,
  37469. modelValue,
  37470. selectedLabel,
  37471. calculatorRef,
  37472. inputStyle,
  37473. getLabel,
  37474. getValue: getValue3,
  37475. getOptions,
  37476. getDisabled,
  37477. getOptionProps
  37478. };
  37479. }
  37480. });
  37481. function _sfc_render14(_ctx, _cache) {
  37482. const _component_el_tag = resolveComponent("el-tag");
  37483. const _component_el_tooltip = resolveComponent("el-tooltip");
  37484. const _component_el_icon = resolveComponent("el-icon");
  37485. const _component_el_option = resolveComponent("el-option");
  37486. const _component_el_option_group = resolveComponent("el-option-group");
  37487. const _component_el_options = resolveComponent("el-options");
  37488. const _component_el_scrollbar = resolveComponent("el-scrollbar");
  37489. const _component_el_select_menu = resolveComponent("el-select-menu");
  37490. const _directive_click_outside = resolveDirective("click-outside");
  37491. return withDirectives((openBlock(), createElementBlock("div", {
  37492. ref: "selectRef",
  37493. class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
  37494. [toHandlerKey(_ctx.mouseEnterEventName)]: ($event) => _ctx.states.inputHovering = true,
  37495. onMouseleave: ($event) => _ctx.states.inputHovering = false
  37496. }, [
  37497. createVNode(_component_el_tooltip, {
  37498. ref: "tooltipRef",
  37499. visible: _ctx.dropdownMenuVisible,
  37500. placement: _ctx.placement,
  37501. teleported: _ctx.teleported,
  37502. "popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
  37503. "popper-style": _ctx.popperStyle,
  37504. "popper-options": _ctx.popperOptions,
  37505. "fallback-placements": _ctx.fallbackPlacements,
  37506. effect: _ctx.effect,
  37507. pure: "",
  37508. trigger: "click",
  37509. transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
  37510. "stop-popper-mouse-event": false,
  37511. "gpu-acceleration": false,
  37512. persistent: _ctx.persistent,
  37513. "append-to": _ctx.appendTo,
  37514. "show-arrow": _ctx.showArrow,
  37515. offset: _ctx.offset,
  37516. onBeforeShow: _ctx.handleMenuEnter,
  37517. onHide: ($event) => _ctx.states.isBeforeHide = false
  37518. }, {
  37519. default: withCtx(() => {
  37520. var _a2;
  37521. return [
  37522. createBaseVNode("div", {
  37523. ref: "wrapperRef",
  37524. class: normalizeClass([
  37525. _ctx.nsSelect.e("wrapper"),
  37526. _ctx.nsSelect.is("focused", _ctx.isFocused),
  37527. _ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
  37528. _ctx.nsSelect.is("filterable", _ctx.filterable),
  37529. _ctx.nsSelect.is("disabled", _ctx.selectDisabled)
  37530. ]),
  37531. onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
  37532. }, [
  37533. _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
  37534. key: 0,
  37535. ref: "prefixRef",
  37536. class: normalizeClass(_ctx.nsSelect.e("prefix"))
  37537. }, [
  37538. renderSlot(_ctx.$slots, "prefix")
  37539. ], 2)) : createCommentVNode("v-if", true),
  37540. createBaseVNode("div", {
  37541. ref: "selectionRef",
  37542. class: normalizeClass([
  37543. _ctx.nsSelect.e("selection"),
  37544. _ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.states.selected.length)
  37545. ])
  37546. }, [
  37547. _ctx.multiple ? renderSlot(_ctx.$slots, "tag", {
  37548. key: 0,
  37549. data: _ctx.states.selected,
  37550. deleteTag: _ctx.deleteTag,
  37551. selectDisabled: _ctx.selectDisabled
  37552. }, () => [
  37553. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
  37554. return openBlock(), createElementBlock("div", {
  37555. key: _ctx.getValueKey(item),
  37556. class: normalizeClass(_ctx.nsSelect.e("selected-item"))
  37557. }, [
  37558. createVNode(_component_el_tag, {
  37559. closable: !_ctx.selectDisabled && !item.isDisabled,
  37560. size: _ctx.collapseTagSize,
  37561. type: _ctx.tagType,
  37562. effect: _ctx.tagEffect,
  37563. "disable-transitions": "",
  37564. style: normalizeStyle(_ctx.tagStyle),
  37565. onClose: ($event) => _ctx.deleteTag($event, item)
  37566. }, {
  37567. default: withCtx(() => [
  37568. createBaseVNode("span", {
  37569. class: normalizeClass(_ctx.nsSelect.e("tags-text"))
  37570. }, [
  37571. renderSlot(_ctx.$slots, "label", {
  37572. index: item.index,
  37573. label: item.currentLabel,
  37574. value: item.value
  37575. }, () => [
  37576. createTextVNode(toDisplayString(item.currentLabel), 1)
  37577. ])
  37578. ], 2)
  37579. ]),
  37580. _: 2
  37581. }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
  37582. ], 2);
  37583. }), 128)),
  37584. _ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
  37585. key: 0,
  37586. ref: "tagTooltipRef",
  37587. disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
  37588. "fallback-placements": ["bottom", "top", "right", "left"],
  37589. effect: _ctx.effect,
  37590. placement: "bottom",
  37591. "popper-class": _ctx.popperClass,
  37592. "popper-style": _ctx.popperStyle,
  37593. teleported: _ctx.teleported
  37594. }, {
  37595. default: withCtx(() => [
  37596. createBaseVNode("div", {
  37597. ref: "collapseItemRef",
  37598. class: normalizeClass(_ctx.nsSelect.e("selected-item"))
  37599. }, [
  37600. createVNode(_component_el_tag, {
  37601. closable: false,
  37602. size: _ctx.collapseTagSize,
  37603. type: _ctx.tagType,
  37604. effect: _ctx.tagEffect,
  37605. "disable-transitions": "",
  37606. style: normalizeStyle(_ctx.collapseTagStyle)
  37607. }, {
  37608. default: withCtx(() => [
  37609. createBaseVNode("span", {
  37610. class: normalizeClass(_ctx.nsSelect.e("tags-text"))
  37611. }, " + " + toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags), 3)
  37612. ]),
  37613. _: 1
  37614. }, 8, ["size", "type", "effect", "style"])
  37615. ], 2)
  37616. ]),
  37617. content: withCtx(() => [
  37618. createBaseVNode("div", {
  37619. ref: "tagMenuRef",
  37620. class: normalizeClass(_ctx.nsSelect.e("selection"))
  37621. }, [
  37622. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (item) => {
  37623. return openBlock(), createElementBlock("div", {
  37624. key: _ctx.getValueKey(item),
  37625. class: normalizeClass(_ctx.nsSelect.e("selected-item"))
  37626. }, [
  37627. createVNode(_component_el_tag, {
  37628. class: "in-tooltip",
  37629. closable: !_ctx.selectDisabled && !item.isDisabled,
  37630. size: _ctx.collapseTagSize,
  37631. type: _ctx.tagType,
  37632. effect: _ctx.tagEffect,
  37633. "disable-transitions": "",
  37634. onClose: ($event) => _ctx.deleteTag($event, item)
  37635. }, {
  37636. default: withCtx(() => [
  37637. createBaseVNode("span", {
  37638. class: normalizeClass(_ctx.nsSelect.e("tags-text"))
  37639. }, [
  37640. renderSlot(_ctx.$slots, "label", {
  37641. index: item.index,
  37642. label: item.currentLabel,
  37643. value: item.value
  37644. }, () => [
  37645. createTextVNode(toDisplayString(item.currentLabel), 1)
  37646. ])
  37647. ], 2)
  37648. ]),
  37649. _: 2
  37650. }, 1032, ["closable", "size", "type", "effect", "onClose"])
  37651. ], 2);
  37652. }), 128))
  37653. ], 2)
  37654. ]),
  37655. _: 3
  37656. }, 8, ["disabled", "effect", "popper-class", "popper-style", "teleported"])) : createCommentVNode("v-if", true)
  37657. ]) : createCommentVNode("v-if", true),
  37658. createBaseVNode("div", {
  37659. class: normalizeClass([
  37660. _ctx.nsSelect.e("selected-item"),
  37661. _ctx.nsSelect.e("input-wrapper"),
  37662. _ctx.nsSelect.is("hidden", !_ctx.filterable)
  37663. ])
  37664. }, [
  37665. withDirectives(createBaseVNode("input", {
  37666. id: _ctx.inputId,
  37667. ref: "inputRef",
  37668. "onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
  37669. type: "text",
  37670. name: _ctx.name,
  37671. class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
  37672. disabled: _ctx.selectDisabled,
  37673. autocomplete: _ctx.autocomplete,
  37674. style: normalizeStyle(_ctx.inputStyle),
  37675. tabindex: _ctx.tabindex,
  37676. role: "combobox",
  37677. readonly: !_ctx.filterable,
  37678. spellcheck: "false",
  37679. "aria-activedescendant": ((_a2 = _ctx.hoverOption) == null ? void 0 : _a2.id) || "",
  37680. "aria-controls": _ctx.contentId,
  37681. "aria-expanded": _ctx.dropdownMenuVisible,
  37682. "aria-label": _ctx.ariaLabel,
  37683. "aria-autocomplete": "none",
  37684. "aria-haspopup": "listbox",
  37685. onKeydown: _ctx.handleKeydown,
  37686. onCompositionstart: _ctx.handleCompositionStart,
  37687. onCompositionupdate: _ctx.handleCompositionUpdate,
  37688. onCompositionend: _ctx.handleCompositionEnd,
  37689. onInput: _ctx.onInput,
  37690. onClick: withModifiers(_ctx.toggleMenu, ["stop"])
  37691. }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
  37692. [vModelText, _ctx.states.inputValue]
  37693. ]),
  37694. _ctx.filterable ? (openBlock(), createElementBlock("span", {
  37695. key: 0,
  37696. ref: "calculatorRef",
  37697. "aria-hidden": "true",
  37698. class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
  37699. textContent: toDisplayString(_ctx.states.inputValue)
  37700. }, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
  37701. ], 2),
  37702. _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
  37703. key: 1,
  37704. class: normalizeClass([
  37705. _ctx.nsSelect.e("selected-item"),
  37706. _ctx.nsSelect.e("placeholder"),
  37707. _ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
  37708. ])
  37709. }, [
  37710. _ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
  37711. key: 0,
  37712. index: _ctx.getOption(_ctx.modelValue).index,
  37713. label: _ctx.currentPlaceholder,
  37714. value: _ctx.modelValue
  37715. }, () => [
  37716. createBaseVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
  37717. ]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
  37718. ], 2)) : createCommentVNode("v-if", true)
  37719. ], 2),
  37720. createBaseVNode("div", {
  37721. ref: "suffixRef",
  37722. class: normalizeClass(_ctx.nsSelect.e("suffix"))
  37723. }, [
  37724. _ctx.iconComponent && !_ctx.showClearBtn ? (openBlock(), createBlock(_component_el_icon, {
  37725. key: 0,
  37726. class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
  37727. }, {
  37728. default: withCtx(() => [
  37729. (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
  37730. ]),
  37731. _: 1
  37732. }, 8, ["class"])) : createCommentVNode("v-if", true),
  37733. _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
  37734. key: 1,
  37735. class: normalizeClass([
  37736. _ctx.nsSelect.e("caret"),
  37737. _ctx.nsSelect.e("icon"),
  37738. _ctx.nsSelect.e("clear")
  37739. ]),
  37740. onClick: _ctx.handleClearClick
  37741. }, {
  37742. default: withCtx(() => [
  37743. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  37744. ]),
  37745. _: 1
  37746. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
  37747. _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
  37748. key: 2,
  37749. class: normalizeClass([
  37750. _ctx.nsInput.e("icon"),
  37751. _ctx.nsInput.e("validateIcon"),
  37752. _ctx.nsInput.is("loading", _ctx.validateState === "validating")
  37753. ])
  37754. }, {
  37755. default: withCtx(() => [
  37756. (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
  37757. ]),
  37758. _: 1
  37759. }, 8, ["class"])) : createCommentVNode("v-if", true)
  37760. ], 2)
  37761. ], 10, ["onClick"])
  37762. ];
  37763. }),
  37764. content: withCtx(() => [
  37765. createVNode(_component_el_select_menu, { ref: "menuRef" }, {
  37766. default: withCtx(() => [
  37767. _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
  37768. key: 0,
  37769. class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
  37770. onClick: withModifiers(() => {
  37771. }, ["stop"])
  37772. }, [
  37773. renderSlot(_ctx.$slots, "header")
  37774. ], 10, ["onClick"])) : createCommentVNode("v-if", true),
  37775. withDirectives(createVNode(_component_el_scrollbar, {
  37776. id: _ctx.contentId,
  37777. ref: "scrollbarRef",
  37778. tag: "ul",
  37779. "wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
  37780. "view-class": _ctx.nsSelect.be("dropdown", "list"),
  37781. class: normalizeClass([_ctx.nsSelect.is("empty", _ctx.filteredOptionsCount === 0)]),
  37782. role: "listbox",
  37783. "aria-label": _ctx.ariaLabel,
  37784. "aria-orientation": "vertical",
  37785. onScroll: _ctx.popupScroll
  37786. }, {
  37787. default: withCtx(() => [
  37788. _ctx.showNewOption ? (openBlock(), createBlock(_component_el_option, {
  37789. key: 0,
  37790. value: _ctx.states.inputValue,
  37791. created: true
  37792. }, null, 8, ["value"])) : createCommentVNode("v-if", true),
  37793. createVNode(_component_el_options, null, {
  37794. default: withCtx(() => [
  37795. renderSlot(_ctx.$slots, "default", {}, () => [
  37796. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
  37797. var _a2;
  37798. return openBlock(), createElementBlock(Fragment, { key: index }, [
  37799. ((_a2 = _ctx.getOptions(option)) == null ? void 0 : _a2.length) ? (openBlock(), createBlock(_component_el_option_group, {
  37800. key: 0,
  37801. label: _ctx.getLabel(option),
  37802. disabled: _ctx.getDisabled(option)
  37803. }, {
  37804. default: withCtx(() => [
  37805. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getOptions(option), (item) => {
  37806. return openBlock(), createBlock(_component_el_option, mergeProps({
  37807. key: _ctx.getValue(item)
  37808. }, _ctx.getOptionProps(item)), null, 16);
  37809. }), 128))
  37810. ]),
  37811. _: 2
  37812. }, 1032, ["label", "disabled"])) : (openBlock(), createBlock(_component_el_option, normalizeProps(mergeProps({ key: 1 }, _ctx.getOptionProps(option))), null, 16))
  37813. ], 64);
  37814. }), 128))
  37815. ])
  37816. ]),
  37817. _: 3
  37818. })
  37819. ]),
  37820. _: 3
  37821. }, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
  37822. [vShow, _ctx.states.options.size > 0 && !_ctx.loading]
  37823. ]),
  37824. _ctx.$slots.loading && _ctx.loading ? (openBlock(), createElementBlock("div", {
  37825. key: 1,
  37826. class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
  37827. }, [
  37828. renderSlot(_ctx.$slots, "loading")
  37829. ], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
  37830. key: 2,
  37831. class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
  37832. }, [
  37833. renderSlot(_ctx.$slots, "empty", {}, () => [
  37834. createBaseVNode("span", null, toDisplayString(_ctx.emptyText), 1)
  37835. ])
  37836. ], 2)) : createCommentVNode("v-if", true),
  37837. _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
  37838. key: 3,
  37839. class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
  37840. onClick: withModifiers(() => {
  37841. }, ["stop"])
  37842. }, [
  37843. renderSlot(_ctx.$slots, "footer")
  37844. ], 10, ["onClick"])) : createCommentVNode("v-if", true)
  37845. ]),
  37846. _: 3
  37847. }, 512)
  37848. ]),
  37849. _: 3
  37850. }, 8, ["visible", "placement", "teleported", "popper-class", "popper-style", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
  37851. ], 16, ["onMouseleave"])), [
  37852. [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
  37853. ]);
  37854. }
  37855. var Select = _export_sfc(_sfc_main102, [["render", _sfc_render14], ["__file", "select.vue"]]);
  37856. // node_modules/element-plus/es/components/select/index.mjs
  37857. var ElSelect = withInstall(Select, {
  37858. Option,
  37859. OptionGroup
  37860. });
  37861. var ElOption = withNoopInstall(Option);
  37862. var ElOptionGroup = withNoopInstall(OptionGroup);
  37863. // node_modules/element-plus/es/components/pagination/src/usePagination.mjs
  37864. var usePagination = () => inject(elPaginationKey, {});
  37865. // node_modules/element-plus/es/components/pagination/src/components/sizes.mjs
  37866. var paginationSizesProps = buildProps({
  37867. pageSize: {
  37868. type: Number,
  37869. required: true
  37870. },
  37871. pageSizes: {
  37872. type: definePropType(Array),
  37873. default: () => mutable([10, 20, 30, 40, 50, 100])
  37874. },
  37875. popperClass: {
  37876. type: String
  37877. },
  37878. popperStyle: {
  37879. type: definePropType([String, Object])
  37880. },
  37881. disabled: Boolean,
  37882. teleported: Boolean,
  37883. size: {
  37884. type: String,
  37885. values: componentSizes
  37886. },
  37887. appendSizeTo: String
  37888. });
  37889. // node_modules/element-plus/es/components/pagination/src/components/sizes2.mjs
  37890. var __default__78 = defineComponent({
  37891. name: "ElPaginationSizes"
  37892. });
  37893. var _sfc_main103 = defineComponent({
  37894. ...__default__78,
  37895. props: paginationSizesProps,
  37896. emits: ["page-size-change"],
  37897. setup(__props, { emit }) {
  37898. const props2 = __props;
  37899. const { t } = useLocale();
  37900. const ns = useNamespace("pagination");
  37901. const pagination = usePagination();
  37902. const innerPageSize = ref(props2.pageSize);
  37903. watch(() => props2.pageSizes, (newVal, oldVal) => {
  37904. if (isEqual_default(newVal, oldVal))
  37905. return;
  37906. if (isArray(newVal)) {
  37907. const pageSize = newVal.includes(props2.pageSize) ? props2.pageSize : props2.pageSizes[0];
  37908. emit("page-size-change", pageSize);
  37909. }
  37910. });
  37911. watch(() => props2.pageSize, (newVal) => {
  37912. innerPageSize.value = newVal;
  37913. });
  37914. const innerPageSizes = computed(() => props2.pageSizes);
  37915. function handleChange(val) {
  37916. var _a2;
  37917. if (val !== innerPageSize.value) {
  37918. innerPageSize.value = val;
  37919. (_a2 = pagination.handleSizeChange) == null ? void 0 : _a2.call(pagination, Number(val));
  37920. }
  37921. }
  37922. return (_ctx, _cache) => {
  37923. return openBlock(), createElementBlock("span", {
  37924. class: normalizeClass(unref(ns).e("sizes"))
  37925. }, [
  37926. createVNode(unref(ElSelect), {
  37927. "model-value": innerPageSize.value,
  37928. disabled: _ctx.disabled,
  37929. "popper-class": _ctx.popperClass,
  37930. "popper-style": _ctx.popperStyle,
  37931. size: _ctx.size,
  37932. teleported: _ctx.teleported,
  37933. "validate-event": false,
  37934. "append-to": _ctx.appendSizeTo,
  37935. onChange: handleChange
  37936. }, {
  37937. default: withCtx(() => [
  37938. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
  37939. return openBlock(), createBlock(unref(ElOption), {
  37940. key: item,
  37941. value: item,
  37942. label: item + unref(t)("el.pagination.pagesize")
  37943. }, null, 8, ["value", "label"]);
  37944. }), 128))
  37945. ]),
  37946. _: 1
  37947. }, 8, ["model-value", "disabled", "popper-class", "popper-style", "size", "teleported", "append-to"])
  37948. ], 2);
  37949. };
  37950. }
  37951. });
  37952. var Sizes = _export_sfc(_sfc_main103, [["__file", "sizes.vue"]]);
  37953. // node_modules/element-plus/es/components/pagination/src/components/jumper.mjs
  37954. var paginationJumperProps = buildProps({
  37955. size: {
  37956. type: String,
  37957. values: componentSizes
  37958. }
  37959. });
  37960. // node_modules/element-plus/es/components/pagination/src/components/jumper2.mjs
  37961. var __default__79 = defineComponent({
  37962. name: "ElPaginationJumper"
  37963. });
  37964. var _sfc_main104 = defineComponent({
  37965. ...__default__79,
  37966. props: paginationJumperProps,
  37967. setup(__props) {
  37968. const { t } = useLocale();
  37969. const ns = useNamespace("pagination");
  37970. const { pageCount, disabled, currentPage, changeEvent } = usePagination();
  37971. const userInput = ref();
  37972. const innerValue = computed(() => {
  37973. var _a2;
  37974. return (_a2 = userInput.value) != null ? _a2 : currentPage == null ? void 0 : currentPage.value;
  37975. });
  37976. function handleInput(val) {
  37977. userInput.value = val ? +val : "";
  37978. }
  37979. function handleChange(val) {
  37980. val = Math.trunc(+val);
  37981. changeEvent == null ? void 0 : changeEvent(val);
  37982. userInput.value = void 0;
  37983. }
  37984. return (_ctx, _cache) => {
  37985. return openBlock(), createElementBlock("span", {
  37986. class: normalizeClass(unref(ns).e("jump")),
  37987. disabled: unref(disabled)
  37988. }, [
  37989. createBaseVNode("span", {
  37990. class: normalizeClass([unref(ns).e("goto")])
  37991. }, toDisplayString(unref(t)("el.pagination.goto")), 3),
  37992. createVNode(unref(ElInput), {
  37993. size: _ctx.size,
  37994. class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
  37995. min: 1,
  37996. max: unref(pageCount),
  37997. disabled: unref(disabled),
  37998. "model-value": unref(innerValue),
  37999. "validate-event": false,
  38000. "aria-label": unref(t)("el.pagination.page"),
  38001. type: "number",
  38002. "onUpdate:modelValue": handleInput,
  38003. onChange: handleChange
  38004. }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
  38005. createBaseVNode("span", {
  38006. class: normalizeClass([unref(ns).e("classifier")])
  38007. }, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
  38008. ], 10, ["disabled"]);
  38009. };
  38010. }
  38011. });
  38012. var Jumper = _export_sfc(_sfc_main104, [["__file", "jumper.vue"]]);
  38013. // node_modules/element-plus/es/components/pagination/src/components/total.mjs
  38014. var paginationTotalProps = buildProps({
  38015. total: {
  38016. type: Number,
  38017. default: 1e3
  38018. }
  38019. });
  38020. // node_modules/element-plus/es/components/pagination/src/components/total2.mjs
  38021. var __default__80 = defineComponent({
  38022. name: "ElPaginationTotal"
  38023. });
  38024. var _sfc_main105 = defineComponent({
  38025. ...__default__80,
  38026. props: paginationTotalProps,
  38027. setup(__props) {
  38028. const { t } = useLocale();
  38029. const ns = useNamespace("pagination");
  38030. const { disabled } = usePagination();
  38031. return (_ctx, _cache) => {
  38032. return openBlock(), createElementBlock("span", {
  38033. class: normalizeClass(unref(ns).e("total")),
  38034. disabled: unref(disabled)
  38035. }, toDisplayString(unref(t)("el.pagination.total", {
  38036. total: _ctx.total
  38037. })), 11, ["disabled"]);
  38038. };
  38039. }
  38040. });
  38041. var Total = _export_sfc(_sfc_main105, [["__file", "total.vue"]]);
  38042. // node_modules/element-plus/es/components/pagination/src/components/pager.mjs
  38043. var paginationPagerProps = buildProps({
  38044. currentPage: {
  38045. type: Number,
  38046. default: 1
  38047. },
  38048. pageCount: {
  38049. type: Number,
  38050. required: true
  38051. },
  38052. pagerCount: {
  38053. type: Number,
  38054. default: 7
  38055. },
  38056. disabled: Boolean
  38057. });
  38058. // node_modules/element-plus/es/components/pagination/src/components/pager2.mjs
  38059. var __default__81 = defineComponent({
  38060. name: "ElPaginationPager"
  38061. });
  38062. var _sfc_main106 = defineComponent({
  38063. ...__default__81,
  38064. props: paginationPagerProps,
  38065. emits: [CHANGE_EVENT],
  38066. setup(__props, { emit }) {
  38067. const props2 = __props;
  38068. const nsPager = useNamespace("pager");
  38069. const nsIcon = useNamespace("icon");
  38070. const { t } = useLocale();
  38071. const showPrevMore = ref(false);
  38072. const showNextMore = ref(false);
  38073. const quickPrevHover = ref(false);
  38074. const quickNextHover = ref(false);
  38075. const quickPrevFocus = ref(false);
  38076. const quickNextFocus = ref(false);
  38077. const pagers = computed(() => {
  38078. const pagerCount = props2.pagerCount;
  38079. const halfPagerCount = (pagerCount - 1) / 2;
  38080. const currentPage = Number(props2.currentPage);
  38081. const pageCount = Number(props2.pageCount);
  38082. let showPrevMore2 = false;
  38083. let showNextMore2 = false;
  38084. if (pageCount > pagerCount) {
  38085. if (currentPage > pagerCount - halfPagerCount) {
  38086. showPrevMore2 = true;
  38087. }
  38088. if (currentPage < pageCount - halfPagerCount) {
  38089. showNextMore2 = true;
  38090. }
  38091. }
  38092. const array4 = [];
  38093. if (showPrevMore2 && !showNextMore2) {
  38094. const startPage = pageCount - (pagerCount - 2);
  38095. for (let i = startPage; i < pageCount; i++) {
  38096. array4.push(i);
  38097. }
  38098. } else if (!showPrevMore2 && showNextMore2) {
  38099. for (let i = 2; i < pagerCount; i++) {
  38100. array4.push(i);
  38101. }
  38102. } else if (showPrevMore2 && showNextMore2) {
  38103. const offset3 = Math.floor(pagerCount / 2) - 1;
  38104. for (let i = currentPage - offset3; i <= currentPage + offset3; i++) {
  38105. array4.push(i);
  38106. }
  38107. } else {
  38108. for (let i = 2; i < pageCount; i++) {
  38109. array4.push(i);
  38110. }
  38111. }
  38112. return array4;
  38113. });
  38114. const prevMoreKls = computed(() => [
  38115. "more",
  38116. "btn-quickprev",
  38117. nsIcon.b(),
  38118. nsPager.is("disabled", props2.disabled)
  38119. ]);
  38120. const nextMoreKls = computed(() => [
  38121. "more",
  38122. "btn-quicknext",
  38123. nsIcon.b(),
  38124. nsPager.is("disabled", props2.disabled)
  38125. ]);
  38126. const tabindex = computed(() => props2.disabled ? -1 : 0);
  38127. watch(() => [props2.pageCount, props2.pagerCount, props2.currentPage], ([pageCount, pagerCount, currentPage]) => {
  38128. const halfPagerCount = (pagerCount - 1) / 2;
  38129. let showPrev = false;
  38130. let showNext = false;
  38131. if (pageCount > pagerCount) {
  38132. showPrev = currentPage > pagerCount - halfPagerCount;
  38133. showNext = currentPage < pageCount - halfPagerCount;
  38134. }
  38135. quickPrevHover.value && (quickPrevHover.value = showPrev);
  38136. quickNextHover.value && (quickNextHover.value = showNext);
  38137. showPrevMore.value = showPrev;
  38138. showNextMore.value = showNext;
  38139. }, { immediate: true });
  38140. function onMouseEnter(forward = false) {
  38141. if (props2.disabled)
  38142. return;
  38143. if (forward) {
  38144. quickPrevHover.value = true;
  38145. } else {
  38146. quickNextHover.value = true;
  38147. }
  38148. }
  38149. function onFocus(forward = false) {
  38150. if (forward) {
  38151. quickPrevFocus.value = true;
  38152. } else {
  38153. quickNextFocus.value = true;
  38154. }
  38155. }
  38156. function onEnter(e) {
  38157. const target2 = e.target;
  38158. if (target2.tagName.toLowerCase() === "li" && Array.from(target2.classList).includes("number")) {
  38159. const newPage = Number(target2.textContent);
  38160. if (newPage !== props2.currentPage) {
  38161. emit(CHANGE_EVENT, newPage);
  38162. }
  38163. } else if (target2.tagName.toLowerCase() === "li" && Array.from(target2.classList).includes("more")) {
  38164. onPagerClick(e);
  38165. }
  38166. }
  38167. function onPagerClick(event) {
  38168. const target2 = event.target;
  38169. if (target2.tagName.toLowerCase() === "ul" || props2.disabled) {
  38170. return;
  38171. }
  38172. let newPage = Number(target2.textContent);
  38173. const pageCount = props2.pageCount;
  38174. const currentPage = props2.currentPage;
  38175. const pagerCountOffset = props2.pagerCount - 2;
  38176. if (target2.className.includes("more")) {
  38177. if (target2.className.includes("quickprev")) {
  38178. newPage = currentPage - pagerCountOffset;
  38179. } else if (target2.className.includes("quicknext")) {
  38180. newPage = currentPage + pagerCountOffset;
  38181. }
  38182. }
  38183. if (!Number.isNaN(+newPage)) {
  38184. if (newPage < 1) {
  38185. newPage = 1;
  38186. }
  38187. if (newPage > pageCount) {
  38188. newPage = pageCount;
  38189. }
  38190. }
  38191. if (newPage !== currentPage) {
  38192. emit(CHANGE_EVENT, newPage);
  38193. }
  38194. }
  38195. return (_ctx, _cache) => {
  38196. return openBlock(), createElementBlock("ul", {
  38197. class: normalizeClass(unref(nsPager).b()),
  38198. onClick: onPagerClick,
  38199. onKeyup: withKeys(onEnter, ["enter"])
  38200. }, [
  38201. _ctx.pageCount > 0 ? (openBlock(), createElementBlock("li", {
  38202. key: 0,
  38203. class: normalizeClass([[
  38204. unref(nsPager).is("active", _ctx.currentPage === 1),
  38205. unref(nsPager).is("disabled", _ctx.disabled)
  38206. ], "number"]),
  38207. "aria-current": _ctx.currentPage === 1,
  38208. "aria-label": unref(t)("el.pagination.currentPage", { pager: 1 }),
  38209. tabindex: unref(tabindex)
  38210. }, " 1 ", 10, ["aria-current", "aria-label", "tabindex"])) : createCommentVNode("v-if", true),
  38211. showPrevMore.value ? (openBlock(), createElementBlock("li", {
  38212. key: 1,
  38213. class: normalizeClass(unref(prevMoreKls)),
  38214. tabindex: unref(tabindex),
  38215. "aria-label": unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
  38216. onMouseenter: ($event) => onMouseEnter(true),
  38217. onMouseleave: ($event) => quickPrevHover.value = false,
  38218. onFocus: ($event) => onFocus(true),
  38219. onBlur: ($event) => quickPrevFocus.value = false
  38220. }, [
  38221. (quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(d_arrow_left_default), { key: 0 })) : (openBlock(), createBlock(unref(more_filled_default), { key: 1 }))
  38222. ], 42, ["tabindex", "aria-label", "onMouseenter", "onMouseleave", "onFocus", "onBlur"])) : createCommentVNode("v-if", true),
  38223. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagers), (pager) => {
  38224. return openBlock(), createElementBlock("li", {
  38225. key: pager,
  38226. class: normalizeClass([[
  38227. unref(nsPager).is("active", _ctx.currentPage === pager),
  38228. unref(nsPager).is("disabled", _ctx.disabled)
  38229. ], "number"]),
  38230. "aria-current": _ctx.currentPage === pager,
  38231. "aria-label": unref(t)("el.pagination.currentPage", { pager }),
  38232. tabindex: unref(tabindex)
  38233. }, toDisplayString(pager), 11, ["aria-current", "aria-label", "tabindex"]);
  38234. }), 128)),
  38235. showNextMore.value ? (openBlock(), createElementBlock("li", {
  38236. key: 2,
  38237. class: normalizeClass(unref(nextMoreKls)),
  38238. tabindex: unref(tabindex),
  38239. "aria-label": unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
  38240. onMouseenter: ($event) => onMouseEnter(),
  38241. onMouseleave: ($event) => quickNextHover.value = false,
  38242. onFocus: ($event) => onFocus(),
  38243. onBlur: ($event) => quickNextFocus.value = false
  38244. }, [
  38245. (quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(d_arrow_right_default), { key: 0 })) : (openBlock(), createBlock(unref(more_filled_default), { key: 1 }))
  38246. ], 42, ["tabindex", "aria-label", "onMouseenter", "onMouseleave", "onFocus", "onBlur"])) : createCommentVNode("v-if", true),
  38247. _ctx.pageCount > 1 ? (openBlock(), createElementBlock("li", {
  38248. key: 3,
  38249. class: normalizeClass([[
  38250. unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount),
  38251. unref(nsPager).is("disabled", _ctx.disabled)
  38252. ], "number"]),
  38253. "aria-current": _ctx.currentPage === _ctx.pageCount,
  38254. "aria-label": unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
  38255. tabindex: unref(tabindex)
  38256. }, toDisplayString(_ctx.pageCount), 11, ["aria-current", "aria-label", "tabindex"])) : createCommentVNode("v-if", true)
  38257. ], 42, ["onKeyup"]);
  38258. };
  38259. }
  38260. });
  38261. var Pager = _export_sfc(_sfc_main106, [["__file", "pager.vue"]]);
  38262. // node_modules/element-plus/es/components/pagination/src/pagination.mjs
  38263. var isAbsent = (v2) => typeof v2 !== "number";
  38264. var paginationProps = buildProps({
  38265. pageSize: Number,
  38266. defaultPageSize: Number,
  38267. total: Number,
  38268. pageCount: Number,
  38269. pagerCount: {
  38270. type: Number,
  38271. validator: (value) => {
  38272. return isNumber2(value) && Math.trunc(value) === value && value > 4 && value < 22 && value % 2 === 1;
  38273. },
  38274. default: 7
  38275. },
  38276. currentPage: Number,
  38277. defaultCurrentPage: Number,
  38278. layout: {
  38279. type: String,
  38280. default: ["prev", "pager", "next", "jumper", "->", "total"].join(", ")
  38281. },
  38282. pageSizes: {
  38283. type: definePropType(Array),
  38284. default: () => mutable([10, 20, 30, 40, 50, 100])
  38285. },
  38286. popperClass: {
  38287. type: String,
  38288. default: ""
  38289. },
  38290. popperStyle: {
  38291. type: definePropType([String, Object])
  38292. },
  38293. prevText: {
  38294. type: String,
  38295. default: ""
  38296. },
  38297. prevIcon: {
  38298. type: iconPropType,
  38299. default: () => arrow_left_default
  38300. },
  38301. nextText: {
  38302. type: String,
  38303. default: ""
  38304. },
  38305. nextIcon: {
  38306. type: iconPropType,
  38307. default: () => arrow_right_default
  38308. },
  38309. teleported: {
  38310. type: Boolean,
  38311. default: true
  38312. },
  38313. small: Boolean,
  38314. size: useSizeProp,
  38315. background: Boolean,
  38316. disabled: Boolean,
  38317. hideOnSinglePage: Boolean,
  38318. appendSizeTo: String
  38319. });
  38320. var paginationEmits = {
  38321. "update:current-page": (val) => isNumber2(val),
  38322. "update:page-size": (val) => isNumber2(val),
  38323. "size-change": (val) => isNumber2(val),
  38324. change: (currentPage, pageSize) => isNumber2(currentPage) && isNumber2(pageSize),
  38325. "current-change": (val) => isNumber2(val),
  38326. "prev-click": (val) => isNumber2(val),
  38327. "next-click": (val) => isNumber2(val)
  38328. };
  38329. var componentName = "ElPagination";
  38330. var Pagination = defineComponent({
  38331. name: componentName,
  38332. props: paginationProps,
  38333. emits: paginationEmits,
  38334. setup(props2, { emit, slots }) {
  38335. const { t } = useLocale();
  38336. const ns = useNamespace("pagination");
  38337. const vnodeProps = getCurrentInstance().vnode.props || {};
  38338. const _globalSize = useGlobalSize();
  38339. const _size = computed(() => {
  38340. var _a2;
  38341. return props2.small ? "small" : (_a2 = props2.size) != null ? _a2 : _globalSize.value;
  38342. });
  38343. useDeprecated({
  38344. from: "small",
  38345. replacement: "size",
  38346. version: "3.0.0",
  38347. scope: "el-pagination",
  38348. ref: "https://element-plus.org/zh-CN/component/pagination.html"
  38349. }, computed(() => !!props2.small));
  38350. const hasCurrentPageListener = "onUpdate:currentPage" in vnodeProps || "onUpdate:current-page" in vnodeProps || "onCurrentChange" in vnodeProps;
  38351. const hasPageSizeListener = "onUpdate:pageSize" in vnodeProps || "onUpdate:page-size" in vnodeProps || "onSizeChange" in vnodeProps;
  38352. const assertValidUsage = computed(() => {
  38353. if (isAbsent(props2.total) && isAbsent(props2.pageCount))
  38354. return false;
  38355. if (!isAbsent(props2.currentPage) && !hasCurrentPageListener)
  38356. return false;
  38357. if (props2.layout.includes("sizes")) {
  38358. if (!isAbsent(props2.pageCount)) {
  38359. if (!hasPageSizeListener)
  38360. return false;
  38361. } else if (!isAbsent(props2.total)) {
  38362. if (!isAbsent(props2.pageSize)) {
  38363. if (!hasPageSizeListener) {
  38364. return false;
  38365. }
  38366. }
  38367. }
  38368. }
  38369. return true;
  38370. });
  38371. const innerPageSize = ref(isAbsent(props2.defaultPageSize) ? 10 : props2.defaultPageSize);
  38372. const innerCurrentPage = ref(isAbsent(props2.defaultCurrentPage) ? 1 : props2.defaultCurrentPage);
  38373. const pageSizeBridge = computed({
  38374. get() {
  38375. return isAbsent(props2.pageSize) ? innerPageSize.value : props2.pageSize;
  38376. },
  38377. set(v2) {
  38378. if (isAbsent(props2.pageSize)) {
  38379. innerPageSize.value = v2;
  38380. }
  38381. if (hasPageSizeListener) {
  38382. emit("update:page-size", v2);
  38383. emit("size-change", v2);
  38384. }
  38385. }
  38386. });
  38387. const pageCountBridge = computed(() => {
  38388. let pageCount = 0;
  38389. if (!isAbsent(props2.pageCount)) {
  38390. pageCount = props2.pageCount;
  38391. } else if (!isAbsent(props2.total)) {
  38392. pageCount = Math.max(1, Math.ceil(props2.total / pageSizeBridge.value));
  38393. }
  38394. return pageCount;
  38395. });
  38396. const currentPageBridge = computed({
  38397. get() {
  38398. return isAbsent(props2.currentPage) ? innerCurrentPage.value : props2.currentPage;
  38399. },
  38400. set(v2) {
  38401. let newCurrentPage = v2;
  38402. if (v2 < 1) {
  38403. newCurrentPage = 1;
  38404. } else if (v2 > pageCountBridge.value) {
  38405. newCurrentPage = pageCountBridge.value;
  38406. }
  38407. if (isAbsent(props2.currentPage)) {
  38408. innerCurrentPage.value = newCurrentPage;
  38409. }
  38410. if (hasCurrentPageListener) {
  38411. emit("update:current-page", newCurrentPage);
  38412. emit("current-change", newCurrentPage);
  38413. }
  38414. }
  38415. });
  38416. watch(pageCountBridge, (val) => {
  38417. if (currentPageBridge.value > val)
  38418. currentPageBridge.value = val;
  38419. });
  38420. watch([currentPageBridge, pageSizeBridge], (value) => {
  38421. emit(CHANGE_EVENT, ...value);
  38422. }, { flush: "post" });
  38423. function handleCurrentChange2(val) {
  38424. currentPageBridge.value = val;
  38425. }
  38426. function handleSizeChange(val) {
  38427. pageSizeBridge.value = val;
  38428. const newPageCount = pageCountBridge.value;
  38429. if (currentPageBridge.value > newPageCount) {
  38430. currentPageBridge.value = newPageCount;
  38431. }
  38432. }
  38433. function prev() {
  38434. if (props2.disabled)
  38435. return;
  38436. currentPageBridge.value -= 1;
  38437. emit("prev-click", currentPageBridge.value);
  38438. }
  38439. function next() {
  38440. if (props2.disabled)
  38441. return;
  38442. currentPageBridge.value += 1;
  38443. emit("next-click", currentPageBridge.value);
  38444. }
  38445. function addClass2(element, cls) {
  38446. if (element) {
  38447. if (!element.props) {
  38448. element.props = {};
  38449. }
  38450. element.props.class = [element.props.class, cls].join(" ");
  38451. }
  38452. }
  38453. provide(elPaginationKey, {
  38454. pageCount: pageCountBridge,
  38455. disabled: computed(() => props2.disabled),
  38456. currentPage: currentPageBridge,
  38457. changeEvent: handleCurrentChange2,
  38458. handleSizeChange
  38459. });
  38460. return () => {
  38461. var _a2, _b;
  38462. if (!assertValidUsage.value) {
  38463. debugWarn(componentName, t("el.pagination.deprecationWarning"));
  38464. return null;
  38465. }
  38466. if (!props2.layout)
  38467. return null;
  38468. if (props2.hideOnSinglePage && pageCountBridge.value <= 1)
  38469. return null;
  38470. const rootChildren = [];
  38471. const rightWrapperChildren = [];
  38472. const rightWrapperRoot = h("div", { class: ns.e("rightwrapper") }, rightWrapperChildren);
  38473. const TEMPLATE_MAP = {
  38474. prev: h(Prev, {
  38475. disabled: props2.disabled,
  38476. currentPage: currentPageBridge.value,
  38477. prevText: props2.prevText,
  38478. prevIcon: props2.prevIcon,
  38479. onClick: prev
  38480. }),
  38481. jumper: h(Jumper, {
  38482. size: _size.value
  38483. }),
  38484. pager: h(Pager, {
  38485. currentPage: currentPageBridge.value,
  38486. pageCount: pageCountBridge.value,
  38487. pagerCount: props2.pagerCount,
  38488. onChange: handleCurrentChange2,
  38489. disabled: props2.disabled
  38490. }),
  38491. next: h(Next, {
  38492. disabled: props2.disabled,
  38493. currentPage: currentPageBridge.value,
  38494. pageCount: pageCountBridge.value,
  38495. nextText: props2.nextText,
  38496. nextIcon: props2.nextIcon,
  38497. onClick: next
  38498. }),
  38499. sizes: h(Sizes, {
  38500. pageSize: pageSizeBridge.value,
  38501. pageSizes: props2.pageSizes,
  38502. popperClass: props2.popperClass,
  38503. popperStyle: props2.popperStyle,
  38504. disabled: props2.disabled,
  38505. teleported: props2.teleported,
  38506. size: _size.value,
  38507. appendSizeTo: props2.appendSizeTo
  38508. }),
  38509. slot: (_b = (_a2 = slots == null ? void 0 : slots.default) == null ? void 0 : _a2.call(slots)) != null ? _b : null,
  38510. total: h(Total, { total: isAbsent(props2.total) ? 0 : props2.total })
  38511. };
  38512. const components = props2.layout.split(",").map((item) => item.trim());
  38513. let haveRightWrapper = false;
  38514. components.forEach((c2) => {
  38515. if (c2 === "->") {
  38516. haveRightWrapper = true;
  38517. return;
  38518. }
  38519. if (!haveRightWrapper) {
  38520. rootChildren.push(TEMPLATE_MAP[c2]);
  38521. } else {
  38522. rightWrapperChildren.push(TEMPLATE_MAP[c2]);
  38523. }
  38524. });
  38525. addClass2(rootChildren[0], ns.is("first"));
  38526. addClass2(rootChildren[rootChildren.length - 1], ns.is("last"));
  38527. if (haveRightWrapper && rightWrapperChildren.length > 0) {
  38528. addClass2(rightWrapperChildren[0], ns.is("first"));
  38529. addClass2(rightWrapperChildren[rightWrapperChildren.length - 1], ns.is("last"));
  38530. rootChildren.push(rightWrapperRoot);
  38531. }
  38532. return h("div", {
  38533. class: [
  38534. ns.b(),
  38535. ns.is("background", props2.background),
  38536. ns.m(_size.value)
  38537. ]
  38538. }, rootChildren);
  38539. };
  38540. }
  38541. });
  38542. // node_modules/element-plus/es/components/pagination/index.mjs
  38543. var ElPagination = withInstall(Pagination);
  38544. // node_modules/element-plus/es/components/popconfirm/src/popconfirm.mjs
  38545. var popconfirmProps = buildProps({
  38546. title: String,
  38547. confirmButtonText: String,
  38548. cancelButtonText: String,
  38549. confirmButtonType: {
  38550. type: String,
  38551. values: buttonTypes,
  38552. default: "primary"
  38553. },
  38554. cancelButtonType: {
  38555. type: String,
  38556. values: buttonTypes,
  38557. default: "text"
  38558. },
  38559. icon: {
  38560. type: iconPropType,
  38561. default: () => question_filled_default
  38562. },
  38563. iconColor: {
  38564. type: String,
  38565. default: "#f90"
  38566. },
  38567. hideIcon: Boolean,
  38568. hideAfter: {
  38569. type: Number,
  38570. default: 200
  38571. },
  38572. effect: {
  38573. ...useTooltipContentProps.effect,
  38574. default: "light"
  38575. },
  38576. teleported: useTooltipContentProps.teleported,
  38577. persistent: useTooltipContentProps.persistent,
  38578. width: {
  38579. type: [String, Number],
  38580. default: 150
  38581. },
  38582. virtualTriggering: useTooltipTriggerProps.virtualTriggering,
  38583. virtualRef: useTooltipTriggerProps.virtualRef
  38584. });
  38585. var popconfirmEmits = {
  38586. confirm: (e) => e instanceof MouseEvent,
  38587. cancel: (e) => e instanceof MouseEvent
  38588. };
  38589. // node_modules/element-plus/es/components/popconfirm/src/popconfirm2.mjs
  38590. var __default__82 = defineComponent({
  38591. name: "ElPopconfirm"
  38592. });
  38593. var _sfc_main107 = defineComponent({
  38594. ...__default__82,
  38595. props: popconfirmProps,
  38596. emits: popconfirmEmits,
  38597. setup(__props, { expose, emit }) {
  38598. const props2 = __props;
  38599. const { t } = useLocale();
  38600. const ns = useNamespace("popconfirm");
  38601. const tooltipRef = ref();
  38602. const rootRef = ref();
  38603. const popperRef = computed(() => {
  38604. var _a2;
  38605. return (_a2 = unref(tooltipRef)) == null ? void 0 : _a2.popperRef;
  38606. });
  38607. const showPopper = () => {
  38608. var _a2, _b;
  38609. (_b = (_a2 = rootRef.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
  38610. };
  38611. const hidePopper = () => {
  38612. var _a2, _b;
  38613. (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.onClose) == null ? void 0 : _b.call(_a2);
  38614. };
  38615. const style = computed(() => {
  38616. return {
  38617. width: addUnit(props2.width)
  38618. };
  38619. });
  38620. const confirm = (e) => {
  38621. emit("confirm", e);
  38622. hidePopper();
  38623. };
  38624. const cancel = (e) => {
  38625. emit("cancel", e);
  38626. hidePopper();
  38627. };
  38628. const finalConfirmButtonText = computed(() => props2.confirmButtonText || t("el.popconfirm.confirmButtonText"));
  38629. const finalCancelButtonText = computed(() => props2.cancelButtonText || t("el.popconfirm.cancelButtonText"));
  38630. expose({
  38631. popperRef,
  38632. hide: hidePopper
  38633. });
  38634. return (_ctx, _cache) => {
  38635. return openBlock(), createBlock(unref(ElTooltip), mergeProps({
  38636. ref_key: "tooltipRef",
  38637. ref: tooltipRef,
  38638. trigger: "click",
  38639. effect: _ctx.effect
  38640. }, _ctx.$attrs, {
  38641. "popper-class": `${unref(ns).namespace.value}-popover`,
  38642. "popper-style": unref(style),
  38643. teleported: _ctx.teleported,
  38644. "fallback-placements": ["bottom", "top", "right", "left"],
  38645. "hide-after": _ctx.hideAfter,
  38646. persistent: _ctx.persistent,
  38647. loop: "",
  38648. onShow: showPopper
  38649. }), {
  38650. content: withCtx(() => [
  38651. createBaseVNode("div", {
  38652. ref_key: "rootRef",
  38653. ref: rootRef,
  38654. tabindex: "-1",
  38655. class: normalizeClass(unref(ns).b())
  38656. }, [
  38657. createBaseVNode("div", {
  38658. class: normalizeClass(unref(ns).e("main"))
  38659. }, [
  38660. !_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
  38661. key: 0,
  38662. class: normalizeClass(unref(ns).e("icon")),
  38663. style: normalizeStyle({ color: _ctx.iconColor })
  38664. }, {
  38665. default: withCtx(() => [
  38666. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  38667. ]),
  38668. _: 1
  38669. }, 8, ["class", "style"])) : createCommentVNode("v-if", true),
  38670. createTextVNode(" " + toDisplayString(_ctx.title), 1)
  38671. ], 2),
  38672. createBaseVNode("div", {
  38673. class: normalizeClass(unref(ns).e("action"))
  38674. }, [
  38675. renderSlot(_ctx.$slots, "actions", {
  38676. confirm,
  38677. cancel
  38678. }, () => [
  38679. createVNode(unref(ElButton), {
  38680. size: "small",
  38681. type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
  38682. text: _ctx.cancelButtonType === "text",
  38683. onClick: cancel
  38684. }, {
  38685. default: withCtx(() => [
  38686. createTextVNode(toDisplayString(unref(finalCancelButtonText)), 1)
  38687. ]),
  38688. _: 1
  38689. }, 8, ["type", "text"]),
  38690. createVNode(unref(ElButton), {
  38691. size: "small",
  38692. type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
  38693. text: _ctx.confirmButtonType === "text",
  38694. onClick: confirm
  38695. }, {
  38696. default: withCtx(() => [
  38697. createTextVNode(toDisplayString(unref(finalConfirmButtonText)), 1)
  38698. ]),
  38699. _: 1
  38700. }, 8, ["type", "text"])
  38701. ])
  38702. ], 2)
  38703. ], 2)
  38704. ]),
  38705. default: withCtx(() => [
  38706. _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
  38707. ]),
  38708. _: 3
  38709. }, 16, ["effect", "popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
  38710. };
  38711. }
  38712. });
  38713. var Popconfirm = _export_sfc(_sfc_main107, [["__file", "popconfirm.vue"]]);
  38714. // node_modules/element-plus/es/components/popconfirm/index.mjs
  38715. var ElPopconfirm = withInstall(Popconfirm);
  38716. // node_modules/element-plus/es/components/popover/src/popover2.mjs
  38717. var popoverProps = buildProps({
  38718. trigger: useTooltipTriggerProps.trigger,
  38719. triggerKeys: useTooltipTriggerProps.triggerKeys,
  38720. placement: dropdownProps.placement,
  38721. disabled: useTooltipTriggerProps.disabled,
  38722. visible: useTooltipContentProps.visible,
  38723. transition: useTooltipContentProps.transition,
  38724. popperOptions: dropdownProps.popperOptions,
  38725. tabindex: dropdownProps.tabindex,
  38726. content: useTooltipContentProps.content,
  38727. popperStyle: useTooltipContentProps.popperStyle,
  38728. popperClass: useTooltipContentProps.popperClass,
  38729. enterable: {
  38730. ...useTooltipContentProps.enterable,
  38731. default: true
  38732. },
  38733. effect: {
  38734. ...useTooltipContentProps.effect,
  38735. default: "light"
  38736. },
  38737. teleported: useTooltipContentProps.teleported,
  38738. appendTo: useTooltipContentProps.appendTo,
  38739. title: String,
  38740. width: {
  38741. type: [String, Number],
  38742. default: 150
  38743. },
  38744. offset: {
  38745. type: Number,
  38746. default: void 0
  38747. },
  38748. showAfter: {
  38749. type: Number,
  38750. default: 0
  38751. },
  38752. hideAfter: {
  38753. type: Number,
  38754. default: 200
  38755. },
  38756. autoClose: {
  38757. type: Number,
  38758. default: 0
  38759. },
  38760. showArrow: {
  38761. type: Boolean,
  38762. default: true
  38763. },
  38764. persistent: {
  38765. type: Boolean,
  38766. default: true
  38767. },
  38768. "onUpdate:visible": {
  38769. type: Function
  38770. }
  38771. });
  38772. var popoverEmits = {
  38773. "update:visible": (value) => isBoolean2(value),
  38774. "before-enter": () => true,
  38775. "before-leave": () => true,
  38776. "after-enter": () => true,
  38777. "after-leave": () => true
  38778. };
  38779. // node_modules/element-plus/es/components/popover/src/popover.mjs
  38780. var updateEventKeyRaw = `onUpdate:visible`;
  38781. var __default__83 = defineComponent({
  38782. name: "ElPopover"
  38783. });
  38784. var _sfc_main108 = defineComponent({
  38785. ...__default__83,
  38786. props: popoverProps,
  38787. emits: popoverEmits,
  38788. setup(__props, { expose, emit }) {
  38789. const props2 = __props;
  38790. const onUpdateVisible = computed(() => {
  38791. return props2[updateEventKeyRaw];
  38792. });
  38793. const ns = useNamespace("popover");
  38794. const tooltipRef = ref();
  38795. const popperRef = computed(() => {
  38796. var _a2;
  38797. return (_a2 = unref(tooltipRef)) == null ? void 0 : _a2.popperRef;
  38798. });
  38799. const style = computed(() => {
  38800. return [
  38801. {
  38802. width: addUnit(props2.width)
  38803. },
  38804. props2.popperStyle
  38805. ];
  38806. });
  38807. const kls = computed(() => {
  38808. return [ns.b(), props2.popperClass, { [ns.m("plain")]: !!props2.content }];
  38809. });
  38810. const gpuAcceleration = computed(() => {
  38811. return props2.transition === `${ns.namespace.value}-fade-in-linear`;
  38812. });
  38813. const hide2 = () => {
  38814. var _a2;
  38815. (_a2 = tooltipRef.value) == null ? void 0 : _a2.hide();
  38816. };
  38817. const beforeEnter = () => {
  38818. emit("before-enter");
  38819. };
  38820. const beforeLeave = () => {
  38821. emit("before-leave");
  38822. };
  38823. const afterEnter = () => {
  38824. emit("after-enter");
  38825. };
  38826. const afterLeave = () => {
  38827. emit("update:visible", false);
  38828. emit("after-leave");
  38829. };
  38830. expose({
  38831. popperRef,
  38832. hide: hide2
  38833. });
  38834. return (_ctx, _cache) => {
  38835. return openBlock(), createBlock(unref(ElTooltip), mergeProps({
  38836. ref_key: "tooltipRef",
  38837. ref: tooltipRef
  38838. }, _ctx.$attrs, {
  38839. trigger: _ctx.trigger,
  38840. "trigger-keys": _ctx.triggerKeys,
  38841. placement: _ctx.placement,
  38842. disabled: _ctx.disabled,
  38843. visible: _ctx.visible,
  38844. transition: _ctx.transition,
  38845. "popper-options": _ctx.popperOptions,
  38846. tabindex: _ctx.tabindex,
  38847. content: _ctx.content,
  38848. offset: _ctx.offset,
  38849. "show-after": _ctx.showAfter,
  38850. "hide-after": _ctx.hideAfter,
  38851. "auto-close": _ctx.autoClose,
  38852. "show-arrow": _ctx.showArrow,
  38853. "aria-label": _ctx.title,
  38854. effect: _ctx.effect,
  38855. enterable: _ctx.enterable,
  38856. "popper-class": unref(kls),
  38857. "popper-style": unref(style),
  38858. teleported: _ctx.teleported,
  38859. "append-to": _ctx.appendTo,
  38860. persistent: _ctx.persistent,
  38861. "gpu-acceleration": unref(gpuAcceleration),
  38862. "onUpdate:visible": unref(onUpdateVisible),
  38863. onBeforeShow: beforeEnter,
  38864. onBeforeHide: beforeLeave,
  38865. onShow: afterEnter,
  38866. onHide: afterLeave
  38867. }), {
  38868. content: withCtx(() => [
  38869. _ctx.title ? (openBlock(), createElementBlock("div", {
  38870. key: 0,
  38871. class: normalizeClass(unref(ns).e("title")),
  38872. role: "title"
  38873. }, toDisplayString(_ctx.title), 3)) : createCommentVNode("v-if", true),
  38874. renderSlot(_ctx.$slots, "default", {}, () => [
  38875. createTextVNode(toDisplayString(_ctx.content), 1)
  38876. ])
  38877. ]),
  38878. default: withCtx(() => [
  38879. _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
  38880. ]),
  38881. _: 3
  38882. }, 16, ["trigger", "trigger-keys", "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", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]);
  38883. };
  38884. }
  38885. });
  38886. var Popover = _export_sfc(_sfc_main108, [["__file", "popover.vue"]]);
  38887. // node_modules/element-plus/es/components/popover/src/directive.mjs
  38888. var attachEvents = (el, binding) => {
  38889. const popperComponent = binding.arg || binding.value;
  38890. const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
  38891. if (popover) {
  38892. popover.triggerRef = el;
  38893. }
  38894. };
  38895. var PopoverDirective = {
  38896. mounted(el, binding) {
  38897. attachEvents(el, binding);
  38898. },
  38899. updated(el, binding) {
  38900. attachEvents(el, binding);
  38901. }
  38902. };
  38903. var VPopover = "popover";
  38904. // node_modules/element-plus/es/components/popover/index.mjs
  38905. var ElPopoverDirective = withInstallDirective(PopoverDirective, VPopover);
  38906. var ElPopover = withInstall(Popover, {
  38907. directive: ElPopoverDirective
  38908. });
  38909. // node_modules/element-plus/es/components/progress/src/progress.mjs
  38910. var progressProps = buildProps({
  38911. type: {
  38912. type: String,
  38913. default: "line",
  38914. values: ["line", "circle", "dashboard"]
  38915. },
  38916. percentage: {
  38917. type: Number,
  38918. default: 0,
  38919. validator: (val) => val >= 0 && val <= 100
  38920. },
  38921. status: {
  38922. type: String,
  38923. default: "",
  38924. values: ["", "success", "exception", "warning"]
  38925. },
  38926. indeterminate: Boolean,
  38927. duration: {
  38928. type: Number,
  38929. default: 3
  38930. },
  38931. strokeWidth: {
  38932. type: Number,
  38933. default: 6
  38934. },
  38935. strokeLinecap: {
  38936. type: definePropType(String),
  38937. default: "round"
  38938. },
  38939. textInside: Boolean,
  38940. width: {
  38941. type: Number,
  38942. default: 126
  38943. },
  38944. showText: {
  38945. type: Boolean,
  38946. default: true
  38947. },
  38948. color: {
  38949. type: definePropType([
  38950. String,
  38951. Array,
  38952. Function
  38953. ]),
  38954. default: ""
  38955. },
  38956. striped: Boolean,
  38957. stripedFlow: Boolean,
  38958. format: {
  38959. type: definePropType(Function),
  38960. default: (percentage) => `${percentage}%`
  38961. }
  38962. });
  38963. // node_modules/element-plus/es/components/progress/src/progress2.mjs
  38964. var __default__84 = defineComponent({
  38965. name: "ElProgress"
  38966. });
  38967. var _sfc_main109 = defineComponent({
  38968. ...__default__84,
  38969. props: progressProps,
  38970. setup(__props) {
  38971. const props2 = __props;
  38972. const STATUS_COLOR_MAP = {
  38973. success: "#13ce66",
  38974. exception: "#ff4949",
  38975. warning: "#e6a23c",
  38976. default: "#20a0ff"
  38977. };
  38978. const ns = useNamespace("progress");
  38979. const barStyle = computed(() => {
  38980. const barStyle2 = {
  38981. width: `${props2.percentage}%`,
  38982. animationDuration: `${props2.duration}s`
  38983. };
  38984. const color = getCurrentColor(props2.percentage);
  38985. if (color.includes("gradient")) {
  38986. barStyle2.background = color;
  38987. } else {
  38988. barStyle2.backgroundColor = color;
  38989. }
  38990. return barStyle2;
  38991. });
  38992. const relativeStrokeWidth = computed(() => (props2.strokeWidth / props2.width * 100).toFixed(1));
  38993. const radius = computed(() => {
  38994. if (["circle", "dashboard"].includes(props2.type)) {
  38995. return Number.parseInt(`${50 - Number.parseFloat(relativeStrokeWidth.value) / 2}`, 10);
  38996. }
  38997. return 0;
  38998. });
  38999. const trackPath = computed(() => {
  39000. const r = radius.value;
  39001. const isDashboard = props2.type === "dashboard";
  39002. return `
  39003. M 50 50
  39004. m 0 ${isDashboard ? "" : "-"}${r}
  39005. a ${r} ${r} 0 1 1 0 ${isDashboard ? "-" : ""}${r * 2}
  39006. a ${r} ${r} 0 1 1 0 ${isDashboard ? "" : "-"}${r * 2}
  39007. `;
  39008. });
  39009. const perimeter = computed(() => 2 * Math.PI * radius.value);
  39010. const rate = computed(() => props2.type === "dashboard" ? 0.75 : 1);
  39011. const strokeDashoffset = computed(() => {
  39012. const offset3 = -1 * perimeter.value * (1 - rate.value) / 2;
  39013. return `${offset3}px`;
  39014. });
  39015. const trailPathStyle = computed(() => ({
  39016. strokeDasharray: `${perimeter.value * rate.value}px, ${perimeter.value}px`,
  39017. strokeDashoffset: strokeDashoffset.value
  39018. }));
  39019. const circlePathStyle = computed(() => ({
  39020. strokeDasharray: `${perimeter.value * rate.value * (props2.percentage / 100)}px, ${perimeter.value}px`,
  39021. strokeDashoffset: strokeDashoffset.value,
  39022. transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
  39023. }));
  39024. const stroke = computed(() => {
  39025. let ret;
  39026. if (props2.color) {
  39027. ret = getCurrentColor(props2.percentage);
  39028. } else {
  39029. ret = STATUS_COLOR_MAP[props2.status] || STATUS_COLOR_MAP.default;
  39030. }
  39031. return ret;
  39032. });
  39033. const statusIcon = computed(() => {
  39034. if (props2.status === "warning") {
  39035. return warning_filled_default;
  39036. }
  39037. if (props2.type === "line") {
  39038. return props2.status === "success" ? circle_check_default : circle_close_default;
  39039. } else {
  39040. return props2.status === "success" ? check_default : close_default;
  39041. }
  39042. });
  39043. const progressTextSize = computed(() => {
  39044. return props2.type === "line" ? 12 + props2.strokeWidth * 0.4 : props2.width * 0.111111 + 2;
  39045. });
  39046. const content = computed(() => props2.format(props2.percentage));
  39047. function getColors(color) {
  39048. const span = 100 / color.length;
  39049. const seriesColors = color.map((seriesColor, index) => {
  39050. if (isString(seriesColor)) {
  39051. return {
  39052. color: seriesColor,
  39053. percentage: (index + 1) * span
  39054. };
  39055. }
  39056. return seriesColor;
  39057. });
  39058. return seriesColors.sort((a2, b2) => a2.percentage - b2.percentage);
  39059. }
  39060. const getCurrentColor = (percentage) => {
  39061. var _a2;
  39062. const { color } = props2;
  39063. if (isFunction(color)) {
  39064. return color(percentage);
  39065. } else if (isString(color)) {
  39066. return color;
  39067. } else {
  39068. const colors = getColors(color);
  39069. for (const color2 of colors) {
  39070. if (color2.percentage > percentage)
  39071. return color2.color;
  39072. }
  39073. return (_a2 = colors[colors.length - 1]) == null ? void 0 : _a2.color;
  39074. }
  39075. };
  39076. return (_ctx, _cache) => {
  39077. return openBlock(), createElementBlock("div", {
  39078. class: normalizeClass([
  39079. unref(ns).b(),
  39080. unref(ns).m(_ctx.type),
  39081. unref(ns).is(_ctx.status),
  39082. {
  39083. [unref(ns).m("without-text")]: !_ctx.showText,
  39084. [unref(ns).m("text-inside")]: _ctx.textInside
  39085. }
  39086. ]),
  39087. role: "progressbar",
  39088. "aria-valuenow": _ctx.percentage,
  39089. "aria-valuemin": "0",
  39090. "aria-valuemax": "100"
  39091. }, [
  39092. _ctx.type === "line" ? (openBlock(), createElementBlock("div", {
  39093. key: 0,
  39094. class: normalizeClass(unref(ns).b("bar"))
  39095. }, [
  39096. createBaseVNode("div", {
  39097. class: normalizeClass(unref(ns).be("bar", "outer")),
  39098. style: normalizeStyle({ height: `${_ctx.strokeWidth}px` })
  39099. }, [
  39100. createBaseVNode("div", {
  39101. class: normalizeClass([
  39102. unref(ns).be("bar", "inner"),
  39103. { [unref(ns).bem("bar", "inner", "indeterminate")]: _ctx.indeterminate },
  39104. { [unref(ns).bem("bar", "inner", "striped")]: _ctx.striped },
  39105. { [unref(ns).bem("bar", "inner", "striped-flow")]: _ctx.stripedFlow }
  39106. ]),
  39107. style: normalizeStyle(unref(barStyle))
  39108. }, [
  39109. (_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (openBlock(), createElementBlock("div", {
  39110. key: 0,
  39111. class: normalizeClass(unref(ns).be("bar", "innerText"))
  39112. }, [
  39113. renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
  39114. createBaseVNode("span", null, toDisplayString(unref(content)), 1)
  39115. ])
  39116. ], 2)) : createCommentVNode("v-if", true)
  39117. ], 6)
  39118. ], 6)
  39119. ], 2)) : (openBlock(), createElementBlock("div", {
  39120. key: 1,
  39121. class: normalizeClass(unref(ns).b("circle")),
  39122. style: normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
  39123. }, [
  39124. (openBlock(), createElementBlock("svg", { viewBox: "0 0 100 100" }, [
  39125. createBaseVNode("path", {
  39126. class: normalizeClass(unref(ns).be("circle", "track")),
  39127. d: unref(trackPath),
  39128. stroke: `var(${unref(ns).cssVarName("fill-color-light")}, #e5e9f2)`,
  39129. "stroke-linecap": _ctx.strokeLinecap,
  39130. "stroke-width": unref(relativeStrokeWidth),
  39131. fill: "none",
  39132. style: normalizeStyle(unref(trailPathStyle))
  39133. }, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
  39134. createBaseVNode("path", {
  39135. class: normalizeClass(unref(ns).be("circle", "path")),
  39136. d: unref(trackPath),
  39137. stroke: unref(stroke),
  39138. fill: "none",
  39139. opacity: _ctx.percentage ? 1 : 0,
  39140. "stroke-linecap": _ctx.strokeLinecap,
  39141. "stroke-width": unref(relativeStrokeWidth),
  39142. style: normalizeStyle(unref(circlePathStyle))
  39143. }, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
  39144. ]))
  39145. ], 6)),
  39146. (_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
  39147. key: 2,
  39148. class: normalizeClass(unref(ns).e("text")),
  39149. style: normalizeStyle({ fontSize: `${unref(progressTextSize)}px` })
  39150. }, [
  39151. renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
  39152. !_ctx.status ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(unref(content)), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
  39153. default: withCtx(() => [
  39154. (openBlock(), createBlock(resolveDynamicComponent(unref(statusIcon))))
  39155. ]),
  39156. _: 1
  39157. }))
  39158. ])
  39159. ], 6)) : createCommentVNode("v-if", true)
  39160. ], 10, ["aria-valuenow"]);
  39161. };
  39162. }
  39163. });
  39164. var Progress = _export_sfc(_sfc_main109, [["__file", "progress.vue"]]);
  39165. // node_modules/element-plus/es/components/progress/index.mjs
  39166. var ElProgress = withInstall(Progress);
  39167. // node_modules/element-plus/es/components/rate/src/rate2.mjs
  39168. var rateProps = buildProps({
  39169. modelValue: {
  39170. type: Number,
  39171. default: 0
  39172. },
  39173. id: {
  39174. type: String,
  39175. default: void 0
  39176. },
  39177. lowThreshold: {
  39178. type: Number,
  39179. default: 2
  39180. },
  39181. highThreshold: {
  39182. type: Number,
  39183. default: 4
  39184. },
  39185. max: {
  39186. type: Number,
  39187. default: 5
  39188. },
  39189. colors: {
  39190. type: definePropType([Array, Object]),
  39191. default: () => mutable(["", "", ""])
  39192. },
  39193. voidColor: {
  39194. type: String,
  39195. default: ""
  39196. },
  39197. disabledVoidColor: {
  39198. type: String,
  39199. default: ""
  39200. },
  39201. icons: {
  39202. type: definePropType([Array, Object]),
  39203. default: () => [star_filled_default, star_filled_default, star_filled_default]
  39204. },
  39205. voidIcon: {
  39206. type: iconPropType,
  39207. default: () => star_default
  39208. },
  39209. disabledVoidIcon: {
  39210. type: iconPropType,
  39211. default: () => star_filled_default
  39212. },
  39213. disabled: Boolean,
  39214. allowHalf: Boolean,
  39215. showText: Boolean,
  39216. showScore: Boolean,
  39217. textColor: {
  39218. type: String,
  39219. default: ""
  39220. },
  39221. texts: {
  39222. type: definePropType(Array),
  39223. default: () => mutable([
  39224. "Extremely bad",
  39225. "Disappointed",
  39226. "Fair",
  39227. "Satisfied",
  39228. "Surprise"
  39229. ])
  39230. },
  39231. scoreTemplate: {
  39232. type: String,
  39233. default: "{value}"
  39234. },
  39235. size: useSizeProp,
  39236. clearable: Boolean,
  39237. ...useAriaProps(["ariaLabel"])
  39238. });
  39239. var rateEmits = {
  39240. [CHANGE_EVENT]: (value) => isNumber2(value),
  39241. [UPDATE_MODEL_EVENT]: (value) => isNumber2(value)
  39242. };
  39243. // node_modules/element-plus/es/components/rate/src/rate.mjs
  39244. var __default__85 = defineComponent({
  39245. name: "ElRate"
  39246. });
  39247. var _sfc_main110 = defineComponent({
  39248. ...__default__85,
  39249. props: rateProps,
  39250. emits: rateEmits,
  39251. setup(__props, { expose, emit }) {
  39252. const props2 = __props;
  39253. function getValueFromMap(value, map2) {
  39254. const isExcludedObject = (val) => isObject(val);
  39255. const matchedKeys = Object.keys(map2).map((key) => +key).filter((key) => {
  39256. const val = map2[key];
  39257. const excluded = isExcludedObject(val) ? val.excluded : false;
  39258. return excluded ? value < key : value <= key;
  39259. }).sort((a2, b2) => a2 - b2);
  39260. const matchedValue = map2[matchedKeys[0]];
  39261. return isExcludedObject(matchedValue) && matchedValue.value || matchedValue;
  39262. }
  39263. const formContext = inject(formContextKey, void 0);
  39264. const formItemContext = inject(formItemContextKey, void 0);
  39265. const rateSize = useFormSize();
  39266. const ns = useNamespace("rate");
  39267. const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
  39268. formItemContext
  39269. });
  39270. const currentValue = ref(props2.modelValue);
  39271. const hoverIndex = ref(-1);
  39272. const pointerAtLeftHalf = ref(true);
  39273. const iconRefs = ref([]);
  39274. const iconClientWidths = computed(() => iconRefs.value.map((icon) => icon.$el.clientWidth));
  39275. const rateClasses = computed(() => [ns.b(), ns.m(rateSize.value)]);
  39276. const rateDisabled = computed(() => props2.disabled || (formContext == null ? void 0 : formContext.disabled));
  39277. const rateStyles = computed(() => {
  39278. return ns.cssVarBlock({
  39279. "void-color": props2.voidColor,
  39280. "disabled-void-color": props2.disabledVoidColor,
  39281. "fill-color": activeColor.value
  39282. });
  39283. });
  39284. const text = computed(() => {
  39285. let result2 = "";
  39286. if (props2.showScore) {
  39287. result2 = props2.scoreTemplate.replace(/\{\s*value\s*\}/, rateDisabled.value ? `${props2.modelValue}` : `${currentValue.value}`);
  39288. } else if (props2.showText) {
  39289. result2 = props2.texts[Math.ceil(currentValue.value) - 1];
  39290. }
  39291. return result2;
  39292. });
  39293. const valueDecimal = computed(() => props2.modelValue * 100 - Math.floor(props2.modelValue) * 100);
  39294. const colorMap = computed(() => isArray(props2.colors) ? {
  39295. [props2.lowThreshold]: props2.colors[0],
  39296. [props2.highThreshold]: { value: props2.colors[1], excluded: true },
  39297. [props2.max]: props2.colors[2]
  39298. } : props2.colors);
  39299. const activeColor = computed(() => {
  39300. const color = getValueFromMap(currentValue.value, colorMap.value);
  39301. return isObject(color) ? "" : color;
  39302. });
  39303. const decimalStyle = computed(() => {
  39304. let width = "";
  39305. if (rateDisabled.value) {
  39306. width = `${valueDecimal.value}%`;
  39307. } else if (props2.allowHalf) {
  39308. width = "50%";
  39309. }
  39310. return {
  39311. color: activeColor.value,
  39312. width
  39313. };
  39314. });
  39315. const componentMap = computed(() => {
  39316. let icons = isArray(props2.icons) ? [...props2.icons] : { ...props2.icons };
  39317. icons = markRaw(icons);
  39318. return isArray(icons) ? {
  39319. [props2.lowThreshold]: icons[0],
  39320. [props2.highThreshold]: {
  39321. value: icons[1],
  39322. excluded: true
  39323. },
  39324. [props2.max]: icons[2]
  39325. } : icons;
  39326. });
  39327. const decimalIconComponent = computed(() => getValueFromMap(props2.modelValue, componentMap.value));
  39328. const voidComponent = computed(() => rateDisabled.value ? isString(props2.disabledVoidIcon) ? props2.disabledVoidIcon : markRaw(props2.disabledVoidIcon) : isString(props2.voidIcon) ? props2.voidIcon : markRaw(props2.voidIcon));
  39329. const activeComponent = computed(() => getValueFromMap(currentValue.value, componentMap.value));
  39330. function showDecimalIcon(item) {
  39331. const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props2.modelValue && item > props2.modelValue;
  39332. const showWhenAllowHalf = props2.allowHalf && pointerAtLeftHalf.value && item - 0.5 <= currentValue.value && item > currentValue.value;
  39333. return showWhenDisabled || showWhenAllowHalf;
  39334. }
  39335. function emitValue(value) {
  39336. if (props2.clearable && value === props2.modelValue) {
  39337. value = 0;
  39338. }
  39339. emit(UPDATE_MODEL_EVENT, value);
  39340. if (props2.modelValue !== value) {
  39341. emit(CHANGE_EVENT, value);
  39342. }
  39343. }
  39344. function selectValue(value) {
  39345. if (rateDisabled.value) {
  39346. return;
  39347. }
  39348. if (props2.allowHalf && pointerAtLeftHalf.value) {
  39349. emitValue(currentValue.value);
  39350. } else {
  39351. emitValue(value);
  39352. }
  39353. }
  39354. function handleKey(e) {
  39355. if (rateDisabled.value) {
  39356. return;
  39357. }
  39358. const code = getEventCode(e);
  39359. const step2 = props2.allowHalf ? 0.5 : 1;
  39360. let _currentValue = currentValue.value;
  39361. switch (code) {
  39362. case EVENT_CODE.up:
  39363. case EVENT_CODE.right:
  39364. _currentValue += step2;
  39365. break;
  39366. case EVENT_CODE.left:
  39367. case EVENT_CODE.down:
  39368. _currentValue -= step2;
  39369. break;
  39370. }
  39371. _currentValue = clamp_default(_currentValue, 0, props2.max);
  39372. if (_currentValue === currentValue.value) {
  39373. return;
  39374. }
  39375. e.stopPropagation();
  39376. e.preventDefault();
  39377. emit(UPDATE_MODEL_EVENT, _currentValue);
  39378. emit(CHANGE_EVENT, _currentValue);
  39379. return _currentValue;
  39380. }
  39381. function setCurrentValue(value, event) {
  39382. if (rateDisabled.value) {
  39383. return;
  39384. }
  39385. if (props2.allowHalf && event) {
  39386. pointerAtLeftHalf.value = event.offsetX * 2 <= iconClientWidths.value[value - 1];
  39387. currentValue.value = pointerAtLeftHalf.value ? value - 0.5 : value;
  39388. } else {
  39389. currentValue.value = value;
  39390. }
  39391. hoverIndex.value = value;
  39392. }
  39393. function resetCurrentValue() {
  39394. if (rateDisabled.value) {
  39395. return;
  39396. }
  39397. if (props2.allowHalf) {
  39398. pointerAtLeftHalf.value = props2.modelValue !== Math.floor(props2.modelValue);
  39399. }
  39400. currentValue.value = props2.modelValue;
  39401. hoverIndex.value = -1;
  39402. }
  39403. watch(() => props2.modelValue, (val) => {
  39404. currentValue.value = val;
  39405. pointerAtLeftHalf.value = props2.modelValue !== Math.floor(props2.modelValue);
  39406. });
  39407. if (!props2.modelValue) {
  39408. emit(UPDATE_MODEL_EVENT, 0);
  39409. }
  39410. expose({
  39411. setCurrentValue,
  39412. resetCurrentValue
  39413. });
  39414. return (_ctx, _cache) => {
  39415. var _a2;
  39416. return openBlock(), createElementBlock("div", {
  39417. id: unref(inputId),
  39418. class: normalizeClass([unref(rateClasses), unref(ns).is("disabled", unref(rateDisabled))]),
  39419. role: "slider",
  39420. "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "rating" : void 0,
  39421. "aria-labelledby": unref(isLabeledByFormItem) ? (_a2 = unref(formItemContext)) == null ? void 0 : _a2.labelId : void 0,
  39422. "aria-valuenow": currentValue.value,
  39423. "aria-valuetext": unref(text) || void 0,
  39424. "aria-valuemin": "0",
  39425. "aria-valuemax": _ctx.max,
  39426. tabindex: "0",
  39427. style: normalizeStyle(unref(rateStyles)),
  39428. onKeydown: handleKey
  39429. }, [
  39430. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.max, (item, key) => {
  39431. return openBlock(), createElementBlock("span", {
  39432. key,
  39433. class: normalizeClass(unref(ns).e("item")),
  39434. onMousemove: ($event) => setCurrentValue(item, $event),
  39435. onMouseleave: resetCurrentValue,
  39436. onClick: ($event) => selectValue(item)
  39437. }, [
  39438. createVNode(unref(ElIcon), {
  39439. ref_for: true,
  39440. ref_key: "iconRefs",
  39441. ref: iconRefs,
  39442. class: normalizeClass([
  39443. unref(ns).e("icon"),
  39444. { hover: hoverIndex.value === item },
  39445. unref(ns).is("active", item <= currentValue.value),
  39446. unref(ns).is("focus-visible", item === Math.ceil(currentValue.value || 1))
  39447. ])
  39448. }, {
  39449. default: withCtx(() => [
  39450. withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(activeComponent)), null, null, 512)), [
  39451. [vShow, !showDecimalIcon(item) && item <= currentValue.value]
  39452. ]),
  39453. withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(voidComponent)), null, null, 512)), [
  39454. [vShow, !showDecimalIcon(item) && item > currentValue.value]
  39455. ]),
  39456. withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(voidComponent)), {
  39457. class: normalizeClass([unref(ns).em("decimal", "box")])
  39458. }, null, 8, ["class"])), [
  39459. [vShow, showDecimalIcon(item)]
  39460. ]),
  39461. withDirectives(createVNode(unref(ElIcon), {
  39462. style: normalizeStyle(unref(decimalStyle)),
  39463. class: normalizeClass([unref(ns).e("icon"), unref(ns).e("decimal")])
  39464. }, {
  39465. default: withCtx(() => [
  39466. (openBlock(), createBlock(resolveDynamicComponent(unref(decimalIconComponent))))
  39467. ]),
  39468. _: 2
  39469. }, 1032, ["style", "class"]), [
  39470. [vShow, showDecimalIcon(item)]
  39471. ])
  39472. ]),
  39473. _: 2
  39474. }, 1032, ["class"])
  39475. ], 42, ["onMousemove", "onClick"]);
  39476. }), 128)),
  39477. _ctx.showText || _ctx.showScore ? (openBlock(), createElementBlock("span", {
  39478. key: 0,
  39479. class: normalizeClass(unref(ns).e("text")),
  39480. style: normalizeStyle({ color: _ctx.textColor })
  39481. }, toDisplayString(unref(text)), 7)) : createCommentVNode("v-if", true)
  39482. ], 46, ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuetext", "aria-valuemax"]);
  39483. };
  39484. }
  39485. });
  39486. var Rate = _export_sfc(_sfc_main110, [["__file", "rate.vue"]]);
  39487. // node_modules/element-plus/es/components/rate/index.mjs
  39488. var ElRate = withInstall(Rate);
  39489. // node_modules/element-plus/es/components/result/src/result.mjs
  39490. var IconMap = {
  39491. primary: "icon-primary",
  39492. success: "icon-success",
  39493. warning: "icon-warning",
  39494. error: "icon-error",
  39495. info: "icon-info"
  39496. };
  39497. var IconComponentMap = {
  39498. [IconMap.primary]: info_filled_default,
  39499. [IconMap.success]: circle_check_filled_default,
  39500. [IconMap.warning]: warning_filled_default,
  39501. [IconMap.error]: circle_close_filled_default,
  39502. [IconMap.info]: info_filled_default
  39503. };
  39504. var resultProps = buildProps({
  39505. title: {
  39506. type: String,
  39507. default: ""
  39508. },
  39509. subTitle: {
  39510. type: String,
  39511. default: ""
  39512. },
  39513. icon: {
  39514. type: String,
  39515. values: ["primary", "success", "warning", "info", "error"],
  39516. default: "info"
  39517. }
  39518. });
  39519. // node_modules/element-plus/es/components/result/src/result2.mjs
  39520. var __default__86 = defineComponent({
  39521. name: "ElResult"
  39522. });
  39523. var _sfc_main111 = defineComponent({
  39524. ...__default__86,
  39525. props: resultProps,
  39526. setup(__props) {
  39527. const props2 = __props;
  39528. const ns = useNamespace("result");
  39529. const resultIcon = computed(() => {
  39530. const icon = props2.icon;
  39531. const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
  39532. const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
  39533. return {
  39534. class: iconClass,
  39535. component: iconComponent
  39536. };
  39537. });
  39538. return (_ctx, _cache) => {
  39539. return openBlock(), createElementBlock("div", {
  39540. class: normalizeClass(unref(ns).b())
  39541. }, [
  39542. createBaseVNode("div", {
  39543. class: normalizeClass(unref(ns).e("icon"))
  39544. }, [
  39545. renderSlot(_ctx.$slots, "icon", {}, () => [
  39546. unref(resultIcon).component ? (openBlock(), createBlock(resolveDynamicComponent(unref(resultIcon).component), {
  39547. key: 0,
  39548. class: normalizeClass(unref(resultIcon).class)
  39549. }, null, 8, ["class"])) : createCommentVNode("v-if", true)
  39550. ])
  39551. ], 2),
  39552. _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
  39553. key: 0,
  39554. class: normalizeClass(unref(ns).e("title"))
  39555. }, [
  39556. renderSlot(_ctx.$slots, "title", {}, () => [
  39557. createBaseVNode("p", null, toDisplayString(_ctx.title), 1)
  39558. ])
  39559. ], 2)) : createCommentVNode("v-if", true),
  39560. _ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock("div", {
  39561. key: 1,
  39562. class: normalizeClass(unref(ns).e("subtitle"))
  39563. }, [
  39564. renderSlot(_ctx.$slots, "sub-title", {}, () => [
  39565. createBaseVNode("p", null, toDisplayString(_ctx.subTitle), 1)
  39566. ])
  39567. ], 2)) : createCommentVNode("v-if", true),
  39568. _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
  39569. key: 2,
  39570. class: normalizeClass(unref(ns).e("extra"))
  39571. }, [
  39572. renderSlot(_ctx.$slots, "extra")
  39573. ], 2)) : createCommentVNode("v-if", true)
  39574. ], 2);
  39575. };
  39576. }
  39577. });
  39578. var Result = _export_sfc(_sfc_main111, [["__file", "result.vue"]]);
  39579. // node_modules/element-plus/es/components/result/index.mjs
  39580. var ElResult = withInstall(Result);
  39581. // node_modules/element-plus/es/components/row/src/row.mjs
  39582. var RowJustify = [
  39583. "start",
  39584. "center",
  39585. "end",
  39586. "space-around",
  39587. "space-between",
  39588. "space-evenly"
  39589. ];
  39590. var RowAlign = ["top", "middle", "bottom"];
  39591. var rowProps = buildProps({
  39592. tag: {
  39593. type: String,
  39594. default: "div"
  39595. },
  39596. gutter: {
  39597. type: Number,
  39598. default: 0
  39599. },
  39600. justify: {
  39601. type: String,
  39602. values: RowJustify,
  39603. default: "start"
  39604. },
  39605. align: {
  39606. type: String,
  39607. values: RowAlign
  39608. }
  39609. });
  39610. // node_modules/element-plus/es/components/row/src/row2.mjs
  39611. var __default__87 = defineComponent({
  39612. name: "ElRow"
  39613. });
  39614. var _sfc_main112 = defineComponent({
  39615. ...__default__87,
  39616. props: rowProps,
  39617. setup(__props) {
  39618. const props2 = __props;
  39619. const ns = useNamespace("row");
  39620. const gutter = computed(() => props2.gutter);
  39621. provide(rowContextKey, {
  39622. gutter
  39623. });
  39624. const style = computed(() => {
  39625. const styles = {};
  39626. if (!props2.gutter) {
  39627. return styles;
  39628. }
  39629. styles.marginRight = styles.marginLeft = `-${props2.gutter / 2}px`;
  39630. return styles;
  39631. });
  39632. const rowKls = computed(() => [
  39633. ns.b(),
  39634. ns.is(`justify-${props2.justify}`, props2.justify !== "start"),
  39635. ns.is(`align-${props2.align}`, !!props2.align)
  39636. ]);
  39637. return (_ctx, _cache) => {
  39638. return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
  39639. class: normalizeClass(unref(rowKls)),
  39640. style: normalizeStyle(unref(style))
  39641. }, {
  39642. default: withCtx(() => [
  39643. renderSlot(_ctx.$slots, "default")
  39644. ]),
  39645. _: 3
  39646. }, 8, ["class", "style"]);
  39647. };
  39648. }
  39649. });
  39650. var Row = _export_sfc(_sfc_main112, [["__file", "row.vue"]]);
  39651. // node_modules/element-plus/es/components/row/index.mjs
  39652. var ElRow = withInstall(Row);
  39653. // node_modules/element-plus/es/components/select-v2/src/group-item.mjs
  39654. var _sfc_main113 = defineComponent({
  39655. props: {
  39656. item: {
  39657. type: Object,
  39658. required: true
  39659. },
  39660. style: {
  39661. type: Object
  39662. },
  39663. height: Number
  39664. },
  39665. setup() {
  39666. const ns = useNamespace("select");
  39667. return {
  39668. ns
  39669. };
  39670. }
  39671. });
  39672. function _sfc_render15(_ctx, _cache, $props, $setup, $data, $options) {
  39673. return openBlock(), createElementBlock("div", {
  39674. class: normalizeClass(_ctx.ns.be("group", "title")),
  39675. style: normalizeStyle({ ..._ctx.style, lineHeight: `${_ctx.height}px` })
  39676. }, toDisplayString(_ctx.item.label), 7);
  39677. }
  39678. var GroupItem = _export_sfc(_sfc_main113, [["render", _sfc_render15], ["__file", "group-item.vue"]]);
  39679. // node_modules/element-plus/es/components/select-v2/src/useOption.mjs
  39680. function useOption2(props2, { emit }) {
  39681. return {
  39682. hoverItem: () => {
  39683. if (!props2.disabled) {
  39684. emit("hover", props2.index);
  39685. }
  39686. },
  39687. selectOptionClick: () => {
  39688. if (!props2.disabled) {
  39689. emit("select", props2.item, props2.index);
  39690. }
  39691. }
  39692. };
  39693. }
  39694. // node_modules/element-plus/es/components/select-v2/src/defaults.mjs
  39695. var selectV2Props = buildProps({
  39696. allowCreate: Boolean,
  39697. autocomplete: {
  39698. type: definePropType(String),
  39699. default: "none"
  39700. },
  39701. automaticDropdown: Boolean,
  39702. clearable: Boolean,
  39703. clearIcon: {
  39704. type: iconPropType,
  39705. default: circle_close_default
  39706. },
  39707. effect: {
  39708. type: definePropType(String),
  39709. default: "light"
  39710. },
  39711. collapseTags: Boolean,
  39712. collapseTagsTooltip: Boolean,
  39713. maxCollapseTags: {
  39714. type: Number,
  39715. default: 1
  39716. },
  39717. defaultFirstOption: Boolean,
  39718. disabled: Boolean,
  39719. estimatedOptionHeight: {
  39720. type: Number,
  39721. default: void 0
  39722. },
  39723. filterable: Boolean,
  39724. filterMethod: {
  39725. type: definePropType(Function)
  39726. },
  39727. height: {
  39728. type: Number,
  39729. default: 274
  39730. },
  39731. itemHeight: {
  39732. type: Number,
  39733. default: 34
  39734. },
  39735. id: String,
  39736. loading: Boolean,
  39737. loadingText: String,
  39738. modelValue: {
  39739. type: definePropType([Array, String, Number, Boolean, Object]),
  39740. default: void 0
  39741. },
  39742. multiple: Boolean,
  39743. multipleLimit: {
  39744. type: Number,
  39745. default: 0
  39746. },
  39747. name: String,
  39748. noDataText: String,
  39749. noMatchText: String,
  39750. remoteMethod: {
  39751. type: definePropType(Function)
  39752. },
  39753. reserveKeyword: {
  39754. type: Boolean,
  39755. default: true
  39756. },
  39757. options: {
  39758. type: definePropType(Array),
  39759. required: true
  39760. },
  39761. placeholder: {
  39762. type: String
  39763. },
  39764. teleported: useTooltipContentProps.teleported,
  39765. persistent: {
  39766. type: Boolean,
  39767. default: true
  39768. },
  39769. popperClass: useTooltipContentProps.popperClass,
  39770. popperStyle: useTooltipContentProps.popperStyle,
  39771. popperOptions: {
  39772. type: definePropType(Object),
  39773. default: () => ({})
  39774. },
  39775. remote: Boolean,
  39776. debounce: {
  39777. type: Number,
  39778. default: 300
  39779. },
  39780. size: useSizeProp,
  39781. props: {
  39782. type: definePropType(Object),
  39783. default: () => defaultProps
  39784. },
  39785. valueKey: {
  39786. type: String,
  39787. default: "value"
  39788. },
  39789. scrollbarAlwaysOn: Boolean,
  39790. validateEvent: {
  39791. type: Boolean,
  39792. default: true
  39793. },
  39794. offset: {
  39795. type: Number,
  39796. default: 12
  39797. },
  39798. showArrow: {
  39799. type: Boolean,
  39800. default: true
  39801. },
  39802. placement: {
  39803. type: definePropType(String),
  39804. values: Ee,
  39805. default: "bottom-start"
  39806. },
  39807. fallbackPlacements: {
  39808. type: definePropType(Array),
  39809. default: ["bottom-start", "top-start", "right", "left"]
  39810. },
  39811. tagType: { ...tagProps.type, default: "info" },
  39812. tagEffect: { ...tagProps.effect, default: "light" },
  39813. tabindex: {
  39814. type: [String, Number],
  39815. default: 0
  39816. },
  39817. appendTo: useTooltipContentProps.appendTo,
  39818. fitInputWidth: {
  39819. type: [Boolean, Number],
  39820. default: true,
  39821. validator(val) {
  39822. return isBoolean2(val) || isNumber2(val);
  39823. }
  39824. },
  39825. suffixIcon: {
  39826. type: iconPropType,
  39827. default: arrow_down_default
  39828. },
  39829. ...useEmptyValuesProps,
  39830. ...useAriaProps(["ariaLabel"])
  39831. });
  39832. var optionV2Props = buildProps({
  39833. data: Array,
  39834. disabled: Boolean,
  39835. hovering: Boolean,
  39836. item: {
  39837. type: definePropType(Object),
  39838. required: true
  39839. },
  39840. index: Number,
  39841. style: Object,
  39842. selected: Boolean,
  39843. created: Boolean
  39844. });
  39845. var selectV2Emits = {
  39846. [UPDATE_MODEL_EVENT]: (val) => true,
  39847. [CHANGE_EVENT]: (val) => true,
  39848. "remove-tag": (val) => true,
  39849. "visible-change": (visible) => true,
  39850. focus: (evt) => evt instanceof FocusEvent,
  39851. blur: (evt) => evt instanceof FocusEvent,
  39852. clear: () => true
  39853. };
  39854. var optionV2Emits = {
  39855. hover: (index) => isNumber2(index),
  39856. select: (val, index) => true
  39857. };
  39858. // node_modules/element-plus/es/components/select-v2/src/token.mjs
  39859. var selectV2InjectionKey = Symbol("ElSelectV2Injection");
  39860. // node_modules/element-plus/es/components/select-v2/src/option-item.mjs
  39861. var _sfc_main114 = defineComponent({
  39862. props: optionV2Props,
  39863. emits: optionV2Emits,
  39864. setup(props2, { emit }) {
  39865. const select = inject(selectV2InjectionKey);
  39866. const ns = useNamespace("select");
  39867. const { hoverItem, selectOptionClick } = useOption2(props2, { emit });
  39868. const { getLabel } = useProps(select.props);
  39869. const contentId = select.contentId;
  39870. return {
  39871. ns,
  39872. contentId,
  39873. hoverItem,
  39874. selectOptionClick,
  39875. getLabel
  39876. };
  39877. }
  39878. });
  39879. function _sfc_render16(_ctx, _cache, $props, $setup, $data, $options) {
  39880. return openBlock(), createElementBlock("li", {
  39881. id: `${_ctx.contentId}-${_ctx.index}`,
  39882. role: "option",
  39883. "aria-selected": _ctx.selected,
  39884. "aria-disabled": _ctx.disabled || void 0,
  39885. style: normalizeStyle(_ctx.style),
  39886. class: normalizeClass([
  39887. _ctx.ns.be("dropdown", "item"),
  39888. _ctx.ns.is("selected", _ctx.selected),
  39889. _ctx.ns.is("disabled", _ctx.disabled),
  39890. _ctx.ns.is("created", _ctx.created),
  39891. _ctx.ns.is("hovering", _ctx.hovering)
  39892. ]),
  39893. onMousemove: _ctx.hoverItem,
  39894. onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
  39895. }, [
  39896. renderSlot(_ctx.$slots, "default", {
  39897. item: _ctx.item,
  39898. index: _ctx.index,
  39899. disabled: _ctx.disabled
  39900. }, () => [
  39901. createBaseVNode("span", null, toDisplayString(_ctx.getLabel(_ctx.item)), 1)
  39902. ])
  39903. ], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick"]);
  39904. }
  39905. var OptionItem = _export_sfc(_sfc_main114, [["render", _sfc_render16], ["__file", "option-item.vue"]]);
  39906. // node_modules/memoize-one/dist/memoize-one.esm.js
  39907. var safeIsNaN = Number.isNaN || function ponyfill(value) {
  39908. return typeof value === "number" && value !== value;
  39909. };
  39910. function isEqual2(first, second) {
  39911. if (first === second) {
  39912. return true;
  39913. }
  39914. if (safeIsNaN(first) && safeIsNaN(second)) {
  39915. return true;
  39916. }
  39917. return false;
  39918. }
  39919. function areInputsEqual(newInputs, lastInputs) {
  39920. if (newInputs.length !== lastInputs.length) {
  39921. return false;
  39922. }
  39923. for (var i = 0; i < newInputs.length; i++) {
  39924. if (!isEqual2(newInputs[i], lastInputs[i])) {
  39925. return false;
  39926. }
  39927. }
  39928. return true;
  39929. }
  39930. function memoizeOne(resultFn, isEqual3) {
  39931. if (isEqual3 === void 0) {
  39932. isEqual3 = areInputsEqual;
  39933. }
  39934. var cache2 = null;
  39935. function memoized() {
  39936. var newArgs = [];
  39937. for (var _i = 0; _i < arguments.length; _i++) {
  39938. newArgs[_i] = arguments[_i];
  39939. }
  39940. if (cache2 && cache2.lastThis === this && isEqual3(newArgs, cache2.lastArgs)) {
  39941. return cache2.lastResult;
  39942. }
  39943. var lastResult = resultFn.apply(this, newArgs);
  39944. cache2 = {
  39945. lastResult,
  39946. lastArgs: newArgs,
  39947. lastThis: this
  39948. };
  39949. return lastResult;
  39950. }
  39951. memoized.clear = function clear() {
  39952. cache2 = null;
  39953. };
  39954. return memoized;
  39955. }
  39956. // node_modules/element-plus/es/components/virtual-list/src/hooks/use-cache.mjs
  39957. var useCache = () => {
  39958. const vm = getCurrentInstance();
  39959. const props2 = vm.proxy.$props;
  39960. return computed(() => {
  39961. const _getItemStyleCache = (_2, __, ___) => ({});
  39962. return props2.perfMode ? memoize_default(_getItemStyleCache) : memoizeOne(_getItemStyleCache);
  39963. });
  39964. };
  39965. // node_modules/element-plus/es/components/virtual-list/src/defaults.mjs
  39966. var DEFAULT_DYNAMIC_LIST_ITEM_SIZE = 50;
  39967. var ITEM_RENDER_EVT = "itemRendered";
  39968. var SCROLL_EVT = "scroll";
  39969. var FORWARD = "forward";
  39970. var BACKWARD = "backward";
  39971. var AUTO_ALIGNMENT = "auto";
  39972. var SMART_ALIGNMENT = "smart";
  39973. var START_ALIGNMENT = "start";
  39974. var CENTERED_ALIGNMENT = "center";
  39975. var END_ALIGNMENT = "end";
  39976. var HORIZONTAL = "horizontal";
  39977. var VERTICAL = "vertical";
  39978. var LTR = "ltr";
  39979. var RTL = "rtl";
  39980. var RTL_OFFSET_NAG = "negative";
  39981. var RTL_OFFSET_POS_ASC = "positive-ascending";
  39982. var RTL_OFFSET_POS_DESC = "positive-descending";
  39983. var ScrollbarSizeKey = {
  39984. [HORIZONTAL]: "height",
  39985. [VERTICAL]: "width"
  39986. };
  39987. var ScrollbarDirKey = {
  39988. [HORIZONTAL]: "left",
  39989. [VERTICAL]: "top"
  39990. };
  39991. var SCROLLBAR_MIN_SIZE = 20;
  39992. // node_modules/element-plus/es/components/virtual-list/src/hooks/use-wheel.mjs
  39993. var LayoutKeys = {
  39994. [HORIZONTAL]: "deltaX",
  39995. [VERTICAL]: "deltaY"
  39996. };
  39997. var useWheel = ({ atEndEdge, atStartEdge, layout: layout2 }, onWheelDelta) => {
  39998. let frameHandle;
  39999. let offset3 = 0;
  40000. const hasReachedEdge = (offset22) => {
  40001. const edgeReached = offset22 < 0 && atStartEdge.value || offset22 > 0 && atEndEdge.value;
  40002. return edgeReached;
  40003. };
  40004. const onWheel = (e) => {
  40005. cAF(frameHandle);
  40006. const newOffset = e[LayoutKeys[layout2.value]];
  40007. if (hasReachedEdge(offset3) && hasReachedEdge(offset3 + newOffset))
  40008. return;
  40009. offset3 += newOffset;
  40010. if (!isFirefox()) {
  40011. e.preventDefault();
  40012. }
  40013. frameHandle = rAF(() => {
  40014. onWheelDelta(offset3);
  40015. offset3 = 0;
  40016. });
  40017. };
  40018. return {
  40019. hasReachedEdge,
  40020. onWheel
  40021. };
  40022. };
  40023. // node_modules/element-plus/es/components/virtual-list/src/props.mjs
  40024. var itemSize = buildProp({
  40025. type: definePropType([Number, Function]),
  40026. required: true
  40027. });
  40028. var estimatedItemSize = buildProp({
  40029. type: Number
  40030. });
  40031. var cache = buildProp({
  40032. type: Number,
  40033. default: 2
  40034. });
  40035. var direction = buildProp({
  40036. type: String,
  40037. values: ["ltr", "rtl"],
  40038. default: "ltr"
  40039. });
  40040. var initScrollOffset = buildProp({
  40041. type: Number,
  40042. default: 0
  40043. });
  40044. var total = buildProp({
  40045. type: Number,
  40046. required: true
  40047. });
  40048. var layout = buildProp({
  40049. type: String,
  40050. values: ["horizontal", "vertical"],
  40051. default: VERTICAL
  40052. });
  40053. var virtualizedProps = buildProps({
  40054. className: {
  40055. type: String,
  40056. default: ""
  40057. },
  40058. containerElement: {
  40059. type: definePropType([String, Object]),
  40060. default: "div"
  40061. },
  40062. data: {
  40063. type: definePropType(Array),
  40064. default: () => mutable([])
  40065. },
  40066. direction,
  40067. height: {
  40068. type: [String, Number],
  40069. required: true
  40070. },
  40071. innerElement: {
  40072. type: [String, Object],
  40073. default: "div"
  40074. },
  40075. innerProps: {
  40076. type: definePropType(Object),
  40077. default: () => ({})
  40078. },
  40079. style: {
  40080. type: definePropType([Object, String, Array])
  40081. },
  40082. useIsScrolling: Boolean,
  40083. width: {
  40084. type: [Number, String],
  40085. required: false
  40086. },
  40087. perfMode: {
  40088. type: Boolean,
  40089. default: true
  40090. },
  40091. scrollbarAlwaysOn: Boolean
  40092. });
  40093. var virtualizedListProps = buildProps({
  40094. cache,
  40095. estimatedItemSize,
  40096. layout,
  40097. initScrollOffset,
  40098. total,
  40099. itemSize,
  40100. ...virtualizedProps
  40101. });
  40102. var scrollbarSize = {
  40103. type: Number,
  40104. default: 6
  40105. };
  40106. var startGap = { type: Number, default: 0 };
  40107. var endGap = { type: Number, default: 2 };
  40108. var virtualizedGridProps = buildProps({
  40109. columnCache: cache,
  40110. columnWidth: itemSize,
  40111. estimatedColumnWidth: estimatedItemSize,
  40112. estimatedRowHeight: estimatedItemSize,
  40113. initScrollLeft: initScrollOffset,
  40114. initScrollTop: initScrollOffset,
  40115. itemKey: {
  40116. type: definePropType(Function),
  40117. default: ({
  40118. columnIndex,
  40119. rowIndex
  40120. }) => `${rowIndex}:${columnIndex}`
  40121. },
  40122. rowCache: cache,
  40123. rowHeight: itemSize,
  40124. totalColumn: total,
  40125. totalRow: total,
  40126. hScrollbarSize: scrollbarSize,
  40127. vScrollbarSize: scrollbarSize,
  40128. scrollbarStartGap: startGap,
  40129. scrollbarEndGap: endGap,
  40130. role: String,
  40131. ...virtualizedProps
  40132. });
  40133. var virtualizedScrollbarProps = buildProps({
  40134. alwaysOn: Boolean,
  40135. class: String,
  40136. layout,
  40137. total,
  40138. ratio: {
  40139. type: Number,
  40140. required: true
  40141. },
  40142. clientSize: {
  40143. type: Number,
  40144. required: true
  40145. },
  40146. scrollFrom: {
  40147. type: Number,
  40148. required: true
  40149. },
  40150. scrollbarSize,
  40151. startGap,
  40152. endGap,
  40153. visible: Boolean
  40154. });
  40155. // node_modules/element-plus/es/components/virtual-list/src/utils.mjs
  40156. var getScrollDir = (prev, cur) => prev < cur ? FORWARD : BACKWARD;
  40157. var isHorizontal = (dir) => dir === LTR || dir === RTL || dir === HORIZONTAL;
  40158. var isRTL = (dir) => dir === RTL;
  40159. var cachedRTLResult = null;
  40160. function getRTLOffsetType(recalculate = false) {
  40161. if (cachedRTLResult === null || recalculate) {
  40162. const outerDiv = document.createElement("div");
  40163. const outerStyle = outerDiv.style;
  40164. outerStyle.width = "50px";
  40165. outerStyle.height = "50px";
  40166. outerStyle.overflow = "scroll";
  40167. outerStyle.direction = "rtl";
  40168. const innerDiv = document.createElement("div");
  40169. const innerStyle = innerDiv.style;
  40170. innerStyle.width = "100px";
  40171. innerStyle.height = "100px";
  40172. outerDiv.appendChild(innerDiv);
  40173. document.body.appendChild(outerDiv);
  40174. if (outerDiv.scrollLeft > 0) {
  40175. cachedRTLResult = RTL_OFFSET_POS_DESC;
  40176. } else {
  40177. outerDiv.scrollLeft = 1;
  40178. if (outerDiv.scrollLeft === 0) {
  40179. cachedRTLResult = RTL_OFFSET_NAG;
  40180. } else {
  40181. cachedRTLResult = RTL_OFFSET_POS_ASC;
  40182. }
  40183. }
  40184. document.body.removeChild(outerDiv);
  40185. return cachedRTLResult;
  40186. }
  40187. return cachedRTLResult;
  40188. }
  40189. function renderThumbStyle2({ move, size: size3, bar }, layout2) {
  40190. const style = {};
  40191. const translate2 = `translate${bar.axis}(${move}px)`;
  40192. style[bar.size] = size3;
  40193. style.transform = translate2;
  40194. if (layout2 === "horizontal") {
  40195. style.height = "100%";
  40196. } else {
  40197. style.width = "100%";
  40198. }
  40199. return style;
  40200. }
  40201. // node_modules/element-plus/es/components/virtual-list/src/components/scrollbar.mjs
  40202. var ScrollBar = defineComponent({
  40203. name: "ElVirtualScrollBar",
  40204. props: virtualizedScrollbarProps,
  40205. emits: ["scroll", "start-move", "stop-move"],
  40206. setup(props2, { emit }) {
  40207. const GAP2 = computed(() => props2.startGap + props2.endGap);
  40208. const nsVirtualScrollbar = useNamespace("virtual-scrollbar");
  40209. const nsScrollbar = useNamespace("scrollbar");
  40210. const trackRef = ref();
  40211. const thumbRef = ref();
  40212. let frameHandle = null;
  40213. let onselectstartStore = null;
  40214. const state = reactive({
  40215. isDragging: false,
  40216. traveled: 0
  40217. });
  40218. const bar = computed(() => BAR_MAP[props2.layout]);
  40219. const trackSize = computed(() => props2.clientSize - unref(GAP2));
  40220. const trackStyle = computed(() => ({
  40221. position: "absolute",
  40222. width: `${HORIZONTAL === props2.layout ? trackSize.value : props2.scrollbarSize}px`,
  40223. height: `${HORIZONTAL === props2.layout ? props2.scrollbarSize : trackSize.value}px`,
  40224. [ScrollbarDirKey[props2.layout]]: "2px",
  40225. right: "2px",
  40226. bottom: "2px",
  40227. borderRadius: "4px"
  40228. }));
  40229. const thumbSize = computed(() => {
  40230. const ratio = props2.ratio;
  40231. if (ratio >= 100) {
  40232. return Number.POSITIVE_INFINITY;
  40233. }
  40234. if (ratio >= 50) {
  40235. return ratio * trackSize.value / 100;
  40236. }
  40237. const SCROLLBAR_MAX_SIZE = trackSize.value / 3;
  40238. return Math.floor(Math.min(Math.max(ratio * trackSize.value / 100, SCROLLBAR_MIN_SIZE), SCROLLBAR_MAX_SIZE));
  40239. });
  40240. const thumbStyle = computed(() => {
  40241. if (!Number.isFinite(thumbSize.value)) {
  40242. return {
  40243. display: "none"
  40244. };
  40245. }
  40246. const thumb = `${thumbSize.value}px`;
  40247. const style = renderThumbStyle2({
  40248. bar: bar.value,
  40249. size: thumb,
  40250. move: state.traveled
  40251. }, props2.layout);
  40252. return style;
  40253. });
  40254. const totalSteps = computed(() => Math.ceil(props2.clientSize - thumbSize.value - unref(GAP2)));
  40255. const attachEvents2 = () => {
  40256. window.addEventListener("mousemove", onMouseMove);
  40257. window.addEventListener("mouseup", onMouseUp);
  40258. const thumbEl = unref(thumbRef);
  40259. if (!thumbEl)
  40260. return;
  40261. onselectstartStore = document.onselectstart;
  40262. document.onselectstart = () => false;
  40263. thumbEl.addEventListener("touchmove", onMouseMove, { passive: true });
  40264. thumbEl.addEventListener("touchend", onMouseUp);
  40265. };
  40266. const detachEvents = () => {
  40267. window.removeEventListener("mousemove", onMouseMove);
  40268. window.removeEventListener("mouseup", onMouseUp);
  40269. document.onselectstart = onselectstartStore;
  40270. onselectstartStore = null;
  40271. const thumbEl = unref(thumbRef);
  40272. if (!thumbEl)
  40273. return;
  40274. thumbEl.removeEventListener("touchmove", onMouseMove);
  40275. thumbEl.removeEventListener("touchend", onMouseUp);
  40276. };
  40277. const onThumbMouseDown = (e) => {
  40278. e.stopImmediatePropagation();
  40279. if (e.ctrlKey || [1, 2].includes(e.button)) {
  40280. return;
  40281. }
  40282. state.isDragging = true;
  40283. state[bar.value.axis] = e.currentTarget[bar.value.offset] - (e[bar.value.client] - e.currentTarget.getBoundingClientRect()[bar.value.direction]);
  40284. emit("start-move");
  40285. attachEvents2();
  40286. };
  40287. const onMouseUp = () => {
  40288. state.isDragging = false;
  40289. state[bar.value.axis] = 0;
  40290. emit("stop-move");
  40291. detachEvents();
  40292. };
  40293. const onMouseMove = (e) => {
  40294. const { isDragging: isDragging2 } = state;
  40295. if (!isDragging2)
  40296. return;
  40297. if (!thumbRef.value || !trackRef.value)
  40298. return;
  40299. const prevPage = state[bar.value.axis];
  40300. if (!prevPage)
  40301. return;
  40302. cAF(frameHandle);
  40303. const offset3 = (trackRef.value.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]) * -1;
  40304. const thumbClickPosition = thumbRef.value[bar.value.offset] - prevPage;
  40305. const distance = offset3 - thumbClickPosition;
  40306. frameHandle = rAF(() => {
  40307. state.traveled = Math.max(0, Math.min(distance, totalSteps.value));
  40308. emit("scroll", distance, totalSteps.value);
  40309. });
  40310. };
  40311. const clickTrackHandler = (e) => {
  40312. const offset3 = Math.abs(e.target.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]);
  40313. const thumbHalf = thumbRef.value[bar.value.offset] / 2;
  40314. const distance = offset3 - thumbHalf;
  40315. state.traveled = Math.max(0, Math.min(distance, totalSteps.value));
  40316. emit("scroll", distance, totalSteps.value);
  40317. };
  40318. watch(() => props2.scrollFrom, (v2) => {
  40319. if (state.isDragging)
  40320. return;
  40321. state.traveled = Math.ceil(v2 * totalSteps.value);
  40322. });
  40323. onBeforeUnmount(() => {
  40324. detachEvents();
  40325. });
  40326. return () => {
  40327. return h("div", {
  40328. role: "presentation",
  40329. ref: trackRef,
  40330. class: [
  40331. nsVirtualScrollbar.b(),
  40332. props2.class,
  40333. (props2.alwaysOn || state.isDragging) && "always-on"
  40334. ],
  40335. style: trackStyle.value,
  40336. onMousedown: withModifiers(clickTrackHandler, ["stop", "prevent"]),
  40337. onTouchstartPrevent: onThumbMouseDown
  40338. }, h("div", {
  40339. ref: thumbRef,
  40340. class: nsScrollbar.e("thumb"),
  40341. style: thumbStyle.value,
  40342. onMousedown: onThumbMouseDown
  40343. }, []));
  40344. };
  40345. }
  40346. });
  40347. // node_modules/element-plus/es/components/virtual-list/src/builders/build-list.mjs
  40348. var createList = ({
  40349. name,
  40350. getOffset: getOffset3,
  40351. getItemSize,
  40352. getItemOffset,
  40353. getEstimatedTotalSize: getEstimatedTotalSize2,
  40354. getStartIndexForOffset,
  40355. getStopIndexForStartIndex,
  40356. initCache,
  40357. clearCache,
  40358. validateProps
  40359. }) => {
  40360. return defineComponent({
  40361. name: name != null ? name : "ElVirtualList",
  40362. props: virtualizedListProps,
  40363. emits: [ITEM_RENDER_EVT, SCROLL_EVT],
  40364. setup(props2, { emit, expose }) {
  40365. validateProps(props2);
  40366. const instance = getCurrentInstance();
  40367. const ns = useNamespace("vl");
  40368. const dynamicSizeCache = ref(initCache(props2, instance));
  40369. const getItemStyleCache = useCache();
  40370. const windowRef = ref();
  40371. const innerRef = ref();
  40372. const scrollbarRef = ref();
  40373. const states = ref({
  40374. isScrolling: false,
  40375. scrollDir: "forward",
  40376. scrollOffset: isNumber2(props2.initScrollOffset) ? props2.initScrollOffset : 0,
  40377. updateRequested: false,
  40378. isScrollbarDragging: false,
  40379. scrollbarAlwaysOn: props2.scrollbarAlwaysOn
  40380. });
  40381. const itemsToRender = computed(() => {
  40382. const { total: total2, cache: cache2 } = props2;
  40383. const { isScrolling, scrollDir, scrollOffset } = unref(states);
  40384. if (total2 === 0) {
  40385. return [0, 0, 0, 0];
  40386. }
  40387. const startIndex = getStartIndexForOffset(props2, scrollOffset, unref(dynamicSizeCache));
  40388. const stopIndex = getStopIndexForStartIndex(props2, startIndex, scrollOffset, unref(dynamicSizeCache));
  40389. const cacheBackward = !isScrolling || scrollDir === BACKWARD ? Math.max(1, cache2) : 1;
  40390. const cacheForward = !isScrolling || scrollDir === FORWARD ? Math.max(1, cache2) : 1;
  40391. return [
  40392. Math.max(0, startIndex - cacheBackward),
  40393. Math.max(0, Math.min(total2 - 1, stopIndex + cacheForward)),
  40394. startIndex,
  40395. stopIndex
  40396. ];
  40397. });
  40398. const estimatedTotalSize = computed(() => getEstimatedTotalSize2(props2, unref(dynamicSizeCache)));
  40399. const _isHorizontal = computed(() => isHorizontal(props2.layout));
  40400. const windowStyle = computed(() => [
  40401. {
  40402. position: "relative",
  40403. [`overflow-${_isHorizontal.value ? "x" : "y"}`]: "scroll",
  40404. WebkitOverflowScrolling: "touch",
  40405. willChange: "transform"
  40406. },
  40407. {
  40408. direction: props2.direction,
  40409. height: isNumber2(props2.height) ? `${props2.height}px` : props2.height,
  40410. width: isNumber2(props2.width) ? `${props2.width}px` : props2.width
  40411. },
  40412. props2.style
  40413. ]);
  40414. const innerStyle = computed(() => {
  40415. const size3 = unref(estimatedTotalSize);
  40416. const horizontal = unref(_isHorizontal);
  40417. return {
  40418. height: horizontal ? "100%" : `${size3}px`,
  40419. pointerEvents: unref(states).isScrolling ? "none" : void 0,
  40420. width: horizontal ? `${size3}px` : "100%"
  40421. };
  40422. });
  40423. const clientSize = computed(() => _isHorizontal.value ? props2.width : props2.height);
  40424. const { onWheel } = useWheel({
  40425. atStartEdge: computed(() => states.value.scrollOffset <= 0),
  40426. atEndEdge: computed(() => states.value.scrollOffset >= estimatedTotalSize.value),
  40427. layout: computed(() => props2.layout)
  40428. }, (offset3) => {
  40429. var _a2, _b;
  40430. (_b = (_a2 = scrollbarRef.value).onMouseUp) == null ? void 0 : _b.call(_a2);
  40431. scrollTo(Math.min(states.value.scrollOffset + offset3, estimatedTotalSize.value - clientSize.value));
  40432. });
  40433. useEventListener(windowRef, "wheel", onWheel, {
  40434. passive: false
  40435. });
  40436. const emitEvents = () => {
  40437. const { total: total2 } = props2;
  40438. if (total2 > 0) {
  40439. const [cacheStart, cacheEnd, visibleStart, visibleEnd] = unref(itemsToRender);
  40440. emit(ITEM_RENDER_EVT, cacheStart, cacheEnd, visibleStart, visibleEnd);
  40441. }
  40442. const { scrollDir, scrollOffset, updateRequested } = unref(states);
  40443. emit(SCROLL_EVT, scrollDir, scrollOffset, updateRequested);
  40444. };
  40445. const scrollVertically = (e) => {
  40446. const { clientHeight, scrollHeight, scrollTop } = e.currentTarget;
  40447. const _states = unref(states);
  40448. if (_states.scrollOffset === scrollTop) {
  40449. return;
  40450. }
  40451. const scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
  40452. states.value = {
  40453. ..._states,
  40454. isScrolling: true,
  40455. scrollDir: getScrollDir(_states.scrollOffset, scrollOffset),
  40456. scrollOffset,
  40457. updateRequested: false
  40458. };
  40459. nextTick(resetIsScrolling);
  40460. };
  40461. const scrollHorizontally = (e) => {
  40462. const { clientWidth, scrollLeft, scrollWidth } = e.currentTarget;
  40463. const _states = unref(states);
  40464. if (_states.scrollOffset === scrollLeft) {
  40465. return;
  40466. }
  40467. const { direction: direction2 } = props2;
  40468. let scrollOffset = scrollLeft;
  40469. if (direction2 === RTL) {
  40470. switch (getRTLOffsetType()) {
  40471. case RTL_OFFSET_NAG: {
  40472. scrollOffset = -scrollLeft;
  40473. break;
  40474. }
  40475. case RTL_OFFSET_POS_DESC: {
  40476. scrollOffset = scrollWidth - clientWidth - scrollLeft;
  40477. break;
  40478. }
  40479. }
  40480. }
  40481. scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
  40482. states.value = {
  40483. ..._states,
  40484. isScrolling: true,
  40485. scrollDir: getScrollDir(_states.scrollOffset, scrollOffset),
  40486. scrollOffset,
  40487. updateRequested: false
  40488. };
  40489. nextTick(resetIsScrolling);
  40490. };
  40491. const onScroll = (e) => {
  40492. unref(_isHorizontal) ? scrollHorizontally(e) : scrollVertically(e);
  40493. emitEvents();
  40494. };
  40495. const onScrollbarScroll = (distanceToGo, totalSteps) => {
  40496. const offset3 = (estimatedTotalSize.value - clientSize.value) / totalSteps * distanceToGo;
  40497. scrollTo(Math.min(estimatedTotalSize.value - clientSize.value, offset3));
  40498. };
  40499. const scrollTo = (offset3) => {
  40500. offset3 = Math.max(offset3, 0);
  40501. if (offset3 === unref(states).scrollOffset) {
  40502. return;
  40503. }
  40504. states.value = {
  40505. ...unref(states),
  40506. scrollOffset: offset3,
  40507. scrollDir: getScrollDir(unref(states).scrollOffset, offset3),
  40508. updateRequested: true
  40509. };
  40510. nextTick(resetIsScrolling);
  40511. };
  40512. const scrollToItem = (idx, alignment = AUTO_ALIGNMENT) => {
  40513. const { scrollOffset } = unref(states);
  40514. idx = Math.max(0, Math.min(idx, props2.total - 1));
  40515. scrollTo(getOffset3(props2, idx, alignment, scrollOffset, unref(dynamicSizeCache)));
  40516. };
  40517. const getItemStyle = (idx) => {
  40518. const { direction: direction2, itemSize: itemSize3, layout: layout2 } = props2;
  40519. const itemStyleCache = getItemStyleCache.value(clearCache && itemSize3, clearCache && layout2, clearCache && direction2);
  40520. let style;
  40521. if (hasOwn(itemStyleCache, String(idx))) {
  40522. style = itemStyleCache[idx];
  40523. } else {
  40524. const offset3 = getItemOffset(props2, idx, unref(dynamicSizeCache));
  40525. const size3 = getItemSize(props2, idx, unref(dynamicSizeCache));
  40526. const horizontal = unref(_isHorizontal);
  40527. const isRtl = direction2 === RTL;
  40528. const offsetHorizontal = horizontal ? offset3 : 0;
  40529. itemStyleCache[idx] = style = {
  40530. position: "absolute",
  40531. left: isRtl ? void 0 : `${offsetHorizontal}px`,
  40532. right: isRtl ? `${offsetHorizontal}px` : void 0,
  40533. top: !horizontal ? `${offset3}px` : 0,
  40534. height: !horizontal ? `${size3}px` : "100%",
  40535. width: horizontal ? `${size3}px` : "100%"
  40536. };
  40537. }
  40538. return style;
  40539. };
  40540. const resetIsScrolling = () => {
  40541. states.value.isScrolling = false;
  40542. nextTick(() => {
  40543. getItemStyleCache.value(-1, null, null);
  40544. });
  40545. };
  40546. const resetScrollTop = () => {
  40547. const window2 = windowRef.value;
  40548. if (window2) {
  40549. window2.scrollTop = 0;
  40550. }
  40551. };
  40552. onMounted(() => {
  40553. if (!isClient)
  40554. return;
  40555. const { initScrollOffset: initScrollOffset2 } = props2;
  40556. const windowElement = unref(windowRef);
  40557. if (isNumber2(initScrollOffset2) && windowElement) {
  40558. if (unref(_isHorizontal)) {
  40559. windowElement.scrollLeft = initScrollOffset2;
  40560. } else {
  40561. windowElement.scrollTop = initScrollOffset2;
  40562. }
  40563. }
  40564. emitEvents();
  40565. });
  40566. onUpdated(() => {
  40567. const { direction: direction2, layout: layout2 } = props2;
  40568. const { scrollOffset, updateRequested } = unref(states);
  40569. const windowElement = unref(windowRef);
  40570. if (updateRequested && windowElement) {
  40571. if (layout2 === HORIZONTAL) {
  40572. if (direction2 === RTL) {
  40573. switch (getRTLOffsetType()) {
  40574. case RTL_OFFSET_NAG: {
  40575. windowElement.scrollLeft = -scrollOffset;
  40576. break;
  40577. }
  40578. case RTL_OFFSET_POS_ASC: {
  40579. windowElement.scrollLeft = scrollOffset;
  40580. break;
  40581. }
  40582. default: {
  40583. const { clientWidth, scrollWidth } = windowElement;
  40584. windowElement.scrollLeft = scrollWidth - clientWidth - scrollOffset;
  40585. break;
  40586. }
  40587. }
  40588. } else {
  40589. windowElement.scrollLeft = scrollOffset;
  40590. }
  40591. } else {
  40592. windowElement.scrollTop = scrollOffset;
  40593. }
  40594. }
  40595. });
  40596. onActivated(() => {
  40597. unref(windowRef).scrollTop = unref(states).scrollOffset;
  40598. });
  40599. const api = {
  40600. ns,
  40601. clientSize,
  40602. estimatedTotalSize,
  40603. windowStyle,
  40604. windowRef,
  40605. innerRef,
  40606. innerStyle,
  40607. itemsToRender,
  40608. scrollbarRef,
  40609. states,
  40610. getItemStyle,
  40611. onScroll,
  40612. onScrollbarScroll,
  40613. onWheel,
  40614. scrollTo,
  40615. scrollToItem,
  40616. resetScrollTop
  40617. };
  40618. expose({
  40619. windowRef,
  40620. innerRef,
  40621. getItemStyleCache,
  40622. scrollTo,
  40623. scrollToItem,
  40624. resetScrollTop,
  40625. states
  40626. });
  40627. return api;
  40628. },
  40629. render(ctx) {
  40630. var _a2;
  40631. const {
  40632. $slots,
  40633. className,
  40634. clientSize,
  40635. containerElement,
  40636. data,
  40637. getItemStyle,
  40638. innerElement,
  40639. itemsToRender,
  40640. innerStyle,
  40641. layout: layout2,
  40642. total: total2,
  40643. onScroll,
  40644. onScrollbarScroll,
  40645. states,
  40646. useIsScrolling,
  40647. windowStyle,
  40648. ns
  40649. } = ctx;
  40650. const [start, end] = itemsToRender;
  40651. const Container2 = resolveDynamicComponent(containerElement);
  40652. const Inner = resolveDynamicComponent(innerElement);
  40653. const children = [];
  40654. if (total2 > 0) {
  40655. for (let i = start; i <= end; i++) {
  40656. children.push(h(Fragment, { key: i }, (_a2 = $slots.default) == null ? void 0 : _a2.call($slots, {
  40657. data,
  40658. index: i,
  40659. isScrolling: useIsScrolling ? states.isScrolling : void 0,
  40660. style: getItemStyle(i)
  40661. })));
  40662. }
  40663. }
  40664. const InnerNode = [
  40665. h(Inner, mergeProps(ctx.innerProps, {
  40666. style: innerStyle,
  40667. ref: "innerRef"
  40668. }), !isString(Inner) ? {
  40669. default: () => children
  40670. } : children)
  40671. ];
  40672. const scrollbar = h(ScrollBar, {
  40673. ref: "scrollbarRef",
  40674. clientSize,
  40675. layout: layout2,
  40676. onScroll: onScrollbarScroll,
  40677. ratio: clientSize * 100 / this.estimatedTotalSize,
  40678. scrollFrom: states.scrollOffset / (this.estimatedTotalSize - clientSize),
  40679. total: total2,
  40680. alwaysOn: states.scrollbarAlwaysOn
  40681. });
  40682. const listContainer = h(Container2, {
  40683. class: [ns.e("window"), className],
  40684. style: windowStyle,
  40685. onScroll,
  40686. ref: "windowRef",
  40687. key: 0
  40688. }, !isString(Container2) ? { default: () => [InnerNode] } : [InnerNode]);
  40689. return h("div", {
  40690. key: 0,
  40691. class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
  40692. }, [listContainer, scrollbar]);
  40693. }
  40694. });
  40695. };
  40696. // node_modules/element-plus/es/components/virtual-list/src/components/fixed-size-list.mjs
  40697. var FixedSizeList = createList({
  40698. name: "ElFixedSizeList",
  40699. getItemOffset: ({ itemSize: itemSize3 }, index) => index * itemSize3,
  40700. getItemSize: ({ itemSize: itemSize3 }) => itemSize3,
  40701. getEstimatedTotalSize: ({ total: total2, itemSize: itemSize3 }) => itemSize3 * total2,
  40702. getOffset: ({ height, total: total2, itemSize: itemSize3, layout: layout2, width }, index, alignment, scrollOffset) => {
  40703. const size3 = isHorizontal(layout2) ? width : height;
  40704. const lastItemOffset = Math.max(0, total2 * itemSize3 - size3);
  40705. const maxOffset = Math.min(lastItemOffset, index * itemSize3);
  40706. const minOffset = Math.max(0, (index + 1) * itemSize3 - size3);
  40707. if (alignment === SMART_ALIGNMENT) {
  40708. if (scrollOffset >= minOffset - size3 && scrollOffset <= maxOffset + size3) {
  40709. alignment = AUTO_ALIGNMENT;
  40710. } else {
  40711. alignment = CENTERED_ALIGNMENT;
  40712. }
  40713. }
  40714. switch (alignment) {
  40715. case START_ALIGNMENT: {
  40716. return maxOffset;
  40717. }
  40718. case END_ALIGNMENT: {
  40719. return minOffset;
  40720. }
  40721. case CENTERED_ALIGNMENT: {
  40722. const middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
  40723. if (middleOffset < Math.ceil(size3 / 2)) {
  40724. return 0;
  40725. } else if (middleOffset > lastItemOffset + Math.floor(size3 / 2)) {
  40726. return lastItemOffset;
  40727. } else {
  40728. return middleOffset;
  40729. }
  40730. }
  40731. case AUTO_ALIGNMENT:
  40732. default: {
  40733. if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
  40734. return scrollOffset;
  40735. } else if (scrollOffset < minOffset) {
  40736. return minOffset;
  40737. } else {
  40738. return maxOffset;
  40739. }
  40740. }
  40741. }
  40742. },
  40743. getStartIndexForOffset: ({ total: total2, itemSize: itemSize3 }, offset3) => Math.max(0, Math.min(total2 - 1, Math.floor(offset3 / itemSize3))),
  40744. getStopIndexForStartIndex: ({ height, total: total2, itemSize: itemSize3, layout: layout2, width }, startIndex, scrollOffset) => {
  40745. const offset3 = startIndex * itemSize3;
  40746. const size3 = isHorizontal(layout2) ? width : height;
  40747. const numVisibleItems = Math.ceil((size3 + scrollOffset - offset3) / itemSize3);
  40748. return Math.max(0, Math.min(total2 - 1, startIndex + numVisibleItems - 1));
  40749. },
  40750. initCache() {
  40751. return void 0;
  40752. },
  40753. clearCache: true,
  40754. validateProps() {
  40755. }
  40756. });
  40757. // node_modules/element-plus/es/components/virtual-list/src/components/dynamic-size-list.mjs
  40758. var getItemFromCache = (props2, index, listCache) => {
  40759. const { itemSize: itemSize3 } = props2;
  40760. const { items, lastVisitedIndex } = listCache;
  40761. if (index > lastVisitedIndex) {
  40762. let offset3 = 0;
  40763. if (lastVisitedIndex >= 0) {
  40764. const item = items[lastVisitedIndex];
  40765. offset3 = item.offset + item.size;
  40766. }
  40767. for (let i = lastVisitedIndex + 1; i <= index; i++) {
  40768. const size3 = itemSize3(i);
  40769. items[i] = {
  40770. offset: offset3,
  40771. size: size3
  40772. };
  40773. offset3 += size3;
  40774. }
  40775. listCache.lastVisitedIndex = index;
  40776. }
  40777. return items[index];
  40778. };
  40779. var findItem = (props2, listCache, offset3) => {
  40780. const { items, lastVisitedIndex } = listCache;
  40781. const lastVisitedOffset = lastVisitedIndex > 0 ? items[lastVisitedIndex].offset : 0;
  40782. if (lastVisitedOffset >= offset3) {
  40783. return bs(props2, listCache, 0, lastVisitedIndex, offset3);
  40784. }
  40785. return es(props2, listCache, Math.max(0, lastVisitedIndex), offset3);
  40786. };
  40787. var bs = (props2, listCache, low, high, offset3) => {
  40788. while (low <= high) {
  40789. const mid = low + Math.floor((high - low) / 2);
  40790. const currentOffset = getItemFromCache(props2, mid, listCache).offset;
  40791. if (currentOffset === offset3) {
  40792. return mid;
  40793. } else if (currentOffset < offset3) {
  40794. low = mid + 1;
  40795. } else if (currentOffset > offset3) {
  40796. high = mid - 1;
  40797. }
  40798. }
  40799. return Math.max(0, low - 1);
  40800. };
  40801. var es = (props2, listCache, index, offset3) => {
  40802. const { total: total2 } = props2;
  40803. let exponent = 1;
  40804. while (index < total2 && getItemFromCache(props2, index, listCache).offset < offset3) {
  40805. index += exponent;
  40806. exponent *= 2;
  40807. }
  40808. return bs(props2, listCache, Math.floor(index / 2), Math.min(index, total2 - 1), offset3);
  40809. };
  40810. var getEstimatedTotalSize = ({ total: total2 }, { items, estimatedItemSize: estimatedItemSize2, lastVisitedIndex }) => {
  40811. let totalSizeOfMeasuredItems = 0;
  40812. if (lastVisitedIndex >= total2) {
  40813. lastVisitedIndex = total2 - 1;
  40814. }
  40815. if (lastVisitedIndex >= 0) {
  40816. const item = items[lastVisitedIndex];
  40817. totalSizeOfMeasuredItems = item.offset + item.size;
  40818. }
  40819. const numUnmeasuredItems = total2 - lastVisitedIndex - 1;
  40820. const totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize2;
  40821. return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
  40822. };
  40823. var DynamicSizeList = createList({
  40824. name: "ElDynamicSizeList",
  40825. getItemOffset: (props2, index, listCache) => getItemFromCache(props2, index, listCache).offset,
  40826. getItemSize: (_2, index, { items }) => items[index].size,
  40827. getEstimatedTotalSize,
  40828. getOffset: (props2, index, alignment, scrollOffset, listCache) => {
  40829. const { height, layout: layout2, width } = props2;
  40830. const size3 = isHorizontal(layout2) ? width : height;
  40831. const item = getItemFromCache(props2, index, listCache);
  40832. const estimatedTotalSize = getEstimatedTotalSize(props2, listCache);
  40833. const maxOffset = Math.max(0, Math.min(estimatedTotalSize - size3, item.offset));
  40834. const minOffset = Math.max(0, item.offset - size3 + item.size);
  40835. if (alignment === SMART_ALIGNMENT) {
  40836. if (scrollOffset >= minOffset - size3 && scrollOffset <= maxOffset + size3) {
  40837. alignment = AUTO_ALIGNMENT;
  40838. } else {
  40839. alignment = CENTERED_ALIGNMENT;
  40840. }
  40841. }
  40842. switch (alignment) {
  40843. case START_ALIGNMENT: {
  40844. return maxOffset;
  40845. }
  40846. case END_ALIGNMENT: {
  40847. return minOffset;
  40848. }
  40849. case CENTERED_ALIGNMENT: {
  40850. return Math.round(minOffset + (maxOffset - minOffset) / 2);
  40851. }
  40852. case AUTO_ALIGNMENT:
  40853. default: {
  40854. if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
  40855. return scrollOffset;
  40856. } else if (scrollOffset < minOffset) {
  40857. return minOffset;
  40858. } else {
  40859. return maxOffset;
  40860. }
  40861. }
  40862. }
  40863. },
  40864. getStartIndexForOffset: (props2, offset3, listCache) => findItem(props2, listCache, offset3),
  40865. getStopIndexForStartIndex: (props2, startIndex, scrollOffset, listCache) => {
  40866. const { height, total: total2, layout: layout2, width } = props2;
  40867. const size3 = isHorizontal(layout2) ? width : height;
  40868. const item = getItemFromCache(props2, startIndex, listCache);
  40869. const maxOffset = scrollOffset + size3;
  40870. let offset3 = item.offset + item.size;
  40871. let stopIndex = startIndex;
  40872. while (stopIndex < total2 - 1 && offset3 < maxOffset) {
  40873. stopIndex++;
  40874. offset3 += getItemFromCache(props2, stopIndex, listCache).size;
  40875. }
  40876. return stopIndex;
  40877. },
  40878. initCache({ estimatedItemSize: estimatedItemSize2 = DEFAULT_DYNAMIC_LIST_ITEM_SIZE }, instance) {
  40879. const cache2 = {
  40880. items: {},
  40881. estimatedItemSize: estimatedItemSize2,
  40882. lastVisitedIndex: -1
  40883. };
  40884. cache2.clearCacheAfterIndex = (index, forceUpdate = true) => {
  40885. var _a2, _b;
  40886. cache2.lastVisitedIndex = Math.min(cache2.lastVisitedIndex, index - 1);
  40887. (_a2 = instance.exposed) == null ? void 0 : _a2.getItemStyleCache(-1);
  40888. if (forceUpdate) {
  40889. (_b = instance.proxy) == null ? void 0 : _b.$forceUpdate();
  40890. }
  40891. };
  40892. return cache2;
  40893. },
  40894. clearCache: false,
  40895. validateProps: ({ itemSize: itemSize3 }) => {
  40896. }
  40897. });
  40898. // node_modules/element-plus/es/components/select-v2/src/select-dropdown.mjs
  40899. var props = {
  40900. loading: Boolean,
  40901. data: {
  40902. type: Array,
  40903. required: true
  40904. },
  40905. hoveringIndex: Number,
  40906. width: Number,
  40907. id: String,
  40908. ariaLabel: String
  40909. };
  40910. var ElSelectMenu2 = defineComponent({
  40911. name: "ElSelectDropdown",
  40912. props,
  40913. setup(props2, {
  40914. slots,
  40915. expose
  40916. }) {
  40917. const select = inject(selectV2InjectionKey);
  40918. const ns = useNamespace("select");
  40919. const {
  40920. getLabel,
  40921. getValue: getValue3,
  40922. getDisabled
  40923. } = useProps(select.props);
  40924. const cachedHeights = ref([]);
  40925. const listRef = ref();
  40926. const size3 = computed(() => props2.data.length);
  40927. watch(() => size3.value, () => {
  40928. var _a2, _b;
  40929. (_b = (_a2 = select.tooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  40930. });
  40931. const isSized = computed(() => isUndefined2(select.props.estimatedOptionHeight));
  40932. const listProps = computed(() => {
  40933. if (isSized.value) {
  40934. return {
  40935. itemSize: select.props.itemHeight
  40936. };
  40937. }
  40938. return {
  40939. estimatedSize: select.props.estimatedOptionHeight,
  40940. itemSize: (idx) => cachedHeights.value[idx]
  40941. };
  40942. });
  40943. const contains = (arr = [], target2) => {
  40944. const {
  40945. props: {
  40946. valueKey
  40947. }
  40948. } = select;
  40949. if (!isObject(target2)) {
  40950. return arr.includes(target2);
  40951. }
  40952. return arr && arr.some((item) => {
  40953. return toRaw(get_default(item, valueKey)) === get_default(target2, valueKey);
  40954. });
  40955. };
  40956. const isEqual3 = (selected, target2) => {
  40957. if (!isObject(target2)) {
  40958. return selected === target2;
  40959. } else {
  40960. const {
  40961. valueKey
  40962. } = select.props;
  40963. return get_default(selected, valueKey) === get_default(target2, valueKey);
  40964. }
  40965. };
  40966. const isItemSelected = (modelValue, target2) => {
  40967. if (select.props.multiple) {
  40968. return contains(modelValue, getValue3(target2));
  40969. }
  40970. return isEqual3(modelValue, getValue3(target2));
  40971. };
  40972. const isItemDisabled = (modelValue, selected) => {
  40973. const {
  40974. disabled,
  40975. multiple,
  40976. multipleLimit
  40977. } = select.props;
  40978. return disabled || !selected && (multiple ? multipleLimit > 0 && modelValue.length >= multipleLimit : false);
  40979. };
  40980. const isItemHovering = (target2) => props2.hoveringIndex === target2;
  40981. const scrollToItem = (index) => {
  40982. const list = listRef.value;
  40983. if (list) {
  40984. list.scrollToItem(index);
  40985. }
  40986. };
  40987. const resetScrollTop = () => {
  40988. const list = listRef.value;
  40989. if (list) {
  40990. list.resetScrollTop();
  40991. }
  40992. };
  40993. const exposed = {
  40994. listRef,
  40995. isSized,
  40996. isItemDisabled,
  40997. isItemHovering,
  40998. isItemSelected,
  40999. scrollToItem,
  41000. resetScrollTop
  41001. };
  41002. expose(exposed);
  41003. const Item = (itemProps) => {
  41004. const {
  41005. index,
  41006. data,
  41007. style
  41008. } = itemProps;
  41009. const sized = unref(isSized);
  41010. const {
  41011. itemSize: itemSize3,
  41012. estimatedSize
  41013. } = unref(listProps);
  41014. const {
  41015. modelValue
  41016. } = select.props;
  41017. const {
  41018. onSelect,
  41019. onHover
  41020. } = select;
  41021. const item = data[index];
  41022. if (item.type === "Group") {
  41023. return createVNode(GroupItem, {
  41024. "item": item,
  41025. "style": style,
  41026. "height": sized ? itemSize3 : estimatedSize
  41027. }, null);
  41028. }
  41029. const isSelected = isItemSelected(modelValue, item);
  41030. const isDisabled = isItemDisabled(modelValue, isSelected);
  41031. const isHovering = isItemHovering(index);
  41032. return createVNode(OptionItem, mergeProps(itemProps, {
  41033. "selected": isSelected,
  41034. "disabled": getDisabled(item) || isDisabled,
  41035. "created": !!item.created,
  41036. "hovering": isHovering,
  41037. "item": item,
  41038. "onSelect": onSelect,
  41039. "onHover": onHover
  41040. }), {
  41041. default: (props3) => {
  41042. var _a2;
  41043. return ((_a2 = slots.default) == null ? void 0 : _a2.call(slots, props3)) || createVNode("span", null, [getLabel(item)]);
  41044. }
  41045. });
  41046. };
  41047. const {
  41048. onKeyboardNavigate,
  41049. onKeyboardSelect
  41050. } = select;
  41051. const onForward = () => {
  41052. onKeyboardNavigate("forward");
  41053. };
  41054. const onBackward = () => {
  41055. onKeyboardNavigate("backward");
  41056. };
  41057. const onKeydown = (e) => {
  41058. const code = getEventCode(e);
  41059. const {
  41060. tab,
  41061. esc,
  41062. down,
  41063. up,
  41064. enter,
  41065. numpadEnter
  41066. } = EVENT_CODE;
  41067. if ([esc, down, up, enter, numpadEnter].includes(code)) {
  41068. e.preventDefault();
  41069. e.stopPropagation();
  41070. }
  41071. switch (code) {
  41072. case tab:
  41073. case esc:
  41074. break;
  41075. case down:
  41076. onForward();
  41077. break;
  41078. case up:
  41079. onBackward();
  41080. break;
  41081. case enter:
  41082. case numpadEnter:
  41083. onKeyboardSelect();
  41084. break;
  41085. }
  41086. };
  41087. return () => {
  41088. var _a2, _b, _c, _d;
  41089. const {
  41090. data,
  41091. width
  41092. } = props2;
  41093. const {
  41094. height,
  41095. multiple,
  41096. scrollbarAlwaysOn
  41097. } = select.props;
  41098. const isScrollbarAlwaysOn = computed(() => {
  41099. return isIOS ? true : scrollbarAlwaysOn;
  41100. });
  41101. const List = unref(isSized) ? FixedSizeList : DynamicSizeList;
  41102. return createVNode("div", {
  41103. "class": [ns.b("dropdown"), ns.is("multiple", multiple)],
  41104. "style": {
  41105. width: `${width}px`
  41106. }
  41107. }, [(_a2 = slots.header) == null ? void 0 : _a2.call(slots), ((_b = slots.loading) == null ? void 0 : _b.call(slots)) || ((_c = slots.empty) == null ? void 0 : _c.call(slots)) || createVNode(List, mergeProps({
  41108. "ref": listRef
  41109. }, unref(listProps), {
  41110. "className": ns.be("dropdown", "list"),
  41111. "scrollbarAlwaysOn": isScrollbarAlwaysOn.value,
  41112. "data": data,
  41113. "height": height,
  41114. "width": width,
  41115. "total": data.length,
  41116. "innerElement": "ul",
  41117. "innerProps": {
  41118. id: props2.id,
  41119. role: "listbox",
  41120. "aria-label": props2.ariaLabel,
  41121. "aria-orientation": "vertical"
  41122. },
  41123. "onKeydown": onKeydown
  41124. }), {
  41125. default: (props3) => createVNode(Item, props3, null)
  41126. }), (_d = slots.footer) == null ? void 0 : _d.call(slots)]);
  41127. };
  41128. }
  41129. });
  41130. // node_modules/element-plus/es/components/select-v2/src/useAllowCreate.mjs
  41131. function useAllowCreate(props2, states) {
  41132. const { aliasProps, getLabel, getValue: getValue3 } = useProps(props2);
  41133. const createOptionCount = ref(0);
  41134. const cachedSelectedOption = ref();
  41135. const enableAllowCreateMode = computed(() => {
  41136. return props2.allowCreate && props2.filterable;
  41137. });
  41138. watch(() => props2.options, (options) => {
  41139. const optionLabelsSet = new Set(options.map((option) => getLabel(option)));
  41140. states.createdOptions = states.createdOptions.filter((createdOption) => !optionLabelsSet.has(getLabel(createdOption)));
  41141. });
  41142. function hasExistingOption(query) {
  41143. const hasOption = (option) => getLabel(option) === query;
  41144. return props2.options && props2.options.some(hasOption) || states.createdOptions.some(hasOption);
  41145. }
  41146. function selectNewOption(option) {
  41147. if (!enableAllowCreateMode.value) {
  41148. return;
  41149. }
  41150. if (props2.multiple && option.created) {
  41151. createOptionCount.value++;
  41152. } else {
  41153. cachedSelectedOption.value = option;
  41154. }
  41155. }
  41156. function createNewOption(query) {
  41157. if (enableAllowCreateMode.value) {
  41158. if (query && query.length > 0) {
  41159. if (hasExistingOption(query)) {
  41160. states.createdOptions = states.createdOptions.filter((createdOption) => getLabel(createdOption) !== states.previousQuery);
  41161. return;
  41162. }
  41163. const newOption = {
  41164. [aliasProps.value.value]: query,
  41165. [aliasProps.value.label]: query,
  41166. created: true,
  41167. [aliasProps.value.disabled]: false
  41168. };
  41169. if (states.createdOptions.length >= createOptionCount.value) {
  41170. states.createdOptions[createOptionCount.value] = newOption;
  41171. } else {
  41172. states.createdOptions.push(newOption);
  41173. }
  41174. } else {
  41175. if (props2.multiple) {
  41176. states.createdOptions.length = createOptionCount.value;
  41177. } else {
  41178. const selectedOption = cachedSelectedOption.value;
  41179. states.createdOptions.length = 0;
  41180. if (selectedOption && selectedOption.created) {
  41181. states.createdOptions.push(selectedOption);
  41182. }
  41183. }
  41184. }
  41185. }
  41186. }
  41187. function removeNewOption(option) {
  41188. if (!enableAllowCreateMode.value || !option || !option.created || option.created && props2.reserveKeyword && states.inputValue === getLabel(option)) {
  41189. return;
  41190. }
  41191. const idx = states.createdOptions.findIndex((it2) => getValue3(it2) === getValue3(option));
  41192. if (~idx) {
  41193. states.createdOptions.splice(idx, 1);
  41194. createOptionCount.value--;
  41195. }
  41196. }
  41197. function clearAllNewOption() {
  41198. if (enableAllowCreateMode.value) {
  41199. states.createdOptions.length = 0;
  41200. createOptionCount.value = 0;
  41201. }
  41202. }
  41203. return {
  41204. createNewOption,
  41205. removeNewOption,
  41206. selectNewOption,
  41207. clearAllNewOption
  41208. };
  41209. }
  41210. // node_modules/element-plus/es/components/select-v2/src/useSelect.mjs
  41211. var useSelect2 = (props2, emit) => {
  41212. const { t } = useLocale();
  41213. const nsSelect = useNamespace("select");
  41214. const nsInput = useNamespace("input");
  41215. const { form: elForm, formItem: elFormItem } = useFormItem();
  41216. const { inputId } = useFormItemInputId(props2, {
  41217. formItemContext: elFormItem
  41218. });
  41219. const { aliasProps, getLabel, getValue: getValue3, getDisabled, getOptions } = useProps(props2);
  41220. const { valueOnClear, isEmptyValue: isEmptyValue2 } = useEmptyValues(props2);
  41221. const states = reactive({
  41222. inputValue: "",
  41223. cachedOptions: [],
  41224. createdOptions: [],
  41225. hoveringIndex: -1,
  41226. inputHovering: false,
  41227. selectionWidth: 0,
  41228. collapseItemWidth: 0,
  41229. previousQuery: null,
  41230. previousValue: void 0,
  41231. selectedLabel: "",
  41232. menuVisibleOnFocus: false,
  41233. isBeforeHide: false
  41234. });
  41235. const popperSize = ref(-1);
  41236. const debouncing = ref(false);
  41237. const selectRef = ref();
  41238. const selectionRef = ref();
  41239. const tooltipRef = ref();
  41240. const tagTooltipRef = ref();
  41241. const inputRef = ref();
  41242. const prefixRef = ref();
  41243. const suffixRef = ref();
  41244. const menuRef = ref();
  41245. const tagMenuRef = ref();
  41246. const collapseItemRef = ref();
  41247. const {
  41248. isComposing,
  41249. handleCompositionStart,
  41250. handleCompositionEnd,
  41251. handleCompositionUpdate
  41252. } = useComposition({
  41253. afterComposition: (e) => onInput(e)
  41254. });
  41255. const selectDisabled = computed(() => props2.disabled || !!(elForm == null ? void 0 : elForm.disabled));
  41256. const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {
  41257. disabled: selectDisabled,
  41258. afterFocus() {
  41259. if (props2.automaticDropdown && !expanded.value) {
  41260. expanded.value = true;
  41261. states.menuVisibleOnFocus = true;
  41262. }
  41263. },
  41264. beforeBlur(event) {
  41265. var _a2, _b;
  41266. return ((_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event)) || ((_b = tagTooltipRef.value) == null ? void 0 : _b.isFocusInsideContent(event));
  41267. },
  41268. afterBlur() {
  41269. var _a2;
  41270. expanded.value = false;
  41271. states.menuVisibleOnFocus = false;
  41272. if (props2.validateEvent) {
  41273. (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "blur").catch((err) => debugWarn(err));
  41274. }
  41275. }
  41276. });
  41277. const allOptions = computed(() => filterOptions(""));
  41278. const hasOptions = computed(() => {
  41279. if (props2.loading)
  41280. return false;
  41281. return props2.options.length > 0 || states.createdOptions.length > 0;
  41282. });
  41283. const filteredOptions = ref([]);
  41284. const expanded = ref(false);
  41285. const needStatusIcon = computed(() => {
  41286. var _a2;
  41287. return (_a2 = elForm == null ? void 0 : elForm.statusIcon) != null ? _a2 : false;
  41288. });
  41289. const popupHeight = computed(() => {
  41290. const totalHeight = filteredOptions.value.length * props2.itemHeight;
  41291. return totalHeight > props2.height ? props2.height : totalHeight;
  41292. });
  41293. const hasModelValue = computed(() => {
  41294. return props2.multiple ? isArray(props2.modelValue) && props2.modelValue.length > 0 : !isEmptyValue2(props2.modelValue);
  41295. });
  41296. const showClearBtn = computed(() => {
  41297. return props2.clearable && !selectDisabled.value && hasModelValue.value && (isFocused.value || states.inputHovering);
  41298. });
  41299. const iconComponent = computed(() => props2.remote && props2.filterable ? "" : props2.suffixIcon);
  41300. const iconReverse = computed(() => iconComponent.value && nsSelect.is("reverse", expanded.value));
  41301. const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
  41302. const validateIcon = computed(() => {
  41303. if (!validateState.value)
  41304. return;
  41305. return ValidateComponentsMap[validateState.value];
  41306. });
  41307. const debounce2 = computed(() => props2.remote ? props2.debounce : 0);
  41308. const isRemoteSearchEmpty = computed(() => props2.remote && !states.inputValue && !hasOptions.value);
  41309. const emptyText = computed(() => {
  41310. if (props2.loading) {
  41311. return props2.loadingText || t("el.select.loading");
  41312. } else {
  41313. if (props2.filterable && states.inputValue && hasOptions.value && filteredOptions.value.length === 0) {
  41314. return props2.noMatchText || t("el.select.noMatch");
  41315. }
  41316. if (!hasOptions.value) {
  41317. return props2.noDataText || t("el.select.noData");
  41318. }
  41319. }
  41320. return null;
  41321. });
  41322. const isFilterMethodValid = computed(() => props2.filterable && isFunction(props2.filterMethod));
  41323. const isRemoteMethodValid = computed(() => props2.filterable && props2.remote && isFunction(props2.remoteMethod));
  41324. const filterOptions = (query) => {
  41325. const regexp4 = new RegExp(escapeStringRegexp(query), "i");
  41326. const isValidOption = (o2) => {
  41327. if (isFilterMethodValid.value || isRemoteMethodValid.value)
  41328. return true;
  41329. return query ? regexp4.test(getLabel(o2) || "") : true;
  41330. };
  41331. if (props2.loading) {
  41332. return [];
  41333. }
  41334. return [...states.createdOptions, ...props2.options].reduce((all, item) => {
  41335. const options = getOptions(item);
  41336. if (isArray(options)) {
  41337. const filtered = options.filter(isValidOption);
  41338. if (filtered.length > 0) {
  41339. all.push({
  41340. label: getLabel(item),
  41341. type: "Group"
  41342. }, ...filtered);
  41343. }
  41344. } else if (props2.remote || isValidOption(item)) {
  41345. all.push(item);
  41346. }
  41347. return all;
  41348. }, []);
  41349. };
  41350. const updateOptions2 = () => {
  41351. filteredOptions.value = filterOptions(states.inputValue);
  41352. };
  41353. const allOptionsValueMap = computed(() => {
  41354. const valueMap = /* @__PURE__ */ new Map();
  41355. allOptions.value.forEach((option, index) => {
  41356. valueMap.set(getValueKey(getValue3(option)), { option, index });
  41357. });
  41358. return valueMap;
  41359. });
  41360. const filteredOptionsValueMap = computed(() => {
  41361. const valueMap = /* @__PURE__ */ new Map();
  41362. filteredOptions.value.forEach((option, index) => {
  41363. valueMap.set(getValueKey(getValue3(option)), { option, index });
  41364. });
  41365. return valueMap;
  41366. });
  41367. const optionsAllDisabled = computed(() => filteredOptions.value.every((option) => getDisabled(option)));
  41368. const selectSize = useFormSize();
  41369. const collapseTagSize = computed(() => selectSize.value === "small" ? "small" : "default");
  41370. const calculatePopperSize = () => {
  41371. var _a2;
  41372. if (isNumber2(props2.fitInputWidth)) {
  41373. popperSize.value = props2.fitInputWidth;
  41374. return;
  41375. }
  41376. const width = ((_a2 = selectRef.value) == null ? void 0 : _a2.offsetWidth) || 200;
  41377. if (!props2.fitInputWidth && hasOptions.value) {
  41378. nextTick(() => {
  41379. popperSize.value = Math.max(width, calculateLabelMaxWidth());
  41380. });
  41381. } else {
  41382. popperSize.value = width;
  41383. }
  41384. };
  41385. const calculateLabelMaxWidth = () => {
  41386. var _a2, _b;
  41387. const canvas = document.createElement("canvas");
  41388. const ctx = canvas.getContext("2d");
  41389. const selector = nsSelect.be("dropdown", "item");
  41390. const dom = ((_b = (_a2 = menuRef.value) == null ? void 0 : _a2.listRef) == null ? void 0 : _b.innerRef) || document;
  41391. const dropdownItemEl = dom.querySelector(`.${selector}`);
  41392. if (dropdownItemEl === null || ctx === null)
  41393. return 0;
  41394. const style = getComputedStyle(dropdownItemEl);
  41395. const padding = Number.parseFloat(style.paddingLeft) + Number.parseFloat(style.paddingRight);
  41396. ctx.font = `bold ${style.font.replace(new RegExp(`\\b${style.fontWeight}\\b`), "")}`;
  41397. const maxWidth = filteredOptions.value.reduce((max4, option) => {
  41398. const metrics = ctx.measureText(getLabel(option));
  41399. return Math.max(metrics.width, max4);
  41400. }, 0);
  41401. return maxWidth + padding;
  41402. };
  41403. const getGapWidth = () => {
  41404. if (!selectionRef.value)
  41405. return 0;
  41406. const style = window.getComputedStyle(selectionRef.value);
  41407. return Number.parseFloat(style.gap || "6px");
  41408. };
  41409. const tagStyle = computed(() => {
  41410. const gapWidth = getGapWidth();
  41411. const inputSlotWidth = props2.filterable ? gapWidth + MINIMUM_INPUT_WIDTH : 0;
  41412. const maxWidth = collapseItemRef.value && props2.maxCollapseTags === 1 ? states.selectionWidth - states.collapseItemWidth - gapWidth - inputSlotWidth : states.selectionWidth - inputSlotWidth;
  41413. return { maxWidth: `${maxWidth}px` };
  41414. });
  41415. const collapseTagStyle = computed(() => {
  41416. return { maxWidth: `${states.selectionWidth}px` };
  41417. });
  41418. const shouldShowPlaceholder = computed(() => {
  41419. if (isArray(props2.modelValue)) {
  41420. return props2.modelValue.length === 0 && !states.inputValue;
  41421. }
  41422. return props2.filterable ? !states.inputValue : true;
  41423. });
  41424. const currentPlaceholder = computed(() => {
  41425. var _a2;
  41426. const _placeholder = (_a2 = props2.placeholder) != null ? _a2 : t("el.select.placeholder");
  41427. return props2.multiple || !hasModelValue.value ? _placeholder : states.selectedLabel;
  41428. });
  41429. const popperRef = computed(() => {
  41430. var _a2, _b;
  41431. return (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
  41432. });
  41433. const indexRef = computed(() => {
  41434. if (props2.multiple) {
  41435. const len = props2.modelValue.length;
  41436. if (props2.modelValue.length > 0 && filteredOptionsValueMap.value.has(props2.modelValue[len - 1])) {
  41437. const { index } = filteredOptionsValueMap.value.get(props2.modelValue[len - 1]);
  41438. return index;
  41439. }
  41440. } else {
  41441. if (!isEmptyValue2(props2.modelValue) && filteredOptionsValueMap.value.has(props2.modelValue)) {
  41442. const { index } = filteredOptionsValueMap.value.get(props2.modelValue);
  41443. return index;
  41444. }
  41445. }
  41446. return -1;
  41447. });
  41448. const dropdownMenuVisible = computed({
  41449. get() {
  41450. return expanded.value && (props2.loading || !isRemoteSearchEmpty.value) && (!debouncing.value || !isEmpty2(states.previousQuery));
  41451. },
  41452. set(val) {
  41453. expanded.value = val;
  41454. }
  41455. });
  41456. const showTagList = computed(() => {
  41457. if (!props2.multiple) {
  41458. return [];
  41459. }
  41460. return props2.collapseTags ? states.cachedOptions.slice(0, props2.maxCollapseTags) : states.cachedOptions;
  41461. });
  41462. const collapseTagList = computed(() => {
  41463. if (!props2.multiple) {
  41464. return [];
  41465. }
  41466. return props2.collapseTags ? states.cachedOptions.slice(props2.maxCollapseTags) : [];
  41467. });
  41468. const {
  41469. createNewOption,
  41470. removeNewOption,
  41471. selectNewOption,
  41472. clearAllNewOption
  41473. } = useAllowCreate(props2, states);
  41474. const toggleMenu = () => {
  41475. if (selectDisabled.value)
  41476. return;
  41477. if (states.menuVisibleOnFocus) {
  41478. states.menuVisibleOnFocus = false;
  41479. } else {
  41480. expanded.value = !expanded.value;
  41481. }
  41482. };
  41483. const onInputChange = () => {
  41484. if (states.inputValue.length > 0 && !expanded.value) {
  41485. expanded.value = true;
  41486. }
  41487. createNewOption(states.inputValue);
  41488. nextTick(() => {
  41489. handleQueryChange(states.inputValue);
  41490. });
  41491. };
  41492. const debouncedOnInputChange = useDebounceFn(() => {
  41493. onInputChange();
  41494. debouncing.value = false;
  41495. }, debounce2);
  41496. const handleQueryChange = (val) => {
  41497. if (states.previousQuery === val || isComposing.value) {
  41498. return;
  41499. }
  41500. states.previousQuery = val;
  41501. if (props2.filterable && isFunction(props2.filterMethod)) {
  41502. props2.filterMethod(val);
  41503. } else if (props2.filterable && props2.remote && isFunction(props2.remoteMethod)) {
  41504. props2.remoteMethod(val);
  41505. }
  41506. if (props2.defaultFirstOption && (props2.filterable || props2.remote) && filteredOptions.value.length) {
  41507. nextTick(checkDefaultFirstOption);
  41508. } else {
  41509. nextTick(updateHoveringIndex);
  41510. }
  41511. };
  41512. const checkDefaultFirstOption = () => {
  41513. const optionsInDropdown = filteredOptions.value.filter((n) => !n.disabled && n.type !== "Group");
  41514. const userCreatedOption = optionsInDropdown.find((n) => n.created);
  41515. const firstOriginOption = optionsInDropdown[0];
  41516. states.hoveringIndex = getValueIndex(filteredOptions.value, userCreatedOption || firstOriginOption);
  41517. };
  41518. const emitChange = (val) => {
  41519. if (!isEqual_default(props2.modelValue, val)) {
  41520. emit(CHANGE_EVENT, val);
  41521. }
  41522. };
  41523. const update2 = (val) => {
  41524. emit(UPDATE_MODEL_EVENT, val);
  41525. emitChange(val);
  41526. states.previousValue = props2.multiple ? String(val) : val;
  41527. nextTick(() => {
  41528. if (props2.multiple && isArray(props2.modelValue)) {
  41529. const cachedOptions = states.cachedOptions.slice();
  41530. const selectedOptions = props2.modelValue.map((value) => getOption(value, cachedOptions));
  41531. if (!isEqual_default(states.cachedOptions, selectedOptions)) {
  41532. states.cachedOptions = selectedOptions;
  41533. }
  41534. } else {
  41535. initStates(true);
  41536. }
  41537. });
  41538. };
  41539. const getValueIndex = (arr = [], value) => {
  41540. if (!isObject(value)) {
  41541. return arr.indexOf(value);
  41542. }
  41543. const valueKey = props2.valueKey;
  41544. let index = -1;
  41545. arr.some((item, i) => {
  41546. if (get_default(item, valueKey) === get_default(value, valueKey)) {
  41547. index = i;
  41548. return true;
  41549. }
  41550. return false;
  41551. });
  41552. return index;
  41553. };
  41554. const getValueKey = (item) => {
  41555. return isObject(item) ? get_default(item, props2.valueKey) : item;
  41556. };
  41557. const handleResize = () => {
  41558. calculatePopperSize();
  41559. };
  41560. const resetSelectionWidth = () => {
  41561. states.selectionWidth = Number.parseFloat(window.getComputedStyle(selectionRef.value).width);
  41562. };
  41563. const resetCollapseItemWidth = () => {
  41564. states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
  41565. };
  41566. const updateTooltip = () => {
  41567. var _a2, _b;
  41568. (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  41569. };
  41570. const updateTagTooltip = () => {
  41571. var _a2, _b;
  41572. (_b = (_a2 = tagTooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
  41573. };
  41574. const onSelect = (option) => {
  41575. const optionValue = getValue3(option);
  41576. if (props2.multiple) {
  41577. let selectedOptions = props2.modelValue.slice();
  41578. const index = getValueIndex(selectedOptions, optionValue);
  41579. if (index > -1) {
  41580. selectedOptions = [
  41581. ...selectedOptions.slice(0, index),
  41582. ...selectedOptions.slice(index + 1)
  41583. ];
  41584. states.cachedOptions.splice(index, 1);
  41585. removeNewOption(option);
  41586. } else if (props2.multipleLimit <= 0 || selectedOptions.length < props2.multipleLimit) {
  41587. selectedOptions = [...selectedOptions, optionValue];
  41588. states.cachedOptions.push(option);
  41589. selectNewOption(option);
  41590. }
  41591. update2(selectedOptions);
  41592. if (option.created) {
  41593. handleQueryChange("");
  41594. }
  41595. if (props2.filterable && !props2.reserveKeyword) {
  41596. states.inputValue = "";
  41597. }
  41598. } else {
  41599. states.selectedLabel = getLabel(option);
  41600. !isEqual_default(props2.modelValue, optionValue) && update2(optionValue);
  41601. expanded.value = false;
  41602. selectNewOption(option);
  41603. if (!option.created) {
  41604. clearAllNewOption();
  41605. }
  41606. }
  41607. focus();
  41608. };
  41609. const deleteTag = (event, option) => {
  41610. let selectedOptions = props2.modelValue.slice();
  41611. const index = getValueIndex(selectedOptions, getValue3(option));
  41612. if (index > -1 && !selectDisabled.value) {
  41613. selectedOptions = [
  41614. ...props2.modelValue.slice(0, index),
  41615. ...props2.modelValue.slice(index + 1)
  41616. ];
  41617. states.cachedOptions.splice(index, 1);
  41618. update2(selectedOptions);
  41619. emit("remove-tag", getValue3(option));
  41620. removeNewOption(option);
  41621. }
  41622. event.stopPropagation();
  41623. focus();
  41624. };
  41625. const focus = () => {
  41626. var _a2;
  41627. (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
  41628. };
  41629. const blur = () => {
  41630. var _a2;
  41631. if (expanded.value) {
  41632. expanded.value = false;
  41633. nextTick(() => {
  41634. var _a22;
  41635. return (_a22 = inputRef.value) == null ? void 0 : _a22.blur();
  41636. });
  41637. return;
  41638. }
  41639. (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
  41640. };
  41641. const handleEsc = () => {
  41642. if (states.inputValue.length > 0) {
  41643. states.inputValue = "";
  41644. } else {
  41645. expanded.value = false;
  41646. }
  41647. };
  41648. const getLastNotDisabledIndex = (value) => findLastIndex_default(value, (it2) => !states.cachedOptions.some((option) => getValue3(option) === it2 && getDisabled(option)));
  41649. const handleDel = (e) => {
  41650. const code = getEventCode(e);
  41651. if (!props2.multiple)
  41652. return;
  41653. if (code === EVENT_CODE.delete)
  41654. return;
  41655. if (states.inputValue.length === 0) {
  41656. e.preventDefault();
  41657. const selected = props2.modelValue.slice();
  41658. const lastNotDisabledIndex = getLastNotDisabledIndex(selected);
  41659. if (lastNotDisabledIndex < 0)
  41660. return;
  41661. const removeTagValue = selected[lastNotDisabledIndex];
  41662. selected.splice(lastNotDisabledIndex, 1);
  41663. const option = states.cachedOptions[lastNotDisabledIndex];
  41664. states.cachedOptions.splice(lastNotDisabledIndex, 1);
  41665. removeNewOption(option);
  41666. update2(selected);
  41667. emit("remove-tag", removeTagValue);
  41668. }
  41669. };
  41670. const handleClear = () => {
  41671. let emptyValue;
  41672. if (isArray(props2.modelValue)) {
  41673. emptyValue = [];
  41674. } else {
  41675. emptyValue = valueOnClear.value;
  41676. }
  41677. states.selectedLabel = "";
  41678. expanded.value = false;
  41679. update2(emptyValue);
  41680. emit("clear");
  41681. clearAllNewOption();
  41682. focus();
  41683. };
  41684. const onKeyboardNavigate = (direction2, hoveringIndex = void 0) => {
  41685. const options = filteredOptions.value;
  41686. if (!["forward", "backward"].includes(direction2) || selectDisabled.value || options.length <= 0 || optionsAllDisabled.value || isComposing.value) {
  41687. return;
  41688. }
  41689. if (!expanded.value) {
  41690. return toggleMenu();
  41691. }
  41692. if (isUndefined2(hoveringIndex)) {
  41693. hoveringIndex = states.hoveringIndex;
  41694. }
  41695. let newIndex = -1;
  41696. if (direction2 === "forward") {
  41697. newIndex = hoveringIndex + 1;
  41698. if (newIndex >= options.length) {
  41699. newIndex = 0;
  41700. }
  41701. } else if (direction2 === "backward") {
  41702. newIndex = hoveringIndex - 1;
  41703. if (newIndex < 0 || newIndex >= options.length) {
  41704. newIndex = options.length - 1;
  41705. }
  41706. }
  41707. const option = options[newIndex];
  41708. if (getDisabled(option) || option.type === "Group") {
  41709. return onKeyboardNavigate(direction2, newIndex);
  41710. } else {
  41711. states.hoveringIndex = newIndex;
  41712. scrollToItem(newIndex);
  41713. }
  41714. };
  41715. const onKeyboardSelect = () => {
  41716. if (!expanded.value) {
  41717. return toggleMenu();
  41718. } else if (~states.hoveringIndex && filteredOptions.value[states.hoveringIndex]) {
  41719. onSelect(filteredOptions.value[states.hoveringIndex]);
  41720. }
  41721. };
  41722. const onHoverOption = (idx) => {
  41723. states.hoveringIndex = idx != null ? idx : -1;
  41724. };
  41725. const updateHoveringIndex = () => {
  41726. if (!props2.multiple) {
  41727. states.hoveringIndex = filteredOptions.value.findIndex((item) => {
  41728. return getValueKey(getValue3(item)) === getValueKey(props2.modelValue);
  41729. });
  41730. } else {
  41731. states.hoveringIndex = filteredOptions.value.findIndex((item) => props2.modelValue.some((modelValue) => getValueKey(modelValue) === getValueKey(getValue3(item))));
  41732. }
  41733. };
  41734. const onInput = (event) => {
  41735. states.inputValue = event.target.value;
  41736. if (props2.remote) {
  41737. debouncing.value = true;
  41738. debouncedOnInputChange();
  41739. } else {
  41740. return onInputChange();
  41741. }
  41742. };
  41743. const handleClickOutside = (event) => {
  41744. expanded.value = false;
  41745. if (isFocused.value) {
  41746. const _event2 = new FocusEvent("blur", event);
  41747. handleBlur(_event2);
  41748. }
  41749. };
  41750. const handleMenuEnter = () => {
  41751. states.isBeforeHide = false;
  41752. return nextTick(() => {
  41753. if (~indexRef.value) {
  41754. scrollToItem(states.hoveringIndex);
  41755. }
  41756. });
  41757. };
  41758. const scrollToItem = (index) => {
  41759. menuRef.value.scrollToItem(index);
  41760. };
  41761. const getOption = (value, cachedOptions) => {
  41762. const selectValue = getValueKey(value);
  41763. if (allOptionsValueMap.value.has(selectValue)) {
  41764. const { option } = allOptionsValueMap.value.get(selectValue);
  41765. return option;
  41766. }
  41767. if (cachedOptions && cachedOptions.length) {
  41768. const option = cachedOptions.find((option2) => getValueKey(getValue3(option2)) === selectValue);
  41769. if (option) {
  41770. return option;
  41771. }
  41772. }
  41773. return {
  41774. [aliasProps.value.value]: value,
  41775. [aliasProps.value.label]: value
  41776. };
  41777. };
  41778. const getIndex = (option) => {
  41779. var _a2, _b;
  41780. return (_b = (_a2 = allOptionsValueMap.value.get(getValue3(option))) == null ? void 0 : _a2.index) != null ? _b : -1;
  41781. };
  41782. const initStates = (needUpdateSelectedLabel = false) => {
  41783. if (props2.multiple) {
  41784. if (props2.modelValue.length > 0) {
  41785. const cachedOptions = states.cachedOptions.slice();
  41786. states.cachedOptions.length = 0;
  41787. states.previousValue = props2.modelValue.toString();
  41788. for (const value of props2.modelValue) {
  41789. const option = getOption(value, cachedOptions);
  41790. states.cachedOptions.push(option);
  41791. }
  41792. } else {
  41793. states.cachedOptions = [];
  41794. states.previousValue = void 0;
  41795. }
  41796. } else {
  41797. if (hasModelValue.value) {
  41798. states.previousValue = props2.modelValue;
  41799. const options = filteredOptions.value;
  41800. const selectedItemIndex = options.findIndex((option) => getValueKey(getValue3(option)) === getValueKey(props2.modelValue));
  41801. if (~selectedItemIndex) {
  41802. states.selectedLabel = getLabel(options[selectedItemIndex]);
  41803. } else {
  41804. if (!states.selectedLabel || needUpdateSelectedLabel) {
  41805. states.selectedLabel = getValueKey(props2.modelValue);
  41806. }
  41807. }
  41808. } else {
  41809. states.selectedLabel = "";
  41810. states.previousValue = void 0;
  41811. }
  41812. }
  41813. clearAllNewOption();
  41814. calculatePopperSize();
  41815. };
  41816. watch(() => props2.fitInputWidth, () => {
  41817. calculatePopperSize();
  41818. });
  41819. watch(expanded, (val) => {
  41820. if (val) {
  41821. if (!props2.persistent) {
  41822. calculatePopperSize();
  41823. }
  41824. handleQueryChange("");
  41825. } else {
  41826. states.inputValue = "";
  41827. states.previousQuery = null;
  41828. states.isBeforeHide = true;
  41829. createNewOption("");
  41830. }
  41831. emit("visible-change", val);
  41832. });
  41833. watch(() => props2.modelValue, (val, oldVal) => {
  41834. var _a2;
  41835. const isValEmpty = !val || isArray(val) && val.length === 0;
  41836. if (isValEmpty || props2.multiple && !isEqual_default(val.toString(), states.previousValue) || !props2.multiple && getValueKey(val) !== getValueKey(states.previousValue)) {
  41837. initStates(true);
  41838. }
  41839. if (!isEqual_default(val, oldVal) && props2.validateEvent) {
  41840. (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change").catch((err) => debugWarn(err));
  41841. }
  41842. }, {
  41843. deep: true
  41844. });
  41845. watch(() => props2.options, () => {
  41846. const input = inputRef.value;
  41847. if (!input || input && document.activeElement !== input) {
  41848. initStates();
  41849. }
  41850. }, {
  41851. deep: true,
  41852. flush: "post"
  41853. });
  41854. watch(() => filteredOptions.value, () => {
  41855. calculatePopperSize();
  41856. return menuRef.value && nextTick(menuRef.value.resetScrollTop);
  41857. });
  41858. watchEffect(() => {
  41859. if (states.isBeforeHide)
  41860. return;
  41861. updateOptions2();
  41862. });
  41863. watchEffect(() => {
  41864. const { valueKey, options } = props2;
  41865. const duplicateValue = /* @__PURE__ */ new Map();
  41866. for (const item of options) {
  41867. const optionValue = getValue3(item);
  41868. let v2 = optionValue;
  41869. if (isObject(v2)) {
  41870. v2 = get_default(optionValue, valueKey);
  41871. }
  41872. if (duplicateValue.get(v2)) {
  41873. debugWarn("ElSelectV2", `The option values you provided seem to be duplicated, which may cause some problems, please check.`);
  41874. break;
  41875. } else {
  41876. duplicateValue.set(v2, true);
  41877. }
  41878. }
  41879. });
  41880. onMounted(() => {
  41881. initStates();
  41882. });
  41883. useResizeObserver(selectRef, handleResize);
  41884. useResizeObserver(selectionRef, resetSelectionWidth);
  41885. useResizeObserver(menuRef, updateTooltip);
  41886. useResizeObserver(wrapperRef, updateTooltip);
  41887. useResizeObserver(tagMenuRef, updateTagTooltip);
  41888. useResizeObserver(collapseItemRef, resetCollapseItemWidth);
  41889. return {
  41890. inputId,
  41891. collapseTagSize,
  41892. currentPlaceholder,
  41893. expanded,
  41894. emptyText,
  41895. popupHeight,
  41896. debounce: debounce2,
  41897. allOptions,
  41898. allOptionsValueMap,
  41899. filteredOptions,
  41900. iconComponent,
  41901. iconReverse,
  41902. tagStyle,
  41903. collapseTagStyle,
  41904. popperSize,
  41905. dropdownMenuVisible,
  41906. hasModelValue,
  41907. shouldShowPlaceholder,
  41908. selectDisabled,
  41909. selectSize,
  41910. needStatusIcon,
  41911. showClearBtn,
  41912. states,
  41913. isFocused,
  41914. nsSelect,
  41915. nsInput,
  41916. inputRef,
  41917. menuRef,
  41918. tagMenuRef,
  41919. tooltipRef,
  41920. tagTooltipRef,
  41921. selectRef,
  41922. wrapperRef,
  41923. selectionRef,
  41924. prefixRef,
  41925. suffixRef,
  41926. collapseItemRef,
  41927. popperRef,
  41928. validateState,
  41929. validateIcon,
  41930. showTagList,
  41931. collapseTagList,
  41932. debouncedOnInputChange,
  41933. deleteTag,
  41934. getLabel,
  41935. getValue: getValue3,
  41936. getDisabled,
  41937. getValueKey,
  41938. getIndex,
  41939. handleClear,
  41940. handleClickOutside,
  41941. handleDel,
  41942. handleEsc,
  41943. focus,
  41944. blur,
  41945. handleMenuEnter,
  41946. handleResize,
  41947. resetSelectionWidth,
  41948. updateTooltip,
  41949. updateTagTooltip,
  41950. updateOptions: updateOptions2,
  41951. toggleMenu,
  41952. scrollTo: scrollToItem,
  41953. onInput,
  41954. onKeyboardNavigate,
  41955. onKeyboardSelect,
  41956. onSelect,
  41957. onHover: onHoverOption,
  41958. handleCompositionStart,
  41959. handleCompositionEnd,
  41960. handleCompositionUpdate
  41961. };
  41962. };
  41963. // node_modules/element-plus/es/components/select-v2/src/select.mjs
  41964. var _sfc_main115 = defineComponent({
  41965. name: "ElSelectV2",
  41966. components: {
  41967. ElSelectMenu: ElSelectMenu2,
  41968. ElTag,
  41969. ElTooltip,
  41970. ElIcon
  41971. },
  41972. directives: { ClickOutside },
  41973. props: selectV2Props,
  41974. emits: selectV2Emits,
  41975. setup(props2, { emit }) {
  41976. const modelValue = computed(() => {
  41977. const { modelValue: rawModelValue, multiple } = props2;
  41978. const fallback = multiple ? [] : void 0;
  41979. if (isArray(rawModelValue)) {
  41980. return multiple ? rawModelValue : fallback;
  41981. }
  41982. return multiple ? fallback : rawModelValue;
  41983. });
  41984. const API = useSelect2(reactive({
  41985. ...toRefs(props2),
  41986. modelValue
  41987. }), emit);
  41988. const { calculatorRef, inputStyle } = useCalcInputWidth();
  41989. const contentId = useId();
  41990. provide(selectV2InjectionKey, {
  41991. props: reactive({
  41992. ...toRefs(props2),
  41993. height: API.popupHeight,
  41994. modelValue
  41995. }),
  41996. expanded: API.expanded,
  41997. tooltipRef: API.tooltipRef,
  41998. contentId,
  41999. onSelect: API.onSelect,
  42000. onHover: API.onHover,
  42001. onKeyboardNavigate: API.onKeyboardNavigate,
  42002. onKeyboardSelect: API.onKeyboardSelect
  42003. });
  42004. const selectedLabel = computed(() => {
  42005. if (!props2.multiple) {
  42006. return API.states.selectedLabel;
  42007. }
  42008. return API.states.cachedOptions.map((i) => API.getLabel(i));
  42009. });
  42010. return {
  42011. ...API,
  42012. modelValue,
  42013. selectedLabel,
  42014. calculatorRef,
  42015. inputStyle,
  42016. contentId,
  42017. BORDER_HORIZONTAL_WIDTH
  42018. };
  42019. }
  42020. });
  42021. function _sfc_render17(_ctx, _cache, $props, $setup, $data, $options) {
  42022. const _component_el_tag = resolveComponent("el-tag");
  42023. const _component_el_tooltip = resolveComponent("el-tooltip");
  42024. const _component_el_icon = resolveComponent("el-icon");
  42025. const _component_el_select_menu = resolveComponent("el-select-menu");
  42026. const _directive_click_outside = resolveDirective("click-outside");
  42027. return withDirectives((openBlock(), createElementBlock("div", {
  42028. ref: "selectRef",
  42029. class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
  42030. onMouseenter: ($event) => _ctx.states.inputHovering = true,
  42031. onMouseleave: ($event) => _ctx.states.inputHovering = false
  42032. }, [
  42033. createVNode(_component_el_tooltip, {
  42034. ref: "tooltipRef",
  42035. visible: _ctx.dropdownMenuVisible,
  42036. teleported: _ctx.teleported,
  42037. "popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
  42038. "popper-style": _ctx.popperStyle,
  42039. "gpu-acceleration": false,
  42040. "stop-popper-mouse-event": false,
  42041. "popper-options": _ctx.popperOptions,
  42042. "fallback-placements": _ctx.fallbackPlacements,
  42043. effect: _ctx.effect,
  42044. placement: _ctx.placement,
  42045. pure: "",
  42046. transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
  42047. trigger: "click",
  42048. persistent: _ctx.persistent,
  42049. "append-to": _ctx.appendTo,
  42050. "show-arrow": _ctx.showArrow,
  42051. offset: _ctx.offset,
  42052. onBeforeShow: _ctx.handleMenuEnter,
  42053. onHide: ($event) => _ctx.states.isBeforeHide = false
  42054. }, {
  42055. default: withCtx(() => {
  42056. var _a2, _b;
  42057. return [
  42058. createBaseVNode("div", {
  42059. ref: "wrapperRef",
  42060. class: normalizeClass([
  42061. _ctx.nsSelect.e("wrapper"),
  42062. _ctx.nsSelect.is("focused", _ctx.isFocused),
  42063. _ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
  42064. _ctx.nsSelect.is("filterable", _ctx.filterable),
  42065. _ctx.nsSelect.is("disabled", _ctx.selectDisabled)
  42066. ]),
  42067. onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
  42068. }, [
  42069. _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
  42070. key: 0,
  42071. ref: "prefixRef",
  42072. class: normalizeClass(_ctx.nsSelect.e("prefix"))
  42073. }, [
  42074. renderSlot(_ctx.$slots, "prefix")
  42075. ], 2)) : createCommentVNode("v-if", true),
  42076. createBaseVNode("div", {
  42077. ref: "selectionRef",
  42078. class: normalizeClass([
  42079. _ctx.nsSelect.e("selection"),
  42080. _ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.modelValue.length)
  42081. ])
  42082. }, [
  42083. _ctx.multiple ? renderSlot(_ctx.$slots, "tag", {
  42084. key: 0,
  42085. data: _ctx.states.cachedOptions,
  42086. deleteTag: _ctx.deleteTag,
  42087. selectDisabled: _ctx.selectDisabled
  42088. }, () => [
  42089. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
  42090. return openBlock(), createElementBlock("div", {
  42091. key: _ctx.getValueKey(_ctx.getValue(item)),
  42092. class: normalizeClass(_ctx.nsSelect.e("selected-item"))
  42093. }, [
  42094. createVNode(_component_el_tag, {
  42095. closable: !_ctx.selectDisabled && !_ctx.getDisabled(item),
  42096. size: _ctx.collapseTagSize,
  42097. type: _ctx.tagType,
  42098. effect: _ctx.tagEffect,
  42099. "disable-transitions": "",
  42100. style: normalizeStyle(_ctx.tagStyle),
  42101. onClose: ($event) => _ctx.deleteTag($event, item)
  42102. }, {
  42103. default: withCtx(() => [
  42104. createBaseVNode("span", {
  42105. class: normalizeClass(_ctx.nsSelect.e("tags-text"))
  42106. }, [
  42107. renderSlot(_ctx.$slots, "label", {
  42108. index: _ctx.getIndex(item),
  42109. label: _ctx.getLabel(item),
  42110. value: _ctx.getValue(item)
  42111. }, () => [
  42112. createTextVNode(toDisplayString(_ctx.getLabel(item)), 1)
  42113. ])
  42114. ], 2)
  42115. ]),
  42116. _: 2
  42117. }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
  42118. ], 2);
  42119. }), 128)),
  42120. _ctx.collapseTags && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
  42121. key: 0,
  42122. ref: "tagTooltipRef",
  42123. disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
  42124. "fallback-placements": ["bottom", "top", "right", "left"],
  42125. effect: _ctx.effect,
  42126. placement: "bottom",
  42127. "popper-class": _ctx.popperClass,
  42128. "popper-style": _ctx.popperStyle,
  42129. teleported: _ctx.teleported
  42130. }, {
  42131. default: withCtx(() => [
  42132. createBaseVNode("div", {
  42133. ref: "collapseItemRef",
  42134. class: normalizeClass(_ctx.nsSelect.e("selected-item"))
  42135. }, [
  42136. createVNode(_component_el_tag, {
  42137. closable: false,
  42138. size: _ctx.collapseTagSize,
  42139. type: _ctx.tagType,
  42140. effect: _ctx.tagEffect,
  42141. style: normalizeStyle(_ctx.collapseTagStyle),
  42142. "disable-transitions": ""
  42143. }, {
  42144. default: withCtx(() => [
  42145. createBaseVNode("span", {
  42146. class: normalizeClass(_ctx.nsSelect.e("tags-text"))
  42147. }, " + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags), 3)
  42148. ]),
  42149. _: 1
  42150. }, 8, ["size", "type", "effect", "style"])
  42151. ], 2)
  42152. ]),
  42153. content: withCtx(() => [
  42154. createBaseVNode("div", {
  42155. ref: "tagMenuRef",
  42156. class: normalizeClass(_ctx.nsSelect.e("selection"))
  42157. }, [
  42158. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (selected) => {
  42159. return openBlock(), createElementBlock("div", {
  42160. key: _ctx.getValueKey(_ctx.getValue(selected)),
  42161. class: normalizeClass(_ctx.nsSelect.e("selected-item"))
  42162. }, [
  42163. createVNode(_component_el_tag, {
  42164. class: "in-tooltip",
  42165. closable: !_ctx.selectDisabled && !_ctx.getDisabled(selected),
  42166. size: _ctx.collapseTagSize,
  42167. type: _ctx.tagType,
  42168. effect: _ctx.tagEffect,
  42169. "disable-transitions": "",
  42170. onClose: ($event) => _ctx.deleteTag($event, selected)
  42171. }, {
  42172. default: withCtx(() => [
  42173. createBaseVNode("span", {
  42174. class: normalizeClass(_ctx.nsSelect.e("tags-text"))
  42175. }, [
  42176. renderSlot(_ctx.$slots, "label", {
  42177. index: _ctx.getIndex(selected),
  42178. label: _ctx.getLabel(selected),
  42179. value: _ctx.getValue(selected)
  42180. }, () => [
  42181. createTextVNode(toDisplayString(_ctx.getLabel(selected)), 1)
  42182. ])
  42183. ], 2)
  42184. ]),
  42185. _: 2
  42186. }, 1032, ["closable", "size", "type", "effect", "onClose"])
  42187. ], 2);
  42188. }), 128))
  42189. ], 2)
  42190. ]),
  42191. _: 3
  42192. }, 8, ["disabled", "effect", "popper-class", "popper-style", "teleported"])) : createCommentVNode("v-if", true)
  42193. ]) : createCommentVNode("v-if", true),
  42194. createBaseVNode("div", {
  42195. class: normalizeClass([
  42196. _ctx.nsSelect.e("selected-item"),
  42197. _ctx.nsSelect.e("input-wrapper"),
  42198. _ctx.nsSelect.is("hidden", !_ctx.filterable)
  42199. ])
  42200. }, [
  42201. withDirectives(createBaseVNode("input", {
  42202. id: _ctx.inputId,
  42203. ref: "inputRef",
  42204. "onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
  42205. style: normalizeStyle(_ctx.inputStyle),
  42206. autocomplete: _ctx.autocomplete,
  42207. tabindex: _ctx.tabindex,
  42208. "aria-autocomplete": "none",
  42209. "aria-haspopup": "listbox",
  42210. autocapitalize: "off",
  42211. "aria-expanded": _ctx.expanded,
  42212. "aria-label": _ctx.ariaLabel,
  42213. class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
  42214. disabled: _ctx.selectDisabled,
  42215. role: "combobox",
  42216. "aria-controls": _ctx.contentId,
  42217. "aria-activedescendant": _ctx.states.hoveringIndex >= 0 ? `${_ctx.contentId}-${_ctx.states.hoveringIndex}` : "",
  42218. readonly: !_ctx.filterable,
  42219. spellcheck: "false",
  42220. type: "text",
  42221. name: _ctx.name,
  42222. onInput: _ctx.onInput,
  42223. onCompositionstart: _ctx.handleCompositionStart,
  42224. onCompositionupdate: _ctx.handleCompositionUpdate,
  42225. onCompositionend: _ctx.handleCompositionEnd,
  42226. onKeydown: [
  42227. withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"]),
  42228. withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"]),
  42229. withKeys(withModifiers(_ctx.onKeyboardSelect, ["stop", "prevent"]), ["enter"]),
  42230. withKeys(withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
  42231. withKeys(withModifiers(_ctx.handleDel, ["stop"]), ["delete"])
  42232. ],
  42233. onClick: withModifiers(_ctx.toggleMenu, ["stop"])
  42234. }, null, 46, ["id", "onUpdate:modelValue", "autocomplete", "tabindex", "aria-expanded", "aria-label", "disabled", "aria-controls", "aria-activedescendant", "readonly", "name", "onInput", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown", "onClick"]), [
  42235. [vModelText, _ctx.states.inputValue]
  42236. ]),
  42237. _ctx.filterable ? (openBlock(), createElementBlock("span", {
  42238. key: 0,
  42239. ref: "calculatorRef",
  42240. "aria-hidden": "true",
  42241. class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
  42242. textContent: toDisplayString(_ctx.states.inputValue)
  42243. }, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
  42244. ], 2),
  42245. _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
  42246. key: 1,
  42247. class: normalizeClass([
  42248. _ctx.nsSelect.e("selected-item"),
  42249. _ctx.nsSelect.e("placeholder"),
  42250. _ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
  42251. ])
  42252. }, [
  42253. _ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
  42254. key: 0,
  42255. index: (_b = (_a2 = _ctx.allOptionsValueMap.get(_ctx.modelValue)) == null ? void 0 : _a2.index) != null ? _b : -1,
  42256. label: _ctx.currentPlaceholder,
  42257. value: _ctx.modelValue
  42258. }, () => [
  42259. createBaseVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
  42260. ]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
  42261. ], 2)) : createCommentVNode("v-if", true)
  42262. ], 2),
  42263. createBaseVNode("div", {
  42264. ref: "suffixRef",
  42265. class: normalizeClass(_ctx.nsSelect.e("suffix"))
  42266. }, [
  42267. _ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
  42268. key: 0,
  42269. class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsInput.e("icon"), _ctx.iconReverse])
  42270. }, {
  42271. default: withCtx(() => [
  42272. (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
  42273. ]),
  42274. _: 1
  42275. }, 8, ["class"])), [
  42276. [vShow, !_ctx.showClearBtn]
  42277. ]) : createCommentVNode("v-if", true),
  42278. _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
  42279. key: 1,
  42280. class: normalizeClass([
  42281. _ctx.nsSelect.e("caret"),
  42282. _ctx.nsInput.e("icon"),
  42283. _ctx.nsSelect.e("clear")
  42284. ]),
  42285. onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
  42286. }, {
  42287. default: withCtx(() => [
  42288. (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
  42289. ]),
  42290. _: 1
  42291. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
  42292. _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
  42293. key: 2,
  42294. class: normalizeClass([
  42295. _ctx.nsInput.e("icon"),
  42296. _ctx.nsInput.e("validateIcon"),
  42297. _ctx.nsInput.is("loading", _ctx.validateState === "validating")
  42298. ])
  42299. }, {
  42300. default: withCtx(() => [
  42301. (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
  42302. ]),
  42303. _: 1
  42304. }, 8, ["class"])) : createCommentVNode("v-if", true)
  42305. ], 2)
  42306. ], 10, ["onClick"])
  42307. ];
  42308. }),
  42309. content: withCtx(() => [
  42310. createVNode(_component_el_select_menu, {
  42311. id: _ctx.contentId,
  42312. ref: "menuRef",
  42313. data: _ctx.filteredOptions,
  42314. width: _ctx.popperSize - _ctx.BORDER_HORIZONTAL_WIDTH,
  42315. "hovering-index": _ctx.states.hoveringIndex,
  42316. "scrollbar-always-on": _ctx.scrollbarAlwaysOn,
  42317. "aria-label": _ctx.ariaLabel
  42318. }, createSlots({
  42319. default: withCtx((scope) => [
  42320. renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(scope)))
  42321. ]),
  42322. _: 2
  42323. }, [
  42324. _ctx.$slots.header ? {
  42325. name: "header",
  42326. fn: withCtx(() => [
  42327. createBaseVNode("div", {
  42328. class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
  42329. onClick: withModifiers(() => {
  42330. }, ["stop"])
  42331. }, [
  42332. renderSlot(_ctx.$slots, "header")
  42333. ], 10, ["onClick"])
  42334. ])
  42335. } : void 0,
  42336. _ctx.$slots.loading && _ctx.loading ? {
  42337. name: "loading",
  42338. fn: withCtx(() => [
  42339. createBaseVNode("div", {
  42340. class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
  42341. }, [
  42342. renderSlot(_ctx.$slots, "loading")
  42343. ], 2)
  42344. ])
  42345. } : _ctx.loading || _ctx.filteredOptions.length === 0 ? {
  42346. name: "empty",
  42347. fn: withCtx(() => [
  42348. createBaseVNode("div", {
  42349. class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
  42350. }, [
  42351. renderSlot(_ctx.$slots, "empty", {}, () => [
  42352. createBaseVNode("span", null, toDisplayString(_ctx.emptyText), 1)
  42353. ])
  42354. ], 2)
  42355. ])
  42356. } : void 0,
  42357. _ctx.$slots.footer ? {
  42358. name: "footer",
  42359. fn: withCtx(() => [
  42360. createBaseVNode("div", {
  42361. class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
  42362. onClick: withModifiers(() => {
  42363. }, ["stop"])
  42364. }, [
  42365. renderSlot(_ctx.$slots, "footer")
  42366. ], 10, ["onClick"])
  42367. ])
  42368. } : void 0
  42369. ]), 1032, ["id", "data", "width", "hovering-index", "scrollbar-always-on", "aria-label"])
  42370. ]),
  42371. _: 3
  42372. }, 8, ["visible", "teleported", "popper-class", "popper-style", "popper-options", "fallback-placements", "effect", "placement", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
  42373. ], 42, ["onMouseenter", "onMouseleave"])), [
  42374. [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
  42375. ]);
  42376. }
  42377. var Select2 = _export_sfc(_sfc_main115, [["render", _sfc_render17], ["__file", "select.vue"]]);
  42378. // node_modules/element-plus/es/components/select-v2/index.mjs
  42379. var ElSelectV2 = withInstall(Select2);
  42380. // node_modules/element-plus/es/components/skeleton/src/skeleton.mjs
  42381. var skeletonProps = buildProps({
  42382. animated: Boolean,
  42383. count: {
  42384. type: Number,
  42385. default: 1
  42386. },
  42387. rows: {
  42388. type: Number,
  42389. default: 3
  42390. },
  42391. loading: {
  42392. type: Boolean,
  42393. default: true
  42394. },
  42395. throttle: {
  42396. type: definePropType([Number, Object])
  42397. }
  42398. });
  42399. // node_modules/element-plus/es/components/skeleton/src/skeleton-item.mjs
  42400. var skeletonItemProps = buildProps({
  42401. variant: {
  42402. type: String,
  42403. values: [
  42404. "circle",
  42405. "rect",
  42406. "h1",
  42407. "h3",
  42408. "text",
  42409. "caption",
  42410. "p",
  42411. "image",
  42412. "button"
  42413. ],
  42414. default: "text"
  42415. }
  42416. });
  42417. // node_modules/element-plus/es/components/skeleton/src/skeleton-item2.mjs
  42418. var __default__88 = defineComponent({
  42419. name: "ElSkeletonItem"
  42420. });
  42421. var _sfc_main116 = defineComponent({
  42422. ...__default__88,
  42423. props: skeletonItemProps,
  42424. setup(__props) {
  42425. const ns = useNamespace("skeleton");
  42426. return (_ctx, _cache) => {
  42427. return openBlock(), createElementBlock("div", {
  42428. class: normalizeClass([unref(ns).e("item"), unref(ns).e(_ctx.variant)])
  42429. }, [
  42430. _ctx.variant === "image" ? (openBlock(), createBlock(unref(picture_filled_default), { key: 0 })) : createCommentVNode("v-if", true)
  42431. ], 2);
  42432. };
  42433. }
  42434. });
  42435. var SkeletonItem = _export_sfc(_sfc_main116, [["__file", "skeleton-item.vue"]]);
  42436. // node_modules/element-plus/es/hooks/use-throttle-render/index.mjs
  42437. var useThrottleRender = (loading, throttle2 = 0) => {
  42438. if (throttle2 === 0)
  42439. return loading;
  42440. const initVal = isObject(throttle2) && Boolean(throttle2.initVal);
  42441. const throttled = ref(initVal);
  42442. let timeoutHandle = null;
  42443. const dispatchThrottling = (timer) => {
  42444. if (isUndefined2(timer)) {
  42445. throttled.value = loading.value;
  42446. return;
  42447. }
  42448. if (timeoutHandle) {
  42449. clearTimeout(timeoutHandle);
  42450. }
  42451. timeoutHandle = setTimeout(() => {
  42452. throttled.value = loading.value;
  42453. }, timer);
  42454. };
  42455. const dispatcher = (type4) => {
  42456. if (type4 === "leading") {
  42457. if (isNumber2(throttle2)) {
  42458. dispatchThrottling(throttle2);
  42459. } else {
  42460. dispatchThrottling(throttle2.leading);
  42461. }
  42462. } else {
  42463. if (isObject(throttle2)) {
  42464. dispatchThrottling(throttle2.trailing);
  42465. } else {
  42466. throttled.value = false;
  42467. }
  42468. }
  42469. };
  42470. onMounted(() => dispatcher("leading"));
  42471. watch(() => loading.value, (val) => {
  42472. dispatcher(val ? "leading" : "trailing");
  42473. });
  42474. return throttled;
  42475. };
  42476. // node_modules/element-plus/es/components/skeleton/src/skeleton2.mjs
  42477. var __default__89 = defineComponent({
  42478. name: "ElSkeleton"
  42479. });
  42480. var _sfc_main117 = defineComponent({
  42481. ...__default__89,
  42482. props: skeletonProps,
  42483. setup(__props, { expose }) {
  42484. const props2 = __props;
  42485. const ns = useNamespace("skeleton");
  42486. const uiLoading = useThrottleRender(toRef(props2, "loading"), props2.throttle);
  42487. expose({
  42488. uiLoading
  42489. });
  42490. return (_ctx, _cache) => {
  42491. return unref(uiLoading) ? (openBlock(), createElementBlock("div", mergeProps({
  42492. key: 0,
  42493. class: [unref(ns).b(), unref(ns).is("animated", _ctx.animated)]
  42494. }, _ctx.$attrs), [
  42495. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (i) => {
  42496. return openBlock(), createElementBlock(Fragment, { key: i }, [
  42497. unref(uiLoading) ? renderSlot(_ctx.$slots, "template", { key: i }, () => [
  42498. createVNode(SkeletonItem, {
  42499. class: normalizeClass(unref(ns).is("first")),
  42500. variant: "p"
  42501. }, null, 8, ["class"]),
  42502. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, (item) => {
  42503. return openBlock(), createBlock(SkeletonItem, {
  42504. key: item,
  42505. class: normalizeClass([
  42506. unref(ns).e("paragraph"),
  42507. unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
  42508. ]),
  42509. variant: "p"
  42510. }, null, 8, ["class"]);
  42511. }), 128))
  42512. ]) : createCommentVNode("v-if", true)
  42513. ], 64);
  42514. }), 128))
  42515. ], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)));
  42516. };
  42517. }
  42518. });
  42519. var Skeleton = _export_sfc(_sfc_main117, [["__file", "skeleton.vue"]]);
  42520. // node_modules/element-plus/es/components/skeleton/index.mjs
  42521. var ElSkeleton = withInstall(Skeleton, {
  42522. SkeletonItem
  42523. });
  42524. var ElSkeletonItem = withNoopInstall(SkeletonItem);
  42525. // node_modules/element-plus/es/components/slider/src/constants.mjs
  42526. var sliderContextKey = Symbol("sliderContextKey");
  42527. // node_modules/element-plus/es/components/slider/src/slider2.mjs
  42528. var sliderProps = buildProps({
  42529. modelValue: {
  42530. type: definePropType([Number, Array]),
  42531. default: 0
  42532. },
  42533. id: {
  42534. type: String,
  42535. default: void 0
  42536. },
  42537. min: {
  42538. type: Number,
  42539. default: 0
  42540. },
  42541. max: {
  42542. type: Number,
  42543. default: 100
  42544. },
  42545. step: {
  42546. type: Number,
  42547. default: 1
  42548. },
  42549. showInput: Boolean,
  42550. showInputControls: {
  42551. type: Boolean,
  42552. default: true
  42553. },
  42554. size: useSizeProp,
  42555. inputSize: useSizeProp,
  42556. showStops: Boolean,
  42557. showTooltip: {
  42558. type: Boolean,
  42559. default: true
  42560. },
  42561. formatTooltip: {
  42562. type: definePropType(Function),
  42563. default: void 0
  42564. },
  42565. disabled: Boolean,
  42566. range: Boolean,
  42567. vertical: Boolean,
  42568. height: String,
  42569. rangeStartLabel: {
  42570. type: String,
  42571. default: void 0
  42572. },
  42573. rangeEndLabel: {
  42574. type: String,
  42575. default: void 0
  42576. },
  42577. formatValueText: {
  42578. type: definePropType(Function),
  42579. default: void 0
  42580. },
  42581. tooltipClass: {
  42582. type: String,
  42583. default: void 0
  42584. },
  42585. placement: {
  42586. type: String,
  42587. values: Ee,
  42588. default: "top"
  42589. },
  42590. marks: {
  42591. type: definePropType(Object)
  42592. },
  42593. validateEvent: {
  42594. type: Boolean,
  42595. default: true
  42596. },
  42597. persistent: {
  42598. type: Boolean,
  42599. default: true
  42600. },
  42601. ...useAriaProps(["ariaLabel"])
  42602. });
  42603. var isValidValue = (value) => isNumber2(value) || isArray(value) && value.every(isNumber2);
  42604. var sliderEmits = {
  42605. [UPDATE_MODEL_EVENT]: isValidValue,
  42606. [INPUT_EVENT]: isValidValue,
  42607. [CHANGE_EVENT]: isValidValue
  42608. };
  42609. // node_modules/element-plus/es/components/slider/src/button.mjs
  42610. var sliderButtonProps = buildProps({
  42611. modelValue: {
  42612. type: Number,
  42613. default: 0
  42614. },
  42615. vertical: Boolean,
  42616. tooltipClass: String,
  42617. placement: {
  42618. type: String,
  42619. values: Ee,
  42620. default: "top"
  42621. }
  42622. });
  42623. var sliderButtonEmits = {
  42624. [UPDATE_MODEL_EVENT]: (value) => isNumber2(value)
  42625. };
  42626. // node_modules/element-plus/es/components/slider/src/composables/use-slider-button.mjs
  42627. var useTooltip = (props2, formatTooltip, showTooltip) => {
  42628. const tooltip = ref();
  42629. const tooltipVisible = ref(false);
  42630. const enableFormat = computed(() => {
  42631. return formatTooltip.value instanceof Function;
  42632. });
  42633. const formatValue = computed(() => {
  42634. return enableFormat.value && formatTooltip.value(props2.modelValue) || props2.modelValue;
  42635. });
  42636. const displayTooltip = debounce_default(() => {
  42637. showTooltip.value && (tooltipVisible.value = true);
  42638. }, 50);
  42639. const hideTooltip = debounce_default(() => {
  42640. showTooltip.value && (tooltipVisible.value = false);
  42641. }, 50);
  42642. return {
  42643. tooltip,
  42644. tooltipVisible,
  42645. formatValue,
  42646. displayTooltip,
  42647. hideTooltip
  42648. };
  42649. };
  42650. var useSliderButton = (props2, initData, emit) => {
  42651. const {
  42652. disabled,
  42653. min: min4,
  42654. max: max4,
  42655. step: step2,
  42656. showTooltip,
  42657. persistent,
  42658. precision,
  42659. sliderSize,
  42660. formatTooltip,
  42661. emitChange,
  42662. resetSize,
  42663. updateDragging
  42664. } = inject(sliderContextKey);
  42665. const { tooltip, tooltipVisible, formatValue, displayTooltip, hideTooltip } = useTooltip(props2, formatTooltip, showTooltip);
  42666. const button = ref();
  42667. const currentPosition = computed(() => {
  42668. return `${(props2.modelValue - min4.value) / (max4.value - min4.value) * 100}%`;
  42669. });
  42670. const wrapperStyle = computed(() => {
  42671. return props2.vertical ? { bottom: currentPosition.value } : { left: currentPosition.value };
  42672. });
  42673. const handleMouseEnter = () => {
  42674. initData.hovering = true;
  42675. displayTooltip();
  42676. };
  42677. const handleMouseLeave = () => {
  42678. initData.hovering = false;
  42679. if (!initData.dragging) {
  42680. hideTooltip();
  42681. }
  42682. };
  42683. const onButtonDown = (event) => {
  42684. if (disabled.value)
  42685. return;
  42686. event.preventDefault();
  42687. onDragStart(event);
  42688. window.addEventListener("mousemove", onDragging);
  42689. window.addEventListener("touchmove", onDragging);
  42690. window.addEventListener("mouseup", onDragEnd);
  42691. window.addEventListener("touchend", onDragEnd);
  42692. window.addEventListener("contextmenu", onDragEnd);
  42693. button.value.focus();
  42694. };
  42695. const incrementPosition = (amount) => {
  42696. if (disabled.value)
  42697. return;
  42698. initData.newPosition = Number.parseFloat(currentPosition.value) + amount / (max4.value - min4.value) * 100;
  42699. setPosition(initData.newPosition);
  42700. emitChange();
  42701. };
  42702. const onLeftKeyDown = () => {
  42703. incrementPosition(-step2.value);
  42704. };
  42705. const onRightKeyDown = () => {
  42706. incrementPosition(step2.value);
  42707. };
  42708. const onPageDownKeyDown = () => {
  42709. incrementPosition(-step2.value * 4);
  42710. };
  42711. const onPageUpKeyDown = () => {
  42712. incrementPosition(step2.value * 4);
  42713. };
  42714. const onHomeKeyDown = () => {
  42715. if (disabled.value)
  42716. return;
  42717. setPosition(0);
  42718. emitChange();
  42719. };
  42720. const onEndKeyDown = () => {
  42721. if (disabled.value)
  42722. return;
  42723. setPosition(100);
  42724. emitChange();
  42725. };
  42726. const onKeyDown = (event) => {
  42727. const code = getEventCode(event);
  42728. let isPreventDefault = true;
  42729. switch (code) {
  42730. case EVENT_CODE.left:
  42731. case EVENT_CODE.down:
  42732. onLeftKeyDown();
  42733. break;
  42734. case EVENT_CODE.right:
  42735. case EVENT_CODE.up:
  42736. onRightKeyDown();
  42737. break;
  42738. case EVENT_CODE.home:
  42739. onHomeKeyDown();
  42740. break;
  42741. case EVENT_CODE.end:
  42742. onEndKeyDown();
  42743. break;
  42744. case EVENT_CODE.pageDown:
  42745. onPageDownKeyDown();
  42746. break;
  42747. case EVENT_CODE.pageUp:
  42748. onPageUpKeyDown();
  42749. break;
  42750. default:
  42751. isPreventDefault = false;
  42752. break;
  42753. }
  42754. isPreventDefault && event.preventDefault();
  42755. };
  42756. const getClientXY2 = (event) => {
  42757. let clientX;
  42758. let clientY;
  42759. if (event.type.startsWith("touch")) {
  42760. clientY = event.touches[0].clientY;
  42761. clientX = event.touches[0].clientX;
  42762. } else {
  42763. clientY = event.clientY;
  42764. clientX = event.clientX;
  42765. }
  42766. return {
  42767. clientX,
  42768. clientY
  42769. };
  42770. };
  42771. const onDragStart = (event) => {
  42772. initData.dragging = true;
  42773. initData.isClick = true;
  42774. const { clientX, clientY } = getClientXY2(event);
  42775. if (props2.vertical) {
  42776. initData.startY = clientY;
  42777. } else {
  42778. initData.startX = clientX;
  42779. }
  42780. initData.startPosition = Number.parseFloat(currentPosition.value);
  42781. initData.newPosition = initData.startPosition;
  42782. };
  42783. const onDragging = (event) => {
  42784. if (initData.dragging) {
  42785. initData.isClick = false;
  42786. displayTooltip();
  42787. resetSize();
  42788. let diff;
  42789. const { clientX, clientY } = getClientXY2(event);
  42790. if (props2.vertical) {
  42791. initData.currentY = clientY;
  42792. diff = (initData.startY - initData.currentY) / sliderSize.value * 100;
  42793. } else {
  42794. initData.currentX = clientX;
  42795. diff = (initData.currentX - initData.startX) / sliderSize.value * 100;
  42796. }
  42797. initData.newPosition = initData.startPosition + diff;
  42798. setPosition(initData.newPosition);
  42799. }
  42800. };
  42801. const onDragEnd = () => {
  42802. if (initData.dragging) {
  42803. setTimeout(() => {
  42804. initData.dragging = false;
  42805. if (!initData.hovering) {
  42806. hideTooltip();
  42807. }
  42808. if (!initData.isClick) {
  42809. setPosition(initData.newPosition);
  42810. }
  42811. emitChange();
  42812. }, 0);
  42813. window.removeEventListener("mousemove", onDragging);
  42814. window.removeEventListener("touchmove", onDragging);
  42815. window.removeEventListener("mouseup", onDragEnd);
  42816. window.removeEventListener("touchend", onDragEnd);
  42817. window.removeEventListener("contextmenu", onDragEnd);
  42818. }
  42819. };
  42820. const setPosition = async (newPosition) => {
  42821. if (newPosition === null || Number.isNaN(+newPosition))
  42822. return;
  42823. newPosition = clamp_default(newPosition, 0, 100);
  42824. const fullSteps = Math.floor((max4.value - min4.value) / step2.value);
  42825. const fullRangePercentage = fullSteps * step2.value / (max4.value - min4.value) * 100;
  42826. const threshold = fullRangePercentage + (100 - fullRangePercentage) / 2;
  42827. let value;
  42828. if (newPosition < fullRangePercentage) {
  42829. const valueBetween = fullRangePercentage / fullSteps;
  42830. const steps = Math.round(newPosition / valueBetween);
  42831. value = min4.value + steps * step2.value;
  42832. } else if (newPosition < threshold) {
  42833. value = min4.value + fullSteps * step2.value;
  42834. } else {
  42835. value = max4.value;
  42836. }
  42837. value = Number.parseFloat(value.toFixed(precision.value));
  42838. if (value !== props2.modelValue) {
  42839. emit(UPDATE_MODEL_EVENT, value);
  42840. }
  42841. if (!initData.dragging && props2.modelValue !== initData.oldValue) {
  42842. initData.oldValue = props2.modelValue;
  42843. }
  42844. await nextTick();
  42845. initData.dragging && displayTooltip();
  42846. tooltip.value.updatePopper();
  42847. };
  42848. watch(() => initData.dragging, (val) => {
  42849. updateDragging(val);
  42850. });
  42851. useEventListener(button, "touchstart", onButtonDown, { passive: false });
  42852. return {
  42853. disabled,
  42854. button,
  42855. tooltip,
  42856. tooltipVisible,
  42857. showTooltip,
  42858. persistent,
  42859. wrapperStyle,
  42860. formatValue,
  42861. handleMouseEnter,
  42862. handleMouseLeave,
  42863. onButtonDown,
  42864. onKeyDown,
  42865. setPosition
  42866. };
  42867. };
  42868. // node_modules/element-plus/es/components/slider/src/button2.mjs
  42869. var __default__90 = defineComponent({
  42870. name: "ElSliderButton"
  42871. });
  42872. var _sfc_main118 = defineComponent({
  42873. ...__default__90,
  42874. props: sliderButtonProps,
  42875. emits: sliderButtonEmits,
  42876. setup(__props, { expose, emit }) {
  42877. const props2 = __props;
  42878. const ns = useNamespace("slider");
  42879. const initData = reactive({
  42880. hovering: false,
  42881. dragging: false,
  42882. isClick: false,
  42883. startX: 0,
  42884. currentX: 0,
  42885. startY: 0,
  42886. currentY: 0,
  42887. startPosition: 0,
  42888. newPosition: 0,
  42889. oldValue: props2.modelValue
  42890. });
  42891. const tooltipPersistent = computed(() => !showTooltip.value ? false : persistent.value);
  42892. const {
  42893. disabled,
  42894. button,
  42895. tooltip,
  42896. showTooltip,
  42897. persistent,
  42898. tooltipVisible,
  42899. wrapperStyle,
  42900. formatValue,
  42901. handleMouseEnter,
  42902. handleMouseLeave,
  42903. onButtonDown,
  42904. onKeyDown,
  42905. setPosition
  42906. } = useSliderButton(props2, initData, emit);
  42907. const { hovering, dragging } = toRefs(initData);
  42908. expose({
  42909. onButtonDown,
  42910. onKeyDown,
  42911. setPosition,
  42912. hovering,
  42913. dragging
  42914. });
  42915. return (_ctx, _cache) => {
  42916. return openBlock(), createElementBlock("div", {
  42917. ref_key: "button",
  42918. ref: button,
  42919. class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
  42920. style: normalizeStyle(unref(wrapperStyle)),
  42921. tabindex: unref(disabled) ? void 0 : 0,
  42922. onMouseenter: unref(handleMouseEnter),
  42923. onMouseleave: unref(handleMouseLeave),
  42924. onMousedown: unref(onButtonDown),
  42925. onFocus: unref(handleMouseEnter),
  42926. onBlur: unref(handleMouseLeave),
  42927. onKeydown: unref(onKeyDown)
  42928. }, [
  42929. createVNode(unref(ElTooltip), {
  42930. ref_key: "tooltip",
  42931. ref: tooltip,
  42932. visible: unref(tooltipVisible),
  42933. placement: _ctx.placement,
  42934. "fallback-placements": ["top", "bottom", "right", "left"],
  42935. "stop-popper-mouse-event": false,
  42936. "popper-class": _ctx.tooltipClass,
  42937. disabled: !unref(showTooltip),
  42938. persistent: unref(tooltipPersistent)
  42939. }, {
  42940. content: withCtx(() => [
  42941. createBaseVNode("span", null, toDisplayString(unref(formatValue)), 1)
  42942. ]),
  42943. default: withCtx(() => [
  42944. createBaseVNode("div", {
  42945. class: normalizeClass([unref(ns).e("button"), { hover: unref(hovering), dragging: unref(dragging) }])
  42946. }, null, 2)
  42947. ]),
  42948. _: 1
  42949. }, 8, ["visible", "placement", "popper-class", "disabled", "persistent"])
  42950. ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"]);
  42951. };
  42952. }
  42953. });
  42954. var SliderButton = _export_sfc(_sfc_main118, [["__file", "button.vue"]]);
  42955. // node_modules/element-plus/es/components/slider/src/marker.mjs
  42956. var sliderMarkerProps = buildProps({
  42957. mark: {
  42958. type: definePropType([String, Object]),
  42959. default: void 0
  42960. }
  42961. });
  42962. var SliderMarker = defineComponent({
  42963. name: "ElSliderMarker",
  42964. props: sliderMarkerProps,
  42965. setup(props2) {
  42966. const ns = useNamespace("slider");
  42967. const label = computed(() => {
  42968. return isString(props2.mark) ? props2.mark : props2.mark.label;
  42969. });
  42970. const style = computed(() => isString(props2.mark) ? void 0 : props2.mark.style);
  42971. return () => h("div", {
  42972. class: ns.e("marks-text"),
  42973. style: style.value
  42974. }, label.value);
  42975. }
  42976. });
  42977. // node_modules/element-plus/es/components/slider/src/composables/use-slide.mjs
  42978. var useSlide = (props2, initData, emit) => {
  42979. const { form: elForm, formItem: elFormItem } = useFormItem();
  42980. const slider = shallowRef();
  42981. const firstButton = ref();
  42982. const secondButton = ref();
  42983. const buttonRefs = {
  42984. firstButton,
  42985. secondButton
  42986. };
  42987. const sliderDisabled = computed(() => {
  42988. return props2.disabled || (elForm == null ? void 0 : elForm.disabled) || false;
  42989. });
  42990. const minValue3 = computed(() => {
  42991. return Math.min(initData.firstValue, initData.secondValue);
  42992. });
  42993. const maxValue3 = computed(() => {
  42994. return Math.max(initData.firstValue, initData.secondValue);
  42995. });
  42996. const barSize = computed(() => {
  42997. return props2.range ? `${100 * (maxValue3.value - minValue3.value) / (props2.max - props2.min)}%` : `${100 * (initData.firstValue - props2.min) / (props2.max - props2.min)}%`;
  42998. });
  42999. const barStart = computed(() => {
  43000. return props2.range ? `${100 * (minValue3.value - props2.min) / (props2.max - props2.min)}%` : "0%";
  43001. });
  43002. const runwayStyle = computed(() => {
  43003. return props2.vertical ? { height: props2.height } : {};
  43004. });
  43005. const barStyle = computed(() => {
  43006. return props2.vertical ? {
  43007. height: barSize.value,
  43008. bottom: barStart.value
  43009. } : {
  43010. width: barSize.value,
  43011. left: barStart.value
  43012. };
  43013. });
  43014. const resetSize = () => {
  43015. if (slider.value) {
  43016. const rect = slider.value.getBoundingClientRect();
  43017. initData.sliderSize = rect[props2.vertical ? "height" : "width"];
  43018. }
  43019. };
  43020. const getButtonRefByPercent = (percent) => {
  43021. const targetValue = props2.min + percent * (props2.max - props2.min) / 100;
  43022. if (!props2.range) {
  43023. return firstButton;
  43024. }
  43025. let buttonRefName;
  43026. if (Math.abs(minValue3.value - targetValue) < Math.abs(maxValue3.value - targetValue)) {
  43027. buttonRefName = initData.firstValue < initData.secondValue ? "firstButton" : "secondButton";
  43028. } else {
  43029. buttonRefName = initData.firstValue > initData.secondValue ? "firstButton" : "secondButton";
  43030. }
  43031. return buttonRefs[buttonRefName];
  43032. };
  43033. const setPosition = (percent) => {
  43034. const buttonRef = getButtonRefByPercent(percent);
  43035. buttonRef.value.setPosition(percent);
  43036. return buttonRef;
  43037. };
  43038. const setFirstValue = (firstValue) => {
  43039. initData.firstValue = firstValue != null ? firstValue : props2.min;
  43040. _emit(props2.range ? [minValue3.value, maxValue3.value] : firstValue != null ? firstValue : props2.min);
  43041. };
  43042. const setSecondValue = (secondValue) => {
  43043. initData.secondValue = secondValue;
  43044. if (props2.range) {
  43045. _emit([minValue3.value, maxValue3.value]);
  43046. }
  43047. };
  43048. const _emit = (val) => {
  43049. emit(UPDATE_MODEL_EVENT, val);
  43050. emit(INPUT_EVENT, val);
  43051. };
  43052. const emitChange = async () => {
  43053. await nextTick();
  43054. emit(CHANGE_EVENT, props2.range ? [minValue3.value, maxValue3.value] : props2.modelValue);
  43055. };
  43056. const handleSliderPointerEvent = (event) => {
  43057. var _a2, _b, _c, _d, _e, _f;
  43058. if (sliderDisabled.value || initData.dragging)
  43059. return;
  43060. resetSize();
  43061. let newPercent = 0;
  43062. if (props2.vertical) {
  43063. const clientY = (_c = (_b = (_a2 = event.touches) == null ? void 0 : _a2.item(0)) == null ? void 0 : _b.clientY) != null ? _c : event.clientY;
  43064. const sliderOffsetBottom = slider.value.getBoundingClientRect().bottom;
  43065. newPercent = (sliderOffsetBottom - clientY) / initData.sliderSize * 100;
  43066. } else {
  43067. const clientX = (_f = (_e = (_d = event.touches) == null ? void 0 : _d.item(0)) == null ? void 0 : _e.clientX) != null ? _f : event.clientX;
  43068. const sliderOffsetLeft = slider.value.getBoundingClientRect().left;
  43069. newPercent = (clientX - sliderOffsetLeft) / initData.sliderSize * 100;
  43070. }
  43071. if (newPercent < 0 || newPercent > 100)
  43072. return;
  43073. return setPosition(newPercent);
  43074. };
  43075. const onSliderWrapperPrevent = (event) => {
  43076. var _a2, _b;
  43077. if (((_a2 = buttonRefs["firstButton"].value) == null ? void 0 : _a2.dragging) || ((_b = buttonRefs["secondButton"].value) == null ? void 0 : _b.dragging)) {
  43078. event.preventDefault();
  43079. }
  43080. };
  43081. const onSliderDown = async (event) => {
  43082. const buttonRef = handleSliderPointerEvent(event);
  43083. if (buttonRef) {
  43084. await nextTick();
  43085. buttonRef.value.onButtonDown(event);
  43086. }
  43087. };
  43088. const onSliderClick = (event) => {
  43089. const buttonRef = handleSliderPointerEvent(event);
  43090. if (buttonRef) {
  43091. emitChange();
  43092. }
  43093. };
  43094. const onSliderMarkerDown = (position) => {
  43095. if (sliderDisabled.value || initData.dragging)
  43096. return;
  43097. const buttonRef = setPosition(position);
  43098. if (buttonRef) {
  43099. emitChange();
  43100. }
  43101. };
  43102. return {
  43103. elFormItem,
  43104. slider,
  43105. firstButton,
  43106. secondButton,
  43107. sliderDisabled,
  43108. minValue: minValue3,
  43109. maxValue: maxValue3,
  43110. runwayStyle,
  43111. barStyle,
  43112. resetSize,
  43113. setPosition,
  43114. emitChange,
  43115. onSliderWrapperPrevent,
  43116. onSliderClick,
  43117. onSliderDown,
  43118. onSliderMarkerDown,
  43119. setFirstValue,
  43120. setSecondValue
  43121. };
  43122. };
  43123. // node_modules/element-plus/es/components/slider/src/composables/use-stops.mjs
  43124. var useStops = (props2, initData, minValue3, maxValue3) => {
  43125. const stops = computed(() => {
  43126. if (!props2.showStops || props2.min > props2.max)
  43127. return [];
  43128. if (props2.step === 0) {
  43129. debugWarn("ElSlider", "step should not be 0.");
  43130. return [];
  43131. }
  43132. const stopCount = Math.ceil((props2.max - props2.min) / props2.step);
  43133. const stepWidth = 100 * props2.step / (props2.max - props2.min);
  43134. const result2 = Array.from({ length: stopCount - 1 }).map((_2, index) => (index + 1) * stepWidth);
  43135. if (props2.range) {
  43136. return result2.filter((step2) => {
  43137. return step2 < 100 * (minValue3.value - props2.min) / (props2.max - props2.min) || step2 > 100 * (maxValue3.value - props2.min) / (props2.max - props2.min);
  43138. });
  43139. } else {
  43140. return result2.filter((step2) => step2 > 100 * (initData.firstValue - props2.min) / (props2.max - props2.min));
  43141. }
  43142. });
  43143. const getStopStyle = (position) => {
  43144. return props2.vertical ? { bottom: `${position}%` } : { left: `${position}%` };
  43145. };
  43146. return {
  43147. stops,
  43148. getStopStyle
  43149. };
  43150. };
  43151. // node_modules/element-plus/es/components/slider/src/composables/use-marks.mjs
  43152. var useMarks = (props2) => {
  43153. return computed(() => {
  43154. if (!props2.marks) {
  43155. return [];
  43156. }
  43157. const marksKeys = Object.keys(props2.marks);
  43158. return marksKeys.map(Number.parseFloat).sort((a2, b2) => a2 - b2).filter((point) => point <= props2.max && point >= props2.min).map((point) => ({
  43159. point,
  43160. position: (point - props2.min) * 100 / (props2.max - props2.min),
  43161. mark: props2.marks[point]
  43162. }));
  43163. });
  43164. };
  43165. // node_modules/element-plus/es/components/slider/src/composables/use-watch.mjs
  43166. var useWatch = (props2, initData, minValue3, maxValue3, emit, elFormItem) => {
  43167. const _emit = (val) => {
  43168. emit(UPDATE_MODEL_EVENT, val);
  43169. emit(INPUT_EVENT, val);
  43170. };
  43171. const valueChanged = () => {
  43172. if (props2.range) {
  43173. return ![minValue3.value, maxValue3.value].every((item, index) => item === initData.oldValue[index]);
  43174. } else {
  43175. return props2.modelValue !== initData.oldValue;
  43176. }
  43177. };
  43178. const setValues = () => {
  43179. var _a2, _b;
  43180. if (props2.min > props2.max) {
  43181. throwError("Slider", "min should not be greater than max.");
  43182. }
  43183. const val = props2.modelValue;
  43184. if (props2.range && isArray(val)) {
  43185. if (val[1] < props2.min) {
  43186. _emit([props2.min, props2.min]);
  43187. } else if (val[0] > props2.max) {
  43188. _emit([props2.max, props2.max]);
  43189. } else if (val[0] < props2.min) {
  43190. _emit([props2.min, val[1]]);
  43191. } else if (val[1] > props2.max) {
  43192. _emit([val[0], props2.max]);
  43193. } else {
  43194. initData.firstValue = val[0];
  43195. initData.secondValue = val[1];
  43196. if (valueChanged()) {
  43197. if (props2.validateEvent) {
  43198. (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change").catch((err) => debugWarn(err));
  43199. }
  43200. initData.oldValue = val.slice();
  43201. }
  43202. }
  43203. } else if (!props2.range && isNumber2(val) && !Number.isNaN(val)) {
  43204. if (val < props2.min) {
  43205. _emit(props2.min);
  43206. } else if (val > props2.max) {
  43207. _emit(props2.max);
  43208. } else {
  43209. initData.firstValue = val;
  43210. if (valueChanged()) {
  43211. if (props2.validateEvent) {
  43212. (_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn(err));
  43213. }
  43214. initData.oldValue = val;
  43215. }
  43216. }
  43217. }
  43218. };
  43219. setValues();
  43220. watch(() => initData.dragging, (val) => {
  43221. if (!val) {
  43222. setValues();
  43223. }
  43224. });
  43225. watch(() => props2.modelValue, (val, oldVal) => {
  43226. if (initData.dragging || isArray(val) && isArray(oldVal) && val.every((item, index) => item === oldVal[index]) && initData.firstValue === val[0] && initData.secondValue === val[1]) {
  43227. return;
  43228. }
  43229. setValues();
  43230. }, {
  43231. deep: true
  43232. });
  43233. watch(() => [props2.min, props2.max], () => {
  43234. setValues();
  43235. });
  43236. };
  43237. // node_modules/element-plus/es/components/slider/src/composables/use-lifecycle.mjs
  43238. var useLifecycle = (props2, initData, resetSize) => {
  43239. const sliderWrapper = ref();
  43240. onMounted(async () => {
  43241. if (props2.range) {
  43242. if (isArray(props2.modelValue)) {
  43243. initData.firstValue = Math.max(props2.min, props2.modelValue[0]);
  43244. initData.secondValue = Math.min(props2.max, props2.modelValue[1]);
  43245. } else {
  43246. initData.firstValue = props2.min;
  43247. initData.secondValue = props2.max;
  43248. }
  43249. initData.oldValue = [initData.firstValue, initData.secondValue];
  43250. } else {
  43251. if (!isNumber2(props2.modelValue) || Number.isNaN(props2.modelValue)) {
  43252. initData.firstValue = props2.min;
  43253. } else {
  43254. initData.firstValue = Math.min(props2.max, Math.max(props2.min, props2.modelValue));
  43255. }
  43256. initData.oldValue = initData.firstValue;
  43257. }
  43258. useEventListener(window, "resize", resetSize);
  43259. await nextTick();
  43260. resetSize();
  43261. });
  43262. return {
  43263. sliderWrapper
  43264. };
  43265. };
  43266. // node_modules/element-plus/es/components/slider/src/slider.mjs
  43267. var __default__91 = defineComponent({
  43268. name: "ElSlider"
  43269. });
  43270. var _sfc_main119 = defineComponent({
  43271. ...__default__91,
  43272. props: sliderProps,
  43273. emits: sliderEmits,
  43274. setup(__props, { expose, emit }) {
  43275. const props2 = __props;
  43276. const ns = useNamespace("slider");
  43277. const { t } = useLocale();
  43278. const initData = reactive({
  43279. firstValue: 0,
  43280. secondValue: 0,
  43281. oldValue: 0,
  43282. dragging: false,
  43283. sliderSize: 1
  43284. });
  43285. const {
  43286. elFormItem,
  43287. slider,
  43288. firstButton,
  43289. secondButton,
  43290. sliderDisabled,
  43291. minValue: minValue3,
  43292. maxValue: maxValue3,
  43293. runwayStyle,
  43294. barStyle,
  43295. resetSize,
  43296. emitChange,
  43297. onSliderWrapperPrevent,
  43298. onSliderClick,
  43299. onSliderDown,
  43300. onSliderMarkerDown,
  43301. setFirstValue,
  43302. setSecondValue
  43303. } = useSlide(props2, initData, emit);
  43304. const { stops, getStopStyle } = useStops(props2, initData, minValue3, maxValue3);
  43305. const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
  43306. formItemContext: elFormItem
  43307. });
  43308. const sliderWrapperSize = useFormSize();
  43309. const sliderInputSize = computed(() => props2.inputSize || sliderWrapperSize.value);
  43310. const groupLabel = computed(() => {
  43311. return props2.ariaLabel || t("el.slider.defaultLabel", {
  43312. min: props2.min,
  43313. max: props2.max
  43314. });
  43315. });
  43316. const firstButtonLabel = computed(() => {
  43317. if (props2.range) {
  43318. return props2.rangeStartLabel || t("el.slider.defaultRangeStartLabel");
  43319. } else {
  43320. return groupLabel.value;
  43321. }
  43322. });
  43323. const firstValueText = computed(() => {
  43324. return props2.formatValueText ? props2.formatValueText(firstValue.value) : `${firstValue.value}`;
  43325. });
  43326. const secondButtonLabel = computed(() => {
  43327. return props2.rangeEndLabel || t("el.slider.defaultRangeEndLabel");
  43328. });
  43329. const secondValueText = computed(() => {
  43330. return props2.formatValueText ? props2.formatValueText(secondValue.value) : `${secondValue.value}`;
  43331. });
  43332. const sliderKls = computed(() => [
  43333. ns.b(),
  43334. ns.m(sliderWrapperSize.value),
  43335. ns.is("vertical", props2.vertical),
  43336. { [ns.m("with-input")]: props2.showInput }
  43337. ]);
  43338. const markList = useMarks(props2);
  43339. useWatch(props2, initData, minValue3, maxValue3, emit, elFormItem);
  43340. const precision = computed(() => {
  43341. const precisions = [props2.min, props2.max, props2.step].map((item) => {
  43342. const decimal = `${item}`.split(".")[1];
  43343. return decimal ? decimal.length : 0;
  43344. });
  43345. return Math.max.apply(null, precisions);
  43346. });
  43347. const { sliderWrapper } = useLifecycle(props2, initData, resetSize);
  43348. const { firstValue, secondValue, sliderSize } = toRefs(initData);
  43349. const updateDragging = (val) => {
  43350. initData.dragging = val;
  43351. };
  43352. useEventListener(sliderWrapper, "touchstart", onSliderWrapperPrevent, {
  43353. passive: false
  43354. });
  43355. useEventListener(sliderWrapper, "touchmove", onSliderWrapperPrevent, {
  43356. passive: false
  43357. });
  43358. provide(sliderContextKey, {
  43359. ...toRefs(props2),
  43360. sliderSize,
  43361. disabled: sliderDisabled,
  43362. precision,
  43363. emitChange,
  43364. resetSize,
  43365. updateDragging
  43366. });
  43367. expose({
  43368. onSliderClick
  43369. });
  43370. return (_ctx, _cache) => {
  43371. var _a2, _b;
  43372. return openBlock(), createElementBlock("div", {
  43373. id: _ctx.range ? unref(inputId) : void 0,
  43374. ref_key: "sliderWrapper",
  43375. ref: sliderWrapper,
  43376. class: normalizeClass(unref(sliderKls)),
  43377. role: _ctx.range ? "group" : void 0,
  43378. "aria-label": _ctx.range && !unref(isLabeledByFormItem) ? unref(groupLabel) : void 0,
  43379. "aria-labelledby": _ctx.range && unref(isLabeledByFormItem) ? (_a2 = unref(elFormItem)) == null ? void 0 : _a2.labelId : void 0
  43380. }, [
  43381. createBaseVNode("div", {
  43382. ref_key: "slider",
  43383. ref: slider,
  43384. class: normalizeClass([
  43385. unref(ns).e("runway"),
  43386. { "show-input": _ctx.showInput && !_ctx.range },
  43387. unref(ns).is("disabled", unref(sliderDisabled))
  43388. ]),
  43389. style: normalizeStyle(unref(runwayStyle)),
  43390. onMousedown: unref(onSliderDown),
  43391. onTouchstartPassive: unref(onSliderDown)
  43392. }, [
  43393. createBaseVNode("div", {
  43394. class: normalizeClass(unref(ns).e("bar")),
  43395. style: normalizeStyle(unref(barStyle))
  43396. }, null, 6),
  43397. createVNode(SliderButton, {
  43398. id: !_ctx.range ? unref(inputId) : void 0,
  43399. ref_key: "firstButton",
  43400. ref: firstButton,
  43401. "model-value": unref(firstValue),
  43402. vertical: _ctx.vertical,
  43403. "tooltip-class": _ctx.tooltipClass,
  43404. placement: _ctx.placement,
  43405. role: "slider",
  43406. "aria-label": _ctx.range || !unref(isLabeledByFormItem) ? unref(firstButtonLabel) : void 0,
  43407. "aria-labelledby": !_ctx.range && unref(isLabeledByFormItem) ? (_b = unref(elFormItem)) == null ? void 0 : _b.labelId : void 0,
  43408. "aria-valuemin": _ctx.min,
  43409. "aria-valuemax": _ctx.range ? unref(secondValue) : _ctx.max,
  43410. "aria-valuenow": unref(firstValue),
  43411. "aria-valuetext": unref(firstValueText),
  43412. "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
  43413. "aria-disabled": unref(sliderDisabled),
  43414. "onUpdate:modelValue": unref(setFirstValue)
  43415. }, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
  43416. _ctx.range ? (openBlock(), createBlock(SliderButton, {
  43417. key: 0,
  43418. ref_key: "secondButton",
  43419. ref: secondButton,
  43420. "model-value": unref(secondValue),
  43421. vertical: _ctx.vertical,
  43422. "tooltip-class": _ctx.tooltipClass,
  43423. placement: _ctx.placement,
  43424. role: "slider",
  43425. "aria-label": unref(secondButtonLabel),
  43426. "aria-valuemin": unref(firstValue),
  43427. "aria-valuemax": _ctx.max,
  43428. "aria-valuenow": unref(secondValue),
  43429. "aria-valuetext": unref(secondValueText),
  43430. "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
  43431. "aria-disabled": unref(sliderDisabled),
  43432. "onUpdate:modelValue": unref(setSecondValue)
  43433. }, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
  43434. _ctx.showStops ? (openBlock(), createElementBlock("div", { key: 1 }, [
  43435. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(stops), (item, key) => {
  43436. return openBlock(), createElementBlock("div", {
  43437. key,
  43438. class: normalizeClass(unref(ns).e("stop")),
  43439. style: normalizeStyle(unref(getStopStyle)(item))
  43440. }, null, 6);
  43441. }), 128))
  43442. ])) : createCommentVNode("v-if", true),
  43443. unref(markList).length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
  43444. createBaseVNode("div", null, [
  43445. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(markList), (item, key) => {
  43446. return openBlock(), createElementBlock("div", {
  43447. key,
  43448. style: normalizeStyle(unref(getStopStyle)(item.position)),
  43449. class: normalizeClass([unref(ns).e("stop"), unref(ns).e("marks-stop")])
  43450. }, null, 6);
  43451. }), 128))
  43452. ]),
  43453. createBaseVNode("div", {
  43454. class: normalizeClass(unref(ns).e("marks"))
  43455. }, [
  43456. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(markList), (item, key) => {
  43457. return openBlock(), createBlock(unref(SliderMarker), {
  43458. key,
  43459. mark: item.mark,
  43460. style: normalizeStyle(unref(getStopStyle)(item.position)),
  43461. onMousedown: withModifiers(($event) => unref(onSliderMarkerDown)(item.position), ["stop"])
  43462. }, null, 8, ["mark", "style", "onMousedown"]);
  43463. }), 128))
  43464. ], 2)
  43465. ], 64)) : createCommentVNode("v-if", true)
  43466. ], 46, ["onMousedown", "onTouchstartPassive"]),
  43467. _ctx.showInput && !_ctx.range ? (openBlock(), createBlock(unref(ElInputNumber), {
  43468. key: 0,
  43469. ref: "input",
  43470. "model-value": unref(firstValue),
  43471. class: normalizeClass(unref(ns).e("input")),
  43472. step: _ctx.step,
  43473. disabled: unref(sliderDisabled),
  43474. controls: _ctx.showInputControls,
  43475. min: _ctx.min,
  43476. max: _ctx.max,
  43477. precision: unref(precision),
  43478. size: unref(sliderInputSize),
  43479. "onUpdate:modelValue": unref(setFirstValue),
  43480. onChange: unref(emitChange)
  43481. }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "size", "onUpdate:modelValue", "onChange"])) : createCommentVNode("v-if", true)
  43482. ], 10, ["id", "role", "aria-label", "aria-labelledby"]);
  43483. };
  43484. }
  43485. });
  43486. var Slider = _export_sfc(_sfc_main119, [["__file", "slider.vue"]]);
  43487. // node_modules/element-plus/es/components/slider/index.mjs
  43488. var ElSlider = withInstall(Slider);
  43489. // node_modules/element-plus/es/components/space/src/item.mjs
  43490. var spaceItemProps = buildProps({
  43491. prefixCls: {
  43492. type: String
  43493. }
  43494. });
  43495. var SpaceItem = defineComponent({
  43496. name: "ElSpaceItem",
  43497. props: spaceItemProps,
  43498. setup(props2, { slots }) {
  43499. const ns = useNamespace("space");
  43500. const classes = computed(() => `${props2.prefixCls || ns.b()}__item`);
  43501. return () => h("div", { class: classes.value }, renderSlot(slots, "default"));
  43502. }
  43503. });
  43504. // node_modules/element-plus/es/components/space/src/use-space.mjs
  43505. var SIZE_MAP = {
  43506. small: 8,
  43507. default: 12,
  43508. large: 16
  43509. };
  43510. function useSpace(props2) {
  43511. const ns = useNamespace("space");
  43512. const classes = computed(() => [ns.b(), ns.m(props2.direction), props2.class]);
  43513. const horizontalSize = ref(0);
  43514. const verticalSize = ref(0);
  43515. const containerStyle = computed(() => {
  43516. const wrapKls = props2.wrap || props2.fill ? { flexWrap: "wrap" } : {};
  43517. const alignment = {
  43518. alignItems: props2.alignment
  43519. };
  43520. const gap = {
  43521. rowGap: `${verticalSize.value}px`,
  43522. columnGap: `${horizontalSize.value}px`
  43523. };
  43524. return [wrapKls, alignment, gap, props2.style];
  43525. });
  43526. const itemStyle = computed(() => {
  43527. return props2.fill ? { flexGrow: 1, minWidth: `${props2.fillRatio}%` } : {};
  43528. });
  43529. watchEffect(() => {
  43530. const { size: size3 = "small", wrap: wrap2, direction: dir, fill: fill2 } = props2;
  43531. if (isArray(size3)) {
  43532. const [h3 = 0, v2 = 0] = size3;
  43533. horizontalSize.value = h3;
  43534. verticalSize.value = v2;
  43535. } else {
  43536. let val;
  43537. if (isNumber2(size3)) {
  43538. val = size3;
  43539. } else {
  43540. val = SIZE_MAP[size3 || "small"] || SIZE_MAP.small;
  43541. }
  43542. if ((wrap2 || fill2) && dir === "horizontal") {
  43543. horizontalSize.value = verticalSize.value = val;
  43544. } else {
  43545. if (dir === "horizontal") {
  43546. horizontalSize.value = val;
  43547. verticalSize.value = 0;
  43548. } else {
  43549. verticalSize.value = val;
  43550. horizontalSize.value = 0;
  43551. }
  43552. }
  43553. }
  43554. });
  43555. return {
  43556. classes,
  43557. containerStyle,
  43558. itemStyle
  43559. };
  43560. }
  43561. // node_modules/element-plus/es/components/space/src/space.mjs
  43562. var spaceProps = buildProps({
  43563. direction: {
  43564. type: String,
  43565. values: ["horizontal", "vertical"],
  43566. default: "horizontal"
  43567. },
  43568. class: {
  43569. type: definePropType([
  43570. String,
  43571. Object,
  43572. Array
  43573. ]),
  43574. default: ""
  43575. },
  43576. style: {
  43577. type: definePropType([String, Array, Object]),
  43578. default: ""
  43579. },
  43580. alignment: {
  43581. type: definePropType(String),
  43582. default: "center"
  43583. },
  43584. prefixCls: {
  43585. type: String
  43586. },
  43587. spacer: {
  43588. type: definePropType([Object, String, Number, Array]),
  43589. default: null,
  43590. validator: (val) => isVNode(val) || isNumber2(val) || isString(val)
  43591. },
  43592. wrap: Boolean,
  43593. fill: Boolean,
  43594. fillRatio: {
  43595. type: Number,
  43596. default: 100
  43597. },
  43598. size: {
  43599. type: [String, Array, Number],
  43600. values: componentSizes,
  43601. validator: (val) => {
  43602. return isNumber2(val) || isArray(val) && val.length === 2 && val.every(isNumber2);
  43603. }
  43604. }
  43605. });
  43606. var Space = defineComponent({
  43607. name: "ElSpace",
  43608. props: spaceProps,
  43609. setup(props2, { slots }) {
  43610. const { classes, containerStyle, itemStyle } = useSpace(props2);
  43611. function extractChildren(children, parentKey = "", extractedChildren = []) {
  43612. const { prefixCls } = props2;
  43613. children.forEach((child, loopKey) => {
  43614. if (isFragment(child)) {
  43615. if (isArray(child.children)) {
  43616. child.children.forEach((nested, key) => {
  43617. if (isFragment(nested) && isArray(nested.children)) {
  43618. extractChildren(nested.children, `${parentKey + key}-`, extractedChildren);
  43619. } else {
  43620. if (isVNode(nested) && (nested == null ? void 0 : nested.type) === Comment) {
  43621. extractedChildren.push(nested);
  43622. } else {
  43623. extractedChildren.push(createVNode(SpaceItem, {
  43624. style: itemStyle.value,
  43625. prefixCls,
  43626. key: `nested-${parentKey + key}`
  43627. }, {
  43628. default: () => [nested]
  43629. }, PatchFlags.PROPS | PatchFlags.STYLE, ["style", "prefixCls"]));
  43630. }
  43631. }
  43632. });
  43633. }
  43634. } else if (isValidElementNode(child)) {
  43635. extractedChildren.push(createVNode(SpaceItem, {
  43636. style: itemStyle.value,
  43637. prefixCls,
  43638. key: `LoopKey${parentKey + loopKey}`
  43639. }, {
  43640. default: () => [child]
  43641. }, PatchFlags.PROPS | PatchFlags.STYLE, ["style", "prefixCls"]));
  43642. }
  43643. });
  43644. return extractedChildren;
  43645. }
  43646. return () => {
  43647. var _a2;
  43648. const { spacer, direction: direction2 } = props2;
  43649. const children = renderSlot(slots, "default", { key: 0 }, () => []);
  43650. if (((_a2 = children.children) != null ? _a2 : []).length === 0)
  43651. return null;
  43652. if (isArray(children.children)) {
  43653. let extractedChildren = extractChildren(children.children);
  43654. if (spacer) {
  43655. const len = extractedChildren.length - 1;
  43656. extractedChildren = extractedChildren.reduce((acc, child, idx) => {
  43657. const children2 = [...acc, child];
  43658. if (idx !== len) {
  43659. children2.push(createVNode("span", {
  43660. style: [
  43661. itemStyle.value,
  43662. direction2 === "vertical" ? "width: 100%" : null
  43663. ],
  43664. key: idx
  43665. }, [
  43666. isVNode(spacer) ? spacer : createTextVNode(spacer, PatchFlags.TEXT)
  43667. ], PatchFlags.STYLE));
  43668. }
  43669. return children2;
  43670. }, []);
  43671. }
  43672. return createVNode("div", {
  43673. class: classes.value,
  43674. style: containerStyle.value
  43675. }, extractedChildren, PatchFlags.STYLE | PatchFlags.CLASS);
  43676. }
  43677. return children.children;
  43678. };
  43679. }
  43680. });
  43681. // node_modules/element-plus/es/components/space/index.mjs
  43682. var ElSpace = withInstall(Space);
  43683. // node_modules/element-plus/es/components/statistic/src/statistic2.mjs
  43684. var statisticProps = buildProps({
  43685. decimalSeparator: {
  43686. type: String,
  43687. default: "."
  43688. },
  43689. groupSeparator: {
  43690. type: String,
  43691. default: ","
  43692. },
  43693. precision: {
  43694. type: Number,
  43695. default: 0
  43696. },
  43697. formatter: Function,
  43698. value: {
  43699. type: definePropType([Number, Object]),
  43700. default: 0
  43701. },
  43702. prefix: String,
  43703. suffix: String,
  43704. title: String,
  43705. valueStyle: {
  43706. type: definePropType([String, Object, Array])
  43707. }
  43708. });
  43709. // node_modules/element-plus/es/components/statistic/src/statistic.mjs
  43710. var __default__92 = defineComponent({
  43711. name: "ElStatistic"
  43712. });
  43713. var _sfc_main120 = defineComponent({
  43714. ...__default__92,
  43715. props: statisticProps,
  43716. setup(__props, { expose }) {
  43717. const props2 = __props;
  43718. const ns = useNamespace("statistic");
  43719. const displayValue = computed(() => {
  43720. const { value, formatter: formatter2, precision, decimalSeparator, groupSeparator } = props2;
  43721. if (isFunction(formatter2))
  43722. return formatter2(value);
  43723. if (!isNumber2(value) || Number.isNaN(value))
  43724. return value;
  43725. let [integer4, decimal = ""] = String(value).split(".");
  43726. decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
  43727. integer4 = integer4.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
  43728. return [integer4, decimal].join(decimal ? decimalSeparator : "");
  43729. });
  43730. expose({
  43731. displayValue
  43732. });
  43733. return (_ctx, _cache) => {
  43734. return openBlock(), createElementBlock("div", {
  43735. class: normalizeClass(unref(ns).b())
  43736. }, [
  43737. _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
  43738. key: 0,
  43739. class: normalizeClass(unref(ns).e("head"))
  43740. }, [
  43741. renderSlot(_ctx.$slots, "title", {}, () => [
  43742. createTextVNode(toDisplayString(_ctx.title), 1)
  43743. ])
  43744. ], 2)) : createCommentVNode("v-if", true),
  43745. createBaseVNode("div", {
  43746. class: normalizeClass(unref(ns).e("content"))
  43747. }, [
  43748. _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock("div", {
  43749. key: 0,
  43750. class: normalizeClass(unref(ns).e("prefix"))
  43751. }, [
  43752. renderSlot(_ctx.$slots, "prefix", {}, () => [
  43753. createBaseVNode("span", null, toDisplayString(_ctx.prefix), 1)
  43754. ])
  43755. ], 2)) : createCommentVNode("v-if", true),
  43756. createBaseVNode("span", {
  43757. class: normalizeClass(unref(ns).e("number")),
  43758. style: normalizeStyle(_ctx.valueStyle)
  43759. }, toDisplayString(unref(displayValue)), 7),
  43760. _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock("div", {
  43761. key: 1,
  43762. class: normalizeClass(unref(ns).e("suffix"))
  43763. }, [
  43764. renderSlot(_ctx.$slots, "suffix", {}, () => [
  43765. createBaseVNode("span", null, toDisplayString(_ctx.suffix), 1)
  43766. ])
  43767. ], 2)) : createCommentVNode("v-if", true)
  43768. ], 2)
  43769. ], 2);
  43770. };
  43771. }
  43772. });
  43773. var Statistic = _export_sfc(_sfc_main120, [["__file", "statistic.vue"]]);
  43774. // node_modules/element-plus/es/components/statistic/index.mjs
  43775. var ElStatistic = withInstall(Statistic);
  43776. // node_modules/element-plus/es/components/countdown/src/countdown2.mjs
  43777. var countdownProps = buildProps({
  43778. format: {
  43779. type: String,
  43780. default: "HH:mm:ss"
  43781. },
  43782. prefix: String,
  43783. suffix: String,
  43784. title: String,
  43785. value: {
  43786. type: definePropType([Number, Object]),
  43787. default: 0
  43788. },
  43789. valueStyle: {
  43790. type: definePropType([String, Object, Array])
  43791. }
  43792. });
  43793. var countdownEmits = {
  43794. finish: () => true,
  43795. [CHANGE_EVENT]: (value) => isNumber2(value)
  43796. };
  43797. // node_modules/element-plus/es/components/countdown/src/utils.mjs
  43798. var timeUnits2 = [
  43799. ["Y", 1e3 * 60 * 60 * 24 * 365],
  43800. ["M", 1e3 * 60 * 60 * 24 * 30],
  43801. ["D", 1e3 * 60 * 60 * 24],
  43802. ["H", 1e3 * 60 * 60],
  43803. ["m", 1e3 * 60],
  43804. ["s", 1e3],
  43805. ["S", 1]
  43806. ];
  43807. var getTime = (value) => {
  43808. return isNumber2(value) ? new Date(value).getTime() : value.valueOf();
  43809. };
  43810. var formatTime = (timestamp2, format2) => {
  43811. let timeLeft = timestamp2;
  43812. const escapeRegex = /\[([^\]]*)]/g;
  43813. const replacedText = timeUnits2.reduce((current, [name, unit4]) => {
  43814. const replaceRegex = new RegExp(`${name}+(?![^\\[\\]]*\\])`, "g");
  43815. if (replaceRegex.test(current)) {
  43816. const value = Math.floor(timeLeft / unit4);
  43817. timeLeft -= value * unit4;
  43818. return current.replace(replaceRegex, (match) => String(value).padStart(match.length, "0"));
  43819. }
  43820. return current;
  43821. }, format2);
  43822. return replacedText.replace(escapeRegex, "$1");
  43823. };
  43824. // node_modules/element-plus/es/components/countdown/src/countdown.mjs
  43825. var __default__93 = defineComponent({
  43826. name: "ElCountdown"
  43827. });
  43828. var _sfc_main121 = defineComponent({
  43829. ...__default__93,
  43830. props: countdownProps,
  43831. emits: countdownEmits,
  43832. setup(__props, { expose, emit }) {
  43833. const props2 = __props;
  43834. let timer;
  43835. const rawValue = ref(0);
  43836. const displayValue = computed(() => formatTime(rawValue.value, props2.format));
  43837. const formatter2 = (val) => formatTime(val, props2.format);
  43838. const stopTimer = () => {
  43839. if (timer) {
  43840. cAF(timer);
  43841. timer = void 0;
  43842. }
  43843. };
  43844. const startTimer = () => {
  43845. const timestamp2 = getTime(props2.value);
  43846. const frameFunc = () => {
  43847. let diff = timestamp2 - Date.now();
  43848. emit(CHANGE_EVENT, diff);
  43849. if (diff <= 0) {
  43850. diff = 0;
  43851. stopTimer();
  43852. emit("finish");
  43853. } else {
  43854. timer = rAF(frameFunc);
  43855. }
  43856. rawValue.value = diff;
  43857. };
  43858. timer = rAF(frameFunc);
  43859. };
  43860. onMounted(() => {
  43861. rawValue.value = getTime(props2.value) - Date.now();
  43862. watch(() => [props2.value, props2.format], () => {
  43863. stopTimer();
  43864. startTimer();
  43865. }, {
  43866. immediate: true
  43867. });
  43868. });
  43869. onBeforeUnmount(() => {
  43870. stopTimer();
  43871. });
  43872. expose({
  43873. displayValue
  43874. });
  43875. return (_ctx, _cache) => {
  43876. return openBlock(), createBlock(unref(ElStatistic), {
  43877. value: rawValue.value,
  43878. title: _ctx.title,
  43879. prefix: _ctx.prefix,
  43880. suffix: _ctx.suffix,
  43881. "value-style": _ctx.valueStyle,
  43882. formatter: formatter2
  43883. }, createSlots({
  43884. _: 2
  43885. }, [
  43886. renderList(_ctx.$slots, (_2, name) => {
  43887. return {
  43888. name,
  43889. fn: withCtx(() => [
  43890. renderSlot(_ctx.$slots, name)
  43891. ])
  43892. };
  43893. })
  43894. ]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
  43895. };
  43896. }
  43897. });
  43898. var Countdown = _export_sfc(_sfc_main121, [["__file", "countdown.vue"]]);
  43899. // node_modules/element-plus/es/components/countdown/index.mjs
  43900. var ElCountdown = withInstall(Countdown);
  43901. // node_modules/element-plus/es/components/steps/src/steps2.mjs
  43902. var stepsProps = buildProps({
  43903. space: {
  43904. type: [Number, String],
  43905. default: ""
  43906. },
  43907. active: {
  43908. type: Number,
  43909. default: 0
  43910. },
  43911. direction: {
  43912. type: String,
  43913. default: "horizontal",
  43914. values: ["horizontal", "vertical"]
  43915. },
  43916. alignCenter: {
  43917. type: Boolean
  43918. },
  43919. simple: {
  43920. type: Boolean
  43921. },
  43922. finishStatus: {
  43923. type: String,
  43924. values: ["wait", "process", "finish", "error", "success"],
  43925. default: "finish"
  43926. },
  43927. processStatus: {
  43928. type: String,
  43929. values: ["wait", "process", "finish", "error", "success"],
  43930. default: "process"
  43931. }
  43932. });
  43933. var stepsEmits = {
  43934. [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber2)
  43935. };
  43936. // node_modules/element-plus/es/components/steps/src/tokens.mjs
  43937. var STEPS_INJECTION_KEY = "ElSteps";
  43938. // node_modules/element-plus/es/components/steps/src/steps.mjs
  43939. var __default__94 = defineComponent({
  43940. name: "ElSteps"
  43941. });
  43942. var _sfc_main122 = defineComponent({
  43943. ...__default__94,
  43944. props: stepsProps,
  43945. emits: stepsEmits,
  43946. setup(__props, { emit }) {
  43947. const props2 = __props;
  43948. const ns = useNamespace("steps");
  43949. const {
  43950. children: steps,
  43951. addChild: addStep,
  43952. removeChild: removeStep,
  43953. ChildrenSorter: StepsSorter
  43954. } = useOrderedChildren(getCurrentInstance(), "ElStep");
  43955. watch(steps, () => {
  43956. steps.value.forEach((instance, index) => {
  43957. instance.setIndex(index);
  43958. });
  43959. });
  43960. provide(STEPS_INJECTION_KEY, { props: props2, steps, addStep, removeStep });
  43961. watch(() => props2.active, (newVal, oldVal) => {
  43962. emit(CHANGE_EVENT, newVal, oldVal);
  43963. });
  43964. return (_ctx, _cache) => {
  43965. return openBlock(), createElementBlock("div", {
  43966. class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
  43967. }, [
  43968. renderSlot(_ctx.$slots, "default"),
  43969. createVNode(unref(StepsSorter))
  43970. ], 2);
  43971. };
  43972. }
  43973. });
  43974. var Steps = _export_sfc(_sfc_main122, [["__file", "steps.vue"]]);
  43975. // node_modules/element-plus/es/components/steps/src/item.mjs
  43976. var stepProps = buildProps({
  43977. title: {
  43978. type: String,
  43979. default: ""
  43980. },
  43981. icon: {
  43982. type: iconPropType
  43983. },
  43984. description: {
  43985. type: String,
  43986. default: ""
  43987. },
  43988. status: {
  43989. type: String,
  43990. values: ["", "wait", "process", "finish", "error", "success"],
  43991. default: ""
  43992. }
  43993. });
  43994. // node_modules/element-plus/es/components/steps/src/item2.mjs
  43995. var __default__95 = defineComponent({
  43996. name: "ElStep"
  43997. });
  43998. var _sfc_main123 = defineComponent({
  43999. ...__default__95,
  44000. props: stepProps,
  44001. setup(__props) {
  44002. const props2 = __props;
  44003. const ns = useNamespace("step");
  44004. const index = ref(-1);
  44005. const lineStyle = ref({});
  44006. const internalStatus = ref("");
  44007. const parent2 = inject(STEPS_INJECTION_KEY);
  44008. const currentInstance = getCurrentInstance();
  44009. let stepDiff = 0;
  44010. let beforeActive = 0;
  44011. onMounted(() => {
  44012. watch([
  44013. () => parent2.props.active,
  44014. () => parent2.props.processStatus,
  44015. () => parent2.props.finishStatus
  44016. ], ([active], [oldActive]) => {
  44017. beforeActive = oldActive || 0;
  44018. stepDiff = active - beforeActive;
  44019. updateStatus(active);
  44020. }, { immediate: true });
  44021. });
  44022. const currentStatus = computed(() => {
  44023. return props2.status || internalStatus.value;
  44024. });
  44025. const prevInternalStatus = computed(() => {
  44026. const prevStep = parent2.steps.value[index.value - 1];
  44027. return prevStep ? prevStep.internalStatus.value : "wait";
  44028. });
  44029. const isCenter = computed(() => {
  44030. return parent2.props.alignCenter;
  44031. });
  44032. const isVertical = computed(() => {
  44033. return parent2.props.direction === "vertical";
  44034. });
  44035. const isSimple = computed(() => {
  44036. return parent2.props.simple;
  44037. });
  44038. const stepsCount = computed(() => {
  44039. return parent2.steps.value.length;
  44040. });
  44041. const isLast = computed(() => {
  44042. var _a2;
  44043. return ((_a2 = parent2.steps.value[stepsCount.value - 1]) == null ? void 0 : _a2.uid) === currentInstance.uid;
  44044. });
  44045. const space = computed(() => {
  44046. return isSimple.value ? "" : parent2.props.space;
  44047. });
  44048. const containerKls = computed(() => {
  44049. return [
  44050. ns.b(),
  44051. ns.is(isSimple.value ? "simple" : parent2.props.direction),
  44052. ns.is("flex", isLast.value && !space.value && !isCenter.value),
  44053. ns.is("center", isCenter.value && !isVertical.value && !isSimple.value)
  44054. ];
  44055. });
  44056. const style = computed(() => {
  44057. const style2 = {
  44058. flexBasis: isNumber2(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
  44059. };
  44060. if (isVertical.value)
  44061. return style2;
  44062. if (isLast.value) {
  44063. style2.maxWidth = `${100 / stepsCount.value}%`;
  44064. }
  44065. return style2;
  44066. });
  44067. const setIndex = (val) => {
  44068. index.value = val;
  44069. };
  44070. const calcProgress = (status) => {
  44071. const isWait = status === "wait";
  44072. const delayTimer = Math.abs(stepDiff) === 1 ? 0 : stepDiff > 0 ? (index.value + 1 - beforeActive) * 150 : -(index.value + 1 - parent2.props.active) * 150;
  44073. const style2 = {
  44074. transitionDelay: `${delayTimer}ms`
  44075. };
  44076. const step2 = status === parent2.props.processStatus || isWait ? 0 : 100;
  44077. style2.borderWidth = step2 && !isSimple.value ? "1px" : 0;
  44078. style2[parent2.props.direction === "vertical" ? "height" : "width"] = `${step2}%`;
  44079. lineStyle.value = style2;
  44080. };
  44081. const updateStatus = (activeIndex) => {
  44082. if (activeIndex > index.value) {
  44083. internalStatus.value = parent2.props.finishStatus;
  44084. } else if (activeIndex === index.value && prevInternalStatus.value !== "error") {
  44085. internalStatus.value = parent2.props.processStatus;
  44086. } else {
  44087. internalStatus.value = "wait";
  44088. }
  44089. const prevChild = parent2.steps.value[index.value - 1];
  44090. if (prevChild)
  44091. prevChild.calcProgress(internalStatus.value);
  44092. };
  44093. const stepItemState = {
  44094. uid: currentInstance.uid,
  44095. getVnode: () => currentInstance.vnode,
  44096. currentStatus,
  44097. internalStatus,
  44098. setIndex,
  44099. calcProgress
  44100. };
  44101. parent2.addStep(stepItemState);
  44102. onBeforeUnmount(() => {
  44103. parent2.removeStep(stepItemState);
  44104. });
  44105. return (_ctx, _cache) => {
  44106. return openBlock(), createElementBlock("div", {
  44107. style: normalizeStyle(unref(style)),
  44108. class: normalizeClass(unref(containerKls))
  44109. }, [
  44110. createCommentVNode(" icon & line "),
  44111. createBaseVNode("div", {
  44112. class: normalizeClass([unref(ns).e("head"), unref(ns).is(unref(currentStatus))])
  44113. }, [
  44114. !unref(isSimple) ? (openBlock(), createElementBlock("div", {
  44115. key: 0,
  44116. class: normalizeClass(unref(ns).e("line"))
  44117. }, [
  44118. createBaseVNode("i", {
  44119. class: normalizeClass(unref(ns).e("line-inner")),
  44120. style: normalizeStyle(lineStyle.value)
  44121. }, null, 6)
  44122. ], 2)) : createCommentVNode("v-if", true),
  44123. createBaseVNode("div", {
  44124. class: normalizeClass([unref(ns).e("icon"), unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
  44125. }, [
  44126. renderSlot(_ctx.$slots, "icon", {}, () => [
  44127. _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
  44128. key: 0,
  44129. class: normalizeClass(unref(ns).e("icon-inner"))
  44130. }, {
  44131. default: withCtx(() => [
  44132. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  44133. ]),
  44134. _: 1
  44135. }, 8, ["class"])) : unref(currentStatus) === "success" ? (openBlock(), createBlock(unref(ElIcon), {
  44136. key: 1,
  44137. class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
  44138. }, {
  44139. default: withCtx(() => [
  44140. createVNode(unref(check_default))
  44141. ]),
  44142. _: 1
  44143. }, 8, ["class"])) : unref(currentStatus) === "error" ? (openBlock(), createBlock(unref(ElIcon), {
  44144. key: 2,
  44145. class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
  44146. }, {
  44147. default: withCtx(() => [
  44148. createVNode(unref(close_default))
  44149. ]),
  44150. _: 1
  44151. }, 8, ["class"])) : !unref(isSimple) ? (openBlock(), createElementBlock("div", {
  44152. key: 3,
  44153. class: normalizeClass(unref(ns).e("icon-inner"))
  44154. }, toDisplayString(index.value + 1), 3)) : createCommentVNode("v-if", true)
  44155. ])
  44156. ], 2)
  44157. ], 2),
  44158. createCommentVNode(" title & description "),
  44159. createBaseVNode("div", {
  44160. class: normalizeClass(unref(ns).e("main"))
  44161. }, [
  44162. createBaseVNode("div", {
  44163. class: normalizeClass([unref(ns).e("title"), unref(ns).is(unref(currentStatus))])
  44164. }, [
  44165. renderSlot(_ctx.$slots, "title", {}, () => [
  44166. createTextVNode(toDisplayString(_ctx.title), 1)
  44167. ])
  44168. ], 2),
  44169. unref(isSimple) ? (openBlock(), createElementBlock("div", {
  44170. key: 0,
  44171. class: normalizeClass(unref(ns).e("arrow"))
  44172. }, null, 2)) : (openBlock(), createElementBlock("div", {
  44173. key: 1,
  44174. class: normalizeClass([unref(ns).e("description"), unref(ns).is(unref(currentStatus))])
  44175. }, [
  44176. renderSlot(_ctx.$slots, "description", {}, () => [
  44177. createTextVNode(toDisplayString(_ctx.description), 1)
  44178. ])
  44179. ], 2))
  44180. ], 2)
  44181. ], 6);
  44182. };
  44183. }
  44184. });
  44185. var Step = _export_sfc(_sfc_main123, [["__file", "item.vue"]]);
  44186. // node_modules/element-plus/es/components/steps/index.mjs
  44187. var ElSteps = withInstall(Steps, {
  44188. Step
  44189. });
  44190. var ElStep = withNoopInstall(Step);
  44191. // node_modules/element-plus/es/utils/vue/validator.mjs
  44192. var isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
  44193. // node_modules/element-plus/es/components/switch/src/switch.mjs
  44194. var switchProps = buildProps({
  44195. modelValue: {
  44196. type: [Boolean, String, Number],
  44197. default: false
  44198. },
  44199. disabled: Boolean,
  44200. loading: Boolean,
  44201. size: {
  44202. type: String,
  44203. validator: isValidComponentSize
  44204. },
  44205. width: {
  44206. type: [String, Number],
  44207. default: ""
  44208. },
  44209. inlinePrompt: Boolean,
  44210. inactiveActionIcon: {
  44211. type: iconPropType
  44212. },
  44213. activeActionIcon: {
  44214. type: iconPropType
  44215. },
  44216. activeIcon: {
  44217. type: iconPropType
  44218. },
  44219. inactiveIcon: {
  44220. type: iconPropType
  44221. },
  44222. activeText: {
  44223. type: String,
  44224. default: ""
  44225. },
  44226. inactiveText: {
  44227. type: String,
  44228. default: ""
  44229. },
  44230. activeValue: {
  44231. type: [Boolean, String, Number],
  44232. default: true
  44233. },
  44234. inactiveValue: {
  44235. type: [Boolean, String, Number],
  44236. default: false
  44237. },
  44238. name: {
  44239. type: String,
  44240. default: ""
  44241. },
  44242. validateEvent: {
  44243. type: Boolean,
  44244. default: true
  44245. },
  44246. beforeChange: {
  44247. type: definePropType(Function)
  44248. },
  44249. id: String,
  44250. tabindex: {
  44251. type: [String, Number]
  44252. },
  44253. ...useAriaProps(["ariaLabel"])
  44254. });
  44255. var switchEmits = {
  44256. [UPDATE_MODEL_EVENT]: (val) => isBoolean2(val) || isString(val) || isNumber2(val),
  44257. [CHANGE_EVENT]: (val) => isBoolean2(val) || isString(val) || isNumber2(val),
  44258. [INPUT_EVENT]: (val) => isBoolean2(val) || isString(val) || isNumber2(val)
  44259. };
  44260. // node_modules/element-plus/es/components/switch/src/switch2.mjs
  44261. var COMPONENT_NAME17 = "ElSwitch";
  44262. var __default__96 = defineComponent({
  44263. name: COMPONENT_NAME17
  44264. });
  44265. var _sfc_main124 = defineComponent({
  44266. ...__default__96,
  44267. props: switchProps,
  44268. emits: switchEmits,
  44269. setup(__props, { expose, emit }) {
  44270. const props2 = __props;
  44271. const { formItem } = useFormItem();
  44272. const switchSize = useFormSize();
  44273. const ns = useNamespace("switch");
  44274. const { inputId } = useFormItemInputId(props2, {
  44275. formItemContext: formItem
  44276. });
  44277. const switchDisabled = useFormDisabled(computed(() => props2.loading));
  44278. const isControlled = ref(props2.modelValue !== false);
  44279. const input = shallowRef();
  44280. const switchKls = computed(() => [
  44281. ns.b(),
  44282. ns.m(switchSize.value),
  44283. ns.is("disabled", switchDisabled.value),
  44284. ns.is("checked", checked.value)
  44285. ]);
  44286. const labelLeftKls = computed(() => [
  44287. ns.e("label"),
  44288. ns.em("label", "left"),
  44289. ns.is("active", !checked.value)
  44290. ]);
  44291. const labelRightKls = computed(() => [
  44292. ns.e("label"),
  44293. ns.em("label", "right"),
  44294. ns.is("active", checked.value)
  44295. ]);
  44296. const coreStyle = computed(() => ({
  44297. width: addUnit(props2.width)
  44298. }));
  44299. watch(() => props2.modelValue, () => {
  44300. isControlled.value = true;
  44301. });
  44302. const actualValue = computed(() => {
  44303. return isControlled.value ? props2.modelValue : false;
  44304. });
  44305. const checked = computed(() => actualValue.value === props2.activeValue);
  44306. if (![props2.activeValue, props2.inactiveValue].includes(actualValue.value)) {
  44307. emit(UPDATE_MODEL_EVENT, props2.inactiveValue);
  44308. emit(CHANGE_EVENT, props2.inactiveValue);
  44309. emit(INPUT_EVENT, props2.inactiveValue);
  44310. }
  44311. watch(checked, (val) => {
  44312. var _a2;
  44313. input.value.checked = val;
  44314. if (props2.validateEvent) {
  44315. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn(err));
  44316. }
  44317. });
  44318. const handleChange = () => {
  44319. const val = checked.value ? props2.inactiveValue : props2.activeValue;
  44320. emit(UPDATE_MODEL_EVENT, val);
  44321. emit(CHANGE_EVENT, val);
  44322. emit(INPUT_EVENT, val);
  44323. nextTick(() => {
  44324. input.value.checked = checked.value;
  44325. });
  44326. };
  44327. const switchValue = () => {
  44328. if (switchDisabled.value)
  44329. return;
  44330. const { beforeChange } = props2;
  44331. if (!beforeChange) {
  44332. handleChange();
  44333. return;
  44334. }
  44335. const shouldChange = beforeChange();
  44336. const isPromiseOrBool = [
  44337. isPromise(shouldChange),
  44338. isBoolean2(shouldChange)
  44339. ].includes(true);
  44340. if (!isPromiseOrBool) {
  44341. throwError(COMPONENT_NAME17, "beforeChange must return type `Promise<boolean>` or `boolean`");
  44342. }
  44343. if (isPromise(shouldChange)) {
  44344. shouldChange.then((result2) => {
  44345. if (result2) {
  44346. handleChange();
  44347. }
  44348. }).catch((e) => {
  44349. debugWarn(COMPONENT_NAME17, `some error occurred: ${e}`);
  44350. });
  44351. } else if (shouldChange) {
  44352. handleChange();
  44353. }
  44354. };
  44355. const focus = () => {
  44356. var _a2, _b;
  44357. (_b = (_a2 = input.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
  44358. };
  44359. onMounted(() => {
  44360. input.value.checked = checked.value;
  44361. });
  44362. expose({
  44363. focus,
  44364. checked
  44365. });
  44366. return (_ctx, _cache) => {
  44367. return openBlock(), createElementBlock("div", {
  44368. class: normalizeClass(unref(switchKls)),
  44369. onClick: withModifiers(switchValue, ["prevent"])
  44370. }, [
  44371. createBaseVNode("input", {
  44372. id: unref(inputId),
  44373. ref_key: "input",
  44374. ref: input,
  44375. class: normalizeClass(unref(ns).e("input")),
  44376. type: "checkbox",
  44377. role: "switch",
  44378. "aria-checked": unref(checked),
  44379. "aria-disabled": unref(switchDisabled),
  44380. "aria-label": _ctx.ariaLabel,
  44381. name: _ctx.name,
  44382. "true-value": _ctx.activeValue,
  44383. "false-value": _ctx.inactiveValue,
  44384. disabled: unref(switchDisabled),
  44385. tabindex: _ctx.tabindex,
  44386. onChange: handleChange,
  44387. onKeydown: withKeys(switchValue, ["enter"])
  44388. }, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
  44389. !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (openBlock(), createElementBlock("span", {
  44390. key: 0,
  44391. class: normalizeClass(unref(labelLeftKls))
  44392. }, [
  44393. _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  44394. default: withCtx(() => [
  44395. (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
  44396. ]),
  44397. _: 1
  44398. })) : createCommentVNode("v-if", true),
  44399. !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
  44400. key: 1,
  44401. "aria-hidden": unref(checked)
  44402. }, toDisplayString(_ctx.inactiveText), 9, ["aria-hidden"])) : createCommentVNode("v-if", true)
  44403. ], 2)) : createCommentVNode("v-if", true),
  44404. createBaseVNode("span", {
  44405. class: normalizeClass(unref(ns).e("core")),
  44406. style: normalizeStyle(unref(coreStyle))
  44407. }, [
  44408. _ctx.inlinePrompt ? (openBlock(), createElementBlock("div", {
  44409. key: 0,
  44410. class: normalizeClass(unref(ns).e("inner"))
  44411. }, [
  44412. _ctx.activeIcon || _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), {
  44413. key: 0,
  44414. class: normalizeClass(unref(ns).is("icon"))
  44415. }, {
  44416. default: withCtx(() => [
  44417. (openBlock(), createBlock(resolveDynamicComponent(unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
  44418. ]),
  44419. _: 1
  44420. }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
  44421. key: 1,
  44422. class: normalizeClass(unref(ns).is("text")),
  44423. "aria-hidden": !unref(checked)
  44424. }, toDisplayString(unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, ["aria-hidden"])) : createCommentVNode("v-if", true)
  44425. ], 2)) : createCommentVNode("v-if", true),
  44426. createBaseVNode("div", {
  44427. class: normalizeClass(unref(ns).e("action"))
  44428. }, [
  44429. _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
  44430. key: 0,
  44431. class: normalizeClass(unref(ns).is("loading"))
  44432. }, {
  44433. default: withCtx(() => [
  44434. createVNode(unref(loading_default))
  44435. ]),
  44436. _: 1
  44437. }, 8, ["class"])) : unref(checked) ? renderSlot(_ctx.$slots, "active-action", { key: 1 }, () => [
  44438. _ctx.activeActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  44439. default: withCtx(() => [
  44440. (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeActionIcon)))
  44441. ]),
  44442. _: 1
  44443. })) : createCommentVNode("v-if", true)
  44444. ]) : !unref(checked) ? renderSlot(_ctx.$slots, "inactive-action", { key: 2 }, () => [
  44445. _ctx.inactiveActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  44446. default: withCtx(() => [
  44447. (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveActionIcon)))
  44448. ]),
  44449. _: 1
  44450. })) : createCommentVNode("v-if", true)
  44451. ]) : createCommentVNode("v-if", true)
  44452. ], 2)
  44453. ], 6),
  44454. !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
  44455. key: 1,
  44456. class: normalizeClass(unref(labelRightKls))
  44457. }, [
  44458. _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
  44459. default: withCtx(() => [
  44460. (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
  44461. ]),
  44462. _: 1
  44463. })) : createCommentVNode("v-if", true),
  44464. !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
  44465. key: 1,
  44466. "aria-hidden": !unref(checked)
  44467. }, toDisplayString(_ctx.activeText), 9, ["aria-hidden"])) : createCommentVNode("v-if", true)
  44468. ], 2)) : createCommentVNode("v-if", true)
  44469. ], 10, ["onClick"]);
  44470. };
  44471. }
  44472. });
  44473. var Switch = _export_sfc(_sfc_main124, [["__file", "switch.vue"]]);
  44474. // node_modules/element-plus/es/components/switch/index.mjs
  44475. var ElSwitch = withInstall(Switch);
  44476. // node_modules/element-plus/es/components/table/src/util.mjs
  44477. var getCell = function(event) {
  44478. var _a2;
  44479. return (_a2 = event.target) == null ? void 0 : _a2.closest("td");
  44480. };
  44481. var orderBy2 = function(array4, sortKey, reverse2, sortMethod, sortBy2) {
  44482. if (!sortKey && !sortMethod && (!sortBy2 || isArray(sortBy2) && !sortBy2.length)) {
  44483. return array4;
  44484. }
  44485. if (isString(reverse2)) {
  44486. reverse2 = reverse2 === "descending" ? -1 : 1;
  44487. } else {
  44488. reverse2 = reverse2 && reverse2 < 0 ? -1 : 1;
  44489. }
  44490. const getKey = sortMethod ? null : function(value, index) {
  44491. if (sortBy2) {
  44492. return flatMap_default(castArray_default(sortBy2), (by) => {
  44493. if (isString(by)) {
  44494. return get_default(value, by);
  44495. } else {
  44496. return by(value, index, array4);
  44497. }
  44498. });
  44499. }
  44500. if (sortKey !== "$key") {
  44501. if (isObject(value) && "$value" in value)
  44502. value = value.$value;
  44503. }
  44504. return [
  44505. isObject(value) ? sortKey ? get_default(value, sortKey) : null : value
  44506. ];
  44507. };
  44508. const compare = function(a2, b2) {
  44509. var _a2, _b, _c, _d, _e, _f;
  44510. if (sortMethod) {
  44511. return sortMethod(a2.value, b2.value);
  44512. }
  44513. for (let i = 0, len = (_b = (_a2 = a2.key) == null ? void 0 : _a2.length) != null ? _b : 0; i < len; i++) {
  44514. if (((_c = a2.key) == null ? void 0 : _c[i]) < ((_d = b2.key) == null ? void 0 : _d[i])) {
  44515. return -1;
  44516. }
  44517. if (((_e = a2.key) == null ? void 0 : _e[i]) > ((_f = b2.key) == null ? void 0 : _f[i])) {
  44518. return 1;
  44519. }
  44520. }
  44521. return 0;
  44522. };
  44523. return array4.map((value, index) => {
  44524. return {
  44525. value,
  44526. index,
  44527. key: getKey ? getKey(value, index) : null
  44528. };
  44529. }).sort((a2, b2) => {
  44530. let order = compare(a2, b2);
  44531. if (!order) {
  44532. order = a2.index - b2.index;
  44533. }
  44534. return order * +reverse2;
  44535. }).map((item) => item.value);
  44536. };
  44537. var getColumnById = function(table, columnId) {
  44538. let column2 = null;
  44539. table.columns.forEach((item) => {
  44540. if (item.id === columnId) {
  44541. column2 = item;
  44542. }
  44543. });
  44544. return column2;
  44545. };
  44546. var getColumnByKey = function(table, columnKey) {
  44547. let column2 = null;
  44548. for (let i = 0; i < table.columns.length; i++) {
  44549. const item = table.columns[i];
  44550. if (item.columnKey === columnKey) {
  44551. column2 = item;
  44552. break;
  44553. }
  44554. }
  44555. if (!column2)
  44556. throwError("ElTable", `No column matching with column-key: ${columnKey}`);
  44557. return column2;
  44558. };
  44559. var getColumnByCell = function(table, cell, namespace) {
  44560. const matches2 = (cell.className || "").match(new RegExp(`${namespace}-table_[^\\s]+`, "gm"));
  44561. if (matches2) {
  44562. return getColumnById(table, matches2[0]);
  44563. }
  44564. return null;
  44565. };
  44566. var getRowIdentity = (row, rowKey2) => {
  44567. if (!row)
  44568. throw new Error("Row is required when get row identity");
  44569. if (isString(rowKey2)) {
  44570. if (!rowKey2.includes(".")) {
  44571. return `${row[rowKey2]}`;
  44572. }
  44573. const key = rowKey2.split(".");
  44574. let current = row;
  44575. for (const element of key) {
  44576. current = current[element];
  44577. }
  44578. return `${current}`;
  44579. } else if (isFunction(rowKey2)) {
  44580. return rowKey2.call(null, row);
  44581. }
  44582. return "";
  44583. };
  44584. var getKeysMap = function(array4, rowKey2, flatten2 = false, childrenKey = "children") {
  44585. const data = array4 || [];
  44586. const arrayMap2 = {};
  44587. data.forEach((row, index) => {
  44588. arrayMap2[getRowIdentity(row, rowKey2)] = { row, index };
  44589. if (flatten2) {
  44590. const children = row[childrenKey];
  44591. if (isArray(children)) {
  44592. Object.assign(arrayMap2, getKeysMap(children, rowKey2, true, childrenKey));
  44593. }
  44594. }
  44595. });
  44596. return arrayMap2;
  44597. };
  44598. function mergeOptions(defaults2, config) {
  44599. const options = {};
  44600. let key;
  44601. for (key in defaults2) {
  44602. options[key] = defaults2[key];
  44603. }
  44604. for (key in config) {
  44605. if (hasOwn(config, key)) {
  44606. const value = config[key];
  44607. if (!isUndefined2(value)) {
  44608. options[key] = value;
  44609. }
  44610. }
  44611. }
  44612. return options;
  44613. }
  44614. function parseWidth(width) {
  44615. if (width === "")
  44616. return width;
  44617. if (!isUndefined2(width)) {
  44618. width = Number.parseInt(width, 10);
  44619. if (Number.isNaN(width)) {
  44620. width = "";
  44621. }
  44622. }
  44623. return width;
  44624. }
  44625. function parseMinWidth(minWidth) {
  44626. if (minWidth === "")
  44627. return minWidth;
  44628. if (!isUndefined2(minWidth)) {
  44629. minWidth = parseWidth(minWidth);
  44630. if (Number.isNaN(minWidth)) {
  44631. minWidth = 80;
  44632. }
  44633. }
  44634. return minWidth;
  44635. }
  44636. function parseHeight(height) {
  44637. if (isNumber2(height)) {
  44638. return height;
  44639. }
  44640. if (isString(height)) {
  44641. if (/^\d+(?:px)?$/.test(height)) {
  44642. return Number.parseInt(height, 10);
  44643. } else {
  44644. return height;
  44645. }
  44646. }
  44647. return null;
  44648. }
  44649. function compose(...funcs) {
  44650. if (funcs.length === 0) {
  44651. return (arg) => arg;
  44652. }
  44653. if (funcs.length === 1) {
  44654. return funcs[0];
  44655. }
  44656. return funcs.reduce((a2, b2) => (...args) => a2(b2(...args)));
  44657. }
  44658. function toggleRowStatus(statusArr, row, newVal, tableTreeProps, selectable, rowIndex, rowKey2) {
  44659. let _rowIndex = rowIndex != null ? rowIndex : 0;
  44660. let changed = false;
  44661. const getIndex = () => {
  44662. if (!rowKey2) {
  44663. return statusArr.indexOf(row);
  44664. }
  44665. const id = getRowIdentity(row, rowKey2);
  44666. return statusArr.findIndex((item) => getRowIdentity(item, rowKey2) === id);
  44667. };
  44668. const index = getIndex();
  44669. const included = index !== -1;
  44670. const isRowSelectable = selectable == null ? void 0 : selectable.call(null, row, _rowIndex);
  44671. const toggleStatus = (type4) => {
  44672. if (type4 === "add") {
  44673. statusArr.push(row);
  44674. } else {
  44675. statusArr.splice(index, 1);
  44676. }
  44677. changed = true;
  44678. };
  44679. const getChildrenCount = (row2) => {
  44680. let count = 0;
  44681. const children = (tableTreeProps == null ? void 0 : tableTreeProps.children) && row2[tableTreeProps.children];
  44682. if (children && isArray(children)) {
  44683. count += children.length;
  44684. children.forEach((item) => {
  44685. count += getChildrenCount(item);
  44686. });
  44687. }
  44688. return count;
  44689. };
  44690. if (!selectable || isRowSelectable) {
  44691. if (isBoolean2(newVal)) {
  44692. if (newVal && !included) {
  44693. toggleStatus("add");
  44694. } else if (!newVal && included) {
  44695. toggleStatus("remove");
  44696. }
  44697. } else {
  44698. included ? toggleStatus("remove") : toggleStatus("add");
  44699. }
  44700. }
  44701. if (!(tableTreeProps == null ? void 0 : tableTreeProps.checkStrictly) && (tableTreeProps == null ? void 0 : tableTreeProps.children) && isArray(row[tableTreeProps.children])) {
  44702. row[tableTreeProps.children].forEach((item) => {
  44703. const childChanged = toggleRowStatus(statusArr, item, newVal != null ? newVal : !included, tableTreeProps, selectable, _rowIndex + 1, rowKey2);
  44704. _rowIndex += getChildrenCount(item) + 1;
  44705. if (childChanged) {
  44706. changed = childChanged;
  44707. }
  44708. });
  44709. }
  44710. return changed;
  44711. }
  44712. function walkTreeNode(root2, cb, childrenKey = "children", lazyKey = "hasChildren", lazy = false) {
  44713. const isNil2 = (array4) => !(isArray(array4) && array4.length);
  44714. function _walker(parent2, children, level) {
  44715. cb(parent2, children, level);
  44716. children.forEach((item) => {
  44717. if (item[lazyKey] && lazy) {
  44718. cb(item, null, level + 1);
  44719. return;
  44720. }
  44721. const children2 = item[childrenKey];
  44722. if (!isNil2(children2)) {
  44723. _walker(item, children2, level + 1);
  44724. }
  44725. });
  44726. }
  44727. root2.forEach((item) => {
  44728. if (item[lazyKey] && lazy) {
  44729. cb(item, null, 0);
  44730. return;
  44731. }
  44732. const children = item[childrenKey];
  44733. if (!isNil2(children)) {
  44734. _walker(item, children, 0);
  44735. }
  44736. });
  44737. }
  44738. var getTableOverflowTooltipProps = (props2, innerText, row, column2) => {
  44739. const popperOptions = {
  44740. strategy: "fixed",
  44741. ...props2.popperOptions
  44742. };
  44743. const tooltipFormatterContent = isFunction(column2 == null ? void 0 : column2.tooltipFormatter) ? column2.tooltipFormatter({
  44744. row,
  44745. column: column2,
  44746. cellValue: getProp(row, column2.property).value
  44747. }) : void 0;
  44748. if (isVNode(tooltipFormatterContent)) {
  44749. return {
  44750. slotContent: tooltipFormatterContent,
  44751. content: null,
  44752. ...props2,
  44753. popperOptions
  44754. };
  44755. }
  44756. return {
  44757. slotContent: null,
  44758. content: tooltipFormatterContent != null ? tooltipFormatterContent : innerText,
  44759. ...props2,
  44760. popperOptions
  44761. };
  44762. };
  44763. var removePopper = null;
  44764. function createTablePopper(props2, popperContent, row, column2, trigger, table) {
  44765. var _a2;
  44766. const tableOverflowTooltipProps = getTableOverflowTooltipProps(props2, popperContent, row, column2);
  44767. const mergedProps = {
  44768. ...tableOverflowTooltipProps,
  44769. slotContent: void 0
  44770. };
  44771. if ((removePopper == null ? void 0 : removePopper.trigger) === trigger) {
  44772. const comp = (_a2 = removePopper.vm) == null ? void 0 : _a2.component;
  44773. merge_default(comp == null ? void 0 : comp.props, mergedProps);
  44774. if (comp && tableOverflowTooltipProps.slotContent) {
  44775. comp.slots.content = () => [tableOverflowTooltipProps.slotContent];
  44776. }
  44777. return;
  44778. }
  44779. removePopper == null ? void 0 : removePopper();
  44780. const parentNode = table == null ? void 0 : table.refs.tableWrapper;
  44781. const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
  44782. const vm = createVNode(ElTooltip, {
  44783. virtualTriggering: true,
  44784. virtualRef: trigger,
  44785. appendTo: parentNode,
  44786. placement: "top",
  44787. transition: "none",
  44788. offset: 0,
  44789. hideAfter: 0,
  44790. ...mergedProps
  44791. }, tableOverflowTooltipProps.slotContent ? {
  44792. content: () => tableOverflowTooltipProps.slotContent
  44793. } : void 0);
  44794. vm.appContext = { ...table.appContext, ...table };
  44795. const container = document.createElement("div");
  44796. render(vm, container);
  44797. vm.component.exposed.onOpen();
  44798. const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
  44799. removePopper = () => {
  44800. var _a22, _b;
  44801. if ((_b = (_a22 = vm.component) == null ? void 0 : _a22.exposed) == null ? void 0 : _b.onClose) {
  44802. vm.component.exposed.onClose();
  44803. }
  44804. render(null, container);
  44805. const currentRemovePopper = removePopper;
  44806. scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", currentRemovePopper);
  44807. currentRemovePopper.trigger = void 0;
  44808. currentRemovePopper.vm = void 0;
  44809. removePopper = null;
  44810. };
  44811. removePopper.trigger = trigger != null ? trigger : void 0;
  44812. removePopper.vm = vm;
  44813. scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
  44814. }
  44815. function getCurrentColumns(column2) {
  44816. if (column2.children) {
  44817. return flatMap_default(column2.children, getCurrentColumns);
  44818. } else {
  44819. return [column2];
  44820. }
  44821. }
  44822. function getColSpan(colSpan, column2) {
  44823. return colSpan + column2.colSpan;
  44824. }
  44825. var isFixedColumn = (index, fixed, store, realColumns) => {
  44826. let start = 0;
  44827. let after2 = index;
  44828. const columns2 = store.states.columns.value;
  44829. if (realColumns) {
  44830. const curColumns = getCurrentColumns(realColumns[index]);
  44831. const preColumns = columns2.slice(0, columns2.indexOf(curColumns[0]));
  44832. start = preColumns.reduce(getColSpan, 0);
  44833. after2 = start + curColumns.reduce(getColSpan, 0) - 1;
  44834. } else {
  44835. start = index;
  44836. }
  44837. let fixedLayout;
  44838. switch (fixed) {
  44839. case "left":
  44840. if (after2 < store.states.fixedLeafColumnsLength.value) {
  44841. fixedLayout = "left";
  44842. }
  44843. break;
  44844. case "right":
  44845. if (start >= columns2.length - store.states.rightFixedLeafColumnsLength.value) {
  44846. fixedLayout = "right";
  44847. }
  44848. break;
  44849. default:
  44850. if (after2 < store.states.fixedLeafColumnsLength.value) {
  44851. fixedLayout = "left";
  44852. } else if (start >= columns2.length - store.states.rightFixedLeafColumnsLength.value) {
  44853. fixedLayout = "right";
  44854. }
  44855. }
  44856. return fixedLayout ? {
  44857. direction: fixedLayout,
  44858. start,
  44859. after: after2
  44860. } : {};
  44861. };
  44862. var getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset3 = 0) => {
  44863. const classes = [];
  44864. const { direction: direction2, start, after: after2 } = isFixedColumn(index, fixed, store, realColumns);
  44865. if (direction2) {
  44866. const isLeft = direction2 === "left";
  44867. classes.push(`${namespace}-fixed-column--${direction2}`);
  44868. if (isLeft && after2 + offset3 === store.states.fixedLeafColumnsLength.value - 1) {
  44869. classes.push("is-last-column");
  44870. } else if (!isLeft && start - offset3 === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
  44871. classes.push("is-first-column");
  44872. }
  44873. }
  44874. return classes;
  44875. };
  44876. function getOffset(offset3, column2) {
  44877. return offset3 + (isNull_default(column2.realWidth) || Number.isNaN(column2.realWidth) ? Number(column2.width) : column2.realWidth);
  44878. }
  44879. var getFixedColumnOffset = (index, fixed, store, realColumns) => {
  44880. const {
  44881. direction: direction2,
  44882. start = 0,
  44883. after: after2 = 0
  44884. } = isFixedColumn(index, fixed, store, realColumns);
  44885. if (!direction2) {
  44886. return;
  44887. }
  44888. const styles = {};
  44889. const isLeft = direction2 === "left";
  44890. const columns2 = store.states.columns.value;
  44891. if (isLeft) {
  44892. styles.left = columns2.slice(0, start).reduce(getOffset, 0);
  44893. } else {
  44894. styles.right = columns2.slice(after2 + 1).reverse().reduce(getOffset, 0);
  44895. }
  44896. return styles;
  44897. };
  44898. var ensurePosition = (style, key) => {
  44899. if (!style)
  44900. return;
  44901. if (!Number.isNaN(style[key])) {
  44902. style[key] = `${style[key]}px`;
  44903. }
  44904. };
  44905. // node_modules/element-plus/es/components/table/src/store/expand.mjs
  44906. function useExpand(watcherData) {
  44907. const instance = getCurrentInstance();
  44908. const defaultExpandAll = ref(false);
  44909. const expandRows = ref([]);
  44910. const updateExpandRows = () => {
  44911. const data = watcherData.data.value || [];
  44912. const rowKey2 = watcherData.rowKey.value;
  44913. if (defaultExpandAll.value) {
  44914. expandRows.value = data.slice();
  44915. } else if (rowKey2) {
  44916. const expandRowsMap = getKeysMap(expandRows.value, rowKey2);
  44917. expandRows.value = data.reduce((prev, row) => {
  44918. const rowId = getRowIdentity(row, rowKey2);
  44919. const rowInfo = expandRowsMap[rowId];
  44920. if (rowInfo) {
  44921. prev.push(row);
  44922. }
  44923. return prev;
  44924. }, []);
  44925. } else {
  44926. expandRows.value = [];
  44927. }
  44928. };
  44929. const toggleRowExpansion = (row, expanded) => {
  44930. const changed = toggleRowStatus(expandRows.value, row, expanded, void 0, void 0, void 0, watcherData.rowKey.value);
  44931. if (changed) {
  44932. instance.emit("expand-change", row, expandRows.value.slice());
  44933. }
  44934. };
  44935. const setExpandRowKeys = (rowKeys) => {
  44936. instance.store.assertRowKey();
  44937. const data = watcherData.data.value || [];
  44938. const rowKey2 = watcherData.rowKey.value;
  44939. const keysMap = getKeysMap(data, rowKey2);
  44940. expandRows.value = rowKeys.reduce((prev, cur) => {
  44941. const info = keysMap[cur];
  44942. if (info) {
  44943. prev.push(info.row);
  44944. }
  44945. return prev;
  44946. }, []);
  44947. };
  44948. const isRowExpanded = (row) => {
  44949. const rowKey2 = watcherData.rowKey.value;
  44950. if (rowKey2) {
  44951. const expandMap = getKeysMap(expandRows.value, rowKey2);
  44952. return !!expandMap[getRowIdentity(row, rowKey2)];
  44953. }
  44954. return expandRows.value.includes(row);
  44955. };
  44956. return {
  44957. updateExpandRows,
  44958. toggleRowExpansion,
  44959. setExpandRowKeys,
  44960. isRowExpanded,
  44961. states: {
  44962. expandRows,
  44963. defaultExpandAll
  44964. }
  44965. };
  44966. }
  44967. // node_modules/element-plus/es/components/table/src/store/current.mjs
  44968. function useCurrent(watcherData) {
  44969. const instance = getCurrentInstance();
  44970. const _currentRowKey = ref(null);
  44971. const currentRow = ref(null);
  44972. const setCurrentRowKey = (key) => {
  44973. instance.store.assertRowKey();
  44974. _currentRowKey.value = key;
  44975. setCurrentRowByKey(key);
  44976. };
  44977. const restoreCurrentRowKey = () => {
  44978. _currentRowKey.value = null;
  44979. };
  44980. const setCurrentRowByKey = (key) => {
  44981. var _a2;
  44982. const { data, rowKey: rowKey2 } = watcherData;
  44983. let _currentRow = null;
  44984. if (rowKey2.value) {
  44985. _currentRow = (_a2 = (unref(data) || []).find((item) => getRowIdentity(item, rowKey2.value) === key)) != null ? _a2 : null;
  44986. }
  44987. currentRow.value = _currentRow != null ? _currentRow : null;
  44988. instance.emit("current-change", currentRow.value, null);
  44989. };
  44990. const updateCurrentRow = (_currentRow) => {
  44991. const oldCurrentRow = currentRow.value;
  44992. if (_currentRow && _currentRow !== oldCurrentRow) {
  44993. currentRow.value = _currentRow;
  44994. instance.emit("current-change", currentRow.value, oldCurrentRow);
  44995. return;
  44996. }
  44997. if (!_currentRow && oldCurrentRow) {
  44998. currentRow.value = null;
  44999. instance.emit("current-change", null, oldCurrentRow);
  45000. }
  45001. };
  45002. const updateCurrentRowData = () => {
  45003. const rowKey2 = watcherData.rowKey.value;
  45004. const data = watcherData.data.value || [];
  45005. const oldCurrentRow = currentRow.value;
  45006. if (oldCurrentRow && !data.includes(oldCurrentRow)) {
  45007. if (rowKey2) {
  45008. const currentRowKey = getRowIdentity(oldCurrentRow, rowKey2);
  45009. setCurrentRowByKey(currentRowKey);
  45010. } else {
  45011. currentRow.value = null;
  45012. }
  45013. if (isNull_default(currentRow.value)) {
  45014. instance.emit("current-change", null, oldCurrentRow);
  45015. }
  45016. } else if (_currentRowKey.value) {
  45017. setCurrentRowByKey(_currentRowKey.value);
  45018. restoreCurrentRowKey();
  45019. }
  45020. };
  45021. return {
  45022. setCurrentRowKey,
  45023. restoreCurrentRowKey,
  45024. setCurrentRowByKey,
  45025. updateCurrentRow,
  45026. updateCurrentRowData,
  45027. states: {
  45028. _currentRowKey,
  45029. currentRow
  45030. }
  45031. };
  45032. }
  45033. // node_modules/element-plus/es/components/table/src/store/tree.mjs
  45034. function useTree(watcherData) {
  45035. const expandRowKeys = ref([]);
  45036. const treeData = ref({});
  45037. const indent = ref(16);
  45038. const lazy = ref(false);
  45039. const lazyTreeNodeMap = ref({});
  45040. const lazyColumnIdentifier = ref("hasChildren");
  45041. const childrenColumnName = ref("children");
  45042. const checkStrictly = ref(false);
  45043. const instance = getCurrentInstance();
  45044. const normalizedData = computed(() => {
  45045. if (!watcherData.rowKey.value)
  45046. return {};
  45047. const data = watcherData.data.value || [];
  45048. return normalize(data);
  45049. });
  45050. const normalizedLazyNode = computed(() => {
  45051. const rowKey2 = watcherData.rowKey.value;
  45052. const keys3 = Object.keys(lazyTreeNodeMap.value);
  45053. const res = {};
  45054. if (!keys3.length)
  45055. return res;
  45056. keys3.forEach((key) => {
  45057. if (lazyTreeNodeMap.value[key].length) {
  45058. const item = { children: [] };
  45059. lazyTreeNodeMap.value[key].forEach((row) => {
  45060. const currentRowKey = getRowIdentity(row, rowKey2);
  45061. item.children.push(currentRowKey);
  45062. if (row[lazyColumnIdentifier.value] && !res[currentRowKey]) {
  45063. res[currentRowKey] = { children: [] };
  45064. }
  45065. });
  45066. res[key] = item;
  45067. }
  45068. });
  45069. return res;
  45070. });
  45071. const normalize = (data) => {
  45072. const rowKey2 = watcherData.rowKey.value;
  45073. const res = {};
  45074. walkTreeNode(data, (parent2, children, level) => {
  45075. const parentId = getRowIdentity(parent2, rowKey2);
  45076. if (isArray(children)) {
  45077. res[parentId] = {
  45078. children: children.map((row) => getRowIdentity(row, rowKey2)),
  45079. level
  45080. };
  45081. } else if (lazy.value) {
  45082. res[parentId] = {
  45083. children: [],
  45084. lazy: true,
  45085. level
  45086. };
  45087. }
  45088. }, childrenColumnName.value, lazyColumnIdentifier.value, lazy.value);
  45089. return res;
  45090. };
  45091. const updateTreeData = (ifChangeExpandRowKeys = false, ifExpandAll) => {
  45092. var _a2, _b;
  45093. ifExpandAll || (ifExpandAll = (_a2 = instance.store) == null ? void 0 : _a2.states.defaultExpandAll.value);
  45094. const nested = normalizedData.value;
  45095. const normalizedLazyNode_ = normalizedLazyNode.value;
  45096. const keys3 = Object.keys(nested);
  45097. const newTreeData = {};
  45098. if (keys3.length) {
  45099. const oldTreeData = unref(treeData);
  45100. const rootLazyRowKeys = [];
  45101. const getExpanded = (oldValue, key) => {
  45102. if (ifChangeExpandRowKeys) {
  45103. if (expandRowKeys.value) {
  45104. return ifExpandAll || expandRowKeys.value.includes(key);
  45105. } else {
  45106. return !!(ifExpandAll || (oldValue == null ? void 0 : oldValue.expanded));
  45107. }
  45108. } else {
  45109. const included = ifExpandAll || expandRowKeys.value && expandRowKeys.value.includes(key);
  45110. return !!((oldValue == null ? void 0 : oldValue.expanded) || included);
  45111. }
  45112. };
  45113. keys3.forEach((key) => {
  45114. const oldValue = oldTreeData[key];
  45115. const newValue = { ...nested[key] };
  45116. newValue.expanded = getExpanded(oldValue, key);
  45117. if (newValue.lazy) {
  45118. const { loaded = false, loading = false } = oldValue || {};
  45119. newValue.loaded = !!loaded;
  45120. newValue.loading = !!loading;
  45121. rootLazyRowKeys.push(key);
  45122. }
  45123. newTreeData[key] = newValue;
  45124. });
  45125. const lazyKeys = Object.keys(normalizedLazyNode_);
  45126. if (lazy.value && lazyKeys.length && rootLazyRowKeys.length) {
  45127. lazyKeys.forEach((key) => {
  45128. var _a22;
  45129. const oldValue = oldTreeData[key];
  45130. const lazyNodeChildren = normalizedLazyNode_[key].children;
  45131. if (rootLazyRowKeys.includes(key)) {
  45132. if (((_a22 = newTreeData[key].children) == null ? void 0 : _a22.length) !== 0) {
  45133. throw new Error("[ElTable]children must be an empty array.");
  45134. }
  45135. newTreeData[key].children = lazyNodeChildren;
  45136. } else {
  45137. const { loaded = false, loading = false } = oldValue || {};
  45138. newTreeData[key] = {
  45139. lazy: true,
  45140. loaded: !!loaded,
  45141. loading: !!loading,
  45142. expanded: getExpanded(oldValue, key),
  45143. children: lazyNodeChildren,
  45144. level: void 0
  45145. };
  45146. }
  45147. });
  45148. }
  45149. }
  45150. treeData.value = newTreeData;
  45151. (_b = instance.store) == null ? void 0 : _b.updateTableScrollY();
  45152. };
  45153. watch(() => expandRowKeys.value, () => {
  45154. updateTreeData(true);
  45155. });
  45156. watch(() => normalizedData.value, () => {
  45157. updateTreeData();
  45158. });
  45159. watch(() => normalizedLazyNode.value, () => {
  45160. updateTreeData();
  45161. });
  45162. const updateTreeExpandKeys = (value) => {
  45163. expandRowKeys.value = value;
  45164. updateTreeData();
  45165. };
  45166. const isUseLazy = (data) => {
  45167. return lazy.value && data && "loaded" in data && !data.loaded;
  45168. };
  45169. const toggleTreeExpansion = (row, expanded) => {
  45170. instance.store.assertRowKey();
  45171. const rowKey2 = watcherData.rowKey.value;
  45172. const id = getRowIdentity(row, rowKey2);
  45173. const data = id && treeData.value[id];
  45174. if (id && data && "expanded" in data) {
  45175. const oldExpanded = data.expanded;
  45176. expanded = isUndefined2(expanded) ? !data.expanded : expanded;
  45177. treeData.value[id].expanded = expanded;
  45178. if (oldExpanded !== expanded) {
  45179. instance.emit("expand-change", row, expanded);
  45180. }
  45181. isUseLazy(data) && loadData(row, id, data);
  45182. instance.store.updateTableScrollY();
  45183. }
  45184. };
  45185. const loadOrToggle = (row) => {
  45186. instance.store.assertRowKey();
  45187. const rowKey2 = watcherData.rowKey.value;
  45188. const id = getRowIdentity(row, rowKey2);
  45189. const data = treeData.value[id];
  45190. if (isUseLazy(data)) {
  45191. loadData(row, id, data);
  45192. } else {
  45193. toggleTreeExpansion(row, void 0);
  45194. }
  45195. };
  45196. const loadData = (row, key, treeNode) => {
  45197. const { load } = instance.props;
  45198. if (load && !treeData.value[key].loaded) {
  45199. treeData.value[key].loading = true;
  45200. load(row, treeNode, (data) => {
  45201. if (!isArray(data)) {
  45202. throw new TypeError("[ElTable] data must be an array");
  45203. }
  45204. treeData.value[key].loading = false;
  45205. treeData.value[key].loaded = true;
  45206. treeData.value[key].expanded = true;
  45207. if (data.length) {
  45208. lazyTreeNodeMap.value[key] = data;
  45209. }
  45210. instance.emit("expand-change", row, true);
  45211. });
  45212. }
  45213. };
  45214. const updateKeyChildren = (key, data) => {
  45215. const { lazy: lazy2, rowKey: rowKey2 } = instance.props;
  45216. if (!lazy2)
  45217. return;
  45218. if (!rowKey2)
  45219. throw new Error("[Table] rowKey is required in updateKeyChild");
  45220. if (lazyTreeNodeMap.value[key]) {
  45221. lazyTreeNodeMap.value[key] = data;
  45222. }
  45223. };
  45224. return {
  45225. loadData,
  45226. loadOrToggle,
  45227. toggleTreeExpansion,
  45228. updateTreeExpandKeys,
  45229. updateTreeData,
  45230. updateKeyChildren,
  45231. normalize,
  45232. states: {
  45233. expandRowKeys,
  45234. treeData,
  45235. indent,
  45236. lazy,
  45237. lazyTreeNodeMap,
  45238. lazyColumnIdentifier,
  45239. childrenColumnName,
  45240. checkStrictly
  45241. }
  45242. };
  45243. }
  45244. // node_modules/element-plus/es/components/table/src/store/watcher.mjs
  45245. var sortData = (data, states) => {
  45246. const sortingColumn = states.sortingColumn;
  45247. if (!sortingColumn || isString(sortingColumn.sortable)) {
  45248. return data;
  45249. }
  45250. return orderBy2(data, states.sortProp, states.sortOrder, sortingColumn.sortMethod, sortingColumn.sortBy);
  45251. };
  45252. var doFlattenColumns = (columns2) => {
  45253. const result2 = [];
  45254. columns2.forEach((column2) => {
  45255. if (column2.children && column2.children.length > 0) {
  45256. result2.push.apply(result2, doFlattenColumns(column2.children));
  45257. } else {
  45258. result2.push(column2);
  45259. }
  45260. });
  45261. return result2;
  45262. };
  45263. function useWatcher() {
  45264. var _a2;
  45265. const instance = getCurrentInstance();
  45266. const { size: tableSize } = toRefs((_a2 = instance.proxy) == null ? void 0 : _a2.$props);
  45267. const rowKey2 = ref(null);
  45268. const data = ref([]);
  45269. const _data = ref([]);
  45270. const isComplex = ref(false);
  45271. const _columns = ref([]);
  45272. const originColumns = ref([]);
  45273. const columns2 = ref([]);
  45274. const fixedColumns = ref([]);
  45275. const rightFixedColumns = ref([]);
  45276. const leafColumns = ref([]);
  45277. const fixedLeafColumns = ref([]);
  45278. const rightFixedLeafColumns = ref([]);
  45279. const updateOrderFns = [];
  45280. const leafColumnsLength = ref(0);
  45281. const fixedLeafColumnsLength = ref(0);
  45282. const rightFixedLeafColumnsLength = ref(0);
  45283. const isAllSelected = ref(false);
  45284. const selection = ref([]);
  45285. const reserveSelection = ref(false);
  45286. const selectOnIndeterminate = ref(false);
  45287. const selectable = ref(null);
  45288. const filters = ref({});
  45289. const filteredData = ref(null);
  45290. const sortingColumn = ref(null);
  45291. const sortProp = ref(null);
  45292. const sortOrder = ref(null);
  45293. const hoverRow = ref(null);
  45294. const selectedMap = computed(() => {
  45295. return rowKey2.value ? getKeysMap(selection.value, rowKey2.value) : void 0;
  45296. });
  45297. watch(data, () => {
  45298. var _a22;
  45299. if (instance.state) {
  45300. scheduleLayout(false);
  45301. const needUpdateFixed = instance.props.tableLayout === "auto";
  45302. if (needUpdateFixed) {
  45303. (_a22 = instance.refs.tableHeaderRef) == null ? void 0 : _a22.updateFixedColumnStyle();
  45304. }
  45305. }
  45306. }, {
  45307. deep: true
  45308. });
  45309. const assertRowKey = () => {
  45310. if (!rowKey2.value)
  45311. throw new Error("[ElTable] prop row-key is required");
  45312. };
  45313. const updateChildFixed = (column2) => {
  45314. var _a22;
  45315. (_a22 = column2.children) == null ? void 0 : _a22.forEach((childColumn) => {
  45316. childColumn.fixed = column2.fixed;
  45317. updateChildFixed(childColumn);
  45318. });
  45319. };
  45320. const updateColumns = () => {
  45321. _columns.value.forEach((column2) => {
  45322. updateChildFixed(column2);
  45323. });
  45324. fixedColumns.value = _columns.value.filter((column2) => [true, "left"].includes(column2.fixed));
  45325. const selectColumn = _columns.value.find((column2) => column2.type === "selection");
  45326. let selectColFixLeft;
  45327. if (selectColumn && selectColumn.fixed !== "right" && !fixedColumns.value.includes(selectColumn)) {
  45328. const selectColumnIndex = _columns.value.indexOf(selectColumn);
  45329. if (selectColumnIndex === 0 && fixedColumns.value.length) {
  45330. fixedColumns.value.unshift(selectColumn);
  45331. selectColFixLeft = true;
  45332. }
  45333. }
  45334. rightFixedColumns.value = _columns.value.filter((column2) => column2.fixed === "right");
  45335. const notFixedColumns = _columns.value.filter((column2) => (selectColFixLeft ? column2.type !== "selection" : true) && !column2.fixed);
  45336. originColumns.value = Array.from(fixedColumns.value).concat(notFixedColumns).concat(rightFixedColumns.value);
  45337. const leafColumns2 = doFlattenColumns(notFixedColumns);
  45338. const fixedLeafColumns2 = doFlattenColumns(fixedColumns.value);
  45339. const rightFixedLeafColumns2 = doFlattenColumns(rightFixedColumns.value);
  45340. leafColumnsLength.value = leafColumns2.length;
  45341. fixedLeafColumnsLength.value = fixedLeafColumns2.length;
  45342. rightFixedLeafColumnsLength.value = rightFixedLeafColumns2.length;
  45343. columns2.value = Array.from(fixedLeafColumns2).concat(leafColumns2).concat(rightFixedLeafColumns2);
  45344. isComplex.value = fixedColumns.value.length > 0 || rightFixedColumns.value.length > 0;
  45345. };
  45346. const scheduleLayout = (needUpdateColumns, immediate = false) => {
  45347. if (needUpdateColumns) {
  45348. updateColumns();
  45349. }
  45350. if (immediate) {
  45351. instance.state.doLayout();
  45352. } else {
  45353. instance.state.debouncedUpdateLayout();
  45354. }
  45355. };
  45356. const isSelected = (row) => {
  45357. if (selectedMap.value) {
  45358. return !!selectedMap.value[getRowIdentity(row, rowKey2.value)];
  45359. } else {
  45360. return selection.value.includes(row);
  45361. }
  45362. };
  45363. const clearSelection = () => {
  45364. isAllSelected.value = false;
  45365. const oldSelection = selection.value;
  45366. selection.value = [];
  45367. if (oldSelection.length) {
  45368. instance.emit("selection-change", []);
  45369. }
  45370. };
  45371. const cleanSelection = () => {
  45372. var _a22, _b;
  45373. let deleted;
  45374. if (rowKey2.value) {
  45375. deleted = [];
  45376. const childrenKey = (_b = (_a22 = instance == null ? void 0 : instance.store) == null ? void 0 : _a22.states) == null ? void 0 : _b.childrenColumnName.value;
  45377. const dataMap = getKeysMap(data.value, rowKey2.value, true, childrenKey);
  45378. for (const key in selectedMap.value) {
  45379. if (hasOwn(selectedMap.value, key) && !dataMap[key]) {
  45380. deleted.push(selectedMap.value[key].row);
  45381. }
  45382. }
  45383. } else {
  45384. deleted = selection.value.filter((item) => !data.value.includes(item));
  45385. }
  45386. if (deleted.length) {
  45387. const newSelection = selection.value.filter((item) => !deleted.includes(item));
  45388. selection.value = newSelection;
  45389. instance.emit("selection-change", newSelection.slice());
  45390. }
  45391. };
  45392. const getSelectionRows = () => {
  45393. return (selection.value || []).slice();
  45394. };
  45395. const toggleRowSelection = (row, selected, emitChange = true, ignoreSelectable = false) => {
  45396. var _a22, _b, _c, _d;
  45397. const treeProps2 = {
  45398. children: (_b = (_a22 = instance == null ? void 0 : instance.store) == null ? void 0 : _a22.states) == null ? void 0 : _b.childrenColumnName.value,
  45399. checkStrictly: (_d = (_c = instance == null ? void 0 : instance.store) == null ? void 0 : _c.states) == null ? void 0 : _d.checkStrictly.value
  45400. };
  45401. const changed = toggleRowStatus(selection.value, row, selected, treeProps2, ignoreSelectable ? void 0 : selectable.value, data.value.indexOf(row), rowKey2.value);
  45402. if (changed) {
  45403. const newSelection = (selection.value || []).slice();
  45404. if (emitChange) {
  45405. instance.emit("select", newSelection, row);
  45406. }
  45407. instance.emit("selection-change", newSelection);
  45408. }
  45409. };
  45410. const _toggleAllSelection = () => {
  45411. var _a22, _b;
  45412. const value = selectOnIndeterminate.value ? !isAllSelected.value : !(isAllSelected.value || selection.value.length);
  45413. isAllSelected.value = value;
  45414. let selectionChanged = false;
  45415. let childrenCount = 0;
  45416. const rowKey22 = (_b = (_a22 = instance == null ? void 0 : instance.store) == null ? void 0 : _a22.states) == null ? void 0 : _b.rowKey.value;
  45417. const { childrenColumnName } = instance.store.states;
  45418. const treeProps2 = {
  45419. children: childrenColumnName.value,
  45420. checkStrictly: false
  45421. };
  45422. data.value.forEach((row, index) => {
  45423. const rowIndex = index + childrenCount;
  45424. if (toggleRowStatus(selection.value, row, value, treeProps2, selectable.value, rowIndex, rowKey22)) {
  45425. selectionChanged = true;
  45426. }
  45427. childrenCount += getChildrenCount(getRowIdentity(row, rowKey22));
  45428. });
  45429. if (selectionChanged) {
  45430. instance.emit("selection-change", selection.value ? selection.value.slice() : []);
  45431. }
  45432. instance.emit("select-all", (selection.value || []).slice());
  45433. };
  45434. const updateAllSelected = () => {
  45435. var _a22;
  45436. if (((_a22 = data.value) == null ? void 0 : _a22.length) === 0) {
  45437. isAllSelected.value = false;
  45438. return;
  45439. }
  45440. const { childrenColumnName } = instance.store.states;
  45441. let rowIndex = 0;
  45442. let selectedCount = 0;
  45443. const checkSelectedStatus = (data2) => {
  45444. var _a3;
  45445. for (const row of data2) {
  45446. const isRowSelectable = selectable.value && selectable.value.call(null, row, rowIndex);
  45447. if (!isSelected(row)) {
  45448. if (!selectable.value || isRowSelectable) {
  45449. return false;
  45450. }
  45451. } else {
  45452. selectedCount++;
  45453. }
  45454. rowIndex++;
  45455. if (((_a3 = row[childrenColumnName.value]) == null ? void 0 : _a3.length) && !checkSelectedStatus(row[childrenColumnName.value])) {
  45456. return false;
  45457. }
  45458. }
  45459. return true;
  45460. };
  45461. const isAllSelected_ = checkSelectedStatus(data.value || []);
  45462. isAllSelected.value = selectedCount === 0 ? false : isAllSelected_;
  45463. };
  45464. const getChildrenCount = (rowKey22) => {
  45465. var _a22;
  45466. if (!instance || !instance.store)
  45467. return 0;
  45468. const { treeData } = instance.store.states;
  45469. let count = 0;
  45470. const children = (_a22 = treeData.value[rowKey22]) == null ? void 0 : _a22.children;
  45471. if (children) {
  45472. count += children.length;
  45473. children.forEach((childKey) => {
  45474. count += getChildrenCount(childKey);
  45475. });
  45476. }
  45477. return count;
  45478. };
  45479. const updateFilters = (column2, values2) => {
  45480. const filters_ = {};
  45481. castArray_default(column2).forEach((col) => {
  45482. filters.value[col.id] = values2;
  45483. filters_[col.columnKey || col.id] = values2;
  45484. });
  45485. return filters_;
  45486. };
  45487. const updateSort = (column2, prop, order) => {
  45488. if (sortingColumn.value && sortingColumn.value !== column2) {
  45489. sortingColumn.value.order = null;
  45490. }
  45491. sortingColumn.value = column2;
  45492. sortProp.value = prop;
  45493. sortOrder.value = order;
  45494. };
  45495. const execFilter = () => {
  45496. let sourceData = unref(_data);
  45497. Object.keys(filters.value).forEach((columnId) => {
  45498. const values2 = filters.value[columnId];
  45499. if (!values2 || values2.length === 0)
  45500. return;
  45501. const column2 = getColumnById({
  45502. columns: columns2.value
  45503. }, columnId);
  45504. if (column2 && column2.filterMethod) {
  45505. sourceData = sourceData.filter((row) => {
  45506. return values2.some((value) => column2.filterMethod.call(null, value, row, column2));
  45507. });
  45508. }
  45509. });
  45510. filteredData.value = sourceData;
  45511. };
  45512. const execSort = () => {
  45513. var _a22;
  45514. data.value = sortData((_a22 = filteredData.value) != null ? _a22 : [], {
  45515. sortingColumn: sortingColumn.value,
  45516. sortProp: sortProp.value,
  45517. sortOrder: sortOrder.value
  45518. });
  45519. };
  45520. const execQuery = (ignore = void 0) => {
  45521. if (!(ignore == null ? void 0 : ignore.filter)) {
  45522. execFilter();
  45523. }
  45524. execSort();
  45525. };
  45526. const clearFilter = (columnKeys) => {
  45527. const { tableHeaderRef } = instance.refs;
  45528. if (!tableHeaderRef)
  45529. return;
  45530. const panels = Object.assign({}, tableHeaderRef.filterPanels);
  45531. const keys3 = Object.keys(panels);
  45532. if (!keys3.length)
  45533. return;
  45534. if (isString(columnKeys)) {
  45535. columnKeys = [columnKeys];
  45536. }
  45537. if (isArray(columnKeys)) {
  45538. const columns_ = columnKeys.map((key) => getColumnByKey({
  45539. columns: columns2.value
  45540. }, key));
  45541. keys3.forEach((key) => {
  45542. const column2 = columns_.find((col) => col.id === key);
  45543. if (column2) {
  45544. column2.filteredValue = [];
  45545. }
  45546. });
  45547. instance.store.commit("filterChange", {
  45548. column: columns_,
  45549. values: [],
  45550. silent: true,
  45551. multi: true
  45552. });
  45553. } else {
  45554. keys3.forEach((key) => {
  45555. const column2 = columns2.value.find((col) => col.id === key);
  45556. if (column2) {
  45557. column2.filteredValue = [];
  45558. }
  45559. });
  45560. filters.value = {};
  45561. instance.store.commit("filterChange", {
  45562. column: {},
  45563. values: [],
  45564. silent: true
  45565. });
  45566. }
  45567. };
  45568. const clearSort = () => {
  45569. if (!sortingColumn.value)
  45570. return;
  45571. updateSort(null, null, null);
  45572. instance.store.commit("changeSortCondition", {
  45573. silent: true
  45574. });
  45575. };
  45576. const {
  45577. setExpandRowKeys,
  45578. toggleRowExpansion,
  45579. updateExpandRows,
  45580. states: expandStates,
  45581. isRowExpanded
  45582. } = useExpand({
  45583. data,
  45584. rowKey: rowKey2
  45585. });
  45586. const {
  45587. updateTreeExpandKeys,
  45588. toggleTreeExpansion,
  45589. updateTreeData,
  45590. updateKeyChildren,
  45591. loadOrToggle,
  45592. states: treeStates
  45593. } = useTree({
  45594. data,
  45595. rowKey: rowKey2
  45596. });
  45597. const {
  45598. updateCurrentRowData,
  45599. updateCurrentRow,
  45600. setCurrentRowKey,
  45601. states: currentData
  45602. } = useCurrent({
  45603. data,
  45604. rowKey: rowKey2
  45605. });
  45606. const setExpandRowKeysAdapter = (val) => {
  45607. setExpandRowKeys(val);
  45608. updateTreeExpandKeys(val);
  45609. };
  45610. const toggleRowExpansionAdapter = (row, expanded) => {
  45611. const hasExpandColumn = columns2.value.some(({ type: type4 }) => type4 === "expand");
  45612. if (hasExpandColumn) {
  45613. toggleRowExpansion(row, expanded);
  45614. } else {
  45615. toggleTreeExpansion(row, expanded);
  45616. }
  45617. };
  45618. return {
  45619. assertRowKey,
  45620. updateColumns,
  45621. scheduleLayout,
  45622. isSelected,
  45623. clearSelection,
  45624. cleanSelection,
  45625. getSelectionRows,
  45626. toggleRowSelection,
  45627. _toggleAllSelection,
  45628. toggleAllSelection: null,
  45629. updateAllSelected,
  45630. updateFilters,
  45631. updateCurrentRow,
  45632. updateSort,
  45633. execFilter,
  45634. execSort,
  45635. execQuery,
  45636. clearFilter,
  45637. clearSort,
  45638. toggleRowExpansion,
  45639. setExpandRowKeysAdapter,
  45640. setCurrentRowKey,
  45641. toggleRowExpansionAdapter,
  45642. isRowExpanded,
  45643. updateExpandRows,
  45644. updateCurrentRowData,
  45645. loadOrToggle,
  45646. updateTreeData,
  45647. updateKeyChildren,
  45648. states: {
  45649. tableSize,
  45650. rowKey: rowKey2,
  45651. data,
  45652. _data,
  45653. isComplex,
  45654. _columns,
  45655. originColumns,
  45656. columns: columns2,
  45657. fixedColumns,
  45658. rightFixedColumns,
  45659. leafColumns,
  45660. fixedLeafColumns,
  45661. rightFixedLeafColumns,
  45662. updateOrderFns,
  45663. leafColumnsLength,
  45664. fixedLeafColumnsLength,
  45665. rightFixedLeafColumnsLength,
  45666. isAllSelected,
  45667. selection,
  45668. reserveSelection,
  45669. selectOnIndeterminate,
  45670. selectable,
  45671. filters,
  45672. filteredData,
  45673. sortingColumn,
  45674. sortProp,
  45675. sortOrder,
  45676. hoverRow,
  45677. ...expandStates,
  45678. ...treeStates,
  45679. ...currentData
  45680. }
  45681. };
  45682. }
  45683. // node_modules/element-plus/es/components/table/src/store/index.mjs
  45684. function replaceColumn(array4, column2) {
  45685. return array4.map((item) => {
  45686. var _a2;
  45687. if (item.id === column2.id) {
  45688. return column2;
  45689. } else if ((_a2 = item.children) == null ? void 0 : _a2.length) {
  45690. item.children = replaceColumn(item.children, column2);
  45691. }
  45692. return item;
  45693. });
  45694. }
  45695. function sortColumn(array4) {
  45696. array4.forEach((item) => {
  45697. var _a2, _b;
  45698. item.no = (_a2 = item.getColumnIndex) == null ? void 0 : _a2.call(item);
  45699. if ((_b = item.children) == null ? void 0 : _b.length) {
  45700. sortColumn(item.children);
  45701. }
  45702. });
  45703. array4.sort((cur, pre) => cur.no - pre.no);
  45704. }
  45705. function useStore() {
  45706. const instance = getCurrentInstance();
  45707. const watcher = useWatcher();
  45708. const ns = useNamespace("table");
  45709. const mutations = {
  45710. setData(states, data) {
  45711. const dataInstanceChanged = unref(states._data) !== data;
  45712. states.data.value = data;
  45713. states._data.value = data;
  45714. instance.store.execQuery();
  45715. instance.store.updateCurrentRowData();
  45716. instance.store.updateExpandRows();
  45717. instance.store.updateTreeData(instance.store.states.defaultExpandAll.value);
  45718. if (unref(states.reserveSelection)) {
  45719. instance.store.assertRowKey();
  45720. } else {
  45721. if (dataInstanceChanged) {
  45722. instance.store.clearSelection();
  45723. } else {
  45724. instance.store.cleanSelection();
  45725. }
  45726. }
  45727. instance.store.updateAllSelected();
  45728. if (instance.$ready) {
  45729. instance.store.scheduleLayout();
  45730. }
  45731. },
  45732. insertColumn(states, column2, parent2, updateColumnOrder) {
  45733. var _a2;
  45734. const array4 = unref(states._columns);
  45735. let newColumns = [];
  45736. if (!parent2) {
  45737. array4.push(column2);
  45738. newColumns = array4;
  45739. } else {
  45740. if (parent2 && !parent2.children) {
  45741. parent2.children = [];
  45742. }
  45743. (_a2 = parent2.children) == null ? void 0 : _a2.push(column2);
  45744. newColumns = replaceColumn(array4, parent2);
  45745. }
  45746. sortColumn(newColumns);
  45747. states._columns.value = newColumns;
  45748. states.updateOrderFns.push(updateColumnOrder);
  45749. if (column2.type === "selection") {
  45750. states.selectable.value = column2.selectable;
  45751. states.reserveSelection.value = column2.reserveSelection;
  45752. }
  45753. if (instance.$ready) {
  45754. instance.store.updateColumns();
  45755. instance.store.scheduleLayout();
  45756. }
  45757. },
  45758. updateColumnOrder(states, column2) {
  45759. var _a2;
  45760. const newColumnIndex = (_a2 = column2.getColumnIndex) == null ? void 0 : _a2.call(column2);
  45761. if (newColumnIndex === column2.no)
  45762. return;
  45763. sortColumn(states._columns.value);
  45764. if (instance.$ready) {
  45765. instance.store.updateColumns();
  45766. }
  45767. },
  45768. removeColumn(states, column2, parent2, updateColumnOrder) {
  45769. var _a2;
  45770. const array4 = unref(states._columns) || [];
  45771. if (parent2) {
  45772. (_a2 = parent2.children) == null ? void 0 : _a2.splice(parent2.children.findIndex((item) => item.id === column2.id), 1);
  45773. nextTick(() => {
  45774. var _a22;
  45775. if (((_a22 = parent2.children) == null ? void 0 : _a22.length) === 0) {
  45776. delete parent2.children;
  45777. }
  45778. });
  45779. states._columns.value = replaceColumn(array4, parent2);
  45780. } else {
  45781. const index = array4.indexOf(column2);
  45782. if (index > -1) {
  45783. array4.splice(index, 1);
  45784. states._columns.value = array4;
  45785. }
  45786. }
  45787. const updateFnIndex = states.updateOrderFns.indexOf(updateColumnOrder);
  45788. updateFnIndex > -1 && states.updateOrderFns.splice(updateFnIndex, 1);
  45789. if (instance.$ready) {
  45790. instance.store.updateColumns();
  45791. instance.store.scheduleLayout();
  45792. }
  45793. },
  45794. sort(states, options) {
  45795. const { prop, order, init } = options;
  45796. if (prop) {
  45797. const column2 = unref(states.columns).find((column22) => column22.property === prop);
  45798. if (column2) {
  45799. column2.order = order;
  45800. instance.store.updateSort(column2, prop, order);
  45801. instance.store.commit("changeSortCondition", { init });
  45802. }
  45803. }
  45804. },
  45805. changeSortCondition(states, options) {
  45806. const { sortingColumn, sortProp, sortOrder } = states;
  45807. const columnValue = unref(sortingColumn), propValue = unref(sortProp), orderValue = unref(sortOrder);
  45808. if (isNull_default(orderValue)) {
  45809. states.sortingColumn.value = null;
  45810. states.sortProp.value = null;
  45811. }
  45812. const ignore = { filter: true };
  45813. instance.store.execQuery(ignore);
  45814. if (!options || !(options.silent || options.init)) {
  45815. instance.emit("sort-change", {
  45816. column: columnValue,
  45817. prop: propValue,
  45818. order: orderValue
  45819. });
  45820. }
  45821. instance.store.updateTableScrollY();
  45822. },
  45823. filterChange(_states, options) {
  45824. const { column: column2, values: values2, silent } = options;
  45825. const newFilters = instance.store.updateFilters(column2, values2);
  45826. instance.store.execQuery();
  45827. if (!silent) {
  45828. instance.emit("filter-change", newFilters);
  45829. }
  45830. instance.store.updateTableScrollY();
  45831. },
  45832. toggleAllSelection() {
  45833. var _a2, _b;
  45834. (_b = (_a2 = instance.store).toggleAllSelection) == null ? void 0 : _b.call(_a2);
  45835. },
  45836. rowSelectedChanged(_states, row) {
  45837. instance.store.toggleRowSelection(row);
  45838. instance.store.updateAllSelected();
  45839. },
  45840. setHoverRow(states, row) {
  45841. states.hoverRow.value = row;
  45842. },
  45843. setCurrentRow(_states, row) {
  45844. instance.store.updateCurrentRow(row);
  45845. }
  45846. };
  45847. const commit = function(name, ...args) {
  45848. const mutations2 = instance.store.mutations;
  45849. if (mutations2[name]) {
  45850. mutations2[name].apply(instance, [
  45851. instance.store.states,
  45852. ...args
  45853. ]);
  45854. } else {
  45855. throw new Error(`Action not found: ${name}`);
  45856. }
  45857. };
  45858. const updateTableScrollY = function() {
  45859. nextTick(() => instance.layout.updateScrollY.apply(instance.layout));
  45860. };
  45861. return {
  45862. ns,
  45863. ...watcher,
  45864. mutations,
  45865. commit,
  45866. updateTableScrollY
  45867. };
  45868. }
  45869. // node_modules/element-plus/es/components/table/src/store/helper.mjs
  45870. var InitialStateMap = {
  45871. rowKey: "rowKey",
  45872. defaultExpandAll: "defaultExpandAll",
  45873. selectOnIndeterminate: "selectOnIndeterminate",
  45874. indent: "indent",
  45875. lazy: "lazy",
  45876. data: "data",
  45877. ["treeProps.hasChildren"]: {
  45878. key: "lazyColumnIdentifier",
  45879. default: "hasChildren"
  45880. },
  45881. ["treeProps.children"]: {
  45882. key: "childrenColumnName",
  45883. default: "children"
  45884. },
  45885. ["treeProps.checkStrictly"]: {
  45886. key: "checkStrictly",
  45887. default: false
  45888. }
  45889. };
  45890. function createStore(table, props2) {
  45891. if (!table) {
  45892. throw new Error("Table is required.");
  45893. }
  45894. const store = useStore();
  45895. store.toggleAllSelection = debounce_default(store._toggleAllSelection, 10);
  45896. Object.keys(InitialStateMap).forEach((key) => {
  45897. handleValue(getArrKeysValue(props2, key), key, store);
  45898. });
  45899. proxyTableProps(store, props2);
  45900. return store;
  45901. }
  45902. function proxyTableProps(store, props2) {
  45903. Object.keys(InitialStateMap).forEach((key) => {
  45904. watch(() => getArrKeysValue(props2, key), (value) => {
  45905. handleValue(value, key, store);
  45906. });
  45907. });
  45908. }
  45909. function handleValue(value, propsKey, store) {
  45910. let newVal = value;
  45911. let storeKey = InitialStateMap[propsKey];
  45912. if (isObject(storeKey)) {
  45913. newVal = newVal || storeKey.default;
  45914. storeKey = storeKey.key;
  45915. }
  45916. store.states[storeKey].value = newVal;
  45917. }
  45918. function getArrKeysValue(props2, key) {
  45919. if (key.includes(".")) {
  45920. const keyList = key.split(".");
  45921. let value = props2;
  45922. keyList.forEach((k) => {
  45923. value = value[k];
  45924. });
  45925. return value;
  45926. } else {
  45927. return props2[key];
  45928. }
  45929. }
  45930. // node_modules/element-plus/es/components/table/src/table-layout.mjs
  45931. var TableLayout = class {
  45932. constructor(options) {
  45933. this.observers = [];
  45934. this.table = null;
  45935. this.store = null;
  45936. this.columns = [];
  45937. this.fit = true;
  45938. this.showHeader = true;
  45939. this.height = ref(null);
  45940. this.scrollX = ref(false);
  45941. this.scrollY = ref(false);
  45942. this.bodyWidth = ref(null);
  45943. this.fixedWidth = ref(null);
  45944. this.rightFixedWidth = ref(null);
  45945. this.gutterWidth = 0;
  45946. for (const name in options) {
  45947. if (hasOwn(options, name)) {
  45948. if (isRef(this[name])) {
  45949. this[name].value = options[name];
  45950. } else {
  45951. this[name] = options[name];
  45952. }
  45953. }
  45954. }
  45955. if (!this.table) {
  45956. throw new Error("Table is required for Table Layout");
  45957. }
  45958. if (!this.store) {
  45959. throw new Error("Store is required for Table Layout");
  45960. }
  45961. }
  45962. updateScrollY() {
  45963. const height = this.height.value;
  45964. if (isNull_default(height))
  45965. return false;
  45966. const scrollBarRef = this.table.refs.scrollBarRef;
  45967. if (this.table.vnode.el && (scrollBarRef == null ? void 0 : scrollBarRef.wrapRef)) {
  45968. let scrollY = true;
  45969. const prevScrollY = this.scrollY.value;
  45970. scrollY = scrollBarRef.wrapRef.scrollHeight > scrollBarRef.wrapRef.clientHeight;
  45971. this.scrollY.value = scrollY;
  45972. return prevScrollY !== scrollY;
  45973. }
  45974. return false;
  45975. }
  45976. setHeight(value, prop = "height") {
  45977. if (!isClient)
  45978. return;
  45979. const el = this.table.vnode.el;
  45980. value = parseHeight(value);
  45981. this.height.value = Number(value);
  45982. if (!el && (value || value === 0)) {
  45983. nextTick(() => this.setHeight(value, prop));
  45984. return;
  45985. }
  45986. if (el && isNumber2(value)) {
  45987. el.style[prop] = `${value}px`;
  45988. this.updateElsHeight();
  45989. } else if (el && isString(value)) {
  45990. el.style[prop] = value;
  45991. this.updateElsHeight();
  45992. }
  45993. }
  45994. setMaxHeight(value) {
  45995. this.setHeight(value, "max-height");
  45996. }
  45997. getFlattenColumns() {
  45998. const flattenColumns = [];
  45999. const columns2 = this.table.store.states.columns.value;
  46000. columns2.forEach((column2) => {
  46001. if (column2.isColumnGroup) {
  46002. flattenColumns.push.apply(flattenColumns, column2.columns);
  46003. } else {
  46004. flattenColumns.push(column2);
  46005. }
  46006. });
  46007. return flattenColumns;
  46008. }
  46009. updateElsHeight() {
  46010. this.updateScrollY();
  46011. this.notifyObservers("scrollable");
  46012. }
  46013. headerDisplayNone(elm) {
  46014. if (!elm)
  46015. return true;
  46016. let headerChild = elm;
  46017. while (headerChild.tagName !== "DIV") {
  46018. if (getComputedStyle(headerChild).display === "none") {
  46019. return true;
  46020. }
  46021. headerChild = headerChild.parentElement;
  46022. }
  46023. return false;
  46024. }
  46025. updateColumnsWidth() {
  46026. var _a2;
  46027. if (!isClient)
  46028. return;
  46029. const fit = this.fit;
  46030. const bodyWidth = (_a2 = this.table.vnode.el) == null ? void 0 : _a2.clientWidth;
  46031. let bodyMinWidth = 0;
  46032. const flattenColumns = this.getFlattenColumns();
  46033. const flexColumns = flattenColumns.filter((column2) => !isNumber2(column2.width));
  46034. flattenColumns.forEach((column2) => {
  46035. if (isNumber2(column2.width) && column2.realWidth)
  46036. column2.realWidth = null;
  46037. });
  46038. if (flexColumns.length > 0 && fit) {
  46039. flattenColumns.forEach((column2) => {
  46040. bodyMinWidth += Number(column2.width || column2.minWidth || 80);
  46041. });
  46042. if (bodyMinWidth <= bodyWidth) {
  46043. this.scrollX.value = false;
  46044. const totalFlexWidth = bodyWidth - bodyMinWidth;
  46045. if (flexColumns.length === 1) {
  46046. flexColumns[0].realWidth = Number(flexColumns[0].minWidth || 80) + totalFlexWidth;
  46047. } else {
  46048. const allColumnsWidth = flexColumns.reduce((prev, column2) => prev + Number(column2.minWidth || 80), 0);
  46049. const flexWidthPerPixel = totalFlexWidth / allColumnsWidth;
  46050. let noneFirstWidth = 0;
  46051. flexColumns.forEach((column2, index) => {
  46052. if (index === 0)
  46053. return;
  46054. const flexWidth = Math.floor(Number(column2.minWidth || 80) * flexWidthPerPixel);
  46055. noneFirstWidth += flexWidth;
  46056. column2.realWidth = Number(column2.minWidth || 80) + flexWidth;
  46057. });
  46058. flexColumns[0].realWidth = Number(flexColumns[0].minWidth || 80) + totalFlexWidth - noneFirstWidth;
  46059. }
  46060. } else {
  46061. this.scrollX.value = true;
  46062. flexColumns.forEach((column2) => {
  46063. column2.realWidth = Number(column2.minWidth);
  46064. });
  46065. }
  46066. this.bodyWidth.value = Math.max(bodyMinWidth, bodyWidth);
  46067. this.table.state.resizeState.value.width = this.bodyWidth.value;
  46068. } else {
  46069. flattenColumns.forEach((column2) => {
  46070. if (!column2.width && !column2.minWidth) {
  46071. column2.realWidth = 80;
  46072. } else {
  46073. column2.realWidth = Number(column2.width || column2.minWidth);
  46074. }
  46075. bodyMinWidth += column2.realWidth;
  46076. });
  46077. this.scrollX.value = bodyMinWidth > bodyWidth;
  46078. this.bodyWidth.value = bodyMinWidth;
  46079. }
  46080. const fixedColumns = this.store.states.fixedColumns.value;
  46081. if (fixedColumns.length > 0) {
  46082. let fixedWidth = 0;
  46083. fixedColumns.forEach((column2) => {
  46084. fixedWidth += Number(column2.realWidth || column2.width);
  46085. });
  46086. this.fixedWidth.value = fixedWidth;
  46087. }
  46088. const rightFixedColumns = this.store.states.rightFixedColumns.value;
  46089. if (rightFixedColumns.length > 0) {
  46090. let rightFixedWidth = 0;
  46091. rightFixedColumns.forEach((column2) => {
  46092. rightFixedWidth += Number(column2.realWidth || column2.width);
  46093. });
  46094. this.rightFixedWidth.value = rightFixedWidth;
  46095. }
  46096. this.notifyObservers("columns");
  46097. }
  46098. addObserver(observer) {
  46099. this.observers.push(observer);
  46100. }
  46101. removeObserver(observer) {
  46102. const index = this.observers.indexOf(observer);
  46103. if (index !== -1) {
  46104. this.observers.splice(index, 1);
  46105. }
  46106. }
  46107. notifyObservers(event) {
  46108. const observers = this.observers;
  46109. observers.forEach((observer) => {
  46110. var _a2, _b;
  46111. switch (event) {
  46112. case "columns":
  46113. (_a2 = observer.state) == null ? void 0 : _a2.onColumnsChange(this);
  46114. break;
  46115. case "scrollable":
  46116. (_b = observer.state) == null ? void 0 : _b.onScrollableChange(this);
  46117. break;
  46118. default:
  46119. throw new Error(`Table Layout don't have event ${event}.`);
  46120. }
  46121. });
  46122. }
  46123. };
  46124. // node_modules/element-plus/es/components/table/src/filter-panel.mjs
  46125. var { CheckboxGroup: ElCheckboxGroup2 } = ElCheckbox;
  46126. var _sfc_main125 = defineComponent({
  46127. name: "ElTableFilterPanel",
  46128. components: {
  46129. ElCheckbox,
  46130. ElCheckboxGroup: ElCheckboxGroup2,
  46131. ElScrollbar,
  46132. ElTooltip,
  46133. ElIcon,
  46134. ArrowDown: arrow_down_default,
  46135. ArrowUp: arrow_up_default
  46136. },
  46137. directives: { ClickOutside },
  46138. props: {
  46139. placement: {
  46140. type: String,
  46141. default: "bottom-start"
  46142. },
  46143. store: {
  46144. type: Object
  46145. },
  46146. column: {
  46147. type: Object
  46148. },
  46149. upDataColumn: {
  46150. type: Function
  46151. },
  46152. appendTo: useTooltipContentProps.appendTo
  46153. },
  46154. setup(props2) {
  46155. const instance = getCurrentInstance();
  46156. const { t } = useLocale();
  46157. const ns = useNamespace("table-filter");
  46158. const parent2 = instance == null ? void 0 : instance.parent;
  46159. if (props2.column && !parent2.filterPanels.value[props2.column.id]) {
  46160. parent2.filterPanels.value[props2.column.id] = instance;
  46161. }
  46162. const tooltipVisible = ref(false);
  46163. const tooltip = ref(null);
  46164. const filters = computed(() => {
  46165. return props2.column && props2.column.filters;
  46166. });
  46167. const filterClassName = computed(() => {
  46168. if (props2.column && props2.column.filterClassName) {
  46169. return `${ns.b()} ${props2.column.filterClassName}`;
  46170. }
  46171. return ns.b();
  46172. });
  46173. const filterValue = computed({
  46174. get: () => {
  46175. var _a2;
  46176. return (((_a2 = props2.column) == null ? void 0 : _a2.filteredValue) || [])[0];
  46177. },
  46178. set: (value) => {
  46179. if (filteredValue.value) {
  46180. if (!isPropAbsent(value)) {
  46181. filteredValue.value.splice(0, 1, value);
  46182. } else {
  46183. filteredValue.value.splice(0, 1);
  46184. }
  46185. }
  46186. }
  46187. });
  46188. const filteredValue = computed({
  46189. get() {
  46190. if (props2.column) {
  46191. return props2.column.filteredValue || [];
  46192. }
  46193. return [];
  46194. },
  46195. set(value) {
  46196. var _a2;
  46197. if (props2.column) {
  46198. (_a2 = props2.upDataColumn) == null ? void 0 : _a2.call(props2, "filteredValue", value);
  46199. }
  46200. }
  46201. });
  46202. const multiple = computed(() => {
  46203. if (props2.column) {
  46204. return props2.column.filterMultiple;
  46205. }
  46206. return true;
  46207. });
  46208. const isActive = (filter2) => {
  46209. return filter2.value === filterValue.value;
  46210. };
  46211. const hidden = () => {
  46212. tooltipVisible.value = false;
  46213. };
  46214. const showFilterPanel = (e) => {
  46215. e.stopPropagation();
  46216. tooltipVisible.value = !tooltipVisible.value;
  46217. };
  46218. const hideFilterPanel = () => {
  46219. tooltipVisible.value = false;
  46220. };
  46221. const handleConfirm = () => {
  46222. confirmFilter(filteredValue.value);
  46223. hidden();
  46224. };
  46225. const handleReset = () => {
  46226. filteredValue.value = [];
  46227. confirmFilter(filteredValue.value);
  46228. hidden();
  46229. };
  46230. const handleSelect = (_filterValue) => {
  46231. filterValue.value = _filterValue;
  46232. if (!isPropAbsent(_filterValue)) {
  46233. confirmFilter(filteredValue.value);
  46234. } else {
  46235. confirmFilter([]);
  46236. }
  46237. hidden();
  46238. };
  46239. const confirmFilter = (filteredValue2) => {
  46240. var _a2, _b;
  46241. (_a2 = props2.store) == null ? void 0 : _a2.commit("filterChange", {
  46242. column: props2.column,
  46243. values: filteredValue2
  46244. });
  46245. (_b = props2.store) == null ? void 0 : _b.updateAllSelected();
  46246. };
  46247. watch(tooltipVisible, (value) => {
  46248. var _a2;
  46249. if (props2.column) {
  46250. (_a2 = props2.upDataColumn) == null ? void 0 : _a2.call(props2, "filterOpened", value);
  46251. }
  46252. }, {
  46253. immediate: true
  46254. });
  46255. const popperPaneRef = computed(() => {
  46256. var _a2, _b;
  46257. return (_b = (_a2 = tooltip.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
  46258. });
  46259. return {
  46260. tooltipVisible,
  46261. multiple,
  46262. filterClassName,
  46263. filteredValue,
  46264. filterValue,
  46265. filters,
  46266. handleConfirm,
  46267. handleReset,
  46268. handleSelect,
  46269. isPropAbsent,
  46270. isActive,
  46271. t,
  46272. ns,
  46273. showFilterPanel,
  46274. hideFilterPanel,
  46275. popperPaneRef,
  46276. tooltip
  46277. };
  46278. }
  46279. });
  46280. function _sfc_render18(_ctx, _cache, $props, $setup, $data, $options) {
  46281. const _component_el_checkbox = resolveComponent("el-checkbox");
  46282. const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
  46283. const _component_el_scrollbar = resolveComponent("el-scrollbar");
  46284. const _component_arrow_up = resolveComponent("arrow-up");
  46285. const _component_arrow_down = resolveComponent("arrow-down");
  46286. const _component_el_icon = resolveComponent("el-icon");
  46287. const _component_el_tooltip = resolveComponent("el-tooltip");
  46288. const _directive_click_outside = resolveDirective("click-outside");
  46289. return openBlock(), createBlock(_component_el_tooltip, {
  46290. ref: "tooltip",
  46291. visible: _ctx.tooltipVisible,
  46292. offset: 0,
  46293. placement: _ctx.placement,
  46294. "show-arrow": false,
  46295. "stop-popper-mouse-event": false,
  46296. teleported: "",
  46297. effect: "light",
  46298. pure: "",
  46299. "popper-class": _ctx.filterClassName,
  46300. persistent: "",
  46301. "append-to": _ctx.appendTo
  46302. }, {
  46303. content: withCtx(() => [
  46304. _ctx.multiple ? (openBlock(), createElementBlock("div", { key: 0 }, [
  46305. createBaseVNode("div", {
  46306. class: normalizeClass(_ctx.ns.e("content"))
  46307. }, [
  46308. createVNode(_component_el_scrollbar, {
  46309. "wrap-class": _ctx.ns.e("wrap")
  46310. }, {
  46311. default: withCtx(() => [
  46312. createVNode(_component_el_checkbox_group, {
  46313. modelValue: _ctx.filteredValue,
  46314. "onUpdate:modelValue": ($event) => _ctx.filteredValue = $event,
  46315. class: normalizeClass(_ctx.ns.e("checkbox-group"))
  46316. }, {
  46317. default: withCtx(() => [
  46318. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filters, (filter2) => {
  46319. return openBlock(), createBlock(_component_el_checkbox, {
  46320. key: filter2.value,
  46321. value: filter2.value
  46322. }, {
  46323. default: withCtx(() => [
  46324. createTextVNode(toDisplayString(filter2.text), 1)
  46325. ]),
  46326. _: 2
  46327. }, 1032, ["value"]);
  46328. }), 128))
  46329. ]),
  46330. _: 1
  46331. }, 8, ["modelValue", "onUpdate:modelValue", "class"])
  46332. ]),
  46333. _: 1
  46334. }, 8, ["wrap-class"])
  46335. ], 2),
  46336. createBaseVNode("div", {
  46337. class: normalizeClass(_ctx.ns.e("bottom"))
  46338. }, [
  46339. createBaseVNode("button", {
  46340. class: normalizeClass(_ctx.ns.is("disabled", _ctx.filteredValue.length === 0)),
  46341. disabled: _ctx.filteredValue.length === 0,
  46342. type: "button",
  46343. onClick: _ctx.handleConfirm
  46344. }, toDisplayString(_ctx.t("el.table.confirmFilter")), 11, ["disabled", "onClick"]),
  46345. createBaseVNode("button", {
  46346. type: "button",
  46347. onClick: _ctx.handleReset
  46348. }, toDisplayString(_ctx.t("el.table.resetFilter")), 9, ["onClick"])
  46349. ], 2)
  46350. ])) : (openBlock(), createElementBlock("ul", {
  46351. key: 1,
  46352. class: normalizeClass(_ctx.ns.e("list"))
  46353. }, [
  46354. createBaseVNode("li", {
  46355. class: normalizeClass([
  46356. _ctx.ns.e("list-item"),
  46357. _ctx.ns.is("active", _ctx.isPropAbsent(_ctx.filterValue))
  46358. ]),
  46359. onClick: ($event) => _ctx.handleSelect(null)
  46360. }, toDisplayString(_ctx.t("el.table.clearFilter")), 11, ["onClick"]),
  46361. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filters, (filter2) => {
  46362. return openBlock(), createElementBlock("li", {
  46363. key: filter2.value,
  46364. class: normalizeClass([_ctx.ns.e("list-item"), _ctx.ns.is("active", _ctx.isActive(filter2))]),
  46365. label: filter2.value,
  46366. onClick: ($event) => _ctx.handleSelect(filter2.value)
  46367. }, toDisplayString(filter2.text), 11, ["label", "onClick"]);
  46368. }), 128))
  46369. ], 2))
  46370. ]),
  46371. default: withCtx(() => [
  46372. withDirectives((openBlock(), createElementBlock("span", {
  46373. class: normalizeClass([
  46374. `${_ctx.ns.namespace.value}-table__column-filter-trigger`,
  46375. `${_ctx.ns.namespace.value}-none-outline`
  46376. ]),
  46377. onClick: _ctx.showFilterPanel
  46378. }, [
  46379. createVNode(_component_el_icon, null, {
  46380. default: withCtx(() => [
  46381. renderSlot(_ctx.$slots, "filter-icon", {}, () => {
  46382. var _a2;
  46383. return [
  46384. ((_a2 = _ctx.column) == null ? void 0 : _a2.filterOpened) ? (openBlock(), createBlock(_component_arrow_up, { key: 0 })) : (openBlock(), createBlock(_component_arrow_down, { key: 1 }))
  46385. ];
  46386. })
  46387. ]),
  46388. _: 3
  46389. })
  46390. ], 10, ["onClick"])), [
  46391. [_directive_click_outside, _ctx.hideFilterPanel, _ctx.popperPaneRef]
  46392. ])
  46393. ]),
  46394. _: 3
  46395. }, 8, ["visible", "placement", "popper-class", "append-to"]);
  46396. }
  46397. var FilterPanel = _export_sfc(_sfc_main125, [["render", _sfc_render18], ["__file", "filter-panel.vue"]]);
  46398. // node_modules/element-plus/es/components/table/src/layout-observer.mjs
  46399. function useLayoutObserver(root2) {
  46400. const instance = getCurrentInstance();
  46401. onBeforeMount(() => {
  46402. tableLayout.value.addObserver(instance);
  46403. });
  46404. onMounted(() => {
  46405. onColumnsChange(tableLayout.value);
  46406. onScrollableChange(tableLayout.value);
  46407. });
  46408. onUpdated(() => {
  46409. onColumnsChange(tableLayout.value);
  46410. onScrollableChange(tableLayout.value);
  46411. });
  46412. onUnmounted(() => {
  46413. tableLayout.value.removeObserver(instance);
  46414. });
  46415. const tableLayout = computed(() => {
  46416. const layout2 = root2.layout;
  46417. if (!layout2) {
  46418. throw new Error("Can not find table layout.");
  46419. }
  46420. return layout2;
  46421. });
  46422. const onColumnsChange = (layout2) => {
  46423. var _a2;
  46424. const cols = ((_a2 = root2.vnode.el) == null ? void 0 : _a2.querySelectorAll("colgroup > col")) || [];
  46425. if (!cols.length)
  46426. return;
  46427. const flattenColumns = layout2.getFlattenColumns();
  46428. const columnsMap = {};
  46429. flattenColumns.forEach((column2) => {
  46430. columnsMap[column2.id] = column2;
  46431. });
  46432. for (let i = 0, j = cols.length; i < j; i++) {
  46433. const col = cols[i];
  46434. const name = col.getAttribute("name");
  46435. const column2 = columnsMap[name];
  46436. if (column2) {
  46437. col.setAttribute("width", column2.realWidth || column2.width);
  46438. }
  46439. }
  46440. };
  46441. const onScrollableChange = (layout2) => {
  46442. var _a2, _b;
  46443. const cols = ((_a2 = root2.vnode.el) == null ? void 0 : _a2.querySelectorAll("colgroup > col[name=gutter]")) || [];
  46444. for (let i = 0, j = cols.length; i < j; i++) {
  46445. const col = cols[i];
  46446. col.setAttribute("width", layout2.scrollY.value ? layout2.gutterWidth : "0");
  46447. }
  46448. const ths = ((_b = root2.vnode.el) == null ? void 0 : _b.querySelectorAll("th.gutter")) || [];
  46449. for (let i = 0, j = ths.length; i < j; i++) {
  46450. const th = ths[i];
  46451. th.style.width = layout2.scrollY.value ? `${layout2.gutterWidth}px` : "0";
  46452. th.style.display = layout2.scrollY.value ? "" : "none";
  46453. }
  46454. };
  46455. return {
  46456. tableLayout: tableLayout.value,
  46457. onColumnsChange,
  46458. onScrollableChange
  46459. };
  46460. }
  46461. // node_modules/element-plus/es/components/table/src/tokens.mjs
  46462. var TABLE_INJECTION_KEY = Symbol("ElTable");
  46463. // node_modules/element-plus/es/components/table/src/table-header/event-helper.mjs
  46464. function useEvent(props2, emit) {
  46465. const instance = getCurrentInstance();
  46466. const parent2 = inject(TABLE_INJECTION_KEY);
  46467. const handleFilterClick = (event) => {
  46468. event.stopPropagation();
  46469. return;
  46470. };
  46471. const handleHeaderClick = (event, column2) => {
  46472. if (!column2.filters && column2.sortable) {
  46473. handleSortClick(event, column2, false);
  46474. } else if (column2.filterable && !column2.sortable) {
  46475. handleFilterClick(event);
  46476. }
  46477. parent2 == null ? void 0 : parent2.emit("header-click", column2, event);
  46478. };
  46479. const handleHeaderContextMenu = (event, column2) => {
  46480. parent2 == null ? void 0 : parent2.emit("header-contextmenu", column2, event);
  46481. };
  46482. const draggingColumn = ref(null);
  46483. const dragging = ref(false);
  46484. const dragState = ref();
  46485. const handleMouseDown = (event, column2) => {
  46486. var _a2, _b;
  46487. if (!isClient)
  46488. return;
  46489. if (column2.children && column2.children.length > 0)
  46490. return;
  46491. if (draggingColumn.value && props2.border) {
  46492. dragging.value = true;
  46493. const table = parent2;
  46494. emit("set-drag-visible", true);
  46495. const tableEl = table == null ? void 0 : table.vnode.el;
  46496. const tableLeft = tableEl == null ? void 0 : tableEl.getBoundingClientRect().left;
  46497. const columnEl = (_b = (_a2 = instance == null ? void 0 : instance.vnode) == null ? void 0 : _a2.el) == null ? void 0 : _b.querySelector(`th.${column2.id}`);
  46498. const columnRect = columnEl.getBoundingClientRect();
  46499. const minLeft = columnRect.left - tableLeft + 30;
  46500. addClass(columnEl, "noclick");
  46501. dragState.value = {
  46502. startMouseLeft: event.clientX,
  46503. startLeft: columnRect.right - tableLeft,
  46504. startColumnLeft: columnRect.left - tableLeft,
  46505. tableLeft
  46506. };
  46507. const resizeProxy = table == null ? void 0 : table.refs.resizeProxy;
  46508. resizeProxy.style.left = `${dragState.value.startLeft}px`;
  46509. document.onselectstart = function() {
  46510. return false;
  46511. };
  46512. document.ondragstart = function() {
  46513. return false;
  46514. };
  46515. const handleMouseMove2 = (event2) => {
  46516. const deltaLeft = event2.clientX - dragState.value.startMouseLeft;
  46517. const proxyLeft = dragState.value.startLeft + deltaLeft;
  46518. resizeProxy.style.left = `${Math.max(minLeft, proxyLeft)}px`;
  46519. };
  46520. const handleMouseUp = () => {
  46521. if (dragging.value) {
  46522. const { startColumnLeft, startLeft } = dragState.value;
  46523. const finalLeft = Number.parseInt(resizeProxy.style.left, 10);
  46524. const columnWidth = finalLeft - startColumnLeft;
  46525. column2.width = column2.realWidth = columnWidth;
  46526. table == null ? void 0 : table.emit("header-dragend", column2.width, startLeft - startColumnLeft, column2, event);
  46527. requestAnimationFrame(() => {
  46528. props2.store.scheduleLayout(false, true);
  46529. });
  46530. document.body.style.cursor = "";
  46531. dragging.value = false;
  46532. draggingColumn.value = null;
  46533. dragState.value = void 0;
  46534. emit("set-drag-visible", false);
  46535. }
  46536. document.removeEventListener("mousemove", handleMouseMove2);
  46537. document.removeEventListener("mouseup", handleMouseUp);
  46538. document.onselectstart = null;
  46539. document.ondragstart = null;
  46540. setTimeout(() => {
  46541. removeClass(columnEl, "noclick");
  46542. }, 0);
  46543. };
  46544. document.addEventListener("mousemove", handleMouseMove2);
  46545. document.addEventListener("mouseup", handleMouseUp);
  46546. }
  46547. };
  46548. const handleMouseMove = (event, column2) => {
  46549. var _a2;
  46550. if (column2.children && column2.children.length > 0)
  46551. return;
  46552. const el = event.target;
  46553. if (!isElement2(el)) {
  46554. return;
  46555. }
  46556. const target2 = el == null ? void 0 : el.closest("th");
  46557. if (!column2 || !column2.resizable || !target2)
  46558. return;
  46559. if (!dragging.value && props2.border) {
  46560. const rect = target2.getBoundingClientRect();
  46561. const bodyStyle = document.body.style;
  46562. const isLastTh = ((_a2 = target2.parentNode) == null ? void 0 : _a2.lastElementChild) === target2;
  46563. const allowDarg = props2.allowDragLastColumn || !isLastTh;
  46564. if (rect.width > 12 && rect.right - event.clientX < 8 && allowDarg) {
  46565. bodyStyle.cursor = "col-resize";
  46566. if (hasClass(target2, "is-sortable")) {
  46567. target2.style.cursor = "col-resize";
  46568. }
  46569. draggingColumn.value = column2;
  46570. } else if (!dragging.value) {
  46571. bodyStyle.cursor = "";
  46572. if (hasClass(target2, "is-sortable")) {
  46573. target2.style.cursor = "pointer";
  46574. }
  46575. draggingColumn.value = null;
  46576. }
  46577. }
  46578. };
  46579. const handleMouseOut = () => {
  46580. if (!isClient)
  46581. return;
  46582. document.body.style.cursor = "";
  46583. };
  46584. const toggleOrder = ({ order, sortOrders }) => {
  46585. if (order === "")
  46586. return sortOrders[0];
  46587. const index = sortOrders.indexOf(order || null);
  46588. return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
  46589. };
  46590. const handleSortClick = (event, column2, givenOrder) => {
  46591. var _a2;
  46592. event.stopPropagation();
  46593. const order = column2.order === givenOrder ? null : givenOrder || toggleOrder(column2);
  46594. const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("th");
  46595. if (target2) {
  46596. if (hasClass(target2, "noclick")) {
  46597. removeClass(target2, "noclick");
  46598. return;
  46599. }
  46600. }
  46601. if (!column2.sortable)
  46602. return;
  46603. const clickTarget = event.currentTarget;
  46604. if (["ascending", "descending"].some((str) => hasClass(clickTarget, str) && !column2.sortOrders.includes(str))) {
  46605. return;
  46606. }
  46607. const states = props2.store.states;
  46608. let sortProp = states.sortProp.value;
  46609. let sortOrder;
  46610. const sortingColumn = states.sortingColumn.value;
  46611. if (sortingColumn !== column2 || sortingColumn === column2 && isNull_default(sortingColumn.order)) {
  46612. if (sortingColumn) {
  46613. sortingColumn.order = null;
  46614. }
  46615. states.sortingColumn.value = column2;
  46616. sortProp = column2.property;
  46617. }
  46618. if (!order) {
  46619. sortOrder = column2.order = null;
  46620. } else {
  46621. sortOrder = column2.order = order;
  46622. }
  46623. states.sortProp.value = sortProp;
  46624. states.sortOrder.value = sortOrder;
  46625. parent2 == null ? void 0 : parent2.store.commit("changeSortCondition");
  46626. };
  46627. return {
  46628. handleHeaderClick,
  46629. handleHeaderContextMenu,
  46630. handleMouseDown,
  46631. handleMouseMove,
  46632. handleMouseOut,
  46633. handleSortClick,
  46634. handleFilterClick
  46635. };
  46636. }
  46637. // node_modules/element-plus/es/components/table/src/table-header/style.helper.mjs
  46638. function useStyle(props2) {
  46639. const parent2 = inject(TABLE_INJECTION_KEY);
  46640. const ns = useNamespace("table");
  46641. const getHeaderRowStyle = (rowIndex) => {
  46642. const headerRowStyle = parent2 == null ? void 0 : parent2.props.headerRowStyle;
  46643. if (isFunction(headerRowStyle)) {
  46644. return headerRowStyle.call(null, { rowIndex });
  46645. }
  46646. return headerRowStyle;
  46647. };
  46648. const getHeaderRowClass = (rowIndex) => {
  46649. const classes = [];
  46650. const headerRowClassName = parent2 == null ? void 0 : parent2.props.headerRowClassName;
  46651. if (isString(headerRowClassName)) {
  46652. classes.push(headerRowClassName);
  46653. } else if (isFunction(headerRowClassName)) {
  46654. classes.push(headerRowClassName.call(null, { rowIndex }));
  46655. }
  46656. return classes.join(" ");
  46657. };
  46658. const getHeaderCellStyle = (rowIndex, columnIndex, row, column2) => {
  46659. var _a2;
  46660. let headerCellStyles = (_a2 = parent2 == null ? void 0 : parent2.props.headerCellStyle) != null ? _a2 : {};
  46661. if (isFunction(headerCellStyles)) {
  46662. headerCellStyles = headerCellStyles.call(null, {
  46663. rowIndex,
  46664. columnIndex,
  46665. row,
  46666. column: column2
  46667. });
  46668. }
  46669. const fixedStyle = getFixedColumnOffset(columnIndex, column2.fixed, props2.store, row);
  46670. ensurePosition(fixedStyle, "left");
  46671. ensurePosition(fixedStyle, "right");
  46672. return Object.assign({}, headerCellStyles, fixedStyle);
  46673. };
  46674. const getHeaderCellClass = (rowIndex, columnIndex, row, column2) => {
  46675. const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column2.fixed, props2.store, row);
  46676. const classes = [
  46677. column2.id,
  46678. column2.order,
  46679. column2.headerAlign,
  46680. column2.className,
  46681. column2.labelClassName,
  46682. ...fixedClasses
  46683. ];
  46684. if (!column2.children) {
  46685. classes.push("is-leaf");
  46686. }
  46687. if (column2.sortable) {
  46688. classes.push("is-sortable");
  46689. }
  46690. const headerCellClassName = parent2 == null ? void 0 : parent2.props.headerCellClassName;
  46691. if (isString(headerCellClassName)) {
  46692. classes.push(headerCellClassName);
  46693. } else if (isFunction(headerCellClassName)) {
  46694. classes.push(headerCellClassName.call(null, {
  46695. rowIndex,
  46696. columnIndex,
  46697. row,
  46698. column: column2
  46699. }));
  46700. }
  46701. classes.push(ns.e("cell"));
  46702. return classes.filter((className) => Boolean(className)).join(" ");
  46703. };
  46704. return {
  46705. getHeaderRowStyle,
  46706. getHeaderRowClass,
  46707. getHeaderCellStyle,
  46708. getHeaderCellClass
  46709. };
  46710. }
  46711. // node_modules/element-plus/es/components/table/src/table-header/utils-helper.mjs
  46712. var getAllColumns = (columns2) => {
  46713. const result2 = [];
  46714. columns2.forEach((column2) => {
  46715. if (column2.children) {
  46716. result2.push(column2);
  46717. result2.push.apply(result2, getAllColumns(column2.children));
  46718. } else {
  46719. result2.push(column2);
  46720. }
  46721. });
  46722. return result2;
  46723. };
  46724. var convertToRows = (originColumns) => {
  46725. let maxLevel = 1;
  46726. const traverse = (column2, parent2) => {
  46727. if (parent2) {
  46728. column2.level = parent2.level + 1;
  46729. if (maxLevel < column2.level) {
  46730. maxLevel = column2.level;
  46731. }
  46732. }
  46733. if (column2.children) {
  46734. let colSpan = 0;
  46735. column2.children.forEach((subColumn) => {
  46736. traverse(subColumn, column2);
  46737. colSpan += subColumn.colSpan;
  46738. });
  46739. column2.colSpan = colSpan;
  46740. } else {
  46741. column2.colSpan = 1;
  46742. }
  46743. };
  46744. originColumns.forEach((column2) => {
  46745. column2.level = 1;
  46746. traverse(column2, void 0);
  46747. });
  46748. const rows = [];
  46749. for (let i = 0; i < maxLevel; i++) {
  46750. rows.push([]);
  46751. }
  46752. const allColumns = getAllColumns(originColumns);
  46753. allColumns.forEach((column2) => {
  46754. if (!column2.children) {
  46755. column2.rowSpan = maxLevel - column2.level + 1;
  46756. } else {
  46757. column2.rowSpan = 1;
  46758. column2.children.forEach((col) => col.isSubColumn = true);
  46759. }
  46760. rows[column2.level - 1].push(column2);
  46761. });
  46762. return rows;
  46763. };
  46764. function useUtils(props2) {
  46765. const parent2 = inject(TABLE_INJECTION_KEY);
  46766. const columnRows = computed(() => {
  46767. return convertToRows(props2.store.states.originColumns.value);
  46768. });
  46769. const isGroup = computed(() => {
  46770. const result2 = columnRows.value.length > 1;
  46771. if (result2 && parent2) {
  46772. parent2.state.isGroup.value = true;
  46773. }
  46774. return result2;
  46775. });
  46776. const toggleAllSelection = (event) => {
  46777. event.stopPropagation();
  46778. parent2 == null ? void 0 : parent2.store.commit("toggleAllSelection");
  46779. };
  46780. return {
  46781. isGroup,
  46782. toggleAllSelection,
  46783. columnRows
  46784. };
  46785. }
  46786. // node_modules/element-plus/es/components/table/src/table-header/index.mjs
  46787. var TableHeader = defineComponent({
  46788. name: "ElTableHeader",
  46789. components: {
  46790. ElCheckbox
  46791. },
  46792. props: {
  46793. fixed: {
  46794. type: String,
  46795. default: ""
  46796. },
  46797. store: {
  46798. required: true,
  46799. type: Object
  46800. },
  46801. border: Boolean,
  46802. defaultSort: {
  46803. type: Object,
  46804. default: () => {
  46805. return {
  46806. prop: "",
  46807. order: ""
  46808. };
  46809. }
  46810. },
  46811. appendFilterPanelTo: {
  46812. type: String
  46813. },
  46814. allowDragLastColumn: {
  46815. type: Boolean
  46816. }
  46817. },
  46818. setup(props2, { emit }) {
  46819. const instance = getCurrentInstance();
  46820. const parent2 = inject(TABLE_INJECTION_KEY);
  46821. const ns = useNamespace("table");
  46822. const filterPanels = ref({});
  46823. const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent2);
  46824. const isTableLayoutAuto = (parent2 == null ? void 0 : parent2.props.tableLayout) === "auto";
  46825. const saveIndexSelection = reactive(/* @__PURE__ */ new Map());
  46826. const theadRef = ref();
  46827. let delayId;
  46828. const updateFixedColumnStyle = () => {
  46829. delayId = setTimeout(() => {
  46830. if (saveIndexSelection.size > 0) {
  46831. saveIndexSelection.forEach((column2, key) => {
  46832. const el = theadRef.value.querySelector(`.${key.replace(/\s/g, ".")}`);
  46833. if (el) {
  46834. const width = el.getBoundingClientRect().width;
  46835. column2.width = width || column2.width;
  46836. }
  46837. });
  46838. saveIndexSelection.clear();
  46839. }
  46840. });
  46841. };
  46842. watch(saveIndexSelection, updateFixedColumnStyle);
  46843. onBeforeUnmount(() => {
  46844. if (delayId) {
  46845. clearTimeout(delayId);
  46846. delayId = void 0;
  46847. }
  46848. });
  46849. onMounted(async () => {
  46850. await nextTick();
  46851. await nextTick();
  46852. const { prop, order } = props2.defaultSort;
  46853. parent2 == null ? void 0 : parent2.store.commit("sort", { prop, order, init: true });
  46854. updateFixedColumnStyle();
  46855. });
  46856. const {
  46857. handleHeaderClick,
  46858. handleHeaderContextMenu,
  46859. handleMouseDown,
  46860. handleMouseMove,
  46861. handleMouseOut,
  46862. handleSortClick,
  46863. handleFilterClick
  46864. } = useEvent(props2, emit);
  46865. const {
  46866. getHeaderRowStyle,
  46867. getHeaderRowClass,
  46868. getHeaderCellStyle,
  46869. getHeaderCellClass
  46870. } = useStyle(props2);
  46871. const { isGroup, toggleAllSelection, columnRows } = useUtils(props2);
  46872. instance.state = {
  46873. onColumnsChange,
  46874. onScrollableChange
  46875. };
  46876. instance.filterPanels = filterPanels;
  46877. return {
  46878. ns,
  46879. filterPanels,
  46880. onColumnsChange,
  46881. onScrollableChange,
  46882. columnRows,
  46883. getHeaderRowClass,
  46884. getHeaderRowStyle,
  46885. getHeaderCellClass,
  46886. getHeaderCellStyle,
  46887. handleHeaderClick,
  46888. handleHeaderContextMenu,
  46889. handleMouseDown,
  46890. handleMouseMove,
  46891. handleMouseOut,
  46892. handleSortClick,
  46893. handleFilterClick,
  46894. isGroup,
  46895. toggleAllSelection,
  46896. saveIndexSelection,
  46897. isTableLayoutAuto,
  46898. theadRef,
  46899. updateFixedColumnStyle
  46900. };
  46901. },
  46902. render() {
  46903. const {
  46904. ns,
  46905. isGroup,
  46906. columnRows,
  46907. getHeaderCellStyle,
  46908. getHeaderCellClass,
  46909. getHeaderRowClass,
  46910. getHeaderRowStyle,
  46911. handleHeaderClick,
  46912. handleHeaderContextMenu,
  46913. handleMouseDown,
  46914. handleMouseMove,
  46915. handleSortClick,
  46916. handleMouseOut,
  46917. store,
  46918. $parent,
  46919. saveIndexSelection,
  46920. isTableLayoutAuto
  46921. } = this;
  46922. let rowSpan = 1;
  46923. return h("thead", {
  46924. ref: "theadRef",
  46925. class: ns.is("group", isGroup)
  46926. }, columnRows.map((subColumns, rowIndex) => h("tr", {
  46927. class: getHeaderRowClass(rowIndex),
  46928. key: rowIndex,
  46929. style: getHeaderRowStyle(rowIndex)
  46930. }, subColumns.map((column2, cellIndex) => {
  46931. if (column2.rowSpan > rowSpan) {
  46932. rowSpan = column2.rowSpan;
  46933. }
  46934. const _class = getHeaderCellClass(rowIndex, cellIndex, subColumns, column2);
  46935. if (isTableLayoutAuto && column2.fixed) {
  46936. saveIndexSelection.set(_class, column2);
  46937. }
  46938. return h("th", {
  46939. class: _class,
  46940. colspan: column2.colSpan,
  46941. key: `${column2.id}-thead`,
  46942. rowspan: column2.rowSpan,
  46943. style: getHeaderCellStyle(rowIndex, cellIndex, subColumns, column2),
  46944. onClick: ($event) => {
  46945. var _a2;
  46946. if ((_a2 = $event.currentTarget) == null ? void 0 : _a2.classList.contains("noclick")) {
  46947. return;
  46948. }
  46949. handleHeaderClick($event, column2);
  46950. },
  46951. onContextmenu: ($event) => handleHeaderContextMenu($event, column2),
  46952. onMousedown: ($event) => handleMouseDown($event, column2),
  46953. onMousemove: ($event) => handleMouseMove($event, column2),
  46954. onMouseout: handleMouseOut
  46955. }, [
  46956. h("div", {
  46957. class: [
  46958. "cell",
  46959. column2.filteredValue && column2.filteredValue.length > 0 ? "highlight" : ""
  46960. ]
  46961. }, [
  46962. column2.renderHeader ? column2.renderHeader({
  46963. column: column2,
  46964. $index: cellIndex,
  46965. store,
  46966. _self: $parent
  46967. }) : column2.label,
  46968. column2.sortable && h("span", {
  46969. onClick: ($event) => handleSortClick($event, column2),
  46970. class: "caret-wrapper"
  46971. }, [
  46972. h("i", {
  46973. onClick: ($event) => handleSortClick($event, column2, "ascending"),
  46974. class: "sort-caret ascending"
  46975. }),
  46976. h("i", {
  46977. onClick: ($event) => handleSortClick($event, column2, "descending"),
  46978. class: "sort-caret descending"
  46979. })
  46980. ]),
  46981. column2.filterable && h(FilterPanel, {
  46982. store,
  46983. placement: column2.filterPlacement || "bottom-start",
  46984. appendTo: $parent == null ? void 0 : $parent.appendFilterPanelTo,
  46985. column: column2,
  46986. upDataColumn: (key, value) => {
  46987. column2[key] = value;
  46988. }
  46989. }, {
  46990. "filter-icon": () => column2.renderFilterIcon ? column2.renderFilterIcon({
  46991. filterOpened: column2.filterOpened
  46992. }) : null
  46993. })
  46994. ])
  46995. ]);
  46996. }))));
  46997. }
  46998. });
  46999. // node_modules/element-plus/es/components/table/src/table-body/events-helper.mjs
  47000. function isGreaterThan(a2, b2, epsilon = 0.03) {
  47001. return a2 - b2 > epsilon;
  47002. }
  47003. function useEvents(props2) {
  47004. const parent2 = inject(TABLE_INJECTION_KEY);
  47005. const tooltipContent = ref("");
  47006. const tooltipTrigger = ref(h("div"));
  47007. const handleEvent = (event, row, name) => {
  47008. var _a2, _b, _c;
  47009. const table = parent2;
  47010. const cell = getCell(event);
  47011. let column2 = null;
  47012. const namespace = (_a2 = table == null ? void 0 : table.vnode.el) == null ? void 0 : _a2.dataset.prefix;
  47013. if (cell) {
  47014. column2 = getColumnByCell({
  47015. columns: (_c = (_b = props2.store) == null ? void 0 : _b.states.columns.value) != null ? _c : []
  47016. }, cell, namespace);
  47017. if (column2) {
  47018. table == null ? void 0 : table.emit(`cell-${name}`, row, column2, cell, event);
  47019. }
  47020. }
  47021. table == null ? void 0 : table.emit(`row-${name}`, row, column2, event);
  47022. };
  47023. const handleDoubleClick = (event, row) => {
  47024. handleEvent(event, row, "dblclick");
  47025. };
  47026. const handleClick = (event, row) => {
  47027. var _a2;
  47028. (_a2 = props2.store) == null ? void 0 : _a2.commit("setCurrentRow", row);
  47029. handleEvent(event, row, "click");
  47030. };
  47031. const handleContextMenu = (event, row) => {
  47032. handleEvent(event, row, "contextmenu");
  47033. };
  47034. const handleMouseEnter = debounce_default((index) => {
  47035. var _a2;
  47036. (_a2 = props2.store) == null ? void 0 : _a2.commit("setHoverRow", index);
  47037. }, 30);
  47038. const handleMouseLeave = debounce_default(() => {
  47039. var _a2;
  47040. (_a2 = props2.store) == null ? void 0 : _a2.commit("setHoverRow", null);
  47041. }, 30);
  47042. const getPadding = (el) => {
  47043. const style = window.getComputedStyle(el, null);
  47044. const paddingLeft = Number.parseInt(style.paddingLeft, 10) || 0;
  47045. const paddingRight = Number.parseInt(style.paddingRight, 10) || 0;
  47046. const paddingTop = Number.parseInt(style.paddingTop, 10) || 0;
  47047. const paddingBottom = Number.parseInt(style.paddingBottom, 10) || 0;
  47048. return {
  47049. left: paddingLeft,
  47050. right: paddingRight,
  47051. top: paddingTop,
  47052. bottom: paddingBottom
  47053. };
  47054. };
  47055. const toggleRowClassByCell = (rowSpan, event, toggle) => {
  47056. var _a2;
  47057. let node = (_a2 = event == null ? void 0 : event.target) == null ? void 0 : _a2.parentNode;
  47058. while (rowSpan > 1) {
  47059. node = node == null ? void 0 : node.nextSibling;
  47060. if (!node || node.nodeName !== "TR")
  47061. break;
  47062. toggle(node, "hover-row hover-fixed-row");
  47063. rowSpan--;
  47064. }
  47065. };
  47066. const handleCellMouseEnter = (event, row, tooltipOptions) => {
  47067. var _a2, _b, _c, _d, _e, _f, _g, _h;
  47068. if (!parent2)
  47069. return;
  47070. const table = parent2;
  47071. const cell = getCell(event);
  47072. const namespace = (_a2 = table == null ? void 0 : table.vnode.el) == null ? void 0 : _a2.dataset.prefix;
  47073. let column2 = null;
  47074. if (cell) {
  47075. column2 = getColumnByCell({
  47076. columns: (_c = (_b = props2.store) == null ? void 0 : _b.states.columns.value) != null ? _c : []
  47077. }, cell, namespace);
  47078. if (!column2) {
  47079. return;
  47080. }
  47081. if (cell.rowSpan > 1) {
  47082. toggleRowClassByCell(cell.rowSpan, event, addClass);
  47083. }
  47084. const hoverState = table.hoverState = {
  47085. cell,
  47086. column: column2,
  47087. row
  47088. };
  47089. table == null ? void 0 : table.emit("cell-mouse-enter", hoverState.row, hoverState.column, hoverState.cell, event);
  47090. }
  47091. if (!tooltipOptions) {
  47092. if (((_d = removePopper) == null ? void 0 : _d.trigger) === cell) {
  47093. (_e = removePopper) == null ? void 0 : _e();
  47094. }
  47095. return;
  47096. }
  47097. const cellChild = event.target.querySelector(".cell");
  47098. if (!(hasClass(cellChild, `${namespace}-tooltip`) && cellChild.childNodes.length)) {
  47099. return;
  47100. }
  47101. const range4 = document.createRange();
  47102. range4.setStart(cellChild, 0);
  47103. range4.setEnd(cellChild, cellChild.childNodes.length);
  47104. const { width: rangeWidth, height: rangeHeight } = range4.getBoundingClientRect();
  47105. const { width: cellChildWidth, height: cellChildHeight } = cellChild.getBoundingClientRect();
  47106. const { top, left, right, bottom } = getPadding(cellChild);
  47107. const horizontalPadding = left + right;
  47108. const verticalPadding = top + bottom;
  47109. if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight) || isGreaterThan(cellChild.scrollWidth, cellChildWidth)) {
  47110. createTablePopper(tooltipOptions, (_f = (cell == null ? void 0 : cell.innerText) || (cell == null ? void 0 : cell.textContent)) != null ? _f : "", row, column2, cell, table);
  47111. } else if (((_g = removePopper) == null ? void 0 : _g.trigger) === cell) {
  47112. (_h = removePopper) == null ? void 0 : _h();
  47113. }
  47114. };
  47115. const handleCellMouseLeave = (event) => {
  47116. const cell = getCell(event);
  47117. if (!cell)
  47118. return;
  47119. if (cell.rowSpan > 1) {
  47120. toggleRowClassByCell(cell.rowSpan, event, removeClass);
  47121. }
  47122. const oldHoverState = parent2 == null ? void 0 : parent2.hoverState;
  47123. parent2 == null ? void 0 : parent2.emit("cell-mouse-leave", oldHoverState == null ? void 0 : oldHoverState.row, oldHoverState == null ? void 0 : oldHoverState.column, oldHoverState == null ? void 0 : oldHoverState.cell, event);
  47124. };
  47125. return {
  47126. handleDoubleClick,
  47127. handleClick,
  47128. handleContextMenu,
  47129. handleMouseEnter,
  47130. handleMouseLeave,
  47131. handleCellMouseEnter,
  47132. handleCellMouseLeave,
  47133. tooltipContent,
  47134. tooltipTrigger
  47135. };
  47136. }
  47137. // node_modules/element-plus/es/components/table/src/table-body/styles-helper.mjs
  47138. function useStyles(props2) {
  47139. const parent2 = inject(TABLE_INJECTION_KEY);
  47140. const ns = useNamespace("table");
  47141. const getRowStyle = (row, rowIndex) => {
  47142. const rowStyle = parent2 == null ? void 0 : parent2.props.rowStyle;
  47143. if (isFunction(rowStyle)) {
  47144. return rowStyle.call(null, {
  47145. row,
  47146. rowIndex
  47147. });
  47148. }
  47149. return rowStyle || null;
  47150. };
  47151. const getRowClass = (row, rowIndex, displayIndex) => {
  47152. var _a2;
  47153. const classes = [ns.e("row")];
  47154. if ((parent2 == null ? void 0 : parent2.props.highlightCurrentRow) && row === ((_a2 = props2.store) == null ? void 0 : _a2.states.currentRow.value)) {
  47155. classes.push("current-row");
  47156. }
  47157. if (props2.stripe && displayIndex % 2 === 1) {
  47158. classes.push(ns.em("row", "striped"));
  47159. }
  47160. const rowClassName = parent2 == null ? void 0 : parent2.props.rowClassName;
  47161. if (isString(rowClassName)) {
  47162. classes.push(rowClassName);
  47163. } else if (isFunction(rowClassName)) {
  47164. classes.push(rowClassName.call(null, {
  47165. row,
  47166. rowIndex
  47167. }));
  47168. }
  47169. return classes;
  47170. };
  47171. const getCellStyle = (rowIndex, columnIndex, row, column2) => {
  47172. const cellStyle = parent2 == null ? void 0 : parent2.props.cellStyle;
  47173. let cellStyles = cellStyle != null ? cellStyle : {};
  47174. if (isFunction(cellStyle)) {
  47175. cellStyles = cellStyle.call(null, {
  47176. rowIndex,
  47177. columnIndex,
  47178. row,
  47179. column: column2
  47180. });
  47181. }
  47182. const fixedStyle = getFixedColumnOffset(columnIndex, props2 == null ? void 0 : props2.fixed, props2.store);
  47183. ensurePosition(fixedStyle, "left");
  47184. ensurePosition(fixedStyle, "right");
  47185. return Object.assign({}, cellStyles, fixedStyle);
  47186. };
  47187. const getCellClass = (rowIndex, columnIndex, row, column2, offset3) => {
  47188. const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props2 == null ? void 0 : props2.fixed, props2.store, void 0, offset3);
  47189. const classes = [column2.id, column2.align, column2.className, ...fixedClasses];
  47190. const cellClassName = parent2 == null ? void 0 : parent2.props.cellClassName;
  47191. if (isString(cellClassName)) {
  47192. classes.push(cellClassName);
  47193. } else if (isFunction(cellClassName)) {
  47194. classes.push(cellClassName.call(null, {
  47195. rowIndex,
  47196. columnIndex,
  47197. row,
  47198. column: column2
  47199. }));
  47200. }
  47201. classes.push(ns.e("cell"));
  47202. return classes.filter((className) => Boolean(className)).join(" ");
  47203. };
  47204. const getSpan = (row, column2, rowIndex, columnIndex) => {
  47205. let rowspan = 1;
  47206. let colspan = 1;
  47207. const fn2 = parent2 == null ? void 0 : parent2.props.spanMethod;
  47208. if (isFunction(fn2)) {
  47209. const result2 = fn2({
  47210. row,
  47211. column: column2,
  47212. rowIndex,
  47213. columnIndex
  47214. });
  47215. if (isArray(result2)) {
  47216. rowspan = result2[0];
  47217. colspan = result2[1];
  47218. } else if (isObject(result2)) {
  47219. rowspan = result2.rowspan;
  47220. colspan = result2.colspan;
  47221. }
  47222. }
  47223. return { rowspan, colspan };
  47224. };
  47225. const getColspanRealWidth = (columns2, colspan, index) => {
  47226. if (colspan < 1) {
  47227. return columns2[index].realWidth;
  47228. }
  47229. const widthArr = columns2.map(({ realWidth, width }) => realWidth || width).slice(index, index + colspan);
  47230. return Number(widthArr.reduce((acc, width) => Number(acc) + Number(width), -1));
  47231. };
  47232. return {
  47233. getRowStyle,
  47234. getRowClass,
  47235. getCellStyle,
  47236. getCellClass,
  47237. getSpan,
  47238. getColspanRealWidth
  47239. };
  47240. }
  47241. // node_modules/element-plus/es/components/table/src/table-body/td-wrapper.mjs
  47242. var __default__97 = defineComponent({
  47243. name: "TableTdWrapper"
  47244. });
  47245. var _sfc_main126 = defineComponent({
  47246. ...__default__97,
  47247. props: {
  47248. colspan: {
  47249. type: Number,
  47250. default: 1
  47251. },
  47252. rowspan: {
  47253. type: Number,
  47254. default: 1
  47255. }
  47256. },
  47257. setup(__props) {
  47258. return (_ctx, _cache) => {
  47259. return openBlock(), createElementBlock("td", {
  47260. colspan: __props.colspan,
  47261. rowspan: __props.rowspan
  47262. }, [
  47263. renderSlot(_ctx.$slots, "default")
  47264. ], 8, ["colspan", "rowspan"]);
  47265. };
  47266. }
  47267. });
  47268. var TdWrapper = _export_sfc(_sfc_main126, [["__file", "td-wrapper.vue"]]);
  47269. // node_modules/element-plus/es/components/table/src/table-body/render-helper.mjs
  47270. function useRender(props2) {
  47271. const parent2 = inject(TABLE_INJECTION_KEY);
  47272. const ns = useNamespace("table");
  47273. const {
  47274. handleDoubleClick,
  47275. handleClick,
  47276. handleContextMenu,
  47277. handleMouseEnter,
  47278. handleMouseLeave,
  47279. handleCellMouseEnter,
  47280. handleCellMouseLeave,
  47281. tooltipContent,
  47282. tooltipTrigger
  47283. } = useEvents(props2);
  47284. const {
  47285. getRowStyle,
  47286. getRowClass,
  47287. getCellStyle,
  47288. getCellClass,
  47289. getSpan,
  47290. getColspanRealWidth
  47291. } = useStyles(props2);
  47292. let displayIndex = -1;
  47293. const firstDefaultColumnIndex = computed(() => {
  47294. var _a2;
  47295. return (_a2 = props2.store) == null ? void 0 : _a2.states.columns.value.findIndex(({ type: type4 }) => type4 === "default");
  47296. });
  47297. const getKeyOfRow = (row, index) => {
  47298. var _a2;
  47299. const rowKey2 = (_a2 = parent2 == null ? void 0 : parent2.props) == null ? void 0 : _a2.rowKey;
  47300. if (rowKey2) {
  47301. return getRowIdentity(row, rowKey2);
  47302. }
  47303. return index;
  47304. };
  47305. const rowRender = (row, $index, treeRowData, expanded = false) => {
  47306. const { tooltipEffect, tooltipOptions, store } = props2;
  47307. const { indent, columns: columns2 } = store.states;
  47308. const rowClasses = [];
  47309. let display = true;
  47310. if (treeRowData) {
  47311. rowClasses.push(ns.em("row", `level-${treeRowData.level}`));
  47312. display = !!treeRowData.display;
  47313. }
  47314. if ($index === 0) {
  47315. displayIndex = -1;
  47316. }
  47317. if (props2.stripe && display) {
  47318. displayIndex++;
  47319. }
  47320. rowClasses.push(...getRowClass(row, $index, displayIndex));
  47321. const displayStyle = display ? null : { display: "none" };
  47322. return h("tr", {
  47323. style: [displayStyle, getRowStyle(row, $index)],
  47324. class: rowClasses,
  47325. key: getKeyOfRow(row, $index),
  47326. onDblclick: ($event) => handleDoubleClick($event, row),
  47327. onClick: ($event) => handleClick($event, row),
  47328. onContextmenu: ($event) => handleContextMenu($event, row),
  47329. onMouseenter: () => handleMouseEnter($index),
  47330. onMouseleave: handleMouseLeave
  47331. }, columns2.value.map((column2, cellIndex) => {
  47332. const { rowspan, colspan } = getSpan(row, column2, $index, cellIndex);
  47333. if (!rowspan || !colspan) {
  47334. return null;
  47335. }
  47336. const columnData = Object.assign({}, column2);
  47337. columnData.realWidth = getColspanRealWidth(columns2.value, colspan, cellIndex);
  47338. const data = {
  47339. store,
  47340. _self: props2.context || parent2,
  47341. column: columnData,
  47342. row,
  47343. $index,
  47344. cellIndex,
  47345. expanded
  47346. };
  47347. if (cellIndex === firstDefaultColumnIndex.value && treeRowData) {
  47348. data.treeNode = {
  47349. indent: treeRowData.level && treeRowData.level * indent.value,
  47350. level: treeRowData.level
  47351. };
  47352. if (isBoolean2(treeRowData.expanded)) {
  47353. data.treeNode.expanded = treeRowData.expanded;
  47354. if ("loading" in treeRowData) {
  47355. data.treeNode.loading = treeRowData.loading;
  47356. }
  47357. if ("noLazyChildren" in treeRowData) {
  47358. data.treeNode.noLazyChildren = treeRowData.noLazyChildren;
  47359. }
  47360. }
  47361. }
  47362. const baseKey = `${getKeyOfRow(row, $index)},${cellIndex}`;
  47363. const patchKey = columnData.columnKey || columnData.rawColumnKey || "";
  47364. const mergedTooltipOptions = column2.showOverflowTooltip && merge_default({
  47365. effect: tooltipEffect
  47366. }, tooltipOptions, column2.showOverflowTooltip);
  47367. return h(TdWrapper, {
  47368. style: getCellStyle($index, cellIndex, row, column2),
  47369. class: getCellClass($index, cellIndex, row, column2, colspan - 1),
  47370. key: `${patchKey}${baseKey}`,
  47371. rowspan,
  47372. colspan,
  47373. onMouseenter: ($event) => handleCellMouseEnter($event, row, mergedTooltipOptions),
  47374. onMouseleave: handleCellMouseLeave
  47375. }, {
  47376. default: () => cellChildren(cellIndex, column2, data)
  47377. });
  47378. }));
  47379. };
  47380. const cellChildren = (_cellIndex, column2, data) => {
  47381. return column2.renderCell(data);
  47382. };
  47383. const wrappedRowRender = (row, $index) => {
  47384. const store = props2.store;
  47385. const { isRowExpanded, assertRowKey } = store;
  47386. const { treeData, lazyTreeNodeMap, childrenColumnName, rowKey: rowKey2 } = store.states;
  47387. const columns2 = store.states.columns.value;
  47388. const hasExpandColumn = columns2.some(({ type: type4 }) => type4 === "expand");
  47389. if (hasExpandColumn) {
  47390. const expanded = isRowExpanded(row);
  47391. const tr = rowRender(row, $index, void 0, expanded);
  47392. const renderExpanded = parent2 == null ? void 0 : parent2.renderExpanded;
  47393. if (!renderExpanded) {
  47394. console.error("[Element Error]renderExpanded is required.");
  47395. return tr;
  47396. }
  47397. const rows = [[tr]];
  47398. if (parent2.props.preserveExpandedContent || expanded) {
  47399. rows[0].push(h("tr", {
  47400. key: `expanded-row__${tr.key}`,
  47401. style: { display: expanded ? "" : "none" }
  47402. }, [
  47403. h("td", {
  47404. colspan: columns2.length,
  47405. class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
  47406. }, [renderExpanded({ row, $index, store, expanded })])
  47407. ]));
  47408. }
  47409. return rows;
  47410. } else if (Object.keys(treeData.value).length) {
  47411. assertRowKey();
  47412. const key = getRowIdentity(row, rowKey2.value);
  47413. let cur = treeData.value[key];
  47414. let treeRowData = null;
  47415. if (cur) {
  47416. treeRowData = {
  47417. expanded: cur.expanded,
  47418. level: cur.level,
  47419. display: true,
  47420. noLazyChildren: void 0,
  47421. loading: void 0
  47422. };
  47423. if (isBoolean2(cur.lazy)) {
  47424. if (treeRowData && isBoolean2(cur.loaded) && cur.loaded) {
  47425. treeRowData.noLazyChildren = !(cur.children && cur.children.length);
  47426. }
  47427. treeRowData.loading = cur.loading;
  47428. }
  47429. }
  47430. const tmp = [rowRender(row, $index, treeRowData != null ? treeRowData : void 0)];
  47431. if (cur) {
  47432. let i = 0;
  47433. const traverse = (children, parent22) => {
  47434. if (!(children && children.length && parent22))
  47435. return;
  47436. children.forEach((node) => {
  47437. const innerTreeRowData = {
  47438. display: parent22.display && parent22.expanded,
  47439. level: parent22.level + 1,
  47440. expanded: false,
  47441. noLazyChildren: false,
  47442. loading: false
  47443. };
  47444. const childKey = getRowIdentity(node, rowKey2.value);
  47445. if (isPropAbsent(childKey)) {
  47446. throw new Error("For nested data item, row-key is required.");
  47447. }
  47448. cur = { ...treeData.value[childKey] };
  47449. if (cur) {
  47450. innerTreeRowData.expanded = cur.expanded;
  47451. cur.level = cur.level || innerTreeRowData.level;
  47452. cur.display = !!(cur.expanded && innerTreeRowData.display);
  47453. if (isBoolean2(cur.lazy)) {
  47454. if (isBoolean2(cur.loaded) && cur.loaded) {
  47455. innerTreeRowData.noLazyChildren = !(cur.children && cur.children.length);
  47456. }
  47457. innerTreeRowData.loading = cur.loading;
  47458. }
  47459. }
  47460. i++;
  47461. tmp.push(rowRender(node, $index + i, innerTreeRowData));
  47462. if (cur) {
  47463. const nodes2 = lazyTreeNodeMap.value[childKey] || node[childrenColumnName.value];
  47464. traverse(nodes2, cur);
  47465. }
  47466. });
  47467. };
  47468. cur.display = true;
  47469. const nodes = lazyTreeNodeMap.value[key] || row[childrenColumnName.value];
  47470. traverse(nodes, cur);
  47471. }
  47472. return tmp;
  47473. } else {
  47474. return rowRender(row, $index, void 0);
  47475. }
  47476. };
  47477. return {
  47478. wrappedRowRender,
  47479. tooltipContent,
  47480. tooltipTrigger
  47481. };
  47482. }
  47483. // node_modules/element-plus/es/components/table/src/table-body/defaults.mjs
  47484. var defaultProps2 = {
  47485. store: {
  47486. required: true,
  47487. type: Object
  47488. },
  47489. stripe: Boolean,
  47490. tooltipEffect: String,
  47491. tooltipOptions: {
  47492. type: Object
  47493. },
  47494. context: {
  47495. default: () => ({}),
  47496. type: Object
  47497. },
  47498. rowClassName: [String, Function],
  47499. rowStyle: [Object, Function],
  47500. fixed: {
  47501. type: String,
  47502. default: ""
  47503. },
  47504. highlight: Boolean
  47505. };
  47506. // node_modules/element-plus/es/components/table/src/table-body/index.mjs
  47507. var TableBody = defineComponent({
  47508. name: "ElTableBody",
  47509. props: defaultProps2,
  47510. setup(props2) {
  47511. var _a2;
  47512. const instance = getCurrentInstance();
  47513. const parent2 = inject(TABLE_INJECTION_KEY);
  47514. const ns = useNamespace("table");
  47515. const { wrappedRowRender, tooltipContent, tooltipTrigger } = useRender(props2);
  47516. const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent2);
  47517. const hoveredCellList = [];
  47518. watch((_a2 = props2.store) == null ? void 0 : _a2.states.hoverRow, (newVal, oldVal) => {
  47519. var _a22, _b;
  47520. const el = instance == null ? void 0 : instance.vnode.el;
  47521. const rows = Array.from((el == null ? void 0 : el.children) || []).filter((e) => e == null ? void 0 : e.classList.contains(`${ns.e("row")}`));
  47522. let rowNum = newVal;
  47523. const childNodes = (_a22 = rows[rowNum]) == null ? void 0 : _a22.childNodes;
  47524. if (childNodes == null ? void 0 : childNodes.length) {
  47525. let control = 0;
  47526. const indexes = Array.from(childNodes).reduce((acc, item, index) => {
  47527. var _a3, _b2;
  47528. if (((_a3 = childNodes[index]) == null ? void 0 : _a3.colSpan) > 1) {
  47529. control = (_b2 = childNodes[index]) == null ? void 0 : _b2.colSpan;
  47530. }
  47531. if (item.nodeName !== "TD" && control === 0) {
  47532. acc.push(index);
  47533. }
  47534. control > 0 && control--;
  47535. return acc;
  47536. }, []);
  47537. indexes.forEach((rowIndex) => {
  47538. var _a3;
  47539. rowNum = newVal;
  47540. while (rowNum > 0) {
  47541. const preChildNodes = (_a3 = rows[rowNum - 1]) == null ? void 0 : _a3.childNodes;
  47542. if (preChildNodes[rowIndex] && preChildNodes[rowIndex].nodeName === "TD" && preChildNodes[rowIndex].rowSpan > 1) {
  47543. addClass(preChildNodes[rowIndex], "hover-cell");
  47544. hoveredCellList.push(preChildNodes[rowIndex]);
  47545. break;
  47546. }
  47547. rowNum--;
  47548. }
  47549. });
  47550. } else {
  47551. hoveredCellList.forEach((item) => removeClass(item, "hover-cell"));
  47552. hoveredCellList.length = 0;
  47553. }
  47554. if (!((_b = props2.store) == null ? void 0 : _b.states.isComplex.value) || !isClient)
  47555. return;
  47556. rAF(() => {
  47557. const oldRow = rows[oldVal];
  47558. const newRow = rows[newVal];
  47559. if (oldRow && !oldRow.classList.contains("hover-fixed-row")) {
  47560. removeClass(oldRow, "hover-row");
  47561. }
  47562. if (newRow) {
  47563. addClass(newRow, "hover-row");
  47564. }
  47565. });
  47566. });
  47567. onUnmounted(() => {
  47568. var _a22;
  47569. (_a22 = removePopper) == null ? void 0 : _a22();
  47570. });
  47571. return {
  47572. ns,
  47573. onColumnsChange,
  47574. onScrollableChange,
  47575. wrappedRowRender,
  47576. tooltipContent,
  47577. tooltipTrigger
  47578. };
  47579. },
  47580. render() {
  47581. const { wrappedRowRender, store } = this;
  47582. const data = (store == null ? void 0 : store.states.data.value) || [];
  47583. return h("tbody", { tabIndex: -1 }, [
  47584. data.reduce((acc, row) => {
  47585. return acc.concat(wrappedRowRender(row, acc.length));
  47586. }, [])
  47587. ]);
  47588. }
  47589. });
  47590. // node_modules/element-plus/es/components/table/src/table-footer/mapState-helper.mjs
  47591. function useMapState() {
  47592. const table = inject(TABLE_INJECTION_KEY);
  47593. const store = table == null ? void 0 : table.store;
  47594. const leftFixedLeafCount = computed(() => {
  47595. var _a2;
  47596. return (_a2 = store == null ? void 0 : store.states.fixedLeafColumnsLength.value) != null ? _a2 : 0;
  47597. });
  47598. const rightFixedLeafCount = computed(() => {
  47599. var _a2;
  47600. return (_a2 = store == null ? void 0 : store.states.rightFixedColumns.value.length) != null ? _a2 : 0;
  47601. });
  47602. const columnsCount = computed(() => {
  47603. var _a2;
  47604. return (_a2 = store == null ? void 0 : store.states.columns.value.length) != null ? _a2 : 0;
  47605. });
  47606. const leftFixedCount = computed(() => {
  47607. var _a2;
  47608. return (_a2 = store == null ? void 0 : store.states.fixedColumns.value.length) != null ? _a2 : 0;
  47609. });
  47610. const rightFixedCount = computed(() => {
  47611. var _a2;
  47612. return (_a2 = store == null ? void 0 : store.states.rightFixedColumns.value.length) != null ? _a2 : 0;
  47613. });
  47614. return {
  47615. leftFixedLeafCount,
  47616. rightFixedLeafCount,
  47617. columnsCount,
  47618. leftFixedCount,
  47619. rightFixedCount,
  47620. columns: computed(() => {
  47621. var _a2;
  47622. return (_a2 = store == null ? void 0 : store.states.columns.value) != null ? _a2 : [];
  47623. })
  47624. };
  47625. }
  47626. // node_modules/element-plus/es/components/table/src/table-footer/style-helper.mjs
  47627. function useStyle2(props2) {
  47628. const { columns: columns2 } = useMapState();
  47629. const ns = useNamespace("table");
  47630. const getCellClasses = (columns22, cellIndex) => {
  47631. const column2 = columns22[cellIndex];
  47632. const classes = [
  47633. ns.e("cell"),
  47634. column2.id,
  47635. column2.align,
  47636. column2.labelClassName,
  47637. ...getFixedColumnsClass(ns.b(), cellIndex, column2.fixed, props2.store)
  47638. ];
  47639. if (column2.className) {
  47640. classes.push(column2.className);
  47641. }
  47642. if (!column2.children) {
  47643. classes.push(ns.is("leaf"));
  47644. }
  47645. return classes;
  47646. };
  47647. const getCellStyles = (column2, cellIndex) => {
  47648. const fixedStyle = getFixedColumnOffset(cellIndex, column2.fixed, props2.store);
  47649. ensurePosition(fixedStyle, "left");
  47650. ensurePosition(fixedStyle, "right");
  47651. return fixedStyle;
  47652. };
  47653. return {
  47654. getCellClasses,
  47655. getCellStyles,
  47656. columns: columns2
  47657. };
  47658. }
  47659. // node_modules/element-plus/es/components/table/src/table-footer/index.mjs
  47660. var TableFooter = defineComponent({
  47661. name: "ElTableFooter",
  47662. props: {
  47663. fixed: {
  47664. type: String,
  47665. default: ""
  47666. },
  47667. store: {
  47668. required: true,
  47669. type: Object
  47670. },
  47671. summaryMethod: Function,
  47672. sumText: String,
  47673. border: Boolean,
  47674. defaultSort: {
  47675. type: Object,
  47676. default: () => {
  47677. return {
  47678. prop: "",
  47679. order: ""
  47680. };
  47681. }
  47682. }
  47683. },
  47684. setup(props2) {
  47685. const parent2 = inject(TABLE_INJECTION_KEY);
  47686. const ns = useNamespace("table");
  47687. const { getCellClasses, getCellStyles, columns: columns2 } = useStyle2(props2);
  47688. const { onScrollableChange, onColumnsChange } = useLayoutObserver(parent2);
  47689. return {
  47690. ns,
  47691. onScrollableChange,
  47692. onColumnsChange,
  47693. getCellClasses,
  47694. getCellStyles,
  47695. columns: columns2
  47696. };
  47697. },
  47698. render() {
  47699. const { columns: columns2, getCellStyles, getCellClasses, summaryMethod, sumText } = this;
  47700. const data = this.store.states.data.value;
  47701. let sums = [];
  47702. if (summaryMethod) {
  47703. sums = summaryMethod({
  47704. columns: columns2,
  47705. data
  47706. });
  47707. } else {
  47708. columns2.forEach((column2, index) => {
  47709. if (index === 0) {
  47710. sums[index] = sumText;
  47711. return;
  47712. }
  47713. const values2 = data.map((item) => Number(item[column2.property]));
  47714. const precisions = [];
  47715. let notNumber = true;
  47716. values2.forEach((value) => {
  47717. if (!Number.isNaN(+value)) {
  47718. notNumber = false;
  47719. const decimal = `${value}`.split(".")[1];
  47720. precisions.push(decimal ? decimal.length : 0);
  47721. }
  47722. });
  47723. const precision = Math.max.apply(null, precisions);
  47724. if (!notNumber) {
  47725. sums[index] = values2.reduce((prev, curr) => {
  47726. const value = Number(curr);
  47727. if (!Number.isNaN(+value)) {
  47728. return Number.parseFloat((prev + curr).toFixed(Math.min(precision, 20)));
  47729. } else {
  47730. return prev;
  47731. }
  47732. }, 0);
  47733. } else {
  47734. sums[index] = "";
  47735. }
  47736. });
  47737. }
  47738. return h(h("tfoot", [
  47739. h("tr", {}, [
  47740. ...columns2.map((column2, cellIndex) => h("td", {
  47741. key: cellIndex,
  47742. colspan: column2.colSpan,
  47743. rowspan: column2.rowSpan,
  47744. class: getCellClasses(columns2, cellIndex),
  47745. style: getCellStyles(column2, cellIndex)
  47746. }, [
  47747. h("div", {
  47748. class: ["cell", column2.labelClassName]
  47749. }, [sums[cellIndex]])
  47750. ]))
  47751. ])
  47752. ]));
  47753. }
  47754. });
  47755. // node_modules/element-plus/es/components/table/src/table/utils-helper.mjs
  47756. function useUtils2(store) {
  47757. const setCurrentRow = (row) => {
  47758. store.commit("setCurrentRow", row);
  47759. };
  47760. const getSelectionRows = () => {
  47761. return store.getSelectionRows();
  47762. };
  47763. const toggleRowSelection = (row, selected, ignoreSelectable = true) => {
  47764. store.toggleRowSelection(row, selected, false, ignoreSelectable);
  47765. store.updateAllSelected();
  47766. };
  47767. const clearSelection = () => {
  47768. store.clearSelection();
  47769. };
  47770. const clearFilter = (columnKeys) => {
  47771. store.clearFilter(columnKeys);
  47772. };
  47773. const toggleAllSelection = () => {
  47774. store.commit("toggleAllSelection");
  47775. };
  47776. const toggleRowExpansion = (row, expanded) => {
  47777. store.toggleRowExpansionAdapter(row, expanded);
  47778. };
  47779. const clearSort = () => {
  47780. store.clearSort();
  47781. };
  47782. const sort = (prop, order) => {
  47783. store.commit("sort", { prop, order });
  47784. };
  47785. const updateKeyChildren = (key, data) => {
  47786. store.updateKeyChildren(key, data);
  47787. };
  47788. return {
  47789. setCurrentRow,
  47790. getSelectionRows,
  47791. toggleRowSelection,
  47792. clearSelection,
  47793. clearFilter,
  47794. toggleAllSelection,
  47795. toggleRowExpansion,
  47796. clearSort,
  47797. sort,
  47798. updateKeyChildren
  47799. };
  47800. }
  47801. // node_modules/element-plus/es/components/table/src/table/style-helper.mjs
  47802. function useStyle3(props2, layout2, store, table) {
  47803. const isHidden2 = ref(false);
  47804. const renderExpanded = ref(null);
  47805. const resizeProxyVisible = ref(false);
  47806. const setDragVisible = (visible) => {
  47807. resizeProxyVisible.value = visible;
  47808. };
  47809. const resizeState = ref({
  47810. width: null,
  47811. height: null,
  47812. headerHeight: null
  47813. });
  47814. const isGroup = ref(false);
  47815. const scrollbarViewStyle = {
  47816. display: "inline-block",
  47817. verticalAlign: "middle"
  47818. };
  47819. const tableWidth = ref();
  47820. const tableScrollHeight = ref(0);
  47821. const bodyScrollHeight = ref(0);
  47822. const headerScrollHeight = ref(0);
  47823. const footerScrollHeight = ref(0);
  47824. const appendScrollHeight = ref(0);
  47825. watchEffect(() => {
  47826. var _a2;
  47827. layout2.setHeight((_a2 = props2.height) != null ? _a2 : null);
  47828. });
  47829. watchEffect(() => {
  47830. var _a2;
  47831. layout2.setMaxHeight((_a2 = props2.maxHeight) != null ? _a2 : null);
  47832. });
  47833. watch(() => [props2.currentRowKey, store.states.rowKey], ([currentRowKey, rowKey2]) => {
  47834. if (!unref(rowKey2) || !unref(currentRowKey))
  47835. return;
  47836. store.setCurrentRowKey(`${currentRowKey}`);
  47837. }, {
  47838. immediate: true
  47839. });
  47840. watch(() => props2.data, (data) => {
  47841. table.store.commit("setData", data);
  47842. }, {
  47843. immediate: true,
  47844. deep: true
  47845. });
  47846. watchEffect(() => {
  47847. if (props2.expandRowKeys) {
  47848. store.setExpandRowKeysAdapter(props2.expandRowKeys);
  47849. }
  47850. });
  47851. const handleMouseLeave = () => {
  47852. table.store.commit("setHoverRow", null);
  47853. if (table.hoverState)
  47854. table.hoverState = null;
  47855. };
  47856. const handleHeaderFooterMousewheel = (_event2, data) => {
  47857. const { pixelX, pixelY } = data;
  47858. if (Math.abs(pixelX) >= Math.abs(pixelY)) {
  47859. table.refs.bodyWrapper.scrollLeft += data.pixelX / 5;
  47860. }
  47861. };
  47862. const shouldUpdateHeight = computed(() => {
  47863. return props2.height || props2.maxHeight || store.states.fixedColumns.value.length > 0 || store.states.rightFixedColumns.value.length > 0;
  47864. });
  47865. const tableBodyStyles = computed(() => {
  47866. return {
  47867. width: layout2.bodyWidth.value ? `${layout2.bodyWidth.value}px` : ""
  47868. };
  47869. });
  47870. const doLayout = () => {
  47871. if (shouldUpdateHeight.value) {
  47872. layout2.updateElsHeight();
  47873. }
  47874. layout2.updateColumnsWidth();
  47875. if (typeof window === "undefined")
  47876. return;
  47877. requestAnimationFrame(syncPosition);
  47878. };
  47879. onMounted(async () => {
  47880. await nextTick();
  47881. store.updateColumns();
  47882. bindEvents();
  47883. requestAnimationFrame(doLayout);
  47884. const el = table.vnode.el;
  47885. const tableHeader = table.refs.headerWrapper;
  47886. if (props2.flexible && el && el.parentElement) {
  47887. el.parentElement.style.minWidth = "0";
  47888. }
  47889. resizeState.value = {
  47890. width: tableWidth.value = el.offsetWidth,
  47891. height: el.offsetHeight,
  47892. headerHeight: props2.showHeader && tableHeader ? tableHeader.offsetHeight : null
  47893. };
  47894. store.states.columns.value.forEach((column2) => {
  47895. if (column2.filteredValue && column2.filteredValue.length) {
  47896. table.store.commit("filterChange", {
  47897. column: column2,
  47898. values: column2.filteredValue,
  47899. silent: true
  47900. });
  47901. }
  47902. });
  47903. table.$ready = true;
  47904. });
  47905. const setScrollClassByEl = (el, className) => {
  47906. if (!el)
  47907. return;
  47908. const classList = Array.from(el.classList).filter((item) => !item.startsWith("is-scrolling-"));
  47909. classList.push(layout2.scrollX.value ? className : "is-scrolling-none");
  47910. el.className = classList.join(" ");
  47911. };
  47912. const setScrollClass = (className) => {
  47913. const { tableWrapper } = table.refs;
  47914. setScrollClassByEl(tableWrapper, className);
  47915. };
  47916. const hasScrollClass = (className) => {
  47917. const { tableWrapper } = table.refs;
  47918. return !!(tableWrapper && tableWrapper.classList.contains(className));
  47919. };
  47920. const syncPosition = function() {
  47921. if (!table.refs.scrollBarRef)
  47922. return;
  47923. if (!layout2.scrollX.value) {
  47924. const scrollingNoneClass = "is-scrolling-none";
  47925. if (!hasScrollClass(scrollingNoneClass)) {
  47926. setScrollClass(scrollingNoneClass);
  47927. }
  47928. return;
  47929. }
  47930. const scrollContainer = table.refs.scrollBarRef.wrapRef;
  47931. if (!scrollContainer)
  47932. return;
  47933. const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
  47934. const { headerWrapper, footerWrapper } = table.refs;
  47935. if (headerWrapper)
  47936. headerWrapper.scrollLeft = scrollLeft;
  47937. if (footerWrapper)
  47938. footerWrapper.scrollLeft = scrollLeft;
  47939. const maxScrollLeftPosition = scrollWidth - offsetWidth - 1;
  47940. if (scrollLeft >= maxScrollLeftPosition) {
  47941. setScrollClass("is-scrolling-right");
  47942. } else if (scrollLeft === 0) {
  47943. setScrollClass("is-scrolling-left");
  47944. } else {
  47945. setScrollClass("is-scrolling-middle");
  47946. }
  47947. };
  47948. const bindEvents = () => {
  47949. if (!table.refs.scrollBarRef)
  47950. return;
  47951. if (table.refs.scrollBarRef.wrapRef) {
  47952. useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
  47953. passive: true
  47954. });
  47955. }
  47956. if (props2.fit) {
  47957. useResizeObserver(table.vnode.el, resizeListener);
  47958. } else {
  47959. useEventListener(window, "resize", resizeListener);
  47960. }
  47961. useResizeObserver(table.refs.bodyWrapper, () => {
  47962. var _a2, _b;
  47963. resizeListener();
  47964. (_b = (_a2 = table.refs) == null ? void 0 : _a2.scrollBarRef) == null ? void 0 : _b.update();
  47965. });
  47966. };
  47967. const resizeListener = () => {
  47968. var _a2, _b, _c, _d;
  47969. const el = table.vnode.el;
  47970. if (!table.$ready || !el)
  47971. return;
  47972. let shouldUpdateLayout = false;
  47973. const {
  47974. width: oldWidth,
  47975. height: oldHeight,
  47976. headerHeight: oldHeaderHeight
  47977. } = resizeState.value;
  47978. const width = tableWidth.value = el.offsetWidth;
  47979. if (oldWidth !== width) {
  47980. shouldUpdateLayout = true;
  47981. }
  47982. const height = el.offsetHeight;
  47983. if ((props2.height || shouldUpdateHeight.value) && oldHeight !== height) {
  47984. shouldUpdateLayout = true;
  47985. }
  47986. const tableHeader = props2.tableLayout === "fixed" ? table.refs.headerWrapper : (_a2 = table.refs.tableHeaderRef) == null ? void 0 : _a2.$el;
  47987. if (props2.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
  47988. shouldUpdateLayout = true;
  47989. }
  47990. tableScrollHeight.value = ((_b = table.refs.tableWrapper) == null ? void 0 : _b.scrollHeight) || 0;
  47991. headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
  47992. footerScrollHeight.value = ((_c = table.refs.footerWrapper) == null ? void 0 : _c.offsetHeight) || 0;
  47993. appendScrollHeight.value = ((_d = table.refs.appendWrapper) == null ? void 0 : _d.offsetHeight) || 0;
  47994. bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value - appendScrollHeight.value;
  47995. if (shouldUpdateLayout) {
  47996. resizeState.value = {
  47997. width,
  47998. height,
  47999. headerHeight: props2.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
  48000. };
  48001. doLayout();
  48002. }
  48003. };
  48004. const tableSize = useFormSize();
  48005. const bodyWidth = computed(() => {
  48006. const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout2;
  48007. return bodyWidth_.value ? `${bodyWidth_.value - (scrollY.value ? gutterWidth : 0)}px` : "";
  48008. });
  48009. const tableLayout = computed(() => {
  48010. if (props2.maxHeight)
  48011. return "fixed";
  48012. return props2.tableLayout;
  48013. });
  48014. const emptyBlockStyle = computed(() => {
  48015. if (props2.data && props2.data.length)
  48016. return;
  48017. let height = "100%";
  48018. if (props2.height && bodyScrollHeight.value) {
  48019. height = `${bodyScrollHeight.value}px`;
  48020. }
  48021. const width = tableWidth.value;
  48022. return {
  48023. width: width ? `${width}px` : "",
  48024. height
  48025. };
  48026. });
  48027. const scrollbarStyle = computed(() => {
  48028. if (props2.height) {
  48029. return {
  48030. height: "100%"
  48031. };
  48032. }
  48033. if (props2.maxHeight) {
  48034. if (!Number.isNaN(Number(props2.maxHeight))) {
  48035. return {
  48036. maxHeight: `${+props2.maxHeight - headerScrollHeight.value - footerScrollHeight.value}px`
  48037. };
  48038. } else {
  48039. return {
  48040. maxHeight: `calc(${props2.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
  48041. };
  48042. }
  48043. }
  48044. return {};
  48045. });
  48046. return {
  48047. isHidden: isHidden2,
  48048. renderExpanded,
  48049. setDragVisible,
  48050. isGroup,
  48051. handleMouseLeave,
  48052. handleHeaderFooterMousewheel,
  48053. tableSize,
  48054. emptyBlockStyle,
  48055. resizeProxyVisible,
  48056. bodyWidth,
  48057. resizeState,
  48058. doLayout,
  48059. tableBodyStyles,
  48060. tableLayout,
  48061. scrollbarViewStyle,
  48062. scrollbarStyle
  48063. };
  48064. }
  48065. // node_modules/element-plus/es/components/table/src/table/key-render-helper.mjs
  48066. function useKeyRender(table) {
  48067. const observer = ref();
  48068. const initWatchDom = () => {
  48069. const el = table.vnode.el;
  48070. const columnsWrapper = el.querySelector(".hidden-columns");
  48071. const config = { childList: true, subtree: true };
  48072. const updateOrderFns = table.store.states.updateOrderFns;
  48073. observer.value = new MutationObserver(() => {
  48074. updateOrderFns.forEach((fn2) => fn2());
  48075. });
  48076. observer.value.observe(columnsWrapper, config);
  48077. };
  48078. onMounted(() => {
  48079. initWatchDom();
  48080. });
  48081. onUnmounted(() => {
  48082. var _a2;
  48083. (_a2 = observer.value) == null ? void 0 : _a2.disconnect();
  48084. });
  48085. }
  48086. // node_modules/element-plus/es/components/table/src/table/defaults.mjs
  48087. var defaultProps3 = {
  48088. data: {
  48089. type: Array,
  48090. default: () => []
  48091. },
  48092. size: useSizeProp,
  48093. width: [String, Number],
  48094. height: [String, Number],
  48095. maxHeight: [String, Number],
  48096. fit: {
  48097. type: Boolean,
  48098. default: true
  48099. },
  48100. stripe: Boolean,
  48101. border: Boolean,
  48102. rowKey: [String, Function],
  48103. showHeader: {
  48104. type: Boolean,
  48105. default: true
  48106. },
  48107. showSummary: Boolean,
  48108. sumText: String,
  48109. summaryMethod: Function,
  48110. rowClassName: [String, Function],
  48111. rowStyle: [Object, Function],
  48112. cellClassName: [String, Function],
  48113. cellStyle: [Object, Function],
  48114. headerRowClassName: [String, Function],
  48115. headerRowStyle: [Object, Function],
  48116. headerCellClassName: [String, Function],
  48117. headerCellStyle: [Object, Function],
  48118. highlightCurrentRow: Boolean,
  48119. currentRowKey: [String, Number],
  48120. emptyText: String,
  48121. expandRowKeys: Array,
  48122. defaultExpandAll: Boolean,
  48123. defaultSort: Object,
  48124. tooltipEffect: String,
  48125. tooltipOptions: Object,
  48126. spanMethod: Function,
  48127. selectOnIndeterminate: {
  48128. type: Boolean,
  48129. default: true
  48130. },
  48131. indent: {
  48132. type: Number,
  48133. default: 16
  48134. },
  48135. treeProps: {
  48136. type: Object,
  48137. default: () => {
  48138. return {
  48139. hasChildren: "hasChildren",
  48140. children: "children",
  48141. checkStrictly: false
  48142. };
  48143. }
  48144. },
  48145. lazy: Boolean,
  48146. load: Function,
  48147. style: {
  48148. type: Object,
  48149. default: () => ({})
  48150. },
  48151. className: {
  48152. type: String,
  48153. default: ""
  48154. },
  48155. tableLayout: {
  48156. type: String,
  48157. default: "fixed"
  48158. },
  48159. scrollbarAlwaysOn: Boolean,
  48160. flexible: Boolean,
  48161. showOverflowTooltip: [Boolean, Object],
  48162. tooltipFormatter: Function,
  48163. appendFilterPanelTo: String,
  48164. scrollbarTabindex: {
  48165. type: [Number, String],
  48166. default: void 0
  48167. },
  48168. allowDragLastColumn: {
  48169. type: Boolean,
  48170. default: true
  48171. },
  48172. preserveExpandedContent: Boolean,
  48173. nativeScrollbar: Boolean
  48174. };
  48175. // node_modules/element-plus/es/components/table/src/h-helper.mjs
  48176. function hColgroup(props2) {
  48177. const isAuto = props2.tableLayout === "auto";
  48178. let columns2 = props2.columns || [];
  48179. if (isAuto) {
  48180. if (columns2.every(({ width }) => isUndefined2(width))) {
  48181. columns2 = [];
  48182. }
  48183. }
  48184. const getPropsData = (column2) => {
  48185. const propsData = {
  48186. key: `${props2.tableLayout}_${column2.id}`,
  48187. style: {},
  48188. name: void 0
  48189. };
  48190. if (isAuto) {
  48191. propsData.style = {
  48192. width: `${column2.width}px`
  48193. };
  48194. } else {
  48195. propsData.name = column2.id;
  48196. }
  48197. return propsData;
  48198. };
  48199. return h("colgroup", {}, columns2.map((column2) => h("col", getPropsData(column2))));
  48200. }
  48201. hColgroup.props = ["columns", "tableLayout"];
  48202. // node_modules/element-plus/es/components/table/src/composables/use-scrollbar.mjs
  48203. var useScrollbar = () => {
  48204. const scrollBarRef = ref();
  48205. const scrollTo = (options, yCoord) => {
  48206. const scrollbar = scrollBarRef.value;
  48207. if (scrollbar) {
  48208. scrollbar.scrollTo(options, yCoord);
  48209. }
  48210. };
  48211. const setScrollPosition = (position, offset3) => {
  48212. const scrollbar = scrollBarRef.value;
  48213. if (scrollbar && isNumber2(offset3) && ["Top", "Left"].includes(position)) {
  48214. scrollbar[`setScroll${position}`](offset3);
  48215. }
  48216. };
  48217. const setScrollTop = (top) => setScrollPosition("Top", top);
  48218. const setScrollLeft = (left) => setScrollPosition("Left", left);
  48219. return {
  48220. scrollBarRef,
  48221. scrollTo,
  48222. setScrollTop,
  48223. setScrollLeft
  48224. };
  48225. };
  48226. // node_modules/normalize-wheel-es/dist/index.mjs
  48227. var v = false;
  48228. var o;
  48229. var f;
  48230. var s;
  48231. var u;
  48232. var d;
  48233. var N2;
  48234. var l;
  48235. var p;
  48236. var m;
  48237. var w;
  48238. var D;
  48239. var x;
  48240. var E2;
  48241. var M;
  48242. var F;
  48243. function a() {
  48244. if (!v) {
  48245. v = true;
  48246. var e = navigator.userAgent, n = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e), i = /(Mac OS X)|(Windows)|(Linux)/.exec(e);
  48247. if (x = /\b(iPhone|iP[ao]d)/.exec(e), E2 = /\b(iP[ao]d)/.exec(e), w = /Android/i.exec(e), M = /FBAN\/\w+;/i.exec(e), F = /Mobile/i.exec(e), D = !!/Win64/.exec(e), n) {
  48248. o = n[1] ? parseFloat(n[1]) : n[5] ? parseFloat(n[5]) : NaN, o && document && document.documentMode && (o = document.documentMode);
  48249. var r = /(?:Trident\/(\d+.\d+))/.exec(e);
  48250. N2 = r ? parseFloat(r[1]) + 4 : o, f = n[2] ? parseFloat(n[2]) : NaN, s = n[3] ? parseFloat(n[3]) : NaN, u = n[4] ? parseFloat(n[4]) : NaN, u ? (n = /(?:Chrome\/(\d+\.\d+))/.exec(e), d = n && n[1] ? parseFloat(n[1]) : NaN) : d = NaN;
  48251. } else o = f = s = d = u = NaN;
  48252. if (i) {
  48253. if (i[1]) {
  48254. var t = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);
  48255. l = t ? parseFloat(t[1].replace("_", ".")) : true;
  48256. } else l = false;
  48257. p = !!i[2], m = !!i[3];
  48258. } else l = p = m = false;
  48259. }
  48260. }
  48261. var _ = { ie: function() {
  48262. return a() || o;
  48263. }, ieCompatibilityMode: function() {
  48264. return a() || N2 > o;
  48265. }, ie64: function() {
  48266. return _.ie() && D;
  48267. }, firefox: function() {
  48268. return a() || f;
  48269. }, opera: function() {
  48270. return a() || s;
  48271. }, webkit: function() {
  48272. return a() || u;
  48273. }, safari: function() {
  48274. return _.webkit();
  48275. }, chrome: function() {
  48276. return a() || d;
  48277. }, windows: function() {
  48278. return a() || p;
  48279. }, osx: function() {
  48280. return a() || l;
  48281. }, linux: function() {
  48282. return a() || m;
  48283. }, iphone: function() {
  48284. return a() || x;
  48285. }, mobile: function() {
  48286. return a() || x || E2 || w || F;
  48287. }, nativeApp: function() {
  48288. return a() || M;
  48289. }, android: function() {
  48290. return a() || w;
  48291. }, ipad: function() {
  48292. return a() || E2;
  48293. } };
  48294. var A = _;
  48295. var c = !!(typeof window < "u" && window.document && window.document.createElement);
  48296. var U2 = { canUseDOM: c, canUseWorkers: typeof Worker < "u", canUseEventListeners: c && !!(window.addEventListener || window.attachEvent), canUseViewport: c && !!window.screen, isInWorker: !c };
  48297. var h2 = U2;
  48298. var X2;
  48299. h2.canUseDOM && (X2 = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
  48300. function S(e, n) {
  48301. if (!h2.canUseDOM || n && !("addEventListener" in document)) return false;
  48302. var i = "on" + e, r = i in document;
  48303. if (!r) {
  48304. var t = document.createElement("div");
  48305. t.setAttribute(i, "return;"), r = typeof t[i] == "function";
  48306. }
  48307. return !r && X2 && e === "wheel" && (r = document.implementation.hasFeature("Events.wheel", "3.0")), r;
  48308. }
  48309. var b = S;
  48310. var O = 10;
  48311. var I2 = 40;
  48312. var P2 = 800;
  48313. function T(e) {
  48314. var n = 0, i = 0, r = 0, t = 0;
  48315. return "detail" in e && (i = e.detail), "wheelDelta" in e && (i = -e.wheelDelta / 120), "wheelDeltaY" in e && (i = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (n = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (n = i, i = 0), r = n * O, t = i * O, "deltaY" in e && (t = e.deltaY), "deltaX" in e && (r = e.deltaX), (r || t) && e.deltaMode && (e.deltaMode == 1 ? (r *= I2, t *= I2) : (r *= P2, t *= P2)), r && !n && (n = r < 1 ? -1 : 1), t && !i && (i = t < 1 ? -1 : 1), { spinX: n, spinY: i, pixelX: r, pixelY: t };
  48316. }
  48317. T.getEventType = function() {
  48318. return A.firefox() ? "DOMMouseScroll" : b("wheel") ? "wheel" : "mousewheel";
  48319. };
  48320. var Y = T;
  48321. // node_modules/element-plus/es/directives/mousewheel/index.mjs
  48322. var SCOPE7 = "_Mousewheel";
  48323. var mousewheel = function(element, callback) {
  48324. if (element && element.addEventListener) {
  48325. removeWheelHandler(element);
  48326. const fn2 = function(event) {
  48327. const normalized = Y(event);
  48328. callback && Reflect.apply(callback, this, [event, normalized]);
  48329. };
  48330. element[SCOPE7] = { wheelHandler: fn2 };
  48331. element.addEventListener("wheel", fn2, { passive: true });
  48332. }
  48333. };
  48334. var removeWheelHandler = (element) => {
  48335. var _a2;
  48336. if ((_a2 = element[SCOPE7]) == null ? void 0 : _a2.wheelHandler) {
  48337. element.removeEventListener("wheel", element[SCOPE7].wheelHandler);
  48338. element[SCOPE7] = null;
  48339. }
  48340. };
  48341. var Mousewheel = {
  48342. beforeMount(el, binding) {
  48343. mousewheel(el, binding.value);
  48344. },
  48345. unmounted(el) {
  48346. removeWheelHandler(el);
  48347. },
  48348. updated(el, binding) {
  48349. if (binding.value !== binding.oldValue) {
  48350. mousewheel(el, binding.value);
  48351. }
  48352. }
  48353. };
  48354. // node_modules/element-plus/es/components/table/src/table.mjs
  48355. var tableIdSeed = 1;
  48356. var _sfc_main127 = defineComponent({
  48357. name: "ElTable",
  48358. directives: {
  48359. Mousewheel
  48360. },
  48361. components: {
  48362. TableHeader,
  48363. TableBody,
  48364. TableFooter,
  48365. ElScrollbar,
  48366. hColgroup
  48367. },
  48368. props: defaultProps3,
  48369. emits: [
  48370. "select",
  48371. "select-all",
  48372. "selection-change",
  48373. "cell-mouse-enter",
  48374. "cell-mouse-leave",
  48375. "cell-contextmenu",
  48376. "cell-click",
  48377. "cell-dblclick",
  48378. "row-click",
  48379. "row-contextmenu",
  48380. "row-dblclick",
  48381. "header-click",
  48382. "header-contextmenu",
  48383. "sort-change",
  48384. "filter-change",
  48385. "current-change",
  48386. "header-dragend",
  48387. "expand-change",
  48388. "scroll"
  48389. ],
  48390. setup(props2) {
  48391. const { t } = useLocale();
  48392. const ns = useNamespace("table");
  48393. const table = getCurrentInstance();
  48394. provide(TABLE_INJECTION_KEY, table);
  48395. const store = createStore(table, props2);
  48396. table.store = store;
  48397. const layout2 = new TableLayout({
  48398. store: table.store,
  48399. table,
  48400. fit: props2.fit,
  48401. showHeader: props2.showHeader
  48402. });
  48403. table.layout = layout2;
  48404. const isEmpty3 = computed(() => (store.states.data.value || []).length === 0);
  48405. const {
  48406. setCurrentRow,
  48407. getSelectionRows,
  48408. toggleRowSelection,
  48409. clearSelection,
  48410. clearFilter,
  48411. toggleAllSelection,
  48412. toggleRowExpansion,
  48413. clearSort,
  48414. sort,
  48415. updateKeyChildren
  48416. } = useUtils2(store);
  48417. const {
  48418. isHidden: isHidden2,
  48419. renderExpanded,
  48420. setDragVisible,
  48421. isGroup,
  48422. handleMouseLeave,
  48423. handleHeaderFooterMousewheel,
  48424. tableSize,
  48425. emptyBlockStyle,
  48426. resizeProxyVisible,
  48427. bodyWidth,
  48428. resizeState,
  48429. doLayout,
  48430. tableBodyStyles,
  48431. tableLayout,
  48432. scrollbarViewStyle,
  48433. scrollbarStyle
  48434. } = useStyle3(props2, layout2, store, table);
  48435. const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar();
  48436. const debouncedUpdateLayout = debounce_default(doLayout, 50);
  48437. const tableId = `${ns.namespace.value}-table_${tableIdSeed++}`;
  48438. table.tableId = tableId;
  48439. table.state = {
  48440. isGroup,
  48441. resizeState,
  48442. doLayout,
  48443. debouncedUpdateLayout
  48444. };
  48445. const computedSumText = computed(() => {
  48446. var _a2;
  48447. return (_a2 = props2.sumText) != null ? _a2 : t("el.table.sumText");
  48448. });
  48449. const computedEmptyText = computed(() => {
  48450. var _a2;
  48451. return (_a2 = props2.emptyText) != null ? _a2 : t("el.table.emptyText");
  48452. });
  48453. const columns2 = computed(() => {
  48454. return convertToRows(store.states.originColumns.value)[0];
  48455. });
  48456. useKeyRender(table);
  48457. onBeforeUnmount(() => {
  48458. debouncedUpdateLayout.cancel();
  48459. });
  48460. return {
  48461. ns,
  48462. layout: layout2,
  48463. store,
  48464. columns: columns2,
  48465. handleHeaderFooterMousewheel,
  48466. handleMouseLeave,
  48467. tableId,
  48468. tableSize,
  48469. isHidden: isHidden2,
  48470. isEmpty: isEmpty3,
  48471. renderExpanded,
  48472. resizeProxyVisible,
  48473. resizeState,
  48474. isGroup,
  48475. bodyWidth,
  48476. tableBodyStyles,
  48477. emptyBlockStyle,
  48478. debouncedUpdateLayout,
  48479. setCurrentRow,
  48480. getSelectionRows,
  48481. toggleRowSelection,
  48482. clearSelection,
  48483. clearFilter,
  48484. toggleAllSelection,
  48485. toggleRowExpansion,
  48486. clearSort,
  48487. doLayout,
  48488. sort,
  48489. updateKeyChildren,
  48490. t,
  48491. setDragVisible,
  48492. context: table,
  48493. computedSumText,
  48494. computedEmptyText,
  48495. tableLayout,
  48496. scrollbarViewStyle,
  48497. scrollbarStyle,
  48498. scrollBarRef,
  48499. scrollTo,
  48500. setScrollLeft,
  48501. setScrollTop,
  48502. allowDragLastColumn: props2.allowDragLastColumn
  48503. };
  48504. }
  48505. });
  48506. function _sfc_render19(_ctx, _cache, $props, $setup, $data, $options) {
  48507. const _component_hColgroup = resolveComponent("hColgroup");
  48508. const _component_table_header = resolveComponent("table-header");
  48509. const _component_table_body = resolveComponent("table-body");
  48510. const _component_table_footer = resolveComponent("table-footer");
  48511. const _component_el_scrollbar = resolveComponent("el-scrollbar");
  48512. const _directive_mousewheel = resolveDirective("mousewheel");
  48513. return openBlock(), createElementBlock("div", {
  48514. ref: "tableWrapper",
  48515. class: normalizeClass([
  48516. {
  48517. [_ctx.ns.m("fit")]: _ctx.fit,
  48518. [_ctx.ns.m("striped")]: _ctx.stripe,
  48519. [_ctx.ns.m("border")]: _ctx.border || _ctx.isGroup,
  48520. [_ctx.ns.m("hidden")]: _ctx.isHidden,
  48521. [_ctx.ns.m("group")]: _ctx.isGroup,
  48522. [_ctx.ns.m("fluid-height")]: _ctx.maxHeight,
  48523. [_ctx.ns.m("scrollable-x")]: _ctx.layout.scrollX.value,
  48524. [_ctx.ns.m("scrollable-y")]: _ctx.layout.scrollY.value,
  48525. [_ctx.ns.m("enable-row-hover")]: !_ctx.store.states.isComplex.value,
  48526. [_ctx.ns.m("enable-row-transition")]: (_ctx.store.states.data.value || []).length !== 0 && (_ctx.store.states.data.value || []).length < 100,
  48527. "has-footer": _ctx.showSummary
  48528. },
  48529. _ctx.ns.m(_ctx.tableSize),
  48530. _ctx.className,
  48531. _ctx.ns.b(),
  48532. _ctx.ns.m(`layout-${_ctx.tableLayout}`)
  48533. ]),
  48534. style: normalizeStyle(_ctx.style),
  48535. "data-prefix": _ctx.ns.namespace.value,
  48536. onMouseleave: _ctx.handleMouseLeave
  48537. }, [
  48538. createBaseVNode("div", {
  48539. class: normalizeClass(_ctx.ns.e("inner-wrapper"))
  48540. }, [
  48541. createBaseVNode("div", {
  48542. ref: "hiddenColumns",
  48543. class: "hidden-columns"
  48544. }, [
  48545. renderSlot(_ctx.$slots, "default")
  48546. ], 512),
  48547. _ctx.showHeader && _ctx.tableLayout === "fixed" ? withDirectives((openBlock(), createElementBlock("div", {
  48548. key: 0,
  48549. ref: "headerWrapper",
  48550. class: normalizeClass(_ctx.ns.e("header-wrapper"))
  48551. }, [
  48552. createBaseVNode("table", {
  48553. ref: "tableHeader",
  48554. class: normalizeClass(_ctx.ns.e("header")),
  48555. style: normalizeStyle(_ctx.tableBodyStyles),
  48556. border: "0",
  48557. cellpadding: "0",
  48558. cellspacing: "0"
  48559. }, [
  48560. createVNode(_component_hColgroup, {
  48561. columns: _ctx.store.states.columns.value,
  48562. "table-layout": _ctx.tableLayout
  48563. }, null, 8, ["columns", "table-layout"]),
  48564. createVNode(_component_table_header, {
  48565. ref: "tableHeaderRef",
  48566. border: _ctx.border,
  48567. "default-sort": _ctx.defaultSort,
  48568. store: _ctx.store,
  48569. "append-filter-panel-to": _ctx.appendFilterPanelTo,
  48570. "allow-drag-last-column": _ctx.allowDragLastColumn,
  48571. onSetDragVisible: _ctx.setDragVisible
  48572. }, null, 8, ["border", "default-sort", "store", "append-filter-panel-to", "allow-drag-last-column", "onSetDragVisible"])
  48573. ], 6)
  48574. ], 2)), [
  48575. [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
  48576. ]) : createCommentVNode("v-if", true),
  48577. createBaseVNode("div", {
  48578. ref: "bodyWrapper",
  48579. class: normalizeClass(_ctx.ns.e("body-wrapper"))
  48580. }, [
  48581. createVNode(_component_el_scrollbar, {
  48582. ref: "scrollBarRef",
  48583. "view-style": _ctx.scrollbarViewStyle,
  48584. "wrap-style": _ctx.scrollbarStyle,
  48585. always: _ctx.scrollbarAlwaysOn,
  48586. tabindex: _ctx.scrollbarTabindex,
  48587. native: _ctx.nativeScrollbar,
  48588. onScroll: ($event) => _ctx.$emit("scroll", $event)
  48589. }, {
  48590. default: withCtx(() => [
  48591. createBaseVNode("table", {
  48592. ref: "tableBody",
  48593. class: normalizeClass(_ctx.ns.e("body")),
  48594. cellspacing: "0",
  48595. cellpadding: "0",
  48596. border: "0",
  48597. style: normalizeStyle({
  48598. width: _ctx.bodyWidth,
  48599. tableLayout: _ctx.tableLayout
  48600. })
  48601. }, [
  48602. createVNode(_component_hColgroup, {
  48603. columns: _ctx.store.states.columns.value,
  48604. "table-layout": _ctx.tableLayout
  48605. }, null, 8, ["columns", "table-layout"]),
  48606. _ctx.showHeader && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_header, {
  48607. key: 0,
  48608. ref: "tableHeaderRef",
  48609. class: normalizeClass(_ctx.ns.e("body-header")),
  48610. border: _ctx.border,
  48611. "default-sort": _ctx.defaultSort,
  48612. store: _ctx.store,
  48613. "append-filter-panel-to": _ctx.appendFilterPanelTo,
  48614. onSetDragVisible: _ctx.setDragVisible
  48615. }, null, 8, ["class", "border", "default-sort", "store", "append-filter-panel-to", "onSetDragVisible"])) : createCommentVNode("v-if", true),
  48616. createVNode(_component_table_body, {
  48617. context: _ctx.context,
  48618. highlight: _ctx.highlightCurrentRow,
  48619. "row-class-name": _ctx.rowClassName,
  48620. "tooltip-effect": _ctx.tooltipEffect,
  48621. "tooltip-options": _ctx.tooltipOptions,
  48622. "row-style": _ctx.rowStyle,
  48623. store: _ctx.store,
  48624. stripe: _ctx.stripe
  48625. }, null, 8, ["context", "highlight", "row-class-name", "tooltip-effect", "tooltip-options", "row-style", "store", "stripe"]),
  48626. _ctx.showSummary && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_footer, {
  48627. key: 1,
  48628. class: normalizeClass(_ctx.ns.e("body-footer")),
  48629. border: _ctx.border,
  48630. "default-sort": _ctx.defaultSort,
  48631. store: _ctx.store,
  48632. "sum-text": _ctx.computedSumText,
  48633. "summary-method": _ctx.summaryMethod
  48634. }, null, 8, ["class", "border", "default-sort", "store", "sum-text", "summary-method"])) : createCommentVNode("v-if", true)
  48635. ], 6),
  48636. _ctx.isEmpty ? (openBlock(), createElementBlock("div", {
  48637. key: 0,
  48638. ref: "emptyBlock",
  48639. style: normalizeStyle(_ctx.emptyBlockStyle),
  48640. class: normalizeClass(_ctx.ns.e("empty-block"))
  48641. }, [
  48642. createBaseVNode("span", {
  48643. class: normalizeClass(_ctx.ns.e("empty-text"))
  48644. }, [
  48645. renderSlot(_ctx.$slots, "empty", {}, () => [
  48646. createTextVNode(toDisplayString(_ctx.computedEmptyText), 1)
  48647. ])
  48648. ], 2)
  48649. ], 6)) : createCommentVNode("v-if", true),
  48650. _ctx.$slots.append ? (openBlock(), createElementBlock("div", {
  48651. key: 1,
  48652. ref: "appendWrapper",
  48653. class: normalizeClass(_ctx.ns.e("append-wrapper"))
  48654. }, [
  48655. renderSlot(_ctx.$slots, "append")
  48656. ], 2)) : createCommentVNode("v-if", true)
  48657. ]),
  48658. _: 3
  48659. }, 8, ["view-style", "wrap-style", "always", "tabindex", "native", "onScroll"])
  48660. ], 2),
  48661. _ctx.showSummary && _ctx.tableLayout === "fixed" ? withDirectives((openBlock(), createElementBlock("div", {
  48662. key: 1,
  48663. ref: "footerWrapper",
  48664. class: normalizeClass(_ctx.ns.e("footer-wrapper"))
  48665. }, [
  48666. createBaseVNode("table", {
  48667. class: normalizeClass(_ctx.ns.e("footer")),
  48668. cellspacing: "0",
  48669. cellpadding: "0",
  48670. border: "0",
  48671. style: normalizeStyle(_ctx.tableBodyStyles)
  48672. }, [
  48673. createVNode(_component_hColgroup, {
  48674. columns: _ctx.store.states.columns.value,
  48675. "table-layout": _ctx.tableLayout
  48676. }, null, 8, ["columns", "table-layout"]),
  48677. createVNode(_component_table_footer, {
  48678. border: _ctx.border,
  48679. "default-sort": _ctx.defaultSort,
  48680. store: _ctx.store,
  48681. "sum-text": _ctx.computedSumText,
  48682. "summary-method": _ctx.summaryMethod
  48683. }, null, 8, ["border", "default-sort", "store", "sum-text", "summary-method"])
  48684. ], 6)
  48685. ], 2)), [
  48686. [vShow, !_ctx.isEmpty],
  48687. [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
  48688. ]) : createCommentVNode("v-if", true),
  48689. _ctx.border || _ctx.isGroup ? (openBlock(), createElementBlock("div", {
  48690. key: 2,
  48691. class: normalizeClass(_ctx.ns.e("border-left-patch"))
  48692. }, null, 2)) : createCommentVNode("v-if", true)
  48693. ], 2),
  48694. withDirectives(createBaseVNode("div", {
  48695. ref: "resizeProxy",
  48696. class: normalizeClass(_ctx.ns.e("column-resize-proxy"))
  48697. }, null, 2), [
  48698. [vShow, _ctx.resizeProxyVisible]
  48699. ])
  48700. ], 46, ["data-prefix", "onMouseleave"]);
  48701. }
  48702. var Table = _export_sfc(_sfc_main127, [["render", _sfc_render19], ["__file", "table.vue"]]);
  48703. // node_modules/element-plus/es/components/table/src/config.mjs
  48704. var defaultClassNames = {
  48705. selection: "table-column--selection",
  48706. expand: "table__expand-column"
  48707. };
  48708. var cellStarts = {
  48709. default: {
  48710. order: ""
  48711. },
  48712. selection: {
  48713. width: 48,
  48714. minWidth: 48,
  48715. realWidth: 48,
  48716. order: ""
  48717. },
  48718. expand: {
  48719. width: 48,
  48720. minWidth: 48,
  48721. realWidth: 48,
  48722. order: ""
  48723. },
  48724. index: {
  48725. width: 48,
  48726. minWidth: 48,
  48727. realWidth: 48,
  48728. order: ""
  48729. }
  48730. };
  48731. var getDefaultClassName = (type4) => {
  48732. return defaultClassNames[type4] || "";
  48733. };
  48734. var cellForced = {
  48735. selection: {
  48736. renderHeader({
  48737. store,
  48738. column: column2
  48739. }) {
  48740. var _a2;
  48741. function isDisabled() {
  48742. return store.states.data.value && store.states.data.value.length === 0;
  48743. }
  48744. return h(ElCheckbox, {
  48745. disabled: isDisabled(),
  48746. size: store.states.tableSize.value,
  48747. indeterminate: store.states.selection.value.length > 0 && !store.states.isAllSelected.value,
  48748. "onUpdate:modelValue": (_a2 = store.toggleAllSelection) != null ? _a2 : void 0,
  48749. modelValue: store.states.isAllSelected.value,
  48750. ariaLabel: column2.label
  48751. });
  48752. },
  48753. renderCell({
  48754. row,
  48755. column: column2,
  48756. store,
  48757. $index
  48758. }) {
  48759. return h(ElCheckbox, {
  48760. disabled: column2.selectable ? !column2.selectable.call(null, row, $index) : false,
  48761. size: store.states.tableSize.value,
  48762. onChange: () => {
  48763. store.commit("rowSelectedChanged", row);
  48764. },
  48765. onClick: (event) => event.stopPropagation(),
  48766. modelValue: store.isSelected(row),
  48767. ariaLabel: column2.label
  48768. });
  48769. },
  48770. sortable: false,
  48771. resizable: false
  48772. },
  48773. index: {
  48774. renderHeader({
  48775. column: column2
  48776. }) {
  48777. return column2.label || "#";
  48778. },
  48779. renderCell({
  48780. column: column2,
  48781. $index
  48782. }) {
  48783. let i = $index + 1;
  48784. const index = column2.index;
  48785. if (isNumber2(index)) {
  48786. i = $index + index;
  48787. } else if (isFunction(index)) {
  48788. i = index($index);
  48789. }
  48790. return h("div", {}, [i]);
  48791. },
  48792. sortable: false
  48793. },
  48794. expand: {
  48795. renderHeader({
  48796. column: column2
  48797. }) {
  48798. return column2.label || "";
  48799. },
  48800. renderCell({
  48801. column: column2,
  48802. row,
  48803. store,
  48804. expanded
  48805. }) {
  48806. const { ns } = store;
  48807. const classes = [ns.e("expand-icon")];
  48808. if (!column2.renderExpand && expanded) {
  48809. classes.push(ns.em("expand-icon", "expanded"));
  48810. }
  48811. const callback = function(e) {
  48812. e.stopPropagation();
  48813. store.toggleRowExpansion(row);
  48814. };
  48815. return h("div", {
  48816. class: classes,
  48817. onClick: callback
  48818. }, {
  48819. default: () => {
  48820. if (column2.renderExpand) {
  48821. return [
  48822. column2.renderExpand({
  48823. expanded
  48824. })
  48825. ];
  48826. }
  48827. return [
  48828. h(ElIcon, null, {
  48829. default: () => {
  48830. return [h(arrow_right_default)];
  48831. }
  48832. })
  48833. ];
  48834. }
  48835. });
  48836. },
  48837. sortable: false,
  48838. resizable: false
  48839. }
  48840. };
  48841. function defaultRenderCell({
  48842. row,
  48843. column: column2,
  48844. $index
  48845. }) {
  48846. var _a2;
  48847. const property2 = column2.property;
  48848. const value = property2 && getProp(row, property2).value;
  48849. if (column2 && column2.formatter) {
  48850. return column2.formatter(row, column2, value, $index);
  48851. }
  48852. return ((_a2 = value == null ? void 0 : value.toString) == null ? void 0 : _a2.call(value)) || "";
  48853. }
  48854. function treeCellPrefix({
  48855. row,
  48856. treeNode,
  48857. store
  48858. }, createPlaceholder = false) {
  48859. const { ns } = store;
  48860. if (!treeNode) {
  48861. if (createPlaceholder) {
  48862. return [
  48863. h("span", {
  48864. class: ns.e("placeholder")
  48865. })
  48866. ];
  48867. }
  48868. return null;
  48869. }
  48870. const ele = [];
  48871. const callback = function(e) {
  48872. e.stopPropagation();
  48873. if (treeNode.loading) {
  48874. return;
  48875. }
  48876. store.loadOrToggle(row);
  48877. };
  48878. if (treeNode.indent) {
  48879. ele.push(h("span", {
  48880. class: ns.e("indent"),
  48881. style: { "padding-left": `${treeNode.indent}px` }
  48882. }));
  48883. }
  48884. if (isBoolean2(treeNode.expanded) && !treeNode.noLazyChildren) {
  48885. const expandClasses = [
  48886. ns.e("expand-icon"),
  48887. treeNode.expanded ? ns.em("expand-icon", "expanded") : ""
  48888. ];
  48889. let icon = arrow_right_default;
  48890. if (treeNode.loading) {
  48891. icon = loading_default;
  48892. }
  48893. ele.push(h("div", {
  48894. class: expandClasses,
  48895. onClick: callback
  48896. }, {
  48897. default: () => {
  48898. return [
  48899. h(ElIcon, { class: ns.is("loading", treeNode.loading) }, {
  48900. default: () => [h(icon)]
  48901. })
  48902. ];
  48903. }
  48904. }));
  48905. } else {
  48906. ele.push(h("span", {
  48907. class: ns.e("placeholder")
  48908. }));
  48909. }
  48910. return ele;
  48911. }
  48912. // node_modules/element-plus/es/components/table/src/table-column/watcher-helper.mjs
  48913. function getAllAliases(props2, aliases) {
  48914. return props2.reduce((prev, cur) => {
  48915. prev[cur] = cur;
  48916. return prev;
  48917. }, aliases);
  48918. }
  48919. function useWatcher2(owner, props_) {
  48920. const instance = getCurrentInstance();
  48921. const registerComplexWatchers = () => {
  48922. const props2 = ["fixed"];
  48923. const aliases = {
  48924. realWidth: "width",
  48925. realMinWidth: "minWidth"
  48926. };
  48927. const allAliases = getAllAliases(props2, aliases);
  48928. Object.keys(allAliases).forEach((key) => {
  48929. const columnKey = aliases[key];
  48930. if (hasOwn(props_, columnKey)) {
  48931. watch(() => props_[columnKey], (newVal) => {
  48932. let value = newVal;
  48933. if (columnKey === "width" && key === "realWidth") {
  48934. value = parseWidth(newVal);
  48935. }
  48936. if (columnKey === "minWidth" && key === "realMinWidth") {
  48937. value = parseMinWidth(newVal);
  48938. }
  48939. instance.columnConfig.value[columnKey] = value;
  48940. instance.columnConfig.value[key] = value;
  48941. const updateColumns = columnKey === "fixed";
  48942. owner.value.store.scheduleLayout(updateColumns);
  48943. });
  48944. }
  48945. });
  48946. };
  48947. const registerNormalWatchers = () => {
  48948. const props2 = [
  48949. "label",
  48950. "filters",
  48951. "filterMultiple",
  48952. "filteredValue",
  48953. "sortable",
  48954. "index",
  48955. "formatter",
  48956. "className",
  48957. "labelClassName",
  48958. "filterClassName",
  48959. "showOverflowTooltip",
  48960. "tooltipFormatter",
  48961. "resizable"
  48962. ];
  48963. const parentProps = ["showOverflowTooltip"];
  48964. const aliases = {
  48965. property: "prop",
  48966. align: "realAlign",
  48967. headerAlign: "realHeaderAlign"
  48968. };
  48969. const allAliases = getAllAliases(props2, aliases);
  48970. Object.keys(allAliases).forEach((key) => {
  48971. const columnKey = aliases[key];
  48972. if (hasOwn(props_, columnKey)) {
  48973. watch(() => props_[columnKey], (newVal) => {
  48974. instance.columnConfig.value[key] = newVal;
  48975. });
  48976. }
  48977. });
  48978. parentProps.forEach((key) => {
  48979. if (hasOwn(owner.value.props, key)) {
  48980. watch(() => owner.value.props[key], (newVal) => {
  48981. instance.columnConfig.value[key] = newVal;
  48982. });
  48983. }
  48984. });
  48985. };
  48986. return {
  48987. registerComplexWatchers,
  48988. registerNormalWatchers
  48989. };
  48990. }
  48991. // node_modules/element-plus/es/components/table/src/table-column/render-helper.mjs
  48992. function useRender2(props2, slots, owner) {
  48993. const instance = getCurrentInstance();
  48994. const columnId = ref("");
  48995. const isSubColumn = ref(false);
  48996. const realAlign = ref();
  48997. const realHeaderAlign = ref();
  48998. const ns = useNamespace("table");
  48999. watchEffect(() => {
  49000. realAlign.value = props2.align ? `is-${props2.align}` : null;
  49001. realAlign.value;
  49002. });
  49003. watchEffect(() => {
  49004. realHeaderAlign.value = props2.headerAlign ? `is-${props2.headerAlign}` : realAlign.value;
  49005. realHeaderAlign.value;
  49006. });
  49007. const columnOrTableParent = computed(() => {
  49008. let parent2 = instance.vnode.vParent || instance.parent;
  49009. while (parent2 && !parent2.tableId && !parent2.columnId) {
  49010. parent2 = parent2.vnode.vParent || parent2.parent;
  49011. }
  49012. return parent2;
  49013. });
  49014. const hasTreeColumn = computed(() => {
  49015. const { store } = instance.parent;
  49016. if (!store)
  49017. return false;
  49018. const { treeData } = store.states;
  49019. const treeDataValue = treeData.value;
  49020. return treeDataValue && Object.keys(treeDataValue).length > 0;
  49021. });
  49022. const realWidth = ref(parseWidth(props2.width));
  49023. const realMinWidth = ref(parseMinWidth(props2.minWidth));
  49024. const setColumnWidth = (column2) => {
  49025. if (realWidth.value)
  49026. column2.width = realWidth.value;
  49027. if (realMinWidth.value) {
  49028. column2.minWidth = realMinWidth.value;
  49029. }
  49030. if (!realWidth.value && realMinWidth.value) {
  49031. column2.width = void 0;
  49032. }
  49033. if (!column2.minWidth) {
  49034. column2.minWidth = 80;
  49035. }
  49036. column2.realWidth = Number(isUndefined2(column2.width) ? column2.minWidth : column2.width);
  49037. return column2;
  49038. };
  49039. const setColumnForcedProps = (column2) => {
  49040. const type4 = column2.type;
  49041. const source = cellForced[type4] || {};
  49042. Object.keys(source).forEach((prop) => {
  49043. const value = source[prop];
  49044. if (prop !== "className" && !isUndefined2(value)) {
  49045. column2[prop] = value;
  49046. }
  49047. });
  49048. const className = getDefaultClassName(type4);
  49049. if (className) {
  49050. const forceClass = `${unref(ns.namespace)}-${className}`;
  49051. column2.className = column2.className ? `${column2.className} ${forceClass}` : forceClass;
  49052. }
  49053. return column2;
  49054. };
  49055. const checkSubColumn = (children) => {
  49056. if (isArray(children)) {
  49057. children.forEach((child) => check(child));
  49058. } else {
  49059. check(children);
  49060. }
  49061. function check(item) {
  49062. var _a2;
  49063. if (((_a2 = item == null ? void 0 : item.type) == null ? void 0 : _a2.name) === "ElTableColumn") {
  49064. item.vParent = instance;
  49065. }
  49066. }
  49067. };
  49068. const setColumnRenders = (column2) => {
  49069. if (props2.renderHeader) {
  49070. debugWarn("TableColumn", "Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.");
  49071. } else if (column2.type !== "selection") {
  49072. column2.renderHeader = (scope) => {
  49073. instance.columnConfig.value["label"];
  49074. return renderSlot(slots, "header", scope, () => [column2.label]);
  49075. };
  49076. }
  49077. if (slots["filter-icon"]) {
  49078. column2.renderFilterIcon = (scope) => {
  49079. return renderSlot(slots, "filter-icon", scope);
  49080. };
  49081. }
  49082. if (slots.expand) {
  49083. column2.renderExpand = (scope) => {
  49084. return renderSlot(slots, "expand", scope);
  49085. };
  49086. }
  49087. let originRenderCell = column2.renderCell;
  49088. if (column2.type === "expand") {
  49089. column2.renderCell = (data) => h("div", {
  49090. class: "cell"
  49091. }, [originRenderCell(data)]);
  49092. owner.value.renderExpanded = (row) => {
  49093. return slots.default ? slots.default(row) : slots.default;
  49094. };
  49095. } else {
  49096. originRenderCell = originRenderCell || defaultRenderCell;
  49097. column2.renderCell = (data) => {
  49098. let children = null;
  49099. if (slots.default) {
  49100. const vnodes = slots.default(data);
  49101. children = vnodes.some((v2) => v2.type !== Comment) ? vnodes : originRenderCell(data);
  49102. } else {
  49103. children = originRenderCell(data);
  49104. }
  49105. const { columns: columns2 } = owner.value.store.states;
  49106. const firstUserColumnIndex = columns2.value.findIndex((item) => item.type === "default");
  49107. const shouldCreatePlaceholder = hasTreeColumn.value && data.cellIndex === firstUserColumnIndex;
  49108. const prefix = treeCellPrefix(data, shouldCreatePlaceholder);
  49109. const props22 = {
  49110. class: "cell",
  49111. style: {}
  49112. };
  49113. if (column2.showOverflowTooltip) {
  49114. props22.class = `${props22.class} ${unref(ns.namespace)}-tooltip`;
  49115. props22.style = {
  49116. width: `${(data.column.realWidth || Number(data.column.width)) - 1}px`
  49117. };
  49118. }
  49119. checkSubColumn(children);
  49120. return h("div", props22, [prefix, children]);
  49121. };
  49122. }
  49123. return column2;
  49124. };
  49125. const getPropsData = (...propsKey) => {
  49126. return propsKey.reduce((prev, cur) => {
  49127. if (isArray(cur)) {
  49128. cur.forEach((key) => {
  49129. prev[key] = props2[key];
  49130. });
  49131. }
  49132. return prev;
  49133. }, {});
  49134. };
  49135. const getColumnElIndex = (children, child) => {
  49136. return Array.prototype.indexOf.call(children, child);
  49137. };
  49138. const updateColumnOrder = () => {
  49139. owner.value.store.commit("updateColumnOrder", instance.columnConfig.value);
  49140. };
  49141. return {
  49142. columnId,
  49143. realAlign,
  49144. isSubColumn,
  49145. realHeaderAlign,
  49146. columnOrTableParent,
  49147. setColumnWidth,
  49148. setColumnForcedProps,
  49149. setColumnRenders,
  49150. getPropsData,
  49151. getColumnElIndex,
  49152. updateColumnOrder
  49153. };
  49154. }
  49155. // node_modules/element-plus/es/components/table/src/table-column/defaults.mjs
  49156. var defaultProps4 = {
  49157. type: {
  49158. type: String,
  49159. default: "default"
  49160. },
  49161. label: String,
  49162. className: String,
  49163. labelClassName: String,
  49164. property: String,
  49165. prop: String,
  49166. width: {
  49167. type: [String, Number],
  49168. default: ""
  49169. },
  49170. minWidth: {
  49171. type: [String, Number],
  49172. default: ""
  49173. },
  49174. renderHeader: Function,
  49175. sortable: {
  49176. type: [Boolean, String],
  49177. default: false
  49178. },
  49179. sortMethod: Function,
  49180. sortBy: [String, Function, Array],
  49181. resizable: {
  49182. type: Boolean,
  49183. default: true
  49184. },
  49185. columnKey: String,
  49186. align: String,
  49187. headerAlign: String,
  49188. showOverflowTooltip: {
  49189. type: [Boolean, Object],
  49190. default: void 0
  49191. },
  49192. tooltipFormatter: Function,
  49193. fixed: [Boolean, String],
  49194. formatter: Function,
  49195. selectable: Function,
  49196. reserveSelection: Boolean,
  49197. filterMethod: Function,
  49198. filteredValue: Array,
  49199. filters: Array,
  49200. filterPlacement: String,
  49201. filterMultiple: {
  49202. type: Boolean,
  49203. default: true
  49204. },
  49205. filterClassName: String,
  49206. index: [Number, Function],
  49207. sortOrders: {
  49208. type: Array,
  49209. default: () => {
  49210. return ["ascending", "descending", null];
  49211. },
  49212. validator: (val) => {
  49213. return val.every((order) => ["ascending", "descending", null].includes(order));
  49214. }
  49215. }
  49216. };
  49217. // node_modules/element-plus/es/components/table/src/table-column/index.mjs
  49218. var columnIdSeed = 1;
  49219. var ElTableColumn = defineComponent({
  49220. name: "ElTableColumn",
  49221. components: {
  49222. ElCheckbox
  49223. },
  49224. props: defaultProps4,
  49225. setup(props2, { slots }) {
  49226. const instance = getCurrentInstance();
  49227. const columnConfig = ref({});
  49228. const owner = computed(() => {
  49229. let parent22 = instance.parent;
  49230. while (parent22 && !parent22.tableId) {
  49231. parent22 = parent22.parent;
  49232. }
  49233. return parent22;
  49234. });
  49235. const { registerNormalWatchers, registerComplexWatchers } = useWatcher2(owner, props2);
  49236. const {
  49237. columnId,
  49238. isSubColumn,
  49239. realHeaderAlign,
  49240. columnOrTableParent,
  49241. setColumnWidth,
  49242. setColumnForcedProps,
  49243. setColumnRenders,
  49244. getPropsData,
  49245. getColumnElIndex,
  49246. realAlign,
  49247. updateColumnOrder
  49248. } = useRender2(props2, slots, owner);
  49249. const parent2 = columnOrTableParent.value;
  49250. columnId.value = `${"tableId" in parent2 && parent2.tableId || "columnId" in parent2 && parent2.columnId}_column_${columnIdSeed++}`;
  49251. onBeforeMount(() => {
  49252. isSubColumn.value = owner.value !== parent2;
  49253. const type4 = props2.type || "default";
  49254. const sortable = props2.sortable === "" ? true : props2.sortable;
  49255. const showOverflowTooltip = type4 === "selection" ? false : isUndefined2(props2.showOverflowTooltip) ? parent2.props.showOverflowTooltip : props2.showOverflowTooltip;
  49256. const tooltipFormatter = isUndefined2(props2.tooltipFormatter) ? parent2.props.tooltipFormatter : props2.tooltipFormatter;
  49257. const defaults2 = {
  49258. ...cellStarts[type4],
  49259. id: columnId.value,
  49260. type: type4,
  49261. property: props2.prop || props2.property,
  49262. align: realAlign,
  49263. headerAlign: realHeaderAlign,
  49264. showOverflowTooltip,
  49265. tooltipFormatter,
  49266. filterable: props2.filters || props2.filterMethod,
  49267. filteredValue: [],
  49268. filterPlacement: "",
  49269. filterClassName: "",
  49270. isColumnGroup: false,
  49271. isSubColumn: false,
  49272. filterOpened: false,
  49273. sortable,
  49274. index: props2.index,
  49275. rawColumnKey: instance.vnode.key
  49276. };
  49277. const basicProps = [
  49278. "columnKey",
  49279. "label",
  49280. "className",
  49281. "labelClassName",
  49282. "type",
  49283. "renderHeader",
  49284. "formatter",
  49285. "fixed",
  49286. "resizable"
  49287. ];
  49288. const sortProps = ["sortMethod", "sortBy", "sortOrders"];
  49289. const selectProps2 = ["selectable", "reserveSelection"];
  49290. const filterProps = [
  49291. "filterMethod",
  49292. "filters",
  49293. "filterMultiple",
  49294. "filterOpened",
  49295. "filteredValue",
  49296. "filterPlacement",
  49297. "filterClassName"
  49298. ];
  49299. let column2 = getPropsData(basicProps, sortProps, selectProps2, filterProps);
  49300. column2 = mergeOptions(defaults2, column2);
  49301. const chains = compose(setColumnRenders, setColumnWidth, setColumnForcedProps);
  49302. column2 = chains(column2);
  49303. columnConfig.value = column2;
  49304. registerNormalWatchers();
  49305. registerComplexWatchers();
  49306. });
  49307. onMounted(() => {
  49308. var _a2, _b;
  49309. const parent22 = columnOrTableParent.value;
  49310. const children = isSubColumn.value ? (_a2 = parent22.vnode.el) == null ? void 0 : _a2.children : (_b = parent22.refs.hiddenColumns) == null ? void 0 : _b.children;
  49311. const getColumnIndex = () => getColumnElIndex(children || [], instance.vnode.el);
  49312. columnConfig.value.getColumnIndex = getColumnIndex;
  49313. const columnIndex = getColumnIndex();
  49314. columnIndex > -1 && owner.value.store.commit("insertColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent22 && parent22.columnConfig.value : null, updateColumnOrder);
  49315. });
  49316. onBeforeUnmount(() => {
  49317. const getColumnIndex = columnConfig.value.getColumnIndex;
  49318. const columnIndex = getColumnIndex ? getColumnIndex() : -1;
  49319. columnIndex > -1 && owner.value.store.commit("removeColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent2 && parent2.columnConfig.value : null, updateColumnOrder);
  49320. });
  49321. instance.columnId = columnId.value;
  49322. instance.columnConfig = columnConfig;
  49323. return;
  49324. },
  49325. render() {
  49326. var _a2, _b, _c;
  49327. try {
  49328. const renderDefault = (_b = (_a2 = this.$slots).default) == null ? void 0 : _b.call(_a2, {
  49329. row: {},
  49330. column: {},
  49331. $index: -1
  49332. });
  49333. const children = [];
  49334. if (isArray(renderDefault)) {
  49335. for (const childNode of renderDefault) {
  49336. if (((_c = childNode.type) == null ? void 0 : _c.name) === "ElTableColumn" || childNode.shapeFlag & 2) {
  49337. children.push(childNode);
  49338. } else if (childNode.type === Fragment && isArray(childNode.children)) {
  49339. childNode.children.forEach((vnode2) => {
  49340. if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString(vnode2 == null ? void 0 : vnode2.children)) {
  49341. children.push(vnode2);
  49342. }
  49343. });
  49344. }
  49345. }
  49346. }
  49347. const vnode = h("div", children);
  49348. return vnode;
  49349. } catch (e) {
  49350. return h("div", []);
  49351. }
  49352. }
  49353. });
  49354. // node_modules/element-plus/es/components/table/index.mjs
  49355. var ElTable = withInstall(Table, {
  49356. TableColumn: ElTableColumn
  49357. });
  49358. var ElTableColumn2 = withNoopInstall(ElTableColumn);
  49359. // node_modules/element-plus/es/components/table-v2/src/constants.mjs
  49360. var SortOrder = ((SortOrder2) => {
  49361. SortOrder2["ASC"] = "asc";
  49362. SortOrder2["DESC"] = "desc";
  49363. return SortOrder2;
  49364. })(SortOrder || {});
  49365. var Alignment = ((Alignment2) => {
  49366. Alignment2["LEFT"] = "left";
  49367. Alignment2["CENTER"] = "center";
  49368. Alignment2["RIGHT"] = "right";
  49369. return Alignment2;
  49370. })(Alignment || {});
  49371. var FixedDir = ((FixedDir2) => {
  49372. FixedDir2["LEFT"] = "left";
  49373. FixedDir2["RIGHT"] = "right";
  49374. return FixedDir2;
  49375. })(FixedDir || {});
  49376. var oppositeOrderMap = {
  49377. [
  49378. "asc"
  49379. /* ASC */
  49380. ]: "desc",
  49381. [
  49382. "desc"
  49383. /* DESC */
  49384. ]: "asc"
  49385. /* ASC */
  49386. };
  49387. // node_modules/element-plus/es/components/table-v2/src/private.mjs
  49388. var placeholderSign = Symbol("placeholder");
  49389. // node_modules/element-plus/es/components/table-v2/src/composables/utils.mjs
  49390. var calcColumnStyle = (column2, fixedColumn, fixed) => {
  49391. var _a2;
  49392. const flex = {
  49393. flexGrow: 0,
  49394. flexShrink: 0,
  49395. ...fixed ? {} : {
  49396. flexGrow: column2.flexGrow || 0,
  49397. flexShrink: column2.flexShrink || 1
  49398. }
  49399. };
  49400. if (!fixed) {
  49401. flex.flexShrink = 1;
  49402. }
  49403. const style = {
  49404. ...(_a2 = column2.style) != null ? _a2 : {},
  49405. ...flex,
  49406. flexBasis: "auto",
  49407. width: column2.width
  49408. };
  49409. if (!fixedColumn) {
  49410. if (column2.maxWidth)
  49411. style.maxWidth = column2.maxWidth;
  49412. if (column2.minWidth)
  49413. style.minWidth = column2.minWidth;
  49414. }
  49415. return style;
  49416. };
  49417. // node_modules/element-plus/es/components/table-v2/src/composables/use-columns.mjs
  49418. function useColumns(props2, columns2, fixed) {
  49419. const _columns = computed(() => unref(columns2).map((column2, index) => {
  49420. var _a2, _b;
  49421. return {
  49422. ...column2,
  49423. key: (_b = (_a2 = column2.key) != null ? _a2 : column2.dataKey) != null ? _b : index
  49424. };
  49425. }));
  49426. const visibleColumns = computed(() => {
  49427. return unref(_columns).filter((column2) => !column2.hidden);
  49428. });
  49429. const fixedColumnsOnLeft = computed(() => unref(visibleColumns).filter((column2) => column2.fixed === "left" || column2.fixed === true));
  49430. const fixedColumnsOnRight = computed(() => unref(visibleColumns).filter((column2) => column2.fixed === "right"));
  49431. const normalColumns = computed(() => unref(visibleColumns).filter((column2) => !column2.fixed));
  49432. const mainColumns = computed(() => {
  49433. const ret = [];
  49434. unref(fixedColumnsOnLeft).forEach((column2) => {
  49435. ret.push({
  49436. ...column2,
  49437. placeholderSign
  49438. });
  49439. });
  49440. unref(normalColumns).forEach((column2) => {
  49441. ret.push(column2);
  49442. });
  49443. unref(fixedColumnsOnRight).forEach((column2) => {
  49444. ret.push({
  49445. ...column2,
  49446. placeholderSign
  49447. });
  49448. });
  49449. return ret;
  49450. });
  49451. const hasFixedColumns = computed(() => {
  49452. return unref(fixedColumnsOnLeft).length || unref(fixedColumnsOnRight).length;
  49453. });
  49454. const columnsStyles = computed(() => {
  49455. return unref(_columns).reduce((style, column2) => {
  49456. style[column2.key] = calcColumnStyle(column2, unref(fixed), props2.fixed);
  49457. return style;
  49458. }, {});
  49459. });
  49460. const columnsTotalWidth = computed(() => {
  49461. return unref(visibleColumns).reduce((width, column2) => width + column2.width, 0);
  49462. });
  49463. const getColumn = (key) => {
  49464. return unref(_columns).find((column2) => column2.key === key);
  49465. };
  49466. const getColumnStyle = (key) => {
  49467. return unref(columnsStyles)[key];
  49468. };
  49469. const updateColumnWidth = (column2, width) => {
  49470. column2.width = width;
  49471. };
  49472. function onColumnSorted(e) {
  49473. var _a2;
  49474. const { key } = e.currentTarget.dataset;
  49475. if (!key)
  49476. return;
  49477. const { sortState, sortBy: sortBy2 } = props2;
  49478. let order = SortOrder.ASC;
  49479. if (isObject(sortState)) {
  49480. order = oppositeOrderMap[sortState[key]];
  49481. } else {
  49482. order = oppositeOrderMap[sortBy2.order];
  49483. }
  49484. (_a2 = props2.onColumnSort) == null ? void 0 : _a2.call(props2, { column: getColumn(key), key, order });
  49485. }
  49486. return {
  49487. columns: _columns,
  49488. columnsStyles,
  49489. columnsTotalWidth,
  49490. fixedColumnsOnLeft,
  49491. fixedColumnsOnRight,
  49492. hasFixedColumns,
  49493. mainColumns,
  49494. normalColumns,
  49495. visibleColumns,
  49496. getColumn,
  49497. getColumnStyle,
  49498. updateColumnWidth,
  49499. onColumnSorted
  49500. };
  49501. }
  49502. // node_modules/element-plus/es/components/table-v2/src/composables/use-scrollbar.mjs
  49503. var useScrollbar2 = (props2, {
  49504. mainTableRef,
  49505. leftTableRef,
  49506. rightTableRef,
  49507. onMaybeEndReached
  49508. }) => {
  49509. const scrollPos = ref({ scrollLeft: 0, scrollTop: 0 });
  49510. function doScroll(params) {
  49511. var _a2, _b, _c;
  49512. const { scrollTop } = params;
  49513. (_a2 = mainTableRef.value) == null ? void 0 : _a2.scrollTo(params);
  49514. (_b = leftTableRef.value) == null ? void 0 : _b.scrollToTop(scrollTop);
  49515. (_c = rightTableRef.value) == null ? void 0 : _c.scrollToTop(scrollTop);
  49516. }
  49517. function scrollTo(params) {
  49518. scrollPos.value = params;
  49519. doScroll(params);
  49520. }
  49521. function scrollToTop(scrollTop) {
  49522. scrollPos.value.scrollTop = scrollTop;
  49523. doScroll(unref(scrollPos));
  49524. }
  49525. function scrollToLeft(scrollLeft) {
  49526. var _a2, _b;
  49527. scrollPos.value.scrollLeft = scrollLeft;
  49528. (_b = (_a2 = mainTableRef.value) == null ? void 0 : _a2.scrollTo) == null ? void 0 : _b.call(_a2, unref(scrollPos));
  49529. }
  49530. function onScroll(params) {
  49531. var _a2;
  49532. scrollTo(params);
  49533. (_a2 = props2.onScroll) == null ? void 0 : _a2.call(props2, params);
  49534. }
  49535. function onVerticalScroll({ scrollTop }) {
  49536. const { scrollTop: currentScrollTop } = unref(scrollPos);
  49537. if (scrollTop !== currentScrollTop)
  49538. scrollToTop(scrollTop);
  49539. }
  49540. function scrollToRow(row, strategy = "auto") {
  49541. var _a2;
  49542. (_a2 = mainTableRef.value) == null ? void 0 : _a2.scrollToRow(row, strategy);
  49543. }
  49544. watch(() => unref(scrollPos).scrollTop, (cur, prev) => {
  49545. if (cur > prev)
  49546. onMaybeEndReached();
  49547. });
  49548. return {
  49549. scrollPos,
  49550. scrollTo,
  49551. scrollToLeft,
  49552. scrollToTop,
  49553. scrollToRow,
  49554. onScroll,
  49555. onVerticalScroll
  49556. };
  49557. };
  49558. // node_modules/element-plus/es/components/table-v2/src/composables/use-row.mjs
  49559. var useRow = (props2, {
  49560. mainTableRef,
  49561. leftTableRef,
  49562. rightTableRef,
  49563. tableInstance,
  49564. ns,
  49565. isScrolling
  49566. }) => {
  49567. const vm = getCurrentInstance();
  49568. const { emit } = vm;
  49569. const isResetting = shallowRef(false);
  49570. const expandedRowKeys = ref(props2.defaultExpandedRowKeys || []);
  49571. const lastRenderedRowIndex = ref(-1);
  49572. const resetIndex = shallowRef(null);
  49573. const rowHeights = ref({});
  49574. const pendingRowHeights = ref({});
  49575. const leftTableHeights = shallowRef({});
  49576. const mainTableHeights = shallowRef({});
  49577. const rightTableHeights = shallowRef({});
  49578. const isDynamic = computed(() => isNumber2(props2.estimatedRowHeight));
  49579. function onRowsRendered(params) {
  49580. var _a2;
  49581. (_a2 = props2.onRowsRendered) == null ? void 0 : _a2.call(props2, params);
  49582. if (params.rowCacheEnd > unref(lastRenderedRowIndex)) {
  49583. lastRenderedRowIndex.value = params.rowCacheEnd;
  49584. }
  49585. }
  49586. function onRowHovered({ hovered, rowKey: rowKey2 }) {
  49587. if (isScrolling.value) {
  49588. return;
  49589. }
  49590. const tableRoot = tableInstance.vnode.el;
  49591. const rows = tableRoot.querySelectorAll(`[rowkey="${String(rowKey2)}"]`);
  49592. rows.forEach((row) => {
  49593. if (hovered) {
  49594. row.classList.add(ns.is("hovered"));
  49595. } else {
  49596. row.classList.remove(ns.is("hovered"));
  49597. }
  49598. });
  49599. }
  49600. function onRowExpanded({
  49601. expanded,
  49602. rowData,
  49603. rowIndex,
  49604. rowKey: rowKey2
  49605. }) {
  49606. var _a2, _b;
  49607. const _expandedRowKeys = [...unref(expandedRowKeys)];
  49608. const currentKeyIndex = _expandedRowKeys.indexOf(rowKey2);
  49609. if (expanded) {
  49610. if (currentKeyIndex === -1)
  49611. _expandedRowKeys.push(rowKey2);
  49612. } else {
  49613. if (currentKeyIndex > -1)
  49614. _expandedRowKeys.splice(currentKeyIndex, 1);
  49615. }
  49616. expandedRowKeys.value = _expandedRowKeys;
  49617. emit("update:expandedRowKeys", _expandedRowKeys);
  49618. (_a2 = props2.onRowExpand) == null ? void 0 : _a2.call(props2, {
  49619. expanded,
  49620. rowData,
  49621. rowIndex,
  49622. rowKey: rowKey2
  49623. });
  49624. (_b = props2.onExpandedRowsChange) == null ? void 0 : _b.call(props2, _expandedRowKeys);
  49625. const tableRoot = tableInstance.vnode.el;
  49626. const hoverRow = tableRoot.querySelector(`.${ns.is("hovered")}[rowkey="${String(rowKey2)}"]`);
  49627. if (hoverRow) {
  49628. nextTick(() => onRowHovered({ hovered: true, rowKey: rowKey2 }));
  49629. }
  49630. }
  49631. const flushingRowHeights = debounce_default(() => {
  49632. var _a2, _b, _c, _d;
  49633. isResetting.value = true;
  49634. rowHeights.value = { ...unref(rowHeights), ...unref(pendingRowHeights) };
  49635. resetAfterIndex(unref(resetIndex), false);
  49636. pendingRowHeights.value = {};
  49637. resetIndex.value = null;
  49638. (_a2 = mainTableRef.value) == null ? void 0 : _a2.forceUpdate();
  49639. (_b = leftTableRef.value) == null ? void 0 : _b.forceUpdate();
  49640. (_c = rightTableRef.value) == null ? void 0 : _c.forceUpdate();
  49641. (_d = vm.proxy) == null ? void 0 : _d.$forceUpdate();
  49642. isResetting.value = false;
  49643. }, 0);
  49644. function resetAfterIndex(index, forceUpdate = false) {
  49645. if (!unref(isDynamic))
  49646. return;
  49647. [mainTableRef, leftTableRef, rightTableRef].forEach((tableRef) => {
  49648. const table = unref(tableRef);
  49649. if (table)
  49650. table.resetAfterRowIndex(index, forceUpdate);
  49651. });
  49652. }
  49653. function resetHeights(rowKey2, height, rowIdx) {
  49654. const resetIdx = unref(resetIndex);
  49655. if (resetIdx === null) {
  49656. resetIndex.value = rowIdx;
  49657. } else {
  49658. if (resetIdx > rowIdx) {
  49659. resetIndex.value = rowIdx;
  49660. }
  49661. }
  49662. pendingRowHeights.value[rowKey2] = height;
  49663. }
  49664. function onRowHeightChange({ rowKey: rowKey2, height, rowIndex }, fixedDir) {
  49665. if (!fixedDir) {
  49666. mainTableHeights.value[rowKey2] = height;
  49667. } else {
  49668. if (fixedDir === FixedDir.RIGHT) {
  49669. rightTableHeights.value[rowKey2] = height;
  49670. } else {
  49671. leftTableHeights.value[rowKey2] = height;
  49672. }
  49673. }
  49674. const maximumHeight = Math.max(...[leftTableHeights, rightTableHeights, mainTableHeights].map((records) => records.value[rowKey2] || 0));
  49675. if (unref(rowHeights)[rowKey2] !== maximumHeight) {
  49676. resetHeights(rowKey2, maximumHeight, rowIndex);
  49677. flushingRowHeights();
  49678. }
  49679. }
  49680. return {
  49681. expandedRowKeys,
  49682. lastRenderedRowIndex,
  49683. isDynamic,
  49684. isResetting,
  49685. rowHeights,
  49686. resetAfterIndex,
  49687. onRowExpanded,
  49688. onRowHovered,
  49689. onRowsRendered,
  49690. onRowHeightChange
  49691. };
  49692. };
  49693. // node_modules/element-plus/es/components/table-v2/src/composables/use-data.mjs
  49694. var useData = (props2, { expandedRowKeys, lastRenderedRowIndex, resetAfterIndex }) => {
  49695. const depthMap = ref({});
  49696. const flattenedData = computed(() => {
  49697. const depths = {};
  49698. const { data: data2, rowKey: rowKey2 } = props2;
  49699. const _expandedRowKeys = unref(expandedRowKeys);
  49700. if (!_expandedRowKeys || !_expandedRowKeys.length)
  49701. return data2;
  49702. const array4 = [];
  49703. const keysSet = /* @__PURE__ */ new Set();
  49704. _expandedRowKeys.forEach((x2) => keysSet.add(x2));
  49705. let copy = data2.slice();
  49706. copy.forEach((x2) => depths[x2[rowKey2]] = 0);
  49707. while (copy.length > 0) {
  49708. const item = copy.shift();
  49709. array4.push(item);
  49710. if (keysSet.has(item[rowKey2]) && isArray(item.children) && item.children.length > 0) {
  49711. copy = [...item.children, ...copy];
  49712. item.children.forEach((child) => depths[child[rowKey2]] = depths[item[rowKey2]] + 1);
  49713. }
  49714. }
  49715. depthMap.value = depths;
  49716. return array4;
  49717. });
  49718. const data = computed(() => {
  49719. const { data: data2, expandColumnKey: expandColumnKey2 } = props2;
  49720. return expandColumnKey2 ? unref(flattenedData) : data2;
  49721. });
  49722. watch(data, (val, prev) => {
  49723. if (val !== prev) {
  49724. lastRenderedRowIndex.value = -1;
  49725. resetAfterIndex(0, true);
  49726. }
  49727. });
  49728. return {
  49729. data,
  49730. depthMap
  49731. };
  49732. };
  49733. // node_modules/element-plus/es/components/table-v2/src/utils.mjs
  49734. var sumReducer = (sum22, num) => sum22 + num;
  49735. var sum2 = (listLike) => {
  49736. return isArray(listLike) ? listLike.reduce(sumReducer, 0) : listLike;
  49737. };
  49738. var tryCall = (fLike, params, defaultRet = {}) => {
  49739. return isFunction(fLike) ? fLike(params) : fLike != null ? fLike : defaultRet;
  49740. };
  49741. var enforceUnit = (style) => {
  49742. ["width", "maxWidth", "minWidth", "height"].forEach((key) => {
  49743. style[key] = addUnit(style[key]);
  49744. });
  49745. return style;
  49746. };
  49747. var componentToSlot = (ComponentLike) => isVNode(ComponentLike) ? (props2) => h(ComponentLike, props2) : ComponentLike;
  49748. // node_modules/element-plus/es/components/table-v2/src/composables/use-styles.mjs
  49749. var useStyles2 = (props2, {
  49750. columnsTotalWidth,
  49751. rowsHeight,
  49752. fixedColumnsOnLeft,
  49753. fixedColumnsOnRight
  49754. }) => {
  49755. const bodyWidth = computed(() => {
  49756. const { fixed, width, vScrollbarSize } = props2;
  49757. const ret = width - vScrollbarSize;
  49758. return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret;
  49759. });
  49760. const mainTableHeight = computed(() => {
  49761. const { height = 0, maxHeight = 0, footerHeight: footerHeight2, hScrollbarSize } = props2;
  49762. if (maxHeight > 0) {
  49763. const _fixedRowsHeight = unref(fixedRowsHeight);
  49764. const _rowsHeight = unref(rowsHeight);
  49765. const _headerHeight = unref(headerHeight);
  49766. const total2 = _headerHeight + _fixedRowsHeight + _rowsHeight + hScrollbarSize;
  49767. return Math.min(total2, maxHeight - footerHeight2);
  49768. }
  49769. return height - footerHeight2;
  49770. });
  49771. const fixedTableHeight = computed(() => {
  49772. const { maxHeight } = props2;
  49773. const tableHeight = unref(mainTableHeight);
  49774. if (isNumber2(maxHeight) && maxHeight > 0)
  49775. return tableHeight;
  49776. const totalHeight = unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight);
  49777. return Math.min(tableHeight, totalHeight);
  49778. });
  49779. const mapColumn = (column2) => column2.width;
  49780. const leftTableWidth = computed(() => sum2(unref(fixedColumnsOnLeft).map(mapColumn)));
  49781. const rightTableWidth = computed(() => sum2(unref(fixedColumnsOnRight).map(mapColumn)));
  49782. const headerHeight = computed(() => sum2(props2.headerHeight));
  49783. const fixedRowsHeight = computed(() => {
  49784. var _a2;
  49785. return (((_a2 = props2.fixedData) == null ? void 0 : _a2.length) || 0) * props2.rowHeight;
  49786. });
  49787. const windowHeight = computed(() => {
  49788. return unref(mainTableHeight) - unref(headerHeight) - unref(fixedRowsHeight);
  49789. });
  49790. const rootStyle = computed(() => {
  49791. const { style = {}, height, width } = props2;
  49792. return enforceUnit({
  49793. ...style,
  49794. height,
  49795. width
  49796. });
  49797. });
  49798. const footerHeight = computed(() => enforceUnit({ height: props2.footerHeight }));
  49799. const emptyStyle = computed(() => ({
  49800. top: addUnit(unref(headerHeight)),
  49801. bottom: addUnit(props2.footerHeight),
  49802. width: addUnit(props2.width)
  49803. }));
  49804. return {
  49805. bodyWidth,
  49806. fixedTableHeight,
  49807. mainTableHeight,
  49808. leftTableWidth,
  49809. rightTableWidth,
  49810. windowHeight,
  49811. footerHeight,
  49812. emptyStyle,
  49813. rootStyle,
  49814. headerHeight
  49815. };
  49816. };
  49817. // node_modules/element-plus/es/components/table-v2/src/use-table.mjs
  49818. function useTable(props2) {
  49819. const mainTableRef = ref();
  49820. const leftTableRef = ref();
  49821. const rightTableRef = ref();
  49822. const {
  49823. columns: columns2,
  49824. columnsStyles,
  49825. columnsTotalWidth,
  49826. fixedColumnsOnLeft,
  49827. fixedColumnsOnRight,
  49828. hasFixedColumns,
  49829. mainColumns,
  49830. onColumnSorted
  49831. } = useColumns(props2, toRef(props2, "columns"), toRef(props2, "fixed"));
  49832. const {
  49833. scrollTo,
  49834. scrollToLeft,
  49835. scrollToTop,
  49836. scrollToRow,
  49837. onScroll,
  49838. onVerticalScroll,
  49839. scrollPos
  49840. } = useScrollbar2(props2, {
  49841. mainTableRef,
  49842. leftTableRef,
  49843. rightTableRef,
  49844. onMaybeEndReached
  49845. });
  49846. const ns = useNamespace("table-v2");
  49847. const instance = getCurrentInstance();
  49848. const isScrolling = shallowRef(false);
  49849. const {
  49850. expandedRowKeys,
  49851. lastRenderedRowIndex,
  49852. isDynamic,
  49853. isResetting,
  49854. rowHeights,
  49855. resetAfterIndex,
  49856. onRowExpanded,
  49857. onRowHeightChange,
  49858. onRowHovered,
  49859. onRowsRendered
  49860. } = useRow(props2, {
  49861. mainTableRef,
  49862. leftTableRef,
  49863. rightTableRef,
  49864. tableInstance: instance,
  49865. ns,
  49866. isScrolling
  49867. });
  49868. const { data, depthMap } = useData(props2, {
  49869. expandedRowKeys,
  49870. lastRenderedRowIndex,
  49871. resetAfterIndex
  49872. });
  49873. const rowsHeight = computed(() => {
  49874. const { estimatedRowHeight, rowHeight } = props2;
  49875. const _data = unref(data);
  49876. if (isNumber2(estimatedRowHeight)) {
  49877. return Object.values(unref(rowHeights)).reduce((acc, curr) => acc + curr, 0);
  49878. }
  49879. return _data.length * rowHeight;
  49880. });
  49881. const {
  49882. bodyWidth,
  49883. fixedTableHeight,
  49884. mainTableHeight,
  49885. leftTableWidth,
  49886. rightTableWidth,
  49887. windowHeight,
  49888. footerHeight,
  49889. emptyStyle,
  49890. rootStyle,
  49891. headerHeight
  49892. } = useStyles2(props2, {
  49893. columnsTotalWidth,
  49894. fixedColumnsOnLeft,
  49895. fixedColumnsOnRight,
  49896. rowsHeight
  49897. });
  49898. const containerRef = ref();
  49899. const showEmpty = computed(() => {
  49900. const noData = unref(data).length === 0;
  49901. return isArray(props2.fixedData) ? props2.fixedData.length === 0 && noData : noData;
  49902. });
  49903. function getRowHeight(rowIndex) {
  49904. const { estimatedRowHeight, rowHeight, rowKey: rowKey2 } = props2;
  49905. if (!estimatedRowHeight)
  49906. return rowHeight;
  49907. return unref(rowHeights)[unref(data)[rowIndex][rowKey2]] || estimatedRowHeight;
  49908. }
  49909. const isEndReached = ref(false);
  49910. function onMaybeEndReached() {
  49911. const { onEndReached } = props2;
  49912. if (!onEndReached)
  49913. return;
  49914. const { scrollTop } = unref(scrollPos);
  49915. const _totalHeight = unref(rowsHeight);
  49916. const clientHeight = unref(windowHeight);
  49917. const remainDistance = _totalHeight - (scrollTop + clientHeight) + props2.hScrollbarSize;
  49918. if (!isEndReached.value && unref(lastRenderedRowIndex) >= 0 && _totalHeight <= scrollTop + unref(mainTableHeight) - unref(headerHeight)) {
  49919. isEndReached.value = true;
  49920. onEndReached(remainDistance);
  49921. } else {
  49922. isEndReached.value = false;
  49923. }
  49924. }
  49925. watch(() => unref(rowsHeight), () => isEndReached.value = false);
  49926. watch(() => props2.expandedRowKeys, (val) => expandedRowKeys.value = val, {
  49927. deep: true
  49928. });
  49929. return {
  49930. columns: columns2,
  49931. containerRef,
  49932. mainTableRef,
  49933. leftTableRef,
  49934. rightTableRef,
  49935. isDynamic,
  49936. isResetting,
  49937. isScrolling,
  49938. hasFixedColumns,
  49939. columnsStyles,
  49940. columnsTotalWidth,
  49941. data,
  49942. expandedRowKeys,
  49943. depthMap,
  49944. fixedColumnsOnLeft,
  49945. fixedColumnsOnRight,
  49946. mainColumns,
  49947. bodyWidth,
  49948. emptyStyle,
  49949. rootStyle,
  49950. footerHeight,
  49951. mainTableHeight,
  49952. fixedTableHeight,
  49953. leftTableWidth,
  49954. rightTableWidth,
  49955. showEmpty,
  49956. getRowHeight,
  49957. onColumnSorted,
  49958. onRowHovered,
  49959. onRowExpanded,
  49960. onRowsRendered,
  49961. onRowHeightChange,
  49962. scrollTo,
  49963. scrollToLeft,
  49964. scrollToTop,
  49965. scrollToRow,
  49966. onScroll,
  49967. onVerticalScroll
  49968. };
  49969. }
  49970. // node_modules/element-plus/es/components/table-v2/src/tokens.mjs
  49971. var TableV2InjectionKey = Symbol("tableV2");
  49972. var TABLE_V2_GRID_INJECTION_KEY = "tableV2GridScrollLeft";
  49973. // node_modules/element-plus/es/components/table-v2/src/common.mjs
  49974. var classType = String;
  49975. var columns = {
  49976. type: definePropType(Array),
  49977. required: true
  49978. };
  49979. var column = {
  49980. type: definePropType(Object)
  49981. };
  49982. var fixedDataType = {
  49983. type: definePropType(Array)
  49984. };
  49985. var dataType = {
  49986. ...fixedDataType,
  49987. required: true
  49988. };
  49989. var expandColumnKey = String;
  49990. var expandKeys = {
  49991. type: definePropType(Array),
  49992. default: () => mutable([])
  49993. };
  49994. var requiredNumber = {
  49995. type: Number,
  49996. required: true
  49997. };
  49998. var rowKey = {
  49999. type: definePropType([String, Number, Symbol]),
  50000. default: "id"
  50001. };
  50002. var styleType = {
  50003. type: definePropType(Object)
  50004. };
  50005. // node_modules/element-plus/es/components/table-v2/src/row.mjs
  50006. var tableV2RowProps = buildProps({
  50007. class: String,
  50008. columns,
  50009. columnsStyles: {
  50010. type: definePropType(Object),
  50011. required: true
  50012. },
  50013. depth: Number,
  50014. expandColumnKey,
  50015. estimatedRowHeight: {
  50016. ...virtualizedGridProps.estimatedRowHeight,
  50017. default: void 0
  50018. },
  50019. isScrolling: Boolean,
  50020. onRowExpand: {
  50021. type: definePropType(Function)
  50022. },
  50023. onRowHover: {
  50024. type: definePropType(Function)
  50025. },
  50026. onRowHeightChange: {
  50027. type: definePropType(Function)
  50028. },
  50029. rowData: {
  50030. type: definePropType(Object),
  50031. required: true
  50032. },
  50033. rowEventHandlers: {
  50034. type: definePropType(Object)
  50035. },
  50036. rowIndex: {
  50037. type: Number,
  50038. required: true
  50039. },
  50040. rowKey,
  50041. style: {
  50042. type: definePropType(Object)
  50043. }
  50044. });
  50045. // node_modules/element-plus/es/components/table-v2/src/header.mjs
  50046. var requiredNumberType = {
  50047. type: Number,
  50048. required: true
  50049. };
  50050. var tableV2HeaderProps = buildProps({
  50051. class: String,
  50052. columns,
  50053. fixedHeaderData: {
  50054. type: definePropType(Array)
  50055. },
  50056. headerData: {
  50057. type: definePropType(Array),
  50058. required: true
  50059. },
  50060. headerHeight: {
  50061. type: definePropType([Number, Array]),
  50062. default: 50
  50063. },
  50064. rowWidth: requiredNumberType,
  50065. rowHeight: {
  50066. type: Number,
  50067. default: 50
  50068. },
  50069. height: requiredNumberType,
  50070. width: requiredNumberType
  50071. });
  50072. // node_modules/element-plus/es/components/table-v2/src/grid.mjs
  50073. var tableV2GridProps = buildProps({
  50074. columns,
  50075. data: dataType,
  50076. fixedData: fixedDataType,
  50077. estimatedRowHeight: tableV2RowProps.estimatedRowHeight,
  50078. width: requiredNumber,
  50079. height: requiredNumber,
  50080. headerWidth: requiredNumber,
  50081. headerHeight: tableV2HeaderProps.headerHeight,
  50082. bodyWidth: requiredNumber,
  50083. rowHeight: requiredNumber,
  50084. cache: virtualizedListProps.cache,
  50085. useIsScrolling: Boolean,
  50086. scrollbarAlwaysOn: virtualizedGridProps.scrollbarAlwaysOn,
  50087. scrollbarStartGap: virtualizedGridProps.scrollbarStartGap,
  50088. scrollbarEndGap: virtualizedGridProps.scrollbarEndGap,
  50089. class: classType,
  50090. style: styleType,
  50091. containerStyle: styleType,
  50092. getRowHeight: {
  50093. type: definePropType(Function),
  50094. required: true
  50095. },
  50096. rowKey: tableV2RowProps.rowKey,
  50097. onRowsRendered: {
  50098. type: definePropType(Function)
  50099. },
  50100. onScroll: {
  50101. type: definePropType(Function)
  50102. }
  50103. });
  50104. // node_modules/element-plus/es/components/table-v2/src/table.mjs
  50105. var tableV2Props = buildProps({
  50106. cache: tableV2GridProps.cache,
  50107. estimatedRowHeight: tableV2RowProps.estimatedRowHeight,
  50108. rowKey,
  50109. headerClass: {
  50110. type: definePropType([
  50111. String,
  50112. Function
  50113. ])
  50114. },
  50115. headerProps: {
  50116. type: definePropType([
  50117. Object,
  50118. Function
  50119. ])
  50120. },
  50121. headerCellProps: {
  50122. type: definePropType([
  50123. Object,
  50124. Function
  50125. ])
  50126. },
  50127. headerHeight: tableV2HeaderProps.headerHeight,
  50128. footerHeight: {
  50129. type: Number,
  50130. default: 0
  50131. },
  50132. rowClass: {
  50133. type: definePropType([String, Function])
  50134. },
  50135. rowProps: {
  50136. type: definePropType([Object, Function])
  50137. },
  50138. rowHeight: {
  50139. type: Number,
  50140. default: 50
  50141. },
  50142. cellProps: {
  50143. type: definePropType([
  50144. Object,
  50145. Function
  50146. ])
  50147. },
  50148. columns,
  50149. data: dataType,
  50150. dataGetter: {
  50151. type: definePropType(Function)
  50152. },
  50153. fixedData: fixedDataType,
  50154. expandColumnKey: tableV2RowProps.expandColumnKey,
  50155. expandedRowKeys: expandKeys,
  50156. defaultExpandedRowKeys: expandKeys,
  50157. class: classType,
  50158. fixed: Boolean,
  50159. style: {
  50160. type: definePropType(Object)
  50161. },
  50162. width: requiredNumber,
  50163. height: requiredNumber,
  50164. maxHeight: Number,
  50165. useIsScrolling: Boolean,
  50166. indentSize: {
  50167. type: Number,
  50168. default: 12
  50169. },
  50170. iconSize: {
  50171. type: Number,
  50172. default: 12
  50173. },
  50174. hScrollbarSize: virtualizedGridProps.hScrollbarSize,
  50175. vScrollbarSize: virtualizedGridProps.vScrollbarSize,
  50176. scrollbarAlwaysOn: virtualizedScrollbarProps.alwaysOn,
  50177. sortBy: {
  50178. type: definePropType(Object),
  50179. default: () => ({})
  50180. },
  50181. sortState: {
  50182. type: definePropType(Object),
  50183. default: void 0
  50184. },
  50185. onColumnSort: {
  50186. type: definePropType(Function)
  50187. },
  50188. onExpandedRowsChange: {
  50189. type: definePropType(Function)
  50190. },
  50191. onEndReached: {
  50192. type: definePropType(Function)
  50193. },
  50194. onRowExpand: tableV2RowProps.onRowExpand,
  50195. onScroll: tableV2GridProps.onScroll,
  50196. onRowsRendered: tableV2GridProps.onRowsRendered,
  50197. rowEventHandlers: tableV2RowProps.rowEventHandlers
  50198. });
  50199. // node_modules/element-plus/es/components/table-v2/src/components/header.mjs
  50200. var COMPONENT_NAME18 = "ElTableV2Header";
  50201. var TableV2Header = defineComponent({
  50202. name: COMPONENT_NAME18,
  50203. props: tableV2HeaderProps,
  50204. setup(props2, {
  50205. slots,
  50206. expose
  50207. }) {
  50208. const ns = useNamespace("table-v2");
  50209. const scrollLeftInfo = inject(TABLE_V2_GRID_INJECTION_KEY);
  50210. const headerRef = ref();
  50211. const headerStyle = computed(() => enforceUnit({
  50212. width: props2.width,
  50213. height: props2.height
  50214. }));
  50215. const rowStyle = computed(() => enforceUnit({
  50216. width: props2.rowWidth,
  50217. height: props2.height
  50218. }));
  50219. const headerHeights = computed(() => castArray_default(unref(props2.headerHeight)));
  50220. const scrollToLeft = (left) => {
  50221. const headerEl = unref(headerRef);
  50222. nextTick(() => {
  50223. (headerEl == null ? void 0 : headerEl.scroll) && headerEl.scroll({
  50224. left
  50225. });
  50226. });
  50227. };
  50228. const renderFixedRows = () => {
  50229. const fixedRowClassName = ns.e("fixed-header-row");
  50230. const {
  50231. columns: columns2,
  50232. fixedHeaderData,
  50233. rowHeight
  50234. } = props2;
  50235. return fixedHeaderData == null ? void 0 : fixedHeaderData.map((fixedRowData, fixedRowIndex) => {
  50236. var _a2;
  50237. const style = enforceUnit({
  50238. height: rowHeight,
  50239. width: "100%"
  50240. });
  50241. return (_a2 = slots.fixed) == null ? void 0 : _a2.call(slots, {
  50242. class: fixedRowClassName,
  50243. columns: columns2,
  50244. rowData: fixedRowData,
  50245. rowIndex: -(fixedRowIndex + 1),
  50246. style
  50247. });
  50248. });
  50249. };
  50250. const renderDynamicRows = () => {
  50251. const dynamicRowClassName = ns.e("dynamic-header-row");
  50252. const {
  50253. columns: columns2
  50254. } = props2;
  50255. return unref(headerHeights).map((rowHeight, rowIndex) => {
  50256. var _a2;
  50257. const style = enforceUnit({
  50258. width: "100%",
  50259. height: rowHeight
  50260. });
  50261. return (_a2 = slots.dynamic) == null ? void 0 : _a2.call(slots, {
  50262. class: dynamicRowClassName,
  50263. columns: columns2,
  50264. headerIndex: rowIndex,
  50265. style
  50266. });
  50267. });
  50268. };
  50269. onUpdated(() => {
  50270. if (scrollLeftInfo == null ? void 0 : scrollLeftInfo.value) {
  50271. scrollToLeft(scrollLeftInfo.value);
  50272. }
  50273. });
  50274. expose({
  50275. scrollToLeft
  50276. });
  50277. return () => {
  50278. if (props2.height <= 0)
  50279. return;
  50280. return createVNode("div", {
  50281. "ref": headerRef,
  50282. "class": props2.class,
  50283. "style": unref(headerStyle),
  50284. "role": "rowgroup"
  50285. }, [createVNode("div", {
  50286. "style": unref(rowStyle),
  50287. "class": ns.e("header")
  50288. }, [renderDynamicRows(), renderFixedRows()])]);
  50289. };
  50290. }
  50291. });
  50292. var Header2 = TableV2Header;
  50293. // node_modules/element-plus/es/components/virtual-list/src/hooks/use-grid-wheel.mjs
  50294. var useGridWheel = ({ atXEndEdge, atXStartEdge, atYEndEdge, atYStartEdge }, onWheelDelta) => {
  50295. let frameHandle = null;
  50296. let xOffset = 0;
  50297. let yOffset = 0;
  50298. const hasReachedEdge = (x2, y) => {
  50299. const xEdgeReached = x2 <= 0 && atXStartEdge.value || x2 >= 0 && atXEndEdge.value;
  50300. const yEdgeReached = y <= 0 && atYStartEdge.value || y >= 0 && atYEndEdge.value;
  50301. return xEdgeReached && yEdgeReached;
  50302. };
  50303. const onWheel = (e) => {
  50304. cAF(frameHandle);
  50305. let x2 = e.deltaX;
  50306. let y = e.deltaY;
  50307. if (Math.abs(x2) > Math.abs(y)) {
  50308. y = 0;
  50309. } else {
  50310. x2 = 0;
  50311. }
  50312. if (e.shiftKey && y !== 0) {
  50313. x2 = y;
  50314. y = 0;
  50315. }
  50316. if (hasReachedEdge(xOffset, yOffset) && hasReachedEdge(xOffset + x2, yOffset + y))
  50317. return;
  50318. xOffset += x2;
  50319. yOffset += y;
  50320. e.preventDefault();
  50321. frameHandle = rAF(() => {
  50322. onWheelDelta(xOffset, yOffset);
  50323. xOffset = 0;
  50324. yOffset = 0;
  50325. });
  50326. };
  50327. return {
  50328. hasReachedEdge,
  50329. onWheel
  50330. };
  50331. };
  50332. // node_modules/element-plus/es/components/virtual-list/src/builders/build-grid.mjs
  50333. var createGrid = ({
  50334. name,
  50335. clearCache,
  50336. getColumnPosition,
  50337. getColumnStartIndexForOffset,
  50338. getColumnStopIndexForStartIndex,
  50339. getEstimatedTotalHeight: getEstimatedTotalHeight2,
  50340. getEstimatedTotalWidth: getEstimatedTotalWidth2,
  50341. getColumnOffset,
  50342. getRowOffset,
  50343. getRowPosition,
  50344. getRowStartIndexForOffset,
  50345. getRowStopIndexForStartIndex,
  50346. initCache,
  50347. injectToInstance,
  50348. validateProps
  50349. }) => {
  50350. return defineComponent({
  50351. name: name != null ? name : "ElVirtualList",
  50352. props: virtualizedGridProps,
  50353. emits: [ITEM_RENDER_EVT, SCROLL_EVT],
  50354. setup(props2, { emit, expose, slots }) {
  50355. const ns = useNamespace("vl");
  50356. validateProps(props2);
  50357. const instance = getCurrentInstance();
  50358. const cache2 = ref(initCache(props2, instance));
  50359. injectToInstance == null ? void 0 : injectToInstance(instance, cache2);
  50360. const windowRef = ref();
  50361. const hScrollbar = ref();
  50362. const vScrollbar = ref();
  50363. const innerRef = ref(null);
  50364. const states = ref({
  50365. isScrolling: false,
  50366. scrollLeft: isNumber2(props2.initScrollLeft) ? props2.initScrollLeft : 0,
  50367. scrollTop: isNumber2(props2.initScrollTop) ? props2.initScrollTop : 0,
  50368. updateRequested: false,
  50369. xAxisScrollDir: FORWARD,
  50370. yAxisScrollDir: FORWARD
  50371. });
  50372. const getItemStyleCache = useCache();
  50373. const parsedHeight = computed(() => Number.parseInt(`${props2.height}`, 10));
  50374. const parsedWidth = computed(() => Number.parseInt(`${props2.width}`, 10));
  50375. const columnsToRender = computed(() => {
  50376. const { totalColumn, totalRow, columnCache } = props2;
  50377. const { isScrolling, xAxisScrollDir, scrollLeft } = unref(states);
  50378. if (totalColumn === 0 || totalRow === 0) {
  50379. return [0, 0, 0, 0];
  50380. }
  50381. const startIndex = getColumnStartIndexForOffset(props2, scrollLeft, unref(cache2));
  50382. const stopIndex = getColumnStopIndexForStartIndex(props2, startIndex, scrollLeft, unref(cache2));
  50383. const cacheBackward = !isScrolling || xAxisScrollDir === BACKWARD ? Math.max(1, columnCache) : 1;
  50384. const cacheForward = !isScrolling || xAxisScrollDir === FORWARD ? Math.max(1, columnCache) : 1;
  50385. return [
  50386. Math.max(0, startIndex - cacheBackward),
  50387. Math.max(0, Math.min(totalColumn - 1, stopIndex + cacheForward)),
  50388. startIndex,
  50389. stopIndex
  50390. ];
  50391. });
  50392. const rowsToRender = computed(() => {
  50393. const { totalColumn, totalRow, rowCache } = props2;
  50394. const { isScrolling, yAxisScrollDir, scrollTop } = unref(states);
  50395. if (totalColumn === 0 || totalRow === 0) {
  50396. return [0, 0, 0, 0];
  50397. }
  50398. const startIndex = getRowStartIndexForOffset(props2, scrollTop, unref(cache2));
  50399. const stopIndex = getRowStopIndexForStartIndex(props2, startIndex, scrollTop, unref(cache2));
  50400. const cacheBackward = !isScrolling || yAxisScrollDir === BACKWARD ? Math.max(1, rowCache) : 1;
  50401. const cacheForward = !isScrolling || yAxisScrollDir === FORWARD ? Math.max(1, rowCache) : 1;
  50402. return [
  50403. Math.max(0, startIndex - cacheBackward),
  50404. Math.max(0, Math.min(totalRow - 1, stopIndex + cacheForward)),
  50405. startIndex,
  50406. stopIndex
  50407. ];
  50408. });
  50409. const estimatedTotalHeight = computed(() => getEstimatedTotalHeight2(props2, unref(cache2)));
  50410. const estimatedTotalWidth = computed(() => getEstimatedTotalWidth2(props2, unref(cache2)));
  50411. const windowStyle = computed(() => {
  50412. var _a2;
  50413. return [
  50414. {
  50415. position: "relative",
  50416. overflow: "hidden",
  50417. WebkitOverflowScrolling: "touch",
  50418. willChange: "transform"
  50419. },
  50420. {
  50421. direction: props2.direction,
  50422. height: isNumber2(props2.height) ? `${props2.height}px` : props2.height,
  50423. width: isNumber2(props2.width) ? `${props2.width}px` : props2.width
  50424. },
  50425. (_a2 = props2.style) != null ? _a2 : {}
  50426. ];
  50427. });
  50428. const innerStyle = computed(() => {
  50429. const width = `${unref(estimatedTotalWidth)}px`;
  50430. const height = `${unref(estimatedTotalHeight)}px`;
  50431. return {
  50432. height,
  50433. pointerEvents: unref(states).isScrolling ? "none" : void 0,
  50434. width
  50435. };
  50436. });
  50437. const emitEvents = () => {
  50438. const { totalColumn, totalRow } = props2;
  50439. if (totalColumn > 0 && totalRow > 0) {
  50440. const [
  50441. columnCacheStart,
  50442. columnCacheEnd,
  50443. columnVisibleStart,
  50444. columnVisibleEnd
  50445. ] = unref(columnsToRender);
  50446. const [rowCacheStart, rowCacheEnd, rowVisibleStart, rowVisibleEnd] = unref(rowsToRender);
  50447. emit(ITEM_RENDER_EVT, {
  50448. columnCacheStart,
  50449. columnCacheEnd,
  50450. rowCacheStart,
  50451. rowCacheEnd,
  50452. columnVisibleStart,
  50453. columnVisibleEnd,
  50454. rowVisibleStart,
  50455. rowVisibleEnd
  50456. });
  50457. }
  50458. const {
  50459. scrollLeft,
  50460. scrollTop,
  50461. updateRequested,
  50462. xAxisScrollDir,
  50463. yAxisScrollDir
  50464. } = unref(states);
  50465. emit(SCROLL_EVT, {
  50466. xAxisScrollDir,
  50467. scrollLeft,
  50468. yAxisScrollDir,
  50469. scrollTop,
  50470. updateRequested
  50471. });
  50472. };
  50473. const onScroll = (e) => {
  50474. const {
  50475. clientHeight,
  50476. clientWidth,
  50477. scrollHeight,
  50478. scrollLeft,
  50479. scrollTop,
  50480. scrollWidth
  50481. } = e.currentTarget;
  50482. const _states = unref(states);
  50483. if (_states.scrollTop === scrollTop && _states.scrollLeft === scrollLeft) {
  50484. return;
  50485. }
  50486. let _scrollLeft = scrollLeft;
  50487. if (isRTL(props2.direction)) {
  50488. switch (getRTLOffsetType()) {
  50489. case RTL_OFFSET_NAG:
  50490. _scrollLeft = -scrollLeft;
  50491. break;
  50492. case RTL_OFFSET_POS_DESC:
  50493. _scrollLeft = scrollWidth - clientWidth - scrollLeft;
  50494. break;
  50495. }
  50496. }
  50497. states.value = {
  50498. ..._states,
  50499. isScrolling: true,
  50500. scrollLeft: _scrollLeft,
  50501. scrollTop: Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight)),
  50502. updateRequested: true,
  50503. xAxisScrollDir: getScrollDir(_states.scrollLeft, _scrollLeft),
  50504. yAxisScrollDir: getScrollDir(_states.scrollTop, scrollTop)
  50505. };
  50506. nextTick(() => resetIsScrolling());
  50507. onUpdated2();
  50508. emitEvents();
  50509. };
  50510. const onVerticalScroll = (distance, totalSteps) => {
  50511. const height = unref(parsedHeight);
  50512. const offset3 = (estimatedTotalHeight.value - height) / totalSteps * distance;
  50513. scrollTo({
  50514. scrollTop: Math.min(estimatedTotalHeight.value - height, offset3)
  50515. });
  50516. };
  50517. const onHorizontalScroll = (distance, totalSteps) => {
  50518. const width = unref(parsedWidth);
  50519. const offset3 = (estimatedTotalWidth.value - width) / totalSteps * distance;
  50520. scrollTo({
  50521. scrollLeft: Math.min(estimatedTotalWidth.value - width, offset3)
  50522. });
  50523. };
  50524. const { onWheel } = useGridWheel({
  50525. atXStartEdge: computed(() => states.value.scrollLeft <= 0),
  50526. atXEndEdge: computed(() => states.value.scrollLeft >= estimatedTotalWidth.value - unref(parsedWidth)),
  50527. atYStartEdge: computed(() => states.value.scrollTop <= 0),
  50528. atYEndEdge: computed(() => states.value.scrollTop >= estimatedTotalHeight.value - unref(parsedHeight))
  50529. }, (x2, y) => {
  50530. var _a2, _b, _c, _d;
  50531. (_b = (_a2 = hScrollbar.value) == null ? void 0 : _a2.onMouseUp) == null ? void 0 : _b.call(_a2);
  50532. (_d = (_c = vScrollbar.value) == null ? void 0 : _c.onMouseUp) == null ? void 0 : _d.call(_c);
  50533. const width = unref(parsedWidth);
  50534. const height = unref(parsedHeight);
  50535. scrollTo({
  50536. scrollLeft: Math.min(states.value.scrollLeft + x2, estimatedTotalWidth.value - width),
  50537. scrollTop: Math.min(states.value.scrollTop + y, estimatedTotalHeight.value - height)
  50538. });
  50539. });
  50540. useEventListener(windowRef, "wheel", onWheel, {
  50541. passive: false
  50542. });
  50543. const scrollTo = ({
  50544. scrollLeft = states.value.scrollLeft,
  50545. scrollTop = states.value.scrollTop
  50546. }) => {
  50547. scrollLeft = Math.max(scrollLeft, 0);
  50548. scrollTop = Math.max(scrollTop, 0);
  50549. const _states = unref(states);
  50550. if (scrollTop === _states.scrollTop && scrollLeft === _states.scrollLeft) {
  50551. return;
  50552. }
  50553. states.value = {
  50554. ..._states,
  50555. xAxisScrollDir: getScrollDir(_states.scrollLeft, scrollLeft),
  50556. yAxisScrollDir: getScrollDir(_states.scrollTop, scrollTop),
  50557. scrollLeft,
  50558. scrollTop,
  50559. updateRequested: true
  50560. };
  50561. nextTick(() => resetIsScrolling());
  50562. onUpdated2();
  50563. emitEvents();
  50564. };
  50565. const scrollToItem = (rowIndex = 0, columnIdx = 0, alignment = AUTO_ALIGNMENT) => {
  50566. const _states = unref(states);
  50567. columnIdx = Math.max(0, Math.min(columnIdx, props2.totalColumn - 1));
  50568. rowIndex = Math.max(0, Math.min(rowIndex, props2.totalRow - 1));
  50569. const scrollBarWidth2 = getScrollBarWidth(ns.namespace.value);
  50570. const _cache = unref(cache2);
  50571. const estimatedHeight = getEstimatedTotalHeight2(props2, _cache);
  50572. const estimatedWidth = getEstimatedTotalWidth2(props2, _cache);
  50573. scrollTo({
  50574. scrollLeft: getColumnOffset(props2, columnIdx, alignment, _states.scrollLeft, _cache, estimatedWidth > props2.width ? scrollBarWidth2 : 0),
  50575. scrollTop: getRowOffset(props2, rowIndex, alignment, _states.scrollTop, _cache, estimatedHeight > props2.height ? scrollBarWidth2 : 0)
  50576. });
  50577. };
  50578. const getItemStyle = (rowIndex, columnIndex) => {
  50579. const { columnWidth, direction: direction2, rowHeight } = props2;
  50580. const itemStyleCache = getItemStyleCache.value(clearCache && columnWidth, clearCache && rowHeight, clearCache && direction2);
  50581. const key = `${rowIndex},${columnIndex}`;
  50582. if (hasOwn(itemStyleCache, key)) {
  50583. return itemStyleCache[key];
  50584. } else {
  50585. const [, left] = getColumnPosition(props2, columnIndex, unref(cache2));
  50586. const _cache = unref(cache2);
  50587. const rtl = isRTL(direction2);
  50588. const [height, top] = getRowPosition(props2, rowIndex, _cache);
  50589. const [width] = getColumnPosition(props2, columnIndex, _cache);
  50590. itemStyleCache[key] = {
  50591. position: "absolute",
  50592. left: rtl ? void 0 : `${left}px`,
  50593. right: rtl ? `${left}px` : void 0,
  50594. top: `${top}px`,
  50595. height: `${height}px`,
  50596. width: `${width}px`
  50597. };
  50598. return itemStyleCache[key];
  50599. }
  50600. };
  50601. const resetIsScrolling = () => {
  50602. states.value.isScrolling = false;
  50603. nextTick(() => {
  50604. getItemStyleCache.value(-1, null, null);
  50605. });
  50606. };
  50607. onMounted(() => {
  50608. if (!isClient)
  50609. return;
  50610. const { initScrollLeft, initScrollTop } = props2;
  50611. const windowElement = unref(windowRef);
  50612. if (windowElement) {
  50613. if (isNumber2(initScrollLeft)) {
  50614. windowElement.scrollLeft = initScrollLeft;
  50615. }
  50616. if (isNumber2(initScrollTop)) {
  50617. windowElement.scrollTop = initScrollTop;
  50618. }
  50619. }
  50620. emitEvents();
  50621. });
  50622. const onUpdated2 = () => {
  50623. const { direction: direction2 } = props2;
  50624. const { scrollLeft, scrollTop, updateRequested } = unref(states);
  50625. const windowElement = unref(windowRef);
  50626. if (updateRequested && windowElement) {
  50627. if (direction2 === RTL) {
  50628. switch (getRTLOffsetType()) {
  50629. case RTL_OFFSET_NAG: {
  50630. windowElement.scrollLeft = -scrollLeft;
  50631. break;
  50632. }
  50633. case RTL_OFFSET_POS_ASC: {
  50634. windowElement.scrollLeft = scrollLeft;
  50635. break;
  50636. }
  50637. default: {
  50638. const { clientWidth, scrollWidth } = windowElement;
  50639. windowElement.scrollLeft = scrollWidth - clientWidth - scrollLeft;
  50640. break;
  50641. }
  50642. }
  50643. } else {
  50644. windowElement.scrollLeft = Math.max(0, scrollLeft);
  50645. }
  50646. windowElement.scrollTop = Math.max(0, scrollTop);
  50647. }
  50648. };
  50649. const { resetAfterColumnIndex, resetAfterRowIndex, resetAfter } = instance.proxy;
  50650. expose({
  50651. windowRef,
  50652. innerRef,
  50653. getItemStyleCache,
  50654. scrollTo,
  50655. scrollToItem,
  50656. states,
  50657. resetAfterColumnIndex,
  50658. resetAfterRowIndex,
  50659. resetAfter
  50660. });
  50661. const renderScrollbars = () => {
  50662. const {
  50663. scrollbarAlwaysOn,
  50664. scrollbarStartGap,
  50665. scrollbarEndGap,
  50666. totalColumn,
  50667. totalRow
  50668. } = props2;
  50669. const width = unref(parsedWidth);
  50670. const height = unref(parsedHeight);
  50671. const estimatedWidth = unref(estimatedTotalWidth);
  50672. const estimatedHeight = unref(estimatedTotalHeight);
  50673. const { scrollLeft, scrollTop } = unref(states);
  50674. const horizontalScrollbar = h(ScrollBar, {
  50675. ref: hScrollbar,
  50676. alwaysOn: scrollbarAlwaysOn,
  50677. startGap: scrollbarStartGap,
  50678. endGap: scrollbarEndGap,
  50679. class: ns.e("horizontal"),
  50680. clientSize: width,
  50681. layout: "horizontal",
  50682. onScroll: onHorizontalScroll,
  50683. ratio: width * 100 / estimatedWidth,
  50684. scrollFrom: scrollLeft / (estimatedWidth - width),
  50685. total: totalRow,
  50686. visible: true
  50687. });
  50688. const verticalScrollbar = h(ScrollBar, {
  50689. ref: vScrollbar,
  50690. alwaysOn: scrollbarAlwaysOn,
  50691. startGap: scrollbarStartGap,
  50692. endGap: scrollbarEndGap,
  50693. class: ns.e("vertical"),
  50694. clientSize: height,
  50695. layout: "vertical",
  50696. onScroll: onVerticalScroll,
  50697. ratio: height * 100 / estimatedHeight,
  50698. scrollFrom: scrollTop / (estimatedHeight - height),
  50699. total: totalColumn,
  50700. visible: true
  50701. });
  50702. return {
  50703. horizontalScrollbar,
  50704. verticalScrollbar
  50705. };
  50706. };
  50707. const renderItems = () => {
  50708. var _a2;
  50709. const [columnStart, columnEnd] = unref(columnsToRender);
  50710. const [rowStart, rowEnd] = unref(rowsToRender);
  50711. const { data, totalColumn, totalRow, useIsScrolling, itemKey } = props2;
  50712. const children = [];
  50713. if (totalRow > 0 && totalColumn > 0) {
  50714. for (let row = rowStart; row <= rowEnd; row++) {
  50715. for (let column2 = columnStart; column2 <= columnEnd; column2++) {
  50716. const key = itemKey({ columnIndex: column2, data, rowIndex: row });
  50717. children.push(h(Fragment, { key }, (_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
  50718. columnIndex: column2,
  50719. data,
  50720. isScrolling: useIsScrolling ? unref(states).isScrolling : void 0,
  50721. style: getItemStyle(row, column2),
  50722. rowIndex: row
  50723. })));
  50724. }
  50725. }
  50726. }
  50727. return children;
  50728. };
  50729. const renderInner = () => {
  50730. const Inner = resolveDynamicComponent(props2.innerElement);
  50731. const children = renderItems();
  50732. return [
  50733. h(Inner, mergeProps(props2.innerProps, {
  50734. style: unref(innerStyle),
  50735. ref: innerRef
  50736. }), !isString(Inner) ? {
  50737. default: () => children
  50738. } : children)
  50739. ];
  50740. };
  50741. const renderWindow = () => {
  50742. const Container2 = resolveDynamicComponent(props2.containerElement);
  50743. const { horizontalScrollbar, verticalScrollbar } = renderScrollbars();
  50744. const Inner = renderInner();
  50745. return h("div", {
  50746. key: 0,
  50747. class: ns.e("wrapper"),
  50748. role: props2.role
  50749. }, [
  50750. h(Container2, {
  50751. class: props2.className,
  50752. style: unref(windowStyle),
  50753. onScroll,
  50754. ref: windowRef
  50755. }, !isString(Container2) ? { default: () => Inner } : Inner),
  50756. horizontalScrollbar,
  50757. verticalScrollbar
  50758. ]);
  50759. };
  50760. return renderWindow;
  50761. }
  50762. });
  50763. };
  50764. // node_modules/element-plus/es/components/virtual-list/src/components/dynamic-size-grid.mjs
  50765. var { max: max2, min: min2, floor: floor2 } = Math;
  50766. var ACCESS_SIZER_KEY_MAP = {
  50767. column: "columnWidth",
  50768. row: "rowHeight"
  50769. };
  50770. var ACCESS_LAST_VISITED_KEY_MAP = {
  50771. column: "lastVisitedColumnIndex",
  50772. row: "lastVisitedRowIndex"
  50773. };
  50774. var getItemFromCache2 = (props2, index, gridCache, type4) => {
  50775. const [cachedItems, sizer, lastVisited] = [
  50776. gridCache[type4],
  50777. props2[ACCESS_SIZER_KEY_MAP[type4]],
  50778. gridCache[ACCESS_LAST_VISITED_KEY_MAP[type4]]
  50779. ];
  50780. if (index > lastVisited) {
  50781. let offset3 = 0;
  50782. if (lastVisited >= 0) {
  50783. const item = cachedItems[lastVisited];
  50784. offset3 = item.offset + item.size;
  50785. }
  50786. for (let i = lastVisited + 1; i <= index; i++) {
  50787. const size3 = sizer(i);
  50788. cachedItems[i] = {
  50789. offset: offset3,
  50790. size: size3
  50791. };
  50792. offset3 += size3;
  50793. }
  50794. gridCache[ACCESS_LAST_VISITED_KEY_MAP[type4]] = index;
  50795. }
  50796. return cachedItems[index];
  50797. };
  50798. var bs2 = (props2, gridCache, low, high, offset3, type4) => {
  50799. while (low <= high) {
  50800. const mid = low + floor2((high - low) / 2);
  50801. const currentOffset = getItemFromCache2(props2, mid, gridCache, type4).offset;
  50802. if (currentOffset === offset3) {
  50803. return mid;
  50804. } else if (currentOffset < offset3) {
  50805. low = mid + 1;
  50806. } else {
  50807. high = mid - 1;
  50808. }
  50809. }
  50810. return max2(0, low - 1);
  50811. };
  50812. var es2 = (props2, gridCache, idx, offset3, type4) => {
  50813. const total2 = type4 === "column" ? props2.totalColumn : props2.totalRow;
  50814. let exponent = 1;
  50815. while (idx < total2 && getItemFromCache2(props2, idx, gridCache, type4).offset < offset3) {
  50816. idx += exponent;
  50817. exponent *= 2;
  50818. }
  50819. return bs2(props2, gridCache, floor2(idx / 2), min2(idx, total2 - 1), offset3, type4);
  50820. };
  50821. var findItem2 = (props2, gridCache, offset3, type4) => {
  50822. const [cache2, lastVisitedIndex] = [
  50823. gridCache[type4],
  50824. gridCache[ACCESS_LAST_VISITED_KEY_MAP[type4]]
  50825. ];
  50826. const lastVisitedItemOffset = lastVisitedIndex > 0 ? cache2[lastVisitedIndex].offset : 0;
  50827. if (lastVisitedItemOffset >= offset3) {
  50828. return bs2(props2, gridCache, 0, lastVisitedIndex, offset3, type4);
  50829. }
  50830. return es2(props2, gridCache, max2(0, lastVisitedIndex), offset3, type4);
  50831. };
  50832. var getEstimatedTotalHeight = ({ totalRow }, { estimatedRowHeight, lastVisitedRowIndex, row }) => {
  50833. let sizeOfVisitedRows = 0;
  50834. if (lastVisitedRowIndex >= totalRow) {
  50835. lastVisitedRowIndex = totalRow - 1;
  50836. }
  50837. if (lastVisitedRowIndex >= 0) {
  50838. const item = row[lastVisitedRowIndex];
  50839. sizeOfVisitedRows = item.offset + item.size;
  50840. }
  50841. const unvisitedItems = totalRow - lastVisitedRowIndex - 1;
  50842. const sizeOfUnvisitedItems = unvisitedItems * estimatedRowHeight;
  50843. return sizeOfVisitedRows + sizeOfUnvisitedItems;
  50844. };
  50845. var getEstimatedTotalWidth = ({ totalColumn }, { column: column2, estimatedColumnWidth, lastVisitedColumnIndex }) => {
  50846. let sizeOfVisitedColumns = 0;
  50847. if (lastVisitedColumnIndex > totalColumn) {
  50848. lastVisitedColumnIndex = totalColumn - 1;
  50849. }
  50850. if (lastVisitedColumnIndex >= 0) {
  50851. const item = column2[lastVisitedColumnIndex];
  50852. sizeOfVisitedColumns = item.offset + item.size;
  50853. }
  50854. const unvisitedItems = totalColumn - lastVisitedColumnIndex - 1;
  50855. const sizeOfUnvisitedItems = unvisitedItems * estimatedColumnWidth;
  50856. return sizeOfVisitedColumns + sizeOfUnvisitedItems;
  50857. };
  50858. var ACCESS_ESTIMATED_SIZE_KEY_MAP = {
  50859. column: getEstimatedTotalWidth,
  50860. row: getEstimatedTotalHeight
  50861. };
  50862. var getOffset2 = (props2, index, alignment, scrollOffset, cache2, type4, scrollBarWidth2) => {
  50863. const [size3, estimatedSizeAssociates] = [
  50864. type4 === "row" ? props2.height : props2.width,
  50865. ACCESS_ESTIMATED_SIZE_KEY_MAP[type4]
  50866. ];
  50867. const item = getItemFromCache2(props2, index, cache2, type4);
  50868. const estimatedSize = estimatedSizeAssociates(props2, cache2);
  50869. const maxOffset = max2(0, min2(estimatedSize - size3, item.offset));
  50870. const minOffset = max2(0, item.offset - size3 + scrollBarWidth2 + item.size);
  50871. if (alignment === SMART_ALIGNMENT) {
  50872. if (scrollOffset >= minOffset - size3 && scrollOffset <= maxOffset + size3) {
  50873. alignment = AUTO_ALIGNMENT;
  50874. } else {
  50875. alignment = CENTERED_ALIGNMENT;
  50876. }
  50877. }
  50878. switch (alignment) {
  50879. case START_ALIGNMENT: {
  50880. return maxOffset;
  50881. }
  50882. case END_ALIGNMENT: {
  50883. return minOffset;
  50884. }
  50885. case CENTERED_ALIGNMENT: {
  50886. return Math.round(minOffset + (maxOffset - minOffset) / 2);
  50887. }
  50888. case AUTO_ALIGNMENT:
  50889. default: {
  50890. if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
  50891. return scrollOffset;
  50892. } else if (minOffset > maxOffset) {
  50893. return minOffset;
  50894. } else if (scrollOffset < minOffset) {
  50895. return minOffset;
  50896. } else {
  50897. return maxOffset;
  50898. }
  50899. }
  50900. }
  50901. };
  50902. var DynamicSizeGrid = createGrid({
  50903. name: "ElDynamicSizeGrid",
  50904. getColumnPosition: (props2, idx, cache2) => {
  50905. const item = getItemFromCache2(props2, idx, cache2, "column");
  50906. return [item.size, item.offset];
  50907. },
  50908. getRowPosition: (props2, idx, cache2) => {
  50909. const item = getItemFromCache2(props2, idx, cache2, "row");
  50910. return [item.size, item.offset];
  50911. },
  50912. getColumnOffset: (props2, columnIndex, alignment, scrollLeft, cache2, scrollBarWidth2) => getOffset2(props2, columnIndex, alignment, scrollLeft, cache2, "column", scrollBarWidth2),
  50913. getRowOffset: (props2, rowIndex, alignment, scrollTop, cache2, scrollBarWidth2) => getOffset2(props2, rowIndex, alignment, scrollTop, cache2, "row", scrollBarWidth2),
  50914. getColumnStartIndexForOffset: (props2, scrollLeft, cache2) => findItem2(props2, cache2, scrollLeft, "column"),
  50915. getColumnStopIndexForStartIndex: (props2, startIndex, scrollLeft, cache2) => {
  50916. const item = getItemFromCache2(props2, startIndex, cache2, "column");
  50917. const maxOffset = scrollLeft + props2.width;
  50918. let offset3 = item.offset + item.size;
  50919. let stopIndex = startIndex;
  50920. while (stopIndex < props2.totalColumn - 1 && offset3 < maxOffset) {
  50921. stopIndex++;
  50922. offset3 += getItemFromCache2(props2, startIndex, cache2, "column").size;
  50923. }
  50924. return stopIndex;
  50925. },
  50926. getEstimatedTotalHeight,
  50927. getEstimatedTotalWidth,
  50928. getRowStartIndexForOffset: (props2, scrollTop, cache2) => findItem2(props2, cache2, scrollTop, "row"),
  50929. getRowStopIndexForStartIndex: (props2, startIndex, scrollTop, cache2) => {
  50930. const { totalRow, height } = props2;
  50931. const item = getItemFromCache2(props2, startIndex, cache2, "row");
  50932. const maxOffset = scrollTop + height;
  50933. let offset3 = item.size + item.offset;
  50934. let stopIndex = startIndex;
  50935. while (stopIndex < totalRow - 1 && offset3 < maxOffset) {
  50936. stopIndex++;
  50937. offset3 += getItemFromCache2(props2, stopIndex, cache2, "row").size;
  50938. }
  50939. return stopIndex;
  50940. },
  50941. injectToInstance: (instance, cache2) => {
  50942. const resetAfter = ({ columnIndex, rowIndex }, forceUpdate) => {
  50943. var _a2, _b;
  50944. forceUpdate = isUndefined2(forceUpdate) ? true : forceUpdate;
  50945. if (isNumber2(columnIndex)) {
  50946. cache2.value.lastVisitedColumnIndex = Math.min(cache2.value.lastVisitedColumnIndex, columnIndex - 1);
  50947. }
  50948. if (isNumber2(rowIndex)) {
  50949. cache2.value.lastVisitedRowIndex = Math.min(cache2.value.lastVisitedRowIndex, rowIndex - 1);
  50950. }
  50951. (_a2 = instance.exposed) == null ? void 0 : _a2.getItemStyleCache.value(-1, null, null);
  50952. if (forceUpdate)
  50953. (_b = instance.proxy) == null ? void 0 : _b.$forceUpdate();
  50954. };
  50955. const resetAfterColumnIndex = (columnIndex, forceUpdate) => {
  50956. resetAfter({
  50957. columnIndex
  50958. }, forceUpdate);
  50959. };
  50960. const resetAfterRowIndex = (rowIndex, forceUpdate) => {
  50961. resetAfter({
  50962. rowIndex
  50963. }, forceUpdate);
  50964. };
  50965. Object.assign(instance.proxy, {
  50966. resetAfterColumnIndex,
  50967. resetAfterRowIndex,
  50968. resetAfter
  50969. });
  50970. },
  50971. initCache: ({
  50972. estimatedColumnWidth = DEFAULT_DYNAMIC_LIST_ITEM_SIZE,
  50973. estimatedRowHeight = DEFAULT_DYNAMIC_LIST_ITEM_SIZE
  50974. }) => {
  50975. const cache2 = {
  50976. column: {},
  50977. estimatedColumnWidth,
  50978. estimatedRowHeight,
  50979. lastVisitedColumnIndex: -1,
  50980. lastVisitedRowIndex: -1,
  50981. row: {}
  50982. };
  50983. return cache2;
  50984. },
  50985. clearCache: false,
  50986. validateProps: ({ columnWidth, rowHeight }) => {
  50987. }
  50988. });
  50989. // node_modules/element-plus/es/components/virtual-list/src/components/fixed-size-grid.mjs
  50990. var FixedSizeGrid = createGrid({
  50991. name: "ElFixedSizeGrid",
  50992. getColumnPosition: ({ columnWidth }, index) => [
  50993. columnWidth,
  50994. index * columnWidth
  50995. ],
  50996. getRowPosition: ({ rowHeight }, index) => [
  50997. rowHeight,
  50998. index * rowHeight
  50999. ],
  51000. getEstimatedTotalHeight: ({ totalRow, rowHeight }) => rowHeight * totalRow,
  51001. getEstimatedTotalWidth: ({ totalColumn, columnWidth }) => columnWidth * totalColumn,
  51002. getColumnOffset: ({ totalColumn, columnWidth, width }, columnIndex, alignment, scrollLeft, _2, scrollBarWidth2) => {
  51003. width = Number(width);
  51004. const lastColumnOffset = Math.max(0, totalColumn * columnWidth - width);
  51005. const maxOffset = Math.min(lastColumnOffset, columnIndex * columnWidth);
  51006. const minOffset = Math.max(0, columnIndex * columnWidth - width + scrollBarWidth2 + columnWidth);
  51007. if (alignment === "smart") {
  51008. if (scrollLeft >= minOffset - width && scrollLeft <= maxOffset + width) {
  51009. alignment = AUTO_ALIGNMENT;
  51010. } else {
  51011. alignment = CENTERED_ALIGNMENT;
  51012. }
  51013. }
  51014. switch (alignment) {
  51015. case START_ALIGNMENT:
  51016. return maxOffset;
  51017. case END_ALIGNMENT:
  51018. return minOffset;
  51019. case CENTERED_ALIGNMENT: {
  51020. const middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
  51021. if (middleOffset < Math.ceil(width / 2)) {
  51022. return 0;
  51023. } else if (middleOffset > lastColumnOffset + Math.floor(width / 2)) {
  51024. return lastColumnOffset;
  51025. } else {
  51026. return middleOffset;
  51027. }
  51028. }
  51029. case AUTO_ALIGNMENT:
  51030. default:
  51031. if (scrollLeft >= minOffset && scrollLeft <= maxOffset) {
  51032. return scrollLeft;
  51033. } else if (minOffset > maxOffset) {
  51034. return minOffset;
  51035. } else if (scrollLeft < minOffset) {
  51036. return minOffset;
  51037. } else {
  51038. return maxOffset;
  51039. }
  51040. }
  51041. },
  51042. getRowOffset: ({ rowHeight, height, totalRow }, rowIndex, align, scrollTop, _2, scrollBarWidth2) => {
  51043. height = Number(height);
  51044. const lastRowOffset = Math.max(0, totalRow * rowHeight - height);
  51045. const maxOffset = Math.min(lastRowOffset, rowIndex * rowHeight);
  51046. const minOffset = Math.max(0, rowIndex * rowHeight - height + scrollBarWidth2 + rowHeight);
  51047. if (align === SMART_ALIGNMENT) {
  51048. if (scrollTop >= minOffset - height && scrollTop <= maxOffset + height) {
  51049. align = AUTO_ALIGNMENT;
  51050. } else {
  51051. align = CENTERED_ALIGNMENT;
  51052. }
  51053. }
  51054. switch (align) {
  51055. case START_ALIGNMENT:
  51056. return maxOffset;
  51057. case END_ALIGNMENT:
  51058. return minOffset;
  51059. case CENTERED_ALIGNMENT: {
  51060. const middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
  51061. if (middleOffset < Math.ceil(height / 2)) {
  51062. return 0;
  51063. } else if (middleOffset > lastRowOffset + Math.floor(height / 2)) {
  51064. return lastRowOffset;
  51065. } else {
  51066. return middleOffset;
  51067. }
  51068. }
  51069. case AUTO_ALIGNMENT:
  51070. default:
  51071. if (scrollTop >= minOffset && scrollTop <= maxOffset) {
  51072. return scrollTop;
  51073. } else if (minOffset > maxOffset) {
  51074. return minOffset;
  51075. } else if (scrollTop < minOffset) {
  51076. return minOffset;
  51077. } else {
  51078. return maxOffset;
  51079. }
  51080. }
  51081. },
  51082. getColumnStartIndexForOffset: ({ columnWidth, totalColumn }, scrollLeft) => Math.max(0, Math.min(totalColumn - 1, Math.floor(scrollLeft / columnWidth))),
  51083. getColumnStopIndexForStartIndex: ({ columnWidth, totalColumn, width }, startIndex, scrollLeft) => {
  51084. const left = startIndex * columnWidth;
  51085. const visibleColumnsCount = Math.ceil((width + scrollLeft - left) / columnWidth);
  51086. return Math.max(0, Math.min(totalColumn - 1, startIndex + visibleColumnsCount - 1));
  51087. },
  51088. getRowStartIndexForOffset: ({ rowHeight, totalRow }, scrollTop) => Math.max(0, Math.min(totalRow - 1, Math.floor(scrollTop / rowHeight))),
  51089. getRowStopIndexForStartIndex: ({ rowHeight, totalRow, height }, startIndex, scrollTop) => {
  51090. const top = startIndex * rowHeight;
  51091. const numVisibleRows = Math.ceil((height + scrollTop - top) / rowHeight);
  51092. return Math.max(0, Math.min(totalRow - 1, startIndex + numVisibleRows - 1));
  51093. },
  51094. initCache: () => void 0,
  51095. clearCache: true,
  51096. validateProps: ({ columnWidth, rowHeight }) => {
  51097. }
  51098. });
  51099. // node_modules/element-plus/es/components/table-v2/src/table-grid.mjs
  51100. var COMPONENT_NAME19 = "ElTableV2Grid";
  51101. var useTableGrid = (props2) => {
  51102. const headerRef = ref();
  51103. const bodyRef = ref();
  51104. const scrollLeft = ref(0);
  51105. const totalHeight = computed(() => {
  51106. const {
  51107. data,
  51108. rowHeight,
  51109. estimatedRowHeight
  51110. } = props2;
  51111. if (estimatedRowHeight) {
  51112. return;
  51113. }
  51114. return data.length * rowHeight;
  51115. });
  51116. const fixedRowHeight = computed(() => {
  51117. const {
  51118. fixedData,
  51119. rowHeight
  51120. } = props2;
  51121. return ((fixedData == null ? void 0 : fixedData.length) || 0) * rowHeight;
  51122. });
  51123. const headerHeight = computed(() => sum2(props2.headerHeight));
  51124. const gridHeight = computed(() => {
  51125. const {
  51126. height
  51127. } = props2;
  51128. return Math.max(0, height - unref(headerHeight) - unref(fixedRowHeight));
  51129. });
  51130. const hasHeader = computed(() => {
  51131. return unref(headerHeight) + unref(fixedRowHeight) > 0;
  51132. });
  51133. const itemKey = ({
  51134. data,
  51135. rowIndex
  51136. }) => data[rowIndex][props2.rowKey];
  51137. function onItemRendered({
  51138. rowCacheStart,
  51139. rowCacheEnd,
  51140. rowVisibleStart,
  51141. rowVisibleEnd
  51142. }) {
  51143. var _a2;
  51144. (_a2 = props2.onRowsRendered) == null ? void 0 : _a2.call(props2, {
  51145. rowCacheStart,
  51146. rowCacheEnd,
  51147. rowVisibleStart,
  51148. rowVisibleEnd
  51149. });
  51150. }
  51151. function resetAfterRowIndex(index, forceUpdate2) {
  51152. var _a2;
  51153. (_a2 = bodyRef.value) == null ? void 0 : _a2.resetAfterRowIndex(index, forceUpdate2);
  51154. }
  51155. function scrollTo(leftOrOptions, top) {
  51156. const header$ = unref(headerRef);
  51157. const body$ = unref(bodyRef);
  51158. if (isObject(leftOrOptions)) {
  51159. header$ == null ? void 0 : header$.scrollToLeft(leftOrOptions.scrollLeft);
  51160. scrollLeft.value = leftOrOptions.scrollLeft;
  51161. body$ == null ? void 0 : body$.scrollTo(leftOrOptions);
  51162. } else {
  51163. header$ == null ? void 0 : header$.scrollToLeft(leftOrOptions);
  51164. scrollLeft.value = leftOrOptions;
  51165. body$ == null ? void 0 : body$.scrollTo({
  51166. scrollLeft: leftOrOptions,
  51167. scrollTop: top
  51168. });
  51169. }
  51170. }
  51171. function scrollToTop(scrollTop) {
  51172. var _a2;
  51173. (_a2 = unref(bodyRef)) == null ? void 0 : _a2.scrollTo({
  51174. scrollTop
  51175. });
  51176. }
  51177. function scrollToRow(row, strategy) {
  51178. var _a2;
  51179. (_a2 = unref(bodyRef)) == null ? void 0 : _a2.scrollToItem(row, 1, strategy);
  51180. }
  51181. function forceUpdate() {
  51182. var _a2, _b;
  51183. (_a2 = unref(bodyRef)) == null ? void 0 : _a2.$forceUpdate();
  51184. (_b = unref(headerRef)) == null ? void 0 : _b.$forceUpdate();
  51185. }
  51186. watch(() => props2.bodyWidth, () => {
  51187. var _a2;
  51188. if (isNumber2(props2.estimatedRowHeight))
  51189. (_a2 = bodyRef.value) == null ? void 0 : _a2.resetAfter({
  51190. columnIndex: 0
  51191. }, false);
  51192. });
  51193. return {
  51194. bodyRef,
  51195. forceUpdate,
  51196. fixedRowHeight,
  51197. gridHeight,
  51198. hasHeader,
  51199. headerHeight,
  51200. headerRef,
  51201. totalHeight,
  51202. itemKey,
  51203. onItemRendered,
  51204. resetAfterRowIndex,
  51205. scrollTo,
  51206. scrollToTop,
  51207. scrollToRow,
  51208. scrollLeft
  51209. };
  51210. };
  51211. var TableGrid = defineComponent({
  51212. name: COMPONENT_NAME19,
  51213. props: tableV2GridProps,
  51214. setup(props2, {
  51215. slots,
  51216. expose
  51217. }) {
  51218. const {
  51219. ns
  51220. } = inject(TableV2InjectionKey);
  51221. const {
  51222. bodyRef,
  51223. fixedRowHeight,
  51224. gridHeight,
  51225. hasHeader,
  51226. headerRef,
  51227. headerHeight,
  51228. totalHeight,
  51229. forceUpdate,
  51230. itemKey,
  51231. onItemRendered,
  51232. resetAfterRowIndex,
  51233. scrollTo,
  51234. scrollToTop,
  51235. scrollToRow,
  51236. scrollLeft
  51237. } = useTableGrid(props2);
  51238. provide(TABLE_V2_GRID_INJECTION_KEY, scrollLeft);
  51239. onActivated(async () => {
  51240. var _a2;
  51241. await nextTick();
  51242. const scrollTop = (_a2 = bodyRef.value) == null ? void 0 : _a2.states.scrollTop;
  51243. scrollTop && scrollToTop(Math.round(scrollTop) + 1);
  51244. });
  51245. expose({
  51246. forceUpdate,
  51247. totalHeight,
  51248. scrollTo,
  51249. scrollToTop,
  51250. scrollToRow,
  51251. resetAfterRowIndex
  51252. });
  51253. const getColumnWidth = () => props2.bodyWidth;
  51254. return () => {
  51255. const {
  51256. cache: cache2,
  51257. columns: columns2,
  51258. data,
  51259. fixedData,
  51260. useIsScrolling,
  51261. scrollbarAlwaysOn,
  51262. scrollbarEndGap,
  51263. scrollbarStartGap,
  51264. style,
  51265. rowHeight,
  51266. bodyWidth,
  51267. estimatedRowHeight,
  51268. headerWidth,
  51269. height,
  51270. width,
  51271. getRowHeight,
  51272. onScroll
  51273. } = props2;
  51274. const isDynamicRowEnabled = isNumber2(estimatedRowHeight);
  51275. const Grid = isDynamicRowEnabled ? DynamicSizeGrid : FixedSizeGrid;
  51276. const _headerHeight = unref(headerHeight);
  51277. return createVNode("div", {
  51278. "role": "table",
  51279. "class": [ns.e("table"), props2.class],
  51280. "style": style
  51281. }, [createVNode(Grid, {
  51282. "ref": bodyRef,
  51283. "data": data,
  51284. "useIsScrolling": useIsScrolling,
  51285. "itemKey": itemKey,
  51286. "columnCache": 0,
  51287. "columnWidth": isDynamicRowEnabled ? getColumnWidth : bodyWidth,
  51288. "totalColumn": 1,
  51289. "totalRow": data.length,
  51290. "rowCache": cache2,
  51291. "rowHeight": isDynamicRowEnabled ? getRowHeight : rowHeight,
  51292. "width": width,
  51293. "height": unref(gridHeight),
  51294. "class": ns.e("body"),
  51295. "role": "rowgroup",
  51296. "scrollbarStartGap": scrollbarStartGap,
  51297. "scrollbarEndGap": scrollbarEndGap,
  51298. "scrollbarAlwaysOn": scrollbarAlwaysOn,
  51299. "onScroll": onScroll,
  51300. "onItemRendered": onItemRendered,
  51301. "perfMode": false
  51302. }, {
  51303. default: (params) => {
  51304. var _a2;
  51305. const rowData = data[params.rowIndex];
  51306. return (_a2 = slots.row) == null ? void 0 : _a2.call(slots, {
  51307. ...params,
  51308. columns: columns2,
  51309. rowData
  51310. });
  51311. }
  51312. }), unref(hasHeader) && createVNode(Header2, {
  51313. "ref": headerRef,
  51314. "class": ns.e("header-wrapper"),
  51315. "columns": columns2,
  51316. "headerData": data,
  51317. "headerHeight": props2.headerHeight,
  51318. "fixedHeaderData": fixedData,
  51319. "rowWidth": headerWidth,
  51320. "rowHeight": rowHeight,
  51321. "width": width,
  51322. "height": Math.min(_headerHeight + unref(fixedRowHeight), height)
  51323. }, {
  51324. dynamic: slots.header,
  51325. fixed: slots.row
  51326. })]);
  51327. };
  51328. }
  51329. });
  51330. var Table2 = TableGrid;
  51331. // node_modules/element-plus/es/components/table-v2/src/renderers/main-table.mjs
  51332. function _isSlot3(s2) {
  51333. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  51334. }
  51335. var MainTable = (props2, {
  51336. slots
  51337. }) => {
  51338. const {
  51339. mainTableRef,
  51340. ...rest2
  51341. } = props2;
  51342. return createVNode(Table2, mergeProps({
  51343. "ref": mainTableRef
  51344. }, rest2), _isSlot3(slots) ? slots : {
  51345. default: () => [slots]
  51346. });
  51347. };
  51348. var MainTable$1 = MainTable;
  51349. // node_modules/element-plus/es/components/table-v2/src/renderers/left-table.mjs
  51350. function _isSlot4(s2) {
  51351. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  51352. }
  51353. var LeftTable = (props2, {
  51354. slots
  51355. }) => {
  51356. if (!props2.columns.length)
  51357. return;
  51358. const {
  51359. leftTableRef,
  51360. ...rest2
  51361. } = props2;
  51362. return createVNode(Table2, mergeProps({
  51363. "ref": leftTableRef
  51364. }, rest2), _isSlot4(slots) ? slots : {
  51365. default: () => [slots]
  51366. });
  51367. };
  51368. var LeftTable$1 = LeftTable;
  51369. // node_modules/element-plus/es/components/table-v2/src/renderers/right-table.mjs
  51370. function _isSlot5(s2) {
  51371. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  51372. }
  51373. var RightTable = (props2, {
  51374. slots
  51375. }) => {
  51376. if (!props2.columns.length)
  51377. return;
  51378. const {
  51379. rightTableRef,
  51380. ...rest2
  51381. } = props2;
  51382. return createVNode(Table2, mergeProps({
  51383. "ref": rightTableRef
  51384. }, rest2), _isSlot5(slots) ? slots : {
  51385. default: () => [slots]
  51386. });
  51387. };
  51388. var RightTable$1 = RightTable;
  51389. // node_modules/element-plus/es/components/table-v2/src/components/row.mjs
  51390. var useTableRow = (props2) => {
  51391. const {
  51392. isScrolling
  51393. } = inject(TableV2InjectionKey);
  51394. const measured = ref(false);
  51395. const rowRef = ref();
  51396. const measurable = computed(() => {
  51397. return isNumber2(props2.estimatedRowHeight) && props2.rowIndex >= 0;
  51398. });
  51399. const doMeasure = (isInit = false) => {
  51400. const $rowRef = unref(rowRef);
  51401. if (!$rowRef)
  51402. return;
  51403. const {
  51404. columns: columns2,
  51405. onRowHeightChange,
  51406. rowKey: rowKey2,
  51407. rowIndex,
  51408. style
  51409. } = props2;
  51410. const {
  51411. height
  51412. } = $rowRef.getBoundingClientRect();
  51413. measured.value = true;
  51414. nextTick(() => {
  51415. if (isInit || height !== Number.parseInt(style.height)) {
  51416. const firstColumn = columns2[0];
  51417. const isPlaceholder = (firstColumn == null ? void 0 : firstColumn.placeholderSign) === placeholderSign;
  51418. onRowHeightChange == null ? void 0 : onRowHeightChange({
  51419. rowKey: rowKey2,
  51420. height,
  51421. rowIndex
  51422. }, firstColumn && !isPlaceholder && firstColumn.fixed);
  51423. }
  51424. });
  51425. };
  51426. const eventHandlers = computed(() => {
  51427. const {
  51428. rowData,
  51429. rowIndex,
  51430. rowKey: rowKey2,
  51431. onRowHover
  51432. } = props2;
  51433. const handlers2 = props2.rowEventHandlers || {};
  51434. const eventHandlers2 = {};
  51435. Object.entries(handlers2).forEach(([eventName, handler]) => {
  51436. if (isFunction(handler)) {
  51437. eventHandlers2[eventName] = (event) => {
  51438. handler({
  51439. event,
  51440. rowData,
  51441. rowIndex,
  51442. rowKey: rowKey2
  51443. });
  51444. };
  51445. }
  51446. });
  51447. if (onRowHover) {
  51448. [{
  51449. name: "onMouseleave",
  51450. hovered: false
  51451. }, {
  51452. name: "onMouseenter",
  51453. hovered: true
  51454. }].forEach(({
  51455. name,
  51456. hovered
  51457. }) => {
  51458. const existedHandler = eventHandlers2[name];
  51459. eventHandlers2[name] = (event) => {
  51460. onRowHover({
  51461. event,
  51462. hovered,
  51463. rowData,
  51464. rowIndex,
  51465. rowKey: rowKey2
  51466. });
  51467. existedHandler == null ? void 0 : existedHandler(event);
  51468. };
  51469. });
  51470. }
  51471. return eventHandlers2;
  51472. });
  51473. const onExpand = (expanded) => {
  51474. const {
  51475. onRowExpand,
  51476. rowData,
  51477. rowIndex,
  51478. rowKey: rowKey2
  51479. } = props2;
  51480. onRowExpand == null ? void 0 : onRowExpand({
  51481. expanded,
  51482. rowData,
  51483. rowIndex,
  51484. rowKey: rowKey2
  51485. });
  51486. };
  51487. onMounted(() => {
  51488. if (unref(measurable)) {
  51489. doMeasure(true);
  51490. }
  51491. });
  51492. return {
  51493. isScrolling,
  51494. measurable,
  51495. measured,
  51496. rowRef,
  51497. eventHandlers,
  51498. onExpand
  51499. };
  51500. };
  51501. var COMPONENT_NAME20 = "ElTableV2TableRow";
  51502. var TableV2Row = defineComponent({
  51503. name: COMPONENT_NAME20,
  51504. props: tableV2RowProps,
  51505. setup(props2, {
  51506. expose,
  51507. slots,
  51508. attrs
  51509. }) {
  51510. const {
  51511. eventHandlers,
  51512. isScrolling,
  51513. measurable,
  51514. measured,
  51515. rowRef,
  51516. onExpand
  51517. } = useTableRow(props2);
  51518. expose({
  51519. onExpand
  51520. });
  51521. return () => {
  51522. const {
  51523. columns: columns2,
  51524. columnsStyles,
  51525. expandColumnKey: expandColumnKey2,
  51526. depth,
  51527. rowData,
  51528. rowIndex,
  51529. style
  51530. } = props2;
  51531. let ColumnCells = columns2.map((column2, columnIndex) => {
  51532. const expandable = isArray(rowData.children) && rowData.children.length > 0 && column2.key === expandColumnKey2;
  51533. return slots.cell({
  51534. column: column2,
  51535. columns: columns2,
  51536. columnIndex,
  51537. depth,
  51538. style: columnsStyles[column2.key],
  51539. rowData,
  51540. rowIndex,
  51541. isScrolling: unref(isScrolling),
  51542. expandIconProps: expandable ? {
  51543. rowData,
  51544. rowIndex,
  51545. onExpand
  51546. } : void 0
  51547. });
  51548. });
  51549. if (slots.row) {
  51550. ColumnCells = slots.row({
  51551. cells: ColumnCells.map((node) => {
  51552. if (isArray(node) && node.length === 1) {
  51553. return node[0];
  51554. }
  51555. return node;
  51556. }),
  51557. style,
  51558. columns: columns2,
  51559. depth,
  51560. rowData,
  51561. rowIndex,
  51562. isScrolling: unref(isScrolling)
  51563. });
  51564. }
  51565. if (unref(measurable)) {
  51566. const {
  51567. height,
  51568. ...exceptHeightStyle
  51569. } = style || {};
  51570. const _measured = unref(measured);
  51571. return createVNode("div", mergeProps({
  51572. "ref": rowRef,
  51573. "class": props2.class,
  51574. "style": _measured ? style : exceptHeightStyle,
  51575. "role": "row"
  51576. }, attrs, unref(eventHandlers)), [ColumnCells]);
  51577. }
  51578. return createVNode("div", mergeProps(attrs, {
  51579. "ref": rowRef,
  51580. "class": props2.class,
  51581. "style": style,
  51582. "role": "row"
  51583. }, unref(eventHandlers)), [ColumnCells]);
  51584. };
  51585. }
  51586. });
  51587. var Row2 = TableV2Row;
  51588. // node_modules/element-plus/es/components/table-v2/src/renderers/row.mjs
  51589. function _isSlot6(s2) {
  51590. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  51591. }
  51592. var RowRenderer = (props2, {
  51593. slots
  51594. }) => {
  51595. const {
  51596. columns: columns2,
  51597. columnsStyles,
  51598. depthMap,
  51599. expandColumnKey: expandColumnKey2,
  51600. expandedRowKeys,
  51601. estimatedRowHeight,
  51602. hasFixedColumns,
  51603. rowData,
  51604. rowIndex,
  51605. style,
  51606. isScrolling,
  51607. rowProps: rowProps2,
  51608. rowClass,
  51609. rowKey: rowKey2,
  51610. rowEventHandlers,
  51611. ns,
  51612. onRowHovered,
  51613. onRowExpanded
  51614. } = props2;
  51615. const rowKls = tryCall(rowClass, {
  51616. columns: columns2,
  51617. rowData,
  51618. rowIndex
  51619. }, "");
  51620. const additionalProps = tryCall(rowProps2, {
  51621. columns: columns2,
  51622. rowData,
  51623. rowIndex
  51624. });
  51625. const _rowKey = rowData[rowKey2];
  51626. const depth = depthMap[_rowKey] || 0;
  51627. const canExpand = Boolean(expandColumnKey2);
  51628. const isFixedRow = rowIndex < 0;
  51629. const kls = [ns.e("row"), rowKls, ns.is("expanded", canExpand && expandedRowKeys.includes(_rowKey)), ns.is("fixed", !depth && isFixedRow), ns.is("customized", Boolean(slots.row)), {
  51630. [ns.e(`row-depth-${depth}`)]: canExpand && rowIndex >= 0
  51631. }];
  51632. const onRowHover = hasFixedColumns ? onRowHovered : void 0;
  51633. const _rowProps = {
  51634. ...additionalProps,
  51635. columns: columns2,
  51636. columnsStyles,
  51637. class: kls,
  51638. depth,
  51639. expandColumnKey: expandColumnKey2,
  51640. estimatedRowHeight: isFixedRow ? void 0 : estimatedRowHeight,
  51641. isScrolling,
  51642. rowIndex,
  51643. rowData,
  51644. rowKey: _rowKey,
  51645. rowEventHandlers,
  51646. style
  51647. };
  51648. const handlerMouseEnter = (e) => {
  51649. onRowHover == null ? void 0 : onRowHover({
  51650. hovered: true,
  51651. rowKey: _rowKey,
  51652. event: e,
  51653. rowData,
  51654. rowIndex
  51655. });
  51656. };
  51657. const handlerMouseLeave = (e) => {
  51658. onRowHover == null ? void 0 : onRowHover({
  51659. hovered: false,
  51660. rowKey: _rowKey,
  51661. event: e,
  51662. rowData,
  51663. rowIndex
  51664. });
  51665. };
  51666. return createVNode(Row2, mergeProps(_rowProps, {
  51667. "onRowExpand": onRowExpanded,
  51668. "onMouseenter": handlerMouseEnter,
  51669. "onMouseleave": handlerMouseLeave,
  51670. "rowkey": _rowKey
  51671. }), _isSlot6(slots) ? slots : {
  51672. default: () => [slots]
  51673. });
  51674. };
  51675. var Row3 = RowRenderer;
  51676. // node_modules/element-plus/es/components/table-v2/src/components/cell.mjs
  51677. var TableV2Cell = (props2, {
  51678. slots
  51679. }) => {
  51680. var _a2;
  51681. const {
  51682. cellData,
  51683. style
  51684. } = props2;
  51685. const displayText = ((_a2 = cellData == null ? void 0 : cellData.toString) == null ? void 0 : _a2.call(cellData)) || "";
  51686. const defaultSlot = renderSlot(slots, "default", props2, () => [displayText]);
  51687. return createVNode("div", {
  51688. "class": props2.class,
  51689. "title": displayText,
  51690. "style": style
  51691. }, [defaultSlot]);
  51692. };
  51693. TableV2Cell.displayName = "ElTableV2Cell";
  51694. TableV2Cell.inheritAttrs = false;
  51695. var TableCell = TableV2Cell;
  51696. // node_modules/element-plus/es/components/table-v2/src/components/expand-icon.mjs
  51697. var ExpandIcon = (props2) => {
  51698. const {
  51699. expanded,
  51700. expandable,
  51701. onExpand,
  51702. style,
  51703. size: size3
  51704. } = props2;
  51705. const expandIconProps = {
  51706. onClick: expandable ? () => onExpand(!expanded) : void 0,
  51707. class: props2.class
  51708. };
  51709. return createVNode(ElIcon, mergeProps(expandIconProps, {
  51710. "size": size3,
  51711. "style": style
  51712. }), {
  51713. default: () => [createVNode(arrow_right_default, null, null)]
  51714. });
  51715. };
  51716. var ExpandIcon$1 = ExpandIcon;
  51717. // node_modules/element-plus/es/components/table-v2/src/renderers/cell.mjs
  51718. var CellRenderer = ({
  51719. columns: columns2,
  51720. column: column2,
  51721. columnIndex,
  51722. depth,
  51723. expandIconProps,
  51724. isScrolling,
  51725. rowData,
  51726. rowIndex,
  51727. style,
  51728. expandedRowKeys,
  51729. ns,
  51730. cellProps: _cellProps,
  51731. expandColumnKey: expandColumnKey2,
  51732. indentSize,
  51733. iconSize,
  51734. rowKey: rowKey2
  51735. }, {
  51736. slots
  51737. }) => {
  51738. const cellStyle = enforceUnit(style);
  51739. if (column2.placeholderSign === placeholderSign) {
  51740. return createVNode("div", {
  51741. "class": ns.em("row-cell", "placeholder"),
  51742. "style": cellStyle
  51743. }, null);
  51744. }
  51745. const {
  51746. cellRenderer,
  51747. dataKey,
  51748. dataGetter
  51749. } = column2;
  51750. const cellData = isFunction(dataGetter) ? dataGetter({
  51751. columns: columns2,
  51752. column: column2,
  51753. columnIndex,
  51754. rowData,
  51755. rowIndex
  51756. }) : get_default(rowData, dataKey != null ? dataKey : "");
  51757. const extraCellProps = tryCall(_cellProps, {
  51758. cellData,
  51759. columns: columns2,
  51760. column: column2,
  51761. columnIndex,
  51762. rowIndex,
  51763. rowData
  51764. });
  51765. const cellProps = {
  51766. class: ns.e("cell-text"),
  51767. columns: columns2,
  51768. column: column2,
  51769. columnIndex,
  51770. cellData,
  51771. isScrolling,
  51772. rowData,
  51773. rowIndex
  51774. };
  51775. const columnCellRenderer = componentToSlot(cellRenderer);
  51776. const Cell2 = columnCellRenderer ? columnCellRenderer(cellProps) : renderSlot(slots, "default", cellProps, () => [createVNode(TableCell, cellProps, null)]);
  51777. const kls = [ns.e("row-cell"), column2.class, column2.align === Alignment.CENTER && ns.is("align-center"), column2.align === Alignment.RIGHT && ns.is("align-right")];
  51778. const expandable = rowIndex >= 0 && expandColumnKey2 && column2.key === expandColumnKey2;
  51779. const expanded = rowIndex >= 0 && expandedRowKeys.includes(rowData[rowKey2]);
  51780. let IconOrPlaceholder;
  51781. const iconStyle = `margin-inline-start: ${depth * indentSize}px;`;
  51782. if (expandable) {
  51783. if (isObject(expandIconProps)) {
  51784. IconOrPlaceholder = createVNode(ExpandIcon$1, mergeProps(expandIconProps, {
  51785. "class": [ns.e("expand-icon"), ns.is("expanded", expanded)],
  51786. "size": iconSize,
  51787. "expanded": expanded,
  51788. "style": iconStyle,
  51789. "expandable": true
  51790. }), null);
  51791. } else {
  51792. IconOrPlaceholder = createVNode("div", {
  51793. "style": [iconStyle, `width: ${iconSize}px; height: ${iconSize}px;`].join(" ")
  51794. }, null);
  51795. }
  51796. }
  51797. return createVNode("div", mergeProps({
  51798. "class": kls,
  51799. "style": cellStyle
  51800. }, extraCellProps, {
  51801. "role": "cell"
  51802. }), [IconOrPlaceholder, Cell2]);
  51803. };
  51804. CellRenderer.inheritAttrs = false;
  51805. var Cell = CellRenderer;
  51806. // node_modules/element-plus/es/components/table-v2/src/header-row.mjs
  51807. var tableV2HeaderRowProps = buildProps({
  51808. class: String,
  51809. columns,
  51810. columnsStyles: {
  51811. type: definePropType(Object),
  51812. required: true
  51813. },
  51814. headerIndex: Number,
  51815. style: { type: definePropType(Object) }
  51816. });
  51817. // node_modules/element-plus/es/components/table-v2/src/components/header-row.mjs
  51818. var TableV2HeaderRow = defineComponent({
  51819. name: "ElTableV2HeaderRow",
  51820. props: tableV2HeaderRowProps,
  51821. setup(props2, {
  51822. slots
  51823. }) {
  51824. return () => {
  51825. const {
  51826. columns: columns2,
  51827. columnsStyles,
  51828. headerIndex,
  51829. style
  51830. } = props2;
  51831. let Cells = columns2.map((column2, columnIndex) => {
  51832. return slots.cell({
  51833. columns: columns2,
  51834. column: column2,
  51835. columnIndex,
  51836. headerIndex,
  51837. style: columnsStyles[column2.key]
  51838. });
  51839. });
  51840. if (slots.header) {
  51841. Cells = slots.header({
  51842. cells: Cells.map((node) => {
  51843. if (isArray(node) && node.length === 1) {
  51844. return node[0];
  51845. }
  51846. return node;
  51847. }),
  51848. columns: columns2,
  51849. headerIndex
  51850. });
  51851. }
  51852. return createVNode("div", {
  51853. "class": props2.class,
  51854. "style": style,
  51855. "role": "row"
  51856. }, [Cells]);
  51857. };
  51858. }
  51859. });
  51860. var HeaderRow = TableV2HeaderRow;
  51861. // node_modules/element-plus/es/components/table-v2/src/renderers/header.mjs
  51862. function _isSlot7(s2) {
  51863. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  51864. }
  51865. var HeaderRenderer = ({
  51866. columns: columns2,
  51867. columnsStyles,
  51868. headerIndex,
  51869. style,
  51870. headerClass,
  51871. headerProps,
  51872. ns
  51873. }, {
  51874. slots
  51875. }) => {
  51876. const param = {
  51877. columns: columns2,
  51878. headerIndex
  51879. };
  51880. const kls = [ns.e("header-row"), tryCall(headerClass, param, ""), ns.is("customized", Boolean(slots.header))];
  51881. const extraProps = {
  51882. ...tryCall(headerProps, param),
  51883. columnsStyles,
  51884. class: kls,
  51885. columns: columns2,
  51886. headerIndex,
  51887. style
  51888. };
  51889. return createVNode(HeaderRow, extraProps, _isSlot7(slots) ? slots : {
  51890. default: () => [slots]
  51891. });
  51892. };
  51893. var Header3 = HeaderRenderer;
  51894. // node_modules/element-plus/es/components/table-v2/src/components/header-cell.mjs
  51895. var HeaderCell = (props2, {
  51896. slots
  51897. }) => renderSlot(slots, "default", props2, () => {
  51898. var _a2, _b;
  51899. return [createVNode("div", {
  51900. "class": props2.class,
  51901. "title": (_a2 = props2.column) == null ? void 0 : _a2.title
  51902. }, [(_b = props2.column) == null ? void 0 : _b.title])];
  51903. });
  51904. HeaderCell.displayName = "ElTableV2HeaderCell";
  51905. HeaderCell.inheritAttrs = false;
  51906. var HeaderCell$1 = HeaderCell;
  51907. // node_modules/element-plus/es/components/table-v2/src/components/sort-icon.mjs
  51908. var SortIcon = (props2) => {
  51909. const {
  51910. sortOrder
  51911. } = props2;
  51912. return createVNode(ElIcon, {
  51913. "size": 14,
  51914. "class": props2.class
  51915. }, {
  51916. default: () => [sortOrder === SortOrder.ASC ? createVNode(sort_up_default, null, null) : createVNode(sort_down_default, null, null)]
  51917. });
  51918. };
  51919. var SortIcon$1 = SortIcon;
  51920. // node_modules/element-plus/es/components/table-v2/src/renderers/header-cell.mjs
  51921. var HeaderCellRenderer = (props2, {
  51922. slots
  51923. }) => {
  51924. const {
  51925. column: column2,
  51926. ns,
  51927. style,
  51928. onColumnSorted
  51929. } = props2;
  51930. const cellStyle = enforceUnit(style);
  51931. if (column2.placeholderSign === placeholderSign) {
  51932. return createVNode("div", {
  51933. "class": ns.em("header-row-cell", "placeholder"),
  51934. "style": cellStyle
  51935. }, null);
  51936. }
  51937. const {
  51938. headerCellRenderer,
  51939. headerClass,
  51940. sortable
  51941. } = column2;
  51942. const cellProps = {
  51943. ...props2,
  51944. class: ns.e("header-cell-text")
  51945. };
  51946. const columnCellRenderer = componentToSlot(headerCellRenderer);
  51947. const Cell2 = columnCellRenderer ? columnCellRenderer(cellProps) : renderSlot(slots, "default", cellProps, () => [createVNode(HeaderCell$1, cellProps, null)]);
  51948. const {
  51949. sortBy: sortBy2,
  51950. sortState,
  51951. headerCellProps
  51952. } = props2;
  51953. let sorting, sortOrder;
  51954. if (sortState) {
  51955. const order = sortState[column2.key];
  51956. sorting = Boolean(oppositeOrderMap[order]);
  51957. sortOrder = sorting ? order : SortOrder.ASC;
  51958. } else {
  51959. sorting = column2.key === sortBy2.key;
  51960. sortOrder = sorting ? sortBy2.order : SortOrder.ASC;
  51961. }
  51962. const cellKls = [ns.e("header-cell"), tryCall(headerClass, props2, ""), column2.align === Alignment.CENTER && ns.is("align-center"), column2.align === Alignment.RIGHT && ns.is("align-right"), sortable && ns.is("sortable")];
  51963. const cellWrapperProps = {
  51964. ...tryCall(headerCellProps, props2),
  51965. onClick: column2.sortable ? onColumnSorted : void 0,
  51966. class: cellKls,
  51967. style: cellStyle,
  51968. ["data-key"]: column2.key
  51969. };
  51970. return createVNode("div", mergeProps(cellWrapperProps, {
  51971. "role": "columnheader"
  51972. }), [Cell2, sortable && createVNode(SortIcon$1, {
  51973. "class": [ns.e("sort-icon"), sorting && ns.is("sorting")],
  51974. "sortOrder": sortOrder
  51975. }, null)]);
  51976. };
  51977. var HeaderCell2 = HeaderCellRenderer;
  51978. // node_modules/element-plus/es/components/table-v2/src/renderers/footer.mjs
  51979. var Footer2 = (props2, {
  51980. slots
  51981. }) => {
  51982. var _a2;
  51983. return createVNode("div", {
  51984. "class": props2.class,
  51985. "style": props2.style
  51986. }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
  51987. };
  51988. Footer2.displayName = "ElTableV2Footer";
  51989. var Footer$1 = Footer2;
  51990. // node_modules/element-plus/es/components/table-v2/src/renderers/empty.mjs
  51991. var Footer3 = (props2, {
  51992. slots
  51993. }) => {
  51994. const defaultSlot = renderSlot(slots, "default", {}, () => [createVNode(ElEmpty, null, null)]);
  51995. return createVNode("div", {
  51996. "class": props2.class,
  51997. "style": props2.style
  51998. }, [defaultSlot]);
  51999. };
  52000. Footer3.displayName = "ElTableV2Empty";
  52001. var Empty2 = Footer3;
  52002. // node_modules/element-plus/es/components/table-v2/src/renderers/overlay.mjs
  52003. var Overlay2 = (props2, {
  52004. slots
  52005. }) => {
  52006. var _a2;
  52007. return createVNode("div", {
  52008. "class": props2.class,
  52009. "style": props2.style
  52010. }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
  52011. };
  52012. Overlay2.displayName = "ElTableV2Overlay";
  52013. var Overlay$1 = Overlay2;
  52014. // node_modules/element-plus/es/components/table-v2/src/table-v2.mjs
  52015. function _isSlot8(s2) {
  52016. return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
  52017. }
  52018. var COMPONENT_NAME21 = "ElTableV2";
  52019. var TableV2 = defineComponent({
  52020. name: COMPONENT_NAME21,
  52021. props: tableV2Props,
  52022. setup(props2, {
  52023. slots,
  52024. expose
  52025. }) {
  52026. const ns = useNamespace("table-v2");
  52027. const {
  52028. columnsStyles,
  52029. fixedColumnsOnLeft,
  52030. fixedColumnsOnRight,
  52031. mainColumns,
  52032. mainTableHeight,
  52033. fixedTableHeight,
  52034. leftTableWidth,
  52035. rightTableWidth,
  52036. data,
  52037. depthMap,
  52038. expandedRowKeys,
  52039. hasFixedColumns,
  52040. mainTableRef,
  52041. leftTableRef,
  52042. rightTableRef,
  52043. isDynamic,
  52044. isResetting,
  52045. isScrolling,
  52046. bodyWidth,
  52047. emptyStyle,
  52048. rootStyle,
  52049. footerHeight,
  52050. showEmpty,
  52051. scrollTo,
  52052. scrollToLeft,
  52053. scrollToTop,
  52054. scrollToRow,
  52055. getRowHeight,
  52056. onColumnSorted,
  52057. onRowHeightChange,
  52058. onRowHovered,
  52059. onRowExpanded,
  52060. onRowsRendered,
  52061. onScroll,
  52062. onVerticalScroll
  52063. } = useTable(props2);
  52064. expose({
  52065. scrollTo,
  52066. scrollToLeft,
  52067. scrollToTop,
  52068. scrollToRow
  52069. });
  52070. provide(TableV2InjectionKey, {
  52071. ns,
  52072. isResetting,
  52073. isScrolling
  52074. });
  52075. return () => {
  52076. const {
  52077. cache: cache2,
  52078. cellProps,
  52079. estimatedRowHeight,
  52080. expandColumnKey: expandColumnKey2,
  52081. fixedData,
  52082. headerHeight,
  52083. headerClass,
  52084. headerProps,
  52085. headerCellProps,
  52086. sortBy: sortBy2,
  52087. sortState,
  52088. rowHeight,
  52089. rowClass,
  52090. rowEventHandlers,
  52091. rowKey: rowKey2,
  52092. rowProps: rowProps2,
  52093. scrollbarAlwaysOn,
  52094. indentSize,
  52095. iconSize,
  52096. useIsScrolling,
  52097. vScrollbarSize,
  52098. width
  52099. } = props2;
  52100. const _data = unref(data);
  52101. const mainTableProps = {
  52102. cache: cache2,
  52103. class: ns.e("main"),
  52104. columns: unref(mainColumns),
  52105. data: _data,
  52106. fixedData,
  52107. estimatedRowHeight,
  52108. bodyWidth: unref(bodyWidth),
  52109. headerHeight,
  52110. headerWidth: unref(bodyWidth),
  52111. height: unref(mainTableHeight),
  52112. mainTableRef,
  52113. rowKey: rowKey2,
  52114. rowHeight,
  52115. scrollbarAlwaysOn,
  52116. scrollbarStartGap: 2,
  52117. scrollbarEndGap: vScrollbarSize,
  52118. useIsScrolling,
  52119. width,
  52120. getRowHeight,
  52121. onRowsRendered,
  52122. onScroll
  52123. };
  52124. const leftColumnsWidth = unref(leftTableWidth);
  52125. const _fixedTableHeight = unref(fixedTableHeight);
  52126. const leftTableProps = {
  52127. cache: cache2,
  52128. class: ns.e("left"),
  52129. columns: unref(fixedColumnsOnLeft),
  52130. data: _data,
  52131. fixedData,
  52132. estimatedRowHeight,
  52133. leftTableRef,
  52134. rowHeight,
  52135. bodyWidth: leftColumnsWidth,
  52136. headerWidth: leftColumnsWidth,
  52137. headerHeight,
  52138. height: _fixedTableHeight,
  52139. rowKey: rowKey2,
  52140. scrollbarAlwaysOn,
  52141. scrollbarStartGap: 2,
  52142. scrollbarEndGap: vScrollbarSize,
  52143. useIsScrolling,
  52144. width: leftColumnsWidth,
  52145. getRowHeight,
  52146. onScroll: onVerticalScroll
  52147. };
  52148. const rightColumnsWidth = unref(rightTableWidth);
  52149. const rightTableProps = {
  52150. cache: cache2,
  52151. class: ns.e("right"),
  52152. columns: unref(fixedColumnsOnRight),
  52153. data: _data,
  52154. fixedData,
  52155. estimatedRowHeight,
  52156. rightTableRef,
  52157. rowHeight,
  52158. bodyWidth: rightColumnsWidth,
  52159. headerWidth: rightColumnsWidth,
  52160. headerHeight,
  52161. height: _fixedTableHeight,
  52162. rowKey: rowKey2,
  52163. scrollbarAlwaysOn,
  52164. scrollbarStartGap: 2,
  52165. scrollbarEndGap: vScrollbarSize,
  52166. width: rightColumnsWidth,
  52167. style: `${ns.cssVarName("table-scrollbar-size")}: ${vScrollbarSize}px`,
  52168. useIsScrolling,
  52169. getRowHeight,
  52170. onScroll: onVerticalScroll
  52171. };
  52172. const _columnsStyles = unref(columnsStyles);
  52173. const tableRowProps = {
  52174. ns,
  52175. depthMap: unref(depthMap),
  52176. columnsStyles: _columnsStyles,
  52177. expandColumnKey: expandColumnKey2,
  52178. expandedRowKeys: unref(expandedRowKeys),
  52179. estimatedRowHeight,
  52180. hasFixedColumns: unref(hasFixedColumns),
  52181. rowProps: rowProps2,
  52182. rowClass,
  52183. rowKey: rowKey2,
  52184. rowEventHandlers,
  52185. onRowHovered,
  52186. onRowExpanded,
  52187. onRowHeightChange
  52188. };
  52189. const tableCellProps = {
  52190. cellProps,
  52191. expandColumnKey: expandColumnKey2,
  52192. indentSize,
  52193. iconSize,
  52194. rowKey: rowKey2,
  52195. expandedRowKeys: unref(expandedRowKeys),
  52196. ns
  52197. };
  52198. const tableHeaderProps = {
  52199. ns,
  52200. headerClass,
  52201. headerProps,
  52202. columnsStyles: _columnsStyles
  52203. };
  52204. const tableHeaderCellProps = {
  52205. ns,
  52206. sortBy: sortBy2,
  52207. sortState,
  52208. headerCellProps,
  52209. onColumnSorted
  52210. };
  52211. const tableSlots = {
  52212. row: (props22) => createVNode(Row3, mergeProps(props22, tableRowProps), {
  52213. row: slots.row,
  52214. cell: (props3) => {
  52215. let _slot;
  52216. return slots.cell ? createVNode(Cell, mergeProps(props3, tableCellProps, {
  52217. "style": _columnsStyles[props3.column.key]
  52218. }), _isSlot8(_slot = slots.cell(props3)) ? _slot : {
  52219. default: () => [_slot]
  52220. }) : createVNode(Cell, mergeProps(props3, tableCellProps, {
  52221. "style": _columnsStyles[props3.column.key]
  52222. }), null);
  52223. }
  52224. }),
  52225. header: (props22) => createVNode(Header3, mergeProps(props22, tableHeaderProps), {
  52226. header: slots.header,
  52227. cell: (props3) => {
  52228. let _slot2;
  52229. return slots["header-cell"] ? createVNode(HeaderCell2, mergeProps(props3, tableHeaderCellProps, {
  52230. "style": _columnsStyles[props3.column.key]
  52231. }), _isSlot8(_slot2 = slots["header-cell"](props3)) ? _slot2 : {
  52232. default: () => [_slot2]
  52233. }) : createVNode(HeaderCell2, mergeProps(props3, tableHeaderCellProps, {
  52234. "style": _columnsStyles[props3.column.key]
  52235. }), null);
  52236. }
  52237. })
  52238. };
  52239. const rootKls = [props2.class, ns.b(), ns.e("root"), ns.is("dynamic", unref(isDynamic))];
  52240. const footerProps = {
  52241. class: ns.e("footer"),
  52242. style: unref(footerHeight)
  52243. };
  52244. return createVNode("div", {
  52245. "class": rootKls,
  52246. "style": unref(rootStyle)
  52247. }, [createVNode(MainTable$1, mainTableProps, _isSlot8(tableSlots) ? tableSlots : {
  52248. default: () => [tableSlots]
  52249. }), createVNode(LeftTable$1, leftTableProps, _isSlot8(tableSlots) ? tableSlots : {
  52250. default: () => [tableSlots]
  52251. }), createVNode(RightTable$1, rightTableProps, _isSlot8(tableSlots) ? tableSlots : {
  52252. default: () => [tableSlots]
  52253. }), slots.footer && createVNode(Footer$1, footerProps, {
  52254. default: slots.footer
  52255. }), unref(showEmpty) && createVNode(Empty2, {
  52256. "class": ns.e("empty"),
  52257. "style": unref(emptyStyle)
  52258. }, {
  52259. default: slots.empty
  52260. }), slots.overlay && createVNode(Overlay$1, {
  52261. "class": ns.e("overlay")
  52262. }, {
  52263. default: slots.overlay
  52264. })]);
  52265. };
  52266. }
  52267. });
  52268. var TableV2$1 = TableV2;
  52269. // node_modules/element-plus/es/components/table-v2/src/auto-resizer.mjs
  52270. var autoResizerProps = buildProps({
  52271. disableWidth: Boolean,
  52272. disableHeight: Boolean,
  52273. onResize: {
  52274. type: definePropType(Function)
  52275. }
  52276. });
  52277. // node_modules/element-plus/es/components/table-v2/src/composables/use-auto-resize.mjs
  52278. var useAutoResize = (props2) => {
  52279. const sizer = ref();
  52280. const width$ = ref(0);
  52281. const height$ = ref(0);
  52282. let resizerStopper;
  52283. onMounted(() => {
  52284. resizerStopper = useResizeObserver(sizer, ([entry]) => {
  52285. const { width, height } = entry.contentRect;
  52286. const { paddingLeft, paddingRight, paddingTop, paddingBottom } = getComputedStyle(entry.target);
  52287. const left = Number.parseInt(paddingLeft) || 0;
  52288. const right = Number.parseInt(paddingRight) || 0;
  52289. const top = Number.parseInt(paddingTop) || 0;
  52290. const bottom = Number.parseInt(paddingBottom) || 0;
  52291. width$.value = width - left - right;
  52292. height$.value = height - top - bottom;
  52293. }).stop;
  52294. });
  52295. onBeforeUnmount(() => {
  52296. resizerStopper == null ? void 0 : resizerStopper();
  52297. });
  52298. watch([width$, height$], ([width, height]) => {
  52299. var _a2;
  52300. (_a2 = props2.onResize) == null ? void 0 : _a2.call(props2, {
  52301. width,
  52302. height
  52303. });
  52304. });
  52305. return {
  52306. sizer,
  52307. width: width$,
  52308. height: height$
  52309. };
  52310. };
  52311. // node_modules/element-plus/es/components/table-v2/src/components/auto-resizer.mjs
  52312. var AutoResizer = defineComponent({
  52313. name: "ElAutoResizer",
  52314. props: autoResizerProps,
  52315. setup(props2, {
  52316. slots
  52317. }) {
  52318. const ns = useNamespace("auto-resizer");
  52319. const {
  52320. height,
  52321. width,
  52322. sizer
  52323. } = useAutoResize(props2);
  52324. const style = {
  52325. width: "100%",
  52326. height: "100%"
  52327. };
  52328. return () => {
  52329. var _a2;
  52330. return createVNode("div", {
  52331. "ref": sizer,
  52332. "class": ns.b(),
  52333. "style": style
  52334. }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
  52335. height: height.value,
  52336. width: width.value
  52337. })]);
  52338. };
  52339. }
  52340. });
  52341. var AutoResizer$1 = AutoResizer;
  52342. // node_modules/element-plus/es/components/table-v2/index.mjs
  52343. var ElTableV2 = withInstall(TableV2$1);
  52344. var ElAutoResizer = withInstall(AutoResizer$1);
  52345. // node_modules/element-plus/es/components/tabs/src/constants.mjs
  52346. var tabsRootContextKey = Symbol("tabsRootContextKey");
  52347. // node_modules/element-plus/es/components/tabs/src/tab-bar.mjs
  52348. var tabBarProps = buildProps({
  52349. tabs: {
  52350. type: definePropType(Array),
  52351. default: () => mutable([])
  52352. },
  52353. tabRefs: {
  52354. type: definePropType(Object),
  52355. default: () => mutable({})
  52356. }
  52357. });
  52358. // node_modules/element-plus/es/components/tabs/src/tab-bar2.mjs
  52359. var COMPONENT_NAME22 = "ElTabBar";
  52360. var __default__98 = defineComponent({
  52361. name: COMPONENT_NAME22
  52362. });
  52363. var _sfc_main128 = defineComponent({
  52364. ...__default__98,
  52365. props: tabBarProps,
  52366. setup(__props, { expose }) {
  52367. const props2 = __props;
  52368. const rootTabs = inject(tabsRootContextKey);
  52369. if (!rootTabs)
  52370. throwError(COMPONENT_NAME22, "<el-tabs><el-tab-bar /></el-tabs>");
  52371. const ns = useNamespace("tabs");
  52372. const barRef = ref();
  52373. const barStyle = ref();
  52374. const getBarStyle = () => {
  52375. let offset3 = 0;
  52376. let tabSize = 0;
  52377. const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
  52378. const sizeDir = sizeName === "width" ? "x" : "y";
  52379. const position = sizeDir === "x" ? "left" : "top";
  52380. props2.tabs.every((tab) => {
  52381. if (isUndefined2(tab.paneName))
  52382. return false;
  52383. const $el = props2.tabRefs[tab.paneName];
  52384. if (!$el)
  52385. return false;
  52386. if (!tab.active) {
  52387. return true;
  52388. }
  52389. offset3 = $el[`offset${capitalize3(position)}`];
  52390. tabSize = $el[`client${capitalize3(sizeName)}`];
  52391. const tabStyles = window.getComputedStyle($el);
  52392. if (sizeName === "width") {
  52393. tabSize -= Number.parseFloat(tabStyles.paddingLeft) + Number.parseFloat(tabStyles.paddingRight);
  52394. offset3 += Number.parseFloat(tabStyles.paddingLeft);
  52395. }
  52396. return false;
  52397. });
  52398. return {
  52399. [sizeName]: `${tabSize}px`,
  52400. transform: `translate${capitalize3(sizeDir)}(${offset3}px)`
  52401. };
  52402. };
  52403. const update2 = () => barStyle.value = getBarStyle();
  52404. const tabObservers = [];
  52405. const observerTabs = () => {
  52406. tabObservers.forEach((observer) => observer.stop());
  52407. tabObservers.length = 0;
  52408. Object.values(props2.tabRefs).forEach((tab) => {
  52409. tabObservers.push(useResizeObserver(tab, update2));
  52410. });
  52411. };
  52412. watch(() => props2.tabs, async () => {
  52413. await nextTick();
  52414. update2();
  52415. observerTabs();
  52416. }, { immediate: true });
  52417. const barObserver = useResizeObserver(barRef, () => update2());
  52418. onBeforeUnmount(() => {
  52419. tabObservers.forEach((observer) => observer.stop());
  52420. tabObservers.length = 0;
  52421. barObserver.stop();
  52422. });
  52423. expose({
  52424. ref: barRef,
  52425. update: update2
  52426. });
  52427. return (_ctx, _cache) => {
  52428. return openBlock(), createElementBlock("div", {
  52429. ref_key: "barRef",
  52430. ref: barRef,
  52431. class: normalizeClass([unref(ns).e("active-bar"), unref(ns).is(unref(rootTabs).props.tabPosition)]),
  52432. style: normalizeStyle(barStyle.value)
  52433. }, null, 6);
  52434. };
  52435. }
  52436. });
  52437. var TabBar = _export_sfc(_sfc_main128, [["__file", "tab-bar.vue"]]);
  52438. // node_modules/element-plus/es/components/tabs/src/tab-nav.mjs
  52439. var tabNavProps = buildProps({
  52440. panes: {
  52441. type: definePropType(Array),
  52442. default: () => mutable([])
  52443. },
  52444. currentName: {
  52445. type: [String, Number],
  52446. default: ""
  52447. },
  52448. editable: Boolean,
  52449. type: {
  52450. type: String,
  52451. values: ["card", "border-card", ""],
  52452. default: ""
  52453. },
  52454. stretch: Boolean,
  52455. tabindex: {
  52456. type: [String, Number],
  52457. default: void 0
  52458. }
  52459. });
  52460. var tabNavEmits = {
  52461. tabClick: (tab, tabName, ev) => ev instanceof Event,
  52462. tabRemove: (tab, ev) => ev instanceof Event
  52463. };
  52464. var COMPONENT_NAME23 = "ElTabNav";
  52465. var TabNav = defineComponent({
  52466. name: COMPONENT_NAME23,
  52467. props: tabNavProps,
  52468. emits: tabNavEmits,
  52469. setup(props2, {
  52470. expose,
  52471. emit
  52472. }) {
  52473. const rootTabs = inject(tabsRootContextKey);
  52474. if (!rootTabs)
  52475. throwError(COMPONENT_NAME23, `<el-tabs><tab-nav /></el-tabs>`);
  52476. const ns = useNamespace("tabs");
  52477. const visibility = useDocumentVisibility();
  52478. const focused = useWindowFocus();
  52479. const navScroll$ = ref();
  52480. const nav$ = ref();
  52481. const el$ = ref();
  52482. const tabRefsMap = ref({});
  52483. const tabBarRef = ref();
  52484. const scrollable = ref(false);
  52485. const navOffset = ref(0);
  52486. const isFocus = ref(false);
  52487. const focusable = ref(true);
  52488. const tracker = shallowRef();
  52489. const isHorizontal2 = computed(() => ["top", "bottom"].includes(rootTabs.props.tabPosition));
  52490. const sizeName = computed(() => isHorizontal2.value ? "width" : "height");
  52491. const navStyle = computed(() => {
  52492. const dir = sizeName.value === "width" ? "X" : "Y";
  52493. return {
  52494. transform: `translate${dir}(-${navOffset.value}px)`
  52495. };
  52496. });
  52497. const {
  52498. width: navContainerWidth,
  52499. height: navContainerHeight
  52500. } = useElementSize(navScroll$);
  52501. const {
  52502. width: navWidth,
  52503. height: navHeight
  52504. } = useElementSize(nav$, {
  52505. width: 0,
  52506. height: 0
  52507. }, {
  52508. box: "border-box"
  52509. });
  52510. const navContainerSize = computed(() => isHorizontal2.value ? navContainerWidth.value : navContainerHeight.value);
  52511. const navSize = computed(() => isHorizontal2.value ? navWidth.value : navHeight.value);
  52512. const {
  52513. onWheel
  52514. } = useWheel({
  52515. atStartEdge: computed(() => navOffset.value <= 0),
  52516. atEndEdge: computed(() => navSize.value - navOffset.value <= navContainerSize.value),
  52517. layout: computed(() => isHorizontal2.value ? "horizontal" : "vertical")
  52518. }, (offset3) => {
  52519. navOffset.value = clamp_default(navOffset.value + offset3, 0, navSize.value - navContainerSize.value);
  52520. });
  52521. const scrollPrev = () => {
  52522. if (!navScroll$.value)
  52523. return;
  52524. const containerSize = navScroll$.value[`offset${capitalize3(sizeName.value)}`];
  52525. const currentOffset = navOffset.value;
  52526. if (!currentOffset)
  52527. return;
  52528. const newOffset = currentOffset > containerSize ? currentOffset - containerSize : 0;
  52529. navOffset.value = newOffset;
  52530. };
  52531. const scrollNext = () => {
  52532. if (!navScroll$.value || !nav$.value)
  52533. return;
  52534. const navSize2 = nav$.value[`offset${capitalize3(sizeName.value)}`];
  52535. const containerSize = navScroll$.value[`offset${capitalize3(sizeName.value)}`];
  52536. const currentOffset = navOffset.value;
  52537. if (navSize2 - currentOffset <= containerSize)
  52538. return;
  52539. const newOffset = navSize2 - currentOffset > containerSize * 2 ? currentOffset + containerSize : navSize2 - containerSize;
  52540. navOffset.value = newOffset;
  52541. };
  52542. const scrollToActiveTab = async () => {
  52543. const nav = nav$.value;
  52544. if (!scrollable.value || !el$.value || !navScroll$.value || !nav)
  52545. return;
  52546. await nextTick();
  52547. const activeTab = tabRefsMap.value[props2.currentName];
  52548. if (!activeTab)
  52549. return;
  52550. const navScroll = navScroll$.value;
  52551. const activeTabBounding = activeTab.getBoundingClientRect();
  52552. const navScrollBounding = navScroll.getBoundingClientRect();
  52553. const maxOffset = isHorizontal2.value ? nav.offsetWidth - navScrollBounding.width : nav.offsetHeight - navScrollBounding.height;
  52554. const currentOffset = navOffset.value;
  52555. let newOffset = currentOffset;
  52556. if (isHorizontal2.value) {
  52557. if (activeTabBounding.left < navScrollBounding.left) {
  52558. newOffset = currentOffset - (navScrollBounding.left - activeTabBounding.left);
  52559. }
  52560. if (activeTabBounding.right > navScrollBounding.right) {
  52561. newOffset = currentOffset + activeTabBounding.right - navScrollBounding.right;
  52562. }
  52563. } else {
  52564. if (activeTabBounding.top < navScrollBounding.top) {
  52565. newOffset = currentOffset - (navScrollBounding.top - activeTabBounding.top);
  52566. }
  52567. if (activeTabBounding.bottom > navScrollBounding.bottom) {
  52568. newOffset = currentOffset + (activeTabBounding.bottom - navScrollBounding.bottom);
  52569. }
  52570. }
  52571. newOffset = Math.max(newOffset, 0);
  52572. navOffset.value = Math.min(newOffset, maxOffset);
  52573. };
  52574. const update2 = () => {
  52575. var _a2;
  52576. if (!nav$.value || !navScroll$.value)
  52577. return;
  52578. props2.stretch && ((_a2 = tabBarRef.value) == null ? void 0 : _a2.update());
  52579. const navSize2 = nav$.value[`offset${capitalize3(sizeName.value)}`];
  52580. const containerSize = navScroll$.value[`offset${capitalize3(sizeName.value)}`];
  52581. const currentOffset = navOffset.value;
  52582. if (containerSize < navSize2) {
  52583. scrollable.value = scrollable.value || {};
  52584. scrollable.value.prev = currentOffset;
  52585. scrollable.value.next = currentOffset + containerSize < navSize2;
  52586. if (navSize2 - currentOffset < containerSize) {
  52587. navOffset.value = navSize2 - containerSize;
  52588. }
  52589. } else {
  52590. scrollable.value = false;
  52591. if (currentOffset > 0) {
  52592. navOffset.value = 0;
  52593. }
  52594. }
  52595. };
  52596. const changeTab = (event) => {
  52597. const code = getEventCode(event);
  52598. let step2 = 0;
  52599. switch (code) {
  52600. case EVENT_CODE.left:
  52601. case EVENT_CODE.up:
  52602. step2 = -1;
  52603. break;
  52604. case EVENT_CODE.right:
  52605. case EVENT_CODE.down:
  52606. step2 = 1;
  52607. break;
  52608. default:
  52609. return;
  52610. }
  52611. const tabList = Array.from(event.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));
  52612. const currentIndex = tabList.indexOf(event.target);
  52613. let nextIndex = currentIndex + step2;
  52614. if (nextIndex < 0) {
  52615. nextIndex = tabList.length - 1;
  52616. } else if (nextIndex >= tabList.length) {
  52617. nextIndex = 0;
  52618. }
  52619. tabList[nextIndex].focus({
  52620. preventScroll: true
  52621. });
  52622. tabList[nextIndex].click();
  52623. setFocus();
  52624. };
  52625. const setFocus = () => {
  52626. if (focusable.value)
  52627. isFocus.value = true;
  52628. };
  52629. const removeFocus = () => isFocus.value = false;
  52630. const setRefs = (el, key) => {
  52631. tabRefsMap.value[key] = el;
  52632. };
  52633. const focusActiveTab = async () => {
  52634. await nextTick();
  52635. const activeTab = tabRefsMap.value[props2.currentName];
  52636. activeTab == null ? void 0 : activeTab.focus({
  52637. preventScroll: true
  52638. });
  52639. };
  52640. watch(visibility, (visibility2) => {
  52641. if (visibility2 === "hidden") {
  52642. focusable.value = false;
  52643. } else if (visibility2 === "visible") {
  52644. setTimeout(() => focusable.value = true, 50);
  52645. }
  52646. });
  52647. watch(focused, (focused2) => {
  52648. if (focused2) {
  52649. setTimeout(() => focusable.value = true, 50);
  52650. } else {
  52651. focusable.value = false;
  52652. }
  52653. });
  52654. useResizeObserver(el$, update2);
  52655. onMounted(() => setTimeout(() => scrollToActiveTab(), 0));
  52656. onUpdated(() => update2());
  52657. expose({
  52658. scrollToActiveTab,
  52659. removeFocus,
  52660. focusActiveTab,
  52661. tabListRef: nav$,
  52662. tabBarRef,
  52663. scheduleRender: () => triggerRef(tracker)
  52664. });
  52665. return () => {
  52666. const scrollBtn = scrollable.value ? [createVNode("span", {
  52667. "class": [ns.e("nav-prev"), ns.is("disabled", !scrollable.value.prev)],
  52668. "onClick": scrollPrev
  52669. }, [createVNode(ElIcon, null, {
  52670. default: () => [createVNode(arrow_left_default, null, null)]
  52671. })]), createVNode("span", {
  52672. "class": [ns.e("nav-next"), ns.is("disabled", !scrollable.value.next)],
  52673. "onClick": scrollNext
  52674. }, [createVNode(ElIcon, null, {
  52675. default: () => [createVNode(arrow_right_default, null, null)]
  52676. })])] : null;
  52677. const tabs = props2.panes.map((pane, index) => {
  52678. var _a2, _b, _c, _d, _e;
  52679. const uid2 = pane.uid;
  52680. const disabled = pane.props.disabled;
  52681. const tabName = (_b = (_a2 = pane.props.name) != null ? _a2 : pane.index) != null ? _b : `${index}`;
  52682. const closable = !disabled && (pane.isClosable || pane.props.closable !== false && props2.editable);
  52683. pane.index = `${index}`;
  52684. const btnClose = closable ? createVNode(ElIcon, {
  52685. "class": "is-icon-close",
  52686. "onClick": (ev) => emit("tabRemove", pane, ev)
  52687. }, {
  52688. default: () => [createVNode(close_default, null, null)]
  52689. }) : null;
  52690. const tabLabelContent = ((_d = (_c = pane.slots).label) == null ? void 0 : _d.call(_c)) || pane.props.label;
  52691. const tabindex = !disabled && pane.active ? (_e = props2.tabindex) != null ? _e : rootTabs.props.tabindex : -1;
  52692. return createVNode("div", {
  52693. "ref": (el) => setRefs(el, tabName),
  52694. "class": [ns.e("item"), ns.is(rootTabs.props.tabPosition), ns.is("active", pane.active), ns.is("disabled", disabled), ns.is("closable", closable), ns.is("focus", isFocus.value)],
  52695. "id": `tab-${tabName}`,
  52696. "key": `tab-${uid2}`,
  52697. "aria-controls": `pane-${tabName}`,
  52698. "role": "tab",
  52699. "aria-selected": pane.active,
  52700. "tabindex": tabindex,
  52701. "onFocus": () => setFocus(),
  52702. "onBlur": () => removeFocus(),
  52703. "onClick": (ev) => {
  52704. removeFocus();
  52705. emit("tabClick", pane, tabName, ev);
  52706. },
  52707. "onKeydown": (ev) => {
  52708. const code = getEventCode(ev);
  52709. if (closable && (code === EVENT_CODE.delete || code === EVENT_CODE.backspace)) {
  52710. emit("tabRemove", pane, ev);
  52711. }
  52712. }
  52713. }, [...[tabLabelContent, btnClose]]);
  52714. });
  52715. tracker.value;
  52716. return createVNode("div", {
  52717. "ref": el$,
  52718. "class": [ns.e("nav-wrap"), ns.is("scrollable", !!scrollable.value), ns.is(rootTabs.props.tabPosition)]
  52719. }, [scrollBtn, createVNode("div", {
  52720. "class": ns.e("nav-scroll"),
  52721. "ref": navScroll$
  52722. }, [props2.panes.length > 0 ? createVNode("div", {
  52723. "class": [ns.e("nav"), ns.is(rootTabs.props.tabPosition), ns.is("stretch", props2.stretch && ["top", "bottom"].includes(rootTabs.props.tabPosition))],
  52724. "ref": nav$,
  52725. "style": navStyle.value,
  52726. "role": "tablist",
  52727. "onKeydown": changeTab,
  52728. "onWheel": onWheel
  52729. }, [...[!props2.type ? createVNode(TabBar, {
  52730. "ref": tabBarRef,
  52731. "tabs": [...props2.panes],
  52732. "tabRefs": tabRefsMap.value
  52733. }, null) : null, tabs]]) : null])]);
  52734. };
  52735. }
  52736. });
  52737. // node_modules/element-plus/es/components/tabs/src/tabs.mjs
  52738. var tabsProps = buildProps({
  52739. type: {
  52740. type: String,
  52741. values: ["card", "border-card", ""],
  52742. default: ""
  52743. },
  52744. closable: Boolean,
  52745. addable: Boolean,
  52746. modelValue: {
  52747. type: [String, Number]
  52748. },
  52749. editable: Boolean,
  52750. tabPosition: {
  52751. type: String,
  52752. values: ["top", "right", "bottom", "left"],
  52753. default: "top"
  52754. },
  52755. beforeLeave: {
  52756. type: definePropType(Function),
  52757. default: () => true
  52758. },
  52759. stretch: Boolean,
  52760. tabindex: {
  52761. type: [String, Number],
  52762. default: 0
  52763. }
  52764. });
  52765. var isPaneName = (value) => isString(value) || isNumber2(value);
  52766. var tabsEmits = {
  52767. [UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
  52768. tabClick: (pane, ev) => ev instanceof Event,
  52769. tabChange: (name) => isPaneName(name),
  52770. edit: (paneName, action) => ["remove", "add"].includes(action),
  52771. tabRemove: (name) => isPaneName(name),
  52772. tabAdd: () => true
  52773. };
  52774. var Tabs = defineComponent({
  52775. name: "ElTabs",
  52776. props: tabsProps,
  52777. emits: tabsEmits,
  52778. setup(props2, {
  52779. emit,
  52780. slots,
  52781. expose
  52782. }) {
  52783. var _a2;
  52784. const ns = useNamespace("tabs");
  52785. const isVertical = computed(() => ["left", "right"].includes(props2.tabPosition));
  52786. const {
  52787. children: panes,
  52788. addChild: registerPane,
  52789. removeChild: unregisterPane,
  52790. ChildrenSorter: PanesSorter
  52791. } = useOrderedChildren(getCurrentInstance(), "ElTabPane");
  52792. const nav$ = ref();
  52793. const currentName = ref((_a2 = props2.modelValue) != null ? _a2 : "0");
  52794. const setCurrentName = async (value, trigger = false) => {
  52795. var _a22, _b, _c, _d;
  52796. if (currentName.value === value || isUndefined2(value))
  52797. return;
  52798. try {
  52799. let canLeave;
  52800. if (props2.beforeLeave) {
  52801. const result2 = props2.beforeLeave(value, currentName.value);
  52802. canLeave = result2 instanceof Promise ? await result2 : result2;
  52803. } else {
  52804. canLeave = true;
  52805. }
  52806. if (canLeave !== false) {
  52807. const isFocusInsidePane = (_a22 = panes.value.find((item) => item.paneName === currentName.value)) == null ? void 0 : _a22.isFocusInsidePane();
  52808. currentName.value = value;
  52809. if (trigger) {
  52810. emit(UPDATE_MODEL_EVENT, value);
  52811. emit("tabChange", value);
  52812. }
  52813. (_c = (_b = nav$.value) == null ? void 0 : _b.removeFocus) == null ? void 0 : _c.call(_b);
  52814. if (isFocusInsidePane) {
  52815. (_d = nav$.value) == null ? void 0 : _d.focusActiveTab();
  52816. }
  52817. }
  52818. } catch (e) {
  52819. }
  52820. };
  52821. const handleTabClick = (tab, tabName, event) => {
  52822. if (tab.props.disabled)
  52823. return;
  52824. emit("tabClick", tab, event);
  52825. setCurrentName(tabName, true);
  52826. };
  52827. const handleTabRemove = (pane, ev) => {
  52828. if (pane.props.disabled || isUndefined2(pane.props.name))
  52829. return;
  52830. ev.stopPropagation();
  52831. emit("edit", pane.props.name, "remove");
  52832. emit("tabRemove", pane.props.name);
  52833. };
  52834. const handleTabAdd = () => {
  52835. emit("edit", void 0, "add");
  52836. emit("tabAdd");
  52837. };
  52838. const handleKeydown = (event) => {
  52839. const code = getEventCode(event);
  52840. if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter].includes(code))
  52841. handleTabAdd();
  52842. };
  52843. const swapChildren = (vnode) => {
  52844. const actualFirstChild = vnode.el.firstChild;
  52845. const firstChild = ["bottom", "right"].includes(props2.tabPosition) ? vnode.children[0].el : vnode.children[1].el;
  52846. if (actualFirstChild !== firstChild) {
  52847. actualFirstChild.before(firstChild);
  52848. }
  52849. };
  52850. watch(() => props2.modelValue, (modelValue) => setCurrentName(modelValue));
  52851. watch(currentName, async () => {
  52852. var _a22;
  52853. await nextTick();
  52854. (_a22 = nav$.value) == null ? void 0 : _a22.scrollToActiveTab();
  52855. });
  52856. provide(tabsRootContextKey, {
  52857. props: props2,
  52858. currentName,
  52859. registerPane,
  52860. unregisterPane,
  52861. nav$
  52862. });
  52863. expose({
  52864. currentName,
  52865. get tabNavRef() {
  52866. return omit_default(nav$.value, ["scheduleRender"]);
  52867. }
  52868. });
  52869. return () => {
  52870. const addSlot = slots["add-icon"];
  52871. const newButton = props2.editable || props2.addable ? createVNode("div", {
  52872. "class": [ns.e("new-tab"), isVertical.value && ns.e("new-tab-vertical")],
  52873. "tabindex": props2.tabindex,
  52874. "onClick": handleTabAdd,
  52875. "onKeydown": handleKeydown
  52876. }, [addSlot ? renderSlot(slots, "add-icon") : createVNode(ElIcon, {
  52877. "class": ns.is("icon-plus")
  52878. }, {
  52879. default: () => [createVNode(plus_default, null, null)]
  52880. })]) : null;
  52881. const tabNav = () => createVNode(TabNav, {
  52882. "ref": nav$,
  52883. "currentName": currentName.value,
  52884. "editable": props2.editable,
  52885. "type": props2.type,
  52886. "panes": panes.value,
  52887. "stretch": props2.stretch,
  52888. "onTabClick": handleTabClick,
  52889. "onTabRemove": handleTabRemove
  52890. }, null);
  52891. const header = createVNode("div", {
  52892. "class": [ns.e("header"), isVertical.value && ns.e("header-vertical"), ns.is(props2.tabPosition)]
  52893. }, [createVNode(PanesSorter, null, {
  52894. default: tabNav,
  52895. $stable: true
  52896. }), newButton]);
  52897. const panels = createVNode("div", {
  52898. "class": ns.e("content")
  52899. }, [renderSlot(slots, "default")]);
  52900. return createVNode("div", {
  52901. "class": [ns.b(), ns.m(props2.tabPosition), {
  52902. [ns.m("card")]: props2.type === "card",
  52903. [ns.m("border-card")]: props2.type === "border-card"
  52904. }],
  52905. "onVnodeMounted": swapChildren,
  52906. "onVnodeUpdated": swapChildren
  52907. }, [panels, header]);
  52908. };
  52909. }
  52910. });
  52911. var Tabs$1 = Tabs;
  52912. // node_modules/element-plus/es/components/tabs/src/tab-pane2.mjs
  52913. var tabPaneProps = buildProps({
  52914. label: {
  52915. type: String,
  52916. default: ""
  52917. },
  52918. name: {
  52919. type: [String, Number]
  52920. },
  52921. closable: {
  52922. type: Boolean,
  52923. default: void 0
  52924. },
  52925. disabled: Boolean,
  52926. lazy: Boolean
  52927. });
  52928. // node_modules/element-plus/es/components/tabs/src/tab-pane.mjs
  52929. var COMPONENT_NAME24 = "ElTabPane";
  52930. var __default__99 = defineComponent({
  52931. name: COMPONENT_NAME24
  52932. });
  52933. var _sfc_main129 = defineComponent({
  52934. ...__default__99,
  52935. props: tabPaneProps,
  52936. setup(__props) {
  52937. const props2 = __props;
  52938. const instance = getCurrentInstance();
  52939. const slots = useSlots();
  52940. const tabsRoot = inject(tabsRootContextKey);
  52941. if (!tabsRoot)
  52942. throwError(COMPONENT_NAME24, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
  52943. const ns = useNamespace("tab-pane");
  52944. const paneRef = ref();
  52945. const index = ref();
  52946. const isClosable = computed(() => {
  52947. var _a2;
  52948. return (_a2 = props2.closable) != null ? _a2 : tabsRoot.props.closable;
  52949. });
  52950. const active = computedEager(() => {
  52951. var _a2;
  52952. return tabsRoot.currentName.value === ((_a2 = props2.name) != null ? _a2 : index.value);
  52953. });
  52954. const loaded = ref(active.value);
  52955. const paneName = computed(() => {
  52956. var _a2;
  52957. return (_a2 = props2.name) != null ? _a2 : index.value;
  52958. });
  52959. const shouldBeRender = computedEager(() => !props2.lazy || loaded.value || active.value);
  52960. const isFocusInsidePane = () => {
  52961. var _a2;
  52962. return (_a2 = paneRef.value) == null ? void 0 : _a2.contains(document.activeElement);
  52963. };
  52964. watch(active, (val) => {
  52965. if (val)
  52966. loaded.value = true;
  52967. });
  52968. const pane = reactive({
  52969. uid: instance.uid,
  52970. getVnode: () => instance.vnode,
  52971. slots,
  52972. props: props2,
  52973. paneName,
  52974. active,
  52975. index,
  52976. isClosable,
  52977. isFocusInsidePane
  52978. });
  52979. tabsRoot.registerPane(pane);
  52980. onBeforeUnmount(() => {
  52981. tabsRoot.unregisterPane(pane);
  52982. });
  52983. onBeforeUpdate(() => {
  52984. var _a2;
  52985. if (slots.label)
  52986. (_a2 = tabsRoot.nav$.value) == null ? void 0 : _a2.scheduleRender();
  52987. });
  52988. return (_ctx, _cache) => {
  52989. return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
  52990. key: 0,
  52991. id: `pane-${unref(paneName)}`,
  52992. ref_key: "paneRef",
  52993. ref: paneRef,
  52994. class: normalizeClass(unref(ns).b()),
  52995. role: "tabpanel",
  52996. "aria-hidden": !unref(active),
  52997. "aria-labelledby": `tab-${unref(paneName)}`
  52998. }, [
  52999. renderSlot(_ctx.$slots, "default")
  53000. ], 10, ["id", "aria-hidden", "aria-labelledby"])), [
  53001. [vShow, unref(active)]
  53002. ]) : createCommentVNode("v-if", true);
  53003. };
  53004. }
  53005. });
  53006. var TabPane = _export_sfc(_sfc_main129, [["__file", "tab-pane.vue"]]);
  53007. // node_modules/element-plus/es/components/tabs/index.mjs
  53008. var ElTabs = withInstall(Tabs$1, {
  53009. TabPane
  53010. });
  53011. var ElTabPane = withNoopInstall(TabPane);
  53012. // node_modules/element-plus/es/components/text/src/text.mjs
  53013. var textProps = buildProps({
  53014. type: {
  53015. type: String,
  53016. values: ["primary", "success", "info", "warning", "danger", ""],
  53017. default: ""
  53018. },
  53019. size: {
  53020. type: String,
  53021. values: componentSizes,
  53022. default: ""
  53023. },
  53024. truncated: Boolean,
  53025. lineClamp: {
  53026. type: [String, Number]
  53027. },
  53028. tag: {
  53029. type: String,
  53030. default: "span"
  53031. }
  53032. });
  53033. // node_modules/element-plus/es/components/text/src/text2.mjs
  53034. var __default__100 = defineComponent({
  53035. name: "ElText"
  53036. });
  53037. var _sfc_main130 = defineComponent({
  53038. ...__default__100,
  53039. props: textProps,
  53040. setup(__props) {
  53041. const props2 = __props;
  53042. const textRef = ref();
  53043. const textSize = useFormSize();
  53044. const ns = useNamespace("text");
  53045. const textKls = computed(() => [
  53046. ns.b(),
  53047. ns.m(props2.type),
  53048. ns.m(textSize.value),
  53049. ns.is("truncated", props2.truncated),
  53050. ns.is("line-clamp", !isUndefined2(props2.lineClamp))
  53051. ]);
  53052. const bindTitle = () => {
  53053. var _a2, _b, _c, _d, _e, _f, _g;
  53054. const inheritTitle = useAttrs().title;
  53055. if (inheritTitle)
  53056. return;
  53057. let shouldAddTitle = false;
  53058. const text = ((_a2 = textRef.value) == null ? void 0 : _a2.textContent) || "";
  53059. if (props2.truncated) {
  53060. const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
  53061. const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
  53062. if (width && scrollWidth && scrollWidth > width) {
  53063. shouldAddTitle = true;
  53064. }
  53065. } else if (!isUndefined2(props2.lineClamp)) {
  53066. const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
  53067. const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
  53068. if (height && scrollHeight && scrollHeight > height) {
  53069. shouldAddTitle = true;
  53070. }
  53071. }
  53072. if (shouldAddTitle) {
  53073. (_f = textRef.value) == null ? void 0 : _f.setAttribute("title", text);
  53074. } else {
  53075. (_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
  53076. }
  53077. };
  53078. onMounted(bindTitle);
  53079. onUpdated(bindTitle);
  53080. return (_ctx, _cache) => {
  53081. return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
  53082. ref_key: "textRef",
  53083. ref: textRef,
  53084. class: normalizeClass(unref(textKls)),
  53085. style: normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
  53086. }, {
  53087. default: withCtx(() => [
  53088. renderSlot(_ctx.$slots, "default")
  53089. ]),
  53090. _: 3
  53091. }, 8, ["class", "style"]);
  53092. };
  53093. }
  53094. });
  53095. var Text2 = _export_sfc(_sfc_main130, [["__file", "text.vue"]]);
  53096. // node_modules/element-plus/es/components/text/index.mjs
  53097. var ElText = withInstall(Text2);
  53098. // node_modules/element-plus/es/components/time-select/src/time-select.mjs
  53099. var import_dayjs18 = __toESM(require_dayjs_min(), 1);
  53100. var import_customParseFormat3 = __toESM(require_customParseFormat(), 1);
  53101. // node_modules/element-plus/es/components/time-select/src/time-select2.mjs
  53102. var timeSelectProps = buildProps({
  53103. format: {
  53104. type: String,
  53105. default: "HH:mm"
  53106. },
  53107. modelValue: {
  53108. type: definePropType(String)
  53109. },
  53110. disabled: Boolean,
  53111. editable: {
  53112. type: Boolean,
  53113. default: true
  53114. },
  53115. effect: {
  53116. type: definePropType(String),
  53117. default: "light"
  53118. },
  53119. clearable: {
  53120. type: Boolean,
  53121. default: true
  53122. },
  53123. size: useSizeProp,
  53124. placeholder: String,
  53125. start: {
  53126. type: String,
  53127. default: "09:00"
  53128. },
  53129. end: {
  53130. type: String,
  53131. default: "18:00"
  53132. },
  53133. step: {
  53134. type: String,
  53135. default: "00:30"
  53136. },
  53137. minTime: {
  53138. type: definePropType(String)
  53139. },
  53140. maxTime: {
  53141. type: definePropType(String)
  53142. },
  53143. includeEndTime: Boolean,
  53144. name: String,
  53145. prefixIcon: {
  53146. type: definePropType([String, Object]),
  53147. default: () => clock_default
  53148. },
  53149. clearIcon: {
  53150. type: definePropType([String, Object]),
  53151. default: () => circle_close_default
  53152. },
  53153. popperClass: {
  53154. type: String,
  53155. default: ""
  53156. },
  53157. popperStyle: {
  53158. type: definePropType([String, Object])
  53159. },
  53160. ...useEmptyValuesProps
  53161. });
  53162. // node_modules/element-plus/es/components/time-select/src/utils.mjs
  53163. var parseTime = (time) => {
  53164. const values2 = (time || "").split(":");
  53165. if (values2.length >= 2) {
  53166. let hours = Number.parseInt(values2[0], 10);
  53167. const minutes = Number.parseInt(values2[1], 10);
  53168. const timeUpper = time.toUpperCase();
  53169. if (timeUpper.includes("AM") && hours === 12) {
  53170. hours = 0;
  53171. } else if (timeUpper.includes("PM") && hours !== 12) {
  53172. hours += 12;
  53173. }
  53174. return {
  53175. hours,
  53176. minutes
  53177. };
  53178. }
  53179. return null;
  53180. };
  53181. var compareTime = (time1, time2) => {
  53182. const value1 = parseTime(time1);
  53183. if (!value1)
  53184. return -1;
  53185. const value2 = parseTime(time2);
  53186. if (!value2)
  53187. return -1;
  53188. const minutes1 = value1.minutes + value1.hours * 60;
  53189. const minutes2 = value2.minutes + value2.hours * 60;
  53190. if (minutes1 === minutes2) {
  53191. return 0;
  53192. }
  53193. return minutes1 > minutes2 ? 1 : -1;
  53194. };
  53195. var padTime = (time) => {
  53196. return `${time}`.padStart(2, "0");
  53197. };
  53198. var formatTime2 = (time) => {
  53199. return `${padTime(time.hours)}:${padTime(time.minutes)}`;
  53200. };
  53201. var nextTime = (time, step2) => {
  53202. const timeValue = parseTime(time);
  53203. if (!timeValue)
  53204. return "";
  53205. const stepValue = parseTime(step2);
  53206. if (!stepValue)
  53207. return "";
  53208. const next = {
  53209. hours: timeValue.hours,
  53210. minutes: timeValue.minutes
  53211. };
  53212. next.minutes += stepValue.minutes;
  53213. next.hours += stepValue.hours;
  53214. next.hours += Math.floor(next.minutes / 60);
  53215. next.minutes = next.minutes % 60;
  53216. return formatTime2(next);
  53217. };
  53218. // node_modules/element-plus/es/components/time-select/src/time-select.mjs
  53219. var __default__101 = defineComponent({
  53220. name: "ElTimeSelect"
  53221. });
  53222. var _sfc_main131 = defineComponent({
  53223. ...__default__101,
  53224. props: timeSelectProps,
  53225. emits: [CHANGE_EVENT, "blur", "focus", "clear", UPDATE_MODEL_EVENT],
  53226. setup(__props, { expose }) {
  53227. const props2 = __props;
  53228. import_dayjs18.default.extend(import_customParseFormat3.default);
  53229. const { Option: ElOption2 } = ElSelect;
  53230. const nsInput = useNamespace("input");
  53231. const select = ref();
  53232. const _disabled = useFormDisabled();
  53233. const { lang } = useLocale();
  53234. const value = computed(() => props2.modelValue);
  53235. const start = computed(() => {
  53236. const time = parseTime(props2.start);
  53237. return time ? formatTime2(time) : null;
  53238. });
  53239. const end = computed(() => {
  53240. const time = parseTime(props2.end);
  53241. return time ? formatTime2(time) : null;
  53242. });
  53243. const step2 = computed(() => {
  53244. const time = parseTime(props2.step);
  53245. return time ? formatTime2(time) : null;
  53246. });
  53247. const minTime = computed(() => {
  53248. const time = parseTime(props2.minTime || "");
  53249. return time ? formatTime2(time) : null;
  53250. });
  53251. const maxTime = computed(() => {
  53252. const time = parseTime(props2.maxTime || "");
  53253. return time ? formatTime2(time) : null;
  53254. });
  53255. const items = computed(() => {
  53256. var _a2;
  53257. const result2 = [];
  53258. const push = (formattedValue, rawValue) => {
  53259. result2.push({
  53260. value: formattedValue,
  53261. disabled: compareTime(rawValue, minTime.value || "-1:-1") <= 0 || compareTime(rawValue, maxTime.value || "100:100") >= 0
  53262. });
  53263. };
  53264. if (props2.start && props2.end && props2.step) {
  53265. let current = start.value;
  53266. let currentTime;
  53267. while (current && end.value && compareTime(current, end.value) <= 0) {
  53268. currentTime = (0, import_dayjs18.default)(current, "HH:mm").locale(lang.value).format(props2.format);
  53269. push(currentTime, current);
  53270. current = nextTime(current, step2.value);
  53271. }
  53272. if (props2.includeEndTime && end.value && ((_a2 = result2[result2.length - 1]) == null ? void 0 : _a2.value) !== end.value) {
  53273. const formattedValue = (0, import_dayjs18.default)(end.value, "HH:mm").locale(lang.value).format(props2.format);
  53274. push(formattedValue, end.value);
  53275. }
  53276. }
  53277. return result2;
  53278. });
  53279. const blur = () => {
  53280. var _a2, _b;
  53281. (_b = (_a2 = select.value) == null ? void 0 : _a2.blur) == null ? void 0 : _b.call(_a2);
  53282. };
  53283. const focus = () => {
  53284. var _a2, _b;
  53285. (_b = (_a2 = select.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
  53286. };
  53287. expose({
  53288. blur,
  53289. focus
  53290. });
  53291. return (_ctx, _cache) => {
  53292. return openBlock(), createBlock(unref(ElSelect), {
  53293. ref_key: "select",
  53294. ref: select,
  53295. "model-value": unref(value),
  53296. disabled: unref(_disabled),
  53297. clearable: _ctx.clearable,
  53298. "clear-icon": _ctx.clearIcon,
  53299. size: _ctx.size,
  53300. effect: _ctx.effect,
  53301. placeholder: _ctx.placeholder,
  53302. "default-first-option": "",
  53303. filterable: _ctx.editable,
  53304. "empty-values": _ctx.emptyValues,
  53305. "value-on-clear": _ctx.valueOnClear,
  53306. "popper-class": _ctx.popperClass,
  53307. "popper-style": _ctx.popperStyle,
  53308. "onUpdate:modelValue": (event) => _ctx.$emit(unref(UPDATE_MODEL_EVENT), event),
  53309. onChange: (event) => _ctx.$emit(unref(CHANGE_EVENT), event),
  53310. onBlur: (event) => _ctx.$emit("blur", event),
  53311. onFocus: (event) => _ctx.$emit("focus", event),
  53312. onClear: () => _ctx.$emit("clear")
  53313. }, {
  53314. prefix: withCtx(() => [
  53315. _ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
  53316. key: 0,
  53317. class: normalizeClass(unref(nsInput).e("prefix-icon"))
  53318. }, {
  53319. default: withCtx(() => [
  53320. (openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
  53321. ]),
  53322. _: 1
  53323. }, 8, ["class"])) : createCommentVNode("v-if", true)
  53324. ]),
  53325. default: withCtx(() => [
  53326. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item) => {
  53327. return openBlock(), createBlock(unref(ElOption2), {
  53328. key: item.value,
  53329. label: item.value,
  53330. value: item.value,
  53331. disabled: item.disabled
  53332. }, null, 8, ["label", "value", "disabled"]);
  53333. }), 128))
  53334. ]),
  53335. _: 1
  53336. }, 8, ["model-value", "disabled", "clearable", "clear-icon", "size", "effect", "placeholder", "filterable", "empty-values", "value-on-clear", "popper-class", "popper-style", "onUpdate:modelValue", "onChange", "onBlur", "onFocus", "onClear"]);
  53337. };
  53338. }
  53339. });
  53340. var TimeSelect = _export_sfc(_sfc_main131, [["__file", "time-select.vue"]]);
  53341. // node_modules/element-plus/es/components/time-select/index.mjs
  53342. var ElTimeSelect = withInstall(TimeSelect);
  53343. // node_modules/element-plus/es/components/timeline/src/tokens.mjs
  53344. var TIMELINE_INJECTION_KEY = "timeline";
  53345. // node_modules/element-plus/es/components/timeline/src/timeline.mjs
  53346. var Timeline = defineComponent({
  53347. name: "ElTimeline",
  53348. setup(_2, { slots }) {
  53349. const ns = useNamespace("timeline");
  53350. provide(TIMELINE_INJECTION_KEY, slots);
  53351. return () => {
  53352. return h("ul", { class: [ns.b()] }, [renderSlot(slots, "default")]);
  53353. };
  53354. }
  53355. });
  53356. // node_modules/element-plus/es/components/timeline/src/timeline-item.mjs
  53357. var timelineItemProps = buildProps({
  53358. timestamp: {
  53359. type: String,
  53360. default: ""
  53361. },
  53362. hideTimestamp: Boolean,
  53363. center: Boolean,
  53364. placement: {
  53365. type: String,
  53366. values: ["top", "bottom"],
  53367. default: "bottom"
  53368. },
  53369. type: {
  53370. type: String,
  53371. values: ["primary", "success", "warning", "danger", "info"],
  53372. default: ""
  53373. },
  53374. color: {
  53375. type: String,
  53376. default: ""
  53377. },
  53378. size: {
  53379. type: String,
  53380. values: ["normal", "large"],
  53381. default: "normal"
  53382. },
  53383. icon: {
  53384. type: iconPropType
  53385. },
  53386. hollow: Boolean
  53387. });
  53388. // node_modules/element-plus/es/components/timeline/src/timeline-item2.mjs
  53389. var __default__102 = defineComponent({
  53390. name: "ElTimelineItem"
  53391. });
  53392. var _sfc_main132 = defineComponent({
  53393. ...__default__102,
  53394. props: timelineItemProps,
  53395. setup(__props) {
  53396. const props2 = __props;
  53397. const ns = useNamespace("timeline-item");
  53398. const defaultNodeKls = computed(() => [
  53399. ns.e("node"),
  53400. ns.em("node", props2.size || ""),
  53401. ns.em("node", props2.type || ""),
  53402. ns.is("hollow", props2.hollow)
  53403. ]);
  53404. return (_ctx, _cache) => {
  53405. return openBlock(), createElementBlock("li", {
  53406. class: normalizeClass([unref(ns).b(), { [unref(ns).e("center")]: _ctx.center }])
  53407. }, [
  53408. createBaseVNode("div", {
  53409. class: normalizeClass(unref(ns).e("tail"))
  53410. }, null, 2),
  53411. !_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
  53412. key: 0,
  53413. class: normalizeClass(unref(defaultNodeKls)),
  53414. style: normalizeStyle({
  53415. backgroundColor: _ctx.color
  53416. })
  53417. }, [
  53418. _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
  53419. key: 0,
  53420. class: normalizeClass(unref(ns).e("icon"))
  53421. }, {
  53422. default: withCtx(() => [
  53423. (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
  53424. ]),
  53425. _: 1
  53426. }, 8, ["class"])) : createCommentVNode("v-if", true)
  53427. ], 6)) : createCommentVNode("v-if", true),
  53428. _ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
  53429. key: 1,
  53430. class: normalizeClass(unref(ns).e("dot"))
  53431. }, [
  53432. renderSlot(_ctx.$slots, "dot")
  53433. ], 2)) : createCommentVNode("v-if", true),
  53434. createBaseVNode("div", {
  53435. class: normalizeClass(unref(ns).e("wrapper"))
  53436. }, [
  53437. !_ctx.hideTimestamp && _ctx.placement === "top" ? (openBlock(), createElementBlock("div", {
  53438. key: 0,
  53439. class: normalizeClass([unref(ns).e("timestamp"), unref(ns).is("top")])
  53440. }, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true),
  53441. createBaseVNode("div", {
  53442. class: normalizeClass(unref(ns).e("content"))
  53443. }, [
  53444. renderSlot(_ctx.$slots, "default")
  53445. ], 2),
  53446. !_ctx.hideTimestamp && _ctx.placement === "bottom" ? (openBlock(), createElementBlock("div", {
  53447. key: 1,
  53448. class: normalizeClass([unref(ns).e("timestamp"), unref(ns).is("bottom")])
  53449. }, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true)
  53450. ], 2)
  53451. ], 2);
  53452. };
  53453. }
  53454. });
  53455. var TimelineItem = _export_sfc(_sfc_main132, [["__file", "timeline-item.vue"]]);
  53456. // node_modules/element-plus/es/components/timeline/index.mjs
  53457. var ElTimeline = withInstall(Timeline, {
  53458. TimelineItem
  53459. });
  53460. var ElTimelineItem = withNoopInstall(TimelineItem);
  53461. // node_modules/element-plus/es/components/transfer/src/transfer.mjs
  53462. var LEFT_CHECK_CHANGE_EVENT = "left-check-change";
  53463. var RIGHT_CHECK_CHANGE_EVENT = "right-check-change";
  53464. var transferProps = buildProps({
  53465. data: {
  53466. type: definePropType(Array),
  53467. default: () => []
  53468. },
  53469. titles: {
  53470. type: definePropType(Array),
  53471. default: () => []
  53472. },
  53473. buttonTexts: {
  53474. type: definePropType(Array),
  53475. default: () => []
  53476. },
  53477. filterPlaceholder: String,
  53478. filterMethod: {
  53479. type: definePropType(Function)
  53480. },
  53481. leftDefaultChecked: {
  53482. type: definePropType(Array),
  53483. default: () => []
  53484. },
  53485. rightDefaultChecked: {
  53486. type: definePropType(Array),
  53487. default: () => []
  53488. },
  53489. renderContent: {
  53490. type: definePropType(Function)
  53491. },
  53492. modelValue: {
  53493. type: definePropType(Array),
  53494. default: () => []
  53495. },
  53496. format: {
  53497. type: definePropType(Object),
  53498. default: () => ({})
  53499. },
  53500. filterable: Boolean,
  53501. props: {
  53502. type: definePropType(Object),
  53503. default: () => mutable({
  53504. label: "label",
  53505. key: "key",
  53506. disabled: "disabled"
  53507. })
  53508. },
  53509. targetOrder: {
  53510. type: String,
  53511. values: ["original", "push", "unshift"],
  53512. default: "original"
  53513. },
  53514. validateEvent: {
  53515. type: Boolean,
  53516. default: true
  53517. }
  53518. });
  53519. var transferCheckedChangeFn = (value, movedKeys) => [value, movedKeys].every(isArray) || isArray(value) && isNil_default(movedKeys);
  53520. var transferEmits = {
  53521. [CHANGE_EVENT]: (value, direction2, movedKeys) => [value, movedKeys].every(isArray) && ["left", "right"].includes(direction2),
  53522. [UPDATE_MODEL_EVENT]: (value) => isArray(value),
  53523. [LEFT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn,
  53524. [RIGHT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn
  53525. };
  53526. // node_modules/element-plus/es/components/transfer/src/transfer-panel2.mjs
  53527. var CHECKED_CHANGE_EVENT = "checked-change";
  53528. var transferPanelProps = buildProps({
  53529. data: transferProps.data,
  53530. optionRender: {
  53531. type: definePropType(Function)
  53532. },
  53533. placeholder: String,
  53534. title: String,
  53535. filterable: Boolean,
  53536. format: transferProps.format,
  53537. filterMethod: transferProps.filterMethod,
  53538. defaultChecked: transferProps.leftDefaultChecked,
  53539. props: transferProps.props
  53540. });
  53541. var transferPanelEmits = {
  53542. [CHECKED_CHANGE_EVENT]: transferCheckedChangeFn
  53543. };
  53544. // node_modules/element-plus/es/components/transfer/src/composables/use-props-alias.mjs
  53545. var usePropsAlias = (props2) => {
  53546. const initProps = {
  53547. label: "label",
  53548. key: "key",
  53549. disabled: "disabled"
  53550. };
  53551. return computed(() => ({
  53552. ...initProps,
  53553. ...props2.props
  53554. }));
  53555. };
  53556. // node_modules/element-plus/es/components/transfer/src/composables/use-check.mjs
  53557. var useCheck = (props2, panelState, emit) => {
  53558. const propsAlias = usePropsAlias(props2);
  53559. const filteredData = computed(() => {
  53560. return props2.data.filter((item) => {
  53561. if (isFunction(props2.filterMethod)) {
  53562. return props2.filterMethod(panelState.query, item);
  53563. } else {
  53564. const label = String(item[propsAlias.value.label] || item[propsAlias.value.key]);
  53565. return label.toLowerCase().includes(panelState.query.toLowerCase());
  53566. }
  53567. });
  53568. });
  53569. const checkableData = computed(() => filteredData.value.filter((item) => !item[propsAlias.value.disabled]));
  53570. const checkedSummary = computed(() => {
  53571. const checkedLength = panelState.checked.length;
  53572. const dataLength = props2.data.length;
  53573. const { noChecked, hasChecked } = props2.format;
  53574. if (noChecked && hasChecked) {
  53575. return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength.toString()).replace(/\${total}/g, dataLength.toString()) : noChecked.replace(/\${total}/g, dataLength.toString());
  53576. } else {
  53577. return `${checkedLength}/${dataLength}`;
  53578. }
  53579. });
  53580. const isIndeterminate = computed(() => {
  53581. const checkedLength = panelState.checked.length;
  53582. return checkedLength > 0 && checkedLength < checkableData.value.length;
  53583. });
  53584. const updateAllChecked = () => {
  53585. const checkableDataKeys = checkableData.value.map((item) => item[propsAlias.value.key]);
  53586. panelState.allChecked = checkableDataKeys.length > 0 && checkableDataKeys.every((item) => panelState.checked.includes(item));
  53587. };
  53588. const handleAllCheckedChange = (value) => {
  53589. panelState.checked = value ? checkableData.value.map((item) => item[propsAlias.value.key]) : [];
  53590. };
  53591. watch(() => panelState.checked, (val, oldVal) => {
  53592. updateAllChecked();
  53593. if (panelState.checkChangeByUser) {
  53594. const movedKeys = val.concat(oldVal).filter((v2) => !val.includes(v2) || !oldVal.includes(v2));
  53595. emit(CHECKED_CHANGE_EVENT, val, movedKeys);
  53596. } else {
  53597. emit(CHECKED_CHANGE_EVENT, val);
  53598. panelState.checkChangeByUser = true;
  53599. }
  53600. });
  53601. watch(checkableData, () => {
  53602. updateAllChecked();
  53603. });
  53604. watch(() => props2.data, () => {
  53605. const checked = [];
  53606. const filteredDataKeys = filteredData.value.map((item) => item[propsAlias.value.key]);
  53607. panelState.checked.forEach((item) => {
  53608. if (filteredDataKeys.includes(item)) {
  53609. checked.push(item);
  53610. }
  53611. });
  53612. panelState.checkChangeByUser = false;
  53613. panelState.checked = checked;
  53614. });
  53615. watch(() => props2.defaultChecked, (val, oldVal) => {
  53616. if (oldVal && val.length === oldVal.length && val.every((item) => oldVal.includes(item)))
  53617. return;
  53618. const checked = [];
  53619. const checkableDataKeys = checkableData.value.map((item) => item[propsAlias.value.key]);
  53620. val.forEach((item) => {
  53621. if (checkableDataKeys.includes(item)) {
  53622. checked.push(item);
  53623. }
  53624. });
  53625. panelState.checkChangeByUser = false;
  53626. panelState.checked = checked;
  53627. }, {
  53628. immediate: true
  53629. });
  53630. return {
  53631. filteredData,
  53632. checkableData,
  53633. checkedSummary,
  53634. isIndeterminate,
  53635. updateAllChecked,
  53636. handleAllCheckedChange
  53637. };
  53638. };
  53639. // node_modules/element-plus/es/components/transfer/src/transfer-panel.mjs
  53640. var __default__103 = defineComponent({
  53641. name: "ElTransferPanel"
  53642. });
  53643. var _sfc_main133 = defineComponent({
  53644. ...__default__103,
  53645. props: transferPanelProps,
  53646. emits: transferPanelEmits,
  53647. setup(__props, { expose, emit }) {
  53648. const props2 = __props;
  53649. const slots = useSlots();
  53650. const OptionContent = ({ option }) => option;
  53651. const { t } = useLocale();
  53652. const ns = useNamespace("transfer");
  53653. const panelState = reactive({
  53654. checked: [],
  53655. allChecked: false,
  53656. query: "",
  53657. checkChangeByUser: true
  53658. });
  53659. const propsAlias = usePropsAlias(props2);
  53660. const {
  53661. filteredData,
  53662. checkedSummary,
  53663. isIndeterminate,
  53664. handleAllCheckedChange
  53665. } = useCheck(props2, panelState, emit);
  53666. const hasNoMatch = computed(() => !isEmpty2(panelState.query) && isEmpty2(filteredData.value));
  53667. const hasFooter = computed(() => !isEmpty2(slots.default()[0].children));
  53668. const { checked, allChecked, query } = toRefs(panelState);
  53669. expose({
  53670. query
  53671. });
  53672. return (_ctx, _cache) => {
  53673. return openBlock(), createElementBlock("div", {
  53674. class: normalizeClass(unref(ns).b("panel"))
  53675. }, [
  53676. createBaseVNode("p", {
  53677. class: normalizeClass(unref(ns).be("panel", "header"))
  53678. }, [
  53679. createVNode(unref(ElCheckbox), {
  53680. modelValue: unref(allChecked),
  53681. "onUpdate:modelValue": ($event) => isRef(allChecked) ? allChecked.value = $event : null,
  53682. indeterminate: unref(isIndeterminate),
  53683. "validate-event": false,
  53684. onChange: unref(handleAllCheckedChange)
  53685. }, {
  53686. default: withCtx(() => [
  53687. createTextVNode(toDisplayString(_ctx.title) + " ", 1),
  53688. createBaseVNode("span", null, toDisplayString(unref(checkedSummary)), 1)
  53689. ]),
  53690. _: 1
  53691. }, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "onChange"])
  53692. ], 2),
  53693. createBaseVNode("div", {
  53694. class: normalizeClass([unref(ns).be("panel", "body"), unref(ns).is("with-footer", unref(hasFooter))])
  53695. }, [
  53696. _ctx.filterable ? (openBlock(), createBlock(unref(ElInput), {
  53697. key: 0,
  53698. modelValue: unref(query),
  53699. "onUpdate:modelValue": ($event) => isRef(query) ? query.value = $event : null,
  53700. class: normalizeClass(unref(ns).be("panel", "filter")),
  53701. size: "default",
  53702. placeholder: _ctx.placeholder,
  53703. "prefix-icon": unref(search_default),
  53704. clearable: "",
  53705. "validate-event": false
  53706. }, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder", "prefix-icon"])) : createCommentVNode("v-if", true),
  53707. withDirectives(createVNode(unref(ElCheckboxGroup), {
  53708. modelValue: unref(checked),
  53709. "onUpdate:modelValue": ($event) => isRef(checked) ? checked.value = $event : null,
  53710. "validate-event": false,
  53711. class: normalizeClass([unref(ns).is("filterable", _ctx.filterable), unref(ns).be("panel", "list")])
  53712. }, {
  53713. default: withCtx(() => [
  53714. (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredData), (item) => {
  53715. return openBlock(), createBlock(unref(ElCheckbox), {
  53716. key: item[unref(propsAlias).key],
  53717. class: normalizeClass(unref(ns).be("panel", "item")),
  53718. value: item[unref(propsAlias).key],
  53719. disabled: item[unref(propsAlias).disabled],
  53720. "validate-event": false
  53721. }, {
  53722. default: withCtx(() => {
  53723. var _a2;
  53724. return [
  53725. createVNode(OptionContent, {
  53726. option: (_a2 = _ctx.optionRender) == null ? void 0 : _a2.call(_ctx, item)
  53727. }, null, 8, ["option"])
  53728. ];
  53729. }),
  53730. _: 2
  53731. }, 1032, ["class", "value", "disabled"]);
  53732. }), 128))
  53733. ]),
  53734. _: 1
  53735. }, 8, ["modelValue", "onUpdate:modelValue", "class"]), [
  53736. [vShow, !unref(hasNoMatch) && !unref(isEmpty2)(_ctx.data)]
  53737. ]),
  53738. withDirectives(createBaseVNode("div", {
  53739. class: normalizeClass(unref(ns).be("panel", "empty"))
  53740. }, [
  53741. renderSlot(_ctx.$slots, "empty", {}, () => [
  53742. createTextVNode(toDisplayString(unref(hasNoMatch) ? unref(t)("el.transfer.noMatch") : unref(t)("el.transfer.noData")), 1)
  53743. ])
  53744. ], 2), [
  53745. [vShow, unref(hasNoMatch) || unref(isEmpty2)(_ctx.data)]
  53746. ])
  53747. ], 2),
  53748. unref(hasFooter) ? (openBlock(), createElementBlock("p", {
  53749. key: 0,
  53750. class: normalizeClass(unref(ns).be("panel", "footer"))
  53751. }, [
  53752. renderSlot(_ctx.$slots, "default")
  53753. ], 2)) : createCommentVNode("v-if", true)
  53754. ], 2);
  53755. };
  53756. }
  53757. });
  53758. var TransferPanel = _export_sfc(_sfc_main133, [["__file", "transfer-panel.vue"]]);
  53759. // node_modules/element-plus/es/components/transfer/src/composables/use-computed-data.mjs
  53760. var useComputedData = (props2) => {
  53761. const propsAlias = usePropsAlias(props2);
  53762. const dataObj = computed(() => props2.data.reduce((o2, cur) => (o2[cur[propsAlias.value.key]] = cur) && o2, {}));
  53763. const sourceData = computed(() => props2.data.filter((item) => !props2.modelValue.includes(item[propsAlias.value.key])));
  53764. const targetData = computed(() => {
  53765. if (props2.targetOrder === "original") {
  53766. return props2.data.filter((item) => props2.modelValue.includes(item[propsAlias.value.key]));
  53767. } else {
  53768. return props2.modelValue.reduce((arr, cur) => {
  53769. const val = dataObj.value[cur];
  53770. if (val) {
  53771. arr.push(val);
  53772. }
  53773. return arr;
  53774. }, []);
  53775. }
  53776. });
  53777. return {
  53778. sourceData,
  53779. targetData
  53780. };
  53781. };
  53782. // node_modules/element-plus/es/components/transfer/src/composables/use-move.mjs
  53783. var useMove = (props2, checkedState, emit) => {
  53784. const propsAlias = usePropsAlias(props2);
  53785. const _emit = (value, direction2, movedKeys) => {
  53786. emit(UPDATE_MODEL_EVENT, value);
  53787. emit(CHANGE_EVENT, value, direction2, movedKeys);
  53788. };
  53789. const addToLeft = () => {
  53790. const currentValue = props2.modelValue.slice();
  53791. checkedState.rightChecked.forEach((item) => {
  53792. const index = currentValue.indexOf(item);
  53793. if (index > -1) {
  53794. currentValue.splice(index, 1);
  53795. }
  53796. });
  53797. _emit(currentValue, "left", checkedState.rightChecked);
  53798. };
  53799. const addToRight = () => {
  53800. let currentValue = props2.modelValue.slice();
  53801. const itemsToBeMoved = props2.data.filter((item) => {
  53802. const itemKey = item[propsAlias.value.key];
  53803. return checkedState.leftChecked.includes(itemKey) && !props2.modelValue.includes(itemKey);
  53804. }).map((item) => item[propsAlias.value.key]);
  53805. currentValue = props2.targetOrder === "unshift" ? itemsToBeMoved.concat(currentValue) : currentValue.concat(itemsToBeMoved);
  53806. if (props2.targetOrder === "original") {
  53807. currentValue = props2.data.filter((item) => currentValue.includes(item[propsAlias.value.key])).map((item) => item[propsAlias.value.key]);
  53808. }
  53809. _emit(currentValue, "right", checkedState.leftChecked);
  53810. };
  53811. return {
  53812. addToLeft,
  53813. addToRight
  53814. };
  53815. };
  53816. // node_modules/element-plus/es/components/transfer/src/composables/use-checked-change.mjs
  53817. var useCheckedChange = (checkedState, emit) => {
  53818. const onSourceCheckedChange = (val, movedKeys) => {
  53819. checkedState.leftChecked = val;
  53820. if (!movedKeys)
  53821. return;
  53822. emit(LEFT_CHECK_CHANGE_EVENT, val, movedKeys);
  53823. };
  53824. const onTargetCheckedChange = (val, movedKeys) => {
  53825. checkedState.rightChecked = val;
  53826. if (!movedKeys)
  53827. return;
  53828. emit(RIGHT_CHECK_CHANGE_EVENT, val, movedKeys);
  53829. };
  53830. return {
  53831. onSourceCheckedChange,
  53832. onTargetCheckedChange
  53833. };
  53834. };
  53835. // node_modules/element-plus/es/components/transfer/src/transfer2.mjs
  53836. var __default__104 = defineComponent({
  53837. name: "ElTransfer"
  53838. });
  53839. var _sfc_main134 = defineComponent({
  53840. ...__default__104,
  53841. props: transferProps,
  53842. emits: transferEmits,
  53843. setup(__props, { expose, emit }) {
  53844. const props2 = __props;
  53845. const slots = useSlots();
  53846. const { t } = useLocale();
  53847. const ns = useNamespace("transfer");
  53848. const { formItem } = useFormItem();
  53849. const checkedState = reactive({
  53850. leftChecked: [],
  53851. rightChecked: []
  53852. });
  53853. const propsAlias = usePropsAlias(props2);
  53854. const { sourceData, targetData } = useComputedData(props2);
  53855. const { onSourceCheckedChange, onTargetCheckedChange } = useCheckedChange(checkedState, emit);
  53856. const { addToLeft, addToRight } = useMove(props2, checkedState, emit);
  53857. const leftPanel = ref();
  53858. const rightPanel = ref();
  53859. const clearQuery = (which) => {
  53860. switch (which) {
  53861. case "left":
  53862. leftPanel.value.query = "";
  53863. break;
  53864. case "right":
  53865. rightPanel.value.query = "";
  53866. break;
  53867. }
  53868. };
  53869. const hasButtonTexts = computed(() => props2.buttonTexts.length === 2);
  53870. const leftPanelTitle = computed(() => props2.titles[0] || t("el.transfer.titles.0"));
  53871. const rightPanelTitle = computed(() => props2.titles[1] || t("el.transfer.titles.1"));
  53872. const panelFilterPlaceholder = computed(() => props2.filterPlaceholder || t("el.transfer.filterPlaceholder"));
  53873. watch(() => props2.modelValue, () => {
  53874. var _a2;
  53875. if (props2.validateEvent) {
  53876. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn(err));
  53877. }
  53878. });
  53879. const optionRender = computed(() => (option) => {
  53880. var _a2;
  53881. if (props2.renderContent)
  53882. return props2.renderContent(h, option);
  53883. const defaultSlotVNodes = (((_a2 = slots.default) == null ? void 0 : _a2.call(slots, { option })) || []).filter((node) => node.type !== Comment);
  53884. if (defaultSlotVNodes.length) {
  53885. return defaultSlotVNodes;
  53886. }
  53887. return h("span", option[propsAlias.value.label] || option[propsAlias.value.key]);
  53888. });
  53889. expose({
  53890. clearQuery,
  53891. leftPanel,
  53892. rightPanel
  53893. });
  53894. return (_ctx, _cache) => {
  53895. return openBlock(), createElementBlock("div", {
  53896. class: normalizeClass(unref(ns).b())
  53897. }, [
  53898. createVNode(TransferPanel, {
  53899. ref_key: "leftPanel",
  53900. ref: leftPanel,
  53901. data: unref(sourceData),
  53902. "option-render": unref(optionRender),
  53903. placeholder: unref(panelFilterPlaceholder),
  53904. title: unref(leftPanelTitle),
  53905. filterable: _ctx.filterable,
  53906. format: _ctx.format,
  53907. "filter-method": _ctx.filterMethod,
  53908. "default-checked": _ctx.leftDefaultChecked,
  53909. props: props2.props,
  53910. onCheckedChange: unref(onSourceCheckedChange)
  53911. }, {
  53912. empty: withCtx(() => [
  53913. renderSlot(_ctx.$slots, "left-empty")
  53914. ]),
  53915. default: withCtx(() => [
  53916. renderSlot(_ctx.$slots, "left-footer")
  53917. ]),
  53918. _: 3
  53919. }, 8, ["data", "option-render", "placeholder", "title", "filterable", "format", "filter-method", "default-checked", "props", "onCheckedChange"]),
  53920. createBaseVNode("div", {
  53921. class: normalizeClass(unref(ns).e("buttons"))
  53922. }, [
  53923. createVNode(unref(ElButton), {
  53924. type: "primary",
  53925. class: normalizeClass([unref(ns).e("button"), unref(ns).is("with-texts", unref(hasButtonTexts))]),
  53926. disabled: unref(isEmpty2)(checkedState.rightChecked),
  53927. onClick: unref(addToLeft)
  53928. }, {
  53929. default: withCtx(() => [
  53930. createVNode(unref(ElIcon), null, {
  53931. default: withCtx(() => [
  53932. createVNode(unref(arrow_left_default))
  53933. ]),
  53934. _: 1
  53935. }),
  53936. !unref(isUndefined2)(_ctx.buttonTexts[0]) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.buttonTexts[0]), 1)) : createCommentVNode("v-if", true)
  53937. ]),
  53938. _: 1
  53939. }, 8, ["class", "disabled", "onClick"]),
  53940. createVNode(unref(ElButton), {
  53941. type: "primary",
  53942. class: normalizeClass([unref(ns).e("button"), unref(ns).is("with-texts", unref(hasButtonTexts))]),
  53943. disabled: unref(isEmpty2)(checkedState.leftChecked),
  53944. onClick: unref(addToRight)
  53945. }, {
  53946. default: withCtx(() => [
  53947. !unref(isUndefined2)(_ctx.buttonTexts[1]) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.buttonTexts[1]), 1)) : createCommentVNode("v-if", true),
  53948. createVNode(unref(ElIcon), null, {
  53949. default: withCtx(() => [
  53950. createVNode(unref(arrow_right_default))
  53951. ]),
  53952. _: 1
  53953. })
  53954. ]),
  53955. _: 1
  53956. }, 8, ["class", "disabled", "onClick"])
  53957. ], 2),
  53958. createVNode(TransferPanel, {
  53959. ref_key: "rightPanel",
  53960. ref: rightPanel,
  53961. data: unref(targetData),
  53962. "option-render": unref(optionRender),
  53963. placeholder: unref(panelFilterPlaceholder),
  53964. filterable: _ctx.filterable,
  53965. format: _ctx.format,
  53966. "filter-method": _ctx.filterMethod,
  53967. title: unref(rightPanelTitle),
  53968. "default-checked": _ctx.rightDefaultChecked,
  53969. props: props2.props,
  53970. onCheckedChange: unref(onTargetCheckedChange)
  53971. }, {
  53972. empty: withCtx(() => [
  53973. renderSlot(_ctx.$slots, "right-empty")
  53974. ]),
  53975. default: withCtx(() => [
  53976. renderSlot(_ctx.$slots, "right-footer")
  53977. ]),
  53978. _: 3
  53979. }, 8, ["data", "option-render", "placeholder", "filterable", "format", "filter-method", "title", "default-checked", "props", "onCheckedChange"])
  53980. ], 2);
  53981. };
  53982. }
  53983. });
  53984. var Transfer = _export_sfc(_sfc_main134, [["__file", "transfer.vue"]]);
  53985. // node_modules/element-plus/es/components/transfer/index.mjs
  53986. var ElTransfer = withInstall(Transfer);
  53987. // node_modules/element-plus/es/components/tree/src/model/util.mjs
  53988. var NODE_KEY = "$treeNodeId";
  53989. var markNodeData = function(node, data) {
  53990. if (!data || data[NODE_KEY])
  53991. return;
  53992. Object.defineProperty(data, NODE_KEY, {
  53993. value: node.id,
  53994. enumerable: false,
  53995. configurable: false,
  53996. writable: false
  53997. });
  53998. };
  53999. var getNodeKey = (key, data) => data == null ? void 0 : data[key || NODE_KEY];
  54000. var handleCurrentChange = (store, emit, setCurrent) => {
  54001. const preCurrentNode = store.value.currentNode;
  54002. setCurrent();
  54003. const currentNode = store.value.currentNode;
  54004. if (preCurrentNode === currentNode)
  54005. return;
  54006. emit("current-change", currentNode ? currentNode.data : null, currentNode);
  54007. };
  54008. // node_modules/element-plus/es/components/tree/src/model/node.mjs
  54009. var getChildState = (node) => {
  54010. let all = true;
  54011. let none = true;
  54012. let allWithoutDisable = true;
  54013. for (let i = 0, j = node.length; i < j; i++) {
  54014. const n = node[i];
  54015. if (n.checked !== true || n.indeterminate) {
  54016. all = false;
  54017. if (!n.disabled) {
  54018. allWithoutDisable = false;
  54019. }
  54020. }
  54021. if (n.checked !== false || n.indeterminate) {
  54022. none = false;
  54023. }
  54024. }
  54025. return { all, none, allWithoutDisable, half: !all && !none };
  54026. };
  54027. var reInitChecked = function(node) {
  54028. if (node.childNodes.length === 0 || node.loading)
  54029. return;
  54030. const { all, none, half } = getChildState(node.childNodes);
  54031. if (all) {
  54032. node.checked = true;
  54033. node.indeterminate = false;
  54034. } else if (half) {
  54035. node.checked = false;
  54036. node.indeterminate = true;
  54037. } else if (none) {
  54038. node.checked = false;
  54039. node.indeterminate = false;
  54040. }
  54041. const parent2 = node.parent;
  54042. if (!parent2 || parent2.level === 0)
  54043. return;
  54044. if (!node.store.checkStrictly) {
  54045. reInitChecked(parent2);
  54046. }
  54047. };
  54048. var getPropertyFromData = function(node, prop) {
  54049. const props2 = node.store.props;
  54050. const data = node.data || {};
  54051. const config = props2[prop];
  54052. if (isFunction(config)) {
  54053. return config(data, node);
  54054. } else if (isString(config)) {
  54055. return data[config];
  54056. } else if (isUndefined2(config)) {
  54057. const dataProp = data[prop];
  54058. return isUndefined2(dataProp) ? "" : dataProp;
  54059. }
  54060. };
  54061. var setCanFocus = function(childNodes, focus) {
  54062. childNodes.forEach((item) => {
  54063. item.canFocus = focus;
  54064. setCanFocus(item.childNodes, focus);
  54065. });
  54066. };
  54067. var nodeIdSeed = 0;
  54068. var Node3 = class _Node {
  54069. constructor(options) {
  54070. this.isLeafByUser = void 0;
  54071. this.isLeaf = void 0;
  54072. this.id = nodeIdSeed++;
  54073. this.text = null;
  54074. this.checked = false;
  54075. this.indeterminate = false;
  54076. this.data = null;
  54077. this.expanded = false;
  54078. this.parent = null;
  54079. this.visible = true;
  54080. this.isCurrent = false;
  54081. this.canFocus = false;
  54082. for (const name in options) {
  54083. if (hasOwn(options, name)) {
  54084. this[name] = options[name];
  54085. }
  54086. }
  54087. this.level = 0;
  54088. this.loaded = false;
  54089. this.childNodes = [];
  54090. this.loading = false;
  54091. if (this.parent) {
  54092. this.level = this.parent.level + 1;
  54093. }
  54094. }
  54095. initialize() {
  54096. var _a2;
  54097. const store = this.store;
  54098. if (!store) {
  54099. throw new Error("[Node]store is required!");
  54100. }
  54101. store.registerNode(this);
  54102. const props2 = store.props;
  54103. if (props2 && typeof props2.isLeaf !== "undefined") {
  54104. const isLeaf2 = getPropertyFromData(this, "isLeaf");
  54105. if (isBoolean2(isLeaf2)) {
  54106. this.isLeafByUser = isLeaf2;
  54107. }
  54108. }
  54109. if (store.lazy !== true && this.data) {
  54110. this.setData(this.data);
  54111. if (store.defaultExpandAll) {
  54112. this.expanded = true;
  54113. this.canFocus = true;
  54114. }
  54115. } else if (this.level > 0 && store.lazy && store.defaultExpandAll && !this.isLeafByUser) {
  54116. this.expand();
  54117. }
  54118. if (!isArray(this.data)) {
  54119. markNodeData(this, this.data);
  54120. }
  54121. if (!this.data)
  54122. return;
  54123. const defaultExpandedKeys = store.defaultExpandedKeys;
  54124. const key = store.key;
  54125. if (key && !isNil_default(this.key) && defaultExpandedKeys && defaultExpandedKeys.includes(this.key)) {
  54126. this.expand(null, store.autoExpandParent);
  54127. }
  54128. if (key && store.currentNodeKey !== void 0 && this.key === store.currentNodeKey) {
  54129. store.currentNode = this;
  54130. store.currentNode.isCurrent = true;
  54131. }
  54132. if (store.lazy) {
  54133. store._initDefaultCheckedNode(this);
  54134. }
  54135. this.updateLeafState();
  54136. if (this.level === 1 || ((_a2 = this.parent) == null ? void 0 : _a2.expanded) === true)
  54137. this.canFocus = true;
  54138. }
  54139. setData(data) {
  54140. if (!isArray(data)) {
  54141. markNodeData(this, data);
  54142. }
  54143. this.data = data;
  54144. this.childNodes = [];
  54145. let children;
  54146. if (this.level === 0 && isArray(this.data)) {
  54147. children = this.data;
  54148. } else {
  54149. children = getPropertyFromData(this, "children") || [];
  54150. }
  54151. for (let i = 0, j = children.length; i < j; i++) {
  54152. this.insertChild({ data: children[i] });
  54153. }
  54154. }
  54155. get label() {
  54156. return getPropertyFromData(this, "label");
  54157. }
  54158. get key() {
  54159. const nodeKey = this.store.key;
  54160. if (this.data)
  54161. return this.data[nodeKey];
  54162. return null;
  54163. }
  54164. get disabled() {
  54165. return getPropertyFromData(this, "disabled");
  54166. }
  54167. get nextSibling() {
  54168. const parent2 = this.parent;
  54169. if (parent2) {
  54170. const index = parent2.childNodes.indexOf(this);
  54171. if (index > -1) {
  54172. return parent2.childNodes[index + 1];
  54173. }
  54174. }
  54175. return null;
  54176. }
  54177. get previousSibling() {
  54178. const parent2 = this.parent;
  54179. if (parent2) {
  54180. const index = parent2.childNodes.indexOf(this);
  54181. if (index > -1) {
  54182. return index > 0 ? parent2.childNodes[index - 1] : null;
  54183. }
  54184. }
  54185. return null;
  54186. }
  54187. contains(target2, deep = true) {
  54188. return (this.childNodes || []).some((child) => child === target2 || deep && child.contains(target2));
  54189. }
  54190. remove() {
  54191. const parent2 = this.parent;
  54192. if (parent2) {
  54193. parent2.removeChild(this);
  54194. }
  54195. }
  54196. insertChild(child, index, batch) {
  54197. if (!child)
  54198. throw new Error("InsertChild error: child is required.");
  54199. if (!(child instanceof _Node)) {
  54200. if (!batch) {
  54201. const children = this.getChildren(true);
  54202. if (!(children == null ? void 0 : children.includes(child.data))) {
  54203. if (isUndefined2(index) || index < 0) {
  54204. children == null ? void 0 : children.push(child.data);
  54205. } else {
  54206. children == null ? void 0 : children.splice(index, 0, child.data);
  54207. }
  54208. }
  54209. }
  54210. Object.assign(child, {
  54211. parent: this,
  54212. store: this.store
  54213. });
  54214. child = reactive(new _Node(child));
  54215. if (child instanceof _Node) {
  54216. child.initialize();
  54217. }
  54218. }
  54219. child.level = this.level + 1;
  54220. if (isUndefined2(index) || index < 0) {
  54221. this.childNodes.push(child);
  54222. } else {
  54223. this.childNodes.splice(index, 0, child);
  54224. }
  54225. this.updateLeafState();
  54226. }
  54227. insertBefore(child, ref2) {
  54228. let index;
  54229. if (ref2) {
  54230. index = this.childNodes.indexOf(ref2);
  54231. }
  54232. this.insertChild(child, index);
  54233. }
  54234. insertAfter(child, ref2) {
  54235. let index;
  54236. if (ref2) {
  54237. index = this.childNodes.indexOf(ref2);
  54238. if (index !== -1)
  54239. index += 1;
  54240. }
  54241. this.insertChild(child, index);
  54242. }
  54243. removeChild(child) {
  54244. const children = this.getChildren() || [];
  54245. const dataIndex = children.indexOf(child.data);
  54246. if (dataIndex > -1) {
  54247. children.splice(dataIndex, 1);
  54248. }
  54249. const index = this.childNodes.indexOf(child);
  54250. if (index > -1) {
  54251. this.store && this.store.deregisterNode(child);
  54252. child.parent = null;
  54253. this.childNodes.splice(index, 1);
  54254. }
  54255. this.updateLeafState();
  54256. }
  54257. removeChildByData(data) {
  54258. let targetNode = null;
  54259. for (let i = 0; i < this.childNodes.length; i++) {
  54260. if (this.childNodes[i].data === data) {
  54261. targetNode = this.childNodes[i];
  54262. break;
  54263. }
  54264. }
  54265. if (targetNode) {
  54266. this.removeChild(targetNode);
  54267. }
  54268. }
  54269. expand(callback, expandParent) {
  54270. const done = () => {
  54271. if (expandParent) {
  54272. let parent2 = this.parent;
  54273. while (parent2 && parent2.level > 0) {
  54274. parent2.expanded = true;
  54275. parent2 = parent2.parent;
  54276. }
  54277. }
  54278. this.expanded = true;
  54279. if (callback)
  54280. callback();
  54281. setCanFocus(this.childNodes, true);
  54282. };
  54283. if (this.shouldLoadData()) {
  54284. this.loadData((data) => {
  54285. if (isArray(data)) {
  54286. if (this.checked) {
  54287. this.setChecked(true, true);
  54288. } else if (!this.store.checkStrictly) {
  54289. reInitChecked(this);
  54290. }
  54291. done();
  54292. }
  54293. });
  54294. } else {
  54295. done();
  54296. }
  54297. }
  54298. doCreateChildren(array4, defaultProps6 = {}) {
  54299. array4.forEach((item) => {
  54300. this.insertChild(Object.assign({ data: item }, defaultProps6), void 0, true);
  54301. });
  54302. }
  54303. collapse() {
  54304. this.expanded = false;
  54305. setCanFocus(this.childNodes, false);
  54306. }
  54307. shouldLoadData() {
  54308. return Boolean(this.store.lazy === true && this.store.load && !this.loaded);
  54309. }
  54310. updateLeafState() {
  54311. if (this.store.lazy === true && this.loaded !== true && typeof this.isLeafByUser !== "undefined") {
  54312. this.isLeaf = this.isLeafByUser;
  54313. return;
  54314. }
  54315. const childNodes = this.childNodes;
  54316. if (!this.store.lazy || this.store.lazy === true && this.loaded === true) {
  54317. this.isLeaf = !childNodes || childNodes.length === 0;
  54318. return;
  54319. }
  54320. this.isLeaf = false;
  54321. }
  54322. setChecked(value, deep, recursion, passValue) {
  54323. this.indeterminate = value === "half";
  54324. this.checked = value === true;
  54325. if (this.store.checkStrictly)
  54326. return;
  54327. if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
  54328. const { all, allWithoutDisable } = getChildState(this.childNodes);
  54329. if (!this.isLeaf && !all && allWithoutDisable) {
  54330. this.checked = false;
  54331. value = false;
  54332. }
  54333. const handleDescendants = () => {
  54334. if (deep) {
  54335. const childNodes = this.childNodes;
  54336. for (let i = 0, j = childNodes.length; i < j; i++) {
  54337. const child = childNodes[i];
  54338. passValue = passValue || value !== false;
  54339. const isCheck = child.disabled ? child.checked : passValue;
  54340. child.setChecked(isCheck, deep, true, passValue);
  54341. }
  54342. const { half, all: all2 } = getChildState(childNodes);
  54343. if (!all2) {
  54344. this.checked = all2;
  54345. this.indeterminate = half;
  54346. }
  54347. }
  54348. };
  54349. if (this.shouldLoadData()) {
  54350. this.loadData(() => {
  54351. handleDescendants();
  54352. reInitChecked(this);
  54353. }, {
  54354. checked: value !== false
  54355. });
  54356. return;
  54357. } else {
  54358. handleDescendants();
  54359. }
  54360. }
  54361. const parent2 = this.parent;
  54362. if (!parent2 || parent2.level === 0)
  54363. return;
  54364. if (!recursion) {
  54365. reInitChecked(parent2);
  54366. }
  54367. }
  54368. getChildren(forceInit = false) {
  54369. if (this.level === 0)
  54370. return this.data;
  54371. const data = this.data;
  54372. if (!data)
  54373. return null;
  54374. const props2 = this.store.props;
  54375. let children = "children";
  54376. if (props2) {
  54377. children = props2.children || "children";
  54378. }
  54379. if (isUndefined2(data[children])) {
  54380. data[children] = null;
  54381. }
  54382. if (forceInit && !data[children]) {
  54383. data[children] = [];
  54384. }
  54385. return data[children];
  54386. }
  54387. updateChildren() {
  54388. const newData = this.getChildren() || [];
  54389. const oldData = this.childNodes.map((node) => node.data);
  54390. const newDataMap = {};
  54391. const newNodes = [];
  54392. newData.forEach((item, index) => {
  54393. const key = item[NODE_KEY];
  54394. const isNodeExists = !!key && oldData.some((data) => (data == null ? void 0 : data[NODE_KEY]) === key);
  54395. if (isNodeExists) {
  54396. newDataMap[key] = { index, data: item };
  54397. } else {
  54398. newNodes.push({ index, data: item });
  54399. }
  54400. });
  54401. if (!this.store.lazy) {
  54402. oldData.forEach((item) => {
  54403. if (!newDataMap[item == null ? void 0 : item[NODE_KEY]])
  54404. this.removeChildByData(item);
  54405. });
  54406. }
  54407. newNodes.forEach(({ index, data }) => {
  54408. this.insertChild({ data }, index);
  54409. });
  54410. this.updateLeafState();
  54411. }
  54412. loadData(callback, defaultProps6 = {}) {
  54413. if (this.store.lazy === true && this.store.load && !this.loaded && (!this.loading || Object.keys(defaultProps6).length)) {
  54414. this.loading = true;
  54415. const resolve = (children) => {
  54416. this.childNodes = [];
  54417. this.doCreateChildren(children, defaultProps6);
  54418. this.loaded = true;
  54419. this.loading = false;
  54420. this.updateLeafState();
  54421. if (callback) {
  54422. callback.call(this, children);
  54423. }
  54424. };
  54425. const reject2 = () => {
  54426. this.loading = false;
  54427. };
  54428. this.store.load(this, resolve, reject2);
  54429. } else {
  54430. if (callback) {
  54431. callback.call(this);
  54432. }
  54433. }
  54434. }
  54435. eachNode(callback) {
  54436. const arr = [this];
  54437. while (arr.length) {
  54438. const node = arr.shift();
  54439. arr.unshift(...node.childNodes);
  54440. callback(node);
  54441. }
  54442. }
  54443. reInitChecked() {
  54444. if (this.store.checkStrictly)
  54445. return;
  54446. reInitChecked(this);
  54447. }
  54448. };
  54449. // node_modules/element-plus/es/components/tree/src/model/tree-store.mjs
  54450. var TreeStore = class {
  54451. constructor(options) {
  54452. this.lazy = false;
  54453. this.checkStrictly = false;
  54454. this.autoExpandParent = false;
  54455. this.defaultExpandAll = false;
  54456. this.checkDescendants = false;
  54457. this.currentNode = null;
  54458. this.currentNodeKey = null;
  54459. for (const option in options) {
  54460. if (hasOwn(options, option)) {
  54461. this[option] = options[option];
  54462. }
  54463. }
  54464. this.nodesMap = {};
  54465. }
  54466. initialize() {
  54467. this.root = new Node3({
  54468. data: this.data,
  54469. store: this
  54470. });
  54471. this.root.initialize();
  54472. if (this.lazy && this.load) {
  54473. const loadFn = this.load;
  54474. loadFn(this.root, (data) => {
  54475. this.root.doCreateChildren(data);
  54476. this._initDefaultCheckedNodes();
  54477. }, NOOP);
  54478. } else {
  54479. this._initDefaultCheckedNodes();
  54480. }
  54481. }
  54482. filter(value) {
  54483. const filterNodeMethod = this.filterNodeMethod;
  54484. const lazy = this.lazy;
  54485. const traverse = async function(node) {
  54486. const childNodes = node.root ? node.root.childNodes : node.childNodes;
  54487. for (const [index, child] of childNodes.entries()) {
  54488. child.visible = !!(filterNodeMethod == null ? void 0 : filterNodeMethod.call(child, value, child.data, child));
  54489. if (index % 80 === 0 && index > 0) {
  54490. await nextTick();
  54491. }
  54492. await traverse(child);
  54493. }
  54494. if (!node.visible && childNodes.length) {
  54495. let allHidden = true;
  54496. allHidden = !childNodes.some((child) => child.visible);
  54497. if (node.root) {
  54498. node.root.visible = allHidden === false;
  54499. } else {
  54500. node.visible = allHidden === false;
  54501. }
  54502. }
  54503. if (!value)
  54504. return;
  54505. if (node.visible && !node.isLeaf) {
  54506. if (!lazy || node.loaded) {
  54507. node.expand();
  54508. }
  54509. }
  54510. };
  54511. traverse(this);
  54512. }
  54513. setData(newVal) {
  54514. const instanceChanged = newVal !== this.root.data;
  54515. if (instanceChanged) {
  54516. this.nodesMap = {};
  54517. this.root.setData(newVal);
  54518. this._initDefaultCheckedNodes();
  54519. this.setCurrentNodeKey(this.currentNodeKey);
  54520. } else {
  54521. this.root.updateChildren();
  54522. }
  54523. }
  54524. getNode(data) {
  54525. if (data instanceof Node3)
  54526. return data;
  54527. const key = isObject(data) ? getNodeKey(this.key, data) : data;
  54528. return this.nodesMap[key] || null;
  54529. }
  54530. insertBefore(data, refData) {
  54531. var _a2;
  54532. const refNode = this.getNode(refData);
  54533. (_a2 = refNode.parent) == null ? void 0 : _a2.insertBefore({ data }, refNode);
  54534. }
  54535. insertAfter(data, refData) {
  54536. var _a2;
  54537. const refNode = this.getNode(refData);
  54538. (_a2 = refNode.parent) == null ? void 0 : _a2.insertAfter({ data }, refNode);
  54539. }
  54540. remove(data) {
  54541. const node = this.getNode(data);
  54542. if (node && node.parent) {
  54543. if (node === this.currentNode) {
  54544. this.currentNode = null;
  54545. }
  54546. node.parent.removeChild(node);
  54547. }
  54548. }
  54549. append(data, parentData) {
  54550. const parentNode = !isPropAbsent(parentData) ? this.getNode(parentData) : this.root;
  54551. if (parentNode) {
  54552. parentNode.insertChild({ data });
  54553. }
  54554. }
  54555. _initDefaultCheckedNodes() {
  54556. const defaultCheckedKeys = this.defaultCheckedKeys || [];
  54557. const nodesMap = this.nodesMap;
  54558. defaultCheckedKeys.forEach((checkedKey) => {
  54559. const node = nodesMap[checkedKey];
  54560. if (node) {
  54561. node.setChecked(true, !this.checkStrictly);
  54562. }
  54563. });
  54564. }
  54565. _initDefaultCheckedNode(node) {
  54566. const defaultCheckedKeys = this.defaultCheckedKeys || [];
  54567. if (!isNil_default(node.key) && defaultCheckedKeys.includes(node.key)) {
  54568. node.setChecked(true, !this.checkStrictly);
  54569. }
  54570. }
  54571. setDefaultCheckedKey(newVal) {
  54572. if (newVal !== this.defaultCheckedKeys) {
  54573. this.defaultCheckedKeys = newVal;
  54574. this._initDefaultCheckedNodes();
  54575. }
  54576. }
  54577. registerNode(node) {
  54578. const key = this.key;
  54579. if (!node || !node.data)
  54580. return;
  54581. if (!key) {
  54582. this.nodesMap[node.id] = node;
  54583. } else {
  54584. const nodeKey = node.key;
  54585. if (!isNil_default(nodeKey))
  54586. this.nodesMap[nodeKey] = node;
  54587. }
  54588. }
  54589. deregisterNode(node) {
  54590. const key = this.key;
  54591. if (!key || !node || !node.data)
  54592. return;
  54593. node.childNodes.forEach((child) => {
  54594. this.deregisterNode(child);
  54595. });
  54596. delete this.nodesMap[node.key];
  54597. }
  54598. getCheckedNodes(leafOnly = false, includeHalfChecked = false) {
  54599. const checkedNodes = [];
  54600. const traverse = function(node) {
  54601. const childNodes = node.root ? node.root.childNodes : node.childNodes;
  54602. childNodes.forEach((child) => {
  54603. if ((child.checked || includeHalfChecked && child.indeterminate) && (!leafOnly || leafOnly && child.isLeaf)) {
  54604. checkedNodes.push(child.data);
  54605. }
  54606. traverse(child);
  54607. });
  54608. };
  54609. traverse(this);
  54610. return checkedNodes;
  54611. }
  54612. getCheckedKeys(leafOnly = false) {
  54613. return this.getCheckedNodes(leafOnly).map((data) => (data || {})[this.key]);
  54614. }
  54615. getHalfCheckedNodes() {
  54616. const nodes = [];
  54617. const traverse = function(node) {
  54618. const childNodes = node.root ? node.root.childNodes : node.childNodes;
  54619. childNodes.forEach((child) => {
  54620. if (child.indeterminate) {
  54621. nodes.push(child.data);
  54622. }
  54623. traverse(child);
  54624. });
  54625. };
  54626. traverse(this);
  54627. return nodes;
  54628. }
  54629. getHalfCheckedKeys() {
  54630. return this.getHalfCheckedNodes().map((data) => (data || {})[this.key]);
  54631. }
  54632. _getAllNodes() {
  54633. const allNodes = [];
  54634. const nodesMap = this.nodesMap;
  54635. for (const nodeKey in nodesMap) {
  54636. if (hasOwn(nodesMap, nodeKey)) {
  54637. allNodes.push(nodesMap[nodeKey]);
  54638. }
  54639. }
  54640. return allNodes;
  54641. }
  54642. updateChildren(key, data) {
  54643. const node = this.nodesMap[key];
  54644. if (!node)
  54645. return;
  54646. const childNodes = node.childNodes;
  54647. for (let i = childNodes.length - 1; i >= 0; i--) {
  54648. const child = childNodes[i];
  54649. this.remove(child.data);
  54650. }
  54651. for (let i = 0, j = data.length; i < j; i++) {
  54652. const child = data[i];
  54653. this.append(child, node.data);
  54654. }
  54655. }
  54656. _setCheckedKeys(key, leafOnly = false, checkedKeys) {
  54657. const allNodes = this._getAllNodes().sort((a2, b2) => a2.level - b2.level);
  54658. const cache2 = /* @__PURE__ */ Object.create(null);
  54659. const keys3 = Object.keys(checkedKeys);
  54660. allNodes.forEach((node) => node.setChecked(false, false));
  54661. const cacheCheckedChild = (node) => {
  54662. node.childNodes.forEach((child) => {
  54663. var _a2;
  54664. cache2[child.data[key]] = true;
  54665. if ((_a2 = child.childNodes) == null ? void 0 : _a2.length) {
  54666. cacheCheckedChild(child);
  54667. }
  54668. });
  54669. };
  54670. for (let i = 0, j = allNodes.length; i < j; i++) {
  54671. const node = allNodes[i];
  54672. const nodeKey = node.data[key].toString();
  54673. const checked = keys3.includes(nodeKey);
  54674. if (!checked) {
  54675. if (node.checked && !cache2[nodeKey]) {
  54676. node.setChecked(false, false);
  54677. }
  54678. continue;
  54679. }
  54680. if (node.childNodes.length) {
  54681. cacheCheckedChild(node);
  54682. }
  54683. if (node.isLeaf || this.checkStrictly) {
  54684. node.setChecked(true, false);
  54685. continue;
  54686. }
  54687. node.setChecked(true, true);
  54688. if (leafOnly) {
  54689. node.setChecked(false, false);
  54690. const traverse = function(node2) {
  54691. const childNodes = node2.childNodes;
  54692. childNodes.forEach((child) => {
  54693. if (!child.isLeaf) {
  54694. child.setChecked(false, false);
  54695. }
  54696. traverse(child);
  54697. });
  54698. };
  54699. traverse(node);
  54700. }
  54701. }
  54702. }
  54703. setCheckedNodes(array4, leafOnly = false) {
  54704. const key = this.key;
  54705. const checkedKeys = {};
  54706. array4.forEach((item) => {
  54707. checkedKeys[(item || {})[key]] = true;
  54708. });
  54709. this._setCheckedKeys(key, leafOnly, checkedKeys);
  54710. }
  54711. setCheckedKeys(keys3, leafOnly = false) {
  54712. this.defaultCheckedKeys = keys3;
  54713. const key = this.key;
  54714. const checkedKeys = {};
  54715. keys3.forEach((key2) => {
  54716. checkedKeys[key2] = true;
  54717. });
  54718. this._setCheckedKeys(key, leafOnly, checkedKeys);
  54719. }
  54720. setDefaultExpandedKeys(keys3) {
  54721. keys3 = keys3 || [];
  54722. this.defaultExpandedKeys = keys3;
  54723. keys3.forEach((key) => {
  54724. const node = this.getNode(key);
  54725. if (node)
  54726. node.expand(null, this.autoExpandParent);
  54727. });
  54728. }
  54729. setChecked(data, checked, deep) {
  54730. const node = this.getNode(data);
  54731. if (node) {
  54732. node.setChecked(!!checked, deep);
  54733. }
  54734. }
  54735. getCurrentNode() {
  54736. return this.currentNode;
  54737. }
  54738. setCurrentNode(currentNode) {
  54739. const prevCurrentNode = this.currentNode;
  54740. if (prevCurrentNode) {
  54741. prevCurrentNode.isCurrent = false;
  54742. }
  54743. this.currentNode = currentNode;
  54744. this.currentNode.isCurrent = true;
  54745. }
  54746. setUserCurrentNode(node, shouldAutoExpandParent = true) {
  54747. var _a2;
  54748. const key = node[this.key];
  54749. const currNode = this.nodesMap[key];
  54750. this.setCurrentNode(currNode);
  54751. if (shouldAutoExpandParent && this.currentNode && this.currentNode.level > 1) {
  54752. (_a2 = this.currentNode.parent) == null ? void 0 : _a2.expand(null, true);
  54753. }
  54754. }
  54755. setCurrentNodeKey(key, shouldAutoExpandParent = true) {
  54756. var _a2;
  54757. this.currentNodeKey = key;
  54758. if (isPropAbsent(key)) {
  54759. this.currentNode && (this.currentNode.isCurrent = false);
  54760. this.currentNode = null;
  54761. return;
  54762. }
  54763. const node = this.getNode(key);
  54764. if (node) {
  54765. this.setCurrentNode(node);
  54766. if (shouldAutoExpandParent && this.currentNode && this.currentNode.level > 1) {
  54767. (_a2 = this.currentNode.parent) == null ? void 0 : _a2.expand(null, true);
  54768. }
  54769. }
  54770. }
  54771. };
  54772. // node_modules/element-plus/es/components/tree/src/tokens.mjs
  54773. var ROOT_TREE_INJECTION_KEY = "RootTree";
  54774. var NODE_INSTANCE_INJECTION_KEY = "NodeInstance";
  54775. var TREE_NODE_MAP_INJECTION_KEY = "TreeNodeMap";
  54776. // node_modules/element-plus/es/components/tree/src/tree-node-content.mjs
  54777. var _sfc_main135 = defineComponent({
  54778. name: "ElTreeNodeContent",
  54779. props: {
  54780. node: {
  54781. type: Object,
  54782. required: true
  54783. },
  54784. renderContent: Function
  54785. },
  54786. setup(props2) {
  54787. const ns = useNamespace("tree");
  54788. const nodeInstance = inject(NODE_INSTANCE_INJECTION_KEY);
  54789. const tree = inject(ROOT_TREE_INJECTION_KEY);
  54790. return () => {
  54791. const node = props2.node;
  54792. const { data, store } = node;
  54793. return props2.renderContent ? props2.renderContent(h, { _self: nodeInstance, node, data, store }) : renderSlot(tree.ctx.slots, "default", { node, data }, () => [
  54794. h(ElText, { tag: "span", truncated: true, class: ns.be("node", "label") }, () => [node.label])
  54795. ]);
  54796. };
  54797. }
  54798. });
  54799. var NodeContent2 = _export_sfc(_sfc_main135, [["__file", "tree-node-content.vue"]]);
  54800. // node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs
  54801. function useNodeExpandEventBroadcast(props2) {
  54802. const parentNodeMap = inject(TREE_NODE_MAP_INJECTION_KEY, null);
  54803. const currentNodeMap = {
  54804. treeNodeExpand: (node) => {
  54805. var _a2;
  54806. if (props2.node !== node) {
  54807. (_a2 = props2.node) == null ? void 0 : _a2.collapse();
  54808. }
  54809. },
  54810. children: []
  54811. };
  54812. if (parentNodeMap) {
  54813. parentNodeMap.children.push(currentNodeMap);
  54814. }
  54815. provide(TREE_NODE_MAP_INJECTION_KEY, currentNodeMap);
  54816. return {
  54817. broadcastExpanded: (node) => {
  54818. if (!props2.accordion)
  54819. return;
  54820. for (const childNode of currentNodeMap.children) {
  54821. childNode.treeNodeExpand(node);
  54822. }
  54823. }
  54824. };
  54825. }
  54826. // node_modules/element-plus/es/components/tree/src/model/useDragNode.mjs
  54827. var dragEventsKey = Symbol("dragEvents");
  54828. function useDragNodeHandler({
  54829. props: props2,
  54830. ctx,
  54831. el$,
  54832. dropIndicator$,
  54833. store
  54834. }) {
  54835. const ns = useNamespace("tree");
  54836. const dragState = ref({
  54837. showDropIndicator: false,
  54838. draggingNode: null,
  54839. dropNode: null,
  54840. allowDrop: true,
  54841. dropType: null
  54842. });
  54843. const treeNodeDragStart = ({ event, treeNode }) => {
  54844. if (!event.dataTransfer)
  54845. return;
  54846. if (isFunction(props2.allowDrag) && !props2.allowDrag(treeNode.node)) {
  54847. event.preventDefault();
  54848. return false;
  54849. }
  54850. event.dataTransfer.effectAllowed = "move";
  54851. try {
  54852. event.dataTransfer.setData("text/plain", "");
  54853. } catch (e) {
  54854. }
  54855. dragState.value.draggingNode = treeNode;
  54856. ctx.emit("node-drag-start", treeNode.node, event);
  54857. };
  54858. const treeNodeDragOver = ({ event, treeNode }) => {
  54859. if (!event.dataTransfer)
  54860. return;
  54861. const dropNode = treeNode;
  54862. const oldDropNode = dragState.value.dropNode;
  54863. if (oldDropNode && oldDropNode.node.id !== dropNode.node.id) {
  54864. removeClass(oldDropNode.$el, ns.is("drop-inner"));
  54865. }
  54866. const draggingNode = dragState.value.draggingNode;
  54867. if (!draggingNode || !dropNode)
  54868. return;
  54869. let dropPrev = true;
  54870. let dropInner = true;
  54871. let dropNext = true;
  54872. let userAllowDropInner = true;
  54873. if (isFunction(props2.allowDrop)) {
  54874. dropPrev = props2.allowDrop(draggingNode.node, dropNode.node, "prev");
  54875. userAllowDropInner = dropInner = props2.allowDrop(draggingNode.node, dropNode.node, "inner");
  54876. dropNext = props2.allowDrop(draggingNode.node, dropNode.node, "next");
  54877. }
  54878. event.dataTransfer.dropEffect = dropInner || dropPrev || dropNext ? "move" : "none";
  54879. if ((dropPrev || dropInner || dropNext) && (oldDropNode == null ? void 0 : oldDropNode.node.id) !== dropNode.node.id) {
  54880. if (oldDropNode) {
  54881. ctx.emit("node-drag-leave", draggingNode.node, oldDropNode.node, event);
  54882. }
  54883. ctx.emit("node-drag-enter", draggingNode.node, dropNode.node, event);
  54884. }
  54885. if (dropPrev || dropInner || dropNext) {
  54886. dragState.value.dropNode = dropNode;
  54887. } else {
  54888. dragState.value.dropNode = null;
  54889. }
  54890. if (dropNode.node.nextSibling === draggingNode.node) {
  54891. dropNext = false;
  54892. }
  54893. if (dropNode.node.previousSibling === draggingNode.node) {
  54894. dropPrev = false;
  54895. }
  54896. if (dropNode.node.contains(draggingNode.node, false)) {
  54897. dropInner = false;
  54898. }
  54899. if (draggingNode.node === dropNode.node || draggingNode.node.contains(dropNode.node)) {
  54900. dropPrev = false;
  54901. dropInner = false;
  54902. dropNext = false;
  54903. }
  54904. const dropEl = dropNode.$el;
  54905. const targetPosition = dropEl.querySelector(`.${ns.be("node", "content")}`).getBoundingClientRect();
  54906. const treePosition = el$.value.getBoundingClientRect();
  54907. const treeScrollTop = el$.value.scrollTop;
  54908. let dropType;
  54909. const prevPercent = dropPrev ? dropInner ? 0.25 : dropNext ? 0.45 : 1 : Number.NEGATIVE_INFINITY;
  54910. const nextPercent = dropNext ? dropInner ? 0.75 : dropPrev ? 0.55 : 0 : Number.POSITIVE_INFINITY;
  54911. let indicatorTop = -9999;
  54912. const distance = event.clientY - targetPosition.top;
  54913. if (distance < targetPosition.height * prevPercent) {
  54914. dropType = "before";
  54915. } else if (distance > targetPosition.height * nextPercent) {
  54916. dropType = "after";
  54917. } else if (dropInner) {
  54918. dropType = "inner";
  54919. } else {
  54920. dropType = "none";
  54921. }
  54922. const iconPosition = dropEl.querySelector(`.${ns.be("node", "expand-icon")}`).getBoundingClientRect();
  54923. const dropIndicator = dropIndicator$.value;
  54924. if (dropType === "before") {
  54925. indicatorTop = iconPosition.top - treePosition.top + treeScrollTop;
  54926. } else if (dropType === "after") {
  54927. indicatorTop = iconPosition.bottom - treePosition.top + treeScrollTop;
  54928. }
  54929. dropIndicator.style.top = `${indicatorTop}px`;
  54930. dropIndicator.style.left = `${iconPosition.right - treePosition.left}px`;
  54931. if (dropType === "inner") {
  54932. addClass(dropEl, ns.is("drop-inner"));
  54933. } else {
  54934. removeClass(dropEl, ns.is("drop-inner"));
  54935. }
  54936. dragState.value.showDropIndicator = dropType === "before" || dropType === "after";
  54937. dragState.value.allowDrop = dragState.value.showDropIndicator || userAllowDropInner;
  54938. dragState.value.dropType = dropType;
  54939. ctx.emit("node-drag-over", draggingNode.node, dropNode.node, event);
  54940. };
  54941. const treeNodeDragEnd = (event) => {
  54942. var _a2, _b;
  54943. const { draggingNode, dropType, dropNode } = dragState.value;
  54944. event.preventDefault();
  54945. if (event.dataTransfer) {
  54946. event.dataTransfer.dropEffect = "move";
  54947. }
  54948. if ((draggingNode == null ? void 0 : draggingNode.node.data) && dropNode) {
  54949. const draggingNodeCopy = { data: draggingNode.node.data };
  54950. if (dropType !== "none") {
  54951. draggingNode.node.remove();
  54952. }
  54953. if (dropType === "before") {
  54954. (_a2 = dropNode.node.parent) == null ? void 0 : _a2.insertBefore(draggingNodeCopy, dropNode.node);
  54955. } else if (dropType === "after") {
  54956. (_b = dropNode.node.parent) == null ? void 0 : _b.insertAfter(draggingNodeCopy, dropNode.node);
  54957. } else if (dropType === "inner") {
  54958. dropNode.node.insertChild(draggingNodeCopy);
  54959. }
  54960. if (dropType !== "none") {
  54961. store.value.registerNode(draggingNodeCopy);
  54962. if (store.value.key) {
  54963. draggingNode.node.eachNode((node) => {
  54964. var _a22;
  54965. (_a22 = store.value.nodesMap[node.data[store.value.key]]) == null ? void 0 : _a22.setChecked(node.checked, !store.value.checkStrictly);
  54966. });
  54967. }
  54968. }
  54969. removeClass(dropNode.$el, ns.is("drop-inner"));
  54970. ctx.emit("node-drag-end", draggingNode.node, dropNode.node, dropType, event);
  54971. if (dropType !== "none") {
  54972. ctx.emit("node-drop", draggingNode.node, dropNode.node, dropType, event);
  54973. }
  54974. }
  54975. if (draggingNode && !dropNode) {
  54976. ctx.emit("node-drag-end", draggingNode.node, null, dropType, event);
  54977. }
  54978. dragState.value.showDropIndicator = false;
  54979. dragState.value.draggingNode = null;
  54980. dragState.value.dropNode = null;
  54981. dragState.value.allowDrop = true;
  54982. };
  54983. provide(dragEventsKey, {
  54984. treeNodeDragStart,
  54985. treeNodeDragOver,
  54986. treeNodeDragEnd
  54987. });
  54988. return {
  54989. dragState
  54990. };
  54991. }
  54992. // node_modules/element-plus/es/components/tree/src/tree-node.mjs
  54993. var _sfc_main136 = defineComponent({
  54994. name: "ElTreeNode",
  54995. components: {
  54996. ElCollapseTransition,
  54997. ElCheckbox,
  54998. NodeContent: NodeContent2,
  54999. ElIcon,
  55000. Loading: loading_default
  55001. },
  55002. props: {
  55003. node: {
  55004. type: Node3,
  55005. default: () => ({})
  55006. },
  55007. props: {
  55008. type: Object,
  55009. default: () => ({})
  55010. },
  55011. accordion: Boolean,
  55012. renderContent: Function,
  55013. renderAfterExpand: Boolean,
  55014. showCheckbox: Boolean
  55015. },
  55016. emits: ["node-expand"],
  55017. setup(props2, ctx) {
  55018. const ns = useNamespace("tree");
  55019. const { broadcastExpanded } = useNodeExpandEventBroadcast(props2);
  55020. const tree = inject(ROOT_TREE_INJECTION_KEY);
  55021. const expanded = ref(false);
  55022. const childNodeRendered = ref(false);
  55023. const oldChecked = ref();
  55024. const oldIndeterminate = ref();
  55025. const node$ = ref();
  55026. const dragEvents = inject(dragEventsKey);
  55027. const instance = getCurrentInstance();
  55028. provide(NODE_INSTANCE_INJECTION_KEY, instance);
  55029. if (!tree) {
  55030. debugWarn("Tree", "Can not find node's tree.");
  55031. }
  55032. if (props2.node.expanded) {
  55033. expanded.value = true;
  55034. childNodeRendered.value = true;
  55035. }
  55036. const childrenKey = tree.props.props["children"] || "children";
  55037. watch(() => {
  55038. var _a2;
  55039. const children = (_a2 = props2.node.data) == null ? void 0 : _a2[childrenKey];
  55040. return children && [...children];
  55041. }, () => {
  55042. props2.node.updateChildren();
  55043. });
  55044. watch(() => props2.node.indeterminate, (val) => {
  55045. handleSelectChange(props2.node.checked, val);
  55046. });
  55047. watch(() => props2.node.checked, (val) => {
  55048. handleSelectChange(val, props2.node.indeterminate);
  55049. });
  55050. watch(() => props2.node.childNodes.length, () => props2.node.reInitChecked());
  55051. watch(() => props2.node.expanded, (val) => {
  55052. nextTick(() => expanded.value = val);
  55053. if (val) {
  55054. childNodeRendered.value = true;
  55055. }
  55056. });
  55057. const getNodeKey$1 = (node) => {
  55058. return getNodeKey(tree.props.nodeKey, node.data);
  55059. };
  55060. const getNodeClass = (node) => {
  55061. const nodeClassFunc = props2.props.class;
  55062. if (!nodeClassFunc) {
  55063. return {};
  55064. }
  55065. let className;
  55066. if (isFunction(nodeClassFunc)) {
  55067. const { data } = node;
  55068. className = nodeClassFunc(data, node);
  55069. } else {
  55070. className = nodeClassFunc;
  55071. }
  55072. if (isString(className)) {
  55073. return { [className]: true };
  55074. } else {
  55075. return className;
  55076. }
  55077. };
  55078. const handleSelectChange = (checked, indeterminate) => {
  55079. if (oldChecked.value !== checked || oldIndeterminate.value !== indeterminate) {
  55080. tree.ctx.emit("check-change", props2.node.data, checked, indeterminate);
  55081. }
  55082. oldChecked.value = checked;
  55083. oldIndeterminate.value = indeterminate;
  55084. };
  55085. const handleClick = (e) => {
  55086. handleCurrentChange(tree.store, tree.ctx.emit, () => {
  55087. var _a2;
  55088. const nodeKeyProp = (_a2 = tree == null ? void 0 : tree.props) == null ? void 0 : _a2.nodeKey;
  55089. if (nodeKeyProp) {
  55090. const curNodeKey = getNodeKey$1(props2.node);
  55091. tree.store.value.setCurrentNodeKey(curNodeKey);
  55092. } else {
  55093. tree.store.value.setCurrentNode(props2.node);
  55094. }
  55095. });
  55096. tree.currentNode.value = props2.node;
  55097. if (tree.props.expandOnClickNode) {
  55098. handleExpandIconClick();
  55099. }
  55100. if ((tree.props.checkOnClickNode || props2.node.isLeaf && tree.props.checkOnClickLeaf && props2.showCheckbox) && !props2.node.disabled) {
  55101. handleCheckChange(!props2.node.checked);
  55102. }
  55103. tree.ctx.emit("node-click", props2.node.data, props2.node, instance, e);
  55104. };
  55105. const handleContextMenu = (event) => {
  55106. var _a2;
  55107. if ((_a2 = tree.instance.vnode.props) == null ? void 0 : _a2["onNodeContextmenu"]) {
  55108. event.stopPropagation();
  55109. event.preventDefault();
  55110. }
  55111. tree.ctx.emit("node-contextmenu", event, props2.node.data, props2.node, instance);
  55112. };
  55113. const handleExpandIconClick = () => {
  55114. if (props2.node.isLeaf)
  55115. return;
  55116. if (expanded.value) {
  55117. tree.ctx.emit("node-collapse", props2.node.data, props2.node, instance);
  55118. props2.node.collapse();
  55119. } else {
  55120. props2.node.expand(() => {
  55121. ctx.emit("node-expand", props2.node.data, props2.node, instance);
  55122. });
  55123. }
  55124. };
  55125. const handleCheckChange = (value) => {
  55126. props2.node.setChecked(value, !(tree == null ? void 0 : tree.props.checkStrictly));
  55127. nextTick(() => {
  55128. const store = tree.store.value;
  55129. tree.ctx.emit("check", props2.node.data, {
  55130. checkedNodes: store.getCheckedNodes(),
  55131. checkedKeys: store.getCheckedKeys(),
  55132. halfCheckedNodes: store.getHalfCheckedNodes(),
  55133. halfCheckedKeys: store.getHalfCheckedKeys()
  55134. });
  55135. });
  55136. };
  55137. const handleChildNodeExpand = (nodeData, node, instance2) => {
  55138. broadcastExpanded(node);
  55139. tree.ctx.emit("node-expand", nodeData, node, instance2);
  55140. };
  55141. const handleDragStart = (event) => {
  55142. if (!tree.props.draggable)
  55143. return;
  55144. dragEvents.treeNodeDragStart({ event, treeNode: props2 });
  55145. };
  55146. const handleDragOver = (event) => {
  55147. event.preventDefault();
  55148. if (!tree.props.draggable)
  55149. return;
  55150. dragEvents.treeNodeDragOver({
  55151. event,
  55152. treeNode: { $el: node$.value, node: props2.node }
  55153. });
  55154. };
  55155. const handleDrop = (event) => {
  55156. event.preventDefault();
  55157. };
  55158. const handleDragEnd = (event) => {
  55159. if (!tree.props.draggable)
  55160. return;
  55161. dragEvents.treeNodeDragEnd(event);
  55162. };
  55163. return {
  55164. ns,
  55165. node$,
  55166. tree,
  55167. expanded,
  55168. childNodeRendered,
  55169. oldChecked,
  55170. oldIndeterminate,
  55171. getNodeKey: getNodeKey$1,
  55172. getNodeClass,
  55173. handleSelectChange,
  55174. handleClick,
  55175. handleContextMenu,
  55176. handleExpandIconClick,
  55177. handleCheckChange,
  55178. handleChildNodeExpand,
  55179. handleDragStart,
  55180. handleDragOver,
  55181. handleDrop,
  55182. handleDragEnd,
  55183. CaretRight: caret_right_default
  55184. };
  55185. }
  55186. });
  55187. function _sfc_render20(_ctx, _cache, $props, $setup, $data, $options) {
  55188. const _component_el_icon = resolveComponent("el-icon");
  55189. const _component_el_checkbox = resolveComponent("el-checkbox");
  55190. const _component_loading = resolveComponent("loading");
  55191. const _component_node_content = resolveComponent("node-content");
  55192. const _component_el_tree_node = resolveComponent("el-tree-node");
  55193. const _component_el_collapse_transition = resolveComponent("el-collapse-transition");
  55194. return withDirectives((openBlock(), createElementBlock("div", {
  55195. ref: "node$",
  55196. class: normalizeClass([
  55197. _ctx.ns.b("node"),
  55198. _ctx.ns.is("expanded", _ctx.expanded),
  55199. _ctx.ns.is("current", _ctx.node.isCurrent),
  55200. _ctx.ns.is("hidden", !_ctx.node.visible),
  55201. _ctx.ns.is("focusable", !_ctx.node.disabled),
  55202. _ctx.ns.is("checked", !_ctx.node.disabled && _ctx.node.checked),
  55203. _ctx.getNodeClass(_ctx.node)
  55204. ]),
  55205. role: "treeitem",
  55206. tabindex: "-1",
  55207. "aria-expanded": _ctx.expanded,
  55208. "aria-disabled": _ctx.node.disabled,
  55209. "aria-checked": _ctx.node.checked,
  55210. draggable: _ctx.tree.props.draggable,
  55211. "data-key": _ctx.getNodeKey(_ctx.node),
  55212. onClick: withModifiers(_ctx.handleClick, ["stop"]),
  55213. onContextmenu: _ctx.handleContextMenu,
  55214. onDragstart: withModifiers(_ctx.handleDragStart, ["stop"]),
  55215. onDragover: withModifiers(_ctx.handleDragOver, ["stop"]),
  55216. onDragend: withModifiers(_ctx.handleDragEnd, ["stop"]),
  55217. onDrop: withModifiers(_ctx.handleDrop, ["stop"])
  55218. }, [
  55219. createBaseVNode("div", {
  55220. class: normalizeClass(_ctx.ns.be("node", "content")),
  55221. style: normalizeStyle({ paddingLeft: (_ctx.node.level - 1) * _ctx.tree.props.indent + "px" })
  55222. }, [
  55223. _ctx.tree.props.icon || _ctx.CaretRight ? (openBlock(), createBlock(_component_el_icon, {
  55224. key: 0,
  55225. class: normalizeClass([
  55226. _ctx.ns.be("node", "expand-icon"),
  55227. _ctx.ns.is("leaf", _ctx.node.isLeaf),
  55228. {
  55229. expanded: !_ctx.node.isLeaf && _ctx.expanded
  55230. }
  55231. ]),
  55232. onClick: withModifiers(_ctx.handleExpandIconClick, ["stop"])
  55233. }, {
  55234. default: withCtx(() => [
  55235. (openBlock(), createBlock(resolveDynamicComponent(_ctx.tree.props.icon || _ctx.CaretRight)))
  55236. ]),
  55237. _: 1
  55238. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
  55239. _ctx.showCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
  55240. key: 1,
  55241. "model-value": _ctx.node.checked,
  55242. indeterminate: _ctx.node.indeterminate,
  55243. disabled: !!_ctx.node.disabled,
  55244. onClick: withModifiers(() => {
  55245. }, ["stop"]),
  55246. onChange: _ctx.handleCheckChange
  55247. }, null, 8, ["model-value", "indeterminate", "disabled", "onClick", "onChange"])) : createCommentVNode("v-if", true),
  55248. _ctx.node.loading ? (openBlock(), createBlock(_component_el_icon, {
  55249. key: 2,
  55250. class: normalizeClass([_ctx.ns.be("node", "loading-icon"), _ctx.ns.is("loading")])
  55251. }, {
  55252. default: withCtx(() => [
  55253. createVNode(_component_loading)
  55254. ]),
  55255. _: 1
  55256. }, 8, ["class"])) : createCommentVNode("v-if", true),
  55257. createVNode(_component_node_content, {
  55258. node: _ctx.node,
  55259. "render-content": _ctx.renderContent
  55260. }, null, 8, ["node", "render-content"])
  55261. ], 6),
  55262. createVNode(_component_el_collapse_transition, null, {
  55263. default: withCtx(() => [
  55264. !_ctx.renderAfterExpand || _ctx.childNodeRendered ? withDirectives((openBlock(), createElementBlock("div", {
  55265. key: 0,
  55266. class: normalizeClass(_ctx.ns.be("node", "children")),
  55267. role: "group",
  55268. "aria-expanded": _ctx.expanded,
  55269. onClick: withModifiers(() => {
  55270. }, ["stop"])
  55271. }, [
  55272. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.node.childNodes, (child) => {
  55273. return openBlock(), createBlock(_component_el_tree_node, {
  55274. key: _ctx.getNodeKey(child),
  55275. "render-content": _ctx.renderContent,
  55276. "render-after-expand": _ctx.renderAfterExpand,
  55277. "show-checkbox": _ctx.showCheckbox,
  55278. node: child,
  55279. accordion: _ctx.accordion,
  55280. props: _ctx.props,
  55281. onNodeExpand: _ctx.handleChildNodeExpand
  55282. }, null, 8, ["render-content", "render-after-expand", "show-checkbox", "node", "accordion", "props", "onNodeExpand"]);
  55283. }), 128))
  55284. ], 10, ["aria-expanded", "onClick"])), [
  55285. [vShow, _ctx.expanded]
  55286. ]) : createCommentVNode("v-if", true)
  55287. ]),
  55288. _: 1
  55289. })
  55290. ], 42, ["aria-expanded", "aria-disabled", "aria-checked", "draggable", "data-key", "onClick", "onContextmenu", "onDragstart", "onDragover", "onDragend", "onDrop"])), [
  55291. [vShow, _ctx.node.visible]
  55292. ]);
  55293. }
  55294. var ElTreeNode = _export_sfc(_sfc_main136, [["render", _sfc_render20], ["__file", "tree-node.vue"]]);
  55295. // node_modules/element-plus/es/components/tree/src/model/useKeydown.mjs
  55296. function useKeydown({ el$ }, store) {
  55297. const ns = useNamespace("tree");
  55298. onMounted(() => {
  55299. initTabIndex();
  55300. });
  55301. onUpdated(() => {
  55302. const checkboxItems = Array.from(el$.value.querySelectorAll("input[type=checkbox]"));
  55303. checkboxItems.forEach((checkbox) => {
  55304. checkbox.setAttribute("tabindex", "-1");
  55305. });
  55306. });
  55307. function canNodeFocus(treeItems, nextIndex) {
  55308. var _a2, _b;
  55309. const currentNode = store.value.getNode(treeItems[nextIndex].dataset.key);
  55310. return currentNode.canFocus && currentNode.visible && (((_a2 = currentNode.parent) == null ? void 0 : _a2.expanded) || ((_b = currentNode.parent) == null ? void 0 : _b.level) === 0);
  55311. }
  55312. const handleKeydown = (ev) => {
  55313. const currentItem = ev.target;
  55314. if (!currentItem.className.includes(ns.b("node")))
  55315. return;
  55316. const code = getEventCode(ev);
  55317. const treeItems = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
  55318. const currentIndex = treeItems.indexOf(currentItem);
  55319. let nextIndex;
  55320. if ([EVENT_CODE.up, EVENT_CODE.down].includes(code)) {
  55321. ev.preventDefault();
  55322. if (code === EVENT_CODE.up) {
  55323. nextIndex = currentIndex === -1 ? 0 : currentIndex !== 0 ? currentIndex - 1 : treeItems.length - 1;
  55324. const startIndex = nextIndex;
  55325. while (true) {
  55326. if (canNodeFocus(treeItems, nextIndex)) {
  55327. break;
  55328. }
  55329. nextIndex--;
  55330. if (nextIndex === startIndex) {
  55331. nextIndex = -1;
  55332. break;
  55333. }
  55334. if (nextIndex < 0) {
  55335. nextIndex = treeItems.length - 1;
  55336. }
  55337. }
  55338. } else {
  55339. nextIndex = currentIndex === -1 ? 0 : currentIndex < treeItems.length - 1 ? currentIndex + 1 : 0;
  55340. const startIndex = nextIndex;
  55341. while (true) {
  55342. if (canNodeFocus(treeItems, nextIndex)) {
  55343. break;
  55344. }
  55345. nextIndex++;
  55346. if (nextIndex === startIndex) {
  55347. nextIndex = -1;
  55348. break;
  55349. }
  55350. if (nextIndex >= treeItems.length) {
  55351. nextIndex = 0;
  55352. }
  55353. }
  55354. }
  55355. nextIndex !== -1 && treeItems[nextIndex].focus();
  55356. }
  55357. if ([EVENT_CODE.left, EVENT_CODE.right].includes(code)) {
  55358. ev.preventDefault();
  55359. currentItem.click();
  55360. }
  55361. const hasInput = currentItem.querySelector('[type="checkbox"]');
  55362. if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(code) && hasInput) {
  55363. ev.preventDefault();
  55364. hasInput.click();
  55365. }
  55366. };
  55367. useEventListener(el$, "keydown", handleKeydown);
  55368. const initTabIndex = () => {
  55369. var _a2;
  55370. if (!el$.value)
  55371. return;
  55372. const treeItems = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
  55373. const checkboxItems = Array.from(el$.value.querySelectorAll("input[type=checkbox]"));
  55374. checkboxItems.forEach((checkbox) => {
  55375. checkbox.setAttribute("tabindex", "-1");
  55376. });
  55377. const checkedItem = el$.value.querySelectorAll(`.${ns.is("checked")}[role=treeitem]`);
  55378. if (checkedItem.length) {
  55379. checkedItem[0].setAttribute("tabindex", "0");
  55380. return;
  55381. }
  55382. (_a2 = treeItems[0]) == null ? void 0 : _a2.setAttribute("tabindex", "0");
  55383. };
  55384. }
  55385. // node_modules/element-plus/es/components/tree/src/tree.mjs
  55386. var treeEmits = {
  55387. "check-change": (data, checked, indeterminate) => data && isBoolean2(checked) && isBoolean2(indeterminate),
  55388. "current-change": (data, node) => true,
  55389. "node-click": (data, node, nodeInstance, evt) => data && node && evt instanceof Event,
  55390. "node-contextmenu": (evt, data, node, nodeInstance) => evt instanceof Event && data && node,
  55391. "node-collapse": (data, node, nodeInstance) => data && node,
  55392. "node-expand": (data, node, nodeInstance) => data && node,
  55393. check: (data, checkedInfo) => data && checkedInfo,
  55394. "node-drag-start": (node, evt) => node && evt,
  55395. "node-drag-end": (draggingNode, dropNode, dropType, evt) => draggingNode && evt,
  55396. "node-drop": (draggingNode, dropNode, dropType, evt) => draggingNode && dropNode && evt,
  55397. "node-drag-leave": (draggingNode, oldDropNode, evt) => draggingNode && oldDropNode && evt,
  55398. "node-drag-enter": (draggingNode, dropNode, evt) => draggingNode && dropNode && evt,
  55399. "node-drag-over": (draggingNode, dropNode, evt) => draggingNode && dropNode && evt
  55400. };
  55401. // node_modules/element-plus/es/components/tree/src/tree2.mjs
  55402. var _sfc_main137 = defineComponent({
  55403. name: "ElTree",
  55404. components: { ElTreeNode },
  55405. props: {
  55406. data: {
  55407. type: definePropType(Array),
  55408. default: () => []
  55409. },
  55410. emptyText: {
  55411. type: String
  55412. },
  55413. renderAfterExpand: {
  55414. type: Boolean,
  55415. default: true
  55416. },
  55417. nodeKey: String,
  55418. checkStrictly: Boolean,
  55419. defaultExpandAll: Boolean,
  55420. expandOnClickNode: {
  55421. type: Boolean,
  55422. default: true
  55423. },
  55424. checkOnClickNode: Boolean,
  55425. checkOnClickLeaf: {
  55426. type: Boolean,
  55427. default: true
  55428. },
  55429. checkDescendants: Boolean,
  55430. autoExpandParent: {
  55431. type: Boolean,
  55432. default: true
  55433. },
  55434. defaultCheckedKeys: Array,
  55435. defaultExpandedKeys: Array,
  55436. currentNodeKey: [String, Number],
  55437. renderContent: {
  55438. type: definePropType(Function)
  55439. },
  55440. showCheckbox: Boolean,
  55441. draggable: Boolean,
  55442. allowDrag: {
  55443. type: definePropType(Function)
  55444. },
  55445. allowDrop: {
  55446. type: definePropType(Function)
  55447. },
  55448. props: {
  55449. type: Object,
  55450. default: () => ({
  55451. children: "children",
  55452. label: "label",
  55453. disabled: "disabled"
  55454. })
  55455. },
  55456. lazy: Boolean,
  55457. highlightCurrent: Boolean,
  55458. load: Function,
  55459. filterNodeMethod: Function,
  55460. accordion: Boolean,
  55461. indent: {
  55462. type: Number,
  55463. default: 18
  55464. },
  55465. icon: {
  55466. type: iconPropType
  55467. }
  55468. },
  55469. emits: treeEmits,
  55470. setup(props2, ctx) {
  55471. const { t } = useLocale();
  55472. const ns = useNamespace("tree");
  55473. const store = ref(new TreeStore({
  55474. key: props2.nodeKey,
  55475. data: props2.data,
  55476. lazy: props2.lazy,
  55477. props: props2.props,
  55478. load: props2.load,
  55479. currentNodeKey: props2.currentNodeKey,
  55480. checkStrictly: props2.checkStrictly,
  55481. checkDescendants: props2.checkDescendants,
  55482. defaultCheckedKeys: props2.defaultCheckedKeys,
  55483. defaultExpandedKeys: props2.defaultExpandedKeys,
  55484. autoExpandParent: props2.autoExpandParent,
  55485. defaultExpandAll: props2.defaultExpandAll,
  55486. filterNodeMethod: props2.filterNodeMethod
  55487. }));
  55488. store.value.initialize();
  55489. const root2 = ref(store.value.root);
  55490. const currentNode = ref(null);
  55491. const el$ = ref(null);
  55492. const dropIndicator$ = ref(null);
  55493. const { broadcastExpanded } = useNodeExpandEventBroadcast(props2);
  55494. const { dragState } = useDragNodeHandler({
  55495. props: props2,
  55496. ctx,
  55497. el$,
  55498. dropIndicator$,
  55499. store
  55500. });
  55501. useKeydown({ el$ }, store);
  55502. const instance = getCurrentInstance();
  55503. const isSelectTree = computed(() => {
  55504. let parent2 = instance == null ? void 0 : instance.parent;
  55505. while (parent2) {
  55506. if (parent2.type.name === "ElTreeSelect") {
  55507. return true;
  55508. }
  55509. parent2 = parent2.parent;
  55510. }
  55511. return false;
  55512. });
  55513. const isEmpty3 = computed(() => {
  55514. const { childNodes } = root2.value;
  55515. return (!childNodes || childNodes.length === 0 || childNodes.every(({ visible }) => !visible)) && !isSelectTree.value;
  55516. });
  55517. watch(() => props2.currentNodeKey, (newVal) => {
  55518. store.value.setCurrentNodeKey(newVal != null ? newVal : null);
  55519. });
  55520. watch(() => props2.defaultCheckedKeys, (newVal, oldVal) => {
  55521. if (isEqual_default(newVal, oldVal))
  55522. return;
  55523. store.value.setDefaultCheckedKey(newVal != null ? newVal : []);
  55524. });
  55525. watch(() => props2.defaultExpandedKeys, (newVal) => {
  55526. store.value.setDefaultExpandedKeys(newVal != null ? newVal : []);
  55527. });
  55528. watch(() => props2.data, (newVal) => {
  55529. store.value.setData(newVal);
  55530. }, { deep: true });
  55531. watch(() => props2.checkStrictly, (newVal) => {
  55532. store.value.checkStrictly = newVal;
  55533. });
  55534. const filter2 = (value) => {
  55535. if (!props2.filterNodeMethod)
  55536. throw new Error("[Tree] filterNodeMethod is required when filter");
  55537. store.value.filter(value);
  55538. };
  55539. const getNodeKey$1 = (node) => {
  55540. return getNodeKey(props2.nodeKey, node.data);
  55541. };
  55542. const getNodePath = (data) => {
  55543. if (!props2.nodeKey)
  55544. throw new Error("[Tree] nodeKey is required in getNodePath");
  55545. const node = store.value.getNode(data);
  55546. if (!node)
  55547. return [];
  55548. const path = [node.data];
  55549. let parent2 = node.parent;
  55550. while (parent2 && parent2 !== root2.value) {
  55551. path.push(parent2.data);
  55552. parent2 = parent2.parent;
  55553. }
  55554. return path.reverse();
  55555. };
  55556. const getCheckedNodes = (leafOnly, includeHalfChecked) => {
  55557. return store.value.getCheckedNodes(leafOnly, includeHalfChecked);
  55558. };
  55559. const getCheckedKeys = (leafOnly) => {
  55560. return store.value.getCheckedKeys(leafOnly);
  55561. };
  55562. const getCurrentNode = () => {
  55563. const currentNode2 = store.value.getCurrentNode();
  55564. return currentNode2 ? currentNode2.data : null;
  55565. };
  55566. const getCurrentKey = () => {
  55567. if (!props2.nodeKey)
  55568. throw new Error("[Tree] nodeKey is required in getCurrentKey");
  55569. const currentNode2 = getCurrentNode();
  55570. return currentNode2 ? currentNode2[props2.nodeKey] : null;
  55571. };
  55572. const setCheckedNodes = (nodes, leafOnly) => {
  55573. if (!props2.nodeKey)
  55574. throw new Error("[Tree] nodeKey is required in setCheckedNodes");
  55575. store.value.setCheckedNodes(nodes, leafOnly);
  55576. };
  55577. const setCheckedKeys = (keys3, leafOnly) => {
  55578. if (!props2.nodeKey)
  55579. throw new Error("[Tree] nodeKey is required in setCheckedKeys");
  55580. store.value.setCheckedKeys(keys3, leafOnly);
  55581. };
  55582. const setChecked = (data, checked, deep) => {
  55583. store.value.setChecked(data, checked, deep);
  55584. };
  55585. const getHalfCheckedNodes = () => {
  55586. return store.value.getHalfCheckedNodes();
  55587. };
  55588. const getHalfCheckedKeys = () => {
  55589. return store.value.getHalfCheckedKeys();
  55590. };
  55591. const setCurrentNode = (node, shouldAutoExpandParent = true) => {
  55592. if (!props2.nodeKey)
  55593. throw new Error("[Tree] nodeKey is required in setCurrentNode");
  55594. handleCurrentChange(store, ctx.emit, () => {
  55595. broadcastExpanded(node);
  55596. store.value.setUserCurrentNode(node, shouldAutoExpandParent);
  55597. });
  55598. };
  55599. const setCurrentKey = (key = null, shouldAutoExpandParent = true) => {
  55600. if (!props2.nodeKey)
  55601. throw new Error("[Tree] nodeKey is required in setCurrentKey");
  55602. handleCurrentChange(store, ctx.emit, () => {
  55603. broadcastExpanded();
  55604. store.value.setCurrentNodeKey(key, shouldAutoExpandParent);
  55605. });
  55606. };
  55607. const getNode = (data) => {
  55608. return store.value.getNode(data);
  55609. };
  55610. const remove2 = (data) => {
  55611. store.value.remove(data);
  55612. };
  55613. const append = (data, parentNode) => {
  55614. store.value.append(data, parentNode);
  55615. };
  55616. const insertBefore = (data, refNode) => {
  55617. store.value.insertBefore(data, refNode);
  55618. };
  55619. const insertAfter = (data, refNode) => {
  55620. store.value.insertAfter(data, refNode);
  55621. };
  55622. const handleNodeExpand = (nodeData, node, instance2) => {
  55623. broadcastExpanded(node);
  55624. ctx.emit("node-expand", nodeData, node, instance2);
  55625. };
  55626. const updateKeyChildren = (key, data) => {
  55627. if (!props2.nodeKey)
  55628. throw new Error("[Tree] nodeKey is required in updateKeyChild");
  55629. store.value.updateChildren(key, data);
  55630. };
  55631. provide(ROOT_TREE_INJECTION_KEY, {
  55632. ctx,
  55633. props: props2,
  55634. store,
  55635. root: root2,
  55636. currentNode,
  55637. instance
  55638. });
  55639. provide(formItemContextKey, void 0);
  55640. return {
  55641. ns,
  55642. store,
  55643. root: root2,
  55644. currentNode,
  55645. dragState,
  55646. el$,
  55647. dropIndicator$,
  55648. isEmpty: isEmpty3,
  55649. filter: filter2,
  55650. getNodeKey: getNodeKey$1,
  55651. getNodePath,
  55652. getCheckedNodes,
  55653. getCheckedKeys,
  55654. getCurrentNode,
  55655. getCurrentKey,
  55656. setCheckedNodes,
  55657. setCheckedKeys,
  55658. setChecked,
  55659. getHalfCheckedNodes,
  55660. getHalfCheckedKeys,
  55661. setCurrentNode,
  55662. setCurrentKey,
  55663. t,
  55664. getNode,
  55665. remove: remove2,
  55666. append,
  55667. insertBefore,
  55668. insertAfter,
  55669. handleNodeExpand,
  55670. updateKeyChildren
  55671. };
  55672. }
  55673. });
  55674. function _sfc_render21(_ctx, _cache, $props, $setup, $data, $options) {
  55675. const _component_el_tree_node = resolveComponent("el-tree-node");
  55676. return openBlock(), createElementBlock("div", {
  55677. ref: "el$",
  55678. class: normalizeClass([
  55679. _ctx.ns.b(),
  55680. _ctx.ns.is("dragging", !!_ctx.dragState.draggingNode),
  55681. _ctx.ns.is("drop-not-allow", !_ctx.dragState.allowDrop),
  55682. _ctx.ns.is("drop-inner", _ctx.dragState.dropType === "inner"),
  55683. { [_ctx.ns.m("highlight-current")]: _ctx.highlightCurrent }
  55684. ]),
  55685. role: "tree"
  55686. }, [
  55687. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.root.childNodes, (child) => {
  55688. return openBlock(), createBlock(_component_el_tree_node, {
  55689. key: _ctx.getNodeKey(child),
  55690. node: child,
  55691. props: _ctx.props,
  55692. accordion: _ctx.accordion,
  55693. "render-after-expand": _ctx.renderAfterExpand,
  55694. "show-checkbox": _ctx.showCheckbox,
  55695. "render-content": _ctx.renderContent,
  55696. onNodeExpand: _ctx.handleNodeExpand
  55697. }, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
  55698. }), 128)),
  55699. _ctx.isEmpty ? (openBlock(), createElementBlock("div", {
  55700. key: 0,
  55701. class: normalizeClass(_ctx.ns.e("empty-block"))
  55702. }, [
  55703. renderSlot(_ctx.$slots, "empty", {}, () => {
  55704. var _a2;
  55705. return [
  55706. createBaseVNode("span", {
  55707. class: normalizeClass(_ctx.ns.e("empty-text"))
  55708. }, toDisplayString((_a2 = _ctx.emptyText) != null ? _a2 : _ctx.t("el.tree.emptyText")), 3)
  55709. ];
  55710. })
  55711. ], 2)) : createCommentVNode("v-if", true),
  55712. withDirectives(createBaseVNode("div", {
  55713. ref: "dropIndicator$",
  55714. class: normalizeClass(_ctx.ns.e("drop-indicator"))
  55715. }, null, 2), [
  55716. [vShow, _ctx.dragState.showDropIndicator]
  55717. ])
  55718. ], 2);
  55719. }
  55720. var Tree = _export_sfc(_sfc_main137, [["render", _sfc_render21], ["__file", "tree.vue"]]);
  55721. // node_modules/element-plus/es/components/tree/index.mjs
  55722. var ElTree = withInstall(Tree);
  55723. // node_modules/element-plus/es/components/tree-select/src/select.mjs
  55724. var useSelect3 = (props2, { attrs, emit }, {
  55725. select,
  55726. tree,
  55727. key
  55728. }) => {
  55729. const ns = useNamespace("tree-select");
  55730. watch(() => props2.data, () => {
  55731. if (props2.filterable) {
  55732. nextTick(() => {
  55733. var _a2, _b;
  55734. (_b = tree.value) == null ? void 0 : _b.filter((_a2 = select.value) == null ? void 0 : _a2.states.inputValue);
  55735. });
  55736. }
  55737. }, { flush: "post" });
  55738. const result2 = {
  55739. ...pick_default(toRefs(props2), Object.keys(ElSelect.props)),
  55740. ...attrs,
  55741. class: computed(() => attrs.class),
  55742. style: computed(() => attrs.style),
  55743. "onUpdate:modelValue": (value) => emit(UPDATE_MODEL_EVENT, value),
  55744. valueKey: key,
  55745. popperClass: computed(() => {
  55746. const classes = [ns.e("popper")];
  55747. if (props2.popperClass)
  55748. classes.push(props2.popperClass);
  55749. return classes.join(" ");
  55750. }),
  55751. filterMethod: (keyword = "") => {
  55752. var _a2;
  55753. if (props2.filterMethod) {
  55754. props2.filterMethod(keyword);
  55755. } else if (props2.remoteMethod) {
  55756. props2.remoteMethod(keyword);
  55757. } else {
  55758. (_a2 = tree.value) == null ? void 0 : _a2.filter(keyword);
  55759. }
  55760. }
  55761. };
  55762. return result2;
  55763. };
  55764. // node_modules/element-plus/es/components/tree-select/src/tree-select-option.mjs
  55765. var component = defineComponent({
  55766. extends: ElOption,
  55767. setup(props2, ctx) {
  55768. const result2 = ElOption.setup(props2, ctx);
  55769. delete result2.selectOptionClick;
  55770. const vm = getCurrentInstance().proxy;
  55771. nextTick(() => {
  55772. if (!result2.select.states.cachedOptions.get(vm.value)) {
  55773. result2.select.onOptionCreate(vm);
  55774. }
  55775. });
  55776. watch(() => ctx.attrs.visible, (val) => {
  55777. nextTick(() => {
  55778. result2.states.visible = val;
  55779. });
  55780. }, {
  55781. immediate: true
  55782. });
  55783. return result2;
  55784. },
  55785. methods: {
  55786. selectOptionClick() {
  55787. this.$el.parentElement.click();
  55788. }
  55789. }
  55790. });
  55791. // node_modules/element-plus/es/components/tree-select/src/utils.mjs
  55792. function isValidValue2(val) {
  55793. return val || val === 0;
  55794. }
  55795. function isValidArray(val) {
  55796. return isArray(val) && val.length;
  55797. }
  55798. function toValidArray(val) {
  55799. return isArray(val) ? val : isValidValue2(val) ? [val] : [];
  55800. }
  55801. function treeFind(treeData, findCallback, getChildren, resultCallback, parent2) {
  55802. for (let i = 0; i < treeData.length; i++) {
  55803. const data = treeData[i];
  55804. if (findCallback(data, i, treeData, parent2)) {
  55805. return resultCallback ? resultCallback(data, i, treeData, parent2) : data;
  55806. } else {
  55807. const children = getChildren(data);
  55808. if (isValidArray(children)) {
  55809. const find2 = treeFind(children, findCallback, getChildren, resultCallback, data);
  55810. if (find2)
  55811. return find2;
  55812. }
  55813. }
  55814. }
  55815. }
  55816. function treeEach(treeData, callback, getChildren, parent2) {
  55817. for (let i = 0; i < treeData.length; i++) {
  55818. const data = treeData[i];
  55819. callback(data, i, treeData, parent2);
  55820. const children = getChildren(data);
  55821. if (isValidArray(children)) {
  55822. treeEach(children, callback, getChildren, data);
  55823. }
  55824. }
  55825. }
  55826. // node_modules/element-plus/es/components/tree-select/src/tree.mjs
  55827. var useTree2 = (props2, { attrs, slots, emit }, {
  55828. select,
  55829. tree,
  55830. key
  55831. }) => {
  55832. watch([() => props2.modelValue, tree], () => {
  55833. if (props2.showCheckbox) {
  55834. nextTick(() => {
  55835. const treeInstance = tree.value;
  55836. if (treeInstance && !isEqual_default(treeInstance.getCheckedKeys(), toValidArray(props2.modelValue))) {
  55837. treeInstance.setCheckedKeys(toValidArray(props2.modelValue));
  55838. }
  55839. });
  55840. }
  55841. }, {
  55842. immediate: true,
  55843. deep: true
  55844. });
  55845. const propsMap = computed(() => ({
  55846. value: key.value,
  55847. label: "label",
  55848. children: "children",
  55849. disabled: "disabled",
  55850. isLeaf: "isLeaf",
  55851. ...props2.props
  55852. }));
  55853. const getNodeValByProp = (prop, data) => {
  55854. var _a2;
  55855. const propVal = propsMap.value[prop];
  55856. if (isFunction(propVal)) {
  55857. return propVal(data, (_a2 = tree.value) == null ? void 0 : _a2.getNode(getNodeValByProp("value", data)));
  55858. } else {
  55859. return data[propVal];
  55860. }
  55861. };
  55862. const defaultExpandedParentKeys = toValidArray(props2.modelValue).map((value) => {
  55863. return treeFind(props2.data || [], (data) => getNodeValByProp("value", data) === value, (data) => getNodeValByProp("children", data), (data, index, array4, parent2) => parent2 && getNodeValByProp("value", parent2));
  55864. }).filter((item) => isValidValue2(item));
  55865. const cacheOptions = computed(() => {
  55866. if (!props2.renderAfterExpand && !props2.lazy)
  55867. return [];
  55868. const options = [];
  55869. treeEach(props2.data.concat(props2.cacheData), (node) => {
  55870. const value = getNodeValByProp("value", node);
  55871. options.push({
  55872. value,
  55873. currentLabel: getNodeValByProp("label", node),
  55874. isDisabled: getNodeValByProp("disabled", node)
  55875. });
  55876. }, (data) => getNodeValByProp("children", data));
  55877. return options;
  55878. });
  55879. const getChildCheckedKeys = () => {
  55880. var _a2;
  55881. return (_a2 = tree.value) == null ? void 0 : _a2.getCheckedKeys().filter((checkedKey) => {
  55882. var _a22;
  55883. const node = (_a22 = tree.value) == null ? void 0 : _a22.getNode(checkedKey);
  55884. return !isNil_default(node) && isEmpty2(node.childNodes);
  55885. });
  55886. };
  55887. return {
  55888. ...pick_default(toRefs(props2), Object.keys(ElTree.props)),
  55889. ...attrs,
  55890. nodeKey: key,
  55891. expandOnClickNode: computed(() => {
  55892. return !props2.checkStrictly && props2.expandOnClickNode;
  55893. }),
  55894. defaultExpandedKeys: computed(() => {
  55895. return props2.defaultExpandedKeys ? props2.defaultExpandedKeys.concat(defaultExpandedParentKeys) : defaultExpandedParentKeys;
  55896. }),
  55897. renderContent: (h3, { node, data, store }) => {
  55898. return h3(component, {
  55899. value: getNodeValByProp("value", data),
  55900. label: getNodeValByProp("label", data),
  55901. disabled: getNodeValByProp("disabled", data),
  55902. visible: node.visible
  55903. }, props2.renderContent ? () => props2.renderContent(h3, { node, data, store }) : slots.default ? () => slots.default({ node, data, store }) : void 0);
  55904. },
  55905. filterNodeMethod: (value, data, node) => {
  55906. if (props2.filterNodeMethod)
  55907. return props2.filterNodeMethod(value, data, node);
  55908. if (!value)
  55909. return true;
  55910. const regexp4 = new RegExp(escapeStringRegexp(value), "i");
  55911. return regexp4.test(getNodeValByProp("label", data) || "");
  55912. },
  55913. onNodeClick: (data, node, e) => {
  55914. var _a2, _b, _c, _d;
  55915. (_a2 = attrs.onNodeClick) == null ? void 0 : _a2.call(attrs, data, node, e);
  55916. if (props2.showCheckbox && props2.checkOnClickNode)
  55917. return;
  55918. if (!props2.showCheckbox && (props2.checkStrictly || node.isLeaf)) {
  55919. if (!getNodeValByProp("disabled", data)) {
  55920. const option = (_b = select.value) == null ? void 0 : _b.states.options.get(getNodeValByProp("value", data));
  55921. (_c = select.value) == null ? void 0 : _c.handleOptionSelect(option);
  55922. }
  55923. } else if (props2.expandOnClickNode) {
  55924. e.proxy.handleExpandIconClick();
  55925. }
  55926. (_d = select.value) == null ? void 0 : _d.focus();
  55927. },
  55928. onCheck: (data, params) => {
  55929. var _a2;
  55930. if (!props2.showCheckbox)
  55931. return;
  55932. const dataValue = getNodeValByProp("value", data);
  55933. const dataMap = {};
  55934. treeEach([tree.value.store.root], (node) => dataMap[node.key] = node, (node) => node.childNodes);
  55935. const uncachedCheckedKeys = params.checkedKeys;
  55936. const cachedKeys = props2.multiple ? toValidArray(props2.modelValue).filter((item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item)) : [];
  55937. const checkedKeys = cachedKeys.concat(uncachedCheckedKeys);
  55938. if (props2.checkStrictly) {
  55939. emit(UPDATE_MODEL_EVENT, props2.multiple ? checkedKeys : checkedKeys.includes(dataValue) ? dataValue : void 0);
  55940. } else {
  55941. if (props2.multiple) {
  55942. const childKeys = getChildCheckedKeys();
  55943. emit(UPDATE_MODEL_EVENT, cachedKeys.concat(childKeys));
  55944. } else {
  55945. const firstLeaf = treeFind([data], (data2) => !isValidArray(getNodeValByProp("children", data2)) && !getNodeValByProp("disabled", data2), (data2) => getNodeValByProp("children", data2));
  55946. const firstLeafKey = firstLeaf ? getNodeValByProp("value", firstLeaf) : void 0;
  55947. const hasCheckedChild = isValidValue2(props2.modelValue) && !!treeFind([data], (data2) => getNodeValByProp("value", data2) === props2.modelValue, (data2) => getNodeValByProp("children", data2));
  55948. emit(UPDATE_MODEL_EVENT, firstLeafKey === props2.modelValue || hasCheckedChild ? void 0 : firstLeafKey);
  55949. }
  55950. }
  55951. nextTick(() => {
  55952. var _a22;
  55953. const checkedKeys2 = toValidArray(props2.modelValue);
  55954. tree.value.setCheckedKeys(checkedKeys2);
  55955. (_a22 = attrs.onCheck) == null ? void 0 : _a22.call(attrs, data, {
  55956. checkedKeys: tree.value.getCheckedKeys(),
  55957. checkedNodes: tree.value.getCheckedNodes(),
  55958. halfCheckedKeys: tree.value.getHalfCheckedKeys(),
  55959. halfCheckedNodes: tree.value.getHalfCheckedNodes()
  55960. });
  55961. });
  55962. (_a2 = select.value) == null ? void 0 : _a2.focus();
  55963. },
  55964. onNodeExpand: (data, node, e) => {
  55965. var _a2;
  55966. (_a2 = attrs.onNodeExpand) == null ? void 0 : _a2.call(attrs, data, node, e);
  55967. nextTick(() => {
  55968. if (!props2.checkStrictly && props2.lazy && props2.multiple && node.checked) {
  55969. const dataMap = {};
  55970. const uncachedCheckedKeys = tree.value.getCheckedKeys();
  55971. treeEach([tree.value.store.root], (node2) => dataMap[node2.key] = node2, (node2) => node2.childNodes);
  55972. const cachedKeys = toValidArray(props2.modelValue).filter((item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item));
  55973. const childKeys = getChildCheckedKeys();
  55974. emit(UPDATE_MODEL_EVENT, cachedKeys.concat(childKeys));
  55975. }
  55976. });
  55977. },
  55978. cacheOptions
  55979. };
  55980. };
  55981. // node_modules/element-plus/es/components/tree-select/src/cache-options.mjs
  55982. var CacheOptions = defineComponent({
  55983. props: {
  55984. data: {
  55985. type: Array,
  55986. default: () => []
  55987. }
  55988. },
  55989. setup(props2) {
  55990. const select = inject(selectKey);
  55991. watch(() => props2.data, () => {
  55992. var _a2;
  55993. props2.data.forEach((item) => {
  55994. if (!select.states.cachedOptions.has(item.value)) {
  55995. select.states.cachedOptions.set(item.value, item);
  55996. }
  55997. });
  55998. const inputs = ((_a2 = select.selectRef) == null ? void 0 : _a2.querySelectorAll("input")) || [];
  55999. if (isClient && !Array.from(inputs).includes(document.activeElement)) {
  56000. select.setSelected();
  56001. }
  56002. }, { flush: "post", immediate: true });
  56003. return () => void 0;
  56004. }
  56005. });
  56006. // node_modules/element-plus/es/components/tree-select/src/tree-select.mjs
  56007. var _sfc_main138 = defineComponent({
  56008. name: "ElTreeSelect",
  56009. inheritAttrs: false,
  56010. props: {
  56011. ...ElSelect.props,
  56012. ...ElTree.props,
  56013. cacheData: {
  56014. type: Array,
  56015. default: () => []
  56016. }
  56017. },
  56018. setup(props2, context) {
  56019. const { slots, expose } = context;
  56020. const select = ref();
  56021. const tree = ref();
  56022. const key = computed(() => props2.nodeKey || props2.valueKey || "value");
  56023. const selectProps2 = useSelect3(props2, context, { select, tree, key });
  56024. const { cacheOptions, ...treeProps2 } = useTree2(props2, context, {
  56025. select,
  56026. tree,
  56027. key
  56028. });
  56029. const methods = reactive({});
  56030. expose(methods);
  56031. onMounted(() => {
  56032. Object.assign(methods, {
  56033. ...pick_default(tree.value, [
  56034. "filter",
  56035. "updateKeyChildren",
  56036. "getCheckedNodes",
  56037. "setCheckedNodes",
  56038. "getCheckedKeys",
  56039. "setCheckedKeys",
  56040. "setChecked",
  56041. "getHalfCheckedNodes",
  56042. "getHalfCheckedKeys",
  56043. "getCurrentKey",
  56044. "getCurrentNode",
  56045. "setCurrentKey",
  56046. "setCurrentNode",
  56047. "getNode",
  56048. "remove",
  56049. "append",
  56050. "insertBefore",
  56051. "insertAfter"
  56052. ]),
  56053. ...pick_default(select.value, ["focus", "blur", "selectedLabel"]),
  56054. treeRef: tree.value,
  56055. selectRef: select.value
  56056. });
  56057. });
  56058. return () => h(ElSelect, reactive({
  56059. ...selectProps2,
  56060. ref: (ref2) => select.value = ref2
  56061. }), {
  56062. ...slots,
  56063. default: () => [
  56064. h(CacheOptions, { data: cacheOptions.value }),
  56065. h(ElTree, reactive({
  56066. ...treeProps2,
  56067. ref: (ref2) => tree.value = ref2
  56068. }))
  56069. ]
  56070. });
  56071. }
  56072. });
  56073. var TreeSelect = _export_sfc(_sfc_main138, [["__file", "tree-select.vue"]]);
  56074. // node_modules/element-plus/es/components/tree-select/index.mjs
  56075. var ElTreeSelect = withInstall(TreeSelect);
  56076. // node_modules/element-plus/es/components/tree-v2/src/virtual-tree.mjs
  56077. var ROOT_TREE_INJECTION_KEY2 = Symbol();
  56078. var EMPTY_NODE = {
  56079. key: -1,
  56080. level: -1,
  56081. data: {}
  56082. };
  56083. var TreeOptionsEnum = ((TreeOptionsEnum2) => {
  56084. TreeOptionsEnum2["KEY"] = "id";
  56085. TreeOptionsEnum2["LABEL"] = "label";
  56086. TreeOptionsEnum2["CHILDREN"] = "children";
  56087. TreeOptionsEnum2["DISABLED"] = "disabled";
  56088. TreeOptionsEnum2["CLASS"] = "";
  56089. return TreeOptionsEnum2;
  56090. })(TreeOptionsEnum || {});
  56091. var SetOperationEnum = ((SetOperationEnum2) => {
  56092. SetOperationEnum2["ADD"] = "add";
  56093. SetOperationEnum2["DELETE"] = "delete";
  56094. return SetOperationEnum2;
  56095. })(SetOperationEnum || {});
  56096. var itemSize2 = {
  56097. type: Number,
  56098. default: 26
  56099. };
  56100. var treeProps = buildProps({
  56101. data: {
  56102. type: definePropType(Array),
  56103. default: () => mutable([])
  56104. },
  56105. emptyText: {
  56106. type: String
  56107. },
  56108. height: {
  56109. type: Number,
  56110. default: 200
  56111. },
  56112. props: {
  56113. type: definePropType(Object),
  56114. default: () => mutable({
  56115. children: "children",
  56116. label: "label",
  56117. disabled: "disabled",
  56118. value: "id",
  56119. class: ""
  56120. /* CLASS */
  56121. })
  56122. },
  56123. highlightCurrent: Boolean,
  56124. showCheckbox: Boolean,
  56125. defaultCheckedKeys: {
  56126. type: definePropType(Array),
  56127. default: () => mutable([])
  56128. },
  56129. checkStrictly: Boolean,
  56130. defaultExpandedKeys: {
  56131. type: definePropType(Array),
  56132. default: () => mutable([])
  56133. },
  56134. indent: {
  56135. type: Number,
  56136. default: 16
  56137. },
  56138. itemSize: itemSize2,
  56139. icon: {
  56140. type: iconPropType
  56141. },
  56142. expandOnClickNode: {
  56143. type: Boolean,
  56144. default: true
  56145. },
  56146. checkOnClickNode: Boolean,
  56147. checkOnClickLeaf: {
  56148. type: Boolean,
  56149. default: true
  56150. },
  56151. currentNodeKey: {
  56152. type: definePropType([String, Number])
  56153. },
  56154. accordion: Boolean,
  56155. filterMethod: {
  56156. type: definePropType(Function)
  56157. },
  56158. perfMode: {
  56159. type: Boolean,
  56160. default: true
  56161. },
  56162. scrollbarAlwaysOn: Boolean
  56163. });
  56164. var treeNodeProps = buildProps({
  56165. node: {
  56166. type: definePropType(Object),
  56167. default: () => mutable(EMPTY_NODE)
  56168. },
  56169. expanded: Boolean,
  56170. checked: Boolean,
  56171. indeterminate: Boolean,
  56172. showCheckbox: Boolean,
  56173. disabled: Boolean,
  56174. current: Boolean,
  56175. hiddenExpandIcon: Boolean,
  56176. itemSize: itemSize2
  56177. });
  56178. var treeNodeContentProps = buildProps({
  56179. node: {
  56180. type: definePropType(Object),
  56181. required: true
  56182. }
  56183. });
  56184. var NODE_CLICK = "node-click";
  56185. var NODE_DROP = "node-drop";
  56186. var NODE_EXPAND = "node-expand";
  56187. var NODE_COLLAPSE = "node-collapse";
  56188. var CURRENT_CHANGE = "current-change";
  56189. var NODE_CHECK = "check";
  56190. var NODE_CHECK_CHANGE = "check-change";
  56191. var NODE_CONTEXTMENU = "node-contextmenu";
  56192. var treeEmits2 = {
  56193. [NODE_CLICK]: (data, node, e) => data && node && e,
  56194. [NODE_DROP]: (data, node, e) => data && node && e,
  56195. [NODE_EXPAND]: (data, node) => data && node,
  56196. [NODE_COLLAPSE]: (data, node) => data && node,
  56197. [CURRENT_CHANGE]: (data, node) => data && node,
  56198. [NODE_CHECK]: (data, checkedInfo) => data && checkedInfo,
  56199. [NODE_CHECK_CHANGE]: (data, checked) => data && isBoolean2(checked),
  56200. [NODE_CONTEXTMENU]: (evt, data, node) => evt && data && node
  56201. };
  56202. var treeNodeEmits = {
  56203. click: (node, e) => !!(node && e),
  56204. drop: (node, e) => !!(node && e),
  56205. toggle: (node) => !!node,
  56206. check: (node, checked) => node && isBoolean2(checked)
  56207. };
  56208. // node_modules/element-plus/es/components/tree-v2/src/composables/useCheck.mjs
  56209. function useCheck2(props2, tree) {
  56210. const checkedKeys = ref(/* @__PURE__ */ new Set());
  56211. const indeterminateKeys = ref(/* @__PURE__ */ new Set());
  56212. const { emit } = getCurrentInstance();
  56213. watch([() => tree.value, () => props2.defaultCheckedKeys], () => {
  56214. return nextTick(() => {
  56215. _setCheckedKeys(props2.defaultCheckedKeys);
  56216. });
  56217. }, {
  56218. immediate: true
  56219. });
  56220. const updateCheckedKeys = () => {
  56221. if (!tree.value || !props2.showCheckbox || props2.checkStrictly) {
  56222. return;
  56223. }
  56224. const { levelTreeNodeMap, maxLevel } = tree.value;
  56225. const checkedKeySet = checkedKeys.value;
  56226. const indeterminateKeySet = /* @__PURE__ */ new Set();
  56227. for (let level = maxLevel - 1; level >= 1; --level) {
  56228. const nodes = levelTreeNodeMap.get(level);
  56229. if (!nodes)
  56230. continue;
  56231. nodes.forEach((node) => {
  56232. const children = node.children;
  56233. if (children) {
  56234. let allChecked = true;
  56235. let hasChecked = false;
  56236. for (const childNode of children) {
  56237. const key = childNode.key;
  56238. if (checkedKeySet.has(key)) {
  56239. hasChecked = true;
  56240. } else if (indeterminateKeySet.has(key)) {
  56241. allChecked = false;
  56242. hasChecked = true;
  56243. break;
  56244. } else {
  56245. allChecked = false;
  56246. }
  56247. }
  56248. if (allChecked) {
  56249. checkedKeySet.add(node.key);
  56250. } else if (hasChecked) {
  56251. indeterminateKeySet.add(node.key);
  56252. checkedKeySet.delete(node.key);
  56253. } else {
  56254. checkedKeySet.delete(node.key);
  56255. indeterminateKeySet.delete(node.key);
  56256. }
  56257. }
  56258. });
  56259. }
  56260. indeterminateKeys.value = indeterminateKeySet;
  56261. };
  56262. const isChecked = (node) => checkedKeys.value.has(node.key);
  56263. const isIndeterminate = (node) => indeterminateKeys.value.has(node.key);
  56264. const toggleCheckbox = (node, isChecked2, nodeClick = true, immediateUpdate = true) => {
  56265. const checkedKeySet = checkedKeys.value;
  56266. const toggle = (node2, checked) => {
  56267. checkedKeySet[checked ? SetOperationEnum.ADD : SetOperationEnum.DELETE](node2.key);
  56268. const children = node2.children;
  56269. if (!props2.checkStrictly && children) {
  56270. children.forEach((childNode) => {
  56271. if (!childNode.disabled) {
  56272. toggle(childNode, checked);
  56273. }
  56274. });
  56275. }
  56276. };
  56277. toggle(node, isChecked2);
  56278. if (immediateUpdate) {
  56279. updateCheckedKeys();
  56280. }
  56281. if (nodeClick) {
  56282. afterNodeCheck(node, isChecked2);
  56283. }
  56284. };
  56285. const afterNodeCheck = (node, checked) => {
  56286. const { checkedNodes, checkedKeys: checkedKeys2 } = getChecked();
  56287. const { halfCheckedNodes, halfCheckedKeys } = getHalfChecked();
  56288. emit(NODE_CHECK, node.data, {
  56289. checkedKeys: checkedKeys2,
  56290. checkedNodes,
  56291. halfCheckedKeys,
  56292. halfCheckedNodes
  56293. });
  56294. emit(NODE_CHECK_CHANGE, node.data, checked);
  56295. };
  56296. function getCheckedKeys(leafOnly = false) {
  56297. return getChecked(leafOnly).checkedKeys;
  56298. }
  56299. function getCheckedNodes(leafOnly = false) {
  56300. return getChecked(leafOnly).checkedNodes;
  56301. }
  56302. function getHalfCheckedKeys() {
  56303. return getHalfChecked().halfCheckedKeys;
  56304. }
  56305. function getHalfCheckedNodes() {
  56306. return getHalfChecked().halfCheckedNodes;
  56307. }
  56308. function getChecked(leafOnly = false) {
  56309. const checkedNodes = [];
  56310. const keys3 = [];
  56311. if ((tree == null ? void 0 : tree.value) && props2.showCheckbox) {
  56312. const { treeNodeMap } = tree.value;
  56313. checkedKeys.value.forEach((key) => {
  56314. const node = treeNodeMap.get(key);
  56315. if (node && (!leafOnly || leafOnly && node.isLeaf)) {
  56316. keys3.push(key);
  56317. checkedNodes.push(node.data);
  56318. }
  56319. });
  56320. }
  56321. return {
  56322. checkedKeys: keys3,
  56323. checkedNodes
  56324. };
  56325. }
  56326. function getHalfChecked() {
  56327. const halfCheckedNodes = [];
  56328. const halfCheckedKeys = [];
  56329. if ((tree == null ? void 0 : tree.value) && props2.showCheckbox) {
  56330. const { treeNodeMap } = tree.value;
  56331. indeterminateKeys.value.forEach((key) => {
  56332. const node = treeNodeMap.get(key);
  56333. if (node) {
  56334. halfCheckedKeys.push(key);
  56335. halfCheckedNodes.push(node.data);
  56336. }
  56337. });
  56338. }
  56339. return {
  56340. halfCheckedNodes,
  56341. halfCheckedKeys
  56342. };
  56343. }
  56344. function setCheckedKeys(keys3) {
  56345. checkedKeys.value.clear();
  56346. indeterminateKeys.value.clear();
  56347. nextTick(() => {
  56348. _setCheckedKeys(keys3);
  56349. });
  56350. }
  56351. function setChecked(key, isChecked2) {
  56352. if ((tree == null ? void 0 : tree.value) && props2.showCheckbox) {
  56353. const node = tree.value.treeNodeMap.get(key);
  56354. if (node) {
  56355. toggleCheckbox(node, isChecked2, false);
  56356. }
  56357. }
  56358. }
  56359. function _setCheckedKeys(keys3) {
  56360. if (tree == null ? void 0 : tree.value) {
  56361. const { treeNodeMap } = tree.value;
  56362. if (props2.showCheckbox && treeNodeMap && (keys3 == null ? void 0 : keys3.length) > 0) {
  56363. for (const key of keys3) {
  56364. const node = treeNodeMap.get(key);
  56365. if (node && !isChecked(node)) {
  56366. toggleCheckbox(node, true, false, false);
  56367. }
  56368. }
  56369. updateCheckedKeys();
  56370. }
  56371. }
  56372. }
  56373. return {
  56374. updateCheckedKeys,
  56375. toggleCheckbox,
  56376. isChecked,
  56377. isIndeterminate,
  56378. getCheckedKeys,
  56379. getCheckedNodes,
  56380. getHalfCheckedKeys,
  56381. getHalfCheckedNodes,
  56382. setChecked,
  56383. setCheckedKeys
  56384. };
  56385. }
  56386. // node_modules/element-plus/es/components/tree-v2/src/composables/useFilter.mjs
  56387. function useFilter(props2, tree) {
  56388. const hiddenNodeKeySet = ref(/* @__PURE__ */ new Set([]));
  56389. const hiddenExpandIconKeySet = ref(/* @__PURE__ */ new Set([]));
  56390. const filterable = computed(() => {
  56391. return isFunction(props2.filterMethod);
  56392. });
  56393. function doFilter(query) {
  56394. var _a2;
  56395. if (!filterable.value) {
  56396. return;
  56397. }
  56398. const expandKeySet = /* @__PURE__ */ new Set();
  56399. const hiddenExpandIconKeys = hiddenExpandIconKeySet.value;
  56400. const hiddenKeys = hiddenNodeKeySet.value;
  56401. const family = [];
  56402. const nodes = ((_a2 = tree.value) == null ? void 0 : _a2.treeNodes) || [];
  56403. const filter2 = props2.filterMethod;
  56404. hiddenKeys.clear();
  56405. function traverse(nodes2) {
  56406. nodes2.forEach((node) => {
  56407. family.push(node);
  56408. if (filter2 == null ? void 0 : filter2(query, node.data, node)) {
  56409. family.forEach((member) => {
  56410. expandKeySet.add(member.key);
  56411. member.expanded = true;
  56412. });
  56413. } else {
  56414. node.expanded = false;
  56415. if (node.isLeaf) {
  56416. hiddenKeys.add(node.key);
  56417. }
  56418. }
  56419. const children = node.children;
  56420. if (children) {
  56421. traverse(children);
  56422. }
  56423. if (!node.isLeaf) {
  56424. if (!expandKeySet.has(node.key)) {
  56425. hiddenKeys.add(node.key);
  56426. } else if (children) {
  56427. let allHidden = true;
  56428. for (const childNode of children) {
  56429. if (!hiddenKeys.has(childNode.key)) {
  56430. allHidden = false;
  56431. break;
  56432. }
  56433. }
  56434. if (allHidden) {
  56435. hiddenExpandIconKeys.add(node.key);
  56436. } else {
  56437. hiddenExpandIconKeys.delete(node.key);
  56438. }
  56439. }
  56440. }
  56441. family.pop();
  56442. });
  56443. }
  56444. traverse(nodes);
  56445. return expandKeySet;
  56446. }
  56447. function isForceHiddenExpandIcon(node) {
  56448. return hiddenExpandIconKeySet.value.has(node.key);
  56449. }
  56450. return {
  56451. hiddenExpandIconKeySet,
  56452. hiddenNodeKeySet,
  56453. doFilter,
  56454. isForceHiddenExpandIcon
  56455. };
  56456. }
  56457. // node_modules/element-plus/es/components/tree-v2/src/composables/useTree.mjs
  56458. function useTree3(props2, emit) {
  56459. const expandedKeySet = ref(/* @__PURE__ */ new Set());
  56460. const currentKey = ref();
  56461. const tree = shallowRef();
  56462. const listRef = ref();
  56463. const {
  56464. isIndeterminate,
  56465. isChecked,
  56466. toggleCheckbox,
  56467. getCheckedKeys,
  56468. getCheckedNodes,
  56469. getHalfCheckedKeys,
  56470. getHalfCheckedNodes,
  56471. setChecked,
  56472. setCheckedKeys
  56473. } = useCheck2(props2, tree);
  56474. const { doFilter, hiddenNodeKeySet, isForceHiddenExpandIcon } = useFilter(props2, tree);
  56475. const valueKey = computed(() => {
  56476. var _a2;
  56477. return ((_a2 = props2.props) == null ? void 0 : _a2.value) || TreeOptionsEnum.KEY;
  56478. });
  56479. const childrenKey = computed(() => {
  56480. var _a2;
  56481. return ((_a2 = props2.props) == null ? void 0 : _a2.children) || TreeOptionsEnum.CHILDREN;
  56482. });
  56483. const disabledKey = computed(() => {
  56484. var _a2;
  56485. return ((_a2 = props2.props) == null ? void 0 : _a2.disabled) || TreeOptionsEnum.DISABLED;
  56486. });
  56487. const labelKey = computed(() => {
  56488. var _a2;
  56489. return ((_a2 = props2.props) == null ? void 0 : _a2.label) || TreeOptionsEnum.LABEL;
  56490. });
  56491. const flattenTree = computed(() => {
  56492. var _a2;
  56493. const expandedKeys = expandedKeySet.value;
  56494. const hiddenKeys = hiddenNodeKeySet.value;
  56495. const flattenNodes = [];
  56496. const nodes = ((_a2 = tree.value) == null ? void 0 : _a2.treeNodes) || [];
  56497. const stack = [];
  56498. for (let i = nodes.length - 1; i >= 0; --i) {
  56499. stack.push(nodes[i]);
  56500. }
  56501. while (stack.length) {
  56502. const node = stack.pop();
  56503. if (hiddenKeys.has(node.key))
  56504. continue;
  56505. flattenNodes.push(node);
  56506. if (node.children && expandedKeys.has(node.key)) {
  56507. for (let i = node.children.length - 1; i >= 0; --i) {
  56508. stack.push(node.children[i]);
  56509. }
  56510. }
  56511. }
  56512. return flattenNodes;
  56513. });
  56514. const isNotEmpty = computed(() => {
  56515. return flattenTree.value.length > 0;
  56516. });
  56517. function createTree(data) {
  56518. const treeNodeMap = /* @__PURE__ */ new Map();
  56519. const levelTreeNodeMap = /* @__PURE__ */ new Map();
  56520. let maxLevel = 1;
  56521. function traverse(nodes, level = 1, parent2 = void 0) {
  56522. var _a2;
  56523. const siblings = [];
  56524. for (const rawNode of nodes) {
  56525. const value = getKey(rawNode);
  56526. const node = {
  56527. level,
  56528. key: value,
  56529. data: rawNode
  56530. };
  56531. node.label = getLabel(rawNode);
  56532. node.parent = parent2;
  56533. const children = getChildren(rawNode);
  56534. node.disabled = getDisabled(rawNode);
  56535. node.isLeaf = !children || children.length === 0;
  56536. node.expanded = expandedKeySet.value.has(value);
  56537. if (children && children.length) {
  56538. node.children = traverse(children, level + 1, node);
  56539. }
  56540. siblings.push(node);
  56541. treeNodeMap.set(value, node);
  56542. if (!levelTreeNodeMap.has(level)) {
  56543. levelTreeNodeMap.set(level, []);
  56544. }
  56545. (_a2 = levelTreeNodeMap.get(level)) == null ? void 0 : _a2.push(node);
  56546. }
  56547. if (level > maxLevel) {
  56548. maxLevel = level;
  56549. }
  56550. return siblings;
  56551. }
  56552. const treeNodes = traverse(data);
  56553. return {
  56554. treeNodeMap,
  56555. levelTreeNodeMap,
  56556. maxLevel,
  56557. treeNodes
  56558. };
  56559. }
  56560. function filter2(query) {
  56561. const keys3 = doFilter(query);
  56562. if (keys3) {
  56563. expandedKeySet.value = keys3;
  56564. }
  56565. }
  56566. function getChildren(node) {
  56567. return node[childrenKey.value];
  56568. }
  56569. function getKey(node) {
  56570. if (!node) {
  56571. return "";
  56572. }
  56573. return node[valueKey.value];
  56574. }
  56575. function getDisabled(node) {
  56576. return node[disabledKey.value];
  56577. }
  56578. function getLabel(node) {
  56579. return node[labelKey.value];
  56580. }
  56581. function toggleExpand(node) {
  56582. const expandedKeys = expandedKeySet.value;
  56583. if (expandedKeys.has(node.key)) {
  56584. collapseNode(node);
  56585. } else {
  56586. expandNode(node);
  56587. }
  56588. }
  56589. function setExpandedKeys(keys3) {
  56590. const expandedKeys = /* @__PURE__ */ new Set();
  56591. const nodeMap = tree.value.treeNodeMap;
  56592. expandedKeySet.value.forEach((key) => {
  56593. const node = nodeMap.get(key);
  56594. expandedKeySet.value.delete(node.key);
  56595. node.expanded = false;
  56596. });
  56597. keys3.forEach((k) => {
  56598. let node = nodeMap.get(k);
  56599. while (node && !expandedKeys.has(node.key)) {
  56600. expandedKeys.add(node.key);
  56601. node.expanded = true;
  56602. node = node.parent;
  56603. }
  56604. });
  56605. expandedKeySet.value = expandedKeys;
  56606. }
  56607. function handleNodeClick(node, e) {
  56608. emit(NODE_CLICK, node.data, node, e);
  56609. handleCurrentChange2(node);
  56610. if (props2.expandOnClickNode) {
  56611. toggleExpand(node);
  56612. }
  56613. if (props2.showCheckbox && (props2.checkOnClickNode || node.isLeaf && props2.checkOnClickLeaf) && !node.disabled) {
  56614. toggleCheckbox(node, !isChecked(node), true);
  56615. }
  56616. }
  56617. function handleNodeDrop(node, e) {
  56618. emit(NODE_DROP, node.data, node, e);
  56619. }
  56620. function handleCurrentChange2(node) {
  56621. if (!isCurrent(node)) {
  56622. currentKey.value = node.key;
  56623. emit(CURRENT_CHANGE, node.data, node);
  56624. }
  56625. }
  56626. function handleNodeCheck(node, checked) {
  56627. toggleCheckbox(node, checked);
  56628. }
  56629. function expandNode(node) {
  56630. const keySet = expandedKeySet.value;
  56631. if (tree.value && props2.accordion) {
  56632. const { treeNodeMap } = tree.value;
  56633. keySet.forEach((key) => {
  56634. const treeNode = treeNodeMap.get(key);
  56635. if (node && node.level === (treeNode == null ? void 0 : treeNode.level)) {
  56636. keySet.delete(key);
  56637. treeNode.expanded = false;
  56638. }
  56639. });
  56640. }
  56641. keySet.add(node.key);
  56642. const _node = getNode(node.key);
  56643. if (_node) {
  56644. _node.expanded = true;
  56645. emit(NODE_EXPAND, _node.data, _node);
  56646. }
  56647. }
  56648. function collapseNode(node) {
  56649. expandedKeySet.value.delete(node.key);
  56650. const _node = getNode(node.key);
  56651. if (_node) {
  56652. _node.expanded = false;
  56653. emit(NODE_COLLAPSE, _node.data, _node);
  56654. }
  56655. }
  56656. function isDisabled(node) {
  56657. return !!node.disabled;
  56658. }
  56659. function isCurrent(node) {
  56660. const current = currentKey.value;
  56661. return current !== void 0 && current === node.key;
  56662. }
  56663. function getCurrentNode() {
  56664. var _a2, _b;
  56665. if (!currentKey.value)
  56666. return void 0;
  56667. return (_b = (_a2 = tree.value) == null ? void 0 : _a2.treeNodeMap.get(currentKey.value)) == null ? void 0 : _b.data;
  56668. }
  56669. function getCurrentKey() {
  56670. return currentKey.value;
  56671. }
  56672. function setCurrentKey(key) {
  56673. currentKey.value = key;
  56674. }
  56675. function setData2(data) {
  56676. tree.value = createTree(data);
  56677. }
  56678. function getNode(data) {
  56679. var _a2;
  56680. const key = isObject(data) ? getKey(data) : data;
  56681. return (_a2 = tree.value) == null ? void 0 : _a2.treeNodeMap.get(key);
  56682. }
  56683. function scrollToNode(key, strategy = "auto") {
  56684. const node = getNode(key);
  56685. if (node && listRef.value) {
  56686. listRef.value.scrollToItem(flattenTree.value.indexOf(node), strategy);
  56687. }
  56688. }
  56689. function scrollTo(offset3) {
  56690. var _a2;
  56691. (_a2 = listRef.value) == null ? void 0 : _a2.scrollTo(offset3);
  56692. }
  56693. watch(() => props2.currentNodeKey, (key) => {
  56694. currentKey.value = key;
  56695. }, {
  56696. immediate: true
  56697. });
  56698. watch(() => props2.defaultExpandedKeys, (key) => {
  56699. expandedKeySet.value = new Set(key);
  56700. }, {
  56701. immediate: true
  56702. });
  56703. watch(() => props2.data, (data) => {
  56704. setData2(data);
  56705. }, {
  56706. immediate: true
  56707. });
  56708. return {
  56709. tree,
  56710. flattenTree,
  56711. isNotEmpty,
  56712. listRef,
  56713. getKey,
  56714. getChildren,
  56715. toggleExpand,
  56716. toggleCheckbox,
  56717. isChecked,
  56718. isIndeterminate,
  56719. isDisabled,
  56720. isCurrent,
  56721. isForceHiddenExpandIcon,
  56722. handleNodeClick,
  56723. handleNodeDrop,
  56724. handleNodeCheck,
  56725. getCurrentNode,
  56726. getCurrentKey,
  56727. setCurrentKey,
  56728. getCheckedKeys,
  56729. getCheckedNodes,
  56730. getHalfCheckedKeys,
  56731. getHalfCheckedNodes,
  56732. setChecked,
  56733. setCheckedKeys,
  56734. filter: filter2,
  56735. setData: setData2,
  56736. getNode,
  56737. expandNode,
  56738. collapseNode,
  56739. setExpandedKeys,
  56740. scrollToNode,
  56741. scrollTo
  56742. };
  56743. }
  56744. // node_modules/element-plus/es/components/tree-v2/src/tree-node-content.mjs
  56745. var ElNodeContent = defineComponent({
  56746. name: "ElTreeNodeContent",
  56747. props: treeNodeContentProps,
  56748. setup(props2) {
  56749. const tree = inject(ROOT_TREE_INJECTION_KEY2);
  56750. const ns = useNamespace("tree");
  56751. return () => {
  56752. const node = props2.node;
  56753. const { data } = node;
  56754. return (tree == null ? void 0 : tree.ctx.slots.default) ? tree.ctx.slots.default({ node, data }) : h(ElText, { tag: "span", truncated: true, class: ns.be("node", "label") }, () => [node == null ? void 0 : node.label]);
  56755. };
  56756. }
  56757. });
  56758. // node_modules/element-plus/es/components/tree-v2/src/tree-node.mjs
  56759. var __default__105 = defineComponent({
  56760. name: "ElTreeNode"
  56761. });
  56762. var _sfc_main139 = defineComponent({
  56763. ...__default__105,
  56764. props: treeNodeProps,
  56765. emits: treeNodeEmits,
  56766. setup(__props, { emit }) {
  56767. const props2 = __props;
  56768. const tree = inject(ROOT_TREE_INJECTION_KEY2);
  56769. const ns = useNamespace("tree");
  56770. const indent = computed(() => {
  56771. var _a2;
  56772. return (_a2 = tree == null ? void 0 : tree.props.indent) != null ? _a2 : 16;
  56773. });
  56774. const icon = computed(() => {
  56775. var _a2;
  56776. return (_a2 = tree == null ? void 0 : tree.props.icon) != null ? _a2 : caret_right_default;
  56777. });
  56778. const getNodeClass = (node) => {
  56779. const nodeClassFunc = tree == null ? void 0 : tree.props.props.class;
  56780. if (!nodeClassFunc)
  56781. return {};
  56782. let className;
  56783. if (isFunction(nodeClassFunc)) {
  56784. const { data } = node;
  56785. className = nodeClassFunc(data, node);
  56786. } else {
  56787. className = nodeClassFunc;
  56788. }
  56789. return isString(className) ? { [className]: true } : className;
  56790. };
  56791. const handleClick = (e) => {
  56792. emit("click", props2.node, e);
  56793. };
  56794. const handleDrop = (e) => {
  56795. emit("drop", props2.node, e);
  56796. };
  56797. const handleExpandIconClick = () => {
  56798. emit("toggle", props2.node);
  56799. };
  56800. const handleCheckChange = (value) => {
  56801. emit("check", props2.node, value);
  56802. };
  56803. const handleContextMenu = (event) => {
  56804. var _a2, _b, _c, _d;
  56805. if ((_c = (_b = (_a2 = tree == null ? void 0 : tree.instance) == null ? void 0 : _a2.vnode) == null ? void 0 : _b.props) == null ? void 0 : _c["onNodeContextmenu"]) {
  56806. event.stopPropagation();
  56807. event.preventDefault();
  56808. }
  56809. tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props2.node) == null ? void 0 : _d.data, props2.node);
  56810. };
  56811. return (_ctx, _cache) => {
  56812. var _a2, _b, _c;
  56813. return openBlock(), createElementBlock("div", {
  56814. ref: "node$",
  56815. class: normalizeClass([
  56816. unref(ns).b("node"),
  56817. unref(ns).is("expanded", _ctx.expanded),
  56818. unref(ns).is("current", _ctx.current),
  56819. unref(ns).is("focusable", !_ctx.disabled),
  56820. unref(ns).is("checked", !_ctx.disabled && _ctx.checked),
  56821. getNodeClass(_ctx.node)
  56822. ]),
  56823. role: "treeitem",
  56824. tabindex: "-1",
  56825. "aria-expanded": _ctx.expanded,
  56826. "aria-disabled": _ctx.disabled,
  56827. "aria-checked": _ctx.checked,
  56828. "data-key": (_a2 = _ctx.node) == null ? void 0 : _a2.key,
  56829. onClick: withModifiers(handleClick, ["stop"]),
  56830. onContextmenu: handleContextMenu,
  56831. onDragover: withModifiers(() => {
  56832. }, ["prevent"]),
  56833. onDragenter: withModifiers(() => {
  56834. }, ["prevent"]),
  56835. onDrop: withModifiers(handleDrop, ["stop"])
  56836. }, [
  56837. createBaseVNode("div", {
  56838. class: normalizeClass(unref(ns).be("node", "content")),
  56839. style: normalizeStyle({
  56840. paddingLeft: `${(_ctx.node.level - 1) * unref(indent)}px`,
  56841. height: _ctx.itemSize + "px"
  56842. })
  56843. }, [
  56844. unref(icon) ? (openBlock(), createBlock(unref(ElIcon), {
  56845. key: 0,
  56846. class: normalizeClass([
  56847. unref(ns).is("leaf", !!((_b = _ctx.node) == null ? void 0 : _b.isLeaf)),
  56848. unref(ns).is("hidden", _ctx.hiddenExpandIcon),
  56849. {
  56850. expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
  56851. },
  56852. unref(ns).be("node", "expand-icon")
  56853. ]),
  56854. onClick: withModifiers(handleExpandIconClick, ["stop"])
  56855. }, {
  56856. default: withCtx(() => [
  56857. (openBlock(), createBlock(resolveDynamicComponent(unref(icon))))
  56858. ]),
  56859. _: 1
  56860. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
  56861. _ctx.showCheckbox ? (openBlock(), createBlock(unref(ElCheckbox), {
  56862. key: 1,
  56863. "model-value": _ctx.checked,
  56864. indeterminate: _ctx.indeterminate,
  56865. disabled: _ctx.disabled,
  56866. onChange: handleCheckChange,
  56867. onClick: withModifiers(() => {
  56868. }, ["stop"])
  56869. }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : createCommentVNode("v-if", true),
  56870. createVNode(unref(ElNodeContent), {
  56871. node: { ..._ctx.node, expanded: _ctx.expanded }
  56872. }, null, 8, ["node"])
  56873. ], 6)
  56874. ], 42, ["aria-expanded", "aria-disabled", "aria-checked", "data-key", "onClick", "onDragover", "onDragenter", "onDrop"]);
  56875. };
  56876. }
  56877. });
  56878. var ElTreeNode2 = _export_sfc(_sfc_main139, [["__file", "tree-node.vue"]]);
  56879. // node_modules/element-plus/es/components/tree-v2/src/tree.mjs
  56880. var __default__106 = defineComponent({
  56881. name: "ElTreeV2"
  56882. });
  56883. var _sfc_main140 = defineComponent({
  56884. ...__default__106,
  56885. props: treeProps,
  56886. emits: treeEmits2,
  56887. setup(__props, { expose, emit }) {
  56888. const props2 = __props;
  56889. const slots = useSlots();
  56890. const treeNodeSize = computed(() => props2.itemSize);
  56891. provide(ROOT_TREE_INJECTION_KEY2, {
  56892. ctx: {
  56893. emit,
  56894. slots
  56895. },
  56896. props: props2,
  56897. instance: getCurrentInstance()
  56898. });
  56899. provide(formItemContextKey, void 0);
  56900. const { t } = useLocale();
  56901. const ns = useNamespace("tree");
  56902. const {
  56903. flattenTree,
  56904. isNotEmpty,
  56905. listRef,
  56906. toggleExpand,
  56907. isIndeterminate,
  56908. isChecked,
  56909. isDisabled,
  56910. isCurrent,
  56911. isForceHiddenExpandIcon,
  56912. handleNodeClick,
  56913. handleNodeDrop,
  56914. handleNodeCheck,
  56915. toggleCheckbox,
  56916. getCurrentNode,
  56917. getCurrentKey,
  56918. setCurrentKey,
  56919. getCheckedKeys,
  56920. getCheckedNodes,
  56921. getHalfCheckedKeys,
  56922. getHalfCheckedNodes,
  56923. setChecked,
  56924. setCheckedKeys,
  56925. filter: filter2,
  56926. setData: setData2,
  56927. getNode,
  56928. expandNode,
  56929. collapseNode,
  56930. setExpandedKeys,
  56931. scrollToNode,
  56932. scrollTo
  56933. } = useTree3(props2, emit);
  56934. expose({
  56935. toggleCheckbox,
  56936. getCurrentNode,
  56937. getCurrentKey,
  56938. setCurrentKey,
  56939. getCheckedKeys,
  56940. getCheckedNodes,
  56941. getHalfCheckedKeys,
  56942. getHalfCheckedNodes,
  56943. setChecked,
  56944. setCheckedKeys,
  56945. filter: filter2,
  56946. setData: setData2,
  56947. getNode,
  56948. expandNode,
  56949. collapseNode,
  56950. setExpandedKeys,
  56951. scrollToNode,
  56952. scrollTo
  56953. });
  56954. return (_ctx, _cache) => {
  56955. return openBlock(), createElementBlock("div", {
  56956. class: normalizeClass([unref(ns).b(), { [unref(ns).m("highlight-current")]: _ctx.highlightCurrent }]),
  56957. role: "tree"
  56958. }, [
  56959. unref(isNotEmpty) ? (openBlock(), createBlock(unref(FixedSizeList), {
  56960. key: 0,
  56961. ref_key: "listRef",
  56962. ref: listRef,
  56963. "class-name": unref(ns).b("virtual-list"),
  56964. data: unref(flattenTree),
  56965. total: unref(flattenTree).length,
  56966. height: _ctx.height,
  56967. "item-size": unref(treeNodeSize),
  56968. "perf-mode": _ctx.perfMode,
  56969. "scrollbar-always-on": _ctx.scrollbarAlwaysOn
  56970. }, {
  56971. default: withCtx(({ data, index, style }) => [
  56972. (openBlock(), createBlock(ElTreeNode2, {
  56973. key: data[index].key,
  56974. style: normalizeStyle(style),
  56975. node: data[index],
  56976. expanded: data[index].expanded,
  56977. "show-checkbox": _ctx.showCheckbox,
  56978. checked: unref(isChecked)(data[index]),
  56979. indeterminate: unref(isIndeterminate)(data[index]),
  56980. "item-size": unref(treeNodeSize),
  56981. disabled: unref(isDisabled)(data[index]),
  56982. current: unref(isCurrent)(data[index]),
  56983. "hidden-expand-icon": unref(isForceHiddenExpandIcon)(data[index]),
  56984. onClick: unref(handleNodeClick),
  56985. onToggle: unref(toggleExpand),
  56986. onCheck: unref(handleNodeCheck),
  56987. onDrop: unref(handleNodeDrop)
  56988. }, null, 8, ["style", "node", "expanded", "show-checkbox", "checked", "indeterminate", "item-size", "disabled", "current", "hidden-expand-icon", "onClick", "onToggle", "onCheck", "onDrop"]))
  56989. ]),
  56990. _: 1
  56991. }, 8, ["class-name", "data", "total", "height", "item-size", "perf-mode", "scrollbar-always-on"])) : (openBlock(), createElementBlock("div", {
  56992. key: 1,
  56993. class: normalizeClass(unref(ns).e("empty-block"))
  56994. }, [
  56995. renderSlot(_ctx.$slots, "empty", {}, () => {
  56996. var _a2;
  56997. return [
  56998. createBaseVNode("span", {
  56999. class: normalizeClass(unref(ns).e("empty-text"))
  57000. }, toDisplayString((_a2 = _ctx.emptyText) != null ? _a2 : unref(t)("el.tree.emptyText")), 3)
  57001. ];
  57002. })
  57003. ], 2))
  57004. ], 2);
  57005. };
  57006. }
  57007. });
  57008. var TreeV2 = _export_sfc(_sfc_main140, [["__file", "tree.vue"]]);
  57009. // node_modules/element-plus/es/components/tree-v2/index.mjs
  57010. var ElTreeV2 = withInstall(TreeV2);
  57011. // node_modules/element-plus/es/components/upload/src/constants.mjs
  57012. var uploadContextKey = Symbol("uploadContextKey");
  57013. // node_modules/element-plus/es/components/upload/src/ajax.mjs
  57014. var SCOPE8 = "ElUpload";
  57015. var UploadAjaxError = class extends Error {
  57016. constructor(message2, status, method5, url2) {
  57017. super(message2);
  57018. this.name = "UploadAjaxError";
  57019. this.status = status;
  57020. this.method = method5;
  57021. this.url = url2;
  57022. }
  57023. };
  57024. function getError(action, option, xhr) {
  57025. let msg;
  57026. if (xhr.response) {
  57027. msg = `${xhr.response.error || xhr.response}`;
  57028. } else if (xhr.responseText) {
  57029. msg = `${xhr.responseText}`;
  57030. } else {
  57031. msg = `fail to ${option.method} ${action} ${xhr.status}`;
  57032. }
  57033. return new UploadAjaxError(msg, xhr.status, option.method, action);
  57034. }
  57035. function getBody(xhr) {
  57036. const text = xhr.responseText || xhr.response;
  57037. if (!text) {
  57038. return text;
  57039. }
  57040. try {
  57041. return JSON.parse(text);
  57042. } catch (e) {
  57043. return text;
  57044. }
  57045. }
  57046. var ajaxUpload = (option) => {
  57047. if (typeof XMLHttpRequest === "undefined")
  57048. throwError(SCOPE8, "XMLHttpRequest is undefined");
  57049. const xhr = new XMLHttpRequest();
  57050. const action = option.action;
  57051. if (xhr.upload) {
  57052. xhr.upload.addEventListener("progress", (evt) => {
  57053. const progressEvt = evt;
  57054. progressEvt.percent = evt.total > 0 ? evt.loaded / evt.total * 100 : 0;
  57055. option.onProgress(progressEvt);
  57056. });
  57057. }
  57058. const formData = new FormData();
  57059. if (option.data) {
  57060. for (const [key, value] of Object.entries(option.data)) {
  57061. if (isArray(value) && value.length)
  57062. formData.append(key, ...value);
  57063. else
  57064. formData.append(key, value);
  57065. }
  57066. }
  57067. formData.append(option.filename, option.file, option.file.name);
  57068. xhr.addEventListener("error", () => {
  57069. option.onError(getError(action, option, xhr));
  57070. });
  57071. xhr.addEventListener("load", () => {
  57072. if (xhr.status < 200 || xhr.status >= 300) {
  57073. return option.onError(getError(action, option, xhr));
  57074. }
  57075. option.onSuccess(getBody(xhr));
  57076. });
  57077. xhr.open(option.method, action, true);
  57078. if (option.withCredentials && "withCredentials" in xhr) {
  57079. xhr.withCredentials = true;
  57080. }
  57081. const headers = option.headers || {};
  57082. if (headers instanceof Headers) {
  57083. headers.forEach((value, key) => xhr.setRequestHeader(key, value));
  57084. } else {
  57085. for (const [key, value] of Object.entries(headers)) {
  57086. if (isNil_default(value))
  57087. continue;
  57088. xhr.setRequestHeader(key, String(value));
  57089. }
  57090. }
  57091. xhr.send(formData);
  57092. return xhr;
  57093. };
  57094. // node_modules/element-plus/es/components/upload/src/upload.mjs
  57095. var uploadListTypes = ["text", "picture", "picture-card"];
  57096. var fileId = 1;
  57097. var genFileId = () => Date.now() + fileId++;
  57098. var uploadBaseProps = buildProps({
  57099. action: {
  57100. type: String,
  57101. default: "#"
  57102. },
  57103. headers: {
  57104. type: definePropType(Object)
  57105. },
  57106. method: {
  57107. type: String,
  57108. default: "post"
  57109. },
  57110. data: {
  57111. type: definePropType([Object, Function, Promise]),
  57112. default: () => mutable({})
  57113. },
  57114. multiple: Boolean,
  57115. name: {
  57116. type: String,
  57117. default: "file"
  57118. },
  57119. drag: Boolean,
  57120. withCredentials: Boolean,
  57121. showFileList: {
  57122. type: Boolean,
  57123. default: true
  57124. },
  57125. accept: {
  57126. type: String,
  57127. default: ""
  57128. },
  57129. fileList: {
  57130. type: definePropType(Array),
  57131. default: () => mutable([])
  57132. },
  57133. autoUpload: {
  57134. type: Boolean,
  57135. default: true
  57136. },
  57137. listType: {
  57138. type: String,
  57139. values: uploadListTypes,
  57140. default: "text"
  57141. },
  57142. httpRequest: {
  57143. type: definePropType(Function),
  57144. default: ajaxUpload
  57145. },
  57146. disabled: Boolean,
  57147. limit: Number
  57148. });
  57149. var uploadProps = buildProps({
  57150. ...uploadBaseProps,
  57151. beforeUpload: {
  57152. type: definePropType(Function),
  57153. default: NOOP
  57154. },
  57155. beforeRemove: {
  57156. type: definePropType(Function)
  57157. },
  57158. onRemove: {
  57159. type: definePropType(Function),
  57160. default: NOOP
  57161. },
  57162. onChange: {
  57163. type: definePropType(Function),
  57164. default: NOOP
  57165. },
  57166. onPreview: {
  57167. type: definePropType(Function),
  57168. default: NOOP
  57169. },
  57170. onSuccess: {
  57171. type: definePropType(Function),
  57172. default: NOOP
  57173. },
  57174. onProgress: {
  57175. type: definePropType(Function),
  57176. default: NOOP
  57177. },
  57178. onError: {
  57179. type: definePropType(Function),
  57180. default: NOOP
  57181. },
  57182. onExceed: {
  57183. type: definePropType(Function),
  57184. default: NOOP
  57185. },
  57186. crossorigin: {
  57187. type: definePropType(String)
  57188. }
  57189. });
  57190. // node_modules/element-plus/es/components/upload/src/upload-list.mjs
  57191. var uploadListProps = buildProps({
  57192. files: {
  57193. type: definePropType(Array),
  57194. default: () => mutable([])
  57195. },
  57196. disabled: Boolean,
  57197. handlePreview: {
  57198. type: definePropType(Function),
  57199. default: NOOP
  57200. },
  57201. listType: {
  57202. type: String,
  57203. values: uploadListTypes,
  57204. default: "text"
  57205. },
  57206. crossorigin: {
  57207. type: definePropType(String)
  57208. }
  57209. });
  57210. var uploadListEmits = {
  57211. remove: (file) => !!file
  57212. };
  57213. // node_modules/element-plus/es/components/upload/src/upload-list2.mjs
  57214. var __default__107 = defineComponent({
  57215. name: "ElUploadList"
  57216. });
  57217. var _sfc_main141 = defineComponent({
  57218. ...__default__107,
  57219. props: uploadListProps,
  57220. emits: uploadListEmits,
  57221. setup(__props, { emit }) {
  57222. const props2 = __props;
  57223. const { t } = useLocale();
  57224. const nsUpload = useNamespace("upload");
  57225. const nsIcon = useNamespace("icon");
  57226. const nsList = useNamespace("list");
  57227. const disabled = useFormDisabled();
  57228. const focusing = ref(false);
  57229. const containerKls = computed(() => [
  57230. nsUpload.b("list"),
  57231. nsUpload.bm("list", props2.listType),
  57232. nsUpload.is("disabled", props2.disabled)
  57233. ]);
  57234. const handleRemove = (file) => {
  57235. emit("remove", file);
  57236. };
  57237. return (_ctx, _cache) => {
  57238. return openBlock(), createBlock(TransitionGroup, {
  57239. tag: "ul",
  57240. class: normalizeClass(unref(containerKls)),
  57241. name: unref(nsList).b()
  57242. }, {
  57243. default: withCtx(() => [
  57244. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.files, (file, index) => {
  57245. return openBlock(), createElementBlock("li", {
  57246. key: file.uid || file.name,
  57247. class: normalizeClass([
  57248. unref(nsUpload).be("list", "item"),
  57249. unref(nsUpload).is(file.status),
  57250. { focusing: focusing.value }
  57251. ]),
  57252. tabindex: unref(disabled) ? void 0 : 0,
  57253. "aria-disabled": unref(disabled),
  57254. role: "button",
  57255. onKeydown: withKeys(($event) => !unref(disabled) && handleRemove(file), ["delete"]),
  57256. onFocus: ($event) => focusing.value = true,
  57257. onBlur: ($event) => focusing.value = false,
  57258. onClick: ($event) => focusing.value = false
  57259. }, [
  57260. renderSlot(_ctx.$slots, "default", {
  57261. file,
  57262. index
  57263. }, () => [
  57264. _ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("img", {
  57265. key: 0,
  57266. class: normalizeClass(unref(nsUpload).be("list", "item-thumbnail")),
  57267. src: file.url,
  57268. crossorigin: _ctx.crossorigin,
  57269. alt: ""
  57270. }, null, 10, ["src", "crossorigin"])) : createCommentVNode("v-if", true),
  57271. file.status === "uploading" || _ctx.listType !== "picture-card" ? (openBlock(), createElementBlock("div", {
  57272. key: 1,
  57273. class: normalizeClass(unref(nsUpload).be("list", "item-info"))
  57274. }, [
  57275. createBaseVNode("a", {
  57276. class: normalizeClass(unref(nsUpload).be("list", "item-name")),
  57277. onClick: withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
  57278. }, [
  57279. createVNode(unref(ElIcon), {
  57280. class: normalizeClass(unref(nsIcon).m("document"))
  57281. }, {
  57282. default: withCtx(() => [
  57283. createVNode(unref(document_default))
  57284. ]),
  57285. _: 1
  57286. }, 8, ["class"]),
  57287. createBaseVNode("span", {
  57288. class: normalizeClass(unref(nsUpload).be("list", "item-file-name")),
  57289. title: file.name
  57290. }, toDisplayString(file.name), 11, ["title"])
  57291. ], 10, ["onClick"]),
  57292. file.status === "uploading" ? (openBlock(), createBlock(unref(ElProgress), {
  57293. key: 0,
  57294. type: _ctx.listType === "picture-card" ? "circle" : "line",
  57295. "stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
  57296. percentage: Number(file.percentage),
  57297. style: normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
  57298. }, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)
  57299. ], 2)) : createCommentVNode("v-if", true),
  57300. createBaseVNode("label", {
  57301. class: normalizeClass(unref(nsUpload).be("list", "item-status-label"))
  57302. }, [
  57303. _ctx.listType === "text" ? (openBlock(), createBlock(unref(ElIcon), {
  57304. key: 0,
  57305. class: normalizeClass([unref(nsIcon).m("upload-success"), unref(nsIcon).m("circle-check")])
  57306. }, {
  57307. default: withCtx(() => [
  57308. createVNode(unref(circle_check_default))
  57309. ]),
  57310. _: 1
  57311. }, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (openBlock(), createBlock(unref(ElIcon), {
  57312. key: 1,
  57313. class: normalizeClass([unref(nsIcon).m("upload-success"), unref(nsIcon).m("check")])
  57314. }, {
  57315. default: withCtx(() => [
  57316. createVNode(unref(check_default))
  57317. ]),
  57318. _: 1
  57319. }, 8, ["class"])) : createCommentVNode("v-if", true)
  57320. ], 2),
  57321. !unref(disabled) ? (openBlock(), createBlock(unref(ElIcon), {
  57322. key: 2,
  57323. class: normalizeClass(unref(nsIcon).m("close")),
  57324. onClick: ($event) => handleRemove(file)
  57325. }, {
  57326. default: withCtx(() => [
  57327. createVNode(unref(close_default))
  57328. ]),
  57329. _: 2
  57330. }, 1032, ["class", "onClick"])) : createCommentVNode("v-if", true),
  57331. createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
  57332. createCommentVNode(" This is a bug which needs to be fixed "),
  57333. createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
  57334. !unref(disabled) ? (openBlock(), createElementBlock("i", {
  57335. key: 3,
  57336. class: normalizeClass(unref(nsIcon).m("close-tip"))
  57337. }, toDisplayString(unref(t)("el.upload.deleteTip")), 3)) : createCommentVNode("v-if", true),
  57338. _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("span", {
  57339. key: 4,
  57340. class: normalizeClass(unref(nsUpload).be("list", "item-actions"))
  57341. }, [
  57342. createBaseVNode("span", {
  57343. class: normalizeClass(unref(nsUpload).be("list", "item-preview")),
  57344. onClick: ($event) => _ctx.handlePreview(file)
  57345. }, [
  57346. createVNode(unref(ElIcon), {
  57347. class: normalizeClass(unref(nsIcon).m("zoom-in"))
  57348. }, {
  57349. default: withCtx(() => [
  57350. createVNode(unref(zoom_in_default))
  57351. ]),
  57352. _: 1
  57353. }, 8, ["class"])
  57354. ], 10, ["onClick"]),
  57355. !unref(disabled) ? (openBlock(), createElementBlock("span", {
  57356. key: 0,
  57357. class: normalizeClass(unref(nsUpload).be("list", "item-delete")),
  57358. onClick: ($event) => handleRemove(file)
  57359. }, [
  57360. createVNode(unref(ElIcon), {
  57361. class: normalizeClass(unref(nsIcon).m("delete"))
  57362. }, {
  57363. default: withCtx(() => [
  57364. createVNode(unref(delete_default))
  57365. ]),
  57366. _: 1
  57367. }, 8, ["class"])
  57368. ], 10, ["onClick"])) : createCommentVNode("v-if", true)
  57369. ], 2)) : createCommentVNode("v-if", true)
  57370. ])
  57371. ], 42, ["tabindex", "aria-disabled", "onKeydown", "onFocus", "onBlur", "onClick"]);
  57372. }), 128)),
  57373. renderSlot(_ctx.$slots, "append")
  57374. ]),
  57375. _: 3
  57376. }, 8, ["class", "name"]);
  57377. };
  57378. }
  57379. });
  57380. var UploadList = _export_sfc(_sfc_main141, [["__file", "upload-list.vue"]]);
  57381. // node_modules/element-plus/es/components/upload/src/upload-dragger.mjs
  57382. var uploadDraggerProps = buildProps({
  57383. disabled: Boolean
  57384. });
  57385. var uploadDraggerEmits = {
  57386. file: (file) => isArray(file)
  57387. };
  57388. // node_modules/element-plus/es/components/upload/src/upload-dragger2.mjs
  57389. var COMPONENT_NAME25 = "ElUploadDrag";
  57390. var __default__108 = defineComponent({
  57391. name: COMPONENT_NAME25
  57392. });
  57393. var _sfc_main142 = defineComponent({
  57394. ...__default__108,
  57395. props: uploadDraggerProps,
  57396. emits: uploadDraggerEmits,
  57397. setup(__props, { emit }) {
  57398. const uploaderContext = inject(uploadContextKey);
  57399. if (!uploaderContext) {
  57400. throwError(COMPONENT_NAME25, "usage: <el-upload><el-upload-dragger /></el-upload>");
  57401. }
  57402. const ns = useNamespace("upload");
  57403. const dragover = ref(false);
  57404. const disabled = useFormDisabled();
  57405. const onDrop = (e) => {
  57406. if (disabled.value)
  57407. return;
  57408. dragover.value = false;
  57409. e.stopPropagation();
  57410. const files = Array.from(e.dataTransfer.files);
  57411. const items = e.dataTransfer.items || [];
  57412. files.forEach((file, index) => {
  57413. var _a2;
  57414. const item = items[index];
  57415. const entry = (_a2 = item == null ? void 0 : item.webkitGetAsEntry) == null ? void 0 : _a2.call(item);
  57416. if (entry) {
  57417. file.isDirectory = entry.isDirectory;
  57418. }
  57419. });
  57420. emit("file", files);
  57421. };
  57422. const onDragover = () => {
  57423. if (!disabled.value)
  57424. dragover.value = true;
  57425. };
  57426. const onDragleave = (e) => {
  57427. if (!e.currentTarget.contains(e.relatedTarget))
  57428. dragover.value = false;
  57429. };
  57430. return (_ctx, _cache) => {
  57431. return openBlock(), createElementBlock("div", {
  57432. class: normalizeClass([unref(ns).b("dragger"), unref(ns).is("dragover", dragover.value)]),
  57433. onDrop: withModifiers(onDrop, ["prevent"]),
  57434. onDragover: withModifiers(onDragover, ["prevent"]),
  57435. onDragleave: withModifiers(onDragleave, ["prevent"])
  57436. }, [
  57437. renderSlot(_ctx.$slots, "default")
  57438. ], 42, ["onDrop", "onDragover", "onDragleave"]);
  57439. };
  57440. }
  57441. });
  57442. var UploadDragger = _export_sfc(_sfc_main142, [["__file", "upload-dragger.vue"]]);
  57443. // node_modules/element-plus/es/components/upload/src/upload-content.mjs
  57444. var uploadContentProps = buildProps({
  57445. ...uploadBaseProps,
  57446. beforeUpload: {
  57447. type: definePropType(Function),
  57448. default: NOOP
  57449. },
  57450. onRemove: {
  57451. type: definePropType(Function),
  57452. default: NOOP
  57453. },
  57454. onStart: {
  57455. type: definePropType(Function),
  57456. default: NOOP
  57457. },
  57458. onSuccess: {
  57459. type: definePropType(Function),
  57460. default: NOOP
  57461. },
  57462. onProgress: {
  57463. type: definePropType(Function),
  57464. default: NOOP
  57465. },
  57466. onError: {
  57467. type: definePropType(Function),
  57468. default: NOOP
  57469. },
  57470. onExceed: {
  57471. type: definePropType(Function),
  57472. default: NOOP
  57473. }
  57474. });
  57475. // node_modules/element-plus/es/components/upload/src/upload-content2.mjs
  57476. var __default__109 = defineComponent({
  57477. name: "ElUploadContent",
  57478. inheritAttrs: false
  57479. });
  57480. var _sfc_main143 = defineComponent({
  57481. ...__default__109,
  57482. props: uploadContentProps,
  57483. setup(__props, { expose }) {
  57484. const props2 = __props;
  57485. const ns = useNamespace("upload");
  57486. const disabled = useFormDisabled();
  57487. const requests = shallowRef({});
  57488. const inputRef = shallowRef();
  57489. const uploadFiles = (files) => {
  57490. if (files.length === 0)
  57491. return;
  57492. const { autoUpload, limit, fileList, multiple, onStart, onExceed } = props2;
  57493. if (limit && fileList.length + files.length > limit) {
  57494. onExceed(files, fileList);
  57495. return;
  57496. }
  57497. if (!multiple) {
  57498. files = files.slice(0, 1);
  57499. }
  57500. for (const file of files) {
  57501. const rawFile = file;
  57502. rawFile.uid = genFileId();
  57503. onStart(rawFile);
  57504. if (autoUpload)
  57505. upload(rawFile);
  57506. }
  57507. };
  57508. const upload = async (rawFile) => {
  57509. inputRef.value.value = "";
  57510. if (!props2.beforeUpload) {
  57511. return doUpload(rawFile);
  57512. }
  57513. let hookResult;
  57514. let beforeData = {};
  57515. try {
  57516. const originData = props2.data;
  57517. const beforeUploadPromise = props2.beforeUpload(rawFile);
  57518. beforeData = isPlainObject(props2.data) ? cloneDeep_default(props2.data) : props2.data;
  57519. hookResult = await beforeUploadPromise;
  57520. if (isPlainObject(props2.data) && isEqual_default(originData, beforeData)) {
  57521. beforeData = cloneDeep_default(props2.data);
  57522. }
  57523. } catch (e) {
  57524. hookResult = false;
  57525. }
  57526. if (hookResult === false) {
  57527. props2.onRemove(rawFile);
  57528. return;
  57529. }
  57530. let file = rawFile;
  57531. if (hookResult instanceof Blob) {
  57532. if (hookResult instanceof File) {
  57533. file = hookResult;
  57534. } else {
  57535. file = new File([hookResult], rawFile.name, {
  57536. type: rawFile.type
  57537. });
  57538. }
  57539. }
  57540. doUpload(Object.assign(file, {
  57541. uid: rawFile.uid
  57542. }), beforeData);
  57543. };
  57544. const resolveData = async (data, rawFile) => {
  57545. if (isFunction(data)) {
  57546. return data(rawFile);
  57547. }
  57548. return data;
  57549. };
  57550. const doUpload = async (rawFile, beforeData) => {
  57551. const {
  57552. headers,
  57553. data,
  57554. method: method5,
  57555. withCredentials,
  57556. name: filename,
  57557. action,
  57558. onProgress,
  57559. onSuccess,
  57560. onError,
  57561. httpRequest
  57562. } = props2;
  57563. try {
  57564. beforeData = await resolveData(beforeData != null ? beforeData : data, rawFile);
  57565. } catch (e) {
  57566. props2.onRemove(rawFile);
  57567. return;
  57568. }
  57569. const { uid: uid2 } = rawFile;
  57570. const options = {
  57571. headers: headers || {},
  57572. withCredentials,
  57573. file: rawFile,
  57574. data: beforeData,
  57575. method: method5,
  57576. filename,
  57577. action,
  57578. onProgress: (evt) => {
  57579. onProgress(evt, rawFile);
  57580. },
  57581. onSuccess: (res) => {
  57582. onSuccess(res, rawFile);
  57583. delete requests.value[uid2];
  57584. },
  57585. onError: (err) => {
  57586. onError(err, rawFile);
  57587. delete requests.value[uid2];
  57588. }
  57589. };
  57590. const request = httpRequest(options);
  57591. requests.value[uid2] = request;
  57592. if (request instanceof Promise) {
  57593. request.then(options.onSuccess, options.onError);
  57594. }
  57595. };
  57596. const handleChange = (e) => {
  57597. const files = e.target.files;
  57598. if (!files)
  57599. return;
  57600. uploadFiles(Array.from(files));
  57601. };
  57602. const handleClick = () => {
  57603. if (!disabled.value) {
  57604. inputRef.value.value = "";
  57605. inputRef.value.click();
  57606. }
  57607. };
  57608. const handleKeydown = () => {
  57609. handleClick();
  57610. };
  57611. const abort = (file) => {
  57612. const _reqs = entriesOf(requests.value).filter(file ? ([uid2]) => String(file.uid) === uid2 : () => true);
  57613. _reqs.forEach(([uid2, req]) => {
  57614. if (req instanceof XMLHttpRequest)
  57615. req.abort();
  57616. delete requests.value[uid2];
  57617. });
  57618. };
  57619. expose({
  57620. abort,
  57621. upload
  57622. });
  57623. return (_ctx, _cache) => {
  57624. return openBlock(), createElementBlock("div", {
  57625. class: normalizeClass([
  57626. unref(ns).b(),
  57627. unref(ns).m(_ctx.listType),
  57628. unref(ns).is("drag", _ctx.drag),
  57629. unref(ns).is("disabled", unref(disabled))
  57630. ]),
  57631. tabindex: unref(disabled) ? void 0 : 0,
  57632. "aria-disabled": unref(disabled),
  57633. role: "button",
  57634. onClick: handleClick,
  57635. onKeydown: withKeys(withModifiers(handleKeydown, ["self"]), ["enter", "space"])
  57636. }, [
  57637. _ctx.drag ? (openBlock(), createBlock(UploadDragger, {
  57638. key: 0,
  57639. disabled: unref(disabled),
  57640. onFile: uploadFiles
  57641. }, {
  57642. default: withCtx(() => [
  57643. renderSlot(_ctx.$slots, "default")
  57644. ]),
  57645. _: 3
  57646. }, 8, ["disabled"])) : renderSlot(_ctx.$slots, "default", { key: 1 }),
  57647. createBaseVNode("input", {
  57648. ref_key: "inputRef",
  57649. ref: inputRef,
  57650. class: normalizeClass(unref(ns).e("input")),
  57651. name: _ctx.name,
  57652. disabled: unref(disabled),
  57653. multiple: _ctx.multiple,
  57654. accept: _ctx.accept,
  57655. type: "file",
  57656. onChange: handleChange,
  57657. onClick: withModifiers(() => {
  57658. }, ["stop"])
  57659. }, null, 42, ["name", "disabled", "multiple", "accept", "onClick"])
  57660. ], 42, ["tabindex", "aria-disabled", "onKeydown"]);
  57661. };
  57662. }
  57663. });
  57664. var UploadContent = _export_sfc(_sfc_main143, [["__file", "upload-content.vue"]]);
  57665. // node_modules/element-plus/es/components/upload/src/use-handlers.mjs
  57666. var SCOPE9 = "ElUpload";
  57667. var revokeFileObjectURL = (file) => {
  57668. var _a2;
  57669. if ((_a2 = file.url) == null ? void 0 : _a2.startsWith("blob:")) {
  57670. URL.revokeObjectURL(file.url);
  57671. }
  57672. };
  57673. var useHandlers = (props2, uploadRef) => {
  57674. const uploadFiles = useVModel(props2, "fileList", void 0, { passive: true });
  57675. const getFile = (rawFile) => uploadFiles.value.find((file) => file.uid === rawFile.uid);
  57676. function abort(file) {
  57677. var _a2;
  57678. (_a2 = uploadRef.value) == null ? void 0 : _a2.abort(file);
  57679. }
  57680. function clearFiles(states = ["ready", "uploading", "success", "fail"]) {
  57681. uploadFiles.value = uploadFiles.value.filter((row) => !states.includes(row.status));
  57682. }
  57683. function removeFile(file) {
  57684. uploadFiles.value = uploadFiles.value.filter((uploadFile) => uploadFile.uid !== file.uid);
  57685. }
  57686. const handleError = (err, rawFile) => {
  57687. const file = getFile(rawFile);
  57688. if (!file)
  57689. return;
  57690. console.error(err);
  57691. file.status = "fail";
  57692. removeFile(file);
  57693. props2.onError(err, file, uploadFiles.value);
  57694. props2.onChange(file, uploadFiles.value);
  57695. };
  57696. const handleProgress = (evt, rawFile) => {
  57697. const file = getFile(rawFile);
  57698. if (!file)
  57699. return;
  57700. props2.onProgress(evt, file, uploadFiles.value);
  57701. file.status = "uploading";
  57702. file.percentage = Math.round(evt.percent);
  57703. };
  57704. const handleSuccess = (response, rawFile) => {
  57705. const file = getFile(rawFile);
  57706. if (!file)
  57707. return;
  57708. file.status = "success";
  57709. file.response = response;
  57710. props2.onSuccess(response, file, uploadFiles.value);
  57711. props2.onChange(file, uploadFiles.value);
  57712. };
  57713. const handleStart = (file) => {
  57714. if (isNil_default(file.uid))
  57715. file.uid = genFileId();
  57716. const uploadFile = {
  57717. name: file.name,
  57718. percentage: 0,
  57719. status: "ready",
  57720. size: file.size,
  57721. raw: file,
  57722. uid: file.uid
  57723. };
  57724. if (props2.listType === "picture-card" || props2.listType === "picture") {
  57725. try {
  57726. uploadFile.url = URL.createObjectURL(file);
  57727. } catch (err) {
  57728. debugWarn(SCOPE9, err.message);
  57729. props2.onError(err, uploadFile, uploadFiles.value);
  57730. }
  57731. }
  57732. uploadFiles.value = [...uploadFiles.value, uploadFile];
  57733. props2.onChange(uploadFile, uploadFiles.value);
  57734. };
  57735. const handleRemove = async (file) => {
  57736. const uploadFile = file instanceof File ? getFile(file) : file;
  57737. if (!uploadFile)
  57738. throwError(SCOPE9, "file to be removed not found");
  57739. const doRemove = (file2) => {
  57740. abort(file2);
  57741. removeFile(file2);
  57742. props2.onRemove(file2, uploadFiles.value);
  57743. revokeFileObjectURL(file2);
  57744. };
  57745. if (props2.beforeRemove) {
  57746. const before2 = await props2.beforeRemove(uploadFile, uploadFiles.value);
  57747. if (before2 !== false)
  57748. doRemove(uploadFile);
  57749. } else {
  57750. doRemove(uploadFile);
  57751. }
  57752. };
  57753. function submit() {
  57754. uploadFiles.value.filter(({ status }) => status === "ready").forEach(({ raw }) => {
  57755. var _a2;
  57756. return raw && ((_a2 = uploadRef.value) == null ? void 0 : _a2.upload(raw));
  57757. });
  57758. }
  57759. watch(() => props2.listType, (val) => {
  57760. if (val !== "picture-card" && val !== "picture") {
  57761. return;
  57762. }
  57763. uploadFiles.value = uploadFiles.value.map((file) => {
  57764. const { raw, url: url2 } = file;
  57765. if (!url2 && raw) {
  57766. try {
  57767. file.url = URL.createObjectURL(raw);
  57768. } catch (err) {
  57769. props2.onError(err, file, uploadFiles.value);
  57770. }
  57771. }
  57772. return file;
  57773. });
  57774. });
  57775. watch(uploadFiles, (files) => {
  57776. for (const file of files) {
  57777. file.uid || (file.uid = genFileId());
  57778. file.status || (file.status = "success");
  57779. }
  57780. }, { immediate: true, deep: true });
  57781. return {
  57782. uploadFiles,
  57783. abort,
  57784. clearFiles,
  57785. handleError,
  57786. handleProgress,
  57787. handleStart,
  57788. handleSuccess,
  57789. handleRemove,
  57790. submit,
  57791. revokeFileObjectURL
  57792. };
  57793. };
  57794. // node_modules/element-plus/es/components/upload/src/upload2.mjs
  57795. var __default__110 = defineComponent({
  57796. name: "ElUpload"
  57797. });
  57798. var _sfc_main144 = defineComponent({
  57799. ...__default__110,
  57800. props: uploadProps,
  57801. setup(__props, { expose }) {
  57802. const props2 = __props;
  57803. const disabled = useFormDisabled();
  57804. const uploadRef = shallowRef();
  57805. const {
  57806. abort,
  57807. submit,
  57808. clearFiles,
  57809. uploadFiles,
  57810. handleStart,
  57811. handleError,
  57812. handleRemove,
  57813. handleSuccess,
  57814. handleProgress,
  57815. revokeFileObjectURL: revokeFileObjectURL2
  57816. } = useHandlers(props2, uploadRef);
  57817. const isPictureCard = computed(() => props2.listType === "picture-card");
  57818. const uploadContentProps2 = computed(() => ({
  57819. ...props2,
  57820. fileList: uploadFiles.value,
  57821. onStart: handleStart,
  57822. onProgress: handleProgress,
  57823. onSuccess: handleSuccess,
  57824. onError: handleError,
  57825. onRemove: handleRemove
  57826. }));
  57827. onBeforeUnmount(() => {
  57828. uploadFiles.value.forEach(revokeFileObjectURL2);
  57829. });
  57830. provide(uploadContextKey, {
  57831. accept: toRef(props2, "accept")
  57832. });
  57833. expose({
  57834. abort,
  57835. submit,
  57836. clearFiles,
  57837. handleStart,
  57838. handleRemove
  57839. });
  57840. return (_ctx, _cache) => {
  57841. return openBlock(), createElementBlock("div", null, [
  57842. unref(isPictureCard) && _ctx.showFileList ? (openBlock(), createBlock(UploadList, {
  57843. key: 0,
  57844. disabled: unref(disabled),
  57845. "list-type": _ctx.listType,
  57846. files: unref(uploadFiles),
  57847. crossorigin: _ctx.crossorigin,
  57848. "handle-preview": _ctx.onPreview,
  57849. onRemove: unref(handleRemove)
  57850. }, createSlots({
  57851. append: withCtx(() => [
  57852. createVNode(UploadContent, mergeProps({
  57853. ref_key: "uploadRef",
  57854. ref: uploadRef
  57855. }, unref(uploadContentProps2)), {
  57856. default: withCtx(() => [
  57857. _ctx.$slots.trigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }) : createCommentVNode("v-if", true),
  57858. !_ctx.$slots.trigger && _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
  57859. ]),
  57860. _: 3
  57861. }, 16)
  57862. ]),
  57863. _: 2
  57864. }, [
  57865. _ctx.$slots.file ? {
  57866. name: "default",
  57867. fn: withCtx(({ file, index }) => [
  57868. renderSlot(_ctx.$slots, "file", {
  57869. file,
  57870. index
  57871. })
  57872. ])
  57873. } : void 0
  57874. ]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true),
  57875. !unref(isPictureCard) || unref(isPictureCard) && !_ctx.showFileList ? (openBlock(), createBlock(UploadContent, mergeProps({
  57876. key: 1,
  57877. ref_key: "uploadRef",
  57878. ref: uploadRef
  57879. }, unref(uploadContentProps2)), {
  57880. default: withCtx(() => [
  57881. _ctx.$slots.trigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }) : createCommentVNode("v-if", true),
  57882. !_ctx.$slots.trigger && _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
  57883. ]),
  57884. _: 3
  57885. }, 16)) : createCommentVNode("v-if", true),
  57886. _ctx.$slots.trigger ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("v-if", true),
  57887. renderSlot(_ctx.$slots, "tip"),
  57888. !unref(isPictureCard) && _ctx.showFileList ? (openBlock(), createBlock(UploadList, {
  57889. key: 3,
  57890. disabled: unref(disabled),
  57891. "list-type": _ctx.listType,
  57892. files: unref(uploadFiles),
  57893. crossorigin: _ctx.crossorigin,
  57894. "handle-preview": _ctx.onPreview,
  57895. onRemove: unref(handleRemove)
  57896. }, createSlots({
  57897. _: 2
  57898. }, [
  57899. _ctx.$slots.file ? {
  57900. name: "default",
  57901. fn: withCtx(({ file, index }) => [
  57902. renderSlot(_ctx.$slots, "file", {
  57903. file,
  57904. index
  57905. })
  57906. ])
  57907. } : void 0
  57908. ]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true)
  57909. ]);
  57910. };
  57911. }
  57912. });
  57913. var Upload = _export_sfc(_sfc_main144, [["__file", "upload.vue"]]);
  57914. // node_modules/element-plus/es/components/upload/index.mjs
  57915. var ElUpload = withInstall(Upload);
  57916. // node_modules/element-plus/es/components/watermark/src/watermark.mjs
  57917. var watermarkProps = buildProps({
  57918. zIndex: {
  57919. type: Number,
  57920. default: 9
  57921. },
  57922. rotate: {
  57923. type: Number,
  57924. default: -22
  57925. },
  57926. width: Number,
  57927. height: Number,
  57928. image: String,
  57929. content: {
  57930. type: definePropType([String, Array]),
  57931. default: "Element Plus"
  57932. },
  57933. font: {
  57934. type: definePropType(Object)
  57935. },
  57936. gap: {
  57937. type: definePropType(Array),
  57938. default: () => [100, 100]
  57939. },
  57940. offset: {
  57941. type: definePropType(Array)
  57942. }
  57943. });
  57944. // node_modules/element-plus/es/components/watermark/src/utils.mjs
  57945. function toLowercaseSeparator(key) {
  57946. return key.replace(/([A-Z])/g, "-$1").toLowerCase();
  57947. }
  57948. function getStyleStr(style) {
  57949. return Object.keys(style).map((key) => `${toLowercaseSeparator(key)}: ${style[key]};`).join(" ");
  57950. }
  57951. function getPixelRatio() {
  57952. return window.devicePixelRatio || 1;
  57953. }
  57954. var reRendering = (mutation, watermarkElement) => {
  57955. let flag = false;
  57956. if (mutation.removedNodes.length && watermarkElement) {
  57957. flag = Array.from(mutation.removedNodes).includes(watermarkElement);
  57958. }
  57959. if (mutation.type === "attributes" && mutation.target === watermarkElement) {
  57960. flag = true;
  57961. }
  57962. return flag;
  57963. };
  57964. // node_modules/element-plus/es/components/watermark/src/useClips.mjs
  57965. var TEXT_ALIGN_RATIO_MAP = {
  57966. left: [0, 0.5],
  57967. start: [0, 0.5],
  57968. center: [0.5, 0],
  57969. right: [1, -0.5],
  57970. end: [1, -0.5]
  57971. };
  57972. function prepareCanvas(width, height, ratio = 1) {
  57973. const canvas = document.createElement("canvas");
  57974. const ctx = canvas.getContext("2d");
  57975. const realWidth = width * ratio;
  57976. const realHeight = height * ratio;
  57977. canvas.setAttribute("width", `${realWidth}px`);
  57978. canvas.setAttribute("height", `${realHeight}px`);
  57979. ctx.save();
  57980. return [ctx, canvas, realWidth, realHeight];
  57981. }
  57982. function useClips() {
  57983. function getClips(content, rotate, ratio, width, height, font, gapX, gapY, space) {
  57984. const [ctx, canvas, contentWidth, contentHeight] = prepareCanvas(width, height, ratio);
  57985. if (content instanceof HTMLImageElement) {
  57986. ctx.drawImage(content, 0, 0, contentWidth, contentHeight);
  57987. } else {
  57988. const {
  57989. color,
  57990. fontSize,
  57991. fontStyle,
  57992. fontWeight,
  57993. fontFamily,
  57994. textAlign,
  57995. textBaseline
  57996. } = font;
  57997. const mergedFontSize = Number(fontSize) * ratio;
  57998. ctx.font = `${fontStyle} normal ${fontWeight} ${mergedFontSize}px/${height}px ${fontFamily}`;
  57999. ctx.fillStyle = color;
  58000. ctx.textAlign = textAlign;
  58001. ctx.textBaseline = textBaseline;
  58002. const contents = isArray(content) ? content : [content];
  58003. contents == null ? void 0 : contents.forEach((item, index) => {
  58004. const [alignRatio, spaceRatio] = TEXT_ALIGN_RATIO_MAP[textAlign];
  58005. ctx.fillText(item != null ? item : "", contentWidth * alignRatio + space * spaceRatio, index * (mergedFontSize + font.fontGap * ratio));
  58006. });
  58007. }
  58008. const angle = Math.PI / 180 * Number(rotate);
  58009. const maxSize = Math.max(width, height);
  58010. const [rCtx, rCanvas, realMaxSize] = prepareCanvas(maxSize, maxSize, ratio);
  58011. rCtx.translate(realMaxSize / 2, realMaxSize / 2);
  58012. rCtx.rotate(angle);
  58013. if (contentWidth > 0 && contentHeight > 0) {
  58014. rCtx.drawImage(canvas, -contentWidth / 2, -contentHeight / 2);
  58015. }
  58016. function getRotatePos(x2, y) {
  58017. const targetX = x2 * Math.cos(angle) - y * Math.sin(angle);
  58018. const targetY = x2 * Math.sin(angle) + y * Math.cos(angle);
  58019. return [targetX, targetY];
  58020. }
  58021. let left = 0;
  58022. let right = 0;
  58023. let top = 0;
  58024. let bottom = 0;
  58025. const halfWidth = contentWidth / 2;
  58026. const halfHeight = contentHeight / 2;
  58027. const points = [
  58028. [0 - halfWidth, 0 - halfHeight],
  58029. [0 + halfWidth, 0 - halfHeight],
  58030. [0 + halfWidth, 0 + halfHeight],
  58031. [0 - halfWidth, 0 + halfHeight]
  58032. ];
  58033. points.forEach(([x2, y]) => {
  58034. const [targetX, targetY] = getRotatePos(x2, y);
  58035. left = Math.min(left, targetX);
  58036. right = Math.max(right, targetX);
  58037. top = Math.min(top, targetY);
  58038. bottom = Math.max(bottom, targetY);
  58039. });
  58040. const cutLeft = left + realMaxSize / 2;
  58041. const cutTop = top + realMaxSize / 2;
  58042. const cutWidth = right - left;
  58043. const cutHeight = bottom - top;
  58044. const realGapX = gapX * ratio;
  58045. const realGapY = gapY * ratio;
  58046. const filledWidth = (cutWidth + realGapX) * 2;
  58047. const filledHeight = cutHeight + realGapY;
  58048. const [fCtx, fCanvas] = prepareCanvas(filledWidth, filledHeight);
  58049. function drawImg(targetX = 0, targetY = 0) {
  58050. fCtx.drawImage(rCanvas, cutLeft, cutTop, cutWidth, cutHeight, targetX, targetY, cutWidth, cutHeight);
  58051. }
  58052. drawImg();
  58053. drawImg(cutWidth + realGapX, -cutHeight / 2 - realGapY / 2);
  58054. drawImg(cutWidth + realGapX, +cutHeight / 2 + realGapY / 2);
  58055. return [fCanvas.toDataURL(), filledWidth / ratio, filledHeight / ratio];
  58056. }
  58057. return getClips;
  58058. }
  58059. // node_modules/element-plus/es/components/watermark/src/watermark2.mjs
  58060. var __default__111 = defineComponent({
  58061. name: "ElWatermark"
  58062. });
  58063. var _sfc_main145 = defineComponent({
  58064. ...__default__111,
  58065. props: watermarkProps,
  58066. setup(__props) {
  58067. const props2 = __props;
  58068. const style = {
  58069. position: "relative"
  58070. };
  58071. const fontGap = computed(() => {
  58072. var _a2, _b;
  58073. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontGap) != null ? _b : 3;
  58074. });
  58075. const color = computed(() => {
  58076. var _a2, _b;
  58077. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.color) != null ? _b : "rgba(0,0,0,.15)";
  58078. });
  58079. const fontSize = computed(() => {
  58080. var _a2, _b;
  58081. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontSize) != null ? _b : 16;
  58082. });
  58083. const fontWeight = computed(() => {
  58084. var _a2, _b;
  58085. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontWeight) != null ? _b : "normal";
  58086. });
  58087. const fontStyle = computed(() => {
  58088. var _a2, _b;
  58089. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontStyle) != null ? _b : "normal";
  58090. });
  58091. const fontFamily = computed(() => {
  58092. var _a2, _b;
  58093. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontFamily) != null ? _b : "sans-serif";
  58094. });
  58095. const textAlign = computed(() => {
  58096. var _a2, _b;
  58097. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.textAlign) != null ? _b : "center";
  58098. });
  58099. const textBaseline = computed(() => {
  58100. var _a2, _b;
  58101. return (_b = (_a2 = props2.font) == null ? void 0 : _a2.textBaseline) != null ? _b : "hanging";
  58102. });
  58103. const gapX = computed(() => props2.gap[0]);
  58104. const gapY = computed(() => props2.gap[1]);
  58105. const gapXCenter = computed(() => gapX.value / 2);
  58106. const gapYCenter = computed(() => gapY.value / 2);
  58107. const offsetLeft = computed(() => {
  58108. var _a2, _b;
  58109. return (_b = (_a2 = props2.offset) == null ? void 0 : _a2[0]) != null ? _b : gapXCenter.value;
  58110. });
  58111. const offsetTop = computed(() => {
  58112. var _a2, _b;
  58113. return (_b = (_a2 = props2.offset) == null ? void 0 : _a2[1]) != null ? _b : gapYCenter.value;
  58114. });
  58115. const getMarkStyle = () => {
  58116. const markStyle = {
  58117. zIndex: props2.zIndex,
  58118. position: "absolute",
  58119. left: 0,
  58120. top: 0,
  58121. width: "100%",
  58122. height: "100%",
  58123. pointerEvents: "none",
  58124. backgroundRepeat: "repeat"
  58125. };
  58126. let positionLeft = offsetLeft.value - gapXCenter.value;
  58127. let positionTop = offsetTop.value - gapYCenter.value;
  58128. if (positionLeft > 0) {
  58129. markStyle.left = `${positionLeft}px`;
  58130. markStyle.width = `calc(100% - ${positionLeft}px)`;
  58131. positionLeft = 0;
  58132. }
  58133. if (positionTop > 0) {
  58134. markStyle.top = `${positionTop}px`;
  58135. markStyle.height = `calc(100% - ${positionTop}px)`;
  58136. positionTop = 0;
  58137. }
  58138. markStyle.backgroundPosition = `${positionLeft}px ${positionTop}px`;
  58139. return markStyle;
  58140. };
  58141. const containerRef = shallowRef(null);
  58142. const watermarkRef = shallowRef();
  58143. const stopObservation = ref(false);
  58144. const destroyWatermark = () => {
  58145. if (watermarkRef.value) {
  58146. watermarkRef.value.remove();
  58147. watermarkRef.value = void 0;
  58148. }
  58149. };
  58150. const appendWatermark = (base64Url, markWidth) => {
  58151. var _a2;
  58152. if (containerRef.value && watermarkRef.value) {
  58153. stopObservation.value = true;
  58154. watermarkRef.value.setAttribute("style", getStyleStr({
  58155. ...getMarkStyle(),
  58156. backgroundImage: `url('${base64Url}')`,
  58157. backgroundSize: `${Math.floor(markWidth)}px`
  58158. }));
  58159. (_a2 = containerRef.value) == null ? void 0 : _a2.append(watermarkRef.value);
  58160. setTimeout(() => {
  58161. stopObservation.value = false;
  58162. });
  58163. }
  58164. };
  58165. const getMarkSize = (ctx) => {
  58166. let defaultWidth = 120;
  58167. let defaultHeight = 64;
  58168. let space = 0;
  58169. const { image, content, width, height, rotate } = props2;
  58170. if (!image && ctx.measureText) {
  58171. ctx.font = `${Number(fontSize.value)}px ${fontFamily.value}`;
  58172. const contents = isArray(content) ? content : [content];
  58173. let maxWidth = 0;
  58174. let maxHeight = 0;
  58175. contents.forEach((item) => {
  58176. const {
  58177. width: width2,
  58178. fontBoundingBoxAscent,
  58179. fontBoundingBoxDescent,
  58180. actualBoundingBoxAscent,
  58181. actualBoundingBoxDescent
  58182. } = ctx.measureText(item);
  58183. const height2 = isUndefined2(fontBoundingBoxAscent) ? actualBoundingBoxAscent + actualBoundingBoxDescent : fontBoundingBoxAscent + fontBoundingBoxDescent;
  58184. if (width2 > maxWidth)
  58185. maxWidth = Math.ceil(width2);
  58186. if (height2 > maxHeight)
  58187. maxHeight = Math.ceil(height2);
  58188. });
  58189. defaultWidth = maxWidth;
  58190. defaultHeight = maxHeight * contents.length + (contents.length - 1) * fontGap.value;
  58191. const angle = Math.PI / 180 * Number(rotate);
  58192. space = Math.ceil(Math.abs(Math.sin(angle) * defaultHeight) / 2);
  58193. defaultWidth += space;
  58194. }
  58195. return [width != null ? width : defaultWidth, height != null ? height : defaultHeight, space];
  58196. };
  58197. const getClips = useClips();
  58198. const renderWatermark = () => {
  58199. const canvas = document.createElement("canvas");
  58200. const ctx = canvas.getContext("2d");
  58201. const image = props2.image;
  58202. const content = props2.content;
  58203. const rotate = props2.rotate;
  58204. if (ctx) {
  58205. if (!watermarkRef.value) {
  58206. watermarkRef.value = document.createElement("div");
  58207. }
  58208. const ratio = getPixelRatio();
  58209. const [markWidth, markHeight, space] = getMarkSize(ctx);
  58210. const drawCanvas = (drawContent) => {
  58211. const [textClips, clipWidth] = getClips(drawContent || "", rotate, ratio, markWidth, markHeight, {
  58212. color: color.value,
  58213. fontSize: fontSize.value,
  58214. fontStyle: fontStyle.value,
  58215. fontWeight: fontWeight.value,
  58216. fontFamily: fontFamily.value,
  58217. fontGap: fontGap.value,
  58218. textAlign: textAlign.value,
  58219. textBaseline: textBaseline.value
  58220. }, gapX.value, gapY.value, space);
  58221. appendWatermark(textClips, clipWidth);
  58222. };
  58223. if (image) {
  58224. const img = new Image();
  58225. img.onload = () => {
  58226. drawCanvas(img);
  58227. };
  58228. img.onerror = () => {
  58229. drawCanvas(content);
  58230. };
  58231. img.crossOrigin = "anonymous";
  58232. img.referrerPolicy = "no-referrer";
  58233. img.src = image;
  58234. } else {
  58235. drawCanvas(content);
  58236. }
  58237. }
  58238. };
  58239. onMounted(() => {
  58240. renderWatermark();
  58241. });
  58242. watch(() => props2, () => {
  58243. renderWatermark();
  58244. }, {
  58245. deep: true,
  58246. flush: "post"
  58247. });
  58248. onBeforeUnmount(() => {
  58249. destroyWatermark();
  58250. });
  58251. const onMutate = (mutations) => {
  58252. if (stopObservation.value) {
  58253. return;
  58254. }
  58255. mutations.forEach((mutation) => {
  58256. if (reRendering(mutation, watermarkRef.value)) {
  58257. destroyWatermark();
  58258. renderWatermark();
  58259. }
  58260. });
  58261. };
  58262. useMutationObserver(containerRef, onMutate, {
  58263. attributes: true,
  58264. subtree: true,
  58265. childList: true
  58266. });
  58267. return (_ctx, _cache) => {
  58268. return openBlock(), createElementBlock("div", {
  58269. ref_key: "containerRef",
  58270. ref: containerRef,
  58271. style: normalizeStyle([style])
  58272. }, [
  58273. renderSlot(_ctx.$slots, "default")
  58274. ], 4);
  58275. };
  58276. }
  58277. });
  58278. var Watermark = _export_sfc(_sfc_main145, [["__file", "watermark.vue"]]);
  58279. // node_modules/element-plus/es/components/watermark/index.mjs
  58280. var ElWatermark = withInstall(Watermark);
  58281. // node_modules/element-plus/es/components/tour/src/mask.mjs
  58282. var maskProps = buildProps({
  58283. zIndex: {
  58284. type: Number,
  58285. default: 1001
  58286. },
  58287. visible: Boolean,
  58288. fill: {
  58289. type: String,
  58290. default: "rgba(0,0,0,0.5)"
  58291. },
  58292. pos: {
  58293. type: definePropType(Object)
  58294. },
  58295. targetAreaClickable: {
  58296. type: Boolean,
  58297. default: true
  58298. }
  58299. });
  58300. // node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
  58301. var sides = ["top", "right", "bottom", "left"];
  58302. var alignments = ["start", "end"];
  58303. var placements = sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
  58304. var min3 = Math.min;
  58305. var max3 = Math.max;
  58306. var round2 = Math.round;
  58307. var floor3 = Math.floor;
  58308. var createCoords = (v2) => ({
  58309. x: v2,
  58310. y: v2
  58311. });
  58312. var oppositeSideMap = {
  58313. left: "right",
  58314. right: "left",
  58315. bottom: "top",
  58316. top: "bottom"
  58317. };
  58318. var oppositeAlignmentMap = {
  58319. start: "end",
  58320. end: "start"
  58321. };
  58322. function clamp3(start, value, end) {
  58323. return max3(start, min3(value, end));
  58324. }
  58325. function evaluate(value, param) {
  58326. return typeof value === "function" ? value(param) : value;
  58327. }
  58328. function getSide(placement) {
  58329. return placement.split("-")[0];
  58330. }
  58331. function getAlignment(placement) {
  58332. return placement.split("-")[1];
  58333. }
  58334. function getOppositeAxis(axis) {
  58335. return axis === "x" ? "y" : "x";
  58336. }
  58337. function getAxisLength(axis) {
  58338. return axis === "y" ? "height" : "width";
  58339. }
  58340. var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
  58341. function getSideAxis(placement) {
  58342. return yAxisSides.has(getSide(placement)) ? "y" : "x";
  58343. }
  58344. function getAlignmentAxis(placement) {
  58345. return getOppositeAxis(getSideAxis(placement));
  58346. }
  58347. function getAlignmentSides(placement, rects, rtl) {
  58348. if (rtl === void 0) {
  58349. rtl = false;
  58350. }
  58351. const alignment = getAlignment(placement);
  58352. const alignmentAxis = getAlignmentAxis(placement);
  58353. const length = getAxisLength(alignmentAxis);
  58354. let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
  58355. if (rects.reference[length] > rects.floating[length]) {
  58356. mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
  58357. }
  58358. return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
  58359. }
  58360. function getExpandedPlacements(placement) {
  58361. const oppositePlacement = getOppositePlacement(placement);
  58362. return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
  58363. }
  58364. function getOppositeAlignmentPlacement(placement) {
  58365. return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
  58366. }
  58367. var lrPlacement = ["left", "right"];
  58368. var rlPlacement = ["right", "left"];
  58369. var tbPlacement = ["top", "bottom"];
  58370. var btPlacement = ["bottom", "top"];
  58371. function getSideList(side, isStart, rtl) {
  58372. switch (side) {
  58373. case "top":
  58374. case "bottom":
  58375. if (rtl) return isStart ? rlPlacement : lrPlacement;
  58376. return isStart ? lrPlacement : rlPlacement;
  58377. case "left":
  58378. case "right":
  58379. return isStart ? tbPlacement : btPlacement;
  58380. default:
  58381. return [];
  58382. }
  58383. }
  58384. function getOppositeAxisPlacements(placement, flipAlignment, direction2, rtl) {
  58385. const alignment = getAlignment(placement);
  58386. let list = getSideList(getSide(placement), direction2 === "start", rtl);
  58387. if (alignment) {
  58388. list = list.map((side) => side + "-" + alignment);
  58389. if (flipAlignment) {
  58390. list = list.concat(list.map(getOppositeAlignmentPlacement));
  58391. }
  58392. }
  58393. return list;
  58394. }
  58395. function getOppositePlacement(placement) {
  58396. return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
  58397. }
  58398. function expandPaddingObject(padding) {
  58399. return {
  58400. top: 0,
  58401. right: 0,
  58402. bottom: 0,
  58403. left: 0,
  58404. ...padding
  58405. };
  58406. }
  58407. function getPaddingObject(padding) {
  58408. return typeof padding !== "number" ? expandPaddingObject(padding) : {
  58409. top: padding,
  58410. right: padding,
  58411. bottom: padding,
  58412. left: padding
  58413. };
  58414. }
  58415. function rectToClientRect(rect) {
  58416. const {
  58417. x: x2,
  58418. y,
  58419. width,
  58420. height
  58421. } = rect;
  58422. return {
  58423. width,
  58424. height,
  58425. top: y,
  58426. left: x2,
  58427. right: x2 + width,
  58428. bottom: y + height,
  58429. x: x2,
  58430. y
  58431. };
  58432. }
  58433. // node_modules/@floating-ui/core/dist/floating-ui.core.mjs
  58434. function computeCoordsFromPlacement(_ref, placement, rtl) {
  58435. let {
  58436. reference,
  58437. floating
  58438. } = _ref;
  58439. const sideAxis = getSideAxis(placement);
  58440. const alignmentAxis = getAlignmentAxis(placement);
  58441. const alignLength = getAxisLength(alignmentAxis);
  58442. const side = getSide(placement);
  58443. const isVertical = sideAxis === "y";
  58444. const commonX = reference.x + reference.width / 2 - floating.width / 2;
  58445. const commonY = reference.y + reference.height / 2 - floating.height / 2;
  58446. const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
  58447. let coords;
  58448. switch (side) {
  58449. case "top":
  58450. coords = {
  58451. x: commonX,
  58452. y: reference.y - floating.height
  58453. };
  58454. break;
  58455. case "bottom":
  58456. coords = {
  58457. x: commonX,
  58458. y: reference.y + reference.height
  58459. };
  58460. break;
  58461. case "right":
  58462. coords = {
  58463. x: reference.x + reference.width,
  58464. y: commonY
  58465. };
  58466. break;
  58467. case "left":
  58468. coords = {
  58469. x: reference.x - floating.width,
  58470. y: commonY
  58471. };
  58472. break;
  58473. default:
  58474. coords = {
  58475. x: reference.x,
  58476. y: reference.y
  58477. };
  58478. }
  58479. switch (getAlignment(placement)) {
  58480. case "start":
  58481. coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
  58482. break;
  58483. case "end":
  58484. coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
  58485. break;
  58486. }
  58487. return coords;
  58488. }
  58489. var computePosition = async (reference, floating, config) => {
  58490. const {
  58491. placement = "bottom",
  58492. strategy = "absolute",
  58493. middleware = [],
  58494. platform: platform2
  58495. } = config;
  58496. const validMiddleware = middleware.filter(Boolean);
  58497. const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
  58498. let rects = await platform2.getElementRects({
  58499. reference,
  58500. floating,
  58501. strategy
  58502. });
  58503. let {
  58504. x: x2,
  58505. y
  58506. } = computeCoordsFromPlacement(rects, placement, rtl);
  58507. let statefulPlacement = placement;
  58508. let middlewareData = {};
  58509. let resetCount = 0;
  58510. for (let i = 0; i < validMiddleware.length; i++) {
  58511. const {
  58512. name,
  58513. fn: fn2
  58514. } = validMiddleware[i];
  58515. const {
  58516. x: nextX,
  58517. y: nextY,
  58518. data,
  58519. reset
  58520. } = await fn2({
  58521. x: x2,
  58522. y,
  58523. initialPlacement: placement,
  58524. placement: statefulPlacement,
  58525. strategy,
  58526. middlewareData,
  58527. rects,
  58528. platform: platform2,
  58529. elements: {
  58530. reference,
  58531. floating
  58532. }
  58533. });
  58534. x2 = nextX != null ? nextX : x2;
  58535. y = nextY != null ? nextY : y;
  58536. middlewareData = {
  58537. ...middlewareData,
  58538. [name]: {
  58539. ...middlewareData[name],
  58540. ...data
  58541. }
  58542. };
  58543. if (reset && resetCount <= 50) {
  58544. resetCount++;
  58545. if (typeof reset === "object") {
  58546. if (reset.placement) {
  58547. statefulPlacement = reset.placement;
  58548. }
  58549. if (reset.rects) {
  58550. rects = reset.rects === true ? await platform2.getElementRects({
  58551. reference,
  58552. floating,
  58553. strategy
  58554. }) : reset.rects;
  58555. }
  58556. ({
  58557. x: x2,
  58558. y
  58559. } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
  58560. }
  58561. i = -1;
  58562. }
  58563. }
  58564. return {
  58565. x: x2,
  58566. y,
  58567. placement: statefulPlacement,
  58568. strategy,
  58569. middlewareData
  58570. };
  58571. };
  58572. async function detectOverflow(state, options) {
  58573. var _await$platform$isEle;
  58574. if (options === void 0) {
  58575. options = {};
  58576. }
  58577. const {
  58578. x: x2,
  58579. y,
  58580. platform: platform2,
  58581. rects,
  58582. elements,
  58583. strategy
  58584. } = state;
  58585. const {
  58586. boundary = "clippingAncestors",
  58587. rootBoundary = "viewport",
  58588. elementContext = "floating",
  58589. altBoundary = false,
  58590. padding = 0
  58591. } = evaluate(options, state);
  58592. const paddingObject = getPaddingObject(padding);
  58593. const altContext = elementContext === "floating" ? "reference" : "floating";
  58594. const element = elements[altBoundary ? altContext : elementContext];
  58595. const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
  58596. element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
  58597. boundary,
  58598. rootBoundary,
  58599. strategy
  58600. }));
  58601. const rect = elementContext === "floating" ? {
  58602. x: x2,
  58603. y,
  58604. width: rects.floating.width,
  58605. height: rects.floating.height
  58606. } : rects.reference;
  58607. const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
  58608. const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
  58609. x: 1,
  58610. y: 1
  58611. } : {
  58612. x: 1,
  58613. y: 1
  58614. };
  58615. const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
  58616. elements,
  58617. rect,
  58618. offsetParent,
  58619. strategy
  58620. }) : rect);
  58621. return {
  58622. top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
  58623. bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
  58624. left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
  58625. right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
  58626. };
  58627. }
  58628. var arrow = (options) => ({
  58629. name: "arrow",
  58630. options,
  58631. async fn(state) {
  58632. const {
  58633. x: x2,
  58634. y,
  58635. placement,
  58636. rects,
  58637. platform: platform2,
  58638. elements,
  58639. middlewareData
  58640. } = state;
  58641. const {
  58642. element,
  58643. padding = 0
  58644. } = evaluate(options, state) || {};
  58645. if (element == null) {
  58646. return {};
  58647. }
  58648. const paddingObject = getPaddingObject(padding);
  58649. const coords = {
  58650. x: x2,
  58651. y
  58652. };
  58653. const axis = getAlignmentAxis(placement);
  58654. const length = getAxisLength(axis);
  58655. const arrowDimensions = await platform2.getDimensions(element);
  58656. const isYAxis = axis === "y";
  58657. const minProp = isYAxis ? "top" : "left";
  58658. const maxProp = isYAxis ? "bottom" : "right";
  58659. const clientProp = isYAxis ? "clientHeight" : "clientWidth";
  58660. const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
  58661. const startDiff = coords[axis] - rects.reference[axis];
  58662. const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
  58663. let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
  58664. if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
  58665. clientSize = elements.floating[clientProp] || rects.floating[length];
  58666. }
  58667. const centerToReference = endDiff / 2 - startDiff / 2;
  58668. const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
  58669. const minPadding = min3(paddingObject[minProp], largestPossiblePadding);
  58670. const maxPadding = min3(paddingObject[maxProp], largestPossiblePadding);
  58671. const min$1 = minPadding;
  58672. const max4 = clientSize - arrowDimensions[length] - maxPadding;
  58673. const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
  58674. const offset3 = clamp3(min$1, center, max4);
  58675. const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
  58676. const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max4 : 0;
  58677. return {
  58678. [axis]: coords[axis] + alignmentOffset,
  58679. data: {
  58680. [axis]: offset3,
  58681. centerOffset: center - offset3 - alignmentOffset,
  58682. ...shouldAddOffset && {
  58683. alignmentOffset
  58684. }
  58685. },
  58686. reset: shouldAddOffset
  58687. };
  58688. }
  58689. });
  58690. var flip2 = function(options) {
  58691. if (options === void 0) {
  58692. options = {};
  58693. }
  58694. return {
  58695. name: "flip",
  58696. options,
  58697. async fn(state) {
  58698. var _middlewareData$arrow, _middlewareData$flip;
  58699. const {
  58700. placement,
  58701. middlewareData,
  58702. rects,
  58703. initialPlacement,
  58704. platform: platform2,
  58705. elements
  58706. } = state;
  58707. const {
  58708. mainAxis: checkMainAxis = true,
  58709. crossAxis: checkCrossAxis = true,
  58710. fallbackPlacements: specifiedFallbackPlacements,
  58711. fallbackStrategy = "bestFit",
  58712. fallbackAxisSideDirection = "none",
  58713. flipAlignment = true,
  58714. ...detectOverflowOptions
  58715. } = evaluate(options, state);
  58716. if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
  58717. return {};
  58718. }
  58719. const side = getSide(placement);
  58720. const initialSideAxis = getSideAxis(initialPlacement);
  58721. const isBasePlacement = getSide(initialPlacement) === initialPlacement;
  58722. const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
  58723. const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
  58724. const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
  58725. if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
  58726. fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
  58727. }
  58728. const placements2 = [initialPlacement, ...fallbackPlacements];
  58729. const overflow = await detectOverflow(state, detectOverflowOptions);
  58730. const overflows = [];
  58731. let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
  58732. if (checkMainAxis) {
  58733. overflows.push(overflow[side]);
  58734. }
  58735. if (checkCrossAxis) {
  58736. const sides2 = getAlignmentSides(placement, rects, rtl);
  58737. overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
  58738. }
  58739. overflowsData = [...overflowsData, {
  58740. placement,
  58741. overflows
  58742. }];
  58743. if (!overflows.every((side2) => side2 <= 0)) {
  58744. var _middlewareData$flip2, _overflowsData$filter;
  58745. const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
  58746. const nextPlacement = placements2[nextIndex];
  58747. if (nextPlacement) {
  58748. const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
  58749. if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
  58750. // overflows the main axis.
  58751. overflowsData.every((d2) => getSideAxis(d2.placement) === initialSideAxis ? d2.overflows[0] > 0 : true)) {
  58752. return {
  58753. data: {
  58754. index: nextIndex,
  58755. overflows: overflowsData
  58756. },
  58757. reset: {
  58758. placement: nextPlacement
  58759. }
  58760. };
  58761. }
  58762. }
  58763. let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a2, b2) => a2.overflows[1] - b2.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
  58764. if (!resetPlacement) {
  58765. switch (fallbackStrategy) {
  58766. case "bestFit": {
  58767. var _overflowsData$filter2;
  58768. const placement2 = (_overflowsData$filter2 = overflowsData.filter((d2) => {
  58769. if (hasFallbackAxisSideDirection) {
  58770. const currentSideAxis = getSideAxis(d2.placement);
  58771. return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
  58772. // reading directions favoring greater width.
  58773. currentSideAxis === "y";
  58774. }
  58775. return true;
  58776. }).map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
  58777. if (placement2) {
  58778. resetPlacement = placement2;
  58779. }
  58780. break;
  58781. }
  58782. case "initialPlacement":
  58783. resetPlacement = initialPlacement;
  58784. break;
  58785. }
  58786. }
  58787. if (placement !== resetPlacement) {
  58788. return {
  58789. reset: {
  58790. placement: resetPlacement
  58791. }
  58792. };
  58793. }
  58794. }
  58795. return {};
  58796. }
  58797. };
  58798. };
  58799. var originSides = /* @__PURE__ */ new Set(["left", "top"]);
  58800. async function convertValueToCoords(state, options) {
  58801. const {
  58802. placement,
  58803. platform: platform2,
  58804. elements
  58805. } = state;
  58806. const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
  58807. const side = getSide(placement);
  58808. const alignment = getAlignment(placement);
  58809. const isVertical = getSideAxis(placement) === "y";
  58810. const mainAxisMulti = originSides.has(side) ? -1 : 1;
  58811. const crossAxisMulti = rtl && isVertical ? -1 : 1;
  58812. const rawValue = evaluate(options, state);
  58813. let {
  58814. mainAxis,
  58815. crossAxis,
  58816. alignmentAxis
  58817. } = typeof rawValue === "number" ? {
  58818. mainAxis: rawValue,
  58819. crossAxis: 0,
  58820. alignmentAxis: null
  58821. } : {
  58822. mainAxis: rawValue.mainAxis || 0,
  58823. crossAxis: rawValue.crossAxis || 0,
  58824. alignmentAxis: rawValue.alignmentAxis
  58825. };
  58826. if (alignment && typeof alignmentAxis === "number") {
  58827. crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
  58828. }
  58829. return isVertical ? {
  58830. x: crossAxis * crossAxisMulti,
  58831. y: mainAxis * mainAxisMulti
  58832. } : {
  58833. x: mainAxis * mainAxisMulti,
  58834. y: crossAxis * crossAxisMulti
  58835. };
  58836. }
  58837. var offset = function(options) {
  58838. if (options === void 0) {
  58839. options = 0;
  58840. }
  58841. return {
  58842. name: "offset",
  58843. options,
  58844. async fn(state) {
  58845. var _middlewareData$offse, _middlewareData$arrow;
  58846. const {
  58847. x: x2,
  58848. y,
  58849. placement,
  58850. middlewareData
  58851. } = state;
  58852. const diffCoords = await convertValueToCoords(state, options);
  58853. if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
  58854. return {};
  58855. }
  58856. return {
  58857. x: x2 + diffCoords.x,
  58858. y: y + diffCoords.y,
  58859. data: {
  58860. ...diffCoords,
  58861. placement
  58862. }
  58863. };
  58864. }
  58865. };
  58866. };
  58867. var shift = function(options) {
  58868. if (options === void 0) {
  58869. options = {};
  58870. }
  58871. return {
  58872. name: "shift",
  58873. options,
  58874. async fn(state) {
  58875. const {
  58876. x: x2,
  58877. y,
  58878. placement
  58879. } = state;
  58880. const {
  58881. mainAxis: checkMainAxis = true,
  58882. crossAxis: checkCrossAxis = false,
  58883. limiter = {
  58884. fn: (_ref) => {
  58885. let {
  58886. x: x3,
  58887. y: y2
  58888. } = _ref;
  58889. return {
  58890. x: x3,
  58891. y: y2
  58892. };
  58893. }
  58894. },
  58895. ...detectOverflowOptions
  58896. } = evaluate(options, state);
  58897. const coords = {
  58898. x: x2,
  58899. y
  58900. };
  58901. const overflow = await detectOverflow(state, detectOverflowOptions);
  58902. const crossAxis = getSideAxis(getSide(placement));
  58903. const mainAxis = getOppositeAxis(crossAxis);
  58904. let mainAxisCoord = coords[mainAxis];
  58905. let crossAxisCoord = coords[crossAxis];
  58906. if (checkMainAxis) {
  58907. const minSide = mainAxis === "y" ? "top" : "left";
  58908. const maxSide = mainAxis === "y" ? "bottom" : "right";
  58909. const min4 = mainAxisCoord + overflow[minSide];
  58910. const max4 = mainAxisCoord - overflow[maxSide];
  58911. mainAxisCoord = clamp3(min4, mainAxisCoord, max4);
  58912. }
  58913. if (checkCrossAxis) {
  58914. const minSide = crossAxis === "y" ? "top" : "left";
  58915. const maxSide = crossAxis === "y" ? "bottom" : "right";
  58916. const min4 = crossAxisCoord + overflow[minSide];
  58917. const max4 = crossAxisCoord - overflow[maxSide];
  58918. crossAxisCoord = clamp3(min4, crossAxisCoord, max4);
  58919. }
  58920. const limitedCoords = limiter.fn({
  58921. ...state,
  58922. [mainAxis]: mainAxisCoord,
  58923. [crossAxis]: crossAxisCoord
  58924. });
  58925. return {
  58926. ...limitedCoords,
  58927. data: {
  58928. x: limitedCoords.x - x2,
  58929. y: limitedCoords.y - y,
  58930. enabled: {
  58931. [mainAxis]: checkMainAxis,
  58932. [crossAxis]: checkCrossAxis
  58933. }
  58934. }
  58935. };
  58936. }
  58937. };
  58938. };
  58939. // node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
  58940. function hasWindow() {
  58941. return typeof window !== "undefined";
  58942. }
  58943. function getNodeName(node) {
  58944. if (isNode(node)) {
  58945. return (node.nodeName || "").toLowerCase();
  58946. }
  58947. return "#document";
  58948. }
  58949. function getWindow(node) {
  58950. var _node$ownerDocument;
  58951. return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
  58952. }
  58953. function getDocumentElement(node) {
  58954. var _ref;
  58955. return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
  58956. }
  58957. function isNode(value) {
  58958. if (!hasWindow()) {
  58959. return false;
  58960. }
  58961. return value instanceof Node || value instanceof getWindow(value).Node;
  58962. }
  58963. function isElement3(value) {
  58964. if (!hasWindow()) {
  58965. return false;
  58966. }
  58967. return value instanceof Element || value instanceof getWindow(value).Element;
  58968. }
  58969. function isHTMLElement2(value) {
  58970. if (!hasWindow()) {
  58971. return false;
  58972. }
  58973. return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
  58974. }
  58975. function isShadowRoot(value) {
  58976. if (!hasWindow() || typeof ShadowRoot === "undefined") {
  58977. return false;
  58978. }
  58979. return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
  58980. }
  58981. var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
  58982. function isOverflowElement(element) {
  58983. const {
  58984. overflow,
  58985. overflowX,
  58986. overflowY,
  58987. display
  58988. } = getComputedStyle2(element);
  58989. return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
  58990. }
  58991. var tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
  58992. function isTableElement(element) {
  58993. return tableElements.has(getNodeName(element));
  58994. }
  58995. var topLayerSelectors = [":popover-open", ":modal"];
  58996. function isTopLayer(element) {
  58997. return topLayerSelectors.some((selector) => {
  58998. try {
  58999. return element.matches(selector);
  59000. } catch (_e) {
  59001. return false;
  59002. }
  59003. });
  59004. }
  59005. var transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
  59006. var willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
  59007. var containValues = ["paint", "layout", "strict", "content"];
  59008. function isContainingBlock(elementOrCss) {
  59009. const webkit = isWebKit();
  59010. const css = isElement3(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
  59011. return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
  59012. }
  59013. function getContainingBlock(element) {
  59014. let currentNode = getParentNode(element);
  59015. while (isHTMLElement2(currentNode) && !isLastTraversableNode(currentNode)) {
  59016. if (isContainingBlock(currentNode)) {
  59017. return currentNode;
  59018. } else if (isTopLayer(currentNode)) {
  59019. return null;
  59020. }
  59021. currentNode = getParentNode(currentNode);
  59022. }
  59023. return null;
  59024. }
  59025. function isWebKit() {
  59026. if (typeof CSS === "undefined" || !CSS.supports) return false;
  59027. return CSS.supports("-webkit-backdrop-filter", "none");
  59028. }
  59029. var lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
  59030. function isLastTraversableNode(node) {
  59031. return lastTraversableNodeNames.has(getNodeName(node));
  59032. }
  59033. function getComputedStyle2(element) {
  59034. return getWindow(element).getComputedStyle(element);
  59035. }
  59036. function getNodeScroll(element) {
  59037. if (isElement3(element)) {
  59038. return {
  59039. scrollLeft: element.scrollLeft,
  59040. scrollTop: element.scrollTop
  59041. };
  59042. }
  59043. return {
  59044. scrollLeft: element.scrollX,
  59045. scrollTop: element.scrollY
  59046. };
  59047. }
  59048. function getParentNode(node) {
  59049. if (getNodeName(node) === "html") {
  59050. return node;
  59051. }
  59052. const result2 = (
  59053. // Step into the shadow DOM of the parent of a slotted node.
  59054. node.assignedSlot || // DOM Element detected.
  59055. node.parentNode || // ShadowRoot detected.
  59056. isShadowRoot(node) && node.host || // Fallback.
  59057. getDocumentElement(node)
  59058. );
  59059. return isShadowRoot(result2) ? result2.host : result2;
  59060. }
  59061. function getNearestOverflowAncestor(node) {
  59062. const parentNode = getParentNode(node);
  59063. if (isLastTraversableNode(parentNode)) {
  59064. return node.ownerDocument ? node.ownerDocument.body : node.body;
  59065. }
  59066. if (isHTMLElement2(parentNode) && isOverflowElement(parentNode)) {
  59067. return parentNode;
  59068. }
  59069. return getNearestOverflowAncestor(parentNode);
  59070. }
  59071. function getOverflowAncestors(node, list, traverseIframes) {
  59072. var _node$ownerDocument2;
  59073. if (list === void 0) {
  59074. list = [];
  59075. }
  59076. if (traverseIframes === void 0) {
  59077. traverseIframes = true;
  59078. }
  59079. const scrollableAncestor = getNearestOverflowAncestor(node);
  59080. const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
  59081. const win = getWindow(scrollableAncestor);
  59082. if (isBody) {
  59083. const frameElement = getFrameElement(win);
  59084. return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
  59085. }
  59086. return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
  59087. }
  59088. function getFrameElement(win) {
  59089. return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
  59090. }
  59091. // node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
  59092. function getCssDimensions(element) {
  59093. const css = getComputedStyle2(element);
  59094. let width = parseFloat(css.width) || 0;
  59095. let height = parseFloat(css.height) || 0;
  59096. const hasOffset = isHTMLElement2(element);
  59097. const offsetWidth = hasOffset ? element.offsetWidth : width;
  59098. const offsetHeight = hasOffset ? element.offsetHeight : height;
  59099. const shouldFallback = round2(width) !== offsetWidth || round2(height) !== offsetHeight;
  59100. if (shouldFallback) {
  59101. width = offsetWidth;
  59102. height = offsetHeight;
  59103. }
  59104. return {
  59105. width,
  59106. height,
  59107. $: shouldFallback
  59108. };
  59109. }
  59110. function unwrapElement(element) {
  59111. return !isElement3(element) ? element.contextElement : element;
  59112. }
  59113. function getScale(element) {
  59114. const domElement = unwrapElement(element);
  59115. if (!isHTMLElement2(domElement)) {
  59116. return createCoords(1);
  59117. }
  59118. const rect = domElement.getBoundingClientRect();
  59119. const {
  59120. width,
  59121. height,
  59122. $
  59123. } = getCssDimensions(domElement);
  59124. let x2 = ($ ? round2(rect.width) : rect.width) / width;
  59125. let y = ($ ? round2(rect.height) : rect.height) / height;
  59126. if (!x2 || !Number.isFinite(x2)) {
  59127. x2 = 1;
  59128. }
  59129. if (!y || !Number.isFinite(y)) {
  59130. y = 1;
  59131. }
  59132. return {
  59133. x: x2,
  59134. y
  59135. };
  59136. }
  59137. var noOffsets = createCoords(0);
  59138. function getVisualOffsets(element) {
  59139. const win = getWindow(element);
  59140. if (!isWebKit() || !win.visualViewport) {
  59141. return noOffsets;
  59142. }
  59143. return {
  59144. x: win.visualViewport.offsetLeft,
  59145. y: win.visualViewport.offsetTop
  59146. };
  59147. }
  59148. function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
  59149. if (isFixed === void 0) {
  59150. isFixed = false;
  59151. }
  59152. if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
  59153. return false;
  59154. }
  59155. return isFixed;
  59156. }
  59157. function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
  59158. if (includeScale === void 0) {
  59159. includeScale = false;
  59160. }
  59161. if (isFixedStrategy === void 0) {
  59162. isFixedStrategy = false;
  59163. }
  59164. const clientRect = element.getBoundingClientRect();
  59165. const domElement = unwrapElement(element);
  59166. let scale = createCoords(1);
  59167. if (includeScale) {
  59168. if (offsetParent) {
  59169. if (isElement3(offsetParent)) {
  59170. scale = getScale(offsetParent);
  59171. }
  59172. } else {
  59173. scale = getScale(element);
  59174. }
  59175. }
  59176. const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
  59177. let x2 = (clientRect.left + visualOffsets.x) / scale.x;
  59178. let y = (clientRect.top + visualOffsets.y) / scale.y;
  59179. let width = clientRect.width / scale.x;
  59180. let height = clientRect.height / scale.y;
  59181. if (domElement) {
  59182. const win = getWindow(domElement);
  59183. const offsetWin = offsetParent && isElement3(offsetParent) ? getWindow(offsetParent) : offsetParent;
  59184. let currentWin = win;
  59185. let currentIFrame = getFrameElement(currentWin);
  59186. while (currentIFrame && offsetParent && offsetWin !== currentWin) {
  59187. const iframeScale = getScale(currentIFrame);
  59188. const iframeRect = currentIFrame.getBoundingClientRect();
  59189. const css = getComputedStyle2(currentIFrame);
  59190. const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
  59191. const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
  59192. x2 *= iframeScale.x;
  59193. y *= iframeScale.y;
  59194. width *= iframeScale.x;
  59195. height *= iframeScale.y;
  59196. x2 += left;
  59197. y += top;
  59198. currentWin = getWindow(currentIFrame);
  59199. currentIFrame = getFrameElement(currentWin);
  59200. }
  59201. }
  59202. return rectToClientRect({
  59203. width,
  59204. height,
  59205. x: x2,
  59206. y
  59207. });
  59208. }
  59209. function getWindowScrollBarX(element, rect) {
  59210. const leftScroll = getNodeScroll(element).scrollLeft;
  59211. if (!rect) {
  59212. return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
  59213. }
  59214. return rect.left + leftScroll;
  59215. }
  59216. function getHTMLOffset(documentElement, scroll) {
  59217. const htmlRect = documentElement.getBoundingClientRect();
  59218. const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
  59219. const y = htmlRect.top + scroll.scrollTop;
  59220. return {
  59221. x: x2,
  59222. y
  59223. };
  59224. }
  59225. function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
  59226. let {
  59227. elements,
  59228. rect,
  59229. offsetParent,
  59230. strategy
  59231. } = _ref;
  59232. const isFixed = strategy === "fixed";
  59233. const documentElement = getDocumentElement(offsetParent);
  59234. const topLayer = elements ? isTopLayer(elements.floating) : false;
  59235. if (offsetParent === documentElement || topLayer && isFixed) {
  59236. return rect;
  59237. }
  59238. let scroll = {
  59239. scrollLeft: 0,
  59240. scrollTop: 0
  59241. };
  59242. let scale = createCoords(1);
  59243. const offsets = createCoords(0);
  59244. const isOffsetParentAnElement = isHTMLElement2(offsetParent);
  59245. if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
  59246. if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
  59247. scroll = getNodeScroll(offsetParent);
  59248. }
  59249. if (isHTMLElement2(offsetParent)) {
  59250. const offsetRect = getBoundingClientRect(offsetParent);
  59251. scale = getScale(offsetParent);
  59252. offsets.x = offsetRect.x + offsetParent.clientLeft;
  59253. offsets.y = offsetRect.y + offsetParent.clientTop;
  59254. }
  59255. }
  59256. const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
  59257. return {
  59258. width: rect.width * scale.x,
  59259. height: rect.height * scale.y,
  59260. x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
  59261. y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
  59262. };
  59263. }
  59264. function getClientRects(element) {
  59265. return Array.from(element.getClientRects());
  59266. }
  59267. function getDocumentRect(element) {
  59268. const html = getDocumentElement(element);
  59269. const scroll = getNodeScroll(element);
  59270. const body = element.ownerDocument.body;
  59271. const width = max3(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
  59272. const height = max3(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
  59273. let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
  59274. const y = -scroll.scrollTop;
  59275. if (getComputedStyle2(body).direction === "rtl") {
  59276. x2 += max3(html.clientWidth, body.clientWidth) - width;
  59277. }
  59278. return {
  59279. width,
  59280. height,
  59281. x: x2,
  59282. y
  59283. };
  59284. }
  59285. var SCROLLBAR_MAX = 25;
  59286. function getViewportRect(element, strategy) {
  59287. const win = getWindow(element);
  59288. const html = getDocumentElement(element);
  59289. const visualViewport = win.visualViewport;
  59290. let width = html.clientWidth;
  59291. let height = html.clientHeight;
  59292. let x2 = 0;
  59293. let y = 0;
  59294. if (visualViewport) {
  59295. width = visualViewport.width;
  59296. height = visualViewport.height;
  59297. const visualViewportBased = isWebKit();
  59298. if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
  59299. x2 = visualViewport.offsetLeft;
  59300. y = visualViewport.offsetTop;
  59301. }
  59302. }
  59303. const windowScrollbarX = getWindowScrollBarX(html);
  59304. if (windowScrollbarX <= 0) {
  59305. const doc = html.ownerDocument;
  59306. const body = doc.body;
  59307. const bodyStyles = getComputedStyle(body);
  59308. const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
  59309. const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
  59310. if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
  59311. width -= clippingStableScrollbarWidth;
  59312. }
  59313. } else if (windowScrollbarX <= SCROLLBAR_MAX) {
  59314. width += windowScrollbarX;
  59315. }
  59316. return {
  59317. width,
  59318. height,
  59319. x: x2,
  59320. y
  59321. };
  59322. }
  59323. var absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
  59324. function getInnerBoundingClientRect(element, strategy) {
  59325. const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
  59326. const top = clientRect.top + element.clientTop;
  59327. const left = clientRect.left + element.clientLeft;
  59328. const scale = isHTMLElement2(element) ? getScale(element) : createCoords(1);
  59329. const width = element.clientWidth * scale.x;
  59330. const height = element.clientHeight * scale.y;
  59331. const x2 = left * scale.x;
  59332. const y = top * scale.y;
  59333. return {
  59334. width,
  59335. height,
  59336. x: x2,
  59337. y
  59338. };
  59339. }
  59340. function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
  59341. let rect;
  59342. if (clippingAncestor === "viewport") {
  59343. rect = getViewportRect(element, strategy);
  59344. } else if (clippingAncestor === "document") {
  59345. rect = getDocumentRect(getDocumentElement(element));
  59346. } else if (isElement3(clippingAncestor)) {
  59347. rect = getInnerBoundingClientRect(clippingAncestor, strategy);
  59348. } else {
  59349. const visualOffsets = getVisualOffsets(element);
  59350. rect = {
  59351. x: clippingAncestor.x - visualOffsets.x,
  59352. y: clippingAncestor.y - visualOffsets.y,
  59353. width: clippingAncestor.width,
  59354. height: clippingAncestor.height
  59355. };
  59356. }
  59357. return rectToClientRect(rect);
  59358. }
  59359. function hasFixedPositionAncestor(element, stopNode) {
  59360. const parentNode = getParentNode(element);
  59361. if (parentNode === stopNode || !isElement3(parentNode) || isLastTraversableNode(parentNode)) {
  59362. return false;
  59363. }
  59364. return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
  59365. }
  59366. function getClippingElementAncestors(element, cache2) {
  59367. const cachedResult = cache2.get(element);
  59368. if (cachedResult) {
  59369. return cachedResult;
  59370. }
  59371. let result2 = getOverflowAncestors(element, [], false).filter((el) => isElement3(el) && getNodeName(el) !== "body");
  59372. let currentContainingBlockComputedStyle = null;
  59373. const elementIsFixed = getComputedStyle2(element).position === "fixed";
  59374. let currentNode = elementIsFixed ? getParentNode(element) : element;
  59375. while (isElement3(currentNode) && !isLastTraversableNode(currentNode)) {
  59376. const computedStyle = getComputedStyle2(currentNode);
  59377. const currentNodeIsContaining = isContainingBlock(currentNode);
  59378. if (!currentNodeIsContaining && computedStyle.position === "fixed") {
  59379. currentContainingBlockComputedStyle = null;
  59380. }
  59381. const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
  59382. if (shouldDropCurrentNode) {
  59383. result2 = result2.filter((ancestor) => ancestor !== currentNode);
  59384. } else {
  59385. currentContainingBlockComputedStyle = computedStyle;
  59386. }
  59387. currentNode = getParentNode(currentNode);
  59388. }
  59389. cache2.set(element, result2);
  59390. return result2;
  59391. }
  59392. function getClippingRect(_ref) {
  59393. let {
  59394. element,
  59395. boundary,
  59396. rootBoundary,
  59397. strategy
  59398. } = _ref;
  59399. const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
  59400. const clippingAncestors = [...elementClippingAncestors, rootBoundary];
  59401. const firstClippingAncestor = clippingAncestors[0];
  59402. const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
  59403. const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
  59404. accRect.top = max3(rect.top, accRect.top);
  59405. accRect.right = min3(rect.right, accRect.right);
  59406. accRect.bottom = min3(rect.bottom, accRect.bottom);
  59407. accRect.left = max3(rect.left, accRect.left);
  59408. return accRect;
  59409. }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
  59410. return {
  59411. width: clippingRect.right - clippingRect.left,
  59412. height: clippingRect.bottom - clippingRect.top,
  59413. x: clippingRect.left,
  59414. y: clippingRect.top
  59415. };
  59416. }
  59417. function getDimensions(element) {
  59418. const {
  59419. width,
  59420. height
  59421. } = getCssDimensions(element);
  59422. return {
  59423. width,
  59424. height
  59425. };
  59426. }
  59427. function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
  59428. const isOffsetParentAnElement = isHTMLElement2(offsetParent);
  59429. const documentElement = getDocumentElement(offsetParent);
  59430. const isFixed = strategy === "fixed";
  59431. const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
  59432. let scroll = {
  59433. scrollLeft: 0,
  59434. scrollTop: 0
  59435. };
  59436. const offsets = createCoords(0);
  59437. function setLeftRTLScrollbarOffset() {
  59438. offsets.x = getWindowScrollBarX(documentElement);
  59439. }
  59440. if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
  59441. if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
  59442. scroll = getNodeScroll(offsetParent);
  59443. }
  59444. if (isOffsetParentAnElement) {
  59445. const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
  59446. offsets.x = offsetRect.x + offsetParent.clientLeft;
  59447. offsets.y = offsetRect.y + offsetParent.clientTop;
  59448. } else if (documentElement) {
  59449. setLeftRTLScrollbarOffset();
  59450. }
  59451. }
  59452. if (isFixed && !isOffsetParentAnElement && documentElement) {
  59453. setLeftRTLScrollbarOffset();
  59454. }
  59455. const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
  59456. const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
  59457. const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
  59458. return {
  59459. x: x2,
  59460. y,
  59461. width: rect.width,
  59462. height: rect.height
  59463. };
  59464. }
  59465. function isStaticPositioned(element) {
  59466. return getComputedStyle2(element).position === "static";
  59467. }
  59468. function getTrueOffsetParent(element, polyfill) {
  59469. if (!isHTMLElement2(element) || getComputedStyle2(element).position === "fixed") {
  59470. return null;
  59471. }
  59472. if (polyfill) {
  59473. return polyfill(element);
  59474. }
  59475. let rawOffsetParent = element.offsetParent;
  59476. if (getDocumentElement(element) === rawOffsetParent) {
  59477. rawOffsetParent = rawOffsetParent.ownerDocument.body;
  59478. }
  59479. return rawOffsetParent;
  59480. }
  59481. function getOffsetParent(element, polyfill) {
  59482. const win = getWindow(element);
  59483. if (isTopLayer(element)) {
  59484. return win;
  59485. }
  59486. if (!isHTMLElement2(element)) {
  59487. let svgOffsetParent = getParentNode(element);
  59488. while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
  59489. if (isElement3(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
  59490. return svgOffsetParent;
  59491. }
  59492. svgOffsetParent = getParentNode(svgOffsetParent);
  59493. }
  59494. return win;
  59495. }
  59496. let offsetParent = getTrueOffsetParent(element, polyfill);
  59497. while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
  59498. offsetParent = getTrueOffsetParent(offsetParent, polyfill);
  59499. }
  59500. if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
  59501. return win;
  59502. }
  59503. return offsetParent || getContainingBlock(element) || win;
  59504. }
  59505. var getElementRects = async function(data) {
  59506. const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
  59507. const getDimensionsFn = this.getDimensions;
  59508. const floatingDimensions = await getDimensionsFn(data.floating);
  59509. return {
  59510. reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
  59511. floating: {
  59512. x: 0,
  59513. y: 0,
  59514. width: floatingDimensions.width,
  59515. height: floatingDimensions.height
  59516. }
  59517. };
  59518. };
  59519. function isRTL2(element) {
  59520. return getComputedStyle2(element).direction === "rtl";
  59521. }
  59522. var platform = {
  59523. convertOffsetParentRelativeRectToViewportRelativeRect,
  59524. getDocumentElement,
  59525. getClippingRect,
  59526. getOffsetParent,
  59527. getElementRects,
  59528. getClientRects,
  59529. getDimensions,
  59530. getScale,
  59531. isElement: isElement3,
  59532. isRTL: isRTL2
  59533. };
  59534. function rectsAreEqual(a2, b2) {
  59535. return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
  59536. }
  59537. function observeMove(element, onMove) {
  59538. let io = null;
  59539. let timeoutId;
  59540. const root2 = getDocumentElement(element);
  59541. function cleanup() {
  59542. var _io;
  59543. clearTimeout(timeoutId);
  59544. (_io = io) == null || _io.disconnect();
  59545. io = null;
  59546. }
  59547. function refresh(skip, threshold) {
  59548. if (skip === void 0) {
  59549. skip = false;
  59550. }
  59551. if (threshold === void 0) {
  59552. threshold = 1;
  59553. }
  59554. cleanup();
  59555. const elementRectForRootMargin = element.getBoundingClientRect();
  59556. const {
  59557. left,
  59558. top,
  59559. width,
  59560. height
  59561. } = elementRectForRootMargin;
  59562. if (!skip) {
  59563. onMove();
  59564. }
  59565. if (!width || !height) {
  59566. return;
  59567. }
  59568. const insetTop = floor3(top);
  59569. const insetRight = floor3(root2.clientWidth - (left + width));
  59570. const insetBottom = floor3(root2.clientHeight - (top + height));
  59571. const insetLeft = floor3(left);
  59572. const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
  59573. const options = {
  59574. rootMargin,
  59575. threshold: max3(0, min3(1, threshold)) || 1
  59576. };
  59577. let isFirstUpdate = true;
  59578. function handleObserve(entries) {
  59579. const ratio = entries[0].intersectionRatio;
  59580. if (ratio !== threshold) {
  59581. if (!isFirstUpdate) {
  59582. return refresh();
  59583. }
  59584. if (!ratio) {
  59585. timeoutId = setTimeout(() => {
  59586. refresh(false, 1e-7);
  59587. }, 1e3);
  59588. } else {
  59589. refresh(false, ratio);
  59590. }
  59591. }
  59592. if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
  59593. refresh();
  59594. }
  59595. isFirstUpdate = false;
  59596. }
  59597. try {
  59598. io = new IntersectionObserver(handleObserve, {
  59599. ...options,
  59600. // Handle <iframe>s
  59601. root: root2.ownerDocument
  59602. });
  59603. } catch (_e) {
  59604. io = new IntersectionObserver(handleObserve, options);
  59605. }
  59606. io.observe(element);
  59607. }
  59608. refresh(true);
  59609. return cleanup;
  59610. }
  59611. function autoUpdate(reference, floating, update2, options) {
  59612. if (options === void 0) {
  59613. options = {};
  59614. }
  59615. const {
  59616. ancestorScroll = true,
  59617. ancestorResize = true,
  59618. elementResize = typeof ResizeObserver === "function",
  59619. layoutShift = typeof IntersectionObserver === "function",
  59620. animationFrame = false
  59621. } = options;
  59622. const referenceEl = unwrapElement(reference);
  59623. const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
  59624. ancestors.forEach((ancestor) => {
  59625. ancestorScroll && ancestor.addEventListener("scroll", update2, {
  59626. passive: true
  59627. });
  59628. ancestorResize && ancestor.addEventListener("resize", update2);
  59629. });
  59630. const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
  59631. let reobserveFrame = -1;
  59632. let resizeObserver = null;
  59633. if (elementResize) {
  59634. resizeObserver = new ResizeObserver((_ref) => {
  59635. let [firstEntry] = _ref;
  59636. if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
  59637. resizeObserver.unobserve(floating);
  59638. cancelAnimationFrame(reobserveFrame);
  59639. reobserveFrame = requestAnimationFrame(() => {
  59640. var _resizeObserver;
  59641. (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
  59642. });
  59643. }
  59644. update2();
  59645. });
  59646. if (referenceEl && !animationFrame) {
  59647. resizeObserver.observe(referenceEl);
  59648. }
  59649. resizeObserver.observe(floating);
  59650. }
  59651. let frameId;
  59652. let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
  59653. if (animationFrame) {
  59654. frameLoop();
  59655. }
  59656. function frameLoop() {
  59657. const nextRefRect = getBoundingClientRect(reference);
  59658. if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
  59659. update2();
  59660. }
  59661. prevRefRect = nextRefRect;
  59662. frameId = requestAnimationFrame(frameLoop);
  59663. }
  59664. update2();
  59665. return () => {
  59666. var _resizeObserver2;
  59667. ancestors.forEach((ancestor) => {
  59668. ancestorScroll && ancestor.removeEventListener("scroll", update2);
  59669. ancestorResize && ancestor.removeEventListener("resize", update2);
  59670. });
  59671. cleanupIo == null || cleanupIo();
  59672. (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
  59673. resizeObserver = null;
  59674. if (animationFrame) {
  59675. cancelAnimationFrame(frameId);
  59676. }
  59677. };
  59678. }
  59679. var detectOverflow2 = detectOverflow;
  59680. var offset2 = offset;
  59681. var shift2 = shift;
  59682. var flip3 = flip2;
  59683. var arrow2 = arrow;
  59684. var computePosition2 = (reference, floating, options) => {
  59685. const cache2 = /* @__PURE__ */ new Map();
  59686. const mergedOptions = {
  59687. platform,
  59688. ...options
  59689. };
  59690. const platformWithCache = {
  59691. ...mergedOptions.platform,
  59692. _c: cache2
  59693. };
  59694. return computePosition(reference, floating, {
  59695. ...mergedOptions,
  59696. platform: platformWithCache
  59697. });
  59698. };
  59699. // node_modules/element-plus/es/components/tour/src/helper.mjs
  59700. var useTarget = (target2, open, gap, mergedMask, scrollIntoViewOptions) => {
  59701. const posInfo = ref(null);
  59702. const getTargetEl = () => {
  59703. let targetEl;
  59704. if (isString(target2.value)) {
  59705. targetEl = document.querySelector(target2.value);
  59706. } else if (isFunction(target2.value)) {
  59707. targetEl = target2.value();
  59708. } else {
  59709. targetEl = target2.value;
  59710. }
  59711. return targetEl;
  59712. };
  59713. const updatePosInfo = () => {
  59714. const targetEl = getTargetEl();
  59715. if (!targetEl || !open.value) {
  59716. posInfo.value = null;
  59717. return;
  59718. }
  59719. if (!isInViewPort(targetEl)) {
  59720. targetEl.scrollIntoView(scrollIntoViewOptions.value);
  59721. }
  59722. const { left, top, width, height } = targetEl.getBoundingClientRect();
  59723. posInfo.value = {
  59724. left,
  59725. top,
  59726. width,
  59727. height,
  59728. radius: 0
  59729. };
  59730. };
  59731. onMounted(() => {
  59732. watch([open, target2], () => {
  59733. updatePosInfo();
  59734. }, {
  59735. immediate: true
  59736. });
  59737. window.addEventListener("resize", updatePosInfo);
  59738. });
  59739. onBeforeUnmount(() => {
  59740. window.removeEventListener("resize", updatePosInfo);
  59741. });
  59742. const getGapOffset = (index) => {
  59743. var _a2;
  59744. return (_a2 = isArray(gap.value.offset) ? gap.value.offset[index] : gap.value.offset) != null ? _a2 : 6;
  59745. };
  59746. const mergedPosInfo = computed(() => {
  59747. var _a2;
  59748. if (!posInfo.value)
  59749. return posInfo.value;
  59750. const gapOffsetX = getGapOffset(0);
  59751. const gapOffsetY = getGapOffset(1);
  59752. const gapRadius = ((_a2 = gap.value) == null ? void 0 : _a2.radius) || 2;
  59753. return {
  59754. left: posInfo.value.left - gapOffsetX,
  59755. top: posInfo.value.top - gapOffsetY,
  59756. width: posInfo.value.width + gapOffsetX * 2,
  59757. height: posInfo.value.height + gapOffsetY * 2,
  59758. radius: gapRadius
  59759. };
  59760. });
  59761. const triggerTarget = computed(() => {
  59762. const targetEl = getTargetEl();
  59763. if (!mergedMask.value || !targetEl || !window.DOMRect) {
  59764. return targetEl || void 0;
  59765. }
  59766. return {
  59767. getBoundingClientRect() {
  59768. var _a2, _b, _c, _d;
  59769. return window.DOMRect.fromRect({
  59770. width: ((_a2 = mergedPosInfo.value) == null ? void 0 : _a2.width) || 0,
  59771. height: ((_b = mergedPosInfo.value) == null ? void 0 : _b.height) || 0,
  59772. x: ((_c = mergedPosInfo.value) == null ? void 0 : _c.left) || 0,
  59773. y: ((_d = mergedPosInfo.value) == null ? void 0 : _d.top) || 0
  59774. });
  59775. }
  59776. };
  59777. });
  59778. return {
  59779. mergedPosInfo,
  59780. triggerTarget
  59781. };
  59782. };
  59783. var tourKey = Symbol("ElTour");
  59784. function isInViewPort(element) {
  59785. const viewWidth = window.innerWidth || document.documentElement.clientWidth;
  59786. const viewHeight = window.innerHeight || document.documentElement.clientHeight;
  59787. const { top, right, bottom, left } = element.getBoundingClientRect();
  59788. return top >= 0 && left >= 0 && right <= viewWidth && bottom <= viewHeight;
  59789. }
  59790. var useFloating = (referenceRef, contentRef, arrowRef, placement, strategy, offset$1, zIndex2, showArrow) => {
  59791. const x2 = ref();
  59792. const y = ref();
  59793. const middlewareData = ref({});
  59794. const states = {
  59795. x: x2,
  59796. y,
  59797. placement,
  59798. strategy,
  59799. middlewareData
  59800. };
  59801. const middleware = computed(() => {
  59802. const _middleware = [
  59803. offset2(unref(offset$1)),
  59804. flip3(),
  59805. shift2(),
  59806. overflowMiddleware()
  59807. ];
  59808. if (unref(showArrow) && unref(arrowRef)) {
  59809. _middleware.push(arrow2({
  59810. element: unref(arrowRef)
  59811. }));
  59812. }
  59813. return _middleware;
  59814. });
  59815. const update2 = async () => {
  59816. if (!isClient)
  59817. return;
  59818. const referenceEl = unref(referenceRef);
  59819. const contentEl = unref(contentRef);
  59820. if (!referenceEl || !contentEl)
  59821. return;
  59822. const data = await computePosition2(referenceEl, contentEl, {
  59823. placement: unref(placement),
  59824. strategy: unref(strategy),
  59825. middleware: unref(middleware)
  59826. });
  59827. keysOf(states).forEach((key) => {
  59828. states[key].value = data[key];
  59829. });
  59830. };
  59831. const contentStyle = computed(() => {
  59832. if (!unref(referenceRef)) {
  59833. return {
  59834. position: "fixed",
  59835. top: "50%",
  59836. left: "50%",
  59837. transform: "translate3d(-50%, -50%, 0)",
  59838. maxWidth: "100vw",
  59839. zIndex: unref(zIndex2)
  59840. };
  59841. }
  59842. const { overflow } = unref(middlewareData);
  59843. return {
  59844. position: unref(strategy),
  59845. zIndex: unref(zIndex2),
  59846. top: unref(y) != null ? `${unref(y)}px` : "",
  59847. left: unref(x2) != null ? `${unref(x2)}px` : "",
  59848. maxWidth: (overflow == null ? void 0 : overflow.maxWidth) ? `${overflow == null ? void 0 : overflow.maxWidth}px` : ""
  59849. };
  59850. });
  59851. const arrowStyle = computed(() => {
  59852. if (!unref(showArrow))
  59853. return {};
  59854. const { arrow: arrow22 } = unref(middlewareData);
  59855. return {
  59856. left: (arrow22 == null ? void 0 : arrow22.x) != null ? `${arrow22 == null ? void 0 : arrow22.x}px` : "",
  59857. top: (arrow22 == null ? void 0 : arrow22.y) != null ? `${arrow22 == null ? void 0 : arrow22.y}px` : ""
  59858. };
  59859. });
  59860. let cleanup;
  59861. onMounted(() => {
  59862. const referenceEl = unref(referenceRef);
  59863. const contentEl = unref(contentRef);
  59864. if (referenceEl && contentEl) {
  59865. cleanup = autoUpdate(referenceEl, contentEl, update2);
  59866. }
  59867. watchEffect(() => {
  59868. update2();
  59869. });
  59870. });
  59871. onBeforeUnmount(() => {
  59872. cleanup && cleanup();
  59873. });
  59874. return {
  59875. update: update2,
  59876. contentStyle,
  59877. arrowStyle
  59878. };
  59879. };
  59880. var overflowMiddleware = () => {
  59881. return {
  59882. name: "overflow",
  59883. async fn(state) {
  59884. const overflow = await detectOverflow2(state);
  59885. let overWidth = 0;
  59886. if (overflow.left > 0)
  59887. overWidth = overflow.left;
  59888. if (overflow.right > 0)
  59889. overWidth = overflow.right;
  59890. const floatingWidth = state.rects.floating.width;
  59891. return {
  59892. data: {
  59893. maxWidth: floatingWidth - overWidth
  59894. }
  59895. };
  59896. }
  59897. };
  59898. };
  59899. // node_modules/element-plus/es/components/tour/src/mask2.mjs
  59900. var __default__112 = defineComponent({
  59901. name: "ElTourMask",
  59902. inheritAttrs: false
  59903. });
  59904. var _sfc_main146 = defineComponent({
  59905. ...__default__112,
  59906. props: maskProps,
  59907. setup(__props) {
  59908. const props2 = __props;
  59909. const { ns } = inject(tourKey);
  59910. const radius = computed(() => {
  59911. var _a2, _b;
  59912. return (_b = (_a2 = props2.pos) == null ? void 0 : _a2.radius) != null ? _b : 2;
  59913. });
  59914. const roundInfo = computed(() => {
  59915. const v2 = radius.value;
  59916. const baseInfo = `a${v2},${v2} 0 0 1`;
  59917. return {
  59918. topRight: `${baseInfo} ${v2},${v2}`,
  59919. bottomRight: `${baseInfo} ${-v2},${v2}`,
  59920. bottomLeft: `${baseInfo} ${-v2},${-v2}`,
  59921. topLeft: `${baseInfo} ${v2},${-v2}`
  59922. };
  59923. });
  59924. const { width: windowWidth, height: windowHeight } = useWindowSize();
  59925. const path = computed(() => {
  59926. const width = windowWidth.value;
  59927. const height = windowHeight.value;
  59928. const info = roundInfo.value;
  59929. const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
  59930. const _radius = radius.value;
  59931. return props2.pos ? `${_path} M${props2.pos.left + _radius},${props2.pos.top} h${props2.pos.width - _radius * 2} ${info.topRight} v${props2.pos.height - _radius * 2} ${info.bottomRight} h${-props2.pos.width + _radius * 2} ${info.bottomLeft} v${-props2.pos.height + _radius * 2} ${info.topLeft} z` : _path;
  59932. });
  59933. const maskStyle = computed(() => ({
  59934. position: "fixed",
  59935. left: 0,
  59936. right: 0,
  59937. top: 0,
  59938. bottom: 0,
  59939. zIndex: props2.zIndex,
  59940. pointerEvents: props2.pos && props2.targetAreaClickable ? "none" : "auto"
  59941. }));
  59942. const pathStyle = computed(() => ({
  59943. fill: props2.fill,
  59944. pointerEvents: "auto",
  59945. cursor: "auto"
  59946. }));
  59947. useLockscreen(toRef(props2, "visible"), {
  59948. ns
  59949. });
  59950. return (_ctx, _cache) => {
  59951. return _ctx.visible ? (openBlock(), createElementBlock("div", mergeProps({
  59952. key: 0,
  59953. class: unref(ns).e("mask"),
  59954. style: unref(maskStyle)
  59955. }, _ctx.$attrs), [
  59956. (openBlock(), createElementBlock("svg", { style: {
  59957. width: "100%",
  59958. height: "100%"
  59959. } }, [
  59960. createBaseVNode("path", {
  59961. class: normalizeClass(unref(ns).e("hollow")),
  59962. style: normalizeStyle(unref(pathStyle)),
  59963. d: unref(path)
  59964. }, null, 14, ["d"])
  59965. ]))
  59966. ], 16)) : createCommentVNode("v-if", true);
  59967. };
  59968. }
  59969. });
  59970. var ElTourMask = _export_sfc(_sfc_main146, [["__file", "mask.vue"]]);
  59971. // node_modules/element-plus/es/components/tour/src/content2.mjs
  59972. var tourStrategies = ["absolute", "fixed"];
  59973. var tourPlacements = [
  59974. "top-start",
  59975. "top-end",
  59976. "top",
  59977. "bottom-start",
  59978. "bottom-end",
  59979. "bottom",
  59980. "left-start",
  59981. "left-end",
  59982. "left",
  59983. "right-start",
  59984. "right-end",
  59985. "right"
  59986. ];
  59987. var tourContentProps = buildProps({
  59988. placement: {
  59989. type: definePropType(String),
  59990. values: tourPlacements,
  59991. default: "bottom"
  59992. },
  59993. reference: {
  59994. type: definePropType(Object),
  59995. default: null
  59996. },
  59997. strategy: {
  59998. type: definePropType(String),
  59999. values: tourStrategies,
  60000. default: "absolute"
  60001. },
  60002. offset: {
  60003. type: Number,
  60004. default: 10
  60005. },
  60006. showArrow: Boolean,
  60007. zIndex: {
  60008. type: Number,
  60009. default: 2001
  60010. }
  60011. });
  60012. var tourContentEmits = {
  60013. close: () => true
  60014. };
  60015. // node_modules/element-plus/es/components/tour/src/content.mjs
  60016. var __default__113 = defineComponent({
  60017. name: "ElTourContent"
  60018. });
  60019. var _sfc_main147 = defineComponent({
  60020. ...__default__113,
  60021. props: tourContentProps,
  60022. emits: tourContentEmits,
  60023. setup(__props, { emit }) {
  60024. const props2 = __props;
  60025. const placement = ref(props2.placement);
  60026. const strategy = ref(props2.strategy);
  60027. const contentRef = ref(null);
  60028. const arrowRef = ref(null);
  60029. watch(() => props2.placement, () => {
  60030. placement.value = props2.placement;
  60031. });
  60032. const { contentStyle, arrowStyle } = useFloating(toRef(props2, "reference"), contentRef, arrowRef, placement, strategy, toRef(props2, "offset"), toRef(props2, "zIndex"), toRef(props2, "showArrow"));
  60033. const side = computed(() => {
  60034. return placement.value.split("-")[0];
  60035. });
  60036. const { ns } = inject(tourKey);
  60037. const onCloseRequested = () => {
  60038. emit("close");
  60039. };
  60040. const onFocusoutPrevented = (event) => {
  60041. if (event.detail.focusReason === "pointer") {
  60042. event.preventDefault();
  60043. }
  60044. };
  60045. return (_ctx, _cache) => {
  60046. return openBlock(), createElementBlock("div", {
  60047. ref_key: "contentRef",
  60048. ref: contentRef,
  60049. style: normalizeStyle(unref(contentStyle)),
  60050. class: normalizeClass(unref(ns).e("content")),
  60051. "data-side": unref(side),
  60052. tabindex: "-1"
  60053. }, [
  60054. createVNode(unref(ElFocusTrap), {
  60055. loop: "",
  60056. trapped: "",
  60057. "focus-start-el": "container",
  60058. "focus-trap-el": contentRef.value || void 0,
  60059. onReleaseRequested: onCloseRequested,
  60060. onFocusoutPrevented
  60061. }, {
  60062. default: withCtx(() => [
  60063. renderSlot(_ctx.$slots, "default")
  60064. ]),
  60065. _: 3
  60066. }, 8, ["focus-trap-el"]),
  60067. _ctx.showArrow ? (openBlock(), createElementBlock("span", {
  60068. key: 0,
  60069. ref_key: "arrowRef",
  60070. ref: arrowRef,
  60071. style: normalizeStyle(unref(arrowStyle)),
  60072. class: normalizeClass(unref(ns).e("arrow"))
  60073. }, null, 6)) : createCommentVNode("v-if", true)
  60074. ], 14, ["data-side"]);
  60075. };
  60076. }
  60077. });
  60078. var ElTourContent = _export_sfc(_sfc_main147, [["__file", "content.vue"]]);
  60079. // node_modules/element-plus/es/components/tour/src/steps.mjs
  60080. var ElTourSteps = defineComponent({
  60081. name: "ElTourSteps",
  60082. props: {
  60083. current: {
  60084. type: Number,
  60085. default: 0
  60086. }
  60087. },
  60088. emits: ["update-total"],
  60089. setup(props2, { slots, emit }) {
  60090. let cacheTotal = 0;
  60091. return () => {
  60092. var _a2, _b;
  60093. const children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
  60094. const result2 = [];
  60095. let total2 = 0;
  60096. function filterSteps(children2) {
  60097. if (!isArray(children2))
  60098. return;
  60099. children2.forEach((item) => {
  60100. var _a22;
  60101. const name = (_a22 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a22.name;
  60102. if (name === "ElTourStep") {
  60103. result2.push(item);
  60104. total2 += 1;
  60105. }
  60106. });
  60107. }
  60108. if (children.length) {
  60109. filterSteps(flattedChildren((_b = children[0]) == null ? void 0 : _b.children));
  60110. }
  60111. if (cacheTotal !== total2) {
  60112. cacheTotal = total2;
  60113. emit("update-total", total2);
  60114. }
  60115. if (result2.length) {
  60116. return result2[props2.current];
  60117. }
  60118. return null;
  60119. };
  60120. }
  60121. });
  60122. // node_modules/element-plus/es/components/tour/src/tour.mjs
  60123. var tourProps = buildProps({
  60124. modelValue: Boolean,
  60125. current: {
  60126. type: Number,
  60127. default: 0
  60128. },
  60129. showArrow: {
  60130. type: Boolean,
  60131. default: true
  60132. },
  60133. showClose: {
  60134. type: Boolean,
  60135. default: true
  60136. },
  60137. closeIcon: {
  60138. type: iconPropType
  60139. },
  60140. placement: tourContentProps.placement,
  60141. contentStyle: {
  60142. type: definePropType([Object])
  60143. },
  60144. mask: {
  60145. type: definePropType([Boolean, Object]),
  60146. default: true
  60147. },
  60148. gap: {
  60149. type: definePropType(Object),
  60150. default: () => ({
  60151. offset: 6,
  60152. radius: 2
  60153. })
  60154. },
  60155. zIndex: {
  60156. type: Number
  60157. },
  60158. scrollIntoViewOptions: {
  60159. type: definePropType([Boolean, Object]),
  60160. default: () => ({
  60161. block: "center"
  60162. })
  60163. },
  60164. type: {
  60165. type: definePropType(String)
  60166. },
  60167. appendTo: {
  60168. type: teleportProps.to.type,
  60169. default: "body"
  60170. },
  60171. closeOnPressEscape: {
  60172. type: Boolean,
  60173. default: true
  60174. },
  60175. targetAreaClickable: {
  60176. type: Boolean,
  60177. default: true
  60178. }
  60179. });
  60180. var tourEmits = {
  60181. [UPDATE_MODEL_EVENT]: (value) => isBoolean2(value),
  60182. ["update:current"]: (current) => isNumber2(current),
  60183. close: (current) => isNumber2(current),
  60184. finish: () => true,
  60185. change: (current) => isNumber2(current)
  60186. };
  60187. // node_modules/element-plus/es/components/tour/src/tour2.mjs
  60188. var __default__114 = defineComponent({
  60189. name: "ElTour"
  60190. });
  60191. var _sfc_main148 = defineComponent({
  60192. ...__default__114,
  60193. props: tourProps,
  60194. emits: tourEmits,
  60195. setup(__props, { emit }) {
  60196. const props2 = __props;
  60197. const ns = useNamespace("tour");
  60198. const total2 = ref(0);
  60199. const currentStep = ref();
  60200. const current = useVModel(props2, "current", emit, {
  60201. passive: true
  60202. });
  60203. const currentTarget = computed(() => {
  60204. var _a2;
  60205. return (_a2 = currentStep.value) == null ? void 0 : _a2.target;
  60206. });
  60207. const kls = computed(() => [
  60208. ns.b(),
  60209. mergedType.value === "primary" ? ns.m("primary") : ""
  60210. ]);
  60211. const mergedPlacement = computed(() => {
  60212. var _a2;
  60213. return ((_a2 = currentStep.value) == null ? void 0 : _a2.placement) || props2.placement;
  60214. });
  60215. const mergedContentStyle = computed(() => {
  60216. var _a2, _b;
  60217. return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.contentStyle) != null ? _b : props2.contentStyle;
  60218. });
  60219. const mergedMask = computed(() => {
  60220. var _a2, _b;
  60221. return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.mask) != null ? _b : props2.mask;
  60222. });
  60223. const mergedShowMask = computed(() => !!mergedMask.value && props2.modelValue);
  60224. const mergedMaskStyle = computed(() => isBoolean2(mergedMask.value) ? void 0 : mergedMask.value);
  60225. const mergedShowArrow = computed(() => {
  60226. var _a2, _b;
  60227. return !!currentTarget.value && ((_b = (_a2 = currentStep.value) == null ? void 0 : _a2.showArrow) != null ? _b : props2.showArrow);
  60228. });
  60229. const mergedScrollIntoViewOptions = computed(() => {
  60230. var _a2, _b;
  60231. return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.scrollIntoViewOptions) != null ? _b : props2.scrollIntoViewOptions;
  60232. });
  60233. const mergedType = computed(() => {
  60234. var _a2, _b;
  60235. return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.type) != null ? _b : props2.type;
  60236. });
  60237. const { nextZIndex } = useZIndex();
  60238. const nowZIndex = nextZIndex();
  60239. const mergedZIndex = computed(() => {
  60240. var _a2;
  60241. return (_a2 = props2.zIndex) != null ? _a2 : nowZIndex;
  60242. });
  60243. const { mergedPosInfo: pos, triggerTarget } = useTarget(currentTarget, toRef(props2, "modelValue"), toRef(props2, "gap"), mergedMask, mergedScrollIntoViewOptions);
  60244. watch(() => props2.modelValue, (val) => {
  60245. if (!val) {
  60246. current.value = 0;
  60247. }
  60248. });
  60249. const onEscClose = () => {
  60250. if (props2.closeOnPressEscape) {
  60251. emit(UPDATE_MODEL_EVENT, false);
  60252. emit("close", current.value);
  60253. }
  60254. };
  60255. const onUpdateTotal = (val) => {
  60256. total2.value = val;
  60257. };
  60258. const slots = useSlots();
  60259. provide(tourKey, {
  60260. currentStep,
  60261. current,
  60262. total: total2,
  60263. showClose: toRef(props2, "showClose"),
  60264. closeIcon: toRef(props2, "closeIcon"),
  60265. mergedType,
  60266. ns,
  60267. slots,
  60268. updateModelValue(modelValue) {
  60269. emit(UPDATE_MODEL_EVENT, modelValue);
  60270. },
  60271. onClose() {
  60272. emit("close", current.value);
  60273. },
  60274. onFinish() {
  60275. emit("finish");
  60276. },
  60277. onChange() {
  60278. emit(CHANGE_EVENT, current.value);
  60279. }
  60280. });
  60281. return (_ctx, _cache) => {
  60282. return openBlock(), createElementBlock(Fragment, null, [
  60283. createVNode(unref(ElTeleport), { to: _ctx.appendTo }, {
  60284. default: withCtx(() => {
  60285. var _a2, _b;
  60286. return [
  60287. createBaseVNode("div", mergeProps({ class: unref(kls) }, _ctx.$attrs), [
  60288. createVNode(ElTourMask, {
  60289. visible: unref(mergedShowMask),
  60290. fill: (_a2 = unref(mergedMaskStyle)) == null ? void 0 : _a2.color,
  60291. style: normalizeStyle((_b = unref(mergedMaskStyle)) == null ? void 0 : _b.style),
  60292. pos: unref(pos),
  60293. "z-index": unref(mergedZIndex),
  60294. "target-area-clickable": _ctx.targetAreaClickable
  60295. }, null, 8, ["visible", "fill", "style", "pos", "z-index", "target-area-clickable"]),
  60296. _ctx.modelValue ? (openBlock(), createBlock(ElTourContent, {
  60297. key: unref(current),
  60298. reference: unref(triggerTarget),
  60299. placement: unref(mergedPlacement),
  60300. "show-arrow": unref(mergedShowArrow),
  60301. "z-index": unref(mergedZIndex),
  60302. style: normalizeStyle(unref(mergedContentStyle)),
  60303. onClose: onEscClose
  60304. }, {
  60305. default: withCtx(() => [
  60306. createVNode(unref(ElTourSteps), {
  60307. current: unref(current),
  60308. onUpdateTotal
  60309. }, {
  60310. default: withCtx(() => [
  60311. renderSlot(_ctx.$slots, "default")
  60312. ]),
  60313. _: 3
  60314. }, 8, ["current"])
  60315. ]),
  60316. _: 3
  60317. }, 8, ["reference", "placement", "show-arrow", "z-index", "style"])) : createCommentVNode("v-if", true)
  60318. ], 16)
  60319. ];
  60320. }),
  60321. _: 3
  60322. }, 8, ["to"]),
  60323. createCommentVNode(" just for IDE "),
  60324. createCommentVNode("v-if", true)
  60325. ], 64);
  60326. };
  60327. }
  60328. });
  60329. var Tour = _export_sfc(_sfc_main148, [["__file", "tour.vue"]]);
  60330. // node_modules/element-plus/es/components/tour/src/step.mjs
  60331. var tourStepProps = buildProps({
  60332. target: {
  60333. type: definePropType([String, Object, Function])
  60334. },
  60335. title: String,
  60336. description: String,
  60337. showClose: {
  60338. type: Boolean,
  60339. default: void 0
  60340. },
  60341. closeIcon: {
  60342. type: iconPropType
  60343. },
  60344. showArrow: {
  60345. type: Boolean,
  60346. default: void 0
  60347. },
  60348. placement: tourContentProps.placement,
  60349. mask: {
  60350. type: definePropType([Boolean, Object]),
  60351. default: void 0
  60352. },
  60353. contentStyle: {
  60354. type: definePropType([Object])
  60355. },
  60356. prevButtonProps: {
  60357. type: definePropType(Object)
  60358. },
  60359. nextButtonProps: {
  60360. type: definePropType(Object)
  60361. },
  60362. scrollIntoViewOptions: {
  60363. type: definePropType([Boolean, Object]),
  60364. default: void 0
  60365. },
  60366. type: {
  60367. type: definePropType(String)
  60368. }
  60369. });
  60370. var tourStepEmits = {
  60371. close: () => true
  60372. };
  60373. // node_modules/element-plus/es/components/tour/src/step2.mjs
  60374. var __default__115 = defineComponent({
  60375. name: "ElTourStep"
  60376. });
  60377. var _sfc_main149 = defineComponent({
  60378. ...__default__115,
  60379. props: tourStepProps,
  60380. emits: tourStepEmits,
  60381. setup(__props, { emit }) {
  60382. const props2 = __props;
  60383. const { Close } = CloseComponents;
  60384. const { t } = useLocale();
  60385. const {
  60386. currentStep,
  60387. current,
  60388. total: total2,
  60389. showClose,
  60390. closeIcon,
  60391. mergedType,
  60392. ns,
  60393. slots: tourSlots,
  60394. updateModelValue,
  60395. onClose: tourOnClose,
  60396. onFinish: tourOnFinish,
  60397. onChange
  60398. } = inject(tourKey);
  60399. watch(props2, (val) => {
  60400. currentStep.value = val;
  60401. }, {
  60402. immediate: true
  60403. });
  60404. const mergedShowClose = computed(() => {
  60405. var _a2;
  60406. return (_a2 = props2.showClose) != null ? _a2 : showClose.value;
  60407. });
  60408. const mergedCloseIcon = computed(() => {
  60409. var _a2, _b;
  60410. return (_b = (_a2 = props2.closeIcon) != null ? _a2 : closeIcon.value) != null ? _b : Close;
  60411. });
  60412. const filterButtonProps = (btnProps) => {
  60413. if (!btnProps)
  60414. return;
  60415. return omit_default(btnProps, ["children", "onClick"]);
  60416. };
  60417. const onPrev = () => {
  60418. var _a2, _b;
  60419. current.value -= 1;
  60420. if ((_a2 = props2.prevButtonProps) == null ? void 0 : _a2.onClick) {
  60421. (_b = props2.prevButtonProps) == null ? void 0 : _b.onClick();
  60422. }
  60423. onChange();
  60424. };
  60425. const onNext = () => {
  60426. var _a2;
  60427. if (current.value >= total2.value - 1) {
  60428. onFinish();
  60429. } else {
  60430. current.value += 1;
  60431. }
  60432. if ((_a2 = props2.nextButtonProps) == null ? void 0 : _a2.onClick) {
  60433. props2.nextButtonProps.onClick();
  60434. }
  60435. onChange();
  60436. };
  60437. const onFinish = () => {
  60438. onClose();
  60439. tourOnFinish();
  60440. };
  60441. const onClose = () => {
  60442. updateModelValue(false);
  60443. tourOnClose();
  60444. emit("close");
  60445. };
  60446. const handleKeydown = (e) => {
  60447. const target2 = e.target;
  60448. if (target2 == null ? void 0 : target2.isContentEditable)
  60449. return;
  60450. const code = getEventCode(e);
  60451. switch (code) {
  60452. case EVENT_CODE.left:
  60453. e.preventDefault();
  60454. current.value > 0 && onPrev();
  60455. break;
  60456. case EVENT_CODE.right:
  60457. e.preventDefault();
  60458. onNext();
  60459. break;
  60460. }
  60461. };
  60462. onMounted(() => {
  60463. window.addEventListener("keydown", handleKeydown);
  60464. });
  60465. onBeforeUnmount(() => {
  60466. window.removeEventListener("keydown", handleKeydown);
  60467. });
  60468. return (_ctx, _cache) => {
  60469. return openBlock(), createElementBlock(Fragment, null, [
  60470. unref(mergedShowClose) ? (openBlock(), createElementBlock("button", {
  60471. key: 0,
  60472. "aria-label": unref(t)("el.tour.close"),
  60473. class: normalizeClass(unref(ns).e("closebtn")),
  60474. type: "button",
  60475. onClick: onClose
  60476. }, [
  60477. createVNode(unref(ElIcon), {
  60478. class: normalizeClass(unref(ns).e("close"))
  60479. }, {
  60480. default: withCtx(() => [
  60481. (openBlock(), createBlock(resolveDynamicComponent(unref(mergedCloseIcon))))
  60482. ]),
  60483. _: 1
  60484. }, 8, ["class"])
  60485. ], 10, ["aria-label"])) : createCommentVNode("v-if", true),
  60486. createBaseVNode("header", {
  60487. class: normalizeClass([unref(ns).e("header"), { "show-close": unref(showClose) }])
  60488. }, [
  60489. renderSlot(_ctx.$slots, "header", {}, () => [
  60490. createBaseVNode("span", {
  60491. role: "heading",
  60492. class: normalizeClass(unref(ns).e("title"))
  60493. }, toDisplayString(_ctx.title), 3)
  60494. ])
  60495. ], 2),
  60496. createBaseVNode("div", {
  60497. class: normalizeClass(unref(ns).e("body"))
  60498. }, [
  60499. renderSlot(_ctx.$slots, "default", {}, () => [
  60500. createBaseVNode("span", null, toDisplayString(_ctx.description), 1)
  60501. ])
  60502. ], 2),
  60503. createBaseVNode("footer", {
  60504. class: normalizeClass(unref(ns).e("footer"))
  60505. }, [
  60506. createBaseVNode("div", {
  60507. class: normalizeClass(unref(ns).b("indicators"))
  60508. }, [
  60509. unref(tourSlots).indicators ? (openBlock(), createBlock(resolveDynamicComponent(unref(tourSlots).indicators), {
  60510. key: 0,
  60511. current: unref(current),
  60512. total: unref(total2)
  60513. }, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(total2), (item, index) => {
  60514. return openBlock(), createElementBlock("span", {
  60515. key: item,
  60516. class: normalizeClass([unref(ns).b("indicator"), unref(ns).is("active", index === unref(current))])
  60517. }, null, 2);
  60518. }), 128))
  60519. ], 2),
  60520. createBaseVNode("div", {
  60521. class: normalizeClass(unref(ns).b("buttons"))
  60522. }, [
  60523. unref(current) > 0 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
  60524. key: 0,
  60525. size: "small",
  60526. type: unref(mergedType)
  60527. }, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
  60528. default: withCtx(() => {
  60529. var _a2, _b;
  60530. return [
  60531. createTextVNode(toDisplayString((_b = (_a2 = _ctx.prevButtonProps) == null ? void 0 : _a2.children) != null ? _b : unref(t)("el.tour.previous")), 1)
  60532. ];
  60533. }),
  60534. _: 1
  60535. }, 16, ["type"])) : createCommentVNode("v-if", true),
  60536. unref(current) <= unref(total2) - 1 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
  60537. key: 1,
  60538. size: "small",
  60539. type: unref(mergedType) === "primary" ? "default" : "primary"
  60540. }, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
  60541. default: withCtx(() => {
  60542. var _a2, _b;
  60543. return [
  60544. createTextVNode(toDisplayString((_b = (_a2 = _ctx.nextButtonProps) == null ? void 0 : _a2.children) != null ? _b : unref(current) === unref(total2) - 1 ? unref(t)("el.tour.finish") : unref(t)("el.tour.next")), 1)
  60545. ];
  60546. }),
  60547. _: 1
  60548. }, 16, ["type"])) : createCommentVNode("v-if", true)
  60549. ], 2)
  60550. ], 2)
  60551. ], 64);
  60552. };
  60553. }
  60554. });
  60555. var TourStep = _export_sfc(_sfc_main149, [["__file", "step.vue"]]);
  60556. // node_modules/element-plus/es/components/tour/index.mjs
  60557. var ElTour = withInstall(Tour, {
  60558. TourStep
  60559. });
  60560. var ElTourStep = withNoopInstall(TourStep);
  60561. // node_modules/element-plus/es/components/anchor/src/anchor.mjs
  60562. var anchorProps = buildProps({
  60563. container: {
  60564. type: definePropType([
  60565. String,
  60566. Object
  60567. ])
  60568. },
  60569. offset: {
  60570. type: Number,
  60571. default: 0
  60572. },
  60573. bound: {
  60574. type: Number,
  60575. default: 15
  60576. },
  60577. duration: {
  60578. type: Number,
  60579. default: 300
  60580. },
  60581. marker: {
  60582. type: Boolean,
  60583. default: true
  60584. },
  60585. type: {
  60586. type: definePropType(String),
  60587. default: "default"
  60588. },
  60589. direction: {
  60590. type: definePropType(String),
  60591. default: "vertical"
  60592. },
  60593. selectScrollTop: Boolean
  60594. });
  60595. var anchorEmits = {
  60596. change: (href) => isString(href),
  60597. click: (e, href) => e instanceof MouseEvent && (isString(href) || isUndefined2(href))
  60598. };
  60599. // node_modules/element-plus/es/components/anchor/src/constants.mjs
  60600. var anchorKey = Symbol("anchor");
  60601. // node_modules/element-plus/es/utils/dom/element.mjs
  60602. var getElement = (target2) => {
  60603. if (!isClient || target2 === "")
  60604. return null;
  60605. if (isString(target2)) {
  60606. try {
  60607. return document.querySelector(target2);
  60608. } catch (e) {
  60609. return null;
  60610. }
  60611. }
  60612. return target2;
  60613. };
  60614. // node_modules/element-plus/es/utils/throttleByRaf.mjs
  60615. function throttleByRaf(cb) {
  60616. let timer = 0;
  60617. const throttle2 = (...args) => {
  60618. if (timer) {
  60619. cAF(timer);
  60620. }
  60621. timer = rAF(() => {
  60622. cb(...args);
  60623. timer = 0;
  60624. });
  60625. };
  60626. throttle2.cancel = () => {
  60627. cAF(timer);
  60628. timer = 0;
  60629. };
  60630. return throttle2;
  60631. }
  60632. // node_modules/element-plus/es/components/anchor/src/anchor2.mjs
  60633. var __default__116 = defineComponent({
  60634. name: "ElAnchor"
  60635. });
  60636. var _sfc_main150 = defineComponent({
  60637. ...__default__116,
  60638. props: anchorProps,
  60639. emits: anchorEmits,
  60640. setup(__props, { expose, emit }) {
  60641. const props2 = __props;
  60642. const slots = useSlots();
  60643. const currentAnchor = ref("");
  60644. const markerStyle = ref({});
  60645. const anchorRef = ref(null);
  60646. const markerRef = ref(null);
  60647. const containerEl = ref();
  60648. const links = {};
  60649. let isScrolling = false;
  60650. let currentScrollTop = 0;
  60651. const ns = useNamespace("anchor");
  60652. const cls = computed(() => [
  60653. ns.b(),
  60654. props2.type === "underline" ? ns.m("underline") : "",
  60655. ns.m(props2.direction)
  60656. ]);
  60657. const addLink = (state) => {
  60658. links[state.href] = state.el;
  60659. };
  60660. const removeLink = (href) => {
  60661. delete links[href];
  60662. };
  60663. const setCurrentAnchor = (href) => {
  60664. const activeHref = currentAnchor.value;
  60665. if (activeHref !== href) {
  60666. currentAnchor.value = href;
  60667. emit(CHANGE_EVENT, href);
  60668. }
  60669. };
  60670. let clearAnimate = null;
  60671. const scrollToAnchor = (href) => {
  60672. if (!containerEl.value)
  60673. return;
  60674. const target2 = getElement(href);
  60675. if (!target2)
  60676. return;
  60677. if (clearAnimate)
  60678. clearAnimate();
  60679. isScrolling = true;
  60680. const scrollEle = getScrollElement(target2, containerEl.value);
  60681. const distance = getOffsetTopDistance(target2, scrollEle);
  60682. const max4 = scrollEle.scrollHeight - scrollEle.clientHeight;
  60683. const to = Math.min(distance - props2.offset, max4);
  60684. clearAnimate = animateScrollTo(containerEl.value, currentScrollTop, to, props2.duration, () => {
  60685. setTimeout(() => {
  60686. isScrolling = false;
  60687. }, 20);
  60688. });
  60689. };
  60690. const scrollTo = (href) => {
  60691. if (href) {
  60692. setCurrentAnchor(href);
  60693. scrollToAnchor(href);
  60694. }
  60695. };
  60696. const handleClick = (e, href) => {
  60697. emit("click", e, href);
  60698. scrollTo(href);
  60699. };
  60700. const handleScroll2 = throttleByRaf(() => {
  60701. if (containerEl.value) {
  60702. currentScrollTop = getScrollTop(containerEl.value);
  60703. }
  60704. const currentHref = getCurrentHref();
  60705. if (isScrolling || isUndefined2(currentHref))
  60706. return;
  60707. setCurrentAnchor(currentHref);
  60708. });
  60709. const getCurrentHref = () => {
  60710. if (!containerEl.value)
  60711. return;
  60712. const scrollTop = getScrollTop(containerEl.value);
  60713. const anchorTopList = [];
  60714. for (const href of Object.keys(links)) {
  60715. const target2 = getElement(href);
  60716. if (!target2)
  60717. continue;
  60718. const scrollEle = getScrollElement(target2, containerEl.value);
  60719. const distance = getOffsetTopDistance(target2, scrollEle);
  60720. anchorTopList.push({
  60721. top: distance - props2.offset - props2.bound,
  60722. href
  60723. });
  60724. }
  60725. anchorTopList.sort((prev, next) => prev.top - next.top);
  60726. for (let i = 0; i < anchorTopList.length; i++) {
  60727. const item = anchorTopList[i];
  60728. const next = anchorTopList[i + 1];
  60729. if (i === 0 && scrollTop === 0) {
  60730. return props2.selectScrollTop ? item.href : "";
  60731. }
  60732. if (item.top <= scrollTop && (!next || next.top > scrollTop)) {
  60733. return item.href;
  60734. }
  60735. }
  60736. };
  60737. const getContainer = () => {
  60738. const el = getElement(props2.container);
  60739. if (!el || isWindow(el)) {
  60740. containerEl.value = window;
  60741. } else {
  60742. containerEl.value = el;
  60743. }
  60744. };
  60745. useEventListener(containerEl, "scroll", handleScroll2);
  60746. const updateMarkerStyle = () => {
  60747. nextTick(() => {
  60748. if (!anchorRef.value || !markerRef.value || !currentAnchor.value) {
  60749. markerStyle.value = {};
  60750. return;
  60751. }
  60752. const currentLinkEl = links[currentAnchor.value];
  60753. if (!currentLinkEl) {
  60754. markerStyle.value = {};
  60755. return;
  60756. }
  60757. const anchorRect = anchorRef.value.getBoundingClientRect();
  60758. const markerRect = markerRef.value.getBoundingClientRect();
  60759. const linkRect = currentLinkEl.getBoundingClientRect();
  60760. if (props2.direction === "horizontal") {
  60761. const left = linkRect.left - anchorRect.left;
  60762. markerStyle.value = {
  60763. left: `${left}px`,
  60764. width: `${linkRect.width}px`,
  60765. opacity: 1
  60766. };
  60767. } else {
  60768. const top = linkRect.top - anchorRect.top + (linkRect.height - markerRect.height) / 2;
  60769. markerStyle.value = {
  60770. top: `${top}px`,
  60771. opacity: 1
  60772. };
  60773. }
  60774. });
  60775. };
  60776. watch(currentAnchor, updateMarkerStyle);
  60777. watch(() => {
  60778. var _a2;
  60779. return (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
  60780. }, updateMarkerStyle);
  60781. onMounted(() => {
  60782. getContainer();
  60783. const hash = decodeURIComponent(window.location.hash);
  60784. const target2 = getElement(hash);
  60785. if (target2) {
  60786. scrollTo(hash);
  60787. } else {
  60788. handleScroll2();
  60789. }
  60790. });
  60791. watch(() => props2.container, () => {
  60792. getContainer();
  60793. });
  60794. provide(anchorKey, {
  60795. ns,
  60796. direction: props2.direction,
  60797. currentAnchor,
  60798. addLink,
  60799. removeLink,
  60800. handleClick
  60801. });
  60802. expose({
  60803. scrollTo
  60804. });
  60805. return (_ctx, _cache) => {
  60806. return openBlock(), createElementBlock("div", {
  60807. ref_key: "anchorRef",
  60808. ref: anchorRef,
  60809. class: normalizeClass(unref(cls))
  60810. }, [
  60811. _ctx.marker ? (openBlock(), createElementBlock("div", {
  60812. key: 0,
  60813. ref_key: "markerRef",
  60814. ref: markerRef,
  60815. class: normalizeClass(unref(ns).e("marker")),
  60816. style: normalizeStyle(markerStyle.value)
  60817. }, null, 6)) : createCommentVNode("v-if", true),
  60818. createBaseVNode("div", {
  60819. class: normalizeClass(unref(ns).e("list"))
  60820. }, [
  60821. renderSlot(_ctx.$slots, "default")
  60822. ], 2)
  60823. ], 2);
  60824. };
  60825. }
  60826. });
  60827. var Anchor = _export_sfc(_sfc_main150, [["__file", "anchor.vue"]]);
  60828. // node_modules/element-plus/es/components/anchor/src/anchor-link.mjs
  60829. var anchorLinkProps = buildProps({
  60830. title: String,
  60831. href: String
  60832. });
  60833. // node_modules/element-plus/es/components/anchor/src/anchor-link2.mjs
  60834. var __default__117 = defineComponent({
  60835. name: "ElAnchorLink"
  60836. });
  60837. var _sfc_main151 = defineComponent({
  60838. ...__default__117,
  60839. props: anchorLinkProps,
  60840. setup(__props) {
  60841. const props2 = __props;
  60842. const linkRef = ref(null);
  60843. const {
  60844. ns,
  60845. direction: direction2,
  60846. currentAnchor,
  60847. addLink,
  60848. removeLink,
  60849. handleClick: contextHandleClick
  60850. } = inject(anchorKey);
  60851. const cls = computed(() => [
  60852. ns.e("link"),
  60853. ns.is("active", currentAnchor.value === props2.href)
  60854. ]);
  60855. const handleClick = (e) => {
  60856. contextHandleClick(e, props2.href);
  60857. };
  60858. watch(() => props2.href, (val, oldVal) => {
  60859. nextTick(() => {
  60860. if (oldVal)
  60861. removeLink(oldVal);
  60862. if (val) {
  60863. addLink({
  60864. href: val,
  60865. el: linkRef.value
  60866. });
  60867. }
  60868. });
  60869. });
  60870. onMounted(() => {
  60871. const { href } = props2;
  60872. if (href) {
  60873. addLink({
  60874. href,
  60875. el: linkRef.value
  60876. });
  60877. }
  60878. });
  60879. onBeforeUnmount(() => {
  60880. const { href } = props2;
  60881. if (href) {
  60882. removeLink(href);
  60883. }
  60884. });
  60885. return (_ctx, _cache) => {
  60886. return openBlock(), createElementBlock("div", {
  60887. class: normalizeClass(unref(ns).e("item"))
  60888. }, [
  60889. createBaseVNode("a", {
  60890. ref_key: "linkRef",
  60891. ref: linkRef,
  60892. class: normalizeClass(unref(cls)),
  60893. href: _ctx.href,
  60894. onClick: handleClick
  60895. }, [
  60896. renderSlot(_ctx.$slots, "default", {}, () => [
  60897. createTextVNode(toDisplayString(_ctx.title), 1)
  60898. ])
  60899. ], 10, ["href"]),
  60900. _ctx.$slots["sub-link"] && unref(direction2) === "vertical" ? (openBlock(), createElementBlock("div", {
  60901. key: 0,
  60902. class: normalizeClass(unref(ns).e("list"))
  60903. }, [
  60904. renderSlot(_ctx.$slots, "sub-link")
  60905. ], 2)) : createCommentVNode("v-if", true)
  60906. ], 2);
  60907. };
  60908. }
  60909. });
  60910. var AnchorLink = _export_sfc(_sfc_main151, [["__file", "anchor-link.vue"]]);
  60911. // node_modules/element-plus/es/components/anchor/index.mjs
  60912. var ElAnchor = withInstall(Anchor, {
  60913. AnchorLink
  60914. });
  60915. var ElAnchorLink = withNoopInstall(AnchorLink);
  60916. // node_modules/element-plus/es/components/segmented/src/segmented.mjs
  60917. var defaultProps5 = {
  60918. label: "label",
  60919. value: "value",
  60920. disabled: "disabled"
  60921. };
  60922. var segmentedProps = buildProps({
  60923. direction: {
  60924. type: definePropType(String),
  60925. default: "horizontal"
  60926. },
  60927. options: {
  60928. type: definePropType(Array),
  60929. default: () => []
  60930. },
  60931. modelValue: {
  60932. type: [String, Number, Boolean],
  60933. default: void 0
  60934. },
  60935. props: {
  60936. type: definePropType(Object),
  60937. default: () => defaultProps5
  60938. },
  60939. block: Boolean,
  60940. size: useSizeProp,
  60941. disabled: Boolean,
  60942. validateEvent: {
  60943. type: Boolean,
  60944. default: true
  60945. },
  60946. id: String,
  60947. name: String,
  60948. ...useAriaProps(["ariaLabel"])
  60949. });
  60950. var segmentedEmits = {
  60951. [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val),
  60952. [CHANGE_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val)
  60953. };
  60954. // node_modules/element-plus/es/components/segmented/src/segmented2.mjs
  60955. var __default__118 = defineComponent({
  60956. name: "ElSegmented"
  60957. });
  60958. var _sfc_main152 = defineComponent({
  60959. ...__default__118,
  60960. props: segmentedProps,
  60961. emits: segmentedEmits,
  60962. setup(__props, { emit }) {
  60963. const props2 = __props;
  60964. const ns = useNamespace("segmented");
  60965. const segmentedId = useId();
  60966. const segmentedSize = useFormSize();
  60967. const _disabled = useFormDisabled();
  60968. const { formItem } = useFormItem();
  60969. const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
  60970. formItemContext: formItem
  60971. });
  60972. const segmentedRef = ref(null);
  60973. const activeElement = useActiveElement();
  60974. const state = reactive({
  60975. isInit: false,
  60976. width: 0,
  60977. height: 0,
  60978. translateX: 0,
  60979. translateY: 0,
  60980. focusVisible: false
  60981. });
  60982. const handleChange = (item) => {
  60983. const value = getValue3(item);
  60984. emit(UPDATE_MODEL_EVENT, value);
  60985. emit(CHANGE_EVENT, value);
  60986. };
  60987. const aliasProps = computed(() => ({ ...defaultProps5, ...props2.props }));
  60988. const intoAny = (item) => item;
  60989. const getValue3 = (item) => {
  60990. return isObject(item) ? item[aliasProps.value.value] : item;
  60991. };
  60992. const getLabel = (item) => {
  60993. return isObject(item) ? item[aliasProps.value.label] : item;
  60994. };
  60995. const getDisabled = (item) => {
  60996. return !!(_disabled.value || (isObject(item) ? item[aliasProps.value.disabled] : false));
  60997. };
  60998. const getSelected = (item) => {
  60999. return props2.modelValue === getValue3(item);
  61000. };
  61001. const getOption = (value) => {
  61002. return props2.options.find((item) => getValue3(item) === value);
  61003. };
  61004. const getItemCls = (item) => {
  61005. return [
  61006. ns.e("item"),
  61007. ns.is("selected", getSelected(item)),
  61008. ns.is("disabled", getDisabled(item))
  61009. ];
  61010. };
  61011. const updateSelect = () => {
  61012. if (!segmentedRef.value)
  61013. return;
  61014. const selectedItem = segmentedRef.value.querySelector(".is-selected");
  61015. const selectedItemInput = segmentedRef.value.querySelector(".is-selected input");
  61016. if (!selectedItem || !selectedItemInput) {
  61017. state.width = 0;
  61018. state.height = 0;
  61019. state.translateX = 0;
  61020. state.translateY = 0;
  61021. state.focusVisible = false;
  61022. return;
  61023. }
  61024. state.isInit = true;
  61025. if (props2.direction === "vertical") {
  61026. state.height = selectedItem.offsetHeight;
  61027. state.translateY = selectedItem.offsetTop;
  61028. } else {
  61029. state.width = selectedItem.offsetWidth;
  61030. state.translateX = selectedItem.offsetLeft;
  61031. }
  61032. try {
  61033. state.focusVisible = selectedItemInput.matches(":focus-visible");
  61034. } catch (e) {
  61035. }
  61036. };
  61037. const segmentedCls = computed(() => [
  61038. ns.b(),
  61039. ns.m(segmentedSize.value),
  61040. ns.is("block", props2.block)
  61041. ]);
  61042. const selectedStyle = computed(() => ({
  61043. width: props2.direction === "vertical" ? "100%" : `${state.width}px`,
  61044. height: props2.direction === "vertical" ? `${state.height}px` : "100%",
  61045. transform: props2.direction === "vertical" ? `translateY(${state.translateY}px)` : `translateX(${state.translateX}px)`,
  61046. display: state.isInit ? "block" : "none"
  61047. }));
  61048. const selectedCls = computed(() => [
  61049. ns.e("item-selected"),
  61050. ns.is("disabled", getDisabled(getOption(props2.modelValue))),
  61051. ns.is("focus-visible", state.focusVisible)
  61052. ]);
  61053. const name = computed(() => {
  61054. return props2.name || segmentedId.value;
  61055. });
  61056. useResizeObserver(segmentedRef, updateSelect);
  61057. watch(activeElement, updateSelect);
  61058. watch(() => props2.modelValue, () => {
  61059. var _a2;
  61060. updateSelect();
  61061. if (props2.validateEvent) {
  61062. (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn(err));
  61063. }
  61064. }, {
  61065. flush: "post"
  61066. });
  61067. return (_ctx, _cache) => {
  61068. return _ctx.options.length ? (openBlock(), createElementBlock("div", {
  61069. key: 0,
  61070. id: unref(inputId),
  61071. ref_key: "segmentedRef",
  61072. ref: segmentedRef,
  61073. class: normalizeClass(unref(segmentedCls)),
  61074. role: "radiogroup",
  61075. "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "segmented" : void 0,
  61076. "aria-labelledby": unref(isLabeledByFormItem) ? unref(formItem).labelId : void 0
  61077. }, [
  61078. createBaseVNode("div", {
  61079. class: normalizeClass([unref(ns).e("group"), unref(ns).m(_ctx.direction)])
  61080. }, [
  61081. createBaseVNode("div", {
  61082. style: normalizeStyle(unref(selectedStyle)),
  61083. class: normalizeClass(unref(selectedCls))
  61084. }, null, 6),
  61085. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
  61086. return openBlock(), createElementBlock("label", {
  61087. key: index,
  61088. class: normalizeClass(getItemCls(item))
  61089. }, [
  61090. createBaseVNode("input", {
  61091. class: normalizeClass(unref(ns).e("item-input")),
  61092. type: "radio",
  61093. name: unref(name),
  61094. disabled: getDisabled(item),
  61095. checked: getSelected(item),
  61096. onChange: ($event) => handleChange(item)
  61097. }, null, 42, ["name", "disabled", "checked", "onChange"]),
  61098. createBaseVNode("div", {
  61099. class: normalizeClass(unref(ns).e("item-label"))
  61100. }, [
  61101. renderSlot(_ctx.$slots, "default", {
  61102. item: intoAny(item)
  61103. }, () => [
  61104. createTextVNode(toDisplayString(getLabel(item)), 1)
  61105. ])
  61106. ], 2)
  61107. ], 2);
  61108. }), 128))
  61109. ], 2)
  61110. ], 10, ["id", "aria-label", "aria-labelledby"])) : createCommentVNode("v-if", true);
  61111. };
  61112. }
  61113. });
  61114. var Segmented = _export_sfc(_sfc_main152, [["__file", "segmented.vue"]]);
  61115. // node_modules/element-plus/es/components/segmented/index.mjs
  61116. var ElSegmented = withInstall(Segmented);
  61117. // node_modules/element-plus/es/components/mention/src/helper.mjs
  61118. var filterOption = (pattern4, option) => {
  61119. const lowerCase2 = pattern4.toLowerCase();
  61120. const label = option.label || option.value || "";
  61121. return label.toLowerCase().includes(lowerCase2);
  61122. };
  61123. var getMentionCtx = (inputEl, prefix, split2) => {
  61124. const { selectionEnd } = inputEl;
  61125. if (selectionEnd === null)
  61126. return;
  61127. const inputValue = inputEl.value;
  61128. const prefixArray = castArray_default(prefix);
  61129. let splitIndex = -1;
  61130. let mentionCtx;
  61131. for (let i = selectionEnd - 1; i >= 0; --i) {
  61132. const char = inputValue[i];
  61133. if (char === split2 || char === "\n" || char === "\r") {
  61134. splitIndex = i;
  61135. continue;
  61136. }
  61137. if (prefixArray.includes(char)) {
  61138. const end = splitIndex === -1 ? selectionEnd : splitIndex;
  61139. const pattern4 = inputValue.slice(i + 1, end);
  61140. mentionCtx = {
  61141. pattern: pattern4,
  61142. start: i + 1,
  61143. end,
  61144. prefix: char,
  61145. prefixIndex: i,
  61146. splitIndex,
  61147. selectionEnd
  61148. };
  61149. break;
  61150. }
  61151. }
  61152. return mentionCtx;
  61153. };
  61154. var getCursorPosition = (element, options = {
  61155. debug: false,
  61156. useSelectionEnd: false
  61157. }) => {
  61158. const selectionStart = element.selectionStart !== null ? element.selectionStart : 0;
  61159. const selectionEnd = element.selectionEnd !== null ? element.selectionEnd : 0;
  61160. const position = options.useSelectionEnd ? selectionEnd : selectionStart;
  61161. const properties = [
  61162. "direction",
  61163. "boxSizing",
  61164. "width",
  61165. "height",
  61166. "overflowX",
  61167. "overflowY",
  61168. "borderTopWidth",
  61169. "borderRightWidth",
  61170. "borderBottomWidth",
  61171. "borderLeftWidth",
  61172. "borderStyle",
  61173. "paddingTop",
  61174. "paddingRight",
  61175. "paddingBottom",
  61176. "paddingLeft",
  61177. "fontStyle",
  61178. "fontVariant",
  61179. "fontWeight",
  61180. "fontStretch",
  61181. "fontSize",
  61182. "fontSizeAdjust",
  61183. "lineHeight",
  61184. "fontFamily",
  61185. "textAlign",
  61186. "textTransform",
  61187. "textIndent",
  61188. "textDecoration",
  61189. "letterSpacing",
  61190. "wordSpacing",
  61191. "tabSize",
  61192. "MozTabSize"
  61193. ];
  61194. if (options.debug) {
  61195. const el = document.querySelector("#input-textarea-caret-position-mirror-div");
  61196. if (el == null ? void 0 : el.parentNode)
  61197. el.parentNode.removeChild(el);
  61198. }
  61199. const div = document.createElement("div");
  61200. div.id = "input-textarea-caret-position-mirror-div";
  61201. document.body.appendChild(div);
  61202. const style = div.style;
  61203. const computed2 = window.getComputedStyle(element);
  61204. const isInput = element.nodeName === "INPUT";
  61205. style.whiteSpace = isInput ? "nowrap" : "pre-wrap";
  61206. if (!isInput)
  61207. style.wordWrap = "break-word";
  61208. style.position = "absolute";
  61209. if (!options.debug)
  61210. style.visibility = "hidden";
  61211. properties.forEach((prop) => {
  61212. if (isInput && prop === "lineHeight") {
  61213. if (computed2.boxSizing === "border-box") {
  61214. const height = Number.parseInt(computed2.height);
  61215. const outerHeight = Number.parseInt(computed2.paddingTop) + Number.parseInt(computed2.paddingBottom) + Number.parseInt(computed2.borderTopWidth) + Number.parseInt(computed2.borderBottomWidth);
  61216. const targetHeight = outerHeight + Number.parseInt(computed2.lineHeight);
  61217. if (height > targetHeight) {
  61218. style.lineHeight = `${height - outerHeight}px`;
  61219. } else if (height === targetHeight) {
  61220. style.lineHeight = computed2.lineHeight;
  61221. } else {
  61222. style.lineHeight = "0";
  61223. }
  61224. } else {
  61225. style.lineHeight = computed2.height;
  61226. }
  61227. } else {
  61228. style[prop] = computed2[prop];
  61229. }
  61230. });
  61231. if (isFirefox()) {
  61232. if (element.scrollHeight > Number.parseInt(computed2.height)) {
  61233. style.overflowY = "scroll";
  61234. }
  61235. } else {
  61236. style.overflow = "hidden";
  61237. }
  61238. div.textContent = element.value.slice(0, Math.max(0, position));
  61239. if (isInput && div.textContent) {
  61240. div.textContent = div.textContent.replace(/\s/g, " ");
  61241. }
  61242. const span = document.createElement("span");
  61243. span.textContent = element.value.slice(Math.max(0, position)) || ".";
  61244. span.style.position = "relative";
  61245. span.style.left = `${-element.scrollLeft}px`;
  61246. span.style.top = `${-element.scrollTop}px`;
  61247. div.appendChild(span);
  61248. const relativePosition = {
  61249. top: span.offsetTop + Number.parseInt(computed2.borderTopWidth),
  61250. left: span.offsetLeft + Number.parseInt(computed2.borderLeftWidth),
  61251. height: Number.parseInt(computed2.fontSize) * 1.5
  61252. };
  61253. if (options.debug) {
  61254. span.style.backgroundColor = "#aaa";
  61255. } else {
  61256. document.body.removeChild(div);
  61257. }
  61258. if (relativePosition.left >= element.clientWidth) {
  61259. relativePosition.left = element.clientWidth;
  61260. }
  61261. return relativePosition;
  61262. };
  61263. // node_modules/element-plus/es/components/mention/src/mention.mjs
  61264. var mentionProps = buildProps({
  61265. ...inputProps,
  61266. options: {
  61267. type: definePropType(Array),
  61268. default: () => []
  61269. },
  61270. prefix: {
  61271. type: definePropType([String, Array]),
  61272. default: "@",
  61273. validator: (val) => {
  61274. if (isString(val))
  61275. return val.length === 1;
  61276. return val.every((v2) => isString(v2) && v2.length === 1);
  61277. }
  61278. },
  61279. split: {
  61280. type: String,
  61281. default: " ",
  61282. validator: (val) => val.length === 1
  61283. },
  61284. filterOption: {
  61285. type: definePropType([Boolean, Function]),
  61286. default: () => filterOption,
  61287. validator: (val) => {
  61288. if (val === false)
  61289. return true;
  61290. return isFunction(val);
  61291. }
  61292. },
  61293. placement: {
  61294. type: definePropType(String),
  61295. default: "bottom"
  61296. },
  61297. showArrow: Boolean,
  61298. offset: {
  61299. type: Number,
  61300. default: 0
  61301. },
  61302. whole: Boolean,
  61303. checkIsWhole: {
  61304. type: definePropType(Function)
  61305. },
  61306. modelValue: String,
  61307. loading: Boolean,
  61308. popperClass: useTooltipContentProps.popperClass,
  61309. popperStyle: useTooltipContentProps.popperStyle,
  61310. popperOptions: {
  61311. type: definePropType(Object),
  61312. default: () => ({})
  61313. },
  61314. props: {
  61315. type: definePropType(Object),
  61316. default: () => mentionDefaultProps
  61317. }
  61318. });
  61319. var mentionEmits = {
  61320. [UPDATE_MODEL_EVENT]: (value) => isString(value),
  61321. "whole-remove": (pattern4, prefix) => isString(pattern4) && isString(prefix),
  61322. input: (value) => isString(value),
  61323. search: (pattern4, prefix) => isString(pattern4) && isString(prefix),
  61324. select: (option, prefix) => isObject(option) && isString(prefix),
  61325. focus: (evt) => evt instanceof FocusEvent,
  61326. blur: (evt) => evt instanceof FocusEvent
  61327. };
  61328. var mentionDefaultProps = {
  61329. value: "value",
  61330. label: "label",
  61331. disabled: "disabled"
  61332. };
  61333. // node_modules/element-plus/es/components/mention/src/mention-dropdown.mjs
  61334. var mentionDropdownProps = buildProps({
  61335. options: {
  61336. type: definePropType(Array),
  61337. default: () => []
  61338. },
  61339. loading: Boolean,
  61340. disabled: Boolean,
  61341. contentId: String,
  61342. ariaLabel: String
  61343. });
  61344. var mentionDropdownEmits = {
  61345. select: (option) => isString(option.value)
  61346. };
  61347. // node_modules/element-plus/es/components/mention/src/mention-dropdown2.mjs
  61348. var __default__119 = defineComponent({
  61349. name: "ElMentionDropdown"
  61350. });
  61351. var _sfc_main153 = defineComponent({
  61352. ...__default__119,
  61353. props: mentionDropdownProps,
  61354. emits: mentionDropdownEmits,
  61355. setup(__props, { expose, emit }) {
  61356. const props2 = __props;
  61357. const ns = useNamespace("mention");
  61358. const { t } = useLocale();
  61359. const hoveringIndex = ref(-1);
  61360. const scrollbarRef = ref();
  61361. const optionRefs = ref();
  61362. const dropdownRef = ref();
  61363. const optionkls = (item, index) => [
  61364. ns.be("dropdown", "item"),
  61365. ns.is("hovering", hoveringIndex.value === index),
  61366. ns.is("disabled", item.disabled || props2.disabled)
  61367. ];
  61368. const handleSelect = (item) => {
  61369. if (item.disabled || props2.disabled)
  61370. return;
  61371. emit("select", item);
  61372. };
  61373. const handleMouseEnter = (index) => {
  61374. hoveringIndex.value = index;
  61375. };
  61376. const filteredAllDisabled = computed(() => props2.disabled || props2.options.every((item) => item.disabled));
  61377. const hoverOption = computed(() => props2.options[hoveringIndex.value]);
  61378. const selectHoverOption = () => {
  61379. if (!hoverOption.value)
  61380. return;
  61381. emit("select", hoverOption.value);
  61382. };
  61383. const navigateOptions = (direction2) => {
  61384. const { options } = props2;
  61385. if (options.length === 0 || filteredAllDisabled.value)
  61386. return;
  61387. if (direction2 === "next") {
  61388. hoveringIndex.value++;
  61389. if (hoveringIndex.value === options.length) {
  61390. hoveringIndex.value = 0;
  61391. }
  61392. } else if (direction2 === "prev") {
  61393. hoveringIndex.value--;
  61394. if (hoveringIndex.value < 0) {
  61395. hoveringIndex.value = options.length - 1;
  61396. }
  61397. }
  61398. const option = options[hoveringIndex.value];
  61399. if (option.disabled) {
  61400. navigateOptions(direction2);
  61401. return;
  61402. }
  61403. nextTick(() => scrollToOption(option));
  61404. };
  61405. const scrollToOption = (option) => {
  61406. var _a2, _b, _c, _d;
  61407. const { options } = props2;
  61408. const index = options.findIndex((item) => item.value === option.value);
  61409. const target2 = (_a2 = optionRefs.value) == null ? void 0 : _a2[index];
  61410. if (target2) {
  61411. const menu = (_c = (_b = dropdownRef.value) == null ? void 0 : _b.querySelector) == null ? void 0 : _c.call(_b, `.${ns.be("dropdown", "wrap")}`);
  61412. if (menu) {
  61413. scrollIntoView(menu, target2);
  61414. }
  61415. }
  61416. (_d = scrollbarRef.value) == null ? void 0 : _d.handleScroll();
  61417. };
  61418. const resetHoveringIndex = () => {
  61419. if (filteredAllDisabled.value || props2.options.length === 0) {
  61420. hoveringIndex.value = -1;
  61421. } else {
  61422. hoveringIndex.value = 0;
  61423. }
  61424. };
  61425. watch(() => props2.options, resetHoveringIndex, {
  61426. immediate: true
  61427. });
  61428. expose({
  61429. hoveringIndex,
  61430. navigateOptions,
  61431. selectHoverOption,
  61432. hoverOption
  61433. });
  61434. return (_ctx, _cache) => {
  61435. return openBlock(), createElementBlock("div", {
  61436. ref_key: "dropdownRef",
  61437. ref: dropdownRef,
  61438. class: normalizeClass(unref(ns).b("dropdown"))
  61439. }, [
  61440. _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
  61441. key: 0,
  61442. class: normalizeClass(unref(ns).be("dropdown", "header"))
  61443. }, [
  61444. renderSlot(_ctx.$slots, "header")
  61445. ], 2)) : createCommentVNode("v-if", true),
  61446. withDirectives(createVNode(unref(ElScrollbar), {
  61447. id: _ctx.contentId,
  61448. ref_key: "scrollbarRef",
  61449. ref: scrollbarRef,
  61450. tag: "ul",
  61451. "wrap-class": unref(ns).be("dropdown", "wrap"),
  61452. "view-class": unref(ns).be("dropdown", "list"),
  61453. role: "listbox",
  61454. "aria-label": _ctx.ariaLabel,
  61455. "aria-orientation": "vertical"
  61456. }, {
  61457. default: withCtx(() => [
  61458. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
  61459. return openBlock(), createElementBlock("li", {
  61460. id: `${_ctx.contentId}-${index}`,
  61461. ref_for: true,
  61462. ref_key: "optionRefs",
  61463. ref: optionRefs,
  61464. key: index,
  61465. class: normalizeClass(optionkls(item, index)),
  61466. role: "option",
  61467. "aria-disabled": item.disabled || _ctx.disabled || void 0,
  61468. "aria-selected": hoveringIndex.value === index,
  61469. onMousemove: ($event) => handleMouseEnter(index),
  61470. onClick: withModifiers(($event) => handleSelect(item), ["stop"])
  61471. }, [
  61472. renderSlot(_ctx.$slots, "label", {
  61473. item,
  61474. index
  61475. }, () => {
  61476. var _a2;
  61477. return [
  61478. createBaseVNode("span", null, toDisplayString((_a2 = item.label) != null ? _a2 : item.value), 1)
  61479. ];
  61480. })
  61481. ], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"]);
  61482. }), 128))
  61483. ]),
  61484. _: 3
  61485. }, 8, ["id", "wrap-class", "view-class", "aria-label"]), [
  61486. [vShow, _ctx.options.length > 0 && !_ctx.loading]
  61487. ]),
  61488. _ctx.loading ? (openBlock(), createElementBlock("div", {
  61489. key: 1,
  61490. class: normalizeClass(unref(ns).be("dropdown", "loading"))
  61491. }, [
  61492. renderSlot(_ctx.$slots, "loading", {}, () => [
  61493. createTextVNode(toDisplayString(unref(t)("el.mention.loading")), 1)
  61494. ])
  61495. ], 2)) : createCommentVNode("v-if", true),
  61496. _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
  61497. key: 2,
  61498. class: normalizeClass(unref(ns).be("dropdown", "footer"))
  61499. }, [
  61500. renderSlot(_ctx.$slots, "footer")
  61501. ], 2)) : createCommentVNode("v-if", true)
  61502. ], 2);
  61503. };
  61504. }
  61505. });
  61506. var ElMentionDropdown = _export_sfc(_sfc_main153, [["__file", "mention-dropdown.vue"]]);
  61507. // node_modules/element-plus/es/components/mention/src/mention2.mjs
  61508. var __default__120 = defineComponent({
  61509. name: "ElMention",
  61510. inheritAttrs: false
  61511. });
  61512. var _sfc_main154 = defineComponent({
  61513. ...__default__120,
  61514. props: mentionProps,
  61515. emits: mentionEmits,
  61516. setup(__props, { expose, emit }) {
  61517. const props2 = __props;
  61518. const passInputProps = computed(() => pick_default(props2, Object.keys(inputProps)));
  61519. const ns = useNamespace("mention");
  61520. const disabled = useFormDisabled();
  61521. const contentId = useId();
  61522. const elInputRef = ref();
  61523. const tooltipRef = ref();
  61524. const dropdownRef = ref();
  61525. const visible = ref(false);
  61526. const cursorStyle = ref();
  61527. const mentionCtx = ref();
  61528. const computedPlacement = computed(() => props2.showArrow ? props2.placement : `${props2.placement}-start`);
  61529. const computedFallbackPlacements = computed(() => props2.showArrow ? ["bottom", "top"] : ["bottom-start", "top-start"]);
  61530. const aliasProps = computed(() => ({
  61531. ...mentionDefaultProps,
  61532. ...props2.props
  61533. }));
  61534. const mapOption = (option) => {
  61535. const base = {
  61536. label: option[aliasProps.value.label],
  61537. value: option[aliasProps.value.value],
  61538. disabled: option[aliasProps.value.disabled]
  61539. };
  61540. return { ...option, ...base };
  61541. };
  61542. const options = computed(() => props2.options.map(mapOption));
  61543. const filteredOptions = computed(() => {
  61544. const { filterOption: filterOption2 } = props2;
  61545. if (!mentionCtx.value || !filterOption2)
  61546. return options.value;
  61547. return options.value.filter((option) => filterOption2(mentionCtx.value.pattern, option));
  61548. });
  61549. const dropdownVisible = computed(() => {
  61550. return visible.value && (!!filteredOptions.value.length || props2.loading);
  61551. });
  61552. const hoveringId = computed(() => {
  61553. var _a2;
  61554. return `${contentId.value}-${(_a2 = dropdownRef.value) == null ? void 0 : _a2.hoveringIndex}`;
  61555. });
  61556. const handleInputChange = (value) => {
  61557. emit(UPDATE_MODEL_EVENT, value);
  61558. emit(INPUT_EVENT, value);
  61559. syncAfterCursorMove();
  61560. };
  61561. const handleInputKeyDown = (event) => {
  61562. var _a2, _b, _c, _d;
  61563. if ((_a2 = elInputRef.value) == null ? void 0 : _a2.isComposing)
  61564. return;
  61565. const code = getEventCode(event);
  61566. switch (code) {
  61567. case EVENT_CODE.left:
  61568. case EVENT_CODE.right:
  61569. syncAfterCursorMove();
  61570. break;
  61571. case EVENT_CODE.up:
  61572. case EVENT_CODE.down:
  61573. if (!visible.value)
  61574. return;
  61575. event.preventDefault();
  61576. (_b = dropdownRef.value) == null ? void 0 : _b.navigateOptions(code === EVENT_CODE.up ? "prev" : "next");
  61577. break;
  61578. case EVENT_CODE.enter:
  61579. case EVENT_CODE.numpadEnter:
  61580. if (!visible.value) {
  61581. props2.type !== "textarea" && syncAfterCursorMove();
  61582. return;
  61583. }
  61584. event.preventDefault();
  61585. if ((_c = dropdownRef.value) == null ? void 0 : _c.hoverOption) {
  61586. (_d = dropdownRef.value) == null ? void 0 : _d.selectHoverOption();
  61587. } else {
  61588. visible.value = false;
  61589. }
  61590. break;
  61591. case EVENT_CODE.esc:
  61592. if (!visible.value)
  61593. return;
  61594. event.preventDefault();
  61595. visible.value = false;
  61596. break;
  61597. case EVENT_CODE.backspace:
  61598. if (props2.whole && mentionCtx.value) {
  61599. const { splitIndex, selectionEnd, pattern: pattern4, prefixIndex, prefix } = mentionCtx.value;
  61600. const inputEl = getInputEl();
  61601. if (!inputEl)
  61602. return;
  61603. const inputValue = inputEl.value;
  61604. const matchOption = options.value.find((item) => item.value === pattern4);
  61605. const isWhole = isFunction(props2.checkIsWhole) ? props2.checkIsWhole(pattern4, prefix) : matchOption;
  61606. if (isWhole && splitIndex !== -1 && splitIndex + 1 === selectionEnd) {
  61607. event.preventDefault();
  61608. const newValue = inputValue.slice(0, prefixIndex) + inputValue.slice(splitIndex + 1);
  61609. emit(UPDATE_MODEL_EVENT, newValue);
  61610. emit(INPUT_EVENT, newValue);
  61611. emit("whole-remove", pattern4, prefix);
  61612. const newSelectionEnd = prefixIndex;
  61613. nextTick(() => {
  61614. inputEl.selectionStart = newSelectionEnd;
  61615. inputEl.selectionEnd = newSelectionEnd;
  61616. syncDropdownVisible();
  61617. });
  61618. }
  61619. }
  61620. }
  61621. };
  61622. const { wrapperRef } = useFocusController(elInputRef, {
  61623. disabled,
  61624. afterFocus() {
  61625. syncAfterCursorMove();
  61626. },
  61627. beforeBlur(event) {
  61628. var _a2;
  61629. return (_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event);
  61630. },
  61631. afterBlur() {
  61632. visible.value = false;
  61633. }
  61634. });
  61635. const handleInputMouseDown = () => {
  61636. syncAfterCursorMove();
  61637. };
  61638. const getOriginalOption = (mentionOption) => {
  61639. return props2.options.find((option) => {
  61640. return mentionOption.value === option[aliasProps.value.value];
  61641. });
  61642. };
  61643. const handleSelect = (item) => {
  61644. if (!mentionCtx.value)
  61645. return;
  61646. const inputEl = getInputEl();
  61647. if (!inputEl)
  61648. return;
  61649. const inputValue = inputEl.value;
  61650. const { split: split2 } = props2;
  61651. const newEndPart = inputValue.slice(mentionCtx.value.end);
  61652. const alreadySeparated = newEndPart.startsWith(split2);
  61653. const newMiddlePart = `${item.value}${alreadySeparated ? "" : split2}`;
  61654. const newValue = inputValue.slice(0, mentionCtx.value.start) + newMiddlePart + newEndPart;
  61655. emit(UPDATE_MODEL_EVENT, newValue);
  61656. emit(INPUT_EVENT, newValue);
  61657. emit("select", getOriginalOption(item), mentionCtx.value.prefix);
  61658. const newSelectionEnd = mentionCtx.value.start + newMiddlePart.length + (alreadySeparated ? 1 : 0);
  61659. nextTick(() => {
  61660. inputEl.selectionStart = newSelectionEnd;
  61661. inputEl.selectionEnd = newSelectionEnd;
  61662. inputEl.focus();
  61663. syncDropdownVisible();
  61664. });
  61665. };
  61666. const getInputEl = () => {
  61667. var _a2, _b;
  61668. return props2.type === "textarea" ? (_a2 = elInputRef.value) == null ? void 0 : _a2.textarea : (_b = elInputRef.value) == null ? void 0 : _b.input;
  61669. };
  61670. const syncAfterCursorMove = () => {
  61671. setTimeout(() => {
  61672. syncCursor();
  61673. syncDropdownVisible();
  61674. nextTick(() => {
  61675. var _a2;
  61676. return (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper();
  61677. });
  61678. }, 0);
  61679. };
  61680. const syncCursor = () => {
  61681. const inputEl = getInputEl();
  61682. if (!inputEl)
  61683. return;
  61684. const caretPosition = getCursorPosition(inputEl);
  61685. const inputRect = inputEl.getBoundingClientRect();
  61686. const wrapperRect = wrapperRef.value.getBoundingClientRect();
  61687. cursorStyle.value = {
  61688. position: "absolute",
  61689. width: 0,
  61690. height: `${caretPosition.height}px`,
  61691. left: `${caretPosition.left + inputRect.left - wrapperRect.left}px`,
  61692. top: `${caretPosition.top + inputRect.top - wrapperRect.top}px`
  61693. };
  61694. };
  61695. const syncDropdownVisible = () => {
  61696. const inputEl = getInputEl();
  61697. if (document.activeElement !== inputEl) {
  61698. visible.value = false;
  61699. return;
  61700. }
  61701. const { prefix, split: split2 } = props2;
  61702. mentionCtx.value = getMentionCtx(inputEl, prefix, split2);
  61703. if (mentionCtx.value && mentionCtx.value.splitIndex === -1) {
  61704. visible.value = true;
  61705. emit("search", mentionCtx.value.pattern, mentionCtx.value.prefix);
  61706. return;
  61707. }
  61708. visible.value = false;
  61709. };
  61710. expose({
  61711. input: elInputRef,
  61712. tooltip: tooltipRef,
  61713. dropdownVisible
  61714. });
  61715. return (_ctx, _cache) => {
  61716. return openBlock(), createElementBlock("div", {
  61717. ref_key: "wrapperRef",
  61718. ref: wrapperRef,
  61719. class: normalizeClass(unref(ns).b())
  61720. }, [
  61721. createVNode(unref(ElInput), mergeProps(mergeProps(unref(passInputProps), _ctx.$attrs), {
  61722. ref_key: "elInputRef",
  61723. ref: elInputRef,
  61724. "model-value": _ctx.modelValue,
  61725. disabled: unref(disabled),
  61726. role: unref(dropdownVisible) ? "combobox" : void 0,
  61727. "aria-activedescendant": unref(dropdownVisible) ? unref(hoveringId) || "" : void 0,
  61728. "aria-controls": unref(dropdownVisible) ? unref(contentId) : void 0,
  61729. "aria-expanded": unref(dropdownVisible) || void 0,
  61730. "aria-label": _ctx.ariaLabel,
  61731. "aria-autocomplete": unref(dropdownVisible) ? "none" : void 0,
  61732. "aria-haspopup": unref(dropdownVisible) ? "listbox" : void 0,
  61733. onInput: handleInputChange,
  61734. onKeydown: handleInputKeyDown,
  61735. onMousedown: handleInputMouseDown
  61736. }), createSlots({
  61737. _: 2
  61738. }, [
  61739. renderList(_ctx.$slots, (_2, name) => {
  61740. return {
  61741. name,
  61742. fn: withCtx((slotProps) => [
  61743. renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))
  61744. ])
  61745. };
  61746. })
  61747. ]), 1040, ["model-value", "disabled", "role", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "aria-autocomplete", "aria-haspopup"]),
  61748. createVNode(unref(ElTooltip), {
  61749. ref_key: "tooltipRef",
  61750. ref: tooltipRef,
  61751. visible: unref(dropdownVisible),
  61752. "popper-class": [unref(ns).e("popper"), _ctx.popperClass],
  61753. "popper-style": _ctx.popperStyle,
  61754. "popper-options": _ctx.popperOptions,
  61755. placement: unref(computedPlacement),
  61756. "fallback-placements": unref(computedFallbackPlacements),
  61757. effect: "light",
  61758. pure: "",
  61759. offset: _ctx.offset,
  61760. "show-arrow": _ctx.showArrow
  61761. }, {
  61762. default: withCtx(() => [
  61763. createBaseVNode("div", {
  61764. style: normalizeStyle(cursorStyle.value)
  61765. }, null, 4)
  61766. ]),
  61767. content: withCtx(() => {
  61768. var _a2;
  61769. return [
  61770. createVNode(ElMentionDropdown, {
  61771. ref_key: "dropdownRef",
  61772. ref: dropdownRef,
  61773. options: unref(filteredOptions),
  61774. disabled: unref(disabled),
  61775. loading: _ctx.loading,
  61776. "content-id": unref(contentId),
  61777. "aria-label": _ctx.ariaLabel,
  61778. onSelect: handleSelect,
  61779. onClick: withModifiers((_a2 = elInputRef.value) == null ? void 0 : _a2.focus, ["stop"])
  61780. }, createSlots({
  61781. _: 2
  61782. }, [
  61783. renderList(_ctx.$slots, (_2, name) => {
  61784. return {
  61785. name,
  61786. fn: withCtx((slotProps) => [
  61787. renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))
  61788. ])
  61789. };
  61790. })
  61791. ]), 1032, ["options", "disabled", "loading", "content-id", "aria-label", "onClick"])
  61792. ];
  61793. }),
  61794. _: 3
  61795. }, 8, ["visible", "popper-class", "popper-style", "popper-options", "placement", "fallback-placements", "offset", "show-arrow"])
  61796. ], 2);
  61797. };
  61798. }
  61799. });
  61800. var Mention = _export_sfc(_sfc_main154, [["__file", "mention.vue"]]);
  61801. // node_modules/element-plus/es/components/mention/index.mjs
  61802. var ElMention = withInstall(Mention);
  61803. // node_modules/element-plus/es/components/splitter/src/splitter.mjs
  61804. var splitterProps = buildProps({
  61805. layout: {
  61806. type: String,
  61807. default: "horizontal",
  61808. values: ["horizontal", "vertical"]
  61809. },
  61810. lazy: Boolean
  61811. });
  61812. // node_modules/element-plus/es/components/splitter/src/type.mjs
  61813. var splitterRootContextKey = Symbol("splitterRootContextKey");
  61814. // node_modules/element-plus/es/components/splitter/src/hooks/useContainer.mjs
  61815. function useContainer(layout2) {
  61816. const containerEl = ref();
  61817. const { width, height } = useElementSize(containerEl);
  61818. const containerSize = computed(() => {
  61819. return layout2.value === "horizontal" ? width.value : height.value;
  61820. });
  61821. return { containerEl, containerSize };
  61822. }
  61823. // node_modules/element-plus/es/components/splitter/src/hooks/useSize.mjs
  61824. function getPct(str) {
  61825. return Number(str.slice(0, -1)) / 100;
  61826. }
  61827. function getPx(str) {
  61828. return Number(str.slice(0, -2));
  61829. }
  61830. function isPct(itemSize3) {
  61831. return isString(itemSize3) && itemSize3.endsWith("%");
  61832. }
  61833. function isPx(itemSize3) {
  61834. return isString(itemSize3) && itemSize3.endsWith("px");
  61835. }
  61836. function useSize2(panels, containerSize) {
  61837. const propSizes = computed(() => panels.value.map((i) => i.size));
  61838. const panelCounts = computed(() => panels.value.length);
  61839. const percentSizes = ref([]);
  61840. watch([propSizes, panelCounts, containerSize], () => {
  61841. var _a2;
  61842. let ptgList = [];
  61843. let emptyCount = 0;
  61844. for (let i = 0; i < panelCounts.value; i += 1) {
  61845. const itemSize3 = (_a2 = panels.value[i]) == null ? void 0 : _a2.size;
  61846. if (isPct(itemSize3)) {
  61847. ptgList[i] = getPct(itemSize3);
  61848. } else if (isPx(itemSize3)) {
  61849. ptgList[i] = getPx(itemSize3) / containerSize.value;
  61850. } else if (itemSize3 || itemSize3 === 0) {
  61851. const num = Number(itemSize3);
  61852. if (!Number.isNaN(num)) {
  61853. ptgList[i] = num / containerSize.value;
  61854. }
  61855. } else {
  61856. emptyCount += 1;
  61857. ptgList[i] = void 0;
  61858. }
  61859. }
  61860. const totalPtg = ptgList.reduce((acc, ptg) => acc + (ptg || 0), 0);
  61861. if (totalPtg > 1 || !emptyCount) {
  61862. const scale = 1 / totalPtg;
  61863. ptgList = ptgList.map((ptg) => ptg === void 0 ? 0 : ptg * scale);
  61864. } else {
  61865. const avgRest = (1 - totalPtg) / emptyCount;
  61866. ptgList = ptgList.map((ptg) => ptg === void 0 ? avgRest : ptg);
  61867. }
  61868. percentSizes.value = ptgList;
  61869. });
  61870. const ptg2px = (ptg) => ptg * containerSize.value;
  61871. const pxSizes = computed(() => percentSizes.value.map(ptg2px));
  61872. return { percentSizes, pxSizes };
  61873. }
  61874. // node_modules/element-plus/es/components/splitter/src/hooks/useResize.mjs
  61875. function useResize(panels, containerSize, pxSizes, lazy) {
  61876. const ptg2px = (ptg) => ptg * containerSize.value || 0;
  61877. function getLimitSize(str, defaultLimit) {
  61878. if (isPct(str)) {
  61879. return ptg2px(getPct(str));
  61880. } else if (isPx(str)) {
  61881. return getPx(str);
  61882. }
  61883. return str != null ? str : defaultLimit;
  61884. }
  61885. const lazyOffset = ref(0);
  61886. const movingIndex = ref(null);
  61887. let cachePxSizes = [];
  61888. let updatePanelSizes = NOOP;
  61889. const limitSizes = computed(() => panels.value.map((item) => [item.min, item.max]));
  61890. watch(lazy, () => {
  61891. if (lazyOffset.value) {
  61892. const mouseup = new MouseEvent("mouseup", { bubbles: true });
  61893. window.dispatchEvent(mouseup);
  61894. }
  61895. });
  61896. const onMoveStart = (index) => {
  61897. lazyOffset.value = 0;
  61898. movingIndex.value = { index, confirmed: false };
  61899. cachePxSizes = pxSizes.value;
  61900. };
  61901. const onMoving = (index, offset3) => {
  61902. var _a2, _b;
  61903. let confirmedIndex = null;
  61904. if ((!movingIndex.value || !movingIndex.value.confirmed) && offset3 !== 0) {
  61905. if (offset3 > 0) {
  61906. confirmedIndex = index;
  61907. movingIndex.value = { index, confirmed: true };
  61908. } else {
  61909. for (let i = index; i >= 0; i -= 1) {
  61910. if (cachePxSizes[i] > 0) {
  61911. confirmedIndex = i;
  61912. movingIndex.value = { index: i, confirmed: true };
  61913. break;
  61914. }
  61915. }
  61916. }
  61917. }
  61918. const mergedIndex = (_b = confirmedIndex != null ? confirmedIndex : (_a2 = movingIndex.value) == null ? void 0 : _a2.index) != null ? _b : index;
  61919. const numSizes = [...cachePxSizes];
  61920. const nextIndex = mergedIndex + 1;
  61921. const startMinSize = getLimitSize(limitSizes.value[mergedIndex][0], 0);
  61922. const endMinSize = getLimitSize(limitSizes.value[nextIndex][0], 0);
  61923. const startMaxSize = getLimitSize(limitSizes.value[mergedIndex][1], containerSize.value || 0);
  61924. const endMaxSize = getLimitSize(limitSizes.value[nextIndex][1], containerSize.value || 0);
  61925. let mergedOffset = offset3;
  61926. if (numSizes[mergedIndex] + mergedOffset < startMinSize) {
  61927. mergedOffset = startMinSize - numSizes[mergedIndex];
  61928. }
  61929. if (numSizes[nextIndex] - mergedOffset < endMinSize) {
  61930. mergedOffset = numSizes[nextIndex] - endMinSize;
  61931. }
  61932. if (numSizes[mergedIndex] + mergedOffset > startMaxSize) {
  61933. mergedOffset = startMaxSize - numSizes[mergedIndex];
  61934. }
  61935. if (numSizes[nextIndex] - mergedOffset > endMaxSize) {
  61936. mergedOffset = numSizes[nextIndex] - endMaxSize;
  61937. }
  61938. numSizes[mergedIndex] += mergedOffset;
  61939. numSizes[nextIndex] -= mergedOffset;
  61940. lazyOffset.value = mergedOffset;
  61941. updatePanelSizes = () => {
  61942. panels.value.forEach((panel, index2) => {
  61943. panel.size = numSizes[index2];
  61944. });
  61945. updatePanelSizes = NOOP;
  61946. };
  61947. if (!lazy.value) {
  61948. updatePanelSizes();
  61949. }
  61950. };
  61951. const onMoveEnd = () => {
  61952. if (lazy.value) {
  61953. updatePanelSizes();
  61954. }
  61955. lazyOffset.value = 0;
  61956. movingIndex.value = null;
  61957. cachePxSizes = [];
  61958. };
  61959. const cacheCollapsedSize = [];
  61960. const onCollapse = (index, type4) => {
  61961. if (!cacheCollapsedSize.length) {
  61962. cacheCollapsedSize.push(...pxSizes.value);
  61963. }
  61964. const currentSizes = pxSizes.value;
  61965. const currentIndex = type4 === "start" ? index : index + 1;
  61966. const targetIndex = type4 === "start" ? index + 1 : index;
  61967. const currentSize = currentSizes[currentIndex];
  61968. const targetSize = currentSizes[targetIndex];
  61969. if (currentSize !== 0 && targetSize !== 0) {
  61970. currentSizes[currentIndex] = 0;
  61971. currentSizes[targetIndex] += currentSize;
  61972. cacheCollapsedSize[index] = currentSize;
  61973. } else {
  61974. const totalSize = currentSize + targetSize;
  61975. const targetCacheCollapsedSize = cacheCollapsedSize[index];
  61976. const currentCacheCollapsedSize = totalSize - targetCacheCollapsedSize;
  61977. currentSizes[targetIndex] = targetCacheCollapsedSize;
  61978. currentSizes[currentIndex] = currentCacheCollapsedSize;
  61979. }
  61980. panels.value.forEach((panel, index2) => {
  61981. panel.size = currentSizes[index2];
  61982. });
  61983. };
  61984. return {
  61985. lazyOffset,
  61986. onMoveStart,
  61987. onMoving,
  61988. onMoveEnd,
  61989. movingIndex,
  61990. onCollapse
  61991. };
  61992. }
  61993. // node_modules/element-plus/es/components/splitter/src/splitter2.mjs
  61994. var __default__121 = defineComponent({
  61995. name: "ElSplitter"
  61996. });
  61997. var _sfc_main155 = defineComponent({
  61998. ...__default__121,
  61999. props: splitterProps,
  62000. emits: ["resizeStart", "resize", "resizeEnd", "collapse"],
  62001. setup(__props, { emit: emits }) {
  62002. const props2 = __props;
  62003. const ns = useNamespace("splitter");
  62004. const layout2 = toRef(props2, "layout");
  62005. const lazy = toRef(props2, "lazy");
  62006. const { containerEl, containerSize } = useContainer(layout2);
  62007. const {
  62008. removeChild: unregisterPanel,
  62009. children: panels,
  62010. addChild: registerPanel,
  62011. ChildrenSorter: PanelsSorter
  62012. } = useOrderedChildren(getCurrentInstance(), "ElSplitterPanel");
  62013. watch(panels, () => {
  62014. panels.value.forEach((instance, index) => {
  62015. instance.setIndex(index);
  62016. });
  62017. });
  62018. const { percentSizes, pxSizes } = useSize2(panels, containerSize);
  62019. const {
  62020. lazyOffset,
  62021. movingIndex,
  62022. onMoveStart,
  62023. onMoving,
  62024. onMoveEnd,
  62025. onCollapse
  62026. } = useResize(panels, containerSize, pxSizes, lazy);
  62027. const splitterStyles = computed(() => {
  62028. return {
  62029. [ns.cssVarBlockName("bar-offset")]: lazy.value ? `${lazyOffset.value}px` : void 0
  62030. };
  62031. });
  62032. const onResizeStart = (index) => {
  62033. onMoveStart(index);
  62034. emits("resizeStart", index, pxSizes.value);
  62035. };
  62036. const onResize = (index, offset3) => {
  62037. onMoving(index, offset3);
  62038. if (!lazy.value) {
  62039. emits("resize", index, pxSizes.value);
  62040. }
  62041. };
  62042. const onResizeEnd = async (index) => {
  62043. onMoveEnd();
  62044. await nextTick();
  62045. emits("resizeEnd", index, pxSizes.value);
  62046. };
  62047. const onCollapsible = (index, type4) => {
  62048. onCollapse(index, type4);
  62049. emits("collapse", index, type4, pxSizes.value);
  62050. };
  62051. provide(splitterRootContextKey, reactive({
  62052. panels,
  62053. percentSizes,
  62054. pxSizes,
  62055. layout: layout2,
  62056. lazy,
  62057. movingIndex,
  62058. containerSize,
  62059. onMoveStart: onResizeStart,
  62060. onMoving: onResize,
  62061. onMoveEnd: onResizeEnd,
  62062. onCollapse: onCollapsible,
  62063. registerPanel,
  62064. unregisterPanel
  62065. }));
  62066. return (_ctx, _cache) => {
  62067. return openBlock(), createElementBlock("div", {
  62068. ref_key: "containerEl",
  62069. ref: containerEl,
  62070. class: normalizeClass([unref(ns).b(), unref(ns).e(unref(layout2))]),
  62071. style: normalizeStyle(unref(splitterStyles))
  62072. }, [
  62073. renderSlot(_ctx.$slots, "default"),
  62074. createVNode(unref(PanelsSorter)),
  62075. createCommentVNode(" Prevent iframe touch events from breaking "),
  62076. unref(movingIndex) ? (openBlock(), createElementBlock("div", {
  62077. key: 0,
  62078. class: normalizeClass([unref(ns).e("mask"), unref(ns).e(`mask-${unref(layout2)}`)])
  62079. }, null, 2)) : createCommentVNode("v-if", true)
  62080. ], 6);
  62081. };
  62082. }
  62083. });
  62084. var Splitter = _export_sfc(_sfc_main155, [["__file", "splitter.vue"]]);
  62085. // node_modules/element-plus/es/components/splitter/src/hooks/usePanel.mjs
  62086. function getCollapsible(collapsible) {
  62087. if (collapsible && isObject(collapsible)) {
  62088. return collapsible;
  62089. }
  62090. return {
  62091. start: !!collapsible,
  62092. end: !!collapsible
  62093. };
  62094. }
  62095. function isCollapsible(panel, size3, nextPanel, nextSize) {
  62096. if ((panel == null ? void 0 : panel.collapsible.end) && size3 > 0) {
  62097. return true;
  62098. }
  62099. if ((nextPanel == null ? void 0 : nextPanel.collapsible.start) && nextSize === 0 && size3 > 0) {
  62100. return true;
  62101. }
  62102. return false;
  62103. }
  62104. // node_modules/element-plus/es/components/splitter/src/split-bar.mjs
  62105. var __default__122 = defineComponent({
  62106. name: "ElSplitterBar"
  62107. });
  62108. var _sfc_main156 = defineComponent({
  62109. ...__default__122,
  62110. props: {
  62111. index: {
  62112. type: Number,
  62113. required: true
  62114. },
  62115. layout: {
  62116. type: String,
  62117. values: ["horizontal", "vertical"],
  62118. default: "horizontal"
  62119. },
  62120. resizable: {
  62121. type: Boolean,
  62122. default: true
  62123. },
  62124. lazy: Boolean,
  62125. startCollapsible: Boolean,
  62126. endCollapsible: Boolean
  62127. },
  62128. emits: ["moveStart", "moving", "moveEnd", "collapse"],
  62129. setup(__props, { emit }) {
  62130. const props2 = __props;
  62131. const ns = useNamespace("splitter-bar");
  62132. const isHorizontal2 = computed(() => props2.layout === "horizontal");
  62133. const barWrapStyles = computed(() => {
  62134. if (isHorizontal2.value) {
  62135. return { width: 0 };
  62136. }
  62137. return { height: 0 };
  62138. });
  62139. const draggerStyles = computed(() => {
  62140. return {
  62141. width: isHorizontal2.value ? "16px" : "100%",
  62142. height: isHorizontal2.value ? "100%" : "16px",
  62143. cursor: !props2.resizable ? "auto" : isHorizontal2.value ? "ew-resize" : "ns-resize",
  62144. touchAction: "none"
  62145. };
  62146. });
  62147. const draggerPseudoClass = computed(() => {
  62148. const prefix = ns.e("dragger");
  62149. return {
  62150. [`${prefix}-horizontal`]: isHorizontal2.value,
  62151. [`${prefix}-vertical`]: !isHorizontal2.value,
  62152. [`${prefix}-active`]: !!startPos.value
  62153. };
  62154. });
  62155. const startPos = ref(null);
  62156. const onMousedown = (e) => {
  62157. if (!props2.resizable)
  62158. return;
  62159. startPos.value = [e.pageX, e.pageY];
  62160. emit("moveStart", props2.index);
  62161. window.addEventListener("mouseup", onMouseUp);
  62162. window.addEventListener("mousemove", onMouseMove);
  62163. };
  62164. const onTouchStart = (e) => {
  62165. if (props2.resizable && e.touches.length === 1) {
  62166. e.preventDefault();
  62167. const touch = e.touches[0];
  62168. startPos.value = [touch.pageX, touch.pageY];
  62169. emit("moveStart", props2.index);
  62170. window.addEventListener("touchend", onTouchEnd);
  62171. window.addEventListener("touchmove", onTouchMove);
  62172. }
  62173. };
  62174. const onMouseMove = (e) => {
  62175. const { pageX, pageY } = e;
  62176. const offsetX = pageX - startPos.value[0];
  62177. const offsetY = pageY - startPos.value[1];
  62178. const offset3 = isHorizontal2.value ? offsetX : offsetY;
  62179. emit("moving", props2.index, offset3);
  62180. };
  62181. const onTouchMove = (e) => {
  62182. if (e.touches.length === 1) {
  62183. e.preventDefault();
  62184. const touch = e.touches[0];
  62185. const offsetX = touch.pageX - startPos.value[0];
  62186. const offsetY = touch.pageY - startPos.value[1];
  62187. const offset3 = isHorizontal2.value ? offsetX : offsetY;
  62188. emit("moving", props2.index, offset3);
  62189. }
  62190. };
  62191. const onMouseUp = () => {
  62192. startPos.value = null;
  62193. window.removeEventListener("mouseup", onMouseUp);
  62194. window.removeEventListener("mousemove", onMouseMove);
  62195. emit("moveEnd", props2.index);
  62196. };
  62197. const onTouchEnd = () => {
  62198. startPos.value = null;
  62199. window.removeEventListener("touchend", onTouchEnd);
  62200. window.removeEventListener("touchmove", onTouchMove);
  62201. emit("moveEnd", props2.index);
  62202. };
  62203. const StartIcon = computed(() => isHorizontal2.value ? arrow_left_default : arrow_up_default);
  62204. const EndIcon = computed(() => isHorizontal2.value ? arrow_right_default : arrow_down_default);
  62205. return (_ctx, _cache) => {
  62206. return openBlock(), createElementBlock("div", {
  62207. class: normalizeClass([unref(ns).b()]),
  62208. style: normalizeStyle(unref(barWrapStyles))
  62209. }, [
  62210. __props.startCollapsible ? (openBlock(), createElementBlock("div", {
  62211. key: 0,
  62212. class: normalizeClass([unref(ns).e("collapse-icon"), unref(ns).e(`${__props.layout}-collapse-icon-start`)]),
  62213. onClick: ($event) => emit("collapse", __props.index, "start")
  62214. }, [
  62215. renderSlot(_ctx.$slots, "start-collapsible", {}, () => [
  62216. (openBlock(), createBlock(resolveDynamicComponent(unref(StartIcon)), { style: { "width": "12px", "height": "12px" } }))
  62217. ])
  62218. ], 10, ["onClick"])) : createCommentVNode("v-if", true),
  62219. createBaseVNode("div", {
  62220. class: normalizeClass([
  62221. unref(ns).e("dragger"),
  62222. unref(draggerPseudoClass),
  62223. unref(ns).is("disabled", !__props.resizable),
  62224. unref(ns).is("lazy", __props.resizable && __props.lazy)
  62225. ]),
  62226. style: normalizeStyle(unref(draggerStyles)),
  62227. onMousedown,
  62228. onTouchstart: onTouchStart
  62229. }, null, 38),
  62230. __props.endCollapsible ? (openBlock(), createElementBlock("div", {
  62231. key: 1,
  62232. class: normalizeClass([unref(ns).e("collapse-icon"), unref(ns).e(`${__props.layout}-collapse-icon-end`)]),
  62233. onClick: ($event) => emit("collapse", __props.index, "end")
  62234. }, [
  62235. renderSlot(_ctx.$slots, "end-collapsible", {}, () => [
  62236. (openBlock(), createBlock(resolveDynamicComponent(unref(EndIcon)), { style: { "width": "12px", "height": "12px" } }))
  62237. ])
  62238. ], 10, ["onClick"])) : createCommentVNode("v-if", true)
  62239. ], 6);
  62240. };
  62241. }
  62242. });
  62243. var SplitBar = _export_sfc(_sfc_main156, [["__file", "split-bar.vue"]]);
  62244. // node_modules/element-plus/es/components/splitter/src/split-panel.mjs
  62245. var splitterPanelProps = buildProps({
  62246. min: {
  62247. type: [String, Number]
  62248. },
  62249. max: {
  62250. type: [String, Number]
  62251. },
  62252. size: {
  62253. type: [String, Number]
  62254. },
  62255. resizable: {
  62256. type: Boolean,
  62257. default: true
  62258. },
  62259. collapsible: Boolean
  62260. });
  62261. // node_modules/element-plus/es/components/splitter/src/split-panel2.mjs
  62262. var COMPONENT_NAME26 = "ElSplitterPanel";
  62263. var __default__123 = defineComponent({
  62264. name: COMPONENT_NAME26
  62265. });
  62266. var _sfc_main157 = defineComponent({
  62267. ...__default__123,
  62268. props: splitterPanelProps,
  62269. emits: ["update:size"],
  62270. setup(__props, { emit: emits }) {
  62271. const props2 = __props;
  62272. const ns = useNamespace("splitter-panel");
  62273. const splitterContext = inject(splitterRootContextKey);
  62274. if (!splitterContext)
  62275. throwError(COMPONENT_NAME26, "usage: <el-splitter><el-splitter-panel /></el-splitter/>");
  62276. const { panels, layout: layout2, lazy, containerSize, pxSizes } = toRefs(splitterContext);
  62277. const {
  62278. registerPanel,
  62279. unregisterPanel,
  62280. onCollapse,
  62281. onMoveEnd,
  62282. onMoveStart,
  62283. onMoving
  62284. } = splitterContext;
  62285. const panelEl = ref();
  62286. const instance = getCurrentInstance();
  62287. const uid2 = instance.uid;
  62288. const index = ref(0);
  62289. const panel = computed(() => panels.value[index.value]);
  62290. const setIndex = (val) => {
  62291. index.value = val;
  62292. };
  62293. const panelSize = computed(() => {
  62294. var _a2;
  62295. if (!panel.value)
  62296. return 0;
  62297. return (_a2 = pxSizes.value[index.value]) != null ? _a2 : 0;
  62298. });
  62299. const nextSize = computed(() => {
  62300. var _a2;
  62301. if (!panel.value)
  62302. return 0;
  62303. return (_a2 = pxSizes.value[index.value + 1]) != null ? _a2 : 0;
  62304. });
  62305. const nextPanel = computed(() => {
  62306. if (panel.value) {
  62307. return panels.value[index.value + 1];
  62308. }
  62309. return null;
  62310. });
  62311. const isResizable = computed(() => {
  62312. var _a2;
  62313. if (!nextPanel.value)
  62314. return false;
  62315. return props2.resizable && ((_a2 = nextPanel.value) == null ? void 0 : _a2.resizable) && (panelSize.value !== 0 || !props2.min) && (nextSize.value !== 0 || !nextPanel.value.min);
  62316. });
  62317. const isShowBar = computed(() => {
  62318. if (!panel.value)
  62319. return false;
  62320. return index.value !== panels.value.length - 1;
  62321. });
  62322. const startCollapsible = computed(() => isCollapsible(panel.value, panelSize.value, nextPanel.value, nextSize.value));
  62323. const endCollapsible = computed(() => isCollapsible(nextPanel.value, nextSize.value, panel.value, panelSize.value));
  62324. function sizeToPx(str) {
  62325. if (isPct(str)) {
  62326. return getPct(str) * containerSize.value || 0;
  62327. } else if (isPx(str)) {
  62328. return getPx(str);
  62329. }
  62330. return str != null ? str : 0;
  62331. }
  62332. let isSizeUpdating = false;
  62333. watch(() => props2.size, () => {
  62334. if (!isSizeUpdating && panel.value) {
  62335. if (!containerSize.value) {
  62336. panel.value.size = props2.size;
  62337. return;
  62338. }
  62339. const size3 = sizeToPx(props2.size);
  62340. const maxSize = sizeToPx(props2.max);
  62341. const minSize = sizeToPx(props2.min);
  62342. const finalSize = Math.min(Math.max(size3, minSize || 0), maxSize || size3);
  62343. if (finalSize !== size3) {
  62344. emits("update:size", finalSize);
  62345. }
  62346. panel.value.size = finalSize;
  62347. }
  62348. });
  62349. watch(() => {
  62350. var _a2;
  62351. return (_a2 = panel.value) == null ? void 0 : _a2.size;
  62352. }, (val) => {
  62353. if (val !== props2.size) {
  62354. isSizeUpdating = true;
  62355. emits("update:size", val);
  62356. nextTick(() => isSizeUpdating = false);
  62357. }
  62358. });
  62359. watch(() => props2.resizable, (val) => {
  62360. if (panel.value) {
  62361. panel.value.resizable = val;
  62362. }
  62363. });
  62364. const _panel = reactive({
  62365. el: panelEl.value,
  62366. uid: uid2,
  62367. getVnode: () => instance.vnode,
  62368. setIndex,
  62369. ...props2,
  62370. collapsible: computed(() => getCollapsible(props2.collapsible))
  62371. });
  62372. registerPanel(_panel);
  62373. onBeforeUnmount(() => unregisterPanel(_panel));
  62374. return (_ctx, _cache) => {
  62375. return openBlock(), createElementBlock(Fragment, null, [
  62376. createBaseVNode("div", mergeProps({
  62377. ref_key: "panelEl",
  62378. ref: panelEl,
  62379. class: [unref(ns).b()],
  62380. style: { flexBasis: `${unref(panelSize)}px` }
  62381. }, _ctx.$attrs), [
  62382. renderSlot(_ctx.$slots, "default")
  62383. ], 16),
  62384. unref(isShowBar) ? (openBlock(), createBlock(SplitBar, {
  62385. key: 0,
  62386. index: index.value,
  62387. layout: unref(layout2),
  62388. lazy: unref(lazy),
  62389. resizable: unref(isResizable),
  62390. "start-collapsible": unref(startCollapsible),
  62391. "end-collapsible": unref(endCollapsible),
  62392. onMoveStart: unref(onMoveStart),
  62393. onMoving: unref(onMoving),
  62394. onMoveEnd: unref(onMoveEnd),
  62395. onCollapse: unref(onCollapse)
  62396. }, {
  62397. "start-collapsible": withCtx(() => [
  62398. renderSlot(_ctx.$slots, "start-collapsible")
  62399. ]),
  62400. "end-collapsible": withCtx(() => [
  62401. renderSlot(_ctx.$slots, "end-collapsible")
  62402. ]),
  62403. _: 3
  62404. }, 8, ["index", "layout", "lazy", "resizable", "start-collapsible", "end-collapsible", "onMoveStart", "onMoving", "onMoveEnd", "onCollapse"])) : createCommentVNode("v-if", true)
  62405. ], 64);
  62406. };
  62407. }
  62408. });
  62409. var SplitPanel = _export_sfc(_sfc_main157, [["__file", "split-panel.vue"]]);
  62410. // node_modules/element-plus/es/components/splitter/index.mjs
  62411. var ElSplitter = withInstall(Splitter, {
  62412. SplitPanel
  62413. });
  62414. var ElSplitterPanel = withNoopInstall(SplitPanel);
  62415. // node_modules/element-plus/es/component.mjs
  62416. var Components = [
  62417. ElAffix,
  62418. ElAlert,
  62419. ElAutocomplete,
  62420. ElAutoResizer,
  62421. ElAvatar,
  62422. ElBacktop,
  62423. ElBadge,
  62424. ElBreadcrumb,
  62425. ElBreadcrumbItem,
  62426. ElButton,
  62427. ElButtonGroup,
  62428. ElCalendar,
  62429. ElCard,
  62430. ElCarousel,
  62431. ElCarouselItem,
  62432. ElCascader,
  62433. ElCascaderPanel,
  62434. ElCheckTag,
  62435. ElCheckbox,
  62436. ElCheckboxButton,
  62437. ElCheckboxGroup,
  62438. ElCol,
  62439. ElCollapse,
  62440. ElCollapseItem,
  62441. ElCollapseTransition,
  62442. ElColorPickerPanel,
  62443. ElColorPicker,
  62444. ElConfigProvider,
  62445. ElContainer,
  62446. ElAside,
  62447. ElFooter,
  62448. ElHeader,
  62449. ElMain,
  62450. ElDatePicker,
  62451. ElDatePickerPanel,
  62452. ElDescriptions,
  62453. ElDescriptionsItem,
  62454. ElDialog,
  62455. ElDivider,
  62456. ElDrawer,
  62457. ElDropdown,
  62458. ElDropdownItem,
  62459. ElDropdownMenu,
  62460. ElEmpty,
  62461. ElForm,
  62462. ElFormItem,
  62463. ElIcon,
  62464. ElImage,
  62465. ElImageViewer,
  62466. ElInput,
  62467. ElInputNumber,
  62468. ElInputTag,
  62469. ElLink,
  62470. ElMenu,
  62471. ElMenuItem,
  62472. ElMenuItemGroup,
  62473. ElSubMenu,
  62474. ElPageHeader,
  62475. ElPagination,
  62476. ElPopconfirm,
  62477. ElPopover,
  62478. ElPopper,
  62479. ElProgress,
  62480. ElRadio,
  62481. ElRadioButton,
  62482. ElRadioGroup,
  62483. ElRate,
  62484. ElResult,
  62485. ElRow,
  62486. ElScrollbar,
  62487. ElSelect,
  62488. ElOption,
  62489. ElOptionGroup,
  62490. ElSelectV2,
  62491. ElSkeleton,
  62492. ElSkeletonItem,
  62493. ElSlider,
  62494. ElSpace,
  62495. ElStatistic,
  62496. ElCountdown,
  62497. ElSteps,
  62498. ElStep,
  62499. ElSwitch,
  62500. ElTable,
  62501. ElTableColumn2,
  62502. ElTableV2,
  62503. ElTabs,
  62504. ElTabPane,
  62505. ElTag,
  62506. ElText,
  62507. ElTimePicker,
  62508. ElTimeSelect,
  62509. ElTimeline,
  62510. ElTimelineItem,
  62511. ElTooltip,
  62512. ElTransfer,
  62513. ElTree,
  62514. ElTreeSelect,
  62515. ElTreeV2,
  62516. ElUpload,
  62517. ElWatermark,
  62518. ElTour,
  62519. ElTourStep,
  62520. ElAnchor,
  62521. ElAnchorLink,
  62522. ElSegmented,
  62523. ElMention,
  62524. ElSplitter,
  62525. ElSplitterPanel
  62526. ];
  62527. // node_modules/element-plus/es/components/infinite-scroll/src/index.mjs
  62528. var SCOPE10 = "ElInfiniteScroll";
  62529. var CHECK_INTERVAL = 50;
  62530. var DEFAULT_DELAY = 200;
  62531. var DEFAULT_DISTANCE = 0;
  62532. var attributes = {
  62533. delay: {
  62534. type: Number,
  62535. default: DEFAULT_DELAY
  62536. },
  62537. distance: {
  62538. type: Number,
  62539. default: DEFAULT_DISTANCE
  62540. },
  62541. disabled: {
  62542. type: Boolean,
  62543. default: false
  62544. },
  62545. immediate: {
  62546. type: Boolean,
  62547. default: true
  62548. }
  62549. };
  62550. var getScrollOptions = (el, instance) => {
  62551. return Object.entries(attributes).reduce((acm, [name, option]) => {
  62552. var _a2, _b;
  62553. const { type: type4, default: defaultValue } = option;
  62554. const attrVal = el.getAttribute(`infinite-scroll-${name}`);
  62555. let value = (_b = (_a2 = instance[attrVal]) != null ? _a2 : attrVal) != null ? _b : defaultValue;
  62556. value = value === "false" ? false : value;
  62557. value = type4(value);
  62558. acm[name] = Number.isNaN(value) ? defaultValue : value;
  62559. return acm;
  62560. }, {});
  62561. };
  62562. var destroyObserver = (el) => {
  62563. const { observer } = el[SCOPE10];
  62564. if (observer) {
  62565. observer.disconnect();
  62566. delete el[SCOPE10].observer;
  62567. }
  62568. };
  62569. var handleScroll = (el, cb) => {
  62570. const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE10];
  62571. const { disabled, distance } = getScrollOptions(el, instance);
  62572. const { clientHeight, scrollHeight, scrollTop } = containerEl;
  62573. const delta = scrollTop - lastScrollTop;
  62574. el[SCOPE10].lastScrollTop = scrollTop;
  62575. if (observer || disabled || delta < 0)
  62576. return;
  62577. let shouldTrigger = false;
  62578. if (container === el) {
  62579. shouldTrigger = scrollHeight - (clientHeight + scrollTop) <= distance;
  62580. } else {
  62581. const { clientTop, scrollHeight: height } = el;
  62582. const offsetTop = getOffsetTopDistance(el, containerEl);
  62583. shouldTrigger = scrollTop + clientHeight >= offsetTop + clientTop + height - distance;
  62584. }
  62585. if (shouldTrigger) {
  62586. cb.call(instance);
  62587. }
  62588. };
  62589. function checkFull(el, cb) {
  62590. const { containerEl, instance } = el[SCOPE10];
  62591. const { disabled } = getScrollOptions(el, instance);
  62592. if (disabled || containerEl.clientHeight === 0)
  62593. return;
  62594. if (containerEl.scrollHeight <= containerEl.clientHeight) {
  62595. cb.call(instance);
  62596. } else {
  62597. destroyObserver(el);
  62598. }
  62599. }
  62600. var InfiniteScroll = {
  62601. async mounted(el, binding) {
  62602. const { instance, value: cb } = binding;
  62603. useDeprecated({
  62604. scope: SCOPE10,
  62605. from: "the directive v-infinite-scroll",
  62606. replacement: "the el-scrollbar infinite scroll",
  62607. version: "3.0.0",
  62608. ref: "https://element-plus.org/en-US/component/scrollbar#infinite-scroll"
  62609. }, true);
  62610. if (!isFunction(cb)) {
  62611. throwError(SCOPE10, "'v-infinite-scroll' binding value must be a function");
  62612. }
  62613. await nextTick();
  62614. const { delay: delay2, immediate } = getScrollOptions(el, instance);
  62615. const container = getScrollContainer(el, true);
  62616. const containerEl = container === window ? document.documentElement : container;
  62617. const onScroll = throttle_default(handleScroll.bind(null, el, cb), delay2);
  62618. if (!container)
  62619. return;
  62620. el[SCOPE10] = {
  62621. instance,
  62622. container,
  62623. containerEl,
  62624. delay: delay2,
  62625. cb,
  62626. onScroll,
  62627. lastScrollTop: containerEl.scrollTop
  62628. };
  62629. if (immediate) {
  62630. const observer = new MutationObserver(throttle_default(checkFull.bind(null, el, cb), CHECK_INTERVAL));
  62631. el[SCOPE10].observer = observer;
  62632. observer.observe(el, { childList: true, subtree: true });
  62633. checkFull(el, cb);
  62634. }
  62635. container.addEventListener("scroll", onScroll);
  62636. },
  62637. unmounted(el) {
  62638. if (!el[SCOPE10])
  62639. return;
  62640. const { container, onScroll } = el[SCOPE10];
  62641. container == null ? void 0 : container.removeEventListener("scroll", onScroll);
  62642. destroyObserver(el);
  62643. },
  62644. async updated(el) {
  62645. if (!el[SCOPE10]) {
  62646. await nextTick();
  62647. } else {
  62648. const { containerEl, cb, observer } = el[SCOPE10];
  62649. if (containerEl.clientHeight && observer) {
  62650. checkFull(el, cb);
  62651. }
  62652. }
  62653. }
  62654. };
  62655. // node_modules/element-plus/es/components/infinite-scroll/index.mjs
  62656. var _InfiniteScroll = InfiniteScroll;
  62657. _InfiniteScroll.install = (app) => {
  62658. app.directive("InfiniteScroll", _InfiniteScroll);
  62659. };
  62660. var ElInfiniteScroll = _InfiniteScroll;
  62661. // node_modules/element-plus/es/components/loading/src/loading.mjs
  62662. function createLoadingComponent(options, appContext) {
  62663. let afterLeaveTimer;
  62664. const afterLeaveFlag = ref(false);
  62665. const data = reactive({
  62666. ...options,
  62667. originalPosition: "",
  62668. originalOverflow: "",
  62669. visible: false
  62670. });
  62671. function setText(text) {
  62672. data.text = text;
  62673. }
  62674. function destroySelf() {
  62675. const target2 = data.parent;
  62676. const ns = vm.ns;
  62677. if (!target2.vLoadingAddClassList) {
  62678. let loadingNumber = target2.getAttribute("loading-number");
  62679. loadingNumber = Number.parseInt(loadingNumber) - 1;
  62680. if (!loadingNumber) {
  62681. removeClass(target2, ns.bm("parent", "relative"));
  62682. target2.removeAttribute("loading-number");
  62683. } else {
  62684. target2.setAttribute("loading-number", loadingNumber.toString());
  62685. }
  62686. removeClass(target2, ns.bm("parent", "hidden"));
  62687. }
  62688. removeElLoadingChild();
  62689. loadingInstance.unmount();
  62690. }
  62691. function removeElLoadingChild() {
  62692. var _a2, _b;
  62693. (_b = (_a2 = vm.$el) == null ? void 0 : _a2.parentNode) == null ? void 0 : _b.removeChild(vm.$el);
  62694. }
  62695. function close2() {
  62696. var _a2;
  62697. if (options.beforeClose && !options.beforeClose())
  62698. return;
  62699. afterLeaveFlag.value = true;
  62700. clearTimeout(afterLeaveTimer);
  62701. afterLeaveTimer = setTimeout(handleAfterLeave, 400);
  62702. data.visible = false;
  62703. (_a2 = options.closed) == null ? void 0 : _a2.call(options);
  62704. }
  62705. function handleAfterLeave() {
  62706. if (!afterLeaveFlag.value)
  62707. return;
  62708. const target2 = data.parent;
  62709. afterLeaveFlag.value = false;
  62710. target2.vLoadingAddClassList = void 0;
  62711. destroySelf();
  62712. }
  62713. const elLoadingComponent = defineComponent({
  62714. name: "ElLoading",
  62715. setup(_2, { expose }) {
  62716. const { ns, zIndex: zIndex2 } = useGlobalComponentSettings("loading");
  62717. expose({
  62718. ns,
  62719. zIndex: zIndex2
  62720. });
  62721. return () => {
  62722. const svg = data.spinner || data.svg;
  62723. const spinner = h("svg", {
  62724. class: "circular",
  62725. viewBox: data.svgViewBox ? data.svgViewBox : "0 0 50 50",
  62726. ...svg ? { innerHTML: svg } : {}
  62727. }, [
  62728. h("circle", {
  62729. class: "path",
  62730. cx: "25",
  62731. cy: "25",
  62732. r: "20",
  62733. fill: "none"
  62734. })
  62735. ]);
  62736. const spinnerText = data.text ? h("p", { class: ns.b("text") }, [data.text]) : void 0;
  62737. return h(Transition, {
  62738. name: ns.b("fade"),
  62739. onAfterLeave: handleAfterLeave
  62740. }, {
  62741. default: withCtx(() => [
  62742. withDirectives(createVNode("div", {
  62743. style: {
  62744. backgroundColor: data.background || ""
  62745. },
  62746. class: [
  62747. ns.b("mask"),
  62748. data.customClass,
  62749. ns.is("fullscreen", data.fullscreen)
  62750. ]
  62751. }, [
  62752. h("div", {
  62753. class: ns.b("spinner")
  62754. }, [spinner, spinnerText])
  62755. ]), [[vShow, data.visible]])
  62756. ])
  62757. });
  62758. };
  62759. }
  62760. });
  62761. const loadingInstance = createApp(elLoadingComponent);
  62762. Object.assign(loadingInstance._context, appContext != null ? appContext : {});
  62763. const vm = loadingInstance.mount(document.createElement("div"));
  62764. return {
  62765. ...toRefs(data),
  62766. setText,
  62767. removeElLoadingChild,
  62768. close: close2,
  62769. handleAfterLeave,
  62770. vm,
  62771. get $el() {
  62772. return vm.$el;
  62773. }
  62774. };
  62775. }
  62776. // node_modules/element-plus/es/components/loading/src/service.mjs
  62777. var fullscreenInstance = void 0;
  62778. var Loading = function(options = {}, context) {
  62779. if (!isClient)
  62780. return void 0;
  62781. const resolved = resolveOptions(options);
  62782. if (resolved.fullscreen && fullscreenInstance) {
  62783. return fullscreenInstance;
  62784. }
  62785. const instance = createLoadingComponent({
  62786. ...resolved,
  62787. closed: () => {
  62788. var _a2;
  62789. (_a2 = resolved.closed) == null ? void 0 : _a2.call(resolved);
  62790. if (resolved.fullscreen)
  62791. fullscreenInstance = void 0;
  62792. }
  62793. }, context != null ? context : Loading._context);
  62794. addStyle(resolved, resolved.parent, instance);
  62795. addClassList(resolved, resolved.parent, instance);
  62796. resolved.parent.vLoadingAddClassList = () => addClassList(resolved, resolved.parent, instance);
  62797. let loadingNumber = resolved.parent.getAttribute("loading-number");
  62798. if (!loadingNumber) {
  62799. loadingNumber = "1";
  62800. } else {
  62801. loadingNumber = `${Number.parseInt(loadingNumber) + 1}`;
  62802. }
  62803. resolved.parent.setAttribute("loading-number", loadingNumber);
  62804. resolved.parent.appendChild(instance.$el);
  62805. nextTick(() => instance.visible.value = resolved.visible);
  62806. if (resolved.fullscreen) {
  62807. fullscreenInstance = instance;
  62808. }
  62809. return instance;
  62810. };
  62811. var resolveOptions = (options) => {
  62812. var _a2, _b, _c, _d;
  62813. let target2;
  62814. if (isString(options.target)) {
  62815. target2 = (_a2 = document.querySelector(options.target)) != null ? _a2 : document.body;
  62816. } else {
  62817. target2 = options.target || document.body;
  62818. }
  62819. return {
  62820. parent: target2 === document.body || options.body ? document.body : target2,
  62821. background: options.background || "",
  62822. svg: options.svg || "",
  62823. svgViewBox: options.svgViewBox || "",
  62824. spinner: options.spinner || false,
  62825. text: options.text || "",
  62826. fullscreen: target2 === document.body && ((_b = options.fullscreen) != null ? _b : true),
  62827. lock: (_c = options.lock) != null ? _c : false,
  62828. customClass: options.customClass || "",
  62829. visible: (_d = options.visible) != null ? _d : true,
  62830. beforeClose: options.beforeClose,
  62831. closed: options.closed,
  62832. target: target2
  62833. };
  62834. };
  62835. var addStyle = async (options, parent2, instance) => {
  62836. const { nextZIndex } = instance.vm.zIndex || instance.vm._.exposed.zIndex;
  62837. const maskStyle = {};
  62838. if (options.fullscreen) {
  62839. instance.originalPosition.value = getStyle(document.body, "position");
  62840. instance.originalOverflow.value = getStyle(document.body, "overflow");
  62841. maskStyle.zIndex = nextZIndex();
  62842. } else if (options.parent === document.body) {
  62843. instance.originalPosition.value = getStyle(document.body, "position");
  62844. await nextTick();
  62845. for (const property2 of ["top", "left"]) {
  62846. const scroll = property2 === "top" ? "scrollTop" : "scrollLeft";
  62847. maskStyle[property2] = `${options.target.getBoundingClientRect()[property2] + document.body[scroll] + document.documentElement[scroll] - Number.parseInt(getStyle(document.body, `margin-${property2}`), 10)}px`;
  62848. }
  62849. for (const property2 of ["height", "width"]) {
  62850. maskStyle[property2] = `${options.target.getBoundingClientRect()[property2]}px`;
  62851. }
  62852. } else {
  62853. instance.originalPosition.value = getStyle(parent2, "position");
  62854. }
  62855. for (const [key, value] of Object.entries(maskStyle)) {
  62856. instance.$el.style[key] = value;
  62857. }
  62858. };
  62859. var addClassList = (options, parent2, instance) => {
  62860. const ns = instance.vm.ns || instance.vm._.exposed.ns;
  62861. if (!["absolute", "fixed", "sticky"].includes(instance.originalPosition.value)) {
  62862. addClass(parent2, ns.bm("parent", "relative"));
  62863. } else {
  62864. removeClass(parent2, ns.bm("parent", "relative"));
  62865. }
  62866. if (options.fullscreen && options.lock) {
  62867. addClass(parent2, ns.bm("parent", "hidden"));
  62868. } else {
  62869. removeClass(parent2, ns.bm("parent", "hidden"));
  62870. }
  62871. };
  62872. Loading._context = null;
  62873. // node_modules/element-plus/es/components/loading/src/directive.mjs
  62874. var INSTANCE_KEY = Symbol("ElLoading");
  62875. var getAttributeName = (name) => {
  62876. return `element-loading-${hyphenate(name)}`;
  62877. };
  62878. var createInstance = (el, binding) => {
  62879. var _a2, _b, _c, _d;
  62880. const vm = binding.instance;
  62881. const getBindingProp = (key) => isObject(binding.value) ? binding.value[key] : void 0;
  62882. const resolveExpression = (key) => {
  62883. const data = isString(key) && (vm == null ? void 0 : vm[key]) || key;
  62884. return ref(data);
  62885. };
  62886. const getProp2 = (name) => resolveExpression(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
  62887. const fullscreen = (_a2 = getBindingProp("fullscreen")) != null ? _a2 : binding.modifiers.fullscreen;
  62888. const options = {
  62889. text: getProp2("text"),
  62890. svg: getProp2("svg"),
  62891. svgViewBox: getProp2("svgViewBox"),
  62892. spinner: getProp2("spinner"),
  62893. background: getProp2("background"),
  62894. customClass: getProp2("customClass"),
  62895. fullscreen,
  62896. target: (_b = getBindingProp("target")) != null ? _b : fullscreen ? void 0 : el,
  62897. body: (_c = getBindingProp("body")) != null ? _c : binding.modifiers.body,
  62898. lock: (_d = getBindingProp("lock")) != null ? _d : binding.modifiers.lock
  62899. };
  62900. const instance = Loading(options);
  62901. instance._context = vLoading._context;
  62902. el[INSTANCE_KEY] = {
  62903. options,
  62904. instance
  62905. };
  62906. };
  62907. var updateOptions = (originalOptions, newOptions) => {
  62908. for (const key of Object.keys(originalOptions)) {
  62909. if (isRef(originalOptions[key]))
  62910. originalOptions[key].value = newOptions[key];
  62911. }
  62912. };
  62913. var vLoading = {
  62914. mounted(el, binding) {
  62915. if (binding.value) {
  62916. createInstance(el, binding);
  62917. }
  62918. },
  62919. updated(el, binding) {
  62920. const instance = el[INSTANCE_KEY];
  62921. if (!binding.value) {
  62922. instance == null ? void 0 : instance.instance.close();
  62923. el[INSTANCE_KEY] = null;
  62924. return;
  62925. }
  62926. if (!instance)
  62927. createInstance(el, binding);
  62928. else {
  62929. updateOptions(instance.options, isObject(binding.value) ? binding.value : {
  62930. text: el.getAttribute(getAttributeName("text")),
  62931. svg: el.getAttribute(getAttributeName("svg")),
  62932. svgViewBox: el.getAttribute(getAttributeName("svgViewBox")),
  62933. spinner: el.getAttribute(getAttributeName("spinner")),
  62934. background: el.getAttribute(getAttributeName("background")),
  62935. customClass: el.getAttribute(getAttributeName("customClass"))
  62936. });
  62937. }
  62938. },
  62939. unmounted(el) {
  62940. var _a2;
  62941. (_a2 = el[INSTANCE_KEY]) == null ? void 0 : _a2.instance.close();
  62942. el[INSTANCE_KEY] = null;
  62943. }
  62944. };
  62945. vLoading._context = null;
  62946. // node_modules/element-plus/es/components/loading/index.mjs
  62947. var ElLoading = {
  62948. install(app) {
  62949. Loading._context = app._context;
  62950. vLoading._context = app._context;
  62951. app.directive("loading", vLoading);
  62952. app.config.globalProperties.$loading = Loading;
  62953. },
  62954. directive: vLoading,
  62955. service: Loading
  62956. };
  62957. // node_modules/element-plus/es/components/message/src/message.mjs
  62958. var messageTypes = [
  62959. "primary",
  62960. "success",
  62961. "info",
  62962. "warning",
  62963. "error"
  62964. ];
  62965. var messagePlacement = [
  62966. "top",
  62967. "top-left",
  62968. "top-right",
  62969. "bottom",
  62970. "bottom-left",
  62971. "bottom-right"
  62972. ];
  62973. var MESSAGE_DEFAULT_PLACEMENT = "top";
  62974. var messageDefaults = mutable({
  62975. customClass: "",
  62976. dangerouslyUseHTMLString: false,
  62977. duration: 3e3,
  62978. icon: void 0,
  62979. id: "",
  62980. message: "",
  62981. onClose: void 0,
  62982. showClose: false,
  62983. type: "info",
  62984. plain: false,
  62985. offset: 16,
  62986. placement: void 0,
  62987. zIndex: 0,
  62988. grouping: false,
  62989. repeatNum: 1,
  62990. appendTo: isClient ? document.body : void 0
  62991. });
  62992. var messageProps = buildProps({
  62993. customClass: {
  62994. type: String,
  62995. default: messageDefaults.customClass
  62996. },
  62997. dangerouslyUseHTMLString: {
  62998. type: Boolean,
  62999. default: messageDefaults.dangerouslyUseHTMLString
  63000. },
  63001. duration: {
  63002. type: Number,
  63003. default: messageDefaults.duration
  63004. },
  63005. icon: {
  63006. type: iconPropType,
  63007. default: messageDefaults.icon
  63008. },
  63009. id: {
  63010. type: String,
  63011. default: messageDefaults.id
  63012. },
  63013. message: {
  63014. type: definePropType([
  63015. String,
  63016. Object,
  63017. Function
  63018. ]),
  63019. default: messageDefaults.message
  63020. },
  63021. onClose: {
  63022. type: definePropType(Function),
  63023. default: messageDefaults.onClose
  63024. },
  63025. showClose: {
  63026. type: Boolean,
  63027. default: messageDefaults.showClose
  63028. },
  63029. type: {
  63030. type: String,
  63031. values: messageTypes,
  63032. default: messageDefaults.type
  63033. },
  63034. plain: {
  63035. type: Boolean,
  63036. default: messageDefaults.plain
  63037. },
  63038. offset: {
  63039. type: Number,
  63040. default: messageDefaults.offset
  63041. },
  63042. placement: {
  63043. type: String,
  63044. values: messagePlacement,
  63045. default: messageDefaults.placement
  63046. },
  63047. zIndex: {
  63048. type: Number,
  63049. default: messageDefaults.zIndex
  63050. },
  63051. grouping: {
  63052. type: Boolean,
  63053. default: messageDefaults.grouping
  63054. },
  63055. repeatNum: {
  63056. type: Number,
  63057. default: messageDefaults.repeatNum
  63058. }
  63059. });
  63060. var messageEmits = {
  63061. destroy: () => true
  63062. };
  63063. // node_modules/element-plus/es/components/message/src/instance.mjs
  63064. var placementInstances = shallowReactive({});
  63065. var getOrCreatePlacementInstances = (placement) => {
  63066. if (!placementInstances[placement]) {
  63067. placementInstances[placement] = shallowReactive([]);
  63068. }
  63069. return placementInstances[placement];
  63070. };
  63071. var getInstance = (id, placement) => {
  63072. const instances = placementInstances[placement] || [];
  63073. const idx = instances.findIndex((instance) => instance.id === id);
  63074. const current = instances[idx];
  63075. let prev;
  63076. if (idx > 0) {
  63077. prev = instances[idx - 1];
  63078. }
  63079. return { current, prev };
  63080. };
  63081. var getLastOffset = (id, placement) => {
  63082. const { prev } = getInstance(id, placement);
  63083. if (!prev)
  63084. return 0;
  63085. return prev.vm.exposed.bottom.value;
  63086. };
  63087. var getOffsetOrSpace = (id, offset3, placement) => {
  63088. const instances = placementInstances[placement] || [];
  63089. const idx = instances.findIndex((instance) => instance.id === id);
  63090. return idx > 0 ? 16 : offset3;
  63091. };
  63092. // node_modules/element-plus/es/components/message/src/message2.mjs
  63093. var __default__124 = defineComponent({
  63094. name: "ElMessage"
  63095. });
  63096. var _sfc_main158 = defineComponent({
  63097. ...__default__124,
  63098. props: messageProps,
  63099. emits: messageEmits,
  63100. setup(__props, { expose, emit }) {
  63101. const props2 = __props;
  63102. const { Close } = TypeComponents;
  63103. const isStartTransition = ref(false);
  63104. const { ns, zIndex: zIndex2 } = useGlobalComponentSettings("message");
  63105. const { currentZIndex, nextZIndex } = zIndex2;
  63106. const messageRef = ref();
  63107. const visible = ref(false);
  63108. const height = ref(0);
  63109. let stopTimer = void 0;
  63110. const badgeType = computed(() => props2.type ? props2.type === "error" ? "danger" : props2.type : "info");
  63111. const typeClass = computed(() => {
  63112. const type4 = props2.type;
  63113. return { [ns.bm("icon", type4)]: type4 && TypeComponentsMap[type4] };
  63114. });
  63115. const iconComponent = computed(() => props2.icon || TypeComponentsMap[props2.type] || "");
  63116. const placement = computed(() => props2.placement || MESSAGE_DEFAULT_PLACEMENT);
  63117. const lastOffset = computed(() => getLastOffset(props2.id, placement.value));
  63118. const offset3 = computed(() => {
  63119. return getOffsetOrSpace(props2.id, props2.offset, placement.value) + lastOffset.value;
  63120. });
  63121. const bottom = computed(() => height.value + offset3.value);
  63122. const horizontalClass = computed(() => {
  63123. if (placement.value.includes("left"))
  63124. return ns.is("left");
  63125. if (placement.value.includes("right"))
  63126. return ns.is("right");
  63127. return ns.is("center");
  63128. });
  63129. const verticalProperty = computed(() => placement.value.startsWith("top") ? "top" : "bottom");
  63130. const customStyle = computed(() => ({
  63131. [verticalProperty.value]: `${offset3.value}px`,
  63132. zIndex: currentZIndex.value
  63133. }));
  63134. function startTimer() {
  63135. if (props2.duration === 0)
  63136. return;
  63137. ({ stop: stopTimer } = useTimeoutFn(() => {
  63138. close2();
  63139. }, props2.duration));
  63140. }
  63141. function clearTimer() {
  63142. stopTimer == null ? void 0 : stopTimer();
  63143. }
  63144. function close2() {
  63145. visible.value = false;
  63146. nextTick(() => {
  63147. var _a2;
  63148. if (!isStartTransition.value) {
  63149. (_a2 = props2.onClose) == null ? void 0 : _a2.call(props2);
  63150. emit("destroy");
  63151. }
  63152. });
  63153. }
  63154. function keydown(event) {
  63155. const code = getEventCode(event);
  63156. if (code === EVENT_CODE.esc) {
  63157. close2();
  63158. }
  63159. }
  63160. onMounted(() => {
  63161. startTimer();
  63162. nextZIndex();
  63163. visible.value = true;
  63164. });
  63165. watch(() => props2.repeatNum, () => {
  63166. clearTimer();
  63167. startTimer();
  63168. });
  63169. useEventListener(document, "keydown", keydown);
  63170. useResizeObserver(messageRef, () => {
  63171. height.value = messageRef.value.getBoundingClientRect().height;
  63172. });
  63173. expose({
  63174. visible,
  63175. bottom,
  63176. close: close2
  63177. });
  63178. return (_ctx, _cache) => {
  63179. return openBlock(), createBlock(Transition, {
  63180. name: unref(ns).b("fade"),
  63181. onBeforeEnter: ($event) => isStartTransition.value = true,
  63182. onBeforeLeave: _ctx.onClose,
  63183. onAfterLeave: ($event) => _ctx.$emit("destroy"),
  63184. persisted: ""
  63185. }, {
  63186. default: withCtx(() => [
  63187. withDirectives(createBaseVNode("div", {
  63188. id: _ctx.id,
  63189. ref_key: "messageRef",
  63190. ref: messageRef,
  63191. class: normalizeClass([
  63192. unref(ns).b(),
  63193. { [unref(ns).m(_ctx.type)]: _ctx.type },
  63194. unref(ns).is("closable", _ctx.showClose),
  63195. unref(ns).is("plain", _ctx.plain),
  63196. unref(ns).is("bottom", unref(verticalProperty) === "bottom"),
  63197. unref(horizontalClass),
  63198. _ctx.customClass
  63199. ]),
  63200. style: normalizeStyle(unref(customStyle)),
  63201. role: "alert",
  63202. onMouseenter: clearTimer,
  63203. onMouseleave: startTimer
  63204. }, [
  63205. _ctx.repeatNum > 1 ? (openBlock(), createBlock(unref(ElBadge), {
  63206. key: 0,
  63207. value: _ctx.repeatNum,
  63208. type: unref(badgeType),
  63209. class: normalizeClass(unref(ns).e("badge"))
  63210. }, null, 8, ["value", "type", "class"])) : createCommentVNode("v-if", true),
  63211. unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
  63212. key: 1,
  63213. class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
  63214. }, {
  63215. default: withCtx(() => [
  63216. (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
  63217. ]),
  63218. _: 1
  63219. }, 8, ["class"])) : createCommentVNode("v-if", true),
  63220. renderSlot(_ctx.$slots, "default", {}, () => [
  63221. !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", {
  63222. key: 0,
  63223. class: normalizeClass(unref(ns).e("content"))
  63224. }, toDisplayString(_ctx.message), 3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  63225. createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
  63226. createBaseVNode("p", {
  63227. class: normalizeClass(unref(ns).e("content")),
  63228. innerHTML: _ctx.message
  63229. }, null, 10, ["innerHTML"])
  63230. ], 2112))
  63231. ]),
  63232. _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
  63233. key: 2,
  63234. class: normalizeClass(unref(ns).e("closeBtn")),
  63235. onClick: withModifiers(close2, ["stop"])
  63236. }, {
  63237. default: withCtx(() => [
  63238. createVNode(unref(Close))
  63239. ]),
  63240. _: 1
  63241. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
  63242. ], 46, ["id"]), [
  63243. [vShow, visible.value]
  63244. ])
  63245. ]),
  63246. _: 3
  63247. }, 8, ["name", "onBeforeEnter", "onBeforeLeave", "onAfterLeave"]);
  63248. };
  63249. }
  63250. });
  63251. var MessageConstructor = _export_sfc(_sfc_main158, [["__file", "message.vue"]]);
  63252. // node_modules/element-plus/es/components/message/src/method.mjs
  63253. var seed = 1;
  63254. var normalizeAppendTo = (normalized) => {
  63255. const appendTo = normalized.appendTo;
  63256. if (!appendTo) {
  63257. normalized.appendTo = document.body;
  63258. } else if (isString(normalized.appendTo)) {
  63259. let appendTo2 = document.querySelector(normalized.appendTo);
  63260. if (!isElement2(appendTo2)) {
  63261. debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
  63262. appendTo2 = document.body;
  63263. }
  63264. normalized.appendTo = appendTo2;
  63265. }
  63266. };
  63267. var normalizePlacement = (normalized) => {
  63268. if (!normalized.placement && isString(messageConfig.placement) && messageConfig.placement) {
  63269. normalized.placement = messageConfig.placement;
  63270. }
  63271. if (!normalized.placement) {
  63272. normalized.placement = MESSAGE_DEFAULT_PLACEMENT;
  63273. }
  63274. if (!messagePlacement.includes(normalized.placement)) {
  63275. debugWarn("ElMessage", `Invalid placement: ${normalized.placement}. Falling back to '${MESSAGE_DEFAULT_PLACEMENT}'.`);
  63276. normalized.placement = MESSAGE_DEFAULT_PLACEMENT;
  63277. }
  63278. };
  63279. var normalizeOptions = (params) => {
  63280. const options = !params || isString(params) || isVNode(params) || isFunction(params) ? { message: params } : params;
  63281. const normalized = {
  63282. ...messageDefaults,
  63283. ...options
  63284. };
  63285. normalizeAppendTo(normalized);
  63286. normalizePlacement(normalized);
  63287. if (isBoolean2(messageConfig.grouping) && !normalized.grouping) {
  63288. normalized.grouping = messageConfig.grouping;
  63289. }
  63290. if (isNumber2(messageConfig.duration) && normalized.duration === 3e3) {
  63291. normalized.duration = messageConfig.duration;
  63292. }
  63293. if (isNumber2(messageConfig.offset) && normalized.offset === 16) {
  63294. normalized.offset = messageConfig.offset;
  63295. }
  63296. if (isBoolean2(messageConfig.showClose) && !normalized.showClose) {
  63297. normalized.showClose = messageConfig.showClose;
  63298. }
  63299. if (isBoolean2(messageConfig.plain) && !normalized.plain) {
  63300. normalized.plain = messageConfig.plain;
  63301. }
  63302. return normalized;
  63303. };
  63304. var closeMessage = (instance) => {
  63305. const placement = instance.props.placement || MESSAGE_DEFAULT_PLACEMENT;
  63306. const instances = placementInstances[placement];
  63307. const idx = instances.indexOf(instance);
  63308. if (idx === -1)
  63309. return;
  63310. instances.splice(idx, 1);
  63311. const { handler } = instance;
  63312. handler.close();
  63313. };
  63314. var createMessage = ({ appendTo, ...options }, context) => {
  63315. const id = `message_${seed++}`;
  63316. const userOnClose = options.onClose;
  63317. const container = document.createElement("div");
  63318. const props2 = {
  63319. ...options,
  63320. id,
  63321. onClose: () => {
  63322. userOnClose == null ? void 0 : userOnClose();
  63323. closeMessage(instance);
  63324. },
  63325. onDestroy: () => {
  63326. render(null, container);
  63327. }
  63328. };
  63329. const vnode = createVNode(MessageConstructor, props2, isFunction(props2.message) || isVNode(props2.message) ? {
  63330. default: isFunction(props2.message) ? props2.message : () => props2.message
  63331. } : null);
  63332. vnode.appContext = context || message._context;
  63333. render(vnode, container);
  63334. appendTo.appendChild(container.firstElementChild);
  63335. const vm = vnode.component;
  63336. const handler = {
  63337. close: () => {
  63338. vm.exposed.close();
  63339. }
  63340. };
  63341. const instance = {
  63342. id,
  63343. vnode,
  63344. vm,
  63345. handler,
  63346. props: vnode.component.props
  63347. };
  63348. return instance;
  63349. };
  63350. var message = (options = {}, context) => {
  63351. if (!isClient)
  63352. return { close: () => void 0 };
  63353. const normalized = normalizeOptions(options);
  63354. const instances = getOrCreatePlacementInstances(normalized.placement || MESSAGE_DEFAULT_PLACEMENT);
  63355. if (normalized.grouping && instances.length) {
  63356. const instance2 = instances.find(({ vnode: vm }) => {
  63357. var _a2;
  63358. return ((_a2 = vm.props) == null ? void 0 : _a2.message) === normalized.message;
  63359. });
  63360. if (instance2) {
  63361. instance2.props.repeatNum += 1;
  63362. instance2.props.type = normalized.type;
  63363. return instance2.handler;
  63364. }
  63365. }
  63366. if (isNumber2(messageConfig.max) && instances.length >= messageConfig.max) {
  63367. return { close: () => void 0 };
  63368. }
  63369. const instance = createMessage(normalized, context);
  63370. instances.push(instance);
  63371. return instance.handler;
  63372. };
  63373. messageTypes.forEach((type4) => {
  63374. message[type4] = (options = {}, appContext) => {
  63375. const normalized = normalizeOptions(options);
  63376. return message({ ...normalized, type: type4 }, appContext);
  63377. };
  63378. });
  63379. function closeAll(type4) {
  63380. for (const placement in placementInstances) {
  63381. if (hasOwn(placementInstances, placement)) {
  63382. const instances = [...placementInstances[placement]];
  63383. for (const instance of instances) {
  63384. if (!type4 || type4 === instance.props.type) {
  63385. instance.handler.close();
  63386. }
  63387. }
  63388. }
  63389. }
  63390. }
  63391. function closeAllByPlacement(placement) {
  63392. if (!placementInstances[placement])
  63393. return;
  63394. const instances = [...placementInstances[placement]];
  63395. instances.forEach((instance) => instance.handler.close());
  63396. }
  63397. message.closeAll = closeAll;
  63398. message.closeAllByPlacement = closeAllByPlacement;
  63399. message._context = null;
  63400. // node_modules/element-plus/es/components/message/index.mjs
  63401. var ElMessage = withInstallFunction(message, "$message");
  63402. // node_modules/element-plus/es/directives/trap-focus/index.mjs
  63403. var FOCUSABLE_CHILDREN = "_trap-focus-children";
  63404. var FOCUS_STACK = [];
  63405. var FOCUS_HANDLER = (e) => {
  63406. if (FOCUS_STACK.length === 0)
  63407. return;
  63408. const code = getEventCode(e);
  63409. const focusableElement = FOCUS_STACK[FOCUS_STACK.length - 1][FOCUSABLE_CHILDREN];
  63410. if (focusableElement.length > 0 && code === EVENT_CODE.tab) {
  63411. if (focusableElement.length === 1) {
  63412. e.preventDefault();
  63413. if (document.activeElement !== focusableElement[0]) {
  63414. focusableElement[0].focus();
  63415. }
  63416. return;
  63417. }
  63418. const goingBackward = e.shiftKey;
  63419. const isFirst = e.target === focusableElement[0];
  63420. const isLast = e.target === focusableElement[focusableElement.length - 1];
  63421. if (isFirst && goingBackward) {
  63422. e.preventDefault();
  63423. focusableElement[focusableElement.length - 1].focus();
  63424. }
  63425. if (isLast && !goingBackward) {
  63426. e.preventDefault();
  63427. focusableElement[0].focus();
  63428. }
  63429. }
  63430. };
  63431. var TrapFocus = {
  63432. beforeMount(el) {
  63433. el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
  63434. FOCUS_STACK.push(el);
  63435. if (FOCUS_STACK.length <= 1) {
  63436. document.addEventListener("keydown", FOCUS_HANDLER);
  63437. }
  63438. },
  63439. updated(el) {
  63440. nextTick(() => {
  63441. el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
  63442. });
  63443. },
  63444. unmounted() {
  63445. FOCUS_STACK.shift();
  63446. if (FOCUS_STACK.length === 0) {
  63447. document.removeEventListener("keydown", FOCUS_HANDLER);
  63448. }
  63449. }
  63450. };
  63451. // node_modules/element-plus/es/components/message-box/src/index.mjs
  63452. var _sfc_main159 = defineComponent({
  63453. name: "ElMessageBox",
  63454. directives: {
  63455. TrapFocus
  63456. },
  63457. components: {
  63458. ElButton,
  63459. ElFocusTrap,
  63460. ElInput,
  63461. ElOverlay,
  63462. ElIcon,
  63463. ...TypeComponents
  63464. },
  63465. inheritAttrs: false,
  63466. props: {
  63467. buttonSize: {
  63468. type: String,
  63469. validator: isValidComponentSize
  63470. },
  63471. modal: {
  63472. type: Boolean,
  63473. default: true
  63474. },
  63475. lockScroll: {
  63476. type: Boolean,
  63477. default: true
  63478. },
  63479. showClose: {
  63480. type: Boolean,
  63481. default: true
  63482. },
  63483. closeOnClickModal: {
  63484. type: Boolean,
  63485. default: true
  63486. },
  63487. closeOnPressEscape: {
  63488. type: Boolean,
  63489. default: true
  63490. },
  63491. closeOnHashChange: {
  63492. type: Boolean,
  63493. default: true
  63494. },
  63495. center: Boolean,
  63496. draggable: Boolean,
  63497. overflow: Boolean,
  63498. roundButton: Boolean,
  63499. container: {
  63500. type: String,
  63501. default: "body"
  63502. },
  63503. boxType: {
  63504. type: String,
  63505. default: ""
  63506. }
  63507. },
  63508. emits: ["vanish", "action"],
  63509. setup(props2, { emit }) {
  63510. const {
  63511. locale,
  63512. zIndex: zIndex2,
  63513. ns,
  63514. size: btnSize
  63515. } = useGlobalComponentSettings("message-box", computed(() => props2.buttonSize));
  63516. const { t } = locale;
  63517. const { nextZIndex } = zIndex2;
  63518. const visible = ref(false);
  63519. const state = reactive({
  63520. autofocus: true,
  63521. beforeClose: null,
  63522. callback: null,
  63523. cancelButtonText: "",
  63524. cancelButtonClass: "",
  63525. confirmButtonText: "",
  63526. confirmButtonClass: "",
  63527. customClass: "",
  63528. customStyle: {},
  63529. dangerouslyUseHTMLString: false,
  63530. distinguishCancelAndClose: false,
  63531. icon: "",
  63532. closeIcon: "",
  63533. inputPattern: null,
  63534. inputPlaceholder: "",
  63535. inputType: "text",
  63536. inputValue: "",
  63537. inputValidator: void 0,
  63538. inputErrorMessage: "",
  63539. message: "",
  63540. modalFade: true,
  63541. modalClass: "",
  63542. showCancelButton: false,
  63543. showConfirmButton: true,
  63544. type: "",
  63545. title: void 0,
  63546. showInput: false,
  63547. action: "",
  63548. confirmButtonLoading: false,
  63549. cancelButtonLoading: false,
  63550. confirmButtonLoadingIcon: markRaw(loading_default),
  63551. cancelButtonLoadingIcon: markRaw(loading_default),
  63552. confirmButtonDisabled: false,
  63553. editorErrorMessage: "",
  63554. validateError: false,
  63555. zIndex: nextZIndex()
  63556. });
  63557. const typeClass = computed(() => {
  63558. const type4 = state.type;
  63559. return { [ns.bm("icon", type4)]: type4 && TypeComponentsMap[type4] };
  63560. });
  63561. const contentId = useId();
  63562. const inputId = useId();
  63563. const iconComponent = computed(() => {
  63564. const type4 = state.type;
  63565. return state.icon || type4 && TypeComponentsMap[type4] || "";
  63566. });
  63567. const hasMessage = computed(() => !!state.message);
  63568. const rootRef = ref();
  63569. const headerRef = ref();
  63570. const focusStartRef = ref();
  63571. const inputRef = ref();
  63572. const confirmRef = ref();
  63573. const confirmButtonClasses = computed(() => state.confirmButtonClass);
  63574. watch(() => state.inputValue, async (val) => {
  63575. await nextTick();
  63576. if (props2.boxType === "prompt" && val) {
  63577. validate();
  63578. }
  63579. }, { immediate: true });
  63580. watch(() => visible.value, (val) => {
  63581. var _a2, _b;
  63582. if (val) {
  63583. if (props2.boxType !== "prompt") {
  63584. if (state.autofocus) {
  63585. focusStartRef.value = (_b = (_a2 = confirmRef.value) == null ? void 0 : _a2.$el) != null ? _b : rootRef.value;
  63586. } else {
  63587. focusStartRef.value = rootRef.value;
  63588. }
  63589. }
  63590. state.zIndex = nextZIndex();
  63591. }
  63592. if (props2.boxType !== "prompt")
  63593. return;
  63594. if (val) {
  63595. nextTick().then(() => {
  63596. var _a22;
  63597. if (inputRef.value && inputRef.value.$el) {
  63598. if (state.autofocus) {
  63599. focusStartRef.value = (_a22 = getInputElement()) != null ? _a22 : rootRef.value;
  63600. } else {
  63601. focusStartRef.value = rootRef.value;
  63602. }
  63603. }
  63604. });
  63605. } else {
  63606. state.editorErrorMessage = "";
  63607. state.validateError = false;
  63608. }
  63609. });
  63610. const draggable2 = computed(() => props2.draggable);
  63611. const overflow = computed(() => props2.overflow);
  63612. const { isDragging: isDragging2 } = useDraggable(rootRef, headerRef, draggable2, overflow);
  63613. onMounted(async () => {
  63614. await nextTick();
  63615. if (props2.closeOnHashChange) {
  63616. window.addEventListener("hashchange", doClose);
  63617. }
  63618. });
  63619. onBeforeUnmount(() => {
  63620. if (props2.closeOnHashChange) {
  63621. window.removeEventListener("hashchange", doClose);
  63622. }
  63623. });
  63624. function doClose() {
  63625. if (!visible.value)
  63626. return;
  63627. visible.value = false;
  63628. nextTick(() => {
  63629. if (state.action)
  63630. emit("action", state.action);
  63631. });
  63632. }
  63633. const handleWrapperClick = () => {
  63634. if (props2.closeOnClickModal) {
  63635. handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
  63636. }
  63637. };
  63638. const overlayEvent = useSameTarget(handleWrapperClick);
  63639. const handleInputEnter = (e) => {
  63640. if (state.inputType !== "textarea") {
  63641. e.preventDefault();
  63642. return handleAction("confirm");
  63643. }
  63644. };
  63645. const handleAction = (action) => {
  63646. var _a2;
  63647. if (props2.boxType === "prompt" && action === "confirm" && !validate()) {
  63648. return;
  63649. }
  63650. state.action = action;
  63651. if (state.beforeClose) {
  63652. (_a2 = state.beforeClose) == null ? void 0 : _a2.call(state, action, state, doClose);
  63653. } else {
  63654. doClose();
  63655. }
  63656. };
  63657. const validate = () => {
  63658. if (props2.boxType === "prompt") {
  63659. const inputPattern = state.inputPattern;
  63660. if (inputPattern && !inputPattern.test(state.inputValue || "")) {
  63661. state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
  63662. state.validateError = true;
  63663. return false;
  63664. }
  63665. const inputValidator = state.inputValidator;
  63666. if (isFunction(inputValidator)) {
  63667. const validateResult = inputValidator(state.inputValue);
  63668. if (validateResult === false) {
  63669. state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
  63670. state.validateError = true;
  63671. return false;
  63672. }
  63673. if (isString(validateResult)) {
  63674. state.editorErrorMessage = validateResult;
  63675. state.validateError = true;
  63676. return false;
  63677. }
  63678. }
  63679. }
  63680. state.editorErrorMessage = "";
  63681. state.validateError = false;
  63682. return true;
  63683. };
  63684. const getInputElement = () => {
  63685. var _a2, _b;
  63686. const inputRefs = (_a2 = inputRef.value) == null ? void 0 : _a2.$refs;
  63687. return (_b = inputRefs == null ? void 0 : inputRefs.input) != null ? _b : inputRefs == null ? void 0 : inputRefs.textarea;
  63688. };
  63689. const handleClose = () => {
  63690. handleAction("close");
  63691. };
  63692. const onCloseRequested = () => {
  63693. if (props2.closeOnPressEscape) {
  63694. handleClose();
  63695. }
  63696. };
  63697. if (props2.lockScroll) {
  63698. useLockscreen(visible, { ns });
  63699. }
  63700. return {
  63701. ...toRefs(state),
  63702. ns,
  63703. overlayEvent,
  63704. visible,
  63705. hasMessage,
  63706. typeClass,
  63707. contentId,
  63708. inputId,
  63709. btnSize,
  63710. iconComponent,
  63711. confirmButtonClasses,
  63712. rootRef,
  63713. focusStartRef,
  63714. headerRef,
  63715. inputRef,
  63716. isDragging: isDragging2,
  63717. confirmRef,
  63718. doClose,
  63719. handleClose,
  63720. onCloseRequested,
  63721. handleWrapperClick,
  63722. handleInputEnter,
  63723. handleAction,
  63724. t
  63725. };
  63726. }
  63727. });
  63728. function _sfc_render22(_ctx, _cache, $props, $setup, $data, $options) {
  63729. const _component_el_icon = resolveComponent("el-icon");
  63730. const _component_el_input = resolveComponent("el-input");
  63731. const _component_el_button = resolveComponent("el-button");
  63732. const _component_el_focus_trap = resolveComponent("el-focus-trap");
  63733. const _component_el_overlay = resolveComponent("el-overlay");
  63734. return openBlock(), createBlock(Transition, {
  63735. name: "fade-in-linear",
  63736. onAfterLeave: ($event) => _ctx.$emit("vanish"),
  63737. persisted: ""
  63738. }, {
  63739. default: withCtx(() => [
  63740. withDirectives(createVNode(_component_el_overlay, {
  63741. "z-index": _ctx.zIndex,
  63742. "overlay-class": [_ctx.ns.is("message-box"), _ctx.modalClass],
  63743. mask: _ctx.modal
  63744. }, {
  63745. default: withCtx(() => [
  63746. createBaseVNode("div", {
  63747. role: "dialog",
  63748. "aria-label": _ctx.title,
  63749. "aria-modal": "true",
  63750. "aria-describedby": !_ctx.showInput ? _ctx.contentId : void 0,
  63751. class: normalizeClass(`${_ctx.ns.namespace.value}-overlay-message-box`),
  63752. onClick: _ctx.overlayEvent.onClick,
  63753. onMousedown: _ctx.overlayEvent.onMousedown,
  63754. onMouseup: _ctx.overlayEvent.onMouseup
  63755. }, [
  63756. createVNode(_component_el_focus_trap, {
  63757. loop: "",
  63758. trapped: _ctx.visible,
  63759. "focus-trap-el": _ctx.rootRef,
  63760. "focus-start-el": _ctx.focusStartRef,
  63761. onReleaseRequested: _ctx.onCloseRequested
  63762. }, {
  63763. default: withCtx(() => [
  63764. createBaseVNode("div", {
  63765. ref: "rootRef",
  63766. class: normalizeClass([
  63767. _ctx.ns.b(),
  63768. _ctx.customClass,
  63769. _ctx.ns.is("draggable", _ctx.draggable),
  63770. _ctx.ns.is("dragging", _ctx.isDragging),
  63771. { [_ctx.ns.m("center")]: _ctx.center }
  63772. ]),
  63773. style: normalizeStyle(_ctx.customStyle),
  63774. tabindex: "-1",
  63775. onClick: withModifiers(() => {
  63776. }, ["stop"])
  63777. }, [
  63778. _ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", {
  63779. key: 0,
  63780. ref: "headerRef",
  63781. class: normalizeClass([_ctx.ns.e("header"), { "show-close": _ctx.showClose }])
  63782. }, [
  63783. createBaseVNode("div", {
  63784. class: normalizeClass(_ctx.ns.e("title"))
  63785. }, [
  63786. _ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
  63787. key: 0,
  63788. class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
  63789. }, {
  63790. default: withCtx(() => [
  63791. (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
  63792. ]),
  63793. _: 1
  63794. }, 8, ["class"])) : createCommentVNode("v-if", true),
  63795. createBaseVNode("span", null, toDisplayString(_ctx.title), 1)
  63796. ], 2),
  63797. _ctx.showClose ? (openBlock(), createElementBlock("button", {
  63798. key: 0,
  63799. type: "button",
  63800. class: normalizeClass(_ctx.ns.e("headerbtn")),
  63801. "aria-label": _ctx.t("el.messagebox.close"),
  63802. onClick: ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"),
  63803. onKeydown: withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
  63804. }, [
  63805. createVNode(_component_el_icon, {
  63806. class: normalizeClass(_ctx.ns.e("close"))
  63807. }, {
  63808. default: withCtx(() => [
  63809. (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || "close")))
  63810. ]),
  63811. _: 1
  63812. }, 8, ["class"])
  63813. ], 42, ["aria-label", "onClick", "onKeydown"])) : createCommentVNode("v-if", true)
  63814. ], 2)) : createCommentVNode("v-if", true),
  63815. createBaseVNode("div", {
  63816. id: _ctx.contentId,
  63817. class: normalizeClass(_ctx.ns.e("content"))
  63818. }, [
  63819. createBaseVNode("div", {
  63820. class: normalizeClass(_ctx.ns.e("container"))
  63821. }, [
  63822. _ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
  63823. key: 0,
  63824. class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
  63825. }, {
  63826. default: withCtx(() => [
  63827. (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
  63828. ]),
  63829. _: 1
  63830. }, 8, ["class"])) : createCommentVNode("v-if", true),
  63831. _ctx.hasMessage ? (openBlock(), createElementBlock("div", {
  63832. key: 1,
  63833. class: normalizeClass(_ctx.ns.e("message"))
  63834. }, [
  63835. renderSlot(_ctx.$slots, "default", {}, () => [
  63836. !_ctx.dangerouslyUseHTMLString ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
  63837. key: 0,
  63838. for: _ctx.showInput ? _ctx.inputId : void 0,
  63839. textContent: toDisplayString(_ctx.message)
  63840. }, null, 8, ["for", "textContent"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
  63841. key: 1,
  63842. for: _ctx.showInput ? _ctx.inputId : void 0,
  63843. innerHTML: _ctx.message
  63844. }, null, 8, ["for", "innerHTML"]))
  63845. ])
  63846. ], 2)) : createCommentVNode("v-if", true)
  63847. ], 2),
  63848. withDirectives(createBaseVNode("div", {
  63849. class: normalizeClass(_ctx.ns.e("input"))
  63850. }, [
  63851. createVNode(_component_el_input, {
  63852. id: _ctx.inputId,
  63853. ref: "inputRef",
  63854. modelValue: _ctx.inputValue,
  63855. "onUpdate:modelValue": ($event) => _ctx.inputValue = $event,
  63856. type: _ctx.inputType,
  63857. placeholder: _ctx.inputPlaceholder,
  63858. "aria-invalid": _ctx.validateError,
  63859. class: normalizeClass({ invalid: _ctx.validateError }),
  63860. onKeydown: withKeys(_ctx.handleInputEnter, ["enter"])
  63861. }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
  63862. createBaseVNode("div", {
  63863. class: normalizeClass(_ctx.ns.e("errormsg")),
  63864. style: normalizeStyle({
  63865. visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
  63866. })
  63867. }, toDisplayString(_ctx.editorErrorMessage), 7)
  63868. ], 2), [
  63869. [vShow, _ctx.showInput]
  63870. ])
  63871. ], 10, ["id"]),
  63872. createBaseVNode("div", {
  63873. class: normalizeClass(_ctx.ns.e("btns"))
  63874. }, [
  63875. _ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
  63876. key: 0,
  63877. loading: _ctx.cancelButtonLoading,
  63878. "loading-icon": _ctx.cancelButtonLoadingIcon,
  63879. class: normalizeClass([_ctx.cancelButtonClass]),
  63880. round: _ctx.roundButton,
  63881. size: _ctx.btnSize,
  63882. onClick: ($event) => _ctx.handleAction("cancel"),
  63883. onKeydown: withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"])
  63884. }, {
  63885. default: withCtx(() => [
  63886. createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
  63887. ]),
  63888. _: 1
  63889. }, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : createCommentVNode("v-if", true),
  63890. withDirectives(createVNode(_component_el_button, {
  63891. ref: "confirmRef",
  63892. type: "primary",
  63893. loading: _ctx.confirmButtonLoading,
  63894. "loading-icon": _ctx.confirmButtonLoadingIcon,
  63895. class: normalizeClass([_ctx.confirmButtonClasses]),
  63896. round: _ctx.roundButton,
  63897. disabled: _ctx.confirmButtonDisabled,
  63898. size: _ctx.btnSize,
  63899. onClick: ($event) => _ctx.handleAction("confirm"),
  63900. onKeydown: withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"])
  63901. }, {
  63902. default: withCtx(() => [
  63903. createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
  63904. ]),
  63905. _: 1
  63906. }, 8, ["loading", "loading-icon", "class", "round", "disabled", "size", "onClick", "onKeydown"]), [
  63907. [vShow, _ctx.showConfirmButton]
  63908. ])
  63909. ], 2)
  63910. ], 14, ["onClick"])
  63911. ]),
  63912. _: 3
  63913. }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
  63914. ], 42, ["aria-label", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
  63915. ]),
  63916. _: 3
  63917. }, 8, ["z-index", "overlay-class", "mask"]), [
  63918. [vShow, _ctx.visible]
  63919. ])
  63920. ]),
  63921. _: 3
  63922. }, 8, ["onAfterLeave"]);
  63923. }
  63924. var MessageBoxConstructor = _export_sfc(_sfc_main159, [["render", _sfc_render22], ["__file", "index.vue"]]);
  63925. // node_modules/element-plus/es/components/message-box/src/messageBox.mjs
  63926. var messageInstance = /* @__PURE__ */ new Map();
  63927. var getAppendToElement = (props2) => {
  63928. let appendTo = document.body;
  63929. if (props2.appendTo) {
  63930. if (isString(props2.appendTo)) {
  63931. appendTo = document.querySelector(props2.appendTo);
  63932. }
  63933. if (isElement2(props2.appendTo)) {
  63934. appendTo = props2.appendTo;
  63935. }
  63936. if (!isElement2(appendTo)) {
  63937. debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
  63938. appendTo = document.body;
  63939. }
  63940. }
  63941. return appendTo;
  63942. };
  63943. var initInstance = (props2, container, appContext = null) => {
  63944. const vnode = createVNode(MessageBoxConstructor, props2, isFunction(props2.message) || isVNode(props2.message) ? {
  63945. default: isFunction(props2.message) ? props2.message : () => props2.message
  63946. } : null);
  63947. vnode.appContext = appContext;
  63948. render(vnode, container);
  63949. getAppendToElement(props2).appendChild(container.firstElementChild);
  63950. return vnode.component;
  63951. };
  63952. var genContainer = () => {
  63953. return document.createElement("div");
  63954. };
  63955. var showMessage = (options, appContext) => {
  63956. const container = genContainer();
  63957. options.onVanish = () => {
  63958. render(null, container);
  63959. messageInstance.delete(vm);
  63960. };
  63961. options.onAction = (action) => {
  63962. const currentMsg = messageInstance.get(vm);
  63963. let resolve;
  63964. if (options.showInput) {
  63965. resolve = { value: vm.inputValue, action };
  63966. } else {
  63967. resolve = action;
  63968. }
  63969. if (options.callback) {
  63970. options.callback(resolve, instance.proxy);
  63971. } else {
  63972. if (action === "cancel" || action === "close") {
  63973. if (options.distinguishCancelAndClose && action !== "cancel") {
  63974. currentMsg.reject("close");
  63975. } else {
  63976. currentMsg.reject("cancel");
  63977. }
  63978. } else {
  63979. currentMsg.resolve(resolve);
  63980. }
  63981. }
  63982. };
  63983. const instance = initInstance(options, container, appContext);
  63984. const vm = instance.proxy;
  63985. for (const prop in options) {
  63986. if (hasOwn(options, prop) && !hasOwn(vm.$props, prop)) {
  63987. if (prop === "closeIcon" && isObject(options[prop])) {
  63988. vm[prop] = markRaw(options[prop]);
  63989. } else {
  63990. vm[prop] = options[prop];
  63991. }
  63992. }
  63993. }
  63994. vm.visible = true;
  63995. return vm;
  63996. };
  63997. function MessageBox(options, appContext = null) {
  63998. if (!isClient)
  63999. return Promise.reject();
  64000. let callback;
  64001. if (isString(options) || isVNode(options)) {
  64002. options = {
  64003. message: options
  64004. };
  64005. } else {
  64006. callback = options.callback;
  64007. }
  64008. return new Promise((resolve, reject2) => {
  64009. const vm = showMessage(options, appContext != null ? appContext : MessageBox._context);
  64010. messageInstance.set(vm, {
  64011. options,
  64012. callback,
  64013. resolve,
  64014. reject: reject2
  64015. });
  64016. });
  64017. }
  64018. var MESSAGE_BOX_VARIANTS = ["alert", "confirm", "prompt"];
  64019. var MESSAGE_BOX_DEFAULT_OPTS = {
  64020. alert: { closeOnPressEscape: false, closeOnClickModal: false },
  64021. confirm: { showCancelButton: true },
  64022. prompt: { showCancelButton: true, showInput: true }
  64023. };
  64024. MESSAGE_BOX_VARIANTS.forEach((boxType) => {
  64025. MessageBox[boxType] = messageBoxFactory(boxType);
  64026. });
  64027. function messageBoxFactory(boxType) {
  64028. return (message2, title, options, appContext) => {
  64029. let titleOrOpts = "";
  64030. if (isObject(title)) {
  64031. options = title;
  64032. titleOrOpts = "";
  64033. } else if (isUndefined2(title)) {
  64034. titleOrOpts = "";
  64035. } else {
  64036. titleOrOpts = title;
  64037. }
  64038. return MessageBox(Object.assign({
  64039. title: titleOrOpts,
  64040. message: message2,
  64041. type: "",
  64042. ...MESSAGE_BOX_DEFAULT_OPTS[boxType]
  64043. }, options, {
  64044. boxType
  64045. }), appContext);
  64046. };
  64047. }
  64048. MessageBox.close = () => {
  64049. messageInstance.forEach((_2, vm) => {
  64050. vm.doClose();
  64051. });
  64052. messageInstance.clear();
  64053. };
  64054. MessageBox._context = null;
  64055. // node_modules/element-plus/es/components/message-box/index.mjs
  64056. var _MessageBox = MessageBox;
  64057. _MessageBox.install = (app) => {
  64058. _MessageBox._context = app._context;
  64059. app.config.globalProperties.$msgbox = _MessageBox;
  64060. app.config.globalProperties.$messageBox = _MessageBox;
  64061. app.config.globalProperties.$alert = _MessageBox.alert;
  64062. app.config.globalProperties.$confirm = _MessageBox.confirm;
  64063. app.config.globalProperties.$prompt = _MessageBox.prompt;
  64064. };
  64065. var ElMessageBox = _MessageBox;
  64066. // node_modules/element-plus/es/components/notification/src/notification.mjs
  64067. var notificationTypes = [
  64068. "primary",
  64069. "success",
  64070. "info",
  64071. "warning",
  64072. "error"
  64073. ];
  64074. var notificationProps = buildProps({
  64075. customClass: {
  64076. type: String,
  64077. default: ""
  64078. },
  64079. dangerouslyUseHTMLString: Boolean,
  64080. duration: {
  64081. type: Number,
  64082. default: 4500
  64083. },
  64084. icon: {
  64085. type: iconPropType
  64086. },
  64087. id: {
  64088. type: String,
  64089. default: ""
  64090. },
  64091. message: {
  64092. type: definePropType([
  64093. String,
  64094. Object,
  64095. Function
  64096. ]),
  64097. default: ""
  64098. },
  64099. offset: {
  64100. type: Number,
  64101. default: 0
  64102. },
  64103. onClick: {
  64104. type: definePropType(Function),
  64105. default: () => void 0
  64106. },
  64107. onClose: {
  64108. type: definePropType(Function),
  64109. required: true
  64110. },
  64111. position: {
  64112. type: String,
  64113. values: ["top-right", "top-left", "bottom-right", "bottom-left"],
  64114. default: "top-right"
  64115. },
  64116. showClose: {
  64117. type: Boolean,
  64118. default: true
  64119. },
  64120. title: {
  64121. type: String,
  64122. default: ""
  64123. },
  64124. type: {
  64125. type: String,
  64126. values: [...notificationTypes, ""],
  64127. default: ""
  64128. },
  64129. zIndex: Number,
  64130. closeIcon: {
  64131. type: iconPropType,
  64132. default: close_default
  64133. }
  64134. });
  64135. var notificationEmits = {
  64136. destroy: () => true
  64137. };
  64138. // node_modules/element-plus/es/components/notification/src/notification2.mjs
  64139. var __default__125 = defineComponent({
  64140. name: "ElNotification"
  64141. });
  64142. var _sfc_main160 = defineComponent({
  64143. ...__default__125,
  64144. props: notificationProps,
  64145. emits: notificationEmits,
  64146. setup(__props, { expose }) {
  64147. const props2 = __props;
  64148. const { ns, zIndex: zIndex2 } = useGlobalComponentSettings("notification");
  64149. const { nextZIndex, currentZIndex } = zIndex2;
  64150. const visible = ref(false);
  64151. let timer = void 0;
  64152. const typeClass = computed(() => {
  64153. const type4 = props2.type;
  64154. return type4 && TypeComponentsMap[props2.type] ? ns.m(type4) : "";
  64155. });
  64156. const iconComponent = computed(() => {
  64157. if (!props2.type)
  64158. return props2.icon;
  64159. return TypeComponentsMap[props2.type] || props2.icon;
  64160. });
  64161. const horizontalClass = computed(() => props2.position.endsWith("right") ? "right" : "left");
  64162. const verticalProperty = computed(() => props2.position.startsWith("top") ? "top" : "bottom");
  64163. const positionStyle = computed(() => {
  64164. var _a2;
  64165. return {
  64166. [verticalProperty.value]: `${props2.offset}px`,
  64167. zIndex: (_a2 = props2.zIndex) != null ? _a2 : currentZIndex.value
  64168. };
  64169. });
  64170. function startTimer() {
  64171. if (props2.duration > 0) {
  64172. ({ stop: timer } = useTimeoutFn(() => {
  64173. if (visible.value)
  64174. close2();
  64175. }, props2.duration));
  64176. }
  64177. }
  64178. function clearTimer() {
  64179. timer == null ? void 0 : timer();
  64180. }
  64181. function close2() {
  64182. visible.value = false;
  64183. }
  64184. function onKeydown(event) {
  64185. const code = getEventCode(event);
  64186. switch (code) {
  64187. case EVENT_CODE.delete:
  64188. case EVENT_CODE.backspace:
  64189. clearTimer();
  64190. break;
  64191. case EVENT_CODE.esc:
  64192. if (visible.value) {
  64193. close2();
  64194. }
  64195. break;
  64196. default:
  64197. startTimer();
  64198. break;
  64199. }
  64200. }
  64201. onMounted(() => {
  64202. startTimer();
  64203. nextZIndex();
  64204. visible.value = true;
  64205. });
  64206. useEventListener(document, "keydown", onKeydown);
  64207. expose({
  64208. visible,
  64209. close: close2
  64210. });
  64211. return (_ctx, _cache) => {
  64212. return openBlock(), createBlock(Transition, {
  64213. name: unref(ns).b("fade"),
  64214. onBeforeLeave: _ctx.onClose,
  64215. onAfterLeave: ($event) => _ctx.$emit("destroy"),
  64216. persisted: ""
  64217. }, {
  64218. default: withCtx(() => [
  64219. withDirectives(createBaseVNode("div", {
  64220. id: _ctx.id,
  64221. class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
  64222. style: normalizeStyle(unref(positionStyle)),
  64223. role: "alert",
  64224. onMouseenter: clearTimer,
  64225. onMouseleave: startTimer,
  64226. onClick: _ctx.onClick
  64227. }, [
  64228. unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
  64229. key: 0,
  64230. class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
  64231. }, {
  64232. default: withCtx(() => [
  64233. (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
  64234. ]),
  64235. _: 1
  64236. }, 8, ["class"])) : createCommentVNode("v-if", true),
  64237. createBaseVNode("div", {
  64238. class: normalizeClass(unref(ns).e("group"))
  64239. }, [
  64240. createBaseVNode("h2", {
  64241. class: normalizeClass(unref(ns).e("title")),
  64242. textContent: toDisplayString(_ctx.title)
  64243. }, null, 10, ["textContent"]),
  64244. withDirectives(createBaseVNode("div", {
  64245. class: normalizeClass(unref(ns).e("content")),
  64246. style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
  64247. }, [
  64248. renderSlot(_ctx.$slots, "default", {}, () => [
  64249. !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", { key: 0 }, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
  64250. createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
  64251. createBaseVNode("p", { innerHTML: _ctx.message }, null, 8, ["innerHTML"])
  64252. ], 2112))
  64253. ])
  64254. ], 6), [
  64255. [vShow, _ctx.message]
  64256. ]),
  64257. _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
  64258. key: 0,
  64259. class: normalizeClass(unref(ns).e("closeBtn")),
  64260. onClick: withModifiers(close2, ["stop"])
  64261. }, {
  64262. default: withCtx(() => [
  64263. (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon)))
  64264. ]),
  64265. _: 1
  64266. }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
  64267. ], 2)
  64268. ], 46, ["id", "onClick"]), [
  64269. [vShow, visible.value]
  64270. ])
  64271. ]),
  64272. _: 3
  64273. }, 8, ["name", "onBeforeLeave", "onAfterLeave"]);
  64274. };
  64275. }
  64276. });
  64277. var NotificationConstructor = _export_sfc(_sfc_main160, [["__file", "notification.vue"]]);
  64278. // node_modules/element-plus/es/components/notification/src/notify.mjs
  64279. var notifications = {
  64280. "top-left": [],
  64281. "top-right": [],
  64282. "bottom-left": [],
  64283. "bottom-right": []
  64284. };
  64285. var GAP_SIZE = 16;
  64286. var seed2 = 1;
  64287. var notify = function(options = {}, context) {
  64288. if (!isClient)
  64289. return { close: () => void 0 };
  64290. if (isString(options) || isVNode(options)) {
  64291. options = { message: options };
  64292. }
  64293. const position = options.position || "top-right";
  64294. let verticalOffset = options.offset || 0;
  64295. notifications[position].forEach(({ vm: vm2 }) => {
  64296. var _a2;
  64297. verticalOffset += (((_a2 = vm2.el) == null ? void 0 : _a2.offsetHeight) || 0) + GAP_SIZE;
  64298. });
  64299. verticalOffset += GAP_SIZE;
  64300. const id = `notification_${seed2++}`;
  64301. const userOnClose = options.onClose;
  64302. const props2 = {
  64303. ...options,
  64304. offset: verticalOffset,
  64305. id,
  64306. onClose: () => {
  64307. close(id, position, userOnClose);
  64308. }
  64309. };
  64310. let appendTo = document.body;
  64311. if (isElement2(options.appendTo)) {
  64312. appendTo = options.appendTo;
  64313. } else if (isString(options.appendTo)) {
  64314. appendTo = document.querySelector(options.appendTo);
  64315. }
  64316. if (!isElement2(appendTo)) {
  64317. debugWarn("ElNotification", "the appendTo option is not an HTMLElement. Falling back to document.body.");
  64318. appendTo = document.body;
  64319. }
  64320. const container = document.createElement("div");
  64321. const vm = createVNode(NotificationConstructor, props2, isFunction(props2.message) ? props2.message : isVNode(props2.message) ? () => props2.message : null);
  64322. vm.appContext = isUndefined2(context) ? notify._context : context;
  64323. vm.props.onDestroy = () => {
  64324. render(null, container);
  64325. };
  64326. render(vm, container);
  64327. notifications[position].push({ vm });
  64328. appendTo.appendChild(container.firstElementChild);
  64329. return {
  64330. close: () => {
  64331. vm.component.exposed.visible.value = false;
  64332. }
  64333. };
  64334. };
  64335. notificationTypes.forEach((type4) => {
  64336. notify[type4] = (options = {}, appContext) => {
  64337. if (isString(options) || isVNode(options)) {
  64338. options = {
  64339. message: options
  64340. };
  64341. }
  64342. return notify({ ...options, type: type4 }, appContext);
  64343. };
  64344. });
  64345. function close(id, position, userOnClose) {
  64346. const orientedNotifications = notifications[position];
  64347. const idx = orientedNotifications.findIndex(({ vm: vm2 }) => {
  64348. var _a2;
  64349. return ((_a2 = vm2.component) == null ? void 0 : _a2.props.id) === id;
  64350. });
  64351. if (idx === -1)
  64352. return;
  64353. const { vm } = orientedNotifications[idx];
  64354. if (!vm)
  64355. return;
  64356. userOnClose == null ? void 0 : userOnClose(vm);
  64357. const removedHeight = vm.el.offsetHeight;
  64358. const verticalPos = position.split("-")[0];
  64359. orientedNotifications.splice(idx, 1);
  64360. const len = orientedNotifications.length;
  64361. if (len < 1)
  64362. return;
  64363. for (let i = idx; i < len; i++) {
  64364. const { el, component: component2 } = orientedNotifications[i].vm;
  64365. const pos = Number.parseInt(el.style[verticalPos], 10) - removedHeight - GAP_SIZE;
  64366. component2.props.offset = pos;
  64367. }
  64368. }
  64369. function closeAll2() {
  64370. for (const orientedNotifications of Object.values(notifications)) {
  64371. orientedNotifications.forEach(({ vm }) => {
  64372. vm.component.exposed.visible.value = false;
  64373. });
  64374. }
  64375. }
  64376. function updateOffsets(position = "top-right") {
  64377. var _a2, _b, _c, _d;
  64378. let verticalOffset = ((_c = (_b = (_a2 = notifications[position][0]) == null ? void 0 : _a2.vm.component) == null ? void 0 : _b.props) == null ? void 0 : _c.offset) || 0;
  64379. for (const { vm } of notifications[position]) {
  64380. vm.component.props.offset = verticalOffset;
  64381. verticalOffset += (((_d = vm.el) == null ? void 0 : _d.offsetHeight) || 0) + GAP_SIZE;
  64382. }
  64383. }
  64384. notify.closeAll = closeAll2;
  64385. notify.updateOffsets = updateOffsets;
  64386. notify._context = null;
  64387. // node_modules/element-plus/es/components/notification/index.mjs
  64388. var ElNotification = withInstallFunction(notify, "$notify");
  64389. // node_modules/element-plus/es/plugin.mjs
  64390. var Plugins = [
  64391. ElInfiniteScroll,
  64392. ElLoading,
  64393. ElMessage,
  64394. ElMessageBox,
  64395. ElNotification,
  64396. ElPopoverDirective
  64397. ];
  64398. // node_modules/element-plus/es/defaults.mjs
  64399. var installer = makeInstaller([...Components, ...Plugins]);
  64400. // node_modules/element-plus/es/index.mjs
  64401. var import_dayjs19 = __toESM(require_dayjs_min(), 1);
  64402. // node_modules/element-plus/es/hooks/use-focus/index.mjs
  64403. var useFocus = (el) => {
  64404. return {
  64405. focus: () => {
  64406. var _a2, _b;
  64407. (_b = (_a2 = el.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
  64408. }
  64409. };
  64410. };
  64411. // node_modules/element-plus/es/hooks/use-modal/index.mjs
  64412. var modalStack = [];
  64413. var closeModal = (e) => {
  64414. if (modalStack.length === 0)
  64415. return;
  64416. const code = getEventCode(e);
  64417. if (code === EVENT_CODE.esc) {
  64418. e.stopPropagation();
  64419. const topModal = modalStack[modalStack.length - 1];
  64420. topModal.handleClose();
  64421. }
  64422. };
  64423. var useModal = (instance, visibleRef) => {
  64424. watch(visibleRef, (val) => {
  64425. if (val) {
  64426. modalStack.push(instance);
  64427. } else {
  64428. modalStack.splice(modalStack.indexOf(instance), 1);
  64429. }
  64430. });
  64431. };
  64432. if (isClient)
  64433. useEventListener(document, "keydown", closeModal);
  64434. // node_modules/element-plus/es/hooks/use-prevent-global/index.mjs
  64435. var usePreventGlobal = (indicator, evt, cb) => {
  64436. const prevent = (e) => {
  64437. if (cb(e))
  64438. e.stopImmediatePropagation();
  64439. };
  64440. let stop = void 0;
  64441. watch(() => indicator.value, (val) => {
  64442. if (val) {
  64443. stop = useEventListener(document, evt, prevent, true);
  64444. } else {
  64445. stop == null ? void 0 : stop();
  64446. }
  64447. }, { immediate: true });
  64448. };
  64449. // node_modules/element-plus/es/utils/vue/global-node.mjs
  64450. var globalNodes = [];
  64451. var target = !isClient ? void 0 : document.body;
  64452. function createGlobalNode(id) {
  64453. const el = document.createElement("div");
  64454. if (id !== void 0) {
  64455. el.setAttribute("id", id);
  64456. }
  64457. if (target) {
  64458. target.appendChild(el);
  64459. globalNodes.push(el);
  64460. }
  64461. return el;
  64462. }
  64463. function removeGlobalNode(el) {
  64464. globalNodes.splice(globalNodes.indexOf(el), 1);
  64465. el.remove();
  64466. }
  64467. // node_modules/element-plus/es/hooks/use-teleport/index.mjs
  64468. var useTeleport = (contentRenderer, appendToBody) => {
  64469. const isTeleportVisible = ref(false);
  64470. if (!isClient) {
  64471. return {
  64472. isTeleportVisible,
  64473. showTeleport: NOOP,
  64474. hideTeleport: NOOP,
  64475. renderTeleport: NOOP
  64476. };
  64477. }
  64478. let $el = null;
  64479. const showTeleport = () => {
  64480. isTeleportVisible.value = true;
  64481. if ($el !== null)
  64482. return;
  64483. $el = createGlobalNode();
  64484. };
  64485. const hideTeleport = () => {
  64486. isTeleportVisible.value = false;
  64487. if ($el !== null) {
  64488. removeGlobalNode($el);
  64489. $el = null;
  64490. }
  64491. };
  64492. const renderTeleport = () => {
  64493. return appendToBody.value !== true ? contentRenderer() : isTeleportVisible.value ? [h(Teleport, { to: $el }, contentRenderer())] : void 0;
  64494. };
  64495. onUnmounted(hideTeleport);
  64496. return {
  64497. isTeleportVisible,
  64498. showTeleport,
  64499. hideTeleport,
  64500. renderTeleport
  64501. };
  64502. };
  64503. // node_modules/element-plus/es/hooks/use-transition-fallthrough/index.mjs
  64504. var AFTER_APPEAR = "after-appear";
  64505. var AFTER_ENTER = "after-enter";
  64506. var AFTER_LEAVE = "after-leave";
  64507. var APPEAR = "appear";
  64508. var APPEAR_CANCELLED = "appear-cancelled";
  64509. var BEFORE_ENTER = "before-enter";
  64510. var BEFORE_LEAVE = "before-leave";
  64511. var ENTER = "enter";
  64512. var ENTER_CANCELLED = "enter-cancelled";
  64513. var LEAVE = "leave";
  64514. var LEAVE_CANCELLED = "leave-cancelled";
  64515. var useTransitionFallthroughEmits = [
  64516. AFTER_APPEAR,
  64517. AFTER_ENTER,
  64518. AFTER_LEAVE,
  64519. APPEAR,
  64520. APPEAR_CANCELLED,
  64521. BEFORE_ENTER,
  64522. BEFORE_LEAVE,
  64523. ENTER,
  64524. ENTER_CANCELLED,
  64525. LEAVE,
  64526. LEAVE_CANCELLED
  64527. ];
  64528. var useTransitionFallthrough = () => {
  64529. const { emit } = getCurrentInstance();
  64530. return {
  64531. onAfterAppear: () => {
  64532. emit(AFTER_APPEAR);
  64533. },
  64534. onAfterEnter: () => {
  64535. emit(AFTER_ENTER);
  64536. },
  64537. onAfterLeave: () => {
  64538. emit(AFTER_LEAVE);
  64539. },
  64540. onAppearCancelled: () => {
  64541. emit(APPEAR_CANCELLED);
  64542. },
  64543. onBeforeEnter: () => {
  64544. emit(BEFORE_ENTER);
  64545. },
  64546. onBeforeLeave: () => {
  64547. emit(BEFORE_LEAVE);
  64548. },
  64549. onEnter: () => {
  64550. emit(ENTER);
  64551. },
  64552. onEnterCancelled: () => {
  64553. emit(ENTER_CANCELLED);
  64554. },
  64555. onLeave: () => {
  64556. emit(LEAVE);
  64557. },
  64558. onLeaveCancelled: () => {
  64559. emit(LEAVE_CANCELLED);
  64560. }
  64561. };
  64562. };
  64563. // node_modules/element-plus/es/hooks/use-intermediate-render/index.mjs
  64564. var useDelayedRender = ({
  64565. indicator,
  64566. intermediateIndicator,
  64567. shouldSetIntermediate = () => true,
  64568. beforeShow,
  64569. afterShow,
  64570. afterHide,
  64571. beforeHide
  64572. }) => {
  64573. watch(() => unref(indicator), (val) => {
  64574. if (val) {
  64575. beforeShow == null ? void 0 : beforeShow();
  64576. nextTick(() => {
  64577. if (!unref(indicator))
  64578. return;
  64579. if (shouldSetIntermediate("show")) {
  64580. intermediateIndicator.value = true;
  64581. }
  64582. });
  64583. } else {
  64584. beforeHide == null ? void 0 : beforeHide();
  64585. nextTick(() => {
  64586. if (unref(indicator))
  64587. return;
  64588. if (shouldSetIntermediate("hide")) {
  64589. intermediateIndicator.value = false;
  64590. }
  64591. });
  64592. }
  64593. });
  64594. watch(() => intermediateIndicator.value, (val) => {
  64595. if (val) {
  64596. afterShow == null ? void 0 : afterShow();
  64597. } else {
  64598. afterHide == null ? void 0 : afterHide();
  64599. }
  64600. });
  64601. };
  64602. // node_modules/element-plus/es/hooks/use-floating/index.mjs
  64603. var useFloatingProps = buildProps({});
  64604. var unrefReference = (elRef) => {
  64605. if (!isClient)
  64606. return;
  64607. if (!elRef)
  64608. return elRef;
  64609. const unrefEl = unrefElement(elRef);
  64610. if (unrefEl)
  64611. return unrefEl;
  64612. return isRef(elRef) ? unrefEl : elRef;
  64613. };
  64614. var getPositionDataWithUnit = (record, key) => {
  64615. const value = record == null ? void 0 : record[key];
  64616. return isNil_default(value) ? "" : `${value}px`;
  64617. };
  64618. var useFloating2 = ({
  64619. middleware,
  64620. placement,
  64621. strategy
  64622. }) => {
  64623. const referenceRef = ref();
  64624. const contentRef = ref();
  64625. const x2 = ref();
  64626. const y = ref();
  64627. const middlewareData = ref({});
  64628. const states = {
  64629. x: x2,
  64630. y,
  64631. placement,
  64632. strategy,
  64633. middlewareData
  64634. };
  64635. const update2 = async () => {
  64636. if (!isClient)
  64637. return;
  64638. const referenceEl = unrefReference(referenceRef);
  64639. const contentEl = unrefElement(contentRef);
  64640. if (!referenceEl || !contentEl)
  64641. return;
  64642. const data = await computePosition2(referenceEl, contentEl, {
  64643. placement: unref(placement),
  64644. strategy: unref(strategy),
  64645. middleware: unref(middleware)
  64646. });
  64647. keysOf(states).forEach((key) => {
  64648. states[key].value = data[key];
  64649. });
  64650. };
  64651. onMounted(() => {
  64652. watchEffect(() => {
  64653. update2();
  64654. });
  64655. });
  64656. return {
  64657. ...states,
  64658. update: update2,
  64659. referenceRef,
  64660. contentRef
  64661. };
  64662. };
  64663. var arrowMiddleware = ({
  64664. arrowRef,
  64665. padding
  64666. }) => {
  64667. return {
  64668. name: "arrow",
  64669. options: {
  64670. element: arrowRef,
  64671. padding
  64672. },
  64673. fn(args) {
  64674. const arrowEl = unref(arrowRef);
  64675. if (!arrowEl)
  64676. return {};
  64677. return arrow2({
  64678. element: arrowEl,
  64679. padding
  64680. }).fn(args);
  64681. }
  64682. };
  64683. };
  64684. // node_modules/element-plus/es/index.mjs
  64685. var install = installer.install;
  64686. var version3 = installer.version;
  64687. var export_dayjs = import_dayjs19.default;
  64688. export {
  64689. BAR_MAP,
  64690. BORDER_HORIZONTAL_WIDTH,
  64691. CAROUSEL_ITEM_NAME,
  64692. CASCADER_PANEL_INJECTION_KEY,
  64693. CHANGE_EVENT,
  64694. ClickOutside,
  64695. CommonPicker,
  64696. CommonProps,
  64697. DEFAULT_DIALOG_TRANSITION,
  64698. DEFAULT_EMPTY_VALUES,
  64699. DEFAULT_FORMATS_DATE,
  64700. DEFAULT_FORMATS_DATEPICKER,
  64701. DEFAULT_FORMATS_TIME,
  64702. DEFAULT_VALUE_ON_CLEAR,
  64703. DROPDOWN_INJECTION_KEY,
  64704. DROPDOWN_INSTANCE_INJECTION_KEY,
  64705. DefaultProps,
  64706. DynamicSizeGrid,
  64707. DynamicSizeList,
  64708. EVENT_CODE,
  64709. Effect,
  64710. ElAffix,
  64711. ElAlert,
  64712. ElAnchor,
  64713. ElAnchorLink,
  64714. ElAside,
  64715. ElAutoResizer,
  64716. ElAutocomplete,
  64717. ElAvatar,
  64718. ElBacktop,
  64719. ElBadge,
  64720. ElBreadcrumb,
  64721. ElBreadcrumbItem,
  64722. ElButton,
  64723. ElButtonGroup,
  64724. ElCalendar,
  64725. ElCard,
  64726. ElCarousel,
  64727. ElCarouselItem,
  64728. ElCascader,
  64729. ElCascaderPanel,
  64730. ElCheckTag,
  64731. ElCheckbox,
  64732. ElCheckboxButton,
  64733. ElCheckboxGroup,
  64734. ElCol,
  64735. ElCollapse,
  64736. ElCollapseItem,
  64737. ElCollapseTransition,
  64738. ElColorPicker,
  64739. ElColorPickerPanel,
  64740. ElConfigProvider,
  64741. ElContainer,
  64742. ElCountdown,
  64743. ElDatePicker,
  64744. ElDatePickerPanel,
  64745. ElDescriptions,
  64746. ElDescriptionsItem,
  64747. ElDialog,
  64748. ElDivider,
  64749. ElDrawer,
  64750. ElDropdown,
  64751. ElDropdownItem,
  64752. ElDropdownMenu,
  64753. ElEmpty,
  64754. ElFooter,
  64755. ElForm,
  64756. ElFormItem,
  64757. ElHeader,
  64758. ElIcon,
  64759. ElImage,
  64760. ElImageViewer,
  64761. ElInfiniteScroll,
  64762. ElInput,
  64763. ElInputNumber,
  64764. ElInputTag,
  64765. ElLink,
  64766. ElLoading,
  64767. vLoading as ElLoadingDirective,
  64768. Loading as ElLoadingService,
  64769. ElMain,
  64770. ElMention,
  64771. ElMenu,
  64772. ElMenuItem,
  64773. ElMenuItemGroup,
  64774. ElMessage,
  64775. ElMessageBox,
  64776. ElNotification,
  64777. ElOption,
  64778. ElOptionGroup,
  64779. ElOverlay,
  64780. ElPageHeader,
  64781. ElPagination,
  64782. ElPopconfirm,
  64783. ElPopover,
  64784. ElPopoverDirective,
  64785. ElPopper,
  64786. ElPopperArrow,
  64787. ElPopperContent,
  64788. ElPopperTrigger,
  64789. ElProgress,
  64790. ElRadio,
  64791. ElRadioButton,
  64792. ElRadioGroup,
  64793. ElRate,
  64794. ElResult,
  64795. ElRow,
  64796. ElScrollbar,
  64797. ElSegmented,
  64798. ElSelect,
  64799. ElSelectV2,
  64800. ElSkeleton,
  64801. ElSkeletonItem,
  64802. ElSlider,
  64803. ElSpace,
  64804. ElSplitter,
  64805. ElSplitterPanel,
  64806. ElStatistic,
  64807. ElStep,
  64808. ElSteps,
  64809. ElSubMenu,
  64810. ElSwitch,
  64811. ElTabPane,
  64812. ElTable,
  64813. ElTableColumn2 as ElTableColumn,
  64814. ElTableV2,
  64815. ElTabs,
  64816. ElTag,
  64817. ElText,
  64818. ElTimePicker,
  64819. ElTimeSelect,
  64820. ElTimeline,
  64821. ElTimelineItem,
  64822. ElTooltip,
  64823. ElTour,
  64824. ElTourStep,
  64825. ElTransfer,
  64826. ElTree,
  64827. ElTreeSelect,
  64828. ElTreeV2,
  64829. ElUpload,
  64830. ElWatermark,
  64831. FIRST_KEYS,
  64832. FIRST_LAST_KEYS,
  64833. FORWARD_REF_INJECTION_KEY,
  64834. FixedSizeGrid,
  64835. FixedSizeList,
  64836. GAP,
  64837. ID_INJECTION_KEY,
  64838. INPUT_EVENT,
  64839. INSTALLED_KEY,
  64840. IconComponentMap,
  64841. IconMap,
  64842. LAST_KEYS,
  64843. LEFT_CHECK_CHANGE_EVENT,
  64844. MENU_INJECTION_KEY,
  64845. MESSAGE_DEFAULT_PLACEMENT,
  64846. MINIMUM_INPUT_WIDTH,
  64847. Mousewheel,
  64848. NODE_INSTANCE_INJECTION_KEY,
  64849. PICKER_BASE_INJECTION_KEY,
  64850. PICKER_POPPER_OPTIONS_INJECTION_KEY,
  64851. POPPER_CONTENT_INJECTION_KEY,
  64852. POPPER_INJECTION_KEY,
  64853. RIGHT_CHECK_CHANGE_EVENT,
  64854. ROOT_COMMON_COLOR_INJECTION_KEY,
  64855. ROOT_COMMON_PICKER_INJECTION_KEY,
  64856. ROOT_PICKER_INJECTION_KEY,
  64857. ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,
  64858. ROOT_TREE_INJECTION_KEY,
  64859. RowAlign,
  64860. RowJustify,
  64861. SCOPE,
  64862. SIZE_INJECTION_KEY,
  64863. STEPS_INJECTION_KEY,
  64864. SUB_MENU_INJECTION_KEY,
  64865. TIMELINE_INJECTION_KEY,
  64866. TOOLTIP_INJECTION_KEY,
  64867. TREE_NODE_MAP_INJECTION_KEY,
  64868. TableV2$1 as TableV2,
  64869. Alignment as TableV2Alignment,
  64870. FixedDir as TableV2FixedDir,
  64871. placeholderSign as TableV2Placeholder,
  64872. SortOrder as TableV2SortOrder,
  64873. TimePickPanel,
  64874. TrapFocus,
  64875. UPDATE_MODEL_EVENT,
  64876. WEEK_DAYS,
  64877. ZINDEX_INJECTION_KEY,
  64878. affixEmits,
  64879. affixProps,
  64880. alertEffects,
  64881. alertEmits,
  64882. alertProps,
  64883. anchorEmits,
  64884. anchorProps,
  64885. ariaProps,
  64886. arrowMiddleware,
  64887. autoResizerProps,
  64888. autocompleteEmits,
  64889. autocompleteProps,
  64890. avatarEmits,
  64891. avatarProps,
  64892. backtopEmits,
  64893. backtopProps,
  64894. badgeProps,
  64895. breadcrumbItemProps,
  64896. breadcrumbKey,
  64897. breadcrumbProps,
  64898. buildLocaleContext,
  64899. buildTimeList,
  64900. buildTranslator,
  64901. buttonEmits,
  64902. buttonGroupContextKey,
  64903. buttonNativeTypes,
  64904. buttonProps,
  64905. buttonTypes,
  64906. calendarEmits,
  64907. calendarProps,
  64908. cardContextKey,
  64909. cardProps,
  64910. carouselContextKey,
  64911. carouselEmits,
  64912. carouselItemProps,
  64913. carouselProps,
  64914. cascaderEmits,
  64915. cascaderPanelEmits,
  64916. cascaderPanelProps,
  64917. cascaderProps,
  64918. checkTagEmits,
  64919. checkTagProps,
  64920. checkboxDefaultProps,
  64921. checkboxEmits,
  64922. checkboxGroupContextKey,
  64923. checkboxGroupEmits,
  64924. checkboxGroupProps,
  64925. checkboxProps,
  64926. colProps,
  64927. collapseContextKey,
  64928. collapseEmits,
  64929. collapseItemProps,
  64930. collapseProps,
  64931. colorPickerEmits,
  64932. colorPickerPanelContextKey,
  64933. colorPickerPanelEmits,
  64934. colorPickerPanelProps,
  64935. colorPickerProps,
  64936. columnAlignment,
  64937. componentSizeMap,
  64938. componentSizes,
  64939. configProviderContextKey,
  64940. configProviderProps,
  64941. countdownEmits,
  64942. countdownProps,
  64943. createModelToggleComposable,
  64944. dateEquals,
  64945. datePickTypes,
  64946. datePickerPanelProps,
  64947. datePickerProps,
  64948. dayOrDaysToDate,
  64949. export_dayjs as dayjs,
  64950. installer as default,
  64951. defaultInitialZIndex,
  64952. defaultNamespace,
  64953. defaultProps5 as defaultProps,
  64954. descriptionItemProps,
  64955. descriptionProps,
  64956. dialogContextKey,
  64957. dialogEmits,
  64958. dialogInjectionKey,
  64959. dialogProps,
  64960. dividerProps,
  64961. drawerEmits,
  64962. drawerProps,
  64963. dropdownItemProps,
  64964. dropdownMenuProps,
  64965. dropdownProps,
  64966. elPaginationKey,
  64967. emitChangeFn3 as emitChangeFn,
  64968. emptyProps,
  64969. emptyValuesContextKey,
  64970. extractDateFormat,
  64971. extractTimeFormat,
  64972. formContextKey,
  64973. formEmits,
  64974. formItemContextKey,
  64975. formItemProps,
  64976. formItemValidateStates,
  64977. formMetaProps,
  64978. formProps,
  64979. formatter,
  64980. genFileId,
  64981. getPositionDataWithUnit,
  64982. iconProps,
  64983. imageEmits,
  64984. imageProps,
  64985. imageViewerEmits,
  64986. imageViewerProps,
  64987. inputEmits,
  64988. inputNumberEmits,
  64989. inputNumberProps,
  64990. inputProps,
  64991. inputTagEmits,
  64992. inputTagProps,
  64993. install,
  64994. linkEmits,
  64995. linkProps,
  64996. localeContextKey,
  64997. makeInstaller,
  64998. makeList,
  64999. mentionDefaultProps,
  65000. mentionEmits,
  65001. mentionProps,
  65002. menuEmits,
  65003. menuItemEmits,
  65004. menuItemGroupProps,
  65005. menuItemProps,
  65006. menuProps,
  65007. messageConfig,
  65008. messageDefaults,
  65009. messageEmits,
  65010. messagePlacement,
  65011. messageProps,
  65012. messageTypes,
  65013. namespaceContextKey,
  65014. notificationEmits,
  65015. notificationProps,
  65016. notificationTypes,
  65017. overlayEmits,
  65018. overlayProps,
  65019. pageHeaderEmits,
  65020. pageHeaderProps,
  65021. paginationEmits,
  65022. paginationProps,
  65023. parseDate,
  65024. popconfirmEmits,
  65025. popconfirmProps,
  65026. popoverEmits,
  65027. popoverProps,
  65028. popperArrowProps,
  65029. popperContentEmits,
  65030. popperContentProps,
  65031. popperCoreConfigProps,
  65032. popperProps,
  65033. popperTriggerProps,
  65034. progressProps,
  65035. provideGlobalConfig,
  65036. radioButtonProps,
  65037. radioDefaultProps,
  65038. radioEmits,
  65039. radioGroupEmits,
  65040. radioGroupKey,
  65041. radioGroupProps,
  65042. radioProps,
  65043. radioPropsBase,
  65044. rangeArr,
  65045. rateEmits,
  65046. rateProps,
  65047. renderThumbStyle,
  65048. resultProps,
  65049. roleTypes,
  65050. rowContextKey,
  65051. rowProps,
  65052. scrollbarContextKey,
  65053. scrollbarEmits,
  65054. scrollbarProps,
  65055. segmentedEmits,
  65056. segmentedProps,
  65057. selectEmits,
  65058. selectGroupKey,
  65059. selectKey,
  65060. selectProps,
  65061. selectV2InjectionKey,
  65062. skeletonItemProps,
  65063. skeletonProps,
  65064. sliderContextKey,
  65065. sliderEmits,
  65066. sliderProps,
  65067. spaceItemProps,
  65068. spaceProps,
  65069. splitterPanelProps,
  65070. splitterProps,
  65071. statisticProps,
  65072. stepProps,
  65073. stepsEmits,
  65074. stepsProps,
  65075. subMenuProps,
  65076. switchEmits,
  65077. switchProps,
  65078. tabBarProps,
  65079. tabNavEmits,
  65080. tabNavProps,
  65081. tabPaneProps,
  65082. tableV2Props,
  65083. tableV2RowProps,
  65084. tabsEmits,
  65085. tabsProps,
  65086. tabsRootContextKey,
  65087. tagEmits,
  65088. tagProps,
  65089. textProps,
  65090. thumbProps,
  65091. timePickerDefaultProps,
  65092. timePickerRangeTriggerProps,
  65093. timePickerRngeTriggerProps,
  65094. timeSelectProps,
  65095. timeUnits,
  65096. timelineItemProps,
  65097. tooltipEmits,
  65098. tourContentEmits,
  65099. tourContentProps,
  65100. tourEmits,
  65101. tourPlacements,
  65102. tourProps,
  65103. tourStepEmits,
  65104. tourStepProps,
  65105. tourStrategies,
  65106. transferCheckedChangeFn,
  65107. transferEmits,
  65108. transferProps,
  65109. translate,
  65110. treeEmits,
  65111. uploadBaseProps,
  65112. uploadContentProps,
  65113. uploadContextKey,
  65114. uploadDraggerEmits,
  65115. uploadDraggerProps,
  65116. uploadListEmits,
  65117. uploadListProps,
  65118. uploadListTypes,
  65119. uploadProps,
  65120. useAriaProps,
  65121. useAttrs2 as useAttrs,
  65122. useCalcInputWidth,
  65123. useCascaderConfig,
  65124. useComposition,
  65125. useCursor,
  65126. useDelayedRender,
  65127. useDelayedToggle,
  65128. useDelayedToggleProps,
  65129. useDeprecated,
  65130. useDialog,
  65131. useDisabled,
  65132. useDraggable,
  65133. useEmptyValues,
  65134. useEmptyValuesProps,
  65135. useEscapeKeydown,
  65136. useFloating2 as useFloating,
  65137. useFloatingProps,
  65138. useFocus,
  65139. useFocusController,
  65140. useFormDisabled,
  65141. useFormItem,
  65142. useFormItemInputId,
  65143. useFormSize,
  65144. useForwardRef,
  65145. useForwardRefDirective,
  65146. useGetDerivedNamespace,
  65147. useGlobalComponentSettings,
  65148. useGlobalConfig,
  65149. useGlobalSize,
  65150. useId,
  65151. useIdInjection,
  65152. useLocale,
  65153. useLockscreen,
  65154. useModal,
  65155. useModelToggle,
  65156. useModelToggleEmits,
  65157. useModelToggleProps,
  65158. useNamespace,
  65159. useOrderedChildren,
  65160. usePopper,
  65161. usePopperArrowProps,
  65162. usePopperContainer,
  65163. usePopperContainerId,
  65164. usePopperContentEmits,
  65165. usePopperContentProps,
  65166. usePopperCoreConfigProps,
  65167. usePopperProps,
  65168. usePopperTriggerProps,
  65169. usePreventGlobal,
  65170. useProp,
  65171. useSameTarget,
  65172. useSize,
  65173. useSizeProp,
  65174. useSizeProps,
  65175. useSpace,
  65176. useTeleport,
  65177. useThrottleRender,
  65178. useTimeout,
  65179. useTooltipContentProps,
  65180. useTooltipModelToggle,
  65181. useTooltipModelToggleEmits,
  65182. useTooltipModelToggleProps,
  65183. useTooltipProps,
  65184. useTooltipTriggerProps,
  65185. useTransitionFallthrough,
  65186. useTransitionFallthroughEmits,
  65187. useZIndex,
  65188. vLoading,
  65189. vRepeatClick,
  65190. valueEquals,
  65191. version3 as version,
  65192. virtualizedGridProps,
  65193. virtualizedListProps,
  65194. virtualizedProps,
  65195. virtualizedScrollbarProps,
  65196. watermarkProps,
  65197. zIndexContextKey
  65198. };
  65199. /*! Bundled license information:
  65200. lodash-es/lodash.default.js:
  65201. (**
  65202. * @license
  65203. * Lodash (Custom Build) <https://lodash.com/>
  65204. * Build: `lodash modularize exports="es" -o ./`
  65205. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  65206. * Released under MIT license <https://lodash.com/license>
  65207. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  65208. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  65209. *)
  65210. lodash-es/lodash.js:
  65211. (**
  65212. * @license
  65213. * Lodash (Custom Build) <https://lodash.com/>
  65214. * Build: `lodash modularize exports="es" -o ./`
  65215. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  65216. * Released under MIT license <https://lodash.com/license>
  65217. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  65218. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  65219. *)
  65220. normalize-wheel-es/dist/index.mjs:
  65221. (**
  65222. * Checks if an event is supported in the current execution environment.
  65223. *
  65224. * NOTE: This will not work correctly for non-generic events such as `change`,
  65225. * `reset`, `load`, `error`, and `select`.
  65226. *
  65227. * Borrows from Modernizr.
  65228. *
  65229. * @param {string} eventNameSuffix Event name, e.g. "click".
  65230. * @param {?boolean} capture Check if the capture phase is supported.
  65231. * @return {boolean} True if the event is supported.
  65232. * @internal
  65233. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  65234. *)
  65235. */
  65236. //# sourceMappingURL=element-plus.js.map