| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137 |
- import {
- Comment,
- Fragment,
- NOOP,
- Teleport,
- Text,
- Transition,
- TransitionGroup,
- __commonJS,
- __toESM,
- camelize,
- capitalize,
- cloneVNode,
- computed,
- createApp,
- createBaseVNode,
- createBlock,
- createCommentVNode,
- createElementBlock,
- createSlots,
- createTextVNode,
- createVNode,
- customRef,
- defineComponent,
- effectScope,
- getCurrentInstance,
- getCurrentScope,
- guardReactiveProps,
- h,
- hasOwn,
- hyphenate,
- inject,
- isArray,
- isDate,
- isFunction,
- isObject,
- isPlainObject,
- isPromise,
- isRef,
- isString,
- isVNode,
- markRaw,
- mergeProps,
- nextTick,
- normalizeClass,
- normalizeProps,
- normalizeStyle,
- onActivated,
- onBeforeMount,
- onBeforeUnmount,
- onBeforeUpdate,
- onDeactivated,
- onMounted,
- onScopeDispose,
- onUnmounted,
- onUpdated,
- openBlock,
- provide,
- reactive,
- readonly,
- ref,
- render,
- renderList,
- renderSlot,
- resolveComponent,
- resolveDirective,
- resolveDynamicComponent,
- shallowReactive,
- shallowRef,
- toDisplayString,
- toHandlerKey,
- toHandlers,
- toRaw,
- toRef,
- toRefs,
- triggerRef,
- unref,
- useAttrs,
- useSlots,
- vModelCheckbox,
- vModelRadio,
- vModelText,
- vShow,
- warn,
- watch,
- watchEffect,
- withCtx,
- withDirectives,
- withKeys,
- withModifiers
- } from "./chunk-GFV24RRW.js";
- // node_modules/dayjs/dayjs.min.js
- var require_dayjs_min = __commonJS({
- "node_modules/dayjs/dayjs.min.js"(exports2, module2) {
- !(function(t, e) {
- "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();
- })(exports2, (function() {
- "use strict";
- 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) {
- var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
- return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
- } }, m2 = function(t2, e2, n2) {
- var r2 = String(t2);
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
- }, v2 = { s: m2, z: function(t2) {
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
- return (e2 <= 0 ? "+" : "-") + m2(r2, 2, "0") + ":" + m2(i2, 2, "0");
- }, m: function t2(e2, n2) {
- if (e2.date() < n2.date()) return -t2(n2, e2);
- 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);
- return +(-(r2 + (n2 - i2) / (s3 ? i2 - u3 : u3 - i2)) || 0);
- }, a: function(t2) {
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
- }, p: function(t2) {
- 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$/, "");
- }, u: function(t2) {
- return void 0 === t2;
- } }, g = "en", D2 = {};
- D2[g] = M2;
- var p2 = "$isDayjsObject", S2 = function(t2) {
- return t2 instanceof _2 || !(!t2 || !t2[p2]);
- }, w2 = function t2(e2, n2, r2) {
- var i2;
- if (!e2) return g;
- if ("string" == typeof e2) {
- var s3 = e2.toLowerCase();
- D2[s3] && (i2 = s3), n2 && (D2[s3] = n2, i2 = s3);
- var u3 = e2.split("-");
- if (!i2 && u3.length > 1) return t2(u3[0]);
- } else {
- var a3 = e2.name;
- D2[a3] = e2, i2 = a3;
- }
- return !r2 && i2 && (g = i2), i2 || !r2 && g;
- }, O2 = function(t2, e2) {
- if (S2(t2)) return t2.clone();
- var n2 = "object" == typeof e2 ? e2 : {};
- return n2.date = t2, n2.args = arguments, new _2(n2);
- }, b2 = v2;
- b2.l = w2, b2.i = S2, b2.w = function(t2, e2) {
- return O2(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
- };
- var _2 = (function() {
- function M3(t2) {
- this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p2] = true;
- }
- var m3 = M3.prototype;
- return m3.parse = function(t2) {
- this.$d = (function(t3) {
- var e2 = t3.date, n2 = t3.utc;
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
- if (b2.u(e2)) return /* @__PURE__ */ new Date();
- if (e2 instanceof Date) return new Date(e2);
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
- var r2 = e2.match($);
- if (r2) {
- var i2 = r2[2] - 1 || 0, s3 = (r2[7] || "0").substring(0, 3);
- 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);
- }
- }
- return new Date(e2);
- })(t2), this.init();
- }, m3.init = function() {
- var t2 = this.$d;
- 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();
- }, m3.$utils = function() {
- return b2;
- }, m3.isValid = function() {
- return !(this.$d.toString() === l2);
- }, m3.isSame = function(t2, e2) {
- var n2 = O2(t2);
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
- }, m3.isAfter = function(t2, e2) {
- return O2(t2) < this.startOf(e2);
- }, m3.isBefore = function(t2, e2) {
- return this.endOf(e2) < O2(t2);
- }, m3.$g = function(t2, e2, n2) {
- return b2.u(t2) ? this[e2] : this.set(n2, t2);
- }, m3.unix = function() {
- return Math.floor(this.valueOf() / 1e3);
- }, m3.valueOf = function() {
- return this.$d.getTime();
- }, m3.startOf = function(t2, e2) {
- var n2 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t2), l3 = function(t3, e3) {
- var i2 = b2.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
- return r2 ? i2 : i2.endOf(a2);
- }, $2 = function(t3, e3) {
- return b2.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
- }, y2 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
- switch (f3) {
- case h3:
- return r2 ? l3(1, 0) : l3(31, 11);
- case c2:
- return r2 ? l3(1, M4) : l3(0, M4 + 1);
- case o2:
- var g2 = this.$locale().weekStart || 0, D3 = (y2 < g2 ? y2 + 7 : y2) - g2;
- return l3(r2 ? m4 - D3 : m4 + (6 - D3), M4);
- case a2:
- case d2:
- return $2(v3 + "Hours", 0);
- case u2:
- return $2(v3 + "Minutes", 1);
- case s2:
- return $2(v3 + "Seconds", 2);
- case i:
- return $2(v3 + "Milliseconds", 3);
- default:
- return this.clone();
- }
- }, m3.endOf = function(t2) {
- return this.startOf(t2, false);
- }, m3.$set = function(t2, e2) {
- 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;
- if (o3 === c2 || o3 === h3) {
- var y2 = this.clone().set(d2, 1);
- y2.$d[l3]($2), y2.init(), this.$d = y2.set(d2, Math.min(this.$D, y2.daysInMonth())).$d;
- } else l3 && this.$d[l3]($2);
- return this.init(), this;
- }, m3.set = function(t2, e2) {
- return this.clone().$set(t2, e2);
- }, m3.get = function(t2) {
- return this[b2.p(t2)]();
- }, m3.add = function(r2, f3) {
- var d3, l3 = this;
- r2 = Number(r2);
- var $2 = b2.p(f3), y2 = function(t2) {
- var e2 = O2(l3);
- return b2.w(e2.date(e2.date() + Math.round(t2 * r2)), l3);
- };
- if ($2 === c2) return this.set(c2, this.$M + r2);
- if ($2 === h3) return this.set(h3, this.$y + r2);
- if ($2 === a2) return y2(1);
- if ($2 === o2) return y2(7);
- var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n, d3[i] = t, d3)[$2] || 1, m4 = this.$d.getTime() + r2 * M4;
- return b2.w(m4, this);
- }, m3.subtract = function(t2, e2) {
- return this.add(-1 * t2, e2);
- }, m3.format = function(t2) {
- var e2 = this, n2 = this.$locale();
- if (!this.isValid()) return n2.invalidDate || l2;
- 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) {
- return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s4);
- }, d3 = function(t3) {
- return b2.s(s3 % 12 || 12, t3, "0");
- }, $2 = f3 || function(t3, e3, n3) {
- var r3 = t3 < 12 ? "AM" : "PM";
- return n3 ? r3.toLowerCase() : r3;
- };
- return r2.replace(y, (function(t3, r3) {
- return r3 || (function(t4) {
- switch (t4) {
- case "YY":
- return String(e2.$y).slice(-2);
- case "YYYY":
- return b2.s(e2.$y, 4, "0");
- case "M":
- return a3 + 1;
- case "MM":
- return b2.s(a3 + 1, 2, "0");
- case "MMM":
- return h4(n2.monthsShort, a3, c3, 3);
- case "MMMM":
- return h4(c3, a3);
- case "D":
- return e2.$D;
- case "DD":
- return b2.s(e2.$D, 2, "0");
- case "d":
- return String(e2.$W);
- case "dd":
- return h4(n2.weekdaysMin, e2.$W, o3, 2);
- case "ddd":
- return h4(n2.weekdaysShort, e2.$W, o3, 3);
- case "dddd":
- return o3[e2.$W];
- case "H":
- return String(s3);
- case "HH":
- return b2.s(s3, 2, "0");
- case "h":
- return d3(1);
- case "hh":
- return d3(2);
- case "a":
- return $2(s3, u3, true);
- case "A":
- return $2(s3, u3, false);
- case "m":
- return String(u3);
- case "mm":
- return b2.s(u3, 2, "0");
- case "s":
- return String(e2.$s);
- case "ss":
- return b2.s(e2.$s, 2, "0");
- case "SSS":
- return b2.s(e2.$ms, 3, "0");
- case "Z":
- return i2;
- }
- return null;
- })(t3) || i2.replace(":", "");
- }));
- }, m3.utcOffset = function() {
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
- }, m3.diff = function(r2, d3, l3) {
- var $2, y2 = this, M4 = b2.p(d3), m4 = O2(r2), v3 = (m4.utcOffset() - this.utcOffset()) * e, g2 = this - m4, D3 = function() {
- return b2.m(y2, m4);
- };
- switch (M4) {
- case h3:
- $2 = D3() / 12;
- break;
- case c2:
- $2 = D3();
- break;
- case f2:
- $2 = D3() / 3;
- break;
- case o2:
- $2 = (g2 - v3) / 6048e5;
- break;
- case a2:
- $2 = (g2 - v3) / 864e5;
- break;
- case u2:
- $2 = g2 / n;
- break;
- case s2:
- $2 = g2 / e;
- break;
- case i:
- $2 = g2 / t;
- break;
- default:
- $2 = g2;
- }
- return l3 ? $2 : b2.a($2);
- }, m3.daysInMonth = function() {
- return this.endOf(c2).$D;
- }, m3.$locale = function() {
- return D2[this.$L];
- }, m3.locale = function(t2, e2) {
- if (!t2) return this.$L;
- var n2 = this.clone(), r2 = w2(t2, e2, true);
- return r2 && (n2.$L = r2), n2;
- }, m3.clone = function() {
- return b2.w(this.$d, this);
- }, m3.toDate = function() {
- return new Date(this.valueOf());
- }, m3.toJSON = function() {
- return this.isValid() ? this.toISOString() : null;
- }, m3.toISOString = function() {
- return this.$d.toISOString();
- }, m3.toString = function() {
- return this.$d.toUTCString();
- }, M3;
- })(), k = _2.prototype;
- return O2.prototype = k, [["$ms", r], ["$s", i], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h3], ["$D", d2]].forEach((function(t2) {
- k[t2[1]] = function(e2) {
- return this.$g(e2, t2[0], t2[1]);
- };
- })), O2.extend = function(t2, e2) {
- return t2.$i || (t2(e2, _2, O2), t2.$i = true), O2;
- }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t2) {
- return O2(1e3 * t2);
- }, O2.en = D2[g], O2.Ls = D2, O2.p = {}, O2;
- }));
- }
- });
- // node_modules/dayjs/plugin/localeData.js
- var require_localeData = __commonJS({
- "node_modules/dayjs/plugin/localeData.js"(exports2, module2) {
- !(function(n, e) {
- "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();
- })(exports2, (function() {
- "use strict";
- return function(n, e, t) {
- var r = e.prototype, o2 = function(n2) {
- return n2 && (n2.indexOf ? n2 : n2.s);
- }, u2 = function(n2, e2, t2, r2, u3) {
- var i2 = n2.name ? n2 : n2.$locale(), a3 = o2(i2[e2]), s3 = o2(i2[t2]), f2 = a3 || s3.map((function(n3) {
- return n3.slice(0, r2);
- }));
- if (!u3) return f2;
- var d2 = i2.weekStart;
- return f2.map((function(n3, e3) {
- return f2[(e3 + (d2 || 0)) % 7];
- }));
- }, i = function() {
- return t.Ls[t.locale()];
- }, a2 = function(n2, e2) {
- return n2.formats[e2] || (function(n3) {
- return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(n4, e3, t2) {
- return e3 || t2.slice(1);
- }));
- })(n2.formats[e2.toUpperCase()]);
- }, s2 = function() {
- var n2 = this;
- return { months: function(e2) {
- return e2 ? e2.format("MMMM") : u2(n2, "months");
- }, monthsShort: function(e2) {
- return e2 ? e2.format("MMM") : u2(n2, "monthsShort", "months", 3);
- }, firstDayOfWeek: function() {
- return n2.$locale().weekStart || 0;
- }, weekdays: function(e2) {
- return e2 ? e2.format("dddd") : u2(n2, "weekdays");
- }, weekdaysMin: function(e2) {
- return e2 ? e2.format("dd") : u2(n2, "weekdaysMin", "weekdays", 2);
- }, weekdaysShort: function(e2) {
- return e2 ? e2.format("ddd") : u2(n2, "weekdaysShort", "weekdays", 3);
- }, longDateFormat: function(e2) {
- return a2(n2.$locale(), e2);
- }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
- };
- r.localeData = function() {
- return s2.bind(this)();
- }, t.localeData = function() {
- var n2 = i();
- return { firstDayOfWeek: function() {
- return n2.weekStart || 0;
- }, weekdays: function() {
- return t.weekdays();
- }, weekdaysShort: function() {
- return t.weekdaysShort();
- }, weekdaysMin: function() {
- return t.weekdaysMin();
- }, months: function() {
- return t.months();
- }, monthsShort: function() {
- return t.monthsShort();
- }, longDateFormat: function(e2) {
- return a2(n2, e2);
- }, meridiem: n2.meridiem, ordinal: n2.ordinal };
- }, t.months = function() {
- return u2(i(), "months");
- }, t.monthsShort = function() {
- return u2(i(), "monthsShort", "months", 3);
- }, t.weekdays = function(n2) {
- return u2(i(), "weekdays", null, null, n2);
- }, t.weekdaysShort = function(n2) {
- return u2(i(), "weekdaysShort", "weekdays", 3, n2);
- }, t.weekdaysMin = function(n2) {
- return u2(i(), "weekdaysMin", "weekdays", 2, n2);
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/customParseFormat.js
- var require_customParseFormat = __commonJS({
- "node_modules/dayjs/plugin/customParseFormat.js"(exports2, module2) {
- !(function(e, t) {
- "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();
- })(exports2, (function() {
- "use strict";
- 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) {
- return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
- };
- var f2 = function(e2) {
- return function(t2) {
- this[e2] = +t2;
- };
- }, h3 = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
- (this.zone || (this.zone = {})).offset = (function(e3) {
- if (!e3) return 0;
- if ("Z" === e3) return 0;
- var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
- return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
- })(e2);
- }], u2 = function(e2) {
- var t2 = s2[e2];
- return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
- }, d2 = function(e2, t2) {
- var n2, r2 = s2.meridiem;
- if (r2) {
- for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
- n2 = i2 > 12;
- break;
- }
- } else n2 = e2 === (t2 ? "pm" : "PM");
- return n2;
- }, c2 = { A: [o2, function(e2) {
- this.afternoon = d2(e2, false);
- }], a: [o2, function(e2) {
- this.afternoon = d2(e2, true);
- }], Q: [n, function(e2) {
- this.month = 3 * (e2 - 1) + 1;
- }], S: [n, function(e2) {
- this.milliseconds = 100 * +e2;
- }], SS: [r, function(e2) {
- this.milliseconds = 10 * +e2;
- }], SSS: [/\d{3}/, function(e2) {
- this.milliseconds = +e2;
- }], 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) {
- var t2 = s2.ordinal, n2 = e2.match(/\d+/);
- if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
- }], w: [i, f2("week")], ww: [r, f2("week")], M: [i, f2("month")], MM: [r, f2("month")], MMM: [o2, function(e2) {
- var t2 = u2("months"), n2 = (u2("monthsShort") || t2.map((function(e3) {
- return e3.slice(0, 3);
- }))).indexOf(e2) + 1;
- if (n2 < 1) throw new Error();
- this.month = n2 % 12 || n2;
- }], MMMM: [o2, function(e2) {
- var t2 = u2("months").indexOf(e2) + 1;
- if (t2 < 1) throw new Error();
- this.month = t2 % 12 || t2;
- }], Y: [/[+-]?\d+/, f2("year")], YY: [r, function(e2) {
- this.year = a2(e2);
- }], YYYY: [/\d{4}/, f2("year")], Z: h3, ZZ: h3 };
- function l2(n2) {
- var r2, i2;
- r2 = n2, i2 = s2 && s2.formats;
- for (var o3 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t2, n3, r3) {
- var o4 = r3 && r3.toUpperCase();
- return n3 || i2[r3] || e[r3] || i2[o4].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e2, t3, n4) {
- return t3 || n4.slice(1);
- }));
- }))).match(t), a3 = o3.length, f3 = 0; f3 < a3; f3 += 1) {
- var h4 = o3[f3], u3 = c2[h4], d3 = u3 && u3[0], l3 = u3 && u3[1];
- o3[f3] = l3 ? { regex: d3, parser: l3 } : h4.replace(/^\[|\]$/g, "");
- }
- return function(e2) {
- for (var t2 = {}, n3 = 0, r3 = 0; n3 < a3; n3 += 1) {
- var i3 = o3[n3];
- if ("string" == typeof i3) r3 += i3.length;
- else {
- var s3 = i3.regex, f4 = i3.parser, h5 = e2.slice(r3), u4 = s3.exec(h5)[0];
- f4.call(t2, u4), e2 = e2.replace(u4, "");
- }
- }
- return (function(e3) {
- var t3 = e3.afternoon;
- if (void 0 !== t3) {
- var n4 = e3.hours;
- t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
- }
- })(t2), t2;
- };
- }
- return function(e2, t2, n2) {
- n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a2 = e2.parseTwoDigitYear);
- var r2 = t2.prototype, i2 = r2.parse;
- r2.parse = function(e3) {
- var t3 = e3.date, r3 = e3.utc, o3 = e3.args;
- this.$u = r3;
- var a3 = o3[1];
- if ("string" == typeof a3) {
- var f3 = true === o3[2], h4 = true === o3[3], u3 = f3 || h4, d3 = o3[2];
- h4 && (d3 = o3[2]), s2 = this.$locale(), !f3 && d3 && (s2 = n2.Ls[d3]), this.$d = (function(e4, t4, n3, r4) {
- try {
- if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
- 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;
- o4 && !s3 || (v2 = s3 > 0 ? s3 - 1 : M3.getMonth());
- var D2, w2 = f4 || 0, g = h5 || 0, y = u4 || 0, L = d4 || 0;
- 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);
- } catch (e5) {
- return /* @__PURE__ */ new Date("");
- }
- })(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 = {};
- } else if (a3 instanceof Array) for (var c3 = a3.length, m2 = 1; m2 <= c3; m2 += 1) {
- o3[1] = a3[m2 - 1];
- var M2 = n2.apply(this, o3);
- if (M2.isValid()) {
- this.$d = M2.$d, this.$L = M2.$L, this.init();
- break;
- }
- m2 === c3 && (this.$d = /* @__PURE__ */ new Date(""));
- }
- else i2.call(this, e3);
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/advancedFormat.js
- var require_advancedFormat = __commonJS({
- "node_modules/dayjs/plugin/advancedFormat.js"(exports2, module2) {
- !(function(e, t) {
- "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();
- })(exports2, (function() {
- "use strict";
- return function(e, t) {
- var r = t.prototype, n = r.format;
- r.format = function(e2) {
- var t2 = this, r2 = this.$locale();
- if (!this.isValid()) return n.bind(this)(e2);
- 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) {
- switch (e3) {
- case "Q":
- return Math.ceil((t2.$M + 1) / 3);
- case "Do":
- return r2.ordinal(t2.$D);
- case "gggg":
- return t2.weekYear();
- case "GGGG":
- return t2.isoWeekYear();
- case "wo":
- return r2.ordinal(t2.week(), "W");
- case "w":
- case "ww":
- return s2.s(t2.week(), "w" === e3 ? 1 : 2, "0");
- case "W":
- case "WW":
- return s2.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
- case "k":
- case "kk":
- return s2.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
- case "X":
- return Math.floor(t2.$d.getTime() / 1e3);
- case "x":
- return t2.$d.getTime();
- case "z":
- return "[" + t2.offsetName() + "]";
- case "zzz":
- return "[" + t2.offsetName("long") + "]";
- default:
- return e3;
- }
- }));
- return n.bind(this)(a2);
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/weekOfYear.js
- var require_weekOfYear = __commonJS({
- "node_modules/dayjs/plugin/weekOfYear.js"(exports2, module2) {
- !(function(e, t) {
- "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();
- })(exports2, (function() {
- "use strict";
- var e = "week", t = "year";
- return function(i, n, r) {
- var f2 = n.prototype;
- f2.week = function(i2) {
- if (void 0 === i2 && (i2 = null), null !== i2) return this.add(7 * (i2 - this.week()), "day");
- var n2 = this.$locale().yearStart || 1;
- if (11 === this.month() && this.date() > 25) {
- var f3 = r(this).startOf(t).add(1, t).date(n2), s2 = r(this).endOf(e);
- if (f3.isBefore(s2)) return 1;
- }
- var a2 = r(this).startOf(t).date(n2).startOf(e).subtract(1, "millisecond"), o2 = this.diff(a2, e, true);
- return o2 < 0 ? r(this).startOf("week").week() : Math.ceil(o2);
- }, f2.weeks = function(e2) {
- return void 0 === e2 && (e2 = null), this.week(e2);
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/weekYear.js
- var require_weekYear = __commonJS({
- "node_modules/dayjs/plugin/weekYear.js"(exports2, module2) {
- !(function(e, t) {
- "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();
- })(exports2, (function() {
- "use strict";
- return function(e, t) {
- t.prototype.weekYear = function() {
- var e2 = this.month(), t2 = this.week(), n = this.year();
- return 1 === t2 && 11 === e2 ? n + 1 : 0 === e2 && t2 >= 52 ? n - 1 : n;
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/dayOfYear.js
- var require_dayOfYear = __commonJS({
- "node_modules/dayjs/plugin/dayOfYear.js"(exports2, module2) {
- !(function(e, t) {
- "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();
- })(exports2, (function() {
- "use strict";
- return function(e, t, n) {
- t.prototype.dayOfYear = function(e2) {
- var t2 = Math.round((n(this).startOf("day") - n(this).startOf("year")) / 864e5) + 1;
- return null == e2 ? t2 : this.add(e2 - t2, "day");
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/isSameOrAfter.js
- var require_isSameOrAfter = __commonJS({
- "node_modules/dayjs/plugin/isSameOrAfter.js"(exports2, module2) {
- !(function(e, t) {
- "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();
- })(exports2, (function() {
- "use strict";
- return function(e, t) {
- t.prototype.isSameOrAfter = function(e2, t2) {
- return this.isSame(e2, t2) || this.isAfter(e2, t2);
- };
- };
- }));
- }
- });
- // node_modules/dayjs/plugin/isSameOrBefore.js
- var require_isSameOrBefore = __commonJS({
- "node_modules/dayjs/plugin/isSameOrBefore.js"(exports2, module2) {
- !(function(e, i) {
- "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();
- })(exports2, (function() {
- "use strict";
- return function(e, i) {
- i.prototype.isSameOrBefore = function(e2, i2) {
- return this.isSame(e2, i2) || this.isBefore(e2, i2);
- };
- };
- }));
- }
- });
- // node_modules/element-plus/es/version.mjs
- var version = "2.11.1";
- // node_modules/element-plus/es/constants/key.mjs
- var INSTALLED_KEY = Symbol("INSTALLED_KEY");
- // node_modules/element-plus/es/components/config-provider/src/constants.mjs
- var configProviderContextKey = Symbol();
- // node_modules/element-plus/es/hooks/use-namespace/index.mjs
- var defaultNamespace = "el";
- var statePrefix = "is-";
- var _bem = (namespace, block, blockSuffix, element, modifier) => {
- let cls = `${namespace}-${block}`;
- if (blockSuffix) {
- cls += `-${blockSuffix}`;
- }
- if (element) {
- cls += `__${element}`;
- }
- if (modifier) {
- cls += `--${modifier}`;
- }
- return cls;
- };
- var namespaceContextKey = Symbol("namespaceContextKey");
- var useGetDerivedNamespace = (namespaceOverrides) => {
- const derivedNamespace = namespaceOverrides || (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
- const namespace = computed(() => {
- return unref(derivedNamespace) || defaultNamespace;
- });
- return namespace;
- };
- var useNamespace = (block, namespaceOverrides) => {
- const namespace = useGetDerivedNamespace(namespaceOverrides);
- const b2 = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
- const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
- const m2 = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
- const be2 = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : "";
- const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : "";
- const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : "";
- const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : "";
- const is = (name, ...args) => {
- const state = args.length >= 1 ? args[0] : true;
- return name && state ? `${statePrefix}${name}` : "";
- };
- const cssVar = (object4) => {
- const styles = {};
- for (const key in object4) {
- if (object4[key]) {
- styles[`--${namespace.value}-${key}`] = object4[key];
- }
- }
- return styles;
- };
- const cssVarBlock = (object4) => {
- const styles = {};
- for (const key in object4) {
- if (object4[key]) {
- styles[`--${namespace.value}-${block}-${key}`] = object4[key];
- }
- }
- return styles;
- };
- const cssVarName = (name) => `--${namespace.value}-${name}`;
- const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
- return {
- namespace,
- b: b2,
- e,
- m: m2,
- be: be2,
- em,
- bm,
- bem,
- is,
- cssVar,
- cssVarName,
- cssVarBlock,
- cssVarBlockName
- };
- };
- // node_modules/lodash-es/_freeGlobal.js
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
- var freeGlobal_default = freeGlobal;
- // node_modules/lodash-es/_root.js
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
- var root = freeGlobal_default || freeSelf || Function("return this")();
- var root_default = root;
- // node_modules/lodash-es/_Symbol.js
- var Symbol2 = root_default.Symbol;
- var Symbol_default = Symbol2;
- // node_modules/lodash-es/_getRawTag.js
- var objectProto = Object.prototype;
- var hasOwnProperty = objectProto.hasOwnProperty;
- var nativeObjectToString = objectProto.toString;
- var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
- function getRawTag(value) {
- var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
- try {
- value[symToStringTag] = void 0;
- var unmasked = true;
- } catch (e) {
- }
- var result2 = nativeObjectToString.call(value);
- if (unmasked) {
- if (isOwn) {
- value[symToStringTag] = tag;
- } else {
- delete value[symToStringTag];
- }
- }
- return result2;
- }
- var getRawTag_default = getRawTag;
- // node_modules/lodash-es/_objectToString.js
- var objectProto2 = Object.prototype;
- var nativeObjectToString2 = objectProto2.toString;
- function objectToString(value) {
- return nativeObjectToString2.call(value);
- }
- var objectToString_default = objectToString;
- // node_modules/lodash-es/_baseGetTag.js
- var nullTag = "[object Null]";
- var undefinedTag = "[object Undefined]";
- var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
- function baseGetTag(value) {
- if (value == null) {
- return value === void 0 ? undefinedTag : nullTag;
- }
- return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
- }
- var baseGetTag_default = baseGetTag;
- // node_modules/lodash-es/isObjectLike.js
- function isObjectLike(value) {
- return value != null && typeof value == "object";
- }
- var isObjectLike_default = isObjectLike;
- // node_modules/lodash-es/isSymbol.js
- var symbolTag = "[object Symbol]";
- function isSymbol(value) {
- return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
- }
- var isSymbol_default = isSymbol;
- // node_modules/lodash-es/_baseToNumber.js
- var NAN = 0 / 0;
- function baseToNumber(value) {
- if (typeof value == "number") {
- return value;
- }
- if (isSymbol_default(value)) {
- return NAN;
- }
- return +value;
- }
- var baseToNumber_default = baseToNumber;
- // node_modules/lodash-es/_arrayMap.js
- function arrayMap(array4, iteratee2) {
- var index = -1, length = array4 == null ? 0 : array4.length, result2 = Array(length);
- while (++index < length) {
- result2[index] = iteratee2(array4[index], index, array4);
- }
- return result2;
- }
- var arrayMap_default = arrayMap;
- // node_modules/lodash-es/isArray.js
- var isArray2 = Array.isArray;
- var isArray_default = isArray2;
- // node_modules/lodash-es/_baseToString.js
- var INFINITY = 1 / 0;
- var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
- var symbolToString = symbolProto ? symbolProto.toString : void 0;
- function baseToString(value) {
- if (typeof value == "string") {
- return value;
- }
- if (isArray_default(value)) {
- return arrayMap_default(value, baseToString) + "";
- }
- if (isSymbol_default(value)) {
- return symbolToString ? symbolToString.call(value) : "";
- }
- var result2 = value + "";
- return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
- }
- var baseToString_default = baseToString;
- // node_modules/lodash-es/_createMathOperation.js
- function createMathOperation(operator, defaultValue) {
- return function(value, other) {
- var result2;
- if (value === void 0 && other === void 0) {
- return defaultValue;
- }
- if (value !== void 0) {
- result2 = value;
- }
- if (other !== void 0) {
- if (result2 === void 0) {
- return other;
- }
- if (typeof value == "string" || typeof other == "string") {
- value = baseToString_default(value);
- other = baseToString_default(other);
- } else {
- value = baseToNumber_default(value);
- other = baseToNumber_default(other);
- }
- result2 = operator(value, other);
- }
- return result2;
- };
- }
- var createMathOperation_default = createMathOperation;
- // node_modules/lodash-es/add.js
- var add = createMathOperation_default(function(augend, addend) {
- return augend + addend;
- }, 0);
- var add_default = add;
- // node_modules/lodash-es/_trimmedEndIndex.js
- var reWhitespace = /\s/;
- function trimmedEndIndex(string3) {
- var index = string3.length;
- while (index-- && reWhitespace.test(string3.charAt(index))) {
- }
- return index;
- }
- var trimmedEndIndex_default = trimmedEndIndex;
- // node_modules/lodash-es/_baseTrim.js
- var reTrimStart = /^\s+/;
- function baseTrim(string3) {
- return string3 ? string3.slice(0, trimmedEndIndex_default(string3) + 1).replace(reTrimStart, "") : string3;
- }
- var baseTrim_default = baseTrim;
- // node_modules/lodash-es/isObject.js
- function isObject2(value) {
- var type4 = typeof value;
- return value != null && (type4 == "object" || type4 == "function");
- }
- var isObject_default = isObject2;
- // node_modules/lodash-es/toNumber.js
- var NAN2 = 0 / 0;
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
- var reIsBinary = /^0b[01]+$/i;
- var reIsOctal = /^0o[0-7]+$/i;
- var freeParseInt = parseInt;
- function toNumber(value) {
- if (typeof value == "number") {
- return value;
- }
- if (isSymbol_default(value)) {
- return NAN2;
- }
- if (isObject_default(value)) {
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
- value = isObject_default(other) ? other + "" : other;
- }
- if (typeof value != "string") {
- return value === 0 ? value : +value;
- }
- value = baseTrim_default(value);
- var isBinary = reIsBinary.test(value);
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN2 : +value;
- }
- var toNumber_default = toNumber;
- // node_modules/lodash-es/toFinite.js
- var INFINITY2 = 1 / 0;
- var MAX_INTEGER = 17976931348623157e292;
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber_default(value);
- if (value === INFINITY2 || value === -INFINITY2) {
- var sign = value < 0 ? -1 : 1;
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
- var toFinite_default = toFinite;
- // node_modules/lodash-es/toInteger.js
- function toInteger(value) {
- var result2 = toFinite_default(value), remainder = result2 % 1;
- return result2 === result2 ? remainder ? result2 - remainder : result2 : 0;
- }
- var toInteger_default = toInteger;
- // node_modules/lodash-es/after.js
- var FUNC_ERROR_TEXT = "Expected a function";
- function after(n, func) {
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger_default(n);
- return function() {
- if (--n < 1) {
- return func.apply(this, arguments);
- }
- };
- }
- var after_default = after;
- // node_modules/lodash-es/identity.js
- function identity(value) {
- return value;
- }
- var identity_default = identity;
- // node_modules/lodash-es/isFunction.js
- var asyncTag = "[object AsyncFunction]";
- var funcTag = "[object Function]";
- var genTag = "[object GeneratorFunction]";
- var proxyTag = "[object Proxy]";
- function isFunction2(value) {
- if (!isObject_default(value)) {
- return false;
- }
- var tag = baseGetTag_default(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
- }
- var isFunction_default = isFunction2;
- // node_modules/lodash-es/_coreJsData.js
- var coreJsData = root_default["__core-js_shared__"];
- var coreJsData_default = coreJsData;
- // node_modules/lodash-es/_isMasked.js
- var maskSrcKey = (function() {
- var uid2 = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
- return uid2 ? "Symbol(src)_1." + uid2 : "";
- })();
- function isMasked(func) {
- return !!maskSrcKey && maskSrcKey in func;
- }
- var isMasked_default = isMasked;
- // node_modules/lodash-es/_toSource.js
- var funcProto = Function.prototype;
- var funcToString = funcProto.toString;
- function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {
- }
- try {
- return func + "";
- } catch (e) {
- }
- }
- return "";
- }
- var toSource_default = toSource;
- // node_modules/lodash-es/_baseIsNative.js
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
- var funcProto2 = Function.prototype;
- var objectProto3 = Object.prototype;
- var funcToString2 = funcProto2.toString;
- var hasOwnProperty2 = objectProto3.hasOwnProperty;
- var reIsNative = RegExp(
- "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
- );
- function baseIsNative(value) {
- if (!isObject_default(value) || isMasked_default(value)) {
- return false;
- }
- var pattern4 = isFunction_default(value) ? reIsNative : reIsHostCtor;
- return pattern4.test(toSource_default(value));
- }
- var baseIsNative_default = baseIsNative;
- // node_modules/lodash-es/_getValue.js
- function getValue(object4, key) {
- return object4 == null ? void 0 : object4[key];
- }
- var getValue_default = getValue;
- // node_modules/lodash-es/_getNative.js
- function getNative(object4, key) {
- var value = getValue_default(object4, key);
- return baseIsNative_default(value) ? value : void 0;
- }
- var getNative_default = getNative;
- // node_modules/lodash-es/_WeakMap.js
- var WeakMap2 = getNative_default(root_default, "WeakMap");
- var WeakMap_default = WeakMap2;
- // node_modules/lodash-es/_metaMap.js
- var metaMap = WeakMap_default && new WeakMap_default();
- var metaMap_default = metaMap;
- // node_modules/lodash-es/_baseSetData.js
- var baseSetData = !metaMap_default ? identity_default : function(func, data) {
- metaMap_default.set(func, data);
- return func;
- };
- var baseSetData_default = baseSetData;
- // node_modules/lodash-es/_baseCreate.js
- var objectCreate = Object.create;
- var baseCreate = /* @__PURE__ */ (function() {
- function object4() {
- }
- return function(proto) {
- if (!isObject_default(proto)) {
- return {};
- }
- if (objectCreate) {
- return objectCreate(proto);
- }
- object4.prototype = proto;
- var result2 = new object4();
- object4.prototype = void 0;
- return result2;
- };
- })();
- var baseCreate_default = baseCreate;
- // node_modules/lodash-es/_createCtor.js
- function createCtor(Ctor) {
- return function() {
- var args = arguments;
- switch (args.length) {
- case 0:
- return new Ctor();
- case 1:
- return new Ctor(args[0]);
- case 2:
- return new Ctor(args[0], args[1]);
- case 3:
- return new Ctor(args[0], args[1], args[2]);
- case 4:
- return new Ctor(args[0], args[1], args[2], args[3]);
- case 5:
- return new Ctor(args[0], args[1], args[2], args[3], args[4]);
- case 6:
- return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
- case 7:
- return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
- }
- var thisBinding = baseCreate_default(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
- return isObject_default(result2) ? result2 : thisBinding;
- };
- }
- var createCtor_default = createCtor;
- // node_modules/lodash-es/_createBind.js
- var WRAP_BIND_FLAG = 1;
- function createBind(func, bitmask, thisArg) {
- var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor_default(func);
- function wrapper() {
- var fn2 = this && this !== root_default && this instanceof wrapper ? Ctor : func;
- return fn2.apply(isBind ? thisArg : this, arguments);
- }
- return wrapper;
- }
- var createBind_default = createBind;
- // node_modules/lodash-es/_apply.js
- function apply(func, thisArg, args) {
- switch (args.length) {
- case 0:
- return func.call(thisArg);
- case 1:
- return func.call(thisArg, args[0]);
- case 2:
- return func.call(thisArg, args[0], args[1]);
- case 3:
- return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
- }
- var apply_default = apply;
- // node_modules/lodash-es/_composeArgs.js
- var nativeMax = Math.max;
- function composeArgs(args, partials, holders, isCurried) {
- 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;
- while (++leftIndex < leftLength) {
- result2[leftIndex] = partials[leftIndex];
- }
- while (++argsIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result2[holders[argsIndex]] = args[argsIndex];
- }
- }
- while (rangeLength--) {
- result2[leftIndex++] = args[argsIndex++];
- }
- return result2;
- }
- var composeArgs_default = composeArgs;
- // node_modules/lodash-es/_composeArgsRight.js
- var nativeMax2 = Math.max;
- function composeArgsRight(args, partials, holders, isCurried) {
- 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;
- while (++argsIndex < rangeLength) {
- result2[argsIndex] = args[argsIndex];
- }
- var offset3 = argsIndex;
- while (++rightIndex < rightLength) {
- result2[offset3 + rightIndex] = partials[rightIndex];
- }
- while (++holdersIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result2[offset3 + holders[holdersIndex]] = args[argsIndex++];
- }
- }
- return result2;
- }
- var composeArgsRight_default = composeArgsRight;
- // node_modules/lodash-es/_countHolders.js
- function countHolders(array4, placeholder) {
- var length = array4.length, result2 = 0;
- while (length--) {
- if (array4[length] === placeholder) {
- ++result2;
- }
- }
- return result2;
- }
- var countHolders_default = countHolders;
- // node_modules/lodash-es/_baseLodash.js
- function baseLodash() {
- }
- var baseLodash_default = baseLodash;
- // node_modules/lodash-es/_LazyWrapper.js
- var MAX_ARRAY_LENGTH = 4294967295;
- function LazyWrapper(value) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__dir__ = 1;
- this.__filtered__ = false;
- this.__iteratees__ = [];
- this.__takeCount__ = MAX_ARRAY_LENGTH;
- this.__views__ = [];
- }
- LazyWrapper.prototype = baseCreate_default(baseLodash_default.prototype);
- LazyWrapper.prototype.constructor = LazyWrapper;
- var LazyWrapper_default = LazyWrapper;
- // node_modules/lodash-es/noop.js
- function noop() {
- }
- var noop_default = noop;
- // node_modules/lodash-es/_getData.js
- var getData = !metaMap_default ? noop_default : function(func) {
- return metaMap_default.get(func);
- };
- var getData_default = getData;
- // node_modules/lodash-es/_realNames.js
- var realNames = {};
- var realNames_default = realNames;
- // node_modules/lodash-es/_getFuncName.js
- var objectProto4 = Object.prototype;
- var hasOwnProperty3 = objectProto4.hasOwnProperty;
- function getFuncName(func) {
- var result2 = func.name + "", array4 = realNames_default[result2], length = hasOwnProperty3.call(realNames_default, result2) ? array4.length : 0;
- while (length--) {
- var data = array4[length], otherFunc = data.func;
- if (otherFunc == null || otherFunc == func) {
- return data.name;
- }
- }
- return result2;
- }
- var getFuncName_default = getFuncName;
- // node_modules/lodash-es/_LodashWrapper.js
- function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- this.__index__ = 0;
- this.__values__ = void 0;
- }
- LodashWrapper.prototype = baseCreate_default(baseLodash_default.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
- var LodashWrapper_default = LodashWrapper;
- // node_modules/lodash-es/_copyArray.js
- function copyArray(source, array4) {
- var index = -1, length = source.length;
- array4 || (array4 = Array(length));
- while (++index < length) {
- array4[index] = source[index];
- }
- return array4;
- }
- var copyArray_default = copyArray;
- // node_modules/lodash-es/_wrapperClone.js
- function wrapperClone(wrapper) {
- if (wrapper instanceof LazyWrapper_default) {
- return wrapper.clone();
- }
- var result2 = new LodashWrapper_default(wrapper.__wrapped__, wrapper.__chain__);
- result2.__actions__ = copyArray_default(wrapper.__actions__);
- result2.__index__ = wrapper.__index__;
- result2.__values__ = wrapper.__values__;
- return result2;
- }
- var wrapperClone_default = wrapperClone;
- // node_modules/lodash-es/wrapperLodash.js
- var objectProto5 = Object.prototype;
- var hasOwnProperty4 = objectProto5.hasOwnProperty;
- function lodash(value) {
- if (isObjectLike_default(value) && !isArray_default(value) && !(value instanceof LazyWrapper_default)) {
- if (value instanceof LodashWrapper_default) {
- return value;
- }
- if (hasOwnProperty4.call(value, "__wrapped__")) {
- return wrapperClone_default(value);
- }
- }
- return new LodashWrapper_default(value);
- }
- lodash.prototype = baseLodash_default.prototype;
- lodash.prototype.constructor = lodash;
- var wrapperLodash_default = lodash;
- // node_modules/lodash-es/_isLaziable.js
- function isLaziable(func) {
- var funcName = getFuncName_default(func), other = wrapperLodash_default[funcName];
- if (typeof other != "function" || !(funcName in LazyWrapper_default.prototype)) {
- return false;
- }
- if (func === other) {
- return true;
- }
- var data = getData_default(other);
- return !!data && func === data[0];
- }
- var isLaziable_default = isLaziable;
- // node_modules/lodash-es/_shortOut.js
- var HOT_COUNT = 800;
- var HOT_SPAN = 16;
- var nativeNow = Date.now;
- function shortOut(func) {
- var count = 0, lastCalled = 0;
- return function() {
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return arguments[0];
- }
- } else {
- count = 0;
- }
- return func.apply(void 0, arguments);
- };
- }
- var shortOut_default = shortOut;
- // node_modules/lodash-es/_setData.js
- var setData = shortOut_default(baseSetData_default);
- var setData_default = setData;
- // node_modules/lodash-es/_getWrapDetails.js
- var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/;
- var reSplitDetails = /,? & /;
- function getWrapDetails(source) {
- var match = source.match(reWrapDetails);
- return match ? match[1].split(reSplitDetails) : [];
- }
- var getWrapDetails_default = getWrapDetails;
- // node_modules/lodash-es/_insertWrapDetails.js
- var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;
- function insertWrapDetails(source, details) {
- var length = details.length;
- if (!length) {
- return source;
- }
- var lastIndex = length - 1;
- details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex];
- details = details.join(length > 2 ? ", " : " ");
- return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
- }
- var insertWrapDetails_default = insertWrapDetails;
- // node_modules/lodash-es/constant.js
- function constant(value) {
- return function() {
- return value;
- };
- }
- var constant_default = constant;
- // node_modules/lodash-es/_defineProperty.js
- var defineProperty = (function() {
- try {
- var func = getNative_default(Object, "defineProperty");
- func({}, "", {});
- return func;
- } catch (e) {
- }
- })();
- var defineProperty_default = defineProperty;
- // node_modules/lodash-es/_baseSetToString.js
- var baseSetToString = !defineProperty_default ? identity_default : function(func, string3) {
- return defineProperty_default(func, "toString", {
- "configurable": true,
- "enumerable": false,
- "value": constant_default(string3),
- "writable": true
- });
- };
- var baseSetToString_default = baseSetToString;
- // node_modules/lodash-es/_setToString.js
- var setToString = shortOut_default(baseSetToString_default);
- var setToString_default = setToString;
- // node_modules/lodash-es/_arrayEach.js
- function arrayEach(array4, iteratee2) {
- var index = -1, length = array4 == null ? 0 : array4.length;
- while (++index < length) {
- if (iteratee2(array4[index], index, array4) === false) {
- break;
- }
- }
- return array4;
- }
- var arrayEach_default = arrayEach;
- // node_modules/lodash-es/_baseFindIndex.js
- function baseFindIndex(array4, predicate, fromIndex, fromRight) {
- var length = array4.length, index = fromIndex + (fromRight ? 1 : -1);
- while (fromRight ? index-- : ++index < length) {
- if (predicate(array4[index], index, array4)) {
- return index;
- }
- }
- return -1;
- }
- var baseFindIndex_default = baseFindIndex;
- // node_modules/lodash-es/_baseIsNaN.js
- function baseIsNaN(value) {
- return value !== value;
- }
- var baseIsNaN_default = baseIsNaN;
- // node_modules/lodash-es/_strictIndexOf.js
- function strictIndexOf(array4, value, fromIndex) {
- var index = fromIndex - 1, length = array4.length;
- while (++index < length) {
- if (array4[index] === value) {
- return index;
- }
- }
- return -1;
- }
- var strictIndexOf_default = strictIndexOf;
- // node_modules/lodash-es/_baseIndexOf.js
- function baseIndexOf(array4, value, fromIndex) {
- return value === value ? strictIndexOf_default(array4, value, fromIndex) : baseFindIndex_default(array4, baseIsNaN_default, fromIndex);
- }
- var baseIndexOf_default = baseIndexOf;
- // node_modules/lodash-es/_arrayIncludes.js
- function arrayIncludes(array4, value) {
- var length = array4 == null ? 0 : array4.length;
- return !!length && baseIndexOf_default(array4, value, 0) > -1;
- }
- var arrayIncludes_default = arrayIncludes;
- // node_modules/lodash-es/_updateWrapDetails.js
- var WRAP_BIND_FLAG2 = 1;
- var WRAP_BIND_KEY_FLAG = 2;
- var WRAP_CURRY_FLAG = 8;
- var WRAP_CURRY_RIGHT_FLAG = 16;
- var WRAP_PARTIAL_FLAG = 32;
- var WRAP_PARTIAL_RIGHT_FLAG = 64;
- var WRAP_ARY_FLAG = 128;
- var WRAP_REARG_FLAG = 256;
- var WRAP_FLIP_FLAG = 512;
- var wrapFlags = [
- ["ary", WRAP_ARY_FLAG],
- ["bind", WRAP_BIND_FLAG2],
- ["bindKey", WRAP_BIND_KEY_FLAG],
- ["curry", WRAP_CURRY_FLAG],
- ["curryRight", WRAP_CURRY_RIGHT_FLAG],
- ["flip", WRAP_FLIP_FLAG],
- ["partial", WRAP_PARTIAL_FLAG],
- ["partialRight", WRAP_PARTIAL_RIGHT_FLAG],
- ["rearg", WRAP_REARG_FLAG]
- ];
- function updateWrapDetails(details, bitmask) {
- arrayEach_default(wrapFlags, function(pair) {
- var value = "_." + pair[0];
- if (bitmask & pair[1] && !arrayIncludes_default(details, value)) {
- details.push(value);
- }
- });
- return details.sort();
- }
- var updateWrapDetails_default = updateWrapDetails;
- // node_modules/lodash-es/_setWrapToString.js
- function setWrapToString(wrapper, reference, bitmask) {
- var source = reference + "";
- return setToString_default(wrapper, insertWrapDetails_default(source, updateWrapDetails_default(getWrapDetails_default(source), bitmask)));
- }
- var setWrapToString_default = setWrapToString;
- // node_modules/lodash-es/_createRecurry.js
- var WRAP_BIND_FLAG3 = 1;
- var WRAP_BIND_KEY_FLAG2 = 2;
- var WRAP_CURRY_BOUND_FLAG = 4;
- var WRAP_CURRY_FLAG2 = 8;
- var WRAP_PARTIAL_FLAG2 = 32;
- var WRAP_PARTIAL_RIGHT_FLAG2 = 64;
- function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
- 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;
- bitmask |= isCurry ? WRAP_PARTIAL_FLAG2 : WRAP_PARTIAL_RIGHT_FLAG2;
- bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG2 : WRAP_PARTIAL_FLAG2);
- if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
- bitmask &= ~(WRAP_BIND_FLAG3 | WRAP_BIND_KEY_FLAG2);
- }
- var newData = [
- func,
- bitmask,
- thisArg,
- newPartials,
- newHolders,
- newPartialsRight,
- newHoldersRight,
- argPos,
- ary2,
- arity
- ];
- var result2 = wrapFunc.apply(void 0, newData);
- if (isLaziable_default(func)) {
- setData_default(result2, newData);
- }
- result2.placeholder = placeholder;
- return setWrapToString_default(result2, func, bitmask);
- }
- var createRecurry_default = createRecurry;
- // node_modules/lodash-es/_getHolder.js
- function getHolder(func) {
- var object4 = func;
- return object4.placeholder;
- }
- var getHolder_default = getHolder;
- // node_modules/lodash-es/_isIndex.js
- var MAX_SAFE_INTEGER = 9007199254740991;
- var reIsUint = /^(?:0|[1-9]\d*)$/;
- function isIndex(value, length) {
- var type4 = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
- return !!length && (type4 == "number" || type4 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
- }
- var isIndex_default = isIndex;
- // node_modules/lodash-es/_reorder.js
- var nativeMin = Math.min;
- function reorder(array4, indexes) {
- var arrLength = array4.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray_default(array4);
- while (length--) {
- var index = indexes[length];
- array4[length] = isIndex_default(index, arrLength) ? oldArray[index] : void 0;
- }
- return array4;
- }
- var reorder_default = reorder;
- // node_modules/lodash-es/_replaceHolders.js
- var PLACEHOLDER = "__lodash_placeholder__";
- function replaceHolders(array4, placeholder) {
- var index = -1, length = array4.length, resIndex = 0, result2 = [];
- while (++index < length) {
- var value = array4[index];
- if (value === placeholder || value === PLACEHOLDER) {
- array4[index] = PLACEHOLDER;
- result2[resIndex++] = index;
- }
- }
- return result2;
- }
- var replaceHolders_default = replaceHolders;
- // node_modules/lodash-es/_createHybrid.js
- var WRAP_BIND_FLAG4 = 1;
- var WRAP_BIND_KEY_FLAG3 = 2;
- var WRAP_CURRY_FLAG3 = 8;
- var WRAP_CURRY_RIGHT_FLAG2 = 16;
- var WRAP_ARY_FLAG2 = 128;
- var WRAP_FLIP_FLAG2 = 512;
- function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
- 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);
- function wrapper() {
- var length = arguments.length, args = Array(length), index = length;
- while (index--) {
- args[index] = arguments[index];
- }
- if (isCurried) {
- var placeholder = getHolder_default(wrapper), holdersCount = countHolders_default(args, placeholder);
- }
- if (partials) {
- args = composeArgs_default(args, partials, holders, isCurried);
- }
- if (partialsRight) {
- args = composeArgsRight_default(args, partialsRight, holdersRight, isCurried);
- }
- length -= holdersCount;
- if (isCurried && length < arity) {
- var newHolders = replaceHolders_default(args, placeholder);
- return createRecurry_default(
- func,
- bitmask,
- createHybrid,
- wrapper.placeholder,
- thisArg,
- args,
- newHolders,
- argPos,
- ary2,
- arity - length
- );
- }
- var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
- length = args.length;
- if (argPos) {
- args = reorder_default(args, argPos);
- } else if (isFlip && length > 1) {
- args.reverse();
- }
- if (isAry && ary2 < length) {
- args.length = ary2;
- }
- if (this && this !== root_default && this instanceof wrapper) {
- fn2 = Ctor || createCtor_default(fn2);
- }
- return fn2.apply(thisBinding, args);
- }
- return wrapper;
- }
- var createHybrid_default = createHybrid;
- // node_modules/lodash-es/_createCurry.js
- function createCurry(func, bitmask, arity) {
- var Ctor = createCtor_default(func);
- function wrapper() {
- var length = arguments.length, args = Array(length), index = length, placeholder = getHolder_default(wrapper);
- while (index--) {
- args[index] = arguments[index];
- }
- var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders_default(args, placeholder);
- length -= holders.length;
- if (length < arity) {
- return createRecurry_default(
- func,
- bitmask,
- createHybrid_default,
- wrapper.placeholder,
- void 0,
- args,
- holders,
- void 0,
- void 0,
- arity - length
- );
- }
- var fn2 = this && this !== root_default && this instanceof wrapper ? Ctor : func;
- return apply_default(fn2, this, args);
- }
- return wrapper;
- }
- var createCurry_default = createCurry;
- // node_modules/lodash-es/_createPartial.js
- var WRAP_BIND_FLAG5 = 1;
- function createPartial(func, bitmask, thisArg, partials) {
- var isBind = bitmask & WRAP_BIND_FLAG5, Ctor = createCtor_default(func);
- function wrapper() {
- 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;
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return apply_default(fn2, isBind ? thisArg : this, args);
- }
- return wrapper;
- }
- var createPartial_default = createPartial;
- // node_modules/lodash-es/_mergeData.js
- var PLACEHOLDER2 = "__lodash_placeholder__";
- var WRAP_BIND_FLAG6 = 1;
- var WRAP_BIND_KEY_FLAG4 = 2;
- var WRAP_CURRY_BOUND_FLAG2 = 4;
- var WRAP_CURRY_FLAG4 = 8;
- var WRAP_ARY_FLAG3 = 128;
- var WRAP_REARG_FLAG2 = 256;
- var nativeMin2 = Math.min;
- function mergeData(data, source) {
- var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG6 | WRAP_BIND_KEY_FLAG4 | WRAP_ARY_FLAG3);
- 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;
- if (!(isCommon || isCombo)) {
- return data;
- }
- if (srcBitmask & WRAP_BIND_FLAG6) {
- data[2] = source[2];
- newBitmask |= bitmask & WRAP_BIND_FLAG6 ? 0 : WRAP_CURRY_BOUND_FLAG2;
- }
- var value = source[3];
- if (value) {
- var partials = data[3];
- data[3] = partials ? composeArgs_default(partials, value, source[4]) : value;
- data[4] = partials ? replaceHolders_default(data[3], PLACEHOLDER2) : source[4];
- }
- value = source[5];
- if (value) {
- partials = data[5];
- data[5] = partials ? composeArgsRight_default(partials, value, source[6]) : value;
- data[6] = partials ? replaceHolders_default(data[5], PLACEHOLDER2) : source[6];
- }
- value = source[7];
- if (value) {
- data[7] = value;
- }
- if (srcBitmask & WRAP_ARY_FLAG3) {
- data[8] = data[8] == null ? source[8] : nativeMin2(data[8], source[8]);
- }
- if (data[9] == null) {
- data[9] = source[9];
- }
- data[0] = source[0];
- data[1] = newBitmask;
- return data;
- }
- var mergeData_default = mergeData;
- // node_modules/lodash-es/_createWrap.js
- var FUNC_ERROR_TEXT2 = "Expected a function";
- var WRAP_BIND_FLAG7 = 1;
- var WRAP_BIND_KEY_FLAG5 = 2;
- var WRAP_CURRY_FLAG5 = 8;
- var WRAP_CURRY_RIGHT_FLAG3 = 16;
- var WRAP_PARTIAL_FLAG3 = 32;
- var WRAP_PARTIAL_RIGHT_FLAG3 = 64;
- var nativeMax3 = Math.max;
- function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) {
- var isBindKey = bitmask & WRAP_BIND_KEY_FLAG5;
- if (!isBindKey && typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT2);
- }
- var length = partials ? partials.length : 0;
- if (!length) {
- bitmask &= ~(WRAP_PARTIAL_FLAG3 | WRAP_PARTIAL_RIGHT_FLAG3);
- partials = holders = void 0;
- }
- ary2 = ary2 === void 0 ? ary2 : nativeMax3(toInteger_default(ary2), 0);
- arity = arity === void 0 ? arity : toInteger_default(arity);
- length -= holders ? holders.length : 0;
- if (bitmask & WRAP_PARTIAL_RIGHT_FLAG3) {
- var partialsRight = partials, holdersRight = holders;
- partials = holders = void 0;
- }
- var data = isBindKey ? void 0 : getData_default(func);
- var newData = [
- func,
- bitmask,
- thisArg,
- partials,
- holders,
- partialsRight,
- holdersRight,
- argPos,
- ary2,
- arity
- ];
- if (data) {
- mergeData_default(newData, data);
- }
- func = newData[0];
- bitmask = newData[1];
- thisArg = newData[2];
- partials = newData[3];
- holders = newData[4];
- arity = newData[9] = newData[9] === void 0 ? isBindKey ? 0 : func.length : nativeMax3(newData[9] - length, 0);
- if (!arity && bitmask & (WRAP_CURRY_FLAG5 | WRAP_CURRY_RIGHT_FLAG3)) {
- bitmask &= ~(WRAP_CURRY_FLAG5 | WRAP_CURRY_RIGHT_FLAG3);
- }
- if (!bitmask || bitmask == WRAP_BIND_FLAG7) {
- var result2 = createBind_default(func, bitmask, thisArg);
- } else if (bitmask == WRAP_CURRY_FLAG5 || bitmask == WRAP_CURRY_RIGHT_FLAG3) {
- result2 = createCurry_default(func, bitmask, arity);
- } else if ((bitmask == WRAP_PARTIAL_FLAG3 || bitmask == (WRAP_BIND_FLAG7 | WRAP_PARTIAL_FLAG3)) && !holders.length) {
- result2 = createPartial_default(func, bitmask, thisArg, partials);
- } else {
- result2 = createHybrid_default.apply(void 0, newData);
- }
- var setter = data ? baseSetData_default : setData_default;
- return setWrapToString_default(setter(result2, newData), func, bitmask);
- }
- var createWrap_default = createWrap;
- // node_modules/lodash-es/ary.js
- var WRAP_ARY_FLAG4 = 128;
- function ary(func, n, guard) {
- n = guard ? void 0 : n;
- n = func && n == null ? func.length : n;
- return createWrap_default(func, WRAP_ARY_FLAG4, void 0, void 0, void 0, void 0, n);
- }
- var ary_default = ary;
- // node_modules/lodash-es/_baseAssignValue.js
- function baseAssignValue(object4, key, value) {
- if (key == "__proto__" && defineProperty_default) {
- defineProperty_default(object4, key, {
- "configurable": true,
- "enumerable": true,
- "value": value,
- "writable": true
- });
- } else {
- object4[key] = value;
- }
- }
- var baseAssignValue_default = baseAssignValue;
- // node_modules/lodash-es/eq.js
- function eq(value, other) {
- return value === other || value !== value && other !== other;
- }
- var eq_default = eq;
- // node_modules/lodash-es/_assignValue.js
- var objectProto6 = Object.prototype;
- var hasOwnProperty5 = objectProto6.hasOwnProperty;
- function assignValue(object4, key, value) {
- var objValue = object4[key];
- if (!(hasOwnProperty5.call(object4, key) && eq_default(objValue, value)) || value === void 0 && !(key in object4)) {
- baseAssignValue_default(object4, key, value);
- }
- }
- var assignValue_default = assignValue;
- // node_modules/lodash-es/_copyObject.js
- function copyObject(source, props2, object4, customizer) {
- var isNew = !object4;
- object4 || (object4 = {});
- var index = -1, length = props2.length;
- while (++index < length) {
- var key = props2[index];
- var newValue = customizer ? customizer(object4[key], source[key], key, object4, source) : void 0;
- if (newValue === void 0) {
- newValue = source[key];
- }
- if (isNew) {
- baseAssignValue_default(object4, key, newValue);
- } else {
- assignValue_default(object4, key, newValue);
- }
- }
- return object4;
- }
- var copyObject_default = copyObject;
- // node_modules/lodash-es/_overRest.js
- var nativeMax4 = Math.max;
- function overRest(func, start, transform2) {
- start = nativeMax4(start === void 0 ? func.length - 1 : start, 0);
- return function() {
- var args = arguments, index = -1, length = nativeMax4(args.length - start, 0), array4 = Array(length);
- while (++index < length) {
- array4[index] = args[start + index];
- }
- index = -1;
- var otherArgs = Array(start + 1);
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = transform2(array4);
- return apply_default(func, this, otherArgs);
- };
- }
- var overRest_default = overRest;
- // node_modules/lodash-es/_baseRest.js
- function baseRest(func, start) {
- return setToString_default(overRest_default(func, start, identity_default), func + "");
- }
- var baseRest_default = baseRest;
- // node_modules/lodash-es/isLength.js
- var MAX_SAFE_INTEGER2 = 9007199254740991;
- function isLength(value) {
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
- }
- var isLength_default = isLength;
- // node_modules/lodash-es/isArrayLike.js
- function isArrayLike(value) {
- return value != null && isLength_default(value.length) && !isFunction_default(value);
- }
- var isArrayLike_default = isArrayLike;
- // node_modules/lodash-es/_isIterateeCall.js
- function isIterateeCall(value, index, object4) {
- if (!isObject_default(object4)) {
- return false;
- }
- var type4 = typeof index;
- if (type4 == "number" ? isArrayLike_default(object4) && isIndex_default(index, object4.length) : type4 == "string" && index in object4) {
- return eq_default(object4[index], value);
- }
- return false;
- }
- var isIterateeCall_default = isIterateeCall;
- // node_modules/lodash-es/_createAssigner.js
- function createAssigner(assigner) {
- return baseRest_default(function(object4, sources) {
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
- if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
- customizer = length < 3 ? void 0 : customizer;
- length = 1;
- }
- object4 = Object(object4);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object4, source, index, customizer);
- }
- }
- return object4;
- });
- }
- var createAssigner_default = createAssigner;
- // node_modules/lodash-es/_isPrototype.js
- var objectProto7 = Object.prototype;
- function isPrototype(value) {
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto7;
- return value === proto;
- }
- var isPrototype_default = isPrototype;
- // node_modules/lodash-es/_baseTimes.js
- function baseTimes(n, iteratee2) {
- var index = -1, result2 = Array(n);
- while (++index < n) {
- result2[index] = iteratee2(index);
- }
- return result2;
- }
- var baseTimes_default = baseTimes;
- // node_modules/lodash-es/_baseIsArguments.js
- var argsTag = "[object Arguments]";
- function baseIsArguments(value) {
- return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
- }
- var baseIsArguments_default = baseIsArguments;
- // node_modules/lodash-es/isArguments.js
- var objectProto8 = Object.prototype;
- var hasOwnProperty6 = objectProto8.hasOwnProperty;
- var propertyIsEnumerable = objectProto8.propertyIsEnumerable;
- var isArguments = baseIsArguments_default(/* @__PURE__ */ (function() {
- return arguments;
- })()) ? baseIsArguments_default : function(value) {
- return isObjectLike_default(value) && hasOwnProperty6.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
- };
- var isArguments_default = isArguments;
- // node_modules/lodash-es/stubFalse.js
- function stubFalse() {
- return false;
- }
- var stubFalse_default = stubFalse;
- // node_modules/lodash-es/isBuffer.js
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
- var moduleExports = freeModule && freeModule.exports === freeExports;
- var Buffer = moduleExports ? root_default.Buffer : void 0;
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
- var isBuffer = nativeIsBuffer || stubFalse_default;
- var isBuffer_default = isBuffer;
- // node_modules/lodash-es/_baseIsTypedArray.js
- var argsTag2 = "[object Arguments]";
- var arrayTag = "[object Array]";
- var boolTag = "[object Boolean]";
- var dateTag = "[object Date]";
- var errorTag = "[object Error]";
- var funcTag2 = "[object Function]";
- var mapTag = "[object Map]";
- var numberTag = "[object Number]";
- var objectTag = "[object Object]";
- var regexpTag = "[object RegExp]";
- var setTag = "[object Set]";
- var stringTag = "[object String]";
- var weakMapTag = "[object WeakMap]";
- var arrayBufferTag = "[object ArrayBuffer]";
- var dataViewTag = "[object DataView]";
- var float32Tag = "[object Float32Array]";
- var float64Tag = "[object Float64Array]";
- var int8Tag = "[object Int8Array]";
- var int16Tag = "[object Int16Array]";
- var int32Tag = "[object Int32Array]";
- var uint8Tag = "[object Uint8Array]";
- var uint8ClampedTag = "[object Uint8ClampedArray]";
- var uint16Tag = "[object Uint16Array]";
- var uint32Tag = "[object Uint32Array]";
- var typedArrayTags = {};
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
- 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;
- function baseIsTypedArray(value) {
- return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
- }
- var baseIsTypedArray_default = baseIsTypedArray;
- // node_modules/lodash-es/_baseUnary.js
- function baseUnary(func) {
- return function(value) {
- return func(value);
- };
- }
- var baseUnary_default = baseUnary;
- // node_modules/lodash-es/_nodeUtil.js
- var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
- var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
- var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
- var freeProcess = moduleExports2 && freeGlobal_default.process;
- var nodeUtil = (function() {
- try {
- var types2 = freeModule2 && freeModule2.require && freeModule2.require("util").types;
- if (types2) {
- return types2;
- }
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
- } catch (e) {
- }
- })();
- var nodeUtil_default = nodeUtil;
- // node_modules/lodash-es/isTypedArray.js
- var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
- var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
- var isTypedArray_default = isTypedArray;
- // node_modules/lodash-es/_arrayLikeKeys.js
- var objectProto9 = Object.prototype;
- var hasOwnProperty7 = objectProto9.hasOwnProperty;
- function arrayLikeKeys(value, inherited) {
- 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;
- for (var key in value) {
- if ((inherited || hasOwnProperty7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
- isIndex_default(key, length)))) {
- result2.push(key);
- }
- }
- return result2;
- }
- var arrayLikeKeys_default = arrayLikeKeys;
- // node_modules/lodash-es/_overArg.js
- function overArg(func, transform2) {
- return function(arg) {
- return func(transform2(arg));
- };
- }
- var overArg_default = overArg;
- // node_modules/lodash-es/_nativeKeys.js
- var nativeKeys = overArg_default(Object.keys, Object);
- var nativeKeys_default = nativeKeys;
- // node_modules/lodash-es/_baseKeys.js
- var objectProto10 = Object.prototype;
- var hasOwnProperty8 = objectProto10.hasOwnProperty;
- function baseKeys(object4) {
- if (!isPrototype_default(object4)) {
- return nativeKeys_default(object4);
- }
- var result2 = [];
- for (var key in Object(object4)) {
- if (hasOwnProperty8.call(object4, key) && key != "constructor") {
- result2.push(key);
- }
- }
- return result2;
- }
- var baseKeys_default = baseKeys;
- // node_modules/lodash-es/keys.js
- function keys(object4) {
- return isArrayLike_default(object4) ? arrayLikeKeys_default(object4) : baseKeys_default(object4);
- }
- var keys_default = keys;
- // node_modules/lodash-es/assign.js
- var objectProto11 = Object.prototype;
- var hasOwnProperty9 = objectProto11.hasOwnProperty;
- var assign = createAssigner_default(function(object4, source) {
- if (isPrototype_default(source) || isArrayLike_default(source)) {
- copyObject_default(source, keys_default(source), object4);
- return;
- }
- for (var key in source) {
- if (hasOwnProperty9.call(source, key)) {
- assignValue_default(object4, key, source[key]);
- }
- }
- });
- var assign_default = assign;
- // node_modules/lodash-es/_nativeKeysIn.js
- function nativeKeysIn(object4) {
- var result2 = [];
- if (object4 != null) {
- for (var key in Object(object4)) {
- result2.push(key);
- }
- }
- return result2;
- }
- var nativeKeysIn_default = nativeKeysIn;
- // node_modules/lodash-es/_baseKeysIn.js
- var objectProto12 = Object.prototype;
- var hasOwnProperty10 = objectProto12.hasOwnProperty;
- function baseKeysIn(object4) {
- if (!isObject_default(object4)) {
- return nativeKeysIn_default(object4);
- }
- var isProto = isPrototype_default(object4), result2 = [];
- for (var key in object4) {
- if (!(key == "constructor" && (isProto || !hasOwnProperty10.call(object4, key)))) {
- result2.push(key);
- }
- }
- return result2;
- }
- var baseKeysIn_default = baseKeysIn;
- // node_modules/lodash-es/keysIn.js
- function keysIn(object4) {
- return isArrayLike_default(object4) ? arrayLikeKeys_default(object4, true) : baseKeysIn_default(object4);
- }
- var keysIn_default = keysIn;
- // node_modules/lodash-es/assignIn.js
- var assignIn = createAssigner_default(function(object4, source) {
- copyObject_default(source, keysIn_default(source), object4);
- });
- var assignIn_default = assignIn;
- // node_modules/lodash-es/assignInWith.js
- var assignInWith = createAssigner_default(function(object4, source, srcIndex, customizer) {
- copyObject_default(source, keysIn_default(source), object4, customizer);
- });
- var assignInWith_default = assignInWith;
- // node_modules/lodash-es/assignWith.js
- var assignWith = createAssigner_default(function(object4, source, srcIndex, customizer) {
- copyObject_default(source, keys_default(source), object4, customizer);
- });
- var assignWith_default = assignWith;
- // node_modules/lodash-es/_isKey.js
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
- var reIsPlainProp = /^\w*$/;
- function isKey(value, object4) {
- if (isArray_default(value)) {
- return false;
- }
- var type4 = typeof value;
- if (type4 == "number" || type4 == "symbol" || type4 == "boolean" || value == null || isSymbol_default(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object4 != null && value in Object(object4);
- }
- var isKey_default = isKey;
- // node_modules/lodash-es/_nativeCreate.js
- var nativeCreate = getNative_default(Object, "create");
- var nativeCreate_default = nativeCreate;
- // node_modules/lodash-es/_hashClear.js
- function hashClear() {
- this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
- this.size = 0;
- }
- var hashClear_default = hashClear;
- // node_modules/lodash-es/_hashDelete.js
- function hashDelete(key) {
- var result2 = this.has(key) && delete this.__data__[key];
- this.size -= result2 ? 1 : 0;
- return result2;
- }
- var hashDelete_default = hashDelete;
- // node_modules/lodash-es/_hashGet.js
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
- var objectProto13 = Object.prototype;
- var hasOwnProperty11 = objectProto13.hasOwnProperty;
- function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate_default) {
- var result2 = data[key];
- return result2 === HASH_UNDEFINED ? void 0 : result2;
- }
- return hasOwnProperty11.call(data, key) ? data[key] : void 0;
- }
- var hashGet_default = hashGet;
- // node_modules/lodash-es/_hashHas.js
- var objectProto14 = Object.prototype;
- var hasOwnProperty12 = objectProto14.hasOwnProperty;
- function hashHas(key) {
- var data = this.__data__;
- return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty12.call(data, key);
- }
- var hashHas_default = hashHas;
- // node_modules/lodash-es/_hashSet.js
- var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
- function hashSet(key, value) {
- var data = this.__data__;
- this.size += this.has(key) ? 0 : 1;
- data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
- return this;
- }
- var hashSet_default = hashSet;
- // node_modules/lodash-es/_Hash.js
- function Hash(entries) {
- var index = -1, length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
- Hash.prototype.clear = hashClear_default;
- Hash.prototype["delete"] = hashDelete_default;
- Hash.prototype.get = hashGet_default;
- Hash.prototype.has = hashHas_default;
- Hash.prototype.set = hashSet_default;
- var Hash_default = Hash;
- // node_modules/lodash-es/_listCacheClear.js
- function listCacheClear() {
- this.__data__ = [];
- this.size = 0;
- }
- var listCacheClear_default = listCacheClear;
- // node_modules/lodash-es/_assocIndexOf.js
- function assocIndexOf(array4, key) {
- var length = array4.length;
- while (length--) {
- if (eq_default(array4[length][0], key)) {
- return length;
- }
- }
- return -1;
- }
- var assocIndexOf_default = assocIndexOf;
- // node_modules/lodash-es/_listCacheDelete.js
- var arrayProto = Array.prototype;
- var splice = arrayProto.splice;
- function listCacheDelete(key) {
- var data = this.__data__, index = assocIndexOf_default(data, key);
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- --this.size;
- return true;
- }
- var listCacheDelete_default = listCacheDelete;
- // node_modules/lodash-es/_listCacheGet.js
- function listCacheGet(key) {
- var data = this.__data__, index = assocIndexOf_default(data, key);
- return index < 0 ? void 0 : data[index][1];
- }
- var listCacheGet_default = listCacheGet;
- // node_modules/lodash-es/_listCacheHas.js
- function listCacheHas(key) {
- return assocIndexOf_default(this.__data__, key) > -1;
- }
- var listCacheHas_default = listCacheHas;
- // node_modules/lodash-es/_listCacheSet.js
- function listCacheSet(key, value) {
- var data = this.__data__, index = assocIndexOf_default(data, key);
- if (index < 0) {
- ++this.size;
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
- }
- var listCacheSet_default = listCacheSet;
- // node_modules/lodash-es/_ListCache.js
- function ListCache(entries) {
- var index = -1, length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
- ListCache.prototype.clear = listCacheClear_default;
- ListCache.prototype["delete"] = listCacheDelete_default;
- ListCache.prototype.get = listCacheGet_default;
- ListCache.prototype.has = listCacheHas_default;
- ListCache.prototype.set = listCacheSet_default;
- var ListCache_default = ListCache;
- // node_modules/lodash-es/_Map.js
- var Map2 = getNative_default(root_default, "Map");
- var Map_default = Map2;
- // node_modules/lodash-es/_mapCacheClear.js
- function mapCacheClear() {
- this.size = 0;
- this.__data__ = {
- "hash": new Hash_default(),
- "map": new (Map_default || ListCache_default)(),
- "string": new Hash_default()
- };
- }
- var mapCacheClear_default = mapCacheClear;
- // node_modules/lodash-es/_isKeyable.js
- function isKeyable(value) {
- var type4 = typeof value;
- return type4 == "string" || type4 == "number" || type4 == "symbol" || type4 == "boolean" ? value !== "__proto__" : value === null;
- }
- var isKeyable_default = isKeyable;
- // node_modules/lodash-es/_getMapData.js
- function getMapData(map2, key) {
- var data = map2.__data__;
- return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
- }
- var getMapData_default = getMapData;
- // node_modules/lodash-es/_mapCacheDelete.js
- function mapCacheDelete(key) {
- var result2 = getMapData_default(this, key)["delete"](key);
- this.size -= result2 ? 1 : 0;
- return result2;
- }
- var mapCacheDelete_default = mapCacheDelete;
- // node_modules/lodash-es/_mapCacheGet.js
- function mapCacheGet(key) {
- return getMapData_default(this, key).get(key);
- }
- var mapCacheGet_default = mapCacheGet;
- // node_modules/lodash-es/_mapCacheHas.js
- function mapCacheHas(key) {
- return getMapData_default(this, key).has(key);
- }
- var mapCacheHas_default = mapCacheHas;
- // node_modules/lodash-es/_mapCacheSet.js
- function mapCacheSet(key, value) {
- var data = getMapData_default(this, key), size3 = data.size;
- data.set(key, value);
- this.size += data.size == size3 ? 0 : 1;
- return this;
- }
- var mapCacheSet_default = mapCacheSet;
- // node_modules/lodash-es/_MapCache.js
- function MapCache(entries) {
- var index = -1, length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
- MapCache.prototype.clear = mapCacheClear_default;
- MapCache.prototype["delete"] = mapCacheDelete_default;
- MapCache.prototype.get = mapCacheGet_default;
- MapCache.prototype.has = mapCacheHas_default;
- MapCache.prototype.set = mapCacheSet_default;
- var MapCache_default = MapCache;
- // node_modules/lodash-es/memoize.js
- var FUNC_ERROR_TEXT3 = "Expected a function";
- function memoize(func, resolver) {
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
- throw new TypeError(FUNC_ERROR_TEXT3);
- }
- var memoized = function() {
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
- if (cache2.has(key)) {
- return cache2.get(key);
- }
- var result2 = func.apply(this, args);
- memoized.cache = cache2.set(key, result2) || cache2;
- return result2;
- };
- memoized.cache = new (memoize.Cache || MapCache_default)();
- return memoized;
- }
- memoize.Cache = MapCache_default;
- var memoize_default = memoize;
- // node_modules/lodash-es/_memoizeCapped.js
- var MAX_MEMOIZE_SIZE = 500;
- function memoizeCapped(func) {
- var result2 = memoize_default(func, function(key) {
- if (cache2.size === MAX_MEMOIZE_SIZE) {
- cache2.clear();
- }
- return key;
- });
- var cache2 = result2.cache;
- return result2;
- }
- var memoizeCapped_default = memoizeCapped;
- // node_modules/lodash-es/_stringToPath.js
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
- var reEscapeChar = /\\(\\)?/g;
- var stringToPath = memoizeCapped_default(function(string3) {
- var result2 = [];
- if (string3.charCodeAt(0) === 46) {
- result2.push("");
- }
- string3.replace(rePropName, function(match, number4, quote, subString) {
- result2.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match);
- });
- return result2;
- });
- var stringToPath_default = stringToPath;
- // node_modules/lodash-es/toString.js
- function toString(value) {
- return value == null ? "" : baseToString_default(value);
- }
- var toString_default = toString;
- // node_modules/lodash-es/_castPath.js
- function castPath(value, object4) {
- if (isArray_default(value)) {
- return value;
- }
- return isKey_default(value, object4) ? [value] : stringToPath_default(toString_default(value));
- }
- var castPath_default = castPath;
- // node_modules/lodash-es/_toKey.js
- var INFINITY3 = 1 / 0;
- function toKey(value) {
- if (typeof value == "string" || isSymbol_default(value)) {
- return value;
- }
- var result2 = value + "";
- return result2 == "0" && 1 / value == -INFINITY3 ? "-0" : result2;
- }
- var toKey_default = toKey;
- // node_modules/lodash-es/_baseGet.js
- function baseGet(object4, path) {
- path = castPath_default(path, object4);
- var index = 0, length = path.length;
- while (object4 != null && index < length) {
- object4 = object4[toKey_default(path[index++])];
- }
- return index && index == length ? object4 : void 0;
- }
- var baseGet_default = baseGet;
- // node_modules/lodash-es/get.js
- function get(object4, path, defaultValue) {
- var result2 = object4 == null ? void 0 : baseGet_default(object4, path);
- return result2 === void 0 ? defaultValue : result2;
- }
- var get_default = get;
- // node_modules/lodash-es/_baseAt.js
- function baseAt(object4, paths) {
- var index = -1, length = paths.length, result2 = Array(length), skip = object4 == null;
- while (++index < length) {
- result2[index] = skip ? void 0 : get_default(object4, paths[index]);
- }
- return result2;
- }
- var baseAt_default = baseAt;
- // node_modules/lodash-es/_arrayPush.js
- function arrayPush(array4, values2) {
- var index = -1, length = values2.length, offset3 = array4.length;
- while (++index < length) {
- array4[offset3 + index] = values2[index];
- }
- return array4;
- }
- var arrayPush_default = arrayPush;
- // node_modules/lodash-es/_isFlattenable.js
- var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0;
- function isFlattenable(value) {
- return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
- }
- var isFlattenable_default = isFlattenable;
- // node_modules/lodash-es/_baseFlatten.js
- function baseFlatten(array4, depth, predicate, isStrict, result2) {
- var index = -1, length = array4.length;
- predicate || (predicate = isFlattenable_default);
- result2 || (result2 = []);
- while (++index < length) {
- var value = array4[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- baseFlatten(value, depth - 1, predicate, isStrict, result2);
- } else {
- arrayPush_default(result2, value);
- }
- } else if (!isStrict) {
- result2[result2.length] = value;
- }
- }
- return result2;
- }
- var baseFlatten_default = baseFlatten;
- // node_modules/lodash-es/flatten.js
- function flatten(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? baseFlatten_default(array4, 1) : [];
- }
- var flatten_default = flatten;
- // node_modules/lodash-es/_flatRest.js
- function flatRest(func) {
- return setToString_default(overRest_default(func, void 0, flatten_default), func + "");
- }
- var flatRest_default = flatRest;
- // node_modules/lodash-es/at.js
- var at = flatRest_default(baseAt_default);
- var at_default = at;
- // node_modules/lodash-es/_getPrototype.js
- var getPrototype = overArg_default(Object.getPrototypeOf, Object);
- var getPrototype_default = getPrototype;
- // node_modules/lodash-es/isPlainObject.js
- var objectTag2 = "[object Object]";
- var funcProto3 = Function.prototype;
- var objectProto15 = Object.prototype;
- var funcToString3 = funcProto3.toString;
- var hasOwnProperty13 = objectProto15.hasOwnProperty;
- var objectCtorString = funcToString3.call(Object);
- function isPlainObject2(value) {
- if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) {
- return false;
- }
- var proto = getPrototype_default(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty13.call(proto, "constructor") && proto.constructor;
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
- }
- var isPlainObject_default = isPlainObject2;
- // node_modules/lodash-es/isError.js
- var domExcTag = "[object DOMException]";
- var errorTag2 = "[object Error]";
- function isError(value) {
- if (!isObjectLike_default(value)) {
- return false;
- }
- var tag = baseGetTag_default(value);
- return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject_default(value);
- }
- var isError_default = isError;
- // node_modules/lodash-es/attempt.js
- var attempt = baseRest_default(function(func, args) {
- try {
- return apply_default(func, void 0, args);
- } catch (e) {
- return isError_default(e) ? e : new Error(e);
- }
- });
- var attempt_default = attempt;
- // node_modules/lodash-es/before.js
- var FUNC_ERROR_TEXT4 = "Expected a function";
- function before(n, func) {
- var result2;
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT4);
- }
- n = toInteger_default(n);
- return function() {
- if (--n > 0) {
- result2 = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = void 0;
- }
- return result2;
- };
- }
- var before_default = before;
- // node_modules/lodash-es/bind.js
- var WRAP_BIND_FLAG8 = 1;
- var WRAP_PARTIAL_FLAG4 = 32;
- var bind = baseRest_default(function(func, thisArg, partials) {
- var bitmask = WRAP_BIND_FLAG8;
- if (partials.length) {
- var holders = replaceHolders_default(partials, getHolder_default(bind));
- bitmask |= WRAP_PARTIAL_FLAG4;
- }
- return createWrap_default(func, bitmask, thisArg, partials, holders);
- });
- bind.placeholder = {};
- var bind_default = bind;
- // node_modules/lodash-es/bindAll.js
- var bindAll = flatRest_default(function(object4, methodNames) {
- arrayEach_default(methodNames, function(key) {
- key = toKey_default(key);
- baseAssignValue_default(object4, key, bind_default(object4[key], object4));
- });
- return object4;
- });
- var bindAll_default = bindAll;
- // node_modules/lodash-es/bindKey.js
- var WRAP_BIND_FLAG9 = 1;
- var WRAP_BIND_KEY_FLAG6 = 2;
- var WRAP_PARTIAL_FLAG5 = 32;
- var bindKey = baseRest_default(function(object4, key, partials) {
- var bitmask = WRAP_BIND_FLAG9 | WRAP_BIND_KEY_FLAG6;
- if (partials.length) {
- var holders = replaceHolders_default(partials, getHolder_default(bindKey));
- bitmask |= WRAP_PARTIAL_FLAG5;
- }
- return createWrap_default(key, bitmask, object4, partials, holders);
- });
- bindKey.placeholder = {};
- var bindKey_default = bindKey;
- // node_modules/lodash-es/_baseSlice.js
- function baseSlice(array4, start, end) {
- var index = -1, length = array4.length;
- if (start < 0) {
- start = -start > length ? 0 : length + start;
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : end - start >>> 0;
- start >>>= 0;
- var result2 = Array(length);
- while (++index < length) {
- result2[index] = array4[index + start];
- }
- return result2;
- }
- var baseSlice_default = baseSlice;
- // node_modules/lodash-es/_castSlice.js
- function castSlice(array4, start, end) {
- var length = array4.length;
- end = end === void 0 ? length : end;
- return !start && end >= length ? array4 : baseSlice_default(array4, start, end);
- }
- var castSlice_default = castSlice;
- // node_modules/lodash-es/_hasUnicode.js
- var rsAstralRange = "\\ud800-\\udfff";
- var rsComboMarksRange = "\\u0300-\\u036f";
- var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange = "\\u20d0-\\u20ff";
- var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
- var rsVarRange = "\\ufe0e\\ufe0f";
- var rsZWJ = "\\u200d";
- var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
- function hasUnicode(string3) {
- return reHasUnicode.test(string3);
- }
- var hasUnicode_default = hasUnicode;
- // node_modules/lodash-es/_asciiToArray.js
- function asciiToArray(string3) {
- return string3.split("");
- }
- var asciiToArray_default = asciiToArray;
- // node_modules/lodash-es/_unicodeToArray.js
- var rsAstralRange2 = "\\ud800-\\udfff";
- var rsComboMarksRange2 = "\\u0300-\\u036f";
- var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange2 = "\\u20d0-\\u20ff";
- var rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
- var rsVarRange2 = "\\ufe0e\\ufe0f";
- var rsAstral = "[" + rsAstralRange2 + "]";
- var rsCombo = "[" + rsComboRange2 + "]";
- var rsFitz = "\\ud83c[\\udffb-\\udfff]";
- var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
- var rsNonAstral = "[^" + rsAstralRange2 + "]";
- var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
- var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
- var rsZWJ2 = "\\u200d";
- var reOptMod = rsModifier + "?";
- var rsOptVar = "[" + rsVarRange2 + "]?";
- var rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
- var rsSeq = rsOptVar + reOptMod + rsOptJoin;
- var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
- var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
- function unicodeToArray(string3) {
- return string3.match(reUnicode) || [];
- }
- var unicodeToArray_default = unicodeToArray;
- // node_modules/lodash-es/_stringToArray.js
- function stringToArray(string3) {
- return hasUnicode_default(string3) ? unicodeToArray_default(string3) : asciiToArray_default(string3);
- }
- var stringToArray_default = stringToArray;
- // node_modules/lodash-es/_createCaseFirst.js
- function createCaseFirst(methodName) {
- return function(string3) {
- string3 = toString_default(string3);
- var strSymbols = hasUnicode_default(string3) ? stringToArray_default(string3) : void 0;
- var chr = strSymbols ? strSymbols[0] : string3.charAt(0);
- var trailing = strSymbols ? castSlice_default(strSymbols, 1).join("") : string3.slice(1);
- return chr[methodName]() + trailing;
- };
- }
- var createCaseFirst_default = createCaseFirst;
- // node_modules/lodash-es/upperFirst.js
- var upperFirst = createCaseFirst_default("toUpperCase");
- var upperFirst_default = upperFirst;
- // node_modules/lodash-es/capitalize.js
- function capitalize2(string3) {
- return upperFirst_default(toString_default(string3).toLowerCase());
- }
- var capitalize_default = capitalize2;
- // node_modules/lodash-es/_arrayReduce.js
- function arrayReduce(array4, iteratee2, accumulator, initAccum) {
- var index = -1, length = array4 == null ? 0 : array4.length;
- if (initAccum && length) {
- accumulator = array4[++index];
- }
- while (++index < length) {
- accumulator = iteratee2(accumulator, array4[index], index, array4);
- }
- return accumulator;
- }
- var arrayReduce_default = arrayReduce;
- // node_modules/lodash-es/_basePropertyOf.js
- function basePropertyOf(object4) {
- return function(key) {
- return object4 == null ? void 0 : object4[key];
- };
- }
- var basePropertyOf_default = basePropertyOf;
- // node_modules/lodash-es/_deburrLetter.js
- var deburredLetters = {
- // Latin-1 Supplement block.
- "À": "A",
- "Á": "A",
- "Â": "A",
- "Ã": "A",
- "Ä": "A",
- "Å": "A",
- "à": "a",
- "á": "a",
- "â": "a",
- "ã": "a",
- "ä": "a",
- "å": "a",
- "Ç": "C",
- "ç": "c",
- "Ð": "D",
- "ð": "d",
- "È": "E",
- "É": "E",
- "Ê": "E",
- "Ë": "E",
- "è": "e",
- "é": "e",
- "ê": "e",
- "ë": "e",
- "Ì": "I",
- "Í": "I",
- "Î": "I",
- "Ï": "I",
- "ì": "i",
- "í": "i",
- "î": "i",
- "ï": "i",
- "Ñ": "N",
- "ñ": "n",
- "Ò": "O",
- "Ó": "O",
- "Ô": "O",
- "Õ": "O",
- "Ö": "O",
- "Ø": "O",
- "ò": "o",
- "ó": "o",
- "ô": "o",
- "õ": "o",
- "ö": "o",
- "ø": "o",
- "Ù": "U",
- "Ú": "U",
- "Û": "U",
- "Ü": "U",
- "ù": "u",
- "ú": "u",
- "û": "u",
- "ü": "u",
- "Ý": "Y",
- "ý": "y",
- "ÿ": "y",
- "Æ": "Ae",
- "æ": "ae",
- "Þ": "Th",
- "þ": "th",
- "ß": "ss",
- // Latin Extended-A block.
- "Ā": "A",
- "Ă": "A",
- "Ą": "A",
- "ā": "a",
- "ă": "a",
- "ą": "a",
- "Ć": "C",
- "Ĉ": "C",
- "Ċ": "C",
- "Č": "C",
- "ć": "c",
- "ĉ": "c",
- "ċ": "c",
- "č": "c",
- "Ď": "D",
- "Đ": "D",
- "ď": "d",
- "đ": "d",
- "Ē": "E",
- "Ĕ": "E",
- "Ė": "E",
- "Ę": "E",
- "Ě": "E",
- "ē": "e",
- "ĕ": "e",
- "ė": "e",
- "ę": "e",
- "ě": "e",
- "Ĝ": "G",
- "Ğ": "G",
- "Ġ": "G",
- "Ģ": "G",
- "ĝ": "g",
- "ğ": "g",
- "ġ": "g",
- "ģ": "g",
- "Ĥ": "H",
- "Ħ": "H",
- "ĥ": "h",
- "ħ": "h",
- "Ĩ": "I",
- "Ī": "I",
- "Ĭ": "I",
- "Į": "I",
- "İ": "I",
- "ĩ": "i",
- "ī": "i",
- "ĭ": "i",
- "į": "i",
- "ı": "i",
- "Ĵ": "J",
- "ĵ": "j",
- "Ķ": "K",
- "ķ": "k",
- "ĸ": "k",
- "Ĺ": "L",
- "Ļ": "L",
- "Ľ": "L",
- "Ŀ": "L",
- "Ł": "L",
- "ĺ": "l",
- "ļ": "l",
- "ľ": "l",
- "ŀ": "l",
- "ł": "l",
- "Ń": "N",
- "Ņ": "N",
- "Ň": "N",
- "Ŋ": "N",
- "ń": "n",
- "ņ": "n",
- "ň": "n",
- "ŋ": "n",
- "Ō": "O",
- "Ŏ": "O",
- "Ő": "O",
- "ō": "o",
- "ŏ": "o",
- "ő": "o",
- "Ŕ": "R",
- "Ŗ": "R",
- "Ř": "R",
- "ŕ": "r",
- "ŗ": "r",
- "ř": "r",
- "Ś": "S",
- "Ŝ": "S",
- "Ş": "S",
- "Š": "S",
- "ś": "s",
- "ŝ": "s",
- "ş": "s",
- "š": "s",
- "Ţ": "T",
- "Ť": "T",
- "Ŧ": "T",
- "ţ": "t",
- "ť": "t",
- "ŧ": "t",
- "Ũ": "U",
- "Ū": "U",
- "Ŭ": "U",
- "Ů": "U",
- "Ű": "U",
- "Ų": "U",
- "ũ": "u",
- "ū": "u",
- "ŭ": "u",
- "ů": "u",
- "ű": "u",
- "ų": "u",
- "Ŵ": "W",
- "ŵ": "w",
- "Ŷ": "Y",
- "ŷ": "y",
- "Ÿ": "Y",
- "Ź": "Z",
- "Ż": "Z",
- "Ž": "Z",
- "ź": "z",
- "ż": "z",
- "ž": "z",
- "IJ": "IJ",
- "ij": "ij",
- "Œ": "Oe",
- "œ": "oe",
- "ʼn": "'n",
- "ſ": "s"
- };
- var deburrLetter = basePropertyOf_default(deburredLetters);
- var deburrLetter_default = deburrLetter;
- // node_modules/lodash-es/deburr.js
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
- var rsComboMarksRange3 = "\\u0300-\\u036f";
- var reComboHalfMarksRange3 = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange3 = "\\u20d0-\\u20ff";
- var rsComboRange3 = rsComboMarksRange3 + reComboHalfMarksRange3 + rsComboSymbolsRange3;
- var rsCombo2 = "[" + rsComboRange3 + "]";
- var reComboMark = RegExp(rsCombo2, "g");
- function deburr(string3) {
- string3 = toString_default(string3);
- return string3 && string3.replace(reLatin, deburrLetter_default).replace(reComboMark, "");
- }
- var deburr_default = deburr;
- // node_modules/lodash-es/_asciiWords.js
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
- function asciiWords(string3) {
- return string3.match(reAsciiWord) || [];
- }
- var asciiWords_default = asciiWords;
- // node_modules/lodash-es/_hasUnicodeWord.js
- 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 ]/;
- function hasUnicodeWord(string3) {
- return reHasUnicodeWord.test(string3);
- }
- var hasUnicodeWord_default = hasUnicodeWord;
- // node_modules/lodash-es/_unicodeWords.js
- var rsAstralRange3 = "\\ud800-\\udfff";
- var rsComboMarksRange4 = "\\u0300-\\u036f";
- var reComboHalfMarksRange4 = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange4 = "\\u20d0-\\u20ff";
- var rsComboRange4 = rsComboMarksRange4 + reComboHalfMarksRange4 + rsComboSymbolsRange4;
- var rsDingbatRange = "\\u2700-\\u27bf";
- var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
- var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
- var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
- var rsPunctuationRange = "\\u2000-\\u206f";
- 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";
- var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
- var rsVarRange3 = "\\ufe0e\\ufe0f";
- var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
- var rsApos = "['’]";
- var rsBreak = "[" + rsBreakRange + "]";
- var rsCombo3 = "[" + rsComboRange4 + "]";
- var rsDigits = "\\d+";
- var rsDingbat = "[" + rsDingbatRange + "]";
- var rsLower = "[" + rsLowerRange + "]";
- var rsMisc = "[^" + rsAstralRange3 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
- var rsFitz2 = "\\ud83c[\\udffb-\\udfff]";
- var rsModifier2 = "(?:" + rsCombo3 + "|" + rsFitz2 + ")";
- var rsNonAstral2 = "[^" + rsAstralRange3 + "]";
- var rsRegional2 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
- var rsSurrPair2 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
- var rsUpper = "[" + rsUpperRange + "]";
- var rsZWJ3 = "\\u200d";
- var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
- var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
- var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
- var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
- var reOptMod2 = rsModifier2 + "?";
- var rsOptVar2 = "[" + rsVarRange3 + "]?";
- var rsOptJoin2 = "(?:" + rsZWJ3 + "(?:" + [rsNonAstral2, rsRegional2, rsSurrPair2].join("|") + ")" + rsOptVar2 + reOptMod2 + ")*";
- var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
- var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
- var rsSeq2 = rsOptVar2 + reOptMod2 + rsOptJoin2;
- var rsEmoji = "(?:" + [rsDingbat, rsRegional2, rsSurrPair2].join("|") + ")" + rsSeq2;
- var reUnicodeWord = RegExp([
- rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
- rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")",
- rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
- rsUpper + "+" + rsOptContrUpper,
- rsOrdUpper,
- rsOrdLower,
- rsDigits,
- rsEmoji
- ].join("|"), "g");
- function unicodeWords(string3) {
- return string3.match(reUnicodeWord) || [];
- }
- var unicodeWords_default = unicodeWords;
- // node_modules/lodash-es/words.js
- function words(string3, pattern4, guard) {
- string3 = toString_default(string3);
- pattern4 = guard ? void 0 : pattern4;
- if (pattern4 === void 0) {
- return hasUnicodeWord_default(string3) ? unicodeWords_default(string3) : asciiWords_default(string3);
- }
- return string3.match(pattern4) || [];
- }
- var words_default = words;
- // node_modules/lodash-es/_createCompounder.js
- var rsApos2 = "['’]";
- var reApos = RegExp(rsApos2, "g");
- function createCompounder(callback) {
- return function(string3) {
- return arrayReduce_default(words_default(deburr_default(string3).replace(reApos, "")), callback, "");
- };
- }
- var createCompounder_default = createCompounder;
- // node_modules/lodash-es/camelCase.js
- var camelCase = createCompounder_default(function(result2, word, index) {
- word = word.toLowerCase();
- return result2 + (index ? capitalize_default(word) : word);
- });
- var camelCase_default = camelCase;
- // node_modules/lodash-es/castArray.js
- function castArray() {
- if (!arguments.length) {
- return [];
- }
- var value = arguments[0];
- return isArray_default(value) ? value : [value];
- }
- var castArray_default = castArray;
- // node_modules/lodash-es/_createRound.js
- var nativeIsFinite = root_default.isFinite;
- var nativeMin3 = Math.min;
- function createRound(methodName) {
- var func = Math[methodName];
- return function(number4, precision) {
- number4 = toNumber_default(number4);
- precision = precision == null ? 0 : nativeMin3(toInteger_default(precision), 292);
- if (precision && nativeIsFinite(number4)) {
- var pair = (toString_default(number4) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision));
- pair = (toString_default(value) + "e").split("e");
- return +(pair[0] + "e" + (+pair[1] - precision));
- }
- return func(number4);
- };
- }
- var createRound_default = createRound;
- // node_modules/lodash-es/ceil.js
- var ceil = createRound_default("ceil");
- var ceil_default = ceil;
- // node_modules/lodash-es/chain.js
- function chain(value) {
- var result2 = wrapperLodash_default(value);
- result2.__chain__ = true;
- return result2;
- }
- var chain_default = chain;
- // node_modules/lodash-es/chunk.js
- var nativeCeil = Math.ceil;
- var nativeMax5 = Math.max;
- function chunk(array4, size3, guard) {
- if (guard ? isIterateeCall_default(array4, size3, guard) : size3 === void 0) {
- size3 = 1;
- } else {
- size3 = nativeMax5(toInteger_default(size3), 0);
- }
- var length = array4 == null ? 0 : array4.length;
- if (!length || size3 < 1) {
- return [];
- }
- var index = 0, resIndex = 0, result2 = Array(nativeCeil(length / size3));
- while (index < length) {
- result2[resIndex++] = baseSlice_default(array4, index, index += size3);
- }
- return result2;
- }
- var chunk_default = chunk;
- // node_modules/lodash-es/_baseClamp.js
- function baseClamp(number4, lower, upper) {
- if (number4 === number4) {
- if (upper !== void 0) {
- number4 = number4 <= upper ? number4 : upper;
- }
- if (lower !== void 0) {
- number4 = number4 >= lower ? number4 : lower;
- }
- }
- return number4;
- }
- var baseClamp_default = baseClamp;
- // node_modules/lodash-es/clamp.js
- function clamp(number4, lower, upper) {
- if (upper === void 0) {
- upper = lower;
- lower = void 0;
- }
- if (upper !== void 0) {
- upper = toNumber_default(upper);
- upper = upper === upper ? upper : 0;
- }
- if (lower !== void 0) {
- lower = toNumber_default(lower);
- lower = lower === lower ? lower : 0;
- }
- return baseClamp_default(toNumber_default(number4), lower, upper);
- }
- var clamp_default = clamp;
- // node_modules/lodash-es/_stackClear.js
- function stackClear() {
- this.__data__ = new ListCache_default();
- this.size = 0;
- }
- var stackClear_default = stackClear;
- // node_modules/lodash-es/_stackDelete.js
- function stackDelete(key) {
- var data = this.__data__, result2 = data["delete"](key);
- this.size = data.size;
- return result2;
- }
- var stackDelete_default = stackDelete;
- // node_modules/lodash-es/_stackGet.js
- function stackGet(key) {
- return this.__data__.get(key);
- }
- var stackGet_default = stackGet;
- // node_modules/lodash-es/_stackHas.js
- function stackHas(key) {
- return this.__data__.has(key);
- }
- var stackHas_default = stackHas;
- // node_modules/lodash-es/_stackSet.js
- var LARGE_ARRAY_SIZE = 200;
- function stackSet(key, value) {
- var data = this.__data__;
- if (data instanceof ListCache_default) {
- var pairs = data.__data__;
- if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
- pairs.push([key, value]);
- this.size = ++data.size;
- return this;
- }
- data = this.__data__ = new MapCache_default(pairs);
- }
- data.set(key, value);
- this.size = data.size;
- return this;
- }
- var stackSet_default = stackSet;
- // node_modules/lodash-es/_Stack.js
- function Stack(entries) {
- var data = this.__data__ = new ListCache_default(entries);
- this.size = data.size;
- }
- Stack.prototype.clear = stackClear_default;
- Stack.prototype["delete"] = stackDelete_default;
- Stack.prototype.get = stackGet_default;
- Stack.prototype.has = stackHas_default;
- Stack.prototype.set = stackSet_default;
- var Stack_default = Stack;
- // node_modules/lodash-es/_baseAssign.js
- function baseAssign(object4, source) {
- return object4 && copyObject_default(source, keys_default(source), object4);
- }
- var baseAssign_default = baseAssign;
- // node_modules/lodash-es/_baseAssignIn.js
- function baseAssignIn(object4, source) {
- return object4 && copyObject_default(source, keysIn_default(source), object4);
- }
- var baseAssignIn_default = baseAssignIn;
- // node_modules/lodash-es/_cloneBuffer.js
- var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
- var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
- var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
- var Buffer2 = moduleExports3 ? root_default.Buffer : void 0;
- var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
- buffer.copy(result2);
- return result2;
- }
- var cloneBuffer_default = cloneBuffer;
- // node_modules/lodash-es/_arrayFilter.js
- function arrayFilter(array4, predicate) {
- var index = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result2 = [];
- while (++index < length) {
- var value = array4[index];
- if (predicate(value, index, array4)) {
- result2[resIndex++] = value;
- }
- }
- return result2;
- }
- var arrayFilter_default = arrayFilter;
- // node_modules/lodash-es/stubArray.js
- function stubArray() {
- return [];
- }
- var stubArray_default = stubArray;
- // node_modules/lodash-es/_getSymbols.js
- var objectProto16 = Object.prototype;
- var propertyIsEnumerable2 = objectProto16.propertyIsEnumerable;
- var nativeGetSymbols = Object.getOwnPropertySymbols;
- var getSymbols = !nativeGetSymbols ? stubArray_default : function(object4) {
- if (object4 == null) {
- return [];
- }
- object4 = Object(object4);
- return arrayFilter_default(nativeGetSymbols(object4), function(symbol) {
- return propertyIsEnumerable2.call(object4, symbol);
- });
- };
- var getSymbols_default = getSymbols;
- // node_modules/lodash-es/_copySymbols.js
- function copySymbols(source, object4) {
- return copyObject_default(source, getSymbols_default(source), object4);
- }
- var copySymbols_default = copySymbols;
- // node_modules/lodash-es/_getSymbolsIn.js
- var nativeGetSymbols2 = Object.getOwnPropertySymbols;
- var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object4) {
- var result2 = [];
- while (object4) {
- arrayPush_default(result2, getSymbols_default(object4));
- object4 = getPrototype_default(object4);
- }
- return result2;
- };
- var getSymbolsIn_default = getSymbolsIn;
- // node_modules/lodash-es/_copySymbolsIn.js
- function copySymbolsIn(source, object4) {
- return copyObject_default(source, getSymbolsIn_default(source), object4);
- }
- var copySymbolsIn_default = copySymbolsIn;
- // node_modules/lodash-es/_baseGetAllKeys.js
- function baseGetAllKeys(object4, keysFunc, symbolsFunc) {
- var result2 = keysFunc(object4);
- return isArray_default(object4) ? result2 : arrayPush_default(result2, symbolsFunc(object4));
- }
- var baseGetAllKeys_default = baseGetAllKeys;
- // node_modules/lodash-es/_getAllKeys.js
- function getAllKeys(object4) {
- return baseGetAllKeys_default(object4, keys_default, getSymbols_default);
- }
- var getAllKeys_default = getAllKeys;
- // node_modules/lodash-es/_getAllKeysIn.js
- function getAllKeysIn(object4) {
- return baseGetAllKeys_default(object4, keysIn_default, getSymbolsIn_default);
- }
- var getAllKeysIn_default = getAllKeysIn;
- // node_modules/lodash-es/_DataView.js
- var DataView = getNative_default(root_default, "DataView");
- var DataView_default = DataView;
- // node_modules/lodash-es/_Promise.js
- var Promise2 = getNative_default(root_default, "Promise");
- var Promise_default = Promise2;
- // node_modules/lodash-es/_Set.js
- var Set2 = getNative_default(root_default, "Set");
- var Set_default = Set2;
- // node_modules/lodash-es/_getTag.js
- var mapTag2 = "[object Map]";
- var objectTag3 = "[object Object]";
- var promiseTag = "[object Promise]";
- var setTag2 = "[object Set]";
- var weakMapTag2 = "[object WeakMap]";
- var dataViewTag2 = "[object DataView]";
- var dataViewCtorString = toSource_default(DataView_default);
- var mapCtorString = toSource_default(Map_default);
- var promiseCtorString = toSource_default(Promise_default);
- var setCtorString = toSource_default(Set_default);
- var weakMapCtorString = toSource_default(WeakMap_default);
- var getTag = baseGetTag_default;
- 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) {
- getTag = function(value) {
- var result2 = baseGetTag_default(value), Ctor = result2 == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString:
- return dataViewTag2;
- case mapCtorString:
- return mapTag2;
- case promiseCtorString:
- return promiseTag;
- case setCtorString:
- return setTag2;
- case weakMapCtorString:
- return weakMapTag2;
- }
- }
- return result2;
- };
- }
- var getTag_default = getTag;
- // node_modules/lodash-es/_initCloneArray.js
- var objectProto17 = Object.prototype;
- var hasOwnProperty14 = objectProto17.hasOwnProperty;
- function initCloneArray(array4) {
- var length = array4.length, result2 = new array4.constructor(length);
- if (length && typeof array4[0] == "string" && hasOwnProperty14.call(array4, "index")) {
- result2.index = array4.index;
- result2.input = array4.input;
- }
- return result2;
- }
- var initCloneArray_default = initCloneArray;
- // node_modules/lodash-es/_Uint8Array.js
- var Uint8Array2 = root_default.Uint8Array;
- var Uint8Array_default = Uint8Array2;
- // node_modules/lodash-es/_cloneArrayBuffer.js
- function cloneArrayBuffer(arrayBuffer) {
- var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array_default(result2).set(new Uint8Array_default(arrayBuffer));
- return result2;
- }
- var cloneArrayBuffer_default = cloneArrayBuffer;
- // node_modules/lodash-es/_cloneDataView.js
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
- var cloneDataView_default = cloneDataView;
- // node_modules/lodash-es/_cloneRegExp.js
- var reFlags = /\w*$/;
- function cloneRegExp(regexp4) {
- var result2 = new regexp4.constructor(regexp4.source, reFlags.exec(regexp4));
- result2.lastIndex = regexp4.lastIndex;
- return result2;
- }
- var cloneRegExp_default = cloneRegExp;
- // node_modules/lodash-es/_cloneSymbol.js
- var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
- var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
- function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
- }
- var cloneSymbol_default = cloneSymbol;
- // node_modules/lodash-es/_cloneTypedArray.js
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
- }
- var cloneTypedArray_default = cloneTypedArray;
- // node_modules/lodash-es/_initCloneByTag.js
- var boolTag2 = "[object Boolean]";
- var dateTag2 = "[object Date]";
- var mapTag3 = "[object Map]";
- var numberTag2 = "[object Number]";
- var regexpTag2 = "[object RegExp]";
- var setTag3 = "[object Set]";
- var stringTag2 = "[object String]";
- var symbolTag2 = "[object Symbol]";
- var arrayBufferTag2 = "[object ArrayBuffer]";
- var dataViewTag3 = "[object DataView]";
- var float32Tag2 = "[object Float32Array]";
- var float64Tag2 = "[object Float64Array]";
- var int8Tag2 = "[object Int8Array]";
- var int16Tag2 = "[object Int16Array]";
- var int32Tag2 = "[object Int32Array]";
- var uint8Tag2 = "[object Uint8Array]";
- var uint8ClampedTag2 = "[object Uint8ClampedArray]";
- var uint16Tag2 = "[object Uint16Array]";
- var uint32Tag2 = "[object Uint32Array]";
- function initCloneByTag(object4, tag, isDeep) {
- var Ctor = object4.constructor;
- switch (tag) {
- case arrayBufferTag2:
- return cloneArrayBuffer_default(object4);
- case boolTag2:
- case dateTag2:
- return new Ctor(+object4);
- case dataViewTag3:
- return cloneDataView_default(object4, isDeep);
- case float32Tag2:
- case float64Tag2:
- case int8Tag2:
- case int16Tag2:
- case int32Tag2:
- case uint8Tag2:
- case uint8ClampedTag2:
- case uint16Tag2:
- case uint32Tag2:
- return cloneTypedArray_default(object4, isDeep);
- case mapTag3:
- return new Ctor();
- case numberTag2:
- case stringTag2:
- return new Ctor(object4);
- case regexpTag2:
- return cloneRegExp_default(object4);
- case setTag3:
- return new Ctor();
- case symbolTag2:
- return cloneSymbol_default(object4);
- }
- }
- var initCloneByTag_default = initCloneByTag;
- // node_modules/lodash-es/_initCloneObject.js
- function initCloneObject(object4) {
- return typeof object4.constructor == "function" && !isPrototype_default(object4) ? baseCreate_default(getPrototype_default(object4)) : {};
- }
- var initCloneObject_default = initCloneObject;
- // node_modules/lodash-es/_baseIsMap.js
- var mapTag4 = "[object Map]";
- function baseIsMap(value) {
- return isObjectLike_default(value) && getTag_default(value) == mapTag4;
- }
- var baseIsMap_default = baseIsMap;
- // node_modules/lodash-es/isMap.js
- var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
- var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
- var isMap_default = isMap;
- // node_modules/lodash-es/_baseIsSet.js
- var setTag4 = "[object Set]";
- function baseIsSet(value) {
- return isObjectLike_default(value) && getTag_default(value) == setTag4;
- }
- var baseIsSet_default = baseIsSet;
- // node_modules/lodash-es/isSet.js
- var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
- var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
- var isSet_default = isSet;
- // node_modules/lodash-es/_baseClone.js
- var CLONE_DEEP_FLAG = 1;
- var CLONE_FLAT_FLAG = 2;
- var CLONE_SYMBOLS_FLAG = 4;
- var argsTag3 = "[object Arguments]";
- var arrayTag2 = "[object Array]";
- var boolTag3 = "[object Boolean]";
- var dateTag3 = "[object Date]";
- var errorTag3 = "[object Error]";
- var funcTag3 = "[object Function]";
- var genTag2 = "[object GeneratorFunction]";
- var mapTag5 = "[object Map]";
- var numberTag3 = "[object Number]";
- var objectTag4 = "[object Object]";
- var regexpTag3 = "[object RegExp]";
- var setTag5 = "[object Set]";
- var stringTag3 = "[object String]";
- var symbolTag3 = "[object Symbol]";
- var weakMapTag3 = "[object WeakMap]";
- var arrayBufferTag3 = "[object ArrayBuffer]";
- var dataViewTag4 = "[object DataView]";
- var float32Tag3 = "[object Float32Array]";
- var float64Tag3 = "[object Float64Array]";
- var int8Tag3 = "[object Int8Array]";
- var int16Tag3 = "[object Int16Array]";
- var int32Tag3 = "[object Int32Array]";
- var uint8Tag3 = "[object Uint8Array]";
- var uint8ClampedTag3 = "[object Uint8ClampedArray]";
- var uint16Tag3 = "[object Uint16Array]";
- var uint32Tag3 = "[object Uint32Array]";
- var cloneableTags = {};
- 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;
- cloneableTags[errorTag3] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false;
- function baseClone(value, bitmask, customizer, key, object4, stack) {
- var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
- if (customizer) {
- result2 = object4 ? customizer(value, key, object4, stack) : customizer(value);
- }
- if (result2 !== void 0) {
- return result2;
- }
- if (!isObject_default(value)) {
- return value;
- }
- var isArr = isArray_default(value);
- if (isArr) {
- result2 = initCloneArray_default(value);
- if (!isDeep) {
- return copyArray_default(value, result2);
- }
- } else {
- var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2;
- if (isBuffer_default(value)) {
- return cloneBuffer_default(value, isDeep);
- }
- if (tag == objectTag4 || tag == argsTag3 || isFunc && !object4) {
- result2 = isFlat || isFunc ? {} : initCloneObject_default(value);
- if (!isDeep) {
- return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result2, value)) : copySymbols_default(value, baseAssign_default(result2, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object4 ? value : {};
- }
- result2 = initCloneByTag_default(value, tag, isDeep);
- }
- }
- stack || (stack = new Stack_default());
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result2);
- if (isSet_default(value)) {
- value.forEach(function(subValue) {
- result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
- });
- } else if (isMap_default(value)) {
- value.forEach(function(subValue, key2) {
- result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
- });
- }
- var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
- var props2 = isArr ? void 0 : keysFunc(value);
- arrayEach_default(props2 || value, function(subValue, key2) {
- if (props2) {
- key2 = subValue;
- subValue = value[key2];
- }
- assignValue_default(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
- });
- return result2;
- }
- var baseClone_default = baseClone;
- // node_modules/lodash-es/clone.js
- var CLONE_SYMBOLS_FLAG2 = 4;
- function clone(value) {
- return baseClone_default(value, CLONE_SYMBOLS_FLAG2);
- }
- var clone_default = clone;
- // node_modules/lodash-es/cloneDeep.js
- var CLONE_DEEP_FLAG2 = 1;
- var CLONE_SYMBOLS_FLAG3 = 4;
- function cloneDeep(value) {
- return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG3);
- }
- var cloneDeep_default = cloneDeep;
- // node_modules/lodash-es/cloneDeepWith.js
- var CLONE_DEEP_FLAG3 = 1;
- var CLONE_SYMBOLS_FLAG4 = 4;
- function cloneDeepWith(value, customizer) {
- customizer = typeof customizer == "function" ? customizer : void 0;
- return baseClone_default(value, CLONE_DEEP_FLAG3 | CLONE_SYMBOLS_FLAG4, customizer);
- }
- var cloneDeepWith_default = cloneDeepWith;
- // node_modules/lodash-es/cloneWith.js
- var CLONE_SYMBOLS_FLAG5 = 4;
- function cloneWith(value, customizer) {
- customizer = typeof customizer == "function" ? customizer : void 0;
- return baseClone_default(value, CLONE_SYMBOLS_FLAG5, customizer);
- }
- var cloneWith_default = cloneWith;
- // node_modules/lodash-es/commit.js
- function wrapperCommit() {
- return new LodashWrapper_default(this.value(), this.__chain__);
- }
- var commit_default = wrapperCommit;
- // node_modules/lodash-es/compact.js
- function compact(array4) {
- var index = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result2 = [];
- while (++index < length) {
- var value = array4[index];
- if (value) {
- result2[resIndex++] = value;
- }
- }
- return result2;
- }
- var compact_default = compact;
- // node_modules/lodash-es/concat.js
- function concat() {
- var length = arguments.length;
- if (!length) {
- return [];
- }
- var args = Array(length - 1), array4 = arguments[0], index = length;
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return arrayPush_default(isArray_default(array4) ? copyArray_default(array4) : [array4], baseFlatten_default(args, 1));
- }
- var concat_default = concat;
- // node_modules/lodash-es/_setCacheAdd.js
- var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED3);
- return this;
- }
- var setCacheAdd_default = setCacheAdd;
- // node_modules/lodash-es/_setCacheHas.js
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
- var setCacheHas_default = setCacheHas;
- // node_modules/lodash-es/_SetCache.js
- function SetCache(values2) {
- var index = -1, length = values2 == null ? 0 : values2.length;
- this.__data__ = new MapCache_default();
- while (++index < length) {
- this.add(values2[index]);
- }
- }
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
- SetCache.prototype.has = setCacheHas_default;
- var SetCache_default = SetCache;
- // node_modules/lodash-es/_arraySome.js
- function arraySome(array4, predicate) {
- var index = -1, length = array4 == null ? 0 : array4.length;
- while (++index < length) {
- if (predicate(array4[index], index, array4)) {
- return true;
- }
- }
- return false;
- }
- var arraySome_default = arraySome;
- // node_modules/lodash-es/_cacheHas.js
- function cacheHas(cache2, key) {
- return cache2.has(key);
- }
- var cacheHas_default = cacheHas;
- // node_modules/lodash-es/_equalArrays.js
- var COMPARE_PARTIAL_FLAG = 1;
- var COMPARE_UNORDERED_FLAG = 2;
- function equalArrays(array4, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array4.length, othLength = other.length;
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- var arrStacked = stack.get(array4);
- var othStacked = stack.get(other);
- if (arrStacked && othStacked) {
- return arrStacked == other && othStacked == array4;
- }
- var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
- stack.set(array4, other);
- stack.set(other, array4);
- while (++index < arrLength) {
- var arrValue = array4[index], othValue = other[index];
- if (customizer) {
- var compared = isPartial ? customizer(othValue, arrValue, index, other, array4, stack) : customizer(arrValue, othValue, index, array4, other, stack);
- }
- if (compared !== void 0) {
- if (compared) {
- continue;
- }
- result2 = false;
- break;
- }
- if (seen) {
- if (!arraySome_default(other, function(othValue2, othIndex) {
- if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result2 = false;
- break;
- }
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- result2 = false;
- break;
- }
- }
- stack["delete"](array4);
- stack["delete"](other);
- return result2;
- }
- var equalArrays_default = equalArrays;
- // node_modules/lodash-es/_mapToArray.js
- function mapToArray(map2) {
- var index = -1, result2 = Array(map2.size);
- map2.forEach(function(value, key) {
- result2[++index] = [key, value];
- });
- return result2;
- }
- var mapToArray_default = mapToArray;
- // node_modules/lodash-es/_setToArray.js
- function setToArray(set3) {
- var index = -1, result2 = Array(set3.size);
- set3.forEach(function(value) {
- result2[++index] = value;
- });
- return result2;
- }
- var setToArray_default = setToArray;
- // node_modules/lodash-es/_equalByTag.js
- var COMPARE_PARTIAL_FLAG2 = 1;
- var COMPARE_UNORDERED_FLAG2 = 2;
- var boolTag4 = "[object Boolean]";
- var dateTag4 = "[object Date]";
- var errorTag4 = "[object Error]";
- var mapTag6 = "[object Map]";
- var numberTag4 = "[object Number]";
- var regexpTag4 = "[object RegExp]";
- var setTag6 = "[object Set]";
- var stringTag4 = "[object String]";
- var symbolTag4 = "[object Symbol]";
- var arrayBufferTag4 = "[object ArrayBuffer]";
- var dataViewTag5 = "[object DataView]";
- var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0;
- var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0;
- function equalByTag(object4, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag5:
- if (object4.byteLength != other.byteLength || object4.byteOffset != other.byteOffset) {
- return false;
- }
- object4 = object4.buffer;
- other = other.buffer;
- case arrayBufferTag4:
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object4), new Uint8Array_default(other))) {
- return false;
- }
- return true;
- case boolTag4:
- case dateTag4:
- case numberTag4:
- return eq_default(+object4, +other);
- case errorTag4:
- return object4.name == other.name && object4.message == other.message;
- case regexpTag4:
- case stringTag4:
- return object4 == other + "";
- case mapTag6:
- var convert = mapToArray_default;
- case setTag6:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
- convert || (convert = setToArray_default);
- if (object4.size != other.size && !isPartial) {
- return false;
- }
- var stacked = stack.get(object4);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG2;
- stack.set(object4, other);
- var result2 = equalArrays_default(convert(object4), convert(other), bitmask, customizer, equalFunc, stack);
- stack["delete"](object4);
- return result2;
- case symbolTag4:
- if (symbolValueOf2) {
- return symbolValueOf2.call(object4) == symbolValueOf2.call(other);
- }
- }
- return false;
- }
- var equalByTag_default = equalByTag;
- // node_modules/lodash-es/_equalObjects.js
- var COMPARE_PARTIAL_FLAG3 = 1;
- var objectProto18 = Object.prototype;
- var hasOwnProperty15 = objectProto18.hasOwnProperty;
- function equalObjects(object4, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object4), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty15.call(other, key))) {
- return false;
- }
- }
- var objStacked = stack.get(object4);
- var othStacked = stack.get(other);
- if (objStacked && othStacked) {
- return objStacked == other && othStacked == object4;
- }
- var result2 = true;
- stack.set(object4, other);
- stack.set(other, object4);
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object4[key], othValue = other[key];
- if (customizer) {
- var compared = isPartial ? customizer(othValue, objValue, key, other, object4, stack) : customizer(objValue, othValue, key, object4, other, stack);
- }
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
- result2 = false;
- break;
- }
- skipCtor || (skipCtor = key == "constructor");
- }
- if (result2 && !skipCtor) {
- var objCtor = object4.constructor, othCtor = other.constructor;
- if (objCtor != othCtor && ("constructor" in object4 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
- result2 = false;
- }
- }
- stack["delete"](object4);
- stack["delete"](other);
- return result2;
- }
- var equalObjects_default = equalObjects;
- // node_modules/lodash-es/_baseIsEqualDeep.js
- var COMPARE_PARTIAL_FLAG4 = 1;
- var argsTag4 = "[object Arguments]";
- var arrayTag3 = "[object Array]";
- var objectTag5 = "[object Object]";
- var objectProto19 = Object.prototype;
- var hasOwnProperty16 = objectProto19.hasOwnProperty;
- function baseIsEqualDeep(object4, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray_default(object4), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag3 : getTag_default(object4), othTag = othIsArr ? arrayTag3 : getTag_default(other);
- objTag = objTag == argsTag4 ? objectTag5 : objTag;
- othTag = othTag == argsTag4 ? objectTag5 : othTag;
- var objIsObj = objTag == objectTag5, othIsObj = othTag == objectTag5, isSameTag = objTag == othTag;
- if (isSameTag && isBuffer_default(object4)) {
- if (!isBuffer_default(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack_default());
- return objIsArr || isTypedArray_default(object4) ? equalArrays_default(object4, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object4, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
- var objIsWrapped = objIsObj && hasOwnProperty16.call(object4, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty16.call(other, "__wrapped__");
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object4.value() : object4, othUnwrapped = othIsWrapped ? other.value() : other;
- stack || (stack = new Stack_default());
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack_default());
- return equalObjects_default(object4, other, bitmask, customizer, equalFunc, stack);
- }
- var baseIsEqualDeep_default = baseIsEqualDeep;
- // node_modules/lodash-es/_baseIsEqual.js
- function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
- }
- var baseIsEqual_default = baseIsEqual;
- // node_modules/lodash-es/_baseIsMatch.js
- var COMPARE_PARTIAL_FLAG5 = 1;
- var COMPARE_UNORDERED_FLAG3 = 2;
- function baseIsMatch(object4, source, matchData, customizer) {
- var index = matchData.length, length = index, noCustomizer = !customizer;
- if (object4 == null) {
- return !length;
- }
- object4 = Object(object4);
- while (index--) {
- var data = matchData[index];
- if (noCustomizer && data[2] ? data[1] !== object4[data[0]] : !(data[0] in object4)) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0], objValue = object4[key], srcValue = data[1];
- if (noCustomizer && data[2]) {
- if (objValue === void 0 && !(key in object4)) {
- return false;
- }
- } else {
- var stack = new Stack_default();
- if (customizer) {
- var result2 = customizer(objValue, srcValue, key, object4, source, stack);
- }
- if (!(result2 === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result2)) {
- return false;
- }
- }
- }
- return true;
- }
- var baseIsMatch_default = baseIsMatch;
- // node_modules/lodash-es/_isStrictComparable.js
- function isStrictComparable(value) {
- return value === value && !isObject_default(value);
- }
- var isStrictComparable_default = isStrictComparable;
- // node_modules/lodash-es/_getMatchData.js
- function getMatchData(object4) {
- var result2 = keys_default(object4), length = result2.length;
- while (length--) {
- var key = result2[length], value = object4[key];
- result2[length] = [key, value, isStrictComparable_default(value)];
- }
- return result2;
- }
- var getMatchData_default = getMatchData;
- // node_modules/lodash-es/_matchesStrictComparable.js
- function matchesStrictComparable(key, srcValue) {
- return function(object4) {
- if (object4 == null) {
- return false;
- }
- return object4[key] === srcValue && (srcValue !== void 0 || key in Object(object4));
- };
- }
- var matchesStrictComparable_default = matchesStrictComparable;
- // node_modules/lodash-es/_baseMatches.js
- function baseMatches(source) {
- var matchData = getMatchData_default(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
- }
- return function(object4) {
- return object4 === source || baseIsMatch_default(object4, source, matchData);
- };
- }
- var baseMatches_default = baseMatches;
- // node_modules/lodash-es/_baseHasIn.js
- function baseHasIn(object4, key) {
- return object4 != null && key in Object(object4);
- }
- var baseHasIn_default = baseHasIn;
- // node_modules/lodash-es/_hasPath.js
- function hasPath(object4, path, hasFunc) {
- path = castPath_default(path, object4);
- var index = -1, length = path.length, result2 = false;
- while (++index < length) {
- var key = toKey_default(path[index]);
- if (!(result2 = object4 != null && hasFunc(object4, key))) {
- break;
- }
- object4 = object4[key];
- }
- if (result2 || ++index != length) {
- return result2;
- }
- length = object4 == null ? 0 : object4.length;
- return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object4) || isArguments_default(object4));
- }
- var hasPath_default = hasPath;
- // node_modules/lodash-es/hasIn.js
- function hasIn(object4, path) {
- return object4 != null && hasPath_default(object4, path, baseHasIn_default);
- }
- var hasIn_default = hasIn;
- // node_modules/lodash-es/_baseMatchesProperty.js
- var COMPARE_PARTIAL_FLAG6 = 1;
- var COMPARE_UNORDERED_FLAG4 = 2;
- function baseMatchesProperty(path, srcValue) {
- if (isKey_default(path) && isStrictComparable_default(srcValue)) {
- return matchesStrictComparable_default(toKey_default(path), srcValue);
- }
- return function(object4) {
- var objValue = get_default(object4, path);
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object4, path) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
- };
- }
- var baseMatchesProperty_default = baseMatchesProperty;
- // node_modules/lodash-es/_baseProperty.js
- function baseProperty(key) {
- return function(object4) {
- return object4 == null ? void 0 : object4[key];
- };
- }
- var baseProperty_default = baseProperty;
- // node_modules/lodash-es/_basePropertyDeep.js
- function basePropertyDeep(path) {
- return function(object4) {
- return baseGet_default(object4, path);
- };
- }
- var basePropertyDeep_default = basePropertyDeep;
- // node_modules/lodash-es/property.js
- function property(path) {
- return isKey_default(path) ? baseProperty_default(toKey_default(path)) : basePropertyDeep_default(path);
- }
- var property_default = property;
- // node_modules/lodash-es/_baseIteratee.js
- function baseIteratee(value) {
- if (typeof value == "function") {
- return value;
- }
- if (value == null) {
- return identity_default;
- }
- if (typeof value == "object") {
- return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value);
- }
- return property_default(value);
- }
- var baseIteratee_default = baseIteratee;
- // node_modules/lodash-es/cond.js
- var FUNC_ERROR_TEXT5 = "Expected a function";
- function cond(pairs) {
- var length = pairs == null ? 0 : pairs.length, toIteratee = baseIteratee_default;
- pairs = !length ? [] : arrayMap_default(pairs, function(pair) {
- if (typeof pair[1] != "function") {
- throw new TypeError(FUNC_ERROR_TEXT5);
- }
- return [toIteratee(pair[0]), pair[1]];
- });
- return baseRest_default(function(args) {
- var index = -1;
- while (++index < length) {
- var pair = pairs[index];
- if (apply_default(pair[0], this, args)) {
- return apply_default(pair[1], this, args);
- }
- }
- });
- }
- var cond_default = cond;
- // node_modules/lodash-es/_baseConformsTo.js
- function baseConformsTo(object4, source, props2) {
- var length = props2.length;
- if (object4 == null) {
- return !length;
- }
- object4 = Object(object4);
- while (length--) {
- var key = props2[length], predicate = source[key], value = object4[key];
- if (value === void 0 && !(key in object4) || !predicate(value)) {
- return false;
- }
- }
- return true;
- }
- var baseConformsTo_default = baseConformsTo;
- // node_modules/lodash-es/_baseConforms.js
- function baseConforms(source) {
- var props2 = keys_default(source);
- return function(object4) {
- return baseConformsTo_default(object4, source, props2);
- };
- }
- var baseConforms_default = baseConforms;
- // node_modules/lodash-es/conforms.js
- var CLONE_DEEP_FLAG4 = 1;
- function conforms(source) {
- return baseConforms_default(baseClone_default(source, CLONE_DEEP_FLAG4));
- }
- var conforms_default = conforms;
- // node_modules/lodash-es/conformsTo.js
- function conformsTo(object4, source) {
- return source == null || baseConformsTo_default(object4, source, keys_default(source));
- }
- var conformsTo_default = conformsTo;
- // node_modules/lodash-es/_arrayAggregator.js
- function arrayAggregator(array4, setter, iteratee2, accumulator) {
- var index = -1, length = array4 == null ? 0 : array4.length;
- while (++index < length) {
- var value = array4[index];
- setter(accumulator, value, iteratee2(value), array4);
- }
- return accumulator;
- }
- var arrayAggregator_default = arrayAggregator;
- // node_modules/lodash-es/_createBaseFor.js
- function createBaseFor(fromRight) {
- return function(object4, iteratee2, keysFunc) {
- var index = -1, iterable = Object(object4), props2 = keysFunc(object4), length = props2.length;
- while (length--) {
- var key = props2[fromRight ? length : ++index];
- if (iteratee2(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object4;
- };
- }
- var createBaseFor_default = createBaseFor;
- // node_modules/lodash-es/_baseFor.js
- var baseFor = createBaseFor_default();
- var baseFor_default = baseFor;
- // node_modules/lodash-es/_baseForOwn.js
- function baseForOwn(object4, iteratee2) {
- return object4 && baseFor_default(object4, iteratee2, keys_default);
- }
- var baseForOwn_default = baseForOwn;
- // node_modules/lodash-es/_createBaseEach.js
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee2) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike_default(collection)) {
- return eachFunc(collection, iteratee2);
- }
- var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
- while (fromRight ? index-- : ++index < length) {
- if (iteratee2(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
- var createBaseEach_default = createBaseEach;
- // node_modules/lodash-es/_baseEach.js
- var baseEach = createBaseEach_default(baseForOwn_default);
- var baseEach_default = baseEach;
- // node_modules/lodash-es/_baseAggregator.js
- function baseAggregator(collection, setter, iteratee2, accumulator) {
- baseEach_default(collection, function(value, key, collection2) {
- setter(accumulator, value, iteratee2(value), collection2);
- });
- return accumulator;
- }
- var baseAggregator_default = baseAggregator;
- // node_modules/lodash-es/_createAggregator.js
- function createAggregator(setter, initializer) {
- return function(collection, iteratee2) {
- var func = isArray_default(collection) ? arrayAggregator_default : baseAggregator_default, accumulator = initializer ? initializer() : {};
- return func(collection, setter, baseIteratee_default(iteratee2, 2), accumulator);
- };
- }
- var createAggregator_default = createAggregator;
- // node_modules/lodash-es/countBy.js
- var objectProto20 = Object.prototype;
- var hasOwnProperty17 = objectProto20.hasOwnProperty;
- var countBy = createAggregator_default(function(result2, value, key) {
- if (hasOwnProperty17.call(result2, key)) {
- ++result2[key];
- } else {
- baseAssignValue_default(result2, key, 1);
- }
- });
- var countBy_default = countBy;
- // node_modules/lodash-es/create.js
- function create(prototype, properties) {
- var result2 = baseCreate_default(prototype);
- return properties == null ? result2 : baseAssign_default(result2, properties);
- }
- var create_default = create;
- // node_modules/lodash-es/curry.js
- var WRAP_CURRY_FLAG6 = 8;
- function curry(func, arity, guard) {
- arity = guard ? void 0 : arity;
- var result2 = createWrap_default(func, WRAP_CURRY_FLAG6, void 0, void 0, void 0, void 0, void 0, arity);
- result2.placeholder = curry.placeholder;
- return result2;
- }
- curry.placeholder = {};
- var curry_default = curry;
- // node_modules/lodash-es/curryRight.js
- var WRAP_CURRY_RIGHT_FLAG4 = 16;
- function curryRight(func, arity, guard) {
- arity = guard ? void 0 : arity;
- var result2 = createWrap_default(func, WRAP_CURRY_RIGHT_FLAG4, void 0, void 0, void 0, void 0, void 0, arity);
- result2.placeholder = curryRight.placeholder;
- return result2;
- }
- curryRight.placeholder = {};
- var curryRight_default = curryRight;
- // node_modules/lodash-es/now.js
- var now = function() {
- return root_default.Date.now();
- };
- var now_default = now;
- // node_modules/lodash-es/debounce.js
- var FUNC_ERROR_TEXT6 = "Expected a function";
- var nativeMax6 = Math.max;
- var nativeMin4 = Math.min;
- function debounce(func, wait, options) {
- var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT6);
- }
- wait = toNumber_default(wait) || 0;
- if (isObject_default(options)) {
- leading = !!options.leading;
- maxing = "maxWait" in options;
- maxWait = maxing ? nativeMax6(toNumber_default(options.maxWait) || 0, wait) : maxWait;
- trailing = "trailing" in options ? !!options.trailing : trailing;
- }
- function invokeFunc(time) {
- var args = lastArgs, thisArg = lastThis;
- lastArgs = lastThis = void 0;
- lastInvokeTime = time;
- result2 = func.apply(thisArg, args);
- return result2;
- }
- function leadingEdge(time) {
- lastInvokeTime = time;
- timerId = setTimeout(timerExpired, wait);
- return leading ? invokeFunc(time) : result2;
- }
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
- return maxing ? nativeMin4(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
- }
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
- }
- function timerExpired() {
- var time = now_default();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
- function trailingEdge(time) {
- timerId = void 0;
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = void 0;
- return result2;
- }
- function cancel() {
- if (timerId !== void 0) {
- clearTimeout(timerId);
- }
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = void 0;
- }
- function flush() {
- return timerId === void 0 ? result2 : trailingEdge(now_default());
- }
- function debounced() {
- var time = now_default(), isInvoking = shouldInvoke(time);
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
- if (isInvoking) {
- if (timerId === void 0) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- clearTimeout(timerId);
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === void 0) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result2;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
- var debounce_default = debounce;
- // node_modules/lodash-es/defaultTo.js
- function defaultTo(value, defaultValue) {
- return value == null || value !== value ? defaultValue : value;
- }
- var defaultTo_default = defaultTo;
- // node_modules/lodash-es/defaults.js
- var objectProto21 = Object.prototype;
- var hasOwnProperty18 = objectProto21.hasOwnProperty;
- var defaults = baseRest_default(function(object4, sources) {
- object4 = Object(object4);
- var index = -1;
- var length = sources.length;
- var guard = length > 2 ? sources[2] : void 0;
- if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
- length = 1;
- }
- while (++index < length) {
- var source = sources[index];
- var props2 = keysIn_default(source);
- var propsIndex = -1;
- var propsLength = props2.length;
- while (++propsIndex < propsLength) {
- var key = props2[propsIndex];
- var value = object4[key];
- if (value === void 0 || eq_default(value, objectProto21[key]) && !hasOwnProperty18.call(object4, key)) {
- object4[key] = source[key];
- }
- }
- }
- return object4;
- });
- var defaults_default = defaults;
- // node_modules/lodash-es/_assignMergeValue.js
- function assignMergeValue(object4, key, value) {
- if (value !== void 0 && !eq_default(object4[key], value) || value === void 0 && !(key in object4)) {
- baseAssignValue_default(object4, key, value);
- }
- }
- var assignMergeValue_default = assignMergeValue;
- // node_modules/lodash-es/isArrayLikeObject.js
- function isArrayLikeObject(value) {
- return isObjectLike_default(value) && isArrayLike_default(value);
- }
- var isArrayLikeObject_default = isArrayLikeObject;
- // node_modules/lodash-es/_safeGet.js
- function safeGet(object4, key) {
- if (key === "constructor" && typeof object4[key] === "function") {
- return;
- }
- if (key == "__proto__") {
- return;
- }
- return object4[key];
- }
- var safeGet_default = safeGet;
- // node_modules/lodash-es/toPlainObject.js
- function toPlainObject(value) {
- return copyObject_default(value, keysIn_default(value));
- }
- var toPlainObject_default = toPlainObject;
- // node_modules/lodash-es/_baseMergeDeep.js
- function baseMergeDeep(object4, source, key, srcIndex, mergeFunc, customizer, stack) {
- var objValue = safeGet_default(object4, key), srcValue = safeGet_default(source, key), stacked = stack.get(srcValue);
- if (stacked) {
- assignMergeValue_default(object4, key, stacked);
- return;
- }
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object4, source, stack) : void 0;
- var isCommon = newValue === void 0;
- if (isCommon) {
- var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue);
- newValue = srcValue;
- if (isArr || isBuff || isTyped) {
- if (isArray_default(objValue)) {
- newValue = objValue;
- } else if (isArrayLikeObject_default(objValue)) {
- newValue = copyArray_default(objValue);
- } else if (isBuff) {
- isCommon = false;
- newValue = cloneBuffer_default(srcValue, true);
- } else if (isTyped) {
- isCommon = false;
- newValue = cloneTypedArray_default(srcValue, true);
- } else {
- newValue = [];
- }
- } else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) {
- newValue = objValue;
- if (isArguments_default(objValue)) {
- newValue = toPlainObject_default(objValue);
- } else if (!isObject_default(objValue) || isFunction_default(objValue)) {
- newValue = initCloneObject_default(srcValue);
- }
- } else {
- isCommon = false;
- }
- }
- if (isCommon) {
- stack.set(srcValue, newValue);
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
- stack["delete"](srcValue);
- }
- assignMergeValue_default(object4, key, newValue);
- }
- var baseMergeDeep_default = baseMergeDeep;
- // node_modules/lodash-es/_baseMerge.js
- function baseMerge(object4, source, srcIndex, customizer, stack) {
- if (object4 === source) {
- return;
- }
- baseFor_default(source, function(srcValue, key) {
- stack || (stack = new Stack_default());
- if (isObject_default(srcValue)) {
- baseMergeDeep_default(object4, source, key, srcIndex, baseMerge, customizer, stack);
- } else {
- var newValue = customizer ? customizer(safeGet_default(object4, key), srcValue, key + "", object4, source, stack) : void 0;
- if (newValue === void 0) {
- newValue = srcValue;
- }
- assignMergeValue_default(object4, key, newValue);
- }
- }, keysIn_default);
- }
- var baseMerge_default = baseMerge;
- // node_modules/lodash-es/_customDefaultsMerge.js
- function customDefaultsMerge(objValue, srcValue, key, object4, source, stack) {
- if (isObject_default(objValue) && isObject_default(srcValue)) {
- stack.set(srcValue, objValue);
- baseMerge_default(objValue, srcValue, void 0, customDefaultsMerge, stack);
- stack["delete"](srcValue);
- }
- return objValue;
- }
- var customDefaultsMerge_default = customDefaultsMerge;
- // node_modules/lodash-es/mergeWith.js
- var mergeWith = createAssigner_default(function(object4, source, srcIndex, customizer) {
- baseMerge_default(object4, source, srcIndex, customizer);
- });
- var mergeWith_default = mergeWith;
- // node_modules/lodash-es/defaultsDeep.js
- var defaultsDeep = baseRest_default(function(args) {
- args.push(void 0, customDefaultsMerge_default);
- return apply_default(mergeWith_default, void 0, args);
- });
- var defaultsDeep_default = defaultsDeep;
- // node_modules/lodash-es/_baseDelay.js
- var FUNC_ERROR_TEXT7 = "Expected a function";
- function baseDelay(func, wait, args) {
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT7);
- }
- return setTimeout(function() {
- func.apply(void 0, args);
- }, wait);
- }
- var baseDelay_default = baseDelay;
- // node_modules/lodash-es/defer.js
- var defer = baseRest_default(function(func, args) {
- return baseDelay_default(func, 1, args);
- });
- var defer_default = defer;
- // node_modules/lodash-es/delay.js
- var delay = baseRest_default(function(func, wait, args) {
- return baseDelay_default(func, toNumber_default(wait) || 0, args);
- });
- var delay_default = delay;
- // node_modules/lodash-es/_arrayIncludesWith.js
- function arrayIncludesWith(array4, value, comparator) {
- var index = -1, length = array4 == null ? 0 : array4.length;
- while (++index < length) {
- if (comparator(value, array4[index])) {
- return true;
- }
- }
- return false;
- }
- var arrayIncludesWith_default = arrayIncludesWith;
- // node_modules/lodash-es/_baseDifference.js
- var LARGE_ARRAY_SIZE2 = 200;
- function baseDifference(array4, values2, iteratee2, comparator) {
- var index = -1, includes2 = arrayIncludes_default, isCommon = true, length = array4.length, result2 = [], valuesLength = values2.length;
- if (!length) {
- return result2;
- }
- if (iteratee2) {
- values2 = arrayMap_default(values2, baseUnary_default(iteratee2));
- }
- if (comparator) {
- includes2 = arrayIncludesWith_default;
- isCommon = false;
- } else if (values2.length >= LARGE_ARRAY_SIZE2) {
- includes2 = cacheHas_default;
- isCommon = false;
- values2 = new SetCache_default(values2);
- }
- outer:
- while (++index < length) {
- var value = array4[index], computed2 = iteratee2 == null ? value : iteratee2(value);
- value = comparator || value !== 0 ? value : 0;
- if (isCommon && computed2 === computed2) {
- var valuesIndex = valuesLength;
- while (valuesIndex--) {
- if (values2[valuesIndex] === computed2) {
- continue outer;
- }
- }
- result2.push(value);
- } else if (!includes2(values2, computed2, comparator)) {
- result2.push(value);
- }
- }
- return result2;
- }
- var baseDifference_default = baseDifference;
- // node_modules/lodash-es/difference.js
- var difference = baseRest_default(function(array4, values2) {
- return isArrayLikeObject_default(array4) ? baseDifference_default(array4, baseFlatten_default(values2, 1, isArrayLikeObject_default, true)) : [];
- });
- var difference_default = difference;
- // node_modules/lodash-es/last.js
- function last(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? array4[length - 1] : void 0;
- }
- var last_default = last;
- // node_modules/lodash-es/differenceBy.js
- var differenceBy = baseRest_default(function(array4, values2) {
- var iteratee2 = last_default(values2);
- if (isArrayLikeObject_default(iteratee2)) {
- iteratee2 = void 0;
- }
- return isArrayLikeObject_default(array4) ? baseDifference_default(array4, baseFlatten_default(values2, 1, isArrayLikeObject_default, true), baseIteratee_default(iteratee2, 2)) : [];
- });
- var differenceBy_default = differenceBy;
- // node_modules/lodash-es/differenceWith.js
- var differenceWith = baseRest_default(function(array4, values2) {
- var comparator = last_default(values2);
- if (isArrayLikeObject_default(comparator)) {
- comparator = void 0;
- }
- return isArrayLikeObject_default(array4) ? baseDifference_default(array4, baseFlatten_default(values2, 1, isArrayLikeObject_default, true), void 0, comparator) : [];
- });
- var differenceWith_default = differenceWith;
- // node_modules/lodash-es/divide.js
- var divide = createMathOperation_default(function(dividend, divisor) {
- return dividend / divisor;
- }, 1);
- var divide_default = divide;
- // node_modules/lodash-es/drop.js
- function drop(array4, n, guard) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return [];
- }
- n = guard || n === void 0 ? 1 : toInteger_default(n);
- return baseSlice_default(array4, n < 0 ? 0 : n, length);
- }
- var drop_default = drop;
- // node_modules/lodash-es/dropRight.js
- function dropRight(array4, n, guard) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return [];
- }
- n = guard || n === void 0 ? 1 : toInteger_default(n);
- n = length - n;
- return baseSlice_default(array4, 0, n < 0 ? 0 : n);
- }
- var dropRight_default = dropRight;
- // node_modules/lodash-es/_baseWhile.js
- function baseWhile(array4, predicate, isDrop, fromRight) {
- var length = array4.length, index = fromRight ? length : -1;
- while ((fromRight ? index-- : ++index < length) && predicate(array4[index], index, array4)) {
- }
- return isDrop ? baseSlice_default(array4, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice_default(array4, fromRight ? index + 1 : 0, fromRight ? length : index);
- }
- var baseWhile_default = baseWhile;
- // node_modules/lodash-es/dropRightWhile.js
- function dropRightWhile(array4, predicate) {
- return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3), true, true) : [];
- }
- var dropRightWhile_default = dropRightWhile;
- // node_modules/lodash-es/dropWhile.js
- function dropWhile(array4, predicate) {
- return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3), true) : [];
- }
- var dropWhile_default = dropWhile;
- // node_modules/lodash-es/_castFunction.js
- function castFunction(value) {
- return typeof value == "function" ? value : identity_default;
- }
- var castFunction_default = castFunction;
- // node_modules/lodash-es/forEach.js
- function forEach(collection, iteratee2) {
- var func = isArray_default(collection) ? arrayEach_default : baseEach_default;
- return func(collection, castFunction_default(iteratee2));
- }
- var forEach_default = forEach;
- // node_modules/lodash-es/_arrayEachRight.js
- function arrayEachRight(array4, iteratee2) {
- var length = array4 == null ? 0 : array4.length;
- while (length--) {
- if (iteratee2(array4[length], length, array4) === false) {
- break;
- }
- }
- return array4;
- }
- var arrayEachRight_default = arrayEachRight;
- // node_modules/lodash-es/_baseForRight.js
- var baseForRight = createBaseFor_default(true);
- var baseForRight_default = baseForRight;
- // node_modules/lodash-es/_baseForOwnRight.js
- function baseForOwnRight(object4, iteratee2) {
- return object4 && baseForRight_default(object4, iteratee2, keys_default);
- }
- var baseForOwnRight_default = baseForOwnRight;
- // node_modules/lodash-es/_baseEachRight.js
- var baseEachRight = createBaseEach_default(baseForOwnRight_default, true);
- var baseEachRight_default = baseEachRight;
- // node_modules/lodash-es/forEachRight.js
- function forEachRight(collection, iteratee2) {
- var func = isArray_default(collection) ? arrayEachRight_default : baseEachRight_default;
- return func(collection, castFunction_default(iteratee2));
- }
- var forEachRight_default = forEachRight;
- // node_modules/lodash-es/endsWith.js
- function endsWith(string3, target2, position) {
- string3 = toString_default(string3);
- target2 = baseToString_default(target2);
- var length = string3.length;
- position = position === void 0 ? length : baseClamp_default(toInteger_default(position), 0, length);
- var end = position;
- position -= target2.length;
- return position >= 0 && string3.slice(position, end) == target2;
- }
- var endsWith_default = endsWith;
- // node_modules/lodash-es/_baseToPairs.js
- function baseToPairs(object4, props2) {
- return arrayMap_default(props2, function(key) {
- return [key, object4[key]];
- });
- }
- var baseToPairs_default = baseToPairs;
- // node_modules/lodash-es/_setToPairs.js
- function setToPairs(set3) {
- var index = -1, result2 = Array(set3.size);
- set3.forEach(function(value) {
- result2[++index] = [value, value];
- });
- return result2;
- }
- var setToPairs_default = setToPairs;
- // node_modules/lodash-es/_createToPairs.js
- var mapTag7 = "[object Map]";
- var setTag7 = "[object Set]";
- function createToPairs(keysFunc) {
- return function(object4) {
- var tag = getTag_default(object4);
- if (tag == mapTag7) {
- return mapToArray_default(object4);
- }
- if (tag == setTag7) {
- return setToPairs_default(object4);
- }
- return baseToPairs_default(object4, keysFunc(object4));
- };
- }
- var createToPairs_default = createToPairs;
- // node_modules/lodash-es/toPairs.js
- var toPairs = createToPairs_default(keys_default);
- var toPairs_default = toPairs;
- // node_modules/lodash-es/toPairsIn.js
- var toPairsIn = createToPairs_default(keysIn_default);
- var toPairsIn_default = toPairsIn;
- // node_modules/lodash-es/_escapeHtmlChar.js
- var htmlEscapes = {
- "&": "&",
- "<": "<",
- ">": ">",
- '"': """,
- "'": "'"
- };
- var escapeHtmlChar = basePropertyOf_default(htmlEscapes);
- var escapeHtmlChar_default = escapeHtmlChar;
- // node_modules/lodash-es/escape.js
- var reUnescapedHtml = /[&<>"']/g;
- var reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
- function escape(string3) {
- string3 = toString_default(string3);
- return string3 && reHasUnescapedHtml.test(string3) ? string3.replace(reUnescapedHtml, escapeHtmlChar_default) : string3;
- }
- var escape_default = escape;
- // node_modules/lodash-es/escapeRegExp.js
- var reRegExpChar2 = /[\\^$.*+?()[\]{}|]/g;
- var reHasRegExpChar = RegExp(reRegExpChar2.source);
- function escapeRegExp(string3) {
- string3 = toString_default(string3);
- return string3 && reHasRegExpChar.test(string3) ? string3.replace(reRegExpChar2, "\\$&") : string3;
- }
- var escapeRegExp_default = escapeRegExp;
- // node_modules/lodash-es/_arrayEvery.js
- function arrayEvery(array4, predicate) {
- var index = -1, length = array4 == null ? 0 : array4.length;
- while (++index < length) {
- if (!predicate(array4[index], index, array4)) {
- return false;
- }
- }
- return true;
- }
- var arrayEvery_default = arrayEvery;
- // node_modules/lodash-es/_baseEvery.js
- function baseEvery(collection, predicate) {
- var result2 = true;
- baseEach_default(collection, function(value, index, collection2) {
- result2 = !!predicate(value, index, collection2);
- return result2;
- });
- return result2;
- }
- var baseEvery_default = baseEvery;
- // node_modules/lodash-es/every.js
- function every(collection, predicate, guard) {
- var func = isArray_default(collection) ? arrayEvery_default : baseEvery_default;
- if (guard && isIterateeCall_default(collection, predicate, guard)) {
- predicate = void 0;
- }
- return func(collection, baseIteratee_default(predicate, 3));
- }
- var every_default = every;
- // node_modules/lodash-es/toLength.js
- var MAX_ARRAY_LENGTH2 = 4294967295;
- function toLength(value) {
- return value ? baseClamp_default(toInteger_default(value), 0, MAX_ARRAY_LENGTH2) : 0;
- }
- var toLength_default = toLength;
- // node_modules/lodash-es/_baseFill.js
- function baseFill(array4, value, start, end) {
- var length = array4.length;
- start = toInteger_default(start);
- if (start < 0) {
- start = -start > length ? 0 : length + start;
- }
- end = end === void 0 || end > length ? length : toInteger_default(end);
- if (end < 0) {
- end += length;
- }
- end = start > end ? 0 : toLength_default(end);
- while (start < end) {
- array4[start++] = value;
- }
- return array4;
- }
- var baseFill_default = baseFill;
- // node_modules/lodash-es/fill.js
- function fill(array4, value, start, end) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return [];
- }
- if (start && typeof start != "number" && isIterateeCall_default(array4, value, start)) {
- start = 0;
- end = length;
- }
- return baseFill_default(array4, value, start, end);
- }
- var fill_default = fill;
- // node_modules/lodash-es/_baseFilter.js
- function baseFilter(collection, predicate) {
- var result2 = [];
- baseEach_default(collection, function(value, index, collection2) {
- if (predicate(value, index, collection2)) {
- result2.push(value);
- }
- });
- return result2;
- }
- var baseFilter_default = baseFilter;
- // node_modules/lodash-es/filter.js
- function filter(collection, predicate) {
- var func = isArray_default(collection) ? arrayFilter_default : baseFilter_default;
- return func(collection, baseIteratee_default(predicate, 3));
- }
- var filter_default = filter;
- // node_modules/lodash-es/_createFind.js
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- if (!isArrayLike_default(collection)) {
- var iteratee2 = baseIteratee_default(predicate, 3);
- collection = keys_default(collection);
- predicate = function(key) {
- return iteratee2(iterable[key], key, iterable);
- };
- }
- var index = findIndexFunc(collection, predicate, fromIndex);
- return index > -1 ? iterable[iteratee2 ? collection[index] : index] : void 0;
- };
- }
- var createFind_default = createFind;
- // node_modules/lodash-es/findIndex.js
- var nativeMax7 = Math.max;
- function findIndex(array4, predicate, fromIndex) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
- if (index < 0) {
- index = nativeMax7(length + index, 0);
- }
- return baseFindIndex_default(array4, baseIteratee_default(predicate, 3), index);
- }
- var findIndex_default = findIndex;
- // node_modules/lodash-es/find.js
- var find = createFind_default(findIndex_default);
- var find_default = find;
- // node_modules/lodash-es/_baseFindKey.js
- function baseFindKey(collection, predicate, eachFunc) {
- var result2;
- eachFunc(collection, function(value, key, collection2) {
- if (predicate(value, key, collection2)) {
- result2 = key;
- return false;
- }
- });
- return result2;
- }
- var baseFindKey_default = baseFindKey;
- // node_modules/lodash-es/findKey.js
- function findKey(object4, predicate) {
- return baseFindKey_default(object4, baseIteratee_default(predicate, 3), baseForOwn_default);
- }
- var findKey_default = findKey;
- // node_modules/lodash-es/findLastIndex.js
- var nativeMax8 = Math.max;
- var nativeMin5 = Math.min;
- function findLastIndex(array4, predicate, fromIndex) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return -1;
- }
- var index = length - 1;
- if (fromIndex !== void 0) {
- index = toInteger_default(fromIndex);
- index = fromIndex < 0 ? nativeMax8(length + index, 0) : nativeMin5(index, length - 1);
- }
- return baseFindIndex_default(array4, baseIteratee_default(predicate, 3), index, true);
- }
- var findLastIndex_default = findLastIndex;
- // node_modules/lodash-es/findLast.js
- var findLast = createFind_default(findLastIndex_default);
- var findLast_default = findLast;
- // node_modules/lodash-es/findLastKey.js
- function findLastKey(object4, predicate) {
- return baseFindKey_default(object4, baseIteratee_default(predicate, 3), baseForOwnRight_default);
- }
- var findLastKey_default = findLastKey;
- // node_modules/lodash-es/head.js
- function head(array4) {
- return array4 && array4.length ? array4[0] : void 0;
- }
- var head_default = head;
- // node_modules/lodash-es/_baseMap.js
- function baseMap(collection, iteratee2) {
- var index = -1, result2 = isArrayLike_default(collection) ? Array(collection.length) : [];
- baseEach_default(collection, function(value, key, collection2) {
- result2[++index] = iteratee2(value, key, collection2);
- });
- return result2;
- }
- var baseMap_default = baseMap;
- // node_modules/lodash-es/map.js
- function map(collection, iteratee2) {
- var func = isArray_default(collection) ? arrayMap_default : baseMap_default;
- return func(collection, baseIteratee_default(iteratee2, 3));
- }
- var map_default = map;
- // node_modules/lodash-es/flatMap.js
- function flatMap(collection, iteratee2) {
- return baseFlatten_default(map_default(collection, iteratee2), 1);
- }
- var flatMap_default = flatMap;
- // node_modules/lodash-es/flatMapDeep.js
- var INFINITY4 = 1 / 0;
- function flatMapDeep(collection, iteratee2) {
- return baseFlatten_default(map_default(collection, iteratee2), INFINITY4);
- }
- var flatMapDeep_default = flatMapDeep;
- // node_modules/lodash-es/flatMapDepth.js
- function flatMapDepth(collection, iteratee2, depth) {
- depth = depth === void 0 ? 1 : toInteger_default(depth);
- return baseFlatten_default(map_default(collection, iteratee2), depth);
- }
- var flatMapDepth_default = flatMapDepth;
- // node_modules/lodash-es/flattenDeep.js
- var INFINITY5 = 1 / 0;
- function flattenDeep(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? baseFlatten_default(array4, INFINITY5) : [];
- }
- var flattenDeep_default = flattenDeep;
- // node_modules/lodash-es/flattenDepth.js
- function flattenDepth(array4, depth) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return [];
- }
- depth = depth === void 0 ? 1 : toInteger_default(depth);
- return baseFlatten_default(array4, depth);
- }
- var flattenDepth_default = flattenDepth;
- // node_modules/lodash-es/flip.js
- var WRAP_FLIP_FLAG3 = 512;
- function flip(func) {
- return createWrap_default(func, WRAP_FLIP_FLAG3);
- }
- var flip_default = flip;
- // node_modules/lodash-es/floor.js
- var floor = createRound_default("floor");
- var floor_default = floor;
- // node_modules/lodash-es/_createFlow.js
- var FUNC_ERROR_TEXT8 = "Expected a function";
- var WRAP_CURRY_FLAG7 = 8;
- var WRAP_PARTIAL_FLAG6 = 32;
- var WRAP_ARY_FLAG5 = 128;
- var WRAP_REARG_FLAG3 = 256;
- function createFlow(fromRight) {
- return flatRest_default(function(funcs) {
- var length = funcs.length, index = length, prereq = LodashWrapper_default.prototype.thru;
- if (fromRight) {
- funcs.reverse();
- }
- while (index--) {
- var func = funcs[index];
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT8);
- }
- if (prereq && !wrapper && getFuncName_default(func) == "wrapper") {
- var wrapper = new LodashWrapper_default([], true);
- }
- }
- index = wrapper ? index : length;
- while (++index < length) {
- func = funcs[index];
- var funcName = getFuncName_default(func), data = funcName == "wrapper" ? getData_default(func) : void 0;
- 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) {
- wrapper = wrapper[getFuncName_default(data[0])].apply(wrapper, data[3]);
- } else {
- wrapper = func.length == 1 && isLaziable_default(func) ? wrapper[funcName]() : wrapper.thru(func);
- }
- }
- return function() {
- var args = arguments, value = args[0];
- if (wrapper && args.length == 1 && isArray_default(value)) {
- return wrapper.plant(value).value();
- }
- var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
- while (++index2 < length) {
- result2 = funcs[index2].call(this, result2);
- }
- return result2;
- };
- });
- }
- var createFlow_default = createFlow;
- // node_modules/lodash-es/flow.js
- var flow = createFlow_default();
- var flow_default = flow;
- // node_modules/lodash-es/flowRight.js
- var flowRight = createFlow_default(true);
- var flowRight_default = flowRight;
- // node_modules/lodash-es/forIn.js
- function forIn(object4, iteratee2) {
- return object4 == null ? object4 : baseFor_default(object4, castFunction_default(iteratee2), keysIn_default);
- }
- var forIn_default = forIn;
- // node_modules/lodash-es/forInRight.js
- function forInRight(object4, iteratee2) {
- return object4 == null ? object4 : baseForRight_default(object4, castFunction_default(iteratee2), keysIn_default);
- }
- var forInRight_default = forInRight;
- // node_modules/lodash-es/forOwn.js
- function forOwn(object4, iteratee2) {
- return object4 && baseForOwn_default(object4, castFunction_default(iteratee2));
- }
- var forOwn_default = forOwn;
- // node_modules/lodash-es/forOwnRight.js
- function forOwnRight(object4, iteratee2) {
- return object4 && baseForOwnRight_default(object4, castFunction_default(iteratee2));
- }
- var forOwnRight_default = forOwnRight;
- // node_modules/lodash-es/fromPairs.js
- function fromPairs(pairs) {
- var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
- while (++index < length) {
- var pair = pairs[index];
- result2[pair[0]] = pair[1];
- }
- return result2;
- }
- var fromPairs_default = fromPairs;
- // node_modules/lodash-es/_baseFunctions.js
- function baseFunctions(object4, props2) {
- return arrayFilter_default(props2, function(key) {
- return isFunction_default(object4[key]);
- });
- }
- var baseFunctions_default = baseFunctions;
- // node_modules/lodash-es/functions.js
- function functions(object4) {
- return object4 == null ? [] : baseFunctions_default(object4, keys_default(object4));
- }
- var functions_default = functions;
- // node_modules/lodash-es/functionsIn.js
- function functionsIn(object4) {
- return object4 == null ? [] : baseFunctions_default(object4, keysIn_default(object4));
- }
- var functionsIn_default = functionsIn;
- // node_modules/lodash-es/groupBy.js
- var objectProto22 = Object.prototype;
- var hasOwnProperty19 = objectProto22.hasOwnProperty;
- var groupBy = createAggregator_default(function(result2, value, key) {
- if (hasOwnProperty19.call(result2, key)) {
- result2[key].push(value);
- } else {
- baseAssignValue_default(result2, key, [value]);
- }
- });
- var groupBy_default = groupBy;
- // node_modules/lodash-es/_baseGt.js
- function baseGt(value, other) {
- return value > other;
- }
- var baseGt_default = baseGt;
- // node_modules/lodash-es/_createRelationalOperation.js
- function createRelationalOperation(operator) {
- return function(value, other) {
- if (!(typeof value == "string" && typeof other == "string")) {
- value = toNumber_default(value);
- other = toNumber_default(other);
- }
- return operator(value, other);
- };
- }
- var createRelationalOperation_default = createRelationalOperation;
- // node_modules/lodash-es/gt.js
- var gt = createRelationalOperation_default(baseGt_default);
- var gt_default = gt;
- // node_modules/lodash-es/gte.js
- var gte = createRelationalOperation_default(function(value, other) {
- return value >= other;
- });
- var gte_default = gte;
- // node_modules/lodash-es/_baseHas.js
- var objectProto23 = Object.prototype;
- var hasOwnProperty20 = objectProto23.hasOwnProperty;
- function baseHas(object4, key) {
- return object4 != null && hasOwnProperty20.call(object4, key);
- }
- var baseHas_default = baseHas;
- // node_modules/lodash-es/has.js
- function has(object4, path) {
- return object4 != null && hasPath_default(object4, path, baseHas_default);
- }
- var has_default = has;
- // node_modules/lodash-es/_baseInRange.js
- var nativeMax9 = Math.max;
- var nativeMin6 = Math.min;
- function baseInRange(number4, start, end) {
- return number4 >= nativeMin6(start, end) && number4 < nativeMax9(start, end);
- }
- var baseInRange_default = baseInRange;
- // node_modules/lodash-es/inRange.js
- function inRange(number4, start, end) {
- start = toFinite_default(start);
- if (end === void 0) {
- end = start;
- start = 0;
- } else {
- end = toFinite_default(end);
- }
- number4 = toNumber_default(number4);
- return baseInRange_default(number4, start, end);
- }
- var inRange_default = inRange;
- // node_modules/lodash-es/isString.js
- var stringTag5 = "[object String]";
- function isString2(value) {
- return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && baseGetTag_default(value) == stringTag5;
- }
- var isString_default = isString2;
- // node_modules/lodash-es/_baseValues.js
- function baseValues(object4, props2) {
- return arrayMap_default(props2, function(key) {
- return object4[key];
- });
- }
- var baseValues_default = baseValues;
- // node_modules/lodash-es/values.js
- function values(object4) {
- return object4 == null ? [] : baseValues_default(object4, keys_default(object4));
- }
- var values_default = values;
- // node_modules/lodash-es/includes.js
- var nativeMax10 = Math.max;
- function includes(collection, value, fromIndex, guard) {
- collection = isArrayLike_default(collection) ? collection : values_default(collection);
- fromIndex = fromIndex && !guard ? toInteger_default(fromIndex) : 0;
- var length = collection.length;
- if (fromIndex < 0) {
- fromIndex = nativeMax10(length + fromIndex, 0);
- }
- return isString_default(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf_default(collection, value, fromIndex) > -1;
- }
- var includes_default = includes;
- // node_modules/lodash-es/indexOf.js
- var nativeMax11 = Math.max;
- function indexOf(array4, value, fromIndex) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
- if (index < 0) {
- index = nativeMax11(length + index, 0);
- }
- return baseIndexOf_default(array4, value, index);
- }
- var indexOf_default = indexOf;
- // node_modules/lodash-es/initial.js
- function initial(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? baseSlice_default(array4, 0, -1) : [];
- }
- var initial_default = initial;
- // node_modules/lodash-es/_baseIntersection.js
- var nativeMin7 = Math.min;
- function baseIntersection(arrays, iteratee2, comparator) {
- var includes2 = comparator ? arrayIncludesWith_default : arrayIncludes_default, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = Infinity, result2 = [];
- while (othIndex--) {
- var array4 = arrays[othIndex];
- if (othIndex && iteratee2) {
- array4 = arrayMap_default(array4, baseUnary_default(iteratee2));
- }
- maxLength = nativeMin7(array4.length, maxLength);
- caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array4.length >= 120) ? new SetCache_default(othIndex && array4) : void 0;
- }
- array4 = arrays[0];
- var index = -1, seen = caches[0];
- outer:
- while (++index < length && result2.length < maxLength) {
- var value = array4[index], computed2 = iteratee2 ? iteratee2(value) : value;
- value = comparator || value !== 0 ? value : 0;
- if (!(seen ? cacheHas_default(seen, computed2) : includes2(result2, computed2, comparator))) {
- othIndex = othLength;
- while (--othIndex) {
- var cache2 = caches[othIndex];
- if (!(cache2 ? cacheHas_default(cache2, computed2) : includes2(arrays[othIndex], computed2, comparator))) {
- continue outer;
- }
- }
- if (seen) {
- seen.push(computed2);
- }
- result2.push(value);
- }
- }
- return result2;
- }
- var baseIntersection_default = baseIntersection;
- // node_modules/lodash-es/_castArrayLikeObject.js
- function castArrayLikeObject(value) {
- return isArrayLikeObject_default(value) ? value : [];
- }
- var castArrayLikeObject_default = castArrayLikeObject;
- // node_modules/lodash-es/intersection.js
- var intersection = baseRest_default(function(arrays) {
- var mapped = arrayMap_default(arrays, castArrayLikeObject_default);
- return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped) : [];
- });
- var intersection_default = intersection;
- // node_modules/lodash-es/intersectionBy.js
- var intersectionBy = baseRest_default(function(arrays) {
- var iteratee2 = last_default(arrays), mapped = arrayMap_default(arrays, castArrayLikeObject_default);
- if (iteratee2 === last_default(mapped)) {
- iteratee2 = void 0;
- } else {
- mapped.pop();
- }
- return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped, baseIteratee_default(iteratee2, 2)) : [];
- });
- var intersectionBy_default = intersectionBy;
- // node_modules/lodash-es/intersectionWith.js
- var intersectionWith = baseRest_default(function(arrays) {
- var comparator = last_default(arrays), mapped = arrayMap_default(arrays, castArrayLikeObject_default);
- comparator = typeof comparator == "function" ? comparator : void 0;
- if (comparator) {
- mapped.pop();
- }
- return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped, void 0, comparator) : [];
- });
- var intersectionWith_default = intersectionWith;
- // node_modules/lodash-es/_baseInverter.js
- function baseInverter(object4, setter, iteratee2, accumulator) {
- baseForOwn_default(object4, function(value, key, object5) {
- setter(accumulator, iteratee2(value), key, object5);
- });
- return accumulator;
- }
- var baseInverter_default = baseInverter;
- // node_modules/lodash-es/_createInverter.js
- function createInverter(setter, toIteratee) {
- return function(object4, iteratee2) {
- return baseInverter_default(object4, setter, toIteratee(iteratee2), {});
- };
- }
- var createInverter_default = createInverter;
- // node_modules/lodash-es/invert.js
- var objectProto24 = Object.prototype;
- var nativeObjectToString3 = objectProto24.toString;
- var invert = createInverter_default(function(result2, value, key) {
- if (value != null && typeof value.toString != "function") {
- value = nativeObjectToString3.call(value);
- }
- result2[value] = key;
- }, constant_default(identity_default));
- var invert_default = invert;
- // node_modules/lodash-es/invertBy.js
- var objectProto25 = Object.prototype;
- var hasOwnProperty21 = objectProto25.hasOwnProperty;
- var nativeObjectToString4 = objectProto25.toString;
- var invertBy = createInverter_default(function(result2, value, key) {
- if (value != null && typeof value.toString != "function") {
- value = nativeObjectToString4.call(value);
- }
- if (hasOwnProperty21.call(result2, value)) {
- result2[value].push(key);
- } else {
- result2[value] = [key];
- }
- }, baseIteratee_default);
- var invertBy_default = invertBy;
- // node_modules/lodash-es/_parent.js
- function parent(object4, path) {
- return path.length < 2 ? object4 : baseGet_default(object4, baseSlice_default(path, 0, -1));
- }
- var parent_default = parent;
- // node_modules/lodash-es/_baseInvoke.js
- function baseInvoke(object4, path, args) {
- path = castPath_default(path, object4);
- object4 = parent_default(object4, path);
- var func = object4 == null ? object4 : object4[toKey_default(last_default(path))];
- return func == null ? void 0 : apply_default(func, object4, args);
- }
- var baseInvoke_default = baseInvoke;
- // node_modules/lodash-es/invoke.js
- var invoke = baseRest_default(baseInvoke_default);
- var invoke_default = invoke;
- // node_modules/lodash-es/invokeMap.js
- var invokeMap = baseRest_default(function(collection, path, args) {
- var index = -1, isFunc = typeof path == "function", result2 = isArrayLike_default(collection) ? Array(collection.length) : [];
- baseEach_default(collection, function(value) {
- result2[++index] = isFunc ? apply_default(path, value, args) : baseInvoke_default(value, path, args);
- });
- return result2;
- });
- var invokeMap_default = invokeMap;
- // node_modules/lodash-es/_baseIsArrayBuffer.js
- var arrayBufferTag5 = "[object ArrayBuffer]";
- function baseIsArrayBuffer(value) {
- return isObjectLike_default(value) && baseGetTag_default(value) == arrayBufferTag5;
- }
- var baseIsArrayBuffer_default = baseIsArrayBuffer;
- // node_modules/lodash-es/isArrayBuffer.js
- var nodeIsArrayBuffer = nodeUtil_default && nodeUtil_default.isArrayBuffer;
- var isArrayBuffer = nodeIsArrayBuffer ? baseUnary_default(nodeIsArrayBuffer) : baseIsArrayBuffer_default;
- var isArrayBuffer_default = isArrayBuffer;
- // node_modules/lodash-es/isBoolean.js
- var boolTag5 = "[object Boolean]";
- function isBoolean(value) {
- return value === true || value === false || isObjectLike_default(value) && baseGetTag_default(value) == boolTag5;
- }
- var isBoolean_default = isBoolean;
- // node_modules/lodash-es/_baseIsDate.js
- var dateTag5 = "[object Date]";
- function baseIsDate(value) {
- return isObjectLike_default(value) && baseGetTag_default(value) == dateTag5;
- }
- var baseIsDate_default = baseIsDate;
- // node_modules/lodash-es/isDate.js
- var nodeIsDate = nodeUtil_default && nodeUtil_default.isDate;
- var isDate2 = nodeIsDate ? baseUnary_default(nodeIsDate) : baseIsDate_default;
- var isDate_default = isDate2;
- // node_modules/lodash-es/isElement.js
- function isElement(value) {
- return isObjectLike_default(value) && value.nodeType === 1 && !isPlainObject_default(value);
- }
- var isElement_default = isElement;
- // node_modules/lodash-es/isEmpty.js
- var mapTag8 = "[object Map]";
- var setTag8 = "[object Set]";
- var objectProto26 = Object.prototype;
- var hasOwnProperty22 = objectProto26.hasOwnProperty;
- function isEmpty(value) {
- if (value == null) {
- return true;
- }
- if (isArrayLike_default(value) && (isArray_default(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer_default(value) || isTypedArray_default(value) || isArguments_default(value))) {
- return !value.length;
- }
- var tag = getTag_default(value);
- if (tag == mapTag8 || tag == setTag8) {
- return !value.size;
- }
- if (isPrototype_default(value)) {
- return !baseKeys_default(value).length;
- }
- for (var key in value) {
- if (hasOwnProperty22.call(value, key)) {
- return false;
- }
- }
- return true;
- }
- var isEmpty_default = isEmpty;
- // node_modules/lodash-es/isEqual.js
- function isEqual(value, other) {
- return baseIsEqual_default(value, other);
- }
- var isEqual_default = isEqual;
- // node_modules/lodash-es/isEqualWith.js
- function isEqualWith(value, other, customizer) {
- customizer = typeof customizer == "function" ? customizer : void 0;
- var result2 = customizer ? customizer(value, other) : void 0;
- return result2 === void 0 ? baseIsEqual_default(value, other, void 0, customizer) : !!result2;
- }
- var isEqualWith_default = isEqualWith;
- // node_modules/lodash-es/isFinite.js
- var nativeIsFinite2 = root_default.isFinite;
- function isFinite(value) {
- return typeof value == "number" && nativeIsFinite2(value);
- }
- var isFinite_default = isFinite;
- // node_modules/lodash-es/isInteger.js
- function isInteger(value) {
- return typeof value == "number" && value == toInteger_default(value);
- }
- var isInteger_default = isInteger;
- // node_modules/lodash-es/isMatch.js
- function isMatch(object4, source) {
- return object4 === source || baseIsMatch_default(object4, source, getMatchData_default(source));
- }
- var isMatch_default = isMatch;
- // node_modules/lodash-es/isMatchWith.js
- function isMatchWith(object4, source, customizer) {
- customizer = typeof customizer == "function" ? customizer : void 0;
- return baseIsMatch_default(object4, source, getMatchData_default(source), customizer);
- }
- var isMatchWith_default = isMatchWith;
- // node_modules/lodash-es/isNumber.js
- var numberTag5 = "[object Number]";
- function isNumber(value) {
- return typeof value == "number" || isObjectLike_default(value) && baseGetTag_default(value) == numberTag5;
- }
- var isNumber_default = isNumber;
- // node_modules/lodash-es/isNaN.js
- function isNaN2(value) {
- return isNumber_default(value) && value != +value;
- }
- var isNaN_default = isNaN2;
- // node_modules/lodash-es/_isMaskable.js
- var isMaskable = coreJsData_default ? isFunction_default : stubFalse_default;
- var isMaskable_default = isMaskable;
- // node_modules/lodash-es/isNative.js
- var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";
- function isNative(value) {
- if (isMaskable_default(value)) {
- throw new Error(CORE_ERROR_TEXT);
- }
- return baseIsNative_default(value);
- }
- var isNative_default = isNative;
- // node_modules/lodash-es/isNil.js
- function isNil(value) {
- return value == null;
- }
- var isNil_default = isNil;
- // node_modules/lodash-es/isNull.js
- function isNull(value) {
- return value === null;
- }
- var isNull_default = isNull;
- // node_modules/lodash-es/_baseIsRegExp.js
- var regexpTag5 = "[object RegExp]";
- function baseIsRegExp(value) {
- return isObjectLike_default(value) && baseGetTag_default(value) == regexpTag5;
- }
- var baseIsRegExp_default = baseIsRegExp;
- // node_modules/lodash-es/isRegExp.js
- var nodeIsRegExp = nodeUtil_default && nodeUtil_default.isRegExp;
- var isRegExp = nodeIsRegExp ? baseUnary_default(nodeIsRegExp) : baseIsRegExp_default;
- var isRegExp_default = isRegExp;
- // node_modules/lodash-es/isSafeInteger.js
- var MAX_SAFE_INTEGER3 = 9007199254740991;
- function isSafeInteger(value) {
- return isInteger_default(value) && value >= -MAX_SAFE_INTEGER3 && value <= MAX_SAFE_INTEGER3;
- }
- var isSafeInteger_default = isSafeInteger;
- // node_modules/lodash-es/isUndefined.js
- function isUndefined(value) {
- return value === void 0;
- }
- var isUndefined_default = isUndefined;
- // node_modules/lodash-es/isWeakMap.js
- var weakMapTag4 = "[object WeakMap]";
- function isWeakMap(value) {
- return isObjectLike_default(value) && getTag_default(value) == weakMapTag4;
- }
- var isWeakMap_default = isWeakMap;
- // node_modules/lodash-es/isWeakSet.js
- var weakSetTag = "[object WeakSet]";
- function isWeakSet(value) {
- return isObjectLike_default(value) && baseGetTag_default(value) == weakSetTag;
- }
- var isWeakSet_default = isWeakSet;
- // node_modules/lodash-es/iteratee.js
- var CLONE_DEEP_FLAG5 = 1;
- function iteratee(func) {
- return baseIteratee_default(typeof func == "function" ? func : baseClone_default(func, CLONE_DEEP_FLAG5));
- }
- var iteratee_default = iteratee;
- // node_modules/lodash-es/join.js
- var arrayProto2 = Array.prototype;
- var nativeJoin = arrayProto2.join;
- function join(array4, separator) {
- return array4 == null ? "" : nativeJoin.call(array4, separator);
- }
- var join_default = join;
- // node_modules/lodash-es/kebabCase.js
- var kebabCase = createCompounder_default(function(result2, word, index) {
- return result2 + (index ? "-" : "") + word.toLowerCase();
- });
- var kebabCase_default = kebabCase;
- // node_modules/lodash-es/keyBy.js
- var keyBy = createAggregator_default(function(result2, value, key) {
- baseAssignValue_default(result2, key, value);
- });
- var keyBy_default = keyBy;
- // node_modules/lodash-es/_strictLastIndexOf.js
- function strictLastIndexOf(array4, value, fromIndex) {
- var index = fromIndex + 1;
- while (index--) {
- if (array4[index] === value) {
- return index;
- }
- }
- return index;
- }
- var strictLastIndexOf_default = strictLastIndexOf;
- // node_modules/lodash-es/lastIndexOf.js
- var nativeMax12 = Math.max;
- var nativeMin8 = Math.min;
- function lastIndexOf(array4, value, fromIndex) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return -1;
- }
- var index = length;
- if (fromIndex !== void 0) {
- index = toInteger_default(fromIndex);
- index = index < 0 ? nativeMax12(length + index, 0) : nativeMin8(index, length - 1);
- }
- return value === value ? strictLastIndexOf_default(array4, value, index) : baseFindIndex_default(array4, baseIsNaN_default, index, true);
- }
- var lastIndexOf_default = lastIndexOf;
- // node_modules/lodash-es/lowerCase.js
- var lowerCase = createCompounder_default(function(result2, word, index) {
- return result2 + (index ? " " : "") + word.toLowerCase();
- });
- var lowerCase_default = lowerCase;
- // node_modules/lodash-es/lowerFirst.js
- var lowerFirst = createCaseFirst_default("toLowerCase");
- var lowerFirst_default = lowerFirst;
- // node_modules/lodash-es/_baseLt.js
- function baseLt(value, other) {
- return value < other;
- }
- var baseLt_default = baseLt;
- // node_modules/lodash-es/lt.js
- var lt = createRelationalOperation_default(baseLt_default);
- var lt_default = lt;
- // node_modules/lodash-es/lte.js
- var lte = createRelationalOperation_default(function(value, other) {
- return value <= other;
- });
- var lte_default = lte;
- // node_modules/lodash-es/mapKeys.js
- function mapKeys(object4, iteratee2) {
- var result2 = {};
- iteratee2 = baseIteratee_default(iteratee2, 3);
- baseForOwn_default(object4, function(value, key, object5) {
- baseAssignValue_default(result2, iteratee2(value, key, object5), value);
- });
- return result2;
- }
- var mapKeys_default = mapKeys;
- // node_modules/lodash-es/mapValues.js
- function mapValues(object4, iteratee2) {
- var result2 = {};
- iteratee2 = baseIteratee_default(iteratee2, 3);
- baseForOwn_default(object4, function(value, key, object5) {
- baseAssignValue_default(result2, key, iteratee2(value, key, object5));
- });
- return result2;
- }
- var mapValues_default = mapValues;
- // node_modules/lodash-es/matches.js
- var CLONE_DEEP_FLAG6 = 1;
- function matches(source) {
- return baseMatches_default(baseClone_default(source, CLONE_DEEP_FLAG6));
- }
- var matches_default = matches;
- // node_modules/lodash-es/matchesProperty.js
- var CLONE_DEEP_FLAG7 = 1;
- function matchesProperty(path, srcValue) {
- return baseMatchesProperty_default(path, baseClone_default(srcValue, CLONE_DEEP_FLAG7));
- }
- var matchesProperty_default = matchesProperty;
- // node_modules/lodash-es/_baseExtremum.js
- function baseExtremum(array4, iteratee2, comparator) {
- var index = -1, length = array4.length;
- while (++index < length) {
- var value = array4[index], current = iteratee2(value);
- if (current != null && (computed2 === void 0 ? current === current && !isSymbol_default(current) : comparator(current, computed2))) {
- var computed2 = current, result2 = value;
- }
- }
- return result2;
- }
- var baseExtremum_default = baseExtremum;
- // node_modules/lodash-es/max.js
- function max(array4) {
- return array4 && array4.length ? baseExtremum_default(array4, identity_default, baseGt_default) : void 0;
- }
- var max_default = max;
- // node_modules/lodash-es/maxBy.js
- function maxBy(array4, iteratee2) {
- return array4 && array4.length ? baseExtremum_default(array4, baseIteratee_default(iteratee2, 2), baseGt_default) : void 0;
- }
- var maxBy_default = maxBy;
- // node_modules/lodash-es/_baseSum.js
- function baseSum(array4, iteratee2) {
- var result2, index = -1, length = array4.length;
- while (++index < length) {
- var current = iteratee2(array4[index]);
- if (current !== void 0) {
- result2 = result2 === void 0 ? current : result2 + current;
- }
- }
- return result2;
- }
- var baseSum_default = baseSum;
- // node_modules/lodash-es/_baseMean.js
- var NAN3 = 0 / 0;
- function baseMean(array4, iteratee2) {
- var length = array4 == null ? 0 : array4.length;
- return length ? baseSum_default(array4, iteratee2) / length : NAN3;
- }
- var baseMean_default = baseMean;
- // node_modules/lodash-es/mean.js
- function mean(array4) {
- return baseMean_default(array4, identity_default);
- }
- var mean_default = mean;
- // node_modules/lodash-es/meanBy.js
- function meanBy(array4, iteratee2) {
- return baseMean_default(array4, baseIteratee_default(iteratee2, 2));
- }
- var meanBy_default = meanBy;
- // node_modules/lodash-es/merge.js
- var merge = createAssigner_default(function(object4, source, srcIndex) {
- baseMerge_default(object4, source, srcIndex);
- });
- var merge_default = merge;
- // node_modules/lodash-es/method.js
- var method = baseRest_default(function(path, args) {
- return function(object4) {
- return baseInvoke_default(object4, path, args);
- };
- });
- var method_default = method;
- // node_modules/lodash-es/methodOf.js
- var methodOf = baseRest_default(function(object4, args) {
- return function(path) {
- return baseInvoke_default(object4, path, args);
- };
- });
- var methodOf_default = methodOf;
- // node_modules/lodash-es/min.js
- function min(array4) {
- return array4 && array4.length ? baseExtremum_default(array4, identity_default, baseLt_default) : void 0;
- }
- var min_default = min;
- // node_modules/lodash-es/minBy.js
- function minBy(array4, iteratee2) {
- return array4 && array4.length ? baseExtremum_default(array4, baseIteratee_default(iteratee2, 2), baseLt_default) : void 0;
- }
- var minBy_default = minBy;
- // node_modules/lodash-es/mixin.js
- function mixin(object4, source, options) {
- var props2 = keys_default(source), methodNames = baseFunctions_default(source, props2);
- var chain2 = !(isObject_default(options) && "chain" in options) || !!options.chain, isFunc = isFunction_default(object4);
- arrayEach_default(methodNames, function(methodName) {
- var func = source[methodName];
- object4[methodName] = func;
- if (isFunc) {
- object4.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain2 || chainAll) {
- var result2 = object4(this.__wrapped__), actions = result2.__actions__ = copyArray_default(this.__actions__);
- actions.push({ "func": func, "args": arguments, "thisArg": object4 });
- result2.__chain__ = chainAll;
- return result2;
- }
- return func.apply(object4, arrayPush_default([this.value()], arguments));
- };
- }
- });
- return object4;
- }
- var mixin_default = mixin;
- // node_modules/lodash-es/multiply.js
- var multiply = createMathOperation_default(function(multiplier, multiplicand) {
- return multiplier * multiplicand;
- }, 1);
- var multiply_default = multiply;
- // node_modules/lodash-es/negate.js
- var FUNC_ERROR_TEXT9 = "Expected a function";
- function negate(predicate) {
- if (typeof predicate != "function") {
- throw new TypeError(FUNC_ERROR_TEXT9);
- }
- return function() {
- var args = arguments;
- switch (args.length) {
- case 0:
- return !predicate.call(this);
- case 1:
- return !predicate.call(this, args[0]);
- case 2:
- return !predicate.call(this, args[0], args[1]);
- case 3:
- return !predicate.call(this, args[0], args[1], args[2]);
- }
- return !predicate.apply(this, args);
- };
- }
- var negate_default = negate;
- // node_modules/lodash-es/_iteratorToArray.js
- function iteratorToArray(iterator) {
- var data, result2 = [];
- while (!(data = iterator.next()).done) {
- result2.push(data.value);
- }
- return result2;
- }
- var iteratorToArray_default = iteratorToArray;
- // node_modules/lodash-es/toArray.js
- var mapTag9 = "[object Map]";
- var setTag9 = "[object Set]";
- var symIterator = Symbol_default ? Symbol_default.iterator : void 0;
- function toArray(value) {
- if (!value) {
- return [];
- }
- if (isArrayLike_default(value)) {
- return isString_default(value) ? stringToArray_default(value) : copyArray_default(value);
- }
- if (symIterator && value[symIterator]) {
- return iteratorToArray_default(value[symIterator]());
- }
- var tag = getTag_default(value), func = tag == mapTag9 ? mapToArray_default : tag == setTag9 ? setToArray_default : values_default;
- return func(value);
- }
- var toArray_default = toArray;
- // node_modules/lodash-es/next.js
- function wrapperNext() {
- if (this.__values__ === void 0) {
- this.__values__ = toArray_default(this.value());
- }
- var done = this.__index__ >= this.__values__.length, value = done ? void 0 : this.__values__[this.__index__++];
- return { "done": done, "value": value };
- }
- var next_default = wrapperNext;
- // node_modules/lodash-es/_baseNth.js
- function baseNth(array4, n) {
- var length = array4.length;
- if (!length) {
- return;
- }
- n += n < 0 ? length : 0;
- return isIndex_default(n, length) ? array4[n] : void 0;
- }
- var baseNth_default = baseNth;
- // node_modules/lodash-es/nth.js
- function nth(array4, n) {
- return array4 && array4.length ? baseNth_default(array4, toInteger_default(n)) : void 0;
- }
- var nth_default = nth;
- // node_modules/lodash-es/nthArg.js
- function nthArg(n) {
- n = toInteger_default(n);
- return baseRest_default(function(args) {
- return baseNth_default(args, n);
- });
- }
- var nthArg_default = nthArg;
- // node_modules/lodash-es/_baseUnset.js
- function baseUnset(object4, path) {
- path = castPath_default(path, object4);
- object4 = parent_default(object4, path);
- return object4 == null || delete object4[toKey_default(last_default(path))];
- }
- var baseUnset_default = baseUnset;
- // node_modules/lodash-es/_customOmitClone.js
- function customOmitClone(value) {
- return isPlainObject_default(value) ? void 0 : value;
- }
- var customOmitClone_default = customOmitClone;
- // node_modules/lodash-es/omit.js
- var CLONE_DEEP_FLAG8 = 1;
- var CLONE_FLAT_FLAG2 = 2;
- var CLONE_SYMBOLS_FLAG6 = 4;
- var omit = flatRest_default(function(object4, paths) {
- var result2 = {};
- if (object4 == null) {
- return result2;
- }
- var isDeep = false;
- paths = arrayMap_default(paths, function(path) {
- path = castPath_default(path, object4);
- isDeep || (isDeep = path.length > 1);
- return path;
- });
- copyObject_default(object4, getAllKeysIn_default(object4), result2);
- if (isDeep) {
- result2 = baseClone_default(result2, CLONE_DEEP_FLAG8 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG6, customOmitClone_default);
- }
- var length = paths.length;
- while (length--) {
- baseUnset_default(result2, paths[length]);
- }
- return result2;
- });
- var omit_default = omit;
- // node_modules/lodash-es/_baseSet.js
- function baseSet(object4, path, value, customizer) {
- if (!isObject_default(object4)) {
- return object4;
- }
- path = castPath_default(path, object4);
- var index = -1, length = path.length, lastIndex = length - 1, nested = object4;
- while (nested != null && ++index < length) {
- var key = toKey_default(path[index]), newValue = value;
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
- return object4;
- }
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
- if (newValue === void 0) {
- newValue = isObject_default(objValue) ? objValue : isIndex_default(path[index + 1]) ? [] : {};
- }
- }
- assignValue_default(nested, key, newValue);
- nested = nested[key];
- }
- return object4;
- }
- var baseSet_default = baseSet;
- // node_modules/lodash-es/_basePickBy.js
- function basePickBy(object4, paths, predicate) {
- var index = -1, length = paths.length, result2 = {};
- while (++index < length) {
- var path = paths[index], value = baseGet_default(object4, path);
- if (predicate(value, path)) {
- baseSet_default(result2, castPath_default(path, object4), value);
- }
- }
- return result2;
- }
- var basePickBy_default = basePickBy;
- // node_modules/lodash-es/pickBy.js
- function pickBy(object4, predicate) {
- if (object4 == null) {
- return {};
- }
- var props2 = arrayMap_default(getAllKeysIn_default(object4), function(prop) {
- return [prop];
- });
- predicate = baseIteratee_default(predicate);
- return basePickBy_default(object4, props2, function(value, path) {
- return predicate(value, path[0]);
- });
- }
- var pickBy_default = pickBy;
- // node_modules/lodash-es/omitBy.js
- function omitBy(object4, predicate) {
- return pickBy_default(object4, negate_default(baseIteratee_default(predicate)));
- }
- var omitBy_default = omitBy;
- // node_modules/lodash-es/once.js
- function once(func) {
- return before_default(2, func);
- }
- var once_default = once;
- // node_modules/lodash-es/_baseSortBy.js
- function baseSortBy(array4, comparer) {
- var length = array4.length;
- array4.sort(comparer);
- while (length--) {
- array4[length] = array4[length].value;
- }
- return array4;
- }
- var baseSortBy_default = baseSortBy;
- // node_modules/lodash-es/_compareAscending.js
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value);
- var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other);
- if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
- return 1;
- }
- if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
- var compareAscending_default = compareAscending;
- // node_modules/lodash-es/_compareMultiple.js
- function compareMultiple(object4, other, orders) {
- var index = -1, objCriteria = object4.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
- while (++index < length) {
- var result2 = compareAscending_default(objCriteria[index], othCriteria[index]);
- if (result2) {
- if (index >= ordersLength) {
- return result2;
- }
- var order = orders[index];
- return result2 * (order == "desc" ? -1 : 1);
- }
- }
- return object4.index - other.index;
- }
- var compareMultiple_default = compareMultiple;
- // node_modules/lodash-es/_baseOrderBy.js
- function baseOrderBy(collection, iteratees, orders) {
- if (iteratees.length) {
- iteratees = arrayMap_default(iteratees, function(iteratee2) {
- if (isArray_default(iteratee2)) {
- return function(value) {
- return baseGet_default(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2);
- };
- }
- return iteratee2;
- });
- } else {
- iteratees = [identity_default];
- }
- var index = -1;
- iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default));
- var result2 = baseMap_default(collection, function(value, key, collection2) {
- var criteria = arrayMap_default(iteratees, function(iteratee2) {
- return iteratee2(value);
- });
- return { "criteria": criteria, "index": ++index, "value": value };
- });
- return baseSortBy_default(result2, function(object4, other) {
- return compareMultiple_default(object4, other, orders);
- });
- }
- var baseOrderBy_default = baseOrderBy;
- // node_modules/lodash-es/orderBy.js
- function orderBy(collection, iteratees, orders, guard) {
- if (collection == null) {
- return [];
- }
- if (!isArray_default(iteratees)) {
- iteratees = iteratees == null ? [] : [iteratees];
- }
- orders = guard ? void 0 : orders;
- if (!isArray_default(orders)) {
- orders = orders == null ? [] : [orders];
- }
- return baseOrderBy_default(collection, iteratees, orders);
- }
- var orderBy_default = orderBy;
- // node_modules/lodash-es/_createOver.js
- function createOver(arrayFunc) {
- return flatRest_default(function(iteratees) {
- iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default));
- return baseRest_default(function(args) {
- var thisArg = this;
- return arrayFunc(iteratees, function(iteratee2) {
- return apply_default(iteratee2, thisArg, args);
- });
- });
- });
- }
- var createOver_default = createOver;
- // node_modules/lodash-es/over.js
- var over = createOver_default(arrayMap_default);
- var over_default = over;
- // node_modules/lodash-es/_castRest.js
- var castRest = baseRest_default;
- var castRest_default = castRest;
- // node_modules/lodash-es/overArgs.js
- var nativeMin9 = Math.min;
- var overArgs = castRest_default(function(func, transforms) {
- 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));
- var funcsLength = transforms.length;
- return baseRest_default(function(args) {
- var index = -1, length = nativeMin9(args.length, funcsLength);
- while (++index < length) {
- args[index] = transforms[index].call(this, args[index]);
- }
- return apply_default(func, this, args);
- });
- });
- var overArgs_default = overArgs;
- // node_modules/lodash-es/overEvery.js
- var overEvery = createOver_default(arrayEvery_default);
- var overEvery_default = overEvery;
- // node_modules/lodash-es/overSome.js
- var overSome = createOver_default(arraySome_default);
- var overSome_default = overSome;
- // node_modules/lodash-es/_baseRepeat.js
- var MAX_SAFE_INTEGER4 = 9007199254740991;
- var nativeFloor = Math.floor;
- function baseRepeat(string3, n) {
- var result2 = "";
- if (!string3 || n < 1 || n > MAX_SAFE_INTEGER4) {
- return result2;
- }
- do {
- if (n % 2) {
- result2 += string3;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string3 += string3;
- }
- } while (n);
- return result2;
- }
- var baseRepeat_default = baseRepeat;
- // node_modules/lodash-es/_asciiSize.js
- var asciiSize = baseProperty_default("length");
- var asciiSize_default = asciiSize;
- // node_modules/lodash-es/_unicodeSize.js
- var rsAstralRange4 = "\\ud800-\\udfff";
- var rsComboMarksRange5 = "\\u0300-\\u036f";
- var reComboHalfMarksRange5 = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange5 = "\\u20d0-\\u20ff";
- var rsComboRange5 = rsComboMarksRange5 + reComboHalfMarksRange5 + rsComboSymbolsRange5;
- var rsVarRange4 = "\\ufe0e\\ufe0f";
- var rsAstral2 = "[" + rsAstralRange4 + "]";
- var rsCombo4 = "[" + rsComboRange5 + "]";
- var rsFitz3 = "\\ud83c[\\udffb-\\udfff]";
- var rsModifier3 = "(?:" + rsCombo4 + "|" + rsFitz3 + ")";
- var rsNonAstral3 = "[^" + rsAstralRange4 + "]";
- var rsRegional3 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
- var rsSurrPair3 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
- var rsZWJ4 = "\\u200d";
- var reOptMod3 = rsModifier3 + "?";
- var rsOptVar3 = "[" + rsVarRange4 + "]?";
- var rsOptJoin3 = "(?:" + rsZWJ4 + "(?:" + [rsNonAstral3, rsRegional3, rsSurrPair3].join("|") + ")" + rsOptVar3 + reOptMod3 + ")*";
- var rsSeq3 = rsOptVar3 + reOptMod3 + rsOptJoin3;
- var rsSymbol2 = "(?:" + [rsNonAstral3 + rsCombo4 + "?", rsCombo4, rsRegional3, rsSurrPair3, rsAstral2].join("|") + ")";
- var reUnicode2 = RegExp(rsFitz3 + "(?=" + rsFitz3 + ")|" + rsSymbol2 + rsSeq3, "g");
- function unicodeSize(string3) {
- var result2 = reUnicode2.lastIndex = 0;
- while (reUnicode2.test(string3)) {
- ++result2;
- }
- return result2;
- }
- var unicodeSize_default = unicodeSize;
- // node_modules/lodash-es/_stringSize.js
- function stringSize(string3) {
- return hasUnicode_default(string3) ? unicodeSize_default(string3) : asciiSize_default(string3);
- }
- var stringSize_default = stringSize;
- // node_modules/lodash-es/_createPadding.js
- var nativeCeil2 = Math.ceil;
- function createPadding(length, chars) {
- chars = chars === void 0 ? " " : baseToString_default(chars);
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat_default(chars, length) : chars;
- }
- var result2 = baseRepeat_default(chars, nativeCeil2(length / stringSize_default(chars)));
- return hasUnicode_default(chars) ? castSlice_default(stringToArray_default(result2), 0, length).join("") : result2.slice(0, length);
- }
- var createPadding_default = createPadding;
- // node_modules/lodash-es/pad.js
- var nativeCeil3 = Math.ceil;
- var nativeFloor2 = Math.floor;
- function pad(string3, length, chars) {
- string3 = toString_default(string3);
- length = toInteger_default(length);
- var strLength = length ? stringSize_default(string3) : 0;
- if (!length || strLength >= length) {
- return string3;
- }
- var mid = (length - strLength) / 2;
- return createPadding_default(nativeFloor2(mid), chars) + string3 + createPadding_default(nativeCeil3(mid), chars);
- }
- var pad_default = pad;
- // node_modules/lodash-es/padEnd.js
- function padEnd(string3, length, chars) {
- string3 = toString_default(string3);
- length = toInteger_default(length);
- var strLength = length ? stringSize_default(string3) : 0;
- return length && strLength < length ? string3 + createPadding_default(length - strLength, chars) : string3;
- }
- var padEnd_default = padEnd;
- // node_modules/lodash-es/padStart.js
- function padStart(string3, length, chars) {
- string3 = toString_default(string3);
- length = toInteger_default(length);
- var strLength = length ? stringSize_default(string3) : 0;
- return length && strLength < length ? createPadding_default(length - strLength, chars) + string3 : string3;
- }
- var padStart_default = padStart;
- // node_modules/lodash-es/parseInt.js
- var reTrimStart2 = /^\s+/;
- var nativeParseInt = root_default.parseInt;
- function parseInt2(string3, radix, guard) {
- if (guard || radix == null) {
- radix = 0;
- } else if (radix) {
- radix = +radix;
- }
- return nativeParseInt(toString_default(string3).replace(reTrimStart2, ""), radix || 0);
- }
- var parseInt_default = parseInt2;
- // node_modules/lodash-es/partial.js
- var WRAP_PARTIAL_FLAG7 = 32;
- var partial = baseRest_default(function(func, partials) {
- var holders = replaceHolders_default(partials, getHolder_default(partial));
- return createWrap_default(func, WRAP_PARTIAL_FLAG7, void 0, partials, holders);
- });
- partial.placeholder = {};
- var partial_default = partial;
- // node_modules/lodash-es/partialRight.js
- var WRAP_PARTIAL_RIGHT_FLAG4 = 64;
- var partialRight = baseRest_default(function(func, partials) {
- var holders = replaceHolders_default(partials, getHolder_default(partialRight));
- return createWrap_default(func, WRAP_PARTIAL_RIGHT_FLAG4, void 0, partials, holders);
- });
- partialRight.placeholder = {};
- var partialRight_default = partialRight;
- // node_modules/lodash-es/partition.js
- var partition = createAggregator_default(function(result2, value, key) {
- result2[key ? 0 : 1].push(value);
- }, function() {
- return [[], []];
- });
- var partition_default = partition;
- // node_modules/lodash-es/_basePick.js
- function basePick(object4, paths) {
- return basePickBy_default(object4, paths, function(value, path) {
- return hasIn_default(object4, path);
- });
- }
- var basePick_default = basePick;
- // node_modules/lodash-es/pick.js
- var pick = flatRest_default(function(object4, paths) {
- return object4 == null ? {} : basePick_default(object4, paths);
- });
- var pick_default = pick;
- // node_modules/lodash-es/plant.js
- function wrapperPlant(value) {
- var result2, parent2 = this;
- while (parent2 instanceof baseLodash_default) {
- var clone2 = wrapperClone_default(parent2);
- clone2.__index__ = 0;
- clone2.__values__ = void 0;
- if (result2) {
- previous.__wrapped__ = clone2;
- } else {
- result2 = clone2;
- }
- var previous = clone2;
- parent2 = parent2.__wrapped__;
- }
- previous.__wrapped__ = value;
- return result2;
- }
- var plant_default = wrapperPlant;
- // node_modules/lodash-es/propertyOf.js
- function propertyOf(object4) {
- return function(path) {
- return object4 == null ? void 0 : baseGet_default(object4, path);
- };
- }
- var propertyOf_default = propertyOf;
- // node_modules/lodash-es/_baseIndexOfWith.js
- function baseIndexOfWith(array4, value, fromIndex, comparator) {
- var index = fromIndex - 1, length = array4.length;
- while (++index < length) {
- if (comparator(array4[index], value)) {
- return index;
- }
- }
- return -1;
- }
- var baseIndexOfWith_default = baseIndexOfWith;
- // node_modules/lodash-es/_basePullAll.js
- var arrayProto3 = Array.prototype;
- var splice2 = arrayProto3.splice;
- function basePullAll(array4, values2, iteratee2, comparator) {
- var indexOf2 = comparator ? baseIndexOfWith_default : baseIndexOf_default, index = -1, length = values2.length, seen = array4;
- if (array4 === values2) {
- values2 = copyArray_default(values2);
- }
- if (iteratee2) {
- seen = arrayMap_default(array4, baseUnary_default(iteratee2));
- }
- while (++index < length) {
- var fromIndex = 0, value = values2[index], computed2 = iteratee2 ? iteratee2(value) : value;
- while ((fromIndex = indexOf2(seen, computed2, fromIndex, comparator)) > -1) {
- if (seen !== array4) {
- splice2.call(seen, fromIndex, 1);
- }
- splice2.call(array4, fromIndex, 1);
- }
- }
- return array4;
- }
- var basePullAll_default = basePullAll;
- // node_modules/lodash-es/pullAll.js
- function pullAll(array4, values2) {
- return array4 && array4.length && values2 && values2.length ? basePullAll_default(array4, values2) : array4;
- }
- var pullAll_default = pullAll;
- // node_modules/lodash-es/pull.js
- var pull = baseRest_default(pullAll_default);
- var pull_default = pull;
- // node_modules/lodash-es/pullAllBy.js
- function pullAllBy(array4, values2, iteratee2) {
- return array4 && array4.length && values2 && values2.length ? basePullAll_default(array4, values2, baseIteratee_default(iteratee2, 2)) : array4;
- }
- var pullAllBy_default = pullAllBy;
- // node_modules/lodash-es/pullAllWith.js
- function pullAllWith(array4, values2, comparator) {
- return array4 && array4.length && values2 && values2.length ? basePullAll_default(array4, values2, void 0, comparator) : array4;
- }
- var pullAllWith_default = pullAllWith;
- // node_modules/lodash-es/_basePullAt.js
- var arrayProto4 = Array.prototype;
- var splice3 = arrayProto4.splice;
- function basePullAt(array4, indexes) {
- var length = array4 ? indexes.length : 0, lastIndex = length - 1;
- while (length--) {
- var index = indexes[length];
- if (length == lastIndex || index !== previous) {
- var previous = index;
- if (isIndex_default(index)) {
- splice3.call(array4, index, 1);
- } else {
- baseUnset_default(array4, index);
- }
- }
- }
- return array4;
- }
- var basePullAt_default = basePullAt;
- // node_modules/lodash-es/pullAt.js
- var pullAt = flatRest_default(function(array4, indexes) {
- var length = array4 == null ? 0 : array4.length, result2 = baseAt_default(array4, indexes);
- basePullAt_default(array4, arrayMap_default(indexes, function(index) {
- return isIndex_default(index, length) ? +index : index;
- }).sort(compareAscending_default));
- return result2;
- });
- var pullAt_default = pullAt;
- // node_modules/lodash-es/_baseRandom.js
- var nativeFloor3 = Math.floor;
- var nativeRandom = Math.random;
- function baseRandom(lower, upper) {
- return lower + nativeFloor3(nativeRandom() * (upper - lower + 1));
- }
- var baseRandom_default = baseRandom;
- // node_modules/lodash-es/random.js
- var freeParseFloat = parseFloat;
- var nativeMin10 = Math.min;
- var nativeRandom2 = Math.random;
- function random(lower, upper, floating) {
- if (floating && typeof floating != "boolean" && isIterateeCall_default(lower, upper, floating)) {
- upper = floating = void 0;
- }
- if (floating === void 0) {
- if (typeof upper == "boolean") {
- floating = upper;
- upper = void 0;
- } else if (typeof lower == "boolean") {
- floating = lower;
- lower = void 0;
- }
- }
- if (lower === void 0 && upper === void 0) {
- lower = 0;
- upper = 1;
- } else {
- lower = toFinite_default(lower);
- if (upper === void 0) {
- upper = lower;
- lower = 0;
- } else {
- upper = toFinite_default(upper);
- }
- }
- if (lower > upper) {
- var temp = lower;
- lower = upper;
- upper = temp;
- }
- if (floating || lower % 1 || upper % 1) {
- var rand = nativeRandom2();
- return nativeMin10(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper);
- }
- return baseRandom_default(lower, upper);
- }
- var random_default = random;
- // node_modules/lodash-es/_baseRange.js
- var nativeCeil4 = Math.ceil;
- var nativeMax13 = Math.max;
- function baseRange(start, end, step2, fromRight) {
- var index = -1, length = nativeMax13(nativeCeil4((end - start) / (step2 || 1)), 0), result2 = Array(length);
- while (length--) {
- result2[fromRight ? length : ++index] = start;
- start += step2;
- }
- return result2;
- }
- var baseRange_default = baseRange;
- // node_modules/lodash-es/_createRange.js
- function createRange(fromRight) {
- return function(start, end, step2) {
- if (step2 && typeof step2 != "number" && isIterateeCall_default(start, end, step2)) {
- end = step2 = void 0;
- }
- start = toFinite_default(start);
- if (end === void 0) {
- end = start;
- start = 0;
- } else {
- end = toFinite_default(end);
- }
- step2 = step2 === void 0 ? start < end ? 1 : -1 : toFinite_default(step2);
- return baseRange_default(start, end, step2, fromRight);
- };
- }
- var createRange_default = createRange;
- // node_modules/lodash-es/range.js
- var range = createRange_default();
- var range_default = range;
- // node_modules/lodash-es/rangeRight.js
- var rangeRight = createRange_default(true);
- var rangeRight_default = rangeRight;
- // node_modules/lodash-es/rearg.js
- var WRAP_REARG_FLAG4 = 256;
- var rearg = flatRest_default(function(func, indexes) {
- return createWrap_default(func, WRAP_REARG_FLAG4, void 0, void 0, void 0, indexes);
- });
- var rearg_default = rearg;
- // node_modules/lodash-es/_baseReduce.js
- function baseReduce(collection, iteratee2, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection2) {
- accumulator = initAccum ? (initAccum = false, value) : iteratee2(accumulator, value, index, collection2);
- });
- return accumulator;
- }
- var baseReduce_default = baseReduce;
- // node_modules/lodash-es/reduce.js
- function reduce(collection, iteratee2, accumulator) {
- var func = isArray_default(collection) ? arrayReduce_default : baseReduce_default, initAccum = arguments.length < 3;
- return func(collection, baseIteratee_default(iteratee2, 4), accumulator, initAccum, baseEach_default);
- }
- var reduce_default = reduce;
- // node_modules/lodash-es/_arrayReduceRight.js
- function arrayReduceRight(array4, iteratee2, accumulator, initAccum) {
- var length = array4 == null ? 0 : array4.length;
- if (initAccum && length) {
- accumulator = array4[--length];
- }
- while (length--) {
- accumulator = iteratee2(accumulator, array4[length], length, array4);
- }
- return accumulator;
- }
- var arrayReduceRight_default = arrayReduceRight;
- // node_modules/lodash-es/reduceRight.js
- function reduceRight(collection, iteratee2, accumulator) {
- var func = isArray_default(collection) ? arrayReduceRight_default : baseReduce_default, initAccum = arguments.length < 3;
- return func(collection, baseIteratee_default(iteratee2, 4), accumulator, initAccum, baseEachRight_default);
- }
- var reduceRight_default = reduceRight;
- // node_modules/lodash-es/reject.js
- function reject(collection, predicate) {
- var func = isArray_default(collection) ? arrayFilter_default : baseFilter_default;
- return func(collection, negate_default(baseIteratee_default(predicate, 3)));
- }
- var reject_default = reject;
- // node_modules/lodash-es/remove.js
- function remove(array4, predicate) {
- var result2 = [];
- if (!(array4 && array4.length)) {
- return result2;
- }
- var index = -1, indexes = [], length = array4.length;
- predicate = baseIteratee_default(predicate, 3);
- while (++index < length) {
- var value = array4[index];
- if (predicate(value, index, array4)) {
- result2.push(value);
- indexes.push(index);
- }
- }
- basePullAt_default(array4, indexes);
- return result2;
- }
- var remove_default = remove;
- // node_modules/lodash-es/repeat.js
- function repeat(string3, n, guard) {
- if (guard ? isIterateeCall_default(string3, n, guard) : n === void 0) {
- n = 1;
- } else {
- n = toInteger_default(n);
- }
- return baseRepeat_default(toString_default(string3), n);
- }
- var repeat_default = repeat;
- // node_modules/lodash-es/replace.js
- function replace() {
- var args = arguments, string3 = toString_default(args[0]);
- return args.length < 3 ? string3 : string3.replace(args[1], args[2]);
- }
- var replace_default = replace;
- // node_modules/lodash-es/rest.js
- var FUNC_ERROR_TEXT10 = "Expected a function";
- function rest(func, start) {
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT10);
- }
- start = start === void 0 ? start : toInteger_default(start);
- return baseRest_default(func, start);
- }
- var rest_default = rest;
- // node_modules/lodash-es/result.js
- function result(object4, path, defaultValue) {
- path = castPath_default(path, object4);
- var index = -1, length = path.length;
- if (!length) {
- length = 1;
- object4 = void 0;
- }
- while (++index < length) {
- var value = object4 == null ? void 0 : object4[toKey_default(path[index])];
- if (value === void 0) {
- index = length;
- value = defaultValue;
- }
- object4 = isFunction_default(value) ? value.call(object4) : value;
- }
- return object4;
- }
- var result_default = result;
- // node_modules/lodash-es/reverse.js
- var arrayProto5 = Array.prototype;
- var nativeReverse = arrayProto5.reverse;
- function reverse(array4) {
- return array4 == null ? array4 : nativeReverse.call(array4);
- }
- var reverse_default = reverse;
- // node_modules/lodash-es/round.js
- var round = createRound_default("round");
- var round_default = round;
- // node_modules/lodash-es/_arraySample.js
- function arraySample(array4) {
- var length = array4.length;
- return length ? array4[baseRandom_default(0, length - 1)] : void 0;
- }
- var arraySample_default = arraySample;
- // node_modules/lodash-es/_baseSample.js
- function baseSample(collection) {
- return arraySample_default(values_default(collection));
- }
- var baseSample_default = baseSample;
- // node_modules/lodash-es/sample.js
- function sample(collection) {
- var func = isArray_default(collection) ? arraySample_default : baseSample_default;
- return func(collection);
- }
- var sample_default = sample;
- // node_modules/lodash-es/_shuffleSelf.js
- function shuffleSelf(array4, size3) {
- var index = -1, length = array4.length, lastIndex = length - 1;
- size3 = size3 === void 0 ? length : size3;
- while (++index < size3) {
- var rand = baseRandom_default(index, lastIndex), value = array4[rand];
- array4[rand] = array4[index];
- array4[index] = value;
- }
- array4.length = size3;
- return array4;
- }
- var shuffleSelf_default = shuffleSelf;
- // node_modules/lodash-es/_arraySampleSize.js
- function arraySampleSize(array4, n) {
- return shuffleSelf_default(copyArray_default(array4), baseClamp_default(n, 0, array4.length));
- }
- var arraySampleSize_default = arraySampleSize;
- // node_modules/lodash-es/_baseSampleSize.js
- function baseSampleSize(collection, n) {
- var array4 = values_default(collection);
- return shuffleSelf_default(array4, baseClamp_default(n, 0, array4.length));
- }
- var baseSampleSize_default = baseSampleSize;
- // node_modules/lodash-es/sampleSize.js
- function sampleSize(collection, n, guard) {
- if (guard ? isIterateeCall_default(collection, n, guard) : n === void 0) {
- n = 1;
- } else {
- n = toInteger_default(n);
- }
- var func = isArray_default(collection) ? arraySampleSize_default : baseSampleSize_default;
- return func(collection, n);
- }
- var sampleSize_default = sampleSize;
- // node_modules/lodash-es/set.js
- function set(object4, path, value) {
- return object4 == null ? object4 : baseSet_default(object4, path, value);
- }
- var set_default = set;
- // node_modules/lodash-es/setWith.js
- function setWith(object4, path, value, customizer) {
- customizer = typeof customizer == "function" ? customizer : void 0;
- return object4 == null ? object4 : baseSet_default(object4, path, value, customizer);
- }
- var setWith_default = setWith;
- // node_modules/lodash-es/_arrayShuffle.js
- function arrayShuffle(array4) {
- return shuffleSelf_default(copyArray_default(array4));
- }
- var arrayShuffle_default = arrayShuffle;
- // node_modules/lodash-es/_baseShuffle.js
- function baseShuffle(collection) {
- return shuffleSelf_default(values_default(collection));
- }
- var baseShuffle_default = baseShuffle;
- // node_modules/lodash-es/shuffle.js
- function shuffle(collection) {
- var func = isArray_default(collection) ? arrayShuffle_default : baseShuffle_default;
- return func(collection);
- }
- var shuffle_default = shuffle;
- // node_modules/lodash-es/size.js
- var mapTag10 = "[object Map]";
- var setTag10 = "[object Set]";
- function size(collection) {
- if (collection == null) {
- return 0;
- }
- if (isArrayLike_default(collection)) {
- return isString_default(collection) ? stringSize_default(collection) : collection.length;
- }
- var tag = getTag_default(collection);
- if (tag == mapTag10 || tag == setTag10) {
- return collection.size;
- }
- return baseKeys_default(collection).length;
- }
- var size_default = size;
- // node_modules/lodash-es/slice.js
- function slice(array4, start, end) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return [];
- }
- if (end && typeof end != "number" && isIterateeCall_default(array4, start, end)) {
- start = 0;
- end = length;
- } else {
- start = start == null ? 0 : toInteger_default(start);
- end = end === void 0 ? length : toInteger_default(end);
- }
- return baseSlice_default(array4, start, end);
- }
- var slice_default = slice;
- // node_modules/lodash-es/snakeCase.js
- var snakeCase = createCompounder_default(function(result2, word, index) {
- return result2 + (index ? "_" : "") + word.toLowerCase();
- });
- var snakeCase_default = snakeCase;
- // node_modules/lodash-es/_baseSome.js
- function baseSome(collection, predicate) {
- var result2;
- baseEach_default(collection, function(value, index, collection2) {
- result2 = predicate(value, index, collection2);
- return !result2;
- });
- return !!result2;
- }
- var baseSome_default = baseSome;
- // node_modules/lodash-es/some.js
- function some(collection, predicate, guard) {
- var func = isArray_default(collection) ? arraySome_default : baseSome_default;
- if (guard && isIterateeCall_default(collection, predicate, guard)) {
- predicate = void 0;
- }
- return func(collection, baseIteratee_default(predicate, 3));
- }
- var some_default = some;
- // node_modules/lodash-es/sortBy.js
- var sortBy = baseRest_default(function(collection, iteratees) {
- if (collection == null) {
- return [];
- }
- var length = iteratees.length;
- if (length > 1 && isIterateeCall_default(collection, iteratees[0], iteratees[1])) {
- iteratees = [];
- } else if (length > 2 && isIterateeCall_default(iteratees[0], iteratees[1], iteratees[2])) {
- iteratees = [iteratees[0]];
- }
- return baseOrderBy_default(collection, baseFlatten_default(iteratees, 1), []);
- });
- var sortBy_default = sortBy;
- // node_modules/lodash-es/_baseSortedIndexBy.js
- var MAX_ARRAY_LENGTH3 = 4294967295;
- var MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH3 - 1;
- var nativeFloor4 = Math.floor;
- var nativeMin11 = Math.min;
- function baseSortedIndexBy(array4, value, iteratee2, retHighest) {
- var low = 0, high = array4 == null ? 0 : array4.length;
- if (high === 0) {
- return 0;
- }
- value = iteratee2(value);
- var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol_default(value), valIsUndefined = value === void 0;
- while (low < high) {
- var mid = nativeFloor4((low + high) / 2), computed2 = iteratee2(array4[mid]), othIsDefined = computed2 !== void 0, othIsNull = computed2 === null, othIsReflexive = computed2 === computed2, othIsSymbol = isSymbol_default(computed2);
- if (valIsNaN) {
- var setLow = retHighest || othIsReflexive;
- } else if (valIsUndefined) {
- setLow = othIsReflexive && (retHighest || othIsDefined);
- } else if (valIsNull) {
- setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
- } else if (valIsSymbol) {
- setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
- } else if (othIsNull || othIsSymbol) {
- setLow = false;
- } else {
- setLow = retHighest ? computed2 <= value : computed2 < value;
- }
- if (setLow) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return nativeMin11(high, MAX_ARRAY_INDEX);
- }
- var baseSortedIndexBy_default = baseSortedIndexBy;
- // node_modules/lodash-es/_baseSortedIndex.js
- var MAX_ARRAY_LENGTH4 = 4294967295;
- var HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH4 >>> 1;
- function baseSortedIndex(array4, value, retHighest) {
- var low = 0, high = array4 == null ? low : array4.length;
- if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
- while (low < high) {
- var mid = low + high >>> 1, computed2 = array4[mid];
- if (computed2 !== null && !isSymbol_default(computed2) && (retHighest ? computed2 <= value : computed2 < value)) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return high;
- }
- return baseSortedIndexBy_default(array4, value, identity_default, retHighest);
- }
- var baseSortedIndex_default = baseSortedIndex;
- // node_modules/lodash-es/sortedIndex.js
- function sortedIndex(array4, value) {
- return baseSortedIndex_default(array4, value);
- }
- var sortedIndex_default = sortedIndex;
- // node_modules/lodash-es/sortedIndexBy.js
- function sortedIndexBy(array4, value, iteratee2) {
- return baseSortedIndexBy_default(array4, value, baseIteratee_default(iteratee2, 2));
- }
- var sortedIndexBy_default = sortedIndexBy;
- // node_modules/lodash-es/sortedIndexOf.js
- function sortedIndexOf(array4, value) {
- var length = array4 == null ? 0 : array4.length;
- if (length) {
- var index = baseSortedIndex_default(array4, value);
- if (index < length && eq_default(array4[index], value)) {
- return index;
- }
- }
- return -1;
- }
- var sortedIndexOf_default = sortedIndexOf;
- // node_modules/lodash-es/sortedLastIndex.js
- function sortedLastIndex(array4, value) {
- return baseSortedIndex_default(array4, value, true);
- }
- var sortedLastIndex_default = sortedLastIndex;
- // node_modules/lodash-es/sortedLastIndexBy.js
- function sortedLastIndexBy(array4, value, iteratee2) {
- return baseSortedIndexBy_default(array4, value, baseIteratee_default(iteratee2, 2), true);
- }
- var sortedLastIndexBy_default = sortedLastIndexBy;
- // node_modules/lodash-es/sortedLastIndexOf.js
- function sortedLastIndexOf(array4, value) {
- var length = array4 == null ? 0 : array4.length;
- if (length) {
- var index = baseSortedIndex_default(array4, value, true) - 1;
- if (eq_default(array4[index], value)) {
- return index;
- }
- }
- return -1;
- }
- var sortedLastIndexOf_default = sortedLastIndexOf;
- // node_modules/lodash-es/_baseSortedUniq.js
- function baseSortedUniq(array4, iteratee2) {
- var index = -1, length = array4.length, resIndex = 0, result2 = [];
- while (++index < length) {
- var value = array4[index], computed2 = iteratee2 ? iteratee2(value) : value;
- if (!index || !eq_default(computed2, seen)) {
- var seen = computed2;
- result2[resIndex++] = value === 0 ? 0 : value;
- }
- }
- return result2;
- }
- var baseSortedUniq_default = baseSortedUniq;
- // node_modules/lodash-es/sortedUniq.js
- function sortedUniq(array4) {
- return array4 && array4.length ? baseSortedUniq_default(array4) : [];
- }
- var sortedUniq_default = sortedUniq;
- // node_modules/lodash-es/sortedUniqBy.js
- function sortedUniqBy(array4, iteratee2) {
- return array4 && array4.length ? baseSortedUniq_default(array4, baseIteratee_default(iteratee2, 2)) : [];
- }
- var sortedUniqBy_default = sortedUniqBy;
- // node_modules/lodash-es/split.js
- var MAX_ARRAY_LENGTH5 = 4294967295;
- function split(string3, separator, limit) {
- if (limit && typeof limit != "number" && isIterateeCall_default(string3, separator, limit)) {
- separator = limit = void 0;
- }
- limit = limit === void 0 ? MAX_ARRAY_LENGTH5 : limit >>> 0;
- if (!limit) {
- return [];
- }
- string3 = toString_default(string3);
- if (string3 && (typeof separator == "string" || separator != null && !isRegExp_default(separator))) {
- separator = baseToString_default(separator);
- if (!separator && hasUnicode_default(string3)) {
- return castSlice_default(stringToArray_default(string3), 0, limit);
- }
- }
- return string3.split(separator, limit);
- }
- var split_default = split;
- // node_modules/lodash-es/spread.js
- var FUNC_ERROR_TEXT11 = "Expected a function";
- var nativeMax14 = Math.max;
- function spread(func, start) {
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT11);
- }
- start = start == null ? 0 : nativeMax14(toInteger_default(start), 0);
- return baseRest_default(function(args) {
- var array4 = args[start], otherArgs = castSlice_default(args, 0, start);
- if (array4) {
- arrayPush_default(otherArgs, array4);
- }
- return apply_default(func, this, otherArgs);
- });
- }
- var spread_default = spread;
- // node_modules/lodash-es/startCase.js
- var startCase = createCompounder_default(function(result2, word, index) {
- return result2 + (index ? " " : "") + upperFirst_default(word);
- });
- var startCase_default = startCase;
- // node_modules/lodash-es/startsWith.js
- function startsWith(string3, target2, position) {
- string3 = toString_default(string3);
- position = position == null ? 0 : baseClamp_default(toInteger_default(position), 0, string3.length);
- target2 = baseToString_default(target2);
- return string3.slice(position, position + target2.length) == target2;
- }
- var startsWith_default = startsWith;
- // node_modules/lodash-es/stubObject.js
- function stubObject() {
- return {};
- }
- var stubObject_default = stubObject;
- // node_modules/lodash-es/stubString.js
- function stubString() {
- return "";
- }
- var stubString_default = stubString;
- // node_modules/lodash-es/stubTrue.js
- function stubTrue() {
- return true;
- }
- var stubTrue_default = stubTrue;
- // node_modules/lodash-es/subtract.js
- var subtract = createMathOperation_default(function(minuend, subtrahend) {
- return minuend - subtrahend;
- }, 0);
- var subtract_default = subtract;
- // node_modules/lodash-es/sum.js
- function sum(array4) {
- return array4 && array4.length ? baseSum_default(array4, identity_default) : 0;
- }
- var sum_default = sum;
- // node_modules/lodash-es/sumBy.js
- function sumBy(array4, iteratee2) {
- return array4 && array4.length ? baseSum_default(array4, baseIteratee_default(iteratee2, 2)) : 0;
- }
- var sumBy_default = sumBy;
- // node_modules/lodash-es/tail.js
- function tail(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? baseSlice_default(array4, 1, length) : [];
- }
- var tail_default = tail;
- // node_modules/lodash-es/take.js
- function take(array4, n, guard) {
- if (!(array4 && array4.length)) {
- return [];
- }
- n = guard || n === void 0 ? 1 : toInteger_default(n);
- return baseSlice_default(array4, 0, n < 0 ? 0 : n);
- }
- var take_default = take;
- // node_modules/lodash-es/takeRight.js
- function takeRight(array4, n, guard) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return [];
- }
- n = guard || n === void 0 ? 1 : toInteger_default(n);
- n = length - n;
- return baseSlice_default(array4, n < 0 ? 0 : n, length);
- }
- var takeRight_default = takeRight;
- // node_modules/lodash-es/takeRightWhile.js
- function takeRightWhile(array4, predicate) {
- return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3), false, true) : [];
- }
- var takeRightWhile_default = takeRightWhile;
- // node_modules/lodash-es/takeWhile.js
- function takeWhile(array4, predicate) {
- return array4 && array4.length ? baseWhile_default(array4, baseIteratee_default(predicate, 3)) : [];
- }
- var takeWhile_default = takeWhile;
- // node_modules/lodash-es/tap.js
- function tap(value, interceptor) {
- interceptor(value);
- return value;
- }
- var tap_default = tap;
- // node_modules/lodash-es/_customDefaultsAssignIn.js
- var objectProto27 = Object.prototype;
- var hasOwnProperty23 = objectProto27.hasOwnProperty;
- function customDefaultsAssignIn(objValue, srcValue, key, object4) {
- if (objValue === void 0 || eq_default(objValue, objectProto27[key]) && !hasOwnProperty23.call(object4, key)) {
- return srcValue;
- }
- return objValue;
- }
- var customDefaultsAssignIn_default = customDefaultsAssignIn;
- // node_modules/lodash-es/_escapeStringChar.js
- var stringEscapes = {
- "\\": "\\",
- "'": "'",
- "\n": "n",
- "\r": "r",
- "\u2028": "u2028",
- "\u2029": "u2029"
- };
- function escapeStringChar(chr) {
- return "\\" + stringEscapes[chr];
- }
- var escapeStringChar_default = escapeStringChar;
- // node_modules/lodash-es/_reInterpolate.js
- var reInterpolate = /<%=([\s\S]+?)%>/g;
- var reInterpolate_default = reInterpolate;
- // node_modules/lodash-es/_reEscape.js
- var reEscape = /<%-([\s\S]+?)%>/g;
- var reEscape_default = reEscape;
- // node_modules/lodash-es/_reEvaluate.js
- var reEvaluate = /<%([\s\S]+?)%>/g;
- var reEvaluate_default = reEvaluate;
- // node_modules/lodash-es/templateSettings.js
- var templateSettings = {
- /**
- * Used to detect `data` property values to be HTML-escaped.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- "escape": reEscape_default,
- /**
- * Used to detect code to be evaluated.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- "evaluate": reEvaluate_default,
- /**
- * Used to detect `data` property values to inject.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- "interpolate": reInterpolate_default,
- /**
- * Used to reference the data object in the template text.
- *
- * @memberOf _.templateSettings
- * @type {string}
- */
- "variable": "",
- /**
- * Used to import variables into the compiled template.
- *
- * @memberOf _.templateSettings
- * @type {Object}
- */
- "imports": {
- /**
- * A reference to the `lodash` function.
- *
- * @memberOf _.templateSettings.imports
- * @type {Function}
- */
- "_": { "escape": escape_default }
- }
- };
- var templateSettings_default = templateSettings;
- // node_modules/lodash-es/template.js
- var INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
- var reEmptyStringLeading = /\b__p \+= '';/g;
- var reEmptyStringMiddle = /\b(__p \+=) '' \+/g;
- var reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
- var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/;
- var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
- var reNoMatch = /($^)/;
- var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
- var objectProto28 = Object.prototype;
- var hasOwnProperty24 = objectProto28.hasOwnProperty;
- function template(string3, options, guard) {
- var settings = templateSettings_default.imports._.templateSettings || templateSettings_default;
- if (guard && isIterateeCall_default(string3, options, guard)) {
- options = void 0;
- }
- string3 = toString_default(string3);
- options = assignInWith_default({}, options, settings, customDefaultsAssignIn_default);
- var imports = assignInWith_default({}, options.imports, settings.imports, customDefaultsAssignIn_default), importsKeys = keys_default(imports), importsValues = baseValues_default(imports, importsKeys);
- var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
- var reDelimiters = RegExp(
- (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate_default ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
- "g"
- );
- var sourceURL = hasOwnProperty24.call(options, "sourceURL") ? "//# sourceURL=" + (options.sourceURL + "").replace(/\s/g, " ") + "\n" : "";
- string3.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset3) {
- interpolateValue || (interpolateValue = esTemplateValue);
- source += string3.slice(index, offset3).replace(reUnescapedString, escapeStringChar_default);
- if (escapeValue) {
- isEscaping = true;
- source += "' +\n__e(" + escapeValue + ") +\n'";
- }
- if (evaluateValue) {
- isEvaluating = true;
- source += "';\n" + evaluateValue + ";\n__p += '";
- }
- if (interpolateValue) {
- source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
- }
- index = offset3 + match.length;
- return match;
- });
- source += "';\n";
- var variable = hasOwnProperty24.call(options, "variable") && options.variable;
- if (!variable) {
- source = "with (obj) {\n" + source + "\n}\n";
- } else if (reForbiddenIdentifierChars.test(variable)) {
- throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
- }
- source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
- 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}";
- var result2 = attempt_default(function() {
- return Function(importsKeys, sourceURL + "return " + source).apply(void 0, importsValues);
- });
- result2.source = source;
- if (isError_default(result2)) {
- throw result2;
- }
- return result2;
- }
- var template_default = template;
- // node_modules/lodash-es/throttle.js
- var FUNC_ERROR_TEXT12 = "Expected a function";
- function throttle(func, wait, options) {
- var leading = true, trailing = true;
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT12);
- }
- if (isObject_default(options)) {
- leading = "leading" in options ? !!options.leading : leading;
- trailing = "trailing" in options ? !!options.trailing : trailing;
- }
- return debounce_default(func, wait, {
- "leading": leading,
- "maxWait": wait,
- "trailing": trailing
- });
- }
- var throttle_default = throttle;
- // node_modules/lodash-es/thru.js
- function thru(value, interceptor) {
- return interceptor(value);
- }
- var thru_default = thru;
- // node_modules/lodash-es/times.js
- var MAX_SAFE_INTEGER5 = 9007199254740991;
- var MAX_ARRAY_LENGTH6 = 4294967295;
- var nativeMin12 = Math.min;
- function times(n, iteratee2) {
- n = toInteger_default(n);
- if (n < 1 || n > MAX_SAFE_INTEGER5) {
- return [];
- }
- var index = MAX_ARRAY_LENGTH6, length = nativeMin12(n, MAX_ARRAY_LENGTH6);
- iteratee2 = castFunction_default(iteratee2);
- n -= MAX_ARRAY_LENGTH6;
- var result2 = baseTimes_default(length, iteratee2);
- while (++index < n) {
- iteratee2(index);
- }
- return result2;
- }
- var times_default = times;
- // node_modules/lodash-es/toIterator.js
- function wrapperToIterator() {
- return this;
- }
- var toIterator_default = wrapperToIterator;
- // node_modules/lodash-es/_baseWrapperValue.js
- function baseWrapperValue(value, actions) {
- var result2 = value;
- if (result2 instanceof LazyWrapper_default) {
- result2 = result2.value();
- }
- return arrayReduce_default(actions, function(result3, action) {
- return action.func.apply(action.thisArg, arrayPush_default([result3], action.args));
- }, result2);
- }
- var baseWrapperValue_default = baseWrapperValue;
- // node_modules/lodash-es/wrapperValue.js
- function wrapperValue() {
- return baseWrapperValue_default(this.__wrapped__, this.__actions__);
- }
- var wrapperValue_default = wrapperValue;
- // node_modules/lodash-es/toLower.js
- function toLower(value) {
- return toString_default(value).toLowerCase();
- }
- var toLower_default = toLower;
- // node_modules/lodash-es/toPath.js
- function toPath(value) {
- if (isArray_default(value)) {
- return arrayMap_default(value, toKey_default);
- }
- return isSymbol_default(value) ? [value] : copyArray_default(stringToPath_default(toString_default(value)));
- }
- var toPath_default = toPath;
- // node_modules/lodash-es/toSafeInteger.js
- var MAX_SAFE_INTEGER6 = 9007199254740991;
- function toSafeInteger(value) {
- return value ? baseClamp_default(toInteger_default(value), -MAX_SAFE_INTEGER6, MAX_SAFE_INTEGER6) : value === 0 ? value : 0;
- }
- var toSafeInteger_default = toSafeInteger;
- // node_modules/lodash-es/toUpper.js
- function toUpper(value) {
- return toString_default(value).toUpperCase();
- }
- var toUpper_default = toUpper;
- // node_modules/lodash-es/transform.js
- function transform(object4, iteratee2, accumulator) {
- var isArr = isArray_default(object4), isArrLike = isArr || isBuffer_default(object4) || isTypedArray_default(object4);
- iteratee2 = baseIteratee_default(iteratee2, 4);
- if (accumulator == null) {
- var Ctor = object4 && object4.constructor;
- if (isArrLike) {
- accumulator = isArr ? new Ctor() : [];
- } else if (isObject_default(object4)) {
- accumulator = isFunction_default(Ctor) ? baseCreate_default(getPrototype_default(object4)) : {};
- } else {
- accumulator = {};
- }
- }
- (isArrLike ? arrayEach_default : baseForOwn_default)(object4, function(value, index, object5) {
- return iteratee2(accumulator, value, index, object5);
- });
- return accumulator;
- }
- var transform_default = transform;
- // node_modules/lodash-es/_charsEndIndex.js
- function charsEndIndex(strSymbols, chrSymbols) {
- var index = strSymbols.length;
- while (index-- && baseIndexOf_default(chrSymbols, strSymbols[index], 0) > -1) {
- }
- return index;
- }
- var charsEndIndex_default = charsEndIndex;
- // node_modules/lodash-es/_charsStartIndex.js
- function charsStartIndex(strSymbols, chrSymbols) {
- var index = -1, length = strSymbols.length;
- while (++index < length && baseIndexOf_default(chrSymbols, strSymbols[index], 0) > -1) {
- }
- return index;
- }
- var charsStartIndex_default = charsStartIndex;
- // node_modules/lodash-es/trim.js
- function trim(string3, chars, guard) {
- string3 = toString_default(string3);
- if (string3 && (guard || chars === void 0)) {
- return baseTrim_default(string3);
- }
- if (!string3 || !(chars = baseToString_default(chars))) {
- return string3;
- }
- var strSymbols = stringToArray_default(string3), chrSymbols = stringToArray_default(chars), start = charsStartIndex_default(strSymbols, chrSymbols), end = charsEndIndex_default(strSymbols, chrSymbols) + 1;
- return castSlice_default(strSymbols, start, end).join("");
- }
- var trim_default = trim;
- // node_modules/lodash-es/trimEnd.js
- function trimEnd(string3, chars, guard) {
- string3 = toString_default(string3);
- if (string3 && (guard || chars === void 0)) {
- return string3.slice(0, trimmedEndIndex_default(string3) + 1);
- }
- if (!string3 || !(chars = baseToString_default(chars))) {
- return string3;
- }
- var strSymbols = stringToArray_default(string3), end = charsEndIndex_default(strSymbols, stringToArray_default(chars)) + 1;
- return castSlice_default(strSymbols, 0, end).join("");
- }
- var trimEnd_default = trimEnd;
- // node_modules/lodash-es/trimStart.js
- var reTrimStart3 = /^\s+/;
- function trimStart(string3, chars, guard) {
- string3 = toString_default(string3);
- if (string3 && (guard || chars === void 0)) {
- return string3.replace(reTrimStart3, "");
- }
- if (!string3 || !(chars = baseToString_default(chars))) {
- return string3;
- }
- var strSymbols = stringToArray_default(string3), start = charsStartIndex_default(strSymbols, stringToArray_default(chars));
- return castSlice_default(strSymbols, start).join("");
- }
- var trimStart_default = trimStart;
- // node_modules/lodash-es/truncate.js
- var DEFAULT_TRUNC_LENGTH = 30;
- var DEFAULT_TRUNC_OMISSION = "...";
- var reFlags2 = /\w*$/;
- function truncate(string3, options) {
- var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
- if (isObject_default(options)) {
- var separator = "separator" in options ? options.separator : separator;
- length = "length" in options ? toInteger_default(options.length) : length;
- omission = "omission" in options ? baseToString_default(options.omission) : omission;
- }
- string3 = toString_default(string3);
- var strLength = string3.length;
- if (hasUnicode_default(string3)) {
- var strSymbols = stringToArray_default(string3);
- strLength = strSymbols.length;
- }
- if (length >= strLength) {
- return string3;
- }
- var end = length - stringSize_default(omission);
- if (end < 1) {
- return omission;
- }
- var result2 = strSymbols ? castSlice_default(strSymbols, 0, end).join("") : string3.slice(0, end);
- if (separator === void 0) {
- return result2 + omission;
- }
- if (strSymbols) {
- end += result2.length - end;
- }
- if (isRegExp_default(separator)) {
- if (string3.slice(end).search(separator)) {
- var match, substring = result2;
- if (!separator.global) {
- separator = RegExp(separator.source, toString_default(reFlags2.exec(separator)) + "g");
- }
- separator.lastIndex = 0;
- while (match = separator.exec(substring)) {
- var newEnd = match.index;
- }
- result2 = result2.slice(0, newEnd === void 0 ? end : newEnd);
- }
- } else if (string3.indexOf(baseToString_default(separator), end) != end) {
- var index = result2.lastIndexOf(separator);
- if (index > -1) {
- result2 = result2.slice(0, index);
- }
- }
- return result2 + omission;
- }
- var truncate_default = truncate;
- // node_modules/lodash-es/unary.js
- function unary(func) {
- return ary_default(func, 1);
- }
- var unary_default = unary;
- // node_modules/lodash-es/_unescapeHtmlChar.js
- var htmlUnescapes = {
- "&": "&",
- "<": "<",
- ">": ">",
- """: '"',
- "'": "'"
- };
- var unescapeHtmlChar = basePropertyOf_default(htmlUnescapes);
- var unescapeHtmlChar_default = unescapeHtmlChar;
- // node_modules/lodash-es/unescape.js
- var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g;
- var reHasEscapedHtml = RegExp(reEscapedHtml.source);
- function unescape(string3) {
- string3 = toString_default(string3);
- return string3 && reHasEscapedHtml.test(string3) ? string3.replace(reEscapedHtml, unescapeHtmlChar_default) : string3;
- }
- var unescape_default = unescape;
- // node_modules/lodash-es/_createSet.js
- var INFINITY6 = 1 / 0;
- var createSet = !(Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY6) ? noop_default : function(values2) {
- return new Set_default(values2);
- };
- var createSet_default = createSet;
- // node_modules/lodash-es/_baseUniq.js
- var LARGE_ARRAY_SIZE3 = 200;
- function baseUniq(array4, iteratee2, comparator) {
- var index = -1, includes2 = arrayIncludes_default, length = array4.length, isCommon = true, result2 = [], seen = result2;
- if (comparator) {
- isCommon = false;
- includes2 = arrayIncludesWith_default;
- } else if (length >= LARGE_ARRAY_SIZE3) {
- var set3 = iteratee2 ? null : createSet_default(array4);
- if (set3) {
- return setToArray_default(set3);
- }
- isCommon = false;
- includes2 = cacheHas_default;
- seen = new SetCache_default();
- } else {
- seen = iteratee2 ? [] : result2;
- }
- outer:
- while (++index < length) {
- var value = array4[index], computed2 = iteratee2 ? iteratee2(value) : value;
- value = comparator || value !== 0 ? value : 0;
- if (isCommon && computed2 === computed2) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed2) {
- continue outer;
- }
- }
- if (iteratee2) {
- seen.push(computed2);
- }
- result2.push(value);
- } else if (!includes2(seen, computed2, comparator)) {
- if (seen !== result2) {
- seen.push(computed2);
- }
- result2.push(value);
- }
- }
- return result2;
- }
- var baseUniq_default = baseUniq;
- // node_modules/lodash-es/union.js
- var union = baseRest_default(function(arrays) {
- return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true));
- });
- var union_default = union;
- // node_modules/lodash-es/unionBy.js
- var unionBy = baseRest_default(function(arrays) {
- var iteratee2 = last_default(arrays);
- if (isArrayLikeObject_default(iteratee2)) {
- iteratee2 = void 0;
- }
- return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true), baseIteratee_default(iteratee2, 2));
- });
- var unionBy_default = unionBy;
- // node_modules/lodash-es/unionWith.js
- var unionWith = baseRest_default(function(arrays) {
- var comparator = last_default(arrays);
- comparator = typeof comparator == "function" ? comparator : void 0;
- return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true), void 0, comparator);
- });
- var unionWith_default = unionWith;
- // node_modules/lodash-es/uniq.js
- function uniq(array4) {
- return array4 && array4.length ? baseUniq_default(array4) : [];
- }
- var uniq_default = uniq;
- // node_modules/lodash-es/uniqBy.js
- function uniqBy(array4, iteratee2) {
- return array4 && array4.length ? baseUniq_default(array4, baseIteratee_default(iteratee2, 2)) : [];
- }
- var uniqBy_default = uniqBy;
- // node_modules/lodash-es/uniqWith.js
- function uniqWith(array4, comparator) {
- comparator = typeof comparator == "function" ? comparator : void 0;
- return array4 && array4.length ? baseUniq_default(array4, void 0, comparator) : [];
- }
- var uniqWith_default = uniqWith;
- // node_modules/lodash-es/uniqueId.js
- var idCounter = 0;
- function uniqueId(prefix) {
- var id = ++idCounter;
- return toString_default(prefix) + id;
- }
- var uniqueId_default = uniqueId;
- // node_modules/lodash-es/unset.js
- function unset(object4, path) {
- return object4 == null ? true : baseUnset_default(object4, path);
- }
- var unset_default = unset;
- // node_modules/lodash-es/unzip.js
- var nativeMax15 = Math.max;
- function unzip(array4) {
- if (!(array4 && array4.length)) {
- return [];
- }
- var length = 0;
- array4 = arrayFilter_default(array4, function(group) {
- if (isArrayLikeObject_default(group)) {
- length = nativeMax15(group.length, length);
- return true;
- }
- });
- return baseTimes_default(length, function(index) {
- return arrayMap_default(array4, baseProperty_default(index));
- });
- }
- var unzip_default = unzip;
- // node_modules/lodash-es/unzipWith.js
- function unzipWith(array4, iteratee2) {
- if (!(array4 && array4.length)) {
- return [];
- }
- var result2 = unzip_default(array4);
- if (iteratee2 == null) {
- return result2;
- }
- return arrayMap_default(result2, function(group) {
- return apply_default(iteratee2, void 0, group);
- });
- }
- var unzipWith_default = unzipWith;
- // node_modules/lodash-es/_baseUpdate.js
- function baseUpdate(object4, path, updater, customizer) {
- return baseSet_default(object4, path, updater(baseGet_default(object4, path)), customizer);
- }
- var baseUpdate_default = baseUpdate;
- // node_modules/lodash-es/update.js
- function update(object4, path, updater) {
- return object4 == null ? object4 : baseUpdate_default(object4, path, castFunction_default(updater));
- }
- var update_default = update;
- // node_modules/lodash-es/updateWith.js
- function updateWith(object4, path, updater, customizer) {
- customizer = typeof customizer == "function" ? customizer : void 0;
- return object4 == null ? object4 : baseUpdate_default(object4, path, castFunction_default(updater), customizer);
- }
- var updateWith_default = updateWith;
- // node_modules/lodash-es/upperCase.js
- var upperCase = createCompounder_default(function(result2, word, index) {
- return result2 + (index ? " " : "") + word.toUpperCase();
- });
- var upperCase_default = upperCase;
- // node_modules/lodash-es/valuesIn.js
- function valuesIn(object4) {
- return object4 == null ? [] : baseValues_default(object4, keysIn_default(object4));
- }
- var valuesIn_default = valuesIn;
- // node_modules/lodash-es/without.js
- var without = baseRest_default(function(array4, values2) {
- return isArrayLikeObject_default(array4) ? baseDifference_default(array4, values2) : [];
- });
- var without_default = without;
- // node_modules/lodash-es/wrap.js
- function wrap(value, wrapper) {
- return partial_default(castFunction_default(wrapper), value);
- }
- var wrap_default = wrap;
- // node_modules/lodash-es/wrapperAt.js
- var wrapperAt = flatRest_default(function(paths) {
- var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object4) {
- return baseAt_default(object4, paths);
- };
- if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper_default) || !isIndex_default(start)) {
- return this.thru(interceptor);
- }
- value = value.slice(start, +start + (length ? 1 : 0));
- value.__actions__.push({
- "func": thru_default,
- "args": [interceptor],
- "thisArg": void 0
- });
- return new LodashWrapper_default(value, this.__chain__).thru(function(array4) {
- if (length && !array4.length) {
- array4.push(void 0);
- }
- return array4;
- });
- });
- var wrapperAt_default = wrapperAt;
- // node_modules/lodash-es/wrapperChain.js
- function wrapperChain() {
- return chain_default(this);
- }
- var wrapperChain_default = wrapperChain;
- // node_modules/lodash-es/wrapperReverse.js
- function wrapperReverse() {
- var value = this.__wrapped__;
- if (value instanceof LazyWrapper_default) {
- var wrapped = value;
- if (this.__actions__.length) {
- wrapped = new LazyWrapper_default(this);
- }
- wrapped = wrapped.reverse();
- wrapped.__actions__.push({
- "func": thru_default,
- "args": [reverse_default],
- "thisArg": void 0
- });
- return new LodashWrapper_default(wrapped, this.__chain__);
- }
- return this.thru(reverse_default);
- }
- var wrapperReverse_default = wrapperReverse;
- // node_modules/lodash-es/_baseXor.js
- function baseXor(arrays, iteratee2, comparator) {
- var length = arrays.length;
- if (length < 2) {
- return length ? baseUniq_default(arrays[0]) : [];
- }
- var index = -1, result2 = Array(length);
- while (++index < length) {
- var array4 = arrays[index], othIndex = -1;
- while (++othIndex < length) {
- if (othIndex != index) {
- result2[index] = baseDifference_default(result2[index] || array4, arrays[othIndex], iteratee2, comparator);
- }
- }
- }
- return baseUniq_default(baseFlatten_default(result2, 1), iteratee2, comparator);
- }
- var baseXor_default = baseXor;
- // node_modules/lodash-es/xor.js
- var xor = baseRest_default(function(arrays) {
- return baseXor_default(arrayFilter_default(arrays, isArrayLikeObject_default));
- });
- var xor_default = xor;
- // node_modules/lodash-es/xorBy.js
- var xorBy = baseRest_default(function(arrays) {
- var iteratee2 = last_default(arrays);
- if (isArrayLikeObject_default(iteratee2)) {
- iteratee2 = void 0;
- }
- return baseXor_default(arrayFilter_default(arrays, isArrayLikeObject_default), baseIteratee_default(iteratee2, 2));
- });
- var xorBy_default = xorBy;
- // node_modules/lodash-es/xorWith.js
- var xorWith = baseRest_default(function(arrays) {
- var comparator = last_default(arrays);
- comparator = typeof comparator == "function" ? comparator : void 0;
- return baseXor_default(arrayFilter_default(arrays, isArrayLikeObject_default), void 0, comparator);
- });
- var xorWith_default = xorWith;
- // node_modules/lodash-es/zip.js
- var zip = baseRest_default(unzip_default);
- var zip_default = zip;
- // node_modules/lodash-es/_baseZipObject.js
- function baseZipObject(props2, values2, assignFunc) {
- var index = -1, length = props2.length, valsLength = values2.length, result2 = {};
- while (++index < length) {
- var value = index < valsLength ? values2[index] : void 0;
- assignFunc(result2, props2[index], value);
- }
- return result2;
- }
- var baseZipObject_default = baseZipObject;
- // node_modules/lodash-es/zipObject.js
- function zipObject(props2, values2) {
- return baseZipObject_default(props2 || [], values2 || [], assignValue_default);
- }
- var zipObject_default = zipObject;
- // node_modules/lodash-es/zipObjectDeep.js
- function zipObjectDeep(props2, values2) {
- return baseZipObject_default(props2 || [], values2 || [], baseSet_default);
- }
- var zipObjectDeep_default = zipObjectDeep;
- // node_modules/lodash-es/zipWith.js
- var zipWith = baseRest_default(function(arrays) {
- var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : void 0;
- iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : void 0;
- return unzipWith_default(arrays, iteratee2);
- });
- var zipWith_default = zipWith;
- // node_modules/lodash-es/array.default.js
- var array_default_default = {
- chunk: chunk_default,
- compact: compact_default,
- concat: concat_default,
- difference: difference_default,
- differenceBy: differenceBy_default,
- differenceWith: differenceWith_default,
- drop: drop_default,
- dropRight: dropRight_default,
- dropRightWhile: dropRightWhile_default,
- dropWhile: dropWhile_default,
- fill: fill_default,
- findIndex: findIndex_default,
- findLastIndex: findLastIndex_default,
- first: head_default,
- flatten: flatten_default,
- flattenDeep: flattenDeep_default,
- flattenDepth: flattenDepth_default,
- fromPairs: fromPairs_default,
- head: head_default,
- indexOf: indexOf_default,
- initial: initial_default,
- intersection: intersection_default,
- intersectionBy: intersectionBy_default,
- intersectionWith: intersectionWith_default,
- join: join_default,
- last: last_default,
- lastIndexOf: lastIndexOf_default,
- nth: nth_default,
- pull: pull_default,
- pullAll: pullAll_default,
- pullAllBy: pullAllBy_default,
- pullAllWith: pullAllWith_default,
- pullAt: pullAt_default,
- remove: remove_default,
- reverse: reverse_default,
- slice: slice_default,
- sortedIndex: sortedIndex_default,
- sortedIndexBy: sortedIndexBy_default,
- sortedIndexOf: sortedIndexOf_default,
- sortedLastIndex: sortedLastIndex_default,
- sortedLastIndexBy: sortedLastIndexBy_default,
- sortedLastIndexOf: sortedLastIndexOf_default,
- sortedUniq: sortedUniq_default,
- sortedUniqBy: sortedUniqBy_default,
- tail: tail_default,
- take: take_default,
- takeRight: takeRight_default,
- takeRightWhile: takeRightWhile_default,
- takeWhile: takeWhile_default,
- union: union_default,
- unionBy: unionBy_default,
- unionWith: unionWith_default,
- uniq: uniq_default,
- uniqBy: uniqBy_default,
- uniqWith: uniqWith_default,
- unzip: unzip_default,
- unzipWith: unzipWith_default,
- without: without_default,
- xor: xor_default,
- xorBy: xorBy_default,
- xorWith: xorWith_default,
- zip: zip_default,
- zipObject: zipObject_default,
- zipObjectDeep: zipObjectDeep_default,
- zipWith: zipWith_default
- };
- // node_modules/lodash-es/collection.default.js
- var collection_default_default = {
- countBy: countBy_default,
- each: forEach_default,
- eachRight: forEachRight_default,
- every: every_default,
- filter: filter_default,
- find: find_default,
- findLast: findLast_default,
- flatMap: flatMap_default,
- flatMapDeep: flatMapDeep_default,
- flatMapDepth: flatMapDepth_default,
- forEach: forEach_default,
- forEachRight: forEachRight_default,
- groupBy: groupBy_default,
- includes: includes_default,
- invokeMap: invokeMap_default,
- keyBy: keyBy_default,
- map: map_default,
- orderBy: orderBy_default,
- partition: partition_default,
- reduce: reduce_default,
- reduceRight: reduceRight_default,
- reject: reject_default,
- sample: sample_default,
- sampleSize: sampleSize_default,
- shuffle: shuffle_default,
- size: size_default,
- some: some_default,
- sortBy: sortBy_default
- };
- // node_modules/lodash-es/date.default.js
- var date_default_default = {
- now: now_default
- };
- // node_modules/lodash-es/function.default.js
- var function_default_default = {
- after: after_default,
- ary: ary_default,
- before: before_default,
- bind: bind_default,
- bindKey: bindKey_default,
- curry: curry_default,
- curryRight: curryRight_default,
- debounce: debounce_default,
- defer: defer_default,
- delay: delay_default,
- flip: flip_default,
- memoize: memoize_default,
- negate: negate_default,
- once: once_default,
- overArgs: overArgs_default,
- partial: partial_default,
- partialRight: partialRight_default,
- rearg: rearg_default,
- rest: rest_default,
- spread: spread_default,
- throttle: throttle_default,
- unary: unary_default,
- wrap: wrap_default
- };
- // node_modules/lodash-es/lang.default.js
- var lang_default_default = {
- castArray: castArray_default,
- clone: clone_default,
- cloneDeep: cloneDeep_default,
- cloneDeepWith: cloneDeepWith_default,
- cloneWith: cloneWith_default,
- conformsTo: conformsTo_default,
- eq: eq_default,
- gt: gt_default,
- gte: gte_default,
- isArguments: isArguments_default,
- isArray: isArray_default,
- isArrayBuffer: isArrayBuffer_default,
- isArrayLike: isArrayLike_default,
- isArrayLikeObject: isArrayLikeObject_default,
- isBoolean: isBoolean_default,
- isBuffer: isBuffer_default,
- isDate: isDate_default,
- isElement: isElement_default,
- isEmpty: isEmpty_default,
- isEqual: isEqual_default,
- isEqualWith: isEqualWith_default,
- isError: isError_default,
- isFinite: isFinite_default,
- isFunction: isFunction_default,
- isInteger: isInteger_default,
- isLength: isLength_default,
- isMap: isMap_default,
- isMatch: isMatch_default,
- isMatchWith: isMatchWith_default,
- isNaN: isNaN_default,
- isNative: isNative_default,
- isNil: isNil_default,
- isNull: isNull_default,
- isNumber: isNumber_default,
- isObject: isObject_default,
- isObjectLike: isObjectLike_default,
- isPlainObject: isPlainObject_default,
- isRegExp: isRegExp_default,
- isSafeInteger: isSafeInteger_default,
- isSet: isSet_default,
- isString: isString_default,
- isSymbol: isSymbol_default,
- isTypedArray: isTypedArray_default,
- isUndefined: isUndefined_default,
- isWeakMap: isWeakMap_default,
- isWeakSet: isWeakSet_default,
- lt: lt_default,
- lte: lte_default,
- toArray: toArray_default,
- toFinite: toFinite_default,
- toInteger: toInteger_default,
- toLength: toLength_default,
- toNumber: toNumber_default,
- toPlainObject: toPlainObject_default,
- toSafeInteger: toSafeInteger_default,
- toString: toString_default
- };
- // node_modules/lodash-es/math.default.js
- var math_default_default = {
- add: add_default,
- ceil: ceil_default,
- divide: divide_default,
- floor: floor_default,
- max: max_default,
- maxBy: maxBy_default,
- mean: mean_default,
- meanBy: meanBy_default,
- min: min_default,
- minBy: minBy_default,
- multiply: multiply_default,
- round: round_default,
- subtract: subtract_default,
- sum: sum_default,
- sumBy: sumBy_default
- };
- // node_modules/lodash-es/number.default.js
- var number_default_default = {
- clamp: clamp_default,
- inRange: inRange_default,
- random: random_default
- };
- // node_modules/lodash-es/object.default.js
- var object_default_default = {
- assign: assign_default,
- assignIn: assignIn_default,
- assignInWith: assignInWith_default,
- assignWith: assignWith_default,
- at: at_default,
- create: create_default,
- defaults: defaults_default,
- defaultsDeep: defaultsDeep_default,
- entries: toPairs_default,
- entriesIn: toPairsIn_default,
- extend: assignIn_default,
- extendWith: assignInWith_default,
- findKey: findKey_default,
- findLastKey: findLastKey_default,
- forIn: forIn_default,
- forInRight: forInRight_default,
- forOwn: forOwn_default,
- forOwnRight: forOwnRight_default,
- functions: functions_default,
- functionsIn: functionsIn_default,
- get: get_default,
- has: has_default,
- hasIn: hasIn_default,
- invert: invert_default,
- invertBy: invertBy_default,
- invoke: invoke_default,
- keys: keys_default,
- keysIn: keysIn_default,
- mapKeys: mapKeys_default,
- mapValues: mapValues_default,
- merge: merge_default,
- mergeWith: mergeWith_default,
- omit: omit_default,
- omitBy: omitBy_default,
- pick: pick_default,
- pickBy: pickBy_default,
- result: result_default,
- set: set_default,
- setWith: setWith_default,
- toPairs: toPairs_default,
- toPairsIn: toPairsIn_default,
- transform: transform_default,
- unset: unset_default,
- update: update_default,
- updateWith: updateWith_default,
- values: values_default,
- valuesIn: valuesIn_default
- };
- // node_modules/lodash-es/seq.default.js
- var seq_default_default = {
- at: wrapperAt_default,
- chain: chain_default,
- commit: commit_default,
- lodash: wrapperLodash_default,
- next: next_default,
- plant: plant_default,
- reverse: wrapperReverse_default,
- tap: tap_default,
- thru: thru_default,
- toIterator: toIterator_default,
- toJSON: wrapperValue_default,
- value: wrapperValue_default,
- valueOf: wrapperValue_default,
- wrapperChain: wrapperChain_default
- };
- // node_modules/lodash-es/string.default.js
- var string_default_default = {
- camelCase: camelCase_default,
- capitalize: capitalize_default,
- deburr: deburr_default,
- endsWith: endsWith_default,
- escape: escape_default,
- escapeRegExp: escapeRegExp_default,
- kebabCase: kebabCase_default,
- lowerCase: lowerCase_default,
- lowerFirst: lowerFirst_default,
- pad: pad_default,
- padEnd: padEnd_default,
- padStart: padStart_default,
- parseInt: parseInt_default,
- repeat: repeat_default,
- replace: replace_default,
- snakeCase: snakeCase_default,
- split: split_default,
- startCase: startCase_default,
- startsWith: startsWith_default,
- template: template_default,
- templateSettings: templateSettings_default,
- toLower: toLower_default,
- toUpper: toUpper_default,
- trim: trim_default,
- trimEnd: trimEnd_default,
- trimStart: trimStart_default,
- truncate: truncate_default,
- unescape: unescape_default,
- upperCase: upperCase_default,
- upperFirst: upperFirst_default,
- words: words_default
- };
- // node_modules/lodash-es/util.default.js
- var util_default_default = {
- attempt: attempt_default,
- bindAll: bindAll_default,
- cond: cond_default,
- conforms: conforms_default,
- constant: constant_default,
- defaultTo: defaultTo_default,
- flow: flow_default,
- flowRight: flowRight_default,
- identity: identity_default,
- iteratee: iteratee_default,
- matches: matches_default,
- matchesProperty: matchesProperty_default,
- method: method_default,
- methodOf: methodOf_default,
- mixin: mixin_default,
- noop: noop_default,
- nthArg: nthArg_default,
- over: over_default,
- overEvery: overEvery_default,
- overSome: overSome_default,
- property: property_default,
- propertyOf: propertyOf_default,
- range: range_default,
- rangeRight: rangeRight_default,
- stubArray: stubArray_default,
- stubFalse: stubFalse_default,
- stubObject: stubObject_default,
- stubString: stubString_default,
- stubTrue: stubTrue_default,
- times: times_default,
- toPath: toPath_default,
- uniqueId: uniqueId_default
- };
- // node_modules/lodash-es/_lazyClone.js
- function lazyClone() {
- var result2 = new LazyWrapper_default(this.__wrapped__);
- result2.__actions__ = copyArray_default(this.__actions__);
- result2.__dir__ = this.__dir__;
- result2.__filtered__ = this.__filtered__;
- result2.__iteratees__ = copyArray_default(this.__iteratees__);
- result2.__takeCount__ = this.__takeCount__;
- result2.__views__ = copyArray_default(this.__views__);
- return result2;
- }
- var lazyClone_default = lazyClone;
- // node_modules/lodash-es/_lazyReverse.js
- function lazyReverse() {
- if (this.__filtered__) {
- var result2 = new LazyWrapper_default(this);
- result2.__dir__ = -1;
- result2.__filtered__ = true;
- } else {
- result2 = this.clone();
- result2.__dir__ *= -1;
- }
- return result2;
- }
- var lazyReverse_default = lazyReverse;
- // node_modules/lodash-es/_getView.js
- var nativeMax16 = Math.max;
- var nativeMin13 = Math.min;
- function getView(start, end, transforms) {
- var index = -1, length = transforms.length;
- while (++index < length) {
- var data = transforms[index], size3 = data.size;
- switch (data.type) {
- case "drop":
- start += size3;
- break;
- case "dropRight":
- end -= size3;
- break;
- case "take":
- end = nativeMin13(end, start + size3);
- break;
- case "takeRight":
- start = nativeMax16(start, end - size3);
- break;
- }
- }
- return { "start": start, "end": end };
- }
- var getView_default = getView;
- // node_modules/lodash-es/_lazyValue.js
- var LAZY_FILTER_FLAG = 1;
- var LAZY_MAP_FLAG = 2;
- var nativeMin14 = Math.min;
- function lazyValue() {
- 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__);
- if (!isArr || !isRight && arrLength == length && takeCount == length) {
- return baseWrapperValue_default(array4, this.__actions__);
- }
- var result2 = [];
- outer:
- while (length-- && resIndex < takeCount) {
- index += dir;
- var iterIndex = -1, value = array4[index];
- while (++iterIndex < iterLength) {
- var data = iteratees[iterIndex], iteratee2 = data.iteratee, type4 = data.type, computed2 = iteratee2(value);
- if (type4 == LAZY_MAP_FLAG) {
- value = computed2;
- } else if (!computed2) {
- if (type4 == LAZY_FILTER_FLAG) {
- continue outer;
- } else {
- break outer;
- }
- }
- }
- result2[resIndex++] = value;
- }
- return result2;
- }
- var lazyValue_default = lazyValue;
- // node_modules/lodash-es/lodash.default.js
- var VERSION = "4.17.21";
- var WRAP_BIND_KEY_FLAG7 = 2;
- var LAZY_FILTER_FLAG2 = 1;
- var LAZY_WHILE_FLAG = 3;
- var MAX_ARRAY_LENGTH7 = 4294967295;
- var arrayProto6 = Array.prototype;
- var objectProto29 = Object.prototype;
- var hasOwnProperty25 = objectProto29.hasOwnProperty;
- var symIterator2 = Symbol_default ? Symbol_default.iterator : void 0;
- var nativeMax17 = Math.max;
- var nativeMin15 = Math.min;
- var mixin2 = /* @__PURE__ */ (function(func) {
- return function(object4, source, options) {
- if (options == null) {
- var isObj = isObject_default(source), props2 = isObj && keys_default(source), methodNames = props2 && props2.length && baseFunctions_default(source, props2);
- if (!(methodNames ? methodNames.length : isObj)) {
- options = source;
- source = object4;
- object4 = this;
- }
- }
- return func(object4, source, options);
- };
- })(mixin_default);
- wrapperLodash_default.after = function_default_default.after;
- wrapperLodash_default.ary = function_default_default.ary;
- wrapperLodash_default.assign = object_default_default.assign;
- wrapperLodash_default.assignIn = object_default_default.assignIn;
- wrapperLodash_default.assignInWith = object_default_default.assignInWith;
- wrapperLodash_default.assignWith = object_default_default.assignWith;
- wrapperLodash_default.at = object_default_default.at;
- wrapperLodash_default.before = function_default_default.before;
- wrapperLodash_default.bind = function_default_default.bind;
- wrapperLodash_default.bindAll = util_default_default.bindAll;
- wrapperLodash_default.bindKey = function_default_default.bindKey;
- wrapperLodash_default.castArray = lang_default_default.castArray;
- wrapperLodash_default.chain = seq_default_default.chain;
- wrapperLodash_default.chunk = array_default_default.chunk;
- wrapperLodash_default.compact = array_default_default.compact;
- wrapperLodash_default.concat = array_default_default.concat;
- wrapperLodash_default.cond = util_default_default.cond;
- wrapperLodash_default.conforms = util_default_default.conforms;
- wrapperLodash_default.constant = util_default_default.constant;
- wrapperLodash_default.countBy = collection_default_default.countBy;
- wrapperLodash_default.create = object_default_default.create;
- wrapperLodash_default.curry = function_default_default.curry;
- wrapperLodash_default.curryRight = function_default_default.curryRight;
- wrapperLodash_default.debounce = function_default_default.debounce;
- wrapperLodash_default.defaults = object_default_default.defaults;
- wrapperLodash_default.defaultsDeep = object_default_default.defaultsDeep;
- wrapperLodash_default.defer = function_default_default.defer;
- wrapperLodash_default.delay = function_default_default.delay;
- wrapperLodash_default.difference = array_default_default.difference;
- wrapperLodash_default.differenceBy = array_default_default.differenceBy;
- wrapperLodash_default.differenceWith = array_default_default.differenceWith;
- wrapperLodash_default.drop = array_default_default.drop;
- wrapperLodash_default.dropRight = array_default_default.dropRight;
- wrapperLodash_default.dropRightWhile = array_default_default.dropRightWhile;
- wrapperLodash_default.dropWhile = array_default_default.dropWhile;
- wrapperLodash_default.fill = array_default_default.fill;
- wrapperLodash_default.filter = collection_default_default.filter;
- wrapperLodash_default.flatMap = collection_default_default.flatMap;
- wrapperLodash_default.flatMapDeep = collection_default_default.flatMapDeep;
- wrapperLodash_default.flatMapDepth = collection_default_default.flatMapDepth;
- wrapperLodash_default.flatten = array_default_default.flatten;
- wrapperLodash_default.flattenDeep = array_default_default.flattenDeep;
- wrapperLodash_default.flattenDepth = array_default_default.flattenDepth;
- wrapperLodash_default.flip = function_default_default.flip;
- wrapperLodash_default.flow = util_default_default.flow;
- wrapperLodash_default.flowRight = util_default_default.flowRight;
- wrapperLodash_default.fromPairs = array_default_default.fromPairs;
- wrapperLodash_default.functions = object_default_default.functions;
- wrapperLodash_default.functionsIn = object_default_default.functionsIn;
- wrapperLodash_default.groupBy = collection_default_default.groupBy;
- wrapperLodash_default.initial = array_default_default.initial;
- wrapperLodash_default.intersection = array_default_default.intersection;
- wrapperLodash_default.intersectionBy = array_default_default.intersectionBy;
- wrapperLodash_default.intersectionWith = array_default_default.intersectionWith;
- wrapperLodash_default.invert = object_default_default.invert;
- wrapperLodash_default.invertBy = object_default_default.invertBy;
- wrapperLodash_default.invokeMap = collection_default_default.invokeMap;
- wrapperLodash_default.iteratee = util_default_default.iteratee;
- wrapperLodash_default.keyBy = collection_default_default.keyBy;
- wrapperLodash_default.keys = keys_default;
- wrapperLodash_default.keysIn = object_default_default.keysIn;
- wrapperLodash_default.map = collection_default_default.map;
- wrapperLodash_default.mapKeys = object_default_default.mapKeys;
- wrapperLodash_default.mapValues = object_default_default.mapValues;
- wrapperLodash_default.matches = util_default_default.matches;
- wrapperLodash_default.matchesProperty = util_default_default.matchesProperty;
- wrapperLodash_default.memoize = function_default_default.memoize;
- wrapperLodash_default.merge = object_default_default.merge;
- wrapperLodash_default.mergeWith = object_default_default.mergeWith;
- wrapperLodash_default.method = util_default_default.method;
- wrapperLodash_default.methodOf = util_default_default.methodOf;
- wrapperLodash_default.mixin = mixin2;
- wrapperLodash_default.negate = negate_default;
- wrapperLodash_default.nthArg = util_default_default.nthArg;
- wrapperLodash_default.omit = object_default_default.omit;
- wrapperLodash_default.omitBy = object_default_default.omitBy;
- wrapperLodash_default.once = function_default_default.once;
- wrapperLodash_default.orderBy = collection_default_default.orderBy;
- wrapperLodash_default.over = util_default_default.over;
- wrapperLodash_default.overArgs = function_default_default.overArgs;
- wrapperLodash_default.overEvery = util_default_default.overEvery;
- wrapperLodash_default.overSome = util_default_default.overSome;
- wrapperLodash_default.partial = function_default_default.partial;
- wrapperLodash_default.partialRight = function_default_default.partialRight;
- wrapperLodash_default.partition = collection_default_default.partition;
- wrapperLodash_default.pick = object_default_default.pick;
- wrapperLodash_default.pickBy = object_default_default.pickBy;
- wrapperLodash_default.property = util_default_default.property;
- wrapperLodash_default.propertyOf = util_default_default.propertyOf;
- wrapperLodash_default.pull = array_default_default.pull;
- wrapperLodash_default.pullAll = array_default_default.pullAll;
- wrapperLodash_default.pullAllBy = array_default_default.pullAllBy;
- wrapperLodash_default.pullAllWith = array_default_default.pullAllWith;
- wrapperLodash_default.pullAt = array_default_default.pullAt;
- wrapperLodash_default.range = util_default_default.range;
- wrapperLodash_default.rangeRight = util_default_default.rangeRight;
- wrapperLodash_default.rearg = function_default_default.rearg;
- wrapperLodash_default.reject = collection_default_default.reject;
- wrapperLodash_default.remove = array_default_default.remove;
- wrapperLodash_default.rest = function_default_default.rest;
- wrapperLodash_default.reverse = array_default_default.reverse;
- wrapperLodash_default.sampleSize = collection_default_default.sampleSize;
- wrapperLodash_default.set = object_default_default.set;
- wrapperLodash_default.setWith = object_default_default.setWith;
- wrapperLodash_default.shuffle = collection_default_default.shuffle;
- wrapperLodash_default.slice = array_default_default.slice;
- wrapperLodash_default.sortBy = collection_default_default.sortBy;
- wrapperLodash_default.sortedUniq = array_default_default.sortedUniq;
- wrapperLodash_default.sortedUniqBy = array_default_default.sortedUniqBy;
- wrapperLodash_default.split = string_default_default.split;
- wrapperLodash_default.spread = function_default_default.spread;
- wrapperLodash_default.tail = array_default_default.tail;
- wrapperLodash_default.take = array_default_default.take;
- wrapperLodash_default.takeRight = array_default_default.takeRight;
- wrapperLodash_default.takeRightWhile = array_default_default.takeRightWhile;
- wrapperLodash_default.takeWhile = array_default_default.takeWhile;
- wrapperLodash_default.tap = seq_default_default.tap;
- wrapperLodash_default.throttle = function_default_default.throttle;
- wrapperLodash_default.thru = thru_default;
- wrapperLodash_default.toArray = lang_default_default.toArray;
- wrapperLodash_default.toPairs = object_default_default.toPairs;
- wrapperLodash_default.toPairsIn = object_default_default.toPairsIn;
- wrapperLodash_default.toPath = util_default_default.toPath;
- wrapperLodash_default.toPlainObject = lang_default_default.toPlainObject;
- wrapperLodash_default.transform = object_default_default.transform;
- wrapperLodash_default.unary = function_default_default.unary;
- wrapperLodash_default.union = array_default_default.union;
- wrapperLodash_default.unionBy = array_default_default.unionBy;
- wrapperLodash_default.unionWith = array_default_default.unionWith;
- wrapperLodash_default.uniq = array_default_default.uniq;
- wrapperLodash_default.uniqBy = array_default_default.uniqBy;
- wrapperLodash_default.uniqWith = array_default_default.uniqWith;
- wrapperLodash_default.unset = object_default_default.unset;
- wrapperLodash_default.unzip = array_default_default.unzip;
- wrapperLodash_default.unzipWith = array_default_default.unzipWith;
- wrapperLodash_default.update = object_default_default.update;
- wrapperLodash_default.updateWith = object_default_default.updateWith;
- wrapperLodash_default.values = object_default_default.values;
- wrapperLodash_default.valuesIn = object_default_default.valuesIn;
- wrapperLodash_default.without = array_default_default.without;
- wrapperLodash_default.words = string_default_default.words;
- wrapperLodash_default.wrap = function_default_default.wrap;
- wrapperLodash_default.xor = array_default_default.xor;
- wrapperLodash_default.xorBy = array_default_default.xorBy;
- wrapperLodash_default.xorWith = array_default_default.xorWith;
- wrapperLodash_default.zip = array_default_default.zip;
- wrapperLodash_default.zipObject = array_default_default.zipObject;
- wrapperLodash_default.zipObjectDeep = array_default_default.zipObjectDeep;
- wrapperLodash_default.zipWith = array_default_default.zipWith;
- wrapperLodash_default.entries = object_default_default.toPairs;
- wrapperLodash_default.entriesIn = object_default_default.toPairsIn;
- wrapperLodash_default.extend = object_default_default.assignIn;
- wrapperLodash_default.extendWith = object_default_default.assignInWith;
- mixin2(wrapperLodash_default, wrapperLodash_default);
- wrapperLodash_default.add = math_default_default.add;
- wrapperLodash_default.attempt = util_default_default.attempt;
- wrapperLodash_default.camelCase = string_default_default.camelCase;
- wrapperLodash_default.capitalize = string_default_default.capitalize;
- wrapperLodash_default.ceil = math_default_default.ceil;
- wrapperLodash_default.clamp = number_default_default.clamp;
- wrapperLodash_default.clone = lang_default_default.clone;
- wrapperLodash_default.cloneDeep = lang_default_default.cloneDeep;
- wrapperLodash_default.cloneDeepWith = lang_default_default.cloneDeepWith;
- wrapperLodash_default.cloneWith = lang_default_default.cloneWith;
- wrapperLodash_default.conformsTo = lang_default_default.conformsTo;
- wrapperLodash_default.deburr = string_default_default.deburr;
- wrapperLodash_default.defaultTo = util_default_default.defaultTo;
- wrapperLodash_default.divide = math_default_default.divide;
- wrapperLodash_default.endsWith = string_default_default.endsWith;
- wrapperLodash_default.eq = lang_default_default.eq;
- wrapperLodash_default.escape = string_default_default.escape;
- wrapperLodash_default.escapeRegExp = string_default_default.escapeRegExp;
- wrapperLodash_default.every = collection_default_default.every;
- wrapperLodash_default.find = collection_default_default.find;
- wrapperLodash_default.findIndex = array_default_default.findIndex;
- wrapperLodash_default.findKey = object_default_default.findKey;
- wrapperLodash_default.findLast = collection_default_default.findLast;
- wrapperLodash_default.findLastIndex = array_default_default.findLastIndex;
- wrapperLodash_default.findLastKey = object_default_default.findLastKey;
- wrapperLodash_default.floor = math_default_default.floor;
- wrapperLodash_default.forEach = collection_default_default.forEach;
- wrapperLodash_default.forEachRight = collection_default_default.forEachRight;
- wrapperLodash_default.forIn = object_default_default.forIn;
- wrapperLodash_default.forInRight = object_default_default.forInRight;
- wrapperLodash_default.forOwn = object_default_default.forOwn;
- wrapperLodash_default.forOwnRight = object_default_default.forOwnRight;
- wrapperLodash_default.get = object_default_default.get;
- wrapperLodash_default.gt = lang_default_default.gt;
- wrapperLodash_default.gte = lang_default_default.gte;
- wrapperLodash_default.has = object_default_default.has;
- wrapperLodash_default.hasIn = object_default_default.hasIn;
- wrapperLodash_default.head = array_default_default.head;
- wrapperLodash_default.identity = identity_default;
- wrapperLodash_default.includes = collection_default_default.includes;
- wrapperLodash_default.indexOf = array_default_default.indexOf;
- wrapperLodash_default.inRange = number_default_default.inRange;
- wrapperLodash_default.invoke = object_default_default.invoke;
- wrapperLodash_default.isArguments = lang_default_default.isArguments;
- wrapperLodash_default.isArray = isArray_default;
- wrapperLodash_default.isArrayBuffer = lang_default_default.isArrayBuffer;
- wrapperLodash_default.isArrayLike = lang_default_default.isArrayLike;
- wrapperLodash_default.isArrayLikeObject = lang_default_default.isArrayLikeObject;
- wrapperLodash_default.isBoolean = lang_default_default.isBoolean;
- wrapperLodash_default.isBuffer = lang_default_default.isBuffer;
- wrapperLodash_default.isDate = lang_default_default.isDate;
- wrapperLodash_default.isElement = lang_default_default.isElement;
- wrapperLodash_default.isEmpty = lang_default_default.isEmpty;
- wrapperLodash_default.isEqual = lang_default_default.isEqual;
- wrapperLodash_default.isEqualWith = lang_default_default.isEqualWith;
- wrapperLodash_default.isError = lang_default_default.isError;
- wrapperLodash_default.isFinite = lang_default_default.isFinite;
- wrapperLodash_default.isFunction = lang_default_default.isFunction;
- wrapperLodash_default.isInteger = lang_default_default.isInteger;
- wrapperLodash_default.isLength = lang_default_default.isLength;
- wrapperLodash_default.isMap = lang_default_default.isMap;
- wrapperLodash_default.isMatch = lang_default_default.isMatch;
- wrapperLodash_default.isMatchWith = lang_default_default.isMatchWith;
- wrapperLodash_default.isNaN = lang_default_default.isNaN;
- wrapperLodash_default.isNative = lang_default_default.isNative;
- wrapperLodash_default.isNil = lang_default_default.isNil;
- wrapperLodash_default.isNull = lang_default_default.isNull;
- wrapperLodash_default.isNumber = lang_default_default.isNumber;
- wrapperLodash_default.isObject = isObject_default;
- wrapperLodash_default.isObjectLike = lang_default_default.isObjectLike;
- wrapperLodash_default.isPlainObject = lang_default_default.isPlainObject;
- wrapperLodash_default.isRegExp = lang_default_default.isRegExp;
- wrapperLodash_default.isSafeInteger = lang_default_default.isSafeInteger;
- wrapperLodash_default.isSet = lang_default_default.isSet;
- wrapperLodash_default.isString = lang_default_default.isString;
- wrapperLodash_default.isSymbol = lang_default_default.isSymbol;
- wrapperLodash_default.isTypedArray = lang_default_default.isTypedArray;
- wrapperLodash_default.isUndefined = lang_default_default.isUndefined;
- wrapperLodash_default.isWeakMap = lang_default_default.isWeakMap;
- wrapperLodash_default.isWeakSet = lang_default_default.isWeakSet;
- wrapperLodash_default.join = array_default_default.join;
- wrapperLodash_default.kebabCase = string_default_default.kebabCase;
- wrapperLodash_default.last = last_default;
- wrapperLodash_default.lastIndexOf = array_default_default.lastIndexOf;
- wrapperLodash_default.lowerCase = string_default_default.lowerCase;
- wrapperLodash_default.lowerFirst = string_default_default.lowerFirst;
- wrapperLodash_default.lt = lang_default_default.lt;
- wrapperLodash_default.lte = lang_default_default.lte;
- wrapperLodash_default.max = math_default_default.max;
- wrapperLodash_default.maxBy = math_default_default.maxBy;
- wrapperLodash_default.mean = math_default_default.mean;
- wrapperLodash_default.meanBy = math_default_default.meanBy;
- wrapperLodash_default.min = math_default_default.min;
- wrapperLodash_default.minBy = math_default_default.minBy;
- wrapperLodash_default.stubArray = util_default_default.stubArray;
- wrapperLodash_default.stubFalse = util_default_default.stubFalse;
- wrapperLodash_default.stubObject = util_default_default.stubObject;
- wrapperLodash_default.stubString = util_default_default.stubString;
- wrapperLodash_default.stubTrue = util_default_default.stubTrue;
- wrapperLodash_default.multiply = math_default_default.multiply;
- wrapperLodash_default.nth = array_default_default.nth;
- wrapperLodash_default.noop = util_default_default.noop;
- wrapperLodash_default.now = date_default_default.now;
- wrapperLodash_default.pad = string_default_default.pad;
- wrapperLodash_default.padEnd = string_default_default.padEnd;
- wrapperLodash_default.padStart = string_default_default.padStart;
- wrapperLodash_default.parseInt = string_default_default.parseInt;
- wrapperLodash_default.random = number_default_default.random;
- wrapperLodash_default.reduce = collection_default_default.reduce;
- wrapperLodash_default.reduceRight = collection_default_default.reduceRight;
- wrapperLodash_default.repeat = string_default_default.repeat;
- wrapperLodash_default.replace = string_default_default.replace;
- wrapperLodash_default.result = object_default_default.result;
- wrapperLodash_default.round = math_default_default.round;
- wrapperLodash_default.sample = collection_default_default.sample;
- wrapperLodash_default.size = collection_default_default.size;
- wrapperLodash_default.snakeCase = string_default_default.snakeCase;
- wrapperLodash_default.some = collection_default_default.some;
- wrapperLodash_default.sortedIndex = array_default_default.sortedIndex;
- wrapperLodash_default.sortedIndexBy = array_default_default.sortedIndexBy;
- wrapperLodash_default.sortedIndexOf = array_default_default.sortedIndexOf;
- wrapperLodash_default.sortedLastIndex = array_default_default.sortedLastIndex;
- wrapperLodash_default.sortedLastIndexBy = array_default_default.sortedLastIndexBy;
- wrapperLodash_default.sortedLastIndexOf = array_default_default.sortedLastIndexOf;
- wrapperLodash_default.startCase = string_default_default.startCase;
- wrapperLodash_default.startsWith = string_default_default.startsWith;
- wrapperLodash_default.subtract = math_default_default.subtract;
- wrapperLodash_default.sum = math_default_default.sum;
- wrapperLodash_default.sumBy = math_default_default.sumBy;
- wrapperLodash_default.template = string_default_default.template;
- wrapperLodash_default.times = util_default_default.times;
- wrapperLodash_default.toFinite = lang_default_default.toFinite;
- wrapperLodash_default.toInteger = toInteger_default;
- wrapperLodash_default.toLength = lang_default_default.toLength;
- wrapperLodash_default.toLower = string_default_default.toLower;
- wrapperLodash_default.toNumber = lang_default_default.toNumber;
- wrapperLodash_default.toSafeInteger = lang_default_default.toSafeInteger;
- wrapperLodash_default.toString = lang_default_default.toString;
- wrapperLodash_default.toUpper = string_default_default.toUpper;
- wrapperLodash_default.trim = string_default_default.trim;
- wrapperLodash_default.trimEnd = string_default_default.trimEnd;
- wrapperLodash_default.trimStart = string_default_default.trimStart;
- wrapperLodash_default.truncate = string_default_default.truncate;
- wrapperLodash_default.unescape = string_default_default.unescape;
- wrapperLodash_default.uniqueId = util_default_default.uniqueId;
- wrapperLodash_default.upperCase = string_default_default.upperCase;
- wrapperLodash_default.upperFirst = string_default_default.upperFirst;
- wrapperLodash_default.each = collection_default_default.forEach;
- wrapperLodash_default.eachRight = collection_default_default.forEachRight;
- wrapperLodash_default.first = array_default_default.head;
- mixin2(wrapperLodash_default, (function() {
- var source = {};
- baseForOwn_default(wrapperLodash_default, function(func, methodName) {
- if (!hasOwnProperty25.call(wrapperLodash_default.prototype, methodName)) {
- source[methodName] = func;
- }
- });
- return source;
- })(), { "chain": false });
- wrapperLodash_default.VERSION = VERSION;
- (wrapperLodash_default.templateSettings = string_default_default.templateSettings).imports._ = wrapperLodash_default;
- arrayEach_default(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
- wrapperLodash_default[methodName].placeholder = wrapperLodash_default;
- });
- arrayEach_default(["drop", "take"], function(methodName, index) {
- LazyWrapper_default.prototype[methodName] = function(n) {
- n = n === void 0 ? 1 : nativeMax17(toInteger_default(n), 0);
- var result2 = this.__filtered__ && !index ? new LazyWrapper_default(this) : this.clone();
- if (result2.__filtered__) {
- result2.__takeCount__ = nativeMin15(n, result2.__takeCount__);
- } else {
- result2.__views__.push({
- "size": nativeMin15(n, MAX_ARRAY_LENGTH7),
- "type": methodName + (result2.__dir__ < 0 ? "Right" : "")
- });
- }
- return result2;
- };
- LazyWrapper_default.prototype[methodName + "Right"] = function(n) {
- return this.reverse()[methodName](n).reverse();
- };
- });
- arrayEach_default(["filter", "map", "takeWhile"], function(methodName, index) {
- var type4 = index + 1, isFilter = type4 == LAZY_FILTER_FLAG2 || type4 == LAZY_WHILE_FLAG;
- LazyWrapper_default.prototype[methodName] = function(iteratee2) {
- var result2 = this.clone();
- result2.__iteratees__.push({
- "iteratee": baseIteratee_default(iteratee2, 3),
- "type": type4
- });
- result2.__filtered__ = result2.__filtered__ || isFilter;
- return result2;
- };
- });
- arrayEach_default(["head", "last"], function(methodName, index) {
- var takeName = "take" + (index ? "Right" : "");
- LazyWrapper_default.prototype[methodName] = function() {
- return this[takeName](1).value()[0];
- };
- });
- arrayEach_default(["initial", "tail"], function(methodName, index) {
- var dropName = "drop" + (index ? "" : "Right");
- LazyWrapper_default.prototype[methodName] = function() {
- return this.__filtered__ ? new LazyWrapper_default(this) : this[dropName](1);
- };
- });
- LazyWrapper_default.prototype.compact = function() {
- return this.filter(identity_default);
- };
- LazyWrapper_default.prototype.find = function(predicate) {
- return this.filter(predicate).head();
- };
- LazyWrapper_default.prototype.findLast = function(predicate) {
- return this.reverse().find(predicate);
- };
- LazyWrapper_default.prototype.invokeMap = baseRest_default(function(path, args) {
- if (typeof path == "function") {
- return new LazyWrapper_default(this);
- }
- return this.map(function(value) {
- return baseInvoke_default(value, path, args);
- });
- });
- LazyWrapper_default.prototype.reject = function(predicate) {
- return this.filter(negate_default(baseIteratee_default(predicate)));
- };
- LazyWrapper_default.prototype.slice = function(start, end) {
- start = toInteger_default(start);
- var result2 = this;
- if (result2.__filtered__ && (start > 0 || end < 0)) {
- return new LazyWrapper_default(result2);
- }
- if (start < 0) {
- result2 = result2.takeRight(-start);
- } else if (start) {
- result2 = result2.drop(start);
- }
- if (end !== void 0) {
- end = toInteger_default(end);
- result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start);
- }
- return result2;
- };
- LazyWrapper_default.prototype.takeRightWhile = function(predicate) {
- return this.reverse().takeWhile(predicate).reverse();
- };
- LazyWrapper_default.prototype.toArray = function() {
- return this.take(MAX_ARRAY_LENGTH7);
- };
- baseForOwn_default(LazyWrapper_default.prototype, function(func, methodName) {
- 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);
- if (!lodashFunc) {
- return;
- }
- wrapperLodash_default.prototype[methodName] = function() {
- var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper_default, iteratee2 = args[0], useLazy = isLazy || isArray_default(value);
- var interceptor = function(value2) {
- var result3 = lodashFunc.apply(wrapperLodash_default, arrayPush_default([value2], args));
- return isTaker && chainAll ? result3[0] : result3;
- };
- if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) {
- isLazy = useLazy = false;
- }
- var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid;
- if (!retUnwrapped && useLazy) {
- value = onlyLazy ? value : new LazyWrapper_default(this);
- var result2 = func.apply(value, args);
- result2.__actions__.push({ "func": thru_default, "args": [interceptor], "thisArg": void 0 });
- return new LodashWrapper_default(result2, chainAll);
- }
- if (isUnwrapped && onlyLazy) {
- return func.apply(this, args);
- }
- result2 = this.thru(interceptor);
- return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2;
- };
- });
- arrayEach_default(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) {
- var func = arrayProto6[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName);
- wrapperLodash_default.prototype[methodName] = function() {
- var args = arguments;
- if (retUnwrapped && !this.__chain__) {
- var value = this.value();
- return func.apply(isArray_default(value) ? value : [], args);
- }
- return this[chainName](function(value2) {
- return func.apply(isArray_default(value2) ? value2 : [], args);
- });
- };
- });
- baseForOwn_default(LazyWrapper_default.prototype, function(func, methodName) {
- var lodashFunc = wrapperLodash_default[methodName];
- if (lodashFunc) {
- var key = lodashFunc.name + "";
- if (!hasOwnProperty25.call(realNames_default, key)) {
- realNames_default[key] = [];
- }
- realNames_default[key].push({ "name": methodName, "func": lodashFunc });
- }
- });
- realNames_default[createHybrid_default(void 0, WRAP_BIND_KEY_FLAG7).name] = [{
- "name": "wrapper",
- "func": void 0
- }];
- LazyWrapper_default.prototype.clone = lazyClone_default;
- LazyWrapper_default.prototype.reverse = lazyReverse_default;
- LazyWrapper_default.prototype.value = lazyValue_default;
- wrapperLodash_default.prototype.at = seq_default_default.at;
- wrapperLodash_default.prototype.chain = seq_default_default.wrapperChain;
- wrapperLodash_default.prototype.commit = seq_default_default.commit;
- wrapperLodash_default.prototype.next = seq_default_default.next;
- wrapperLodash_default.prototype.plant = seq_default_default.plant;
- wrapperLodash_default.prototype.reverse = seq_default_default.reverse;
- wrapperLodash_default.prototype.toJSON = wrapperLodash_default.prototype.valueOf = wrapperLodash_default.prototype.value = seq_default_default.value;
- wrapperLodash_default.prototype.first = wrapperLodash_default.prototype.head;
- if (symIterator2) {
- wrapperLodash_default.prototype[symIterator2] = seq_default_default.toIterator;
- }
- // node_modules/element-plus/es/utils/types.mjs
- var isUndefined2 = (val) => val === void 0;
- var isBoolean2 = (val) => typeof val === "boolean";
- var isNumber2 = (val) => typeof val === "number";
- var isEmpty2 = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
- var isElement2 = (e) => {
- if (typeof Element === "undefined")
- return false;
- return e instanceof Element;
- };
- var isPropAbsent = (prop) => isNil_default(prop);
- var isStringNumber = (val) => {
- if (!isString(val)) {
- return false;
- }
- return !Number.isNaN(Number(val));
- };
- var isWindow = (val) => val === window;
- // node_modules/vue-demi/lib/index.mjs
- var isVue2 = false;
- // node_modules/@vueuse/shared/index.mjs
- var __defProp$9 = Object.defineProperty;
- var __defProps$6 = Object.defineProperties;
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
- var __spreadValues$9 = (a2, b2) => {
- for (var prop in b2 || (b2 = {}))
- if (__hasOwnProp$b.call(b2, prop))
- __defNormalProp$9(a2, prop, b2[prop]);
- if (__getOwnPropSymbols$b)
- for (var prop of __getOwnPropSymbols$b(b2)) {
- if (__propIsEnum$b.call(b2, prop))
- __defNormalProp$9(a2, prop, b2[prop]);
- }
- return a2;
- };
- var __spreadProps$6 = (a2, b2) => __defProps$6(a2, __getOwnPropDescs$6(b2));
- function computedEager(fn2, options) {
- var _a2;
- const result2 = shallowRef();
- watchEffect(() => {
- result2.value = fn2();
- }, __spreadProps$6(__spreadValues$9({}, options), {
- flush: (_a2 = options == null ? void 0 : options.flush) != null ? _a2 : "sync"
- }));
- return readonly(result2);
- }
- var _a;
- var isClient = typeof window !== "undefined";
- var isDef = (val) => typeof val !== "undefined";
- var isFunction3 = (val) => typeof val === "function";
- var isString3 = (val) => typeof val === "string";
- var noop2 = () => {
- };
- var isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
- function resolveUnref(r) {
- return typeof r === "function" ? r() : unref(r);
- }
- function createFilterWrapper(filter2, fn2) {
- function wrapper(...args) {
- return new Promise((resolve, reject2) => {
- Promise.resolve(filter2(() => fn2.apply(this, args), { fn: fn2, thisArg: this, args })).then(resolve).catch(reject2);
- });
- }
- return wrapper;
- }
- function debounceFilter(ms, options = {}) {
- let timer;
- let maxTimer;
- let lastRejector = noop2;
- const _clearTimeout = (timer2) => {
- clearTimeout(timer2);
- lastRejector();
- lastRejector = noop2;
- };
- const filter2 = (invoke2) => {
- const duration = resolveUnref(ms);
- const maxDuration = resolveUnref(options.maxWait);
- if (timer)
- _clearTimeout(timer);
- if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
- if (maxTimer) {
- _clearTimeout(maxTimer);
- maxTimer = null;
- }
- return Promise.resolve(invoke2());
- }
- return new Promise((resolve, reject2) => {
- lastRejector = options.rejectOnCancel ? reject2 : resolve;
- if (maxDuration && !maxTimer) {
- maxTimer = setTimeout(() => {
- if (timer)
- _clearTimeout(timer);
- maxTimer = null;
- resolve(invoke2());
- }, maxDuration);
- }
- timer = setTimeout(() => {
- if (maxTimer)
- _clearTimeout(maxTimer);
- maxTimer = null;
- resolve(invoke2());
- }, duration);
- });
- };
- return filter2;
- }
- function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
- let lastExec = 0;
- let timer;
- let isLeading = true;
- let lastRejector = noop2;
- let lastValue;
- const clear = () => {
- if (timer) {
- clearTimeout(timer);
- timer = void 0;
- lastRejector();
- lastRejector = noop2;
- }
- };
- const filter2 = (_invoke) => {
- const duration = resolveUnref(ms);
- const elapsed = Date.now() - lastExec;
- const invoke2 = () => {
- return lastValue = _invoke();
- };
- clear();
- if (duration <= 0) {
- lastExec = Date.now();
- return invoke2();
- }
- if (elapsed > duration && (leading || !isLeading)) {
- lastExec = Date.now();
- invoke2();
- } else if (trailing) {
- lastValue = new Promise((resolve, reject2) => {
- lastRejector = rejectOnCancel ? reject2 : resolve;
- timer = setTimeout(() => {
- lastExec = Date.now();
- isLeading = true;
- resolve(invoke2());
- clear();
- }, Math.max(0, duration - elapsed));
- });
- }
- if (!leading && !timer)
- timer = setTimeout(() => isLeading = true, duration);
- isLeading = false;
- return lastValue;
- };
- return filter2;
- }
- function identity2(arg) {
- return arg;
- }
- function computedWithControl(source, fn2) {
- let v2 = void 0;
- let track;
- let trigger;
- const dirty = ref(true);
- const update2 = () => {
- dirty.value = true;
- trigger();
- };
- watch(source, update2, { flush: "sync" });
- const get2 = isFunction3(fn2) ? fn2 : fn2.get;
- const set3 = isFunction3(fn2) ? void 0 : fn2.set;
- const result2 = customRef((_track, _trigger) => {
- track = _track;
- trigger = _trigger;
- return {
- get() {
- if (dirty.value) {
- v2 = get2();
- dirty.value = false;
- }
- track();
- return v2;
- },
- set(v22) {
- set3 == null ? void 0 : set3(v22);
- }
- };
- });
- if (Object.isExtensible(result2))
- result2.trigger = update2;
- return result2;
- }
- function tryOnScopeDispose(fn2) {
- if (getCurrentScope()) {
- onScopeDispose(fn2);
- return true;
- }
- return false;
- }
- function toReactive(objectRef) {
- if (!isRef(objectRef))
- return reactive(objectRef);
- const proxy = new Proxy({}, {
- get(_2, p2, receiver) {
- return unref(Reflect.get(objectRef.value, p2, receiver));
- },
- set(_2, p2, value) {
- if (isRef(objectRef.value[p2]) && !isRef(value))
- objectRef.value[p2].value = value;
- else
- objectRef.value[p2] = value;
- return true;
- },
- deleteProperty(_2, p2) {
- return Reflect.deleteProperty(objectRef.value, p2);
- },
- has(_2, p2) {
- return Reflect.has(objectRef.value, p2);
- },
- ownKeys() {
- return Object.keys(objectRef.value);
- },
- getOwnPropertyDescriptor() {
- return {
- enumerable: true,
- configurable: true
- };
- }
- });
- return reactive(proxy);
- }
- function reactiveComputed(fn2) {
- return toReactive(computed(fn2));
- }
- function useDebounceFn(fn2, ms = 200, options = {}) {
- return createFilterWrapper(debounceFilter(ms, options), fn2);
- }
- function refDebounced(value, ms = 200, options = {}) {
- const debounced = ref(value.value);
- const updater = useDebounceFn(() => {
- debounced.value = value.value;
- }, ms, options);
- watch(value, () => updater());
- return debounced;
- }
- function useThrottleFn(fn2, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
- return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn2);
- }
- function tryOnMounted(fn2, sync = true) {
- if (getCurrentInstance())
- onMounted(fn2);
- else if (sync)
- fn2();
- else
- nextTick(fn2);
- }
- function useTimeoutFn(cb, interval, options = {}) {
- const {
- immediate = true
- } = options;
- const isPending = ref(false);
- let timer = null;
- function clear() {
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- }
- function stop() {
- isPending.value = false;
- clear();
- }
- function start(...args) {
- clear();
- isPending.value = true;
- timer = setTimeout(() => {
- isPending.value = false;
- timer = null;
- cb(...args);
- }, resolveUnref(interval));
- }
- if (immediate) {
- isPending.value = true;
- if (isClient)
- start();
- }
- tryOnScopeDispose(stop);
- return {
- isPending: readonly(isPending),
- start,
- stop
- };
- }
- // node_modules/@vueuse/core/index.mjs
- function unrefElement(elRef) {
- var _a2;
- const plain = resolveUnref(elRef);
- return (_a2 = plain == null ? void 0 : plain.$el) != null ? _a2 : plain;
- }
- var defaultWindow = isClient ? window : void 0;
- var defaultDocument = isClient ? window.document : void 0;
- var defaultNavigator = isClient ? window.navigator : void 0;
- var defaultLocation = isClient ? window.location : void 0;
- function useEventListener(...args) {
- let target2;
- let events;
- let listeners;
- let options;
- if (isString3(args[0]) || Array.isArray(args[0])) {
- [events, listeners, options] = args;
- target2 = defaultWindow;
- } else {
- [target2, events, listeners, options] = args;
- }
- if (!target2)
- return noop2;
- if (!Array.isArray(events))
- events = [events];
- if (!Array.isArray(listeners))
- listeners = [listeners];
- const cleanups = [];
- const cleanup = () => {
- cleanups.forEach((fn2) => fn2());
- cleanups.length = 0;
- };
- const register2 = (el, event, listener, options2) => {
- el.addEventListener(event, listener, options2);
- return () => el.removeEventListener(event, listener, options2);
- };
- const stopWatch = watch(() => [unrefElement(target2), resolveUnref(options)], ([el, options2]) => {
- cleanup();
- if (!el)
- return;
- cleanups.push(...events.flatMap((event) => {
- return listeners.map((listener) => register2(el, event, listener, options2));
- }));
- }, { immediate: true, flush: "post" });
- const stop = () => {
- stopWatch();
- cleanup();
- };
- tryOnScopeDispose(stop);
- return stop;
- }
- var _iOSWorkaround = false;
- function onClickOutside(target2, handler, options = {}) {
- const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
- if (!window2)
- return;
- if (isIOS && !_iOSWorkaround) {
- _iOSWorkaround = true;
- Array.from(window2.document.body.children).forEach((el) => el.addEventListener("click", noop2));
- }
- let shouldListen = true;
- const shouldIgnore = (event) => {
- return ignore.some((target22) => {
- if (typeof target22 === "string") {
- return Array.from(window2.document.querySelectorAll(target22)).some((el) => el === event.target || event.composedPath().includes(el));
- } else {
- const el = unrefElement(target22);
- return el && (event.target === el || event.composedPath().includes(el));
- }
- });
- };
- const listener = (event) => {
- const el = unrefElement(target2);
- if (!el || el === event.target || event.composedPath().includes(el))
- return;
- if (event.detail === 0)
- shouldListen = !shouldIgnore(event);
- if (!shouldListen) {
- shouldListen = true;
- return;
- }
- handler(event);
- };
- const cleanup = [
- useEventListener(window2, "click", listener, { passive: true, capture }),
- useEventListener(window2, "pointerdown", (e) => {
- const el = unrefElement(target2);
- if (el)
- shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
- }, { passive: true }),
- detectIframe && useEventListener(window2, "blur", (event) => {
- var _a2;
- const el = unrefElement(target2);
- if (((_a2 = window2.document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement)))
- handler(event);
- })
- ].filter(Boolean);
- const stop = () => cleanup.forEach((fn2) => fn2());
- return stop;
- }
- function useActiveElement(options = {}) {
- var _a2;
- const { window: window2 = defaultWindow } = options;
- const document2 = (_a2 = options.document) != null ? _a2 : window2 == null ? void 0 : window2.document;
- const activeElement = computedWithControl(() => null, () => document2 == null ? void 0 : document2.activeElement);
- if (window2) {
- useEventListener(window2, "blur", (event) => {
- if (event.relatedTarget !== null)
- return;
- activeElement.trigger();
- }, true);
- useEventListener(window2, "focus", activeElement.trigger, true);
- }
- return activeElement;
- }
- function useSupported(callback, sync = false) {
- const isSupported = ref();
- const update2 = () => isSupported.value = Boolean(callback());
- update2();
- tryOnMounted(update2, sync);
- return isSupported;
- }
- function cloneFnJSON(source) {
- return JSON.parse(JSON.stringify(source));
- }
- var _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
- var globalKey = "__vueuse_ssr_handlers__";
- _global[globalKey] = _global[globalKey] || {};
- var handlers = _global[globalKey];
- function useCssVar(prop, target2, { window: window2 = defaultWindow, initialValue = "" } = {}) {
- const variable = ref(initialValue);
- const elRef = computed(() => {
- var _a2;
- return unrefElement(target2) || ((_a2 = window2 == null ? void 0 : window2.document) == null ? void 0 : _a2.documentElement);
- });
- watch([elRef, () => resolveUnref(prop)], ([el, prop2]) => {
- var _a2;
- if (el && window2) {
- const value = (_a2 = window2.getComputedStyle(el).getPropertyValue(prop2)) == null ? void 0 : _a2.trim();
- variable.value = value || initialValue;
- }
- }, { immediate: true });
- watch(variable, (val) => {
- var _a2;
- if ((_a2 = elRef.value) == null ? void 0 : _a2.style)
- elRef.value.style.setProperty(resolveUnref(prop), val);
- });
- return variable;
- }
- function useDocumentVisibility({ document: document2 = defaultDocument } = {}) {
- if (!document2)
- return ref("visible");
- const visibility = ref(document2.visibilityState);
- useEventListener(document2, "visibilitychange", () => {
- visibility.value = document2.visibilityState;
- });
- return visibility;
- }
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
- var __objRest$2 = (source, exclude) => {
- var target2 = {};
- for (var prop in source)
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
- target2[prop] = source[prop];
- if (source != null && __getOwnPropSymbols$g)
- for (var prop of __getOwnPropSymbols$g(source)) {
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
- target2[prop] = source[prop];
- }
- return target2;
- };
- function useResizeObserver(target2, callback, options = {}) {
- const _a2 = options, { window: window2 = defaultWindow } = _a2, observerOptions = __objRest$2(_a2, ["window"]);
- let observer;
- const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
- const cleanup = () => {
- if (observer) {
- observer.disconnect();
- observer = void 0;
- }
- };
- const stopWatch = watch(() => unrefElement(target2), (el) => {
- cleanup();
- if (isSupported.value && window2 && el) {
- observer = new ResizeObserver(callback);
- observer.observe(el, observerOptions);
- }
- }, { immediate: true, flush: "post" });
- const stop = () => {
- cleanup();
- stopWatch();
- };
- tryOnScopeDispose(stop);
- return {
- isSupported,
- stop
- };
- }
- function useElementBounding(target2, options = {}) {
- const {
- reset = true,
- windowResize = true,
- windowScroll = true,
- immediate = true
- } = options;
- const height = ref(0);
- const bottom = ref(0);
- const left = ref(0);
- const right = ref(0);
- const top = ref(0);
- const width = ref(0);
- const x2 = ref(0);
- const y = ref(0);
- function update2() {
- const el = unrefElement(target2);
- if (!el) {
- if (reset) {
- height.value = 0;
- bottom.value = 0;
- left.value = 0;
- right.value = 0;
- top.value = 0;
- width.value = 0;
- x2.value = 0;
- y.value = 0;
- }
- return;
- }
- const rect = el.getBoundingClientRect();
- height.value = rect.height;
- bottom.value = rect.bottom;
- left.value = rect.left;
- right.value = rect.right;
- top.value = rect.top;
- width.value = rect.width;
- x2.value = rect.x;
- y.value = rect.y;
- }
- useResizeObserver(target2, update2);
- watch(() => unrefElement(target2), (ele) => !ele && update2());
- if (windowScroll)
- useEventListener("scroll", update2, { capture: true, passive: true });
- if (windowResize)
- useEventListener("resize", update2, { passive: true });
- tryOnMounted(() => {
- if (immediate)
- update2();
- });
- return {
- height,
- bottom,
- left,
- right,
- top,
- width,
- x: x2,
- y,
- update: update2
- };
- }
- function useElementSize(target2, initialSize = { width: 0, height: 0 }, options = {}) {
- const { window: window2 = defaultWindow, box = "content-box" } = options;
- const isSVG = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = unrefElement(target2)) == null ? void 0 : _a2.namespaceURI) == null ? void 0 : _b.includes("svg");
- });
- const width = ref(initialSize.width);
- const height = ref(initialSize.height);
- useResizeObserver(target2, ([entry]) => {
- const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
- if (window2 && isSVG.value) {
- const $elem = unrefElement(target2);
- if ($elem) {
- const styles = window2.getComputedStyle($elem);
- width.value = parseFloat(styles.width);
- height.value = parseFloat(styles.height);
- }
- } else {
- if (boxSize) {
- const formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize];
- width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);
- height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);
- } else {
- width.value = entry.contentRect.width;
- height.value = entry.contentRect.height;
- }
- }
- }, options);
- watch(() => unrefElement(target2), (ele) => {
- width.value = ele ? initialSize.width : 0;
- height.value = ele ? initialSize.height : 0;
- });
- return {
- width,
- height
- };
- }
- function useIntersectionObserver(target2, callback, options = {}) {
- const {
- root: root2,
- rootMargin = "0px",
- threshold = 0.1,
- window: window2 = defaultWindow
- } = options;
- const isSupported = useSupported(() => window2 && "IntersectionObserver" in window2);
- let cleanup = noop2;
- const stopWatch = isSupported.value ? watch(() => ({
- el: unrefElement(target2),
- root: unrefElement(root2)
- }), ({ el, root: root22 }) => {
- cleanup();
- if (!el)
- return;
- const observer = new IntersectionObserver(callback, {
- root: root22,
- rootMargin,
- threshold
- });
- observer.observe(el);
- cleanup = () => {
- observer.disconnect();
- cleanup = noop2;
- };
- }, { immediate: true, flush: "post" }) : noop2;
- const stop = () => {
- cleanup();
- stopWatch();
- };
- tryOnScopeDispose(stop);
- return {
- isSupported,
- stop
- };
- }
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
- var __objRest$1 = (source, exclude) => {
- var target2 = {};
- for (var prop in source)
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
- target2[prop] = source[prop];
- if (source != null && __getOwnPropSymbols$8)
- for (var prop of __getOwnPropSymbols$8(source)) {
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
- target2[prop] = source[prop];
- }
- return target2;
- };
- function useMutationObserver(target2, callback, options = {}) {
- const _a2 = options, { window: window2 = defaultWindow } = _a2, mutationOptions = __objRest$1(_a2, ["window"]);
- let observer;
- const isSupported = useSupported(() => window2 && "MutationObserver" in window2);
- const cleanup = () => {
- if (observer) {
- observer.disconnect();
- observer = void 0;
- }
- };
- const stopWatch = watch(() => unrefElement(target2), (el) => {
- cleanup();
- if (isSupported.value && window2 && el) {
- observer = new MutationObserver(callback);
- observer.observe(el, mutationOptions);
- }
- }, { immediate: true });
- const stop = () => {
- cleanup();
- stopWatch();
- };
- tryOnScopeDispose(stop);
- return {
- isSupported,
- stop
- };
- }
- var defaultState = {
- x: 0,
- y: 0,
- pointerId: 0,
- pressure: 0,
- tiltX: 0,
- tiltY: 0,
- width: 0,
- height: 0,
- twist: 0,
- pointerType: null
- };
- var keys2 = Object.keys(defaultState);
- var SwipeDirection;
- (function(SwipeDirection2) {
- SwipeDirection2["UP"] = "UP";
- SwipeDirection2["RIGHT"] = "RIGHT";
- SwipeDirection2["DOWN"] = "DOWN";
- SwipeDirection2["LEFT"] = "LEFT";
- SwipeDirection2["NONE"] = "NONE";
- })(SwipeDirection || (SwipeDirection = {}));
- var __defProp = Object.defineProperty;
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
- var __hasOwnProp = Object.prototype.hasOwnProperty;
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
- var __spreadValues = (a2, b2) => {
- for (var prop in b2 || (b2 = {}))
- if (__hasOwnProp.call(b2, prop))
- __defNormalProp(a2, prop, b2[prop]);
- if (__getOwnPropSymbols)
- for (var prop of __getOwnPropSymbols(b2)) {
- if (__propIsEnum.call(b2, prop))
- __defNormalProp(a2, prop, b2[prop]);
- }
- return a2;
- };
- var _TransitionPresets = {
- easeInSine: [0.12, 0, 0.39, 0],
- easeOutSine: [0.61, 1, 0.88, 1],
- easeInOutSine: [0.37, 0, 0.63, 1],
- easeInQuad: [0.11, 0, 0.5, 0],
- easeOutQuad: [0.5, 1, 0.89, 1],
- easeInOutQuad: [0.45, 0, 0.55, 1],
- easeInCubic: [0.32, 0, 0.67, 0],
- easeOutCubic: [0.33, 1, 0.68, 1],
- easeInOutCubic: [0.65, 0, 0.35, 1],
- easeInQuart: [0.5, 0, 0.75, 0],
- easeOutQuart: [0.25, 1, 0.5, 1],
- easeInOutQuart: [0.76, 0, 0.24, 1],
- easeInQuint: [0.64, 0, 0.78, 0],
- easeOutQuint: [0.22, 1, 0.36, 1],
- easeInOutQuint: [0.83, 0, 0.17, 1],
- easeInExpo: [0.7, 0, 0.84, 0],
- easeOutExpo: [0.16, 1, 0.3, 1],
- easeInOutExpo: [0.87, 0, 0.13, 1],
- easeInCirc: [0.55, 0, 1, 0.45],
- easeOutCirc: [0, 0.55, 0.45, 1],
- easeInOutCirc: [0.85, 0, 0.15, 1],
- easeInBack: [0.36, 0, 0.66, -0.56],
- easeOutBack: [0.34, 1.56, 0.64, 1],
- easeInOutBack: [0.68, -0.6, 0.32, 1.6]
- };
- var TransitionPresets = __spreadValues({
- linear: identity2
- }, _TransitionPresets);
- function useVModel(props2, key, emit, options = {}) {
- var _a2, _b, _c, _d, _e;
- const {
- clone: clone2 = false,
- passive = false,
- eventName,
- deep = false,
- defaultValue
- } = options;
- const vm = getCurrentInstance();
- 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));
- let event = eventName;
- if (!key) {
- if (isVue2) {
- const modelOptions = (_e = (_d = vm == null ? void 0 : vm.proxy) == null ? void 0 : _d.$options) == null ? void 0 : _e.model;
- key = (modelOptions == null ? void 0 : modelOptions.value) || "value";
- if (!eventName)
- event = (modelOptions == null ? void 0 : modelOptions.event) || "input";
- } else {
- key = "modelValue";
- }
- }
- event = eventName || event || `update:${key.toString()}`;
- const cloneFn = (val) => !clone2 ? val : isFunction3(clone2) ? clone2(val) : cloneFnJSON(val);
- const getValue3 = () => isDef(props2[key]) ? cloneFn(props2[key]) : defaultValue;
- if (passive) {
- const initialValue = getValue3();
- const proxy = ref(initialValue);
- watch(() => props2[key], (v2) => proxy.value = cloneFn(v2));
- watch(proxy, (v2) => {
- if (v2 !== props2[key] || deep)
- _emit(event, v2);
- }, { deep });
- return proxy;
- } else {
- return computed({
- get() {
- return getValue3();
- },
- set(value) {
- _emit(event, value);
- }
- });
- }
- }
- function useWindowFocus({ window: window2 = defaultWindow } = {}) {
- if (!window2)
- return ref(false);
- const focused = ref(window2.document.hasFocus());
- useEventListener(window2, "blur", () => {
- focused.value = false;
- });
- useEventListener(window2, "focus", () => {
- focused.value = true;
- });
- return focused;
- }
- function useWindowSize(options = {}) {
- const {
- window: window2 = defaultWindow,
- initialWidth = Infinity,
- initialHeight = Infinity,
- listenOrientation = true,
- includeScrollbar = true
- } = options;
- const width = ref(initialWidth);
- const height = ref(initialHeight);
- const update2 = () => {
- if (window2) {
- if (includeScrollbar) {
- width.value = window2.innerWidth;
- height.value = window2.innerHeight;
- } else {
- width.value = window2.document.documentElement.clientWidth;
- height.value = window2.document.documentElement.clientHeight;
- }
- }
- };
- update2();
- tryOnMounted(update2);
- useEventListener("resize", update2, { passive: true });
- if (listenOrientation)
- useEventListener("orientationchange", update2, { passive: true });
- return { width, height };
- }
- // node_modules/element-plus/es/hooks/use-z-index/index.mjs
- var initial2 = {
- current: 0
- };
- var zIndex = ref(0);
- var defaultInitialZIndex = 2e3;
- var ZINDEX_INJECTION_KEY = Symbol("elZIndexContextKey");
- var zIndexContextKey = Symbol("zIndexContextKey");
- var useZIndex = (zIndexOverrides) => {
- const increasingInjection = getCurrentInstance() ? inject(ZINDEX_INJECTION_KEY, initial2) : initial2;
- const zIndexInjection = zIndexOverrides || (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0);
- const initialZIndex = computed(() => {
- const zIndexFromInjection = unref(zIndexInjection);
- return isNumber2(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
- });
- const currentZIndex = computed(() => initialZIndex.value + zIndex.value);
- const nextZIndex = () => {
- increasingInjection.current++;
- zIndex.value = increasingInjection.current;
- return currentZIndex.value;
- };
- if (!isClient && !inject(ZINDEX_INJECTION_KEY)) ;
- return {
- initialZIndex,
- currentZIndex,
- nextZIndex
- };
- };
- // node_modules/element-plus/es/locale/lang/en.mjs
- var English = {
- name: "en",
- el: {
- breadcrumb: {
- label: "Breadcrumb"
- },
- colorpicker: {
- confirm: "OK",
- clear: "Clear",
- defaultLabel: "color picker",
- description: "current color is {color}. press enter to select a new color.",
- alphaLabel: "pick alpha value"
- },
- datepicker: {
- now: "Now",
- today: "Today",
- cancel: "Cancel",
- clear: "Clear",
- confirm: "OK",
- dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
- monthTablePrompt: "Use the arrow keys and enter to select the month",
- yearTablePrompt: "Use the arrow keys and enter to select the year",
- selectedDate: "Selected date",
- selectDate: "Select date",
- selectTime: "Select time",
- startDate: "Start Date",
- startTime: "Start Time",
- endDate: "End Date",
- endTime: "End Time",
- prevYear: "Previous Year",
- nextYear: "Next Year",
- prevMonth: "Previous Month",
- nextMonth: "Next Month",
- year: "",
- month1: "January",
- month2: "February",
- month3: "March",
- month4: "April",
- month5: "May",
- month6: "June",
- month7: "July",
- month8: "August",
- month9: "September",
- month10: "October",
- month11: "November",
- month12: "December",
- week: "week",
- weeks: {
- sun: "Sun",
- mon: "Mon",
- tue: "Tue",
- wed: "Wed",
- thu: "Thu",
- fri: "Fri",
- sat: "Sat"
- },
- weeksFull: {
- sun: "Sunday",
- mon: "Monday",
- tue: "Tuesday",
- wed: "Wednesday",
- thu: "Thursday",
- fri: "Friday",
- sat: "Saturday"
- },
- months: {
- jan: "Jan",
- feb: "Feb",
- mar: "Mar",
- apr: "Apr",
- may: "May",
- jun: "Jun",
- jul: "Jul",
- aug: "Aug",
- sep: "Sep",
- oct: "Oct",
- nov: "Nov",
- dec: "Dec"
- }
- },
- inputNumber: {
- decrease: "decrease number",
- increase: "increase number"
- },
- select: {
- loading: "Loading",
- noMatch: "No matching data",
- noData: "No data",
- placeholder: "Select"
- },
- mention: {
- loading: "Loading"
- },
- dropdown: {
- toggleDropdown: "Toggle Dropdown"
- },
- cascader: {
- noMatch: "No matching data",
- loading: "Loading",
- placeholder: "Select",
- noData: "No data"
- },
- pagination: {
- goto: "Go to",
- pagesize: "/page",
- total: "Total {total}",
- pageClassifier: "",
- page: "Page",
- prev: "Go to previous page",
- next: "Go to next page",
- currentPage: "page {pager}",
- prevPages: "Previous {pager} pages",
- nextPages: "Next {pager} pages",
- deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
- },
- dialog: {
- close: "Close this dialog"
- },
- drawer: {
- close: "Close this dialog"
- },
- messagebox: {
- title: "Message",
- confirm: "OK",
- cancel: "Cancel",
- error: "Illegal input",
- close: "Close this dialog"
- },
- upload: {
- deleteTip: "press delete to remove",
- delete: "Delete",
- preview: "Preview",
- continue: "Continue"
- },
- slider: {
- defaultLabel: "slider between {min} and {max}",
- defaultRangeStartLabel: "pick start value",
- defaultRangeEndLabel: "pick end value"
- },
- table: {
- emptyText: "No Data",
- confirmFilter: "Confirm",
- resetFilter: "Reset",
- clearFilter: "All",
- sumText: "Sum"
- },
- tour: {
- next: "Next",
- previous: "Previous",
- finish: "Finish"
- },
- tree: {
- emptyText: "No Data"
- },
- transfer: {
- noMatch: "No matching data",
- noData: "No data",
- titles: ["List 1", "List 2"],
- filterPlaceholder: "Enter keyword",
- noCheckedFormat: "{total} items",
- hasCheckedFormat: "{checked}/{total} checked"
- },
- image: {
- error: "FAILED"
- },
- pageHeader: {
- title: "Back"
- },
- popconfirm: {
- confirmButtonText: "Yes",
- cancelButtonText: "No"
- },
- carousel: {
- leftArrow: "Carousel arrow left",
- rightArrow: "Carousel arrow right",
- indicator: "Carousel switch to index {index}"
- }
- }
- };
- // node_modules/element-plus/es/hooks/use-locale/index.mjs
- var buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
- var translate = (path, option, locale) => get_default(locale, path, path).replace(/\{(\w+)\}/g, (_2, key) => {
- var _a2;
- return `${(_a2 = option == null ? void 0 : option[key]) != null ? _a2 : `{${key}}`}`;
- });
- var buildLocaleContext = (locale) => {
- const lang = computed(() => unref(locale).name);
- const localeRef = isRef(locale) ? locale : ref(locale);
- return {
- lang,
- locale: localeRef,
- t: buildTranslator(locale)
- };
- };
- var localeContextKey = Symbol("localeContextKey");
- var useLocale = (localeOverrides) => {
- const locale = localeOverrides || inject(localeContextKey, ref());
- return buildLocaleContext(computed(() => locale.value || English));
- };
- // node_modules/element-plus/es/utils/vue/props/runtime.mjs
- var epPropKey = "__epPropKey";
- var definePropType = (val) => val;
- var isEpProp = (val) => isObject(val) && !!val[epPropKey];
- var buildProp = (prop, key) => {
- if (!isObject(prop) || isEpProp(prop))
- return prop;
- const { values: values2, required: required4, default: defaultValue, type: type4, validator } = prop;
- const _validator = values2 || validator ? (val) => {
- let valid = false;
- let allowedValues = [];
- if (values2) {
- allowedValues = Array.from(values2);
- if (hasOwn(prop, "default")) {
- allowedValues.push(defaultValue);
- }
- valid || (valid = allowedValues.includes(val));
- }
- if (validator)
- valid || (valid = validator(val));
- if (!valid && allowedValues.length > 0) {
- const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
- warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
- }
- return valid;
- } : void 0;
- const epProp = {
- type: type4,
- required: !!required4,
- validator: _validator,
- [epPropKey]: true
- };
- if (hasOwn(prop, "default"))
- epProp.default = defaultValue;
- return epProp;
- };
- var buildProps = (props2) => fromPairs_default(Object.entries(props2).map(([key, option]) => [
- key,
- buildProp(option, key)
- ]));
- // node_modules/element-plus/es/constants/size.mjs
- var componentSizes = ["", "default", "small", "large"];
- var componentSizeMap = {
- large: 40,
- default: 32,
- small: 24
- };
- // node_modules/element-plus/es/hooks/use-size/index.mjs
- var useSizeProp = buildProp({
- type: String,
- values: componentSizes,
- required: false
- });
- var useSizeProps = {
- size: useSizeProp
- };
- var SIZE_INJECTION_KEY = Symbol("size");
- var useGlobalSize = () => {
- const injectedSize = inject(SIZE_INJECTION_KEY, {});
- return computed(() => {
- return unref(injectedSize.size) || "";
- });
- };
- // node_modules/element-plus/es/hooks/use-empty-values/index.mjs
- var emptyValuesContextKey = Symbol("emptyValuesContextKey");
- var SCOPE = "use-empty-values";
- var DEFAULT_EMPTY_VALUES = ["", void 0, null];
- var DEFAULT_VALUE_ON_CLEAR = void 0;
- var useEmptyValuesProps = buildProps({
- emptyValues: Array,
- valueOnClear: {
- type: definePropType([
- String,
- Number,
- Boolean,
- Function
- ]),
- default: void 0,
- validator: (val) => isFunction(val) ? !val() : !val
- }
- });
- var useEmptyValues = (props2, defaultValue) => {
- const config = getCurrentInstance() ? inject(emptyValuesContextKey, ref({})) : ref({});
- const emptyValues = computed(() => props2.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
- const valueOnClear = computed(() => {
- if (isFunction(props2.valueOnClear)) {
- return props2.valueOnClear();
- } else if (props2.valueOnClear !== void 0) {
- return props2.valueOnClear;
- } else if (isFunction(config.value.valueOnClear)) {
- return config.value.valueOnClear();
- } else if (config.value.valueOnClear !== void 0) {
- return config.value.valueOnClear;
- }
- return defaultValue !== void 0 ? defaultValue : DEFAULT_VALUE_ON_CLEAR;
- });
- const isEmptyValue2 = (value) => {
- return emptyValues.value.includes(value);
- };
- if (!emptyValues.value.includes(valueOnClear.value)) ;
- return {
- emptyValues,
- valueOnClear,
- isEmptyValue: isEmptyValue2
- };
- };
- // node_modules/element-plus/es/utils/objects.mjs
- var keysOf = (arr) => Object.keys(arr);
- var entriesOf = (arr) => Object.entries(arr);
- var getProp = (obj, path, defaultValue) => {
- return {
- get value() {
- return get_default(obj, path, defaultValue);
- },
- set value(val) {
- set_default(obj, path, val);
- }
- };
- };
- // node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config.mjs
- var globalConfig = ref();
- function useGlobalConfig(key, defaultValue = void 0) {
- const config = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig;
- if (key) {
- return computed(() => {
- var _a2, _b;
- return (_b = (_a2 = config.value) == null ? void 0 : _a2[key]) != null ? _b : defaultValue;
- });
- } else {
- return config;
- }
- }
- function useGlobalComponentSettings(block, sizeFallback) {
- const config = useGlobalConfig();
- const ns = useNamespace(block, computed(() => {
- var _a2;
- return ((_a2 = config.value) == null ? void 0 : _a2.namespace) || defaultNamespace;
- }));
- const locale = useLocale(computed(() => {
- var _a2;
- return (_a2 = config.value) == null ? void 0 : _a2.locale;
- }));
- const zIndex2 = useZIndex(computed(() => {
- var _a2;
- return ((_a2 = config.value) == null ? void 0 : _a2.zIndex) || defaultInitialZIndex;
- }));
- const size3 = computed(() => {
- var _a2;
- return unref(sizeFallback) || ((_a2 = config.value) == null ? void 0 : _a2.size) || "";
- });
- provideGlobalConfig(computed(() => unref(config) || {}));
- return {
- ns,
- locale,
- zIndex: zIndex2,
- size: size3
- };
- }
- var provideGlobalConfig = (config, app, global2 = false) => {
- var _a2;
- const inSetup = !!getCurrentInstance();
- const oldConfig = inSetup ? useGlobalConfig() : void 0;
- const provideFn = (_a2 = app == null ? void 0 : app.provide) != null ? _a2 : inSetup ? provide : void 0;
- if (!provideFn) {
- return;
- }
- const context = computed(() => {
- const cfg = unref(config);
- if (!(oldConfig == null ? void 0 : oldConfig.value))
- return cfg;
- return mergeConfig(oldConfig.value, cfg);
- });
- provideFn(configProviderContextKey, context);
- provideFn(localeContextKey, computed(() => context.value.locale));
- provideFn(namespaceContextKey, computed(() => context.value.namespace));
- provideFn(zIndexContextKey, computed(() => context.value.zIndex));
- provideFn(SIZE_INJECTION_KEY, {
- size: computed(() => context.value.size || "")
- });
- provideFn(emptyValuesContextKey, computed(() => ({
- emptyValues: context.value.emptyValues,
- valueOnClear: context.value.valueOnClear
- })));
- if (global2 || !globalConfig.value) {
- globalConfig.value = context.value;
- }
- return context;
- };
- var mergeConfig = (a2, b2) => {
- const keys3 = [.../* @__PURE__ */ new Set([...keysOf(a2), ...keysOf(b2)])];
- const obj = {};
- for (const key of keys3) {
- obj[key] = b2[key] !== void 0 ? b2[key] : a2[key];
- }
- return obj;
- };
- // node_modules/element-plus/es/make-installer.mjs
- var makeInstaller = (components = []) => {
- const install2 = (app, options) => {
- if (app[INSTALLED_KEY])
- return;
- app[INSTALLED_KEY] = true;
- components.forEach((c2) => app.use(c2));
- if (options)
- provideGlobalConfig(options, app, true);
- };
- return {
- version,
- install: install2
- };
- };
- // node_modules/element-plus/es/constants/event.mjs
- var UPDATE_MODEL_EVENT = "update:modelValue";
- var CHANGE_EVENT = "change";
- var INPUT_EVENT = "input";
- // node_modules/element-plus/es/components/affix/src/affix.mjs
- var affixProps = buildProps({
- zIndex: {
- type: definePropType([Number, String]),
- default: 100
- },
- target: {
- type: String,
- default: ""
- },
- offset: {
- type: Number,
- default: 0
- },
- position: {
- type: String,
- values: ["top", "bottom"],
- default: "top"
- }
- });
- var affixEmits = {
- scroll: ({ scrollTop, fixed }) => isNumber2(scrollTop) && isBoolean2(fixed),
- [CHANGE_EVENT]: (fixed) => isBoolean2(fixed)
- };
- // node_modules/element-plus/es/_virtual/plugin-vue_export-helper.mjs
- var _export_sfc = (sfc, props2) => {
- const target2 = sfc.__vccOpts || sfc;
- for (const [key, val] of props2) {
- target2[key] = val;
- }
- return target2;
- };
- // node_modules/element-plus/es/utils/easings.mjs
- function easeInOutCubic(t, b2, c2, d2) {
- const cc = c2 - b2;
- t /= d2 / 2;
- if (t < 1) {
- return cc / 2 * t * t * t + b2;
- }
- return cc / 2 * ((t -= 2) * t * t + 2) + b2;
- }
- // node_modules/element-plus/es/utils/raf.mjs
- var rAF = (fn2) => isClient ? window.requestAnimationFrame(fn2) : setTimeout(fn2, 16);
- var cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
- // node_modules/element-plus/es/utils/dom/style.mjs
- var classNameToArray = (cls = "") => cls.split(" ").filter((item) => !!item.trim());
- var hasClass = (el, cls) => {
- if (!el || !cls)
- return false;
- if (cls.includes(" "))
- throw new Error("className should not contain space.");
- return el.classList.contains(cls);
- };
- var addClass = (el, cls) => {
- if (!el || !cls.trim())
- return;
- el.classList.add(...classNameToArray(cls));
- };
- var removeClass = (el, cls) => {
- if (!el || !cls.trim())
- return;
- el.classList.remove(...classNameToArray(cls));
- };
- var getStyle = (element, styleName) => {
- var _a2;
- if (!isClient || !element || !styleName)
- return "";
- let key = camelize(styleName);
- if (key === "float")
- key = "cssFloat";
- try {
- const style = element.style[key];
- if (style)
- return style;
- const computed2 = (_a2 = document.defaultView) == null ? void 0 : _a2.getComputedStyle(element, "");
- return computed2 ? computed2[key] : "";
- } catch (e) {
- return element.style[key];
- }
- };
- var setStyle = (element, styleName, value) => {
- if (!element || !styleName)
- return;
- if (isObject(styleName)) {
- entriesOf(styleName).forEach(([prop, value2]) => setStyle(element, prop, value2));
- } else {
- const key = camelize(styleName);
- element.style[key] = value;
- }
- };
- function addUnit(value, defaultUnit = "px") {
- if (!value)
- return "";
- if (isNumber2(value) || isStringNumber(value)) {
- return `${value}${defaultUnit}`;
- } else if (isString(value)) {
- return value;
- }
- }
- // node_modules/element-plus/es/utils/dom/scroll.mjs
- var isScroll = (el, isVertical) => {
- if (!isClient)
- return false;
- const key = {
- undefined: "overflow",
- true: "overflow-y",
- false: "overflow-x"
- }[String(isVertical)];
- const overflow = getStyle(el, key);
- return ["scroll", "auto", "overlay"].some((s2) => overflow.includes(s2));
- };
- var getScrollContainer = (el, isVertical) => {
- if (!isClient)
- return;
- let parent2 = el;
- while (parent2) {
- if ([window, document, document.documentElement].includes(parent2))
- return window;
- if (isScroll(parent2, isVertical))
- return parent2;
- parent2 = parent2.parentNode;
- }
- return parent2;
- };
- var scrollBarWidth;
- var getScrollBarWidth = (namespace) => {
- var _a2;
- if (!isClient)
- return 0;
- if (scrollBarWidth !== void 0)
- return scrollBarWidth;
- const outer = document.createElement("div");
- outer.className = `${namespace}-scrollbar__wrap`;
- outer.style.visibility = "hidden";
- outer.style.width = "100px";
- outer.style.position = "absolute";
- outer.style.top = "-9999px";
- document.body.appendChild(outer);
- const widthNoScroll = outer.offsetWidth;
- outer.style.overflow = "scroll";
- const inner = document.createElement("div");
- inner.style.width = "100%";
- outer.appendChild(inner);
- const widthWithScroll = inner.offsetWidth;
- (_a2 = outer.parentNode) == null ? void 0 : _a2.removeChild(outer);
- scrollBarWidth = widthNoScroll - widthWithScroll;
- return scrollBarWidth;
- };
- function scrollIntoView(container, selected) {
- if (!isClient)
- return;
- if (!selected) {
- container.scrollTop = 0;
- return;
- }
- const offsetParents = [];
- let pointer = selected.offsetParent;
- while (pointer !== null && container !== pointer && container.contains(pointer)) {
- offsetParents.push(pointer);
- pointer = pointer.offsetParent;
- }
- const top = selected.offsetTop + offsetParents.reduce((prev, curr) => prev + curr.offsetTop, 0);
- const bottom = top + selected.offsetHeight;
- const viewRectTop = container.scrollTop;
- const viewRectBottom = viewRectTop + container.clientHeight;
- if (top < viewRectTop) {
- container.scrollTop = top;
- } else if (bottom > viewRectBottom) {
- container.scrollTop = bottom - container.clientHeight;
- }
- }
- function animateScrollTo(container, from, to, duration, callback) {
- const startTime = Date.now();
- let handle;
- const scroll = () => {
- const timestamp2 = Date.now();
- const time = timestamp2 - startTime;
- const nextScrollTop = easeInOutCubic(time > duration ? duration : time, from, to, duration);
- if (isWindow(container)) {
- container.scrollTo(window.pageXOffset, nextScrollTop);
- } else {
- container.scrollTop = nextScrollTop;
- }
- if (time < duration) {
- handle = rAF(scroll);
- } else if (isFunction(callback)) {
- callback();
- }
- };
- scroll();
- return () => {
- handle && cAF(handle);
- };
- }
- var getScrollElement = (target2, container) => {
- if (isWindow(container)) {
- return target2.ownerDocument.documentElement;
- }
- return container;
- };
- var getScrollTop = (container) => {
- if (isWindow(container)) {
- return window.scrollY;
- }
- return container.scrollTop;
- };
- // node_modules/element-plus/es/utils/error.mjs
- var ElementPlusError = class extends Error {
- constructor(m2) {
- super(m2);
- this.name = "ElementPlusError";
- }
- };
- function throwError(scope, m2) {
- throw new ElementPlusError(`[${scope}] ${m2}`);
- }
- function debugWarn(scope, message2) {
- }
- // node_modules/element-plus/es/components/affix/src/affix2.mjs
- var COMPONENT_NAME = "ElAffix";
- var __default__ = defineComponent({
- name: COMPONENT_NAME
- });
- var _sfc_main = defineComponent({
- ...__default__,
- props: affixProps,
- emits: affixEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("affix");
- const target2 = shallowRef();
- const root2 = shallowRef();
- const scrollContainer = shallowRef();
- const { height: windowHeight } = useWindowSize();
- const {
- height: rootHeight,
- width: rootWidth,
- top: rootTop,
- bottom: rootBottom,
- update: updateRoot
- } = useElementBounding(root2, { windowScroll: false });
- const targetRect = useElementBounding(target2);
- const fixed = ref(false);
- const scrollTop = ref(0);
- const transform2 = ref(0);
- const rootStyle = computed(() => {
- return {
- height: fixed.value ? `${rootHeight.value}px` : "",
- width: fixed.value ? `${rootWidth.value}px` : ""
- };
- });
- const affixStyle = computed(() => {
- if (!fixed.value)
- return {};
- const offset3 = props2.offset ? addUnit(props2.offset) : 0;
- return {
- height: `${rootHeight.value}px`,
- width: `${rootWidth.value}px`,
- top: props2.position === "top" ? offset3 : "",
- bottom: props2.position === "bottom" ? offset3 : "",
- transform: transform2.value ? `translateY(${transform2.value}px)` : "",
- zIndex: props2.zIndex
- };
- });
- const update2 = () => {
- if (!scrollContainer.value)
- return;
- scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
- const { position, target: target22, offset: offset3 } = props2;
- const rootHeightOffset = offset3 + rootHeight.value;
- if (position === "top") {
- if (target22) {
- const difference2 = targetRect.bottom.value - rootHeightOffset;
- fixed.value = offset3 > rootTop.value && targetRect.bottom.value > 0;
- transform2.value = difference2 < 0 ? difference2 : 0;
- } else {
- fixed.value = offset3 > rootTop.value;
- }
- } else if (target22) {
- const difference2 = windowHeight.value - targetRect.top.value - rootHeightOffset;
- fixed.value = windowHeight.value - offset3 < rootBottom.value && windowHeight.value > targetRect.top.value;
- transform2.value = difference2 < 0 ? -difference2 : 0;
- } else {
- fixed.value = windowHeight.value - offset3 < rootBottom.value;
- }
- };
- const updateRootRect = async () => {
- if (!fixed.value) {
- updateRoot();
- return;
- }
- fixed.value = false;
- await nextTick();
- updateRoot();
- fixed.value = true;
- };
- const handleScroll2 = async () => {
- updateRoot();
- await nextTick();
- emit("scroll", {
- scrollTop: scrollTop.value,
- fixed: fixed.value
- });
- };
- watch(fixed, (val) => emit(CHANGE_EVENT, val));
- onMounted(() => {
- var _a2;
- if (props2.target) {
- target2.value = (_a2 = document.querySelector(props2.target)) != null ? _a2 : void 0;
- if (!target2.value)
- throwError(COMPONENT_NAME, `Target does not exist: ${props2.target}`);
- } else {
- target2.value = document.documentElement;
- }
- scrollContainer.value = getScrollContainer(root2.value, true);
- updateRoot();
- });
- useEventListener(scrollContainer, "scroll", handleScroll2);
- watchEffect(update2);
- expose({
- update: update2,
- updateRoot: updateRootRect
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "root",
- ref: root2,
- class: normalizeClass(unref(ns).b()),
- style: normalizeStyle(unref(rootStyle))
- }, [
- createBaseVNode("div", {
- class: normalizeClass({ [unref(ns).m("fixed")]: fixed.value }),
- style: normalizeStyle(unref(affixStyle))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 6)
- ], 6);
- };
- }
- });
- var Affix = _export_sfc(_sfc_main, [["__file", "affix.vue"]]);
- // node_modules/element-plus/es/utils/vue/install.mjs
- var withInstall = (main, extra) => {
- main.install = (app) => {
- for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
- app.component(comp.name, comp);
- }
- };
- if (extra) {
- for (const [key, comp] of Object.entries(extra)) {
- main[key] = comp;
- }
- }
- return main;
- };
- var withInstallFunction = (fn2, name) => {
- fn2.install = (app) => {
- fn2._context = app._context;
- app.config.globalProperties[name] = fn2;
- };
- return fn2;
- };
- var withInstallDirective = (directive, name) => {
- directive.install = (app) => {
- app.directive(name, directive);
- };
- return directive;
- };
- var withNoopInstall = (component2) => {
- component2.install = NOOP;
- return component2;
- };
- // node_modules/element-plus/es/components/affix/index.mjs
- var ElAffix = withInstall(Affix);
- // node_modules/element-plus/es/components/icon/src/icon.mjs
- var iconProps = buildProps({
- size: {
- type: definePropType([Number, String])
- },
- color: {
- type: String
- }
- });
- // node_modules/element-plus/es/components/icon/src/icon2.mjs
- var __default__2 = defineComponent({
- name: "ElIcon",
- inheritAttrs: false
- });
- var _sfc_main2 = defineComponent({
- ...__default__2,
- props: iconProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("icon");
- const style = computed(() => {
- const { size: size3, color } = props2;
- if (!size3 && !color)
- return {};
- return {
- fontSize: isUndefined2(size3) ? void 0 : addUnit(size3),
- "--color": color
- };
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("i", mergeProps({
- class: unref(ns).b(),
- style: unref(style)
- }, _ctx.$attrs), [
- renderSlot(_ctx.$slots, "default")
- ], 16);
- };
- }
- });
- var Icon = _export_sfc(_sfc_main2, [["__file", "icon.vue"]]);
- // node_modules/element-plus/es/components/icon/index.mjs
- var ElIcon = withInstall(Icon);
- // node_modules/element-plus/es/hooks/use-timeout/index.mjs
- function useTimeout() {
- let timeoutHandle;
- const registerTimeout = (fn2, delay2) => {
- cancelTimeout();
- timeoutHandle = window.setTimeout(fn2, delay2);
- };
- const cancelTimeout = () => window.clearTimeout(timeoutHandle);
- tryOnScopeDispose(() => cancelTimeout());
- return {
- registerTimeout,
- cancelTimeout
- };
- }
- // node_modules/element-plus/es/hooks/use-delayed-toggle/index.mjs
- var useDelayedToggleProps = buildProps({
- showAfter: {
- type: Number,
- default: 0
- },
- hideAfter: {
- type: Number,
- default: 200
- },
- autoClose: {
- type: Number,
- default: 0
- }
- });
- var useDelayedToggle = ({
- showAfter,
- hideAfter,
- autoClose,
- open,
- close: close2
- }) => {
- const { registerTimeout } = useTimeout();
- const {
- registerTimeout: registerTimeoutForAutoClose,
- cancelTimeout: cancelTimeoutForAutoClose
- } = useTimeout();
- const onOpen = (event) => {
- registerTimeout(() => {
- open(event);
- const _autoClose = unref(autoClose);
- if (isNumber2(_autoClose) && _autoClose > 0) {
- registerTimeoutForAutoClose(() => {
- close2(event);
- }, _autoClose);
- }
- }, unref(showAfter));
- };
- const onClose = (event) => {
- cancelTimeoutForAutoClose();
- registerTimeout(() => {
- close2(event);
- }, unref(hideAfter));
- };
- return {
- onOpen,
- onClose
- };
- };
- // node_modules/@element-plus/icons-vue/dist/index.js
- var _sfc_main3 = defineComponent({
- name: "AddLocation",
- __name: "add-location",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"
- })
- ]));
- }
- });
- var _sfc_main22 = defineComponent({
- name: "Aim",
- __name: "aim",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"
- })
- ]));
- }
- });
- var _sfc_main32 = defineComponent({
- name: "AlarmClock",
- __name: "alarm-clock",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"
- })
- ]));
- }
- });
- var _sfc_main4 = defineComponent({
- name: "Apple",
- __name: "apple",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"
- })
- ]));
- }
- });
- var _sfc_main5 = defineComponent({
- name: "ArrowDownBold",
- __name: "arrow-down-bold",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"
- })
- ]));
- }
- });
- var _sfc_main6 = defineComponent({
- name: "ArrowDown",
- __name: "arrow-down",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"
- })
- ]));
- }
- });
- var arrow_down_default = _sfc_main6;
- var _sfc_main7 = defineComponent({
- name: "ArrowLeftBold",
- __name: "arrow-left-bold",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"
- })
- ]));
- }
- });
- var _sfc_main8 = defineComponent({
- name: "ArrowLeft",
- __name: "arrow-left",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
- })
- ]));
- }
- });
- var arrow_left_default = _sfc_main8;
- var _sfc_main9 = defineComponent({
- name: "ArrowRightBold",
- __name: "arrow-right-bold",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"
- })
- ]));
- }
- });
- var _sfc_main10 = defineComponent({
- name: "ArrowRight",
- __name: "arrow-right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
- })
- ]));
- }
- });
- var arrow_right_default = _sfc_main10;
- var _sfc_main11 = defineComponent({
- name: "ArrowUpBold",
- __name: "arrow-up-bold",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"
- })
- ]));
- }
- });
- var _sfc_main12 = defineComponent({
- name: "ArrowUp",
- __name: "arrow-up",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
- })
- ]));
- }
- });
- var arrow_up_default = _sfc_main12;
- var _sfc_main13 = defineComponent({
- name: "Avatar",
- __name: "avatar",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"
- })
- ]));
- }
- });
- var _sfc_main14 = defineComponent({
- name: "Back",
- __name: "back",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"
- })
- ]));
- }
- });
- var back_default = _sfc_main14;
- var _sfc_main15 = defineComponent({
- name: "Baseball",
- __name: "baseball",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"
- })
- ]));
- }
- });
- var _sfc_main16 = defineComponent({
- name: "Basketball",
- __name: "basketball",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"
- })
- ]));
- }
- });
- var _sfc_main17 = defineComponent({
- name: "BellFilled",
- __name: "bell-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"
- })
- ]));
- }
- });
- var _sfc_main18 = defineComponent({
- name: "Bell",
- __name: "bell",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"
- })
- ]));
- }
- });
- var _sfc_main19 = defineComponent({
- name: "Bicycle",
- __name: "bicycle",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"
- })
- ]));
- }
- });
- var _sfc_main20 = defineComponent({
- name: "BottomLeft",
- __name: "bottom-left",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"
- })
- ]));
- }
- });
- var _sfc_main21 = defineComponent({
- name: "BottomRight",
- __name: "bottom-right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"
- })
- ]));
- }
- });
- var _sfc_main222 = defineComponent({
- name: "Bottom",
- __name: "bottom",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"
- })
- ]));
- }
- });
- var _sfc_main23 = defineComponent({
- name: "Bowl",
- __name: "bowl",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"
- })
- ]));
- }
- });
- var _sfc_main24 = defineComponent({
- name: "Box",
- __name: "box",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M64 320h896v64H64z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"
- })
- ]));
- }
- });
- var _sfc_main25 = defineComponent({
- name: "Briefcase",
- __name: "briefcase",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"
- })
- ]));
- }
- });
- var _sfc_main26 = defineComponent({
- name: "BrushFilled",
- __name: "brush-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"
- })
- ]));
- }
- });
- var _sfc_main27 = defineComponent({
- name: "Brush",
- __name: "brush",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"
- })
- ]));
- }
- });
- var _sfc_main28 = defineComponent({
- name: "Burger",
- __name: "burger",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"
- })
- ]));
- }
- });
- var _sfc_main29 = defineComponent({
- name: "Calendar",
- __name: "calendar",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"
- })
- ]));
- }
- });
- var calendar_default = _sfc_main29;
- var _sfc_main30 = defineComponent({
- name: "CameraFilled",
- __name: "camera-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"
- })
- ]));
- }
- });
- var _sfc_main31 = defineComponent({
- name: "Camera",
- __name: "camera",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"
- })
- ]));
- }
- });
- var _sfc_main322 = defineComponent({
- name: "CaretBottom",
- __name: "caret-bottom",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m192 384 320 384 320-384z"
- })
- ]));
- }
- });
- var _sfc_main33 = defineComponent({
- name: "CaretLeft",
- __name: "caret-left",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M672 192 288 511.936 672 832z"
- })
- ]));
- }
- });
- var _sfc_main34 = defineComponent({
- name: "CaretRight",
- __name: "caret-right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 192v640l384-320.064z"
- })
- ]));
- }
- });
- var caret_right_default = _sfc_main34;
- var _sfc_main35 = defineComponent({
- name: "CaretTop",
- __name: "caret-top",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 320 192 704h639.936z"
- })
- ]));
- }
- });
- var caret_top_default = _sfc_main35;
- var _sfc_main36 = defineComponent({
- name: "Cellphone",
- __name: "cellphone",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"
- })
- ]));
- }
- });
- var _sfc_main37 = defineComponent({
- name: "ChatDotRound",
- __name: "chat-dot-round",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"
- })
- ]));
- }
- });
- var _sfc_main38 = defineComponent({
- name: "ChatDotSquare",
- __name: "chat-dot-square",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"
- })
- ]));
- }
- });
- var _sfc_main39 = defineComponent({
- name: "ChatLineRound",
- __name: "chat-line-round",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main40 = defineComponent({
- name: "ChatLineSquare",
- __name: "chat-line-square",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main41 = defineComponent({
- name: "ChatRound",
- __name: "chat-round",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"
- })
- ]));
- }
- });
- var _sfc_main42 = defineComponent({
- name: "ChatSquare",
- __name: "chat-square",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"
- })
- ]));
- }
- });
- var _sfc_main43 = defineComponent({
- name: "Check",
- __name: "check",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
- })
- ]));
- }
- });
- var check_default = _sfc_main43;
- var _sfc_main44 = defineComponent({
- name: "Checked",
- __name: "checked",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"
- })
- ]));
- }
- });
- var _sfc_main45 = defineComponent({
- name: "Cherry",
- __name: "cherry",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"
- })
- ]));
- }
- });
- var _sfc_main46 = defineComponent({
- name: "Chicken",
- __name: "chicken",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"
- })
- ]));
- }
- });
- var _sfc_main47 = defineComponent({
- name: "ChromeFilled",
- __name: "chrome-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"
- })
- ]));
- }
- });
- var _sfc_main48 = defineComponent({
- name: "CircleCheckFilled",
- __name: "circle-check-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
- })
- ]));
- }
- });
- var circle_check_filled_default = _sfc_main48;
- var _sfc_main49 = defineComponent({
- name: "CircleCheck",
- __name: "circle-check",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"
- })
- ]));
- }
- });
- var circle_check_default = _sfc_main49;
- var _sfc_main50 = defineComponent({
- name: "CircleCloseFilled",
- __name: "circle-close-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
- })
- ]));
- }
- });
- var circle_close_filled_default = _sfc_main50;
- var _sfc_main51 = defineComponent({
- name: "CircleClose",
- __name: "circle-close",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- })
- ]));
- }
- });
- var circle_close_default = _sfc_main51;
- var _sfc_main52 = defineComponent({
- name: "CirclePlusFilled",
- __name: "circle-plus-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"
- })
- ]));
- }
- });
- var _sfc_main53 = defineComponent({
- name: "CirclePlus",
- __name: "circle-plus",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- })
- ]));
- }
- });
- var _sfc_main54 = defineComponent({
- name: "Clock",
- __name: "clock",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var clock_default = _sfc_main54;
- var _sfc_main55 = defineComponent({
- name: "CloseBold",
- __name: "close-bold",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"
- })
- ]));
- }
- });
- var _sfc_main56 = defineComponent({
- name: "Close",
- __name: "close",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
- })
- ]));
- }
- });
- var close_default = _sfc_main56;
- var _sfc_main57 = defineComponent({
- name: "Cloudy",
- __name: "cloudy",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"
- })
- ]));
- }
- });
- var _sfc_main58 = defineComponent({
- name: "CoffeeCup",
- __name: "coffee-cup",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"
- })
- ]));
- }
- });
- var _sfc_main59 = defineComponent({
- name: "Coffee",
- __name: "coffee",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"
- })
- ]));
- }
- });
- var _sfc_main60 = defineComponent({
- name: "Coin",
- __name: "coin",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"
- })
- ]));
- }
- });
- var _sfc_main61 = defineComponent({
- name: "ColdDrink",
- __name: "cold-drink",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"
- })
- ]));
- }
- });
- var _sfc_main62 = defineComponent({
- name: "CollectionTag",
- __name: "collection-tag",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main63 = defineComponent({
- name: "Collection",
- __name: "collection",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"
- })
- ]));
- }
- });
- var _sfc_main64 = defineComponent({
- name: "Comment",
- __name: "comment",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"
- })
- ]));
- }
- });
- var _sfc_main65 = defineComponent({
- name: "Compass",
- __name: "compass",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"
- })
- ]));
- }
- });
- var _sfc_main66 = defineComponent({
- name: "Connection",
- __name: "connection",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"
- })
- ]));
- }
- });
- var _sfc_main67 = defineComponent({
- name: "Coordinate",
- __name: "coordinate",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 512h64v320h-64z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"
- })
- ]));
- }
- });
- var _sfc_main68 = defineComponent({
- name: "CopyDocument",
- __name: "copy-document",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"
- })
- ]));
- }
- });
- var _sfc_main69 = defineComponent({
- name: "Cpu",
- __name: "cpu",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"
- })
- ]));
- }
- });
- var _sfc_main70 = defineComponent({
- name: "CreditCard",
- __name: "credit-card",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"
- })
- ]));
- }
- });
- var _sfc_main71 = defineComponent({
- name: "Crop",
- __name: "crop",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"
- })
- ]));
- }
- });
- var _sfc_main72 = defineComponent({
- name: "DArrowLeft",
- __name: "d-arrow-left",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"
- })
- ]));
- }
- });
- var d_arrow_left_default = _sfc_main72;
- var _sfc_main73 = defineComponent({
- name: "DArrowRight",
- __name: "d-arrow-right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"
- })
- ]));
- }
- });
- var d_arrow_right_default = _sfc_main73;
- var _sfc_main74 = defineComponent({
- name: "DCaret",
- __name: "d-caret",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m512 128 288 320H224zM224 576h576L512 896z"
- })
- ]));
- }
- });
- var _sfc_main75 = defineComponent({
- name: "DataAnalysis",
- __name: "data-analysis",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main76 = defineComponent({
- name: "DataBoard",
- __name: "data-board",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M32 128h960v64H32z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"
- })
- ]));
- }
- });
- var _sfc_main77 = defineComponent({
- name: "DataLine",
- __name: "data-line",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"
- })
- ]));
- }
- });
- var _sfc_main78 = defineComponent({
- name: "DeleteFilled",
- __name: "delete-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"
- })
- ]));
- }
- });
- var _sfc_main79 = defineComponent({
- name: "DeleteLocation",
- __name: "delete-location",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main80 = defineComponent({
- name: "Delete",
- __name: "delete",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
- })
- ]));
- }
- });
- var delete_default = _sfc_main80;
- var _sfc_main81 = defineComponent({
- name: "Dessert",
- __name: "dessert",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"
- })
- ]));
- }
- });
- var _sfc_main82 = defineComponent({
- name: "Discount",
- __name: "discount",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
- })
- ]));
- }
- });
- var _sfc_main83 = defineComponent({
- name: "DishDot",
- __name: "dish-dot",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"
- })
- ]));
- }
- });
- var _sfc_main84 = defineComponent({
- name: "Dish",
- __name: "dish",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"
- })
- ]));
- }
- });
- var _sfc_main85 = defineComponent({
- name: "DocumentAdd",
- __name: "document-add",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"
- })
- ]));
- }
- });
- var _sfc_main86 = defineComponent({
- name: "DocumentChecked",
- __name: "document-checked",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"
- })
- ]));
- }
- });
- var _sfc_main87 = defineComponent({
- name: "DocumentCopy",
- __name: "document-copy",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"
- })
- ]));
- }
- });
- var _sfc_main88 = defineComponent({
- name: "DocumentDelete",
- __name: "document-delete",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"
- })
- ]));
- }
- });
- var _sfc_main89 = defineComponent({
- name: "DocumentRemove",
- __name: "document-remove",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"
- })
- ]));
- }
- });
- var _sfc_main90 = defineComponent({
- name: "Document",
- __name: "document",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"
- })
- ]));
- }
- });
- var document_default = _sfc_main90;
- var _sfc_main91 = defineComponent({
- name: "Download",
- __name: "download",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
- })
- ]));
- }
- });
- var _sfc_main92 = defineComponent({
- name: "Drizzling",
- __name: "drizzling",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"
- })
- ]));
- }
- });
- var _sfc_main93 = defineComponent({
- name: "EditPen",
- __name: "edit-pen",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"
- })
- ]));
- }
- });
- var _sfc_main94 = defineComponent({
- name: "Edit",
- __name: "edit",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
- })
- ]));
- }
- });
- var _sfc_main95 = defineComponent({
- name: "ElemeFilled",
- __name: "eleme-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"
- })
- ]));
- }
- });
- var _sfc_main96 = defineComponent({
- name: "Eleme",
- __name: "eleme",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"
- })
- ]));
- }
- });
- var _sfc_main97 = defineComponent({
- name: "ElementPlus",
- __name: "element-plus",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"
- })
- ]));
- }
- });
- var _sfc_main98 = defineComponent({
- name: "Expand",
- __name: "expand",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"
- })
- ]));
- }
- });
- var _sfc_main99 = defineComponent({
- name: "Failed",
- __name: "failed",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"
- })
- ]));
- }
- });
- var _sfc_main100 = defineComponent({
- name: "Female",
- __name: "female",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main101 = defineComponent({
- name: "Files",
- __name: "files",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"
- })
- ]));
- }
- });
- var _sfc_main102 = defineComponent({
- name: "Film",
- __name: "film",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"
- })
- ]));
- }
- });
- var _sfc_main103 = defineComponent({
- name: "Filter",
- __name: "filter",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"
- })
- ]));
- }
- });
- var _sfc_main104 = defineComponent({
- name: "Finished",
- __name: "finished",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"
- })
- ]));
- }
- });
- var _sfc_main105 = defineComponent({
- name: "FirstAidKit",
- __name: "first-aid-kit",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main106 = defineComponent({
- name: "Flag",
- __name: "flag",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 128h608L736 384l160 256H288v320h-96V64h96z"
- })
- ]));
- }
- });
- var _sfc_main107 = defineComponent({
- name: "Fold",
- __name: "fold",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"
- })
- ]));
- }
- });
- var _sfc_main108 = defineComponent({
- name: "FolderAdd",
- __name: "folder-add",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"
- })
- ]));
- }
- });
- var _sfc_main109 = defineComponent({
- name: "FolderChecked",
- __name: "folder-checked",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"
- })
- ]));
- }
- });
- var _sfc_main110 = defineComponent({
- name: "FolderDelete",
- __name: "folder-delete",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"
- })
- ]));
- }
- });
- var _sfc_main111 = defineComponent({
- name: "FolderOpened",
- __name: "folder-opened",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"
- })
- ]));
- }
- });
- var _sfc_main112 = defineComponent({
- name: "FolderRemove",
- __name: "folder-remove",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"
- })
- ]));
- }
- });
- var _sfc_main113 = defineComponent({
- name: "Folder",
- __name: "folder",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main114 = defineComponent({
- name: "Food",
- __name: "food",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"
- })
- ]));
- }
- });
- var _sfc_main115 = defineComponent({
- name: "Football",
- __name: "football",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"
- })
- ]));
- }
- });
- var _sfc_main116 = defineComponent({
- name: "ForkSpoon",
- __name: "fork-spoon",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"
- })
- ]));
- }
- });
- var _sfc_main117 = defineComponent({
- name: "Fries",
- __name: "fries",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"
- })
- ]));
- }
- });
- var _sfc_main118 = defineComponent({
- name: "FullScreen",
- __name: "full-screen",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
- })
- ]));
- }
- });
- var full_screen_default = _sfc_main118;
- var _sfc_main119 = defineComponent({
- name: "GobletFull",
- __name: "goblet-full",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"
- })
- ]));
- }
- });
- var _sfc_main120 = defineComponent({
- name: "GobletSquareFull",
- __name: "goblet-square-full",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"
- })
- ]));
- }
- });
- var _sfc_main121 = defineComponent({
- name: "GobletSquare",
- __name: "goblet-square",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"
- })
- ]));
- }
- });
- var _sfc_main122 = defineComponent({
- name: "Goblet",
- __name: "goblet",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"
- })
- ]));
- }
- });
- var _sfc_main123 = defineComponent({
- name: "GoldMedal",
- __name: "gold-medal",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 480H416v64h64v192h-64v64h192v-64h-64z"
- })
- ]));
- }
- });
- var _sfc_main124 = defineComponent({
- name: "GoodsFilled",
- __name: "goods-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"
- })
- ]));
- }
- });
- var _sfc_main125 = defineComponent({
- name: "Goods",
- __name: "goods",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"
- })
- ]));
- }
- });
- var _sfc_main126 = defineComponent({
- name: "Grape",
- __name: "grape",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"
- })
- ]));
- }
- });
- var _sfc_main127 = defineComponent({
- name: "Grid",
- __name: "grid",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"
- })
- ]));
- }
- });
- var _sfc_main128 = defineComponent({
- name: "Guide",
- __name: "guide",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"
- })
- ]));
- }
- });
- var _sfc_main129 = defineComponent({
- name: "Handbag",
- __name: "handbag",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"
- })
- ]));
- }
- });
- var _sfc_main130 = defineComponent({
- name: "Headset",
- __name: "headset",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"
- })
- ]));
- }
- });
- var _sfc_main131 = defineComponent({
- name: "HelpFilled",
- __name: "help-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"
- })
- ]));
- }
- });
- var _sfc_main132 = defineComponent({
- name: "Help",
- __name: "help",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- })
- ]));
- }
- });
- var _sfc_main133 = defineComponent({
- name: "Hide",
- __name: "hide",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"
- })
- ]));
- }
- });
- var hide_default = _sfc_main133;
- var _sfc_main134 = defineComponent({
- name: "Histogram",
- __name: "histogram",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"
- })
- ]));
- }
- });
- var _sfc_main135 = defineComponent({
- name: "HomeFilled",
- __name: "home-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"
- })
- ]));
- }
- });
- var _sfc_main136 = defineComponent({
- name: "HotWater",
- __name: "hot-water",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"
- })
- ]));
- }
- });
- var _sfc_main137 = defineComponent({
- name: "House",
- __name: "house",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"
- })
- ]));
- }
- });
- var _sfc_main138 = defineComponent({
- name: "IceCreamRound",
- __name: "ice-cream-round",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"
- })
- ]));
- }
- });
- var _sfc_main139 = defineComponent({
- name: "IceCreamSquare",
- __name: "ice-cream-square",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"
- })
- ]));
- }
- });
- var _sfc_main140 = defineComponent({
- name: "IceCream",
- __name: "ice-cream",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"
- })
- ]));
- }
- });
- var _sfc_main141 = defineComponent({
- name: "IceDrink",
- __name: "ice-drink",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"
- })
- ]));
- }
- });
- var _sfc_main142 = defineComponent({
- name: "IceTea",
- __name: "ice-tea",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"
- })
- ]));
- }
- });
- var _sfc_main143 = defineComponent({
- name: "InfoFilled",
- __name: "info-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
- })
- ]));
- }
- });
- var info_filled_default = _sfc_main143;
- var _sfc_main144 = defineComponent({
- name: "Iphone",
- __name: "iphone",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"
- })
- ]));
- }
- });
- var _sfc_main145 = defineComponent({
- name: "Key",
- __name: "key",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"
- })
- ]));
- }
- });
- var _sfc_main146 = defineComponent({
- name: "KnifeFork",
- __name: "knife-fork",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"
- })
- ]));
- }
- });
- var _sfc_main147 = defineComponent({
- name: "Lightning",
- __name: "lightning",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"
- })
- ]));
- }
- });
- var _sfc_main148 = defineComponent({
- name: "Link",
- __name: "link",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"
- })
- ]));
- }
- });
- var _sfc_main149 = defineComponent({
- name: "List",
- __name: "list",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"
- })
- ]));
- }
- });
- var _sfc_main150 = defineComponent({
- name: "Loading",
- __name: "loading",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"
- })
- ]));
- }
- });
- var loading_default = _sfc_main150;
- var _sfc_main151 = defineComponent({
- name: "LocationFilled",
- __name: "location-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"
- })
- ]));
- }
- });
- var _sfc_main152 = defineComponent({
- name: "LocationInformation",
- __name: "location-information",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"
- })
- ]));
- }
- });
- var _sfc_main153 = defineComponent({
- name: "Location",
- __name: "location",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"
- })
- ]));
- }
- });
- var _sfc_main154 = defineComponent({
- name: "Lock",
- __name: "lock",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"
- })
- ]));
- }
- });
- var _sfc_main155 = defineComponent({
- name: "Lollipop",
- __name: "lollipop",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"
- })
- ]));
- }
- });
- var _sfc_main156 = defineComponent({
- name: "MagicStick",
- __name: "magic-stick",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"
- })
- ]));
- }
- });
- var _sfc_main157 = defineComponent({
- name: "Magnet",
- __name: "magnet",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"
- })
- ]));
- }
- });
- var _sfc_main158 = defineComponent({
- name: "Male",
- __name: "male",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"
- })
- ]));
- }
- });
- var _sfc_main159 = defineComponent({
- name: "Management",
- __name: "management",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"
- })
- ]));
- }
- });
- var _sfc_main160 = defineComponent({
- name: "MapLocation",
- __name: "map-location",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"
- })
- ]));
- }
- });
- var _sfc_main161 = defineComponent({
- name: "Medal",
- __name: "medal",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"
- })
- ]));
- }
- });
- var _sfc_main162 = defineComponent({
- name: "Memo",
- __name: "memo",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"
- })
- ]));
- }
- });
- var _sfc_main163 = defineComponent({
- name: "Menu",
- __name: "menu",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
- })
- ]));
- }
- });
- var _sfc_main164 = defineComponent({
- name: "MessageBox",
- __name: "message-box",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"
- })
- ]));
- }
- });
- var _sfc_main165 = defineComponent({
- name: "Message",
- __name: "message",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"
- })
- ]));
- }
- });
- var _sfc_main166 = defineComponent({
- name: "Mic",
- __name: "mic",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"
- })
- ]));
- }
- });
- var _sfc_main167 = defineComponent({
- name: "Microphone",
- __name: "microphone",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"
- })
- ]));
- }
- });
- var _sfc_main168 = defineComponent({
- name: "MilkTea",
- __name: "milk-tea",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"
- })
- ]));
- }
- });
- var _sfc_main169 = defineComponent({
- name: "Minus",
- __name: "minus",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
- })
- ]));
- }
- });
- var minus_default = _sfc_main169;
- var _sfc_main170 = defineComponent({
- name: "Money",
- __name: "money",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"
- })
- ]));
- }
- });
- var _sfc_main171 = defineComponent({
- name: "Monitor",
- __name: "monitor",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"
- })
- ]));
- }
- });
- var _sfc_main172 = defineComponent({
- name: "MoonNight",
- __name: "moon-night",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"
- })
- ]));
- }
- });
- var _sfc_main173 = defineComponent({
- name: "Moon",
- __name: "moon",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"
- })
- ]));
- }
- });
- var _sfc_main174 = defineComponent({
- name: "MoreFilled",
- __name: "more-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
- })
- ]));
- }
- });
- var more_filled_default = _sfc_main174;
- var _sfc_main175 = defineComponent({
- name: "More",
- __name: "more",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"
- })
- ]));
- }
- });
- var more_default = _sfc_main175;
- var _sfc_main176 = defineComponent({
- name: "MostlyCloudy",
- __name: "mostly-cloudy",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"
- })
- ]));
- }
- });
- var _sfc_main177 = defineComponent({
- name: "Mouse",
- __name: "mouse",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"
- })
- ]));
- }
- });
- var _sfc_main178 = defineComponent({
- name: "Mug",
- __name: "mug",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"
- })
- ]));
- }
- });
- var _sfc_main179 = defineComponent({
- name: "MuteNotification",
- __name: "mute-notification",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"
- })
- ]));
- }
- });
- var _sfc_main180 = defineComponent({
- name: "Mute",
- __name: "mute",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"
- })
- ]));
- }
- });
- var _sfc_main181 = defineComponent({
- name: "NoSmoking",
- __name: "no-smoking",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"
- })
- ]));
- }
- });
- var _sfc_main182 = defineComponent({
- name: "Notebook",
- __name: "notebook",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main183 = defineComponent({
- name: "Notification",
- __name: "notification",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"
- })
- ]));
- }
- });
- var _sfc_main184 = defineComponent({
- name: "Odometer",
- __name: "odometer",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"
- })
- ]));
- }
- });
- var _sfc_main185 = defineComponent({
- name: "OfficeBuilding",
- __name: "office-building",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main186 = defineComponent({
- name: "Open",
- __name: "open",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"
- })
- ]));
- }
- });
- var _sfc_main187 = defineComponent({
- name: "Operation",
- __name: "operation",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
- })
- ]));
- }
- });
- var _sfc_main188 = defineComponent({
- name: "Opportunity",
- __name: "opportunity",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"
- })
- ]));
- }
- });
- var _sfc_main189 = defineComponent({
- name: "Orange",
- __name: "orange",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"
- })
- ]));
- }
- });
- var _sfc_main190 = defineComponent({
- name: "Paperclip",
- __name: "paperclip",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"
- })
- ]));
- }
- });
- var _sfc_main191 = defineComponent({
- name: "PartlyCloudy",
- __name: "partly-cloudy",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"
- })
- ]));
- }
- });
- var _sfc_main192 = defineComponent({
- name: "Pear",
- __name: "pear",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"
- })
- ]));
- }
- });
- var _sfc_main193 = defineComponent({
- name: "PhoneFilled",
- __name: "phone-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"
- })
- ]));
- }
- });
- var _sfc_main194 = defineComponent({
- name: "Phone",
- __name: "phone",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"
- })
- ]));
- }
- });
- var _sfc_main195 = defineComponent({
- name: "PictureFilled",
- __name: "picture-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"
- })
- ]));
- }
- });
- var picture_filled_default = _sfc_main195;
- var _sfc_main196 = defineComponent({
- name: "PictureRounded",
- __name: "picture-rounded",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"
- })
- ]));
- }
- });
- var _sfc_main197 = defineComponent({
- name: "Picture",
- __name: "picture",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
- })
- ]));
- }
- });
- var _sfc_main198 = defineComponent({
- name: "PieChart",
- __name: "pie-chart",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"
- })
- ]));
- }
- });
- var _sfc_main199 = defineComponent({
- name: "Place",
- __name: "place",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"
- })
- ]));
- }
- });
- var _sfc_main200 = defineComponent({
- name: "Platform",
- __name: "platform",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"
- })
- ]));
- }
- });
- var _sfc_main201 = defineComponent({
- name: "Plus",
- __name: "plus",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
- })
- ]));
- }
- });
- var plus_default = _sfc_main201;
- var _sfc_main202 = defineComponent({
- name: "Pointer",
- __name: "pointer",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"
- })
- ]));
- }
- });
- var _sfc_main203 = defineComponent({
- name: "Position",
- __name: "position",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"
- })
- ]));
- }
- });
- var _sfc_main204 = defineComponent({
- name: "Postcard",
- __name: "postcard",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main205 = defineComponent({
- name: "Pouring",
- __name: "pouring",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main206 = defineComponent({
- name: "Present",
- __name: "present",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
- })
- ]));
- }
- });
- var _sfc_main207 = defineComponent({
- name: "PriceTag",
- __name: "price-tag",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
- })
- ]));
- }
- });
- var _sfc_main208 = defineComponent({
- name: "Printer",
- __name: "printer",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"
- })
- ]));
- }
- });
- var _sfc_main209 = defineComponent({
- name: "Promotion",
- __name: "promotion",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
- })
- ]));
- }
- });
- var _sfc_main210 = defineComponent({
- name: "QuartzWatch",
- __name: "quartz-watch",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"
- })
- ]));
- }
- });
- var _sfc_main211 = defineComponent({
- name: "QuestionFilled",
- __name: "question-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"
- })
- ]));
- }
- });
- var question_filled_default = _sfc_main211;
- var _sfc_main212 = defineComponent({
- name: "Rank",
- __name: "rank",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"
- })
- ]));
- }
- });
- var _sfc_main213 = defineComponent({
- name: "ReadingLamp",
- __name: "reading-lamp",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"
- })
- ]));
- }
- });
- var _sfc_main214 = defineComponent({
- name: "Reading",
- __name: "reading",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 192h64v704h-64z"
- })
- ]));
- }
- });
- var _sfc_main215 = defineComponent({
- name: "RefreshLeft",
- __name: "refresh-left",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
- })
- ]));
- }
- });
- var refresh_left_default = _sfc_main215;
- var _sfc_main216 = defineComponent({
- name: "RefreshRight",
- __name: "refresh-right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"
- })
- ]));
- }
- });
- var refresh_right_default = _sfc_main216;
- var _sfc_main217 = defineComponent({
- name: "Refresh",
- __name: "refresh",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
- })
- ]));
- }
- });
- var _sfc_main218 = defineComponent({
- name: "Refrigerator",
- __name: "refrigerator",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"
- })
- ]));
- }
- });
- var _sfc_main219 = defineComponent({
- name: "RemoveFilled",
- __name: "remove-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"
- })
- ]));
- }
- });
- var _sfc_main220 = defineComponent({
- name: "Remove",
- __name: "remove",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- })
- ]));
- }
- });
- var _sfc_main221 = defineComponent({
- name: "Right",
- __name: "right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"
- })
- ]));
- }
- });
- var _sfc_main2222 = defineComponent({
- name: "ScaleToOriginal",
- __name: "scale-to-original",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"
- })
- ]));
- }
- });
- var scale_to_original_default = _sfc_main2222;
- var _sfc_main223 = defineComponent({
- name: "School",
- __name: "school",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M64 832h896v64H64zm256-640h128v96H320z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"
- })
- ]));
- }
- });
- var _sfc_main224 = defineComponent({
- name: "Scissor",
- __name: "scissor",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"
- })
- ]));
- }
- });
- var _sfc_main225 = defineComponent({
- name: "Search",
- __name: "search",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
- })
- ]));
- }
- });
- var search_default = _sfc_main225;
- var _sfc_main226 = defineComponent({
- name: "Select",
- __name: "select",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"
- })
- ]));
- }
- });
- var _sfc_main227 = defineComponent({
- name: "Sell",
- __name: "sell",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"
- })
- ]));
- }
- });
- var _sfc_main228 = defineComponent({
- name: "SemiSelect",
- __name: "semi-select",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"
- })
- ]));
- }
- });
- var _sfc_main229 = defineComponent({
- name: "Service",
- __name: "service",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"
- })
- ]));
- }
- });
- var _sfc_main230 = defineComponent({
- name: "SetUp",
- __name: "set-up",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main231 = defineComponent({
- name: "Setting",
- __name: "setting",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
- })
- ]));
- }
- });
- var _sfc_main232 = defineComponent({
- name: "Share",
- __name: "share",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"
- })
- ]));
- }
- });
- var _sfc_main233 = defineComponent({
- name: "Ship",
- __name: "ship",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"
- })
- ]));
- }
- });
- var _sfc_main234 = defineComponent({
- name: "Shop",
- __name: "shop",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"
- })
- ]));
- }
- });
- var _sfc_main235 = defineComponent({
- name: "ShoppingBag",
- __name: "shopping-bag",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 704h640v64H192z"
- })
- ]));
- }
- });
- var _sfc_main236 = defineComponent({
- name: "ShoppingCartFull",
- __name: "shopping-cart-full",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"
- })
- ]));
- }
- });
- var _sfc_main237 = defineComponent({
- name: "ShoppingCart",
- __name: "shopping-cart",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"
- })
- ]));
- }
- });
- var _sfc_main238 = defineComponent({
- name: "ShoppingTrolley",
- __name: "shopping-trolley",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"
- })
- ]));
- }
- });
- var _sfc_main239 = defineComponent({
- name: "Smoking",
- __name: "smoking",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"
- })
- ]));
- }
- });
- var _sfc_main240 = defineComponent({
- name: "Soccer",
- __name: "soccer",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"
- })
- ]));
- }
- });
- var _sfc_main241 = defineComponent({
- name: "SoldOut",
- __name: "sold-out",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"
- })
- ]));
- }
- });
- var _sfc_main242 = defineComponent({
- name: "SortDown",
- __name: "sort-down",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"
- })
- ]));
- }
- });
- var sort_down_default = _sfc_main242;
- var _sfc_main243 = defineComponent({
- name: "SortUp",
- __name: "sort-up",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"
- })
- ]));
- }
- });
- var sort_up_default = _sfc_main243;
- var _sfc_main244 = defineComponent({
- name: "Sort",
- __name: "sort",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"
- })
- ]));
- }
- });
- var _sfc_main245 = defineComponent({
- name: "Stamp",
- __name: "stamp",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"
- })
- ]));
- }
- });
- var _sfc_main246 = defineComponent({
- name: "StarFilled",
- __name: "star-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"
- })
- ]));
- }
- });
- var star_filled_default = _sfc_main246;
- var _sfc_main247 = defineComponent({
- name: "Star",
- __name: "star",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"
- })
- ]));
- }
- });
- var star_default = _sfc_main247;
- var _sfc_main248 = defineComponent({
- name: "Stopwatch",
- __name: "stopwatch",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"
- })
- ]));
- }
- });
- var _sfc_main249 = defineComponent({
- name: "SuccessFilled",
- __name: "success-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
- })
- ]));
- }
- });
- var success_filled_default = _sfc_main249;
- var _sfc_main250 = defineComponent({
- name: "Sugar",
- __name: "sugar",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"
- })
- ]));
- }
- });
- var _sfc_main251 = defineComponent({
- name: "SuitcaseLine",
- __name: "suitcase-line",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"
- })
- ]));
- }
- });
- var _sfc_main252 = defineComponent({
- name: "Suitcase",
- __name: "suitcase",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"
- })
- ]));
- }
- });
- var _sfc_main253 = defineComponent({
- name: "Sunny",
- __name: "sunny",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"
- })
- ]));
- }
- });
- var _sfc_main254 = defineComponent({
- name: "Sunrise",
- __name: "sunrise",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"
- })
- ]));
- }
- });
- var _sfc_main255 = defineComponent({
- name: "Sunset",
- __name: "sunset",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"
- })
- ]));
- }
- });
- var _sfc_main256 = defineComponent({
- name: "SwitchButton",
- __name: "switch-button",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"
- })
- ]));
- }
- });
- var _sfc_main257 = defineComponent({
- name: "SwitchFilled",
- __name: "switch-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"
- })
- ]));
- }
- });
- var _sfc_main258 = defineComponent({
- name: "Switch",
- __name: "switch",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"
- })
- ]));
- }
- });
- var _sfc_main259 = defineComponent({
- name: "TakeawayBox",
- __name: "takeaway-box",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"
- })
- ]));
- }
- });
- var _sfc_main260 = defineComponent({
- name: "Ticket",
- __name: "ticket",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"
- })
- ]));
- }
- });
- var _sfc_main261 = defineComponent({
- name: "Tickets",
- __name: "tickets",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"
- })
- ]));
- }
- });
- var _sfc_main262 = defineComponent({
- name: "Timer",
- __name: "timer",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"
- })
- ]));
- }
- });
- var _sfc_main263 = defineComponent({
- name: "ToiletPaper",
- __name: "toilet-paper",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"
- })
- ]));
- }
- });
- var _sfc_main264 = defineComponent({
- name: "Tools",
- __name: "tools",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"
- })
- ]));
- }
- });
- var _sfc_main265 = defineComponent({
- name: "TopLeft",
- __name: "top-left",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"
- })
- ]));
- }
- });
- var _sfc_main266 = defineComponent({
- name: "TopRight",
- __name: "top-right",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"
- })
- ]));
- }
- });
- var _sfc_main267 = defineComponent({
- name: "Top",
- __name: "top",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"
- })
- ]));
- }
- });
- var _sfc_main268 = defineComponent({
- name: "TrendCharts",
- __name: "trend-charts",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"
- })
- ]));
- }
- });
- var _sfc_main269 = defineComponent({
- name: "TrophyBase",
- __name: "trophy-base",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"
- })
- ]));
- }
- });
- var _sfc_main270 = defineComponent({
- name: "Trophy",
- __name: "trophy",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"
- })
- ]));
- }
- });
- var _sfc_main271 = defineComponent({
- name: "TurnOff",
- __name: "turn-off",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"
- })
- ]));
- }
- });
- var _sfc_main272 = defineComponent({
- name: "Umbrella",
- __name: "umbrella",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"
- })
- ]));
- }
- });
- var _sfc_main273 = defineComponent({
- name: "Unlock",
- __name: "unlock",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"
- })
- ]));
- }
- });
- var _sfc_main274 = defineComponent({
- name: "UploadFilled",
- __name: "upload-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"
- })
- ]));
- }
- });
- var _sfc_main275 = defineComponent({
- name: "Upload",
- __name: "upload",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"
- })
- ]));
- }
- });
- var _sfc_main276 = defineComponent({
- name: "UserFilled",
- __name: "user-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"
- })
- ]));
- }
- });
- var _sfc_main277 = defineComponent({
- name: "User",
- __name: "user",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"
- })
- ]));
- }
- });
- var _sfc_main278 = defineComponent({
- name: "Van",
- __name: "van",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"
- })
- ]));
- }
- });
- var _sfc_main279 = defineComponent({
- name: "VideoCameraFilled",
- __name: "video-camera-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"
- })
- ]));
- }
- });
- var _sfc_main280 = defineComponent({
- name: "VideoCamera",
- __name: "video-camera",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"
- })
- ]));
- }
- });
- var _sfc_main281 = defineComponent({
- name: "VideoPause",
- __name: "video-pause",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"
- })
- ]));
- }
- });
- var _sfc_main282 = defineComponent({
- name: "VideoPlay",
- __name: "video-play",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"
- })
- ]));
- }
- });
- var _sfc_main283 = defineComponent({
- name: "View",
- __name: "view",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
- })
- ]));
- }
- });
- var view_default = _sfc_main283;
- var _sfc_main284 = defineComponent({
- name: "WalletFilled",
- __name: "wallet-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"
- })
- ]));
- }
- });
- var _sfc_main285 = defineComponent({
- name: "Wallet",
- __name: "wallet",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"
- })
- ]));
- }
- });
- var _sfc_main286 = defineComponent({
- name: "WarnTriangleFilled",
- __name: "warn-triangle-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- "xml:space": "preserve",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"
- })
- ]));
- }
- });
- var _sfc_main287 = defineComponent({
- name: "WarningFilled",
- __name: "warning-filled",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
- })
- ]));
- }
- });
- var warning_filled_default = _sfc_main287;
- var _sfc_main288 = defineComponent({
- name: "Warning",
- __name: "warning",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
- })
- ]));
- }
- });
- var _sfc_main289 = defineComponent({
- name: "Watch",
- __name: "watch",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"
- }),
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"
- })
- ]));
- }
- });
- var _sfc_main290 = defineComponent({
- name: "Watermelon",
- __name: "watermelon",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"
- })
- ]));
- }
- });
- var _sfc_main291 = defineComponent({
- name: "WindPower",
- __name: "wind-power",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"
- })
- ]));
- }
- });
- var _sfc_main292 = defineComponent({
- name: "ZoomIn",
- __name: "zoom-in",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
- })
- ]));
- }
- });
- var zoom_in_default = _sfc_main292;
- var _sfc_main293 = defineComponent({
- name: "ZoomOut",
- __name: "zoom-out",
- setup(__props) {
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 1024 1024"
- }, [
- createBaseVNode("path", {
- fill: "currentColor",
- d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
- })
- ]));
- }
- });
- var zoom_out_default = _sfc_main293;
- // node_modules/element-plus/es/utils/vue/icon.mjs
- var iconPropType = definePropType([
- String,
- Object,
- Function
- ]);
- var CloseComponents = {
- Close: close_default
- };
- var TypeComponents = {
- Close: close_default,
- SuccessFilled: success_filled_default,
- InfoFilled: info_filled_default,
- WarningFilled: warning_filled_default,
- CircleCloseFilled: circle_close_filled_default
- };
- var TypeComponentsMap = {
- primary: info_filled_default,
- success: success_filled_default,
- warning: warning_filled_default,
- error: circle_close_filled_default,
- info: info_filled_default
- };
- var ValidateComponentsMap = {
- validating: loading_default,
- success: circle_check_default,
- error: circle_close_default
- };
- // node_modules/element-plus/es/components/alert/src/alert.mjs
- var alertEffects = ["light", "dark"];
- var alertProps = buildProps({
- title: {
- type: String,
- default: ""
- },
- description: {
- type: String,
- default: ""
- },
- type: {
- type: String,
- values: keysOf(TypeComponentsMap),
- default: "info"
- },
- closable: {
- type: Boolean,
- default: true
- },
- closeText: {
- type: String,
- default: ""
- },
- showIcon: Boolean,
- center: Boolean,
- effect: {
- type: String,
- values: alertEffects,
- default: "light"
- },
- ...useDelayedToggleProps
- });
- var alertEmits = {
- open: () => true,
- close: (evt) => isUndefined2(evt) || evt instanceof Event
- };
- // node_modules/element-plus/es/components/alert/src/alert2.mjs
- var __default__3 = defineComponent({
- name: "ElAlert"
- });
- var _sfc_main294 = defineComponent({
- ...__default__3,
- props: alertProps,
- emits: alertEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const { Close } = TypeComponents;
- const slots = useSlots();
- const ns = useNamespace("alert");
- const visible = ref(false);
- const iconComponent = computed(() => TypeComponentsMap[props2.type]);
- const hasDesc = computed(() => !!(props2.description || slots.default));
- const open = () => {
- visible.value = true;
- emit("open");
- };
- const close2 = (event) => {
- visible.value = false;
- emit("close", event);
- };
- const { onOpen, onClose } = useDelayedToggle({
- showAfter: toRef(props2, "showAfter"),
- hideAfter: toRef(props2, "hideAfter"),
- autoClose: toRef(props2, "autoClose"),
- open,
- close: close2
- });
- if (isClient) {
- onOpen();
- }
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, {
- name: unref(ns).b("fade"),
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("div", {
- class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.type), unref(ns).is("center", _ctx.center), unref(ns).is(_ctx.effect)]),
- role: "alert"
- }, [
- _ctx.showIcon && (_ctx.$slots.icon || unref(iconComponent)) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([unref(ns).e("icon"), { [unref(ns).is("big")]: unref(hasDesc) }])
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "icon", {}, () => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
- ])
- ]),
- _: 3
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("content"))
- }, [
- _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass([unref(ns).e("title"), { "with-description": unref(hasDesc) }])
- }, [
- renderSlot(_ctx.$slots, "title", {}, () => [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- unref(hasDesc) ? (openBlock(), createElementBlock("p", {
- key: 1,
- class: normalizeClass(unref(ns).e("description"))
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createTextVNode(toDisplayString(_ctx.description), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- _ctx.closable ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
- _ctx.closeText ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(ns).e("close-btn"), unref(ns).is("customed")]),
- onClick: close2
- }, toDisplayString(_ctx.closeText), 3)) : (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass(unref(ns).e("close-btn")),
- onClick: unref(onClose)
- }, {
- default: withCtx(() => [
- createVNode(unref(Close))
- ]),
- _: 1
- }, 8, ["class", "onClick"]))
- ], 64)) : createCommentVNode("v-if", true)
- ], 2)
- ], 2), [
- [vShow, visible.value]
- ])
- ]),
- _: 3
- }, 8, ["name"]);
- };
- }
- });
- var Alert = _export_sfc(_sfc_main294, [["__file", "alert.vue"]]);
- // node_modules/element-plus/es/components/alert/index.mjs
- var ElAlert = withInstall(Alert);
- // node_modules/element-plus/es/utils/browser.mjs
- var isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
- // node_modules/element-plus/es/components/input/src/utils.mjs
- var hiddenTextarea = void 0;
- var HIDDEN_STYLE = {
- height: "0",
- visibility: "hidden",
- overflow: isFirefox() ? "" : "hidden",
- position: "absolute",
- "z-index": "-1000",
- top: "0",
- right: "0"
- };
- var CONTEXT_STYLE = [
- "letter-spacing",
- "line-height",
- "padding-top",
- "padding-bottom",
- "font-family",
- "font-weight",
- "font-size",
- "text-rendering",
- "text-transform",
- "width",
- "text-indent",
- "padding-left",
- "padding-right",
- "border-width",
- "box-sizing",
- "word-break"
- ];
- function calculateNodeStyling(targetElement) {
- const style = window.getComputedStyle(targetElement);
- const boxSizing = style.getPropertyValue("box-sizing");
- const paddingSize = Number.parseFloat(style.getPropertyValue("padding-bottom")) + Number.parseFloat(style.getPropertyValue("padding-top"));
- const borderSize = Number.parseFloat(style.getPropertyValue("border-bottom-width")) + Number.parseFloat(style.getPropertyValue("border-top-width"));
- const contextStyle = CONTEXT_STYLE.map((name) => [
- name,
- style.getPropertyValue(name)
- ]);
- return { contextStyle, paddingSize, borderSize, boxSizing };
- }
- function calcTextareaHeight(targetElement, minRows = 1, maxRows) {
- var _a2, _b;
- if (!hiddenTextarea) {
- hiddenTextarea = document.createElement("textarea");
- ((_a2 = targetElement.parentNode) != null ? _a2 : document.body).appendChild(hiddenTextarea);
- }
- const { paddingSize, borderSize, boxSizing, contextStyle } = calculateNodeStyling(targetElement);
- contextStyle.forEach(([key, value]) => hiddenTextarea == null ? void 0 : hiddenTextarea.style.setProperty(key, value));
- Object.entries(HIDDEN_STYLE).forEach(([key, value]) => hiddenTextarea == null ? void 0 : hiddenTextarea.style.setProperty(key, value, "important"));
- hiddenTextarea.value = targetElement.value || targetElement.placeholder || "";
- let height = hiddenTextarea.scrollHeight;
- const result2 = {};
- if (boxSizing === "border-box") {
- height = height + borderSize;
- } else if (boxSizing === "content-box") {
- height = height - paddingSize;
- }
- hiddenTextarea.value = "";
- const singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
- if (isNumber2(minRows)) {
- let minHeight = singleRowHeight * minRows;
- if (boxSizing === "border-box") {
- minHeight = minHeight + paddingSize + borderSize;
- }
- height = Math.max(minHeight, height);
- result2.minHeight = `${minHeight}px`;
- }
- if (isNumber2(maxRows)) {
- let maxHeight = singleRowHeight * maxRows;
- if (boxSizing === "border-box") {
- maxHeight = maxHeight + paddingSize + borderSize;
- }
- height = Math.min(maxHeight, height);
- }
- result2.height = `${height}px`;
- (_b = hiddenTextarea.parentNode) == null ? void 0 : _b.removeChild(hiddenTextarea);
- hiddenTextarea = void 0;
- return result2;
- }
- // node_modules/element-plus/es/utils/typescript.mjs
- var mutable = (val) => val;
- // node_modules/element-plus/es/hooks/use-aria/index.mjs
- var ariaProps = buildProps({
- ariaLabel: String,
- ariaOrientation: {
- type: String,
- values: ["horizontal", "vertical", "undefined"]
- },
- ariaControls: String
- });
- var useAriaProps = (arias) => {
- return pick_default(ariaProps, arias);
- };
- // node_modules/element-plus/es/components/input/src/input2.mjs
- var inputProps = buildProps({
- id: {
- type: String,
- default: void 0
- },
- size: useSizeProp,
- disabled: Boolean,
- modelValue: {
- type: definePropType([
- String,
- Number,
- Object
- ]),
- default: ""
- },
- maxlength: {
- type: [String, Number]
- },
- minlength: {
- type: [String, Number]
- },
- type: {
- type: String,
- default: "text"
- },
- resize: {
- type: String,
- values: ["none", "both", "horizontal", "vertical"]
- },
- autosize: {
- type: definePropType([Boolean, Object]),
- default: false
- },
- autocomplete: {
- type: String,
- default: "off"
- },
- formatter: {
- type: Function
- },
- parser: {
- type: Function
- },
- placeholder: {
- type: String
- },
- form: {
- type: String
- },
- readonly: Boolean,
- clearable: Boolean,
- clearIcon: {
- type: iconPropType,
- default: circle_close_default
- },
- showPassword: Boolean,
- showWordLimit: Boolean,
- suffixIcon: {
- type: iconPropType
- },
- prefixIcon: {
- type: iconPropType
- },
- containerRole: {
- type: String,
- default: void 0
- },
- tabindex: {
- type: [String, Number],
- default: 0
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- inputStyle: {
- type: definePropType([Object, Array, String]),
- default: () => mutable({})
- },
- autofocus: Boolean,
- rows: {
- type: Number,
- default: 2
- },
- ...useAriaProps(["ariaLabel"]),
- inputmode: {
- type: definePropType(String),
- default: void 0
- },
- name: String
- });
- var inputEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isString(value),
- input: (value) => isString(value),
- change: (value) => isString(value),
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent,
- clear: () => true,
- mouseleave: (evt) => evt instanceof MouseEvent,
- mouseenter: (evt) => evt instanceof MouseEvent,
- keydown: (evt) => evt instanceof Event,
- compositionstart: (evt) => evt instanceof CompositionEvent,
- compositionupdate: (evt) => evt instanceof CompositionEvent,
- compositionend: (evt) => evt instanceof CompositionEvent
- };
- // node_modules/element-plus/es/hooks/use-attrs/index.mjs
- var DEFAULT_EXCLUDE_KEYS = ["class", "style"];
- var LISTENER_PREFIX = /^on[A-Z]/;
- var useAttrs2 = (params = {}) => {
- const { excludeListeners = false, excludeKeys } = params;
- const allExcludeKeys = computed(() => {
- return ((excludeKeys == null ? void 0 : excludeKeys.value) || []).concat(DEFAULT_EXCLUDE_KEYS);
- });
- const instance = getCurrentInstance();
- if (!instance) {
- return computed(() => ({}));
- }
- return computed(() => {
- var _a2;
- return fromPairs_default(Object.entries((_a2 = instance.proxy) == null ? void 0 : _a2.$attrs).filter(([key]) => !allExcludeKeys.value.includes(key) && !(excludeListeners && LISTENER_PREFIX.test(key))));
- });
- };
- // node_modules/element-plus/es/hooks/use-id/index.mjs
- var defaultIdInjection = {
- prefix: Math.floor(Math.random() * 1e4),
- current: 0
- };
- var ID_INJECTION_KEY = Symbol("elIdInjection");
- var useIdInjection = () => {
- return getCurrentInstance() ? inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
- };
- var useId = (deterministicId) => {
- const idInjection = useIdInjection();
- const namespace = useGetDerivedNamespace();
- const idRef = computedEager(() => unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
- return idRef;
- };
- // node_modules/element-plus/es/components/form/src/constants.mjs
- var formContextKey = Symbol("formContextKey");
- var formItemContextKey = Symbol("formItemContextKey");
- // node_modules/element-plus/es/components/form/src/hooks/use-form-item.mjs
- var useFormItem = () => {
- const form = inject(formContextKey, void 0);
- const formItem = inject(formItemContextKey, void 0);
- return {
- form,
- formItem
- };
- };
- var useFormItemInputId = (props2, {
- formItemContext,
- disableIdGeneration,
- disableIdManagement
- }) => {
- if (!disableIdGeneration) {
- disableIdGeneration = ref(false);
- }
- if (!disableIdManagement) {
- disableIdManagement = ref(false);
- }
- const instance = getCurrentInstance();
- const inLabel = () => {
- let parent2 = instance == null ? void 0 : instance.parent;
- while (parent2) {
- if (parent2.type.name === "ElFormItem") {
- return false;
- }
- if (parent2.type.name === "ElLabelWrap") {
- return true;
- }
- parent2 = parent2.parent;
- }
- return false;
- };
- const inputId = ref();
- let idUnwatch = void 0;
- const isLabeledByFormItem = computed(() => {
- var _a2;
- return !!(!(props2.label || props2.ariaLabel) && formItemContext && formItemContext.inputIds && ((_a2 = formItemContext.inputIds) == null ? void 0 : _a2.length) <= 1);
- });
- onMounted(() => {
- idUnwatch = watch([toRef(props2, "id"), disableIdGeneration], ([id, disableIdGeneration2]) => {
- const newId = id != null ? id : !disableIdGeneration2 ? useId().value : void 0;
- if (newId !== inputId.value) {
- if ((formItemContext == null ? void 0 : formItemContext.removeInputId) && !inLabel()) {
- inputId.value && formItemContext.removeInputId(inputId.value);
- if (!(disableIdManagement == null ? void 0 : disableIdManagement.value) && !disableIdGeneration2 && newId) {
- formItemContext.addInputId(newId);
- }
- }
- inputId.value = newId;
- }
- }, { immediate: true });
- });
- onUnmounted(() => {
- idUnwatch && idUnwatch();
- if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
- inputId.value && formItemContext.removeInputId(inputId.value);
- }
- });
- return {
- isLabeledByFormItem,
- inputId
- };
- };
- // node_modules/element-plus/es/hooks/use-prop/index.mjs
- var useProp = (name) => {
- const vm = getCurrentInstance();
- return computed(() => {
- var _a2, _b;
- return (_b = (_a2 = vm == null ? void 0 : vm.proxy) == null ? void 0 : _a2.$props) == null ? void 0 : _b[name];
- });
- };
- // node_modules/element-plus/es/components/form/src/hooks/use-form-common-props.mjs
- var useFormSize = (fallback, ignore = {}) => {
- const emptyRef = ref(void 0);
- const size3 = ignore.prop ? emptyRef : useProp("size");
- const globalConfig2 = ignore.global ? emptyRef : useGlobalSize();
- const form = ignore.form ? { size: void 0 } : inject(formContextKey, void 0);
- const formItem = ignore.formItem ? { size: void 0 } : inject(formItemContextKey, void 0);
- return computed(() => size3.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig2.value || "");
- };
- var useFormDisabled = (fallback) => {
- const disabled = useProp("disabled");
- const form = inject(formContextKey, void 0);
- return computed(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false);
- };
- var useSize = useFormSize;
- var useDisabled = useFormDisabled;
- // node_modules/element-plus/es/utils/dom/aria.mjs
- var FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
- var isVisible = (element) => {
- const computed2 = getComputedStyle(element);
- return computed2.position === "fixed" ? false : element.offsetParent !== null;
- };
- var obtainAllFocusableElements = (element) => {
- return Array.from(element.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter((item) => isFocusable(item) && isVisible(item));
- };
- var isFocusable = (element) => {
- if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
- return true;
- }
- if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
- return false;
- }
- switch (element.nodeName) {
- case "A": {
- return !!element.href && element.rel !== "ignore";
- }
- case "INPUT": {
- return !(element.type === "hidden" || element.type === "file");
- }
- case "BUTTON":
- case "SELECT":
- case "TEXTAREA": {
- return true;
- }
- default: {
- return false;
- }
- }
- };
- var triggerEvent = function(elm, name, ...opts) {
- let eventName;
- if (name.includes("mouse") || name.includes("click")) {
- eventName = "MouseEvents";
- } else if (name.includes("key")) {
- eventName = "KeyboardEvent";
- } else {
- eventName = "HTMLEvents";
- }
- const evt = document.createEvent(eventName);
- evt.initEvent(name, ...opts);
- elm.dispatchEvent(evt);
- return elm;
- };
- var isLeaf = (el) => !el.getAttribute("aria-owns");
- var getSibling = (el, distance, elClass) => {
- const { parentNode } = el;
- if (!parentNode)
- return null;
- const siblings = parentNode.querySelectorAll(elClass);
- const index = Array.prototype.indexOf.call(siblings, el);
- return siblings[index + distance] || null;
- };
- var focusNode = (el) => {
- if (!el)
- return;
- el.focus();
- !isLeaf(el) && el.click();
- };
- // node_modules/element-plus/es/hooks/use-focus-controller/index.mjs
- function useFocusController(target2, {
- disabled,
- beforeFocus,
- afterFocus,
- beforeBlur,
- afterBlur
- } = {}) {
- const instance = getCurrentInstance();
- const { emit } = instance;
- const wrapperRef = shallowRef();
- const isFocused = ref(false);
- const handleFocus = (event) => {
- const cancelFocus = isFunction(beforeFocus) ? beforeFocus(event) : false;
- if (unref(disabled) || isFocused.value || cancelFocus)
- return;
- isFocused.value = true;
- emit("focus", event);
- afterFocus == null ? void 0 : afterFocus();
- };
- const handleBlur = (event) => {
- var _a2;
- const cancelBlur = isFunction(beforeBlur) ? beforeBlur(event) : false;
- if (unref(disabled) || event.relatedTarget && ((_a2 = wrapperRef.value) == null ? void 0 : _a2.contains(event.relatedTarget)) || cancelBlur)
- return;
- isFocused.value = false;
- emit("blur", event);
- afterBlur == null ? void 0 : afterBlur();
- };
- const handleClick = (event) => {
- var _a2, _b;
- if (unref(disabled) || isFocusable(event.target) || ((_a2 = wrapperRef.value) == null ? void 0 : _a2.contains(document.activeElement)) && wrapperRef.value !== document.activeElement)
- return;
- (_b = target2.value) == null ? void 0 : _b.focus();
- };
- watch([wrapperRef, () => unref(disabled)], ([el, disabled2]) => {
- if (!el)
- return;
- if (disabled2) {
- el.removeAttribute("tabindex");
- } else {
- el.setAttribute("tabindex", "-1");
- }
- });
- useEventListener(wrapperRef, "focus", handleFocus, true);
- useEventListener(wrapperRef, "blur", handleBlur, true);
- useEventListener(wrapperRef, "click", handleClick, true);
- return {
- isFocused,
- wrapperRef,
- handleFocus,
- handleBlur
- };
- }
- // node_modules/element-plus/es/utils/i18n.mjs
- var isKorean = (text) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(text);
- // node_modules/element-plus/es/hooks/use-composition/index.mjs
- function useComposition({
- afterComposition,
- emit
- }) {
- const isComposing = ref(false);
- const handleCompositionStart = (event) => {
- emit == null ? void 0 : emit("compositionstart", event);
- isComposing.value = true;
- };
- const handleCompositionUpdate = (event) => {
- var _a2;
- emit == null ? void 0 : emit("compositionupdate", event);
- const text = (_a2 = event.target) == null ? void 0 : _a2.value;
- const lastCharacter = text[text.length - 1] || "";
- isComposing.value = !isKorean(lastCharacter);
- };
- const handleCompositionEnd = (event) => {
- emit == null ? void 0 : emit("compositionend", event);
- if (isComposing.value) {
- isComposing.value = false;
- nextTick(() => afterComposition(event));
- }
- };
- const handleComposition = (event) => {
- event.type === "compositionend" ? handleCompositionEnd(event) : handleCompositionUpdate(event);
- };
- return {
- isComposing,
- handleComposition,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd
- };
- }
- // node_modules/element-plus/es/hooks/use-cursor/index.mjs
- function useCursor(input) {
- let selectionInfo;
- function recordCursor() {
- if (input.value == void 0)
- return;
- const { selectionStart, selectionEnd, value } = input.value;
- if (selectionStart == null || selectionEnd == null)
- return;
- const beforeTxt = value.slice(0, Math.max(0, selectionStart));
- const afterTxt = value.slice(Math.max(0, selectionEnd));
- selectionInfo = {
- selectionStart,
- selectionEnd,
- value,
- beforeTxt,
- afterTxt
- };
- }
- function setCursor() {
- if (input.value == void 0 || selectionInfo == void 0)
- return;
- const { value } = input.value;
- const { beforeTxt, afterTxt, selectionStart } = selectionInfo;
- if (beforeTxt == void 0 || afterTxt == void 0 || selectionStart == void 0)
- return;
- let startPos = value.length;
- if (value.endsWith(afterTxt)) {
- startPos = value.length - afterTxt.length;
- } else if (value.startsWith(beforeTxt)) {
- startPos = beforeTxt.length;
- } else {
- const beforeLastChar = beforeTxt[selectionStart - 1];
- const newIndex = value.indexOf(beforeLastChar, selectionStart - 1);
- if (newIndex !== -1) {
- startPos = newIndex + 1;
- }
- }
- input.value.setSelectionRange(startPos, startPos);
- }
- return [recordCursor, setCursor];
- }
- // node_modules/element-plus/es/components/input/src/input.mjs
- var COMPONENT_NAME2 = "ElInput";
- var __default__4 = defineComponent({
- name: COMPONENT_NAME2,
- inheritAttrs: false
- });
- var _sfc_main295 = defineComponent({
- ...__default__4,
- props: inputProps,
- emits: inputEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const rawAttrs = useAttrs();
- const attrs = useAttrs2();
- const slots = useSlots();
- const containerKls = computed(() => [
- props2.type === "textarea" ? nsTextarea.b() : nsInput.b(),
- nsInput.m(inputSize.value),
- nsInput.is("disabled", inputDisabled.value),
- nsInput.is("exceed", inputExceed.value),
- {
- [nsInput.b("group")]: slots.prepend || slots.append,
- [nsInput.m("prefix")]: slots.prefix || props2.prefixIcon,
- [nsInput.m("suffix")]: slots.suffix || props2.suffixIcon || props2.clearable || props2.showPassword,
- [nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value,
- [nsInput.b("hidden")]: props2.type === "hidden"
- },
- rawAttrs.class
- ]);
- const wrapperKls = computed(() => [
- nsInput.e("wrapper"),
- nsInput.is("focus", isFocused.value)
- ]);
- const { form: elForm, formItem: elFormItem } = useFormItem();
- const { inputId } = useFormItemInputId(props2, {
- formItemContext: elFormItem
- });
- const inputSize = useFormSize();
- const inputDisabled = useFormDisabled();
- const nsInput = useNamespace("input");
- const nsTextarea = useNamespace("textarea");
- const input = shallowRef();
- const textarea = shallowRef();
- const hovering = ref(false);
- const passwordVisible = ref(false);
- const countStyle = ref();
- const textareaCalcStyle = shallowRef(props2.inputStyle);
- const _ref = computed(() => input.value || textarea.value);
- const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
- disabled: inputDisabled,
- afterBlur() {
- var _a2;
- if (props2.validateEvent) {
- (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "blur").catch((err) => debugWarn());
- }
- }
- });
- const needStatusIcon = computed(() => {
- var _a2;
- return (_a2 = elForm == null ? void 0 : elForm.statusIcon) != null ? _a2 : false;
- });
- const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
- const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
- const passwordIcon = computed(() => passwordVisible.value ? view_default : hide_default);
- const containerStyle = computed(() => [
- rawAttrs.style
- ]);
- const textareaStyle = computed(() => [
- props2.inputStyle,
- textareaCalcStyle.value,
- { resize: props2.resize }
- ]);
- const nativeInputValue = computed(() => isNil_default(props2.modelValue) ? "" : String(props2.modelValue));
- const showClear = computed(() => props2.clearable && !inputDisabled.value && !props2.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
- const showPwdVisible = computed(() => props2.showPassword && !inputDisabled.value && !!nativeInputValue.value);
- const isWordLimitVisible = computed(() => props2.showWordLimit && !!props2.maxlength && (props2.type === "text" || props2.type === "textarea") && !inputDisabled.value && !props2.readonly && !props2.showPassword);
- const textLength = computed(() => nativeInputValue.value.length);
- const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(props2.maxlength));
- const suffixVisible = computed(() => !!slots.suffix || !!props2.suffixIcon || showClear.value || props2.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
- const [recordCursor, setCursor] = useCursor(input);
- useResizeObserver(textarea, (entries) => {
- onceInitSizeTextarea();
- if (!isWordLimitVisible.value || props2.resize !== "both")
- return;
- const entry = entries[0];
- const { width } = entry.contentRect;
- countStyle.value = {
- right: `calc(100% - ${width + 15 + 6}px)`
- };
- });
- const resizeTextarea = () => {
- const { type: type4, autosize } = props2;
- if (!isClient || type4 !== "textarea" || !textarea.value)
- return;
- if (autosize) {
- const minRows = isObject(autosize) ? autosize.minRows : void 0;
- const maxRows = isObject(autosize) ? autosize.maxRows : void 0;
- const textareaStyle2 = calcTextareaHeight(textarea.value, minRows, maxRows);
- textareaCalcStyle.value = {
- overflowY: "hidden",
- ...textareaStyle2
- };
- nextTick(() => {
- textarea.value.offsetHeight;
- textareaCalcStyle.value = textareaStyle2;
- });
- } else {
- textareaCalcStyle.value = {
- minHeight: calcTextareaHeight(textarea.value).minHeight
- };
- }
- };
- const createOnceInitResize = (resizeTextarea2) => {
- let isInit = false;
- return () => {
- var _a2;
- if (isInit || !props2.autosize)
- return;
- const isElHidden = ((_a2 = textarea.value) == null ? void 0 : _a2.offsetParent) === null;
- if (!isElHidden) {
- resizeTextarea2();
- isInit = true;
- }
- };
- };
- const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
- const setNativeInputValue = () => {
- const input2 = _ref.value;
- const formatterValue = props2.formatter ? props2.formatter(nativeInputValue.value) : nativeInputValue.value;
- if (!input2 || input2.value === formatterValue)
- return;
- input2.value = formatterValue;
- };
- const handleInput = async (event) => {
- recordCursor();
- let { value } = event.target;
- if (props2.formatter && props2.parser) {
- value = props2.parser(value);
- }
- if (isComposing.value)
- return;
- if (value === nativeInputValue.value) {
- setNativeInputValue();
- return;
- }
- emit(UPDATE_MODEL_EVENT, value);
- emit(INPUT_EVENT, value);
- await nextTick();
- setNativeInputValue();
- setCursor();
- };
- const handleChange = (event) => {
- let { value } = event.target;
- if (props2.formatter && props2.parser) {
- value = props2.parser(value);
- }
- emit(CHANGE_EVENT, value);
- };
- const {
- isComposing,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd
- } = useComposition({ emit, afterComposition: handleInput });
- const handlePasswordVisible = () => {
- recordCursor();
- passwordVisible.value = !passwordVisible.value;
- setTimeout(setCursor);
- };
- const focus = () => {
- var _a2;
- return (_a2 = _ref.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2;
- return (_a2 = _ref.value) == null ? void 0 : _a2.blur();
- };
- const handleMouseLeave = (evt) => {
- hovering.value = false;
- emit("mouseleave", evt);
- };
- const handleMouseEnter = (evt) => {
- hovering.value = true;
- emit("mouseenter", evt);
- };
- const handleKeydown = (evt) => {
- emit("keydown", evt);
- };
- const select = () => {
- var _a2;
- (_a2 = _ref.value) == null ? void 0 : _a2.select();
- };
- const clear = () => {
- emit(UPDATE_MODEL_EVENT, "");
- emit(CHANGE_EVENT, "");
- emit("clear");
- emit(INPUT_EVENT, "");
- };
- watch(() => props2.modelValue, () => {
- var _a2;
- nextTick(() => resizeTextarea());
- if (props2.validateEvent) {
- (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change").catch((err) => debugWarn());
- }
- });
- watch(nativeInputValue, () => setNativeInputValue());
- watch(() => props2.type, async () => {
- await nextTick();
- setNativeInputValue();
- resizeTextarea();
- });
- onMounted(() => {
- if (!props2.formatter && props2.parser) ;
- setNativeInputValue();
- nextTick(resizeTextarea);
- });
- expose({
- input,
- textarea,
- ref: _ref,
- textareaStyle,
- autosize: toRef(props2, "autosize"),
- isComposing,
- focus,
- blur,
- select,
- clear,
- resizeTextarea
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(containerKls),
- {
- [unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
- [unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend
- }
- ]),
- style: normalizeStyle(unref(containerStyle)),
- onMouseenter: handleMouseEnter,
- onMouseleave: handleMouseLeave
- }, [
- createCommentVNode(" input "),
- _ctx.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createCommentVNode(" prepend slot "),
- _ctx.$slots.prepend ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(nsInput).be("group", "prepend"))
- }, [
- renderSlot(_ctx.$slots, "prepend")
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- ref_key: "wrapperRef",
- ref: wrapperRef,
- class: normalizeClass(unref(wrapperKls))
- }, [
- createCommentVNode(" prefix slot "),
- _ctx.$slots.prefix || _ctx.prefixIcon ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass(unref(nsInput).e("prefix"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(nsInput).e("prefix-inner"))
- }, [
- renderSlot(_ctx.$slots, "prefix"),
- _ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(nsInput).e("icon"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("input", mergeProps({
- id: unref(inputId),
- ref_key: "input",
- ref: input,
- class: unref(nsInput).e("inner")
- }, unref(attrs), {
- name: _ctx.name,
- minlength: _ctx.minlength,
- maxlength: _ctx.maxlength,
- type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
- disabled: unref(inputDisabled),
- readonly: _ctx.readonly,
- autocomplete: _ctx.autocomplete,
- tabindex: _ctx.tabindex,
- "aria-label": _ctx.ariaLabel,
- placeholder: _ctx.placeholder,
- style: _ctx.inputStyle,
- form: _ctx.form,
- autofocus: _ctx.autofocus,
- role: _ctx.containerRole,
- inputmode: _ctx.inputmode,
- onCompositionstart: unref(handleCompositionStart),
- onCompositionupdate: unref(handleCompositionUpdate),
- onCompositionend: unref(handleCompositionEnd),
- onInput: handleInput,
- onChange: handleChange,
- onKeydown: handleKeydown
- }), null, 16, ["id", "name", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "inputmode", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
- createCommentVNode(" suffix slot "),
- unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
- key: 1,
- class: normalizeClass(unref(nsInput).e("suffix"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(nsInput).e("suffix-inner"))
- }, [
- !unref(showClear) || !unref(showPwdVisible) || !unref(isWordLimitVisible) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- renderSlot(_ctx.$slots, "suffix"),
- _ctx.suffixIcon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(nsInput).e("icon"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 64)) : createCommentVNode("v-if", true),
- unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("clear")]),
- onMousedown: withModifiers(unref(NOOP), ["prevent"]),
- onClick: clear
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
- unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 2,
- class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
- onClick: handlePasswordVisible
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
- key: 3,
- class: normalizeClass(unref(nsInput).e("count"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(nsInput).e("count-inner"))
- }, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 3)
- ], 2)) : createCommentVNode("v-if", true),
- unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 4,
- class: normalizeClass([
- unref(nsInput).e("icon"),
- unref(nsInput).e("validateIcon"),
- unref(nsInput).is("loading", unref(validateState) === "validating")
- ])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 2)) : createCommentVNode("v-if", true)
- ], 2),
- createCommentVNode(" append slot "),
- _ctx.$slots.append ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(nsInput).be("group", "append"))
- }, [
- renderSlot(_ctx.$slots, "append")
- ], 2)) : createCommentVNode("v-if", true)
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- createCommentVNode(" textarea "),
- createBaseVNode("textarea", mergeProps({
- id: unref(inputId),
- ref_key: "textarea",
- ref: textarea,
- class: [unref(nsTextarea).e("inner"), unref(nsInput).is("focus", unref(isFocused))]
- }, unref(attrs), {
- minlength: _ctx.minlength,
- maxlength: _ctx.maxlength,
- tabindex: _ctx.tabindex,
- disabled: unref(inputDisabled),
- readonly: _ctx.readonly,
- autocomplete: _ctx.autocomplete,
- style: unref(textareaStyle),
- "aria-label": _ctx.ariaLabel,
- placeholder: _ctx.placeholder,
- form: _ctx.form,
- autofocus: _ctx.autofocus,
- rows: _ctx.rows,
- role: _ctx.containerRole,
- onCompositionstart: unref(handleCompositionStart),
- onCompositionupdate: unref(handleCompositionUpdate),
- onCompositionend: unref(handleCompositionEnd),
- onInput: handleInput,
- onFocus: unref(handleFocus),
- onBlur: unref(handleBlur),
- onChange: handleChange,
- onKeydown: handleKeydown
- }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
- unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
- key: 0,
- style: normalizeStyle(countStyle.value),
- class: normalizeClass(unref(nsInput).e("count"))
- }, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 7)) : createCommentVNode("v-if", true)
- ], 64))
- ], 38);
- };
- }
- });
- var Input = _export_sfc(_sfc_main295, [["__file", "input.vue"]]);
- // node_modules/element-plus/es/components/input/index.mjs
- var ElInput = withInstall(Input);
- // node_modules/element-plus/es/components/scrollbar/src/util.mjs
- var GAP = 4;
- var BAR_MAP = {
- vertical: {
- offset: "offsetHeight",
- scroll: "scrollTop",
- scrollSize: "scrollHeight",
- size: "height",
- key: "vertical",
- axis: "Y",
- client: "clientY",
- direction: "top"
- },
- horizontal: {
- offset: "offsetWidth",
- scroll: "scrollLeft",
- scrollSize: "scrollWidth",
- size: "width",
- key: "horizontal",
- axis: "X",
- client: "clientX",
- direction: "left"
- }
- };
- var renderThumbStyle = ({
- move,
- size: size3,
- bar
- }) => ({
- [bar.size]: size3,
- transform: `translate${bar.axis}(${move}%)`
- });
- // node_modules/element-plus/es/components/scrollbar/src/constants.mjs
- var scrollbarContextKey = Symbol("scrollbarContextKey");
- // node_modules/element-plus/es/components/scrollbar/src/thumb.mjs
- var thumbProps = buildProps({
- vertical: Boolean,
- size: String,
- move: Number,
- ratio: {
- type: Number,
- required: true
- },
- always: Boolean
- });
- // node_modules/element-plus/es/components/scrollbar/src/thumb2.mjs
- var COMPONENT_NAME3 = "Thumb";
- var _sfc_main296 = defineComponent({
- __name: "thumb",
- props: thumbProps,
- setup(__props) {
- const props2 = __props;
- const scrollbar = inject(scrollbarContextKey);
- const ns = useNamespace("scrollbar");
- if (!scrollbar)
- throwError(COMPONENT_NAME3, "can not inject scrollbar context");
- const instance = ref();
- const thumb = ref();
- const thumbState = ref({});
- const visible = ref(false);
- let cursorDown = false;
- let cursorLeave = false;
- let baseScrollHeight = 0;
- let baseScrollWidth = 0;
- let originalOnSelectStart = isClient ? document.onselectstart : null;
- const bar = computed(() => BAR_MAP[props2.vertical ? "vertical" : "horizontal"]);
- const thumbStyle = computed(() => renderThumbStyle({
- size: props2.size,
- move: props2.move,
- bar: bar.value
- }));
- const offsetRatio = computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props2.ratio / thumb.value[bar.value.offset]);
- const clickThumbHandler = (e) => {
- var _a2;
- e.stopPropagation();
- if (e.ctrlKey || [1, 2].includes(e.button))
- return;
- (_a2 = window.getSelection()) == null ? void 0 : _a2.removeAllRanges();
- startDrag(e);
- const el = e.currentTarget;
- if (!el)
- return;
- thumbState.value[bar.value.axis] = el[bar.value.offset] - (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction]);
- };
- const clickTrackHandler = (e) => {
- if (!thumb.value || !instance.value || !scrollbar.wrapElement)
- return;
- const offset3 = Math.abs(e.target.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]);
- const thumbHalf = thumb.value[bar.value.offset] / 2;
- const thumbPositionPercentage = (offset3 - thumbHalf) * 100 * offsetRatio.value / instance.value[bar.value.offset];
- scrollbar.wrapElement[bar.value.scroll] = thumbPositionPercentage * scrollbar.wrapElement[bar.value.scrollSize] / 100;
- };
- const startDrag = (e) => {
- e.stopImmediatePropagation();
- cursorDown = true;
- baseScrollHeight = scrollbar.wrapElement.scrollHeight;
- baseScrollWidth = scrollbar.wrapElement.scrollWidth;
- document.addEventListener("mousemove", mouseMoveDocumentHandler);
- document.addEventListener("mouseup", mouseUpDocumentHandler);
- originalOnSelectStart = document.onselectstart;
- document.onselectstart = () => false;
- };
- const mouseMoveDocumentHandler = (e) => {
- if (!instance.value || !thumb.value)
- return;
- if (cursorDown === false)
- return;
- const prevPage = thumbState.value[bar.value.axis];
- if (!prevPage)
- return;
- const offset3 = (instance.value.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]) * -1;
- const thumbClickPosition = thumb.value[bar.value.offset] - prevPage;
- const thumbPositionPercentage = (offset3 - thumbClickPosition) * 100 * offsetRatio.value / instance.value[bar.value.offset];
- if (bar.value.scroll === "scrollLeft") {
- scrollbar.wrapElement[bar.value.scroll] = thumbPositionPercentage * baseScrollWidth / 100;
- } else {
- scrollbar.wrapElement[bar.value.scroll] = thumbPositionPercentage * baseScrollHeight / 100;
- }
- };
- const mouseUpDocumentHandler = () => {
- cursorDown = false;
- thumbState.value[bar.value.axis] = 0;
- document.removeEventListener("mousemove", mouseMoveDocumentHandler);
- document.removeEventListener("mouseup", mouseUpDocumentHandler);
- restoreOnselectstart();
- if (cursorLeave)
- visible.value = false;
- };
- const mouseMoveScrollbarHandler = () => {
- cursorLeave = false;
- visible.value = !!props2.size;
- };
- const mouseLeaveScrollbarHandler = () => {
- cursorLeave = true;
- visible.value = cursorDown;
- };
- onBeforeUnmount(() => {
- restoreOnselectstart();
- document.removeEventListener("mouseup", mouseUpDocumentHandler);
- });
- const restoreOnselectstart = () => {
- if (document.onselectstart !== originalOnSelectStart)
- document.onselectstart = originalOnSelectStart;
- };
- useEventListener(toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
- useEventListener(toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, {
- name: unref(ns).b("fade"),
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("div", {
- ref_key: "instance",
- ref: instance,
- class: normalizeClass([unref(ns).e("bar"), unref(ns).is(unref(bar).key)]),
- onMousedown: clickTrackHandler,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- createBaseVNode("div", {
- ref_key: "thumb",
- ref: thumb,
- class: normalizeClass(unref(ns).e("thumb")),
- style: normalizeStyle(unref(thumbStyle)),
- onMousedown: clickThumbHandler
- }, null, 38)
- ], 42, ["onClick"]), [
- [vShow, _ctx.always || visible.value]
- ])
- ]),
- _: 1
- }, 8, ["name"]);
- };
- }
- });
- var Thumb = _export_sfc(_sfc_main296, [["__file", "thumb.vue"]]);
- // node_modules/element-plus/es/components/scrollbar/src/bar.mjs
- var barProps = buildProps({
- always: {
- type: Boolean,
- default: true
- },
- minSize: {
- type: Number,
- required: true
- }
- });
- // node_modules/element-plus/es/components/scrollbar/src/bar2.mjs
- var _sfc_main297 = defineComponent({
- __name: "bar",
- props: barProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const scrollbar = inject(scrollbarContextKey);
- const moveX = ref(0);
- const moveY = ref(0);
- const sizeWidth = ref("");
- const sizeHeight = ref("");
- const ratioY = ref(1);
- const ratioX = ref(1);
- const handleScroll2 = (wrap2) => {
- if (wrap2) {
- const offsetHeight = wrap2.offsetHeight - GAP;
- const offsetWidth = wrap2.offsetWidth - GAP;
- moveY.value = wrap2.scrollTop * 100 / offsetHeight * ratioY.value;
- moveX.value = wrap2.scrollLeft * 100 / offsetWidth * ratioX.value;
- }
- };
- const update2 = () => {
- const wrap2 = scrollbar == null ? void 0 : scrollbar.wrapElement;
- if (!wrap2)
- return;
- const offsetHeight = wrap2.offsetHeight - GAP;
- const offsetWidth = wrap2.offsetWidth - GAP;
- const originalHeight = offsetHeight ** 2 / wrap2.scrollHeight;
- const originalWidth = offsetWidth ** 2 / wrap2.scrollWidth;
- const height = Math.max(originalHeight, props2.minSize);
- const width = Math.max(originalWidth, props2.minSize);
- ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
- ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
- sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : "";
- sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : "";
- };
- expose({
- handleScroll: handleScroll2,
- update: update2
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock(Fragment, null, [
- createVNode(Thumb, {
- move: moveX.value,
- ratio: ratioX.value,
- size: sizeWidth.value,
- always: _ctx.always
- }, null, 8, ["move", "ratio", "size", "always"]),
- createVNode(Thumb, {
- move: moveY.value,
- ratio: ratioY.value,
- size: sizeHeight.value,
- vertical: "",
- always: _ctx.always
- }, null, 8, ["move", "ratio", "size", "always"])
- ], 64);
- };
- }
- });
- var Bar = _export_sfc(_sfc_main297, [["__file", "bar.vue"]]);
- // node_modules/element-plus/es/components/scrollbar/src/scrollbar.mjs
- var scrollbarProps = buildProps({
- distance: {
- type: Number,
- default: 0
- },
- height: {
- type: [String, Number],
- default: ""
- },
- maxHeight: {
- type: [String, Number],
- default: ""
- },
- native: Boolean,
- wrapStyle: {
- type: definePropType([String, Object, Array]),
- default: ""
- },
- wrapClass: {
- type: [String, Array],
- default: ""
- },
- viewClass: {
- type: [String, Array],
- default: ""
- },
- viewStyle: {
- type: [String, Array, Object],
- default: ""
- },
- noresize: Boolean,
- tag: {
- type: String,
- default: "div"
- },
- always: Boolean,
- minSize: {
- type: Number,
- default: 20
- },
- tabindex: {
- type: [String, Number],
- default: void 0
- },
- id: String,
- role: String,
- ...useAriaProps(["ariaLabel", "ariaOrientation"])
- });
- var scrollbarEmits = {
- "end-reached": (direction2) => ["left", "right", "top", "bottom"].includes(direction2),
- scroll: ({
- scrollTop,
- scrollLeft
- }) => [scrollTop, scrollLeft].every(isNumber2)
- };
- // node_modules/element-plus/es/components/scrollbar/src/scrollbar2.mjs
- var COMPONENT_NAME4 = "ElScrollbar";
- var __default__5 = defineComponent({
- name: COMPONENT_NAME4
- });
- var _sfc_main298 = defineComponent({
- ...__default__5,
- props: scrollbarProps,
- emits: scrollbarEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("scrollbar");
- let stopResizeObserver = void 0;
- let stopWrapResizeObserver = void 0;
- let stopResizeListener = void 0;
- let wrapScrollTop = 0;
- let wrapScrollLeft = 0;
- let direction2 = "";
- const distanceScrollState = {
- bottom: false,
- top: false,
- right: false,
- left: false
- };
- const scrollbarRef = ref();
- const wrapRef = ref();
- const resizeRef = ref();
- const barRef = ref();
- const wrapStyle = computed(() => {
- const style = {};
- if (props2.height)
- style.height = addUnit(props2.height);
- if (props2.maxHeight)
- style.maxHeight = addUnit(props2.maxHeight);
- return [props2.wrapStyle, style];
- });
- const wrapKls = computed(() => {
- return [
- props2.wrapClass,
- ns.e("wrap"),
- { [ns.em("wrap", "hidden-default")]: !props2.native }
- ];
- });
- const resizeKls = computed(() => {
- return [ns.e("view"), props2.viewClass];
- });
- const shouldSkipDirection = (direction22) => {
- var _a2;
- return (_a2 = distanceScrollState[direction22]) != null ? _a2 : false;
- };
- const DIRECTION_PAIRS = {
- top: "bottom",
- bottom: "top",
- left: "right",
- right: "left"
- };
- const updateTriggerStatus = (arrivedStates) => {
- const oppositeDirection = DIRECTION_PAIRS[direction2];
- if (!oppositeDirection)
- return;
- const arrived = arrivedStates[direction2];
- const oppositeArrived = arrivedStates[oppositeDirection];
- if (arrived && !distanceScrollState[direction2]) {
- distanceScrollState[direction2] = true;
- }
- if (!oppositeArrived && distanceScrollState[oppositeDirection]) {
- distanceScrollState[oppositeDirection] = false;
- }
- };
- const handleScroll2 = () => {
- var _a2;
- if (wrapRef.value) {
- (_a2 = barRef.value) == null ? void 0 : _a2.handleScroll(wrapRef.value);
- const prevTop = wrapScrollTop;
- const prevLeft = wrapScrollLeft;
- wrapScrollTop = wrapRef.value.scrollTop;
- wrapScrollLeft = wrapRef.value.scrollLeft;
- const arrivedStates = {
- bottom: wrapScrollTop + wrapRef.value.clientHeight >= wrapRef.value.scrollHeight - props2.distance,
- top: wrapScrollTop <= props2.distance && prevTop !== 0,
- right: wrapScrollLeft + wrapRef.value.clientWidth >= wrapRef.value.scrollWidth - props2.distance && prevLeft !== wrapScrollLeft,
- left: wrapScrollLeft <= props2.distance && prevLeft !== 0
- };
- emit("scroll", {
- scrollTop: wrapScrollTop,
- scrollLeft: wrapScrollLeft
- });
- if (prevTop !== wrapScrollTop) {
- direction2 = wrapScrollTop > prevTop ? "bottom" : "top";
- }
- if (prevLeft !== wrapScrollLeft) {
- direction2 = wrapScrollLeft > prevLeft ? "right" : "left";
- }
- if (props2.distance > 0) {
- if (shouldSkipDirection(direction2)) {
- return;
- }
- updateTriggerStatus(arrivedStates);
- }
- if (arrivedStates[direction2])
- emit("end-reached", direction2);
- }
- };
- function scrollTo(arg1, arg2) {
- if (isObject(arg1)) {
- wrapRef.value.scrollTo(arg1);
- } else if (isNumber2(arg1) && isNumber2(arg2)) {
- wrapRef.value.scrollTo(arg1, arg2);
- }
- }
- const setScrollTop = (value) => {
- if (!isNumber2(value)) {
- return;
- }
- wrapRef.value.scrollTop = value;
- };
- const setScrollLeft = (value) => {
- if (!isNumber2(value)) {
- return;
- }
- wrapRef.value.scrollLeft = value;
- };
- const update2 = () => {
- var _a2;
- (_a2 = barRef.value) == null ? void 0 : _a2.update();
- distanceScrollState[direction2] = false;
- };
- watch(() => props2.noresize, (noresize) => {
- if (noresize) {
- stopResizeObserver == null ? void 0 : stopResizeObserver();
- stopWrapResizeObserver == null ? void 0 : stopWrapResizeObserver();
- stopResizeListener == null ? void 0 : stopResizeListener();
- } else {
- ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update2));
- ({ stop: stopWrapResizeObserver } = useResizeObserver(wrapRef, update2));
- stopResizeListener = useEventListener("resize", update2);
- }
- }, { immediate: true });
- watch(() => [props2.maxHeight, props2.height], () => {
- if (!props2.native)
- nextTick(() => {
- var _a2;
- update2();
- if (wrapRef.value) {
- (_a2 = barRef.value) == null ? void 0 : _a2.handleScroll(wrapRef.value);
- }
- });
- });
- provide(scrollbarContextKey, reactive({
- scrollbarElement: scrollbarRef,
- wrapElement: wrapRef
- }));
- onActivated(() => {
- if (wrapRef.value) {
- wrapRef.value.scrollTop = wrapScrollTop;
- wrapRef.value.scrollLeft = wrapScrollLeft;
- }
- });
- onMounted(() => {
- if (!props2.native)
- nextTick(() => {
- update2();
- });
- });
- onUpdated(() => update2());
- expose({
- wrapRef,
- update: update2,
- scrollTo,
- setScrollTop,
- setScrollLeft,
- handleScroll: handleScroll2
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "scrollbarRef",
- ref: scrollbarRef,
- class: normalizeClass(unref(ns).b())
- }, [
- createBaseVNode("div", {
- ref_key: "wrapRef",
- ref: wrapRef,
- class: normalizeClass(unref(wrapKls)),
- style: normalizeStyle(unref(wrapStyle)),
- tabindex: _ctx.tabindex,
- onScroll: handleScroll2
- }, [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
- id: _ctx.id,
- ref_key: "resizeRef",
- ref: resizeRef,
- class: normalizeClass(unref(resizeKls)),
- style: normalizeStyle(_ctx.viewStyle),
- role: _ctx.role,
- "aria-label": _ctx.ariaLabel,
- "aria-orientation": _ctx.ariaOrientation
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
- ], 46, ["tabindex"]),
- !_ctx.native ? (openBlock(), createBlock(Bar, {
- key: 0,
- ref_key: "barRef",
- ref: barRef,
- always: _ctx.always,
- "min-size": _ctx.minSize
- }, null, 8, ["always", "min-size"])) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var Scrollbar = _export_sfc(_sfc_main298, [["__file", "scrollbar.vue"]]);
- // node_modules/element-plus/es/components/scrollbar/index.mjs
- var ElScrollbar = withInstall(Scrollbar);
- // node_modules/element-plus/es/components/popper/src/constants.mjs
- var POPPER_INJECTION_KEY = Symbol("popper");
- var POPPER_CONTENT_INJECTION_KEY = Symbol("popperContent");
- // node_modules/element-plus/es/components/popper/src/popper.mjs
- var Effect = {
- LIGHT: "light",
- DARK: "dark"
- };
- var roleTypes = [
- "dialog",
- "grid",
- "group",
- "listbox",
- "menu",
- "navigation",
- "tooltip",
- "tree"
- ];
- var popperProps = buildProps({
- role: {
- type: String,
- values: roleTypes,
- default: "tooltip"
- }
- });
- var usePopperProps = popperProps;
- // node_modules/element-plus/es/components/popper/src/popper2.mjs
- var __default__6 = defineComponent({
- name: "ElPopper",
- inheritAttrs: false
- });
- var _sfc_main299 = defineComponent({
- ...__default__6,
- props: popperProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const triggerRef2 = ref();
- const popperInstanceRef = ref();
- const contentRef = ref();
- const referenceRef = ref();
- const role = computed(() => props2.role);
- const popperProvides = {
- triggerRef: triggerRef2,
- popperInstanceRef,
- contentRef,
- referenceRef,
- role
- };
- expose(popperProvides);
- provide(POPPER_INJECTION_KEY, popperProvides);
- return (_ctx, _cache) => {
- return renderSlot(_ctx.$slots, "default");
- };
- }
- });
- var Popper = _export_sfc(_sfc_main299, [["__file", "popper.vue"]]);
- // node_modules/element-plus/es/components/popper/src/arrow2.mjs
- var __default__7 = defineComponent({
- name: "ElPopperArrow",
- inheritAttrs: false
- });
- var _sfc_main300 = defineComponent({
- ...__default__7,
- setup(__props, { expose }) {
- const ns = useNamespace("popper");
- const { arrowRef, arrowStyle } = inject(POPPER_CONTENT_INJECTION_KEY, void 0);
- onBeforeUnmount(() => {
- arrowRef.value = void 0;
- });
- expose({
- arrowRef
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- ref_key: "arrowRef",
- ref: arrowRef,
- class: normalizeClass(unref(ns).e("arrow")),
- style: normalizeStyle(unref(arrowStyle)),
- "data-popper-arrow": ""
- }, null, 6);
- };
- }
- });
- var ElPopperArrow = _export_sfc(_sfc_main300, [["__file", "arrow.vue"]]);
- // node_modules/element-plus/es/components/popper/src/trigger.mjs
- var popperTriggerProps = buildProps({
- virtualRef: {
- type: definePropType(Object)
- },
- virtualTriggering: Boolean,
- onMouseenter: {
- type: definePropType(Function)
- },
- onMouseleave: {
- type: definePropType(Function)
- },
- onClick: {
- type: definePropType(Function)
- },
- onKeydown: {
- type: definePropType(Function)
- },
- onFocus: {
- type: definePropType(Function)
- },
- onBlur: {
- type: definePropType(Function)
- },
- onContextmenu: {
- type: definePropType(Function)
- },
- id: String,
- open: Boolean
- });
- var usePopperTriggerProps = popperTriggerProps;
- // node_modules/element-plus/es/hooks/use-forward-ref/index.mjs
- var FORWARD_REF_INJECTION_KEY = Symbol("elForwardRef");
- var useForwardRef = (forwardRef) => {
- const setForwardRef = (el) => {
- forwardRef.value = el;
- };
- provide(FORWARD_REF_INJECTION_KEY, {
- setForwardRef
- });
- };
- var useForwardRefDirective = (setForwardRef) => {
- return {
- mounted(el) {
- setForwardRef(el);
- },
- updated(el) {
- setForwardRef(el);
- },
- unmounted() {
- setForwardRef(null);
- }
- };
- };
- // node_modules/element-plus/es/components/slot/src/only-child.mjs
- var NAME = "ElOnlyChild";
- var OnlyChild = defineComponent({
- name: NAME,
- setup(_2, {
- slots,
- attrs
- }) {
- var _a2;
- const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY);
- const forwardRefDirective = useForwardRefDirective((_a2 = forwardRefInjection == null ? void 0 : forwardRefInjection.setForwardRef) != null ? _a2 : NOOP);
- return () => {
- var _a22;
- const defaultSlot = (_a22 = slots.default) == null ? void 0 : _a22.call(slots, attrs);
- if (!defaultSlot)
- return null;
- if (defaultSlot.length > 1) {
- return null;
- }
- const firstLegitNode = findFirstLegitChild(defaultSlot);
- if (!firstLegitNode) {
- return null;
- }
- return withDirectives(cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
- };
- }
- });
- function findFirstLegitChild(node) {
- if (!node)
- return null;
- const children = node;
- for (const child of children) {
- if (isObject(child)) {
- switch (child.type) {
- case Comment:
- continue;
- case Text:
- case "svg":
- return wrapTextContent(child);
- case Fragment:
- return findFirstLegitChild(child.children);
- default:
- return child;
- }
- }
- return wrapTextContent(child);
- }
- return null;
- }
- function wrapTextContent(s2) {
- const ns = useNamespace("only-child");
- return createVNode("span", {
- "class": ns.e("content")
- }, [s2]);
- }
- // node_modules/element-plus/es/components/popper/src/trigger2.mjs
- var __default__8 = defineComponent({
- name: "ElPopperTrigger",
- inheritAttrs: false
- });
- var _sfc_main301 = defineComponent({
- ...__default__8,
- props: popperTriggerProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const { role, triggerRef: triggerRef2 } = inject(POPPER_INJECTION_KEY, void 0);
- useForwardRef(triggerRef2);
- const ariaControls = computed(() => {
- return ariaHaspopup.value ? props2.id : void 0;
- });
- const ariaDescribedby = computed(() => {
- if (role && role.value === "tooltip") {
- return props2.open && props2.id ? props2.id : void 0;
- }
- return void 0;
- });
- const ariaHaspopup = computed(() => {
- if (role && role.value !== "tooltip") {
- return role.value;
- }
- return void 0;
- });
- const ariaExpanded = computed(() => {
- return ariaHaspopup.value ? `${props2.open}` : void 0;
- });
- let virtualTriggerAriaStopWatch = void 0;
- const TRIGGER_ELE_EVENTS = [
- "onMouseenter",
- "onMouseleave",
- "onClick",
- "onKeydown",
- "onFocus",
- "onBlur",
- "onContextmenu"
- ];
- onMounted(() => {
- watch(() => props2.virtualRef, (virtualEl) => {
- if (virtualEl) {
- triggerRef2.value = unrefElement(virtualEl);
- }
- }, {
- immediate: true
- });
- watch(triggerRef2, (el, prevEl) => {
- virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
- virtualTriggerAriaStopWatch = void 0;
- if (isElement2(el)) {
- TRIGGER_ELE_EVENTS.forEach((eventName) => {
- var _a2;
- const handler = props2[eventName];
- if (handler) {
- el.addEventListener(eventName.slice(2).toLowerCase(), handler);
- (_a2 = prevEl == null ? void 0 : prevEl.removeEventListener) == null ? void 0 : _a2.call(prevEl, eventName.slice(2).toLowerCase(), handler);
- }
- });
- if (isFocusable(el)) {
- virtualTriggerAriaStopWatch = watch([ariaControls, ariaDescribedby, ariaHaspopup, ariaExpanded], (watches) => {
- [
- "aria-controls",
- "aria-describedby",
- "aria-haspopup",
- "aria-expanded"
- ].forEach((key, idx) => {
- isNil_default(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
- });
- }, { immediate: true });
- }
- }
- if (isElement2(prevEl) && isFocusable(prevEl)) {
- [
- "aria-controls",
- "aria-describedby",
- "aria-haspopup",
- "aria-expanded"
- ].forEach((key) => prevEl.removeAttribute(key));
- }
- }, {
- immediate: true
- });
- });
- onBeforeUnmount(() => {
- virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
- virtualTriggerAriaStopWatch = void 0;
- if (triggerRef2.value && isElement2(triggerRef2.value)) {
- const el = triggerRef2.value;
- TRIGGER_ELE_EVENTS.forEach((eventName) => {
- const handler = props2[eventName];
- if (handler) {
- el.removeEventListener(eventName.slice(2).toLowerCase(), handler);
- }
- });
- triggerRef2.value = void 0;
- }
- });
- expose({
- triggerRef: triggerRef2
- });
- return (_ctx, _cache) => {
- return !_ctx.virtualTriggering ? (openBlock(), createBlock(unref(OnlyChild), mergeProps({ key: 0 }, _ctx.$attrs, {
- "aria-controls": unref(ariaControls),
- "aria-describedby": unref(ariaDescribedby),
- "aria-expanded": unref(ariaExpanded),
- "aria-haspopup": unref(ariaHaspopup)
- }), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])) : createCommentVNode("v-if", true);
- };
- }
- });
- var ElPopperTrigger = _export_sfc(_sfc_main301, [["__file", "trigger.vue"]]);
- // node_modules/element-plus/es/components/focus-trap/src/tokens.mjs
- var FOCUS_AFTER_TRAPPED = "focus-trap.focus-after-trapped";
- var FOCUS_AFTER_RELEASED = "focus-trap.focus-after-released";
- var FOCUSOUT_PREVENTED = "focus-trap.focusout-prevented";
- var FOCUS_AFTER_TRAPPED_OPTS = {
- cancelable: true,
- bubbles: false
- };
- var FOCUSOUT_PREVENTED_OPTS = {
- cancelable: true,
- bubbles: false
- };
- var ON_TRAP_FOCUS_EVT = "focusAfterTrapped";
- var ON_RELEASE_FOCUS_EVT = "focusAfterReleased";
- var FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
- // node_modules/element-plus/es/components/focus-trap/src/utils.mjs
- var focusReason = ref();
- var lastUserFocusTimestamp = ref(0);
- var lastAutomatedFocusTimestamp = ref(0);
- var focusReasonUserCount = 0;
- var obtainAllFocusableElements2 = (element) => {
- const nodes = [];
- const walker = document.createTreeWalker(element, NodeFilter.SHOW_ELEMENT, {
- acceptNode: (node) => {
- const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
- if (node.disabled || node.hidden || isHiddenInput)
- return NodeFilter.FILTER_SKIP;
- return node.tabIndex >= 0 || node === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
- }
- });
- while (walker.nextNode())
- nodes.push(walker.currentNode);
- return nodes;
- };
- var getVisibleElement = (elements, container) => {
- for (const element of elements) {
- if (!isHidden(element, container))
- return element;
- }
- };
- var isHidden = (element, container) => {
- if (getComputedStyle(element).visibility === "hidden")
- return true;
- while (element) {
- if (container && element === container)
- return false;
- if (getComputedStyle(element).display === "none")
- return true;
- element = element.parentElement;
- }
- return false;
- };
- var getEdges = (container) => {
- const focusable = obtainAllFocusableElements2(container);
- const first = getVisibleElement(focusable, container);
- const last2 = getVisibleElement(focusable.reverse(), container);
- return [first, last2];
- };
- var isSelectable = (element) => {
- return element instanceof HTMLInputElement && "select" in element;
- };
- var tryFocus = (element, shouldSelect) => {
- if (element && element.focus) {
- const prevFocusedElement = document.activeElement;
- let cleanup = false;
- if (isElement2(element) && !isFocusable(element) && !element.getAttribute("tabindex")) {
- element.setAttribute("tabindex", "-1");
- cleanup = true;
- }
- element.focus({ preventScroll: true });
- lastAutomatedFocusTimestamp.value = window.performance.now();
- if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) {
- element.select();
- }
- if (isElement2(element) && cleanup) {
- element.removeAttribute("tabindex");
- }
- }
- };
- function removeFromStack(list, item) {
- const copy = [...list];
- const idx = list.indexOf(item);
- if (idx !== -1) {
- copy.splice(idx, 1);
- }
- return copy;
- }
- var createFocusableStack = () => {
- let stack = [];
- const push = (layer) => {
- const currentLayer = stack[0];
- if (currentLayer && layer !== currentLayer) {
- currentLayer.pause();
- }
- stack = removeFromStack(stack, layer);
- stack.unshift(layer);
- };
- const remove2 = (layer) => {
- var _a2, _b;
- stack = removeFromStack(stack, layer);
- (_b = (_a2 = stack[0]) == null ? void 0 : _a2.resume) == null ? void 0 : _b.call(_a2);
- };
- return {
- push,
- remove: remove2
- };
- };
- var focusFirstDescendant = (elements, shouldSelect = false) => {
- const prevFocusedElement = document.activeElement;
- for (const element of elements) {
- tryFocus(element, shouldSelect);
- if (document.activeElement !== prevFocusedElement)
- return;
- }
- };
- var focusableStack = createFocusableStack();
- var isFocusCausedByUserEvent = () => {
- return lastUserFocusTimestamp.value > lastAutomatedFocusTimestamp.value;
- };
- var notifyFocusReasonPointer = () => {
- focusReason.value = "pointer";
- lastUserFocusTimestamp.value = window.performance.now();
- };
- var notifyFocusReasonKeydown = () => {
- focusReason.value = "keyboard";
- lastUserFocusTimestamp.value = window.performance.now();
- };
- var useFocusReason = () => {
- onMounted(() => {
- if (focusReasonUserCount === 0) {
- document.addEventListener("mousedown", notifyFocusReasonPointer);
- document.addEventListener("touchstart", notifyFocusReasonPointer);
- document.addEventListener("keydown", notifyFocusReasonKeydown);
- }
- focusReasonUserCount++;
- });
- onBeforeUnmount(() => {
- focusReasonUserCount--;
- if (focusReasonUserCount <= 0) {
- document.removeEventListener("mousedown", notifyFocusReasonPointer);
- document.removeEventListener("touchstart", notifyFocusReasonPointer);
- document.removeEventListener("keydown", notifyFocusReasonKeydown);
- }
- });
- return {
- focusReason,
- lastUserFocusTimestamp,
- lastAutomatedFocusTimestamp
- };
- };
- var createFocusOutPreventedEvent = (detail) => {
- return new CustomEvent(FOCUSOUT_PREVENTED, {
- ...FOCUSOUT_PREVENTED_OPTS,
- detail
- });
- };
- // node_modules/element-plus/es/constants/aria.mjs
- var EVENT_CODE = {
- tab: "Tab",
- enter: "Enter",
- space: "Space",
- left: "ArrowLeft",
- up: "ArrowUp",
- right: "ArrowRight",
- down: "ArrowDown",
- esc: "Escape",
- delete: "Delete",
- backspace: "Backspace",
- numpadEnter: "NumpadEnter",
- pageUp: "PageUp",
- pageDown: "PageDown",
- home: "Home",
- end: "End"
- };
- // node_modules/element-plus/es/hooks/use-escape-keydown/index.mjs
- var registeredEscapeHandlers = [];
- var cachedHandler = (event) => {
- if (event.code === EVENT_CODE.esc) {
- registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
- }
- };
- var useEscapeKeydown = (handler) => {
- onMounted(() => {
- if (registeredEscapeHandlers.length === 0) {
- document.addEventListener("keydown", cachedHandler);
- }
- if (isClient)
- registeredEscapeHandlers.push(handler);
- });
- onBeforeUnmount(() => {
- registeredEscapeHandlers = registeredEscapeHandlers.filter((registeredHandler) => registeredHandler !== handler);
- if (registeredEscapeHandlers.length === 0) {
- if (isClient)
- document.removeEventListener("keydown", cachedHandler);
- }
- });
- };
- // node_modules/element-plus/es/components/focus-trap/src/focus-trap.mjs
- var _sfc_main302 = defineComponent({
- name: "ElFocusTrap",
- inheritAttrs: false,
- props: {
- loop: Boolean,
- trapped: Boolean,
- focusTrapEl: Object,
- focusStartEl: {
- type: [Object, String],
- default: "first"
- }
- },
- emits: [
- ON_TRAP_FOCUS_EVT,
- ON_RELEASE_FOCUS_EVT,
- "focusin",
- "focusout",
- "focusout-prevented",
- "release-requested"
- ],
- setup(props2, { emit }) {
- const forwardRef = ref();
- let lastFocusBeforeTrapped;
- let lastFocusAfterTrapped;
- const { focusReason: focusReason2 } = useFocusReason();
- useEscapeKeydown((event) => {
- if (props2.trapped && !focusLayer.paused) {
- emit("release-requested", event);
- }
- });
- const focusLayer = {
- paused: false,
- pause() {
- this.paused = true;
- },
- resume() {
- this.paused = false;
- }
- };
- const onKeydown = (e) => {
- if (!props2.loop && !props2.trapped)
- return;
- if (focusLayer.paused)
- return;
- const { code, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e;
- const { loop } = props2;
- const isTabbing = code === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey;
- const currentFocusingEl = document.activeElement;
- if (isTabbing && currentFocusingEl) {
- const container = currentTarget;
- const [first, last2] = getEdges(container);
- const isTabbable = first && last2;
- if (!isTabbable) {
- if (currentFocusingEl === container) {
- const focusoutPreventedEvent = createFocusOutPreventedEvent({
- focusReason: focusReason2.value
- });
- emit("focusout-prevented", focusoutPreventedEvent);
- if (!focusoutPreventedEvent.defaultPrevented) {
- e.preventDefault();
- }
- }
- } else {
- if (!shiftKey && currentFocusingEl === last2) {
- const focusoutPreventedEvent = createFocusOutPreventedEvent({
- focusReason: focusReason2.value
- });
- emit("focusout-prevented", focusoutPreventedEvent);
- if (!focusoutPreventedEvent.defaultPrevented) {
- e.preventDefault();
- if (loop)
- tryFocus(first, true);
- }
- } else if (shiftKey && [first, container].includes(currentFocusingEl)) {
- const focusoutPreventedEvent = createFocusOutPreventedEvent({
- focusReason: focusReason2.value
- });
- emit("focusout-prevented", focusoutPreventedEvent);
- if (!focusoutPreventedEvent.defaultPrevented) {
- e.preventDefault();
- if (loop)
- tryFocus(last2, true);
- }
- }
- }
- }
- };
- provide(FOCUS_TRAP_INJECTION_KEY, {
- focusTrapRef: forwardRef,
- onKeydown
- });
- watch(() => props2.focusTrapEl, (focusTrapEl) => {
- if (focusTrapEl) {
- forwardRef.value = focusTrapEl;
- }
- }, { immediate: true });
- watch([forwardRef], ([forwardRef2], [oldForwardRef]) => {
- if (forwardRef2) {
- forwardRef2.addEventListener("keydown", onKeydown);
- forwardRef2.addEventListener("focusin", onFocusIn);
- forwardRef2.addEventListener("focusout", onFocusOut);
- }
- if (oldForwardRef) {
- oldForwardRef.removeEventListener("keydown", onKeydown);
- oldForwardRef.removeEventListener("focusin", onFocusIn);
- oldForwardRef.removeEventListener("focusout", onFocusOut);
- }
- });
- const trapOnFocus = (e) => {
- emit(ON_TRAP_FOCUS_EVT, e);
- };
- const releaseOnFocus = (e) => emit(ON_RELEASE_FOCUS_EVT, e);
- const onFocusIn = (e) => {
- const trapContainer = unref(forwardRef);
- if (!trapContainer)
- return;
- const target2 = e.target;
- const relatedTarget = e.relatedTarget;
- const isFocusedInTrap = target2 && trapContainer.contains(target2);
- if (!props2.trapped) {
- const isPrevFocusedInTrap = relatedTarget && trapContainer.contains(relatedTarget);
- if (!isPrevFocusedInTrap) {
- lastFocusBeforeTrapped = relatedTarget;
- }
- }
- if (isFocusedInTrap)
- emit("focusin", e);
- if (focusLayer.paused)
- return;
- if (props2.trapped) {
- if (isFocusedInTrap) {
- lastFocusAfterTrapped = target2;
- } else {
- tryFocus(lastFocusAfterTrapped, true);
- }
- }
- };
- const onFocusOut = (e) => {
- const trapContainer = unref(forwardRef);
- if (focusLayer.paused || !trapContainer)
- return;
- if (props2.trapped) {
- const relatedTarget = e.relatedTarget;
- if (!isNil_default(relatedTarget) && !trapContainer.contains(relatedTarget)) {
- setTimeout(() => {
- if (!focusLayer.paused && props2.trapped) {
- const focusoutPreventedEvent = createFocusOutPreventedEvent({
- focusReason: focusReason2.value
- });
- emit("focusout-prevented", focusoutPreventedEvent);
- if (!focusoutPreventedEvent.defaultPrevented) {
- tryFocus(lastFocusAfterTrapped, true);
- }
- }
- }, 0);
- }
- } else {
- const target2 = e.target;
- const isFocusedInTrap = target2 && trapContainer.contains(target2);
- if (!isFocusedInTrap)
- emit("focusout", e);
- }
- };
- async function startTrap() {
- await nextTick();
- const trapContainer = unref(forwardRef);
- if (trapContainer) {
- focusableStack.push(focusLayer);
- const prevFocusedElement = trapContainer.contains(document.activeElement) ? lastFocusBeforeTrapped : document.activeElement;
- lastFocusBeforeTrapped = prevFocusedElement;
- const isPrevFocusContained = trapContainer.contains(prevFocusedElement);
- if (!isPrevFocusContained) {
- const focusEvent = new Event(FOCUS_AFTER_TRAPPED, FOCUS_AFTER_TRAPPED_OPTS);
- trapContainer.addEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus);
- trapContainer.dispatchEvent(focusEvent);
- if (!focusEvent.defaultPrevented) {
- nextTick(() => {
- let focusStartEl = props2.focusStartEl;
- if (!isString(focusStartEl)) {
- tryFocus(focusStartEl);
- if (document.activeElement !== focusStartEl) {
- focusStartEl = "first";
- }
- }
- if (focusStartEl === "first") {
- focusFirstDescendant(obtainAllFocusableElements2(trapContainer), true);
- }
- if (document.activeElement === prevFocusedElement || focusStartEl === "container") {
- tryFocus(trapContainer);
- }
- });
- }
- }
- }
- }
- function stopTrap() {
- const trapContainer = unref(forwardRef);
- if (trapContainer) {
- trapContainer.removeEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus);
- const releasedEvent = new CustomEvent(FOCUS_AFTER_RELEASED, {
- ...FOCUS_AFTER_TRAPPED_OPTS,
- detail: {
- focusReason: focusReason2.value
- }
- });
- trapContainer.addEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
- trapContainer.dispatchEvent(releasedEvent);
- if (!releasedEvent.defaultPrevented && (focusReason2.value == "keyboard" || !isFocusCausedByUserEvent() || trapContainer.contains(document.activeElement))) {
- tryFocus(lastFocusBeforeTrapped != null ? lastFocusBeforeTrapped : document.body);
- }
- trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
- focusableStack.remove(focusLayer);
- }
- }
- onMounted(() => {
- if (props2.trapped) {
- startTrap();
- }
- watch(() => props2.trapped, (trapped) => {
- if (trapped) {
- startTrap();
- } else {
- stopTrap();
- }
- });
- });
- onBeforeUnmount(() => {
- if (props2.trapped) {
- stopTrap();
- }
- if (forwardRef.value) {
- forwardRef.value.removeEventListener("keydown", onKeydown);
- forwardRef.value.removeEventListener("focusin", onFocusIn);
- forwardRef.value.removeEventListener("focusout", onFocusOut);
- forwardRef.value = void 0;
- }
- });
- return {
- onKeydown
- };
- }
- });
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
- }
- var ElFocusTrap = _export_sfc(_sfc_main302, [["render", _sfc_render], ["__file", "focus-trap.vue"]]);
- // node_modules/@popperjs/core/dist/index.mjs
- var E = "top";
- var R = "bottom";
- var W = "right";
- var P = "left";
- var me = "auto";
- var G = [E, R, W, P];
- var U = "start";
- var J = "end";
- var Xe = "clippingParents";
- var je = "viewport";
- var K = "popper";
- var Ye = "reference";
- var De = G.reduce(function(t, e) {
- return t.concat([e + "-" + U, e + "-" + J]);
- }, []);
- var Ee = [].concat(G, [me]).reduce(function(t, e) {
- return t.concat([e, e + "-" + U, e + "-" + J]);
- }, []);
- var Ge = "beforeRead";
- var Je = "read";
- var Ke = "afterRead";
- var Qe = "beforeMain";
- var Ze = "main";
- var et = "afterMain";
- var tt = "beforeWrite";
- var nt = "write";
- var rt = "afterWrite";
- var ot = [Ge, Je, Ke, Qe, Ze, et, tt, nt, rt];
- function C(t) {
- return t ? (t.nodeName || "").toLowerCase() : null;
- }
- function H(t) {
- if (t == null) return window;
- if (t.toString() !== "[object Window]") {
- var e = t.ownerDocument;
- return e && e.defaultView || window;
- }
- return t;
- }
- function Q(t) {
- var e = H(t).Element;
- return t instanceof e || t instanceof Element;
- }
- function B(t) {
- var e = H(t).HTMLElement;
- return t instanceof e || t instanceof HTMLElement;
- }
- function Pe(t) {
- if (typeof ShadowRoot == "undefined") return false;
- var e = H(t).ShadowRoot;
- return t instanceof e || t instanceof ShadowRoot;
- }
- function Mt(t) {
- var e = t.state;
- Object.keys(e.elements).forEach(function(n) {
- var r = e.styles[n] || {}, o2 = e.attributes[n] || {}, i = e.elements[n];
- !B(i) || !C(i) || (Object.assign(i.style, r), Object.keys(o2).forEach(function(a2) {
- var s2 = o2[a2];
- s2 === false ? i.removeAttribute(a2) : i.setAttribute(a2, s2 === true ? "" : s2);
- }));
- });
- }
- function Rt(t) {
- var e = t.state, n = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
- return Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow), function() {
- Object.keys(e.elements).forEach(function(r) {
- var 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) {
- return f2[c2] = "", f2;
- }, {});
- !B(o2) || !C(o2) || (Object.assign(o2.style, s2), Object.keys(i).forEach(function(f2) {
- o2.removeAttribute(f2);
- }));
- });
- };
- }
- var Ae = { name: "applyStyles", enabled: true, phase: "write", fn: Mt, effect: Rt, requires: ["computeStyles"] };
- function q(t) {
- return t.split("-")[0];
- }
- var X = Math.max;
- var ve = Math.min;
- var Z = Math.round;
- function ee(t, e) {
- e === void 0 && (e = false);
- var n = t.getBoundingClientRect(), r = 1, o2 = 1;
- if (B(t) && e) {
- var i = t.offsetHeight, a2 = t.offsetWidth;
- a2 > 0 && (r = Z(n.width) / a2 || 1), i > 0 && (o2 = Z(n.height) / i || 1);
- }
- 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 };
- }
- function ke(t) {
- var e = ee(t), n = t.offsetWidth, r = t.offsetHeight;
- return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), { x: t.offsetLeft, y: t.offsetTop, width: n, height: r };
- }
- function it(t, e) {
- var n = e.getRootNode && e.getRootNode();
- if (t.contains(e)) return true;
- if (n && Pe(n)) {
- var r = e;
- do {
- if (r && t.isSameNode(r)) return true;
- r = r.parentNode || r.host;
- } while (r);
- }
- return false;
- }
- function N(t) {
- return H(t).getComputedStyle(t);
- }
- function Wt(t) {
- return ["table", "td", "th"].indexOf(C(t)) >= 0;
- }
- function I(t) {
- return ((Q(t) ? t.ownerDocument : t.document) || window.document).documentElement;
- }
- function ge(t) {
- return C(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I(t);
- }
- function at2(t) {
- return !B(t) || N(t).position === "fixed" ? null : t.offsetParent;
- }
- function Bt(t) {
- var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
- if (n && B(t)) {
- var r = N(t);
- if (r.position === "fixed") return null;
- }
- var o2 = ge(t);
- for (Pe(o2) && (o2 = o2.host); B(o2) && ["html", "body"].indexOf(C(o2)) < 0; ) {
- var i = N(o2);
- 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;
- o2 = o2.parentNode;
- }
- return null;
- }
- function se(t) {
- for (var e = H(t), n = at2(t); n && Wt(n) && N(n).position === "static"; ) n = at2(n);
- return n && (C(n) === "html" || C(n) === "body" && N(n).position === "static") ? e : n || Bt(t) || e;
- }
- function Le(t) {
- return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
- }
- function fe(t, e, n) {
- return X(t, ve(e, n));
- }
- function St(t, e, n) {
- var r = fe(t, e, n);
- return r > n ? n : r;
- }
- function st() {
- return { top: 0, right: 0, bottom: 0, left: 0 };
- }
- function ft(t) {
- return Object.assign({}, st(), t);
- }
- function ct(t, e) {
- return e.reduce(function(n, r) {
- return n[r] = t, n;
- }, {});
- }
- var Tt = function(t, e) {
- return t = typeof t == "function" ? t(Object.assign({}, e.rects, { placement: e.placement })) : t, ft(typeof t != "number" ? t : ct(t, G));
- };
- function Ht(t) {
- var e, n = t.state, r = t.name, 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";
- if (!(!i || !a2)) {
- 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;
- n.modifiersData[r] = (e = {}, e[j] = O2, e.centerOffset = O2 - w2, e);
- }
- }
- function Ct(t) {
- var e = t.state, n = t.options, r = n.element, o2 = r === void 0 ? "[data-popper-arrow]" : r;
- o2 != null && (typeof o2 == "string" && (o2 = e.elements.popper.querySelector(o2), !o2) || !it(e.elements.popper, o2) || (e.elements.arrow = o2));
- }
- var pt = { name: "arrow", enabled: true, phase: "main", fn: Ht, effect: Ct, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
- function te(t) {
- return t.split("-")[1];
- }
- var qt = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
- function Vt(t) {
- var e = t.x, n = t.y, r = window, o2 = r.devicePixelRatio || 1;
- return { x: Z(e * o2) / o2 || 0, y: Z(n * o2) / o2 || 0 };
- }
- function ut(t) {
- 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 };
- l2 = g.x, p2 = g.y;
- var x2 = a2.hasOwnProperty("x"), y = a2.hasOwnProperty("y"), $ = P, d2 = E, b2 = window;
- if (c2) {
- var w2 = se(n), O2 = "clientHeight", j = "clientWidth";
- 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) {
- d2 = R;
- var A2 = m2 && w2 === b2 && b2.visualViewport ? b2.visualViewport.height : w2[O2];
- p2 -= A2 - r.height, p2 *= f2 ? 1 : -1;
- }
- if (o2 === P || (o2 === E || o2 === R) && i === J) {
- $ = W;
- var k = m2 && w2 === b2 && b2.visualViewport ? b2.visualViewport.width : w2[j];
- l2 -= k - r.width, l2 *= f2 ? 1 : -1;
- }
- }
- var D2 = Object.assign({ position: s2 }, c2 && qt), S2 = u2 === true ? Vt({ x: l2, y: p2 }) : { x: l2, y: p2 };
- if (l2 = S2.x, p2 = S2.y, f2) {
- var L;
- 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));
- }
- return Object.assign({}, D2, (e = {}, e[d2] = y ? p2 + "px" : "", e[$] = x2 ? l2 + "px" : "", e.transform = "", e));
- }
- function Nt(t) {
- 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" };
- 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 });
- }
- var Me = { name: "computeStyles", enabled: true, phase: "beforeWrite", fn: Nt, data: {} };
- var ye = { passive: true };
- function It(t) {
- 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);
- return i && c2.forEach(function(u2) {
- u2.addEventListener("scroll", n.update, ye);
- }), s2 && f2.addEventListener("resize", n.update, ye), function() {
- i && c2.forEach(function(u2) {
- u2.removeEventListener("scroll", n.update, ye);
- }), s2 && f2.removeEventListener("resize", n.update, ye);
- };
- }
- var Re = { name: "eventListeners", enabled: true, phase: "write", fn: function() {
- }, effect: It, data: {} };
- var _t = { left: "right", right: "left", bottom: "top", top: "bottom" };
- function be(t) {
- return t.replace(/left|right|bottom|top/g, function(e) {
- return _t[e];
- });
- }
- var zt = { start: "end", end: "start" };
- function lt2(t) {
- return t.replace(/start|end/g, function(e) {
- return zt[e];
- });
- }
- function We(t) {
- var e = H(t), n = e.pageXOffset, r = e.pageYOffset;
- return { scrollLeft: n, scrollTop: r };
- }
- function Be(t) {
- return ee(I(t)).left + We(t).scrollLeft;
- }
- function Ft(t) {
- var e = H(t), n = I(t), r = e.visualViewport, o2 = n.clientWidth, i = n.clientHeight, a2 = 0, s2 = 0;
- 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 };
- }
- function Ut(t) {
- 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;
- return N(o2 || n).direction === "rtl" && (s2 += X(n.clientWidth, o2 ? o2.clientWidth : 0) - i), { width: i, height: a2, x: s2, y: f2 };
- }
- function Se(t) {
- var e = N(t), n = e.overflow, r = e.overflowX, o2 = e.overflowY;
- return /auto|scroll|overlay|hidden/.test(n + o2 + r);
- }
- function dt(t) {
- return ["html", "body", "#document"].indexOf(C(t)) >= 0 ? t.ownerDocument.body : B(t) && Se(t) ? t : dt(ge(t));
- }
- function ce(t, e) {
- var n;
- e === void 0 && (e = []);
- var r = dt(t), 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);
- return o2 ? s2 : s2.concat(ce(ge(a2)));
- }
- function Te(t) {
- return Object.assign({}, t, { left: t.x, top: t.y, right: t.x + t.width, bottom: t.y + t.height });
- }
- function Xt(t) {
- var e = ee(t);
- return e.top = e.top + t.clientTop, e.left = e.left + t.clientLeft, e.bottom = e.top + t.clientHeight, e.right = e.left + t.clientWidth, e.width = t.clientWidth, e.height = t.clientHeight, e.x = e.left, e.y = e.top, e;
- }
- function ht(t, e) {
- return e === je ? Te(Ft(t)) : Q(e) ? Xt(e) : Te(Ut(I(t)));
- }
- function Yt(t) {
- var e = ce(ge(t)), n = ["absolute", "fixed"].indexOf(N(t).position) >= 0, r = n && B(t) ? se(t) : t;
- return Q(r) ? e.filter(function(o2) {
- return Q(o2) && it(o2, r) && C(o2) !== "body";
- }) : [];
- }
- function Gt(t, e, n) {
- var r = e === "clippingParents" ? Yt(t) : [].concat(e), o2 = [].concat(r, [n]), i = o2[0], a2 = o2.reduce(function(s2, f2) {
- var c2 = ht(t, f2);
- 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;
- }, ht(t, i));
- return a2.width = a2.right - a2.left, a2.height = a2.bottom - a2.top, a2.x = a2.left, a2.y = a2.top, a2;
- }
- function mt(t) {
- 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;
- switch (o2) {
- case E:
- f2 = { x: a2, y: e.y - n.height };
- break;
- case R:
- f2 = { x: a2, y: e.y + e.height };
- break;
- case W:
- f2 = { x: e.x + e.width, y: s2 };
- break;
- case P:
- f2 = { x: e.x - n.width, y: s2 };
- break;
- default:
- f2 = { x: e.x, y: e.y };
- }
- var c2 = o2 ? Le(o2) : null;
- if (c2 != null) {
- var u2 = c2 === "y" ? "height" : "width";
- switch (i) {
- case U:
- f2[c2] = f2[c2] - (e[u2] / 2 - n[u2] / 2);
- break;
- case J:
- f2[c2] = f2[c2] + (e[u2] / 2 - n[u2] / 2);
- break;
- }
- }
- return f2;
- }
- function ne(t, e) {
- e === void 0 && (e = {});
- 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;
- if (u2 === K && A2) {
- var k = A2[o2];
- Object.keys(j).forEach(function(D2) {
- var S2 = [W, R].indexOf(D2) >= 0 ? 1 : -1, L = [E, R].indexOf(D2) >= 0 ? "y" : "x";
- j[D2] += k[L] * S2;
- });
- }
- return j;
- }
- function Jt(t, e) {
- e === void 0 && (e = {});
- 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) {
- return te(h3) === u2;
- }) : G, v2 = m2.filter(function(h3) {
- return c2.indexOf(h3) >= 0;
- });
- v2.length === 0 && (v2 = m2);
- var l2 = v2.reduce(function(h3, p2) {
- return h3[p2] = ne(t, { placement: p2, boundary: o2, rootBoundary: i, padding: a2 })[q(p2)], h3;
- }, {});
- return Object.keys(l2).sort(function(h3, p2) {
- return l2[h3] - l2[p2];
- });
- }
- function Kt(t) {
- if (q(t) === me) return [];
- var e = be(t);
- return [lt2(t), e, lt2(e)];
- }
- function Qt(t) {
- var e = t.state, n = t.options, r = t.name;
- if (!e.modifiersData[r]._skip) {
- 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) {
- return z.concat(q(V) === me ? Jt(e, { placement: V, boundary: u2, rootBoundary: m2, padding: c2, flipVariations: h3, allowedAutoPlacements: p2 }) : V);
- }, []), b2 = e.rects.reference, w2 = e.rects.popper, O2 = /* @__PURE__ */ new Map(), j = true, A2 = d2[0], k = 0; k < d2.length; k++) {
- 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;
- b2[oe] > w2[oe] && (T2 = be(T2));
- var pe = be(T2), _2 = [];
- if (i && _2.push(M2[S2] <= 0), s2 && _2.push(M2[T2] <= 0, M2[pe] <= 0), _2.every(function(z) {
- return z;
- })) {
- A2 = D2, j = false;
- break;
- }
- O2.set(D2, _2);
- }
- if (j) for (var ue = h3 ? 3 : 1, xe = function(z) {
- var V = d2.find(function(de) {
- var ae = O2.get(de);
- if (ae) return ae.slice(0, z).every(function(Y2) {
- return Y2;
- });
- });
- if (V) return A2 = V, "break";
- }, ie = ue; ie > 0; ie--) {
- var le = xe(ie);
- if (le === "break") break;
- }
- e.placement !== A2 && (e.modifiersData[r]._skip = true, e.placement = A2, e.reset = true);
- }
- }
- var vt = { name: "flip", enabled: true, phase: "main", fn: Qt, requiresIfExists: ["offset"], data: { _skip: false } };
- function gt2(t, e, n) {
- return n === void 0 && (n = { x: 0, y: 0 }), { top: t.top - e.height - n.y, right: t.right - e.width + n.x, bottom: t.bottom - e.height + n.y, left: t.left - e.width - n.x };
- }
- function yt(t) {
- return [E, W, R, P].some(function(e) {
- return t[e] >= 0;
- });
- }
- function Zt(t) {
- var e = t.state, n = t.name, r = e.rects.reference, 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);
- 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 });
- }
- var bt = { name: "hide", enabled: true, phase: "main", requiresIfExists: ["preventOverflow"], fn: Zt };
- function en(t, e, n) {
- 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];
- return a2 = a2 || 0, s2 = (s2 || 0) * o2, [P, W].indexOf(r) >= 0 ? { x: s2, y: a2 } : { x: a2, y: s2 };
- }
- function tn(t) {
- 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) {
- return u2[m2] = en(m2, e.rects, i), u2;
- }, {}), s2 = a2[e.placement], f2 = s2.x, c2 = s2.y;
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += f2, e.modifiersData.popperOffsets.y += c2), e.modifiersData[r] = a2;
- }
- var wt = { name: "offset", enabled: true, phase: "main", requires: ["popperOffsets"], fn: tn };
- function nn(t) {
- var e = t.state, n = t.name;
- e.modifiersData[n] = mt({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement });
- }
- var He = { name: "popperOffsets", enabled: true, phase: "read", fn: nn, data: {} };
- function rn(t) {
- return t === "x" ? "y" : "x";
- }
- function on(t) {
- var e = t.state, n = t.options, r = t.name, 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 };
- if (w2) {
- if (i) {
- 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);
- w2[d2] = qe, S2[d2] = qe - T2;
- }
- if (s2) {
- 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);
- w2[b2] = Ue, S2[b2] = Ue - F2;
- }
- e.modifiersData[r] = S2;
- }
- }
- var xt = { name: "preventOverflow", enabled: true, phase: "main", fn: on, requiresIfExists: ["offset"] };
- function an(t) {
- return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop };
- }
- function sn(t) {
- return t === H(t) || !B(t) ? We(t) : an(t);
- }
- function fn(t) {
- var e = t.getBoundingClientRect(), n = Z(e.width) / t.offsetWidth || 1, r = Z(e.height) / t.offsetHeight || 1;
- return n !== 1 || r !== 1;
- }
- function cn(t, e, n) {
- n === void 0 && (n = false);
- 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 };
- 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 };
- }
- function pn(t) {
- var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
- t.forEach(function(i) {
- e.set(i.name, i);
- });
- function o2(i) {
- n.add(i.name);
- var a2 = [].concat(i.requires || [], i.requiresIfExists || []);
- a2.forEach(function(s2) {
- if (!n.has(s2)) {
- var f2 = e.get(s2);
- f2 && o2(f2);
- }
- }), r.push(i);
- }
- return t.forEach(function(i) {
- n.has(i.name) || o2(i);
- }), r;
- }
- function un(t) {
- var e = pn(t);
- return ot.reduce(function(n, r) {
- return n.concat(e.filter(function(o2) {
- return o2.phase === r;
- }));
- }, []);
- }
- function ln(t) {
- var e;
- return function() {
- return e || (e = new Promise(function(n) {
- Promise.resolve().then(function() {
- e = void 0, n(t());
- });
- })), e;
- };
- }
- function dn(t) {
- var e = t.reduce(function(n, r) {
- var o2 = n[r.name];
- 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;
- }, {});
- return Object.keys(e).map(function(n) {
- return e[n];
- });
- }
- var Ot = { placement: "bottom", modifiers: [], strategy: "absolute" };
- function $t() {
- for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
- return !e.some(function(r) {
- return !(r && typeof r.getBoundingClientRect == "function");
- });
- }
- function we(t) {
- t === void 0 && (t = {});
- var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o2 = e.defaultOptions, i = o2 === void 0 ? Ot : o2;
- return function(a2, s2, f2) {
- f2 === void 0 && (f2 = i);
- 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) {
- var g = typeof p2 == "function" ? p2(c2.options) : p2;
- h3(), c2.options = Object.assign({}, i, c2.options, g), c2.scrollParents = { reference: Q(a2) ? ce(a2) : a2.contextElement ? ce(a2.contextElement) : [], popper: ce(s2) };
- var x2 = un(dn([].concat(r, c2.options.modifiers)));
- return c2.orderedModifiers = x2.filter(function(y) {
- return y.enabled;
- }), l2(), v2.update();
- }, forceUpdate: function() {
- if (!m2) {
- var p2 = c2.elements, g = p2.reference, x2 = p2.popper;
- if ($t(g, x2)) {
- 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) {
- return c2.modifiersData[j.name] = Object.assign({}, j.data);
- });
- for (var y = 0; y < c2.orderedModifiers.length; y++) {
- if (c2.reset === true) {
- c2.reset = false, y = -1;
- continue;
- }
- var $ = c2.orderedModifiers[y], d2 = $.fn, b2 = $.options, w2 = b2 === void 0 ? {} : b2, O2 = $.name;
- typeof d2 == "function" && (c2 = d2({ state: c2, options: w2, name: O2, instance: v2 }) || c2);
- }
- }
- }
- }, update: ln(function() {
- return new Promise(function(p2) {
- v2.forceUpdate(), p2(c2);
- });
- }), destroy: function() {
- h3(), m2 = true;
- } };
- if (!$t(a2, s2)) return v2;
- v2.setOptions(f2).then(function(p2) {
- !m2 && f2.onFirstUpdate && f2.onFirstUpdate(p2);
- });
- function l2() {
- c2.orderedModifiers.forEach(function(p2) {
- var g = p2.name, x2 = p2.options, y = x2 === void 0 ? {} : x2, $ = p2.effect;
- if (typeof $ == "function") {
- var d2 = $({ state: c2, name: g, instance: v2, options: y }), b2 = function() {
- };
- u2.push(d2 || b2);
- }
- });
- }
- function h3() {
- u2.forEach(function(p2) {
- return p2();
- }), u2 = [];
- }
- return v2;
- };
- }
- var hn = we();
- var mn = [Re, He, Me, Ae];
- var vn = we({ defaultModifiers: mn });
- var gn = [Re, He, Me, Ae, wt, vt, xt, pt, bt];
- var yn = we({ defaultModifiers: gn });
- // node_modules/element-plus/es/components/popper/src/arrow.mjs
- var popperArrowProps = buildProps({
- arrowOffset: {
- type: Number,
- default: 5
- }
- });
- var usePopperArrowProps = popperArrowProps;
- // node_modules/element-plus/es/components/popper/src/content.mjs
- var POSITIONING_STRATEGIES = ["fixed", "absolute"];
- var popperCoreConfigProps = buildProps({
- boundariesPadding: {
- type: Number,
- default: 0
- },
- fallbackPlacements: {
- type: definePropType(Array),
- default: void 0
- },
- gpuAcceleration: {
- type: Boolean,
- default: true
- },
- offset: {
- type: Number,
- default: 12
- },
- placement: {
- type: String,
- values: Ee,
- default: "bottom"
- },
- popperOptions: {
- type: definePropType(Object),
- default: () => ({})
- },
- strategy: {
- type: String,
- values: POSITIONING_STRATEGIES,
- default: "absolute"
- }
- });
- var popperContentProps = buildProps({
- ...popperCoreConfigProps,
- ...popperArrowProps,
- id: String,
- style: {
- type: definePropType([String, Array, Object])
- },
- className: {
- type: definePropType([String, Array, Object])
- },
- effect: {
- type: definePropType(String),
- default: "dark"
- },
- visible: Boolean,
- enterable: {
- type: Boolean,
- default: true
- },
- pure: Boolean,
- focusOnShow: Boolean,
- trapping: Boolean,
- popperClass: {
- type: definePropType([String, Array, Object])
- },
- popperStyle: {
- type: definePropType([String, Array, Object])
- },
- referenceEl: {
- type: definePropType(Object)
- },
- triggerTargetEl: {
- type: definePropType(Object)
- },
- stopPopperMouseEvent: {
- type: Boolean,
- default: true
- },
- virtualTriggering: Boolean,
- zIndex: Number,
- ...useAriaProps(["ariaLabel"])
- });
- var popperContentEmits = {
- mouseenter: (evt) => evt instanceof MouseEvent,
- mouseleave: (evt) => evt instanceof MouseEvent,
- focus: () => true,
- blur: () => true,
- close: () => true
- };
- var usePopperCoreConfigProps = popperCoreConfigProps;
- var usePopperContentProps = popperContentProps;
- var usePopperContentEmits = popperContentEmits;
- // node_modules/element-plus/es/components/popper/src/composables/use-focus-trap.mjs
- var usePopperContentFocusTrap = (props2, emit) => {
- const trapped = ref(false);
- const focusStartRef = ref();
- const onFocusAfterTrapped = () => {
- emit("focus");
- };
- const onFocusAfterReleased = (event) => {
- var _a2;
- if (((_a2 = event.detail) == null ? void 0 : _a2.focusReason) !== "pointer") {
- focusStartRef.value = "first";
- emit("blur");
- }
- };
- const onFocusInTrap = (event) => {
- if (props2.visible && !trapped.value) {
- if (event.target) {
- focusStartRef.value = event.target;
- }
- trapped.value = true;
- }
- };
- const onFocusoutPrevented = (event) => {
- if (!props2.trapping) {
- if (event.detail.focusReason === "pointer") {
- event.preventDefault();
- }
- trapped.value = false;
- }
- };
- const onReleaseRequested = () => {
- trapped.value = false;
- emit("close");
- };
- return {
- focusStartRef,
- trapped,
- onFocusAfterReleased,
- onFocusAfterTrapped,
- onFocusInTrap,
- onFocusoutPrevented,
- onReleaseRequested
- };
- };
- // node_modules/element-plus/es/components/popper/src/utils.mjs
- var buildPopperOptions = (props2, modifiers = []) => {
- const { placement, strategy, popperOptions } = props2;
- const options = {
- placement,
- strategy,
- ...popperOptions,
- modifiers: [...genModifiers(props2), ...modifiers]
- };
- deriveExtraModifiers(options, popperOptions == null ? void 0 : popperOptions.modifiers);
- return options;
- };
- var unwrapMeasurableEl = ($el) => {
- if (!isClient)
- return;
- return unrefElement($el);
- };
- function genModifiers(options) {
- const { offset: offset3, gpuAcceleration, fallbackPlacements } = options;
- return [
- {
- name: "offset",
- options: {
- offset: [0, offset3 != null ? offset3 : 12]
- }
- },
- {
- name: "preventOverflow",
- options: {
- padding: {
- top: 2,
- bottom: 2,
- left: 5,
- right: 5
- }
- }
- },
- {
- name: "flip",
- options: {
- padding: 5,
- fallbackPlacements
- }
- },
- {
- name: "computeStyles",
- options: {
- gpuAcceleration
- }
- }
- ];
- }
- function deriveExtraModifiers(options, modifiers) {
- if (modifiers) {
- options.modifiers = [...options.modifiers, ...modifiers != null ? modifiers : []];
- }
- }
- // node_modules/element-plus/es/hooks/use-popper/index.mjs
- var usePopper = (referenceElementRef, popperElementRef, opts = {}) => {
- const stateUpdater = {
- name: "updateState",
- enabled: true,
- phase: "write",
- fn: ({ state }) => {
- const derivedState = deriveState(state);
- Object.assign(states.value, derivedState);
- },
- requires: ["computeStyles"]
- };
- const options = computed(() => {
- const { onFirstUpdate, placement, strategy, modifiers } = unref(opts);
- return {
- onFirstUpdate,
- placement: placement || "bottom",
- strategy: strategy || "absolute",
- modifiers: [
- ...modifiers || [],
- stateUpdater,
- { name: "applyStyles", enabled: false }
- ]
- };
- });
- const instanceRef = shallowRef();
- const states = ref({
- styles: {
- popper: {
- position: unref(options).strategy,
- left: "0",
- top: "0"
- },
- arrow: {
- position: "absolute"
- }
- },
- attributes: {}
- });
- const destroy = () => {
- if (!instanceRef.value)
- return;
- instanceRef.value.destroy();
- instanceRef.value = void 0;
- };
- watch(options, (newOptions) => {
- const instance = unref(instanceRef);
- if (instance) {
- instance.setOptions(newOptions);
- }
- }, {
- deep: true
- });
- watch([referenceElementRef, popperElementRef], ([referenceElement, popperElement]) => {
- destroy();
- if (!referenceElement || !popperElement)
- return;
- instanceRef.value = yn(referenceElement, popperElement, unref(options));
- });
- onBeforeUnmount(() => {
- destroy();
- });
- return {
- state: computed(() => {
- var _a2;
- return { ...((_a2 = unref(instanceRef)) == null ? void 0 : _a2.state) || {} };
- }),
- styles: computed(() => unref(states).styles),
- attributes: computed(() => unref(states).attributes),
- update: () => {
- var _a2;
- return (_a2 = unref(instanceRef)) == null ? void 0 : _a2.update();
- },
- forceUpdate: () => {
- var _a2;
- return (_a2 = unref(instanceRef)) == null ? void 0 : _a2.forceUpdate();
- },
- instanceRef: computed(() => unref(instanceRef))
- };
- };
- function deriveState(state) {
- const elements = Object.keys(state.elements);
- const styles = fromPairs_default(elements.map((element) => [element, state.styles[element] || {}]));
- const attributes2 = fromPairs_default(elements.map((element) => [element, state.attributes[element]]));
- return {
- styles,
- attributes: attributes2
- };
- }
- // node_modules/element-plus/es/components/popper/src/composables/use-content.mjs
- var DEFAULT_ARROW_OFFSET = 0;
- var usePopperContent = (props2) => {
- const { popperInstanceRef, contentRef, triggerRef: triggerRef2, role } = inject(POPPER_INJECTION_KEY, void 0);
- const arrowRef = ref();
- const arrowOffset = computed(() => props2.arrowOffset);
- const eventListenerModifier = computed(() => {
- return {
- name: "eventListeners",
- enabled: !!props2.visible
- };
- });
- const arrowModifier = computed(() => {
- var _a2;
- const arrowEl = unref(arrowRef);
- const offset3 = (_a2 = unref(arrowOffset)) != null ? _a2 : DEFAULT_ARROW_OFFSET;
- return {
- name: "arrow",
- enabled: !isUndefined_default(arrowEl),
- options: {
- element: arrowEl,
- padding: offset3
- }
- };
- });
- const options = computed(() => {
- return {
- onFirstUpdate: () => {
- update2();
- },
- ...buildPopperOptions(props2, [
- unref(arrowModifier),
- unref(eventListenerModifier)
- ])
- };
- });
- const computedReference = computed(() => unwrapMeasurableEl(props2.referenceEl) || unref(triggerRef2));
- const { attributes: attributes2, state, styles, update: update2, forceUpdate, instanceRef } = usePopper(computedReference, contentRef, options);
- watch(instanceRef, (instance) => popperInstanceRef.value = instance, {
- flush: "sync"
- });
- onMounted(() => {
- watch(() => {
- var _a2;
- return (_a2 = unref(computedReference)) == null ? void 0 : _a2.getBoundingClientRect();
- }, () => {
- update2();
- });
- });
- return {
- attributes: attributes2,
- arrowRef,
- contentRef,
- instanceRef,
- state,
- styles,
- role,
- forceUpdate,
- update: update2
- };
- };
- // node_modules/element-plus/es/components/popper/src/composables/use-content-dom.mjs
- var usePopperContentDOM = (props2, {
- attributes: attributes2,
- styles,
- role
- }) => {
- const { nextZIndex } = useZIndex();
- const ns = useNamespace("popper");
- const contentAttrs = computed(() => unref(attributes2).popper);
- const contentZIndex = ref(isNumber2(props2.zIndex) ? props2.zIndex : nextZIndex());
- const contentClass = computed(() => [
- ns.b(),
- ns.is("pure", props2.pure),
- ns.is(props2.effect),
- props2.popperClass
- ]);
- const contentStyle = computed(() => {
- return [
- { zIndex: unref(contentZIndex) },
- unref(styles).popper,
- props2.popperStyle || {}
- ];
- });
- const ariaModal = computed(() => role.value === "dialog" ? "false" : void 0);
- const arrowStyle = computed(() => unref(styles).arrow || {});
- const updateZIndex = () => {
- contentZIndex.value = isNumber2(props2.zIndex) ? props2.zIndex : nextZIndex();
- };
- return {
- ariaModal,
- arrowStyle,
- contentAttrs,
- contentClass,
- contentStyle,
- contentZIndex,
- updateZIndex
- };
- };
- // node_modules/element-plus/es/components/popper/src/content2.mjs
- var __default__9 = defineComponent({
- name: "ElPopperContent"
- });
- var _sfc_main303 = defineComponent({
- ...__default__9,
- props: popperContentProps,
- emits: popperContentEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const {
- focusStartRef,
- trapped,
- onFocusAfterReleased,
- onFocusAfterTrapped,
- onFocusInTrap,
- onFocusoutPrevented,
- onReleaseRequested
- } = usePopperContentFocusTrap(props2, emit);
- const { attributes: attributes2, arrowRef, contentRef, styles, instanceRef, role, update: update2 } = usePopperContent(props2);
- const {
- ariaModal,
- arrowStyle,
- contentAttrs,
- contentClass,
- contentStyle,
- updateZIndex
- } = usePopperContentDOM(props2, {
- styles,
- attributes: attributes2,
- role
- });
- const formItemContext = inject(formItemContextKey, void 0);
- provide(POPPER_CONTENT_INJECTION_KEY, {
- arrowStyle,
- arrowRef
- });
- if (formItemContext) {
- provide(formItemContextKey, {
- ...formItemContext,
- addInputId: NOOP,
- removeInputId: NOOP
- });
- }
- let triggerTargetAriaStopWatch = void 0;
- const updatePopper = (shouldUpdateZIndex = true) => {
- update2();
- shouldUpdateZIndex && updateZIndex();
- };
- const togglePopperAlive = () => {
- updatePopper(false);
- if (props2.visible && props2.focusOnShow) {
- trapped.value = true;
- } else if (props2.visible === false) {
- trapped.value = false;
- }
- };
- onMounted(() => {
- watch(() => props2.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
- triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
- triggerTargetAriaStopWatch = void 0;
- const el = unref(triggerTargetEl || contentRef.value);
- const prevEl = unref(prevTriggerTargetEl || contentRef.value);
- if (isElement2(el)) {
- triggerTargetAriaStopWatch = watch([role, () => props2.ariaLabel, ariaModal, () => props2.id], (watches) => {
- ["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
- isNil_default(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
- });
- }, { immediate: true });
- }
- if (prevEl !== el && isElement2(prevEl)) {
- ["role", "aria-label", "aria-modal", "id"].forEach((key) => {
- prevEl.removeAttribute(key);
- });
- }
- }, { immediate: true });
- watch(() => props2.visible, togglePopperAlive, { immediate: true });
- });
- onBeforeUnmount(() => {
- triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
- triggerTargetAriaStopWatch = void 0;
- });
- expose({
- popperContentRef: contentRef,
- popperInstanceRef: instanceRef,
- updatePopper,
- contentStyle
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", mergeProps({
- ref_key: "contentRef",
- ref: contentRef
- }, unref(contentAttrs), {
- style: unref(contentStyle),
- class: unref(contentClass),
- tabindex: "-1",
- onMouseenter: (e) => _ctx.$emit("mouseenter", e),
- onMouseleave: (e) => _ctx.$emit("mouseleave", e)
- }), [
- createVNode(unref(ElFocusTrap), {
- trapped: unref(trapped),
- "trap-on-focus-in": true,
- "focus-trap-el": unref(contentRef),
- "focus-start-el": unref(focusStartRef),
- onFocusAfterTrapped: unref(onFocusAfterTrapped),
- onFocusAfterReleased: unref(onFocusAfterReleased),
- onFocusin: unref(onFocusInTrap),
- onFocusoutPrevented: unref(onFocusoutPrevented),
- onReleaseRequested: unref(onReleaseRequested)
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
- ], 16, ["onMouseenter", "onMouseleave"]);
- };
- }
- });
- var ElPopperContent = _export_sfc(_sfc_main303, [["__file", "content.vue"]]);
- // node_modules/element-plus/es/components/popper/index.mjs
- var ElPopper = withInstall(Popper);
- // node_modules/element-plus/es/components/tooltip/src/constants.mjs
- var TOOLTIP_INJECTION_KEY = Symbol("elTooltip");
- // node_modules/element-plus/es/components/teleport/src/teleport.mjs
- var teleportProps = buildProps({
- to: {
- type: definePropType([String, Object]),
- required: true
- },
- disabled: Boolean
- });
- // node_modules/element-plus/es/components/tooltip/src/content.mjs
- var useTooltipContentProps = buildProps({
- ...useDelayedToggleProps,
- ...popperContentProps,
- appendTo: {
- type: teleportProps.to.type
- },
- content: {
- type: String,
- default: ""
- },
- rawContent: Boolean,
- persistent: Boolean,
- visible: {
- type: definePropType(Boolean),
- default: null
- },
- transition: String,
- teleported: {
- type: Boolean,
- default: true
- },
- disabled: Boolean,
- ...useAriaProps(["ariaLabel"])
- });
- // node_modules/element-plus/es/components/tooltip/src/trigger.mjs
- var useTooltipTriggerProps = buildProps({
- ...popperTriggerProps,
- disabled: Boolean,
- trigger: {
- type: definePropType([String, Array]),
- default: "hover"
- },
- triggerKeys: {
- type: definePropType(Array),
- default: () => [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space]
- }
- });
- // node_modules/element-plus/es/hooks/use-model-toggle/index.mjs
- var _prop = buildProp({
- type: definePropType(Boolean),
- default: null
- });
- var _event = buildProp({
- type: definePropType(Function)
- });
- var createModelToggleComposable = (name) => {
- const updateEventKey = `update:${name}`;
- const updateEventKeyRaw2 = `onUpdate:${name}`;
- const useModelToggleEmits2 = [updateEventKey];
- const useModelToggleProps2 = {
- [name]: _prop,
- [updateEventKeyRaw2]: _event
- };
- const useModelToggle2 = ({
- indicator,
- toggleReason,
- shouldHideWhenRouteChanges,
- shouldProceed,
- onShow,
- onHide
- }) => {
- const instance = getCurrentInstance();
- const { emit } = instance;
- const props2 = instance.props;
- const hasUpdateHandler = computed(() => isFunction(props2[updateEventKeyRaw2]));
- const isModelBindingAbsent = computed(() => props2[name] === null);
- const doShow = (event) => {
- if (indicator.value === true) {
- return;
- }
- indicator.value = true;
- if (toggleReason) {
- toggleReason.value = event;
- }
- if (isFunction(onShow)) {
- onShow(event);
- }
- };
- const doHide = (event) => {
- if (indicator.value === false) {
- return;
- }
- indicator.value = false;
- if (toggleReason) {
- toggleReason.value = event;
- }
- if (isFunction(onHide)) {
- onHide(event);
- }
- };
- const show = (event) => {
- if (props2.disabled === true || isFunction(shouldProceed) && !shouldProceed())
- return;
- const shouldEmit = hasUpdateHandler.value && isClient;
- if (shouldEmit) {
- emit(updateEventKey, true);
- }
- if (isModelBindingAbsent.value || !shouldEmit) {
- doShow(event);
- }
- };
- const hide2 = (event) => {
- if (props2.disabled === true || !isClient)
- return;
- const shouldEmit = hasUpdateHandler.value && isClient;
- if (shouldEmit) {
- emit(updateEventKey, false);
- }
- if (isModelBindingAbsent.value || !shouldEmit) {
- doHide(event);
- }
- };
- const onChange = (val) => {
- if (!isBoolean2(val))
- return;
- if (props2.disabled && val) {
- if (hasUpdateHandler.value) {
- emit(updateEventKey, false);
- }
- } else if (indicator.value !== val) {
- if (val) {
- doShow();
- } else {
- doHide();
- }
- }
- };
- const toggle = () => {
- if (indicator.value) {
- hide2();
- } else {
- show();
- }
- };
- watch(() => props2[name], onChange);
- if (shouldHideWhenRouteChanges && instance.appContext.config.globalProperties.$route !== void 0) {
- watch(() => ({
- ...instance.proxy.$route
- }), () => {
- if (shouldHideWhenRouteChanges.value && indicator.value) {
- hide2();
- }
- });
- }
- onMounted(() => {
- onChange(props2[name]);
- });
- return {
- hide: hide2,
- show,
- toggle,
- hasUpdateHandler
- };
- };
- return {
- useModelToggle: useModelToggle2,
- useModelToggleProps: useModelToggleProps2,
- useModelToggleEmits: useModelToggleEmits2
- };
- };
- var { useModelToggle, useModelToggleProps, useModelToggleEmits } = createModelToggleComposable("modelValue");
- // node_modules/element-plus/es/components/tooltip/src/tooltip.mjs
- var {
- useModelToggleProps: useTooltipModelToggleProps,
- useModelToggleEmits: useTooltipModelToggleEmits,
- useModelToggle: useTooltipModelToggle
- } = createModelToggleComposable("visible");
- var useTooltipProps = buildProps({
- ...popperProps,
- ...useTooltipModelToggleProps,
- ...useTooltipContentProps,
- ...useTooltipTriggerProps,
- ...popperArrowProps,
- showArrow: {
- type: Boolean,
- default: true
- }
- });
- var tooltipEmits = [
- ...useTooltipModelToggleEmits,
- "before-show",
- "before-hide",
- "show",
- "hide",
- "open",
- "close"
- ];
- // node_modules/element-plus/es/components/tooltip/src/utils.mjs
- var isTriggerType = (trigger, type4) => {
- if (isArray(trigger)) {
- return trigger.includes(type4);
- }
- return trigger === type4;
- };
- var whenTrigger = (trigger, type4, handler) => {
- return (e) => {
- isTriggerType(unref(trigger), type4) && handler(e);
- };
- };
- // node_modules/element-plus/es/utils/dom/event.mjs
- var composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
- const handleEvent = (event) => {
- const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
- if (checkForDefaultPrevented === false || !shouldPrevent) {
- return oursHandler == null ? void 0 : oursHandler(event);
- }
- };
- return handleEvent;
- };
- var whenMouse = (handler) => {
- return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
- };
- // node_modules/element-plus/es/components/tooltip/src/trigger2.mjs
- var __default__10 = defineComponent({
- name: "ElTooltipTrigger"
- });
- var _sfc_main304 = defineComponent({
- ...__default__10,
- props: useTooltipTriggerProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const ns = useNamespace("tooltip");
- const { controlled, id, open, onOpen, onClose, onToggle } = inject(TOOLTIP_INJECTION_KEY, void 0);
- const triggerRef2 = ref(null);
- const stopWhenControlledOrDisabled = () => {
- if (unref(controlled) || props2.disabled) {
- return true;
- }
- };
- const trigger = toRef(props2, "trigger");
- const onMouseenter = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onOpen));
- const onMouseleave = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onClose));
- const onClick = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "click", (e) => {
- if (e.button === 0) {
- onToggle(e);
- }
- }));
- const onFocus = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onOpen));
- const onBlur = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onClose));
- const onContextMenu = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "contextmenu", (e) => {
- e.preventDefault();
- onToggle(e);
- }));
- const onKeydown = composeEventHandlers(stopWhenControlledOrDisabled, (e) => {
- const { code } = e;
- if (props2.triggerKeys.includes(code)) {
- e.preventDefault();
- onToggle(e);
- }
- });
- expose({
- triggerRef: triggerRef2
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElPopperTrigger), {
- id: unref(id),
- "virtual-ref": _ctx.virtualRef,
- open: unref(open),
- "virtual-triggering": _ctx.virtualTriggering,
- class: normalizeClass(unref(ns).e("trigger")),
- onBlur: unref(onBlur),
- onClick: unref(onClick),
- onContextmenu: unref(onContextMenu),
- onFocus: unref(onFocus),
- onMouseenter: unref(onMouseenter),
- onMouseleave: unref(onMouseleave),
- onKeydown: unref(onKeydown)
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
- };
- }
- });
- var ElTooltipTrigger = _export_sfc(_sfc_main304, [["__file", "trigger.vue"]]);
- // node_modules/element-plus/es/components/teleport/src/teleport2.mjs
- var _sfc_main305 = defineComponent({
- __name: "teleport",
- props: teleportProps,
- setup(__props) {
- return (_ctx, _cache) => {
- return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport, {
- key: 1,
- to: _ctx.to
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 8, ["to"]));
- };
- }
- });
- var Teleport2 = _export_sfc(_sfc_main305, [["__file", "teleport.vue"]]);
- // node_modules/element-plus/es/components/teleport/index.mjs
- var ElTeleport = withInstall(Teleport2);
- // node_modules/element-plus/es/hooks/use-popper-container/index.mjs
- var usePopperContainerId = () => {
- const namespace = useGetDerivedNamespace();
- const idInjection = useIdInjection();
- const id = computed(() => {
- return `${namespace.value}-popper-container-${idInjection.prefix}`;
- });
- const selector = computed(() => `#${id.value}`);
- return {
- id,
- selector
- };
- };
- var createContainer = (id) => {
- const container = document.createElement("div");
- container.id = id;
- document.body.appendChild(container);
- return container;
- };
- var usePopperContainer = () => {
- const { id, selector } = usePopperContainerId();
- onBeforeMount(() => {
- if (!isClient)
- return;
- if (!document.body.querySelector(selector.value)) {
- createContainer(id.value);
- }
- });
- return {
- id,
- selector
- };
- };
- // node_modules/element-plus/es/components/tooltip/src/content2.mjs
- var __default__11 = defineComponent({
- name: "ElTooltipContent",
- inheritAttrs: false
- });
- var _sfc_main306 = defineComponent({
- ...__default__11,
- props: useTooltipContentProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const { selector } = usePopperContainerId();
- const ns = useNamespace("tooltip");
- const contentRef = ref();
- const popperContentRef = computedEager(() => {
- var _a2;
- return (_a2 = contentRef.value) == null ? void 0 : _a2.popperContentRef;
- });
- let stopHandle;
- const {
- controlled,
- id,
- open,
- trigger,
- onClose,
- onOpen,
- onShow,
- onHide,
- onBeforeShow,
- onBeforeHide
- } = inject(TOOLTIP_INJECTION_KEY, void 0);
- const transitionClass = computed(() => {
- return props2.transition || `${ns.namespace.value}-fade-in-linear`;
- });
- const persistentRef = computed(() => {
- return props2.persistent;
- });
- onBeforeUnmount(() => {
- stopHandle == null ? void 0 : stopHandle();
- });
- const shouldRender = computed(() => {
- return unref(persistentRef) ? true : unref(open);
- });
- const shouldShow = computed(() => {
- return props2.disabled ? false : unref(open);
- });
- const appendTo = computed(() => {
- return props2.appendTo || selector.value;
- });
- const contentStyle = computed(() => {
- var _a2;
- return (_a2 = props2.style) != null ? _a2 : {};
- });
- const ariaHidden = ref(true);
- const onTransitionLeave = () => {
- onHide();
- isFocusInsideContent() && tryFocus(document.body);
- ariaHidden.value = true;
- };
- const stopWhenControlled = () => {
- if (unref(controlled))
- return true;
- };
- const onContentEnter = composeEventHandlers(stopWhenControlled, () => {
- if (props2.enterable && unref(trigger) === "hover") {
- onOpen();
- }
- });
- const onContentLeave = composeEventHandlers(stopWhenControlled, () => {
- if (unref(trigger) === "hover") {
- onClose();
- }
- });
- const onBeforeEnter = () => {
- var _a2, _b;
- (_b = (_a2 = contentRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- onBeforeShow == null ? void 0 : onBeforeShow();
- };
- const onBeforeLeave = () => {
- onBeforeHide == null ? void 0 : onBeforeHide();
- };
- const onAfterShow = () => {
- onShow();
- };
- const onBlur = () => {
- if (!props2.virtualTriggering) {
- onClose();
- }
- };
- const isFocusInsideContent = (event) => {
- var _a2;
- const popperContent = (_a2 = contentRef.value) == null ? void 0 : _a2.popperContentRef;
- const activeElement = (event == null ? void 0 : event.relatedTarget) || document.activeElement;
- return popperContent == null ? void 0 : popperContent.contains(activeElement);
- };
- watch(() => unref(open), (val) => {
- if (!val) {
- stopHandle == null ? void 0 : stopHandle();
- } else {
- ariaHidden.value = false;
- stopHandle = onClickOutside(popperContentRef, () => {
- if (unref(controlled))
- return;
- const $trigger = unref(trigger);
- if ($trigger !== "hover") {
- onClose();
- }
- });
- }
- }, {
- flush: "post"
- });
- watch(() => props2.content, () => {
- var _a2, _b;
- (_b = (_a2 = contentRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- });
- expose({
- contentRef,
- isFocusInsideContent
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTeleport), {
- disabled: !_ctx.teleported,
- to: unref(appendTo)
- }, {
- default: withCtx(() => [
- unref(shouldRender) || !ariaHidden.value ? (openBlock(), createBlock(Transition, {
- key: 0,
- name: unref(transitionClass),
- appear: !unref(persistentRef),
- onAfterLeave: onTransitionLeave,
- onBeforeEnter,
- onAfterEnter: onAfterShow,
- onBeforeLeave,
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createVNode(unref(ElPopperContent), mergeProps({
- id: unref(id),
- ref_key: "contentRef",
- ref: contentRef
- }, _ctx.$attrs, {
- "aria-label": _ctx.ariaLabel,
- "aria-hidden": ariaHidden.value,
- "boundaries-padding": _ctx.boundariesPadding,
- "fallback-placements": _ctx.fallbackPlacements,
- "gpu-acceleration": _ctx.gpuAcceleration,
- offset: _ctx.offset,
- placement: _ctx.placement,
- "popper-options": _ctx.popperOptions,
- "arrow-offset": _ctx.arrowOffset,
- strategy: _ctx.strategy,
- effect: _ctx.effect,
- enterable: _ctx.enterable,
- pure: _ctx.pure,
- "popper-class": _ctx.popperClass,
- "popper-style": [_ctx.popperStyle, unref(contentStyle)],
- "reference-el": _ctx.referenceEl,
- "trigger-target-el": _ctx.triggerTargetEl,
- visible: unref(shouldShow),
- "z-index": _ctx.zIndex,
- onMouseenter: unref(onContentEnter),
- onMouseleave: unref(onContentLeave),
- onBlur,
- onClose: unref(onClose)
- }), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 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", "onMouseenter", "onMouseleave", "onClose"]), [
- [vShow, unref(shouldShow)]
- ])
- ]),
- _: 3
- }, 8, ["name", "appear"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["disabled", "to"]);
- };
- }
- });
- var ElTooltipContent = _export_sfc(_sfc_main306, [["__file", "content.vue"]]);
- // node_modules/element-plus/es/components/tooltip/src/tooltip2.mjs
- var __default__12 = defineComponent({
- name: "ElTooltip"
- });
- var _sfc_main307 = defineComponent({
- ...__default__12,
- props: useTooltipProps,
- emits: tooltipEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- usePopperContainer();
- const ns = useNamespace("tooltip");
- const id = useId();
- const popperRef = ref();
- const contentRef = ref();
- const updatePopper = () => {
- var _a2;
- const popperComponent = unref(popperRef);
- if (popperComponent) {
- (_a2 = popperComponent.popperInstanceRef) == null ? void 0 : _a2.update();
- }
- };
- const open = ref(false);
- const toggleReason = ref();
- const { show, hide: hide2, hasUpdateHandler } = useTooltipModelToggle({
- indicator: open,
- toggleReason
- });
- const { onOpen, onClose } = useDelayedToggle({
- showAfter: toRef(props2, "showAfter"),
- hideAfter: toRef(props2, "hideAfter"),
- autoClose: toRef(props2, "autoClose"),
- open: show,
- close: hide2
- });
- const controlled = computed(() => isBoolean2(props2.visible) && !hasUpdateHandler.value);
- const kls = computed(() => {
- return [ns.b(), props2.popperClass];
- });
- provide(TOOLTIP_INJECTION_KEY, {
- controlled,
- id,
- open: readonly(open),
- trigger: toRef(props2, "trigger"),
- onOpen,
- onClose,
- onToggle: (event) => {
- if (unref(open)) {
- onClose(event);
- } else {
- onOpen(event);
- }
- },
- onShow: () => {
- emit("show", toggleReason.value);
- },
- onHide: () => {
- emit("hide", toggleReason.value);
- },
- onBeforeShow: () => {
- emit("before-show", toggleReason.value);
- },
- onBeforeHide: () => {
- emit("before-hide", toggleReason.value);
- },
- updatePopper
- });
- watch(() => props2.disabled, (disabled) => {
- if (disabled && open.value) {
- open.value = false;
- }
- });
- const isFocusInsideContent = (event) => {
- var _a2;
- return (_a2 = contentRef.value) == null ? void 0 : _a2.isFocusInsideContent(event);
- };
- onDeactivated(() => open.value && hide2());
- expose({
- popperRef,
- contentRef,
- isFocusInsideContent,
- updatePopper,
- onOpen,
- onClose,
- hide: hide2
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElPopper), {
- ref_key: "popperRef",
- ref: popperRef,
- role: _ctx.role
- }, {
- default: withCtx(() => [
- createVNode(ElTooltipTrigger, {
- disabled: _ctx.disabled,
- trigger: _ctx.trigger,
- "trigger-keys": _ctx.triggerKeys,
- "virtual-ref": _ctx.virtualRef,
- "virtual-triggering": _ctx.virtualTriggering
- }, {
- default: withCtx(() => [
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
- createVNode(ElTooltipContent, {
- ref_key: "contentRef",
- ref: contentRef,
- "aria-label": _ctx.ariaLabel,
- "boundaries-padding": _ctx.boundariesPadding,
- content: _ctx.content,
- disabled: _ctx.disabled,
- effect: _ctx.effect,
- enterable: _ctx.enterable,
- "fallback-placements": _ctx.fallbackPlacements,
- "hide-after": _ctx.hideAfter,
- "gpu-acceleration": _ctx.gpuAcceleration,
- offset: _ctx.offset,
- persistent: _ctx.persistent,
- "popper-class": unref(kls),
- "popper-style": _ctx.popperStyle,
- placement: _ctx.placement,
- "popper-options": _ctx.popperOptions,
- "arrow-offset": _ctx.arrowOffset,
- pure: _ctx.pure,
- "raw-content": _ctx.rawContent,
- "reference-el": _ctx.referenceEl,
- "trigger-target-el": _ctx.triggerTargetEl,
- "show-after": _ctx.showAfter,
- strategy: _ctx.strategy,
- teleported: _ctx.teleported,
- transition: _ctx.transition,
- "virtual-triggering": _ctx.virtualTriggering,
- "z-index": _ctx.zIndex,
- "append-to": _ctx.appendTo
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "content", {}, () => [
- _ctx.rawContent ? (openBlock(), createElementBlock("span", {
- key: 0,
- innerHTML: _ctx.content
- }, null, 8, ["innerHTML"])) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.content), 1))
- ]),
- _ctx.showArrow ? (openBlock(), createBlock(unref(ElPopperArrow), { key: 0 })) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "arrow-offset", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
- ]),
- _: 3
- }, 8, ["role"]);
- };
- }
- });
- var Tooltip = _export_sfc(_sfc_main307, [["__file", "tooltip.vue"]]);
- // node_modules/element-plus/es/components/tooltip/index.mjs
- var ElTooltip = withInstall(Tooltip);
- // node_modules/element-plus/es/components/autocomplete/src/autocomplete.mjs
- var autocompleteProps = buildProps({
- ...inputProps,
- valueKey: {
- type: String,
- default: "value"
- },
- modelValue: {
- type: [String, Number],
- default: ""
- },
- debounce: {
- type: Number,
- default: 300
- },
- placement: {
- type: definePropType(String),
- values: [
- "top",
- "top-start",
- "top-end",
- "bottom",
- "bottom-start",
- "bottom-end"
- ],
- default: "bottom-start"
- },
- fetchSuggestions: {
- type: definePropType([Function, Array]),
- default: NOOP
- },
- popperClass: {
- type: String,
- default: ""
- },
- triggerOnFocus: {
- type: Boolean,
- default: true
- },
- selectWhenUnmatched: Boolean,
- hideLoading: Boolean,
- teleported: useTooltipContentProps.teleported,
- appendTo: useTooltipContentProps.appendTo,
- highlightFirstItem: Boolean,
- fitInputWidth: Boolean
- });
- var autocompleteEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isString(value),
- [INPUT_EVENT]: (value) => isString(value),
- [CHANGE_EVENT]: (value) => isString(value),
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent,
- clear: () => true,
- select: (item) => isObject(item)
- };
- // node_modules/element-plus/es/components/autocomplete/src/autocomplete2.mjs
- var COMPONENT_NAME5 = "ElAutocomplete";
- var __default__13 = defineComponent({
- name: COMPONENT_NAME5,
- inheritAttrs: false
- });
- var _sfc_main308 = defineComponent({
- ...__default__13,
- props: autocompleteProps,
- emits: autocompleteEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const passInputProps = computed(() => pick_default(props2, Object.keys(inputProps)));
- const rawAttrs = useAttrs();
- const disabled = useFormDisabled();
- const ns = useNamespace("autocomplete");
- const inputRef = ref();
- const regionRef = ref();
- const popperRef = ref();
- const listboxRef = ref();
- let readonly2 = false;
- let ignoreFocusEvent = false;
- const suggestions = ref([]);
- const highlightedIndex = ref(-1);
- const dropdownWidth = ref("");
- const activated = ref(false);
- const suggestionDisabled = ref(false);
- const loading = ref(false);
- const listboxId = useId();
- const styles = computed(() => rawAttrs.style);
- const suggestionVisible = computed(() => {
- const isValidData = suggestions.value.length > 0;
- return (isValidData || loading.value) && activated.value;
- });
- const suggestionLoading = computed(() => !props2.hideLoading && loading.value);
- const refInput = computed(() => {
- if (inputRef.value) {
- return Array.from(inputRef.value.$el.querySelectorAll("input"));
- }
- return [];
- });
- const onSuggestionShow = () => {
- if (suggestionVisible.value) {
- dropdownWidth.value = `${inputRef.value.$el.offsetWidth}px`;
- }
- };
- const onHide = () => {
- highlightedIndex.value = -1;
- };
- const getData2 = async (queryString) => {
- if (suggestionDisabled.value)
- return;
- const cb = (suggestionList) => {
- loading.value = false;
- if (suggestionDisabled.value)
- return;
- if (isArray(suggestionList)) {
- suggestions.value = suggestionList;
- highlightedIndex.value = props2.highlightFirstItem ? 0 : -1;
- } else {
- throwError(COMPONENT_NAME5, "autocomplete suggestions must be an array");
- }
- };
- loading.value = true;
- if (isArray(props2.fetchSuggestions)) {
- cb(props2.fetchSuggestions);
- } else {
- const result2 = await props2.fetchSuggestions(queryString, cb);
- if (isArray(result2))
- cb(result2);
- }
- };
- const debouncedGetData = debounce_default(getData2, props2.debounce);
- const handleInput = (value) => {
- const valuePresented = !!value;
- emit(INPUT_EVENT, value);
- emit(UPDATE_MODEL_EVENT, value);
- suggestionDisabled.value = false;
- activated.value || (activated.value = valuePresented);
- if (!props2.triggerOnFocus && !value) {
- suggestionDisabled.value = true;
- suggestions.value = [];
- return;
- }
- debouncedGetData(value);
- };
- const handleMouseDown = (event) => {
- var _a2;
- if (disabled.value)
- return;
- if (((_a2 = event.target) == null ? void 0 : _a2.tagName) !== "INPUT" || refInput.value.includes(document.activeElement)) {
- activated.value = true;
- }
- };
- const handleChange = (value) => {
- emit(CHANGE_EVENT, value);
- };
- const handleFocus = (evt) => {
- var _a2;
- if (!ignoreFocusEvent) {
- activated.value = true;
- emit("focus", evt);
- const queryString = (_a2 = props2.modelValue) != null ? _a2 : "";
- if (props2.triggerOnFocus && !readonly2) {
- debouncedGetData(String(queryString));
- }
- } else {
- ignoreFocusEvent = false;
- }
- };
- const handleBlur = (evt) => {
- setTimeout(() => {
- var _a2;
- if ((_a2 = popperRef.value) == null ? void 0 : _a2.isFocusInsideContent()) {
- ignoreFocusEvent = true;
- return;
- }
- activated.value && close2();
- emit("blur", evt);
- });
- };
- const handleClear = () => {
- activated.value = false;
- emit(UPDATE_MODEL_EVENT, "");
- emit("clear");
- };
- const handleKeyEnter = async () => {
- if (suggestionVisible.value && highlightedIndex.value >= 0 && highlightedIndex.value < suggestions.value.length) {
- handleSelect(suggestions.value[highlightedIndex.value]);
- } else if (props2.selectWhenUnmatched) {
- emit("select", { value: props2.modelValue });
- suggestions.value = [];
- highlightedIndex.value = -1;
- }
- };
- const handleKeyEscape = (evt) => {
- if (suggestionVisible.value) {
- evt.preventDefault();
- evt.stopPropagation();
- close2();
- }
- };
- const close2 = () => {
- activated.value = false;
- };
- const focus = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
- };
- const handleSelect = async (item) => {
- emit(INPUT_EVENT, item[props2.valueKey]);
- emit(UPDATE_MODEL_EVENT, item[props2.valueKey]);
- emit("select", item);
- suggestions.value = [];
- highlightedIndex.value = -1;
- };
- const highlight = (index) => {
- if (!suggestionVisible.value || loading.value)
- return;
- if (index < 0) {
- highlightedIndex.value = -1;
- return;
- }
- if (index >= suggestions.value.length) {
- index = suggestions.value.length - 1;
- }
- const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
- const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
- const highlightItem = suggestionList[index];
- const scrollTop = suggestion.scrollTop;
- const { offsetTop, scrollHeight } = highlightItem;
- if (offsetTop + scrollHeight > scrollTop + suggestion.clientHeight) {
- suggestion.scrollTop += scrollHeight;
- }
- if (offsetTop < scrollTop) {
- suggestion.scrollTop -= scrollHeight;
- }
- highlightedIndex.value = index;
- inputRef.value.ref.setAttribute("aria-activedescendant", `${listboxId.value}-item-${highlightedIndex.value}`);
- };
- const stopHandle = onClickOutside(listboxRef, () => {
- var _a2;
- if ((_a2 = popperRef.value) == null ? void 0 : _a2.isFocusInsideContent())
- return;
- suggestionVisible.value && close2();
- });
- onBeforeUnmount(() => {
- stopHandle == null ? void 0 : stopHandle();
- });
- onMounted(() => {
- inputRef.value.ref.setAttribute("role", "textbox");
- inputRef.value.ref.setAttribute("aria-autocomplete", "list");
- inputRef.value.ref.setAttribute("aria-controls", "id");
- inputRef.value.ref.setAttribute("aria-activedescendant", `${listboxId.value}-item-${highlightedIndex.value}`);
- readonly2 = inputRef.value.ref.hasAttribute("readonly");
- });
- expose({
- highlightedIndex,
- activated,
- loading,
- inputRef,
- popperRef,
- suggestions,
- handleSelect,
- handleKeyEnter,
- focus,
- blur,
- close: close2,
- highlight,
- getData: getData2
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTooltip), {
- ref_key: "popperRef",
- ref: popperRef,
- visible: unref(suggestionVisible),
- placement: _ctx.placement,
- "fallback-placements": ["bottom-start", "top-start"],
- "popper-class": [unref(ns).e("popper"), _ctx.popperClass],
- teleported: _ctx.teleported,
- "append-to": _ctx.appendTo,
- "gpu-acceleration": false,
- pure: "",
- "manual-mode": "",
- effect: "light",
- trigger: "click",
- transition: `${unref(ns).namespace.value}-zoom-in-top`,
- persistent: "",
- role: "listbox",
- onBeforeShow: onSuggestionShow,
- onHide
- }, {
- content: withCtx(() => [
- createBaseVNode("div", {
- ref_key: "regionRef",
- ref: regionRef,
- class: normalizeClass([unref(ns).b("suggestion"), unref(ns).is("loading", unref(suggestionLoading))]),
- style: normalizeStyle({
- [_ctx.fitInputWidth ? "width" : "minWidth"]: dropdownWidth.value,
- outline: "none"
- }),
- role: "region"
- }, [
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).be("suggestion", "header")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "header")
- ], 10, ["onClick"])) : createCommentVNode("v-if", true),
- createVNode(unref(ElScrollbar), {
- id: unref(listboxId),
- tag: "ul",
- "wrap-class": unref(ns).be("suggestion", "wrap"),
- "view-class": unref(ns).be("suggestion", "list"),
- role: "listbox"
- }, {
- default: withCtx(() => [
- unref(suggestionLoading) ? (openBlock(), createElementBlock("li", { key: 0 }, [
- renderSlot(_ctx.$slots, "loading", {}, () => [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(ns).is("loading"))
- }, {
- default: withCtx(() => [
- createVNode(unref(loading_default))
- ]),
- _: 1
- }, 8, ["class"])
- ])
- ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(suggestions.value, (item, index) => {
- return openBlock(), createElementBlock("li", {
- id: `${unref(listboxId)}-item-${index}`,
- key: index,
- class: normalizeClass({ highlighted: highlightedIndex.value === index }),
- role: "option",
- "aria-selected": highlightedIndex.value === index,
- onClick: ($event) => handleSelect(item)
- }, [
- renderSlot(_ctx.$slots, "default", { item }, () => [
- createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
- ])
- ], 10, ["id", "aria-selected", "onClick"]);
- }), 128))
- ]),
- _: 3
- }, 8, ["id", "wrap-class", "view-class"]),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).be("suggestion", "footer")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 10, ["onClick"])) : createCommentVNode("v-if", true)
- ], 6)
- ]),
- default: withCtx(() => [
- createBaseVNode("div", {
- ref_key: "listboxRef",
- ref: listboxRef,
- class: normalizeClass([unref(ns).b(), _ctx.$attrs.class]),
- style: normalizeStyle(unref(styles)),
- role: "combobox",
- "aria-haspopup": "listbox",
- "aria-expanded": unref(suggestionVisible),
- "aria-owns": unref(listboxId)
- }, [
- createVNode(unref(ElInput), mergeProps({
- ref_key: "inputRef",
- ref: inputRef
- }, mergeProps(unref(passInputProps), _ctx.$attrs), {
- "model-value": _ctx.modelValue,
- disabled: unref(disabled),
- onInput: handleInput,
- onChange: handleChange,
- onFocus: handleFocus,
- onBlur: handleBlur,
- onClear: handleClear,
- onKeydown: [
- withKeys(withModifiers(($event) => highlight(highlightedIndex.value - 1), ["prevent"]), ["up"]),
- withKeys(withModifiers(($event) => highlight(highlightedIndex.value + 1), ["prevent"]), ["down"]),
- withKeys(handleKeyEnter, ["enter"]),
- withKeys(close2, ["tab"]),
- withKeys(handleKeyEscape, ["esc"])
- ],
- onMousedown: handleMouseDown
- }), createSlots({
- _: 2
- }, [
- _ctx.$slots.prepend ? {
- name: "prepend",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "prepend")
- ])
- } : void 0,
- _ctx.$slots.append ? {
- name: "append",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "append")
- ])
- } : void 0,
- _ctx.$slots.prefix ? {
- name: "prefix",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "prefix")
- ])
- } : void 0,
- _ctx.$slots.suffix ? {
- name: "suffix",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "suffix")
- ])
- } : void 0
- ]), 1040, ["model-value", "disabled", "onKeydown"])
- ], 14, ["aria-expanded", "aria-owns"])
- ]),
- _: 3
- }, 8, ["visible", "placement", "popper-class", "teleported", "append-to", "transition"]);
- };
- }
- });
- var Autocomplete = _export_sfc(_sfc_main308, [["__file", "autocomplete.vue"]]);
- // node_modules/element-plus/es/components/autocomplete/index.mjs
- var ElAutocomplete = withInstall(Autocomplete);
- // node_modules/element-plus/es/components/avatar/src/avatar.mjs
- var avatarProps = buildProps({
- size: {
- type: [Number, String],
- values: componentSizes,
- default: "",
- validator: (val) => isNumber2(val)
- },
- shape: {
- type: String,
- values: ["circle", "square"],
- default: "circle"
- },
- icon: {
- type: iconPropType
- },
- src: {
- type: String,
- default: ""
- },
- alt: String,
- srcSet: String,
- fit: {
- type: definePropType(String),
- default: "cover"
- }
- });
- var avatarEmits = {
- error: (evt) => evt instanceof Event
- };
- // node_modules/element-plus/es/components/avatar/src/avatar2.mjs
- var __default__14 = defineComponent({
- name: "ElAvatar"
- });
- var _sfc_main309 = defineComponent({
- ...__default__14,
- props: avatarProps,
- emits: avatarEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("avatar");
- const hasLoadError = ref(false);
- const avatarClass = computed(() => {
- const { size: size3, icon, shape } = props2;
- const classList = [ns.b()];
- if (isString(size3))
- classList.push(ns.m(size3));
- if (icon)
- classList.push(ns.m("icon"));
- if (shape)
- classList.push(ns.m(shape));
- return classList;
- });
- const sizeStyle = computed(() => {
- const { size: size3 } = props2;
- return isNumber2(size3) ? ns.cssVarBlock({
- size: addUnit(size3) || ""
- }) : void 0;
- });
- const fitStyle = computed(() => ({
- objectFit: props2.fit
- }));
- watch(() => props2.src, () => hasLoadError.value = false);
- function handleError(e) {
- hasLoadError.value = true;
- emit("error", e);
- }
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(avatarClass)),
- style: normalizeStyle(unref(sizeStyle))
- }, [
- (_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (openBlock(), createElementBlock("img", {
- key: 0,
- src: _ctx.src,
- alt: _ctx.alt,
- srcset: _ctx.srcSet,
- style: normalizeStyle(unref(fitStyle)),
- onError: handleError
- }, null, 44, ["src", "alt", "srcset"])) : _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- })) : renderSlot(_ctx.$slots, "default", { key: 2 })
- ], 6);
- };
- }
- });
- var Avatar = _export_sfc(_sfc_main309, [["__file", "avatar.vue"]]);
- // node_modules/element-plus/es/components/avatar/index.mjs
- var ElAvatar = withInstall(Avatar);
- // node_modules/element-plus/es/components/backtop/src/backtop.mjs
- var backtopProps = {
- visibilityHeight: {
- type: Number,
- default: 200
- },
- target: {
- type: String,
- default: ""
- },
- right: {
- type: Number,
- default: 40
- },
- bottom: {
- type: Number,
- default: 40
- }
- };
- var backtopEmits = {
- click: (evt) => evt instanceof MouseEvent
- };
- // node_modules/element-plus/es/components/backtop/src/use-backtop.mjs
- var useBackTop = (props2, emit, componentName2) => {
- const el = shallowRef();
- const container = shallowRef();
- const visible = ref(false);
- const handleScroll2 = () => {
- if (el.value)
- visible.value = el.value.scrollTop >= props2.visibilityHeight;
- };
- const handleClick = (event) => {
- var _a2;
- (_a2 = el.value) == null ? void 0 : _a2.scrollTo({ top: 0, behavior: "smooth" });
- emit("click", event);
- };
- const handleScrollThrottled = useThrottleFn(handleScroll2, 300, true);
- useEventListener(container, "scroll", handleScrollThrottled);
- onMounted(() => {
- var _a2;
- container.value = document;
- el.value = document.documentElement;
- if (props2.target) {
- el.value = (_a2 = document.querySelector(props2.target)) != null ? _a2 : void 0;
- if (!el.value) {
- throwError(componentName2, `target does not exist: ${props2.target}`);
- }
- container.value = el.value;
- }
- handleScroll2();
- });
- return {
- visible,
- handleClick
- };
- };
- // node_modules/element-plus/es/components/backtop/src/backtop2.mjs
- var COMPONENT_NAME6 = "ElBacktop";
- var __default__15 = defineComponent({
- name: COMPONENT_NAME6
- });
- var _sfc_main310 = defineComponent({
- ...__default__15,
- props: backtopProps,
- emits: backtopEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("backtop");
- const { handleClick, visible } = useBackTop(props2, emit, COMPONENT_NAME6);
- const backTopStyle = computed(() => ({
- right: `${props2.right}px`,
- bottom: `${props2.bottom}px`
- }));
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, {
- name: `${unref(ns).namespace.value}-fade-in`
- }, {
- default: withCtx(() => [
- unref(visible) ? (openBlock(), createElementBlock("div", {
- key: 0,
- style: normalizeStyle(unref(backTopStyle)),
- class: normalizeClass(unref(ns).b()),
- onClick: withModifiers(unref(handleClick), ["stop"])
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(ns).e("icon"))
- }, {
- default: withCtx(() => [
- createVNode(unref(caret_top_default))
- ]),
- _: 1
- }, 8, ["class"])
- ])
- ], 14, ["onClick"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["name"]);
- };
- }
- });
- var Backtop = _export_sfc(_sfc_main310, [["__file", "backtop.vue"]]);
- // node_modules/element-plus/es/components/backtop/index.mjs
- var ElBacktop = withInstall(Backtop);
- // node_modules/element-plus/es/components/badge/src/badge.mjs
- var badgeProps = buildProps({
- value: {
- type: [String, Number],
- default: ""
- },
- max: {
- type: Number,
- default: 99
- },
- isDot: Boolean,
- hidden: Boolean,
- type: {
- type: String,
- values: ["primary", "success", "warning", "info", "danger"],
- default: "danger"
- },
- showZero: {
- type: Boolean,
- default: true
- },
- color: String,
- badgeStyle: {
- type: definePropType([String, Object, Array])
- },
- offset: {
- type: definePropType(Array),
- default: [0, 0]
- },
- badgeClass: {
- type: String
- }
- });
- // node_modules/element-plus/es/components/badge/src/badge2.mjs
- var __default__16 = defineComponent({
- name: "ElBadge"
- });
- var _sfc_main311 = defineComponent({
- ...__default__16,
- props: badgeProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const ns = useNamespace("badge");
- const content = computed(() => {
- if (props2.isDot)
- return "";
- if (isNumber2(props2.value) && isNumber2(props2.max)) {
- return props2.max < props2.value ? `${props2.max}+` : `${props2.value}`;
- }
- return `${props2.value}`;
- });
- const style = computed(() => {
- var _a2, _b, _c, _d, _e;
- return [
- {
- backgroundColor: props2.color,
- marginRight: addUnit(-((_b = (_a2 = props2.offset) == null ? void 0 : _a2[0]) != null ? _b : 0)),
- marginTop: addUnit((_d = (_c = props2.offset) == null ? void 0 : _c[1]) != null ? _d : 0)
- },
- (_e = props2.badgeStyle) != null ? _e : {}
- ];
- });
- expose({
- content
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- renderSlot(_ctx.$slots, "default"),
- createVNode(Transition, {
- name: `${unref(ns).namespace.value}-zoom-in-center`,
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("sup", {
- class: normalizeClass([
- unref(ns).e("content"),
- unref(ns).em("content", _ctx.type),
- unref(ns).is("fixed", !!_ctx.$slots.default),
- unref(ns).is("dot", _ctx.isDot),
- unref(ns).is("hide-zero", !_ctx.showZero && props2.value === 0),
- _ctx.badgeClass
- ]),
- style: normalizeStyle(unref(style))
- }, [
- renderSlot(_ctx.$slots, "content", { value: unref(content) }, () => [
- createTextVNode(toDisplayString(unref(content)), 1)
- ])
- ], 6), [
- [vShow, !_ctx.hidden && (unref(content) || _ctx.isDot || _ctx.$slots.content)]
- ])
- ]),
- _: 3
- }, 8, ["name"])
- ], 2);
- };
- }
- });
- var Badge = _export_sfc(_sfc_main311, [["__file", "badge.vue"]]);
- // node_modules/element-plus/es/components/badge/index.mjs
- var ElBadge = withInstall(Badge);
- // node_modules/element-plus/es/components/breadcrumb/src/constants.mjs
- var breadcrumbKey = Symbol("breadcrumbKey");
- // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb.mjs
- var breadcrumbProps = buildProps({
- separator: {
- type: String,
- default: "/"
- },
- separatorIcon: {
- type: iconPropType
- }
- });
- // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb2.mjs
- var __default__17 = defineComponent({
- name: "ElBreadcrumb"
- });
- var _sfc_main312 = defineComponent({
- ...__default__17,
- props: breadcrumbProps,
- setup(__props) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("breadcrumb");
- const breadcrumb = ref();
- provide(breadcrumbKey, props2);
- onMounted(() => {
- const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
- if (items.length) {
- items[items.length - 1].setAttribute("aria-current", "page");
- }
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "breadcrumb",
- ref: breadcrumb,
- class: normalizeClass(unref(ns).b()),
- "aria-label": unref(t)("el.breadcrumb.label"),
- role: "navigation"
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 10, ["aria-label"]);
- };
- }
- });
- var Breadcrumb = _export_sfc(_sfc_main312, [["__file", "breadcrumb.vue"]]);
- // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item.mjs
- var breadcrumbItemProps = buildProps({
- to: {
- type: definePropType([String, Object]),
- default: ""
- },
- replace: Boolean
- });
- // node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item2.mjs
- var __default__18 = defineComponent({
- name: "ElBreadcrumbItem"
- });
- var _sfc_main313 = defineComponent({
- ...__default__18,
- props: breadcrumbItemProps,
- setup(__props) {
- const props2 = __props;
- const instance = getCurrentInstance();
- const breadcrumbContext = inject(breadcrumbKey, void 0);
- const ns = useNamespace("breadcrumb");
- const router = instance.appContext.config.globalProperties.$router;
- const link = ref();
- const onClick = () => {
- if (!props2.to || !router)
- return;
- props2.replace ? router.replace(props2.to) : router.push(props2.to);
- };
- return (_ctx, _cache) => {
- var _a2, _b;
- return openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(ns).e("item"))
- }, [
- createBaseVNode("span", {
- ref_key: "link",
- ref: link,
- class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
- role: "link",
- onClick
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2),
- ((_a2 = unref(breadcrumbContext)) == null ? void 0 : _a2.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("separator"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
- key: 1,
- class: normalizeClass(unref(ns).e("separator")),
- role: "presentation"
- }, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
- ], 2);
- };
- }
- });
- var BreadcrumbItem = _export_sfc(_sfc_main313, [["__file", "breadcrumb-item.vue"]]);
- // node_modules/element-plus/es/components/breadcrumb/index.mjs
- var ElBreadcrumb = withInstall(Breadcrumb, {
- BreadcrumbItem
- });
- var ElBreadcrumbItem = withNoopInstall(BreadcrumbItem);
- // node_modules/element-plus/es/components/button/src/constants.mjs
- var buttonGroupContextKey = Symbol("buttonGroupContextKey");
- // node_modules/element-plus/es/hooks/use-deprecated/index.mjs
- var useDeprecated = ({ from, replacement, scope, version: version4, ref: ref2, type: type4 = "API" }, condition) => {
- watch(() => unref(condition), (val) => {
- }, {
- immediate: true
- });
- };
- // node_modules/element-plus/es/components/button/src/use-button.mjs
- var useButton = (props2, emit) => {
- useDeprecated({
- from: "type.text",
- replacement: "link",
- version: "3.0.0",
- scope: "props",
- ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
- }, computed(() => props2.type === "text"));
- const buttonGroupContext = inject(buttonGroupContextKey, void 0);
- const globalConfig2 = useGlobalConfig("button");
- const { form } = useFormItem();
- const _size = useFormSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
- const _disabled = useFormDisabled();
- const _ref = ref();
- const slots = useSlots();
- const _type = computed(() => {
- var _a2;
- return props2.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || ((_a2 = globalConfig2.value) == null ? void 0 : _a2.type) || "";
- });
- const autoInsertSpace = computed(() => {
- var _a2, _b, _c;
- return (_c = (_b = props2.autoInsertSpace) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.autoInsertSpace) != null ? _c : false;
- });
- const _plain = computed(() => {
- var _a2, _b, _c;
- return (_c = (_b = props2.plain) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.plain) != null ? _c : false;
- });
- const _round = computed(() => {
- var _a2, _b, _c;
- return (_c = (_b = props2.round) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.round) != null ? _c : false;
- });
- const _text = computed(() => {
- var _a2, _b, _c;
- return (_c = (_b = props2.text) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.text) != null ? _c : false;
- });
- const _props = computed(() => {
- if (props2.tag === "button") {
- return {
- ariaDisabled: _disabled.value || props2.loading,
- disabled: _disabled.value || props2.loading,
- autofocus: props2.autofocus,
- type: props2.nativeType
- };
- }
- return {};
- });
- const shouldAddSpace = computed(() => {
- var _a2;
- const defaultSlot = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
- if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
- const slot = defaultSlot[0];
- if ((slot == null ? void 0 : slot.type) === Text) {
- const text = slot.children;
- return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(text.trim());
- }
- }
- return false;
- });
- const handleClick = (evt) => {
- if (_disabled.value || props2.loading) {
- evt.stopPropagation();
- return;
- }
- if (props2.nativeType === "reset") {
- form == null ? void 0 : form.resetFields();
- }
- emit("click", evt);
- };
- return {
- _disabled,
- _size,
- _type,
- _ref,
- _props,
- _plain,
- _round,
- _text,
- shouldAddSpace,
- handleClick
- };
- };
- // node_modules/element-plus/es/components/button/src/button.mjs
- var buttonTypes = [
- "default",
- "primary",
- "success",
- "warning",
- "info",
- "danger",
- "text",
- ""
- ];
- var buttonNativeTypes = ["button", "submit", "reset"];
- var buttonProps = buildProps({
- size: useSizeProp,
- disabled: Boolean,
- type: {
- type: String,
- values: buttonTypes,
- default: ""
- },
- icon: {
- type: iconPropType
- },
- nativeType: {
- type: String,
- values: buttonNativeTypes,
- default: "button"
- },
- loading: Boolean,
- loadingIcon: {
- type: iconPropType,
- default: () => loading_default
- },
- plain: {
- type: Boolean,
- default: void 0
- },
- text: {
- type: Boolean,
- default: void 0
- },
- link: Boolean,
- bg: Boolean,
- autofocus: Boolean,
- round: {
- type: Boolean,
- default: void 0
- },
- circle: Boolean,
- color: String,
- dark: Boolean,
- autoInsertSpace: {
- type: Boolean,
- default: void 0
- },
- tag: {
- type: definePropType([String, Object]),
- default: "button"
- }
- });
- var buttonEmits = {
- click: (evt) => evt instanceof MouseEvent
- };
- // node_modules/@ctrl/tinycolor/dist/module/util.js
- function bound01(n, max4) {
- if (isOnePointZero(n)) {
- n = "100%";
- }
- var isPercent = isPercentage(n);
- n = max4 === 360 ? n : Math.min(max4, Math.max(0, parseFloat(n)));
- if (isPercent) {
- n = parseInt(String(n * max4), 10) / 100;
- }
- if (Math.abs(n - max4) < 1e-6) {
- return 1;
- }
- if (max4 === 360) {
- n = (n < 0 ? n % max4 + max4 : n % max4) / parseFloat(String(max4));
- } else {
- n = n % max4 / parseFloat(String(max4));
- }
- return n;
- }
- function clamp01(val) {
- return Math.min(1, Math.max(0, val));
- }
- function isOnePointZero(n) {
- return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
- }
- function isPercentage(n) {
- return typeof n === "string" && n.indexOf("%") !== -1;
- }
- function boundAlpha(a2) {
- a2 = parseFloat(a2);
- if (isNaN(a2) || a2 < 0 || a2 > 1) {
- a2 = 1;
- }
- return a2;
- }
- function convertToPercentage(n) {
- if (n <= 1) {
- return "".concat(Number(n) * 100, "%");
- }
- return n;
- }
- function pad2(c2) {
- return c2.length === 1 ? "0" + c2 : String(c2);
- }
- // node_modules/@ctrl/tinycolor/dist/module/conversion.js
- function rgbToRgb(r, g, b2) {
- return {
- r: bound01(r, 255) * 255,
- g: bound01(g, 255) * 255,
- b: bound01(b2, 255) * 255
- };
- }
- function rgbToHsl(r, g, b2) {
- r = bound01(r, 255);
- g = bound01(g, 255);
- b2 = bound01(b2, 255);
- var max4 = Math.max(r, g, b2);
- var min4 = Math.min(r, g, b2);
- var h3 = 0;
- var s2 = 0;
- var l2 = (max4 + min4) / 2;
- if (max4 === min4) {
- s2 = 0;
- h3 = 0;
- } else {
- var d2 = max4 - min4;
- s2 = l2 > 0.5 ? d2 / (2 - max4 - min4) : d2 / (max4 + min4);
- switch (max4) {
- case r:
- h3 = (g - b2) / d2 + (g < b2 ? 6 : 0);
- break;
- case g:
- h3 = (b2 - r) / d2 + 2;
- break;
- case b2:
- h3 = (r - g) / d2 + 4;
- break;
- default:
- break;
- }
- h3 /= 6;
- }
- return { h: h3, s: s2, l: l2 };
- }
- function hue2rgb(p2, q2, t) {
- if (t < 0) {
- t += 1;
- }
- if (t > 1) {
- t -= 1;
- }
- if (t < 1 / 6) {
- return p2 + (q2 - p2) * (6 * t);
- }
- if (t < 1 / 2) {
- return q2;
- }
- if (t < 2 / 3) {
- return p2 + (q2 - p2) * (2 / 3 - t) * 6;
- }
- return p2;
- }
- function hslToRgb(h3, s2, l2) {
- var r;
- var g;
- var b2;
- h3 = bound01(h3, 360);
- s2 = bound01(s2, 100);
- l2 = bound01(l2, 100);
- if (s2 === 0) {
- g = l2;
- b2 = l2;
- r = l2;
- } else {
- var q2 = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2;
- var p2 = 2 * l2 - q2;
- r = hue2rgb(p2, q2, h3 + 1 / 3);
- g = hue2rgb(p2, q2, h3);
- b2 = hue2rgb(p2, q2, h3 - 1 / 3);
- }
- return { r: r * 255, g: g * 255, b: b2 * 255 };
- }
- function rgbToHsv(r, g, b2) {
- r = bound01(r, 255);
- g = bound01(g, 255);
- b2 = bound01(b2, 255);
- var max4 = Math.max(r, g, b2);
- var min4 = Math.min(r, g, b2);
- var h3 = 0;
- var v2 = max4;
- var d2 = max4 - min4;
- var s2 = max4 === 0 ? 0 : d2 / max4;
- if (max4 === min4) {
- h3 = 0;
- } else {
- switch (max4) {
- case r:
- h3 = (g - b2) / d2 + (g < b2 ? 6 : 0);
- break;
- case g:
- h3 = (b2 - r) / d2 + 2;
- break;
- case b2:
- h3 = (r - g) / d2 + 4;
- break;
- default:
- break;
- }
- h3 /= 6;
- }
- return { h: h3, s: s2, v: v2 };
- }
- function hsvToRgb(h3, s2, v2) {
- h3 = bound01(h3, 360) * 6;
- s2 = bound01(s2, 100);
- v2 = bound01(v2, 100);
- var i = Math.floor(h3);
- var f2 = h3 - i;
- var p2 = v2 * (1 - s2);
- var q2 = v2 * (1 - f2 * s2);
- var t = v2 * (1 - (1 - f2) * s2);
- var mod = i % 6;
- var r = [v2, q2, p2, p2, t, v2][mod];
- var g = [t, v2, v2, q2, p2, p2][mod];
- var b2 = [p2, p2, t, v2, v2, q2][mod];
- return { r: r * 255, g: g * 255, b: b2 * 255 };
- }
- function rgbToHex(r, g, b2, allow3Char) {
- var hex2 = [
- pad2(Math.round(r).toString(16)),
- pad2(Math.round(g).toString(16)),
- pad2(Math.round(b2).toString(16))
- ];
- if (allow3Char && hex2[0].startsWith(hex2[0].charAt(1)) && hex2[1].startsWith(hex2[1].charAt(1)) && hex2[2].startsWith(hex2[2].charAt(1))) {
- return hex2[0].charAt(0) + hex2[1].charAt(0) + hex2[2].charAt(0);
- }
- return hex2.join("");
- }
- function rgbaToHex(r, g, b2, a2, allow4Char) {
- var hex2 = [
- pad2(Math.round(r).toString(16)),
- pad2(Math.round(g).toString(16)),
- pad2(Math.round(b2).toString(16)),
- pad2(convertDecimalToHex(a2))
- ];
- 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))) {
- return hex2[0].charAt(0) + hex2[1].charAt(0) + hex2[2].charAt(0) + hex2[3].charAt(0);
- }
- return hex2.join("");
- }
- function convertDecimalToHex(d2) {
- return Math.round(parseFloat(d2) * 255).toString(16);
- }
- function convertHexToDecimal(h3) {
- return parseIntFromHex(h3) / 255;
- }
- function parseIntFromHex(val) {
- return parseInt(val, 16);
- }
- function numberInputToObject(color) {
- return {
- r: color >> 16,
- g: (color & 65280) >> 8,
- b: color & 255
- };
- }
- // node_modules/@ctrl/tinycolor/dist/module/css-color-names.js
- var names = {
- aliceblue: "#f0f8ff",
- antiquewhite: "#faebd7",
- aqua: "#00ffff",
- aquamarine: "#7fffd4",
- azure: "#f0ffff",
- beige: "#f5f5dc",
- bisque: "#ffe4c4",
- black: "#000000",
- blanchedalmond: "#ffebcd",
- blue: "#0000ff",
- blueviolet: "#8a2be2",
- brown: "#a52a2a",
- burlywood: "#deb887",
- cadetblue: "#5f9ea0",
- chartreuse: "#7fff00",
- chocolate: "#d2691e",
- coral: "#ff7f50",
- cornflowerblue: "#6495ed",
- cornsilk: "#fff8dc",
- crimson: "#dc143c",
- cyan: "#00ffff",
- darkblue: "#00008b",
- darkcyan: "#008b8b",
- darkgoldenrod: "#b8860b",
- darkgray: "#a9a9a9",
- darkgreen: "#006400",
- darkgrey: "#a9a9a9",
- darkkhaki: "#bdb76b",
- darkmagenta: "#8b008b",
- darkolivegreen: "#556b2f",
- darkorange: "#ff8c00",
- darkorchid: "#9932cc",
- darkred: "#8b0000",
- darksalmon: "#e9967a",
- darkseagreen: "#8fbc8f",
- darkslateblue: "#483d8b",
- darkslategray: "#2f4f4f",
- darkslategrey: "#2f4f4f",
- darkturquoise: "#00ced1",
- darkviolet: "#9400d3",
- deeppink: "#ff1493",
- deepskyblue: "#00bfff",
- dimgray: "#696969",
- dimgrey: "#696969",
- dodgerblue: "#1e90ff",
- firebrick: "#b22222",
- floralwhite: "#fffaf0",
- forestgreen: "#228b22",
- fuchsia: "#ff00ff",
- gainsboro: "#dcdcdc",
- ghostwhite: "#f8f8ff",
- goldenrod: "#daa520",
- gold: "#ffd700",
- gray: "#808080",
- green: "#008000",
- greenyellow: "#adff2f",
- grey: "#808080",
- honeydew: "#f0fff0",
- hotpink: "#ff69b4",
- indianred: "#cd5c5c",
- indigo: "#4b0082",
- ivory: "#fffff0",
- khaki: "#f0e68c",
- lavenderblush: "#fff0f5",
- lavender: "#e6e6fa",
- lawngreen: "#7cfc00",
- lemonchiffon: "#fffacd",
- lightblue: "#add8e6",
- lightcoral: "#f08080",
- lightcyan: "#e0ffff",
- lightgoldenrodyellow: "#fafad2",
- lightgray: "#d3d3d3",
- lightgreen: "#90ee90",
- lightgrey: "#d3d3d3",
- lightpink: "#ffb6c1",
- lightsalmon: "#ffa07a",
- lightseagreen: "#20b2aa",
- lightskyblue: "#87cefa",
- lightslategray: "#778899",
- lightslategrey: "#778899",
- lightsteelblue: "#b0c4de",
- lightyellow: "#ffffe0",
- lime: "#00ff00",
- limegreen: "#32cd32",
- linen: "#faf0e6",
- magenta: "#ff00ff",
- maroon: "#800000",
- mediumaquamarine: "#66cdaa",
- mediumblue: "#0000cd",
- mediumorchid: "#ba55d3",
- mediumpurple: "#9370db",
- mediumseagreen: "#3cb371",
- mediumslateblue: "#7b68ee",
- mediumspringgreen: "#00fa9a",
- mediumturquoise: "#48d1cc",
- mediumvioletred: "#c71585",
- midnightblue: "#191970",
- mintcream: "#f5fffa",
- mistyrose: "#ffe4e1",
- moccasin: "#ffe4b5",
- navajowhite: "#ffdead",
- navy: "#000080",
- oldlace: "#fdf5e6",
- olive: "#808000",
- olivedrab: "#6b8e23",
- orange: "#ffa500",
- orangered: "#ff4500",
- orchid: "#da70d6",
- palegoldenrod: "#eee8aa",
- palegreen: "#98fb98",
- paleturquoise: "#afeeee",
- palevioletred: "#db7093",
- papayawhip: "#ffefd5",
- peachpuff: "#ffdab9",
- peru: "#cd853f",
- pink: "#ffc0cb",
- plum: "#dda0dd",
- powderblue: "#b0e0e6",
- purple: "#800080",
- rebeccapurple: "#663399",
- red: "#ff0000",
- rosybrown: "#bc8f8f",
- royalblue: "#4169e1",
- saddlebrown: "#8b4513",
- salmon: "#fa8072",
- sandybrown: "#f4a460",
- seagreen: "#2e8b57",
- seashell: "#fff5ee",
- sienna: "#a0522d",
- silver: "#c0c0c0",
- skyblue: "#87ceeb",
- slateblue: "#6a5acd",
- slategray: "#708090",
- slategrey: "#708090",
- snow: "#fffafa",
- springgreen: "#00ff7f",
- steelblue: "#4682b4",
- tan: "#d2b48c",
- teal: "#008080",
- thistle: "#d8bfd8",
- tomato: "#ff6347",
- turquoise: "#40e0d0",
- violet: "#ee82ee",
- wheat: "#f5deb3",
- white: "#ffffff",
- whitesmoke: "#f5f5f5",
- yellow: "#ffff00",
- yellowgreen: "#9acd32"
- };
- // node_modules/@ctrl/tinycolor/dist/module/format-input.js
- function inputToRGB(color) {
- var rgb = { r: 0, g: 0, b: 0 };
- var a2 = 1;
- var s2 = null;
- var v2 = null;
- var l2 = null;
- var ok = false;
- var format2 = false;
- if (typeof color === "string") {
- color = stringInputToObject(color);
- }
- if (typeof color === "object") {
- if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
- rgb = rgbToRgb(color.r, color.g, color.b);
- ok = true;
- format2 = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
- } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
- s2 = convertToPercentage(color.s);
- v2 = convertToPercentage(color.v);
- rgb = hsvToRgb(color.h, s2, v2);
- ok = true;
- format2 = "hsv";
- } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
- s2 = convertToPercentage(color.s);
- l2 = convertToPercentage(color.l);
- rgb = hslToRgb(color.h, s2, l2);
- ok = true;
- format2 = "hsl";
- }
- if (Object.prototype.hasOwnProperty.call(color, "a")) {
- a2 = color.a;
- }
- }
- a2 = boundAlpha(a2);
- return {
- ok,
- format: color.format || format2,
- r: Math.min(255, Math.max(rgb.r, 0)),
- g: Math.min(255, Math.max(rgb.g, 0)),
- b: Math.min(255, Math.max(rgb.b, 0)),
- a: a2
- };
- }
- var CSS_INTEGER = "[-\\+]?\\d+%?";
- var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
- var matchers = {
- CSS_UNIT: new RegExp(CSS_UNIT),
- rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
- rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
- hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
- hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
- hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
- hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
- };
- function stringInputToObject(color) {
- color = color.trim().toLowerCase();
- if (color.length === 0) {
- return false;
- }
- var named = false;
- if (names[color]) {
- color = names[color];
- named = true;
- } else if (color === "transparent") {
- return { r: 0, g: 0, b: 0, a: 0, format: "name" };
- }
- var match = matchers.rgb.exec(color);
- if (match) {
- return { r: match[1], g: match[2], b: match[3] };
- }
- match = matchers.rgba.exec(color);
- if (match) {
- return { r: match[1], g: match[2], b: match[3], a: match[4] };
- }
- match = matchers.hsl.exec(color);
- if (match) {
- return { h: match[1], s: match[2], l: match[3] };
- }
- match = matchers.hsla.exec(color);
- if (match) {
- return { h: match[1], s: match[2], l: match[3], a: match[4] };
- }
- match = matchers.hsv.exec(color);
- if (match) {
- return { h: match[1], s: match[2], v: match[3] };
- }
- match = matchers.hsva.exec(color);
- if (match) {
- return { h: match[1], s: match[2], v: match[3], a: match[4] };
- }
- match = matchers.hex8.exec(color);
- if (match) {
- return {
- r: parseIntFromHex(match[1]),
- g: parseIntFromHex(match[2]),
- b: parseIntFromHex(match[3]),
- a: convertHexToDecimal(match[4]),
- format: named ? "name" : "hex8"
- };
- }
- match = matchers.hex6.exec(color);
- if (match) {
- return {
- r: parseIntFromHex(match[1]),
- g: parseIntFromHex(match[2]),
- b: parseIntFromHex(match[3]),
- format: named ? "name" : "hex"
- };
- }
- match = matchers.hex4.exec(color);
- if (match) {
- return {
- r: parseIntFromHex(match[1] + match[1]),
- g: parseIntFromHex(match[2] + match[2]),
- b: parseIntFromHex(match[3] + match[3]),
- a: convertHexToDecimal(match[4] + match[4]),
- format: named ? "name" : "hex8"
- };
- }
- match = matchers.hex3.exec(color);
- if (match) {
- return {
- r: parseIntFromHex(match[1] + match[1]),
- g: parseIntFromHex(match[2] + match[2]),
- b: parseIntFromHex(match[3] + match[3]),
- format: named ? "name" : "hex"
- };
- }
- return false;
- }
- function isValidCSSUnit(color) {
- return Boolean(matchers.CSS_UNIT.exec(String(color)));
- }
- // node_modules/@ctrl/tinycolor/dist/module/index.js
- var TinyColor = (
- /** @class */
- (function() {
- function TinyColor2(color, opts) {
- if (color === void 0) {
- color = "";
- }
- if (opts === void 0) {
- opts = {};
- }
- var _a2;
- if (color instanceof TinyColor2) {
- return color;
- }
- if (typeof color === "number") {
- color = numberInputToObject(color);
- }
- this.originalInput = color;
- var rgb = inputToRGB(color);
- this.originalInput = color;
- this.r = rgb.r;
- this.g = rgb.g;
- this.b = rgb.b;
- this.a = rgb.a;
- this.roundA = Math.round(100 * this.a) / 100;
- this.format = (_a2 = opts.format) !== null && _a2 !== void 0 ? _a2 : rgb.format;
- this.gradientType = opts.gradientType;
- if (this.r < 1) {
- this.r = Math.round(this.r);
- }
- if (this.g < 1) {
- this.g = Math.round(this.g);
- }
- if (this.b < 1) {
- this.b = Math.round(this.b);
- }
- this.isValid = rgb.ok;
- }
- TinyColor2.prototype.isDark = function() {
- return this.getBrightness() < 128;
- };
- TinyColor2.prototype.isLight = function() {
- return !this.isDark();
- };
- TinyColor2.prototype.getBrightness = function() {
- var rgb = this.toRgb();
- return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1e3;
- };
- TinyColor2.prototype.getLuminance = function() {
- var rgb = this.toRgb();
- var R2;
- var G2;
- var B2;
- var RsRGB = rgb.r / 255;
- var GsRGB = rgb.g / 255;
- var BsRGB = rgb.b / 255;
- if (RsRGB <= 0.03928) {
- R2 = RsRGB / 12.92;
- } else {
- R2 = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
- }
- if (GsRGB <= 0.03928) {
- G2 = GsRGB / 12.92;
- } else {
- G2 = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
- }
- if (BsRGB <= 0.03928) {
- B2 = BsRGB / 12.92;
- } else {
- B2 = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
- }
- return 0.2126 * R2 + 0.7152 * G2 + 0.0722 * B2;
- };
- TinyColor2.prototype.getAlpha = function() {
- return this.a;
- };
- TinyColor2.prototype.setAlpha = function(alpha) {
- this.a = boundAlpha(alpha);
- this.roundA = Math.round(100 * this.a) / 100;
- return this;
- };
- TinyColor2.prototype.isMonochrome = function() {
- var s2 = this.toHsl().s;
- return s2 === 0;
- };
- TinyColor2.prototype.toHsv = function() {
- var hsv = rgbToHsv(this.r, this.g, this.b);
- return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };
- };
- TinyColor2.prototype.toHsvString = function() {
- var hsv = rgbToHsv(this.r, this.g, this.b);
- var h3 = Math.round(hsv.h * 360);
- var s2 = Math.round(hsv.s * 100);
- var v2 = Math.round(hsv.v * 100);
- return this.a === 1 ? "hsv(".concat(h3, ", ").concat(s2, "%, ").concat(v2, "%)") : "hsva(".concat(h3, ", ").concat(s2, "%, ").concat(v2, "%, ").concat(this.roundA, ")");
- };
- TinyColor2.prototype.toHsl = function() {
- var hsl = rgbToHsl(this.r, this.g, this.b);
- return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };
- };
- TinyColor2.prototype.toHslString = function() {
- var hsl = rgbToHsl(this.r, this.g, this.b);
- var h3 = Math.round(hsl.h * 360);
- var s2 = Math.round(hsl.s * 100);
- var l2 = Math.round(hsl.l * 100);
- return this.a === 1 ? "hsl(".concat(h3, ", ").concat(s2, "%, ").concat(l2, "%)") : "hsla(".concat(h3, ", ").concat(s2, "%, ").concat(l2, "%, ").concat(this.roundA, ")");
- };
- TinyColor2.prototype.toHex = function(allow3Char) {
- if (allow3Char === void 0) {
- allow3Char = false;
- }
- return rgbToHex(this.r, this.g, this.b, allow3Char);
- };
- TinyColor2.prototype.toHexString = function(allow3Char) {
- if (allow3Char === void 0) {
- allow3Char = false;
- }
- return "#" + this.toHex(allow3Char);
- };
- TinyColor2.prototype.toHex8 = function(allow4Char) {
- if (allow4Char === void 0) {
- allow4Char = false;
- }
- return rgbaToHex(this.r, this.g, this.b, this.a, allow4Char);
- };
- TinyColor2.prototype.toHex8String = function(allow4Char) {
- if (allow4Char === void 0) {
- allow4Char = false;
- }
- return "#" + this.toHex8(allow4Char);
- };
- TinyColor2.prototype.toHexShortString = function(allowShortChar) {
- if (allowShortChar === void 0) {
- allowShortChar = false;
- }
- return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar);
- };
- TinyColor2.prototype.toRgb = function() {
- return {
- r: Math.round(this.r),
- g: Math.round(this.g),
- b: Math.round(this.b),
- a: this.a
- };
- };
- TinyColor2.prototype.toRgbString = function() {
- var r = Math.round(this.r);
- var g = Math.round(this.g);
- var b2 = Math.round(this.b);
- return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b2, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b2, ", ").concat(this.roundA, ")");
- };
- TinyColor2.prototype.toPercentageRgb = function() {
- var fmt = function(x2) {
- return "".concat(Math.round(bound01(x2, 255) * 100), "%");
- };
- return {
- r: fmt(this.r),
- g: fmt(this.g),
- b: fmt(this.b),
- a: this.a
- };
- };
- TinyColor2.prototype.toPercentageRgbString = function() {
- var rnd = function(x2) {
- return Math.round(bound01(x2, 255) * 100);
- };
- return this.a === 1 ? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)") : "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")");
- };
- TinyColor2.prototype.toName = function() {
- if (this.a === 0) {
- return "transparent";
- }
- if (this.a < 1) {
- return false;
- }
- var hex2 = "#" + rgbToHex(this.r, this.g, this.b, false);
- for (var _i = 0, _a2 = Object.entries(names); _i < _a2.length; _i++) {
- var _b = _a2[_i], key = _b[0], value = _b[1];
- if (hex2 === value) {
- return key;
- }
- }
- return false;
- };
- TinyColor2.prototype.toString = function(format2) {
- var formatSet = Boolean(format2);
- format2 = format2 !== null && format2 !== void 0 ? format2 : this.format;
- var formattedString = false;
- var hasAlpha = this.a < 1 && this.a >= 0;
- var needsAlphaFormat = !formatSet && hasAlpha && (format2.startsWith("hex") || format2 === "name");
- if (needsAlphaFormat) {
- if (format2 === "name" && this.a === 0) {
- return this.toName();
- }
- return this.toRgbString();
- }
- if (format2 === "rgb") {
- formattedString = this.toRgbString();
- }
- if (format2 === "prgb") {
- formattedString = this.toPercentageRgbString();
- }
- if (format2 === "hex" || format2 === "hex6") {
- formattedString = this.toHexString();
- }
- if (format2 === "hex3") {
- formattedString = this.toHexString(true);
- }
- if (format2 === "hex4") {
- formattedString = this.toHex8String(true);
- }
- if (format2 === "hex8") {
- formattedString = this.toHex8String();
- }
- if (format2 === "name") {
- formattedString = this.toName();
- }
- if (format2 === "hsl") {
- formattedString = this.toHslString();
- }
- if (format2 === "hsv") {
- formattedString = this.toHsvString();
- }
- return formattedString || this.toHexString();
- };
- TinyColor2.prototype.toNumber = function() {
- return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
- };
- TinyColor2.prototype.clone = function() {
- return new TinyColor2(this.toString());
- };
- TinyColor2.prototype.lighten = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- var hsl = this.toHsl();
- hsl.l += amount / 100;
- hsl.l = clamp01(hsl.l);
- return new TinyColor2(hsl);
- };
- TinyColor2.prototype.brighten = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- var rgb = this.toRgb();
- rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
- rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
- rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
- return new TinyColor2(rgb);
- };
- TinyColor2.prototype.darken = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- var hsl = this.toHsl();
- hsl.l -= amount / 100;
- hsl.l = clamp01(hsl.l);
- return new TinyColor2(hsl);
- };
- TinyColor2.prototype.tint = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- return this.mix("white", amount);
- };
- TinyColor2.prototype.shade = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- return this.mix("black", amount);
- };
- TinyColor2.prototype.desaturate = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- var hsl = this.toHsl();
- hsl.s -= amount / 100;
- hsl.s = clamp01(hsl.s);
- return new TinyColor2(hsl);
- };
- TinyColor2.prototype.saturate = function(amount) {
- if (amount === void 0) {
- amount = 10;
- }
- var hsl = this.toHsl();
- hsl.s += amount / 100;
- hsl.s = clamp01(hsl.s);
- return new TinyColor2(hsl);
- };
- TinyColor2.prototype.greyscale = function() {
- return this.desaturate(100);
- };
- TinyColor2.prototype.spin = function(amount) {
- var hsl = this.toHsl();
- var hue = (hsl.h + amount) % 360;
- hsl.h = hue < 0 ? 360 + hue : hue;
- return new TinyColor2(hsl);
- };
- TinyColor2.prototype.mix = function(color, amount) {
- if (amount === void 0) {
- amount = 50;
- }
- var rgb1 = this.toRgb();
- var rgb2 = new TinyColor2(color).toRgb();
- var p2 = amount / 100;
- var rgba = {
- r: (rgb2.r - rgb1.r) * p2 + rgb1.r,
- g: (rgb2.g - rgb1.g) * p2 + rgb1.g,
- b: (rgb2.b - rgb1.b) * p2 + rgb1.b,
- a: (rgb2.a - rgb1.a) * p2 + rgb1.a
- };
- return new TinyColor2(rgba);
- };
- TinyColor2.prototype.analogous = function(results, slices) {
- if (results === void 0) {
- results = 6;
- }
- if (slices === void 0) {
- slices = 30;
- }
- var hsl = this.toHsl();
- var part = 360 / slices;
- var ret = [this];
- for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results; ) {
- hsl.h = (hsl.h + part) % 360;
- ret.push(new TinyColor2(hsl));
- }
- return ret;
- };
- TinyColor2.prototype.complement = function() {
- var hsl = this.toHsl();
- hsl.h = (hsl.h + 180) % 360;
- return new TinyColor2(hsl);
- };
- TinyColor2.prototype.monochromatic = function(results) {
- if (results === void 0) {
- results = 6;
- }
- var hsv = this.toHsv();
- var h3 = hsv.h;
- var s2 = hsv.s;
- var v2 = hsv.v;
- var res = [];
- var modification = 1 / results;
- while (results--) {
- res.push(new TinyColor2({ h: h3, s: s2, v: v2 }));
- v2 = (v2 + modification) % 1;
- }
- return res;
- };
- TinyColor2.prototype.splitcomplement = function() {
- var hsl = this.toHsl();
- var h3 = hsl.h;
- return [
- this,
- new TinyColor2({ h: (h3 + 72) % 360, s: hsl.s, l: hsl.l }),
- new TinyColor2({ h: (h3 + 216) % 360, s: hsl.s, l: hsl.l })
- ];
- };
- TinyColor2.prototype.onBackground = function(background) {
- var fg = this.toRgb();
- var bg = new TinyColor2(background).toRgb();
- var alpha = fg.a + bg.a * (1 - fg.a);
- return new TinyColor2({
- r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha,
- g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha,
- b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha,
- a: alpha
- });
- };
- TinyColor2.prototype.triad = function() {
- return this.polyad(3);
- };
- TinyColor2.prototype.tetrad = function() {
- return this.polyad(4);
- };
- TinyColor2.prototype.polyad = function(n) {
- var hsl = this.toHsl();
- var h3 = hsl.h;
- var result2 = [this];
- var increment = 360 / n;
- for (var i = 1; i < n; i++) {
- result2.push(new TinyColor2({ h: (h3 + i * increment) % 360, s: hsl.s, l: hsl.l }));
- }
- return result2;
- };
- TinyColor2.prototype.equals = function(color) {
- return this.toRgbString() === new TinyColor2(color).toRgbString();
- };
- return TinyColor2;
- })()
- );
- // node_modules/element-plus/es/components/button/src/button-custom.mjs
- function darken(color, amount = 20) {
- return color.mix("#141414", amount).toString();
- }
- function useButtonCustomStyle(props2) {
- const _disabled = useFormDisabled();
- const ns = useNamespace("button");
- return computed(() => {
- let styles = {};
- let buttonColor = props2.color;
- if (buttonColor) {
- const match = buttonColor.match(/var\((.*?)\)/);
- if (match) {
- buttonColor = window.getComputedStyle(window.document.documentElement).getPropertyValue(match[1]);
- }
- const color = new TinyColor(buttonColor);
- const activeBgColor = props2.dark ? color.tint(20).toString() : darken(color, 20);
- if (props2.plain) {
- styles = ns.cssVarBlock({
- "bg-color": props2.dark ? darken(color, 90) : color.tint(90).toString(),
- "text-color": buttonColor,
- "border-color": props2.dark ? darken(color, 50) : color.tint(50).toString(),
- "hover-text-color": `var(${ns.cssVarName("color-white")})`,
- "hover-bg-color": buttonColor,
- "hover-border-color": buttonColor,
- "active-bg-color": activeBgColor,
- "active-text-color": `var(${ns.cssVarName("color-white")})`,
- "active-border-color": activeBgColor
- });
- if (_disabled.value) {
- styles[ns.cssVarBlockName("disabled-bg-color")] = props2.dark ? darken(color, 90) : color.tint(90).toString();
- styles[ns.cssVarBlockName("disabled-text-color")] = props2.dark ? darken(color, 50) : color.tint(50).toString();
- styles[ns.cssVarBlockName("disabled-border-color")] = props2.dark ? darken(color, 80) : color.tint(80).toString();
- }
- } else {
- const hoverBgColor = props2.dark ? darken(color, 30) : color.tint(30).toString();
- const textColor = color.isDark() ? `var(${ns.cssVarName("color-white")})` : `var(${ns.cssVarName("color-black")})`;
- styles = ns.cssVarBlock({
- "bg-color": buttonColor,
- "text-color": textColor,
- "border-color": buttonColor,
- "hover-bg-color": hoverBgColor,
- "hover-text-color": textColor,
- "hover-border-color": hoverBgColor,
- "active-bg-color": activeBgColor,
- "active-border-color": activeBgColor
- });
- if (_disabled.value) {
- const disabledButtonColor = props2.dark ? darken(color, 50) : color.tint(50).toString();
- styles[ns.cssVarBlockName("disabled-bg-color")] = disabledButtonColor;
- styles[ns.cssVarBlockName("disabled-text-color")] = props2.dark ? "rgba(255, 255, 255, 0.5)" : `var(${ns.cssVarName("color-white")})`;
- styles[ns.cssVarBlockName("disabled-border-color")] = disabledButtonColor;
- }
- }
- }
- return styles;
- });
- }
- // node_modules/element-plus/es/components/button/src/button2.mjs
- var __default__19 = defineComponent({
- name: "ElButton"
- });
- var _sfc_main314 = defineComponent({
- ...__default__19,
- props: buttonProps,
- emits: buttonEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const buttonStyle = useButtonCustomStyle(props2);
- const ns = useNamespace("button");
- const {
- _ref,
- _size,
- _type,
- _disabled,
- _props,
- _plain,
- _round,
- _text,
- shouldAddSpace,
- handleClick
- } = useButton(props2, emit);
- const buttonKls = computed(() => [
- ns.b(),
- ns.m(_type.value),
- ns.m(_size.value),
- ns.is("disabled", _disabled.value),
- ns.is("loading", props2.loading),
- ns.is("plain", _plain.value),
- ns.is("round", _round.value),
- ns.is("circle", props2.circle),
- ns.is("text", _text.value),
- ns.is("link", props2.link),
- ns.is("has-bg", props2.bg)
- ]);
- expose({
- ref: _ref,
- size: _size,
- type: _type,
- disabled: _disabled,
- shouldAddSpace
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps({
- ref_key: "_ref",
- ref: _ref
- }, unref(_props), {
- class: unref(buttonKls),
- style: unref(buttonStyle),
- onClick: unref(handleClick)
- }), {
- default: withCtx(() => [
- _ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass(unref(ns).is("loading"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon)))
- ]),
- _: 1
- }, 8, ["class"]))
- ], 64)) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
- default: withCtx(() => [
- _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
- ]),
- _: 3
- })) : createCommentVNode("v-if", true),
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
- key: 2,
- class: normalizeClass({ [unref(ns).em("text", "expand")]: unref(shouldAddSpace) })
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 16, ["class", "style", "onClick"]);
- };
- }
- });
- var Button = _export_sfc(_sfc_main314, [["__file", "button.vue"]]);
- // node_modules/element-plus/es/components/button/src/button-group.mjs
- var buttonGroupProps = {
- size: buttonProps.size,
- type: buttonProps.type
- };
- // node_modules/element-plus/es/components/button/src/button-group2.mjs
- var __default__20 = defineComponent({
- name: "ElButtonGroup"
- });
- var _sfc_main315 = defineComponent({
- ...__default__20,
- props: buttonGroupProps,
- setup(__props) {
- const props2 = __props;
- provide(buttonGroupContextKey, reactive({
- size: toRef(props2, "size"),
- type: toRef(props2, "type")
- }));
- const ns = useNamespace("button");
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b("group"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2);
- };
- }
- });
- var ButtonGroup = _export_sfc(_sfc_main315, [["__file", "button-group.vue"]]);
- // node_modules/element-plus/es/components/button/index.mjs
- var ElButton = withInstall(Button, {
- ButtonGroup
- });
- var ElButtonGroup = withNoopInstall(ButtonGroup);
- // node_modules/element-plus/es/components/time-picker/src/utils.mjs
- var import_dayjs = __toESM(require_dayjs_min(), 1);
- var buildTimeList = (value, bound) => {
- return [
- value > 0 ? value - 1 : void 0,
- value,
- value < bound ? value + 1 : void 0
- ];
- };
- var rangeArr = (n) => Array.from(Array.from({ length: n }).keys());
- var extractDateFormat = (format2) => {
- return format2.replace(/\W?m{1,2}|\W?ZZ/g, "").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, "").trim();
- };
- var extractTimeFormat = (format2) => {
- return format2.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g, "").trim();
- };
- var dateEquals = function(a2, b2) {
- const aIsDate = isDate(a2);
- const bIsDate = isDate(b2);
- if (aIsDate && bIsDate) {
- return a2.getTime() === b2.getTime();
- }
- if (!aIsDate && !bIsDate) {
- return a2 === b2;
- }
- return false;
- };
- var valueEquals = function(a2, b2) {
- const aIsArray = isArray(a2);
- const bIsArray = isArray(b2);
- if (aIsArray && bIsArray) {
- if (a2.length !== b2.length) {
- return false;
- }
- return a2.every((item, index) => dateEquals(item, b2[index]));
- }
- if (!aIsArray && !bIsArray) {
- return dateEquals(a2, b2);
- }
- return false;
- };
- var parseDate = function(date4, format2, lang) {
- const day = isEmpty2(format2) || format2 === "x" ? (0, import_dayjs.default)(date4).locale(lang) : (0, import_dayjs.default)(date4, format2).locale(lang);
- return day.isValid() ? day : void 0;
- };
- var formatter = function(date4, format2, lang) {
- if (isEmpty2(format2))
- return date4;
- if (format2 === "x")
- return +date4;
- return (0, import_dayjs.default)(date4).locale(lang).format(format2);
- };
- var makeList = (total2, method5) => {
- var _a2;
- const arr = [];
- const disabledArr = method5 == null ? void 0 : method5();
- for (let i = 0; i < total2; i++) {
- arr.push((_a2 = disabledArr == null ? void 0 : disabledArr.includes(i)) != null ? _a2 : false);
- }
- return arr;
- };
- var dayOrDaysToDate = (dayOrDays) => {
- return isArray(dayOrDays) ? dayOrDays.map((d2) => d2.toDate()) : dayOrDays.toDate();
- };
- // node_modules/element-plus/es/components/calendar/src/date-table.mjs
- var getPrevMonthLastDays = (date4, count) => {
- const lastDay = date4.subtract(1, "month").endOf("month").date();
- return rangeArr(count).map((_2, index) => lastDay - (count - index - 1));
- };
- var getMonthDays = (date4) => {
- const days = date4.daysInMonth();
- return rangeArr(days).map((_2, index) => index + 1);
- };
- var toNestedArr = (days) => rangeArr(days.length / 7).map((index) => {
- const start = index * 7;
- return days.slice(start, start + 7);
- });
- var dateTableProps = buildProps({
- selectedDay: {
- type: definePropType(Object)
- },
- range: {
- type: definePropType(Array)
- },
- date: {
- type: definePropType(Object),
- required: true
- },
- hideHeader: {
- type: Boolean
- }
- });
- var dateTableEmits = {
- pick: (value) => isObject(value)
- };
- // node_modules/element-plus/es/components/calendar/src/use-date-table.mjs
- var import_dayjs2 = __toESM(require_dayjs_min(), 1);
- var import_localeData = __toESM(require_localeData(), 1);
- // node_modules/element-plus/es/constants/date.mjs
- var datePickTypes = [
- "year",
- "years",
- "month",
- "months",
- "date",
- "dates",
- "week",
- "datetime",
- "datetimerange",
- "daterange",
- "monthrange",
- "yearrange"
- ];
- var WEEK_DAYS = [
- "sun",
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat"
- ];
- // node_modules/element-plus/es/components/calendar/src/use-date-table.mjs
- var useDateTable = (props2, emit) => {
- import_dayjs2.default.extend(import_localeData.default);
- const firstDayOfWeek = import_dayjs2.default.localeData().firstDayOfWeek();
- const { t, lang } = useLocale();
- const now2 = (0, import_dayjs2.default)().locale(lang.value);
- const isInRange = computed(() => !!props2.range && !!props2.range.length);
- const rows = computed(() => {
- let days = [];
- if (isInRange.value) {
- const [start, end] = props2.range;
- const currentMonthRange = rangeArr(end.date() - start.date() + 1).map((index) => ({
- text: start.date() + index,
- type: "current"
- }));
- let remaining = currentMonthRange.length % 7;
- remaining = remaining === 0 ? 0 : 7 - remaining;
- const nextMonthRange = rangeArr(remaining).map((_2, index) => ({
- text: index + 1,
- type: "next"
- }));
- days = currentMonthRange.concat(nextMonthRange);
- } else {
- const firstDay = props2.date.startOf("month").day();
- const prevMonthDays = getPrevMonthLastDays(props2.date, (firstDay - firstDayOfWeek + 7) % 7).map((day) => ({
- text: day,
- type: "prev"
- }));
- const currentMonthDays = getMonthDays(props2.date).map((day) => ({
- text: day,
- type: "current"
- }));
- days = [...prevMonthDays, ...currentMonthDays];
- const remaining = 7 - (days.length % 7 || 7);
- const nextMonthDays = rangeArr(remaining).map((_2, index) => ({
- text: index + 1,
- type: "next"
- }));
- days = days.concat(nextMonthDays);
- }
- return toNestedArr(days);
- });
- const weekDays = computed(() => {
- const start = firstDayOfWeek;
- if (start === 0) {
- return WEEK_DAYS.map((_2) => t(`el.datepicker.weeks.${_2}`));
- } else {
- return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start)).map((_2) => t(`el.datepicker.weeks.${_2}`));
- }
- });
- const getFormattedDate = (day, type4) => {
- switch (type4) {
- case "prev":
- return props2.date.startOf("month").subtract(1, "month").date(day);
- case "next":
- return props2.date.startOf("month").add(1, "month").date(day);
- case "current":
- return props2.date.date(day);
- }
- };
- const handlePickDay = ({ text, type: type4 }) => {
- const date4 = getFormattedDate(text, type4);
- emit("pick", date4);
- };
- const getSlotData = ({ text, type: type4 }) => {
- const day = getFormattedDate(text, type4);
- return {
- isSelected: day.isSame(props2.selectedDay),
- type: `${type4}-month`,
- day: day.format("YYYY-MM-DD"),
- date: day.toDate()
- };
- };
- return {
- now: now2,
- isInRange,
- rows,
- weekDays,
- getFormattedDate,
- handlePickDay,
- getSlotData
- };
- };
- // node_modules/element-plus/es/components/calendar/src/date-table2.mjs
- var __default__21 = defineComponent({
- name: "DateTable"
- });
- var _sfc_main316 = defineComponent({
- ...__default__21,
- props: dateTableProps,
- emits: dateTableEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const {
- isInRange,
- now: now2,
- rows,
- weekDays,
- getFormattedDate,
- handlePickDay,
- getSlotData
- } = useDateTable(props2, emit);
- const nsTable = useNamespace("calendar-table");
- const nsDay = useNamespace("calendar-day");
- const getCellClass = ({ text, type: type4 }) => {
- const classes = [type4];
- if (type4 === "current") {
- const date4 = getFormattedDate(text, type4);
- if (date4.isSame(props2.selectedDay, "day")) {
- classes.push(nsDay.is("selected"));
- }
- if (date4.isSame(now2, "day")) {
- classes.push(nsDay.is("today"));
- }
- }
- return classes;
- };
- expose({
- getFormattedDate
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("table", {
- class: normalizeClass([unref(nsTable).b(), unref(nsTable).is("range", unref(isInRange))]),
- cellspacing: "0",
- cellpadding: "0"
- }, [
- !_ctx.hideHeader ? (openBlock(), createElementBlock("thead", { key: 0 }, [
- createBaseVNode("tr", null, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(weekDays), (day) => {
- return openBlock(), createElementBlock("th", {
- key: day,
- scope: "col"
- }, toDisplayString(day), 1);
- }), 128))
- ])
- ])) : createCommentVNode("v-if", true),
- createBaseVNode("tbody", null, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, index) => {
- return openBlock(), createElementBlock("tr", {
- key: index,
- class: normalizeClass({
- [unref(nsTable).e("row")]: true,
- [unref(nsTable).em("row", "hide-border")]: index === 0 && _ctx.hideHeader
- })
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key) => {
- return openBlock(), createElementBlock("td", {
- key,
- class: normalizeClass(getCellClass(cell)),
- onClick: ($event) => unref(handlePickDay)(cell)
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsDay).b())
- }, [
- renderSlot(_ctx.$slots, "date-cell", {
- data: unref(getSlotData)(cell)
- }, () => [
- createBaseVNode("span", null, toDisplayString(cell.text), 1)
- ])
- ], 2)
- ], 10, ["onClick"]);
- }), 128))
- ], 2);
- }), 128))
- ])
- ], 2);
- };
- }
- });
- var DateTable = _export_sfc(_sfc_main316, [["__file", "date-table.vue"]]);
- // node_modules/element-plus/es/components/calendar/src/use-calendar.mjs
- var import_dayjs3 = __toESM(require_dayjs_min(), 1);
- var adjacentMonth = (start, end) => {
- const firstMonthLastDay = start.endOf("month");
- const lastMonthFirstDay = end.startOf("month");
- const isSameWeek = firstMonthLastDay.isSame(lastMonthFirstDay, "week");
- const lastMonthStartDay = isSameWeek ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
- return [
- [start, firstMonthLastDay],
- [lastMonthStartDay.startOf("week"), end]
- ];
- };
- var threeConsecutiveMonth = (start, end) => {
- const firstMonthLastDay = start.endOf("month");
- const secondMonthFirstDay = start.add(1, "month").startOf("month");
- const secondMonthStartDay = firstMonthLastDay.isSame(secondMonthFirstDay, "week") ? secondMonthFirstDay.add(1, "week") : secondMonthFirstDay;
- const secondMonthLastDay = secondMonthStartDay.endOf("month");
- const lastMonthFirstDay = end.startOf("month");
- const lastMonthStartDay = secondMonthLastDay.isSame(lastMonthFirstDay, "week") ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
- return [
- [start, firstMonthLastDay],
- [secondMonthStartDay.startOf("week"), secondMonthLastDay],
- [lastMonthStartDay.startOf("week"), end]
- ];
- };
- var useCalendar = (props2, emit, componentName2) => {
- const { lang } = useLocale();
- const selectedDay = ref();
- const now2 = (0, import_dayjs3.default)().locale(lang.value);
- const realSelectedDay = computed({
- get() {
- if (!props2.modelValue)
- return selectedDay.value;
- return date4.value;
- },
- set(val) {
- if (!val)
- return;
- selectedDay.value = val;
- const result2 = val.toDate();
- emit(INPUT_EVENT, result2);
- emit(UPDATE_MODEL_EVENT, result2);
- }
- });
- const validatedRange = computed(() => {
- if (!props2.range || !isArray(props2.range) || props2.range.length !== 2 || props2.range.some((item) => !isDate(item)))
- return [];
- const rangeArrDayjs = props2.range.map((_2) => (0, import_dayjs3.default)(_2).locale(lang.value));
- const [startDayjs, endDayjs] = rangeArrDayjs;
- if (startDayjs.isAfter(endDayjs)) {
- return [];
- }
- if (startDayjs.isSame(endDayjs, "month")) {
- return calculateValidatedDateRange(startDayjs, endDayjs);
- } else {
- if (startDayjs.add(1, "month").month() !== endDayjs.month()) {
- return [];
- }
- return calculateValidatedDateRange(startDayjs, endDayjs);
- }
- });
- const date4 = computed(() => {
- if (!props2.modelValue) {
- return realSelectedDay.value || (validatedRange.value.length ? validatedRange.value[0][0] : now2);
- } else {
- return (0, import_dayjs3.default)(props2.modelValue).locale(lang.value);
- }
- });
- const prevMonthDayjs = computed(() => date4.value.subtract(1, "month").date(1));
- const nextMonthDayjs = computed(() => date4.value.add(1, "month").date(1));
- const prevYearDayjs = computed(() => date4.value.subtract(1, "year").date(1));
- const nextYearDayjs = computed(() => date4.value.add(1, "year").date(1));
- const calculateValidatedDateRange = (startDayjs, endDayjs) => {
- const firstDay = startDayjs.startOf("week");
- const lastDay = endDayjs.endOf("week");
- const firstMonth = firstDay.get("month");
- const lastMonth = lastDay.get("month");
- if (firstMonth === lastMonth) {
- return [[firstDay, lastDay]];
- } else if ((firstMonth + 1) % 12 === lastMonth) {
- return adjacentMonth(firstDay, lastDay);
- } else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
- return threeConsecutiveMonth(firstDay, lastDay);
- } else {
- return [];
- }
- };
- const pickDay = (day) => {
- realSelectedDay.value = day;
- };
- const selectDate = (type4) => {
- const dateMap = {
- "prev-month": prevMonthDayjs.value,
- "next-month": nextMonthDayjs.value,
- "prev-year": prevYearDayjs.value,
- "next-year": nextYearDayjs.value,
- today: now2
- };
- const day = dateMap[type4];
- if (!day.isSame(date4.value, "day")) {
- pickDay(day);
- }
- };
- return {
- calculateValidatedDateRange,
- date: date4,
- realSelectedDay,
- pickDay,
- selectDate,
- validatedRange
- };
- };
- // node_modules/element-plus/es/components/calendar/src/calendar.mjs
- var isValidRange = (range4) => isArray(range4) && range4.length === 2 && range4.every((item) => isDate(item));
- var calendarProps = buildProps({
- modelValue: {
- type: Date
- },
- range: {
- type: definePropType(Array),
- validator: isValidRange
- }
- });
- var calendarEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isDate(value),
- [INPUT_EVENT]: (value) => isDate(value)
- };
- // node_modules/element-plus/es/components/calendar/src/calendar2.mjs
- var COMPONENT_NAME7 = "ElCalendar";
- var __default__22 = defineComponent({
- name: COMPONENT_NAME7
- });
- var _sfc_main317 = defineComponent({
- ...__default__22,
- props: calendarProps,
- emits: calendarEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("calendar");
- const {
- calculateValidatedDateRange,
- date: date4,
- pickDay,
- realSelectedDay,
- selectDate,
- validatedRange
- } = useCalendar(props2, emit);
- const { t } = useLocale();
- const i18nDate = computed(() => {
- const pickedMonth = `el.datepicker.month${date4.value.format("M")}`;
- return `${date4.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
- });
- expose({
- selectedDay: realSelectedDay,
- pickDay,
- selectDate,
- calculateValidatedDateRange
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("header"))
- }, [
- renderSlot(_ctx.$slots, "header", { date: unref(i18nDate) }, () => [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("title"))
- }, toDisplayString(unref(i18nDate)), 3),
- unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("button-group"))
- }, [
- createVNode(unref(ElButtonGroup), null, {
- default: withCtx(() => [
- createVNode(unref(ElButton), {
- size: "small",
- onClick: ($event) => unref(selectDate)("prev-month")
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.prevMonth")), 1)
- ]),
- _: 1
- }, 8, ["onClick"]),
- createVNode(unref(ElButton), {
- size: "small",
- onClick: ($event) => unref(selectDate)("today")
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.today")), 1)
- ]),
- _: 1
- }, 8, ["onClick"]),
- createVNode(unref(ElButton), {
- size: "small",
- onClick: ($event) => unref(selectDate)("next-month")
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.nextMonth")), 1)
- ]),
- _: 1
- }, 8, ["onClick"])
- ]),
- _: 1
- })
- ], 2)) : createCommentVNode("v-if", true)
- ])
- ], 2),
- unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("body"))
- }, [
- createVNode(DateTable, {
- date: unref(date4),
- "selected-day": unref(realSelectedDay),
- onPick: unref(pickDay)
- }, createSlots({
- _: 2
- }, [
- _ctx.$slots["date-cell"] ? {
- name: "date-cell",
- fn: withCtx((data) => [
- renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
- ])
- } : void 0
- ]), 1032, ["date", "selected-day", "onPick"])
- ], 2)) : (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("body"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(validatedRange), (range_, index) => {
- return openBlock(), createBlock(DateTable, {
- key: index,
- date: range_[0],
- "selected-day": unref(realSelectedDay),
- range: range_,
- "hide-header": index !== 0,
- onPick: unref(pickDay)
- }, createSlots({
- _: 2
- }, [
- _ctx.$slots["date-cell"] ? {
- name: "date-cell",
- fn: withCtx((data) => [
- renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
- ])
- } : void 0
- ]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
- }), 128))
- ], 2))
- ], 2);
- };
- }
- });
- var Calendar = _export_sfc(_sfc_main317, [["__file", "calendar.vue"]]);
- // node_modules/element-plus/es/components/calendar/index.mjs
- var ElCalendar = withInstall(Calendar);
- // node_modules/element-plus/es/components/card/src/card.mjs
- var cardProps = buildProps({
- header: {
- type: String,
- default: ""
- },
- footer: {
- type: String,
- default: ""
- },
- bodyStyle: {
- type: definePropType([String, Object, Array]),
- default: ""
- },
- headerClass: String,
- bodyClass: String,
- footerClass: String,
- shadow: {
- type: String,
- values: ["always", "hover", "never"],
- default: void 0
- }
- });
- var cardContextKey = Symbol("cardContextKey");
- // node_modules/element-plus/es/components/card/src/card2.mjs
- var __default__23 = defineComponent({
- name: "ElCard"
- });
- var _sfc_main318 = defineComponent({
- ...__default__23,
- props: cardProps,
- setup(__props) {
- const globalConfig2 = useGlobalConfig("card");
- const ns = useNamespace("card");
- return (_ctx, _cache) => {
- var _a2;
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ns).b(),
- unref(ns).is(`${_ctx.shadow || ((_a2 = unref(globalConfig2)) == null ? void 0 : _a2.shadow) || "always"}-shadow`)
- ])
- }, [
- _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
- }, [
- renderSlot(_ctx.$slots, "header", {}, () => [
- createTextVNode(toDisplayString(_ctx.header), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
- style: normalizeStyle(_ctx.bodyStyle)
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 6),
- _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
- }, [
- renderSlot(_ctx.$slots, "footer", {}, () => [
- createTextVNode(toDisplayString(_ctx.footer), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var Card = _export_sfc(_sfc_main318, [["__file", "card.vue"]]);
- // node_modules/element-plus/es/components/card/index.mjs
- var ElCard = withInstall(Card);
- // node_modules/element-plus/es/components/carousel/src/carousel.mjs
- var carouselProps = buildProps({
- initialIndex: {
- type: Number,
- default: 0
- },
- height: {
- type: String,
- default: ""
- },
- trigger: {
- type: String,
- values: ["hover", "click"],
- default: "hover"
- },
- autoplay: {
- type: Boolean,
- default: true
- },
- interval: {
- type: Number,
- default: 3e3
- },
- indicatorPosition: {
- type: String,
- values: ["", "none", "outside"],
- default: ""
- },
- arrow: {
- type: String,
- values: ["always", "hover", "never"],
- default: "hover"
- },
- type: {
- type: String,
- values: ["", "card"],
- default: ""
- },
- cardScale: {
- type: Number,
- default: 0.83
- },
- loop: {
- type: Boolean,
- default: true
- },
- direction: {
- type: String,
- values: ["horizontal", "vertical"],
- default: "horizontal"
- },
- pauseOnHover: {
- type: Boolean,
- default: true
- },
- motionBlur: Boolean
- });
- var carouselEmits = {
- change: (current, prev) => [current, prev].every(isNumber2)
- };
- // node_modules/element-plus/es/components/carousel/src/constants.mjs
- var carouselContextKey = Symbol("carouselContextKey");
- var CAROUSEL_ITEM_NAME = "ElCarouselItem";
- // node_modules/element-plus/es/utils/vue/vnode.mjs
- var PatchFlags = ((PatchFlags2) => {
- PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT";
- PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS";
- PatchFlags2[PatchFlags2["STYLE"] = 4] = "STYLE";
- PatchFlags2[PatchFlags2["PROPS"] = 8] = "PROPS";
- PatchFlags2[PatchFlags2["FULL_PROPS"] = 16] = "FULL_PROPS";
- PatchFlags2[PatchFlags2["HYDRATE_EVENTS"] = 32] = "HYDRATE_EVENTS";
- PatchFlags2[PatchFlags2["STABLE_FRAGMENT"] = 64] = "STABLE_FRAGMENT";
- PatchFlags2[PatchFlags2["KEYED_FRAGMENT"] = 128] = "KEYED_FRAGMENT";
- PatchFlags2[PatchFlags2["UNKEYED_FRAGMENT"] = 256] = "UNKEYED_FRAGMENT";
- PatchFlags2[PatchFlags2["NEED_PATCH"] = 512] = "NEED_PATCH";
- PatchFlags2[PatchFlags2["DYNAMIC_SLOTS"] = 1024] = "DYNAMIC_SLOTS";
- PatchFlags2[PatchFlags2["HOISTED"] = -1] = "HOISTED";
- PatchFlags2[PatchFlags2["BAIL"] = -2] = "BAIL";
- return PatchFlags2;
- })(PatchFlags || {});
- function isFragment(node) {
- return isVNode(node) && node.type === Fragment;
- }
- function isComment(node) {
- return isVNode(node) && node.type === Comment;
- }
- function isValidElementNode(node) {
- return isVNode(node) && !isFragment(node) && !isComment(node);
- }
- var getNormalizedProps = (node) => {
- if (!isVNode(node)) {
- return {};
- }
- const raw = node.props || {};
- const type4 = (isVNode(node.type) ? node.type.props : void 0) || {};
- const props2 = {};
- Object.keys(type4).forEach((key) => {
- if (hasOwn(type4[key], "default")) {
- props2[key] = type4[key].default;
- }
- });
- Object.keys(raw).forEach((key) => {
- props2[camelize(key)] = raw[key];
- });
- return props2;
- };
- var ensureOnlyChild = (children) => {
- if (!isArray(children) || children.length > 1) {
- throw new Error("expect to receive a single Vue element child");
- }
- return children[0];
- };
- var flattedChildren = (children) => {
- const vNodes = isArray(children) ? children : [children];
- const result2 = [];
- vNodes.forEach((child) => {
- var _a2;
- if (isArray(child)) {
- result2.push(...flattedChildren(child));
- } else if (isVNode(child) && ((_a2 = child.component) == null ? void 0 : _a2.subTree)) {
- result2.push(child, ...flattedChildren(child.component.subTree));
- } else if (isVNode(child) && isArray(child.children)) {
- result2.push(...flattedChildren(child.children));
- } else if (isVNode(child) && child.shapeFlag === 2) {
- result2.push(...flattedChildren(child.type()));
- } else {
- result2.push(child);
- }
- });
- return result2;
- };
- // node_modules/element-plus/es/hooks/use-ordered-children/index.mjs
- var getOrderedChildren = (vm, childComponentName, children) => {
- const nodes = flattedChildren(vm.subTree).filter((n) => {
- var _a2;
- return isVNode(n) && ((_a2 = n.type) == null ? void 0 : _a2.name) === childComponentName && !!n.component;
- });
- const uids = nodes.map((n) => n.component.uid);
- return uids.map((uid2) => children[uid2]).filter((p2) => !!p2);
- };
- var useOrderedChildren = (vm, childComponentName) => {
- const children = shallowRef({});
- const orderedChildren = shallowRef([]);
- const nodesMap = /* @__PURE__ */ new WeakMap();
- const addChild = (child) => {
- children.value[child.uid] = child;
- triggerRef(children);
- onMounted(() => {
- const childNode = child.getVnode().el;
- const parentNode = childNode.parentNode;
- if (!nodesMap.has(parentNode)) {
- nodesMap.set(parentNode, []);
- const originalFn = parentNode.insertBefore.bind(parentNode);
- parentNode.insertBefore = (node, anchor) => {
- const shouldSortChildren = nodesMap.get(parentNode).some((el) => node === el || anchor === el);
- if (shouldSortChildren)
- triggerRef(children);
- return originalFn(node, anchor);
- };
- }
- nodesMap.get(parentNode).push(childNode);
- });
- };
- const removeChild = (child) => {
- delete children.value[child.uid];
- triggerRef(children);
- const childNode = child.getVnode().el;
- const parentNode = childNode.parentNode;
- const childNodes = nodesMap.get(parentNode);
- const index = childNodes.indexOf(childNode);
- childNodes.splice(index, 1);
- };
- const sortChildren = () => {
- orderedChildren.value = getOrderedChildren(vm, childComponentName, children.value);
- };
- const IsolatedRenderer = (props2) => {
- return props2.render();
- };
- const ChildrenSorter = defineComponent({
- setup(_2, { slots }) {
- return () => {
- sortChildren();
- return slots.default ? h(IsolatedRenderer, {
- render: slots.default
- }) : null;
- };
- }
- });
- return {
- children: orderedChildren,
- addChild,
- removeChild,
- ChildrenSorter
- };
- };
- // node_modules/element-plus/es/components/carousel/src/use-carousel.mjs
- var THROTTLE_TIME = 300;
- var useCarousel = (props2, emit, componentName2) => {
- const {
- children: items,
- addChild: addItem,
- removeChild: removeItem,
- ChildrenSorter: ItemsSorter
- } = useOrderedChildren(getCurrentInstance(), CAROUSEL_ITEM_NAME);
- const slots = useSlots();
- const activeIndex = ref(-1);
- const timer = ref(null);
- const hover = ref(false);
- const root2 = ref();
- const containerHeight = ref(0);
- const isItemsTwoLength = ref(true);
- const arrowDisplay = computed(() => props2.arrow !== "never" && !unref(isVertical));
- const hasLabel = computed(() => {
- return items.value.some((item) => item.props.label.toString().length > 0);
- });
- const isCardType = computed(() => props2.type === "card");
- const isVertical = computed(() => props2.direction === "vertical");
- const containerStyle = computed(() => {
- if (props2.height !== "auto") {
- return {
- height: props2.height
- };
- }
- return {
- height: `${containerHeight.value}px`,
- overflow: "hidden"
- };
- });
- const throttledArrowClick = throttle_default((index) => {
- setActiveItem(index);
- }, THROTTLE_TIME, { trailing: true });
- const throttledIndicatorHover = throttle_default((index) => {
- handleIndicatorHover(index);
- }, THROTTLE_TIME);
- const isTwoLengthShow = (index) => {
- if (!isItemsTwoLength.value)
- return true;
- return activeIndex.value <= 1 ? index <= 1 : index > 1;
- };
- function pauseTimer() {
- if (timer.value) {
- clearInterval(timer.value);
- timer.value = null;
- }
- }
- function startTimer() {
- if (props2.interval <= 0 || !props2.autoplay || timer.value)
- return;
- timer.value = setInterval(() => playSlides(), props2.interval);
- }
- const playSlides = () => {
- if (activeIndex.value < items.value.length - 1) {
- activeIndex.value = activeIndex.value + 1;
- } else if (props2.loop) {
- activeIndex.value = 0;
- }
- };
- function setActiveItem(index) {
- if (isString(index)) {
- const filteredItems = items.value.filter((item) => item.props.name === index);
- if (filteredItems.length > 0) {
- index = items.value.indexOf(filteredItems[0]);
- }
- }
- index = Number(index);
- if (Number.isNaN(index) || index !== Math.floor(index)) {
- return;
- }
- const itemCount = items.value.length;
- const oldIndex = activeIndex.value;
- if (index < 0) {
- activeIndex.value = props2.loop ? itemCount - 1 : 0;
- } else if (index >= itemCount) {
- activeIndex.value = props2.loop ? 0 : itemCount - 1;
- } else {
- activeIndex.value = index;
- }
- if (oldIndex === activeIndex.value) {
- resetItemPosition(oldIndex);
- }
- resetTimer();
- }
- function resetItemPosition(oldIndex) {
- items.value.forEach((item, index) => {
- item.translateItem(index, activeIndex.value, oldIndex);
- });
- }
- function itemInStage(item, index) {
- var _a2, _b, _c, _d;
- const _items = unref(items);
- const itemCount = _items.length;
- if (itemCount === 0 || !item.states.inStage)
- return false;
- const nextItemIndex = index + 1;
- const prevItemIndex = index - 1;
- const lastItemIndex = itemCount - 1;
- const isLastItemActive = _items[lastItemIndex].states.active;
- const isFirstItemActive = _items[0].states.active;
- const isNextItemActive = (_b = (_a2 = _items[nextItemIndex]) == null ? void 0 : _a2.states) == null ? void 0 : _b.active;
- const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
- if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
- return "left";
- } else if (index === 0 && isLastItemActive || isPrevItemActive) {
- return "right";
- }
- return false;
- }
- function handleMouseEnter() {
- hover.value = true;
- if (props2.pauseOnHover) {
- pauseTimer();
- }
- }
- function handleMouseLeave() {
- hover.value = false;
- startTimer();
- }
- function handleButtonEnter(arrow3) {
- if (unref(isVertical))
- return;
- items.value.forEach((item, index) => {
- if (arrow3 === itemInStage(item, index)) {
- item.states.hover = true;
- }
- });
- }
- function handleButtonLeave() {
- if (unref(isVertical))
- return;
- items.value.forEach((item) => {
- item.states.hover = false;
- });
- }
- function handleIndicatorClick(index) {
- activeIndex.value = index;
- }
- function handleIndicatorHover(index) {
- if (props2.trigger === "hover" && index !== activeIndex.value) {
- activeIndex.value = index;
- }
- }
- function prev() {
- setActiveItem(activeIndex.value - 1);
- }
- function next() {
- setActiveItem(activeIndex.value + 1);
- }
- function resetTimer() {
- pauseTimer();
- if (!props2.pauseOnHover)
- startTimer();
- }
- function setContainerHeight(height) {
- if (props2.height !== "auto")
- return;
- containerHeight.value = height;
- }
- function PlaceholderItem() {
- var _a2;
- const defaultSlots = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
- if (!defaultSlots)
- return null;
- const flatSlots = flattedChildren(defaultSlots);
- const normalizeSlots = flatSlots.filter((slot) => {
- return isVNode(slot) && slot.type.name === CAROUSEL_ITEM_NAME;
- });
- if ((normalizeSlots == null ? void 0 : normalizeSlots.length) === 2 && props2.loop && !isCardType.value) {
- isItemsTwoLength.value = true;
- return normalizeSlots;
- }
- isItemsTwoLength.value = false;
- return null;
- }
- watch(() => activeIndex.value, (current, prev2) => {
- resetItemPosition(prev2);
- if (isItemsTwoLength.value) {
- current = current % 2;
- prev2 = prev2 % 2;
- }
- if (prev2 > -1) {
- emit(CHANGE_EVENT, current, prev2);
- }
- });
- const exposeActiveIndex = computed({
- get: () => {
- return isItemsTwoLength.value ? activeIndex.value % 2 : activeIndex.value;
- },
- set: (value) => activeIndex.value = value
- });
- watch(() => props2.autoplay, (autoplay) => {
- autoplay ? startTimer() : pauseTimer();
- });
- watch(() => props2.loop, () => {
- setActiveItem(activeIndex.value);
- });
- watch(() => props2.interval, () => {
- resetTimer();
- });
- const resizeObserver = shallowRef();
- onMounted(() => {
- watch(() => items.value, () => {
- if (items.value.length > 0)
- setActiveItem(props2.initialIndex);
- }, {
- immediate: true
- });
- resizeObserver.value = useResizeObserver(root2.value, () => {
- resetItemPosition();
- });
- startTimer();
- });
- onBeforeUnmount(() => {
- pauseTimer();
- if (root2.value && resizeObserver.value)
- resizeObserver.value.stop();
- });
- provide(carouselContextKey, {
- root: root2,
- isCardType,
- isVertical,
- items,
- loop: props2.loop,
- cardScale: props2.cardScale,
- addItem,
- removeItem,
- setActiveItem,
- setContainerHeight
- });
- return {
- root: root2,
- activeIndex,
- exposeActiveIndex,
- arrowDisplay,
- hasLabel,
- hover,
- isCardType,
- items,
- isVertical,
- containerStyle,
- isItemsTwoLength,
- handleButtonEnter,
- handleButtonLeave,
- handleIndicatorClick,
- handleMouseEnter,
- handleMouseLeave,
- setActiveItem,
- prev,
- next,
- PlaceholderItem,
- isTwoLengthShow,
- ItemsSorter,
- throttledArrowClick,
- throttledIndicatorHover
- };
- };
- // node_modules/element-plus/es/components/carousel/src/carousel2.mjs
- var COMPONENT_NAME8 = "ElCarousel";
- var __default__24 = defineComponent({
- name: COMPONENT_NAME8
- });
- var _sfc_main319 = defineComponent({
- ...__default__24,
- props: carouselProps,
- emits: carouselEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const {
- root: root2,
- activeIndex,
- exposeActiveIndex,
- arrowDisplay,
- hasLabel,
- hover,
- isCardType,
- items,
- isVertical,
- containerStyle,
- handleButtonEnter,
- handleButtonLeave,
- handleIndicatorClick,
- handleMouseEnter,
- handleMouseLeave,
- setActiveItem,
- prev,
- next,
- PlaceholderItem,
- isTwoLengthShow,
- ItemsSorter,
- throttledArrowClick,
- throttledIndicatorHover
- } = useCarousel(props2, emit);
- const ns = useNamespace("carousel");
- const { t } = useLocale();
- const carouselClasses = computed(() => {
- const classes = [ns.b(), ns.m(props2.direction)];
- if (unref(isCardType)) {
- classes.push(ns.m("card"));
- }
- return classes;
- });
- const indicatorsClasses = computed(() => {
- const classes = [ns.e("indicators"), ns.em("indicators", props2.direction)];
- if (unref(hasLabel)) {
- classes.push(ns.em("indicators", "labels"));
- }
- if (props2.indicatorPosition === "outside") {
- classes.push(ns.em("indicators", "outside"));
- }
- if (unref(isVertical)) {
- classes.push(ns.em("indicators", "right"));
- }
- return classes;
- });
- function handleTransitionStart(e) {
- if (!props2.motionBlur)
- return;
- const kls = unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`;
- e.currentTarget.classList.add(kls);
- }
- function handleTransitionEnd(e) {
- if (!props2.motionBlur)
- return;
- const kls = unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`;
- e.currentTarget.classList.remove(kls);
- }
- expose({
- activeIndex: exposeActiveIndex,
- setActiveItem,
- prev,
- next
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "root",
- ref: root2,
- class: normalizeClass(unref(carouselClasses)),
- onMouseenter: withModifiers(unref(handleMouseEnter), ["stop"]),
- onMouseleave: withModifiers(unref(handleMouseLeave), ["stop"])
- }, [
- unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
- key: 0,
- name: "carousel-arrow-left",
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
- "aria-label": unref(t)("el.carousel.leftArrow"),
- onMouseenter: ($event) => unref(handleButtonEnter)("left"),
- onMouseleave: unref(handleButtonLeave),
- onClick: withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"])
- }, [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_left_default))
- ]),
- _: 1
- })
- ], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
- [
- vShow,
- (_ctx.arrow === "always" || unref(hover)) && (props2.loop || unref(activeIndex) > 0)
- ]
- ])
- ]),
- _: 1
- })) : createCommentVNode("v-if", true),
- unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
- key: 1,
- name: "carousel-arrow-right",
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
- "aria-label": unref(t)("el.carousel.rightArrow"),
- onMouseenter: ($event) => unref(handleButtonEnter)("right"),
- onMouseleave: unref(handleButtonLeave),
- onClick: withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"])
- }, [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
- [
- vShow,
- (_ctx.arrow === "always" || unref(hover)) && (props2.loop || unref(activeIndex) < unref(items).length - 1)
- ]
- ])
- ]),
- _: 1
- })) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("container")),
- style: normalizeStyle(unref(containerStyle)),
- onTransitionstart: handleTransitionStart,
- onTransitionend: handleTransitionEnd
- }, [
- createVNode(unref(PlaceholderItem)),
- renderSlot(_ctx.$slots, "default")
- ], 38),
- createVNode(unref(ItemsSorter), null, {
- default: withCtx(() => [
- _ctx.indicatorPosition !== "none" ? (openBlock(), createElementBlock("ul", {
- key: 0,
- class: normalizeClass(unref(indicatorsClasses))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item, index) => {
- return withDirectives((openBlock(), createElementBlock("li", {
- key: index,
- class: normalizeClass([
- unref(ns).e("indicator"),
- unref(ns).em("indicator", _ctx.direction),
- unref(ns).is("active", index === unref(activeIndex))
- ]),
- onMouseenter: ($event) => unref(throttledIndicatorHover)(index),
- onClick: withModifiers(($event) => unref(handleIndicatorClick)(index), ["stop"])
- }, [
- createBaseVNode("button", {
- class: normalizeClass(unref(ns).e("button")),
- "aria-label": unref(t)("el.carousel.indicator", { index: index + 1 })
- }, [
- unref(hasLabel) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
- ], 10, ["aria-label"])
- ], 42, ["onMouseenter", "onClick"])), [
- [vShow, unref(isTwoLengthShow)(index)]
- ]);
- }), 128))
- ], 2)) : createCommentVNode("v-if", true)
- ]),
- _: 1
- }),
- props2.motionBlur ? (openBlock(), createElementBlock("svg", {
- key: 2,
- xmlns: "http://www.w3.org/2000/svg",
- version: "1.1",
- style: { "display": "none" }
- }, [
- createBaseVNode("defs", null, [
- createBaseVNode("filter", { id: "elCarouselHorizontal" }, [
- createBaseVNode("feGaussianBlur", {
- in: "SourceGraphic",
- stdDeviation: "12,0"
- })
- ]),
- createBaseVNode("filter", { id: "elCarouselVertical" }, [
- createBaseVNode("feGaussianBlur", {
- in: "SourceGraphic",
- stdDeviation: "0,10"
- })
- ])
- ])
- ])) : createCommentVNode("v-if", true)
- ], 42, ["onMouseenter", "onMouseleave"]);
- };
- }
- });
- var Carousel = _export_sfc(_sfc_main319, [["__file", "carousel.vue"]]);
- // node_modules/element-plus/es/components/carousel/src/carousel-item.mjs
- var carouselItemProps = buildProps({
- name: { type: String, default: "" },
- label: {
- type: [String, Number],
- default: ""
- }
- });
- // node_modules/element-plus/es/components/carousel/src/use-carousel-item.mjs
- var useCarouselItem = (props2) => {
- const carouselContext = inject(carouselContextKey);
- const instance = getCurrentInstance();
- const carouselItemRef = ref();
- const hover = ref(false);
- const translate2 = ref(0);
- const scale = ref(1);
- const active = ref(false);
- const ready = ref(false);
- const inStage = ref(false);
- const animating = ref(false);
- const { isCardType, isVertical, cardScale } = carouselContext;
- function processIndex(index, activeIndex, length) {
- const lastItemIndex = length - 1;
- const prevItemIndex = activeIndex - 1;
- const nextItemIndex = activeIndex + 1;
- const halfItemIndex = length / 2;
- if (activeIndex === 0 && index === lastItemIndex) {
- return -1;
- } else if (activeIndex === lastItemIndex && index === 0) {
- return length;
- } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
- return length + 1;
- } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
- return -2;
- }
- return index;
- }
- function calcCardTranslate(index, activeIndex) {
- var _a2, _b;
- const parentWidth = unref(isVertical) ? ((_a2 = carouselContext.root.value) == null ? void 0 : _a2.offsetHeight) || 0 : ((_b = carouselContext.root.value) == null ? void 0 : _b.offsetWidth) || 0;
- if (inStage.value) {
- return parentWidth * ((2 - cardScale) * (index - activeIndex) + 1) / 4;
- } else if (index < activeIndex) {
- return -(1 + cardScale) * parentWidth / 4;
- } else {
- return (3 + cardScale) * parentWidth / 4;
- }
- }
- function calcTranslate(index, activeIndex, isVertical2) {
- const rootEl = carouselContext.root.value;
- if (!rootEl)
- return 0;
- const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
- return distance * (index - activeIndex);
- }
- const translateItem = (index, activeIndex, oldIndex) => {
- var _a2;
- const _isCardType = unref(isCardType);
- const carouselItemLength = (_a2 = carouselContext.items.value.length) != null ? _a2 : Number.NaN;
- const isActive = index === activeIndex;
- if (!_isCardType && !isUndefined2(oldIndex)) {
- animating.value = isActive || index === oldIndex;
- }
- if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
- index = processIndex(index, activeIndex, carouselItemLength);
- }
- const _isVertical = unref(isVertical);
- active.value = isActive;
- if (_isCardType) {
- inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
- translate2.value = calcCardTranslate(index, activeIndex);
- scale.value = unref(active) ? 1 : cardScale;
- } else {
- translate2.value = calcTranslate(index, activeIndex, _isVertical);
- }
- ready.value = true;
- if (isActive && carouselItemRef.value) {
- carouselContext.setContainerHeight(carouselItemRef.value.offsetHeight);
- }
- };
- function handleItemClick() {
- if (carouselContext && unref(isCardType)) {
- const index = carouselContext.items.value.findIndex(({ uid: uid2 }) => uid2 === instance.uid);
- carouselContext.setActiveItem(index);
- }
- }
- const carouselItemContext = {
- props: props2,
- states: reactive({
- hover,
- translate: translate2,
- scale,
- active,
- ready,
- inStage,
- animating
- }),
- uid: instance.uid,
- getVnode: () => instance.vnode,
- translateItem
- };
- carouselContext.addItem(carouselItemContext);
- onBeforeUnmount(() => {
- carouselContext.removeItem(carouselItemContext);
- });
- return {
- carouselItemRef,
- active,
- animating,
- hover,
- inStage,
- isVertical,
- translate: translate2,
- isCardType,
- scale,
- ready,
- handleItemClick
- };
- };
- // node_modules/element-plus/es/components/carousel/src/carousel-item2.mjs
- var __default__25 = defineComponent({
- name: CAROUSEL_ITEM_NAME
- });
- var _sfc_main320 = defineComponent({
- ...__default__25,
- props: carouselItemProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("carousel");
- const {
- carouselItemRef,
- active,
- animating,
- hover,
- inStage,
- isVertical,
- translate: translate2,
- isCardType,
- scale,
- ready,
- handleItemClick
- } = useCarouselItem(props2);
- const itemKls = computed(() => [
- ns.e("item"),
- ns.is("active", active.value),
- ns.is("in-stage", inStage.value),
- ns.is("hover", hover.value),
- ns.is("animating", animating.value),
- {
- [ns.em("item", "card")]: isCardType.value,
- [ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
- }
- ]);
- const itemStyle = computed(() => {
- const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
- const _translate = `${translateType}(${unref(translate2)}px)`;
- const _scale = `scale(${unref(scale)})`;
- const transform2 = [_translate, _scale].join(" ");
- return {
- transform: transform2
- };
- });
- return (_ctx, _cache) => {
- return withDirectives((openBlock(), createElementBlock("div", {
- ref_key: "carouselItemRef",
- ref: carouselItemRef,
- class: normalizeClass(unref(itemKls)),
- style: normalizeStyle(unref(itemStyle)),
- onClick: unref(handleItemClick)
- }, [
- unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("mask"))
- }, null, 2)), [
- [vShow, !unref(active)]
- ]) : createCommentVNode("v-if", true),
- renderSlot(_ctx.$slots, "default")
- ], 14, ["onClick"])), [
- [vShow, unref(ready)]
- ]);
- };
- }
- });
- var CarouselItem = _export_sfc(_sfc_main320, [["__file", "carousel-item.vue"]]);
- // node_modules/element-plus/es/components/carousel/index.mjs
- var ElCarousel = withInstall(Carousel, {
- CarouselItem
- });
- var ElCarouselItem = withNoopInstall(CarouselItem);
- // node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
- var checkboxProps = {
- modelValue: {
- type: [Number, String, Boolean],
- default: void 0
- },
- label: {
- type: [String, Boolean, Number, Object],
- default: void 0
- },
- value: {
- type: [String, Boolean, Number, Object],
- default: void 0
- },
- indeterminate: Boolean,
- disabled: Boolean,
- checked: Boolean,
- name: {
- type: String,
- default: void 0
- },
- trueValue: {
- type: [String, Number],
- default: void 0
- },
- falseValue: {
- type: [String, Number],
- default: void 0
- },
- trueLabel: {
- type: [String, Number],
- default: void 0
- },
- falseLabel: {
- type: [String, Number],
- default: void 0
- },
- id: {
- type: String,
- default: void 0
- },
- border: Boolean,
- size: useSizeProp,
- tabindex: [String, Number],
- validateEvent: {
- type: Boolean,
- default: true
- },
- ...useAriaProps(["ariaControls"])
- };
- var checkboxEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val),
- change: (val) => isString(val) || isNumber2(val) || isBoolean2(val)
- };
- // node_modules/element-plus/es/components/checkbox/src/constants.mjs
- var checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
- // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.mjs
- var useCheckboxDisabled = ({
- model,
- isChecked
- }) => {
- const checkboxGroup = inject(checkboxGroupContextKey, void 0);
- const isLimitDisabled = computed(() => {
- var _a2, _b;
- const max4 = (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a2.value;
- const min4 = (_b = checkboxGroup == null ? void 0 : checkboxGroup.min) == null ? void 0 : _b.value;
- return !isUndefined2(max4) && model.value.length >= max4 && !isChecked.value || !isUndefined2(min4) && model.value.length <= min4 && isChecked.value;
- });
- const isDisabled = useFormDisabled(computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.disabled.value) || isLimitDisabled.value));
- return {
- isDisabled,
- isLimitDisabled
- };
- };
- // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.mjs
- var useCheckboxEvent = (props2, {
- model,
- isLimitExceeded,
- hasOwnLabel,
- isDisabled,
- isLabeledByFormItem
- }) => {
- const checkboxGroup = inject(checkboxGroupContextKey, void 0);
- const { formItem } = useFormItem();
- const { emit } = getCurrentInstance();
- function getLabeledValue(value) {
- var _a2, _b, _c, _d;
- 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;
- }
- function emitChangeEvent(checked, e) {
- emit(CHANGE_EVENT, getLabeledValue(checked), e);
- }
- function handleChange(e) {
- if (isLimitExceeded.value)
- return;
- const target2 = e.target;
- emit(CHANGE_EVENT, getLabeledValue(target2.checked), e);
- }
- async function onClickRoot(e) {
- if (isLimitExceeded.value)
- return;
- if (!hasOwnLabel.value && !isDisabled.value && isLabeledByFormItem.value) {
- const eventTargets = e.composedPath();
- const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
- if (!hasLabel) {
- model.value = getLabeledValue([false, props2.falseValue, props2.falseLabel].includes(model.value));
- await nextTick();
- emitChangeEvent(model.value, e);
- }
- }
- }
- const validateEvent = computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props2.validateEvent);
- watch(() => props2.modelValue, () => {
- if (validateEvent.value) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- });
- return {
- handleChange,
- onClickRoot
- };
- };
- // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.mjs
- var useCheckboxModel = (props2) => {
- const selfModel = ref(false);
- const { emit } = getCurrentInstance();
- const checkboxGroup = inject(checkboxGroupContextKey, void 0);
- const isGroup = computed(() => isUndefined2(checkboxGroup) === false);
- const isLimitExceeded = ref(false);
- const model = computed({
- get() {
- var _a2, _b;
- return isGroup.value ? (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.modelValue) == null ? void 0 : _a2.value : (_b = props2.modelValue) != null ? _b : selfModel.value;
- },
- set(val) {
- var _a2, _b;
- if (isGroup.value && isArray(val)) {
- 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;
- isLimitExceeded.value === false && ((_b = checkboxGroup == null ? void 0 : checkboxGroup.changeEvent) == null ? void 0 : _b.call(checkboxGroup, val));
- } else {
- emit(UPDATE_MODEL_EVENT, val);
- selfModel.value = val;
- }
- }
- });
- return {
- model,
- isGroup,
- isLimitExceeded
- };
- };
- // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.mjs
- var useCheckboxStatus = (props2, slots, { model }) => {
- const checkboxGroup = inject(checkboxGroupContextKey, void 0);
- const isFocused = ref(false);
- const actualValue = computed(() => {
- if (!isPropAbsent(props2.value)) {
- return props2.value;
- }
- return props2.label;
- });
- const isChecked = computed(() => {
- const value = model.value;
- if (isBoolean2(value)) {
- return value;
- } else if (isArray(value)) {
- if (isObject(actualValue.value)) {
- return value.map(toRaw).some((o2) => isEqual_default(o2, actualValue.value));
- } else {
- return value.map(toRaw).includes(actualValue.value);
- }
- } else if (value !== null && value !== void 0) {
- return value === props2.trueValue || value === props2.trueLabel;
- } else {
- return !!value;
- }
- });
- const checkboxButtonSize = useFormSize(computed(() => {
- var _a2;
- return (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a2.value;
- }), {
- prop: true
- });
- const checkboxSize = useFormSize(computed(() => {
- var _a2;
- return (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a2.value;
- }));
- const hasOwnLabel = computed(() => {
- return !!slots.default || !isPropAbsent(actualValue.value);
- });
- return {
- checkboxButtonSize,
- isChecked,
- isFocused,
- checkboxSize,
- hasOwnLabel,
- actualValue
- };
- };
- // node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.mjs
- var useCheckbox = (props2, slots) => {
- const { formItem: elFormItem } = useFormItem();
- const { model, isGroup, isLimitExceeded } = useCheckboxModel(props2);
- const {
- isFocused,
- isChecked,
- checkboxButtonSize,
- checkboxSize,
- hasOwnLabel,
- actualValue
- } = useCheckboxStatus(props2, slots, { model });
- const { isDisabled } = useCheckboxDisabled({ model, isChecked });
- const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext: elFormItem,
- disableIdGeneration: hasOwnLabel,
- disableIdManagement: isGroup
- });
- const { handleChange, onClickRoot } = useCheckboxEvent(props2, {
- model,
- isLimitExceeded,
- hasOwnLabel,
- isDisabled,
- isLabeledByFormItem
- });
- const setStoreValue = () => {
- function addToStore() {
- var _a2, _b;
- if (isArray(model.value) && !model.value.includes(actualValue.value)) {
- model.value.push(actualValue.value);
- } else {
- model.value = (_b = (_a2 = props2.trueValue) != null ? _a2 : props2.trueLabel) != null ? _b : true;
- }
- }
- props2.checked && addToStore();
- };
- setStoreValue();
- useDeprecated({
- from: "label act as value",
- replacement: "value",
- version: "3.0.0",
- scope: "el-checkbox",
- ref: "https://element-plus.org/en-US/component/checkbox.html"
- }, computed(() => isGroup.value && isPropAbsent(props2.value)));
- useDeprecated({
- from: "true-label",
- replacement: "true-value",
- version: "3.0.0",
- scope: "el-checkbox",
- ref: "https://element-plus.org/en-US/component/checkbox.html"
- }, computed(() => !!props2.trueLabel));
- useDeprecated({
- from: "false-label",
- replacement: "false-value",
- version: "3.0.0",
- scope: "el-checkbox",
- ref: "https://element-plus.org/en-US/component/checkbox.html"
- }, computed(() => !!props2.falseLabel));
- return {
- inputId,
- isLabeledByFormItem,
- isChecked,
- isDisabled,
- isFocused,
- checkboxButtonSize,
- checkboxSize,
- hasOwnLabel,
- model,
- actualValue,
- handleChange,
- onClickRoot
- };
- };
- // node_modules/element-plus/es/components/checkbox/src/checkbox2.mjs
- var __default__26 = defineComponent({
- name: "ElCheckbox"
- });
- var _sfc_main321 = defineComponent({
- ...__default__26,
- props: checkboxProps,
- emits: checkboxEmits,
- setup(__props) {
- const props2 = __props;
- const slots = useSlots();
- const {
- inputId,
- isLabeledByFormItem,
- isChecked,
- isDisabled,
- isFocused,
- checkboxSize,
- hasOwnLabel,
- model,
- actualValue,
- handleChange,
- onClickRoot
- } = useCheckbox(props2, slots);
- const ns = useNamespace("checkbox");
- const compKls = computed(() => {
- return [
- ns.b(),
- ns.m(checkboxSize.value),
- ns.is("disabled", isDisabled.value),
- ns.is("bordered", props2.border),
- ns.is("checked", isChecked.value)
- ];
- });
- const spanKls = computed(() => {
- return [
- ns.e("input"),
- ns.is("disabled", isDisabled.value),
- ns.is("checked", isChecked.value),
- ns.is("indeterminate", props2.indeterminate),
- ns.is("focus", isFocused.value)
- ];
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(resolveDynamicComponent(!unref(hasOwnLabel) && unref(isLabeledByFormItem) ? "span" : "label"), {
- class: normalizeClass(unref(compKls)),
- "aria-controls": _ctx.indeterminate ? _ctx.ariaControls : null,
- onClick: unref(onClickRoot)
- }, {
- default: withCtx(() => {
- var _a2, _b, _c, _d;
- return [
- createBaseVNode("span", {
- class: normalizeClass(unref(spanKls))
- }, [
- _ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
- key: 0,
- id: unref(inputId),
- "onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
- class: normalizeClass(unref(ns).e("original")),
- type: "checkbox",
- indeterminate: _ctx.indeterminate,
- name: _ctx.name,
- tabindex: _ctx.tabindex,
- disabled: unref(isDisabled),
- "true-value": (_b = (_a2 = _ctx.trueValue) != null ? _a2 : _ctx.trueLabel) != null ? _b : true,
- "false-value": (_d = (_c = _ctx.falseValue) != null ? _c : _ctx.falseLabel) != null ? _d : false,
- onChange: unref(handleChange),
- onFocus: ($event) => isFocused.value = true,
- onBlur: ($event) => isFocused.value = false,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["id", "onUpdate:modelValue", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value", "onChange", "onFocus", "onBlur", "onClick"])), [
- [vModelCheckbox, unref(model)]
- ]) : withDirectives((openBlock(), createElementBlock("input", {
- key: 1,
- id: unref(inputId),
- "onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
- class: normalizeClass(unref(ns).e("original")),
- type: "checkbox",
- indeterminate: _ctx.indeterminate,
- disabled: unref(isDisabled),
- value: unref(actualValue),
- name: _ctx.name,
- tabindex: _ctx.tabindex,
- onChange: unref(handleChange),
- onFocus: ($event) => isFocused.value = true,
- onBlur: ($event) => isFocused.value = false,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["id", "onUpdate:modelValue", "indeterminate", "disabled", "value", "name", "tabindex", "onChange", "onFocus", "onBlur", "onClick"])), [
- [vModelCheckbox, unref(model)]
- ]),
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("inner"))
- }, null, 2)
- ], 2),
- unref(hasOwnLabel) ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass(unref(ns).e("label"))
- }, [
- renderSlot(_ctx.$slots, "default"),
- !_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createTextVNode(toDisplayString(_ctx.label), 1)
- ], 64)) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ];
- }),
- _: 3
- }, 8, ["class", "aria-controls", "onClick"]);
- };
- }
- });
- var Checkbox = _export_sfc(_sfc_main321, [["__file", "checkbox.vue"]]);
- // node_modules/element-plus/es/components/checkbox/src/checkbox-button.mjs
- var __default__27 = defineComponent({
- name: "ElCheckboxButton"
- });
- var _sfc_main323 = defineComponent({
- ...__default__27,
- props: checkboxProps,
- emits: checkboxEmits,
- setup(__props) {
- const props2 = __props;
- const slots = useSlots();
- const {
- isFocused,
- isChecked,
- isDisabled,
- checkboxButtonSize,
- model,
- actualValue,
- handleChange
- } = useCheckbox(props2, slots);
- const checkboxGroup = inject(checkboxGroupContextKey, void 0);
- const ns = useNamespace("checkbox");
- const activeStyle = computed(() => {
- var _a2, _b, _c, _d;
- const fillValue = (_b = (_a2 = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a2.value) != null ? _b : "";
- return {
- backgroundColor: fillValue,
- borderColor: fillValue,
- color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
- boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : void 0
- };
- });
- const labelKls = computed(() => {
- return [
- ns.b("button"),
- ns.bm("button", checkboxButtonSize.value),
- ns.is("disabled", isDisabled.value),
- ns.is("checked", isChecked.value),
- ns.is("focus", isFocused.value)
- ];
- });
- return (_ctx, _cache) => {
- var _a2, _b, _c, _d;
- return openBlock(), createElementBlock("label", {
- class: normalizeClass(unref(labelKls))
- }, [
- _ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
- key: 0,
- "onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
- class: normalizeClass(unref(ns).be("button", "original")),
- type: "checkbox",
- name: _ctx.name,
- tabindex: _ctx.tabindex,
- disabled: unref(isDisabled),
- "true-value": (_b = (_a2 = _ctx.trueValue) != null ? _a2 : _ctx.trueLabel) != null ? _b : true,
- "false-value": (_d = (_c = _ctx.falseValue) != null ? _c : _ctx.falseLabel) != null ? _d : false,
- onChange: unref(handleChange),
- onFocus: ($event) => isFocused.value = true,
- onBlur: ($event) => isFocused.value = false,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["onUpdate:modelValue", "name", "tabindex", "disabled", "true-value", "false-value", "onChange", "onFocus", "onBlur", "onClick"])), [
- [vModelCheckbox, unref(model)]
- ]) : withDirectives((openBlock(), createElementBlock("input", {
- key: 1,
- "onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
- class: normalizeClass(unref(ns).be("button", "original")),
- type: "checkbox",
- name: _ctx.name,
- tabindex: _ctx.tabindex,
- disabled: unref(isDisabled),
- value: unref(actualValue),
- onChange: unref(handleChange),
- onFocus: ($event) => isFocused.value = true,
- onBlur: ($event) => isFocused.value = false,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["onUpdate:modelValue", "name", "tabindex", "disabled", "value", "onChange", "onFocus", "onBlur", "onClick"])), [
- [vModelCheckbox, unref(model)]
- ]),
- _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
- key: 2,
- class: normalizeClass(unref(ns).be("button", "inner")),
- style: normalizeStyle(unref(isChecked) ? unref(activeStyle) : void 0)
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createTextVNode(toDisplayString(_ctx.label), 1)
- ])
- ], 6)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var CheckboxButton = _export_sfc(_sfc_main323, [["__file", "checkbox-button.vue"]]);
- // node_modules/element-plus/es/components/checkbox/src/checkbox-group.mjs
- var checkboxGroupProps = buildProps({
- modelValue: {
- type: definePropType(Array),
- default: () => []
- },
- disabled: Boolean,
- min: Number,
- max: Number,
- size: useSizeProp,
- fill: String,
- textColor: String,
- tag: {
- type: String,
- default: "div"
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- ...useAriaProps(["ariaLabel"])
- });
- var checkboxGroupEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isArray(val),
- change: (val) => isArray(val)
- };
- // node_modules/element-plus/es/components/checkbox/src/checkbox-group2.mjs
- var __default__28 = defineComponent({
- name: "ElCheckboxGroup"
- });
- var _sfc_main324 = defineComponent({
- ...__default__28,
- props: checkboxGroupProps,
- emits: checkboxGroupEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("checkbox");
- const { formItem } = useFormItem();
- const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext: formItem
- });
- const changeEvent = async (value) => {
- emit(UPDATE_MODEL_EVENT, value);
- await nextTick();
- emit(CHANGE_EVENT, value);
- };
- const modelValue = computed({
- get() {
- return props2.modelValue;
- },
- set(val) {
- changeEvent(val);
- }
- });
- provide(checkboxGroupContextKey, {
- ...pick_default(toRefs(props2), [
- "size",
- "min",
- "max",
- "disabled",
- "validateEvent",
- "fill",
- "textColor"
- ]),
- modelValue,
- changeEvent
- });
- watch(() => props2.modelValue, (newVal, oldValue) => {
- if (props2.validateEvent && !isEqual_default(newVal, oldValue)) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- });
- return (_ctx, _cache) => {
- var _a2;
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
- id: unref(groupId),
- class: normalizeClass(unref(ns).b("group")),
- role: "group",
- "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "checkbox-group" : void 0,
- "aria-labelledby": unref(isLabeledByFormItem) ? (_a2 = unref(formItem)) == null ? void 0 : _a2.labelId : void 0
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
- };
- }
- });
- var CheckboxGroup = _export_sfc(_sfc_main324, [["__file", "checkbox-group.vue"]]);
- // node_modules/element-plus/es/components/checkbox/index.mjs
- var ElCheckbox = withInstall(Checkbox, {
- CheckboxButton,
- CheckboxGroup
- });
- var ElCheckboxButton = withNoopInstall(CheckboxButton);
- var ElCheckboxGroup = withNoopInstall(CheckboxGroup);
- // node_modules/element-plus/es/components/radio/src/radio.mjs
- var radioPropsBase = buildProps({
- modelValue: {
- type: [String, Number, Boolean],
- default: void 0
- },
- size: useSizeProp,
- disabled: Boolean,
- label: {
- type: [String, Number, Boolean],
- default: void 0
- },
- value: {
- type: [String, Number, Boolean],
- default: void 0
- },
- name: {
- type: String,
- default: void 0
- }
- });
- var radioProps = buildProps({
- ...radioPropsBase,
- border: Boolean
- });
- var radioEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val),
- [CHANGE_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val)
- };
- // node_modules/element-plus/es/components/radio/src/constants.mjs
- var radioGroupKey = Symbol("radioGroupKey");
- // node_modules/element-plus/es/components/radio/src/use-radio.mjs
- var useRadio = (props2, emit) => {
- const radioRef = ref();
- const radioGroup = inject(radioGroupKey, void 0);
- const isGroup = computed(() => !!radioGroup);
- const actualValue = computed(() => {
- if (!isPropAbsent(props2.value)) {
- return props2.value;
- }
- return props2.label;
- });
- const modelValue = computed({
- get() {
- return isGroup.value ? radioGroup.modelValue : props2.modelValue;
- },
- set(val) {
- if (isGroup.value) {
- radioGroup.changeEvent(val);
- } else {
- emit && emit(UPDATE_MODEL_EVENT, val);
- }
- radioRef.value.checked = props2.modelValue === actualValue.value;
- }
- });
- const size3 = useFormSize(computed(() => radioGroup == null ? void 0 : radioGroup.size));
- const disabled = useFormDisabled(computed(() => radioGroup == null ? void 0 : radioGroup.disabled));
- const focus = ref(false);
- const tabIndex = computed(() => {
- return disabled.value || isGroup.value && modelValue.value !== actualValue.value ? -1 : 0;
- });
- useDeprecated({
- from: "label act as value",
- replacement: "value",
- version: "3.0.0",
- scope: "el-radio",
- ref: "https://element-plus.org/en-US/component/radio.html"
- }, computed(() => isGroup.value && isPropAbsent(props2.value)));
- return {
- radioRef,
- isGroup,
- radioGroup,
- focus,
- size: size3,
- disabled,
- tabIndex,
- modelValue,
- actualValue
- };
- };
- // node_modules/element-plus/es/components/radio/src/radio2.mjs
- var __default__29 = defineComponent({
- name: "ElRadio"
- });
- var _sfc_main325 = defineComponent({
- ...__default__29,
- props: radioProps,
- emits: radioEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("radio");
- const { radioRef, radioGroup, focus, size: size3, disabled, modelValue, actualValue } = useRadio(props2, emit);
- function handleChange() {
- nextTick(() => emit(CHANGE_EVENT, modelValue.value));
- }
- return (_ctx, _cache) => {
- var _a2;
- return openBlock(), createElementBlock("label", {
- class: normalizeClass([
- unref(ns).b(),
- unref(ns).is("disabled", unref(disabled)),
- unref(ns).is("focus", unref(focus)),
- unref(ns).is("bordered", _ctx.border),
- unref(ns).is("checked", unref(modelValue) === unref(actualValue)),
- unref(ns).m(unref(size3))
- ])
- }, [
- createBaseVNode("span", {
- class: normalizeClass([
- unref(ns).e("input"),
- unref(ns).is("disabled", unref(disabled)),
- unref(ns).is("checked", unref(modelValue) === unref(actualValue))
- ])
- }, [
- withDirectives(createBaseVNode("input", {
- ref_key: "radioRef",
- ref: radioRef,
- "onUpdate:modelValue": ($event) => isRef(modelValue) ? modelValue.value = $event : null,
- class: normalizeClass(unref(ns).e("original")),
- value: unref(actualValue),
- name: _ctx.name || ((_a2 = unref(radioGroup)) == null ? void 0 : _a2.name),
- disabled: unref(disabled),
- checked: unref(modelValue) === unref(actualValue),
- type: "radio",
- onFocus: ($event) => focus.value = true,
- onBlur: ($event) => focus.value = false,
- onChange: handleChange,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
- [vModelRadio, unref(modelValue)]
- ]),
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("inner"))
- }, null, 2)
- ], 2),
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("label")),
- onKeydown: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createTextVNode(toDisplayString(_ctx.label), 1)
- ])
- ], 42, ["onKeydown"])
- ], 2);
- };
- }
- });
- var Radio = _export_sfc(_sfc_main325, [["__file", "radio.vue"]]);
- // node_modules/element-plus/es/components/radio/src/radio-button.mjs
- var radioButtonProps = buildProps({
- ...radioPropsBase
- });
- // node_modules/element-plus/es/components/radio/src/radio-button2.mjs
- var __default__30 = defineComponent({
- name: "ElRadioButton"
- });
- var _sfc_main326 = defineComponent({
- ...__default__30,
- props: radioButtonProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("radio");
- const { radioRef, focus, size: size3, disabled, modelValue, radioGroup, actualValue } = useRadio(props2);
- const activeStyle = computed(() => {
- return {
- backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
- borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
- boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
- color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
- };
- });
- return (_ctx, _cache) => {
- var _a2;
- return openBlock(), createElementBlock("label", {
- class: normalizeClass([
- unref(ns).b("button"),
- unref(ns).is("active", unref(modelValue) === unref(actualValue)),
- unref(ns).is("disabled", unref(disabled)),
- unref(ns).is("focus", unref(focus)),
- unref(ns).bm("button", unref(size3))
- ])
- }, [
- withDirectives(createBaseVNode("input", {
- ref_key: "radioRef",
- ref: radioRef,
- "onUpdate:modelValue": ($event) => isRef(modelValue) ? modelValue.value = $event : null,
- class: normalizeClass(unref(ns).be("button", "original-radio")),
- value: unref(actualValue),
- type: "radio",
- name: _ctx.name || ((_a2 = unref(radioGroup)) == null ? void 0 : _a2.name),
- disabled: unref(disabled),
- onFocus: ($event) => focus.value = true,
- onBlur: ($event) => focus.value = false,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
- [vModelRadio, unref(modelValue)]
- ]),
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).be("button", "inner")),
- style: normalizeStyle(unref(modelValue) === unref(actualValue) ? unref(activeStyle) : {}),
- onKeydown: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createTextVNode(toDisplayString(_ctx.label), 1)
- ])
- ], 46, ["onKeydown"])
- ], 2);
- };
- }
- });
- var RadioButton = _export_sfc(_sfc_main326, [["__file", "radio-button.vue"]]);
- // node_modules/element-plus/es/components/radio/src/radio-group.mjs
- var radioGroupProps = buildProps({
- id: {
- type: String,
- default: void 0
- },
- size: useSizeProp,
- disabled: Boolean,
- modelValue: {
- type: [String, Number, Boolean],
- default: void 0
- },
- fill: {
- type: String,
- default: ""
- },
- textColor: {
- type: String,
- default: ""
- },
- name: {
- type: String,
- default: void 0
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- ...useAriaProps(["ariaLabel"])
- });
- var radioGroupEmits = radioEmits;
- // node_modules/element-plus/es/components/radio/src/radio-group2.mjs
- var __default__31 = defineComponent({
- name: "ElRadioGroup"
- });
- var _sfc_main327 = defineComponent({
- ...__default__31,
- props: radioGroupProps,
- emits: radioGroupEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("radio");
- const radioId = useId();
- const radioGroupRef = ref();
- const { formItem } = useFormItem();
- const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext: formItem
- });
- const changeEvent = (value) => {
- emit(UPDATE_MODEL_EVENT, value);
- nextTick(() => emit(CHANGE_EVENT, value));
- };
- onMounted(() => {
- const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
- const firstLabel = radios[0];
- if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
- firstLabel.tabIndex = 0;
- }
- });
- const name = computed(() => {
- return props2.name || radioId.value;
- });
- provide(radioGroupKey, reactive({
- ...toRefs(props2),
- changeEvent,
- name
- }));
- watch(() => props2.modelValue, (newVal, oldValue) => {
- if (props2.validateEvent && !isEqual_default(newVal, oldValue)) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- id: unref(groupId),
- ref_key: "radioGroupRef",
- ref: radioGroupRef,
- class: normalizeClass(unref(ns).b("group")),
- role: "radiogroup",
- "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "radio-group" : void 0,
- "aria-labelledby": unref(isLabeledByFormItem) ? unref(formItem).labelId : void 0
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 10, ["id", "aria-label", "aria-labelledby"]);
- };
- }
- });
- var RadioGroup = _export_sfc(_sfc_main327, [["__file", "radio-group.vue"]]);
- // node_modules/element-plus/es/components/radio/index.mjs
- var ElRadio = withInstall(Radio, {
- RadioButton,
- RadioGroup
- });
- var ElRadioGroup = withNoopInstall(RadioGroup);
- var ElRadioButton = withNoopInstall(RadioButton);
- // node_modules/element-plus/es/components/cascader-panel/src/types.mjs
- var CASCADER_PANEL_INJECTION_KEY = Symbol();
- // node_modules/element-plus/es/components/cascader-panel/src/node-content.mjs
- function isVNodeEmpty(vnodes) {
- return !!(isArray(vnodes) ? vnodes.every(({
- type: type4
- }) => type4 === Comment) : (vnodes == null ? void 0 : vnodes.type) === Comment);
- }
- var NodeContent = defineComponent({
- name: "NodeContent",
- props: {
- node: {
- type: Object,
- required: true
- }
- },
- setup(props2) {
- const ns = useNamespace("cascader-node");
- const {
- renderLabelFn
- } = inject(CASCADER_PANEL_INJECTION_KEY);
- const {
- node
- } = props2;
- const {
- data,
- label: nodeLabel
- } = node;
- const label = () => {
- const renderLabel = renderLabelFn == null ? void 0 : renderLabelFn({
- node,
- data
- });
- return isVNodeEmpty(renderLabel) ? nodeLabel : renderLabel != null ? renderLabel : nodeLabel;
- };
- return () => createVNode("span", {
- "class": ns.e("label")
- }, [label()]);
- }
- });
- // node_modules/element-plus/es/components/cascader-panel/src/node2.mjs
- var __default__32 = defineComponent({
- name: "ElCascaderNode"
- });
- var _sfc_main328 = defineComponent({
- ...__default__32,
- props: {
- node: {
- type: Object,
- required: true
- },
- menuId: String
- },
- emits: ["expand"],
- setup(__props, { emit }) {
- const props2 = __props;
- const panel = inject(CASCADER_PANEL_INJECTION_KEY);
- const ns = useNamespace("cascader-node");
- const isHoverMenu = computed(() => panel.isHoverMenu);
- const multiple = computed(() => panel.config.multiple);
- const checkStrictly = computed(() => panel.config.checkStrictly);
- const showPrefix = computed(() => panel.config.showPrefix);
- const checkedNodeId = computed(() => {
- var _a2;
- return (_a2 = panel.checkedNodes[0]) == null ? void 0 : _a2.uid;
- });
- const isDisabled = computed(() => props2.node.isDisabled);
- const isLeaf2 = computed(() => props2.node.isLeaf);
- const expandable = computed(() => checkStrictly.value && !isLeaf2.value || !isDisabled.value);
- const inExpandingPath = computed(() => isInPath(panel.expandingNode));
- const inCheckedPath = computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
- const isInPath = (node) => {
- var _a2;
- const { level, uid: uid2 } = props2.node;
- return ((_a2 = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a2.uid) === uid2;
- };
- const doExpand = () => {
- if (inExpandingPath.value)
- return;
- panel.expandNode(props2.node);
- };
- const doCheck = (checked) => {
- const { node } = props2;
- if (checked === node.checked)
- return;
- panel.handleCheckChange(node, checked);
- };
- const doLoad = () => {
- panel.lazyLoad(props2.node, () => {
- if (!isLeaf2.value)
- doExpand();
- });
- };
- const handleHoverExpand = (e) => {
- if (!isHoverMenu.value)
- return;
- handleExpand();
- !isLeaf2.value && emit("expand", e);
- };
- const handleExpand = () => {
- const { node } = props2;
- if (!expandable.value || node.loading)
- return;
- node.loaded ? doExpand() : doLoad();
- };
- const handleClick = () => {
- if (isHoverMenu.value)
- return;
- if (isLeaf2.value && !isDisabled.value && !checkStrictly.value && !multiple.value) {
- handleCheck(true);
- } else if ((panel.config.checkOnClickNode || isLeaf2.value && panel.config.checkOnClickLeaf) && !isDisabled.value) {
- handleSelectCheck(!props2.node.checked);
- } else {
- handleExpand();
- }
- };
- const handleSelectCheck = (checked) => {
- if (checkStrictly.value) {
- doCheck(checked);
- if (props2.node.loaded) {
- doExpand();
- }
- } else {
- handleCheck(checked);
- }
- };
- const handleCheck = (checked) => {
- if (!props2.node.loaded) {
- doLoad();
- } else {
- doCheck(checked);
- !checkStrictly.value && doExpand();
- }
- };
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("li", {
- id: `${__props.menuId}-${__props.node.uid}`,
- role: "menuitem",
- "aria-haspopup": !unref(isLeaf2),
- "aria-owns": unref(isLeaf2) ? void 0 : __props.menuId,
- "aria-expanded": unref(inExpandingPath),
- tabindex: unref(expandable) ? -1 : void 0,
- class: normalizeClass([
- unref(ns).b(),
- unref(ns).is("selectable", unref(checkStrictly)),
- unref(ns).is("active", __props.node.checked),
- unref(ns).is("disabled", !unref(expandable)),
- unref(inExpandingPath) && "in-active-path",
- unref(inCheckedPath) && "in-checked-path"
- ]),
- onMouseenter: handleHoverExpand,
- onFocus: handleHoverExpand,
- onClick: handleClick
- }, [
- createCommentVNode(" prefix "),
- unref(multiple) && unref(showPrefix) ? (openBlock(), createBlock(unref(ElCheckbox), {
- key: 0,
- "model-value": __props.node.checked,
- indeterminate: __props.node.indeterminate,
- disabled: unref(isDisabled),
- onClick: withModifiers(() => {
- }, ["stop"]),
- "onUpdate:modelValue": handleSelectCheck
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : unref(checkStrictly) && unref(showPrefix) ? (openBlock(), createBlock(unref(ElRadio), {
- key: 1,
- "model-value": unref(checkedNodeId),
- label: __props.node.uid,
- disabled: unref(isDisabled),
- "onUpdate:modelValue": handleSelectCheck,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, {
- default: withCtx(() => [
- 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 "),
- createBaseVNode("span")
- ]),
- _: 1
- }, 8, ["model-value", "label", "disabled", "onClick"])) : unref(isLeaf2) && __props.node.checked ? (openBlock(), createBlock(unref(ElIcon), {
- key: 2,
- class: normalizeClass(unref(ns).e("prefix"))
- }, {
- default: withCtx(() => [
- createVNode(unref(check_default))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- createCommentVNode(" content "),
- createVNode(unref(NodeContent), { node: __props.node }, null, 8, ["node"]),
- createCommentVNode(" postfix "),
- !unref(isLeaf2) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
- __props.node.loading ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([unref(ns).is("loading"), unref(ns).e("postfix")])
- }, {
- default: withCtx(() => [
- createVNode(unref(loading_default))
- ]),
- _: 1
- }, 8, ["class"])) : (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass(["arrow-right", unref(ns).e("postfix")])
- }, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- }, 8, ["class"]))
- ], 64)) : createCommentVNode("v-if", true)
- ], 42, ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"]);
- };
- }
- });
- var ElCascaderNode = _export_sfc(_sfc_main328, [["__file", "node.vue"]]);
- // node_modules/element-plus/es/components/cascader-panel/src/menu.mjs
- var __default__33 = defineComponent({
- name: "ElCascaderMenu"
- });
- var _sfc_main329 = defineComponent({
- ...__default__33,
- props: {
- nodes: {
- type: Array,
- required: true
- },
- index: {
- type: Number,
- required: true
- }
- },
- setup(__props) {
- const props2 = __props;
- const instance = getCurrentInstance();
- const ns = useNamespace("cascader-menu");
- const { t } = useLocale();
- const id = useId();
- let activeNode;
- let hoverTimer;
- const panel = inject(CASCADER_PANEL_INJECTION_KEY);
- const hoverZone = ref();
- const isEmpty3 = computed(() => !props2.nodes.length);
- const isLoading = computed(() => !panel.initialLoaded);
- const menuId = computed(() => `${id.value}-${props2.index}`);
- const handleExpand = (e) => {
- activeNode = e.target;
- };
- const handleMouseMove = (e) => {
- if (!panel.isHoverMenu || !activeNode || !hoverZone.value)
- return;
- if (activeNode.contains(e.target)) {
- clearHoverTimer();
- const el = instance.vnode.el;
- const { left } = el.getBoundingClientRect();
- const { offsetWidth, offsetHeight } = el;
- const startX = e.clientX - left;
- const top = activeNode.offsetTop;
- const bottom = top + activeNode.offsetHeight;
- hoverZone.value.innerHTML = `
- <path style="pointer-events: auto;" fill="transparent" d="M${startX} ${top} L${offsetWidth} 0 V${top} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${startX} ${bottom} L${offsetWidth} ${offsetHeight} V${bottom} Z" />
- `;
- } else if (!hoverTimer) {
- hoverTimer = window.setTimeout(clearHoverZone, panel.config.hoverThreshold);
- }
- };
- const clearHoverTimer = () => {
- if (!hoverTimer)
- return;
- clearTimeout(hoverTimer);
- hoverTimer = void 0;
- };
- const clearHoverZone = () => {
- if (!hoverZone.value)
- return;
- hoverZone.value.innerHTML = "";
- clearHoverTimer();
- };
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElScrollbar), {
- key: unref(menuId),
- tag: "ul",
- role: "menu",
- class: normalizeClass(unref(ns).b()),
- "wrap-class": unref(ns).e("wrap"),
- "view-class": [unref(ns).e("list"), unref(ns).is("empty", unref(isEmpty3))],
- onMousemove: handleMouseMove,
- onMouseleave: clearHoverZone
- }, {
- default: withCtx(() => {
- var _a2;
- return [
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes, (node) => {
- return openBlock(), createBlock(ElCascaderNode, {
- key: node.uid,
- node,
- "menu-id": unref(menuId),
- onExpand: handleExpand
- }, null, 8, ["node", "menu-id"]);
- }), 128)),
- unref(isLoading) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("empty-text"))
- }, [
- createVNode(unref(ElIcon), {
- size: "14",
- class: normalizeClass(unref(ns).is("loading"))
- }, {
- default: withCtx(() => [
- createVNode(unref(loading_default))
- ]),
- _: 1
- }, 8, ["class"]),
- createTextVNode(" " + toDisplayString(unref(t)("el.cascader.loading")), 1)
- ], 2)) : unref(isEmpty3) ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("empty-text"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => [
- createTextVNode(toDisplayString(unref(t)("el.cascader.noData")), 1)
- ])
- ], 2)) : ((_a2 = unref(panel)) == null ? void 0 : _a2.isHoverMenu) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
- createCommentVNode(" eslint-disable-next-line vue/html-self-closing "),
- (openBlock(), createElementBlock("svg", {
- ref_key: "hoverZone",
- ref: hoverZone,
- class: normalizeClass(unref(ns).e("hover-zone"))
- }, null, 2))
- ], 2112)) : createCommentVNode("v-if", true)
- ];
- }),
- _: 3
- }, 8, ["class", "wrap-class", "view-class"]);
- };
- }
- });
- var ElCascaderMenu = _export_sfc(_sfc_main329, [["__file", "menu.vue"]]);
- // node_modules/element-plus/es/components/cascader-panel/src/node.mjs
- var uid = 0;
- var calculatePathNodes = (node) => {
- const nodes = [node];
- let { parent: parent2 } = node;
- while (parent2) {
- nodes.unshift(parent2);
- parent2 = parent2.parent;
- }
- return nodes;
- };
- var Node2 = class _Node {
- constructor(data, config, parent2, root2 = false) {
- this.data = data;
- this.config = config;
- this.parent = parent2;
- this.root = root2;
- this.uid = uid++;
- this.checked = false;
- this.indeterminate = false;
- this.loading = false;
- const { value: valueKey, label: labelKey, children: childrenKey } = config;
- const childrenData = data[childrenKey];
- const pathNodes = calculatePathNodes(this);
- this.level = root2 ? 0 : parent2 ? parent2.level + 1 : 1;
- this.value = data[valueKey];
- this.label = data[labelKey];
- this.pathNodes = pathNodes;
- this.pathValues = pathNodes.map((node) => node.value);
- this.pathLabels = pathNodes.map((node) => node.label);
- this.childrenData = childrenData;
- this.children = (childrenData || []).map((child) => new _Node(child, config, this));
- this.loaded = !config.lazy || this.isLeaf || !isEmpty2(childrenData);
- this.text = "";
- }
- get isDisabled() {
- const { data, parent: parent2, config } = this;
- const { disabled, checkStrictly } = config;
- const isDisabled = isFunction(disabled) ? disabled(data, this) : !!data[disabled];
- return isDisabled || !checkStrictly && !!(parent2 == null ? void 0 : parent2.isDisabled);
- }
- get isLeaf() {
- const { data, config, childrenData, loaded } = this;
- const { lazy, leaf } = config;
- const isLeaf2 = isFunction(leaf) ? leaf(data, this) : data[leaf];
- return isUndefined2(isLeaf2) ? lazy && !loaded ? false : !(isArray(childrenData) && childrenData.length) : !!isLeaf2;
- }
- get valueByOption() {
- return this.config.emitPath ? this.pathValues : this.value;
- }
- appendChild(childData) {
- const { childrenData, children } = this;
- const node = new _Node(childData, this.config, this);
- if (isArray(childrenData)) {
- childrenData.push(childData);
- } else {
- this.childrenData = [childData];
- }
- children.push(node);
- return node;
- }
- calcText(allLevels, separator) {
- const text = allLevels ? this.pathLabels.join(separator) : this.label;
- this.text = text;
- return text;
- }
- broadcast(checked) {
- this.children.forEach((child) => {
- var _a2;
- if (child) {
- child.broadcast(checked);
- (_a2 = child.onParentCheck) == null ? void 0 : _a2.call(child, checked);
- }
- });
- }
- emit() {
- var _a2;
- const { parent: parent2 } = this;
- if (parent2) {
- (_a2 = parent2.onChildCheck) == null ? void 0 : _a2.call(parent2);
- parent2.emit();
- }
- }
- onParentCheck(checked) {
- if (!this.isDisabled) {
- this.setCheckState(checked);
- }
- }
- onChildCheck() {
- const { children } = this;
- const validChildren = children.filter((child) => !child.isDisabled);
- const checked = validChildren.length ? validChildren.every((child) => child.checked) : false;
- this.setCheckState(checked);
- }
- setCheckState(checked) {
- const totalNum = this.children.length;
- const checkedNum = this.children.reduce((c2, p2) => {
- const num = p2.checked ? 1 : p2.indeterminate ? 0.5 : 0;
- return c2 + num;
- }, 0);
- this.checked = this.loaded && this.children.filter((child) => !child.isDisabled).every((child) => child.loaded && child.checked) && checked;
- this.indeterminate = this.loaded && checkedNum !== totalNum && checkedNum > 0;
- }
- doCheck(checked) {
- if (this.checked === checked)
- return;
- const { checkStrictly, multiple } = this.config;
- if (checkStrictly || !multiple) {
- this.checked = checked;
- } else {
- this.broadcast(checked);
- this.setCheckState(checked);
- this.emit();
- }
- }
- };
- // node_modules/element-plus/es/components/cascader-panel/src/store.mjs
- var flatNodes = (nodes, leafOnly) => {
- return nodes.reduce((res, node) => {
- if (node.isLeaf) {
- res.push(node);
- } else {
- !leafOnly && res.push(node);
- res = res.concat(flatNodes(node.children, leafOnly));
- }
- return res;
- }, []);
- };
- var Store = class {
- constructor(data, config) {
- this.config = config;
- const nodes = (data || []).map((nodeData) => new Node2(nodeData, this.config));
- this.nodes = nodes;
- this.allNodes = flatNodes(nodes, false);
- this.leafNodes = flatNodes(nodes, true);
- }
- getNodes() {
- return this.nodes;
- }
- getFlattedNodes(leafOnly) {
- return leafOnly ? this.leafNodes : this.allNodes;
- }
- appendNode(nodeData, parentNode) {
- const node = parentNode ? parentNode.appendChild(nodeData) : new Node2(nodeData, this.config);
- if (!parentNode)
- this.nodes.push(node);
- this.appendAllNodesAndLeafNodes(node);
- }
- appendNodes(nodeDataList, parentNode) {
- if (nodeDataList.length > 0) {
- nodeDataList.forEach((nodeData) => this.appendNode(nodeData, parentNode));
- } else {
- parentNode && parentNode.isLeaf && this.leafNodes.push(parentNode);
- }
- }
- appendAllNodesAndLeafNodes(node) {
- this.allNodes.push(node);
- node.isLeaf && this.leafNodes.push(node);
- if (node.children) {
- node.children.forEach((subNode) => {
- this.appendAllNodesAndLeafNodes(subNode);
- });
- }
- }
- getNodeByValue(value, leafOnly = false) {
- if (isPropAbsent(value))
- return null;
- const node = this.getFlattedNodes(leafOnly).find((node2) => isEqual_default(node2.value, value) || isEqual_default(node2.pathValues, value));
- return node || null;
- }
- getSameNode(node) {
- if (!node)
- return null;
- const node_ = this.getFlattedNodes(false).find(({ value, level }) => isEqual_default(node.value, value) && node.level === level);
- return node_ || null;
- }
- };
- // node_modules/element-plus/es/components/cascader-panel/src/config.mjs
- var CommonProps = buildProps({
- modelValue: {
- type: definePropType([Number, String, Array])
- },
- options: {
- type: definePropType(Array),
- default: () => []
- },
- props: {
- type: definePropType(Object),
- default: () => ({})
- }
- });
- var DefaultProps = {
- expandTrigger: "click",
- multiple: false,
- checkStrictly: false,
- emitPath: true,
- lazy: false,
- lazyLoad: NOOP,
- value: "value",
- label: "label",
- children: "children",
- leaf: "leaf",
- disabled: "disabled",
- hoverThreshold: 500,
- checkOnClickNode: false,
- checkOnClickLeaf: true,
- showPrefix: true
- };
- var cascaderPanelProps = buildProps({
- ...CommonProps,
- border: {
- type: Boolean,
- default: true
- },
- renderLabel: {
- type: Function
- }
- });
- var emitChangeFn = (value) => true;
- var cascaderPanelEmits = {
- [UPDATE_MODEL_EVENT]: emitChangeFn,
- [CHANGE_EVENT]: emitChangeFn,
- close: () => true,
- "expand-change": (value) => value
- };
- var useCascaderConfig = (props2) => {
- return computed(() => ({
- ...DefaultProps,
- ...props2.props
- }));
- };
- // node_modules/element-plus/es/components/cascader-panel/src/utils.mjs
- var getMenuIndex = (el) => {
- if (!el)
- return 0;
- const pieces = el.id.split("-");
- return Number(pieces[pieces.length - 2]);
- };
- var checkNode = (el) => {
- if (!el)
- return;
- const input = el.querySelector("input");
- if (input) {
- input.click();
- } else if (isLeaf(el)) {
- el.click();
- }
- };
- var sortByOriginalOrder = (oldNodes, newNodes) => {
- const newNodesCopy = newNodes.slice(0);
- const newIds = newNodesCopy.map((node) => node.uid);
- const res = oldNodes.reduce((acc, item) => {
- const index = newIds.indexOf(item.uid);
- if (index > -1) {
- acc.push(item);
- newNodesCopy.splice(index, 1);
- newIds.splice(index, 1);
- }
- return acc;
- }, []);
- res.push(...newNodesCopy);
- return res;
- };
- // node_modules/element-plus/es/utils/arrays.mjs
- var unique = (arr) => [...new Set(arr)];
- var castArray2 = (arr) => {
- if (!arr && arr !== 0)
- return [];
- return isArray(arr) ? arr : [arr];
- };
- // node_modules/element-plus/es/components/cascader-panel/src/index.mjs
- var __default__34 = defineComponent({
- name: "ElCascaderPanel",
- inheritAttrs: false
- });
- var _sfc_main330 = defineComponent({
- ...__default__34,
- props: cascaderPanelProps,
- emits: cascaderPanelEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- let manualChecked = false;
- const ns = useNamespace("cascader");
- const config = useCascaderConfig(props2);
- const slots = useSlots();
- let store;
- const initialLoaded = ref(true);
- const menuList = ref([]);
- const checkedValue = ref();
- const menus = ref([]);
- const expandingNode = ref();
- const checkedNodes = ref([]);
- const isHoverMenu = computed(() => config.value.expandTrigger === "hover");
- const renderLabelFn = computed(() => props2.renderLabel || slots.default);
- const initStore = () => {
- const { options } = props2;
- const cfg = config.value;
- manualChecked = false;
- store = new Store(options, cfg);
- menus.value = [store.getNodes()];
- if (cfg.lazy && isEmpty2(props2.options)) {
- initialLoaded.value = false;
- lazyLoad(void 0, (list) => {
- if (list) {
- store = new Store(list, cfg);
- menus.value = [store.getNodes()];
- }
- initialLoaded.value = true;
- syncCheckedValue(false, true);
- });
- } else {
- syncCheckedValue(false, true);
- }
- };
- const lazyLoad = (node, cb) => {
- const cfg = config.value;
- node = node || new Node2({}, cfg, void 0, true);
- node.loading = true;
- const resolve = (dataList) => {
- const _node = node;
- const parent2 = _node.root ? null : _node;
- _node.loading = false;
- _node.loaded = true;
- _node.childrenData = _node.childrenData || [];
- dataList && (store == null ? void 0 : store.appendNodes(dataList, parent2));
- dataList && (cb == null ? void 0 : cb(dataList));
- };
- cfg.lazyLoad(node, resolve);
- };
- const expandNode = (node, silent) => {
- var _a2;
- const { level } = node;
- const newMenus = menus.value.slice(0, level);
- let newExpandingNode;
- if (node.isLeaf) {
- newExpandingNode = node.pathNodes[level - 2];
- } else {
- newExpandingNode = node;
- newMenus.push(node.children);
- }
- if (((_a2 = expandingNode.value) == null ? void 0 : _a2.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
- expandingNode.value = node;
- menus.value = newMenus;
- !silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
- }
- };
- const handleCheckChange = (node, checked, emitClose = true) => {
- const { checkStrictly, multiple } = config.value;
- const oldNode = checkedNodes.value[0];
- manualChecked = true;
- !multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
- node.doCheck(checked);
- calculateCheckedValue();
- emitClose && !multiple && !checkStrictly && emit("close");
- !emitClose && !multiple && !checkStrictly && expandParentNode(node);
- };
- const expandParentNode = (node) => {
- if (!node)
- return;
- node = node.parent;
- expandParentNode(node);
- node && expandNode(node);
- };
- const getFlattedNodes = (leafOnly) => store == null ? void 0 : store.getFlattedNodes(leafOnly);
- const getCheckedNodes = (leafOnly) => {
- var _a2;
- return (_a2 = getFlattedNodes(leafOnly)) == null ? void 0 : _a2.filter(({ checked }) => checked !== false);
- };
- const clearCheckedNodes = () => {
- checkedNodes.value.forEach((node) => node.doCheck(false));
- calculateCheckedValue();
- menus.value = menus.value.slice(0, 1);
- expandingNode.value = void 0;
- emit("expand-change", []);
- };
- const calculateCheckedValue = () => {
- var _a2;
- const { checkStrictly, multiple } = config.value;
- const oldNodes = checkedNodes.value;
- const newNodes = getCheckedNodes(!checkStrictly);
- const nodes = sortByOriginalOrder(oldNodes, newNodes);
- const values2 = nodes.map((node) => node.valueByOption);
- checkedNodes.value = nodes;
- checkedValue.value = multiple ? values2 : (_a2 = values2[0]) != null ? _a2 : null;
- };
- const syncCheckedValue = (loaded = false, forced = false) => {
- const { modelValue } = props2;
- const { lazy, multiple, checkStrictly } = config.value;
- const leafOnly = !checkStrictly;
- if (!initialLoaded.value || manualChecked || !forced && isEqual_default(modelValue, checkedValue.value))
- return;
- if (lazy && !loaded) {
- const values2 = unique(flattenDeep_default(castArray2(modelValue)));
- const nodes = values2.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
- if (nodes.length) {
- nodes.forEach((node) => {
- lazyLoad(node, () => syncCheckedValue(false, forced));
- });
- } else {
- syncCheckedValue(true, forced);
- }
- } else {
- const values2 = multiple ? castArray2(modelValue) : [modelValue];
- const nodes = unique(values2.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
- syncMenuState(nodes, forced);
- checkedValue.value = cloneDeep_default(modelValue != null ? modelValue : void 0);
- }
- };
- const syncMenuState = (newCheckedNodes, reserveExpandingState = true) => {
- const { checkStrictly } = config.value;
- const oldNodes = checkedNodes.value;
- const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
- const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
- const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
- if (newExpandingNode) {
- newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
- } else {
- expandingNode.value = void 0;
- }
- oldNodes.forEach((node) => node.doCheck(false));
- reactive(newNodes).forEach((node) => node.doCheck(true));
- checkedNodes.value = newNodes;
- nextTick(scrollToExpandingNode);
- };
- const scrollToExpandingNode = () => {
- if (!isClient)
- return;
- menuList.value.forEach((menu) => {
- const menuElement = menu == null ? void 0 : menu.$el;
- if (menuElement) {
- const container = menuElement.querySelector(`.${ns.namespace.value}-scrollbar__wrap`);
- const activeNode = menuElement.querySelector(`.${ns.b("node")}.${ns.is("active")}:last-child`) || menuElement.querySelector(`.${ns.b("node")}.in-active-path`);
- scrollIntoView(container, activeNode);
- }
- });
- };
- const handleKeyDown = (e) => {
- const target2 = e.target;
- const { code } = e;
- switch (code) {
- case EVENT_CODE.up:
- case EVENT_CODE.down: {
- e.preventDefault();
- const distance = code === EVENT_CODE.up ? -1 : 1;
- focusNode(getSibling(target2, distance, `.${ns.b("node")}[tabindex="-1"]`));
- break;
- }
- case EVENT_CODE.left: {
- e.preventDefault();
- const preMenu = menuList.value[getMenuIndex(target2) - 1];
- const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector(`.${ns.b("node")}[aria-expanded="true"]`);
- focusNode(expandedNode);
- break;
- }
- case EVENT_CODE.right: {
- e.preventDefault();
- const nextMenu = menuList.value[getMenuIndex(target2) + 1];
- const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector(`.${ns.b("node")}[tabindex="-1"]`);
- focusNode(firstNode);
- break;
- }
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- checkNode(target2);
- break;
- }
- };
- provide(CASCADER_PANEL_INJECTION_KEY, reactive({
- config,
- expandingNode,
- checkedNodes,
- isHoverMenu,
- initialLoaded,
- renderLabelFn,
- lazyLoad,
- expandNode,
- handleCheckChange
- }));
- watch(config, (newVal, oldVal) => {
- if (isEqual_default(newVal, oldVal))
- return;
- initStore();
- }, {
- immediate: true
- });
- watch(() => props2.options, initStore, {
- deep: true
- });
- watch(() => props2.modelValue, () => {
- manualChecked = false;
- syncCheckedValue();
- }, {
- deep: true
- });
- watch(() => checkedValue.value, (val) => {
- if (!isEqual_default(val, props2.modelValue)) {
- emit(UPDATE_MODEL_EVENT, val);
- emit(CHANGE_EVENT, val);
- }
- });
- onBeforeUpdate(() => menuList.value = []);
- onMounted(() => !isEmpty2(props2.modelValue) && syncCheckedValue());
- expose({
- menuList,
- menus,
- checkedNodes,
- handleKeyDown,
- handleCheckChange,
- getFlattedNodes,
- getCheckedNodes,
- clearCheckedNodes,
- calculateCheckedValue,
- scrollToExpandingNode
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b("panel"), unref(ns).is("bordered", _ctx.border)]),
- onKeydown: handleKeyDown
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(menus.value, (menu, index) => {
- return openBlock(), createBlock(ElCascaderMenu, {
- key: index,
- ref_for: true,
- ref: (item) => menuList.value[index] = item,
- index,
- nodes: [...menu]
- }, {
- empty: withCtx(() => [
- renderSlot(_ctx.$slots, "empty")
- ]),
- _: 2
- }, 1032, ["index", "nodes"]);
- }), 128))
- ], 34);
- };
- }
- });
- var CascaderPanel = _export_sfc(_sfc_main330, [["__file", "index.vue"]]);
- // node_modules/element-plus/es/components/cascader-panel/index.mjs
- var ElCascaderPanel = withInstall(CascaderPanel);
- // node_modules/element-plus/es/components/tag/src/tag.mjs
- var tagProps = buildProps({
- type: {
- type: String,
- values: ["primary", "success", "info", "warning", "danger"],
- default: "primary"
- },
- closable: Boolean,
- disableTransitions: Boolean,
- hit: Boolean,
- color: String,
- size: {
- type: String,
- values: componentSizes
- },
- effect: {
- type: String,
- values: ["dark", "light", "plain"],
- default: "light"
- },
- round: Boolean
- });
- var tagEmits = {
- close: (evt) => evt instanceof MouseEvent,
- click: (evt) => evt instanceof MouseEvent
- };
- // node_modules/element-plus/es/components/tag/src/tag2.mjs
- var __default__35 = defineComponent({
- name: "ElTag"
- });
- var _sfc_main331 = defineComponent({
- ...__default__35,
- props: tagProps,
- emits: tagEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const tagSize = useFormSize();
- const ns = useNamespace("tag");
- const containerKls = computed(() => {
- const { type: type4, hit, effect, closable, round: round3 } = props2;
- return [
- ns.b(),
- ns.is("closable", closable),
- ns.m(type4 || "primary"),
- ns.m(tagSize.value),
- ns.m(effect),
- ns.is("hit", hit),
- ns.is("round", round3)
- ];
- });
- const handleClose = (event) => {
- emit("close", event);
- };
- const handleClick = (event) => {
- emit("click", event);
- };
- const handleVNodeMounted = (vnode) => {
- var _a2, _b, _c;
- 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) {
- vnode.component.subTree.component.bum = null;
- }
- };
- return (_ctx, _cache) => {
- return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass(unref(containerKls)),
- style: normalizeStyle({ backgroundColor: _ctx.color }),
- onClick: handleClick
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("content"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2),
- _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("close")),
- onClick: withModifiers(handleClose, ["stop"])
- }, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
- ], 6)) : (openBlock(), createBlock(Transition, {
- key: 1,
- name: `${unref(ns).namespace.value}-zoom-in-center`,
- appear: "",
- onVnodeMounted: handleVNodeMounted
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(unref(containerKls)),
- style: normalizeStyle({ backgroundColor: _ctx.color }),
- onClick: handleClick
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("content"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2),
- _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("close")),
- onClick: withModifiers(handleClose, ["stop"])
- }, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
- ], 6)
- ]),
- _: 3
- }, 8, ["name"]));
- };
- }
- });
- var Tag = _export_sfc(_sfc_main331, [["__file", "tag.vue"]]);
- // node_modules/element-plus/es/components/tag/index.mjs
- var ElTag = withInstall(Tag);
- // node_modules/element-plus/es/components/cascader/src/cascader.mjs
- var cascaderProps = buildProps({
- ...CommonProps,
- size: useSizeProp,
- placeholder: String,
- disabled: Boolean,
- clearable: Boolean,
- clearIcon: {
- type: iconPropType,
- default: circle_close_default
- },
- filterable: Boolean,
- filterMethod: {
- type: definePropType(Function),
- default: (node, keyword) => node.text.includes(keyword)
- },
- separator: {
- type: String,
- default: " / "
- },
- showAllLevels: {
- type: Boolean,
- default: true
- },
- collapseTags: Boolean,
- maxCollapseTags: {
- type: Number,
- default: 1
- },
- collapseTagsTooltip: Boolean,
- maxCollapseTagsTooltipHeight: {
- type: [String, Number]
- },
- debounce: {
- type: Number,
- default: 300
- },
- beforeFilter: {
- type: definePropType(Function),
- default: () => true
- },
- placement: {
- type: definePropType(String),
- values: Ee,
- default: "bottom-start"
- },
- fallbackPlacements: {
- type: definePropType(Array),
- default: ["bottom-start", "bottom", "top-start", "top", "right", "left"]
- },
- popperClass: useTooltipContentProps.popperClass,
- popperStyle: useTooltipContentProps.popperStyle,
- teleported: useTooltipContentProps.teleported,
- effect: {
- type: definePropType(String),
- default: "light"
- },
- tagType: { ...tagProps.type, default: "info" },
- tagEffect: { ...tagProps.effect, default: "light" },
- validateEvent: {
- type: Boolean,
- default: true
- },
- persistent: {
- type: Boolean,
- default: true
- },
- showCheckedStrategy: {
- type: String,
- values: ["parent", "child"],
- default: "child"
- },
- checkOnClickNode: Boolean,
- showPrefix: {
- type: Boolean,
- default: true
- },
- ...useEmptyValuesProps
- });
- var emitChangeFn2 = (value) => true;
- var cascaderEmits = {
- [UPDATE_MODEL_EVENT]: emitChangeFn2,
- [CHANGE_EVENT]: emitChangeFn2,
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent,
- clear: () => true,
- visibleChange: (val) => isBoolean2(val),
- expandChange: (val) => !!val,
- removeTag: (val) => !!val
- };
- // node_modules/element-plus/es/directives/click-outside/index.mjs
- var nodeList = /* @__PURE__ */ new Map();
- if (isClient) {
- let startClick;
- document.addEventListener("mousedown", (e) => startClick = e);
- document.addEventListener("mouseup", (e) => {
- if (startClick) {
- for (const handlers2 of nodeList.values()) {
- for (const { documentHandler } of handlers2) {
- documentHandler(e, startClick);
- }
- }
- startClick = void 0;
- }
- });
- }
- function createDocumentHandler(el, binding) {
- let excludes = [];
- if (isArray(binding.arg)) {
- excludes = binding.arg;
- } else if (isElement2(binding.arg)) {
- excludes.push(binding.arg);
- }
- return function(mouseup, mousedown) {
- const popperRef = binding.instance.popperRef;
- const mouseUpTarget = mouseup.target;
- const mouseDownTarget = mousedown == null ? void 0 : mousedown.target;
- const isBound = !binding || !binding.instance;
- const isTargetExists = !mouseUpTarget || !mouseDownTarget;
- const isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
- const isSelf = el === mouseUpTarget;
- const isTargetExcluded = excludes.length && excludes.some((item) => item == null ? void 0 : item.contains(mouseUpTarget)) || excludes.length && excludes.includes(mouseDownTarget);
- const isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
- if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
- return;
- }
- binding.value(mouseup, mousedown);
- };
- }
- var ClickOutside = {
- beforeMount(el, binding) {
- if (!nodeList.has(el)) {
- nodeList.set(el, []);
- }
- nodeList.get(el).push({
- documentHandler: createDocumentHandler(el, binding),
- bindingFn: binding.value
- });
- },
- updated(el, binding) {
- if (!nodeList.has(el)) {
- nodeList.set(el, []);
- }
- const handlers2 = nodeList.get(el);
- const oldHandlerIndex = handlers2.findIndex((item) => item.bindingFn === binding.oldValue);
- const newHandler = {
- documentHandler: createDocumentHandler(el, binding),
- bindingFn: binding.value
- };
- if (oldHandlerIndex >= 0) {
- handlers2.splice(oldHandlerIndex, 1, newHandler);
- } else {
- handlers2.push(newHandler);
- }
- },
- unmounted(el) {
- nodeList.delete(el);
- }
- };
- // node_modules/element-plus/es/components/cascader/src/cascader2.mjs
- var COMPONENT_NAME9 = "ElCascader";
- var __default__36 = defineComponent({
- name: COMPONENT_NAME9
- });
- var _sfc_main332 = defineComponent({
- ...__default__36,
- props: cascaderProps,
- emits: cascaderEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const popperOptions = {
- modifiers: [
- {
- name: "arrowPosition",
- enabled: true,
- phase: "main",
- fn: ({ state }) => {
- const { modifiersData, placement } = state;
- if (["right", "left", "bottom", "top"].includes(placement))
- return;
- if (modifiersData.arrow) {
- modifiersData.arrow.x = 35;
- }
- },
- requires: ["arrow"]
- }
- ]
- };
- const attrs = useAttrs();
- let inputInitialHeight = 0;
- let pressDeleteCount = 0;
- const nsCascader = useNamespace("cascader");
- const nsInput = useNamespace("input");
- const { t } = useLocale();
- const { formItem } = useFormItem();
- const isDisabled = useFormDisabled();
- const { valueOnClear } = useEmptyValues(props2);
- const { isComposing, handleComposition } = useComposition({
- afterComposition(event) {
- var _a2;
- const text = (_a2 = event.target) == null ? void 0 : _a2.value;
- handleInput(text);
- }
- });
- const tooltipRef = ref(null);
- const tagTooltipRef = ref();
- const inputRef = ref();
- const tagWrapper = ref(null);
- const cascaderPanelRef = ref(null);
- const suggestionPanel = ref(null);
- const popperVisible = ref(false);
- const inputHover = ref(false);
- const filtering = ref(false);
- const inputValue = ref("");
- const searchInputValue = ref("");
- const presentTags = ref([]);
- const allPresentTags = ref([]);
- const suggestions = ref([]);
- const cascaderStyle = computed(() => {
- return attrs.style;
- });
- const inputPlaceholder = computed(() => {
- var _a2;
- return (_a2 = props2.placeholder) != null ? _a2 : t("el.cascader.placeholder");
- });
- const currentPlaceholder = computed(() => searchInputValue.value || presentTags.value.length > 0 || isComposing.value ? "" : inputPlaceholder.value);
- const realSize = useFormSize();
- const tagSize = computed(() => realSize.value === "small" ? "small" : "default");
- const multiple = computed(() => !!props2.props.multiple);
- const readonly2 = computed(() => !props2.filterable || multiple.value);
- const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
- const checkedNodes = computed(() => {
- var _a2;
- return ((_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.checkedNodes) || [];
- });
- const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {
- disabled: isDisabled,
- beforeBlur(event) {
- var _a2, _b, _c;
- return ((_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event)) || ((_c = (_b = tagTooltipRef.value) == null ? void 0 : _b[0]) == null ? void 0 : _c.isFocusInsideContent(event));
- },
- afterBlur() {
- var _a2;
- popperVisible.value = false;
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn());
- }
- }
- });
- const clearBtnVisible = computed(() => {
- if (!props2.clearable || isDisabled.value || filtering.value || !inputHover.value && !isFocused.value)
- return false;
- return !!checkedNodes.value.length;
- });
- const presentText = computed(() => {
- const { showAllLevels, separator } = props2;
- const nodes = checkedNodes.value;
- return nodes.length ? multiple.value ? "" : nodes[0].calcText(showAllLevels, separator) : "";
- });
- const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
- const checkedValue = computed({
- get() {
- return cloneDeep_default(props2.modelValue);
- },
- set(val) {
- const value = val != null ? val : valueOnClear.value;
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value);
- if (props2.validateEvent) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- }
- });
- const cascaderKls = computed(() => {
- return [
- nsCascader.b(),
- nsCascader.m(realSize.value),
- nsCascader.is("disabled", isDisabled.value),
- attrs.class
- ];
- });
- const cascaderIconKls = computed(() => {
- return [
- nsInput.e("icon"),
- "icon-arrow-down",
- nsCascader.is("reverse", popperVisible.value)
- ];
- });
- const inputClass = computed(() => nsCascader.is("focus", isFocused.value));
- const contentRef = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
- });
- const handleClickOutside = (event) => {
- if (isFocused.value) {
- const _event2 = new FocusEvent("blur", event);
- handleBlur(_event2);
- }
- togglePopperVisible(false);
- };
- const togglePopperVisible = (visible) => {
- var _a2, _b, _c;
- if (isDisabled.value)
- return;
- visible = visible != null ? visible : !popperVisible.value;
- if (visible !== popperVisible.value) {
- popperVisible.value = visible;
- (_b = (_a2 = inputRef.value) == null ? void 0 : _a2.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
- if (visible) {
- updatePopperPosition();
- nextTick((_c = cascaderPanelRef.value) == null ? void 0 : _c.scrollToExpandingNode);
- } else if (props2.filterable) {
- syncPresentTextValue();
- }
- emit("visibleChange", visible);
- }
- };
- const updatePopperPosition = () => {
- nextTick(() => {
- var _a2;
- (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper();
- });
- };
- const hideSuggestionPanel = () => {
- filtering.value = false;
- };
- const genTag3 = (node) => {
- const { showAllLevels, separator } = props2;
- return {
- node,
- key: node.uid,
- text: node.calcText(showAllLevels, separator),
- hitState: false,
- closable: !isDisabled.value && !node.isDisabled,
- isCollapseTag: false
- };
- };
- const deleteTag = (tag) => {
- var _a2;
- const node = tag.node;
- node.doCheck(false);
- (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.calculateCheckedValue();
- emit("removeTag", node.valueByOption);
- };
- const getStrategyCheckedNodes = () => {
- switch (props2.showCheckedStrategy) {
- case "child":
- return checkedNodes.value;
- case "parent": {
- const clickedNodes = getCheckedNodes(false);
- const clickedNodesValue = clickedNodes.map((o2) => o2.value);
- const parentNodes = clickedNodes.filter((o2) => !o2.parent || !clickedNodesValue.includes(o2.parent.value));
- return parentNodes;
- }
- default:
- return [];
- }
- };
- const calculatePresentTags = () => {
- if (!multiple.value)
- return;
- const nodes = getStrategyCheckedNodes();
- const tags = [];
- const allTags = [];
- nodes.forEach((node) => allTags.push(genTag3(node)));
- allPresentTags.value = allTags;
- if (nodes.length) {
- nodes.slice(0, props2.maxCollapseTags).forEach((node) => tags.push(genTag3(node)));
- const rest2 = nodes.slice(props2.maxCollapseTags);
- const restCount = rest2.length;
- if (restCount) {
- if (props2.collapseTags) {
- tags.push({
- key: -1,
- text: `+ ${restCount}`,
- closable: false,
- isCollapseTag: true
- });
- } else {
- rest2.forEach((node) => tags.push(genTag3(node)));
- }
- }
- }
- presentTags.value = tags;
- };
- const calculateSuggestions = () => {
- var _a2, _b;
- const { filterMethod, showAllLevels, separator } = props2;
- const res = (_b = (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.getFlattedNodes(!props2.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
- if (node.isDisabled)
- return false;
- node.calcText(showAllLevels, separator);
- return filterMethod(node, searchKeyword.value);
- });
- if (multiple.value) {
- presentTags.value.forEach((tag) => {
- tag.hitState = false;
- });
- allPresentTags.value.forEach((tag) => {
- tag.hitState = false;
- });
- }
- filtering.value = true;
- suggestions.value = res;
- updatePopperPosition();
- };
- const focusFirstNode = () => {
- var _a2;
- let firstNode;
- if (filtering.value && suggestionPanel.value) {
- firstNode = suggestionPanel.value.$el.querySelector(`.${nsCascader.e("suggestion-item")}`);
- } else {
- firstNode = (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.$el.querySelector(`.${nsCascader.b("node")}[tabindex="-1"]`);
- }
- if (firstNode) {
- firstNode.focus();
- !filtering.value && firstNode.click();
- }
- };
- const updateStyle = () => {
- var _a2, _b;
- const inputInner = (_a2 = inputRef.value) == null ? void 0 : _a2.input;
- const tagWrapperEl = tagWrapper.value;
- const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
- if (!isClient || !inputInner)
- return;
- if (suggestionPanelEl) {
- const suggestionList = suggestionPanelEl.querySelector(`.${nsCascader.e("suggestion-list")}`);
- suggestionList.style.minWidth = `${inputInner.offsetWidth}px`;
- }
- if (tagWrapperEl) {
- const { offsetHeight } = tagWrapperEl;
- const height = presentTags.value.length > 0 ? `${Math.max(offsetHeight, inputInitialHeight) - 2}px` : `${inputInitialHeight}px`;
- inputInner.style.height = height;
- updatePopperPosition();
- }
- };
- const getCheckedNodes = (leafOnly) => {
- var _a2;
- return (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.getCheckedNodes(leafOnly);
- };
- const handleExpandChange = (value) => {
- updatePopperPosition();
- emit("expandChange", value);
- };
- const handleKeyDown = (e) => {
- if (isComposing.value)
- return;
- switch (e.code) {
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- togglePopperVisible();
- break;
- case EVENT_CODE.down:
- togglePopperVisible(true);
- nextTick(focusFirstNode);
- e.preventDefault();
- break;
- case EVENT_CODE.esc:
- if (popperVisible.value === true) {
- e.preventDefault();
- e.stopPropagation();
- togglePopperVisible(false);
- }
- break;
- case EVENT_CODE.tab:
- togglePopperVisible(false);
- break;
- }
- };
- const handleClear = () => {
- var _a2;
- (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.clearCheckedNodes();
- if (!popperVisible.value && props2.filterable) {
- syncPresentTextValue();
- }
- togglePopperVisible(false);
- emit("clear");
- };
- const syncPresentTextValue = () => {
- const { value } = presentText;
- inputValue.value = value;
- searchInputValue.value = value;
- };
- const handleSuggestionClick = (node) => {
- var _a2, _b;
- const { checked } = node;
- if (multiple.value) {
- (_a2 = cascaderPanelRef.value) == null ? void 0 : _a2.handleCheckChange(node, !checked, false);
- } else {
- !checked && ((_b = cascaderPanelRef.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
- togglePopperVisible(false);
- }
- };
- const handleSuggestionKeyDown = (e) => {
- const target2 = e.target;
- const { code } = e;
- switch (code) {
- case EVENT_CODE.up:
- case EVENT_CODE.down: {
- e.preventDefault();
- const distance = code === EVENT_CODE.up ? -1 : 1;
- focusNode(getSibling(target2, distance, `.${nsCascader.e("suggestion-item")}[tabindex="-1"]`));
- break;
- }
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- target2.click();
- break;
- }
- };
- const handleDelete = () => {
- const tags = presentTags.value;
- const lastTag = tags[tags.length - 1];
- pressDeleteCount = searchInputValue.value ? 0 : pressDeleteCount + 1;
- if (!lastTag || !pressDeleteCount || props2.collapseTags && tags.length > 1)
- return;
- if (lastTag.hitState) {
- deleteTag(lastTag);
- } else {
- lastTag.hitState = true;
- }
- };
- const handleFilter = debounce_default(() => {
- const { value } = searchKeyword;
- if (!value)
- return;
- const passed = props2.beforeFilter(value);
- if (isPromise(passed)) {
- passed.then(calculateSuggestions).catch(() => {
- });
- } else if (passed !== false) {
- calculateSuggestions();
- } else {
- hideSuggestionPanel();
- }
- }, props2.debounce);
- const handleInput = (val, e) => {
- !popperVisible.value && togglePopperVisible(true);
- if (e == null ? void 0 : e.isComposing)
- return;
- val ? handleFilter() : hideSuggestionPanel();
- };
- const getInputInnerHeight = (inputInner) => Number.parseFloat(useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
- watch(filtering, updatePopperPosition);
- watch([checkedNodes, isDisabled, () => props2.collapseTags], calculatePresentTags);
- watch(presentTags, () => {
- nextTick(() => updateStyle());
- });
- watch(realSize, async () => {
- await nextTick();
- const inputInner = inputRef.value.input;
- inputInitialHeight = getInputInnerHeight(inputInner) || inputInitialHeight;
- updateStyle();
- });
- watch(presentText, syncPresentTextValue, { immediate: true });
- onMounted(() => {
- const inputInner = inputRef.value.input;
- const inputInnerHeight = getInputInnerHeight(inputInner);
- inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
- useResizeObserver(inputInner, updateStyle);
- });
- expose({
- getCheckedNodes,
- cascaderPanelRef,
- togglePopperVisible,
- contentRef,
- presentText
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTooltip), {
- ref_key: "tooltipRef",
- ref: tooltipRef,
- visible: popperVisible.value,
- teleported: _ctx.teleported,
- "popper-class": [unref(nsCascader).e("dropdown"), _ctx.popperClass],
- "popper-style": _ctx.popperStyle,
- "popper-options": popperOptions,
- "fallback-placements": _ctx.fallbackPlacements,
- "stop-popper-mouse-event": false,
- "gpu-acceleration": false,
- placement: _ctx.placement,
- transition: `${unref(nsCascader).namespace.value}-zoom-in-top`,
- effect: _ctx.effect,
- pure: "",
- persistent: _ctx.persistent,
- onHide: hideSuggestionPanel
- }, {
- default: withCtx(() => [
- withDirectives((openBlock(), createElementBlock("div", {
- ref_key: "wrapperRef",
- ref: wrapperRef,
- class: normalizeClass(unref(cascaderKls)),
- style: normalizeStyle(unref(cascaderStyle)),
- onClick: () => togglePopperVisible(unref(readonly2) ? void 0 : true),
- onKeydown: handleKeyDown,
- onMouseenter: ($event) => inputHover.value = true,
- onMouseleave: ($event) => inputHover.value = false
- }, [
- createVNode(unref(ElInput), {
- ref_key: "inputRef",
- ref: inputRef,
- modelValue: inputValue.value,
- "onUpdate:modelValue": ($event) => inputValue.value = $event,
- placeholder: unref(currentPlaceholder),
- readonly: unref(readonly2),
- disabled: unref(isDisabled),
- "validate-event": false,
- size: unref(realSize),
- class: normalizeClass(unref(inputClass)),
- tabindex: unref(multiple) && _ctx.filterable && !unref(isDisabled) ? -1 : void 0,
- onCompositionstart: unref(handleComposition),
- onCompositionupdate: unref(handleComposition),
- onCompositionend: unref(handleComposition),
- onInput: handleInput
- }, createSlots({
- suffix: withCtx(() => [
- unref(clearBtnVisible) ? (openBlock(), createBlock(unref(ElIcon), {
- key: "clear",
- class: normalizeClass([unref(nsInput).e("icon"), "icon-circle-close"]),
- onClick: withModifiers(handleClear, ["stop"])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : (openBlock(), createBlock(unref(ElIcon), {
- key: "arrow-down",
- class: normalizeClass(unref(cascaderIconKls)),
- onClick: withModifiers(($event) => togglePopperVisible(), ["stop"])
- }, {
- default: withCtx(() => [
- createVNode(unref(arrow_down_default))
- ]),
- _: 1
- }, 8, ["class", "onClick"]))
- ]),
- _: 2
- }, [
- _ctx.$slots.prefix ? {
- name: "prefix",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "prefix")
- ])
- } : void 0
- ]), 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "size", "class", "tabindex", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
- unref(multiple) ? (openBlock(), createElementBlock("div", {
- key: 0,
- ref_key: "tagWrapper",
- ref: tagWrapper,
- class: normalizeClass([
- unref(nsCascader).e("tags"),
- unref(nsCascader).is("validate", Boolean(unref(validateState)))
- ])
- }, [
- renderSlot(_ctx.$slots, "tag", {
- data: allPresentTags.value,
- deleteTag
- }, () => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(presentTags.value, (tag) => {
- return openBlock(), createBlock(unref(ElTag), {
- key: tag.key,
- type: _ctx.tagType,
- size: unref(tagSize),
- effect: _ctx.tagEffect,
- hit: tag.hitState,
- closable: tag.closable,
- "disable-transitions": "",
- onClose: ($event) => deleteTag(tag)
- }, {
- default: withCtx(() => [
- tag.isCollapseTag === false ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(tag.text), 1)) : (openBlock(), createBlock(unref(ElTooltip), {
- key: 1,
- ref_for: true,
- ref_key: "tagTooltipRef",
- ref: tagTooltipRef,
- disabled: popperVisible.value || !_ctx.collapseTagsTooltip,
- "fallback-placements": ["bottom", "top", "right", "left"],
- placement: "bottom",
- "popper-class": _ctx.popperClass,
- "popper-style": _ctx.popperStyle,
- effect: _ctx.effect
- }, {
- default: withCtx(() => [
- createBaseVNode("span", null, toDisplayString(tag.text), 1)
- ]),
- content: withCtx(() => [
- createVNode(unref(ElScrollbar), { "max-height": _ctx.maxCollapseTagsTooltipHeight }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsCascader).e("collapse-tags"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(allPresentTags.value.slice(_ctx.maxCollapseTags), (tag2, idx) => {
- return openBlock(), createElementBlock("div", {
- key: idx,
- class: normalizeClass(unref(nsCascader).e("collapse-tag"))
- }, [
- (openBlock(), createBlock(unref(ElTag), {
- key: tag2.key,
- class: "in-tooltip",
- type: _ctx.tagType,
- size: unref(tagSize),
- effect: _ctx.tagEffect,
- hit: tag2.hitState,
- closable: tag2.closable,
- "disable-transitions": "",
- onClose: ($event) => deleteTag(tag2)
- }, {
- default: withCtx(() => [
- createBaseVNode("span", null, toDisplayString(tag2.text), 1)
- ]),
- _: 2
- }, 1032, ["type", "size", "effect", "hit", "closable", "onClose"]))
- ], 2);
- }), 128))
- ], 2)
- ]),
- _: 1
- }, 8, ["max-height"])
- ]),
- _: 2
- }, 1032, ["disabled", "popper-class", "popper-style", "effect"]))
- ]),
- _: 2
- }, 1032, ["type", "size", "effect", "hit", "closable", "onClose"]);
- }), 128))
- ]),
- _ctx.filterable && !unref(isDisabled) ? withDirectives((openBlock(), createElementBlock("input", {
- key: 0,
- "onUpdate:modelValue": ($event) => searchInputValue.value = $event,
- type: "text",
- class: normalizeClass(unref(nsCascader).e("search-input")),
- placeholder: unref(presentText) ? "" : unref(inputPlaceholder),
- onInput: (e) => handleInput(searchInputValue.value, e),
- onClick: withModifiers(($event) => togglePopperVisible(true), ["stop"]),
- onKeydown: withKeys(handleDelete, ["delete"]),
- onCompositionstart: unref(handleComposition),
- onCompositionupdate: unref(handleComposition),
- onCompositionend: unref(handleComposition)
- }, null, 42, ["onUpdate:modelValue", "placeholder", "onInput", "onClick", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend"])), [
- [vModelText, searchInputValue.value]
- ]) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ], 46, ["onClick", "onMouseenter", "onMouseleave"])), [
- [unref(ClickOutside), handleClickOutside, unref(contentRef)]
- ])
- ]),
- content: withCtx(() => [
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(nsCascader).e("header")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "header")
- ], 10, ["onClick"])) : createCommentVNode("v-if", true),
- withDirectives(createVNode(unref(ElCascaderPanel), {
- ref_key: "cascaderPanelRef",
- ref: cascaderPanelRef,
- modelValue: unref(checkedValue),
- "onUpdate:modelValue": ($event) => isRef(checkedValue) ? checkedValue.value = $event : null,
- options: _ctx.options,
- props: props2.props,
- border: false,
- "render-label": _ctx.$slots.default,
- onExpandChange: handleExpandChange,
- onClose: ($event) => _ctx.$nextTick(() => togglePopperVisible(false))
- }, {
- empty: withCtx(() => [
- renderSlot(_ctx.$slots, "empty")
- ]),
- _: 3
- }, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "render-label", "onClose"]), [
- [vShow, !filtering.value]
- ]),
- _ctx.filterable ? withDirectives((openBlock(), createBlock(unref(ElScrollbar), {
- key: 1,
- ref_key: "suggestionPanel",
- ref: suggestionPanel,
- tag: "ul",
- class: normalizeClass(unref(nsCascader).e("suggestion-panel")),
- "view-class": unref(nsCascader).e("suggestion-list"),
- onKeydown: handleSuggestionKeyDown
- }, {
- default: withCtx(() => [
- suggestions.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(suggestions.value, (item) => {
- return openBlock(), createElementBlock("li", {
- key: item.uid,
- class: normalizeClass([
- unref(nsCascader).e("suggestion-item"),
- unref(nsCascader).is("checked", item.checked)
- ]),
- tabindex: -1,
- onClick: ($event) => handleSuggestionClick(item)
- }, [
- renderSlot(_ctx.$slots, "suggestion-item", { item }, () => [
- createBaseVNode("span", null, toDisplayString(item.text), 1),
- item.checked ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- createVNode(unref(check_default))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true)
- ])
- ], 10, ["onClick"]);
- }), 128)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
- createBaseVNode("li", {
- class: normalizeClass(unref(nsCascader).e("empty-text"))
- }, toDisplayString(unref(t)("el.cascader.noMatch")), 3)
- ])
- ]),
- _: 3
- }, 8, ["class", "view-class"])), [
- [vShow, filtering.value]
- ]) : createCommentVNode("v-if", true),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass(unref(nsCascader).e("footer")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 10, ["onClick"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["visible", "teleported", "popper-class", "popper-style", "fallback-placements", "placement", "transition", "effect", "persistent"]);
- };
- }
- });
- var Cascader = _export_sfc(_sfc_main332, [["__file", "cascader.vue"]]);
- // node_modules/element-plus/es/components/cascader/index.mjs
- var ElCascader = withInstall(Cascader);
- // node_modules/element-plus/es/components/check-tag/src/check-tag.mjs
- var checkTagProps = buildProps({
- checked: Boolean,
- disabled: Boolean,
- type: {
- type: String,
- values: ["primary", "success", "info", "warning", "danger"],
- default: "primary"
- }
- });
- var checkTagEmits = {
- "update:checked": (value) => isBoolean2(value),
- [CHANGE_EVENT]: (value) => isBoolean2(value)
- };
- // node_modules/element-plus/es/components/check-tag/src/check-tag2.mjs
- var __default__37 = defineComponent({
- name: "ElCheckTag"
- });
- var _sfc_main333 = defineComponent({
- ...__default__37,
- props: checkTagProps,
- emits: checkTagEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("check-tag");
- const isDisabled = computed(() => props2.disabled);
- const containerKls = computed(() => [
- ns.b(),
- ns.is("checked", props2.checked),
- ns.is("disabled", isDisabled.value),
- ns.m(props2.type || "primary")
- ]);
- const handleChange = () => {
- if (isDisabled.value)
- return;
- const checked = !props2.checked;
- emit(CHANGE_EVENT, checked);
- emit("update:checked", checked);
- };
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(containerKls)),
- onClick: handleChange
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2);
- };
- }
- });
- var CheckTag = _export_sfc(_sfc_main333, [["__file", "check-tag.vue"]]);
- // node_modules/element-plus/es/components/check-tag/index.mjs
- var ElCheckTag = withInstall(CheckTag);
- // node_modules/element-plus/es/components/col/src/col.mjs
- var colProps = buildProps({
- tag: {
- type: String,
- default: "div"
- },
- span: {
- type: Number,
- default: 24
- },
- offset: {
- type: Number,
- default: 0
- },
- pull: {
- type: Number,
- default: 0
- },
- push: {
- type: Number,
- default: 0
- },
- xs: {
- type: definePropType([Number, Object]),
- default: () => mutable({})
- },
- sm: {
- type: definePropType([Number, Object]),
- default: () => mutable({})
- },
- md: {
- type: definePropType([Number, Object]),
- default: () => mutable({})
- },
- lg: {
- type: definePropType([Number, Object]),
- default: () => mutable({})
- },
- xl: {
- type: definePropType([Number, Object]),
- default: () => mutable({})
- }
- });
- // node_modules/element-plus/es/components/row/src/constants.mjs
- var rowContextKey = Symbol("rowContextKey");
- // node_modules/element-plus/es/components/col/src/col2.mjs
- var __default__38 = defineComponent({
- name: "ElCol"
- });
- var _sfc_main334 = defineComponent({
- ...__default__38,
- props: colProps,
- setup(__props) {
- const props2 = __props;
- const { gutter } = inject(rowContextKey, { gutter: computed(() => 0) });
- const ns = useNamespace("col");
- const style = computed(() => {
- const styles = {};
- if (gutter.value) {
- styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`;
- }
- return styles;
- });
- const colKls = computed(() => {
- const classes = [];
- const pos = ["span", "offset", "pull", "push"];
- pos.forEach((prop) => {
- const size3 = props2[prop];
- if (isNumber2(size3)) {
- if (prop === "span")
- classes.push(ns.b(`${props2[prop]}`));
- else if (size3 > 0)
- classes.push(ns.b(`${prop}-${props2[prop]}`));
- }
- });
- const sizes = ["xs", "sm", "md", "lg", "xl"];
- sizes.forEach((size3) => {
- if (isNumber2(props2[size3])) {
- classes.push(ns.b(`${size3}-${props2[size3]}`));
- } else if (isObject(props2[size3])) {
- Object.entries(props2[size3]).forEach(([prop, sizeProp]) => {
- classes.push(prop !== "span" ? ns.b(`${size3}-${prop}-${sizeProp}`) : ns.b(`${size3}-${sizeProp}`));
- });
- }
- });
- if (gutter.value) {
- classes.push(ns.is("guttered"));
- }
- return [ns.b(), classes];
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
- class: normalizeClass(unref(colKls)),
- style: normalizeStyle(unref(style))
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["class", "style"]);
- };
- }
- });
- var Col = _export_sfc(_sfc_main334, [["__file", "col.vue"]]);
- // node_modules/element-plus/es/components/col/index.mjs
- var ElCol = withInstall(Col);
- // node_modules/element-plus/es/components/collapse/src/collapse.mjs
- var emitChangeFn3 = (value) => isNumber2(value) || isString(value) || isArray(value);
- var collapseProps = buildProps({
- accordion: Boolean,
- modelValue: {
- type: definePropType([Array, String, Number]),
- default: () => mutable([])
- },
- expandIconPosition: {
- type: definePropType([String]),
- default: "right"
- },
- beforeCollapse: {
- type: definePropType(Function)
- }
- });
- var collapseEmits = {
- [UPDATE_MODEL_EVENT]: emitChangeFn3,
- [CHANGE_EVENT]: emitChangeFn3
- };
- // node_modules/element-plus/es/components/collapse/src/constants.mjs
- var collapseContextKey = Symbol("collapseContextKey");
- // node_modules/element-plus/es/components/collapse/src/use-collapse.mjs
- var SCOPE2 = "ElCollapse";
- var useCollapse = (props2, emit) => {
- const activeNames = ref(castArray_default(props2.modelValue));
- const setActiveNames = (_activeNames) => {
- activeNames.value = _activeNames;
- const value = props2.accordion ? activeNames.value[0] : activeNames.value;
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value);
- };
- const handleChange = (name) => {
- if (props2.accordion) {
- setActiveNames([activeNames.value[0] === name ? "" : name]);
- } else {
- const _activeNames = [...activeNames.value];
- const index = _activeNames.indexOf(name);
- if (index > -1) {
- _activeNames.splice(index, 1);
- } else {
- _activeNames.push(name);
- }
- setActiveNames(_activeNames);
- }
- };
- const handleItemClick = async (name) => {
- const { beforeCollapse } = props2;
- if (!beforeCollapse) {
- handleChange(name);
- return;
- }
- const shouldChange = beforeCollapse(name);
- const isPromiseOrBool = [
- isPromise(shouldChange),
- isBoolean2(shouldChange)
- ].includes(true);
- if (!isPromiseOrBool) {
- throwError(SCOPE2, "beforeCollapse must return type `Promise<boolean>` or `boolean`");
- }
- if (isPromise(shouldChange)) {
- shouldChange.then((result2) => {
- if (result2 !== false) {
- handleChange(name);
- }
- }).catch((e) => {
- });
- } else if (shouldChange) {
- handleChange(name);
- }
- };
- watch(() => props2.modelValue, () => activeNames.value = castArray_default(props2.modelValue), { deep: true });
- provide(collapseContextKey, {
- activeNames,
- handleItemClick
- });
- return {
- activeNames,
- setActiveNames
- };
- };
- var useCollapseDOM = (props2) => {
- const ns = useNamespace("collapse");
- const rootKls = computed(() => [
- ns.b(),
- ns.b(`icon-position-${props2.expandIconPosition}`)
- ]);
- return {
- rootKls
- };
- };
- // node_modules/element-plus/es/components/collapse/src/collapse2.mjs
- var __default__39 = defineComponent({
- name: "ElCollapse"
- });
- var _sfc_main335 = defineComponent({
- ...__default__39,
- props: collapseProps,
- emits: collapseEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { activeNames, setActiveNames } = useCollapse(props2, emit);
- const { rootKls } = useCollapseDOM(props2);
- expose({
- activeNames,
- setActiveNames
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(rootKls))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2);
- };
- }
- });
- var Collapse = _export_sfc(_sfc_main335, [["__file", "collapse.vue"]]);
- // node_modules/element-plus/es/components/collapse-transition/src/collapse-transition.mjs
- var __default__40 = defineComponent({
- name: "ElCollapseTransition"
- });
- var _sfc_main336 = defineComponent({
- ...__default__40,
- setup(__props) {
- const ns = useNamespace("collapse-transition");
- const reset = (el) => {
- el.style.maxHeight = "";
- el.style.overflow = el.dataset.oldOverflow;
- el.style.paddingTop = el.dataset.oldPaddingTop;
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
- };
- const on2 = {
- beforeEnter(el) {
- if (!el.dataset)
- el.dataset = {};
- el.dataset.oldPaddingTop = el.style.paddingTop;
- el.dataset.oldPaddingBottom = el.style.paddingBottom;
- if (el.style.height)
- el.dataset.elExistsHeight = el.style.height;
- el.style.maxHeight = 0;
- el.style.paddingTop = 0;
- el.style.paddingBottom = 0;
- },
- enter(el) {
- requestAnimationFrame(() => {
- el.dataset.oldOverflow = el.style.overflow;
- if (el.dataset.elExistsHeight) {
- el.style.maxHeight = el.dataset.elExistsHeight;
- } else if (el.scrollHeight !== 0) {
- el.style.maxHeight = `${el.scrollHeight}px`;
- } else {
- el.style.maxHeight = 0;
- }
- el.style.paddingTop = el.dataset.oldPaddingTop;
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
- el.style.overflow = "hidden";
- });
- },
- afterEnter(el) {
- el.style.maxHeight = "";
- el.style.overflow = el.dataset.oldOverflow;
- },
- enterCancelled(el) {
- reset(el);
- },
- beforeLeave(el) {
- if (!el.dataset)
- el.dataset = {};
- el.dataset.oldPaddingTop = el.style.paddingTop;
- el.dataset.oldPaddingBottom = el.style.paddingBottom;
- el.dataset.oldOverflow = el.style.overflow;
- el.style.maxHeight = `${el.scrollHeight}px`;
- el.style.overflow = "hidden";
- },
- leave(el) {
- if (el.scrollHeight !== 0) {
- el.style.maxHeight = 0;
- el.style.paddingTop = 0;
- el.style.paddingBottom = 0;
- }
- },
- afterLeave(el) {
- reset(el);
- },
- leaveCancelled(el) {
- reset(el);
- }
- };
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, mergeProps({
- name: unref(ns).b()
- }, toHandlers(on2)), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16, ["name"]);
- };
- }
- });
- var CollapseTransition = _export_sfc(_sfc_main336, [["__file", "collapse-transition.vue"]]);
- // node_modules/element-plus/es/components/collapse-transition/index.mjs
- var ElCollapseTransition = withInstall(CollapseTransition);
- // node_modules/element-plus/es/components/collapse/src/collapse-item.mjs
- var collapseItemProps = buildProps({
- title: {
- type: String,
- default: ""
- },
- name: {
- type: definePropType([String, Number]),
- default: void 0
- },
- icon: {
- type: iconPropType,
- default: arrow_right_default
- },
- disabled: Boolean
- });
- // node_modules/element-plus/es/components/collapse/src/use-collapse-item.mjs
- var useCollapseItem = (props2) => {
- const collapse = inject(collapseContextKey);
- const { namespace } = useNamespace("collapse");
- const focusing = ref(false);
- const isClick = ref(false);
- const idInjection = useIdInjection();
- const id = computed(() => idInjection.current++);
- const name = computed(() => {
- var _a2;
- return (_a2 = props2.name) != null ? _a2 : `${namespace.value}-id-${idInjection.prefix}-${unref(id)}`;
- });
- const isActive = computed(() => collapse == null ? void 0 : collapse.activeNames.value.includes(unref(name)));
- const handleFocus = () => {
- setTimeout(() => {
- if (!isClick.value) {
- focusing.value = true;
- } else {
- isClick.value = false;
- }
- }, 50);
- };
- const handleHeaderClick = (e) => {
- if (props2.disabled)
- return;
- const target2 = e.target;
- if (target2 == null ? void 0 : target2.closest("input, textarea, select"))
- return;
- collapse == null ? void 0 : collapse.handleItemClick(unref(name));
- focusing.value = false;
- isClick.value = true;
- };
- const handleEnterClick = (e) => {
- const target2 = e.target;
- if (target2 == null ? void 0 : target2.closest("input, textarea, select"))
- return;
- e.preventDefault();
- collapse == null ? void 0 : collapse.handleItemClick(unref(name));
- };
- return {
- focusing,
- id,
- isActive,
- handleFocus,
- handleHeaderClick,
- handleEnterClick
- };
- };
- var useCollapseItemDOM = (props2, { focusing, isActive, id }) => {
- const ns = useNamespace("collapse");
- const rootKls = computed(() => [
- ns.b("item"),
- ns.is("active", unref(isActive)),
- ns.is("disabled", props2.disabled)
- ]);
- const headKls = computed(() => [
- ns.be("item", "header"),
- ns.is("active", unref(isActive)),
- { focusing: unref(focusing) && !props2.disabled }
- ]);
- const arrowKls = computed(() => [
- ns.be("item", "arrow"),
- ns.is("active", unref(isActive))
- ]);
- const itemTitleKls = computed(() => [ns.be("item", "title")]);
- const itemWrapperKls = computed(() => ns.be("item", "wrap"));
- const itemContentKls = computed(() => ns.be("item", "content"));
- const scopedContentId = computed(() => ns.b(`content-${unref(id)}`));
- const scopedHeadId = computed(() => ns.b(`head-${unref(id)}`));
- return {
- itemTitleKls,
- arrowKls,
- headKls,
- rootKls,
- itemWrapperKls,
- itemContentKls,
- scopedContentId,
- scopedHeadId
- };
- };
- // node_modules/element-plus/es/components/collapse/src/collapse-item2.mjs
- var __default__41 = defineComponent({
- name: "ElCollapseItem"
- });
- var _sfc_main337 = defineComponent({
- ...__default__41,
- props: collapseItemProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const {
- focusing,
- id,
- isActive,
- handleFocus,
- handleHeaderClick,
- handleEnterClick
- } = useCollapseItem(props2);
- const {
- arrowKls,
- headKls,
- rootKls,
- itemTitleKls,
- itemWrapperKls,
- itemContentKls,
- scopedContentId,
- scopedHeadId
- } = useCollapseItemDOM(props2, { focusing, isActive, id });
- expose({
- isActive
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(rootKls))
- }, [
- createBaseVNode("div", {
- id: unref(scopedHeadId),
- class: normalizeClass(unref(headKls)),
- "aria-expanded": unref(isActive),
- "aria-controls": unref(scopedContentId),
- "aria-describedby": unref(scopedContentId),
- tabindex: _ctx.disabled ? -1 : 0,
- role: "button",
- onClick: unref(handleHeaderClick),
- onKeydown: withKeys(withModifiers(unref(handleEnterClick), ["stop"]), ["space", "enter"]),
- onFocus: unref(handleFocus),
- onBlur: ($event) => focusing.value = false
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(itemTitleKls))
- }, [
- renderSlot(_ctx.$slots, "title", { isActive: unref(isActive) }, () => [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ])
- ], 2),
- renderSlot(_ctx.$slots, "icon", { isActive: unref(isActive) }, () => [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(arrowKls))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- }, 8, ["class"])
- ])
- ], 42, ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex", "onClick", "onKeydown", "onFocus", "onBlur"]),
- createVNode(unref(ElCollapseTransition), null, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("div", {
- id: unref(scopedContentId),
- role: "region",
- class: normalizeClass(unref(itemWrapperKls)),
- "aria-hidden": !unref(isActive),
- "aria-labelledby": unref(scopedHeadId)
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(itemContentKls))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)
- ], 10, ["id", "aria-hidden", "aria-labelledby"]), [
- [vShow, unref(isActive)]
- ])
- ]),
- _: 3
- })
- ], 2);
- };
- }
- });
- var CollapseItem = _export_sfc(_sfc_main337, [["__file", "collapse-item.vue"]]);
- // node_modules/element-plus/es/components/collapse/index.mjs
- var ElCollapse = withInstall(Collapse, {
- CollapseItem
- });
- var ElCollapseItem = withNoopInstall(CollapseItem);
- // node_modules/element-plus/es/components/color-picker-panel/src/props/alpha-slider.mjs
- var alphaSliderProps = buildProps({
- color: {
- type: definePropType(Object),
- required: true
- },
- vertical: Boolean,
- disabled: Boolean
- });
- // node_modules/element-plus/es/components/color-picker-panel/src/utils/draggable.mjs
- var isDragging = false;
- function draggable(element, options) {
- if (!isClient)
- return;
- const moveFn = function(event) {
- var _a2;
- (_a2 = options.drag) == null ? void 0 : _a2.call(options, event);
- };
- const upFn = function(event) {
- var _a2;
- document.removeEventListener("mousemove", moveFn);
- document.removeEventListener("mouseup", upFn);
- document.removeEventListener("touchmove", moveFn);
- document.removeEventListener("touchend", upFn);
- document.onselectstart = null;
- document.ondragstart = null;
- isDragging = false;
- (_a2 = options.end) == null ? void 0 : _a2.call(options, event);
- };
- const downFn = function(event) {
- var _a2;
- if (isDragging)
- return;
- event.preventDefault();
- document.onselectstart = () => false;
- document.ondragstart = () => false;
- document.addEventListener("mousemove", moveFn);
- document.addEventListener("mouseup", upFn);
- document.addEventListener("touchmove", moveFn);
- document.addEventListener("touchend", upFn);
- isDragging = true;
- (_a2 = options.start) == null ? void 0 : _a2.call(options, event);
- };
- element.addEventListener("mousedown", downFn);
- element.addEventListener("touchstart", downFn, { passive: false });
- }
- // node_modules/element-plus/es/utils/dom/position.mjs
- var getOffsetTop = (el) => {
- let offset3 = 0;
- let parent2 = el;
- while (parent2) {
- offset3 += parent2.offsetTop;
- parent2 = parent2.offsetParent;
- }
- return offset3;
- };
- var getOffsetTopDistance = (el, containerEl) => {
- return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl));
- };
- var getClientXY = (event) => {
- let clientX;
- let clientY;
- if (event.type === "touchend") {
- clientY = event.changedTouches[0].clientY;
- clientX = event.changedTouches[0].clientX;
- } else if (event.type.startsWith("touch")) {
- clientY = event.touches[0].clientY;
- clientX = event.touches[0].clientX;
- } else {
- clientY = event.clientY;
- clientX = event.clientX;
- }
- return {
- clientX,
- clientY
- };
- };
- // node_modules/element-plus/es/components/color-picker-panel/src/composables/use-alpha-slider.mjs
- var useAlphaSlider = (props2) => {
- const instance = getCurrentInstance();
- const { t } = useLocale();
- const thumb = shallowRef();
- const bar = shallowRef();
- const alpha = computed(() => props2.color.get("alpha"));
- const alphaLabel = computed(() => t("el.colorpicker.alphaLabel"));
- function handleClick(event) {
- var _a2;
- if (props2.disabled)
- return;
- const target2 = event.target;
- if (target2 !== thumb.value) {
- handleDrag(event);
- }
- (_a2 = thumb.value) == null ? void 0 : _a2.focus();
- }
- function handleDrag(event) {
- if (!bar.value || !thumb.value || props2.disabled)
- return;
- const el = instance.vnode.el;
- const rect = el.getBoundingClientRect();
- const { clientX, clientY } = getClientXY(event);
- if (!props2.vertical) {
- let left = clientX - rect.left;
- left = Math.max(thumb.value.offsetWidth / 2, left);
- left = Math.min(left, rect.width - thumb.value.offsetWidth / 2);
- props2.color.set("alpha", Math.round((left - thumb.value.offsetWidth / 2) / (rect.width - thumb.value.offsetWidth) * 100));
- } else {
- let top = clientY - rect.top;
- top = Math.max(thumb.value.offsetHeight / 2, top);
- top = Math.min(top, rect.height - thumb.value.offsetHeight / 2);
- props2.color.set("alpha", Math.round((top - thumb.value.offsetHeight / 2) / (rect.height - thumb.value.offsetHeight) * 100));
- }
- }
- function handleKeydown(event) {
- if (props2.disabled)
- return;
- const { code, shiftKey } = event;
- const step2 = shiftKey ? 10 : 1;
- switch (code) {
- case EVENT_CODE.left:
- case EVENT_CODE.down:
- event.preventDefault();
- event.stopPropagation();
- incrementPosition(-step2);
- break;
- case EVENT_CODE.right:
- case EVENT_CODE.up:
- event.preventDefault();
- event.stopPropagation();
- incrementPosition(step2);
- break;
- }
- }
- function incrementPosition(step2) {
- let next = alpha.value + step2;
- next = next < 0 ? 0 : next > 100 ? 100 : next;
- props2.color.set("alpha", next);
- }
- return {
- thumb,
- bar,
- alpha,
- alphaLabel,
- handleDrag,
- handleClick,
- handleKeydown
- };
- };
- var useAlphaSliderDOM = (props2, {
- bar,
- thumb,
- handleDrag
- }) => {
- const instance = getCurrentInstance();
- const ns = useNamespace("color-alpha-slider");
- const thumbLeft = ref(0);
- const thumbTop = ref(0);
- const background = ref();
- function getThumbLeft() {
- if (!thumb.value)
- return 0;
- if (props2.vertical)
- return 0;
- const el = instance.vnode.el;
- const alpha = props2.color.get("alpha");
- if (!el)
- return 0;
- return Math.round(alpha * (el.offsetWidth - thumb.value.offsetWidth / 2) / 100);
- }
- function getThumbTop() {
- if (!thumb.value)
- return 0;
- const el = instance.vnode.el;
- if (!props2.vertical)
- return 0;
- const alpha = props2.color.get("alpha");
- if (!el)
- return 0;
- return Math.round(alpha * (el.offsetHeight - thumb.value.offsetHeight / 2) / 100);
- }
- function getBackground() {
- if (props2.color && props2.color.value) {
- const { r, g, b: b2 } = props2.color.toRgb();
- return `linear-gradient(to right, rgba(${r}, ${g}, ${b2}, 0) 0%, rgba(${r}, ${g}, ${b2}, 1) 100%)`;
- }
- return "";
- }
- function update2() {
- thumbLeft.value = getThumbLeft();
- thumbTop.value = getThumbTop();
- background.value = getBackground();
- }
- onMounted(() => {
- if (!bar.value || !thumb.value)
- return;
- const dragConfig = {
- drag: (event) => {
- handleDrag(event);
- },
- end: (event) => {
- handleDrag(event);
- }
- };
- draggable(bar.value, dragConfig);
- draggable(thumb.value, dragConfig);
- update2();
- });
- watch(() => props2.color.get("alpha"), () => update2());
- watch(() => props2.color.value, () => update2());
- const rootKls = computed(() => [
- ns.b(),
- ns.is("vertical", props2.vertical),
- ns.is("disabled", props2.disabled)
- ]);
- const barKls = computed(() => ns.e("bar"));
- const thumbKls = computed(() => ns.e("thumb"));
- const barStyle = computed(() => ({ background: background.value }));
- const thumbStyle = computed(() => ({
- left: addUnit(thumbLeft.value),
- top: addUnit(thumbTop.value)
- }));
- return { rootKls, barKls, barStyle, thumbKls, thumbStyle, update: update2 };
- };
- // node_modules/element-plus/es/components/color-picker-panel/src/components/alpha-slider.mjs
- var COMPONENT_NAME10 = "ElColorAlphaSlider";
- var __default__42 = defineComponent({
- name: COMPONENT_NAME10
- });
- var _sfc_main338 = defineComponent({
- ...__default__42,
- props: alphaSliderProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const {
- alpha,
- alphaLabel,
- bar,
- thumb,
- handleDrag,
- handleClick,
- handleKeydown
- } = useAlphaSlider(props2);
- const { rootKls, barKls, barStyle, thumbKls, thumbStyle, update: update2 } = useAlphaSliderDOM(props2, {
- bar,
- thumb,
- handleDrag
- });
- expose({
- update: update2,
- bar,
- thumb
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(rootKls))
- }, [
- createBaseVNode("div", {
- ref_key: "bar",
- ref: bar,
- class: normalizeClass(unref(barKls)),
- style: normalizeStyle(unref(barStyle)),
- onClick: unref(handleClick)
- }, null, 14, ["onClick"]),
- createBaseVNode("div", {
- ref_key: "thumb",
- ref: thumb,
- class: normalizeClass(unref(thumbKls)),
- style: normalizeStyle(unref(thumbStyle)),
- "aria-label": unref(alphaLabel),
- "aria-valuenow": unref(alpha),
- "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
- "aria-valuemin": "0",
- "aria-valuemax": "100",
- role: "slider",
- tabindex: "0",
- onKeydown: unref(handleKeydown)
- }, null, 46, ["aria-label", "aria-valuenow", "aria-orientation", "onKeydown"])
- ], 2);
- };
- }
- });
- var AlphaSlider = _export_sfc(_sfc_main338, [["__file", "alpha-slider.vue"]]);
- // node_modules/element-plus/es/components/color-picker-panel/src/components/hue-slider.mjs
- var _sfc_main339 = defineComponent({
- name: "ElColorHueSlider",
- props: {
- color: {
- type: Object,
- required: true
- },
- vertical: Boolean,
- disabled: Boolean
- },
- setup(props2) {
- const ns = useNamespace("color-hue-slider");
- const instance = getCurrentInstance();
- const thumb = ref();
- const bar = ref();
- const thumbLeft = ref(0);
- const thumbTop = ref(0);
- const hueValue = computed(() => {
- return props2.color.get("hue");
- });
- watch(() => hueValue.value, () => {
- update2();
- });
- function handleClick(event) {
- if (props2.disabled)
- return;
- const target2 = event.target;
- if (target2 !== thumb.value) {
- handleDrag(event);
- }
- }
- function handleDrag(event) {
- if (!bar.value || !thumb.value || props2.disabled)
- return;
- const el = instance.vnode.el;
- const rect = el.getBoundingClientRect();
- const { clientX, clientY } = getClientXY(event);
- let hue;
- if (!props2.vertical) {
- let left = clientX - rect.left;
- left = Math.min(left, rect.width - thumb.value.offsetWidth / 2);
- left = Math.max(thumb.value.offsetWidth / 2, left);
- hue = Math.round((left - thumb.value.offsetWidth / 2) / (rect.width - thumb.value.offsetWidth) * 360);
- } else {
- let top = clientY - rect.top;
- top = Math.min(top, rect.height - thumb.value.offsetHeight / 2);
- top = Math.max(thumb.value.offsetHeight / 2, top);
- hue = Math.round((top - thumb.value.offsetHeight / 2) / (rect.height - thumb.value.offsetHeight) * 360);
- }
- props2.color.set("hue", hue);
- }
- function getThumbLeft() {
- if (!thumb.value)
- return 0;
- const el = instance.vnode.el;
- if (props2.vertical)
- return 0;
- const hue = props2.color.get("hue");
- if (!el)
- return 0;
- return Math.round(hue * (el.offsetWidth - thumb.value.offsetWidth / 2) / 360);
- }
- function getThumbTop() {
- if (!thumb.value)
- return 0;
- const el = instance.vnode.el;
- if (!props2.vertical)
- return 0;
- const hue = props2.color.get("hue");
- if (!el)
- return 0;
- return Math.round(hue * (el.offsetHeight - thumb.value.offsetHeight / 2) / 360);
- }
- function update2() {
- thumbLeft.value = getThumbLeft();
- thumbTop.value = getThumbTop();
- }
- onMounted(() => {
- if (!bar.value || !thumb.value || props2.disabled)
- return;
- const dragConfig = {
- drag: (event) => {
- handleDrag(event);
- },
- end: (event) => {
- handleDrag(event);
- }
- };
- draggable(bar.value, dragConfig);
- draggable(thumb.value, dragConfig);
- update2();
- });
- return {
- bar,
- thumb,
- thumbLeft,
- thumbTop,
- hueValue,
- handleClick,
- update: update2,
- ns
- };
- }
- });
- function _sfc_render2(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
- }, [
- createBaseVNode("div", {
- ref: "bar",
- class: normalizeClass(_ctx.ns.e("bar")),
- onClick: _ctx.handleClick
- }, null, 10, ["onClick"]),
- createBaseVNode("div", {
- ref: "thumb",
- class: normalizeClass(_ctx.ns.e("thumb")),
- style: normalizeStyle({
- left: _ctx.thumbLeft + "px",
- top: _ctx.thumbTop + "px"
- })
- }, null, 6)
- ], 2);
- }
- var HueSlider = _export_sfc(_sfc_main339, [["render", _sfc_render2], ["__file", "hue-slider.vue"]]);
- // node_modules/element-plus/es/components/color-picker-panel/src/color-picker-panel.mjs
- var colorPickerPanelProps = buildProps({
- modelValue: {
- type: definePropType(String),
- default: void 0
- },
- border: {
- type: Boolean,
- default: true
- },
- showAlpha: Boolean,
- colorFormat: String,
- disabled: Boolean,
- predefine: {
- type: definePropType(Array)
- }
- });
- var colorPickerPanelEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil_default(val)
- };
- var ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
- var colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
- // node_modules/element-plus/es/components/color-picker-panel/src/utils/color.mjs
- var Color = class {
- constructor(options = {}) {
- this._hue = 0;
- this._saturation = 100;
- this._value = 100;
- this._alpha = 100;
- this._tiny = new TinyColor();
- this._isValid = false;
- this.enableAlpha = false;
- this.format = "";
- this.value = "";
- for (const option in options) {
- if (hasOwn(options, option)) {
- this[option] = options[option];
- }
- }
- if (options.value) {
- this.fromString(options.value);
- } else {
- this.doOnChange();
- }
- }
- set(prop, value) {
- if (arguments.length === 1 && typeof prop === "object") {
- for (const p2 in prop) {
- if (hasOwn(prop, p2)) {
- this.set(p2, prop[p2]);
- }
- }
- return;
- }
- this[`_${prop}`] = value;
- this._isValid = true;
- this.doOnChange();
- }
- get(prop) {
- if (["hue", "saturation", "value", "alpha"].includes(prop)) {
- return Math.round(this[`_${prop}`]);
- }
- return this[`_${prop}`];
- }
- toRgb() {
- return this._isValid ? this._tiny.toRgb() : { r: 255, g: 255, b: 255, a: 0 };
- }
- fromString(value) {
- const color = new TinyColor(value);
- this._isValid = color.isValid;
- if (color.isValid) {
- const { h: h3, s: s2, v: v2, a: a2 } = color.toHsv();
- this._hue = h3;
- this._saturation = s2 * 100;
- this._value = v2 * 100;
- this._alpha = a2 * 100;
- } else {
- this._hue = 0;
- this._saturation = 100;
- this._value = 100;
- this._alpha = 100;
- }
- this.doOnChange();
- }
- compare(color) {
- const compareColor = new TinyColor({
- h: color._hue,
- s: color._saturation / 100,
- v: color._value / 100,
- a: color._alpha / 100
- });
- return this._tiny.equals(compareColor);
- }
- doOnChange() {
- const { _hue, _saturation, _value, _alpha, format: format2, enableAlpha } = this;
- let _format = format2 || (enableAlpha ? "rgb" : "hex");
- if (format2 === "hex" && enableAlpha) {
- _format = "hex8";
- }
- this._tiny = new TinyColor({
- h: _hue,
- s: _saturation / 100,
- v: _value / 100,
- a: _alpha / 100
- });
- this.value = this._isValid ? this._tiny.toString(_format) : "";
- }
- };
- // node_modules/element-plus/es/components/color-picker-panel/src/components/predefine.mjs
- var _sfc_main340 = defineComponent({
- props: {
- colors: {
- type: Array,
- required: true
- },
- color: {
- type: Object,
- required: true
- },
- enableAlpha: {
- type: Boolean,
- required: true
- },
- disabled: Boolean
- },
- setup(props2) {
- const ns = useNamespace("color-predefine");
- const { currentColor } = inject(colorPickerPanelContextKey);
- const rgbaColors = ref(parseColors(props2.colors, props2.color));
- watch(() => currentColor.value, (val) => {
- const color = new Color({
- value: val
- });
- rgbaColors.value.forEach((item) => {
- item.selected = color.compare(item);
- });
- });
- watchEffect(() => {
- rgbaColors.value = parseColors(props2.colors, props2.color);
- });
- function handleSelect(index) {
- if (props2.disabled)
- return;
- props2.color.fromString(props2.colors[index]);
- }
- function parseColors(colors, color) {
- return colors.map((value) => {
- const c2 = new Color({
- value
- });
- c2.selected = c2.compare(color);
- return c2;
- });
- }
- return {
- rgbaColors,
- handleSelect,
- ns
- };
- }
- });
- function _sfc_render3(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(_ctx.ns.b())
- }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("colors"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rgbaColors, (item, index) => {
- return openBlock(), createElementBlock("div", {
- key: _ctx.colors[index],
- class: normalizeClass([
- _ctx.ns.e("color-selector"),
- _ctx.ns.is("alpha", item.get("alpha") < 100),
- { selected: item.selected }
- ]),
- onClick: ($event) => _ctx.handleSelect(index)
- }, [
- createBaseVNode("div", {
- style: normalizeStyle({ backgroundColor: item.value })
- }, null, 4)
- ], 10, ["onClick"]);
- }), 128))
- ], 2)
- ], 2);
- }
- var Predefine = _export_sfc(_sfc_main340, [["render", _sfc_render3], ["__file", "predefine.vue"]]);
- // node_modules/element-plus/es/components/color-picker-panel/src/components/sv-panel.mjs
- var _sfc_main341 = defineComponent({
- name: "ElSlPanel",
- props: {
- color: {
- type: Object,
- required: true
- },
- disabled: Boolean
- },
- setup(props2) {
- const ns = useNamespace("color-svpanel");
- const instance = getCurrentInstance();
- const cursorTop = ref(0);
- const cursorLeft = ref(0);
- const background = ref("hsl(0, 100%, 50%)");
- const colorValue = computed(() => {
- const hue = props2.color.get("hue");
- const value = props2.color.get("value");
- return { hue, value };
- });
- function update2() {
- const saturation = props2.color.get("saturation");
- const value = props2.color.get("value");
- const el = instance.vnode.el;
- const { clientWidth: width, clientHeight: height } = el;
- cursorLeft.value = saturation * width / 100;
- cursorTop.value = (100 - value) * height / 100;
- background.value = `hsl(${props2.color.get("hue")}, 100%, 50%)`;
- }
- function handleDrag(event) {
- if (props2.disabled)
- return;
- const el = instance.vnode.el;
- const rect = el.getBoundingClientRect();
- const { clientX, clientY } = getClientXY(event);
- let left = clientX - rect.left;
- let top = clientY - rect.top;
- left = Math.max(0, left);
- left = Math.min(left, rect.width);
- top = Math.max(0, top);
- top = Math.min(top, rect.height);
- cursorLeft.value = left;
- cursorTop.value = top;
- props2.color.set({
- saturation: left / rect.width * 100,
- value: 100 - top / rect.height * 100
- });
- }
- watch(() => colorValue.value, () => {
- update2();
- });
- onMounted(() => {
- draggable(instance.vnode.el, {
- drag: (event) => {
- handleDrag(event);
- },
- end: (event) => {
- handleDrag(event);
- }
- });
- update2();
- });
- return {
- cursorTop,
- cursorLeft,
- background,
- colorValue,
- handleDrag,
- update: update2,
- ns
- };
- }
- });
- function _sfc_render4(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(_ctx.ns.b()),
- style: normalizeStyle({
- backgroundColor: _ctx.background
- })
- }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("white"))
- }, null, 2),
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("black"))
- }, null, 2),
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("cursor")),
- style: normalizeStyle({
- top: _ctx.cursorTop + "px",
- left: _ctx.cursorLeft + "px"
- })
- }, [
- createBaseVNode("div")
- ], 6)
- ], 6);
- }
- var SvPanel = _export_sfc(_sfc_main341, [["render", _sfc_render4], ["__file", "sv-panel.vue"]]);
- // node_modules/element-plus/es/components/color-picker-panel/src/composables/use-common-color.mjs
- var useCommonColor = (props2, emit) => {
- const color = reactive(new Color({
- enableAlpha: props2.showAlpha,
- format: props2.colorFormat || "",
- value: props2.modelValue
- }));
- watch(() => [props2.colorFormat, props2.showAlpha], () => {
- color.enableAlpha = props2.showAlpha;
- color.format = props2.colorFormat || color.format;
- color.doOnChange();
- emit(UPDATE_MODEL_EVENT, color.value);
- });
- return {
- color
- };
- };
- // node_modules/element-plus/es/components/color-picker-panel/src/color-picker-panel2.mjs
- var __default__43 = defineComponent({
- name: "ElColorPickerPanel"
- });
- var _sfc_main342 = defineComponent({
- ...__default__43,
- props: colorPickerPanelProps,
- emits: colorPickerPanelEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("color-picker-panel");
- const disabled = useFormDisabled();
- const hue = ref();
- const sv = ref();
- const alpha = ref();
- const inputRef = ref();
- const customInput = ref("");
- const { color } = inject(ROOT_COMMON_COLOR_INJECTION_KEY, () => useCommonColor(props2, emit), true);
- function handleConfirm() {
- color.fromString(customInput.value);
- if (color.value !== customInput.value) {
- customInput.value = color.value;
- }
- }
- onMounted(() => {
- if (props2.modelValue) {
- customInput.value = color.value;
- }
- nextTick(() => {
- var _a2, _b, _c;
- (_a2 = hue.value) == null ? void 0 : _a2.update();
- (_b = sv.value) == null ? void 0 : _b.update();
- (_c = alpha.value) == null ? void 0 : _c.update();
- });
- });
- watch(() => props2.modelValue, (newVal) => {
- if (newVal && newVal !== color.value) {
- color.fromString(newVal);
- }
- });
- watch(() => color.value, (val) => {
- emit(UPDATE_MODEL_EVENT, val);
- customInput.value = val;
- });
- provide(colorPickerPanelContextKey, {
- currentColor: computed(() => color.value)
- });
- expose({
- color,
- inputRef
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b(), unref(ns).is("disabled", unref(disabled)), unref(ns).is("border", _ctx.border)])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("wrapper"))
- }, [
- createVNode(HueSlider, {
- ref_key: "hue",
- ref: hue,
- class: "hue-slider",
- color: unref(color),
- vertical: "",
- disabled: unref(disabled)
- }, null, 8, ["color", "disabled"]),
- createVNode(SvPanel, {
- ref_key: "sv",
- ref: sv,
- color: unref(color),
- disabled: unref(disabled)
- }, null, 8, ["color", "disabled"])
- ], 2),
- _ctx.showAlpha ? (openBlock(), createBlock(AlphaSlider, {
- key: 0,
- ref_key: "alpha",
- ref: alpha,
- color: unref(color),
- disabled: unref(disabled)
- }, null, 8, ["color", "disabled"])) : createCommentVNode("v-if", true),
- _ctx.predefine ? (openBlock(), createBlock(Predefine, {
- key: 1,
- ref: "predefine",
- "enable-alpha": _ctx.showAlpha,
- color: unref(color),
- colors: _ctx.predefine,
- disabled: unref(disabled)
- }, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("footer"))
- }, [
- createVNode(unref(ElInput), {
- ref_key: "inputRef",
- ref: inputRef,
- modelValue: customInput.value,
- "onUpdate:modelValue": ($event) => customInput.value = $event,
- "validate-event": false,
- size: "small",
- disabled: unref(disabled),
- onChange: handleConfirm
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
- renderSlot(_ctx.$slots, "footer")
- ], 2)
- ], 2);
- };
- }
- });
- var ColorPickerPanel = _export_sfc(_sfc_main342, [["__file", "color-picker-panel.vue"]]);
- // node_modules/element-plus/es/components/color-picker-panel/index.mjs
- var ElColorPickerPanel = withInstall(ColorPickerPanel);
- // node_modules/element-plus/es/components/color-picker/src/color-picker.mjs
- var colorPickerProps = buildProps({
- persistent: {
- type: Boolean,
- default: true
- },
- modelValue: {
- type: definePropType(String),
- default: void 0
- },
- id: String,
- showAlpha: Boolean,
- colorFormat: String,
- disabled: Boolean,
- size: useSizeProp,
- popperClass: {
- type: String,
- default: ""
- },
- tabindex: {
- type: [String, Number],
- default: 0
- },
- teleported: useTooltipContentProps.teleported,
- appendTo: useTooltipContentProps.appendTo,
- predefine: {
- type: definePropType(Array)
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- ...useEmptyValuesProps,
- ...useAriaProps(["ariaLabel"])
- });
- var colorPickerEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil_default(val),
- [CHANGE_EVENT]: (val) => isString(val) || isNil_default(val),
- activeChange: (val) => isString(val) || isNil_default(val),
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent
- };
- // node_modules/element-plus/es/components/color-picker/src/color-picker2.mjs
- var __default__44 = defineComponent({
- name: "ElColorPicker"
- });
- var _sfc_main343 = defineComponent({
- ...__default__44,
- props: colorPickerProps,
- emits: colorPickerEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("color");
- const { formItem } = useFormItem();
- const colorSize = useFormSize();
- const colorDisabled = useFormDisabled();
- const { valueOnClear, isEmptyValue: isEmptyValue2 } = useEmptyValues(props2, null);
- const commonColor = useCommonColor(props2, emit);
- const { inputId: buttonId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext: formItem
- });
- const popper = ref();
- const triggerRef2 = ref();
- const pickerPanelRef = ref();
- const showPicker = ref(false);
- const showPanelColor = ref(false);
- let shouldActiveChange = true;
- const { isFocused, handleFocus, handleBlur } = useFocusController(triggerRef2, {
- disabled: colorDisabled,
- beforeBlur(event) {
- var _a2;
- return (_a2 = popper.value) == null ? void 0 : _a2.isFocusInsideContent(event);
- },
- afterBlur() {
- setShowPicker(false);
- resetColor();
- }
- });
- const color = reactiveComputed(() => {
- var _a2, _b;
- return (_b = (_a2 = pickerPanelRef.value) == null ? void 0 : _a2.color) != null ? _b : commonColor.color;
- });
- const panelProps = computed(() => pick_default(props2, Object.keys(colorPickerPanelProps)));
- const displayedColor = computed(() => {
- if (!props2.modelValue && !showPanelColor.value) {
- return "transparent";
- }
- return displayedRgb(color, props2.showAlpha);
- });
- const currentColor = computed(() => {
- return !props2.modelValue && !showPanelColor.value ? "" : color.value;
- });
- const buttonAriaLabel = computed(() => {
- return !isLabeledByFormItem.value ? props2.ariaLabel || t("el.colorpicker.defaultLabel") : void 0;
- });
- const buttonAriaLabelledby = computed(() => {
- return isLabeledByFormItem.value ? formItem == null ? void 0 : formItem.labelId : void 0;
- });
- const btnKls = computed(() => {
- return [
- ns.b("picker"),
- ns.is("disabled", colorDisabled.value),
- ns.bm("picker", colorSize.value),
- ns.is("focused", isFocused.value)
- ];
- });
- function displayedRgb(color2, showAlpha) {
- const { r, g, b: b2, a: a2 } = color2.toRgb();
- return showAlpha ? `rgba(${r}, ${g}, ${b2}, ${a2})` : `rgb(${r}, ${g}, ${b2})`;
- }
- function setShowPicker(value) {
- showPicker.value = value;
- }
- const debounceSetShowPicker = debounce_default(setShowPicker, 100, { leading: true });
- function show() {
- if (colorDisabled.value)
- return;
- setShowPicker(true);
- }
- function hide2() {
- debounceSetShowPicker(false);
- resetColor();
- }
- function resetColor() {
- nextTick(() => {
- if (props2.modelValue) {
- color.fromString(props2.modelValue);
- } else {
- color.value = "";
- nextTick(() => {
- showPanelColor.value = false;
- });
- }
- });
- }
- function handleTrigger() {
- if (colorDisabled.value)
- return;
- if (showPicker.value) {
- resetColor();
- }
- debounceSetShowPicker(!showPicker.value);
- }
- function confirmValue() {
- const value = isEmptyValue2(color.value) ? valueOnClear.value : color.value;
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value);
- if (props2.validateEvent) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- debounceSetShowPicker(false);
- nextTick(() => {
- const newColor = new Color({
- enableAlpha: props2.showAlpha,
- format: props2.colorFormat || "",
- value: props2.modelValue
- });
- if (!color.compare(newColor)) {
- resetColor();
- }
- });
- }
- function clear() {
- debounceSetShowPicker(false);
- emit(UPDATE_MODEL_EVENT, valueOnClear.value);
- emit(CHANGE_EVENT, valueOnClear.value);
- if (props2.modelValue !== valueOnClear.value && props2.validateEvent) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- resetColor();
- }
- function handleClickOutside() {
- if (!showPicker.value)
- return;
- hide2();
- isFocused.value && focus();
- }
- function handleEsc(event) {
- event.preventDefault();
- event.stopPropagation();
- setShowPicker(false);
- resetColor();
- }
- function handleKeyDown(event) {
- var _a2, _b;
- switch (event.code) {
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- case EVENT_CODE.space:
- event.preventDefault();
- event.stopPropagation();
- show();
- (_b = (_a2 = pickerPanelRef == null ? void 0 : pickerPanelRef.value) == null ? void 0 : _a2.inputRef) == null ? void 0 : _b.focus();
- break;
- case EVENT_CODE.esc:
- handleEsc(event);
- break;
- }
- }
- function focus() {
- triggerRef2.value.focus();
- }
- function blur() {
- triggerRef2.value.blur();
- }
- watch(() => currentColor.value, (val) => {
- shouldActiveChange && emit("activeChange", val);
- shouldActiveChange = true;
- });
- watch(() => color.value, () => {
- if (!props2.modelValue && !showPanelColor.value) {
- showPanelColor.value = true;
- }
- });
- watch(() => props2.modelValue, (newVal) => {
- if (!newVal) {
- showPanelColor.value = false;
- } else if (newVal && newVal !== color.value) {
- shouldActiveChange = false;
- color.fromString(newVal);
- }
- });
- provide(ROOT_COMMON_COLOR_INJECTION_KEY, commonColor);
- expose({
- color,
- show,
- hide: hide2,
- focus,
- blur
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTooltip), {
- ref_key: "popper",
- ref: popper,
- visible: showPicker.value,
- "show-arrow": false,
- "fallback-placements": ["bottom", "top", "right", "left"],
- offset: 0,
- "gpu-acceleration": false,
- "popper-class": [unref(ns).be("picker", "panel"), _ctx.popperClass],
- "stop-popper-mouse-event": false,
- pure: "",
- effect: "light",
- trigger: "click",
- teleported: _ctx.teleported,
- transition: `${unref(ns).namespace.value}-zoom-in-top`,
- persistent: _ctx.persistent,
- "append-to": _ctx.appendTo,
- onHide: ($event) => setShowPicker(false)
- }, {
- content: withCtx(() => [
- withDirectives((openBlock(), createBlock(unref(ElColorPickerPanel), mergeProps({
- ref_key: "pickerPanelRef",
- ref: pickerPanelRef
- }, unref(panelProps), {
- border: false,
- onKeydown: withKeys(handleEsc, ["esc"])
- }), {
- footer: withCtx(() => [
- createBaseVNode("div", null, [
- createVNode(unref(ElButton), {
- class: normalizeClass(unref(ns).be("footer", "link-btn")),
- text: "",
- size: "small",
- onClick: clear
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.colorpicker.clear")), 1)
- ]),
- _: 1
- }, 8, ["class"]),
- createVNode(unref(ElButton), {
- plain: "",
- size: "small",
- class: normalizeClass(unref(ns).be("footer", "btn")),
- onClick: confirmValue
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.colorpicker.confirm")), 1)
- ]),
- _: 1
- }, 8, ["class"])
- ])
- ]),
- _: 1
- }, 16, ["onKeydown"])), [
- [unref(ClickOutside), handleClickOutside, triggerRef2.value]
- ])
- ]),
- default: withCtx(() => [
- createBaseVNode("div", mergeProps({
- id: unref(buttonId),
- ref_key: "triggerRef",
- ref: triggerRef2
- }, _ctx.$attrs, {
- class: unref(btnKls),
- role: "button",
- "aria-label": unref(buttonAriaLabel),
- "aria-labelledby": unref(buttonAriaLabelledby),
- "aria-description": unref(t)("el.colorpicker.description", { color: _ctx.modelValue || "" }),
- "aria-disabled": unref(colorDisabled),
- tabindex: unref(colorDisabled) ? void 0 : _ctx.tabindex,
- onKeydown: handleKeyDown,
- onFocus: unref(handleFocus),
- onBlur: unref(handleBlur)
- }), [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).be("picker", "trigger")),
- onClick: handleTrigger
- }, [
- createBaseVNode("span", {
- class: normalizeClass([unref(ns).be("picker", "color"), unref(ns).is("alpha", _ctx.showAlpha)])
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).be("picker", "color-inner")),
- style: normalizeStyle({
- backgroundColor: unref(displayedColor)
- })
- }, [
- withDirectives(createVNode(unref(ElIcon), {
- class: normalizeClass([unref(ns).be("picker", "icon"), unref(ns).is("icon-arrow-down")])
- }, {
- default: withCtx(() => [
- createVNode(unref(arrow_down_default))
- ]),
- _: 1
- }, 8, ["class"]), [
- [vShow, _ctx.modelValue || showPanelColor.value]
- ]),
- withDirectives(createVNode(unref(ElIcon), {
- class: normalizeClass([unref(ns).be("picker", "empty"), unref(ns).is("icon-close")])
- }, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 1
- }, 8, ["class"]), [
- [vShow, !_ctx.modelValue && !showPanelColor.value]
- ])
- ], 6)
- ], 2)
- ], 2)
- ], 16, ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex", "onFocus", "onBlur"])
- ]),
- _: 1
- }, 8, ["visible", "popper-class", "teleported", "transition", "persistent", "append-to", "onHide"]);
- };
- }
- });
- var ColorPicker = _export_sfc(_sfc_main343, [["__file", "color-picker.vue"]]);
- // node_modules/element-plus/es/components/color-picker/index.mjs
- var ElColorPicker = withInstall(ColorPicker);
- // node_modules/element-plus/es/components/config-provider/src/config-provider-props.mjs
- var configProviderProps = buildProps({
- a11y: {
- type: Boolean,
- default: true
- },
- locale: {
- type: definePropType(Object)
- },
- size: useSizeProp,
- button: {
- type: definePropType(Object)
- },
- card: {
- type: definePropType(Object)
- },
- dialog: {
- type: definePropType(Object)
- },
- link: {
- type: definePropType(Object)
- },
- experimentalFeatures: {
- type: definePropType(Object)
- },
- keyboardNavigation: {
- type: Boolean,
- default: true
- },
- message: {
- type: definePropType(Object)
- },
- zIndex: Number,
- namespace: {
- type: String,
- default: "el"
- },
- ...useEmptyValuesProps
- });
- // node_modules/element-plus/es/components/config-provider/src/config-provider.mjs
- var messageConfig = {
- placement: "top"
- };
- var ConfigProvider = defineComponent({
- name: "ElConfigProvider",
- props: configProviderProps,
- setup(props2, { slots }) {
- const config = provideGlobalConfig(props2);
- watch(() => props2.message, (val) => {
- var _a2, _b;
- Object.assign(messageConfig, (_b = (_a2 = config == null ? void 0 : config.value) == null ? void 0 : _a2.message) != null ? _b : {}, val != null ? val : {});
- }, { immediate: true, deep: true });
- return () => renderSlot(slots, "default", { config: config == null ? void 0 : config.value });
- }
- });
- // node_modules/element-plus/es/components/config-provider/index.mjs
- var ElConfigProvider = withInstall(ConfigProvider);
- // node_modules/element-plus/es/components/container/src/container.mjs
- var __default__45 = defineComponent({
- name: "ElContainer"
- });
- var _sfc_main344 = defineComponent({
- ...__default__45,
- props: {
- direction: {
- type: String
- }
- },
- setup(__props) {
- const props2 = __props;
- const slots = useSlots();
- const ns = useNamespace("container");
- const isVertical = computed(() => {
- if (props2.direction === "vertical") {
- return true;
- } else if (props2.direction === "horizontal") {
- return false;
- }
- if (slots && slots.default) {
- const vNodes = slots.default();
- return vNodes.some((vNode) => {
- const tag = vNode.type.name;
- return tag === "ElHeader" || tag === "ElFooter";
- });
- } else {
- return false;
- }
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("section", {
- class: normalizeClass([unref(ns).b(), unref(ns).is("vertical", unref(isVertical))])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2);
- };
- }
- });
- var Container = _export_sfc(_sfc_main344, [["__file", "container.vue"]]);
- // node_modules/element-plus/es/components/container/src/aside.mjs
- var __default__46 = defineComponent({
- name: "ElAside"
- });
- var _sfc_main345 = defineComponent({
- ...__default__46,
- props: {
- width: {
- type: String,
- default: null
- }
- },
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("aside");
- const style = computed(() => props2.width ? ns.cssVarBlock({ width: props2.width }) : {});
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("aside", {
- class: normalizeClass(unref(ns).b()),
- style: normalizeStyle(unref(style))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 6);
- };
- }
- });
- var Aside = _export_sfc(_sfc_main345, [["__file", "aside.vue"]]);
- // node_modules/element-plus/es/components/container/src/footer.mjs
- var __default__47 = defineComponent({
- name: "ElFooter"
- });
- var _sfc_main346 = defineComponent({
- ...__default__47,
- props: {
- height: {
- type: String,
- default: null
- }
- },
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("footer");
- const style = computed(() => props2.height ? ns.cssVarBlock({ height: props2.height }) : {});
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("footer", {
- class: normalizeClass(unref(ns).b()),
- style: normalizeStyle(unref(style))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 6);
- };
- }
- });
- var Footer = _export_sfc(_sfc_main346, [["__file", "footer.vue"]]);
- // node_modules/element-plus/es/components/container/src/header.mjs
- var __default__48 = defineComponent({
- name: "ElHeader"
- });
- var _sfc_main347 = defineComponent({
- ...__default__48,
- props: {
- height: {
- type: String,
- default: null
- }
- },
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("header");
- const style = computed(() => {
- return props2.height ? ns.cssVarBlock({
- height: props2.height
- }) : {};
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("header", {
- class: normalizeClass(unref(ns).b()),
- style: normalizeStyle(unref(style))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 6);
- };
- }
- });
- var Header = _export_sfc(_sfc_main347, [["__file", "header.vue"]]);
- // node_modules/element-plus/es/components/container/src/main.mjs
- var __default__49 = defineComponent({
- name: "ElMain"
- });
- var _sfc_main348 = defineComponent({
- ...__default__49,
- setup(__props) {
- const ns = useNamespace("main");
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("main", {
- class: normalizeClass(unref(ns).b())
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2);
- };
- }
- });
- var Main = _export_sfc(_sfc_main348, [["__file", "main.vue"]]);
- // node_modules/element-plus/es/components/container/index.mjs
- var ElContainer = withInstall(Container, {
- Aside,
- Footer,
- Header,
- Main
- });
- var ElAside = withNoopInstall(Aside);
- var ElFooter = withNoopInstall(Footer);
- var ElHeader = withNoopInstall(Header);
- var ElMain = withNoopInstall(Main);
- // node_modules/element-plus/es/components/time-picker/src/time-picker.mjs
- var import_dayjs6 = __toESM(require_dayjs_min(), 1);
- var import_customParseFormat = __toESM(require_customParseFormat(), 1);
- // node_modules/element-plus/es/components/time-picker/src/constants.mjs
- var timeUnits = ["hours", "minutes", "seconds"];
- var PICKER_BASE_INJECTION_KEY = "EP_PICKER_BASE";
- var PICKER_POPPER_OPTIONS_INJECTION_KEY = "ElPopperOptions";
- var ROOT_COMMON_PICKER_INJECTION_KEY = Symbol("commonPickerContextKey");
- var DEFAULT_FORMATS_TIME = "HH:mm:ss";
- var DEFAULT_FORMATS_DATE = "YYYY-MM-DD";
- var DEFAULT_FORMATS_DATEPICKER = {
- date: DEFAULT_FORMATS_DATE,
- dates: DEFAULT_FORMATS_DATE,
- week: "gggg[w]ww",
- year: "YYYY",
- years: "YYYY",
- month: "YYYY-MM",
- months: "YYYY-MM",
- datetime: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,
- monthrange: "YYYY-MM",
- yearrange: "YYYY",
- daterange: DEFAULT_FORMATS_DATE,
- datetimerange: `${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`
- };
- // node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.mjs
- var useCommonPicker = (props2, emit) => {
- const { lang } = useLocale();
- const pickerVisible = ref(false);
- const pickerActualVisible = ref(false);
- const userInput = ref(null);
- const valueIsEmpty = computed(() => {
- const { modelValue } = props2;
- return !modelValue || isArray(modelValue) && !modelValue.filter(Boolean).length;
- });
- const emitInput = (input) => {
- if (!valueEquals(props2.modelValue, input)) {
- let formatted;
- if (isArray(input)) {
- formatted = input.map((item) => formatter(item, props2.valueFormat, lang.value));
- } else if (input) {
- formatted = formatter(input, props2.valueFormat, lang.value);
- }
- const emitVal = input ? formatted : input;
- emit(UPDATE_MODEL_EVENT, emitVal, lang.value);
- }
- };
- const parsedValue = computed(() => {
- var _a2;
- let dayOrDays;
- if (valueIsEmpty.value) {
- if (pickerOptions.value.getDefaultValue) {
- dayOrDays = pickerOptions.value.getDefaultValue();
- }
- } else {
- if (isArray(props2.modelValue)) {
- dayOrDays = props2.modelValue.map((d2) => parseDate(d2, props2.valueFormat, lang.value));
- } else {
- dayOrDays = parseDate((_a2 = props2.modelValue) != null ? _a2 : "", props2.valueFormat, lang.value);
- }
- }
- if (pickerOptions.value.getRangeAvailableTime) {
- const availableResult = pickerOptions.value.getRangeAvailableTime(dayOrDays);
- if (!isEqual_default(availableResult, dayOrDays)) {
- dayOrDays = availableResult;
- if (!valueIsEmpty.value) {
- emitInput(dayOrDaysToDate(dayOrDays));
- }
- }
- }
- if (isArray(dayOrDays) && dayOrDays.some((day) => !day)) {
- dayOrDays = [];
- }
- return dayOrDays;
- });
- const pickerOptions = ref({});
- const onSetPickerOption = (e) => {
- pickerOptions.value[e[0]] = e[1];
- pickerOptions.value.panelReady = true;
- };
- const onCalendarChange = (e) => {
- emit("calendar-change", e);
- };
- const onPanelChange = (value, mode, view) => {
- emit("panel-change", value, mode, view);
- };
- const onPick = (date4 = "", visible = false) => {
- pickerVisible.value = visible;
- let result2;
- if (isArray(date4)) {
- result2 = date4.map((_2) => _2.toDate());
- } else {
- result2 = date4 ? date4.toDate() : date4;
- }
- userInput.value = null;
- emitInput(result2);
- };
- return {
- parsedValue,
- pickerActualVisible,
- pickerOptions,
- pickerVisible,
- userInput,
- valueIsEmpty,
- emitInput,
- onCalendarChange,
- onPanelChange,
- onPick,
- onSetPickerOption
- };
- };
- // node_modules/element-plus/es/components/time-picker/src/props/shared.mjs
- var disabledTimeListsProps = buildProps({
- disabledHours: {
- type: definePropType(Function)
- },
- disabledMinutes: {
- type: definePropType(Function)
- },
- disabledSeconds: {
- type: definePropType(Function)
- }
- });
- var timePanelSharedProps = buildProps({
- visible: Boolean,
- actualVisible: {
- type: Boolean,
- default: void 0
- },
- format: {
- type: String,
- default: ""
- }
- });
- // node_modules/element-plus/es/components/time-picker/src/common/props.mjs
- var timePickerDefaultProps = buildProps({
- id: {
- type: definePropType([Array, String])
- },
- name: {
- type: definePropType([Array, String])
- },
- popperClass: useTooltipContentProps.popperClass,
- popperStyle: useTooltipContentProps.popperStyle,
- format: String,
- valueFormat: String,
- dateFormat: String,
- timeFormat: String,
- type: {
- type: String,
- default: ""
- },
- clearable: {
- type: Boolean,
- default: true
- },
- clearIcon: {
- type: definePropType([String, Object]),
- default: circle_close_default
- },
- editable: {
- type: Boolean,
- default: true
- },
- prefixIcon: {
- type: definePropType([String, Object]),
- default: ""
- },
- size: useSizeProp,
- readonly: Boolean,
- disabled: Boolean,
- placeholder: {
- type: String,
- default: ""
- },
- popperOptions: {
- type: definePropType(Object),
- default: () => ({})
- },
- modelValue: {
- type: definePropType([Date, Array, String, Number]),
- default: ""
- },
- rangeSeparator: {
- type: String,
- default: "-"
- },
- startPlaceholder: String,
- endPlaceholder: String,
- defaultValue: {
- type: definePropType([Date, Array])
- },
- defaultTime: {
- type: definePropType([Date, Array])
- },
- isRange: Boolean,
- ...disabledTimeListsProps,
- disabledDate: {
- type: Function
- },
- cellClassName: {
- type: Function
- },
- shortcuts: {
- type: Array,
- default: () => []
- },
- arrowControl: Boolean,
- tabindex: {
- type: definePropType([String, Number]),
- default: 0
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- unlinkPanels: Boolean,
- placement: {
- type: definePropType(String),
- values: Ee,
- default: "bottom"
- },
- fallbackPlacements: {
- type: definePropType(Array),
- default: ["bottom", "top", "right", "left"]
- },
- ...useEmptyValuesProps,
- ...useAriaProps(["ariaLabel"]),
- showNow: {
- type: Boolean,
- default: true
- },
- showConfirm: {
- type: Boolean,
- default: true
- },
- showFooter: {
- type: Boolean,
- default: true
- },
- showWeekNumber: Boolean
- });
- var timePickerRangeTriggerProps = buildProps({
- id: {
- type: definePropType(Array)
- },
- name: {
- type: definePropType(Array)
- },
- modelValue: {
- type: definePropType([Array, String])
- },
- startPlaceholder: String,
- endPlaceholder: String,
- disabled: Boolean
- });
- var timePickerRngeTriggerProps = timePickerRangeTriggerProps;
- // node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.mjs
- var __default__50 = defineComponent({
- name: "PickerRangeTrigger",
- inheritAttrs: false
- });
- var _sfc_main349 = defineComponent({
- ...__default__50,
- props: timePickerRangeTriggerProps,
- emits: [
- "mouseenter",
- "mouseleave",
- "click",
- "touchstart",
- "focus",
- "blur",
- "startInput",
- "endInput",
- "startChange",
- "endChange"
- ],
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const attrs = useAttrs2();
- const nsDate = useNamespace("date");
- const nsRange = useNamespace("range");
- const inputRef = ref();
- const endInputRef = ref();
- const { wrapperRef, isFocused } = useFocusController(inputRef, {
- disabled: computed(() => props2.disabled)
- });
- const handleClick = (evt) => {
- emit("click", evt);
- };
- const handleMouseEnter = (evt) => {
- emit("mouseenter", evt);
- };
- const handleMouseLeave = (evt) => {
- emit("mouseleave", evt);
- };
- const handleTouchStart = (evt) => {
- emit("touchstart", evt);
- };
- const handleStartInput = (evt) => {
- emit("startInput", evt);
- };
- const handleEndInput = (evt) => {
- emit("endInput", evt);
- };
- const handleStartChange = (evt) => {
- emit("startChange", evt);
- };
- const handleEndChange = (evt) => {
- emit("endChange", evt);
- };
- const focus = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2, _b;
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
- (_b = endInputRef.value) == null ? void 0 : _b.blur();
- };
- expose({
- focus,
- blur
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "wrapperRef",
- ref: wrapperRef,
- class: normalizeClass([unref(nsDate).is("active", unref(isFocused)), _ctx.$attrs.class]),
- style: normalizeStyle(_ctx.$attrs.style),
- onClick: handleClick,
- onMouseenter: handleMouseEnter,
- onMouseleave: handleMouseLeave,
- onTouchstartPassive: handleTouchStart
- }, [
- renderSlot(_ctx.$slots, "prefix"),
- createBaseVNode("input", mergeProps(unref(attrs), {
- id: _ctx.id && _ctx.id[0],
- ref_key: "inputRef",
- ref: inputRef,
- name: _ctx.name && _ctx.name[0],
- placeholder: _ctx.startPlaceholder,
- value: _ctx.modelValue && _ctx.modelValue[0],
- class: unref(nsRange).b("input"),
- disabled: _ctx.disabled,
- onInput: handleStartInput,
- onChange: handleStartChange
- }), null, 16, ["id", "name", "placeholder", "value", "disabled"]),
- renderSlot(_ctx.$slots, "range-separator"),
- createBaseVNode("input", mergeProps(unref(attrs), {
- id: _ctx.id && _ctx.id[1],
- ref_key: "endInputRef",
- ref: endInputRef,
- name: _ctx.name && _ctx.name[1],
- placeholder: _ctx.endPlaceholder,
- value: _ctx.modelValue && _ctx.modelValue[1],
- class: unref(nsRange).b("input"),
- disabled: _ctx.disabled,
- onInput: handleEndInput,
- onChange: handleEndChange
- }), null, 16, ["id", "name", "placeholder", "value", "disabled"]),
- renderSlot(_ctx.$slots, "suffix")
- ], 38);
- };
- }
- });
- var PickerRangeTrigger = _export_sfc(_sfc_main349, [["__file", "picker-range-trigger.vue"]]);
- // node_modules/element-plus/es/components/time-picker/src/common/picker.mjs
- var __default__51 = defineComponent({
- name: "Picker"
- });
- var _sfc_main350 = defineComponent({
- ...__default__51,
- props: timePickerDefaultProps,
- emits: [
- UPDATE_MODEL_EVENT,
- CHANGE_EVENT,
- "focus",
- "blur",
- "clear",
- "calendar-change",
- "panel-change",
- "visible-change",
- "keydown"
- ],
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const attrs = useAttrs();
- const nsDate = useNamespace("date");
- const nsInput = useNamespace("input");
- const nsRange = useNamespace("range");
- const { formItem } = useFormItem();
- const elPopperOptions = inject(PICKER_POPPER_OPTIONS_INJECTION_KEY, {});
- const { valueOnClear } = useEmptyValues(props2, null);
- const refPopper = ref();
- const inputRef = ref();
- const valueOnOpen = ref(null);
- let hasJustTabExitedInput = false;
- const pickerDisabled = useFormDisabled();
- const commonPicker = useCommonPicker(props2, emit);
- const {
- parsedValue,
- pickerActualVisible,
- userInput,
- pickerVisible,
- pickerOptions,
- valueIsEmpty,
- emitInput,
- onPick,
- onSetPickerOption,
- onCalendarChange,
- onPanelChange
- } = commonPicker;
- const { isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
- disabled: pickerDisabled,
- beforeFocus() {
- return props2.readonly;
- },
- afterFocus() {
- pickerVisible.value = true;
- },
- beforeBlur(event) {
- var _a2;
- return !hasJustTabExitedInput && ((_a2 = refPopper.value) == null ? void 0 : _a2.isFocusInsideContent(event));
- },
- afterBlur() {
- handleChange();
- pickerVisible.value = false;
- hasJustTabExitedInput = false;
- props2.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn()));
- }
- });
- const hovering = ref(false);
- const rangeInputKls = computed(() => [
- nsDate.b("editor"),
- nsDate.bm("editor", props2.type),
- nsInput.e("wrapper"),
- nsDate.is("disabled", pickerDisabled.value),
- nsDate.is("active", pickerVisible.value),
- nsRange.b("editor"),
- pickerSize ? nsRange.bm("editor", pickerSize.value) : "",
- attrs.class
- ]);
- const clearIconKls = computed(() => [
- nsInput.e("icon"),
- nsRange.e("close-icon"),
- !showClearBtn.value ? nsRange.e("close-icon--hidden") : ""
- ]);
- watch(pickerVisible, (val) => {
- if (!val) {
- userInput.value = null;
- nextTick(() => {
- emitChange(props2.modelValue);
- });
- } else {
- nextTick(() => {
- if (val) {
- valueOnOpen.value = props2.modelValue;
- }
- });
- }
- });
- const emitChange = (val, isClear) => {
- if (isClear || !valueEquals(val, valueOnOpen.value)) {
- emit(CHANGE_EVENT, val);
- isClear && (valueOnOpen.value = val);
- props2.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn()));
- }
- };
- const emitKeydown = (e) => {
- emit("keydown", e);
- };
- const refInput = computed(() => {
- if (inputRef.value) {
- return Array.from(inputRef.value.$el.querySelectorAll("input"));
- }
- return [];
- });
- const setSelectionRange = (start, end, pos) => {
- const _inputs = refInput.value;
- if (!_inputs.length)
- return;
- if (!pos || pos === "min") {
- _inputs[0].setSelectionRange(start, end);
- _inputs[0].focus();
- } else if (pos === "max") {
- _inputs[1].setSelectionRange(start, end);
- _inputs[1].focus();
- }
- };
- const onBeforeShow = () => {
- pickerActualVisible.value = true;
- };
- const onShow = () => {
- emit("visible-change", true);
- };
- const onHide = () => {
- pickerActualVisible.value = false;
- pickerVisible.value = false;
- emit("visible-change", false);
- };
- const handleOpen = () => {
- pickerVisible.value = true;
- };
- const handleClose = () => {
- pickerVisible.value = false;
- };
- const displayValue = computed(() => {
- if (!pickerOptions.value.panelReady)
- return "";
- const formattedValue = formatDayjsToString(parsedValue.value);
- if (isArray(userInput.value)) {
- return [
- userInput.value[0] || formattedValue && formattedValue[0] || "",
- userInput.value[1] || formattedValue && formattedValue[1] || ""
- ];
- } else if (userInput.value !== null) {
- return userInput.value;
- }
- if (!isTimePicker.value && valueIsEmpty.value)
- return "";
- if (!pickerVisible.value && valueIsEmpty.value)
- return "";
- if (formattedValue) {
- return isDatesPicker.value || isMonthsPicker.value || isYearsPicker.value ? formattedValue.join(", ") : formattedValue;
- }
- return "";
- });
- const isTimeLikePicker = computed(() => props2.type.includes("time"));
- const isTimePicker = computed(() => props2.type.startsWith("time"));
- const isDatesPicker = computed(() => props2.type === "dates");
- const isMonthsPicker = computed(() => props2.type === "months");
- const isYearsPicker = computed(() => props2.type === "years");
- const triggerIcon = computed(() => props2.prefixIcon || (isTimeLikePicker.value ? clock_default : calendar_default));
- const showClearBtn = computed(() => props2.clearable && !pickerDisabled.value && !props2.readonly && !valueIsEmpty.value && (hovering.value || isFocused.value));
- const onClearIconClick = (event) => {
- if (props2.readonly || pickerDisabled.value)
- return;
- if (showClearBtn.value) {
- event.stopPropagation();
- if (pickerOptions.value.handleClear) {
- pickerOptions.value.handleClear();
- } else {
- emitInput(valueOnClear.value);
- }
- emitChange(valueOnClear.value, true);
- onHide();
- }
- emit("clear");
- };
- const onMouseDownInput = async (event) => {
- var _a2;
- if (props2.readonly || pickerDisabled.value)
- return;
- if (((_a2 = event.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isFocused.value) {
- pickerVisible.value = true;
- }
- };
- const onMouseEnter = () => {
- if (props2.readonly || pickerDisabled.value)
- return;
- if (!valueIsEmpty.value && props2.clearable) {
- hovering.value = true;
- }
- };
- const onMouseLeave = () => {
- hovering.value = false;
- };
- const onTouchStartInput = (event) => {
- var _a2;
- if (props2.readonly || pickerDisabled.value)
- return;
- if (((_a2 = event.touches[0].target) == null ? void 0 : _a2.tagName) !== "INPUT" || isFocused.value) {
- pickerVisible.value = true;
- }
- };
- const isRangeInput = computed(() => {
- return props2.type.includes("range");
- });
- const pickerSize = useFormSize();
- const popperEl = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = unref(refPopper)) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
- });
- const stophandle = onClickOutside(inputRef, (e) => {
- const unrefedPopperEl = unref(popperEl);
- const inputEl = unrefElement(inputRef);
- if (unrefedPopperEl && (e.target === unrefedPopperEl || e.composedPath().includes(unrefedPopperEl)) || e.target === inputEl || inputEl && e.composedPath().includes(inputEl))
- return;
- pickerVisible.value = false;
- });
- onBeforeUnmount(() => {
- stophandle == null ? void 0 : stophandle();
- });
- const handleChange = () => {
- if (userInput.value) {
- const value = parseUserInputToDayjs(displayValue.value);
- if (value) {
- if (isValidValue3(value)) {
- emitInput(dayOrDaysToDate(value));
- userInput.value = null;
- }
- }
- }
- if (userInput.value === "") {
- emitInput(valueOnClear.value);
- emitChange(valueOnClear.value, true);
- userInput.value = null;
- }
- };
- const parseUserInputToDayjs = (value) => {
- if (!value)
- return null;
- return pickerOptions.value.parseUserInput(value);
- };
- const formatDayjsToString = (value) => {
- if (!value)
- return null;
- return pickerOptions.value.formatToString(value);
- };
- const isValidValue3 = (value) => {
- return pickerOptions.value.isValidValue(value);
- };
- const handleKeydownInput = async (event) => {
- if (props2.readonly || pickerDisabled.value)
- return;
- const { code } = event;
- emitKeydown(event);
- if (code === EVENT_CODE.esc) {
- if (pickerVisible.value === true) {
- pickerVisible.value = false;
- event.preventDefault();
- event.stopPropagation();
- }
- return;
- }
- if (code === EVENT_CODE.down) {
- if (pickerOptions.value.handleFocusPicker) {
- event.preventDefault();
- event.stopPropagation();
- }
- if (pickerVisible.value === false) {
- pickerVisible.value = true;
- await nextTick();
- }
- if (pickerOptions.value.handleFocusPicker) {
- pickerOptions.value.handleFocusPicker();
- return;
- }
- }
- if (code === EVENT_CODE.tab) {
- hasJustTabExitedInput = true;
- return;
- }
- if (code === EVENT_CODE.enter || code === EVENT_CODE.numpadEnter) {
- if (userInput.value === null || userInput.value === "" || isValidValue3(parseUserInputToDayjs(displayValue.value))) {
- handleChange();
- pickerVisible.value = false;
- }
- event.stopPropagation();
- return;
- }
- if (userInput.value) {
- event.stopPropagation();
- return;
- }
- if (pickerOptions.value.handleKeydownInput) {
- pickerOptions.value.handleKeydownInput(event);
- }
- };
- const onUserInput = (e) => {
- userInput.value = e;
- if (!pickerVisible.value) {
- pickerVisible.value = true;
- }
- };
- const handleStartInput = (event) => {
- const target2 = event.target;
- if (userInput.value) {
- userInput.value = [target2.value, userInput.value[1]];
- } else {
- userInput.value = [target2.value, null];
- }
- };
- const handleEndInput = (event) => {
- const target2 = event.target;
- if (userInput.value) {
- userInput.value = [userInput.value[0], target2.value];
- } else {
- userInput.value = [null, target2.value];
- }
- };
- const handleStartChange = () => {
- var _a2;
- const values2 = userInput.value;
- const value = parseUserInputToDayjs(values2 && values2[0]);
- const parsedVal = unref(parsedValue);
- if (value && value.isValid()) {
- userInput.value = [
- formatDayjsToString(value),
- ((_a2 = displayValue.value) == null ? void 0 : _a2[1]) || null
- ];
- const newValue = [value, parsedVal && (parsedVal[1] || null)];
- if (isValidValue3(newValue)) {
- emitInput(dayOrDaysToDate(newValue));
- userInput.value = null;
- }
- }
- };
- const handleEndChange = () => {
- var _a2;
- const values2 = unref(userInput);
- const value = parseUserInputToDayjs(values2 && values2[1]);
- const parsedVal = unref(parsedValue);
- if (value && value.isValid()) {
- userInput.value = [
- ((_a2 = unref(displayValue)) == null ? void 0 : _a2[0]) || null,
- formatDayjsToString(value)
- ];
- const newValue = [parsedVal && parsedVal[0], value];
- if (isValidValue3(newValue)) {
- emitInput(dayOrDaysToDate(newValue));
- userInput.value = null;
- }
- }
- };
- const focus = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
- };
- provide(PICKER_BASE_INJECTION_KEY, {
- props: props2
- });
- provide(ROOT_COMMON_PICKER_INJECTION_KEY, commonPicker);
- expose({
- focus,
- blur,
- handleOpen,
- handleClose,
- onPick
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTooltip), mergeProps({
- ref_key: "refPopper",
- ref: refPopper,
- visible: unref(pickerVisible),
- effect: "light",
- pure: "",
- trigger: "click"
- }, _ctx.$attrs, {
- role: "dialog",
- teleported: "",
- transition: `${unref(nsDate).namespace.value}-zoom-in-top`,
- "popper-class": [`${unref(nsDate).namespace.value}-picker__popper`, _ctx.popperClass],
- "popper-style": _ctx.popperStyle,
- "popper-options": unref(elPopperOptions),
- "fallback-placements": _ctx.fallbackPlacements,
- "gpu-acceleration": false,
- placement: _ctx.placement,
- "stop-popper-mouse-event": false,
- "hide-after": 0,
- persistent: "",
- onBeforeShow,
- onShow,
- onHide
- }), {
- default: withCtx(() => [
- !unref(isRangeInput) ? (openBlock(), createBlock(unref(ElInput), {
- key: 0,
- id: _ctx.id,
- ref_key: "inputRef",
- ref: inputRef,
- "container-role": "combobox",
- "model-value": unref(displayValue),
- name: _ctx.name,
- size: unref(pickerSize),
- disabled: unref(pickerDisabled),
- placeholder: _ctx.placeholder,
- class: normalizeClass([
- unref(nsDate).b("editor"),
- unref(nsDate).bm("editor", _ctx.type),
- unref(nsDate).is("focus", unref(pickerVisible)),
- _ctx.$attrs.class
- ]),
- style: normalizeStyle(_ctx.$attrs.style),
- readonly: !_ctx.editable || _ctx.readonly || unref(isDatesPicker) || unref(isMonthsPicker) || unref(isYearsPicker) || _ctx.type === "week",
- "aria-label": _ctx.ariaLabel,
- tabindex: _ctx.tabindex,
- "validate-event": false,
- onInput: onUserInput,
- onFocus: unref(handleFocus),
- onBlur: unref(handleBlur),
- onKeydown: handleKeydownInput,
- onChange: handleChange,
- onMousedown: onMouseDownInput,
- onMouseenter: onMouseEnter,
- onMouseleave: onMouseLeave,
- onTouchstartPassive: onTouchStartInput,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, {
- prefix: withCtx(() => [
- unref(triggerIcon) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(nsInput).e("icon")),
- onMousedown: withModifiers(onMouseDownInput, ["prevent"]),
- onTouchstartPassive: onTouchStartInput
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(triggerIcon))))
- ]),
- _: 1
- }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
- ]),
- suffix: withCtx(() => [
- unref(showClearBtn) && _ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(`${unref(nsInput).e("icon")} clear-icon`),
- onMousedown: withModifiers(unref(NOOP), ["prevent"]),
- onClick: onClearIconClick
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
- ]),
- _: 1
- }, 8, ["id", "model-value", "name", "size", "disabled", "placeholder", "class", "style", "readonly", "aria-label", "tabindex", "onFocus", "onBlur", "onClick"])) : (openBlock(), createBlock(PickerRangeTrigger, {
- key: 1,
- id: _ctx.id,
- ref_key: "inputRef",
- ref: inputRef,
- "model-value": unref(displayValue),
- name: _ctx.name,
- disabled: unref(pickerDisabled),
- readonly: !_ctx.editable || _ctx.readonly,
- "start-placeholder": _ctx.startPlaceholder,
- "end-placeholder": _ctx.endPlaceholder,
- class: normalizeClass(unref(rangeInputKls)),
- style: normalizeStyle(_ctx.$attrs.style),
- "aria-label": _ctx.ariaLabel,
- tabindex: _ctx.tabindex,
- autocomplete: "off",
- role: "combobox",
- onClick: onMouseDownInput,
- onFocus: unref(handleFocus),
- onBlur: unref(handleBlur),
- onStartInput: handleStartInput,
- onStartChange: handleStartChange,
- onEndInput: handleEndInput,
- onEndChange: handleEndChange,
- onMousedown: onMouseDownInput,
- onMouseenter: onMouseEnter,
- onMouseleave: onMouseLeave,
- onTouchstartPassive: onTouchStartInput,
- onKeydown: handleKeydownInput
- }, {
- prefix: withCtx(() => [
- unref(triggerIcon) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([unref(nsInput).e("icon"), unref(nsRange).e("icon")])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(triggerIcon))))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ]),
- "range-separator": withCtx(() => [
- renderSlot(_ctx.$slots, "range-separator", {}, () => [
- createBaseVNode("span", {
- class: normalizeClass(unref(nsRange).b("separator"))
- }, toDisplayString(_ctx.rangeSeparator), 3)
- ])
- ]),
- suffix: withCtx(() => [
- _ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(clearIconKls)),
- onMousedown: withModifiers(unref(NOOP), ["prevent"]),
- onClick: onClearIconClick
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["id", "model-value", "name", "disabled", "readonly", "start-placeholder", "end-placeholder", "class", "style", "aria-label", "tabindex", "onFocus", "onBlur"]))
- ]),
- content: withCtx(() => [
- renderSlot(_ctx.$slots, "default", {
- visible: unref(pickerVisible),
- actualVisible: unref(pickerActualVisible),
- parsedValue: unref(parsedValue),
- format: _ctx.format,
- dateFormat: _ctx.dateFormat,
- timeFormat: _ctx.timeFormat,
- unlinkPanels: _ctx.unlinkPanels,
- type: _ctx.type,
- defaultValue: _ctx.defaultValue,
- showNow: _ctx.showNow,
- showConfirm: _ctx.showConfirm,
- showFooter: _ctx.showFooter,
- showWeekNumber: _ctx.showWeekNumber,
- onPick: unref(onPick),
- onSelectRange: setSelectionRange,
- onSetPickerOption: unref(onSetPickerOption),
- onCalendarChange: unref(onCalendarChange),
- onPanelChange: unref(onPanelChange),
- onMousedown: withModifiers(() => {
- }, ["stop"])
- })
- ]),
- _: 3
- }, 16, ["visible", "transition", "popper-class", "popper-style", "popper-options", "fallback-placements", "placement"]);
- };
- }
- });
- var CommonPicker = _export_sfc(_sfc_main350, [["__file", "picker.vue"]]);
- // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs
- var import_dayjs4 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.mjs
- var panelTimePickerProps = buildProps({
- ...timePanelSharedProps,
- datetimeRole: String,
- parsedValue: {
- type: definePropType(Object)
- }
- });
- // node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.mjs
- var useTimePanel = ({
- getAvailableHours,
- getAvailableMinutes,
- getAvailableSeconds
- }) => {
- const getAvailableTime = (date4, role, first, compareDate) => {
- const availableTimeGetters = {
- hour: getAvailableHours,
- minute: getAvailableMinutes,
- second: getAvailableSeconds
- };
- let result2 = date4;
- ["hour", "minute", "second"].forEach((type4) => {
- if (availableTimeGetters[type4]) {
- let availableTimeSlots;
- const method5 = availableTimeGetters[type4];
- switch (type4) {
- case "minute": {
- availableTimeSlots = method5(result2.hour(), role, compareDate);
- break;
- }
- case "second": {
- availableTimeSlots = method5(result2.hour(), result2.minute(), role, compareDate);
- break;
- }
- default: {
- availableTimeSlots = method5(role, compareDate);
- break;
- }
- }
- if ((availableTimeSlots == null ? void 0 : availableTimeSlots.length) && !availableTimeSlots.includes(result2[type4]())) {
- const pos = first ? 0 : availableTimeSlots.length - 1;
- result2 = result2[type4](availableTimeSlots[pos]);
- }
- }
- });
- return result2;
- };
- const timePickerOptions = {};
- const onSetOption = ([key, val]) => {
- timePickerOptions[key] = val;
- };
- return {
- timePickerOptions,
- getAvailableTime,
- onSetOption
- };
- };
- // node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.mjs
- var makeAvailableArr = (disabledList) => {
- const trueOrNumber = (isDisabled, index) => isDisabled || index;
- const getNumber = (predicate) => predicate !== true;
- return disabledList.map(trueOrNumber).filter(getNumber);
- };
- var getTimeLists = (disabledHours, disabledMinutes, disabledSeconds) => {
- const getHoursList = (role, compare) => {
- return makeList(24, disabledHours && (() => disabledHours == null ? void 0 : disabledHours(role, compare)));
- };
- const getMinutesList = (hour, role, compare) => {
- return makeList(60, disabledMinutes && (() => disabledMinutes == null ? void 0 : disabledMinutes(hour, role, compare)));
- };
- const getSecondsList = (hour, minute, role, compare) => {
- return makeList(60, disabledSeconds && (() => disabledSeconds == null ? void 0 : disabledSeconds(hour, minute, role, compare)));
- };
- return {
- getHoursList,
- getMinutesList,
- getSecondsList
- };
- };
- var buildAvailableTimeSlotGetter = (disabledHours, disabledMinutes, disabledSeconds) => {
- const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(disabledHours, disabledMinutes, disabledSeconds);
- const getAvailableHours = (role, compare) => {
- return makeAvailableArr(getHoursList(role, compare));
- };
- const getAvailableMinutes = (hour, role, compare) => {
- return makeAvailableArr(getMinutesList(hour, role, compare));
- };
- const getAvailableSeconds = (hour, minute, role, compare) => {
- return makeAvailableArr(getSecondsList(hour, minute, role, compare));
- };
- return {
- getAvailableHours,
- getAvailableMinutes,
- getAvailableSeconds
- };
- };
- var useOldValue = (props2) => {
- const oldValue = ref(props2.parsedValue);
- watch(() => props2.visible, (val) => {
- if (!val) {
- oldValue.value = props2.parsedValue;
- }
- });
- return oldValue;
- };
- // node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.mjs
- var basicTimeSpinnerProps = buildProps({
- role: {
- type: String,
- required: true
- },
- spinnerDate: {
- type: definePropType(Object),
- required: true
- },
- showSeconds: {
- type: Boolean,
- default: true
- },
- arrowControl: Boolean,
- amPmMode: {
- type: definePropType(String),
- default: ""
- },
- ...disabledTimeListsProps
- });
- // node_modules/element-plus/es/directives/repeat-click/index.mjs
- var REPEAT_INTERVAL = 100;
- var REPEAT_DELAY = 600;
- var vRepeatClick = {
- beforeMount(el, binding) {
- const value = binding.value;
- const { interval = REPEAT_INTERVAL, delay: delay2 = REPEAT_DELAY } = isFunction(value) ? {} : value;
- let intervalId;
- let delayId;
- const handler = () => isFunction(value) ? value() : value.handler();
- const clear = () => {
- if (delayId) {
- clearTimeout(delayId);
- delayId = void 0;
- }
- if (intervalId) {
- clearInterval(intervalId);
- intervalId = void 0;
- }
- };
- el.addEventListener("mousedown", (evt) => {
- if (evt.button !== 0)
- return;
- clear();
- handler();
- document.addEventListener("mouseup", () => clear(), {
- once: true
- });
- delayId = setTimeout(() => {
- intervalId = setInterval(() => {
- handler();
- }, interval);
- }, delay2);
- });
- }
- };
- // node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs
- var _sfc_main351 = defineComponent({
- __name: "basic-time-spinner",
- props: basicTimeSpinnerProps,
- emits: [CHANGE_EVENT, "select-range", "set-option"],
- setup(__props, { emit }) {
- const props2 = __props;
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const { isRange, format: format2 } = pickerBase.props;
- const ns = useNamespace("time");
- const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(props2.disabledHours, props2.disabledMinutes, props2.disabledSeconds);
- let isScrolling = false;
- const currentScrollbar = ref();
- const listHoursRef = ref();
- const listMinutesRef = ref();
- const listSecondsRef = ref();
- const listRefsMap = {
- hours: listHoursRef,
- minutes: listMinutesRef,
- seconds: listSecondsRef
- };
- const spinnerItems = computed(() => {
- return props2.showSeconds ? timeUnits : timeUnits.slice(0, 2);
- });
- const timePartials = computed(() => {
- const { spinnerDate } = props2;
- const hours = spinnerDate.hour();
- const minutes = spinnerDate.minute();
- const seconds = spinnerDate.second();
- return { hours, minutes, seconds };
- });
- const timeList = computed(() => {
- const { hours, minutes } = unref(timePartials);
- const { role, spinnerDate } = props2;
- const compare = !isRange ? spinnerDate : void 0;
- return {
- hours: getHoursList(role, compare),
- minutes: getMinutesList(hours, role, compare),
- seconds: getSecondsList(hours, minutes, role, compare)
- };
- });
- const arrowControlTimeList = computed(() => {
- const { hours, minutes, seconds } = unref(timePartials);
- return {
- hours: buildTimeList(hours, 23),
- minutes: buildTimeList(minutes, 59),
- seconds: buildTimeList(seconds, 59)
- };
- });
- const debouncedResetScroll = debounce_default((type4) => {
- isScrolling = false;
- adjustCurrentSpinner(type4);
- }, 200);
- const getAmPmFlag = (hour) => {
- const shouldShowAmPm = !!props2.amPmMode;
- if (!shouldShowAmPm)
- return "";
- const isCapital = props2.amPmMode === "A";
- let content = hour < 12 ? " am" : " pm";
- if (isCapital)
- content = content.toUpperCase();
- return content;
- };
- const emitSelectRange = (type4) => {
- let range4 = [0, 0];
- const actualFormat = format2 || DEFAULT_FORMATS_TIME;
- const hourIndex = actualFormat.indexOf("HH");
- const minuteIndex = actualFormat.indexOf("mm");
- const secondIndex = actualFormat.indexOf("ss");
- switch (type4) {
- case "hours":
- if (hourIndex !== -1) {
- range4 = [hourIndex, hourIndex + 2];
- }
- break;
- case "minutes":
- if (minuteIndex !== -1) {
- range4 = [minuteIndex, minuteIndex + 2];
- }
- break;
- case "seconds":
- if (secondIndex !== -1) {
- range4 = [secondIndex, secondIndex + 2];
- }
- break;
- }
- const [left, right] = range4;
- emit("select-range", left, right);
- currentScrollbar.value = type4;
- };
- const adjustCurrentSpinner = (type4) => {
- adjustSpinner(type4, unref(timePartials)[type4]);
- };
- const adjustSpinners = () => {
- adjustCurrentSpinner("hours");
- adjustCurrentSpinner("minutes");
- adjustCurrentSpinner("seconds");
- };
- const getScrollbarElement = (el) => el.querySelector(`.${ns.namespace.value}-scrollbar__wrap`);
- const adjustSpinner = (type4, value) => {
- if (props2.arrowControl)
- return;
- const scrollbar = unref(listRefsMap[type4]);
- if (scrollbar && scrollbar.$el) {
- getScrollbarElement(scrollbar.$el).scrollTop = Math.max(0, value * typeItemHeight(type4));
- }
- };
- const typeItemHeight = (type4) => {
- const scrollbar = unref(listRefsMap[type4]);
- const listItem = scrollbar == null ? void 0 : scrollbar.$el.querySelector("li");
- if (listItem) {
- return Number.parseFloat(getStyle(listItem, "height")) || 0;
- }
- return 0;
- };
- const onIncrement = () => {
- scrollDown(1);
- };
- const onDecrement = () => {
- scrollDown(-1);
- };
- const scrollDown = (step2) => {
- if (!currentScrollbar.value) {
- emitSelectRange("hours");
- }
- const label = currentScrollbar.value;
- const now2 = unref(timePartials)[label];
- const total2 = currentScrollbar.value === "hours" ? 24 : 60;
- const next = findNextUnDisabled(label, now2, step2, total2);
- modifyDateField(label, next);
- adjustSpinner(label, next);
- nextTick(() => emitSelectRange(label));
- };
- const findNextUnDisabled = (type4, now2, step2, total2) => {
- let next = (now2 + step2 + total2) % total2;
- const list = unref(timeList)[type4];
- while (list[next] && next !== now2) {
- next = (next + step2 + total2) % total2;
- }
- return next;
- };
- const modifyDateField = (type4, value) => {
- const list = unref(timeList)[type4];
- const isDisabled = list[value];
- if (isDisabled)
- return;
- const { hours, minutes, seconds } = unref(timePartials);
- let changeTo;
- switch (type4) {
- case "hours":
- changeTo = props2.spinnerDate.hour(value).minute(minutes).second(seconds);
- break;
- case "minutes":
- changeTo = props2.spinnerDate.hour(hours).minute(value).second(seconds);
- break;
- case "seconds":
- changeTo = props2.spinnerDate.hour(hours).minute(minutes).second(value);
- break;
- }
- emit(CHANGE_EVENT, changeTo);
- };
- const handleClick = (type4, { value, disabled }) => {
- if (!disabled) {
- modifyDateField(type4, value);
- emitSelectRange(type4);
- adjustSpinner(type4, value);
- }
- };
- const handleScroll2 = (type4) => {
- const scrollbar = unref(listRefsMap[type4]);
- if (!scrollbar)
- return;
- isScrolling = true;
- debouncedResetScroll(type4);
- const value = Math.min(Math.round((getScrollbarElement(scrollbar.$el).scrollTop - (scrollBarHeight(type4) * 0.5 - 10) / typeItemHeight(type4) + 3) / typeItemHeight(type4)), type4 === "hours" ? 23 : 59);
- modifyDateField(type4, value);
- };
- const scrollBarHeight = (type4) => {
- return unref(listRefsMap[type4]).$el.offsetHeight;
- };
- const bindScrollEvent = () => {
- const bindFunction = (type4) => {
- const scrollbar = unref(listRefsMap[type4]);
- if (scrollbar && scrollbar.$el) {
- getScrollbarElement(scrollbar.$el).onscroll = () => {
- handleScroll2(type4);
- };
- }
- };
- bindFunction("hours");
- bindFunction("minutes");
- bindFunction("seconds");
- };
- onMounted(() => {
- nextTick(() => {
- !props2.arrowControl && bindScrollEvent();
- adjustSpinners();
- if (props2.role === "start")
- emitSelectRange("hours");
- });
- });
- const setRef = (scrollbar, type4) => {
- listRefsMap[type4].value = scrollbar != null ? scrollbar : void 0;
- };
- emit("set-option", [`${props2.role}_scrollDown`, scrollDown]);
- emit("set-option", [`${props2.role}_emitSelectRange`, emitSelectRange]);
- watch(() => props2.spinnerDate, () => {
- if (isScrolling)
- return;
- adjustSpinners();
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b("spinner"), { "has-seconds": _ctx.showSeconds }])
- }, [
- !_ctx.arrowControl ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(spinnerItems), (item) => {
- return openBlock(), createBlock(unref(ElScrollbar), {
- key: item,
- ref_for: true,
- ref: (scrollbar) => setRef(scrollbar, item),
- class: normalizeClass(unref(ns).be("spinner", "wrapper")),
- "wrap-style": "max-height: inherit;",
- "view-class": unref(ns).be("spinner", "list"),
- noresize: "",
- tag: "ul",
- onMouseenter: ($event) => emitSelectRange(item),
- onMousemove: ($event) => adjustCurrentSpinner(item)
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(timeList)[item], (disabled, key) => {
- return openBlock(), createElementBlock("li", {
- key,
- class: normalizeClass([
- unref(ns).be("spinner", "item"),
- unref(ns).is("active", key === unref(timePartials)[item]),
- unref(ns).is("disabled", disabled)
- ]),
- onClick: ($event) => handleClick(item, { value: key, disabled })
- }, [
- item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? key % 12 || 12 : key)).slice(-2)) + toDisplayString(getAmPmFlag(key)), 1)
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- createTextVNode(toDisplayString(("0" + key).slice(-2)), 1)
- ], 64))
- ], 10, ["onClick"]);
- }), 128))
- ]),
- _: 2
- }, 1032, ["class", "view-class", "onMouseenter", "onMousemove"]);
- }), 128)) : createCommentVNode("v-if", true),
- _ctx.arrowControl ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(spinnerItems), (item) => {
- return openBlock(), createElementBlock("div", {
- key: item,
- class: normalizeClass([unref(ns).be("spinner", "wrapper"), unref(ns).is("arrow")]),
- onMouseenter: ($event) => emitSelectRange(item)
- }, [
- withDirectives((openBlock(), createBlock(unref(ElIcon), {
- class: normalizeClass(["arrow-up", unref(ns).be("spinner", "arrow")])
- }, {
- default: withCtx(() => [
- createVNode(unref(arrow_up_default))
- ]),
- _: 1
- }, 8, ["class"])), [
- [unref(vRepeatClick), onDecrement]
- ]),
- withDirectives((openBlock(), createBlock(unref(ElIcon), {
- class: normalizeClass(["arrow-down", unref(ns).be("spinner", "arrow")])
- }, {
- default: withCtx(() => [
- createVNode(unref(arrow_down_default))
- ]),
- _: 1
- }, 8, ["class"])), [
- [unref(vRepeatClick), onIncrement]
- ]),
- createBaseVNode("ul", {
- class: normalizeClass(unref(ns).be("spinner", "list"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(arrowControlTimeList)[item], (time, key) => {
- return openBlock(), createElementBlock("li", {
- key,
- class: normalizeClass([
- unref(ns).be("spinner", "item"),
- unref(ns).is("active", time === unref(timePartials)[item]),
- unref(ns).is("disabled", unref(timeList)[item][time])
- ])
- }, [
- unref(isNumber2)(time) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? time % 12 || 12 : time)).slice(-2)) + toDisplayString(getAmPmFlag(time)), 1)
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- createTextVNode(toDisplayString(("0" + time).slice(-2)), 1)
- ], 64))
- ], 64)) : createCommentVNode("v-if", true)
- ], 2);
- }), 128))
- ], 2)
- ], 42, ["onMouseenter"]);
- }), 128)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var TimeSpinner = _export_sfc(_sfc_main351, [["__file", "basic-time-spinner.vue"]]);
- // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs
- var _sfc_main352 = defineComponent({
- __name: "panel-time-pick",
- props: panelTimePickerProps,
- emits: ["pick", "select-range", "set-picker-option"],
- setup(__props, { emit }) {
- const props2 = __props;
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const {
- arrowControl,
- disabledHours,
- disabledMinutes,
- disabledSeconds,
- defaultValue
- } = pickerBase.props;
- const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours, disabledMinutes, disabledSeconds);
- const ns = useNamespace("time");
- const { t, lang } = useLocale();
- const selectionRange = ref([0, 2]);
- const oldValue = useOldValue(props2);
- const transitionName = computed(() => {
- return isUndefined2(props2.actualVisible) ? `${ns.namespace.value}-zoom-in-top` : "";
- });
- const showSeconds = computed(() => {
- return props2.format.includes("ss");
- });
- const amPmMode = computed(() => {
- if (props2.format.includes("A"))
- return "A";
- if (props2.format.includes("a"))
- return "a";
- return "";
- });
- const isValidValue3 = (_date) => {
- const parsedDate = (0, import_dayjs4.default)(_date).locale(lang.value);
- const result2 = getRangeAvailableTime(parsedDate);
- return parsedDate.isSame(result2);
- };
- const handleCancel = () => {
- emit("pick", oldValue.value, false);
- };
- const handleConfirm = (visible = false, first = false) => {
- if (first)
- return;
- emit("pick", props2.parsedValue, visible);
- };
- const handleChange = (_date) => {
- if (!props2.visible) {
- return;
- }
- const result2 = getRangeAvailableTime(_date).millisecond(0);
- emit("pick", result2, true);
- };
- const setSelectionRange = (start, end) => {
- emit("select-range", start, end);
- selectionRange.value = [start, end];
- };
- const changeSelectionRange = (step2) => {
- const actualFormat = props2.format;
- const hourIndex = actualFormat.indexOf("HH");
- const minuteIndex = actualFormat.indexOf("mm");
- const secondIndex = actualFormat.indexOf("ss");
- const list = [];
- const mapping = [];
- if (hourIndex !== -1) {
- list.push(hourIndex);
- mapping.push("hours");
- }
- if (minuteIndex !== -1) {
- list.push(minuteIndex);
- mapping.push("minutes");
- }
- if (secondIndex !== -1 && showSeconds.value) {
- list.push(secondIndex);
- mapping.push("seconds");
- }
- const index = list.indexOf(selectionRange.value[0]);
- const next = (index + step2 + list.length) % list.length;
- timePickerOptions["start_emitSelectRange"](mapping[next]);
- };
- const handleKeydown = (event) => {
- const code = event.code;
- const { left, right, up, down } = EVENT_CODE;
- if ([left, right].includes(code)) {
- const step2 = code === left ? -1 : 1;
- changeSelectionRange(step2);
- event.preventDefault();
- return;
- }
- if ([up, down].includes(code)) {
- const step2 = code === up ? -1 : 1;
- timePickerOptions["start_scrollDown"](step2);
- event.preventDefault();
- return;
- }
- };
- const { timePickerOptions, onSetOption, getAvailableTime } = useTimePanel({
- getAvailableHours,
- getAvailableMinutes,
- getAvailableSeconds
- });
- const getRangeAvailableTime = (date4) => {
- return getAvailableTime(date4, props2.datetimeRole || "", true);
- };
- const parseUserInput = (value) => {
- if (!value)
- return null;
- return (0, import_dayjs4.default)(value, props2.format).locale(lang.value);
- };
- const formatToString = (value) => {
- if (!value)
- return null;
- return value.format(props2.format);
- };
- const getDefaultValue2 = () => {
- return (0, import_dayjs4.default)(defaultValue).locale(lang.value);
- };
- emit("set-picker-option", ["isValidValue", isValidValue3]);
- emit("set-picker-option", ["formatToString", formatToString]);
- emit("set-picker-option", ["parseUserInput", parseUserInput]);
- emit("set-picker-option", ["handleKeydownInput", handleKeydown]);
- emit("set-picker-option", ["getRangeAvailableTime", getRangeAvailableTime]);
- emit("set-picker-option", ["getDefaultValue", getDefaultValue2]);
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, { name: unref(transitionName) }, {
- default: withCtx(() => [
- _ctx.actualVisible || _ctx.visible ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).b("panel"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).be("panel", "content"), { "has-seconds": unref(showSeconds) }])
- }, [
- createVNode(TimeSpinner, {
- ref: "spinner",
- role: _ctx.datetimeRole || "start",
- "arrow-control": unref(arrowControl),
- "show-seconds": unref(showSeconds),
- "am-pm-mode": unref(amPmMode),
- "spinner-date": _ctx.parsedValue,
- "disabled-hours": unref(disabledHours),
- "disabled-minutes": unref(disabledMinutes),
- "disabled-seconds": unref(disabledSeconds),
- onChange: handleChange,
- onSetOption: unref(onSetOption),
- onSelectRange: setSelectionRange
- }, null, 8, ["role", "arrow-control", "show-seconds", "am-pm-mode", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onSetOption"])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).be("panel", "footer"))
- }, [
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ns).be("panel", "btn"), "cancel"]),
- onClick: handleCancel
- }, toDisplayString(unref(t)("el.datepicker.cancel")), 3),
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ns).be("panel", "btn"), "confirm"]),
- onClick: ($event) => handleConfirm()
- }, toDisplayString(unref(t)("el.datepicker.confirm")), 11, ["onClick"])
- ], 2)
- ], 2)) : createCommentVNode("v-if", true)
- ]),
- _: 1
- }, 8, ["name"]);
- };
- }
- });
- var TimePickPanel = _export_sfc(_sfc_main352, [["__file", "panel-time-pick.vue"]]);
- // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs
- var import_dayjs5 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/time-picker/src/props/panel-time-range.mjs
- var panelTimeRangeProps = buildProps({
- ...timePanelSharedProps,
- parsedValue: {
- type: definePropType(Array)
- }
- });
- // node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.mjs
- var _sfc_main353 = defineComponent({
- __name: "panel-time-range",
- props: panelTimeRangeProps,
- emits: ["pick", "select-range", "set-picker-option"],
- setup(__props, { emit }) {
- const props2 = __props;
- const makeSelectRange = (start, end) => {
- const result2 = [];
- for (let i = start; i <= end; i++) {
- result2.push(i);
- }
- return result2;
- };
- const { t, lang } = useLocale();
- const nsTime = useNamespace("time");
- const nsPicker = useNamespace("picker");
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const {
- arrowControl,
- disabledHours,
- disabledMinutes,
- disabledSeconds,
- defaultValue
- } = pickerBase.props;
- const startContainerKls = computed(() => [
- nsTime.be("range-picker", "body"),
- nsTime.be("panel", "content"),
- nsTime.is("arrow", arrowControl),
- showSeconds.value ? "has-seconds" : ""
- ]);
- const endContainerKls = computed(() => [
- nsTime.be("range-picker", "body"),
- nsTime.be("panel", "content"),
- nsTime.is("arrow", arrowControl),
- showSeconds.value ? "has-seconds" : ""
- ]);
- const startTime = computed(() => props2.parsedValue[0]);
- const endTime = computed(() => props2.parsedValue[1]);
- const oldValue = useOldValue(props2);
- const handleCancel = () => {
- emit("pick", oldValue.value, false);
- };
- const showSeconds = computed(() => {
- return props2.format.includes("ss");
- });
- const amPmMode = computed(() => {
- if (props2.format.includes("A"))
- return "A";
- if (props2.format.includes("a"))
- return "a";
- return "";
- });
- const handleConfirm = (visible = false) => {
- emit("pick", [startTime.value, endTime.value], visible);
- };
- const handleMinChange = (date4) => {
- handleChange(date4.millisecond(0), endTime.value);
- };
- const handleMaxChange = (date4) => {
- handleChange(startTime.value, date4.millisecond(0));
- };
- const isValidValue3 = (_date) => {
- const parsedDate = _date.map((_2) => (0, import_dayjs5.default)(_2).locale(lang.value));
- const result2 = getRangeAvailableTime(parsedDate);
- return parsedDate[0].isSame(result2[0]) && parsedDate[1].isSame(result2[1]);
- };
- const handleChange = (start, end) => {
- if (!props2.visible) {
- return;
- }
- emit("pick", [start, end], true);
- };
- const btnConfirmDisabled = computed(() => {
- return startTime.value > endTime.value;
- });
- const selectionRange = ref([0, 2]);
- const setMinSelectionRange = (start, end) => {
- emit("select-range", start, end, "min");
- selectionRange.value = [start, end];
- };
- const offset3 = computed(() => showSeconds.value ? 11 : 8);
- const setMaxSelectionRange = (start, end) => {
- emit("select-range", start, end, "max");
- const _offset = unref(offset3);
- selectionRange.value = [start + _offset, end + _offset];
- };
- const changeSelectionRange = (step2) => {
- const list = showSeconds.value ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11];
- const mapping = ["hours", "minutes"].concat(showSeconds.value ? ["seconds"] : []);
- const index = list.indexOf(selectionRange.value[0]);
- const next = (index + step2 + list.length) % list.length;
- const half = list.length / 2;
- if (next < half) {
- timePickerOptions["start_emitSelectRange"](mapping[next]);
- } else {
- timePickerOptions["end_emitSelectRange"](mapping[next - half]);
- }
- };
- const handleKeydown = (event) => {
- const code = event.code;
- const { left, right, up, down } = EVENT_CODE;
- if ([left, right].includes(code)) {
- const step2 = code === left ? -1 : 1;
- changeSelectionRange(step2);
- event.preventDefault();
- return;
- }
- if ([up, down].includes(code)) {
- const step2 = code === up ? -1 : 1;
- const role = selectionRange.value[0] < offset3.value ? "start" : "end";
- timePickerOptions[`${role}_scrollDown`](step2);
- event.preventDefault();
- return;
- }
- };
- const disabledHours_ = (role, compare) => {
- const defaultDisable = disabledHours ? disabledHours(role) : [];
- const isStart = role === "start";
- const compareDate = compare || (isStart ? endTime.value : startTime.value);
- const compareHour = compareDate.hour();
- const nextDisable = isStart ? makeSelectRange(compareHour + 1, 23) : makeSelectRange(0, compareHour - 1);
- return union_default(defaultDisable, nextDisable);
- };
- const disabledMinutes_ = (hour, role, compare) => {
- const defaultDisable = disabledMinutes ? disabledMinutes(hour, role) : [];
- const isStart = role === "start";
- const compareDate = compare || (isStart ? endTime.value : startTime.value);
- const compareHour = compareDate.hour();
- if (hour !== compareHour) {
- return defaultDisable;
- }
- const compareMinute = compareDate.minute();
- const nextDisable = isStart ? makeSelectRange(compareMinute + 1, 59) : makeSelectRange(0, compareMinute - 1);
- return union_default(defaultDisable, nextDisable);
- };
- const disabledSeconds_ = (hour, minute, role, compare) => {
- const defaultDisable = disabledSeconds ? disabledSeconds(hour, minute, role) : [];
- const isStart = role === "start";
- const compareDate = compare || (isStart ? endTime.value : startTime.value);
- const compareHour = compareDate.hour();
- const compareMinute = compareDate.minute();
- if (hour !== compareHour || minute !== compareMinute) {
- return defaultDisable;
- }
- const compareSecond = compareDate.second();
- const nextDisable = isStart ? makeSelectRange(compareSecond + 1, 59) : makeSelectRange(0, compareSecond - 1);
- return union_default(defaultDisable, nextDisable);
- };
- const getRangeAvailableTime = ([start, end]) => {
- return [
- getAvailableTime(start, "start", true, end),
- getAvailableTime(end, "end", false, start)
- ];
- };
- const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours_, disabledMinutes_, disabledSeconds_);
- const {
- timePickerOptions,
- getAvailableTime,
- onSetOption
- } = useTimePanel({
- getAvailableHours,
- getAvailableMinutes,
- getAvailableSeconds
- });
- const parseUserInput = (days) => {
- if (!days)
- return null;
- if (isArray(days)) {
- return days.map((d2) => (0, import_dayjs5.default)(d2, props2.format).locale(lang.value));
- }
- return (0, import_dayjs5.default)(days, props2.format).locale(lang.value);
- };
- const formatToString = (days) => {
- if (!days)
- return null;
- if (isArray(days)) {
- return days.map((d2) => d2.format(props2.format));
- }
- return days.format(props2.format);
- };
- const getDefaultValue2 = () => {
- if (isArray(defaultValue)) {
- return defaultValue.map((d2) => (0, import_dayjs5.default)(d2).locale(lang.value));
- }
- const defaultDay = (0, import_dayjs5.default)(defaultValue).locale(lang.value);
- return [defaultDay, defaultDay.add(60, "m")];
- };
- emit("set-picker-option", ["formatToString", formatToString]);
- emit("set-picker-option", ["parseUserInput", parseUserInput]);
- emit("set-picker-option", ["isValidValue", isValidValue3]);
- emit("set-picker-option", ["handleKeydownInput", handleKeydown]);
- emit("set-picker-option", ["getDefaultValue", getDefaultValue2]);
- emit("set-picker-option", ["getRangeAvailableTime", getRangeAvailableTime]);
- return (_ctx, _cache) => {
- return _ctx.actualVisible ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(nsTime).b("range-picker"), unref(nsPicker).b("panel")])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsTime).be("range-picker", "content"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsTime).be("range-picker", "cell"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsTime).be("range-picker", "header"))
- }, toDisplayString(unref(t)("el.datepicker.startTime")), 3),
- createBaseVNode("div", {
- class: normalizeClass(unref(startContainerKls))
- }, [
- createVNode(TimeSpinner, {
- ref: "minSpinner",
- role: "start",
- "show-seconds": unref(showSeconds),
- "am-pm-mode": unref(amPmMode),
- "arrow-control": unref(arrowControl),
- "spinner-date": unref(startTime),
- "disabled-hours": disabledHours_,
- "disabled-minutes": disabledMinutes_,
- "disabled-seconds": disabledSeconds_,
- onChange: handleMinChange,
- onSetOption: unref(onSetOption),
- onSelectRange: setMinSelectionRange
- }, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
- ], 2)
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(nsTime).be("range-picker", "cell"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsTime).be("range-picker", "header"))
- }, toDisplayString(unref(t)("el.datepicker.endTime")), 3),
- createBaseVNode("div", {
- class: normalizeClass(unref(endContainerKls))
- }, [
- createVNode(TimeSpinner, {
- ref: "maxSpinner",
- role: "end",
- "show-seconds": unref(showSeconds),
- "am-pm-mode": unref(amPmMode),
- "arrow-control": unref(arrowControl),
- "spinner-date": unref(endTime),
- "disabled-hours": disabledHours_,
- "disabled-minutes": disabledMinutes_,
- "disabled-seconds": disabledSeconds_,
- onChange: handleMaxChange,
- onSetOption: unref(onSetOption),
- onSelectRange: setMaxSelectionRange
- }, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
- ], 2)
- ], 2)
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(nsTime).be("panel", "footer"))
- }, [
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(nsTime).be("panel", "btn"), "cancel"]),
- onClick: ($event) => handleCancel()
- }, toDisplayString(unref(t)("el.datepicker.cancel")), 11, ["onClick"]),
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(nsTime).be("panel", "btn"), "confirm"]),
- disabled: unref(btnConfirmDisabled),
- onClick: ($event) => handleConfirm()
- }, toDisplayString(unref(t)("el.datepicker.confirm")), 11, ["disabled", "onClick"])
- ], 2)
- ], 2)) : createCommentVNode("v-if", true);
- };
- }
- });
- var TimeRangePanel = _export_sfc(_sfc_main353, [["__file", "panel-time-range.vue"]]);
- // node_modules/element-plus/es/components/time-picker/src/time-picker.mjs
- import_dayjs6.default.extend(import_customParseFormat.default);
- var TimePicker = defineComponent({
- name: "ElTimePicker",
- install: null,
- props: {
- ...timePickerDefaultProps,
- isRange: Boolean
- },
- emits: [UPDATE_MODEL_EVENT],
- setup(props2, ctx) {
- const commonPicker = ref();
- const [type4, Panel] = props2.isRange ? ["timerange", TimeRangePanel] : ["time", TimePickPanel];
- const modelUpdater = (value) => ctx.emit(UPDATE_MODEL_EVENT, value);
- provide(PICKER_POPPER_OPTIONS_INJECTION_KEY, props2.popperOptions);
- ctx.expose({
- focus: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.focus();
- },
- blur: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.blur();
- },
- handleOpen: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.handleOpen();
- },
- handleClose: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.handleClose();
- }
- });
- return () => {
- var _a2;
- const format2 = (_a2 = props2.format) != null ? _a2 : DEFAULT_FORMATS_TIME;
- return createVNode(CommonPicker, mergeProps(props2, {
- "ref": commonPicker,
- "type": type4,
- "format": format2,
- "onUpdate:modelValue": modelUpdater
- }), {
- default: (props22) => createVNode(Panel, props22, null)
- });
- };
- }
- });
- // node_modules/element-plus/es/components/time-picker/index.mjs
- var ElTimePicker = withInstall(TimePicker);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.mjs
- var import_dayjs17 = __toESM(require_dayjs_min(), 1);
- var import_customParseFormat2 = __toESM(require_customParseFormat(), 1);
- var import_advancedFormat = __toESM(require_advancedFormat(), 1);
- var import_localeData2 = __toESM(require_localeData(), 1);
- var import_weekOfYear = __toESM(require_weekOfYear(), 1);
- var import_weekYear = __toESM(require_weekYear(), 1);
- var import_dayOfYear = __toESM(require_dayOfYear(), 1);
- var import_isSameOrAfter = __toESM(require_isSameOrAfter(), 1);
- var import_isSameOrBefore = __toESM(require_isSameOrBefore(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/date-picker-panel.mjs
- var datePickerPanelProps = buildProps({
- valueFormat: String,
- dateFormat: String,
- timeFormat: String,
- disabled: Boolean,
- modelValue: {
- type: definePropType([Date, Array, String, Number]),
- default: ""
- },
- defaultValue: {
- type: definePropType([Date, Array])
- },
- defaultTime: {
- type: definePropType([Date, Array])
- },
- isRange: Boolean,
- ...disabledTimeListsProps,
- disabledDate: {
- type: Function
- },
- cellClassName: {
- type: Function
- },
- shortcuts: {
- type: Array,
- default: () => []
- },
- arrowControl: Boolean,
- unlinkPanels: Boolean,
- showNow: {
- type: Boolean,
- default: true
- },
- showConfirm: Boolean,
- showFooter: Boolean,
- showWeekNumber: Boolean,
- type: {
- type: definePropType(String),
- default: "date"
- },
- clearable: {
- type: Boolean,
- default: true
- },
- border: {
- type: Boolean,
- default: true
- }
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/constants.mjs
- var ROOT_PICKER_INJECTION_KEY = Symbol("rootPickerContextKey");
- var ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY = "ElIsDefaultFormat";
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs
- var import_dayjs11 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/shared.mjs
- var selectionModes = [
- "date",
- "dates",
- "year",
- "years",
- "month",
- "months",
- "week",
- "range"
- ];
- var datePickerSharedProps = buildProps({
- cellClassName: {
- type: definePropType(Function)
- },
- disabledDate: {
- type: definePropType(Function)
- },
- date: {
- type: definePropType(Object),
- required: true
- },
- minDate: {
- type: definePropType(Object)
- },
- maxDate: {
- type: definePropType(Object)
- },
- parsedValue: {
- type: definePropType([Object, Array])
- },
- rangeState: {
- type: definePropType(Object),
- default: () => ({
- endDate: null,
- selecting: false
- })
- },
- disabled: Boolean
- });
- var panelSharedProps = buildProps({
- type: {
- type: definePropType(String),
- required: true,
- values: datePickTypes
- },
- dateFormat: String,
- timeFormat: String,
- showNow: {
- type: Boolean,
- default: true
- },
- showConfirm: Boolean,
- showFooter: {
- type: Boolean,
- default: true
- },
- showWeekNumber: Boolean,
- border: Boolean,
- disabled: Boolean
- });
- var panelRangeSharedProps = buildProps({
- unlinkPanels: Boolean,
- visible: {
- type: Boolean,
- default: true
- },
- showConfirm: Boolean,
- showFooter: {
- type: Boolean,
- default: true
- },
- border: Boolean,
- disabled: Boolean,
- parsedValue: {
- type: definePropType(Array)
- }
- });
- var selectionModeWithDefault = (mode) => {
- return {
- type: String,
- values: selectionModes,
- default: mode
- };
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-pick.mjs
- var panelDatePickProps = buildProps({
- ...panelSharedProps,
- parsedValue: {
- type: definePropType([Object, Array])
- },
- visible: {
- type: Boolean,
- default: true
- },
- format: {
- type: String,
- default: ""
- }
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/utils.mjs
- var import_dayjs7 = __toESM(require_dayjs_min(), 1);
- var isValidRange2 = (range4) => {
- if (!isArray(range4))
- return false;
- const [left, right] = range4;
- 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);
- };
- var getDefaultValue = (defaultValue, { lang, step: step2 = 1, unit: unit4, unlinkPanels }) => {
- let start;
- if (isArray(defaultValue)) {
- let [left, right] = defaultValue.map((d2) => (0, import_dayjs7.default)(d2).locale(lang));
- if (!unlinkPanels) {
- right = left.add(step2, unit4);
- }
- return [left, right];
- } else if (defaultValue) {
- start = (0, import_dayjs7.default)(defaultValue);
- } else {
- start = (0, import_dayjs7.default)();
- }
- start = start.locale(lang);
- return [start, start.add(step2, unit4)];
- };
- var buildPickerTable = (dimension, rows, {
- columnIndexOffset,
- startDate,
- nextEndDate,
- now: now2,
- unit: unit4,
- relativeDateGetter,
- setCellMetadata,
- setRowMetadata
- }) => {
- for (let rowIndex = 0; rowIndex < dimension.row; rowIndex++) {
- const row = rows[rowIndex];
- for (let columnIndex = 0; columnIndex < dimension.column; columnIndex++) {
- let cell = row[columnIndex + columnIndexOffset];
- if (!cell) {
- cell = {
- row: rowIndex,
- column: columnIndex,
- type: "normal",
- inRange: false,
- start: false,
- end: false
- };
- }
- const index = rowIndex * dimension.column + columnIndex;
- const nextStartDate = relativeDateGetter(index);
- cell.dayjs = nextStartDate;
- cell.date = nextStartDate.toDate();
- cell.timestamp = nextStartDate.valueOf();
- cell.type = "normal";
- cell.inRange = !!(startDate && nextStartDate.isSameOrAfter(startDate, unit4) && nextEndDate && nextStartDate.isSameOrBefore(nextEndDate, unit4)) || !!(startDate && nextStartDate.isSameOrBefore(startDate, unit4) && nextEndDate && nextStartDate.isSameOrAfter(nextEndDate, unit4));
- if (startDate == null ? void 0 : startDate.isSameOrAfter(nextEndDate)) {
- cell.start = !!nextEndDate && nextStartDate.isSame(nextEndDate, unit4);
- cell.end = startDate && nextStartDate.isSame(startDate, unit4);
- } else {
- cell.start = !!startDate && nextStartDate.isSame(startDate, unit4);
- cell.end = !!nextEndDate && nextStartDate.isSame(nextEndDate, unit4);
- }
- const isToday = nextStartDate.isSame(now2, unit4);
- if (isToday) {
- cell.type = "today";
- }
- setCellMetadata == null ? void 0 : setCellMetadata(cell, { rowIndex, columnIndex });
- row[columnIndex + columnIndexOffset] = cell;
- }
- setRowMetadata == null ? void 0 : setRowMetadata(row);
- }
- };
- var datesInMonth = (date4, year, month, lang) => {
- const firstDay = (0, import_dayjs7.default)().locale(lang).startOf("month").month(month).year(year).hour(date4.hour()).minute(date4.minute()).second(date4.second());
- const numOfDays = firstDay.daysInMonth();
- return rangeArr(numOfDays).map((n) => firstDay.add(n, "day").toDate());
- };
- var getValidDateOfMonth = (date4, year, month, lang, disabledDate) => {
- const _value = (0, import_dayjs7.default)().year(year).month(month).startOf("month").hour(date4.hour()).minute(date4.minute()).second(date4.second());
- const _date = datesInMonth(date4, year, month, lang).find((date22) => {
- return !(disabledDate == null ? void 0 : disabledDate(date22));
- });
- if (_date) {
- return (0, import_dayjs7.default)(_date).locale(lang);
- }
- return _value.locale(lang);
- };
- var getValidDateOfYear = (value, lang, disabledDate) => {
- const year = value.year();
- if (!(disabledDate == null ? void 0 : disabledDate(value.toDate()))) {
- return value.locale(lang);
- }
- const month = value.month();
- if (!datesInMonth(value, year, month, lang).every(disabledDate)) {
- return getValidDateOfMonth(value, year, month, lang, disabledDate);
- }
- for (let i = 0; i < 12; i++) {
- if (!datesInMonth(value, year, i, lang).every(disabledDate)) {
- return getValidDateOfMonth(value, year, i, lang, disabledDate);
- }
- }
- return value;
- };
- var correctlyParseUserInput = (value, format2, lang, defaultFormat) => {
- if (isArray(value)) {
- return value.map((v2) => correctlyParseUserInput(v2, format2, lang, defaultFormat));
- }
- if (isString(value)) {
- const dayjsValue = (defaultFormat == null ? void 0 : defaultFormat.value) ? (0, import_dayjs7.default)(value) : (0, import_dayjs7.default)(value, format2);
- if (!dayjsValue.isValid()) {
- return dayjsValue;
- }
- }
- return (0, import_dayjs7.default)(value, format2).locale(lang);
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-date-table.mjs
- var basicDateTableProps = buildProps({
- ...datePickerSharedProps,
- showWeekNumber: Boolean,
- selectionMode: selectionModeWithDefault("date")
- });
- var basicDateTableEmits = ["changerange", "pick", "select"];
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-basic-date-table.mjs
- var import_dayjs8 = __toESM(require_dayjs_min(), 1);
- var isNormalDay = (type4 = "") => {
- return ["normal", "today"].includes(type4);
- };
- var useBasicDateTable = (props2, emit) => {
- const { lang } = useLocale();
- const tbodyRef = ref();
- const currentCellRef = ref();
- const lastRow = ref();
- const lastColumn = ref();
- const tableRows = ref([[], [], [], [], [], []]);
- let focusWithClick = false;
- const firstDayOfWeek = props2.date.$locale().weekStart || 7;
- const WEEKS_CONSTANT = props2.date.locale("en").localeData().weekdaysShort().map((_2) => _2.toLowerCase());
- const offsetDay = computed(() => {
- return firstDayOfWeek > 3 ? 7 - firstDayOfWeek : -firstDayOfWeek;
- });
- const startDate = computed(() => {
- const startDayOfMonth = props2.date.startOf("month");
- return startDayOfMonth.subtract(startDayOfMonth.day() || 7, "day");
- });
- const WEEKS = computed(() => {
- return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
- });
- const hasCurrent = computed(() => {
- return flatten_default(unref(rows)).some((row) => {
- return row.isCurrent;
- });
- });
- const days = computed(() => {
- const startOfMonth = props2.date.startOf("month");
- const startOfMonthDay = startOfMonth.day() || 7;
- const dateCountOfMonth = startOfMonth.daysInMonth();
- const dateCountOfLastMonth = startOfMonth.subtract(1, "month").daysInMonth();
- return {
- startOfMonthDay,
- dateCountOfMonth,
- dateCountOfLastMonth
- };
- });
- const selectedDate = computed(() => {
- return props2.selectionMode === "dates" ? castArray2(props2.parsedValue) : [];
- });
- const setDateText = (cell, { count, rowIndex, columnIndex }) => {
- const { startOfMonthDay, dateCountOfMonth, dateCountOfLastMonth } = unref(days);
- const offset3 = unref(offsetDay);
- if (rowIndex >= 0 && rowIndex <= 1) {
- const numberOfDaysFromPreviousMonth = startOfMonthDay + offset3 < 0 ? 7 + startOfMonthDay + offset3 : startOfMonthDay + offset3;
- if (columnIndex + rowIndex * 7 >= numberOfDaysFromPreviousMonth) {
- cell.text = count;
- return true;
- } else {
- cell.text = dateCountOfLastMonth - (numberOfDaysFromPreviousMonth - columnIndex % 7) + 1 + rowIndex * 7;
- cell.type = "prev-month";
- }
- } else {
- if (count <= dateCountOfMonth) {
- cell.text = count;
- } else {
- cell.text = count - dateCountOfMonth;
- cell.type = "next-month";
- }
- return true;
- }
- return false;
- };
- const setCellMetadata = (cell, { columnIndex, rowIndex }, count) => {
- const { disabledDate, cellClassName } = props2;
- const _selectedDate = unref(selectedDate);
- const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex });
- const cellDate = cell.dayjs.toDate();
- cell.selected = _selectedDate.find((d2) => d2.isSame(cell.dayjs, "day"));
- cell.isSelected = !!cell.selected;
- cell.isCurrent = isCurrent(cell);
- cell.disabled = disabledDate == null ? void 0 : disabledDate(cellDate);
- cell.customClass = cellClassName == null ? void 0 : cellClassName(cellDate);
- return shouldIncrement;
- };
- const setRowMetadata = (row) => {
- if (props2.selectionMode === "week") {
- const [start, end] = props2.showWeekNumber ? [1, 7] : [0, 6];
- const isActive = isWeekActive(row[start + 1]);
- row[start].inRange = isActive;
- row[start].start = isActive;
- row[end].inRange = isActive;
- row[end].end = isActive;
- }
- };
- const rows = computed(() => {
- const { minDate, maxDate, rangeState, showWeekNumber } = props2;
- const offset3 = unref(offsetDay);
- const rows_ = unref(tableRows);
- const dateUnit = "day";
- let count = 1;
- buildPickerTable({ row: 6, column: 7 }, rows_, {
- startDate: minDate,
- columnIndexOffset: showWeekNumber ? 1 : 0,
- nextEndDate: rangeState.endDate || maxDate || rangeState.selecting && minDate || null,
- now: (0, import_dayjs8.default)().locale(unref(lang)).startOf(dateUnit),
- unit: dateUnit,
- relativeDateGetter: (idx) => unref(startDate).add(idx - offset3, dateUnit),
- setCellMetadata: (...args) => {
- if (setCellMetadata(...args, count)) {
- count += 1;
- }
- },
- setRowMetadata
- });
- if (showWeekNumber) {
- for (let rowIndex = 0; rowIndex < 6; rowIndex++) {
- if (rows_[rowIndex][1].dayjs) {
- rows_[rowIndex][0] = {
- type: "week",
- text: rows_[rowIndex][1].dayjs.week()
- };
- }
- }
- }
- return rows_;
- });
- watch(() => props2.date, async () => {
- var _a2;
- if ((_a2 = unref(tbodyRef)) == null ? void 0 : _a2.contains(document.activeElement)) {
- await nextTick();
- await focus();
- }
- });
- const focus = async () => {
- var _a2;
- return (_a2 = unref(currentCellRef)) == null ? void 0 : _a2.focus();
- };
- const isCurrent = (cell) => {
- return props2.selectionMode === "date" && isNormalDay(cell.type) && cellMatchesDate(cell, props2.parsedValue);
- };
- const cellMatchesDate = (cell, date4) => {
- if (!date4)
- return false;
- return (0, import_dayjs8.default)(date4).locale(unref(lang)).isSame(props2.date.date(Number(cell.text)), "day");
- };
- const getDateOfCell = (row, column2) => {
- const offsetFromStart = row * 7 + (column2 - (props2.showWeekNumber ? 1 : 0)) - unref(offsetDay);
- return unref(startDate).add(offsetFromStart, "day");
- };
- const handleMouseMove = (event) => {
- var _a2;
- if (!props2.rangeState.selecting)
- return;
- let target2 = event.target;
- if (target2.tagName === "SPAN") {
- target2 = (_a2 = target2.parentNode) == null ? void 0 : _a2.parentNode;
- }
- if (target2.tagName === "DIV") {
- target2 = target2.parentNode;
- }
- if (target2.tagName !== "TD")
- return;
- const row = target2.parentNode.rowIndex - 1;
- const column2 = target2.cellIndex;
- if (unref(rows)[row][column2].disabled)
- return;
- if (row !== unref(lastRow) || column2 !== unref(lastColumn)) {
- lastRow.value = row;
- lastColumn.value = column2;
- emit("changerange", {
- selecting: true,
- endDate: getDateOfCell(row, column2)
- });
- }
- };
- const handleFocus = (event) => {
- if (focusWithClick || unref(hasCurrent) || props2.selectionMode !== "date")
- return;
- handlePickDate(event, true);
- };
- const handleMouseDown = (event) => {
- const target2 = event.target.closest("td");
- if (!target2)
- return;
- focusWithClick = true;
- };
- const handleMouseUp = (event) => {
- const target2 = event.target.closest("td");
- if (!target2)
- return;
- focusWithClick = false;
- };
- const handleRangePick = (newDate) => {
- if (!props2.rangeState.selecting || !props2.minDate) {
- emit("pick", { minDate: newDate, maxDate: null });
- emit("select", true);
- } else {
- if (newDate >= props2.minDate) {
- emit("pick", { minDate: props2.minDate, maxDate: newDate });
- } else {
- emit("pick", { minDate: newDate, maxDate: props2.minDate });
- }
- emit("select", false);
- }
- };
- const handleWeekPick = (newDate) => {
- const weekNumber = newDate.week();
- const value = `${newDate.year()}w${weekNumber}`;
- emit("pick", {
- year: newDate.year(),
- week: weekNumber,
- value,
- date: newDate.startOf("week")
- });
- };
- const handleDatesPick = (newDate, selected) => {
- const newValue = selected ? castArray2(props2.parsedValue).filter((d2) => (d2 == null ? void 0 : d2.valueOf()) !== newDate.valueOf()) : castArray2(props2.parsedValue).concat([newDate]);
- emit("pick", newValue);
- };
- const handlePickDate = (event, isKeyboardMovement = false) => {
- if (props2.disabled)
- return;
- const target2 = event.target.closest("td");
- if (!target2)
- return;
- const row = target2.parentNode.rowIndex - 1;
- const column2 = target2.cellIndex;
- const cell = unref(rows)[row][column2];
- if (cell.disabled || cell.type === "week")
- return;
- const newDate = getDateOfCell(row, column2);
- switch (props2.selectionMode) {
- case "range": {
- handleRangePick(newDate);
- break;
- }
- case "date": {
- emit("pick", newDate, isKeyboardMovement);
- break;
- }
- case "week": {
- handleWeekPick(newDate);
- break;
- }
- case "dates": {
- handleDatesPick(newDate, !!cell.selected);
- break;
- }
- }
- };
- const isWeekActive = (cell) => {
- if (props2.selectionMode !== "week")
- return false;
- let newDate = props2.date.startOf("day");
- if (cell.type === "prev-month") {
- newDate = newDate.subtract(1, "month");
- }
- if (cell.type === "next-month") {
- newDate = newDate.add(1, "month");
- }
- newDate = newDate.date(Number.parseInt(cell.text, 10));
- if (props2.parsedValue && !isArray(props2.parsedValue)) {
- const dayOffset = (props2.parsedValue.day() - firstDayOfWeek + 7) % 7 - 1;
- const weekDate = props2.parsedValue.subtract(dayOffset, "day");
- return weekDate.isSame(newDate, "day");
- }
- return false;
- };
- return {
- WEEKS,
- rows,
- tbodyRef,
- currentCellRef,
- focus,
- isCurrent,
- isWeekActive,
- handlePickDate,
- handleMouseUp,
- handleMouseDown,
- handleMouseMove,
- handleFocus
- };
- };
- var useBasicDateTableDOM = (props2, {
- isCurrent,
- isWeekActive
- }) => {
- const ns = useNamespace("date-table");
- const { t } = useLocale();
- const tableKls = computed(() => [
- ns.b(),
- { "is-week-mode": props2.selectionMode === "week" && !props2.disabled }
- ]);
- const tableLabel = computed(() => t("el.datepicker.dateTablePrompt"));
- const getCellClasses = (cell) => {
- const classes = [];
- if (isNormalDay(cell.type) && !cell.disabled) {
- classes.push("available");
- if (cell.type === "today") {
- classes.push("today");
- }
- } else {
- classes.push(cell.type);
- }
- if (isCurrent(cell)) {
- classes.push("current");
- }
- if (cell.inRange && (isNormalDay(cell.type) || props2.selectionMode === "week")) {
- classes.push("in-range");
- if (cell.start) {
- classes.push("start-date");
- }
- if (cell.end) {
- classes.push("end-date");
- }
- }
- if (cell.disabled || props2.disabled) {
- classes.push("disabled");
- }
- if (cell.selected) {
- classes.push("selected");
- }
- if (cell.customClass) {
- classes.push(cell.customClass);
- }
- return classes.join(" ");
- };
- const getRowKls = (cell) => [
- ns.e("row"),
- { current: isWeekActive(cell) }
- ];
- return {
- tableKls,
- tableLabel,
- weekHeaderClass: ns.e("week-header"),
- getCellClasses,
- getRowKls,
- t
- };
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-cell.mjs
- var basicCellProps = buildProps({
- cell: {
- type: definePropType(Object)
- }
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-cell-render.mjs
- var ElDatePickerCell = defineComponent({
- name: "ElDatePickerCell",
- props: basicCellProps,
- setup(props2) {
- const ns = useNamespace("date-table-cell");
- const {
- slots
- } = inject(ROOT_PICKER_INJECTION_KEY);
- return () => {
- const {
- cell
- } = props2;
- return renderSlot(slots, "default", {
- ...cell
- }, () => {
- var _a2;
- return [createVNode("div", {
- "class": ns.b()
- }, [createVNode("span", {
- "class": ns.e("text")
- }, [(_a2 = cell == null ? void 0 : cell.renderText) != null ? _a2 : cell == null ? void 0 : cell.text])])];
- });
- };
- }
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs
- var _sfc_main354 = defineComponent({
- __name: "basic-date-table",
- props: basicDateTableProps,
- emits: basicDateTableEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const {
- WEEKS,
- rows,
- tbodyRef,
- currentCellRef,
- focus,
- isCurrent,
- isWeekActive,
- handlePickDate,
- handleMouseUp,
- handleMouseDown,
- handleMouseMove,
- handleFocus
- } = useBasicDateTable(props2, emit);
- const { tableLabel, tableKls, getCellClasses, getRowKls, weekHeaderClass, t } = useBasicDateTableDOM(props2, {
- isCurrent,
- isWeekActive
- });
- let isUnmounting = false;
- onBeforeUnmount(() => {
- isUnmounting = true;
- });
- expose({
- focus
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("table", {
- "aria-label": unref(tableLabel),
- class: normalizeClass(unref(tableKls)),
- cellspacing: "0",
- cellpadding: "0",
- role: "grid",
- onClick: unref(handlePickDate),
- onMousemove: unref(handleMouseMove),
- onMousedown: unref(handleMouseDown),
- onMouseup: unref(handleMouseUp)
- }, [
- createBaseVNode("tbody", {
- ref_key: "tbodyRef",
- ref: tbodyRef
- }, [
- createBaseVNode("tr", null, [
- _ctx.showWeekNumber ? (openBlock(), createElementBlock("th", {
- key: 0,
- scope: "col",
- class: normalizeClass(unref(weekHeaderClass))
- }, null, 2)) : createCommentVNode("v-if", true),
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(WEEKS), (week, key) => {
- return openBlock(), createElementBlock("th", {
- key,
- "aria-label": unref(t)("el.datepicker.weeksFull." + week),
- scope: "col"
- }, toDisplayString(unref(t)("el.datepicker.weeks." + week)), 9, ["aria-label"]);
- }), 128))
- ]),
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, rowKey2) => {
- return openBlock(), createElementBlock("tr", {
- key: rowKey2,
- class: normalizeClass(unref(getRowKls)(row[1]))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, columnKey) => {
- return openBlock(), createElementBlock("td", {
- key: `${rowKey2}.${columnKey}`,
- ref_for: true,
- ref: (el) => !unref(isUnmounting) && cell.isSelected && (currentCellRef.value = el),
- class: normalizeClass(unref(getCellClasses)(cell)),
- "aria-current": cell.isCurrent ? "date" : void 0,
- "aria-selected": cell.isCurrent,
- tabindex: cell.isSelected ? 0 : -1,
- onFocus: unref(handleFocus)
- }, [
- createVNode(unref(ElDatePickerCell), { cell }, null, 8, ["cell"])
- ], 42, ["aria-current", "aria-selected", "tabindex", "onFocus"]);
- }), 128))
- ], 2);
- }), 128))
- ], 512)
- ], 42, ["aria-label", "onClick", "onMousemove", "onMousedown", "onMouseup"]);
- };
- }
- });
- var DateTable2 = _export_sfc(_sfc_main354, [["__file", "basic-date-table.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.mjs
- var import_dayjs9 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-month-table.mjs
- var basicMonthTableProps = buildProps({
- ...datePickerSharedProps,
- selectionMode: selectionModeWithDefault("month")
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.mjs
- var _sfc_main355 = defineComponent({
- __name: "basic-month-table",
- props: basicMonthTableProps,
- emits: ["changerange", "pick", "select"],
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("month-table");
- const { t, lang } = useLocale();
- const tbodyRef = ref();
- const currentCellRef = ref();
- const months = ref(props2.date.locale("en").localeData().monthsShort().map((_2) => _2.toLowerCase()));
- const tableRows = ref([[], [], []]);
- const lastRow = ref();
- const lastColumn = ref();
- const rows = computed(() => {
- var _a2, _b, _c;
- const rows2 = tableRows.value;
- const now2 = (0, import_dayjs9.default)().locale(lang.value).startOf("month");
- for (let i = 0; i < 3; i++) {
- const row = rows2[i];
- for (let j = 0; j < 4; j++) {
- const cell = row[j] || (row[j] = {
- row: i,
- column: j,
- type: "normal",
- inRange: false,
- start: false,
- end: false,
- text: -1,
- disabled: false,
- isSelected: false,
- customClass: void 0,
- date: void 0,
- dayjs: void 0,
- isCurrent: void 0,
- selected: void 0,
- renderText: void 0,
- timestamp: void 0
- });
- cell.type = "normal";
- const index = i * 4 + j;
- const calTime = props2.date.startOf("year").month(index);
- const calEndDate = props2.rangeState.endDate || props2.maxDate || props2.rangeState.selecting && props2.minDate || null;
- 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"));
- if ((_a2 = props2.minDate) == null ? void 0 : _a2.isSameOrAfter(calEndDate)) {
- cell.start = !!(calEndDate && calTime.isSame(calEndDate, "month"));
- cell.end = props2.minDate && calTime.isSame(props2.minDate, "month");
- } else {
- cell.start = !!(props2.minDate && calTime.isSame(props2.minDate, "month"));
- cell.end = !!(calEndDate && calTime.isSame(calEndDate, "month"));
- }
- const isToday = now2.isSame(calTime);
- if (isToday) {
- cell.type = "today";
- }
- const cellDate = calTime.toDate();
- cell.text = index;
- cell.disabled = ((_b = props2.disabledDate) == null ? void 0 : _b.call(props2, cellDate)) || false;
- cell.date = cellDate;
- cell.customClass = (_c = props2.cellClassName) == null ? void 0 : _c.call(props2, cellDate);
- cell.dayjs = calTime;
- cell.timestamp = calTime.valueOf();
- cell.isSelected = isSelectedCell(cell);
- }
- }
- return rows2;
- });
- const focus = () => {
- var _a2;
- (_a2 = currentCellRef.value) == null ? void 0 : _a2.focus();
- };
- const getCellStyle = (cell) => {
- const style = {};
- const year = props2.date.year();
- const today = /* @__PURE__ */ new Date();
- const month = cell.text;
- style.disabled = props2.disabled || (props2.disabledDate ? datesInMonth(props2.date, year, month, lang.value).every(props2.disabledDate) : false);
- style.current = castArray2(props2.parsedValue).findIndex((date4) => import_dayjs9.default.isDayjs(date4) && date4.year() === year && date4.month() === month) >= 0;
- style.today = today.getFullYear() === year && today.getMonth() === month;
- if (cell.customClass) {
- style[cell.customClass] = true;
- }
- if (cell.inRange) {
- style["in-range"] = true;
- if (cell.start) {
- style["start-date"] = true;
- }
- if (cell.end) {
- style["end-date"] = true;
- }
- }
- return style;
- };
- const isSelectedCell = (cell) => {
- const year = props2.date.year();
- const month = cell.text;
- return castArray2(props2.date).findIndex((date4) => date4.year() === year && date4.month() === month) >= 0;
- };
- const handleMouseMove = (event) => {
- var _a2;
- if (!props2.rangeState.selecting)
- return;
- let target2 = event.target;
- if (target2.tagName === "SPAN") {
- target2 = (_a2 = target2.parentNode) == null ? void 0 : _a2.parentNode;
- }
- if (target2.tagName === "DIV") {
- target2 = target2.parentNode;
- }
- if (target2.tagName !== "TD")
- return;
- const row = target2.parentNode.rowIndex;
- const column2 = target2.cellIndex;
- if (rows.value[row][column2].disabled)
- return;
- if (row !== lastRow.value || column2 !== lastColumn.value) {
- lastRow.value = row;
- lastColumn.value = column2;
- emit("changerange", {
- selecting: true,
- endDate: props2.date.startOf("year").month(row * 4 + column2)
- });
- }
- };
- const handleMonthTableClick = (event) => {
- var _a2;
- if (props2.disabled)
- return;
- const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("td");
- if ((target2 == null ? void 0 : target2.tagName) !== "TD")
- return;
- if (hasClass(target2, "disabled"))
- return;
- const column2 = target2.cellIndex;
- const row = target2.parentNode.rowIndex;
- const month = row * 4 + column2;
- const newDate = props2.date.startOf("year").month(month);
- if (props2.selectionMode === "months") {
- if (event.type === "keydown") {
- emit("pick", castArray2(props2.parsedValue), false);
- return;
- }
- const newMonth = getValidDateOfMonth(props2.date, props2.date.year(), month, lang.value, props2.disabledDate);
- 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)]);
- emit("pick", newValue);
- } else if (props2.selectionMode === "range") {
- if (!props2.rangeState.selecting) {
- emit("pick", { minDate: newDate, maxDate: null });
- emit("select", true);
- } else {
- if (props2.minDate && newDate >= props2.minDate) {
- emit("pick", { minDate: props2.minDate, maxDate: newDate });
- } else {
- emit("pick", { minDate: newDate, maxDate: props2.minDate });
- }
- emit("select", false);
- }
- } else {
- emit("pick", month);
- }
- };
- watch(() => props2.date, async () => {
- var _a2, _b;
- if ((_a2 = tbodyRef.value) == null ? void 0 : _a2.contains(document.activeElement)) {
- await nextTick();
- (_b = currentCellRef.value) == null ? void 0 : _b.focus();
- }
- });
- expose({
- focus
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("table", {
- role: "grid",
- "aria-label": unref(t)("el.datepicker.monthTablePrompt"),
- class: normalizeClass(unref(ns).b()),
- onClick: handleMonthTableClick,
- onMousemove: handleMouseMove
- }, [
- createBaseVNode("tbody", {
- ref_key: "tbodyRef",
- ref: tbodyRef
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, key) => {
- return openBlock(), createElementBlock("tr", { key }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key_) => {
- return openBlock(), createElementBlock("td", {
- key: key_,
- ref_for: true,
- ref: (el) => cell.isSelected && (currentCellRef.value = el),
- class: normalizeClass(getCellStyle(cell)),
- "aria-selected": !!cell.isSelected,
- "aria-label": unref(t)(`el.datepicker.month${+cell.text + 1}`),
- tabindex: cell.isSelected ? 0 : -1,
- onKeydown: [
- withKeys(withModifiers(handleMonthTableClick, ["prevent", "stop"]), ["space"]),
- withKeys(withModifiers(handleMonthTableClick, ["prevent", "stop"]), ["enter"])
- ]
- }, [
- createVNode(unref(ElDatePickerCell), {
- cell: {
- ...cell,
- renderText: unref(t)("el.datepicker.months." + months.value[cell.text])
- }
- }, null, 8, ["cell"])
- ], 42, ["aria-selected", "aria-label", "tabindex", "onKeydown"]);
- }), 128))
- ]);
- }), 128))
- ], 512)
- ], 42, ["aria-label"]);
- };
- }
- });
- var MonthTable = _export_sfc(_sfc_main355, [["__file", "basic-month-table.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.mjs
- var import_dayjs10 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/basic-year-table.mjs
- var basicYearTableProps = buildProps({
- ...datePickerSharedProps,
- selectionMode: selectionModeWithDefault("year")
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.mjs
- var _sfc_main356 = defineComponent({
- __name: "basic-year-table",
- props: basicYearTableProps,
- emits: ["changerange", "pick", "select"],
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const datesInYear = (year, lang2) => {
- const firstDay = (0, import_dayjs10.default)(String(year)).locale(lang2).startOf("year");
- const lastDay = firstDay.endOf("year");
- const numOfDays = lastDay.dayOfYear();
- return rangeArr(numOfDays).map((n) => firstDay.add(n, "day").toDate());
- };
- const ns = useNamespace("year-table");
- const { t, lang } = useLocale();
- const tbodyRef = ref();
- const currentCellRef = ref();
- const startYear = computed(() => {
- return Math.floor(props2.date.year() / 10) * 10;
- });
- const tableRows = ref([[], [], []]);
- const lastRow = ref();
- const lastColumn = ref();
- const rows = computed(() => {
- var _a2, _b, _c;
- const rows2 = tableRows.value;
- const now2 = (0, import_dayjs10.default)().locale(lang.value).startOf("year");
- for (let i = 0; i < 3; i++) {
- const row = rows2[i];
- for (let j = 0; j < 4; j++) {
- if (i * 4 + j >= 10) {
- break;
- }
- let cell = row[j];
- if (!cell) {
- cell = {
- row: i,
- column: j,
- type: "normal",
- inRange: false,
- start: false,
- end: false,
- text: -1,
- disabled: false,
- isSelected: false,
- customClass: void 0,
- date: void 0,
- dayjs: void 0,
- isCurrent: void 0,
- selected: void 0,
- renderText: void 0,
- timestamp: void 0
- };
- }
- cell.type = "normal";
- const index = i * 4 + j + startYear.value;
- const calTime = (0, import_dayjs10.default)().year(index);
- const calEndDate = props2.rangeState.endDate || props2.maxDate || props2.rangeState.selecting && props2.minDate || null;
- 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"));
- if ((_a2 = props2.minDate) == null ? void 0 : _a2.isSameOrAfter(calEndDate)) {
- cell.start = !!(calEndDate && calTime.isSame(calEndDate, "year"));
- cell.end = !!(props2.minDate && calTime.isSame(props2.minDate, "year"));
- } else {
- cell.start = !!(props2.minDate && calTime.isSame(props2.minDate, "year"));
- cell.end = !!(calEndDate && calTime.isSame(calEndDate, "year"));
- }
- const isToday = now2.isSame(calTime);
- if (isToday) {
- cell.type = "today";
- }
- cell.text = index;
- const cellDate = calTime.toDate();
- cell.disabled = ((_b = props2.disabledDate) == null ? void 0 : _b.call(props2, cellDate)) || false;
- cell.date = cellDate;
- cell.customClass = (_c = props2.cellClassName) == null ? void 0 : _c.call(props2, cellDate);
- cell.dayjs = calTime;
- cell.timestamp = calTime.valueOf();
- cell.isSelected = isSelectedCell(cell);
- row[j] = cell;
- }
- }
- return rows2;
- });
- const focus = () => {
- var _a2;
- (_a2 = currentCellRef.value) == null ? void 0 : _a2.focus();
- };
- const getCellKls = (cell) => {
- const kls = {};
- const today = (0, import_dayjs10.default)().locale(lang.value);
- const year = cell.text;
- kls.disabled = props2.disabled || (props2.disabledDate ? datesInYear(year, lang.value).every(props2.disabledDate) : false);
- kls.today = today.year() === year;
- kls.current = castArray2(props2.parsedValue).findIndex((d2) => d2.year() === year) >= 0;
- if (cell.customClass) {
- kls[cell.customClass] = true;
- }
- if (cell.inRange) {
- kls["in-range"] = true;
- if (cell.start) {
- kls["start-date"] = true;
- }
- if (cell.end) {
- kls["end-date"] = true;
- }
- }
- return kls;
- };
- const isSelectedCell = (cell) => {
- const year = cell.text;
- return castArray2(props2.date).findIndex((date4) => date4.year() === year) >= 0;
- };
- const handleYearTableClick = (event) => {
- var _a2;
- if (props2.disabled)
- return;
- const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("td");
- if (!target2 || !target2.textContent || hasClass(target2, "disabled"))
- return;
- const column2 = target2.cellIndex;
- const row = target2.parentNode.rowIndex;
- const selectedYear = row * 4 + column2 + startYear.value;
- const newDate = (0, import_dayjs10.default)().year(selectedYear);
- if (props2.selectionMode === "range") {
- if (!props2.rangeState.selecting) {
- emit("pick", { minDate: newDate, maxDate: null });
- emit("select", true);
- } else {
- if (props2.minDate && newDate >= props2.minDate) {
- emit("pick", { minDate: props2.minDate, maxDate: newDate });
- } else {
- emit("pick", { minDate: newDate, maxDate: props2.minDate });
- }
- emit("select", false);
- }
- } else if (props2.selectionMode === "years") {
- if (event.type === "keydown") {
- emit("pick", castArray2(props2.parsedValue), false);
- return;
- }
- const vaildYear = getValidDateOfYear(newDate.startOf("year"), lang.value, props2.disabledDate);
- const newValue = hasClass(target2, "current") ? castArray2(props2.parsedValue).filter((d2) => (d2 == null ? void 0 : d2.year()) !== selectedYear) : castArray2(props2.parsedValue).concat([vaildYear]);
- emit("pick", newValue);
- } else {
- emit("pick", selectedYear);
- }
- };
- const handleMouseMove = (event) => {
- var _a2;
- if (!props2.rangeState.selecting)
- return;
- const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("td");
- if (!target2)
- return;
- const row = target2.parentNode.rowIndex;
- const column2 = target2.cellIndex;
- if (rows.value[row][column2].disabled)
- return;
- if (row !== lastRow.value || column2 !== lastColumn.value) {
- lastRow.value = row;
- lastColumn.value = column2;
- emit("changerange", {
- selecting: true,
- endDate: (0, import_dayjs10.default)().year(startYear.value).add(row * 4 + column2, "year")
- });
- }
- };
- watch(() => props2.date, async () => {
- var _a2, _b;
- if ((_a2 = tbodyRef.value) == null ? void 0 : _a2.contains(document.activeElement)) {
- await nextTick();
- (_b = currentCellRef.value) == null ? void 0 : _b.focus();
- }
- });
- expose({
- focus
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("table", {
- role: "grid",
- "aria-label": unref(t)("el.datepicker.yearTablePrompt"),
- class: normalizeClass(unref(ns).b()),
- onClick: handleYearTableClick,
- onMousemove: handleMouseMove
- }, [
- createBaseVNode("tbody", {
- ref_key: "tbodyRef",
- ref: tbodyRef
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, rowKey2) => {
- return openBlock(), createElementBlock("tr", { key: rowKey2 }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, cellKey) => {
- return openBlock(), createElementBlock("td", {
- key: `${rowKey2}_${cellKey}`,
- ref_for: true,
- ref: (el) => cell.isSelected && (currentCellRef.value = el),
- class: normalizeClass(["available", getCellKls(cell)]),
- "aria-selected": cell.isSelected,
- "aria-label": String(cell.text),
- tabindex: cell.isSelected ? 0 : -1,
- onKeydown: [
- withKeys(withModifiers(handleYearTableClick, ["prevent", "stop"]), ["space"]),
- withKeys(withModifiers(handleYearTableClick, ["prevent", "stop"]), ["enter"])
- ]
- }, [
- createVNode(unref(ElDatePickerCell), { cell }, null, 8, ["cell"])
- ], 42, ["aria-selected", "aria-label", "tabindex", "onKeydown"]);
- }), 128))
- ]);
- }), 128))
- ], 512)
- ], 42, ["aria-label"]);
- };
- }
- });
- var YearTable = _export_sfc(_sfc_main356, [["__file", "basic-year-table.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs
- var _sfc_main357 = defineComponent({
- __name: "panel-date-pick",
- props: panelDatePickProps,
- emits: ["pick", "set-picker-option", "panel-change"],
- setup(__props, { emit: contextEmit }) {
- const props2 = __props;
- const timeWithinRange = (_2, __, ___) => true;
- const ppNs = useNamespace("picker-panel");
- const dpNs = useNamespace("date-picker");
- const attrs = useAttrs();
- const slots = useSlots();
- const { t, lang } = useLocale();
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
- const { shortcuts, disabledDate, cellClassName, defaultTime } = pickerBase.props;
- const defaultValue = toRef(pickerBase.props, "defaultValue");
- const currentViewRef = ref();
- const innerDate = ref((0, import_dayjs11.default)().locale(lang.value));
- const isChangeToNow = ref(false);
- let isShortcut = false;
- const defaultTimeD = computed(() => {
- return (0, import_dayjs11.default)(defaultTime).locale(lang.value);
- });
- const month = computed(() => {
- return innerDate.value.month();
- });
- const year = computed(() => {
- return innerDate.value.year();
- });
- const selectableRange = ref([]);
- const userInputDate = ref(null);
- const userInputTime = ref(null);
- const checkDateWithinRange = (date4) => {
- return selectableRange.value.length > 0 ? timeWithinRange(date4, selectableRange.value, props2.format || "HH:mm:ss") : true;
- };
- const formatEmit = (emitDayjs) => {
- if (defaultTime && !visibleTime.value && !isChangeToNow.value && !isShortcut) {
- return defaultTimeD.value.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());
- }
- if (showTime.value)
- return emitDayjs.millisecond(0);
- return emitDayjs.startOf("day");
- };
- const emit = (value, ...args) => {
- if (!value) {
- contextEmit("pick", value, ...args);
- } else if (isArray(value)) {
- const dates = value.map(formatEmit);
- contextEmit("pick", dates, ...args);
- } else {
- contextEmit("pick", formatEmit(value), ...args);
- }
- userInputDate.value = null;
- userInputTime.value = null;
- isChangeToNow.value = false;
- isShortcut = false;
- };
- const handleDatePick = async (value, keepOpen) => {
- if (selectionMode.value === "date") {
- value = value;
- let newDate = props2.parsedValue ? props2.parsedValue.year(value.year()).month(value.month()).date(value.date()) : value;
- if (!checkDateWithinRange(newDate)) {
- newDate = selectableRange.value[0][0].year(value.year()).month(value.month()).date(value.date());
- }
- innerDate.value = newDate;
- emit(newDate, showTime.value || keepOpen);
- } else if (selectionMode.value === "week") {
- emit(value.date);
- } else if (selectionMode.value === "dates") {
- emit(value, true);
- }
- };
- const moveByMonth = (forward) => {
- const action = forward ? "add" : "subtract";
- innerDate.value = innerDate.value[action](1, "month");
- handlePanelChange("month");
- };
- const moveByYear = (forward) => {
- const currentDate = innerDate.value;
- const action = forward ? "add" : "subtract";
- innerDate.value = currentView.value === "year" ? currentDate[action](10, "year") : currentDate[action](1, "year");
- handlePanelChange("year");
- };
- const currentView = ref("date");
- const yearLabel = computed(() => {
- const yearTranslation = t("el.datepicker.year");
- if (currentView.value === "year") {
- const startYear = Math.floor(year.value / 10) * 10;
- if (yearTranslation) {
- return `${startYear} ${yearTranslation} - ${startYear + 9} ${yearTranslation}`;
- }
- return `${startYear} - ${startYear + 9}`;
- }
- return `${year.value} ${yearTranslation}`;
- });
- const handleShortcutClick = (shortcut) => {
- const shortcutValue = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
- if (shortcutValue) {
- isShortcut = true;
- emit((0, import_dayjs11.default)(shortcutValue).locale(lang.value));
- return;
- }
- if (shortcut.onClick) {
- shortcut.onClick({
- attrs,
- slots,
- emit: contextEmit
- });
- }
- };
- const selectionMode = computed(() => {
- const { type: type4 } = props2;
- if (["week", "month", "months", "year", "years", "dates"].includes(type4))
- return type4;
- return "date";
- });
- const isMultipleType = computed(() => {
- return selectionMode.value === "dates" || selectionMode.value === "months" || selectionMode.value === "years";
- });
- const keyboardMode = computed(() => {
- return selectionMode.value === "date" ? currentView.value : selectionMode.value;
- });
- const hasShortcuts = computed(() => !!shortcuts.length);
- const handleMonthPick = async (month2, keepOpen) => {
- if (selectionMode.value === "month") {
- innerDate.value = getValidDateOfMonth(innerDate.value, innerDate.value.year(), month2, lang.value, disabledDate);
- emit(innerDate.value, false);
- } else if (selectionMode.value === "months") {
- emit(month2, keepOpen != null ? keepOpen : true);
- } else {
- innerDate.value = getValidDateOfMonth(innerDate.value, innerDate.value.year(), month2, lang.value, disabledDate);
- currentView.value = "date";
- if (["month", "year", "date", "week"].includes(selectionMode.value)) {
- emit(innerDate.value, true);
- await nextTick();
- handleFocusPicker();
- }
- }
- handlePanelChange("month");
- };
- const handleYearPick = async (year2, keepOpen) => {
- if (selectionMode.value === "year") {
- const data = innerDate.value.startOf("year").year(year2);
- innerDate.value = getValidDateOfYear(data, lang.value, disabledDate);
- emit(innerDate.value, false);
- } else if (selectionMode.value === "years") {
- emit(year2, keepOpen != null ? keepOpen : true);
- } else {
- const data = innerDate.value.year(year2);
- innerDate.value = getValidDateOfYear(data, lang.value, disabledDate);
- currentView.value = "month";
- if (["month", "year", "date", "week"].includes(selectionMode.value)) {
- emit(innerDate.value, true);
- await nextTick();
- handleFocusPicker();
- }
- }
- handlePanelChange("year");
- };
- const showPicker = async (view) => {
- if (props2.disabled)
- return;
- currentView.value = view;
- await nextTick();
- handleFocusPicker();
- };
- const showTime = computed(() => props2.type === "datetime" || props2.type === "datetimerange");
- const footerVisible = computed(() => {
- const showDateFooter = showTime.value || selectionMode.value === "dates";
- const showYearFooter = selectionMode.value === "years";
- const showMonthFooter = selectionMode.value === "months";
- const isDateView = currentView.value === "date";
- const isYearView = currentView.value === "year";
- const isMonthView = currentView.value === "month";
- return showDateFooter && isDateView || showYearFooter && isYearView || showMonthFooter && isMonthView;
- });
- const footerFilled = computed(() => !isMultipleType.value && props2.showNow || props2.showConfirm);
- const disabledConfirm = computed(() => {
- if (!disabledDate)
- return false;
- if (!props2.parsedValue)
- return true;
- if (isArray(props2.parsedValue)) {
- return disabledDate(props2.parsedValue[0].toDate());
- }
- return disabledDate(props2.parsedValue.toDate());
- });
- const onConfirm = () => {
- if (isMultipleType.value) {
- emit(props2.parsedValue);
- } else {
- let result2 = props2.parsedValue;
- if (!result2) {
- const defaultTimeD2 = (0, import_dayjs11.default)(defaultTime).locale(lang.value);
- const defaultValueD = getDefaultValue2();
- result2 = defaultTimeD2.year(defaultValueD.year()).month(defaultValueD.month()).date(defaultValueD.date());
- }
- innerDate.value = result2;
- emit(result2);
- }
- };
- const disabledNow = computed(() => {
- if (!disabledDate)
- return false;
- return disabledDate((0, import_dayjs11.default)().locale(lang.value).toDate());
- });
- const changeToNow = () => {
- const now2 = (0, import_dayjs11.default)().locale(lang.value);
- const nowDate = now2.toDate();
- isChangeToNow.value = true;
- if ((!disabledDate || !disabledDate(nowDate)) && checkDateWithinRange(nowDate)) {
- innerDate.value = (0, import_dayjs11.default)().locale(lang.value);
- emit(innerDate.value);
- }
- };
- const timeFormat = computed(() => {
- return props2.timeFormat || extractTimeFormat(props2.format) || DEFAULT_FORMATS_TIME;
- });
- const dateFormat = computed(() => {
- return props2.dateFormat || extractDateFormat(props2.format) || DEFAULT_FORMATS_DATE;
- });
- const visibleTime = computed(() => {
- if (userInputTime.value)
- return userInputTime.value;
- if (!props2.parsedValue && !defaultValue.value)
- return;
- return (props2.parsedValue || innerDate.value).format(timeFormat.value);
- });
- const visibleDate = computed(() => {
- if (userInputDate.value)
- return userInputDate.value;
- if (!props2.parsedValue && !defaultValue.value)
- return;
- return (props2.parsedValue || innerDate.value).format(dateFormat.value);
- });
- const timePickerVisible = ref(false);
- const onTimePickerInputFocus = () => {
- timePickerVisible.value = true;
- };
- const handleTimePickClose = () => {
- timePickerVisible.value = false;
- };
- const getUnits = (date4) => {
- return {
- hour: date4.hour(),
- minute: date4.minute(),
- second: date4.second(),
- year: date4.year(),
- month: date4.month(),
- date: date4.date()
- };
- };
- const handleTimePick = (value, visible, first) => {
- const { hour, minute, second } = getUnits(value);
- const newDate = props2.parsedValue ? props2.parsedValue.hour(hour).minute(minute).second(second) : value;
- innerDate.value = newDate;
- emit(innerDate.value, true);
- if (!first) {
- timePickerVisible.value = visible;
- }
- };
- const handleVisibleTimeChange = (value) => {
- const newDate = (0, import_dayjs11.default)(value, timeFormat.value).locale(lang.value);
- if (newDate.isValid() && checkDateWithinRange(newDate)) {
- const { year: year2, month: month2, date: date4 } = getUnits(innerDate.value);
- innerDate.value = newDate.year(year2).month(month2).date(date4);
- userInputTime.value = null;
- timePickerVisible.value = false;
- emit(innerDate.value, true);
- }
- };
- const handleVisibleDateChange = (value) => {
- const newDate = correctlyParseUserInput(value, dateFormat.value, lang.value, isDefaultFormat);
- if (newDate.isValid()) {
- if (disabledDate && disabledDate(newDate.toDate())) {
- return;
- }
- const { hour, minute, second } = getUnits(innerDate.value);
- innerDate.value = newDate.hour(hour).minute(minute).second(second);
- userInputDate.value = null;
- emit(innerDate.value, true);
- }
- };
- const isValidValue3 = (date4) => {
- return import_dayjs11.default.isDayjs(date4) && date4.isValid() && (disabledDate ? !disabledDate(date4.toDate()) : true);
- };
- const formatToString = (value) => {
- return isArray(value) ? value.map((_2) => _2.format(props2.format)) : value.format(props2.format);
- };
- const parseUserInput = (value) => {
- return correctlyParseUserInput(value, props2.format, lang.value, isDefaultFormat);
- };
- const getDefaultValue2 = () => {
- const parseDate2 = (0, import_dayjs11.default)(defaultValue.value).locale(lang.value);
- if (!defaultValue.value) {
- const defaultTimeDValue = defaultTimeD.value;
- return (0, import_dayjs11.default)().hour(defaultTimeDValue.hour()).minute(defaultTimeDValue.minute()).second(defaultTimeDValue.second()).locale(lang.value);
- }
- return parseDate2;
- };
- const handleFocusPicker = () => {
- var _a2;
- if (["week", "month", "year", "date"].includes(selectionMode.value)) {
- (_a2 = currentViewRef.value) == null ? void 0 : _a2.focus();
- }
- };
- const _handleFocusPicker = () => {
- handleFocusPicker();
- if (selectionMode.value === "week") {
- handleKeyControl(EVENT_CODE.down);
- }
- };
- const handleKeydownTable = (event) => {
- const { code } = event;
- const validCode = [
- EVENT_CODE.up,
- EVENT_CODE.down,
- EVENT_CODE.left,
- EVENT_CODE.right,
- EVENT_CODE.home,
- EVENT_CODE.end,
- EVENT_CODE.pageUp,
- EVENT_CODE.pageDown
- ];
- if (validCode.includes(code)) {
- handleKeyControl(code);
- event.stopPropagation();
- event.preventDefault();
- }
- if ([EVENT_CODE.enter, EVENT_CODE.space, EVENT_CODE.numpadEnter].includes(code) && userInputDate.value === null && userInputTime.value === null) {
- event.preventDefault();
- emit(innerDate.value, false);
- }
- };
- const handleKeyControl = (code) => {
- var _a2;
- const { up, down, left, right, home, end, pageUp, pageDown } = EVENT_CODE;
- const mapping = {
- year: {
- [up]: -4,
- [down]: 4,
- [left]: -1,
- [right]: 1,
- offset: (date4, step2) => date4.setFullYear(date4.getFullYear() + step2)
- },
- month: {
- [up]: -4,
- [down]: 4,
- [left]: -1,
- [right]: 1,
- offset: (date4, step2) => date4.setMonth(date4.getMonth() + step2)
- },
- week: {
- [up]: -1,
- [down]: 1,
- [left]: -1,
- [right]: 1,
- offset: (date4, step2) => date4.setDate(date4.getDate() + step2 * 7)
- },
- date: {
- [up]: -7,
- [down]: 7,
- [left]: -1,
- [right]: 1,
- [home]: (date4) => -date4.getDay(),
- [end]: (date4) => -date4.getDay() + 6,
- [pageUp]: (date4) => -new Date(date4.getFullYear(), date4.getMonth(), 0).getDate(),
- [pageDown]: (date4) => new Date(date4.getFullYear(), date4.getMonth() + 1, 0).getDate(),
- offset: (date4, step2) => date4.setDate(date4.getDate() + step2)
- }
- };
- const newDate = innerDate.value.toDate();
- while (Math.abs(innerDate.value.diff(newDate, "year", true)) < 1) {
- const map2 = mapping[keyboardMode.value];
- if (!map2)
- return;
- map2.offset(newDate, isFunction(map2[code]) ? map2[code](newDate) : (_a2 = map2[code]) != null ? _a2 : 0);
- if (disabledDate && disabledDate(newDate)) {
- break;
- }
- const result2 = (0, import_dayjs11.default)(newDate).locale(lang.value);
- innerDate.value = result2;
- contextEmit("pick", result2, true);
- break;
- }
- };
- const handlePanelChange = (mode) => {
- contextEmit("panel-change", innerDate.value.toDate(), mode, currentView.value);
- };
- watch(() => selectionMode.value, (val) => {
- if (["month", "year"].includes(val)) {
- currentView.value = val;
- return;
- } else if (val === "years") {
- currentView.value = "year";
- return;
- } else if (val === "months") {
- currentView.value = "month";
- return;
- }
- currentView.value = "date";
- }, { immediate: true });
- watch(() => defaultValue.value, (val) => {
- if (val) {
- innerDate.value = getDefaultValue2();
- }
- }, { immediate: true });
- watch(() => props2.parsedValue, (val) => {
- if (val) {
- if (isMultipleType.value)
- return;
- if (isArray(val))
- return;
- innerDate.value = val;
- } else {
- innerDate.value = getDefaultValue2();
- }
- }, { immediate: true });
- contextEmit("set-picker-option", ["isValidValue", isValidValue3]);
- contextEmit("set-picker-option", ["formatToString", formatToString]);
- contextEmit("set-picker-option", ["parseUserInput", parseUserInput]);
- contextEmit("set-picker-option", ["handleFocusPicker", _handleFocusPicker]);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ppNs).b(),
- unref(dpNs).b(),
- unref(ppNs).is("border", _ctx.border),
- unref(ppNs).is("disabled", _ctx.disabled),
- {
- "has-sidebar": _ctx.$slots.sidebar || unref(hasShortcuts),
- "has-time": unref(showTime)
- }
- ])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body-wrapper"))
- }, [
- renderSlot(_ctx.$slots, "sidebar", {
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }),
- unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
- return openBlock(), createElementBlock("button", {
- key,
- type: "button",
- disabled: _ctx.disabled,
- class: normalizeClass(unref(ppNs).e("shortcut")),
- onClick: ($event) => handleShortcutClick(shortcut)
- }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
- }), 128))
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body"))
- }, [
- unref(showTime) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(dpNs).e("time-header"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(dpNs).e("editor-wrap"))
- }, [
- createVNode(unref(ElInput), {
- placeholder: unref(t)("el.datepicker.selectDate"),
- "model-value": unref(visibleDate),
- size: "small",
- "validate-event": false,
- disabled: _ctx.disabled,
- onInput: (val) => userInputDate.value = val,
- onChange: handleVisibleDateChange
- }, null, 8, ["placeholder", "model-value", "disabled", "onInput"])
- ], 2),
- withDirectives((openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(dpNs).e("editor-wrap"))
- }, [
- createVNode(unref(ElInput), {
- placeholder: unref(t)("el.datepicker.selectTime"),
- "model-value": unref(visibleTime),
- size: "small",
- "validate-event": false,
- disabled: _ctx.disabled,
- onFocus: onTimePickerInputFocus,
- onInput: (val) => userInputTime.value = val,
- onChange: handleVisibleTimeChange
- }, null, 8, ["placeholder", "model-value", "disabled", "onInput"]),
- createVNode(unref(TimePickPanel), {
- visible: timePickerVisible.value,
- format: unref(timeFormat),
- "parsed-value": innerDate.value,
- onPick: handleTimePick
- }, null, 8, ["visible", "format", "parsed-value"])
- ], 2)), [
- [unref(ClickOutside), handleTimePickClose]
- ])
- ], 2)) : createCommentVNode("v-if", true),
- withDirectives(createBaseVNode("div", {
- class: normalizeClass([
- unref(dpNs).e("header"),
- (currentView.value === "year" || currentView.value === "month") && unref(dpNs).e("header--bordered")
- ])
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(dpNs).e("prev-btn"))
- }, [
- createBaseVNode("button", {
- type: "button",
- "aria-label": unref(t)(`el.datepicker.prevYear`),
- class: normalizeClass(["d-arrow-left", unref(ppNs).e("icon-btn")]),
- disabled: _ctx.disabled,
- onClick: ($event) => moveByYear(false)
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled", "onClick"]),
- withDirectives(createBaseVNode("button", {
- type: "button",
- "aria-label": unref(t)(`el.datepicker.prevMonth`),
- class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-left"]),
- disabled: _ctx.disabled,
- onClick: ($event) => moveByMonth(false)
- }, [
- renderSlot(_ctx.$slots, "prev-month", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled", "onClick"]), [
- [vShow, currentView.value === "date"]
- ])
- ], 2),
- createBaseVNode("span", {
- role: "button",
- class: normalizeClass(unref(dpNs).e("header-label")),
- "aria-live": "polite",
- tabindex: "0",
- onKeydown: withKeys(($event) => showPicker("year"), ["enter"]),
- onClick: ($event) => showPicker("year")
- }, toDisplayString(unref(yearLabel)), 43, ["onKeydown", "onClick"]),
- withDirectives(createBaseVNode("span", {
- role: "button",
- "aria-live": "polite",
- tabindex: "0",
- class: normalizeClass([
- unref(dpNs).e("header-label"),
- { active: currentView.value === "month" }
- ]),
- onKeydown: withKeys(($event) => showPicker("month"), ["enter"]),
- onClick: ($event) => showPicker("month")
- }, toDisplayString(unref(t)(`el.datepicker.month${unref(month) + 1}`)), 43, ["onKeydown", "onClick"]), [
- [vShow, currentView.value === "date"]
- ]),
- createBaseVNode("span", {
- class: normalizeClass(unref(dpNs).e("next-btn"))
- }, [
- withDirectives(createBaseVNode("button", {
- type: "button",
- "aria-label": unref(t)(`el.datepicker.nextMonth`),
- class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-right"]),
- disabled: _ctx.disabled,
- onClick: ($event) => moveByMonth(true)
- }, [
- renderSlot(_ctx.$slots, "next-month", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled", "onClick"]), [
- [vShow, currentView.value === "date"]
- ]),
- createBaseVNode("button", {
- type: "button",
- "aria-label": unref(t)(`el.datepicker.nextYear`),
- class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
- disabled: _ctx.disabled,
- onClick: ($event) => moveByYear(true)
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled", "onClick"])
- ], 2)
- ], 2), [
- [vShow, currentView.value !== "time"]
- ]),
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("content")),
- onKeydown: handleKeydownTable
- }, [
- currentView.value === "date" ? (openBlock(), createBlock(DateTable2, {
- key: 0,
- ref_key: "currentViewRef",
- ref: currentViewRef,
- "selection-mode": unref(selectionMode),
- date: innerDate.value,
- "parsed-value": _ctx.parsedValue,
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "cell-class-name": unref(cellClassName),
- "show-week-number": _ctx.showWeekNumber,
- onPick: handleDatePick
- }, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "disabled", "cell-class-name", "show-week-number"])) : createCommentVNode("v-if", true),
- currentView.value === "year" ? (openBlock(), createBlock(YearTable, {
- key: 1,
- ref_key: "currentViewRef",
- ref: currentViewRef,
- "selection-mode": unref(selectionMode),
- date: innerDate.value,
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "parsed-value": _ctx.parsedValue,
- "cell-class-name": unref(cellClassName),
- onPick: handleYearPick
- }, null, 8, ["selection-mode", "date", "disabled-date", "disabled", "parsed-value", "cell-class-name"])) : createCommentVNode("v-if", true),
- currentView.value === "month" ? (openBlock(), createBlock(MonthTable, {
- key: 2,
- ref_key: "currentViewRef",
- ref: currentViewRef,
- "selection-mode": unref(selectionMode),
- date: innerDate.value,
- "parsed-value": _ctx.parsedValue,
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "cell-class-name": unref(cellClassName),
- onPick: handleMonthPick
- }, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "disabled", "cell-class-name"])) : createCommentVNode("v-if", true)
- ], 34)
- ], 2)
- ], 2),
- _ctx.showFooter && unref(footerVisible) && unref(footerFilled) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ppNs).e("footer"))
- }, [
- withDirectives(createVNode(unref(ElButton), {
- text: "",
- size: "small",
- class: normalizeClass(unref(ppNs).e("link-btn")),
- disabled: unref(disabledNow),
- onClick: changeToNow
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.now")), 1)
- ]),
- _: 1
- }, 8, ["class", "disabled"]), [
- [vShow, !unref(isMultipleType) && _ctx.showNow]
- ]),
- _ctx.showConfirm ? (openBlock(), createBlock(unref(ElButton), {
- key: 0,
- plain: "",
- size: "small",
- class: normalizeClass(unref(ppNs).e("link-btn")),
- disabled: unref(disabledConfirm),
- onClick: onConfirm
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")), 1)
- ]),
- _: 1
- }, 8, ["class", "disabled"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var DatePickPanel = _export_sfc(_sfc_main357, [["__file", "panel-date-pick.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs
- var import_dayjs14 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-range.mjs
- var panelDateRangeProps = buildProps({
- ...panelSharedProps,
- ...panelRangeSharedProps
- });
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.mjs
- var import_dayjs13 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-shortcut.mjs
- var import_dayjs12 = __toESM(require_dayjs_min(), 1);
- var useShortcut = (lang) => {
- const { emit } = getCurrentInstance();
- const attrs = useAttrs();
- const slots = useSlots();
- const handleShortcutClick = (shortcut) => {
- const shortcutValues = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
- if (shortcutValues) {
- emit("pick", [
- (0, import_dayjs12.default)(shortcutValues[0]).locale(lang.value),
- (0, import_dayjs12.default)(shortcutValues[1]).locale(lang.value)
- ]);
- return;
- }
- if (shortcut.onClick) {
- shortcut.onClick({
- attrs,
- slots,
- emit
- });
- }
- };
- return handleShortcutClick;
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.mjs
- var useRangePicker = (props2, {
- defaultValue,
- defaultTime,
- leftDate,
- rightDate,
- step: step2,
- unit: unit4,
- onParsedValueChanged
- }) => {
- const { emit } = getCurrentInstance();
- const { pickerNs } = inject(ROOT_PICKER_INJECTION_KEY);
- const drpNs = useNamespace("date-range-picker");
- const { t, lang } = useLocale();
- const handleShortcutClick = useShortcut(lang);
- const minDate = ref();
- const maxDate = ref();
- const rangeState = ref({
- endDate: null,
- selecting: false
- });
- const handleChangeRange = (val) => {
- rangeState.value = val;
- };
- const handleRangeConfirm = (visible = false) => {
- const _minDate = unref(minDate);
- const _maxDate = unref(maxDate);
- if (isValidRange2([_minDate, _maxDate])) {
- emit("pick", [_minDate, _maxDate], visible);
- }
- };
- const onSelect = (selecting) => {
- rangeState.value.selecting = selecting;
- if (!selecting) {
- rangeState.value.endDate = null;
- }
- };
- const onReset = (parsedValue) => {
- if (isArray(parsedValue) && parsedValue.length === 2) {
- const [start, end] = parsedValue;
- minDate.value = start;
- leftDate.value = start;
- maxDate.value = end;
- onParsedValueChanged(unref(minDate), unref(maxDate));
- } else {
- restoreDefault();
- }
- };
- const restoreDefault = () => {
- let [start, end] = getDefaultValue(unref(defaultValue), {
- lang: unref(lang),
- step: step2,
- unit: unit4,
- unlinkPanels: props2.unlinkPanels
- });
- const getShift = (day) => {
- return day.diff(day.startOf("d"), "ms");
- };
- const maybeTimes = unref(defaultTime);
- if (maybeTimes) {
- let leftShift = 0;
- let rightShift = 0;
- if (isArray(maybeTimes)) {
- const [timeStart, timeEnd] = maybeTimes.map(import_dayjs13.default);
- leftShift = getShift(timeStart);
- rightShift = getShift(timeEnd);
- } else {
- const shift3 = getShift((0, import_dayjs13.default)(maybeTimes));
- leftShift = shift3;
- rightShift = shift3;
- }
- start = start.startOf("d").add(leftShift, "ms");
- end = end.startOf("d").add(rightShift, "ms");
- }
- minDate.value = void 0;
- maxDate.value = void 0;
- leftDate.value = start;
- rightDate.value = end;
- };
- watch(defaultValue, (val) => {
- if (val) {
- restoreDefault();
- }
- }, { immediate: true });
- watch(() => props2.parsedValue, (parsedValue) => {
- if (!(parsedValue == null ? void 0 : parsedValue.length)) {
- onReset(parsedValue);
- }
- }, {
- immediate: true
- });
- watch(() => props2.visible, () => {
- if (props2.visible) {
- onReset(props2.parsedValue);
- }
- }, { immediate: true });
- return {
- minDate,
- maxDate,
- rangeState,
- lang,
- ppNs: pickerNs,
- drpNs,
- handleChangeRange,
- handleRangeConfirm,
- handleShortcutClick,
- onSelect,
- onReset,
- t
- };
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-panel-date-range.mjs
- var usePanelDateRange = (props2, emit, leftDate, rightDate) => {
- const leftCurrentView = ref("date");
- const leftCurrentViewRef = ref();
- const rightCurrentView = ref("date");
- const rightCurrentViewRef = ref();
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const { disabledDate } = pickerBase.props;
- const { t, lang } = useLocale();
- const leftYear = computed(() => {
- return leftDate.value.year();
- });
- const leftMonth = computed(() => {
- return leftDate.value.month();
- });
- const rightYear = computed(() => {
- return rightDate.value.year();
- });
- const rightMonth = computed(() => {
- return rightDate.value.month();
- });
- function computedYearLabel(currentView, yearValue) {
- const yearTranslation = t("el.datepicker.year");
- if (currentView.value === "year") {
- const startYear = Math.floor(yearValue.value / 10) * 10;
- return yearTranslation ? `${startYear} ${yearTranslation} - ${startYear + 9} ${yearTranslation}` : `${startYear} - ${startYear + 9}`;
- }
- return `${yearValue.value} ${yearTranslation}`;
- }
- function focusPicker(currentViewRef) {
- currentViewRef == null ? void 0 : currentViewRef.focus();
- }
- async function showPicker(pickerType, view) {
- if (props2.disabled)
- return;
- const currentView = pickerType === "left" ? leftCurrentView : rightCurrentView;
- const currentViewRef = pickerType === "left" ? leftCurrentViewRef : rightCurrentViewRef;
- currentView.value = view;
- await nextTick();
- focusPicker(currentViewRef.value);
- }
- async function handlePick(mode, pickerType, value) {
- if (props2.disabled)
- return;
- const isLeftPicker = pickerType === "left";
- const startDate = isLeftPicker ? leftDate : rightDate;
- const endDate = isLeftPicker ? rightDate : leftDate;
- const currentView = isLeftPicker ? leftCurrentView : rightCurrentView;
- const currentViewRef = isLeftPicker ? leftCurrentViewRef : rightCurrentViewRef;
- if (mode === "year") {
- const data = startDate.value.year(value);
- startDate.value = getValidDateOfYear(data, lang.value, disabledDate);
- }
- if (mode === "month") {
- startDate.value = getValidDateOfMonth(startDate.value, startDate.value.year(), value, lang.value, disabledDate);
- }
- if (!props2.unlinkPanels) {
- endDate.value = pickerType === "left" ? startDate.value.add(1, "month") : startDate.value.subtract(1, "month");
- }
- currentView.value = mode === "year" ? "month" : "date";
- await nextTick();
- focusPicker(currentViewRef.value);
- handlePanelChange(mode);
- }
- function handlePanelChange(mode) {
- emit("panel-change", [leftDate.value.toDate(), rightDate.value.toDate()], mode);
- }
- function adjustDateByView(currentView, date4, forward) {
- const action = forward ? "add" : "subtract";
- return currentView === "year" ? date4[action](10, "year") : date4[action](1, "year");
- }
- return {
- leftCurrentView,
- rightCurrentView,
- leftCurrentViewRef,
- rightCurrentViewRef,
- leftYear,
- rightYear,
- leftMonth,
- rightMonth,
- leftYearLabel: computed(() => computedYearLabel(leftCurrentView, leftYear)),
- rightYearLabel: computed(() => computedYearLabel(rightCurrentView, rightYear)),
- showLeftPicker: (view) => showPicker("left", view),
- showRightPicker: (view) => showPicker("right", view),
- handleLeftYearPick: (year) => handlePick("year", "left", year),
- handleRightYearPick: (year) => handlePick("year", "right", year),
- handleLeftMonthPick: (month) => handlePick("month", "left", month),
- handleRightMonthPick: (month) => handlePick("month", "right", month),
- handlePanelChange,
- adjustDateByView
- };
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs
- var unit = "month";
- var _sfc_main358 = defineComponent({
- __name: "panel-date-range",
- props: panelDateRangeProps,
- emits: [
- "pick",
- "set-picker-option",
- "calendar-change",
- "panel-change"
- ],
- setup(__props, { emit }) {
- const props2 = __props;
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
- const { disabledDate, cellClassName, defaultTime, clearable } = pickerBase.props;
- const format2 = toRef(pickerBase.props, "format");
- const shortcuts = toRef(pickerBase.props, "shortcuts");
- const defaultValue = toRef(pickerBase.props, "defaultValue");
- const { lang } = useLocale();
- const leftDate = ref((0, import_dayjs14.default)().locale(lang.value));
- const rightDate = ref((0, import_dayjs14.default)().locale(lang.value).add(1, unit));
- let shouldBeVisible = true;
- const {
- minDate,
- maxDate,
- rangeState,
- ppNs,
- drpNs,
- handleChangeRange,
- handleRangeConfirm,
- handleShortcutClick,
- onSelect,
- onReset,
- t
- } = useRangePicker(props2, {
- defaultValue,
- defaultTime,
- leftDate,
- rightDate,
- unit,
- onParsedValueChanged
- });
- watch(() => props2.visible, (visible) => {
- if (!visible && rangeState.value.selecting) {
- onReset(props2.parsedValue);
- onSelect(false);
- }
- });
- const dateUserInput = ref({
- min: null,
- max: null
- });
- const timeUserInput = ref({
- min: null,
- max: null
- });
- const {
- leftCurrentView,
- rightCurrentView,
- leftCurrentViewRef,
- rightCurrentViewRef,
- leftYear,
- rightYear,
- leftMonth,
- rightMonth,
- leftYearLabel,
- rightYearLabel,
- showLeftPicker,
- showRightPicker,
- handleLeftYearPick,
- handleRightYearPick,
- handleLeftMonthPick,
- handleRightMonthPick,
- handlePanelChange,
- adjustDateByView
- } = usePanelDateRange(props2, emit, leftDate, rightDate);
- const hasShortcuts = computed(() => !!shortcuts.value.length);
- const minVisibleDate = computed(() => {
- if (dateUserInput.value.min !== null)
- return dateUserInput.value.min;
- if (minDate.value)
- return minDate.value.format(dateFormat.value);
- return "";
- });
- const maxVisibleDate = computed(() => {
- if (dateUserInput.value.max !== null)
- return dateUserInput.value.max;
- if (maxDate.value || minDate.value)
- return (maxDate.value || minDate.value).format(dateFormat.value);
- return "";
- });
- const minVisibleTime = computed(() => {
- if (timeUserInput.value.min !== null)
- return timeUserInput.value.min;
- if (minDate.value)
- return minDate.value.format(timeFormat.value);
- return "";
- });
- const maxVisibleTime = computed(() => {
- if (timeUserInput.value.max !== null)
- return timeUserInput.value.max;
- if (maxDate.value || minDate.value)
- return (maxDate.value || minDate.value).format(timeFormat.value);
- return "";
- });
- const timeFormat = computed(() => {
- return props2.timeFormat || extractTimeFormat(format2.value || "") || DEFAULT_FORMATS_TIME;
- });
- const dateFormat = computed(() => {
- return props2.dateFormat || extractDateFormat(format2.value || "") || DEFAULT_FORMATS_DATE;
- });
- const isValidValue3 = (date4) => {
- return isValidRange2(date4) && (disabledDate ? !disabledDate(date4[0].toDate()) && !disabledDate(date4[1].toDate()) : true);
- };
- const leftPrevYear = () => {
- leftDate.value = adjustDateByView(leftCurrentView.value, leftDate.value, false);
- if (!props2.unlinkPanels) {
- rightDate.value = leftDate.value.add(1, "month");
- }
- handlePanelChange("year");
- };
- const leftPrevMonth = () => {
- leftDate.value = leftDate.value.subtract(1, "month");
- if (!props2.unlinkPanels) {
- rightDate.value = leftDate.value.add(1, "month");
- }
- handlePanelChange("month");
- };
- const rightNextYear = () => {
- if (!props2.unlinkPanels) {
- leftDate.value = adjustDateByView(rightCurrentView.value, leftDate.value, true);
- rightDate.value = leftDate.value.add(1, "month");
- } else {
- rightDate.value = adjustDateByView(rightCurrentView.value, rightDate.value, true);
- }
- handlePanelChange("year");
- };
- const rightNextMonth = () => {
- if (!props2.unlinkPanels) {
- leftDate.value = leftDate.value.add(1, "month");
- rightDate.value = leftDate.value.add(1, "month");
- } else {
- rightDate.value = rightDate.value.add(1, "month");
- }
- handlePanelChange("month");
- };
- const leftNextYear = () => {
- leftDate.value = adjustDateByView(leftCurrentView.value, leftDate.value, true);
- handlePanelChange("year");
- };
- const leftNextMonth = () => {
- leftDate.value = leftDate.value.add(1, "month");
- handlePanelChange("month");
- };
- const rightPrevYear = () => {
- rightDate.value = adjustDateByView(rightCurrentView.value, rightDate.value, false);
- handlePanelChange("year");
- };
- const rightPrevMonth = () => {
- rightDate.value = rightDate.value.subtract(1, "month");
- handlePanelChange("month");
- };
- const enableMonthArrow = computed(() => {
- const nextMonth = (leftMonth.value + 1) % 12;
- const yearOffset = leftMonth.value + 1 >= 12 ? 1 : 0;
- return props2.unlinkPanels && new Date(leftYear.value + yearOffset, nextMonth) < new Date(rightYear.value, rightMonth.value);
- });
- const enableYearArrow = computed(() => {
- return props2.unlinkPanels && rightYear.value * 12 + rightMonth.value - (leftYear.value * 12 + leftMonth.value + 1) >= 12;
- });
- const btnDisabled = computed(() => {
- return !(minDate.value && maxDate.value && !rangeState.value.selecting && isValidRange2([minDate.value, maxDate.value]));
- });
- const showTime = computed(() => props2.type === "datetime" || props2.type === "datetimerange");
- const formatEmit = (emitDayjs, index) => {
- if (!emitDayjs)
- return;
- if (defaultTime) {
- const defaultTimeD = (0, import_dayjs14.default)(defaultTime[index] || defaultTime).locale(lang.value);
- return defaultTimeD.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());
- }
- return emitDayjs;
- };
- const handleRangePick = (val, close2 = true) => {
- const min_ = val.minDate;
- const max_ = val.maxDate;
- const minDate_ = formatEmit(min_, 0);
- const maxDate_ = formatEmit(max_, 1);
- if (maxDate.value === maxDate_ && minDate.value === minDate_) {
- return;
- }
- emit("calendar-change", [min_.toDate(), max_ && max_.toDate()]);
- maxDate.value = maxDate_;
- minDate.value = minDate_;
- if (!showTime.value && close2) {
- close2 = !minDate_ || !maxDate_;
- }
- shouldBeVisible = close2;
- };
- watch([maxDate, minDate], ([max4, min4]) => {
- if (max4 && min4) {
- handleRangeConfirm(shouldBeVisible);
- shouldBeVisible = true;
- }
- });
- const minTimePickerVisible = ref(false);
- const maxTimePickerVisible = ref(false);
- const handleMinTimeClose = () => {
- minTimePickerVisible.value = false;
- };
- const handleMaxTimeClose = () => {
- maxTimePickerVisible.value = false;
- };
- const handleDateInput = (value, type4) => {
- dateUserInput.value[type4] = value;
- const parsedValueD = (0, import_dayjs14.default)(value, dateFormat.value).locale(lang.value);
- if (parsedValueD.isValid()) {
- if (disabledDate && disabledDate(parsedValueD.toDate())) {
- return;
- }
- if (type4 === "min") {
- leftDate.value = parsedValueD;
- minDate.value = (minDate.value || leftDate.value).year(parsedValueD.year()).month(parsedValueD.month()).date(parsedValueD.date());
- if (!props2.unlinkPanels && (!maxDate.value || maxDate.value.isBefore(minDate.value))) {
- rightDate.value = parsedValueD.add(1, "month");
- maxDate.value = minDate.value.add(1, "month");
- }
- } else {
- rightDate.value = parsedValueD;
- maxDate.value = (maxDate.value || rightDate.value).year(parsedValueD.year()).month(parsedValueD.month()).date(parsedValueD.date());
- if (!props2.unlinkPanels && (!minDate.value || minDate.value.isAfter(maxDate.value))) {
- leftDate.value = parsedValueD.subtract(1, "month");
- minDate.value = maxDate.value.subtract(1, "month");
- }
- }
- }
- };
- const handleDateChange = (_2, type4) => {
- dateUserInput.value[type4] = null;
- };
- const handleTimeInput = (value, type4) => {
- timeUserInput.value[type4] = value;
- const parsedValueD = (0, import_dayjs14.default)(value, timeFormat.value).locale(lang.value);
- if (parsedValueD.isValid()) {
- if (type4 === "min") {
- minTimePickerVisible.value = true;
- minDate.value = (minDate.value || leftDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());
- } else {
- maxTimePickerVisible.value = true;
- maxDate.value = (maxDate.value || rightDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());
- rightDate.value = maxDate.value;
- }
- }
- };
- const handleTimeChange = (_value, type4) => {
- timeUserInput.value[type4] = null;
- if (type4 === "min") {
- leftDate.value = minDate.value;
- minTimePickerVisible.value = false;
- if (!maxDate.value || maxDate.value.isBefore(minDate.value)) {
- maxDate.value = minDate.value;
- }
- } else {
- rightDate.value = maxDate.value;
- maxTimePickerVisible.value = false;
- if (maxDate.value && maxDate.value.isBefore(minDate.value)) {
- minDate.value = maxDate.value;
- }
- }
- };
- const handleMinTimePick = (value, visible, first) => {
- if (timeUserInput.value.min)
- return;
- if (value) {
- leftDate.value = value;
- minDate.value = (minDate.value || leftDate.value).hour(value.hour()).minute(value.minute()).second(value.second());
- }
- if (!first) {
- minTimePickerVisible.value = visible;
- }
- if (!maxDate.value || maxDate.value.isBefore(minDate.value)) {
- maxDate.value = minDate.value;
- rightDate.value = value;
- nextTick(() => {
- onReset(props2.parsedValue);
- });
- }
- };
- const handleMaxTimePick = (value, visible, first) => {
- if (timeUserInput.value.max)
- return;
- if (value) {
- rightDate.value = value;
- maxDate.value = (maxDate.value || rightDate.value).hour(value.hour()).minute(value.minute()).second(value.second());
- }
- if (!first) {
- maxTimePickerVisible.value = visible;
- }
- if (maxDate.value && maxDate.value.isBefore(minDate.value)) {
- minDate.value = maxDate.value;
- }
- };
- const handleClear = () => {
- leftDate.value = getDefaultValue(unref(defaultValue), {
- lang: unref(lang),
- unit: "month",
- unlinkPanels: props2.unlinkPanels
- })[0];
- rightDate.value = leftDate.value.add(1, "month");
- maxDate.value = void 0;
- minDate.value = void 0;
- emit("pick", null);
- };
- const formatToString = (value) => {
- return isArray(value) ? value.map((_2) => _2.format(format2.value)) : value.format(format2.value);
- };
- const parseUserInput = (value) => {
- return correctlyParseUserInput(value, format2.value || "", lang.value, isDefaultFormat);
- };
- function onParsedValueChanged(minDate2, maxDate2) {
- if (props2.unlinkPanels && maxDate2) {
- const minDateYear = (minDate2 == null ? void 0 : minDate2.year()) || 0;
- const minDateMonth = (minDate2 == null ? void 0 : minDate2.month()) || 0;
- const maxDateYear = maxDate2.year();
- const maxDateMonth = maxDate2.month();
- rightDate.value = minDateYear === maxDateYear && minDateMonth === maxDateMonth ? maxDate2.add(1, unit) : maxDate2;
- } else {
- rightDate.value = leftDate.value.add(1, unit);
- if (maxDate2) {
- rightDate.value = rightDate.value.hour(maxDate2.hour()).minute(maxDate2.minute()).second(maxDate2.second());
- }
- }
- }
- emit("set-picker-option", ["isValidValue", isValidValue3]);
- emit("set-picker-option", ["parseUserInput", parseUserInput]);
- emit("set-picker-option", ["formatToString", formatToString]);
- emit("set-picker-option", ["handleClear", handleClear]);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ppNs).b(),
- unref(drpNs).b(),
- unref(ppNs).is("border", _ctx.border),
- unref(ppNs).is("disabled", _ctx.disabled),
- {
- "has-sidebar": _ctx.$slots.sidebar || unref(hasShortcuts),
- "has-time": unref(showTime)
- }
- ])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body-wrapper"))
- }, [
- renderSlot(_ctx.$slots, "sidebar", {
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }),
- unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
- return openBlock(), createElementBlock("button", {
- key,
- type: "button",
- disabled: _ctx.disabled,
- class: normalizeClass(unref(ppNs).e("shortcut")),
- onClick: ($event) => unref(handleShortcutClick)(shortcut)
- }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
- }), 128))
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body"))
- }, [
- unref(showTime) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(drpNs).e("time-header"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(drpNs).e("editors-wrap"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
- }, [
- createVNode(unref(ElInput), {
- size: "small",
- disabled: unref(rangeState).selecting || _ctx.disabled,
- placeholder: unref(t)("el.datepicker.startDate"),
- class: normalizeClass(unref(drpNs).e("editor")),
- "model-value": unref(minVisibleDate),
- "validate-event": false,
- onInput: (val) => handleDateInput(val, "min"),
- onChange: (val) => handleDateChange(val, "min")
- }, null, 8, ["disabled", "placeholder", "class", "model-value", "onInput", "onChange"])
- ], 2),
- withDirectives((openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
- }, [
- createVNode(unref(ElInput), {
- size: "small",
- class: normalizeClass(unref(drpNs).e("editor")),
- disabled: unref(rangeState).selecting || _ctx.disabled,
- placeholder: unref(t)("el.datepicker.startTime"),
- "model-value": unref(minVisibleTime),
- "validate-event": false,
- onFocus: ($event) => minTimePickerVisible.value = true,
- onInput: (val) => handleTimeInput(val, "min"),
- onChange: (val) => handleTimeChange(val, "min")
- }, null, 8, ["class", "disabled", "placeholder", "model-value", "onFocus", "onInput", "onChange"]),
- createVNode(unref(TimePickPanel), {
- visible: minTimePickerVisible.value,
- format: unref(timeFormat),
- "datetime-role": "start",
- "parsed-value": leftDate.value,
- onPick: handleMinTimePick
- }, null, 8, ["visible", "format", "parsed-value"])
- ], 2)), [
- [unref(ClickOutside), handleMinTimeClose]
- ])
- ], 2),
- createBaseVNode("span", null, [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ]),
- createBaseVNode("span", {
- class: normalizeClass([unref(drpNs).e("editors-wrap"), "is-right"])
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
- }, [
- createVNode(unref(ElInput), {
- size: "small",
- class: normalizeClass(unref(drpNs).e("editor")),
- disabled: unref(rangeState).selecting || _ctx.disabled,
- placeholder: unref(t)("el.datepicker.endDate"),
- "model-value": unref(maxVisibleDate),
- readonly: !unref(minDate),
- "validate-event": false,
- onInput: (val) => handleDateInput(val, "max"),
- onChange: (val) => handleDateChange(val, "max")
- }, null, 8, ["class", "disabled", "placeholder", "model-value", "readonly", "onInput", "onChange"])
- ], 2),
- withDirectives((openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(drpNs).e("time-picker-wrap"))
- }, [
- createVNode(unref(ElInput), {
- size: "small",
- class: normalizeClass(unref(drpNs).e("editor")),
- disabled: unref(rangeState).selecting || _ctx.disabled,
- placeholder: unref(t)("el.datepicker.endTime"),
- "model-value": unref(maxVisibleTime),
- readonly: !unref(minDate),
- "validate-event": false,
- onFocus: ($event) => unref(minDate) && (maxTimePickerVisible.value = true),
- onInput: (val) => handleTimeInput(val, "max"),
- onChange: (val) => handleTimeChange(val, "max")
- }, null, 8, ["class", "disabled", "placeholder", "model-value", "readonly", "onFocus", "onInput", "onChange"]),
- createVNode(unref(TimePickPanel), {
- "datetime-role": "end",
- visible: maxTimePickerVisible.value,
- format: unref(timeFormat),
- "parsed-value": rightDate.value,
- onPick: handleMaxTimePick
- }, null, 8, ["visible", "format", "parsed-value"])
- ], 2)), [
- [unref(ClickOutside), handleMaxTimeClose]
- ])
- ], 2)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-left"])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(drpNs).e("header"))
- }, [
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-left"]),
- "aria-label": unref(t)(`el.datepicker.prevYear`),
- disabled: _ctx.disabled,
- onClick: leftPrevYear
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled"]),
- withDirectives(createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-left"]),
- "aria-label": unref(t)(`el.datepicker.prevMonth`),
- disabled: _ctx.disabled,
- onClick: leftPrevMonth
- }, [
- renderSlot(_ctx.$slots, "prev-month", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled"]), [
- [vShow, unref(leftCurrentView) === "date"]
- ]),
- _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- disabled: !unref(enableYearArrow) || _ctx.disabled,
- class: normalizeClass([[
- unref(ppNs).e("icon-btn"),
- unref(ppNs).is("disabled", !unref(enableYearArrow) || _ctx.disabled)
- ], "d-arrow-right"]),
- "aria-label": unref(t)(`el.datepicker.nextYear`),
- onClick: leftNextYear
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
- _ctx.unlinkPanels && unref(leftCurrentView) === "date" ? (openBlock(), createElementBlock("button", {
- key: 1,
- type: "button",
- disabled: !unref(enableMonthArrow) || _ctx.disabled,
- class: normalizeClass([[
- unref(ppNs).e("icon-btn"),
- unref(ppNs).is("disabled", !unref(enableMonthArrow) || _ctx.disabled)
- ], "arrow-right"]),
- "aria-label": unref(t)(`el.datepicker.nextMonth`),
- onClick: leftNextMonth
- }, [
- renderSlot(_ctx.$slots, "next-month", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", null, [
- createBaseVNode("span", {
- role: "button",
- class: normalizeClass(unref(drpNs).e("header-label")),
- "aria-live": "polite",
- tabindex: "0",
- onKeydown: withKeys(($event) => unref(showLeftPicker)("year"), ["enter"]),
- onClick: ($event) => unref(showLeftPicker)("year")
- }, toDisplayString(unref(leftYearLabel)), 43, ["onKeydown", "onClick"]),
- withDirectives(createBaseVNode("span", {
- role: "button",
- "aria-live": "polite",
- tabindex: "0",
- class: normalizeClass([
- unref(drpNs).e("header-label"),
- { active: unref(leftCurrentView) === "month" }
- ]),
- onKeydown: withKeys(($event) => unref(showLeftPicker)("month"), ["enter"]),
- onClick: ($event) => unref(showLeftPicker)("month")
- }, toDisplayString(unref(t)(`el.datepicker.month${leftDate.value.month() + 1}`)), 43, ["onKeydown", "onClick"]), [
- [vShow, unref(leftCurrentView) === "date"]
- ])
- ])
- ], 2),
- unref(leftCurrentView) === "date" ? (openBlock(), createBlock(DateTable2, {
- key: 0,
- ref_key: "leftCurrentViewRef",
- ref: leftCurrentViewRef,
- "selection-mode": "range",
- date: leftDate.value,
- "min-date": unref(minDate),
- "max-date": unref(maxDate),
- "range-state": unref(rangeState),
- "disabled-date": unref(disabledDate),
- "cell-class-name": unref(cellClassName),
- "show-week-number": _ctx.showWeekNumber,
- disabled: _ctx.disabled,
- onChangerange: unref(handleChangeRange),
- onPick: handleRangePick,
- onSelect: unref(onSelect)
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "disabled", "onChangerange", "onSelect"])) : createCommentVNode("v-if", true),
- unref(leftCurrentView) === "year" ? (openBlock(), createBlock(YearTable, {
- key: 1,
- ref_key: "leftCurrentViewRef",
- ref: leftCurrentViewRef,
- "selection-mode": "year",
- date: leftDate.value,
- "disabled-date": unref(disabledDate),
- "parsed-value": _ctx.parsedValue,
- disabled: _ctx.disabled,
- onPick: unref(handleLeftYearPick)
- }, null, 8, ["date", "disabled-date", "parsed-value", "disabled", "onPick"])) : createCommentVNode("v-if", true),
- unref(leftCurrentView) === "month" ? (openBlock(), createBlock(MonthTable, {
- key: 2,
- ref_key: "leftCurrentViewRef",
- ref: leftCurrentViewRef,
- "selection-mode": "month",
- date: leftDate.value,
- "parsed-value": _ctx.parsedValue,
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- onPick: unref(handleLeftMonthPick)
- }, null, 8, ["date", "parsed-value", "disabled-date", "disabled", "onPick"])) : createCommentVNode("v-if", true)
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-right"])
- }, [
- createBaseVNode("div", {
- class: normalizeClass([
- unref(drpNs).e("header"),
- unref(ppNs).is("disabled", !unref(enableYearArrow) || _ctx.disabled)
- ])
- }, [
- _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- disabled: !unref(enableYearArrow) || _ctx.disabled,
- class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-left"]),
- "aria-label": unref(t)(`el.datepicker.prevYear`),
- onClick: rightPrevYear
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
- _ctx.unlinkPanels && unref(rightCurrentView) === "date" ? (openBlock(), createElementBlock("button", {
- key: 1,
- type: "button",
- disabled: !unref(enableMonthArrow) || _ctx.disabled,
- class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-left"]),
- "aria-label": unref(t)(`el.datepicker.prevMonth`),
- onClick: rightPrevMonth
- }, [
- renderSlot(_ctx.$slots, "prev-month", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
- createBaseVNode("button", {
- type: "button",
- "aria-label": unref(t)(`el.datepicker.nextYear`),
- class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
- disabled: _ctx.disabled,
- onClick: rightNextYear
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["aria-label", "disabled"]),
- withDirectives(createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ppNs).e("icon-btn"), "arrow-right"]),
- disabled: _ctx.disabled,
- "aria-label": unref(t)(`el.datepicker.nextMonth`),
- onClick: rightNextMonth
- }, [
- renderSlot(_ctx.$slots, "next-month", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "aria-label"]), [
- [vShow, unref(rightCurrentView) === "date"]
- ]),
- createBaseVNode("div", null, [
- createBaseVNode("span", {
- role: "button",
- class: normalizeClass(unref(drpNs).e("header-label")),
- "aria-live": "polite",
- tabindex: "0",
- onKeydown: withKeys(($event) => unref(showRightPicker)("year"), ["enter"]),
- onClick: ($event) => unref(showRightPicker)("year")
- }, toDisplayString(unref(rightYearLabel)), 43, ["onKeydown", "onClick"]),
- withDirectives(createBaseVNode("span", {
- role: "button",
- "aria-live": "polite",
- tabindex: "0",
- class: normalizeClass([
- unref(drpNs).e("header-label"),
- { active: unref(rightCurrentView) === "month" }
- ]),
- onKeydown: withKeys(($event) => unref(showRightPicker)("month"), ["enter"]),
- onClick: ($event) => unref(showRightPicker)("month")
- }, toDisplayString(unref(t)(`el.datepicker.month${rightDate.value.month() + 1}`)), 43, ["onKeydown", "onClick"]), [
- [vShow, unref(rightCurrentView) === "date"]
- ])
- ])
- ], 2),
- unref(rightCurrentView) === "date" ? (openBlock(), createBlock(DateTable2, {
- key: 0,
- ref_key: "rightCurrentViewRef",
- ref: rightCurrentViewRef,
- "selection-mode": "range",
- date: rightDate.value,
- "min-date": unref(minDate),
- "max-date": unref(maxDate),
- "range-state": unref(rangeState),
- "disabled-date": unref(disabledDate),
- "cell-class-name": unref(cellClassName),
- "show-week-number": _ctx.showWeekNumber,
- disabled: _ctx.disabled,
- onChangerange: unref(handleChangeRange),
- onPick: handleRangePick,
- onSelect: unref(onSelect)
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "disabled", "onChangerange", "onSelect"])) : createCommentVNode("v-if", true),
- unref(rightCurrentView) === "year" ? (openBlock(), createBlock(YearTable, {
- key: 1,
- ref_key: "rightCurrentViewRef",
- ref: rightCurrentViewRef,
- "selection-mode": "year",
- date: rightDate.value,
- "disabled-date": unref(disabledDate),
- "parsed-value": _ctx.parsedValue,
- disabled: _ctx.disabled,
- onPick: unref(handleRightYearPick)
- }, null, 8, ["date", "disabled-date", "parsed-value", "disabled", "onPick"])) : createCommentVNode("v-if", true),
- unref(rightCurrentView) === "month" ? (openBlock(), createBlock(MonthTable, {
- key: 2,
- ref_key: "rightCurrentViewRef",
- ref: rightCurrentViewRef,
- "selection-mode": "month",
- date: rightDate.value,
- "parsed-value": _ctx.parsedValue,
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- onPick: unref(handleRightMonthPick)
- }, null, 8, ["date", "parsed-value", "disabled-date", "disabled", "onPick"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 2)
- ], 2),
- _ctx.showFooter && unref(showTime) && (_ctx.showConfirm || unref(clearable)) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ppNs).e("footer"))
- }, [
- unref(clearable) ? (openBlock(), createBlock(unref(ElButton), {
- key: 0,
- text: "",
- size: "small",
- class: normalizeClass(unref(ppNs).e("link-btn")),
- onClick: handleClear
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.clear")), 1)
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- _ctx.showConfirm ? (openBlock(), createBlock(unref(ElButton), {
- key: 1,
- plain: "",
- size: "small",
- class: normalizeClass(unref(ppNs).e("link-btn")),
- disabled: unref(btnDisabled),
- onClick: ($event) => unref(handleRangeConfirm)(false)
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")), 1)
- ]),
- _: 1
- }, 8, ["class", "disabled", "onClick"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var DateRangePickPanel = _export_sfc(_sfc_main358, [["__file", "panel-date-range.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.mjs
- var import_dayjs15 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-month-range.mjs
- var panelMonthRangeProps = buildProps({
- ...panelRangeSharedProps
- });
- var panelMonthRangeEmits = [
- "pick",
- "set-picker-option",
- "calendar-change"
- ];
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-month-range-header.mjs
- var useMonthRangeHeader = ({
- unlinkPanels,
- leftDate,
- rightDate
- }) => {
- const { t } = useLocale();
- const leftPrevYear = () => {
- leftDate.value = leftDate.value.subtract(1, "year");
- if (!unlinkPanels.value) {
- rightDate.value = rightDate.value.subtract(1, "year");
- }
- };
- const rightNextYear = () => {
- if (!unlinkPanels.value) {
- leftDate.value = leftDate.value.add(1, "year");
- }
- rightDate.value = rightDate.value.add(1, "year");
- };
- const leftNextYear = () => {
- leftDate.value = leftDate.value.add(1, "year");
- };
- const rightPrevYear = () => {
- rightDate.value = rightDate.value.subtract(1, "year");
- };
- const leftLabel = computed(() => {
- return `${leftDate.value.year()} ${t("el.datepicker.year")}`;
- });
- const rightLabel = computed(() => {
- return `${rightDate.value.year()} ${t("el.datepicker.year")}`;
- });
- const leftYear = computed(() => {
- return leftDate.value.year();
- });
- const rightYear = computed(() => {
- return rightDate.value.year() === leftDate.value.year() ? leftDate.value.year() + 1 : rightDate.value.year();
- });
- return {
- leftPrevYear,
- rightNextYear,
- leftNextYear,
- rightPrevYear,
- leftLabel,
- rightLabel,
- leftYear,
- rightYear
- };
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.mjs
- var unit2 = "year";
- var __default__52 = defineComponent({
- name: "DatePickerMonthRange"
- });
- var _sfc_main359 = defineComponent({
- ...__default__52,
- props: panelMonthRangeProps,
- emits: panelMonthRangeEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const { lang } = useLocale();
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
- const { shortcuts, disabledDate, cellClassName } = pickerBase.props;
- const format2 = toRef(pickerBase.props, "format");
- const defaultValue = toRef(pickerBase.props, "defaultValue");
- const leftDate = ref((0, import_dayjs15.default)().locale(lang.value));
- const rightDate = ref((0, import_dayjs15.default)().locale(lang.value).add(1, unit2));
- const {
- minDate,
- maxDate,
- rangeState,
- ppNs,
- drpNs,
- handleChangeRange,
- handleRangeConfirm,
- handleShortcutClick,
- onSelect,
- onReset
- } = useRangePicker(props2, {
- defaultValue,
- leftDate,
- rightDate,
- unit: unit2,
- onParsedValueChanged
- });
- const hasShortcuts = computed(() => !!shortcuts.length);
- const {
- leftPrevYear,
- rightNextYear,
- leftNextYear,
- rightPrevYear,
- leftLabel,
- rightLabel,
- leftYear,
- rightYear
- } = useMonthRangeHeader({
- unlinkPanels: toRef(props2, "unlinkPanels"),
- leftDate,
- rightDate
- });
- const enableYearArrow = computed(() => {
- return props2.unlinkPanels && rightYear.value > leftYear.value + 1;
- });
- const handleRangePick = (val, close2 = true) => {
- const minDate_ = val.minDate;
- const maxDate_ = val.maxDate;
- if (maxDate.value === maxDate_ && minDate.value === minDate_) {
- return;
- }
- emit("calendar-change", [minDate_.toDate(), maxDate_ && maxDate_.toDate()]);
- maxDate.value = maxDate_;
- minDate.value = minDate_;
- if (!close2)
- return;
- handleRangeConfirm();
- };
- const handleClear = () => {
- leftDate.value = getDefaultValue(unref(defaultValue), {
- lang: unref(lang),
- unit: "year",
- unlinkPanels: props2.unlinkPanels
- })[0];
- rightDate.value = leftDate.value.add(1, "year");
- emit("pick", null);
- };
- const formatToString = (value) => {
- return isArray(value) ? value.map((_2) => _2.format(format2.value)) : value.format(format2.value);
- };
- const parseUserInput = (value) => {
- return correctlyParseUserInput(value, format2.value, lang.value, isDefaultFormat);
- };
- function onParsedValueChanged(minDate2, maxDate2) {
- if (props2.unlinkPanels && maxDate2) {
- const minDateYear = (minDate2 == null ? void 0 : minDate2.year()) || 0;
- const maxDateYear = maxDate2.year();
- rightDate.value = minDateYear === maxDateYear ? maxDate2.add(1, unit2) : maxDate2;
- } else {
- rightDate.value = leftDate.value.add(1, unit2);
- }
- }
- watch(() => props2.visible, (visible) => {
- if (!visible && rangeState.value.selecting) {
- onReset(props2.parsedValue);
- onSelect(false);
- }
- });
- emit("set-picker-option", ["isValidValue", isValidRange2]);
- emit("set-picker-option", ["formatToString", formatToString]);
- emit("set-picker-option", ["parseUserInput", parseUserInput]);
- emit("set-picker-option", ["handleClear", handleClear]);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ppNs).b(),
- unref(drpNs).b(),
- unref(ppNs).is("border", _ctx.border),
- unref(ppNs).is("disabled", _ctx.disabled),
- {
- "has-sidebar": Boolean(_ctx.$slots.sidebar) || unref(hasShortcuts)
- }
- ])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body-wrapper"))
- }, [
- renderSlot(_ctx.$slots, "sidebar", {
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }),
- unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
- return openBlock(), createElementBlock("button", {
- key,
- type: "button",
- class: normalizeClass(unref(ppNs).e("shortcut")),
- disabled: _ctx.disabled,
- onClick: ($event) => unref(handleShortcutClick)(shortcut)
- }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
- }), 128))
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-left"])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(drpNs).e("header"))
- }, [
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-left"]),
- disabled: _ctx.disabled,
- onClick: unref(leftPrevYear)
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"]),
- _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- disabled: !unref(enableYearArrow) || _ctx.disabled,
- class: normalizeClass([[
- unref(ppNs).e("icon-btn"),
- { [unref(ppNs).is("disabled")]: !unref(enableYearArrow) }
- ], "d-arrow-right"]),
- onClick: unref(leftNextYear)
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", null, toDisplayString(unref(leftLabel)), 1)
- ], 2),
- createVNode(MonthTable, {
- "selection-mode": "range",
- date: leftDate.value,
- "min-date": unref(minDate),
- "max-date": unref(maxDate),
- "range-state": unref(rangeState),
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "cell-class-name": unref(cellClassName),
- onChangerange: unref(handleChangeRange),
- onPick: handleRangePick,
- onSelect: unref(onSelect)
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass([[unref(ppNs).e("content"), unref(drpNs).e("content")], "is-right"])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(drpNs).e("header"))
- }, [
- _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- disabled: !unref(enableYearArrow) || _ctx.disabled,
- class: normalizeClass([[unref(ppNs).e("icon-btn"), { "is-disabled": !unref(enableYearArrow) }], "d-arrow-left"]),
- onClick: unref(rightPrevYear)
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
- disabled: _ctx.disabled,
- onClick: unref(rightNextYear)
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"]),
- createBaseVNode("div", null, toDisplayString(unref(rightLabel)), 1)
- ], 2),
- createVNode(MonthTable, {
- "selection-mode": "range",
- date: rightDate.value,
- "min-date": unref(minDate),
- "max-date": unref(maxDate),
- "range-state": unref(rangeState),
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "cell-class-name": unref(cellClassName),
- onChangerange: unref(handleChangeRange),
- onPick: handleRangePick,
- onSelect: unref(onSelect)
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
- ], 2)
- ], 2)
- ], 2)
- ], 2);
- };
- }
- });
- var MonthRangePickPanel = _export_sfc(_sfc_main359, [["__file", "panel-month-range.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.mjs
- var import_dayjs16 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/components/date-picker-panel/src/props/panel-year-range.mjs
- var panelYearRangeProps = buildProps({
- ...panelRangeSharedProps
- });
- var panelYearRangeEmits = [
- "pick",
- "set-picker-option",
- "calendar-change"
- ];
- // node_modules/element-plus/es/components/date-picker-panel/src/composables/use-year-range-header.mjs
- var useYearRangeHeader = ({
- unlinkPanels,
- leftDate,
- rightDate
- }) => {
- const leftPrevYear = () => {
- leftDate.value = leftDate.value.subtract(10, "year");
- if (!unlinkPanels.value) {
- rightDate.value = rightDate.value.subtract(10, "year");
- }
- };
- const rightNextYear = () => {
- if (!unlinkPanels.value) {
- leftDate.value = leftDate.value.add(10, "year");
- }
- rightDate.value = rightDate.value.add(10, "year");
- };
- const leftNextYear = () => {
- leftDate.value = leftDate.value.add(10, "year");
- };
- const rightPrevYear = () => {
- rightDate.value = rightDate.value.subtract(10, "year");
- };
- const leftLabel = computed(() => {
- const leftStartDate = Math.floor(leftDate.value.year() / 10) * 10;
- return `${leftStartDate}-${leftStartDate + 9}`;
- });
- const rightLabel = computed(() => {
- const rightStartDate = Math.floor(rightDate.value.year() / 10) * 10;
- return `${rightStartDate}-${rightStartDate + 9}`;
- });
- const leftYear = computed(() => {
- const leftEndDate = Math.floor(leftDate.value.year() / 10) * 10 + 9;
- return leftEndDate;
- });
- const rightYear = computed(() => {
- const rightStartDate = Math.floor(rightDate.value.year() / 10) * 10;
- return rightStartDate;
- });
- return {
- leftPrevYear,
- rightNextYear,
- leftNextYear,
- rightPrevYear,
- leftLabel,
- rightLabel,
- leftYear,
- rightYear
- };
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.mjs
- var step = 10;
- var unit3 = "year";
- var __default__53 = defineComponent({
- name: "DatePickerYearRange"
- });
- var _sfc_main360 = defineComponent({
- ...__default__53,
- props: panelYearRangeProps,
- emits: panelYearRangeEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const { lang } = useLocale();
- const leftDate = ref((0, import_dayjs16.default)().locale(lang.value));
- const rightDate = ref((0, import_dayjs16.default)().locale(lang.value).add(step, unit3));
- const isDefaultFormat = inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, void 0);
- const pickerBase = inject(PICKER_BASE_INJECTION_KEY);
- const { shortcuts, disabledDate, cellClassName } = pickerBase.props;
- const format2 = toRef(pickerBase.props, "format");
- const defaultValue = toRef(pickerBase.props, "defaultValue");
- const {
- minDate,
- maxDate,
- rangeState,
- ppNs,
- drpNs,
- handleChangeRange,
- handleRangeConfirm,
- handleShortcutClick,
- onSelect,
- onReset
- } = useRangePicker(props2, {
- defaultValue,
- leftDate,
- rightDate,
- step,
- unit: unit3,
- onParsedValueChanged
- });
- const {
- leftPrevYear,
- rightNextYear,
- leftNextYear,
- rightPrevYear,
- leftLabel,
- rightLabel,
- leftYear,
- rightYear
- } = useYearRangeHeader({
- unlinkPanels: toRef(props2, "unlinkPanels"),
- leftDate,
- rightDate
- });
- const hasShortcuts = computed(() => !!shortcuts.length);
- const panelKls = computed(() => [
- ppNs.b(),
- drpNs.b(),
- ppNs.is("border", props2.border),
- ppNs.is("disabled", props2.disabled),
- {
- "has-sidebar": Boolean(useSlots().sidebar) || hasShortcuts.value
- }
- ]);
- const leftPanelKls = computed(() => {
- return {
- content: [ppNs.e("content"), drpNs.e("content"), "is-left"],
- arrowLeftBtn: [ppNs.e("icon-btn"), "d-arrow-left"],
- arrowRightBtn: [
- ppNs.e("icon-btn"),
- { [ppNs.is("disabled")]: !enableYearArrow.value },
- "d-arrow-right"
- ]
- };
- });
- const rightPanelKls = computed(() => {
- return {
- content: [ppNs.e("content"), drpNs.e("content"), "is-right"],
- arrowLeftBtn: [
- ppNs.e("icon-btn"),
- { "is-disabled": !enableYearArrow.value },
- "d-arrow-left"
- ],
- arrowRightBtn: [ppNs.e("icon-btn"), "d-arrow-right"]
- };
- });
- const enableYearArrow = computed(() => {
- return props2.unlinkPanels && rightYear.value > leftYear.value + 1;
- });
- const handleRangePick = (val, close2 = true) => {
- const minDate_ = val.minDate;
- const maxDate_ = val.maxDate;
- if (maxDate.value === maxDate_ && minDate.value === minDate_) {
- return;
- }
- emit("calendar-change", [minDate_.toDate(), maxDate_ && maxDate_.toDate()]);
- maxDate.value = maxDate_;
- minDate.value = minDate_;
- if (!close2)
- return;
- handleRangeConfirm();
- };
- const parseUserInput = (value) => {
- return correctlyParseUserInput(value, format2.value, lang.value, isDefaultFormat);
- };
- const formatToString = (value) => {
- return isArray(value) ? value.map((day) => day.format(format2.value)) : value.format(format2.value);
- };
- const isValidValue3 = (date4) => {
- return isValidRange2(date4) && (disabledDate ? !disabledDate(date4[0].toDate()) && !disabledDate(date4[1].toDate()) : true);
- };
- const handleClear = () => {
- const defaultArr = getDefaultValue(unref(defaultValue), {
- lang: unref(lang),
- step,
- unit: unit3,
- unlinkPanels: props2.unlinkPanels
- });
- leftDate.value = defaultArr[0];
- rightDate.value = defaultArr[1];
- emit("pick", null);
- };
- function onParsedValueChanged(minDate2, maxDate2) {
- if (props2.unlinkPanels && maxDate2) {
- const minDateYear = (minDate2 == null ? void 0 : minDate2.year()) || 0;
- const maxDateYear = maxDate2.year();
- rightDate.value = minDateYear + step > maxDateYear ? maxDate2.add(step, unit3) : maxDate2;
- } else {
- rightDate.value = leftDate.value.add(step, unit3);
- }
- }
- watch(() => props2.visible, (visible) => {
- if (!visible && rangeState.value.selecting) {
- onReset(props2.parsedValue);
- onSelect(false);
- }
- });
- emit("set-picker-option", ["isValidValue", isValidValue3]);
- emit("set-picker-option", ["parseUserInput", parseUserInput]);
- emit("set-picker-option", ["formatToString", formatToString]);
- emit("set-picker-option", ["handleClear", handleClear]);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(panelKls))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body-wrapper"))
- }, [
- renderSlot(_ctx.$slots, "sidebar", {
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }),
- unref(hasShortcuts) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ppNs).e("sidebar"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), (shortcut, key) => {
- return openBlock(), createElementBlock("button", {
- key,
- type: "button",
- class: normalizeClass(unref(ppNs).e("shortcut")),
- disabled: _ctx.disabled,
- onClick: ($event) => unref(handleShortcutClick)(shortcut)
- }, toDisplayString(shortcut.text), 11, ["disabled", "onClick"]);
- }), 128))
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ppNs).e("body"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(leftPanelKls).content)
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(drpNs).e("header"))
- }, [
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass(unref(leftPanelKls).arrowLeftBtn),
- disabled: _ctx.disabled,
- onClick: unref(leftPrevYear)
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"]),
- _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- disabled: !unref(enableYearArrow) || _ctx.disabled,
- class: normalizeClass(unref(leftPanelKls).arrowRightBtn),
- onClick: unref(leftNextYear)
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", null, toDisplayString(unref(leftLabel)), 1)
- ], 2),
- createVNode(YearTable, {
- "selection-mode": "range",
- date: leftDate.value,
- "min-date": unref(minDate),
- "max-date": unref(maxDate),
- "range-state": unref(rangeState),
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "cell-class-name": unref(cellClassName),
- onChangerange: unref(handleChangeRange),
- onPick: handleRangePick,
- onSelect: unref(onSelect)
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(rightPanelKls).content)
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(drpNs).e("header"))
- }, [
- _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- disabled: !unref(enableYearArrow) || _ctx.disabled,
- class: normalizeClass(unref(rightPanelKls).arrowLeftBtn),
- onClick: unref(rightPrevYear)
- }, [
- renderSlot(_ctx.$slots, "prev-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_left_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"])) : createCommentVNode("v-if", true),
- createBaseVNode("button", {
- type: "button",
- class: normalizeClass(unref(rightPanelKls).arrowRightBtn),
- disabled: _ctx.disabled,
- onClick: unref(rightNextYear)
- }, [
- renderSlot(_ctx.$slots, "next-year", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(d_arrow_right_default))
- ]),
- _: 1
- })
- ])
- ], 10, ["disabled", "onClick"]),
- createBaseVNode("div", null, toDisplayString(unref(rightLabel)), 1)
- ], 2),
- createVNode(YearTable, {
- "selection-mode": "range",
- date: rightDate.value,
- "min-date": unref(minDate),
- "max-date": unref(maxDate),
- "range-state": unref(rangeState),
- "disabled-date": unref(disabledDate),
- disabled: _ctx.disabled,
- "cell-class-name": unref(cellClassName),
- onChangerange: unref(handleChangeRange),
- onPick: handleRangePick,
- onSelect: unref(onSelect)
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "disabled", "cell-class-name", "onChangerange", "onSelect"])
- ], 2)
- ], 2)
- ], 2)
- ], 2);
- };
- }
- });
- var YearRangePickPanel = _export_sfc(_sfc_main360, [["__file", "panel-year-range.vue"]]);
- // node_modules/element-plus/es/components/date-picker-panel/src/panel-utils.mjs
- var getPanel = function(type4) {
- switch (type4) {
- case "daterange":
- case "datetimerange": {
- return DateRangePickPanel;
- }
- case "monthrange": {
- return MonthRangePickPanel;
- }
- case "yearrange": {
- return YearRangePickPanel;
- }
- default: {
- return DatePickPanel;
- }
- }
- };
- // node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.mjs
- function _isSlot(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- import_dayjs17.default.extend(import_localeData2.default);
- import_dayjs17.default.extend(import_advancedFormat.default);
- import_dayjs17.default.extend(import_customParseFormat2.default);
- import_dayjs17.default.extend(import_weekOfYear.default);
- import_dayjs17.default.extend(import_weekYear.default);
- import_dayjs17.default.extend(import_dayOfYear.default);
- import_dayjs17.default.extend(import_isSameOrAfter.default);
- import_dayjs17.default.extend(import_isSameOrBefore.default);
- var DatePickerPanel = defineComponent({
- name: "ElDatePickerPanel",
- install: null,
- props: datePickerPanelProps,
- emits: [UPDATE_MODEL_EVENT, "calendar-change", "panel-change", "visible-change", "pick"],
- setup(props2, {
- slots,
- emit
- }) {
- const ns = useNamespace("picker-panel");
- const pickerInjection = inject(PICKER_BASE_INJECTION_KEY, void 0);
- if (isUndefined2(pickerInjection)) {
- const _props = reactive({
- ...toRefs(props2)
- });
- provide(PICKER_BASE_INJECTION_KEY, {
- props: _props
- });
- }
- provide(ROOT_PICKER_INJECTION_KEY, {
- slots,
- pickerNs: ns
- });
- const {
- parsedValue,
- onCalendarChange,
- onPanelChange,
- onSetPickerOption,
- onPick
- } = inject(ROOT_COMMON_PICKER_INJECTION_KEY, () => useCommonPicker(props2, emit), true);
- return () => {
- const Component = getPanel(props2.type);
- return createVNode(Component, mergeProps(props2, {
- "parsedValue": parsedValue.value,
- "onSet-picker-option": onSetPickerOption,
- "onCalendar-change": onCalendarChange,
- "onPanel-change": onPanelChange,
- "onPick": onPick
- }), _isSlot(slots) ? slots : {
- default: () => [slots]
- });
- };
- }
- });
- // node_modules/element-plus/es/components/date-picker-panel/index.mjs
- var ElDatePickerPanel = withInstall(DatePickerPanel);
- // node_modules/element-plus/es/components/date-picker/src/props.mjs
- var datePickerProps = buildProps({
- ...timePickerDefaultProps,
- type: {
- type: definePropType(String),
- default: "date"
- }
- });
- // node_modules/element-plus/es/components/date-picker/src/date-picker.mjs
- function _isSlot2(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var DatePicker = defineComponent({
- name: "ElDatePicker",
- install: null,
- props: datePickerProps,
- emits: [UPDATE_MODEL_EVENT],
- setup(props2, {
- expose,
- emit,
- slots
- }) {
- const isDefaultFormat = computed(() => {
- return !props2.format;
- });
- provide(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, isDefaultFormat);
- provide(PICKER_POPPER_OPTIONS_INJECTION_KEY, reactive(toRef(props2, "popperOptions")));
- const commonPicker = ref();
- const refProps = {
- focus: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.focus();
- },
- blur: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.blur();
- },
- handleOpen: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.handleOpen();
- },
- handleClose: () => {
- var _a2;
- (_a2 = commonPicker.value) == null ? void 0 : _a2.handleClose();
- }
- };
- expose(refProps);
- const onModelValueUpdated = (val) => {
- emit(UPDATE_MODEL_EVENT, val);
- };
- return () => {
- var _a2;
- const format2 = (_a2 = props2.format) != null ? _a2 : DEFAULT_FORMATS_DATEPICKER[props2.type] || DEFAULT_FORMATS_DATE;
- return createVNode(CommonPicker, mergeProps(props2, {
- "format": format2,
- "type": props2.type,
- "ref": commonPicker,
- "onUpdate:modelValue": onModelValueUpdated
- }), {
- default: (scopedProps) => createVNode(ElDatePickerPanel, mergeProps({
- "border": false
- }, scopedProps), _isSlot2(slots) ? slots : {
- default: () => [slots]
- }),
- "range-separator": slots["range-separator"]
- });
- };
- }
- });
- // node_modules/element-plus/es/components/date-picker/index.mjs
- var ElDatePicker = withInstall(DatePicker);
- // node_modules/element-plus/es/components/descriptions/src/token.mjs
- var descriptionsKey = Symbol("elDescriptions");
- // node_modules/element-plus/es/components/descriptions/src/descriptions-cell.mjs
- var ElDescriptionsCell = defineComponent({
- name: "ElDescriptionsCell",
- props: {
- cell: {
- type: Object
- },
- tag: {
- type: String,
- default: "td"
- },
- type: {
- type: String
- }
- },
- setup() {
- const descriptions = inject(descriptionsKey, {});
- return {
- descriptions
- };
- },
- render() {
- var _a2;
- const item = getNormalizedProps(this.cell);
- const directives = (((_a2 = this.cell) == null ? void 0 : _a2.dirs) || []).map((dire) => {
- const { dir, arg, modifiers, value } = dire;
- return [dir, value, arg, modifiers];
- });
- const { border, direction: direction2 } = this.descriptions;
- const isVertical = direction2 === "vertical";
- const renderLabel = () => {
- var _a22, _b, _c;
- return ((_c = (_b = (_a22 = this.cell) == null ? void 0 : _a22.children) == null ? void 0 : _b.label) == null ? void 0 : _c.call(_b)) || item.label;
- };
- const renderContent = () => {
- var _a22, _b, _c;
- return (_c = (_b = (_a22 = this.cell) == null ? void 0 : _a22.children) == null ? void 0 : _b.default) == null ? void 0 : _c.call(_b);
- };
- const span = item.span;
- const rowspan = item.rowspan;
- const align = item.align ? `is-${item.align}` : "";
- const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : align;
- const className = item.className;
- const labelClassName = item.labelClassName;
- const width = this.type === "label" ? item.labelWidth || this.descriptions.labelWidth || item.width : item.width;
- const style = {
- width: addUnit(width),
- minWidth: addUnit(item.minWidth)
- };
- const ns = useNamespace("descriptions");
- switch (this.type) {
- case "label":
- return withDirectives(h(this.tag, {
- style,
- class: [
- ns.e("cell"),
- ns.e("label"),
- ns.is("bordered-label", border),
- ns.is("vertical-label", isVertical),
- labelAlign,
- labelClassName
- ],
- colSpan: isVertical ? span : 1,
- rowspan: isVertical ? 1 : rowspan
- }, renderLabel()), directives);
- case "content":
- return withDirectives(h(this.tag, {
- style,
- class: [
- ns.e("cell"),
- ns.e("content"),
- ns.is("bordered-content", border),
- ns.is("vertical-content", isVertical),
- align,
- className
- ],
- colSpan: isVertical ? span : span * 2 - 1,
- rowspan: isVertical ? rowspan * 2 - 1 : rowspan
- }, renderContent()), directives);
- default: {
- const label = renderLabel();
- const labelStyle = {};
- const width2 = addUnit(item.labelWidth || this.descriptions.labelWidth);
- if (width2) {
- labelStyle.width = width2;
- labelStyle.display = "inline-block";
- }
- return withDirectives(h("td", {
- style,
- class: [ns.e("cell"), align],
- colSpan: span,
- rowspan
- }, [
- !isNil_default(label) ? h("span", {
- style: labelStyle,
- class: [ns.e("label"), labelClassName]
- }, label) : void 0,
- h("span", {
- class: [ns.e("content"), className]
- }, renderContent())
- ]), directives);
- }
- }
- }
- });
- // node_modules/element-plus/es/components/descriptions/src/descriptions-row.mjs
- var descriptionsRowProps = buildProps({
- row: {
- type: definePropType(Array),
- default: () => []
- }
- });
- // node_modules/element-plus/es/components/descriptions/src/descriptions-row2.mjs
- var __default__54 = defineComponent({
- name: "ElDescriptionsRow"
- });
- var _sfc_main361 = defineComponent({
- ...__default__54,
- props: descriptionsRowProps,
- setup(__props) {
- const descriptions = inject(descriptionsKey, {});
- return (_ctx, _cache) => {
- return unref(descriptions).direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createBaseVNode("tr", null, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
- return openBlock(), createBlock(unref(ElDescriptionsCell), {
- key: `tr1-${_index}`,
- cell,
- tag: "th",
- type: "label"
- }, null, 8, ["cell"]);
- }), 128))
- ]),
- createBaseVNode("tr", null, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
- return openBlock(), createBlock(unref(ElDescriptionsCell), {
- key: `tr2-${_index}`,
- cell,
- tag: "td",
- type: "content"
- }, null, 8, ["cell"]);
- }), 128))
- ])
- ], 64)) : (openBlock(), createElementBlock("tr", { key: 1 }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
- return openBlock(), createElementBlock(Fragment, {
- key: `tr3-${_index}`
- }, [
- unref(descriptions).border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createVNode(unref(ElDescriptionsCell), {
- cell,
- tag: "td",
- type: "label"
- }, null, 8, ["cell"]),
- createVNode(unref(ElDescriptionsCell), {
- cell,
- tag: "td",
- type: "content"
- }, null, 8, ["cell"])
- ], 64)) : (openBlock(), createBlock(unref(ElDescriptionsCell), {
- key: 1,
- cell,
- tag: "td",
- type: "both"
- }, null, 8, ["cell"]))
- ], 64);
- }), 128))
- ]));
- };
- }
- });
- var ElDescriptionsRow = _export_sfc(_sfc_main361, [["__file", "descriptions-row.vue"]]);
- // node_modules/element-plus/es/components/descriptions/src/description.mjs
- var descriptionProps = buildProps({
- border: Boolean,
- column: {
- type: Number,
- default: 3
- },
- direction: {
- type: String,
- values: ["horizontal", "vertical"],
- default: "horizontal"
- },
- size: useSizeProp,
- title: {
- type: String,
- default: ""
- },
- extra: {
- type: String,
- default: ""
- },
- labelWidth: {
- type: [String, Number],
- default: ""
- }
- });
- // node_modules/element-plus/es/components/descriptions/src/constants.mjs
- var COMPONENT_NAME11 = "ElDescriptionsItem";
- // node_modules/element-plus/es/components/descriptions/src/description2.mjs
- var __default__55 = defineComponent({
- name: "ElDescriptions"
- });
- var _sfc_main362 = defineComponent({
- ...__default__55,
- props: descriptionProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("descriptions");
- const descriptionsSize = useFormSize();
- const slots = useSlots();
- provide(descriptionsKey, props2);
- const descriptionKls = computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
- const filledNode = (node, span, count, isLast = false) => {
- if (!node.props) {
- node.props = {};
- }
- if (span > count) {
- node.props.span = count;
- }
- if (isLast) {
- node.props.span = span;
- }
- return node;
- };
- const getRows = () => {
- if (!slots.default)
- return [];
- const children = flattedChildren(slots.default()).filter((node) => {
- var _a2;
- return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === COMPONENT_NAME11;
- });
- const rows = [];
- let temp = [];
- let count = props2.column;
- let totalSpan = 0;
- const rowspanTemp = [];
- children.forEach((node, index) => {
- var _a2, _b, _c;
- const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
- const rowspan = ((_b = node.props) == null ? void 0 : _b.rowspan) || 1;
- const rowNo = rows.length;
- rowspanTemp[rowNo] || (rowspanTemp[rowNo] = 0);
- if (rowspan > 1) {
- for (let i = 1; i < rowspan; i++) {
- rowspanTemp[_c = rowNo + i] || (rowspanTemp[_c] = 0);
- rowspanTemp[rowNo + i]++;
- totalSpan++;
- }
- }
- if (rowspanTemp[rowNo] > 0) {
- count -= rowspanTemp[rowNo];
- rowspanTemp[rowNo] = 0;
- }
- if (index < children.length - 1) {
- totalSpan += span > count ? count : span;
- }
- if (index === children.length - 1) {
- const lastSpan = props2.column - totalSpan % props2.column;
- temp.push(filledNode(node, lastSpan, count, true));
- rows.push(temp);
- return;
- }
- if (span < count) {
- count -= span;
- temp.push(node);
- } else {
- temp.push(filledNode(node, span, count));
- rows.push(temp);
- count = props2.column;
- temp = [];
- }
- });
- return rows;
- };
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(descriptionKls))
- }, [
- _ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("header"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("title"))
- }, [
- renderSlot(_ctx.$slots, "title", {}, () => [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("extra"))
- }, [
- renderSlot(_ctx.$slots, "extra", {}, () => [
- createTextVNode(toDisplayString(_ctx.extra), 1)
- ])
- ], 2)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("body"))
- }, [
- createBaseVNode("table", {
- class: normalizeClass([unref(ns).e("table"), unref(ns).is("bordered", _ctx.border)])
- }, [
- createBaseVNode("tbody", null, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(getRows(), (row, _index) => {
- return openBlock(), createBlock(ElDescriptionsRow, {
- key: _index,
- row
- }, null, 8, ["row"]);
- }), 128))
- ])
- ], 2)
- ], 2)
- ], 2);
- };
- }
- });
- var Descriptions = _export_sfc(_sfc_main362, [["__file", "description.vue"]]);
- // node_modules/element-plus/es/constants/column-alignment.mjs
- var columnAlignment = ["left", "center", "right"];
- // node_modules/element-plus/es/components/descriptions/src/description-item.mjs
- var descriptionItemProps = buildProps({
- label: {
- type: String,
- default: ""
- },
- span: {
- type: Number,
- default: 1
- },
- rowspan: {
- type: Number,
- default: 1
- },
- width: {
- type: [String, Number],
- default: ""
- },
- minWidth: {
- type: [String, Number],
- default: ""
- },
- labelWidth: {
- type: [String, Number],
- default: ""
- },
- align: {
- type: String,
- values: columnAlignment,
- default: "left"
- },
- labelAlign: {
- type: String,
- values: columnAlignment
- },
- className: {
- type: String,
- default: ""
- },
- labelClassName: {
- type: String,
- default: ""
- }
- });
- var DescriptionItem = defineComponent({
- name: COMPONENT_NAME11,
- props: descriptionItemProps
- });
- // node_modules/element-plus/es/components/descriptions/index.mjs
- var ElDescriptions = withInstall(Descriptions, {
- DescriptionsItem: DescriptionItem
- });
- var ElDescriptionsItem = withNoopInstall(DescriptionItem);
- // node_modules/element-plus/es/hooks/use-same-target/index.mjs
- var useSameTarget = (handleClick) => {
- if (!handleClick) {
- return { onClick: NOOP, onMousedown: NOOP, onMouseup: NOOP };
- }
- let mousedownTarget = false;
- let mouseupTarget = false;
- const onClick = (e) => {
- if (mousedownTarget && mouseupTarget) {
- handleClick(e);
- }
- mousedownTarget = mouseupTarget = false;
- };
- const onMousedown = (e) => {
- mousedownTarget = e.target === e.currentTarget;
- };
- const onMouseup = (e) => {
- mouseupTarget = e.target === e.currentTarget;
- };
- return { onClick, onMousedown, onMouseup };
- };
- // node_modules/element-plus/es/components/overlay/src/overlay.mjs
- var overlayProps = buildProps({
- mask: {
- type: Boolean,
- default: true
- },
- customMaskEvent: Boolean,
- overlayClass: {
- type: definePropType([
- String,
- Array,
- Object
- ])
- },
- zIndex: {
- type: definePropType([String, Number])
- }
- });
- var overlayEmits = {
- click: (evt) => evt instanceof MouseEvent
- };
- var BLOCK = "overlay";
- var Overlay = defineComponent({
- name: "ElOverlay",
- props: overlayProps,
- emits: overlayEmits,
- setup(props2, { slots, emit }) {
- const ns = useNamespace(BLOCK);
- const onMaskClick = (e) => {
- emit("click", e);
- };
- const { onClick, onMousedown, onMouseup } = useSameTarget(props2.customMaskEvent ? void 0 : onMaskClick);
- return () => {
- return props2.mask ? createVNode("div", {
- class: [ns.b(), props2.overlayClass],
- style: {
- zIndex: props2.zIndex
- },
- onClick,
- onMousedown,
- onMouseup
- }, [renderSlot(slots, "default")], PatchFlags.STYLE | PatchFlags.CLASS | PatchFlags.PROPS, ["onClick", "onMouseup", "onMousedown"]) : h("div", {
- class: props2.overlayClass,
- style: {
- zIndex: props2.zIndex,
- position: "fixed",
- top: "0px",
- right: "0px",
- bottom: "0px",
- left: "0px"
- }
- }, [renderSlot(slots, "default")]);
- };
- }
- });
- // node_modules/element-plus/es/components/overlay/index.mjs
- var ElOverlay = Overlay;
- // node_modules/element-plus/es/components/dialog/src/constants.mjs
- var dialogInjectionKey = Symbol("dialogInjectionKey");
- var DEFAULT_DIALOG_TRANSITION = "dialog-fade";
- // node_modules/element-plus/es/components/dialog/src/dialog-content.mjs
- var dialogContentProps = buildProps({
- center: Boolean,
- alignCenter: {
- type: Boolean,
- default: void 0
- },
- closeIcon: {
- type: iconPropType
- },
- draggable: {
- type: Boolean,
- default: void 0
- },
- overflow: {
- type: Boolean,
- default: void 0
- },
- fullscreen: Boolean,
- headerClass: String,
- bodyClass: String,
- footerClass: String,
- showClose: {
- type: Boolean,
- default: true
- },
- title: {
- type: String,
- default: ""
- },
- ariaLevel: {
- type: String,
- default: "2"
- }
- });
- var dialogContentEmits = {
- close: () => true
- };
- // node_modules/element-plus/es/hooks/use-draggable/index.mjs
- var useDraggable = (targetRef, dragRef, draggable2, overflow) => {
- const transform2 = {
- offsetX: 0,
- offsetY: 0
- };
- const isDragging2 = ref(false);
- const adjustPosition = (moveX, moveY) => {
- if (targetRef.value) {
- const { offsetX, offsetY } = transform2;
- const targetRect = targetRef.value.getBoundingClientRect();
- const targetLeft = targetRect.left;
- const targetTop = targetRect.top;
- const targetWidth = targetRect.width;
- const targetHeight = targetRect.height;
- const clientWidth = document.documentElement.clientWidth;
- const clientHeight = document.documentElement.clientHeight;
- const minLeft = -targetLeft + offsetX;
- const minTop = -targetTop + offsetY;
- const maxLeft = clientWidth - targetLeft - targetWidth + offsetX;
- const maxTop = clientHeight - targetTop - (targetHeight < clientHeight ? targetHeight : 0) + offsetY;
- if (!(overflow == null ? void 0 : overflow.value)) {
- moveX = Math.min(Math.max(moveX, minLeft), maxLeft);
- moveY = Math.min(Math.max(moveY, minTop), maxTop);
- }
- transform2.offsetX = moveX;
- transform2.offsetY = moveY;
- targetRef.value.style.transform = `translate(${addUnit(moveX)}, ${addUnit(moveY)})`;
- }
- };
- const onMousedown = (e) => {
- const downX = e.clientX;
- const downY = e.clientY;
- const { offsetX, offsetY } = transform2;
- const onMousemove = (e2) => {
- if (!isDragging2.value) {
- isDragging2.value = true;
- }
- const moveX = offsetX + e2.clientX - downX;
- const moveY = offsetY + e2.clientY - downY;
- adjustPosition(moveX, moveY);
- };
- const onMouseup = () => {
- isDragging2.value = false;
- document.removeEventListener("mousemove", onMousemove);
- document.removeEventListener("mouseup", onMouseup);
- };
- document.addEventListener("mousemove", onMousemove);
- document.addEventListener("mouseup", onMouseup);
- };
- const onDraggable = () => {
- if (dragRef.value && targetRef.value) {
- dragRef.value.addEventListener("mousedown", onMousedown);
- window.addEventListener("resize", updatePosition);
- }
- };
- const offDraggable = () => {
- if (dragRef.value && targetRef.value) {
- dragRef.value.removeEventListener("mousedown", onMousedown);
- window.removeEventListener("resize", updatePosition);
- }
- };
- const resetPosition = () => {
- transform2.offsetX = 0;
- transform2.offsetY = 0;
- if (targetRef.value) {
- targetRef.value.style.transform = "";
- }
- };
- const updatePosition = () => {
- const { offsetX, offsetY } = transform2;
- adjustPosition(offsetX, offsetY);
- };
- onMounted(() => {
- watchEffect(() => {
- if (draggable2.value) {
- onDraggable();
- } else {
- offDraggable();
- }
- });
- });
- onBeforeUnmount(() => {
- offDraggable();
- });
- return {
- isDragging: isDragging2,
- resetPosition,
- updatePosition
- };
- };
- // node_modules/element-plus/es/utils/vue/refs.mjs
- var composeRefs = (...refs) => {
- return (el) => {
- refs.forEach((ref2) => {
- if (isFunction(ref2)) {
- ref2(el);
- } else {
- ref2.value = el;
- }
- });
- };
- };
- // node_modules/element-plus/es/components/dialog/src/dialog-content2.mjs
- var __default__56 = defineComponent({ name: "ElDialogContent" });
- var _sfc_main363 = defineComponent({
- ...__default__56,
- props: dialogContentProps,
- emits: dialogContentEmits,
- setup(__props, { expose }) {
- const props2 = __props;
- const { t } = useLocale();
- const { Close } = CloseComponents;
- const { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey);
- const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY);
- const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
- const draggable2 = computed(() => !!props2.draggable);
- const overflow = computed(() => !!props2.overflow);
- const { resetPosition, updatePosition, isDragging: isDragging2 } = useDraggable(dialogRef, headerRef, draggable2, overflow);
- const dialogKls = computed(() => [
- ns.b(),
- ns.is("fullscreen", props2.fullscreen),
- ns.is("draggable", draggable2.value),
- ns.is("dragging", isDragging2.value),
- ns.is("align-center", !!props2.alignCenter),
- { [ns.m("center")]: props2.center }
- ]);
- expose({
- resetPosition,
- updatePosition
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref: unref(composedDialogRef),
- class: normalizeClass(unref(dialogKls)),
- style: normalizeStyle(unref(style)),
- tabindex: "-1"
- }, [
- createBaseVNode("header", {
- ref_key: "headerRef",
- ref: headerRef,
- class: normalizeClass([unref(ns).e("header"), _ctx.headerClass, { "show-close": _ctx.showClose }])
- }, [
- renderSlot(_ctx.$slots, "header", {}, () => [
- createBaseVNode("span", {
- role: "heading",
- "aria-level": _ctx.ariaLevel,
- class: normalizeClass(unref(ns).e("title"))
- }, toDisplayString(_ctx.title), 11, ["aria-level"])
- ]),
- _ctx.showClose ? (openBlock(), createElementBlock("button", {
- key: 0,
- "aria-label": unref(t)("el.dialog.close"),
- class: normalizeClass(unref(ns).e("headerbtn")),
- type: "button",
- onClick: ($event) => _ctx.$emit("close")
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(ns).e("close"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || unref(Close))))
- ]),
- _: 1
- }, 8, ["class"])
- ], 10, ["aria-label", "onClick"])) : createCommentVNode("v-if", true)
- ], 2),
- createBaseVNode("div", {
- id: unref(bodyId),
- class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 10, ["id"]),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", {
- key: 0,
- class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 2)) : createCommentVNode("v-if", true)
- ], 6);
- };
- }
- });
- var ElDialogContent = _export_sfc(_sfc_main363, [["__file", "dialog-content.vue"]]);
- // node_modules/element-plus/es/components/dialog/src/dialog.mjs
- var dialogProps = buildProps({
- ...dialogContentProps,
- appendToBody: Boolean,
- appendTo: {
- type: teleportProps.to.type,
- default: "body"
- },
- beforeClose: {
- type: definePropType(Function)
- },
- destroyOnClose: Boolean,
- closeOnClickModal: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- lockScroll: {
- type: Boolean,
- default: true
- },
- modal: {
- type: Boolean,
- default: true
- },
- modalPenetrable: Boolean,
- openDelay: {
- type: Number,
- default: 0
- },
- closeDelay: {
- type: Number,
- default: 0
- },
- top: {
- type: String
- },
- modelValue: Boolean,
- modalClass: String,
- headerClass: String,
- bodyClass: String,
- footerClass: String,
- width: {
- type: [String, Number]
- },
- zIndex: {
- type: Number
- },
- trapFocus: Boolean,
- headerAriaLevel: {
- type: String,
- default: "2"
- },
- transition: {
- type: definePropType([String, Object]),
- default: void 0
- }
- });
- var dialogEmits = {
- open: () => true,
- opened: () => true,
- close: () => true,
- closed: () => true,
- [UPDATE_MODEL_EVENT]: (value) => isBoolean2(value),
- openAutoFocus: () => true,
- closeAutoFocus: () => true
- };
- var dialogContextKey = Symbol("dialogContextKey");
- // node_modules/element-plus/es/hooks/use-lockscreen/index.mjs
- var useLockscreen = (trigger, options = {}) => {
- if (!isRef(trigger)) {
- throwError("[useLockscreen]", "You need to pass a ref param to this function");
- }
- const ns = options.ns || useNamespace("popup");
- const hiddenCls = computed(() => ns.bm("parent", "hidden"));
- if (!isClient || hasClass(document.body, hiddenCls.value)) {
- return;
- }
- let scrollBarWidth2 = 0;
- let withoutHiddenClass = false;
- let bodyWidth = "0";
- const cleanup = () => {
- setTimeout(() => {
- if (typeof document === "undefined")
- return;
- if (withoutHiddenClass && document) {
- document.body.style.width = bodyWidth;
- removeClass(document.body, hiddenCls.value);
- }
- }, 200);
- };
- watch(trigger, (val) => {
- if (!val) {
- cleanup();
- return;
- }
- withoutHiddenClass = !hasClass(document.body, hiddenCls.value);
- if (withoutHiddenClass) {
- bodyWidth = document.body.style.width;
- addClass(document.body, hiddenCls.value);
- }
- scrollBarWidth2 = getScrollBarWidth(ns.namespace.value);
- const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
- const bodyOverflowY = getStyle(document.body, "overflowY");
- if (scrollBarWidth2 > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
- document.body.style.width = `calc(100% - ${scrollBarWidth2}px)`;
- }
- });
- onScopeDispose(() => cleanup());
- };
- // node_modules/element-plus/es/components/dialog/src/use-dialog.mjs
- var useDialog = (props2, targetRef) => {
- var _a2;
- const instance = getCurrentInstance();
- const emit = instance.emit;
- const { nextZIndex } = useZIndex();
- let lastPosition = "";
- const titleId = useId();
- const bodyId = useId();
- const visible = ref(false);
- const closed = ref(false);
- const rendered = ref(false);
- const zIndex2 = ref((_a2 = props2.zIndex) != null ? _a2 : nextZIndex());
- let openTimer = void 0;
- let closeTimer = void 0;
- const config = useGlobalConfig();
- const namespace = computed(() => {
- var _a22, _b;
- return (_b = (_a22 = config.value) == null ? void 0 : _a22.namespace) != null ? _b : defaultNamespace;
- });
- const globalConfig2 = computed(() => {
- var _a22;
- return (_a22 = config.value) == null ? void 0 : _a22.dialog;
- });
- const style = computed(() => {
- const style2 = {};
- const varPrefix = `--${namespace.value}-dialog`;
- if (!props2.fullscreen) {
- if (props2.top) {
- style2[`${varPrefix}-margin-top`] = props2.top;
- }
- if (props2.width) {
- style2[`${varPrefix}-width`] = addUnit(props2.width);
- }
- }
- return style2;
- });
- const _draggable = computed(() => {
- var _a22, _b, _c;
- return ((_c = (_b = props2.draggable) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.draggable) != null ? _c : false) && !props2.fullscreen;
- });
- const _alignCenter = computed(() => {
- var _a22, _b, _c;
- return (_c = (_b = props2.alignCenter) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.alignCenter) != null ? _c : false;
- });
- const _overflow = computed(() => {
- var _a22, _b, _c;
- return (_c = (_b = props2.overflow) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.overflow) != null ? _c : false;
- });
- const overlayDialogStyle = computed(() => {
- if (_alignCenter.value) {
- return { display: "flex" };
- }
- return {};
- });
- const transitionConfig = computed(() => {
- var _a22, _b, _c;
- const transition = (_c = (_b = props2.transition) != null ? _b : (_a22 = globalConfig2.value) == null ? void 0 : _a22.transition) != null ? _c : DEFAULT_DIALOG_TRANSITION;
- const baseConfig = {
- name: transition,
- onAfterEnter: afterEnter,
- onBeforeLeave: beforeLeave,
- onAfterLeave: afterLeave
- };
- if (isObject(transition)) {
- const config2 = { ...transition };
- const _mergeHook = (userHook, defaultHook) => {
- return (el) => {
- if (isArray(userHook)) {
- userHook.forEach((fn2) => {
- if (isFunction(fn2))
- fn2(el);
- });
- } else if (isFunction(userHook)) {
- userHook(el);
- }
- defaultHook();
- };
- };
- config2.onAfterEnter = _mergeHook(config2.onAfterEnter, afterEnter);
- config2.onBeforeLeave = _mergeHook(config2.onBeforeLeave, beforeLeave);
- config2.onAfterLeave = _mergeHook(config2.onAfterLeave, afterLeave);
- if (!config2.name) {
- config2.name = DEFAULT_DIALOG_TRANSITION;
- }
- return config2;
- }
- return baseConfig;
- });
- function afterEnter() {
- emit("opened");
- }
- function afterLeave() {
- emit("closed");
- emit(UPDATE_MODEL_EVENT, false);
- if (props2.destroyOnClose) {
- rendered.value = false;
- }
- }
- function beforeLeave() {
- emit("close");
- }
- function open() {
- closeTimer == null ? void 0 : closeTimer();
- openTimer == null ? void 0 : openTimer();
- if (props2.openDelay && props2.openDelay > 0) {
- ({ stop: openTimer } = useTimeoutFn(() => doOpen(), props2.openDelay));
- } else {
- doOpen();
- }
- }
- function close2() {
- openTimer == null ? void 0 : openTimer();
- closeTimer == null ? void 0 : closeTimer();
- if (props2.closeDelay && props2.closeDelay > 0) {
- ({ stop: closeTimer } = useTimeoutFn(() => doClose(), props2.closeDelay));
- } else {
- doClose();
- }
- }
- function handleClose() {
- function hide2(shouldCancel) {
- if (shouldCancel)
- return;
- closed.value = true;
- visible.value = false;
- }
- if (props2.beforeClose) {
- props2.beforeClose(hide2);
- } else {
- close2();
- }
- }
- function onModalClick() {
- if (props2.closeOnClickModal) {
- handleClose();
- }
- }
- function doOpen() {
- if (!isClient)
- return;
- visible.value = true;
- }
- function doClose() {
- visible.value = false;
- }
- function onOpenAutoFocus() {
- emit("openAutoFocus");
- }
- function onCloseAutoFocus() {
- emit("closeAutoFocus");
- }
- function onFocusoutPrevented(event) {
- var _a22;
- if (((_a22 = event.detail) == null ? void 0 : _a22.focusReason) === "pointer") {
- event.preventDefault();
- }
- }
- if (props2.lockScroll) {
- useLockscreen(visible);
- }
- function onCloseRequested() {
- if (props2.closeOnPressEscape) {
- handleClose();
- }
- }
- watch(() => props2.zIndex, () => {
- var _a22;
- zIndex2.value = (_a22 = props2.zIndex) != null ? _a22 : nextZIndex();
- });
- watch(() => props2.modelValue, (val) => {
- var _a22;
- if (val) {
- closed.value = false;
- open();
- rendered.value = true;
- zIndex2.value = (_a22 = props2.zIndex) != null ? _a22 : nextZIndex();
- nextTick(() => {
- emit("open");
- if (targetRef.value) {
- targetRef.value.parentElement.scrollTop = 0;
- targetRef.value.parentElement.scrollLeft = 0;
- targetRef.value.scrollTop = 0;
- }
- });
- } else {
- if (visible.value) {
- close2();
- }
- }
- });
- watch(() => props2.fullscreen, (val) => {
- if (!targetRef.value)
- return;
- if (val) {
- lastPosition = targetRef.value.style.transform;
- targetRef.value.style.transform = "";
- } else {
- targetRef.value.style.transform = lastPosition;
- }
- });
- onMounted(() => {
- if (props2.modelValue) {
- visible.value = true;
- rendered.value = true;
- open();
- }
- });
- return {
- afterEnter,
- afterLeave,
- beforeLeave,
- handleClose,
- onModalClick,
- close: close2,
- doClose,
- onOpenAutoFocus,
- onCloseAutoFocus,
- onCloseRequested,
- onFocusoutPrevented,
- titleId,
- bodyId,
- closed,
- style,
- overlayDialogStyle,
- rendered,
- visible,
- zIndex: zIndex2,
- transitionConfig,
- _draggable,
- _alignCenter,
- _overflow
- };
- };
- // node_modules/element-plus/es/components/dialog/src/dialog2.mjs
- var __default__57 = defineComponent({
- name: "ElDialog",
- inheritAttrs: false
- });
- var _sfc_main364 = defineComponent({
- ...__default__57,
- props: dialogProps,
- emits: dialogEmits,
- setup(__props, { expose }) {
- const props2 = __props;
- const slots = useSlots();
- useDeprecated({
- scope: "el-dialog",
- from: "the title slot",
- replacement: "the header slot",
- version: "3.0.0",
- ref: "https://element-plus.org/en-US/component/dialog.html#slots"
- }, computed(() => !!slots.title));
- const ns = useNamespace("dialog");
- const dialogRef = ref();
- const headerRef = ref();
- const dialogContentRef = ref();
- const {
- visible,
- titleId,
- bodyId,
- style,
- overlayDialogStyle,
- rendered,
- transitionConfig,
- zIndex: zIndex2,
- _draggable,
- _alignCenter,
- _overflow,
- handleClose,
- onModalClick,
- onOpenAutoFocus,
- onCloseAutoFocus,
- onCloseRequested,
- onFocusoutPrevented
- } = useDialog(props2, dialogRef);
- provide(dialogInjectionKey, {
- dialogRef,
- headerRef,
- bodyId,
- ns,
- rendered,
- style
- });
- const overlayEvent = useSameTarget(onModalClick);
- const penetrable = computed(() => props2.modalPenetrable && !props2.modal && !props2.fullscreen);
- const resetPosition = () => {
- var _a2;
- (_a2 = dialogContentRef.value) == null ? void 0 : _a2.resetPosition();
- };
- expose({
- visible,
- dialogContentRef,
- resetPosition,
- handleClose
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTeleport), {
- to: _ctx.appendTo,
- disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
- }, {
- default: withCtx(() => [
- createVNode(Transition, mergeProps(unref(transitionConfig), { persisted: "" }), {
- default: withCtx(() => {
- var _a2;
- return [
- withDirectives(createVNode(unref(ElOverlay), {
- "custom-mask-event": "",
- mask: _ctx.modal,
- "overlay-class": [
- (_a2 = _ctx.modalClass) != null ? _a2 : "",
- `${unref(ns).namespace.value}-modal-dialog`,
- unref(ns).is("penetrable", unref(penetrable))
- ],
- "z-index": unref(zIndex2)
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- role: "dialog",
- "aria-modal": "true",
- "aria-label": _ctx.title || void 0,
- "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
- "aria-describedby": unref(bodyId),
- class: normalizeClass(`${unref(ns).namespace.value}-overlay-dialog`),
- style: normalizeStyle(unref(overlayDialogStyle)),
- onClick: unref(overlayEvent).onClick,
- onMousedown: unref(overlayEvent).onMousedown,
- onMouseup: unref(overlayEvent).onMouseup
- }, [
- createVNode(unref(ElFocusTrap), {
- loop: "",
- trapped: unref(visible),
- "focus-start-el": "container",
- onFocusAfterTrapped: unref(onOpenAutoFocus),
- onFocusAfterReleased: unref(onCloseAutoFocus),
- onFocusoutPrevented: unref(onFocusoutPrevented),
- onReleaseRequested: unref(onCloseRequested)
- }, {
- default: withCtx(() => [
- unref(rendered) ? (openBlock(), createBlock(ElDialogContent, mergeProps({
- key: 0,
- ref_key: "dialogContentRef",
- ref: dialogContentRef
- }, _ctx.$attrs, {
- center: _ctx.center,
- "align-center": unref(_alignCenter),
- "close-icon": _ctx.closeIcon,
- draggable: unref(_draggable),
- overflow: unref(_overflow),
- fullscreen: _ctx.fullscreen,
- "header-class": _ctx.headerClass,
- "body-class": _ctx.bodyClass,
- "footer-class": _ctx.footerClass,
- "show-close": _ctx.showClose,
- title: _ctx.title,
- "aria-level": _ctx.headerAriaLevel,
- onClose: unref(handleClose)
- }), createSlots({
- header: withCtx(() => [
- !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
- key: 0,
- close: unref(handleClose),
- titleId: unref(titleId),
- titleClass: unref(ns).e("title")
- }) : renderSlot(_ctx.$slots, "title", { key: 1 })
- ]),
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 2
- }, [
- _ctx.$slots.footer ? {
- name: "footer",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "footer")
- ])
- } : void 0
- ]), 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)
- ]),
- _: 3
- }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
- ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
- ]),
- _: 3
- }, 8, ["mask", "overlay-class", "z-index"]), [
- [vShow, unref(visible)]
- ])
- ];
- }),
- _: 3
- }, 16)
- ]),
- _: 3
- }, 8, ["to", "disabled"]);
- };
- }
- });
- var Dialog = _export_sfc(_sfc_main364, [["__file", "dialog.vue"]]);
- // node_modules/element-plus/es/components/dialog/index.mjs
- var ElDialog = withInstall(Dialog);
- // node_modules/element-plus/es/components/divider/src/divider.mjs
- var dividerProps = buildProps({
- direction: {
- type: String,
- values: ["horizontal", "vertical"],
- default: "horizontal"
- },
- contentPosition: {
- type: String,
- values: ["left", "center", "right"],
- default: "center"
- },
- borderStyle: {
- type: definePropType(String),
- default: "solid"
- }
- });
- // node_modules/element-plus/es/components/divider/src/divider2.mjs
- var __default__58 = defineComponent({
- name: "ElDivider"
- });
- var _sfc_main365 = defineComponent({
- ...__default__58,
- props: dividerProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("divider");
- const dividerStyle = computed(() => {
- return ns.cssVar({
- "border-style": props2.borderStyle
- });
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
- style: normalizeStyle(unref(dividerStyle)),
- role: "separator"
- }, [
- _ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)) : createCommentVNode("v-if", true)
- ], 6);
- };
- }
- });
- var Divider = _export_sfc(_sfc_main365, [["__file", "divider.vue"]]);
- // node_modules/element-plus/es/components/divider/index.mjs
- var ElDivider = withInstall(Divider);
- // node_modules/element-plus/es/components/splitter/src/splitter.mjs
- var splitterProps = buildProps({
- layout: {
- type: String,
- default: "horizontal",
- values: ["horizontal", "vertical"]
- },
- lazy: Boolean
- });
- // node_modules/element-plus/es/components/splitter/src/type.mjs
- var splitterRootContextKey = Symbol("splitterRootContextKey");
- // node_modules/element-plus/es/components/splitter/src/hooks/useContainer.mjs
- function useContainer(layout2) {
- const containerEl = ref();
- const { width, height } = useElementSize(containerEl);
- const containerSize = computed(() => {
- return layout2.value === "horizontal" ? width.value : height.value;
- });
- return { containerEl, containerSize };
- }
- // node_modules/element-plus/es/components/splitter/src/hooks/useSize.mjs
- function getPct(str) {
- return Number(str.slice(0, -1)) / 100;
- }
- function getPx(str) {
- return Number(str.slice(0, -2));
- }
- function isPct(itemSize3) {
- return isString(itemSize3) && itemSize3.endsWith("%");
- }
- function isPx(itemSize3) {
- return isString(itemSize3) && itemSize3.endsWith("px");
- }
- function useSize2(panels, containerSize) {
- const propSizes = computed(() => panels.value.map((i) => i.size));
- const panelCounts = computed(() => panels.value.length);
- const percentSizes = ref([]);
- watch([propSizes, panelCounts, containerSize], () => {
- var _a2;
- let ptgList = [];
- let emptyCount = 0;
- for (let i = 0; i < panelCounts.value; i += 1) {
- const itemSize3 = (_a2 = panels.value[i]) == null ? void 0 : _a2.size;
- if (isPct(itemSize3)) {
- ptgList[i] = getPct(itemSize3);
- } else if (isPx(itemSize3)) {
- ptgList[i] = getPx(itemSize3) / containerSize.value;
- } else if (itemSize3 || itemSize3 === 0) {
- const num = Number(itemSize3);
- if (!Number.isNaN(num)) {
- ptgList[i] = num / containerSize.value;
- }
- } else {
- emptyCount += 1;
- ptgList[i] = void 0;
- }
- }
- const totalPtg = ptgList.reduce((acc, ptg) => acc + (ptg || 0), 0);
- if (totalPtg > 1 || !emptyCount) {
- const scale = 1 / totalPtg;
- ptgList = ptgList.map((ptg) => ptg === void 0 ? 0 : ptg * scale);
- } else {
- const avgRest = (1 - totalPtg) / emptyCount;
- ptgList = ptgList.map((ptg) => ptg === void 0 ? avgRest : ptg);
- }
- percentSizes.value = ptgList;
- });
- const ptg2px = (ptg) => ptg * containerSize.value;
- const pxSizes = computed(() => percentSizes.value.map(ptg2px));
- return { percentSizes, pxSizes };
- }
- // node_modules/element-plus/es/components/splitter/src/hooks/useResize.mjs
- function useResize(panels, containerSize, pxSizes, lazy) {
- const ptg2px = (ptg) => ptg * containerSize.value || 0;
- function getLimitSize(str, defaultLimit) {
- if (isPct(str)) {
- return ptg2px(getPct(str));
- } else if (isPx(str)) {
- return getPx(str);
- }
- return str != null ? str : defaultLimit;
- }
- const lazyOffset = ref(0);
- const movingIndex = ref(null);
- let cachePxSizes = [];
- let updatePanelSizes = NOOP;
- const limitSizes = computed(() => panels.value.map((item) => [item.min, item.max]));
- watch(lazy, () => {
- if (lazyOffset.value) {
- const mouseup = new MouseEvent("mouseup", { bubbles: true });
- window.dispatchEvent(mouseup);
- }
- });
- const onMoveStart = (index) => {
- lazyOffset.value = 0;
- movingIndex.value = { index, confirmed: false };
- cachePxSizes = pxSizes.value;
- };
- const onMoving = (index, offset3) => {
- var _a2, _b;
- let confirmedIndex = null;
- if ((!movingIndex.value || !movingIndex.value.confirmed) && offset3 !== 0) {
- if (offset3 > 0) {
- confirmedIndex = index;
- movingIndex.value = { index, confirmed: true };
- } else {
- for (let i = index; i >= 0; i -= 1) {
- if (cachePxSizes[i] > 0) {
- confirmedIndex = i;
- movingIndex.value = { index: i, confirmed: true };
- break;
- }
- }
- }
- }
- const mergedIndex = (_b = confirmedIndex != null ? confirmedIndex : (_a2 = movingIndex.value) == null ? void 0 : _a2.index) != null ? _b : index;
- const numSizes = [...cachePxSizes];
- const nextIndex = mergedIndex + 1;
- const startMinSize = getLimitSize(limitSizes.value[mergedIndex][0], 0);
- const endMinSize = getLimitSize(limitSizes.value[nextIndex][0], 0);
- const startMaxSize = getLimitSize(limitSizes.value[mergedIndex][1], containerSize.value || 0);
- const endMaxSize = getLimitSize(limitSizes.value[nextIndex][1], containerSize.value || 0);
- let mergedOffset = offset3;
- if (numSizes[mergedIndex] + mergedOffset < startMinSize) {
- mergedOffset = startMinSize - numSizes[mergedIndex];
- }
- if (numSizes[nextIndex] - mergedOffset < endMinSize) {
- mergedOffset = numSizes[nextIndex] - endMinSize;
- }
- if (numSizes[mergedIndex] + mergedOffset > startMaxSize) {
- mergedOffset = startMaxSize - numSizes[mergedIndex];
- }
- if (numSizes[nextIndex] - mergedOffset > endMaxSize) {
- mergedOffset = numSizes[nextIndex] - endMaxSize;
- }
- numSizes[mergedIndex] += mergedOffset;
- numSizes[nextIndex] -= mergedOffset;
- lazyOffset.value = mergedOffset;
- updatePanelSizes = () => {
- panels.value.forEach((panel, index2) => {
- panel.size = numSizes[index2];
- });
- updatePanelSizes = NOOP;
- };
- if (!lazy.value) {
- updatePanelSizes();
- }
- };
- const onMoveEnd = () => {
- if (lazy.value) {
- updatePanelSizes();
- }
- lazyOffset.value = 0;
- movingIndex.value = null;
- cachePxSizes = [];
- };
- const cacheCollapsedSize = [];
- const onCollapse = (index, type4) => {
- if (!cacheCollapsedSize.length) {
- cacheCollapsedSize.push(...pxSizes.value);
- }
- const currentSizes = pxSizes.value;
- const currentIndex = type4 === "start" ? index : index + 1;
- const targetIndex = type4 === "start" ? index + 1 : index;
- const currentSize = currentSizes[currentIndex];
- const targetSize = currentSizes[targetIndex];
- if (currentSize !== 0 && targetSize !== 0) {
- currentSizes[currentIndex] = 0;
- currentSizes[targetIndex] += currentSize;
- cacheCollapsedSize[index] = currentSize;
- } else {
- const totalSize = currentSize + targetSize;
- const targetCacheCollapsedSize = cacheCollapsedSize[index];
- const currentCacheCollapsedSize = totalSize - targetCacheCollapsedSize;
- currentSizes[targetIndex] = targetCacheCollapsedSize;
- currentSizes[currentIndex] = currentCacheCollapsedSize;
- }
- panels.value.forEach((panel, index2) => {
- panel.size = currentSizes[index2];
- });
- };
- return {
- lazyOffset,
- onMoveStart,
- onMoving,
- onMoveEnd,
- movingIndex,
- onCollapse
- };
- }
- // node_modules/element-plus/es/components/splitter/src/splitter2.mjs
- var __default__59 = defineComponent({
- name: "ElSplitter"
- });
- var _sfc_main366 = defineComponent({
- ...__default__59,
- props: splitterProps,
- emits: ["resizeStart", "resize", "resizeEnd", "collapse"],
- setup(__props, { emit: emits }) {
- const props2 = __props;
- const ns = useNamespace("splitter");
- const layout2 = toRef(props2, "layout");
- const lazy = toRef(props2, "lazy");
- const { containerEl, containerSize } = useContainer(layout2);
- const {
- removeChild: unregisterPanel,
- children: panels,
- addChild: registerPanel,
- ChildrenSorter: PanelsSorter
- } = useOrderedChildren(getCurrentInstance(), "ElSplitterPanel");
- watch(panels, () => {
- panels.value.forEach((instance, index) => {
- instance.setIndex(index);
- });
- });
- const { percentSizes, pxSizes } = useSize2(panels, containerSize);
- const {
- lazyOffset,
- movingIndex,
- onMoveStart,
- onMoving,
- onMoveEnd,
- onCollapse
- } = useResize(panels, containerSize, pxSizes, lazy);
- const splitterStyles = computed(() => {
- return {
- [`--${ns.b()}-bar-offset`]: lazy.value ? `${lazyOffset.value}px` : void 0
- };
- });
- const onResizeStart = (index) => {
- onMoveStart(index);
- emits("resizeStart", index, pxSizes.value);
- };
- const onResize = (index, offset3) => {
- onMoving(index, offset3);
- if (!lazy.value) {
- emits("resize", index, pxSizes.value);
- }
- };
- const onResizeEnd = (index) => {
- onMoveEnd();
- emits("resizeEnd", index, pxSizes.value);
- };
- const onCollapsible = (index, type4) => {
- onCollapse(index, type4);
- emits("collapse", index, type4, pxSizes.value);
- };
- provide(splitterRootContextKey, reactive({
- panels,
- percentSizes,
- pxSizes,
- layout: layout2,
- lazy,
- movingIndex,
- containerSize,
- onMoveStart: onResizeStart,
- onMoving: onResize,
- onMoveEnd: onResizeEnd,
- onCollapse: onCollapsible,
- registerPanel,
- unregisterPanel
- }));
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "containerEl",
- ref: containerEl,
- class: normalizeClass([unref(ns).b(), unref(ns).e(unref(layout2))]),
- style: normalizeStyle(unref(splitterStyles))
- }, [
- renderSlot(_ctx.$slots, "default"),
- createVNode(unref(PanelsSorter)),
- createCommentVNode(" Prevent iframe touch events from breaking "),
- unref(movingIndex) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(ns).e("mask"), unref(ns).e(`mask-${unref(layout2)}`)])
- }, null, 2)) : createCommentVNode("v-if", true)
- ], 6);
- };
- }
- });
- var Splitter = _export_sfc(_sfc_main366, [["__file", "splitter.vue"]]);
- // node_modules/element-plus/es/components/splitter/src/hooks/usePanel.mjs
- function getCollapsible(collapsible) {
- if (collapsible && isObject(collapsible)) {
- return collapsible;
- }
- return {
- start: !!collapsible,
- end: !!collapsible
- };
- }
- function isCollapsible(panel, size3, nextPanel, nextSize) {
- if ((panel == null ? void 0 : panel.collapsible.end) && size3 > 0) {
- return true;
- }
- if ((nextPanel == null ? void 0 : nextPanel.collapsible.start) && nextSize === 0 && size3 > 0) {
- return true;
- }
- return false;
- }
- // node_modules/element-plus/es/components/splitter/src/split-bar.mjs
- var __default__60 = defineComponent({
- name: "ElSplitterBar"
- });
- var _sfc_main367 = defineComponent({
- ...__default__60,
- props: {
- index: {
- type: Number,
- required: true
- },
- layout: {
- type: String,
- values: ["horizontal", "vertical"],
- default: "horizontal"
- },
- resizable: {
- type: Boolean,
- default: true
- },
- lazy: Boolean,
- startCollapsible: Boolean,
- endCollapsible: Boolean
- },
- emits: ["moveStart", "moving", "moveEnd", "collapse"],
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("splitter-bar");
- const isHorizontal2 = computed(() => props2.layout === "horizontal");
- const barWrapStyles = computed(() => {
- if (isHorizontal2.value) {
- return { width: 0 };
- }
- return { height: 0 };
- });
- const draggerStyles = computed(() => {
- return {
- width: isHorizontal2.value ? "16px" : "100%",
- height: isHorizontal2.value ? "100%" : "16px",
- cursor: isHorizontal2.value ? "col-resize" : "row-resize",
- touchAction: "none"
- };
- });
- const draggerPseudoClass = computed(() => {
- const prefix = ns.e("dragger");
- return {
- [`${prefix}-horizontal`]: isHorizontal2.value,
- [`${prefix}-vertical`]: !isHorizontal2.value,
- [`${prefix}-active`]: !!startPos.value
- };
- });
- const startPos = ref(null);
- const onMousedown = (e) => {
- if (!props2.resizable)
- return;
- startPos.value = [e.pageX, e.pageY];
- emit("moveStart", props2.index);
- window.addEventListener("mouseup", onMouseUp);
- window.addEventListener("mousemove", onMouseMove);
- };
- const onTouchStart = (e) => {
- if (props2.resizable && e.touches.length === 1) {
- e.preventDefault();
- const touch = e.touches[0];
- startPos.value = [touch.pageX, touch.pageY];
- emit("moveStart", props2.index);
- window.addEventListener("touchend", onTouchEnd);
- window.addEventListener("touchmove", onTouchMove);
- }
- };
- const onMouseMove = (e) => {
- const { pageX, pageY } = e;
- const offsetX = pageX - startPos.value[0];
- const offsetY = pageY - startPos.value[1];
- const offset3 = isHorizontal2.value ? offsetX : offsetY;
- emit("moving", props2.index, offset3);
- };
- const onTouchMove = (e) => {
- if (e.touches.length === 1) {
- e.preventDefault();
- const touch = e.touches[0];
- const offsetX = touch.pageX - startPos.value[0];
- const offsetY = touch.pageY - startPos.value[1];
- const offset3 = isHorizontal2.value ? offsetX : offsetY;
- emit("moving", props2.index, offset3);
- }
- };
- const onMouseUp = () => {
- startPos.value = null;
- window.removeEventListener("mouseup", onMouseUp);
- window.removeEventListener("mousemove", onMouseMove);
- emit("moveEnd", props2.index);
- };
- const onTouchEnd = () => {
- startPos.value = null;
- window.removeEventListener("touchend", onTouchEnd);
- window.removeEventListener("touchmove", onTouchMove);
- emit("moveEnd", props2.index);
- };
- const StartIcon = computed(() => isHorizontal2.value ? arrow_left_default : arrow_up_default);
- const EndIcon = computed(() => isHorizontal2.value ? arrow_right_default : arrow_down_default);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b()]),
- style: normalizeStyle(unref(barWrapStyles))
- }, [
- __props.startCollapsible ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(ns).e("collapse-icon"), unref(ns).e(`${__props.layout}-collapse-icon-start`)]),
- onClick: ($event) => emit("collapse", __props.index, "start")
- }, [
- renderSlot(_ctx.$slots, "start-collapsible", {}, () => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(StartIcon)), { style: { "width": "12px", "height": "12px" } }))
- ])
- ], 10, ["onClick"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass([
- unref(ns).e("dragger"),
- unref(draggerPseudoClass),
- __props.resizable ? "" : unref(ns).e("disable"),
- unref(ns).is("lazy", __props.resizable && __props.lazy)
- ]),
- style: normalizeStyle(unref(draggerStyles)),
- onMousedown,
- onTouchstart: onTouchStart
- }, null, 38),
- __props.endCollapsible ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([unref(ns).e("collapse-icon"), unref(ns).e(`${__props.layout}-collapse-icon-end`)]),
- onClick: ($event) => emit("collapse", __props.index, "end")
- }, [
- renderSlot(_ctx.$slots, "end-collapsible", {}, () => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(EndIcon)), { style: { "width": "12px", "height": "12px" } }))
- ])
- ], 10, ["onClick"])) : createCommentVNode("v-if", true)
- ], 6);
- };
- }
- });
- var SplitBar = _export_sfc(_sfc_main367, [["__file", "split-bar.vue"]]);
- // node_modules/element-plus/es/components/splitter/src/split-panel.mjs
- var splitterPanelProps = buildProps({
- min: {
- type: [String, Number]
- },
- max: {
- type: [String, Number]
- },
- size: {
- type: [String, Number]
- },
- resizable: {
- type: Boolean,
- default: true
- },
- collapsible: Boolean
- });
- // node_modules/element-plus/es/components/splitter/src/split-panel2.mjs
- var COMPONENT_NAME12 = "ElSplitterPanel";
- var __default__61 = defineComponent({
- name: COMPONENT_NAME12
- });
- var _sfc_main368 = defineComponent({
- ...__default__61,
- props: splitterPanelProps,
- emits: ["update:size"],
- setup(__props, { emit: emits }) {
- const props2 = __props;
- const ns = useNamespace("splitter-panel");
- const splitterContext = inject(splitterRootContextKey);
- if (!splitterContext)
- throwError(COMPONENT_NAME12, "usage: <el-splitter><el-splitter-panel /></el-splitter/>");
- const { panels, layout: layout2, lazy, containerSize, pxSizes } = toRefs(splitterContext);
- const {
- registerPanel,
- unregisterPanel,
- onCollapse,
- onMoveEnd,
- onMoveStart,
- onMoving
- } = splitterContext;
- const panelEl = ref();
- const instance = getCurrentInstance();
- const uid2 = instance.uid;
- const index = ref(0);
- const panel = computed(() => panels.value[index.value]);
- const setIndex = (val) => {
- index.value = val;
- };
- const panelSize = computed(() => {
- var _a2;
- if (!panel.value)
- return 0;
- return (_a2 = pxSizes.value[index.value]) != null ? _a2 : 0;
- });
- const nextSize = computed(() => {
- var _a2;
- if (!panel.value)
- return 0;
- return (_a2 = pxSizes.value[index.value + 1]) != null ? _a2 : 0;
- });
- const nextPanel = computed(() => {
- if (panel.value) {
- return panels.value[index.value + 1];
- }
- return null;
- });
- const isResizable = computed(() => {
- var _a2;
- if (!nextPanel.value)
- return false;
- return props2.resizable && ((_a2 = nextPanel.value) == null ? void 0 : _a2.resizable) && (panelSize.value !== 0 || !props2.min) && (nextSize.value !== 0 || !nextPanel.value.min);
- });
- const isShowBar = computed(() => {
- if (!panel.value)
- return false;
- return index.value !== panels.value.length - 1;
- });
- const startCollapsible = computed(() => isCollapsible(panel.value, panelSize.value, nextPanel.value, nextSize.value));
- const endCollapsible = computed(() => isCollapsible(nextPanel.value, nextSize.value, panel.value, panelSize.value));
- function sizeToPx(str) {
- if (isPct(str)) {
- return getPct(str) * containerSize.value || 0;
- } else if (isPx(str)) {
- return getPx(str);
- }
- return str != null ? str : 0;
- }
- let isSizeUpdating = false;
- watch(() => props2.size, () => {
- if (!isSizeUpdating && panel.value) {
- const size3 = sizeToPx(props2.size);
- const maxSize = sizeToPx(props2.max);
- const minSize = sizeToPx(props2.min);
- const finalSize = Math.min(Math.max(size3, minSize || 0), maxSize || size3);
- if (finalSize !== size3) {
- emits("update:size", finalSize);
- }
- panel.value.size = finalSize;
- }
- });
- watch(() => {
- var _a2;
- return (_a2 = panel.value) == null ? void 0 : _a2.size;
- }, (val) => {
- if (val !== props2.size) {
- isSizeUpdating = true;
- emits("update:size", val);
- nextTick(() => isSizeUpdating = false);
- }
- });
- watch(() => props2.resizable, (val) => {
- if (panel.value) {
- panel.value.resizable = val;
- }
- });
- const _panel = reactive({
- el: panelEl.value,
- uid: uid2,
- getVnode: () => instance.vnode,
- setIndex,
- ...props2,
- collapsible: computed(() => getCollapsible(props2.collapsible))
- });
- registerPanel(_panel);
- onBeforeUnmount(() => unregisterPanel(_panel));
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock(Fragment, null, [
- createBaseVNode("div", mergeProps({
- ref_key: "panelEl",
- ref: panelEl,
- class: [unref(ns).b()],
- style: { flexBasis: `${unref(panelSize)}px` }
- }, _ctx.$attrs), [
- renderSlot(_ctx.$slots, "default")
- ], 16),
- unref(isShowBar) ? (openBlock(), createBlock(SplitBar, {
- key: 0,
- index: index.value,
- layout: unref(layout2),
- lazy: unref(lazy),
- resizable: unref(isResizable),
- "start-collapsible": unref(startCollapsible),
- "end-collapsible": unref(endCollapsible),
- onMoveStart: unref(onMoveStart),
- onMoving: unref(onMoving),
- onMoveEnd: unref(onMoveEnd),
- onCollapse: unref(onCollapse)
- }, {
- "start-collapsible": withCtx(() => [
- renderSlot(_ctx.$slots, "start-collapsible")
- ]),
- "end-collapsible": withCtx(() => [
- renderSlot(_ctx.$slots, "end-collapsible")
- ]),
- _: 3
- }, 8, ["index", "layout", "lazy", "resizable", "start-collapsible", "end-collapsible", "onMoveStart", "onMoving", "onMoveEnd", "onCollapse"])) : createCommentVNode("v-if", true)
- ], 64);
- };
- }
- });
- var SplitPanel = _export_sfc(_sfc_main368, [["__file", "split-panel.vue"]]);
- // node_modules/element-plus/es/components/splitter/index.mjs
- var ElSplitter = withInstall(Splitter, {
- SplitPanel
- });
- var ElSplitterPanel = withNoopInstall(SplitPanel);
- // node_modules/element-plus/es/components/drawer/src/drawer.mjs
- var drawerProps = buildProps({
- ...dialogProps,
- direction: {
- type: String,
- default: "rtl",
- values: ["ltr", "rtl", "ttb", "btt"]
- },
- resizable: Boolean,
- size: {
- type: [String, Number],
- default: "30%"
- },
- withHeader: {
- type: Boolean,
- default: true
- },
- modalFade: {
- type: Boolean,
- default: true
- },
- headerAriaLevel: {
- type: String,
- default: "2"
- }
- });
- var drawerEmits = dialogEmits;
- // node_modules/element-plus/es/components/drawer/src/drawer2.mjs
- var __default__62 = defineComponent({
- name: "ElDrawer",
- inheritAttrs: false
- });
- var _sfc_main369 = defineComponent({
- ...__default__62,
- props: drawerProps,
- emits: drawerEmits,
- setup(__props, { expose }) {
- const props2 = __props;
- const slots = useSlots();
- useDeprecated({
- scope: "el-drawer",
- from: "the title slot",
- replacement: "the header slot",
- version: "3.0.0",
- ref: "https://element-plus.org/en-US/component/drawer.html#slots"
- }, computed(() => !!slots.title));
- const drawerRef = ref();
- const focusStartRef = ref();
- const ns = useNamespace("drawer");
- const { t } = useLocale();
- const {
- afterEnter,
- afterLeave,
- beforeLeave,
- visible,
- rendered,
- titleId,
- bodyId,
- zIndex: zIndex2,
- onModalClick,
- onOpenAutoFocus,
- onCloseAutoFocus,
- onFocusoutPrevented,
- onCloseRequested,
- handleClose
- } = useDialog(props2, drawerRef);
- const isHorizontal2 = computed(() => props2.direction === "rtl" || props2.direction === "ltr");
- const drawerSize = computed(() => addUnit(props2.size));
- expose({
- handleClose,
- afterEnter,
- afterLeave
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTeleport), {
- to: _ctx.appendTo,
- disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
- }, {
- default: withCtx(() => [
- createVNode(Transition, {
- name: unref(ns).b("fade"),
- onAfterEnter: unref(afterEnter),
- onAfterLeave: unref(afterLeave),
- onBeforeLeave: unref(beforeLeave),
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createVNode(unref(ElOverlay), {
- mask: _ctx.modal,
- "overlay-class": _ctx.modalClass,
- "z-index": unref(zIndex2),
- onClick: unref(onModalClick)
- }, {
- default: withCtx(() => [
- createVNode(unref(ElFocusTrap), {
- loop: "",
- trapped: unref(visible),
- "focus-trap-el": drawerRef.value,
- "focus-start-el": focusStartRef.value,
- onFocusAfterTrapped: unref(onOpenAutoFocus),
- onFocusAfterReleased: unref(onCloseAutoFocus),
- onFocusoutPrevented: unref(onFocusoutPrevented),
- onReleaseRequested: unref(onCloseRequested)
- }, {
- default: withCtx(() => [
- createVNode(unref(ElSplitter), {
- class: normalizeClass(unref(ns).b("splitter")),
- layout: unref(isHorizontal2) ? "horizontal" : "vertical"
- }, {
- default: withCtx(() => [
- ["rtl", "btt"].includes(_ctx.direction) ? (openBlock(), createBlock(unref(ElSplitterPanel), {
- key: 0,
- onClick: unref(onModalClick)
- }, null, 8, ["onClick"])) : createCommentVNode("v-if", true),
- createVNode(unref(ElSplitterPanel), {
- resizable: _ctx.resizable,
- size: unref(drawerSize)
- }, {
- default: withCtx(() => [
- createBaseVNode("div", mergeProps({
- ref_key: "drawerRef",
- ref: drawerRef,
- "aria-modal": "true",
- "aria-label": _ctx.title || void 0,
- "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
- "aria-describedby": unref(bodyId)
- }, _ctx.$attrs, {
- class: [unref(ns).b(), _ctx.direction, unref(visible) && "open"],
- role: "dialog",
- onClick: withModifiers(() => {
- }, ["stop"])
- }), [
- createBaseVNode("span", {
- ref_key: "focusStartRef",
- ref: focusStartRef,
- class: normalizeClass(unref(ns).e("sr-focus")),
- tabindex: "-1"
- }, null, 2),
- _ctx.withHeader ? (openBlock(), createElementBlock("header", {
- key: 0,
- class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
- }, [
- !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
- key: 0,
- close: unref(handleClose),
- titleId: unref(titleId),
- titleClass: unref(ns).e("title")
- }, () => [
- !_ctx.$slots.title ? (openBlock(), createElementBlock("span", {
- key: 0,
- id: unref(titleId),
- role: "heading",
- "aria-level": _ctx.headerAriaLevel,
- class: normalizeClass(unref(ns).e("title"))
- }, toDisplayString(_ctx.title), 11, ["id", "aria-level"])) : createCommentVNode("v-if", true)
- ]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
- createCommentVNode(" DEPRECATED SLOT ")
- ]),
- _ctx.showClose ? (openBlock(), createElementBlock("button", {
- key: 2,
- "aria-label": unref(t)("el.drawer.close"),
- class: normalizeClass(unref(ns).e("close-btn")),
- type: "button",
- onClick: unref(handleClose)
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(ns).e("close"))
- }, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 1
- }, 8, ["class"])
- ], 10, ["aria-label", "onClick"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true),
- unref(rendered) ? (openBlock(), createElementBlock("div", {
- key: 1,
- id: unref(bodyId),
- class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 10, ["id"])) : createCommentVNode("v-if", true),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 2)) : createCommentVNode("v-if", true)
- ], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
- ]),
- _: 3
- }, 8, ["resizable", "size"]),
- ["ltr", "ttb"].includes(_ctx.direction) ? (openBlock(), createBlock(unref(ElSplitterPanel), {
- key: 1,
- onClick: unref(onModalClick)
- }, null, 8, ["onClick"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["class", "layout"])
- ]),
- _: 3
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
- ]),
- _: 3
- }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
- [vShow, unref(visible)]
- ])
- ]),
- _: 3
- }, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
- ]),
- _: 3
- }, 8, ["to", "disabled"]);
- };
- }
- });
- var Drawer = _export_sfc(_sfc_main369, [["__file", "drawer.vue"]]);
- // node_modules/element-plus/es/components/drawer/index.mjs
- var ElDrawer = withInstall(Drawer);
- // node_modules/element-plus/es/components/collection/src/collection2.mjs
- var _sfc_main370 = defineComponent({
- inheritAttrs: false
- });
- function _sfc_render5(_ctx, _cache, $props, $setup, $data, $options) {
- return renderSlot(_ctx.$slots, "default");
- }
- var Collection = _export_sfc(_sfc_main370, [["render", _sfc_render5], ["__file", "collection.vue"]]);
- // node_modules/element-plus/es/components/collection/src/collection-item.mjs
- var _sfc_main371 = defineComponent({
- name: "ElCollectionItem",
- inheritAttrs: false
- });
- function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
- return renderSlot(_ctx.$slots, "default");
- }
- var CollectionItem = _export_sfc(_sfc_main371, [["render", _sfc_render6], ["__file", "collection-item.vue"]]);
- // node_modules/element-plus/es/components/collection/src/collection.mjs
- var COLLECTION_ITEM_SIGN = `data-el-collection-item`;
- var createCollectionWithScope = (name) => {
- const COLLECTION_NAME = `El${name}Collection`;
- const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`;
- const COLLECTION_INJECTION_KEY3 = Symbol(COLLECTION_NAME);
- const COLLECTION_ITEM_INJECTION_KEY3 = Symbol(COLLECTION_ITEM_NAME);
- const ElCollection3 = {
- ...Collection,
- name: COLLECTION_NAME,
- setup() {
- const collectionRef = ref();
- const itemMap = /* @__PURE__ */ new Map();
- const getItems = () => {
- const collectionEl = unref(collectionRef);
- if (!collectionEl)
- return [];
- const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));
- const items = [...itemMap.values()];
- return items.sort((a2, b2) => orderedNodes.indexOf(a2.ref) - orderedNodes.indexOf(b2.ref));
- };
- provide(COLLECTION_INJECTION_KEY3, {
- itemMap,
- getItems,
- collectionRef
- });
- }
- };
- const ElCollectionItem3 = {
- ...CollectionItem,
- name: COLLECTION_ITEM_NAME,
- setup(_2, { attrs }) {
- const collectionItemRef = ref();
- const collectionInjection = inject(COLLECTION_INJECTION_KEY3, void 0);
- provide(COLLECTION_ITEM_INJECTION_KEY3, {
- collectionItemRef
- });
- onMounted(() => {
- const collectionItemEl = unref(collectionItemRef);
- if (collectionItemEl) {
- collectionInjection.itemMap.set(collectionItemEl, {
- ref: collectionItemEl,
- ...attrs
- });
- }
- });
- onBeforeUnmount(() => {
- const collectionItemEl = unref(collectionItemRef);
- collectionInjection.itemMap.delete(collectionItemEl);
- });
- }
- };
- return {
- COLLECTION_INJECTION_KEY: COLLECTION_INJECTION_KEY3,
- COLLECTION_ITEM_INJECTION_KEY: COLLECTION_ITEM_INJECTION_KEY3,
- ElCollection: ElCollection3,
- ElCollectionItem: ElCollectionItem3
- };
- };
- // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.mjs
- var rovingFocusGroupProps = buildProps({
- style: { type: definePropType([String, Array, Object]) },
- currentTabId: {
- type: definePropType(String)
- },
- defaultCurrentTabId: String,
- loop: Boolean,
- dir: {
- type: String,
- values: ["ltr", "rtl"],
- default: "ltr"
- },
- orientation: {
- type: definePropType(String)
- },
- onBlur: Function,
- onFocus: Function,
- onMousedown: Function
- });
- var {
- ElCollection,
- ElCollectionItem,
- COLLECTION_INJECTION_KEY,
- COLLECTION_ITEM_INJECTION_KEY
- } = createCollectionWithScope("RovingFocusGroup");
- // node_modules/element-plus/es/components/roving-focus-group/src/tokens.mjs
- var ROVING_FOCUS_GROUP_INJECTION_KEY = Symbol("elRovingFocusGroup");
- var ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY = Symbol("elRovingFocusGroupItem");
- // node_modules/element-plus/es/components/roving-focus-group/src/utils.mjs
- var MAP_KEY_TO_FOCUS_INTENT = {
- ArrowLeft: "prev",
- ArrowUp: "prev",
- ArrowRight: "next",
- ArrowDown: "next",
- PageUp: "first",
- Home: "first",
- PageDown: "last",
- End: "last"
- };
- var getDirectionAwareKey = (key, dir) => {
- if (dir !== "rtl")
- return key;
- switch (key) {
- case EVENT_CODE.right:
- return EVENT_CODE.left;
- case EVENT_CODE.left:
- return EVENT_CODE.right;
- default:
- return key;
- }
- };
- var getFocusIntent = (event, orientation, dir) => {
- const key = getDirectionAwareKey(event.code, dir);
- if (orientation === "vertical" && [EVENT_CODE.left, EVENT_CODE.right].includes(key))
- return void 0;
- if (orientation === "horizontal" && [EVENT_CODE.up, EVENT_CODE.down].includes(key))
- return void 0;
- return MAP_KEY_TO_FOCUS_INTENT[key];
- };
- var reorderArray = (array4, atIdx) => {
- return array4.map((_2, idx) => array4[(idx + atIdx) % array4.length]);
- };
- var focusFirst = (elements) => {
- const { activeElement: prevActive } = document;
- for (const element of elements) {
- if (element === prevActive)
- return;
- element.focus();
- if (prevActive !== document.activeElement)
- return;
- }
- };
- // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.mjs
- var CURRENT_TAB_ID_CHANGE_EVT = "currentTabIdChange";
- var ENTRY_FOCUS_EVT = "rovingFocusGroup.entryFocus";
- var EVT_OPTS = { bubbles: false, cancelable: true };
- var _sfc_main372 = defineComponent({
- name: "ElRovingFocusGroupImpl",
- inheritAttrs: false,
- props: rovingFocusGroupProps,
- emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
- setup(props2, { emit }) {
- var _a2;
- const currentTabbedId = ref((_a2 = props2.currentTabId || props2.defaultCurrentTabId) != null ? _a2 : null);
- const isBackingOut = ref(false);
- const isClickFocus = ref(false);
- const rovingFocusGroupRef = ref();
- const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);
- const rovingFocusGroupRootStyle = computed(() => {
- return [
- {
- outline: "none"
- },
- props2.style
- ];
- });
- const onItemFocus = (tabbedId) => {
- emit(CURRENT_TAB_ID_CHANGE_EVT, tabbedId);
- };
- const onItemShiftTab = () => {
- isBackingOut.value = true;
- };
- const onMousedown = composeEventHandlers((e) => {
- var _a22;
- (_a22 = props2.onMousedown) == null ? void 0 : _a22.call(props2, e);
- }, () => {
- isClickFocus.value = true;
- });
- const onFocus = composeEventHandlers((e) => {
- var _a22;
- (_a22 = props2.onFocus) == null ? void 0 : _a22.call(props2, e);
- }, (e) => {
- const isKeyboardFocus = !unref(isClickFocus);
- const { target: target2, currentTarget } = e;
- if (target2 === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {
- const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
- currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
- if (!entryFocusEvt.defaultPrevented) {
- const items = getItems().filter((item) => item.focusable);
- const activeItem = items.find((item) => item.active);
- const currentItem = items.find((item) => item.id === unref(currentTabbedId));
- const candidates = [activeItem, currentItem, ...items].filter(Boolean);
- const candidateNodes = candidates.map((item) => item.ref);
- focusFirst(candidateNodes);
- }
- }
- isClickFocus.value = false;
- });
- const onBlur = composeEventHandlers((e) => {
- var _a22;
- (_a22 = props2.onBlur) == null ? void 0 : _a22.call(props2, e);
- }, () => {
- isBackingOut.value = false;
- });
- const handleEntryFocus = (...args) => {
- emit("entryFocus", ...args);
- };
- provide(ROVING_FOCUS_GROUP_INJECTION_KEY, {
- currentTabbedId: readonly(currentTabbedId),
- loop: toRef(props2, "loop"),
- tabIndex: computed(() => {
- return unref(isBackingOut) ? -1 : 0;
- }),
- rovingFocusGroupRef,
- rovingFocusGroupRootStyle,
- orientation: toRef(props2, "orientation"),
- dir: toRef(props2, "dir"),
- onItemFocus,
- onItemShiftTab,
- onBlur,
- onFocus,
- onMousedown
- });
- watch(() => props2.currentTabId, (val) => {
- currentTabbedId.value = val != null ? val : null;
- });
- useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
- }
- });
- function _sfc_render7(_ctx, _cache, $props, $setup, $data, $options) {
- return renderSlot(_ctx.$slots, "default");
- }
- var ElRovingFocusGroupImpl = _export_sfc(_sfc_main372, [["render", _sfc_render7], ["__file", "roving-focus-group-impl.vue"]]);
- // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.mjs
- var _sfc_main373 = defineComponent({
- name: "ElRovingFocusGroup",
- components: {
- ElFocusGroupCollection: ElCollection,
- ElRovingFocusGroupImpl
- }
- });
- function _sfc_render8(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
- const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
- return openBlock(), createBlock(_component_el_focus_group_collection, null, {
- default: withCtx(() => [
- createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16)
- ]),
- _: 3
- });
- }
- var ElRovingFocusGroup = _export_sfc(_sfc_main373, [["render", _sfc_render8], ["__file", "roving-focus-group.vue"]]);
- // node_modules/element-plus/es/components/dropdown/src/dropdown.mjs
- var dropdownProps = buildProps({
- trigger: useTooltipTriggerProps.trigger,
- triggerKeys: {
- type: definePropType(Array),
- default: () => [
- EVENT_CODE.enter,
- EVENT_CODE.numpadEnter,
- EVENT_CODE.space,
- EVENT_CODE.down
- ]
- },
- effect: {
- ...useTooltipContentProps.effect,
- default: "light"
- },
- type: {
- type: definePropType(String)
- },
- placement: {
- type: definePropType(String),
- default: "bottom"
- },
- popperOptions: {
- type: definePropType(Object),
- default: () => ({})
- },
- id: String,
- size: {
- type: String,
- default: ""
- },
- splitButton: Boolean,
- hideOnClick: {
- type: Boolean,
- default: true
- },
- loop: {
- type: Boolean,
- default: true
- },
- showTimeout: {
- type: Number,
- default: 150
- },
- hideTimeout: {
- type: Number,
- default: 150
- },
- tabindex: {
- type: definePropType([Number, String]),
- default: 0
- },
- maxHeight: {
- type: definePropType([Number, String]),
- default: ""
- },
- popperClass: {
- type: String,
- default: ""
- },
- disabled: Boolean,
- role: {
- type: String,
- values: roleTypes,
- default: "menu"
- },
- buttonProps: {
- type: definePropType(Object)
- },
- teleported: useTooltipContentProps.teleported,
- persistent: {
- type: Boolean,
- default: true
- }
- });
- var dropdownItemProps = buildProps({
- command: {
- type: [Object, String, Number],
- default: () => ({})
- },
- disabled: Boolean,
- divided: Boolean,
- textValue: String,
- icon: {
- type: iconPropType
- }
- });
- var dropdownMenuProps = buildProps({
- onKeydown: { type: definePropType(Function) }
- });
- var FIRST_KEYS = [
- EVENT_CODE.down,
- EVENT_CODE.pageDown,
- EVENT_CODE.home
- ];
- var LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end];
- var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
- var {
- ElCollection: ElCollection2,
- ElCollectionItem: ElCollectionItem2,
- COLLECTION_INJECTION_KEY: COLLECTION_INJECTION_KEY2,
- COLLECTION_ITEM_INJECTION_KEY: COLLECTION_ITEM_INJECTION_KEY2
- } = createCollectionWithScope("Dropdown");
- // node_modules/element-plus/es/components/dropdown/src/tokens.mjs
- var DROPDOWN_INJECTION_KEY = Symbol("elDropdown");
- var DROPDOWN_INSTANCE_INJECTION_KEY = "elDropdown";
- // node_modules/element-plus/es/components/dropdown/src/dropdown2.mjs
- var { ButtonGroup: ElButtonGroup2 } = ElButton;
- var _sfc_main374 = defineComponent({
- name: "ElDropdown",
- components: {
- ElButton,
- ElButtonGroup: ElButtonGroup2,
- ElScrollbar,
- ElDropdownCollection: ElCollection2,
- ElTooltip,
- ElRovingFocusGroup,
- ElOnlyChild: OnlyChild,
- ElIcon,
- ArrowDown: arrow_down_default
- },
- props: dropdownProps,
- emits: ["visible-change", "click", "command"],
- setup(props2, { emit }) {
- const _instance = getCurrentInstance();
- const ns = useNamespace("dropdown");
- const { t } = useLocale();
- const triggeringElementRef = ref();
- const referenceElementRef = ref();
- const popperRef = ref();
- const contentRef = ref();
- const scrollbar = ref(null);
- const currentTabId = ref(null);
- const isUsingKeyboard = ref(false);
- const wrapStyle = computed(() => ({
- maxHeight: addUnit(props2.maxHeight)
- }));
- const dropdownTriggerKls = computed(() => [ns.m(dropdownSize.value)]);
- const trigger = computed(() => castArray_default(props2.trigger));
- const defaultTriggerId = useId().value;
- const triggerId = computed(() => props2.id || defaultTriggerId);
- watch([triggeringElementRef, trigger], ([triggeringElement, trigger2], [prevTriggeringElement]) => {
- var _a2, _b, _c;
- if ((_a2 = prevTriggeringElement == null ? void 0 : prevTriggeringElement.$el) == null ? void 0 : _a2.removeEventListener) {
- prevTriggeringElement.$el.removeEventListener("pointerenter", onAutofocusTriggerEnter);
- }
- if ((_b = triggeringElement == null ? void 0 : triggeringElement.$el) == null ? void 0 : _b.removeEventListener) {
- triggeringElement.$el.removeEventListener("pointerenter", onAutofocusTriggerEnter);
- }
- if (((_c = triggeringElement == null ? void 0 : triggeringElement.$el) == null ? void 0 : _c.addEventListener) && trigger2.includes("hover")) {
- triggeringElement.$el.addEventListener("pointerenter", onAutofocusTriggerEnter);
- }
- }, { immediate: true });
- onBeforeUnmount(() => {
- var _a2, _b;
- if ((_b = (_a2 = triggeringElementRef.value) == null ? void 0 : _a2.$el) == null ? void 0 : _b.removeEventListener) {
- triggeringElementRef.value.$el.removeEventListener("pointerenter", onAutofocusTriggerEnter);
- }
- });
- function handleClick() {
- handleClose();
- }
- function handleClose() {
- var _a2;
- (_a2 = popperRef.value) == null ? void 0 : _a2.onClose();
- }
- function handleOpen() {
- var _a2;
- (_a2 = popperRef.value) == null ? void 0 : _a2.onOpen();
- }
- const dropdownSize = useFormSize();
- function commandHandler(...args) {
- emit("command", ...args);
- }
- function onAutofocusTriggerEnter() {
- var _a2, _b;
- (_b = (_a2 = triggeringElementRef.value) == null ? void 0 : _a2.$el) == null ? void 0 : _b.focus({
- preventScroll: true
- });
- }
- function onItemEnter() {
- }
- function onItemLeave() {
- const contentEl = unref(contentRef);
- trigger.value.includes("hover") && (contentEl == null ? void 0 : contentEl.focus({
- preventScroll: true
- }));
- currentTabId.value = null;
- }
- function handleCurrentTabIdChange(id) {
- currentTabId.value = id;
- }
- function handleEntryFocus(e) {
- if (!isUsingKeyboard.value) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- }
- function handleBeforeShowTooltip() {
- emit("visible-change", true);
- }
- function handleShowTooltip(event) {
- var _a2;
- if ((event == null ? void 0 : event.type) === "keydown") {
- (_a2 = contentRef.value) == null ? void 0 : _a2.focus();
- }
- }
- function handleBeforeHideTooltip() {
- emit("visible-change", false);
- }
- provide(DROPDOWN_INJECTION_KEY, {
- contentRef,
- role: computed(() => props2.role),
- triggerId,
- isUsingKeyboard,
- onItemEnter,
- onItemLeave
- });
- provide(DROPDOWN_INSTANCE_INJECTION_KEY, {
- instance: _instance,
- dropdownSize,
- handleClick,
- commandHandler,
- trigger: toRef(props2, "trigger"),
- hideOnClick: toRef(props2, "hideOnClick")
- });
- const onFocusAfterTrapped = (e) => {
- var _a2, _b;
- e.preventDefault();
- (_b = (_a2 = contentRef.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2, {
- preventScroll: true
- });
- };
- const handlerMainButtonClick = (event) => {
- emit("click", event);
- };
- return {
- t,
- ns,
- scrollbar,
- wrapStyle,
- dropdownTriggerKls,
- dropdownSize,
- triggerId,
- currentTabId,
- handleCurrentTabIdChange,
- handlerMainButtonClick,
- handleEntryFocus,
- handleClose,
- handleOpen,
- handleBeforeShowTooltip,
- handleShowTooltip,
- handleBeforeHideTooltip,
- onFocusAfterTrapped,
- popperRef,
- contentRef,
- triggeringElementRef,
- referenceElementRef
- };
- }
- });
- function _sfc_render9(_ctx, _cache, $props, $setup, $data, $options) {
- var _a2;
- const _component_el_dropdown_collection = resolveComponent("el-dropdown-collection");
- const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
- const _component_el_only_child = resolveComponent("el-only-child");
- const _component_el_tooltip = resolveComponent("el-tooltip");
- const _component_el_button = resolveComponent("el-button");
- const _component_arrow_down = resolveComponent("arrow-down");
- const _component_el_icon = resolveComponent("el-icon");
- const _component_el_button_group = resolveComponent("el-button-group");
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("disabled", _ctx.disabled)])
- }, [
- createVNode(_component_el_tooltip, {
- ref: "popperRef",
- role: _ctx.role,
- effect: _ctx.effect,
- "fallback-placements": ["bottom", "top"],
- "popper-options": _ctx.popperOptions,
- "gpu-acceleration": false,
- "hide-after": _ctx.trigger === "hover" ? _ctx.hideTimeout : 0,
- "manual-mode": true,
- placement: _ctx.placement,
- "popper-class": [_ctx.ns.e("popper"), _ctx.popperClass],
- "reference-element": (_a2 = _ctx.referenceElementRef) == null ? void 0 : _a2.$el,
- trigger: _ctx.trigger,
- "trigger-keys": _ctx.triggerKeys,
- "trigger-target-el": _ctx.contentRef,
- "show-after": _ctx.trigger === "hover" ? _ctx.showTimeout : 0,
- "stop-popper-mouse-event": false,
- "virtual-ref": _ctx.triggeringElementRef,
- "virtual-triggering": _ctx.splitButton,
- disabled: _ctx.disabled,
- transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
- teleported: _ctx.teleported,
- pure: "",
- persistent: _ctx.persistent,
- onBeforeShow: _ctx.handleBeforeShowTooltip,
- onShow: _ctx.handleShowTooltip,
- onBeforeHide: _ctx.handleBeforeHideTooltip
- }, createSlots({
- content: withCtx(() => [
- createVNode(_component_el_scrollbar, {
- ref: "scrollbar",
- "wrap-style": _ctx.wrapStyle,
- tag: "div",
- "view-class": _ctx.ns.e("list")
- }, {
- default: withCtx(() => [
- createVNode(_component_el_roving_focus_group, {
- loop: _ctx.loop,
- "current-tab-id": _ctx.currentTabId,
- orientation: "horizontal",
- onCurrentTabIdChange: _ctx.handleCurrentTabIdChange,
- onEntryFocus: _ctx.handleEntryFocus
- }, {
- default: withCtx(() => [
- createVNode(_component_el_dropdown_collection, null, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "dropdown")
- ]),
- _: 3
- })
- ]),
- _: 3
- }, 8, ["loop", "current-tab-id", "onCurrentTabIdChange", "onEntryFocus"])
- ]),
- _: 3
- }, 8, ["wrap-style", "view-class"])
- ]),
- _: 2
- }, [
- !_ctx.splitButton ? {
- name: "default",
- fn: withCtx(() => [
- createVNode(_component_el_only_child, {
- id: _ctx.triggerId,
- ref: "triggeringElementRef",
- role: "button",
- tabindex: _ctx.tabindex
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["id", "tabindex"])
- ])
- } : void 0
- ]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "persistent", "onBeforeShow", "onShow", "onBeforeHide"]),
- _ctx.splitButton ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {
- default: withCtx(() => [
- createVNode(_component_el_button, mergeProps({ ref: "referenceElementRef" }, _ctx.buttonProps, {
- size: _ctx.dropdownSize,
- type: _ctx.type,
- disabled: _ctx.disabled,
- tabindex: _ctx.tabindex,
- onClick: _ctx.handlerMainButtonClick
- }), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
- createVNode(_component_el_button, mergeProps({
- id: _ctx.triggerId,
- ref: "triggeringElementRef"
- }, _ctx.buttonProps, {
- role: "button",
- size: _ctx.dropdownSize,
- type: _ctx.type,
- class: _ctx.ns.e("caret-button"),
- disabled: _ctx.disabled,
- tabindex: _ctx.tabindex,
- "aria-label": _ctx.t("el.dropdown.toggleDropdown")
- }), {
- default: withCtx(() => [
- createVNode(_component_el_icon, {
- class: normalizeClass(_ctx.ns.e("icon"))
- }, {
- default: withCtx(() => [
- createVNode(_component_arrow_down)
- ]),
- _: 1
- }, 8, ["class"])
- ]),
- _: 1
- }, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
- ]),
- _: 3
- })) : createCommentVNode("v-if", true)
- ], 2);
- }
- var Dropdown = _export_sfc(_sfc_main374, [["render", _sfc_render9], ["__file", "dropdown.vue"]]);
- // node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.mjs
- var _sfc_main375 = defineComponent({
- components: {
- ElRovingFocusCollectionItem: ElCollectionItem
- },
- props: {
- focusable: {
- type: Boolean,
- default: true
- },
- active: Boolean
- },
- emits: ["mousedown", "focus", "keydown"],
- setup(props2, { emit }) {
- const { currentTabbedId, loop, onItemFocus, onItemShiftTab } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
- const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);
- const id = useId();
- const rovingFocusGroupItemRef = ref();
- const handleMousedown = composeEventHandlers((e) => {
- emit("mousedown", e);
- }, (e) => {
- if (!props2.focusable) {
- e.preventDefault();
- } else {
- onItemFocus(unref(id));
- }
- });
- const handleFocus = composeEventHandlers((e) => {
- emit("focus", e);
- }, () => {
- onItemFocus(unref(id));
- });
- const handleKeydown = composeEventHandlers((e) => {
- emit("keydown", e);
- }, (e) => {
- const { code, shiftKey, target: target2, currentTarget } = e;
- if (code === EVENT_CODE.tab && shiftKey) {
- onItemShiftTab();
- return;
- }
- if (target2 !== currentTarget)
- return;
- const focusIntent = getFocusIntent(e);
- if (focusIntent) {
- e.preventDefault();
- const items = getItems().filter((item) => item.focusable);
- let elements = items.map((item) => item.ref);
- switch (focusIntent) {
- case "last": {
- elements.reverse();
- break;
- }
- case "prev":
- case "next": {
- if (focusIntent === "prev") {
- elements.reverse();
- }
- const currentIdx = elements.indexOf(currentTarget);
- elements = loop.value ? reorderArray(elements, currentIdx + 1) : elements.slice(currentIdx + 1);
- break;
- }
- }
- nextTick(() => {
- focusFirst(elements);
- });
- }
- });
- const isCurrentTab = computed(() => currentTabbedId.value === unref(id));
- provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, {
- rovingFocusGroupItemRef,
- tabIndex: computed(() => unref(isCurrentTab) ? 0 : -1),
- handleMousedown,
- handleFocus,
- handleKeydown
- });
- return {
- id,
- handleKeydown,
- handleFocus,
- handleMousedown
- };
- }
- });
- function _sfc_render10(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_roving_focus_collection_item = resolveComponent("el-roving-focus-collection-item");
- return openBlock(), createBlock(_component_el_roving_focus_collection_item, {
- id: _ctx.id,
- focusable: _ctx.focusable,
- active: _ctx.active
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["id", "focusable", "active"]);
- }
- var ElRovingFocusItem = _export_sfc(_sfc_main375, [["render", _sfc_render10], ["__file", "roving-focus-item.vue"]]);
- // node_modules/element-plus/es/components/dropdown/src/dropdown-item-impl.mjs
- var _sfc_main376 = defineComponent({
- name: "DropdownItemImpl",
- components: {
- ElIcon
- },
- props: dropdownItemProps,
- emits: ["pointermove", "pointerleave", "click", "clickimpl"],
- setup(_2, { emit }) {
- const ns = useNamespace("dropdown");
- const { role: menuRole } = inject(DROPDOWN_INJECTION_KEY, void 0);
- const { collectionItemRef: dropdownCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY2, void 0);
- const { collectionItemRef: rovingFocusCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY, void 0);
- const {
- rovingFocusGroupItemRef,
- tabIndex,
- handleFocus,
- handleKeydown: handleItemKeydown,
- handleMousedown
- } = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, void 0);
- const itemRef = composeRefs(dropdownCollectionItemRef, rovingFocusCollectionItemRef, rovingFocusGroupItemRef);
- const role = computed(() => {
- if (menuRole.value === "menu") {
- return "menuitem";
- } else if (menuRole.value === "navigation") {
- return "link";
- }
- return "button";
- });
- const handleKeydown = composeEventHandlers((e) => {
- if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(e.code)) {
- e.preventDefault();
- e.stopImmediatePropagation();
- emit("clickimpl", e);
- return true;
- }
- }, handleItemKeydown);
- return {
- ns,
- itemRef,
- dataset: {
- [COLLECTION_ITEM_SIGN]: ""
- },
- role,
- tabIndex,
- handleFocus,
- handleKeydown,
- handleMousedown
- };
- }
- });
- function _sfc_render11(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_icon = resolveComponent("el-icon");
- return openBlock(), createElementBlock(Fragment, null, [
- _ctx.divided ? (openBlock(), createElementBlock("li", {
- key: 0,
- role: "separator",
- class: normalizeClass(_ctx.ns.bem("menu", "item", "divided"))
- }, null, 2)) : createCommentVNode("v-if", true),
- createBaseVNode("li", mergeProps({ ref: _ctx.itemRef }, { ..._ctx.dataset, ..._ctx.$attrs }, {
- "aria-disabled": _ctx.disabled,
- class: [_ctx.ns.be("menu", "item"), _ctx.ns.is("disabled", _ctx.disabled)],
- tabindex: _ctx.tabIndex,
- role: _ctx.role,
- onClick: (e) => _ctx.$emit("clickimpl", e),
- onFocus: _ctx.handleFocus,
- onKeydown: withModifiers(_ctx.handleKeydown, ["self"]),
- onMousedown: _ctx.handleMousedown,
- onPointermove: (e) => _ctx.$emit("pointermove", e),
- onPointerleave: (e) => _ctx.$emit("pointerleave", e)
- }), [
- _ctx.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true),
- renderSlot(_ctx.$slots, "default")
- ], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
- ], 64);
- }
- var ElDropdownItemImpl = _export_sfc(_sfc_main376, [["render", _sfc_render11], ["__file", "dropdown-item-impl.vue"]]);
- // node_modules/element-plus/es/components/dropdown/src/useDropdown.mjs
- var useDropdown = () => {
- const elDropdown = inject(DROPDOWN_INSTANCE_INJECTION_KEY, {});
- const _elDropdownSize = computed(() => elDropdown == null ? void 0 : elDropdown.dropdownSize);
- return {
- elDropdown,
- _elDropdownSize
- };
- };
- // node_modules/element-plus/es/components/dropdown/src/dropdown-item.mjs
- var _sfc_main377 = defineComponent({
- name: "ElDropdownItem",
- components: {
- ElDropdownCollectionItem: ElCollectionItem2,
- ElRovingFocusItem,
- ElDropdownItemImpl
- },
- inheritAttrs: false,
- props: dropdownItemProps,
- emits: ["pointermove", "pointerleave", "click"],
- setup(props2, { emit, attrs }) {
- const { elDropdown } = useDropdown();
- const _instance = getCurrentInstance();
- const itemRef = ref(null);
- const textContent = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = unref(itemRef)) == null ? void 0 : _a2.textContent) != null ? _b : "";
- });
- const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);
- const handlePointerMove = composeEventHandlers((e) => {
- emit("pointermove", e);
- return e.defaultPrevented;
- }, whenMouse((e) => {
- if (props2.disabled) {
- onItemLeave(e);
- return;
- }
- const target2 = e.currentTarget;
- if (target2 === document.activeElement || target2.contains(document.activeElement)) {
- return;
- }
- onItemEnter(e);
- if (!e.defaultPrevented) {
- target2 == null ? void 0 : target2.focus({
- preventScroll: true
- });
- }
- }));
- const handlePointerLeave = composeEventHandlers((e) => {
- emit("pointerleave", e);
- return e.defaultPrevented;
- }, whenMouse(onItemLeave));
- const handleClick = composeEventHandlers((e) => {
- if (props2.disabled) {
- return;
- }
- emit("click", e);
- return e.type !== "keydown" && e.defaultPrevented;
- }, (e) => {
- var _a2, _b, _c;
- if (props2.disabled) {
- e.stopImmediatePropagation();
- return;
- }
- if ((_a2 = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a2.value) {
- (_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);
- }
- (_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props2.command, _instance, e);
- });
- const propsAndAttrs = computed(() => ({ ...props2, ...attrs }));
- return {
- handleClick,
- handlePointerMove,
- handlePointerLeave,
- textContent,
- propsAndAttrs
- };
- }
- });
- function _sfc_render12(_ctx, _cache, $props, $setup, $data, $options) {
- var _a2;
- const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
- const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
- const _component_el_dropdown_collection_item = resolveComponent("el-dropdown-collection-item");
- return openBlock(), createBlock(_component_el_dropdown_collection_item, {
- disabled: _ctx.disabled,
- "text-value": (_a2 = _ctx.textValue) != null ? _a2 : _ctx.textContent
- }, {
- default: withCtx(() => [
- createVNode(_component_el_roving_focus_item, {
- focusable: !_ctx.disabled
- }, {
- default: withCtx(() => [
- createVNode(_component_el_dropdown_item_impl, mergeProps(_ctx.propsAndAttrs, {
- onPointerleave: _ctx.handlePointerLeave,
- onPointermove: _ctx.handlePointerMove,
- onClickimpl: _ctx.handleClick
- }), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
- ]),
- _: 3
- }, 8, ["focusable"])
- ]),
- _: 3
- }, 8, ["disabled", "text-value"]);
- }
- var DropdownItem = _export_sfc(_sfc_main377, [["render", _sfc_render12], ["__file", "dropdown-item.vue"]]);
- // node_modules/element-plus/es/components/dropdown/src/dropdown-menu.mjs
- var _sfc_main378 = defineComponent({
- name: "ElDropdownMenu",
- props: dropdownMenuProps,
- setup(props2) {
- const ns = useNamespace("dropdown");
- const { _elDropdownSize } = useDropdown();
- const size3 = _elDropdownSize.value;
- const { focusTrapRef, onKeydown } = inject(FOCUS_TRAP_INJECTION_KEY, void 0);
- const { contentRef, role, triggerId } = inject(DROPDOWN_INJECTION_KEY, void 0);
- const { collectionRef: dropdownCollectionRef, getItems } = inject(COLLECTION_INJECTION_KEY2, void 0);
- const {
- rovingFocusGroupRef,
- rovingFocusGroupRootStyle,
- tabIndex,
- onBlur,
- onFocus,
- onMousedown
- } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
- const { collectionRef: rovingFocusGroupCollectionRef } = inject(COLLECTION_INJECTION_KEY, void 0);
- const dropdownKls = computed(() => {
- return [ns.b("menu"), ns.bm("menu", size3 == null ? void 0 : size3.value)];
- });
- const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
- const composedKeydown = composeEventHandlers((e) => {
- var _a2;
- (_a2 = props2.onKeydown) == null ? void 0 : _a2.call(props2, e);
- }, (e) => {
- const { currentTarget, code, target: target2 } = e;
- currentTarget.contains(target2);
- if (EVENT_CODE.tab === code) {
- e.stopImmediatePropagation();
- }
- e.preventDefault();
- if (target2 !== unref(contentRef) || !FIRST_LAST_KEYS.includes(code))
- return;
- const items = getItems().filter((item) => !item.disabled);
- const targets = items.map((item) => item.ref);
- if (LAST_KEYS.includes(code)) {
- targets.reverse();
- }
- focusFirst(targets);
- });
- const handleKeydown = (e) => {
- composedKeydown(e);
- onKeydown(e);
- };
- return {
- size: size3,
- rovingFocusGroupRootStyle,
- tabIndex,
- dropdownKls,
- role,
- triggerId,
- dropdownListWrapperRef,
- handleKeydown,
- onBlur,
- onFocus,
- onMousedown
- };
- }
- });
- function _sfc_render13(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("ul", {
- ref: _ctx.dropdownListWrapperRef,
- class: normalizeClass(_ctx.dropdownKls),
- style: normalizeStyle(_ctx.rovingFocusGroupRootStyle),
- tabindex: -1,
- role: _ctx.role,
- "aria-labelledby": _ctx.triggerId,
- onBlur: _ctx.onBlur,
- onFocus: _ctx.onFocus,
- onKeydown: withModifiers(_ctx.handleKeydown, ["self"]),
- onMousedown: withModifiers(_ctx.onMousedown, ["self"])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
- }
- var DropdownMenu = _export_sfc(_sfc_main378, [["render", _sfc_render13], ["__file", "dropdown-menu.vue"]]);
- // node_modules/element-plus/es/components/dropdown/index.mjs
- var ElDropdown = withInstall(Dropdown, {
- DropdownItem,
- DropdownMenu
- });
- var ElDropdownItem = withNoopInstall(DropdownItem);
- var ElDropdownMenu = withNoopInstall(DropdownMenu);
- // node_modules/element-plus/es/components/empty/src/img-empty.mjs
- var __default__63 = defineComponent({
- name: "ImgEmpty"
- });
- var _sfc_main379 = defineComponent({
- ...__default__63,
- setup(__props) {
- const ns = useNamespace("empty");
- const id = useId();
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("svg", {
- viewBox: "0 0 79 86",
- version: "1.1",
- xmlns: "http://www.w3.org/2000/svg",
- "xmlns:xlink": "http://www.w3.org/1999/xlink"
- }, [
- createBaseVNode("defs", null, [
- createBaseVNode("linearGradient", {
- id: `linearGradient-1-${unref(id)}`,
- x1: "38.8503086%",
- y1: "0%",
- x2: "61.1496914%",
- y2: "100%"
- }, [
- createBaseVNode("stop", {
- "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-1")})`,
- offset: "0%"
- }, null, 8, ["stop-color"]),
- createBaseVNode("stop", {
- "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-4")})`,
- offset: "100%"
- }, null, 8, ["stop-color"])
- ], 8, ["id"]),
- createBaseVNode("linearGradient", {
- id: `linearGradient-2-${unref(id)}`,
- x1: "0%",
- y1: "9.5%",
- x2: "100%",
- y2: "90.5%"
- }, [
- createBaseVNode("stop", {
- "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-1")})`,
- offset: "0%"
- }, null, 8, ["stop-color"]),
- createBaseVNode("stop", {
- "stop-color": `var(${unref(ns).cssVarBlockName("fill-color-6")})`,
- offset: "100%"
- }, null, 8, ["stop-color"])
- ], 8, ["id"]),
- createBaseVNode("rect", {
- id: `path-3-${unref(id)}`,
- x: "0",
- y: "0",
- width: "17",
- height: "36"
- }, null, 8, ["id"])
- ]),
- createBaseVNode("g", {
- stroke: "none",
- "stroke-width": "1",
- fill: "none",
- "fill-rule": "evenodd"
- }, [
- createBaseVNode("g", { transform: "translate(-1268.000000, -535.000000)" }, [
- createBaseVNode("g", { transform: "translate(1268.000000, 535.000000)" }, [
- createBaseVNode("path", {
- 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",
- fill: `var(${unref(ns).cssVarBlockName("fill-color-3")})`
- }, null, 8, ["fill"]),
- createBaseVNode("polygon", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-7")})`,
- transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
- points: "13 58 53 58 42 45 2 45"
- }, null, 8, ["fill"]),
- createBaseVNode("g", { transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)" }, [
- createBaseVNode("polygon", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-7")})`,
- transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
- points: "2.84078316e-14 3 18 3 23 7 5 7"
- }, null, 8, ["fill"]),
- createBaseVNode("polygon", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-5")})`,
- points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
- }, null, 8, ["fill"]),
- createBaseVNode("rect", {
- fill: `url(#linearGradient-1-${unref(id)})`,
- transform: "translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",
- x: "38",
- y: "7",
- width: "17",
- height: "36"
- }, null, 8, ["fill"]),
- createBaseVNode("polygon", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-2")})`,
- transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
- points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
- }, null, 8, ["fill"])
- ]),
- createBaseVNode("rect", {
- fill: `url(#linearGradient-2-${unref(id)})`,
- x: "13",
- y: "45",
- width: "40",
- height: "36"
- }, null, 8, ["fill"]),
- createBaseVNode("g", { transform: "translate(53.000000, 45.000000)" }, [
- createBaseVNode("use", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-8")})`,
- transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
- "xlink:href": `#path-3-${unref(id)}`
- }, null, 8, ["fill", "xlink:href"]),
- createBaseVNode("polygon", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-9")})`,
- mask: `url(#mask-4-${unref(id)})`,
- transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
- points: "7 0 24 0 20 18 7 16.5"
- }, null, 8, ["fill", "mask"])
- ]),
- createBaseVNode("polygon", {
- fill: `var(${unref(ns).cssVarBlockName("fill-color-2")})`,
- transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
- points: "62 45 79 45 70 58 53 58"
- }, null, 8, ["fill"])
- ])
- ])
- ])
- ]);
- };
- }
- });
- var ImgEmpty = _export_sfc(_sfc_main379, [["__file", "img-empty.vue"]]);
- // node_modules/element-plus/es/components/empty/src/empty2.mjs
- var emptyProps = buildProps({
- image: {
- type: String,
- default: ""
- },
- imageSize: Number,
- description: {
- type: String,
- default: ""
- }
- });
- // node_modules/element-plus/es/components/empty/src/empty.mjs
- var __default__64 = defineComponent({
- name: "ElEmpty"
- });
- var _sfc_main380 = defineComponent({
- ...__default__64,
- props: emptyProps,
- setup(__props) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("empty");
- const emptyDescription = computed(() => props2.description || t("el.table.emptyText"));
- const imageStyle = computed(() => ({
- width: addUnit(props2.imageSize)
- }));
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("image")),
- style: normalizeStyle(unref(imageStyle))
- }, [
- _ctx.image ? (openBlock(), createElementBlock("img", {
- key: 0,
- src: _ctx.image,
- ondragstart: "return false"
- }, null, 8, ["src"])) : renderSlot(_ctx.$slots, "image", { key: 1 }, () => [
- createVNode(ImgEmpty)
- ])
- ], 6),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("description"))
- }, [
- _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("p", { key: 1 }, toDisplayString(unref(emptyDescription)), 1))
- ], 2),
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("bottom"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var Empty = _export_sfc(_sfc_main380, [["__file", "empty.vue"]]);
- // node_modules/element-plus/es/components/empty/index.mjs
- var ElEmpty = withInstall(Empty);
- // node_modules/element-plus/es/components/form/src/form.mjs
- var formMetaProps = buildProps({
- size: {
- type: String,
- values: componentSizes
- },
- disabled: Boolean
- });
- var formProps = buildProps({
- ...formMetaProps,
- model: Object,
- rules: {
- type: definePropType(Object)
- },
- labelPosition: {
- type: String,
- values: ["left", "right", "top"],
- default: "right"
- },
- requireAsteriskPosition: {
- type: String,
- values: ["left", "right"],
- default: "left"
- },
- labelWidth: {
- type: [String, Number],
- default: ""
- },
- labelSuffix: {
- type: String,
- default: ""
- },
- inline: Boolean,
- inlineMessage: Boolean,
- statusIcon: Boolean,
- showMessage: {
- type: Boolean,
- default: true
- },
- validateOnRuleChange: {
- type: Boolean,
- default: true
- },
- hideRequiredAsterisk: Boolean,
- scrollToError: Boolean,
- scrollIntoViewOptions: {
- type: definePropType([Object, Boolean]),
- default: true
- }
- });
- var formEmits = {
- validate: (prop, isValid, message2) => (isArray(prop) || isString(prop)) && isBoolean2(isValid) && isString(message2)
- };
- // node_modules/element-plus/es/components/form/src/utils.mjs
- function useFormLabelWidth() {
- const potentialLabelWidthArr = ref([]);
- const autoLabelWidth = computed(() => {
- if (!potentialLabelWidthArr.value.length)
- return "0";
- const max4 = Math.max(...potentialLabelWidthArr.value);
- return max4 ? `${max4}px` : "";
- });
- function getLabelWidthIndex(width) {
- const index = potentialLabelWidthArr.value.indexOf(width);
- if (index === -1 && autoLabelWidth.value === "0") ;
- return index;
- }
- function registerLabelWidth(val, oldVal) {
- if (val && oldVal) {
- const index = getLabelWidthIndex(oldVal);
- potentialLabelWidthArr.value.splice(index, 1, val);
- } else if (val) {
- potentialLabelWidthArr.value.push(val);
- }
- }
- function deregisterLabelWidth(val) {
- const index = getLabelWidthIndex(val);
- if (index > -1) {
- potentialLabelWidthArr.value.splice(index, 1);
- }
- }
- return {
- autoLabelWidth,
- registerLabelWidth,
- deregisterLabelWidth
- };
- }
- var filterFields = (fields, props2) => {
- const normalized = castArray_default(props2).map((prop) => isArray(prop) ? prop.join(".") : prop);
- return normalized.length > 0 ? fields.filter((field) => field.propString && normalized.includes(field.propString)) : fields;
- };
- // node_modules/element-plus/es/components/form/src/form2.mjs
- var COMPONENT_NAME13 = "ElForm";
- var __default__65 = defineComponent({
- name: COMPONENT_NAME13
- });
- var _sfc_main381 = defineComponent({
- ...__default__65,
- props: formProps,
- emits: formEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const formRef = ref();
- const fields = reactive([]);
- const formSize = useFormSize();
- const ns = useNamespace("form");
- const formClasses = computed(() => {
- const { labelPosition, inline: inline2 } = props2;
- return [
- ns.b(),
- ns.m(formSize.value || "default"),
- {
- [ns.m(`label-${labelPosition}`)]: labelPosition,
- [ns.m("inline")]: inline2
- }
- ];
- });
- const getField = (prop) => {
- return filterFields(fields, [prop])[0];
- };
- const addField = (field) => {
- fields.push(field);
- };
- const removeField = (field) => {
- if (field.prop) {
- fields.splice(fields.indexOf(field), 1);
- }
- };
- const resetFields = (properties = []) => {
- if (!props2.model) {
- return;
- }
- filterFields(fields, properties).forEach((field) => field.resetField());
- };
- const clearValidate = (props22 = []) => {
- filterFields(fields, props22).forEach((field) => field.clearValidate());
- };
- const isValidatable = computed(() => {
- const hasModel = !!props2.model;
- return hasModel;
- });
- const obtainValidateFields = (props22) => {
- if (fields.length === 0)
- return [];
- const filteredFields = filterFields(fields, props22);
- if (!filteredFields.length) {
- return [];
- }
- return filteredFields;
- };
- const validate = async (callback) => validateField(void 0, callback);
- const doValidateField = async (props22 = []) => {
- if (!isValidatable.value)
- return false;
- const fields2 = obtainValidateFields(props22);
- if (fields2.length === 0)
- return true;
- let validationErrors = {};
- for (const field of fields2) {
- try {
- await field.validate("");
- if (field.validateState === "error" && !field.error)
- field.resetField();
- } catch (fields3) {
- validationErrors = {
- ...validationErrors,
- ...fields3
- };
- }
- }
- if (Object.keys(validationErrors).length === 0)
- return true;
- return Promise.reject(validationErrors);
- };
- const validateField = async (modelProps = [], callback) => {
- let result2 = false;
- const shouldThrow = !isFunction(callback);
- try {
- result2 = await doValidateField(modelProps);
- if (result2 === true) {
- await (callback == null ? void 0 : callback(result2));
- }
- return result2;
- } catch (e) {
- if (e instanceof Error)
- throw e;
- const invalidFields = e;
- if (props2.scrollToError) {
- if (formRef.value) {
- const formItem = formRef.value.querySelector(`.${ns.b()}-item.is-error`);
- formItem == null ? void 0 : formItem.scrollIntoView(props2.scrollIntoViewOptions);
- }
- }
- !result2 && await (callback == null ? void 0 : callback(false, invalidFields));
- return shouldThrow && Promise.reject(invalidFields);
- }
- };
- const scrollToField = (prop) => {
- var _a2;
- const field = getField(prop);
- if (field) {
- (_a2 = field.$el) == null ? void 0 : _a2.scrollIntoView(props2.scrollIntoViewOptions);
- }
- };
- watch(() => props2.rules, () => {
- if (props2.validateOnRuleChange) {
- validate().catch((err) => debugWarn());
- }
- }, { deep: true, flush: "post" });
- provide(formContextKey, reactive({
- ...toRefs(props2),
- emit,
- resetFields,
- clearValidate,
- validateField,
- getField,
- addField,
- removeField,
- ...useFormLabelWidth()
- }));
- expose({
- validate,
- validateField,
- resetFields,
- clearValidate,
- scrollToField,
- getField,
- fields
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("form", {
- ref_key: "formRef",
- ref: formRef,
- class: normalizeClass(unref(formClasses))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2);
- };
- }
- });
- var Form = _export_sfc(_sfc_main381, [["__file", "form.vue"]]);
- // node_modules/async-validator/dist-web/index.js
- function _extends() {
- _extends = Object.assign ? Object.assign.bind() : function(target2) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target2[key] = source[key];
- }
- }
- }
- return target2;
- };
- return _extends.apply(this, arguments);
- }
- function _inheritsLoose(subClass, superClass) {
- subClass.prototype = Object.create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- _setPrototypeOf(subClass, superClass);
- }
- function _getPrototypeOf(o2) {
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
- return o3.__proto__ || Object.getPrototypeOf(o3);
- };
- return _getPrototypeOf(o2);
- }
- function _setPrototypeOf(o2, p2) {
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
- o3.__proto__ = p3;
- return o3;
- };
- return _setPrototypeOf(o2, p2);
- }
- function _isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
- if (Reflect.construct.sham) return false;
- if (typeof Proxy === "function") return true;
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
- }));
- return true;
- } catch (e) {
- return false;
- }
- }
- function _construct(Parent, args, Class) {
- if (_isNativeReflectConstruct()) {
- _construct = Reflect.construct.bind();
- } else {
- _construct = function _construct2(Parent2, args2, Class2) {
- var a2 = [null];
- a2.push.apply(a2, args2);
- var Constructor = Function.bind.apply(Parent2, a2);
- var instance = new Constructor();
- if (Class2) _setPrototypeOf(instance, Class2.prototype);
- return instance;
- };
- }
- return _construct.apply(null, arguments);
- }
- function _isNativeFunction(fn2) {
- return Function.toString.call(fn2).indexOf("[native code]") !== -1;
- }
- function _wrapNativeSuper(Class) {
- var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
- _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
- if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
- if (typeof Class2 !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class2)) return _cache.get(Class2);
- _cache.set(Class2, Wrapper);
- }
- function Wrapper() {
- return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
- }
- Wrapper.prototype = Object.create(Class2.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return _setPrototypeOf(Wrapper, Class2);
- };
- return _wrapNativeSuper(Class);
- }
- var formatRegExp = /%[sdj%]/g;
- var warning = function warning2() {
- };
- if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
- warning = function warning3(type4, errors) {
- if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
- if (errors.every(function(e) {
- return typeof e === "string";
- })) {
- console.warn(type4, errors);
- }
- }
- };
- }
- function convertFieldsError(errors) {
- if (!errors || !errors.length) return null;
- var fields = {};
- errors.forEach(function(error) {
- var field = error.field;
- fields[field] = fields[field] || [];
- fields[field].push(error);
- });
- return fields;
- }
- function format(template2) {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- var i = 0;
- var len = args.length;
- if (typeof template2 === "function") {
- return template2.apply(null, args);
- }
- if (typeof template2 === "string") {
- var str = template2.replace(formatRegExp, function(x2) {
- if (x2 === "%%") {
- return "%";
- }
- if (i >= len) {
- return x2;
- }
- switch (x2) {
- case "%s":
- return String(args[i++]);
- case "%d":
- return Number(args[i++]);
- case "%j":
- try {
- return JSON.stringify(args[i++]);
- } catch (_2) {
- return "[Circular]";
- }
- break;
- default:
- return x2;
- }
- });
- return str;
- }
- return template2;
- }
- function isNativeStringType(type4) {
- return type4 === "string" || type4 === "url" || type4 === "hex" || type4 === "email" || type4 === "date" || type4 === "pattern";
- }
- function isEmptyValue(value, type4) {
- if (value === void 0 || value === null) {
- return true;
- }
- if (type4 === "array" && Array.isArray(value) && !value.length) {
- return true;
- }
- if (isNativeStringType(type4) && typeof value === "string" && !value) {
- return true;
- }
- return false;
- }
- function asyncParallelArray(arr, func, callback) {
- var results = [];
- var total2 = 0;
- var arrLength = arr.length;
- function count(errors) {
- results.push.apply(results, errors || []);
- total2++;
- if (total2 === arrLength) {
- callback(results);
- }
- }
- arr.forEach(function(a2) {
- func(a2, count);
- });
- }
- function asyncSerialArray(arr, func, callback) {
- var index = 0;
- var arrLength = arr.length;
- function next(errors) {
- if (errors && errors.length) {
- callback(errors);
- return;
- }
- var original = index;
- index = index + 1;
- if (original < arrLength) {
- func(arr[original], next);
- } else {
- callback([]);
- }
- }
- next([]);
- }
- function flattenObjArr(objArr) {
- var ret = [];
- Object.keys(objArr).forEach(function(k) {
- ret.push.apply(ret, objArr[k] || []);
- });
- return ret;
- }
- var AsyncValidationError = (function(_Error) {
- _inheritsLoose(AsyncValidationError2, _Error);
- function AsyncValidationError2(errors, fields) {
- var _this;
- _this = _Error.call(this, "Async Validation Error") || this;
- _this.errors = errors;
- _this.fields = fields;
- return _this;
- }
- return AsyncValidationError2;
- })(_wrapNativeSuper(Error));
- function asyncMap(objArr, option, func, callback, source) {
- if (option.first) {
- var _pending = new Promise(function(resolve, reject2) {
- var next = function next2(errors) {
- callback(errors);
- return errors.length ? reject2(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);
- };
- var flattenArr = flattenObjArr(objArr);
- asyncSerialArray(flattenArr, func, next);
- });
- _pending["catch"](function(e) {
- return e;
- });
- return _pending;
- }
- var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];
- var objArrKeys = Object.keys(objArr);
- var objArrLength = objArrKeys.length;
- var total2 = 0;
- var results = [];
- var pending = new Promise(function(resolve, reject2) {
- var next = function next2(errors) {
- results.push.apply(results, errors);
- total2++;
- if (total2 === objArrLength) {
- callback(results);
- return results.length ? reject2(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);
- }
- };
- if (!objArrKeys.length) {
- callback(results);
- resolve(source);
- }
- objArrKeys.forEach(function(key) {
- var arr = objArr[key];
- if (firstFields.indexOf(key) !== -1) {
- asyncSerialArray(arr, func, next);
- } else {
- asyncParallelArray(arr, func, next);
- }
- });
- });
- pending["catch"](function(e) {
- return e;
- });
- return pending;
- }
- function isErrorObj(obj) {
- return !!(obj && obj.message !== void 0);
- }
- function getValue2(value, path) {
- var v2 = value;
- for (var i = 0; i < path.length; i++) {
- if (v2 == void 0) {
- return v2;
- }
- v2 = v2[path[i]];
- }
- return v2;
- }
- function complementError(rule, source) {
- return function(oe) {
- var fieldValue;
- if (rule.fullFields) {
- fieldValue = getValue2(source, rule.fullFields);
- } else {
- fieldValue = source[oe.field || rule.fullField];
- }
- if (isErrorObj(oe)) {
- oe.field = oe.field || rule.fullField;
- oe.fieldValue = fieldValue;
- return oe;
- }
- return {
- message: typeof oe === "function" ? oe() : oe,
- fieldValue,
- field: oe.field || rule.fullField
- };
- };
- }
- function deepMerge(target2, source) {
- if (source) {
- for (var s2 in source) {
- if (source.hasOwnProperty(s2)) {
- var value = source[s2];
- if (typeof value === "object" && typeof target2[s2] === "object") {
- target2[s2] = _extends({}, target2[s2], value);
- } else {
- target2[s2] = value;
- }
- }
- }
- }
- return target2;
- }
- var required$1 = function required(rule, value, source, errors, options, type4) {
- if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type4 || rule.type))) {
- errors.push(format(options.messages.required, rule.fullField));
- }
- };
- var whitespace = function whitespace2(rule, value, source, errors, options) {
- if (/^\s+$/.test(value) || value === "") {
- errors.push(format(options.messages.whitespace, rule.fullField));
- }
- };
- var urlReg;
- var getUrlRegex = (function() {
- if (urlReg) {
- return urlReg;
- }
- var word = "[a-fA-F\\d:]";
- var b2 = function b3(options) {
- return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
- };
- var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
- var v6seg = "[a-fA-F\\d]{1,4}";
- var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
- var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
- var v4exact = new RegExp("^" + v4 + "$");
- var v6exact = new RegExp("^" + v6 + "$");
- var ip = function ip2(options) {
- return options && options.exact ? v46Exact : new RegExp("(?:" + b2(options) + v4 + b2(options) + ")|(?:" + b2(options) + v6 + b2(options) + ")", "g");
- };
- ip.v4 = function(options) {
- return options && options.exact ? v4exact : new RegExp("" + b2(options) + v4 + b2(options), "g");
- };
- ip.v6 = function(options) {
- return options && options.exact ? v6exact : new RegExp("" + b2(options) + v6 + b2(options), "g");
- };
- var protocol = "(?:(?:[a-z]+:)?//)";
- var auth = "(?:\\S+(?::\\S*)?@)?";
- var ipv4 = ip.v4().source;
- var ipv6 = ip.v6().source;
- var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
- var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
- var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
- var port = "(?::\\d{2,5})?";
- var path = '(?:[/?#][^\\s"]*)?';
- var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
- urlReg = new RegExp("(?:^" + regex + "$)", "i");
- return urlReg;
- });
- var pattern$2 = {
- // http://emailregex.com/
- email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
- // url: new RegExp(
- // '^(?!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]*)?$',
- // 'i',
- // ),
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- };
- var types = {
- integer: function integer(value) {
- return types.number(value) && parseInt(value, 10) === value;
- },
- "float": function float(value) {
- return types.number(value) && !types.integer(value);
- },
- array: function array(value) {
- return Array.isArray(value);
- },
- regexp: function regexp(value) {
- if (value instanceof RegExp) {
- return true;
- }
- try {
- return !!new RegExp(value);
- } catch (e) {
- return false;
- }
- },
- date: function date(value) {
- return typeof value.getTime === "function" && typeof value.getMonth === "function" && typeof value.getYear === "function" && !isNaN(value.getTime());
- },
- number: function number(value) {
- if (isNaN(value)) {
- return false;
- }
- return typeof value === "number";
- },
- object: function object(value) {
- return typeof value === "object" && !types.array(value);
- },
- method: function method2(value) {
- return typeof value === "function";
- },
- email: function email(value) {
- return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
- },
- url: function url(value) {
- return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
- },
- hex: function hex(value) {
- return typeof value === "string" && !!value.match(pattern$2.hex);
- }
- };
- var type$1 = function type(rule, value, source, errors, options) {
- if (rule.required && value === void 0) {
- required$1(rule, value, source, errors, options);
- return;
- }
- var custom = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"];
- var ruleType = rule.type;
- if (custom.indexOf(ruleType) > -1) {
- if (!types[ruleType](value)) {
- errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
- }
- } else if (ruleType && typeof value !== rule.type) {
- errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
- }
- };
- var range2 = function range3(rule, value, source, errors, options) {
- var len = typeof rule.len === "number";
- var min4 = typeof rule.min === "number";
- var max4 = typeof rule.max === "number";
- var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
- var val = value;
- var key = null;
- var num = typeof value === "number";
- var str = typeof value === "string";
- var arr = Array.isArray(value);
- if (num) {
- key = "number";
- } else if (str) {
- key = "string";
- } else if (arr) {
- key = "array";
- }
- if (!key) {
- return false;
- }
- if (arr) {
- val = value.length;
- }
- if (str) {
- val = value.replace(spRegexp, "_").length;
- }
- if (len) {
- if (val !== rule.len) {
- errors.push(format(options.messages[key].len, rule.fullField, rule.len));
- }
- } else if (min4 && !max4 && val < rule.min) {
- errors.push(format(options.messages[key].min, rule.fullField, rule.min));
- } else if (max4 && !min4 && val > rule.max) {
- errors.push(format(options.messages[key].max, rule.fullField, rule.max));
- } else if (min4 && max4 && (val < rule.min || val > rule.max)) {
- errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
- }
- };
- var ENUM$1 = "enum";
- var enumerable$1 = function enumerable(rule, value, source, errors, options) {
- rule[ENUM$1] = Array.isArray(rule[ENUM$1]) ? rule[ENUM$1] : [];
- if (rule[ENUM$1].indexOf(value) === -1) {
- errors.push(format(options.messages[ENUM$1], rule.fullField, rule[ENUM$1].join(", ")));
- }
- };
- var pattern$1 = function pattern(rule, value, source, errors, options) {
- if (rule.pattern) {
- if (rule.pattern instanceof RegExp) {
- rule.pattern.lastIndex = 0;
- if (!rule.pattern.test(value)) {
- errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- } else if (typeof rule.pattern === "string") {
- var _pattern = new RegExp(rule.pattern);
- if (!_pattern.test(value)) {
- errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- }
- }
- };
- var rules = {
- required: required$1,
- whitespace,
- type: type$1,
- range: range2,
- "enum": enumerable$1,
- pattern: pattern$1
- };
- var string = function string2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, "string") && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, "string");
- if (!isEmptyValue(value, "string")) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- rules.pattern(rule, value, source, errors, options);
- if (rule.whitespace === true) {
- rules.whitespace(rule, value, source, errors, options);
- }
- }
- }
- callback(errors);
- };
- var method3 = function method4(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var number2 = function number3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (value === "") {
- value = void 0;
- }
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var _boolean = function _boolean2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var regexp2 = function regexp3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var integer2 = function integer3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var floatFn = function floatFn2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var array2 = function array3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if ((value === void 0 || value === null) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, "array");
- if (value !== void 0 && value !== null) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var object2 = function object3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var ENUM = "enum";
- var enumerable2 = function enumerable3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules[ENUM](rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var pattern2 = function pattern3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, "string") && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, "string")) {
- rules.pattern(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var date2 = function date3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, "date") && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, "date")) {
- var dateObject;
- if (value instanceof Date) {
- dateObject = value;
- } else {
- dateObject = new Date(value);
- }
- rules.type(rule, dateObject, source, errors, options);
- if (dateObject) {
- rules.range(rule, dateObject.getTime(), source, errors, options);
- }
- }
- }
- callback(errors);
- };
- var required2 = function required3(rule, value, callback, source, options) {
- var errors = [];
- var type4 = Array.isArray(value) ? "array" : typeof value;
- rules.required(rule, value, source, errors, options, type4);
- callback(errors);
- };
- var type2 = function type3(rule, value, callback, source, options) {
- var ruleType = rule.type;
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, ruleType) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, ruleType);
- if (!isEmptyValue(value, ruleType)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var any = function any2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- }
- callback(errors);
- };
- var validators = {
- string,
- method: method3,
- number: number2,
- "boolean": _boolean,
- regexp: regexp2,
- integer: integer2,
- "float": floatFn,
- array: array2,
- object: object2,
- "enum": enumerable2,
- pattern: pattern2,
- date: date2,
- url: type2,
- hex: type2,
- email: type2,
- required: required2,
- any
- };
- function newMessages() {
- return {
- "default": "Validation error on field %s",
- required: "%s is required",
- "enum": "%s must be one of %s",
- whitespace: "%s cannot be empty",
- date: {
- format: "%s date %s is invalid for format %s",
- parse: "%s date could not be parsed, %s is invalid ",
- invalid: "%s date %s is invalid"
- },
- types: {
- string: "%s is not a %s",
- method: "%s is not a %s (function)",
- array: "%s is not an %s",
- object: "%s is not an %s",
- number: "%s is not a %s",
- date: "%s is not a %s",
- "boolean": "%s is not a %s",
- integer: "%s is not an %s",
- "float": "%s is not a %s",
- regexp: "%s is not a valid %s",
- email: "%s is not a valid %s",
- url: "%s is not a valid %s",
- hex: "%s is not a valid %s"
- },
- string: {
- len: "%s must be exactly %s characters",
- min: "%s must be at least %s characters",
- max: "%s cannot be longer than %s characters",
- range: "%s must be between %s and %s characters"
- },
- number: {
- len: "%s must equal %s",
- min: "%s cannot be less than %s",
- max: "%s cannot be greater than %s",
- range: "%s must be between %s and %s"
- },
- array: {
- len: "%s must be exactly %s in length",
- min: "%s cannot be less than %s in length",
- max: "%s cannot be greater than %s in length",
- range: "%s must be between %s and %s in length"
- },
- pattern: {
- mismatch: "%s value %s does not match pattern %s"
- },
- clone: function clone2() {
- var cloned = JSON.parse(JSON.stringify(this));
- cloned.clone = this.clone;
- return cloned;
- }
- };
- }
- var messages = newMessages();
- var Schema = (function() {
- function Schema2(descriptor) {
- this.rules = null;
- this._messages = messages;
- this.define(descriptor);
- }
- var _proto = Schema2.prototype;
- _proto.define = function define2(rules2) {
- var _this = this;
- if (!rules2) {
- throw new Error("Cannot configure a schema with no rules");
- }
- if (typeof rules2 !== "object" || Array.isArray(rules2)) {
- throw new Error("Rules must be an object");
- }
- this.rules = {};
- Object.keys(rules2).forEach(function(name) {
- var item = rules2[name];
- _this.rules[name] = Array.isArray(item) ? item : [item];
- });
- };
- _proto.messages = function messages2(_messages) {
- if (_messages) {
- this._messages = deepMerge(newMessages(), _messages);
- }
- return this._messages;
- };
- _proto.validate = function validate(source_, o2, oc) {
- var _this2 = this;
- if (o2 === void 0) {
- o2 = {};
- }
- if (oc === void 0) {
- oc = function oc2() {
- };
- }
- var source = source_;
- var options = o2;
- var callback = oc;
- if (typeof options === "function") {
- callback = options;
- options = {};
- }
- if (!this.rules || Object.keys(this.rules).length === 0) {
- if (callback) {
- callback(null, source);
- }
- return Promise.resolve(source);
- }
- function complete(results) {
- var errors = [];
- var fields = {};
- function add2(e) {
- if (Array.isArray(e)) {
- var _errors;
- errors = (_errors = errors).concat.apply(_errors, e);
- } else {
- errors.push(e);
- }
- }
- for (var i = 0; i < results.length; i++) {
- add2(results[i]);
- }
- if (!errors.length) {
- callback(null, source);
- } else {
- fields = convertFieldsError(errors);
- callback(errors, fields);
- }
- }
- if (options.messages) {
- var messages$1 = this.messages();
- if (messages$1 === messages) {
- messages$1 = newMessages();
- }
- deepMerge(messages$1, options.messages);
- options.messages = messages$1;
- } else {
- options.messages = this.messages();
- }
- var series = {};
- var keys3 = options.keys || Object.keys(this.rules);
- keys3.forEach(function(z) {
- var arr = _this2.rules[z];
- var value = source[z];
- arr.forEach(function(r) {
- var rule = r;
- if (typeof rule.transform === "function") {
- if (source === source_) {
- source = _extends({}, source);
- }
- value = source[z] = rule.transform(value);
- }
- if (typeof rule === "function") {
- rule = {
- validator: rule
- };
- } else {
- rule = _extends({}, rule);
- }
- rule.validator = _this2.getValidationMethod(rule);
- if (!rule.validator) {
- return;
- }
- rule.field = z;
- rule.fullField = rule.fullField || z;
- rule.type = _this2.getType(rule);
- series[z] = series[z] || [];
- series[z].push({
- rule,
- value,
- source,
- field: z
- });
- });
- });
- var errorFields = {};
- return asyncMap(series, options, function(data, doIt) {
- var rule = data.rule;
- var deep = (rule.type === "object" || rule.type === "array") && (typeof rule.fields === "object" || typeof rule.defaultField === "object");
- deep = deep && (rule.required || !rule.required && data.value);
- rule.field = data.field;
- function addFullField(key, schema) {
- return _extends({}, schema, {
- fullField: rule.fullField + "." + key,
- fullFields: rule.fullFields ? [].concat(rule.fullFields, [key]) : [key]
- });
- }
- function cb(e) {
- if (e === void 0) {
- e = [];
- }
- var errorList = Array.isArray(e) ? e : [e];
- if (!options.suppressWarning && errorList.length) {
- Schema2.warning("async-validator:", errorList);
- }
- if (errorList.length && rule.message !== void 0) {
- errorList = [].concat(rule.message);
- }
- var filledErrors = errorList.map(complementError(rule, source));
- if (options.first && filledErrors.length) {
- errorFields[rule.field] = 1;
- return doIt(filledErrors);
- }
- if (!deep) {
- doIt(filledErrors);
- } else {
- if (rule.required && !data.value) {
- if (rule.message !== void 0) {
- filledErrors = [].concat(rule.message).map(complementError(rule, source));
- } else if (options.error) {
- filledErrors = [options.error(rule, format(options.messages.required, rule.field))];
- }
- return doIt(filledErrors);
- }
- var fieldsSchema = {};
- if (rule.defaultField) {
- Object.keys(data.value).map(function(key) {
- fieldsSchema[key] = rule.defaultField;
- });
- }
- fieldsSchema = _extends({}, fieldsSchema, data.rule.fields);
- var paredFieldsSchema = {};
- Object.keys(fieldsSchema).forEach(function(field) {
- var fieldSchema = fieldsSchema[field];
- var fieldSchemaList = Array.isArray(fieldSchema) ? fieldSchema : [fieldSchema];
- paredFieldsSchema[field] = fieldSchemaList.map(addFullField.bind(null, field));
- });
- var schema = new Schema2(paredFieldsSchema);
- schema.messages(options.messages);
- if (data.rule.options) {
- data.rule.options.messages = options.messages;
- data.rule.options.error = options.error;
- }
- schema.validate(data.value, data.rule.options || options, function(errs) {
- var finalErrors = [];
- if (filledErrors && filledErrors.length) {
- finalErrors.push.apply(finalErrors, filledErrors);
- }
- if (errs && errs.length) {
- finalErrors.push.apply(finalErrors, errs);
- }
- doIt(finalErrors.length ? finalErrors : null);
- });
- }
- }
- var res;
- if (rule.asyncValidator) {
- res = rule.asyncValidator(rule, data.value, cb, data.source, options);
- } else if (rule.validator) {
- try {
- res = rule.validator(rule, data.value, cb, data.source, options);
- } catch (error) {
- console.error == null ? void 0 : console.error(error);
- if (!options.suppressValidatorError) {
- setTimeout(function() {
- throw error;
- }, 0);
- }
- cb(error.message);
- }
- if (res === true) {
- cb();
- } else if (res === false) {
- cb(typeof rule.message === "function" ? rule.message(rule.fullField || rule.field) : rule.message || (rule.fullField || rule.field) + " fails");
- } else if (res instanceof Array) {
- cb(res);
- } else if (res instanceof Error) {
- cb(res.message);
- }
- }
- if (res && res.then) {
- res.then(function() {
- return cb();
- }, function(e) {
- return cb(e);
- });
- }
- }, function(results) {
- complete(results);
- }, source);
- };
- _proto.getType = function getType(rule) {
- if (rule.type === void 0 && rule.pattern instanceof RegExp) {
- rule.type = "pattern";
- }
- if (typeof rule.validator !== "function" && rule.type && !validators.hasOwnProperty(rule.type)) {
- throw new Error(format("Unknown rule type %s", rule.type));
- }
- return rule.type || "string";
- };
- _proto.getValidationMethod = function getValidationMethod(rule) {
- if (typeof rule.validator === "function") {
- return rule.validator;
- }
- var keys3 = Object.keys(rule);
- var messageIndex = keys3.indexOf("message");
- if (messageIndex !== -1) {
- keys3.splice(messageIndex, 1);
- }
- if (keys3.length === 1 && keys3[0] === "required") {
- return validators.required;
- }
- return validators[this.getType(rule)] || void 0;
- };
- return Schema2;
- })();
- Schema.register = function register(type4, validator) {
- if (typeof validator !== "function") {
- throw new Error("Cannot register a validator by type, validator is not a function");
- }
- validators[type4] = validator;
- };
- Schema.warning = warning;
- Schema.messages = messages;
- Schema.validators = validators;
- // node_modules/element-plus/es/components/form/src/form-item.mjs
- var formItemValidateStates = [
- "",
- "error",
- "validating",
- "success"
- ];
- var formItemProps = buildProps({
- label: String,
- labelWidth: {
- type: [String, Number],
- default: ""
- },
- labelPosition: {
- type: String,
- values: ["left", "right", "top", ""],
- default: ""
- },
- prop: {
- type: definePropType([String, Array])
- },
- required: {
- type: Boolean,
- default: void 0
- },
- rules: {
- type: definePropType([Object, Array])
- },
- error: String,
- validateStatus: {
- type: String,
- values: formItemValidateStates
- },
- for: String,
- inlineMessage: {
- type: [String, Boolean],
- default: ""
- },
- showMessage: {
- type: Boolean,
- default: true
- },
- size: {
- type: String,
- values: componentSizes
- }
- });
- // node_modules/element-plus/es/components/form/src/form-label-wrap.mjs
- var COMPONENT_NAME14 = "ElLabelWrap";
- var FormLabelWrap = defineComponent({
- name: COMPONENT_NAME14,
- props: {
- isAutoWidth: Boolean,
- updateAll: Boolean
- },
- setup(props2, {
- slots
- }) {
- const formContext = inject(formContextKey, void 0);
- const formItemContext = inject(formItemContextKey);
- if (!formItemContext)
- throwError(COMPONENT_NAME14, "usage: <el-form-item><label-wrap /></el-form-item>");
- const ns = useNamespace("form");
- const el = ref();
- const computedWidth = ref(0);
- const getLabelWidth = () => {
- var _a2;
- if ((_a2 = el.value) == null ? void 0 : _a2.firstElementChild) {
- const width = window.getComputedStyle(el.value.firstElementChild).width;
- return Math.ceil(Number.parseFloat(width));
- } else {
- return 0;
- }
- };
- const updateLabelWidth = (action = "update") => {
- nextTick(() => {
- if (slots.default && props2.isAutoWidth) {
- if (action === "update") {
- computedWidth.value = getLabelWidth();
- } else if (action === "remove") {
- formContext == null ? void 0 : formContext.deregisterLabelWidth(computedWidth.value);
- }
- }
- });
- };
- const updateLabelWidthFn = () => updateLabelWidth("update");
- onMounted(() => {
- updateLabelWidthFn();
- });
- onBeforeUnmount(() => {
- updateLabelWidth("remove");
- });
- onUpdated(() => updateLabelWidthFn());
- watch(computedWidth, (val, oldVal) => {
- if (props2.updateAll) {
- formContext == null ? void 0 : formContext.registerLabelWidth(val, oldVal);
- }
- });
- useResizeObserver(computed(() => {
- var _a2, _b;
- return (_b = (_a2 = el.value) == null ? void 0 : _a2.firstElementChild) != null ? _b : null;
- }), updateLabelWidthFn);
- return () => {
- var _a2, _b;
- if (!slots)
- return null;
- const {
- isAutoWidth
- } = props2;
- if (isAutoWidth) {
- const autoLabelWidth = formContext == null ? void 0 : formContext.autoLabelWidth;
- const hasLabel = formItemContext == null ? void 0 : formItemContext.hasLabel;
- const style = {};
- if (hasLabel && autoLabelWidth && autoLabelWidth !== "auto") {
- const marginWidth = Math.max(0, Number.parseInt(autoLabelWidth, 10) - computedWidth.value);
- const labelPosition = formItemContext.labelPosition || formContext.labelPosition;
- const marginPosition = labelPosition === "left" ? "marginRight" : "marginLeft";
- if (marginWidth) {
- style[marginPosition] = `${marginWidth}px`;
- }
- }
- return createVNode("div", {
- "ref": el,
- "class": [ns.be("item", "label-wrap")],
- "style": style
- }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
- } else {
- return createVNode(Fragment, {
- "ref": el
- }, [(_b = slots.default) == null ? void 0 : _b.call(slots)]);
- }
- };
- }
- });
- // node_modules/element-plus/es/components/form/src/form-item2.mjs
- var __default__66 = defineComponent({
- name: "ElFormItem"
- });
- var _sfc_main382 = defineComponent({
- ...__default__66,
- props: formItemProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const slots = useSlots();
- const formContext = inject(formContextKey, void 0);
- const parentFormItemContext = inject(formItemContextKey, void 0);
- const _size = useFormSize(void 0, { formItem: false });
- const ns = useNamespace("form-item");
- const labelId = useId().value;
- const inputIds = ref([]);
- const validateState = ref("");
- const validateStateDebounced = refDebounced(validateState, 100);
- const validateMessage = ref("");
- const formItemRef = ref();
- let initialValue = void 0;
- let isResettingField = false;
- const labelPosition = computed(() => props2.labelPosition || (formContext == null ? void 0 : formContext.labelPosition));
- const labelStyle = computed(() => {
- if (labelPosition.value === "top") {
- return {};
- }
- const labelWidth = addUnit(props2.labelWidth || (formContext == null ? void 0 : formContext.labelWidth) || "");
- if (labelWidth)
- return { width: labelWidth };
- return {};
- });
- const contentStyle = computed(() => {
- if (labelPosition.value === "top" || (formContext == null ? void 0 : formContext.inline)) {
- return {};
- }
- if (!props2.label && !props2.labelWidth && isNested) {
- return {};
- }
- const labelWidth = addUnit(props2.labelWidth || (formContext == null ? void 0 : formContext.labelWidth) || "");
- if (!props2.label && !slots.label) {
- return { marginLeft: labelWidth };
- }
- return {};
- });
- const formItemClasses = computed(() => [
- ns.b(),
- ns.m(_size.value),
- ns.is("error", validateState.value === "error"),
- ns.is("validating", validateState.value === "validating"),
- ns.is("success", validateState.value === "success"),
- ns.is("required", isRequired.value || props2.required),
- ns.is("no-asterisk", formContext == null ? void 0 : formContext.hideRequiredAsterisk),
- (formContext == null ? void 0 : formContext.requireAsteriskPosition) === "right" ? "asterisk-right" : "asterisk-left",
- {
- [ns.m("feedback")]: formContext == null ? void 0 : formContext.statusIcon,
- [ns.m(`label-${labelPosition.value}`)]: labelPosition.value
- }
- ]);
- const _inlineMessage = computed(() => isBoolean2(props2.inlineMessage) ? props2.inlineMessage : (formContext == null ? void 0 : formContext.inlineMessage) || false);
- const validateClasses = computed(() => [
- ns.e("error"),
- { [ns.em("error", "inline")]: _inlineMessage.value }
- ]);
- const propString = computed(() => {
- if (!props2.prop)
- return "";
- return isArray(props2.prop) ? props2.prop.join(".") : props2.prop;
- });
- const hasLabel = computed(() => {
- return !!(props2.label || slots.label);
- });
- const labelFor = computed(() => {
- var _a2;
- return (_a2 = props2.for) != null ? _a2 : inputIds.value.length === 1 ? inputIds.value[0] : void 0;
- });
- const isGroup = computed(() => {
- return !labelFor.value && hasLabel.value;
- });
- const isNested = !!parentFormItemContext;
- const fieldValue = computed(() => {
- const model = formContext == null ? void 0 : formContext.model;
- if (!model || !props2.prop) {
- return;
- }
- return getProp(model, props2.prop).value;
- });
- const normalizedRules = computed(() => {
- const { required: required4 } = props2;
- const rules2 = [];
- if (props2.rules) {
- rules2.push(...castArray_default(props2.rules));
- }
- const formRules = formContext == null ? void 0 : formContext.rules;
- if (formRules && props2.prop) {
- const _rules = getProp(formRules, props2.prop).value;
- if (_rules) {
- rules2.push(...castArray_default(_rules));
- }
- }
- if (required4 !== void 0) {
- const requiredRules = rules2.map((rule, i) => [rule, i]).filter(([rule]) => Object.keys(rule).includes("required"));
- if (requiredRules.length > 0) {
- for (const [rule, i] of requiredRules) {
- if (rule.required === required4)
- continue;
- rules2[i] = { ...rule, required: required4 };
- }
- } else {
- rules2.push({ required: required4 });
- }
- }
- return rules2;
- });
- const validateEnabled = computed(() => normalizedRules.value.length > 0);
- const getFilteredRule = (trigger) => {
- const rules2 = normalizedRules.value;
- return rules2.filter((rule) => {
- if (!rule.trigger || !trigger)
- return true;
- if (isArray(rule.trigger)) {
- return rule.trigger.includes(trigger);
- } else {
- return rule.trigger === trigger;
- }
- }).map(({ trigger: trigger2, ...rule }) => rule);
- };
- const isRequired = computed(() => normalizedRules.value.some((rule) => rule.required));
- const shouldShowError = computed(() => {
- var _a2;
- return validateStateDebounced.value === "error" && props2.showMessage && ((_a2 = formContext == null ? void 0 : formContext.showMessage) != null ? _a2 : true);
- });
- const currentLabel = computed(() => `${props2.label || ""}${(formContext == null ? void 0 : formContext.labelSuffix) || ""}`);
- const setValidationState = (state) => {
- validateState.value = state;
- };
- const onValidationFailed = (error) => {
- var _a2, _b;
- const { errors, fields } = error;
- if (!errors || !fields) {
- console.error(error);
- }
- setValidationState("error");
- validateMessage.value = errors ? (_b = (_a2 = errors == null ? void 0 : errors[0]) == null ? void 0 : _a2.message) != null ? _b : `${props2.prop} is required` : "";
- formContext == null ? void 0 : formContext.emit("validate", props2.prop, false, validateMessage.value);
- };
- const onValidationSucceeded = () => {
- setValidationState("success");
- formContext == null ? void 0 : formContext.emit("validate", props2.prop, true, "");
- };
- const doValidate = async (rules2) => {
- const modelName = propString.value;
- const validator = new Schema({
- [modelName]: rules2
- });
- return validator.validate({ [modelName]: fieldValue.value }, { firstFields: true }).then(() => {
- onValidationSucceeded();
- return true;
- }).catch((err) => {
- onValidationFailed(err);
- return Promise.reject(err);
- });
- };
- const validate = async (trigger, callback) => {
- if (isResettingField || !props2.prop) {
- return false;
- }
- const hasCallback = isFunction(callback);
- if (!validateEnabled.value) {
- callback == null ? void 0 : callback(false);
- return false;
- }
- const rules2 = getFilteredRule(trigger);
- if (rules2.length === 0) {
- callback == null ? void 0 : callback(true);
- return true;
- }
- setValidationState("validating");
- return doValidate(rules2).then(() => {
- callback == null ? void 0 : callback(true);
- return true;
- }).catch((err) => {
- const { fields } = err;
- callback == null ? void 0 : callback(false, fields);
- return hasCallback ? false : Promise.reject(fields);
- });
- };
- const clearValidate = () => {
- setValidationState("");
- validateMessage.value = "";
- isResettingField = false;
- };
- const resetField = async () => {
- const model = formContext == null ? void 0 : formContext.model;
- if (!model || !props2.prop)
- return;
- const computedValue = getProp(model, props2.prop);
- isResettingField = true;
- computedValue.value = clone_default(initialValue);
- await nextTick();
- clearValidate();
- isResettingField = false;
- };
- const addInputId = (id) => {
- if (!inputIds.value.includes(id)) {
- inputIds.value.push(id);
- }
- };
- const removeInputId = (id) => {
- inputIds.value = inputIds.value.filter((listId) => listId !== id);
- };
- watch(() => props2.error, (val) => {
- validateMessage.value = val || "";
- setValidationState(val ? "error" : "");
- }, { immediate: true });
- watch(() => props2.validateStatus, (val) => setValidationState(val || ""));
- const context = reactive({
- ...toRefs(props2),
- $el: formItemRef,
- size: _size,
- validateMessage,
- validateState,
- labelId,
- inputIds,
- isGroup,
- hasLabel,
- fieldValue,
- addInputId,
- removeInputId,
- resetField,
- clearValidate,
- validate,
- propString
- });
- provide(formItemContextKey, context);
- onMounted(() => {
- if (props2.prop) {
- formContext == null ? void 0 : formContext.addField(context);
- initialValue = clone_default(fieldValue.value);
- }
- });
- onBeforeUnmount(() => {
- formContext == null ? void 0 : formContext.removeField(context);
- });
- expose({
- size: _size,
- validateMessage,
- validateState,
- validate,
- clearValidate,
- resetField
- });
- return (_ctx, _cache) => {
- var _a2;
- return openBlock(), createElementBlock("div", {
- ref_key: "formItemRef",
- ref: formItemRef,
- class: normalizeClass(unref(formItemClasses)),
- role: unref(isGroup) ? "group" : void 0,
- "aria-labelledby": unref(isGroup) ? unref(labelId) : void 0
- }, [
- createVNode(unref(FormLabelWrap), {
- "is-auto-width": unref(labelStyle).width === "auto",
- "update-all": ((_a2 = unref(formContext)) == null ? void 0 : _a2.labelWidth) === "auto"
- }, {
- default: withCtx(() => [
- unref(hasLabel) ? (openBlock(), createBlock(resolveDynamicComponent(unref(labelFor) ? "label" : "div"), {
- key: 0,
- id: unref(labelId),
- for: unref(labelFor),
- class: normalizeClass(unref(ns).e("label")),
- style: normalizeStyle(unref(labelStyle))
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "label", { label: unref(currentLabel) }, () => [
- createTextVNode(toDisplayString(unref(currentLabel)), 1)
- ])
- ]),
- _: 3
- }, 8, ["id", "for", "class", "style"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["is-auto-width", "update-all"]),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("content")),
- style: normalizeStyle(unref(contentStyle))
- }, [
- renderSlot(_ctx.$slots, "default"),
- createVNode(TransitionGroup, {
- name: `${unref(ns).namespace.value}-zoom-in-top`
- }, {
- default: withCtx(() => [
- unref(shouldShowError) ? renderSlot(_ctx.$slots, "error", {
- key: 0,
- error: validateMessage.value
- }, () => [
- createBaseVNode("div", {
- class: normalizeClass(unref(validateClasses))
- }, toDisplayString(validateMessage.value), 3)
- ]) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["name"])
- ], 6)
- ], 10, ["role", "aria-labelledby"]);
- };
- }
- });
- var FormItem = _export_sfc(_sfc_main382, [["__file", "form-item.vue"]]);
- // node_modules/element-plus/es/components/form/index.mjs
- var ElForm = withInstall(Form, {
- FormItem
- });
- var ElFormItem = withNoopInstall(FormItem);
- // node_modules/element-plus/es/components/image-viewer/src/image-viewer.mjs
- var imageViewerProps = buildProps({
- urlList: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- zIndex: {
- type: Number
- },
- initialIndex: {
- type: Number,
- default: 0
- },
- infinite: {
- type: Boolean,
- default: true
- },
- hideOnClickModal: Boolean,
- teleported: Boolean,
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- zoomRate: {
- type: Number,
- default: 1.2
- },
- minScale: {
- type: Number,
- default: 0.2
- },
- maxScale: {
- type: Number,
- default: 7
- },
- showProgress: Boolean,
- crossorigin: {
- type: definePropType(String)
- }
- });
- var imageViewerEmits = {
- close: () => true,
- switch: (index) => isNumber2(index),
- rotate: (deg) => isNumber2(deg)
- };
- // node_modules/element-plus/es/components/image-viewer/src/image-viewer2.mjs
- var __default__67 = defineComponent({
- name: "ElImageViewer"
- });
- var _sfc_main383 = defineComponent({
- ...__default__67,
- props: imageViewerProps,
- emits: imageViewerEmits,
- setup(__props, { expose, emit }) {
- var _a2;
- const props2 = __props;
- const modes = {
- CONTAIN: {
- name: "contain",
- icon: markRaw(full_screen_default)
- },
- ORIGINAL: {
- name: "original",
- icon: markRaw(scale_to_original_default)
- }
- };
- let stopWheelListener;
- let prevOverflow = "";
- const { t } = useLocale();
- const ns = useNamespace("image-viewer");
- const { nextZIndex } = useZIndex();
- const wrapper = ref();
- const imgRefs = ref([]);
- const scopeEventListener = effectScope();
- const loading = ref(true);
- const activeIndex = ref(props2.initialIndex);
- const mode = shallowRef(modes.CONTAIN);
- const transform2 = ref({
- scale: 1,
- deg: 0,
- offsetX: 0,
- offsetY: 0,
- enableTransition: false
- });
- const zIndex2 = ref((_a2 = props2.zIndex) != null ? _a2 : nextZIndex());
- const isSingle = computed(() => {
- const { urlList } = props2;
- return urlList.length <= 1;
- });
- const isFirst = computed(() => activeIndex.value === 0);
- const isLast = computed(() => activeIndex.value === props2.urlList.length - 1);
- const currentImg = computed(() => props2.urlList[activeIndex.value]);
- const arrowPrevKls = computed(() => [
- ns.e("btn"),
- ns.e("prev"),
- ns.is("disabled", !props2.infinite && isFirst.value)
- ]);
- const arrowNextKls = computed(() => [
- ns.e("btn"),
- ns.e("next"),
- ns.is("disabled", !props2.infinite && isLast.value)
- ]);
- const imgStyle = computed(() => {
- const { scale, deg, offsetX, offsetY, enableTransition } = transform2.value;
- let translateX = offsetX / scale;
- let translateY = offsetY / scale;
- const radian = deg * Math.PI / 180;
- const cosRadian = Math.cos(radian);
- const sinRadian = Math.sin(radian);
- translateX = translateX * cosRadian + translateY * sinRadian;
- translateY = translateY * cosRadian - offsetX / scale * sinRadian;
- const style = {
- transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,
- transition: enableTransition ? "transform .3s" : ""
- };
- if (mode.value.name === modes.CONTAIN.name) {
- style.maxWidth = style.maxHeight = "100%";
- }
- return style;
- });
- const progress = computed(() => `${activeIndex.value + 1} / ${props2.urlList.length}`);
- function hide2() {
- unregisterEventListener();
- stopWheelListener == null ? void 0 : stopWheelListener();
- document.body.style.overflow = prevOverflow;
- emit("close");
- }
- function registerEventListener() {
- const keydownHandler = throttle_default((e) => {
- switch (e.code) {
- case EVENT_CODE.esc:
- props2.closeOnPressEscape && hide2();
- break;
- case EVENT_CODE.space:
- toggleMode();
- break;
- case EVENT_CODE.left:
- prev();
- break;
- case EVENT_CODE.up:
- handleActions("zoomIn");
- break;
- case EVENT_CODE.right:
- next();
- break;
- case EVENT_CODE.down:
- handleActions("zoomOut");
- break;
- }
- });
- const mousewheelHandler = throttle_default((e) => {
- const delta = e.deltaY || e.deltaX;
- handleActions(delta < 0 ? "zoomIn" : "zoomOut", {
- zoomRate: props2.zoomRate,
- enableTransition: false
- });
- });
- scopeEventListener.run(() => {
- useEventListener(document, "keydown", keydownHandler);
- useEventListener(document, "wheel", mousewheelHandler);
- });
- }
- function unregisterEventListener() {
- scopeEventListener.stop();
- }
- function handleImgLoad() {
- loading.value = false;
- }
- function handleImgError(e) {
- loading.value = false;
- e.target.alt = t("el.image.error");
- }
- function handleMouseDown(e) {
- if (loading.value || e.button !== 0 || !wrapper.value)
- return;
- transform2.value.enableTransition = false;
- const { offsetX, offsetY } = transform2.value;
- const startX = e.pageX;
- const startY = e.pageY;
- const dragHandler = throttle_default((ev) => {
- transform2.value = {
- ...transform2.value,
- offsetX: offsetX + ev.pageX - startX,
- offsetY: offsetY + ev.pageY - startY
- };
- });
- const removeMousemove = useEventListener(document, "mousemove", dragHandler);
- useEventListener(document, "mouseup", () => {
- removeMousemove();
- });
- e.preventDefault();
- }
- function reset() {
- transform2.value = {
- scale: 1,
- deg: 0,
- offsetX: 0,
- offsetY: 0,
- enableTransition: false
- };
- }
- function toggleMode() {
- if (loading.value)
- return;
- const modeNames = keysOf(modes);
- const modeValues = Object.values(modes);
- const currentMode = mode.value.name;
- const index = modeValues.findIndex((i) => i.name === currentMode);
- const nextIndex = (index + 1) % modeNames.length;
- mode.value = modes[modeNames[nextIndex]];
- reset();
- }
- function setActiveItem(index) {
- const len = props2.urlList.length;
- activeIndex.value = (index + len) % len;
- }
- function prev() {
- if (isFirst.value && !props2.infinite)
- return;
- setActiveItem(activeIndex.value - 1);
- }
- function next() {
- if (isLast.value && !props2.infinite)
- return;
- setActiveItem(activeIndex.value + 1);
- }
- function handleActions(action, options = {}) {
- if (loading.value)
- return;
- const { minScale, maxScale } = props2;
- const { zoomRate, rotateDeg, enableTransition } = {
- zoomRate: props2.zoomRate,
- rotateDeg: 90,
- enableTransition: true,
- ...options
- };
- switch (action) {
- case "zoomOut":
- if (transform2.value.scale > minScale) {
- transform2.value.scale = Number.parseFloat((transform2.value.scale / zoomRate).toFixed(3));
- }
- break;
- case "zoomIn":
- if (transform2.value.scale < maxScale) {
- transform2.value.scale = Number.parseFloat((transform2.value.scale * zoomRate).toFixed(3));
- }
- break;
- case "clockwise":
- transform2.value.deg += rotateDeg;
- emit("rotate", transform2.value.deg);
- break;
- case "anticlockwise":
- transform2.value.deg -= rotateDeg;
- emit("rotate", transform2.value.deg);
- break;
- }
- transform2.value.enableTransition = enableTransition;
- }
- function onFocusoutPrevented(event) {
- var _a22;
- if (((_a22 = event.detail) == null ? void 0 : _a22.focusReason) === "pointer") {
- event.preventDefault();
- }
- }
- function onCloseRequested() {
- if (props2.closeOnPressEscape) {
- hide2();
- }
- }
- function wheelHandler(e) {
- if (!e.ctrlKey)
- return;
- if (e.deltaY < 0) {
- e.preventDefault();
- return false;
- } else if (e.deltaY > 0) {
- e.preventDefault();
- return false;
- }
- }
- watch(currentImg, () => {
- nextTick(() => {
- const $img = imgRefs.value[0];
- if (!($img == null ? void 0 : $img.complete)) {
- loading.value = true;
- }
- });
- });
- watch(activeIndex, (val) => {
- reset();
- emit("switch", val);
- });
- onMounted(() => {
- registerEventListener();
- stopWheelListener = useEventListener("wheel", wheelHandler, {
- passive: false
- });
- prevOverflow = document.body.style.overflow;
- document.body.style.overflow = "hidden";
- });
- expose({
- setActiveItem
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTeleport), {
- to: "body",
- disabled: !_ctx.teleported
- }, {
- default: withCtx(() => [
- createVNode(Transition, {
- name: "viewer-fade",
- appear: ""
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- ref_key: "wrapper",
- ref: wrapper,
- tabindex: -1,
- class: normalizeClass(unref(ns).e("wrapper")),
- style: normalizeStyle({ zIndex: zIndex2.value })
- }, [
- createVNode(unref(ElFocusTrap), {
- loop: "",
- trapped: "",
- "focus-trap-el": wrapper.value,
- "focus-start-el": "container",
- onFocusoutPrevented,
- onReleaseRequested: onCloseRequested
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("mask")),
- onClick: withModifiers(($event) => _ctx.hideOnClickModal && hide2(), ["self"])
- }, null, 10, ["onClick"]),
- createCommentVNode(" CLOSE "),
- createBaseVNode("span", {
- class: normalizeClass([unref(ns).e("btn"), unref(ns).e("close")]),
- onClick: hide2
- }, [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 1
- })
- ], 2),
- createCommentVNode(" ARROW "),
- !unref(isSingle) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(arrowPrevKls)),
- onClick: prev
- }, [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_left_default))
- ]),
- _: 1
- })
- ], 2),
- createBaseVNode("span", {
- class: normalizeClass(unref(arrowNextKls)),
- onClick: next
- }, [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ], 2)
- ], 64)) : createCommentVNode("v-if", true),
- _ctx.$slots.progress || _ctx.showProgress ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([unref(ns).e("btn"), unref(ns).e("progress")])
- }, [
- renderSlot(_ctx.$slots, "progress", {
- activeIndex: activeIndex.value,
- total: _ctx.urlList.length
- }, () => [
- createTextVNode(toDisplayString(unref(progress)), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- createCommentVNode(" ACTIONS "),
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("btn"), unref(ns).e("actions")])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("actions__inner"))
- }, [
- renderSlot(_ctx.$slots, "toolbar", {
- actions: handleActions,
- prev,
- next,
- reset: toggleMode,
- activeIndex: activeIndex.value,
- setActiveItem
- }, () => [
- createVNode(unref(ElIcon), {
- onClick: ($event) => handleActions("zoomOut")
- }, {
- default: withCtx(() => [
- createVNode(unref(zoom_out_default))
- ]),
- _: 1
- }, 8, ["onClick"]),
- createVNode(unref(ElIcon), {
- onClick: ($event) => handleActions("zoomIn")
- }, {
- default: withCtx(() => [
- createVNode(unref(zoom_in_default))
- ]),
- _: 1
- }, 8, ["onClick"]),
- createBaseVNode("i", {
- class: normalizeClass(unref(ns).e("actions__divider"))
- }, null, 2),
- createVNode(unref(ElIcon), { onClick: toggleMode }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(mode).icon)))
- ]),
- _: 1
- }),
- createBaseVNode("i", {
- class: normalizeClass(unref(ns).e("actions__divider"))
- }, null, 2),
- createVNode(unref(ElIcon), {
- onClick: ($event) => handleActions("anticlockwise")
- }, {
- default: withCtx(() => [
- createVNode(unref(refresh_left_default))
- ]),
- _: 1
- }, 8, ["onClick"]),
- createVNode(unref(ElIcon), {
- onClick: ($event) => handleActions("clockwise")
- }, {
- default: withCtx(() => [
- createVNode(unref(refresh_right_default))
- ]),
- _: 1
- }, 8, ["onClick"])
- ])
- ], 2)
- ], 2),
- createCommentVNode(" CANVAS "),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("canvas"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.urlList, (url2, i) => {
- return openBlock(), createElementBlock(Fragment, { key: i }, [
- i === activeIndex.value ? (openBlock(), createElementBlock("img", {
- key: 0,
- ref_for: true,
- ref: (el) => imgRefs.value[i] = el,
- src: url2,
- style: normalizeStyle(unref(imgStyle)),
- class: normalizeClass(unref(ns).e("img")),
- crossorigin: _ctx.crossorigin,
- onLoad: handleImgLoad,
- onError: handleImgError,
- onMousedown: handleMouseDown
- }, null, 46, ["src", "crossorigin"])) : createCommentVNode("v-if", true)
- ], 64);
- }), 128))
- ], 2),
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["focus-trap-el"])
- ], 6)
- ]),
- _: 3
- })
- ]),
- _: 3
- }, 8, ["disabled"]);
- };
- }
- });
- var ImageViewer = _export_sfc(_sfc_main383, [["__file", "image-viewer.vue"]]);
- // node_modules/element-plus/es/components/image-viewer/index.mjs
- var ElImageViewer = withInstall(ImageViewer);
- // node_modules/element-plus/es/components/image/src/image.mjs
- var imageProps = buildProps({
- hideOnClickModal: Boolean,
- src: {
- type: String,
- default: ""
- },
- fit: {
- type: String,
- values: ["", "contain", "cover", "fill", "none", "scale-down"],
- default: ""
- },
- loading: {
- type: String,
- values: ["eager", "lazy"]
- },
- lazy: Boolean,
- scrollContainer: {
- type: definePropType([String, Object])
- },
- previewSrcList: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- previewTeleported: Boolean,
- zIndex: {
- type: Number
- },
- initialIndex: {
- type: Number,
- default: 0
- },
- infinite: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- zoomRate: {
- type: Number,
- default: 1.2
- },
- minScale: {
- type: Number,
- default: 0.2
- },
- maxScale: {
- type: Number,
- default: 7
- },
- showProgress: Boolean,
- crossorigin: {
- type: definePropType(String)
- }
- });
- var imageEmits = {
- load: (evt) => evt instanceof Event,
- error: (evt) => evt instanceof Event,
- switch: (val) => isNumber2(val),
- close: () => true,
- show: () => true
- };
- // node_modules/element-plus/es/components/image/src/image2.mjs
- var __default__68 = defineComponent({
- name: "ElImage",
- inheritAttrs: false
- });
- var _sfc_main384 = defineComponent({
- ...__default__68,
- props: imageProps,
- emits: imageEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("image");
- const rawAttrs = useAttrs();
- const containerAttrs = computed(() => {
- return fromPairs_default(Object.entries(rawAttrs).filter(([key]) => /^(data-|on[A-Z])/i.test(key) || ["id", "style"].includes(key)));
- });
- const imgAttrs = useAttrs2({
- excludeListeners: true,
- excludeKeys: computed(() => {
- return Object.keys(containerAttrs.value);
- })
- });
- const imageSrc = ref();
- const hasLoadError = ref(false);
- const isLoading = ref(true);
- const showViewer = ref(false);
- const container = ref();
- const _scrollContainer = ref();
- const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
- let stopScrollListener;
- const imageKls = computed(() => [
- ns.e("inner"),
- preview.value && ns.e("preview"),
- isLoading.value && ns.is("loading")
- ]);
- const imageStyle = computed(() => {
- const { fit } = props2;
- if (isClient && fit) {
- return { objectFit: fit };
- }
- return {};
- });
- const preview = computed(() => {
- const { previewSrcList } = props2;
- return isArray(previewSrcList) && previewSrcList.length > 0;
- });
- const imageIndex = computed(() => {
- const { previewSrcList, initialIndex } = props2;
- let previewIndex = initialIndex;
- if (initialIndex > previewSrcList.length - 1) {
- previewIndex = 0;
- }
- return previewIndex;
- });
- const isManual = computed(() => {
- if (props2.loading === "eager")
- return false;
- return !supportLoading && props2.loading === "lazy" || props2.lazy;
- });
- const loadImage = () => {
- if (!isClient)
- return;
- isLoading.value = true;
- hasLoadError.value = false;
- imageSrc.value = props2.src;
- };
- function handleLoad(event) {
- isLoading.value = false;
- hasLoadError.value = false;
- emit("load", event);
- }
- function handleError(event) {
- isLoading.value = false;
- hasLoadError.value = true;
- emit("error", event);
- }
- function handleLazyLoad(isIntersecting) {
- if (isIntersecting) {
- loadImage();
- removeLazyLoadListener();
- }
- }
- const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
- async function addLazyLoadListener() {
- var _a2;
- if (!isClient)
- return;
- await nextTick();
- const { scrollContainer } = props2;
- if (isElement2(scrollContainer)) {
- _scrollContainer.value = scrollContainer;
- } else if (isString(scrollContainer) && scrollContainer !== "") {
- _scrollContainer.value = (_a2 = document.querySelector(scrollContainer)) != null ? _a2 : void 0;
- } else if (container.value) {
- const scrollContainer2 = getScrollContainer(container.value);
- _scrollContainer.value = isWindow(scrollContainer2) ? void 0 : scrollContainer2;
- }
- const { stop } = useIntersectionObserver(container, ([entry]) => {
- lazyLoadHandler(entry.isIntersecting);
- }, { root: _scrollContainer });
- stopScrollListener = stop;
- }
- function removeLazyLoadListener() {
- if (!isClient || !lazyLoadHandler)
- return;
- stopScrollListener == null ? void 0 : stopScrollListener();
- _scrollContainer.value = void 0;
- stopScrollListener = void 0;
- }
- function clickHandler() {
- if (!preview.value)
- return;
- showViewer.value = true;
- emit("show");
- }
- function closeViewer() {
- showViewer.value = false;
- emit("close");
- }
- function switchViewer(val) {
- emit("switch", val);
- }
- watch(() => props2.src, () => {
- if (isManual.value) {
- isLoading.value = true;
- hasLoadError.value = false;
- removeLazyLoadListener();
- addLazyLoadListener();
- } else {
- loadImage();
- }
- });
- onMounted(() => {
- if (isManual.value) {
- addLazyLoadListener();
- } else {
- loadImage();
- }
- });
- expose({
- showPreview: clickHandler
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", mergeProps({
- ref_key: "container",
- ref: container
- }, unref(containerAttrs), {
- class: [unref(ns).b(), _ctx.$attrs.class]
- }), [
- hasLoadError.value ? renderSlot(_ctx.$slots, "error", { key: 0 }, () => [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("error"))
- }, toDisplayString(unref(t)("el.image.error")), 3)
- ]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- imageSrc.value !== void 0 ? (openBlock(), createElementBlock("img", mergeProps({ key: 0 }, unref(imgAttrs), {
- src: imageSrc.value,
- loading: _ctx.loading,
- style: unref(imageStyle),
- class: unref(imageKls),
- crossorigin: _ctx.crossorigin,
- onClick: clickHandler,
- onLoad: handleLoad,
- onError: handleError
- }), null, 16, ["src", "loading", "crossorigin"])) : createCommentVNode("v-if", true),
- isLoading.value ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("wrapper"))
- }, [
- renderSlot(_ctx.$slots, "placeholder", {}, () => [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("placeholder"))
- }, null, 2)
- ])
- ], 2)) : createCommentVNode("v-if", true)
- ], 64)),
- unref(preview) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
- showViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), {
- key: 0,
- "z-index": _ctx.zIndex,
- "initial-index": unref(imageIndex),
- infinite: _ctx.infinite,
- "zoom-rate": _ctx.zoomRate,
- "min-scale": _ctx.minScale,
- "max-scale": _ctx.maxScale,
- "show-progress": _ctx.showProgress,
- "url-list": _ctx.previewSrcList,
- crossorigin: _ctx.crossorigin,
- "hide-on-click-modal": _ctx.hideOnClickModal,
- teleported: _ctx.previewTeleported,
- "close-on-press-escape": _ctx.closeOnPressEscape,
- onClose: closeViewer,
- onSwitch: switchViewer
- }, createSlots({
- toolbar: withCtx((toolbar) => [
- renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(toolbar)))
- ]),
- default: withCtx(() => [
- _ctx.$slots.viewer ? (openBlock(), createElementBlock("div", { key: 0 }, [
- renderSlot(_ctx.$slots, "viewer")
- ])) : createCommentVNode("v-if", true)
- ]),
- _: 2
- }, [
- _ctx.$slots.progress ? {
- name: "progress",
- fn: withCtx((progress) => [
- renderSlot(_ctx.$slots, "progress", normalizeProps(guardReactiveProps(progress)))
- ])
- } : void 0
- ]), 1032, ["z-index", "initial-index", "infinite", "zoom-rate", "min-scale", "max-scale", "show-progress", "url-list", "crossorigin", "hide-on-click-modal", "teleported", "close-on-press-escape"])) : createCommentVNode("v-if", true)
- ], 64)) : createCommentVNode("v-if", true)
- ], 16);
- };
- }
- });
- var Image2 = _export_sfc(_sfc_main384, [["__file", "image.vue"]]);
- // node_modules/element-plus/es/components/image/index.mjs
- var ElImage = withInstall(Image2);
- // node_modules/element-plus/es/components/input-number/src/input-number.mjs
- var inputNumberProps = buildProps({
- id: {
- type: String,
- default: void 0
- },
- step: {
- type: Number,
- default: 1
- },
- stepStrictly: Boolean,
- max: {
- type: Number,
- default: Number.MAX_SAFE_INTEGER
- },
- min: {
- type: Number,
- default: Number.MIN_SAFE_INTEGER
- },
- modelValue: {
- type: [Number, null]
- },
- readonly: Boolean,
- disabled: Boolean,
- size: useSizeProp,
- controls: {
- type: Boolean,
- default: true
- },
- controlsPosition: {
- type: String,
- default: "",
- values: ["", "right"]
- },
- valueOnClear: {
- type: [String, Number, null],
- validator: (val) => val === null || isNumber2(val) || ["min", "max"].includes(val),
- default: null
- },
- name: String,
- placeholder: String,
- precision: {
- type: Number,
- validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- ...useAriaProps(["ariaLabel"]),
- inputmode: {
- type: definePropType(String),
- default: void 0
- },
- align: {
- type: definePropType(String),
- default: "center"
- },
- disabledScientific: Boolean
- });
- var inputNumberEmits = {
- [CHANGE_EVENT]: (cur, prev) => prev !== cur,
- blur: (e) => e instanceof FocusEvent,
- focus: (e) => e instanceof FocusEvent,
- [INPUT_EVENT]: (val) => isNumber2(val) || isNil_default(val),
- [UPDATE_MODEL_EVENT]: (val) => isNumber2(val) || isNil_default(val)
- };
- // node_modules/element-plus/es/components/input-number/src/input-number2.mjs
- var __default__69 = defineComponent({
- name: "ElInputNumber"
- });
- var _sfc_main385 = defineComponent({
- ...__default__69,
- props: inputNumberProps,
- emits: inputNumberEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("input-number");
- const input = ref();
- const data = reactive({
- currentValue: props2.modelValue,
- userInput: null
- });
- const { formItem } = useFormItem();
- const minDisabled = computed(() => isNumber2(props2.modelValue) && props2.modelValue <= props2.min);
- const maxDisabled = computed(() => isNumber2(props2.modelValue) && props2.modelValue >= props2.max);
- const numPrecision = computed(() => {
- const stepPrecision = getPrecision(props2.step);
- if (!isUndefined2(props2.precision)) {
- if (stepPrecision > props2.precision) ;
- return props2.precision;
- } else {
- return Math.max(getPrecision(props2.modelValue), stepPrecision);
- }
- });
- const controlsAtRight = computed(() => {
- return props2.controls && props2.controlsPosition === "right";
- });
- const inputNumberSize = useFormSize();
- const inputNumberDisabled = useFormDisabled();
- const displayValue = computed(() => {
- if (data.userInput !== null) {
- return data.userInput;
- }
- let currentValue = data.currentValue;
- if (isNil_default(currentValue))
- return "";
- if (isNumber2(currentValue)) {
- if (Number.isNaN(currentValue))
- return "";
- if (!isUndefined2(props2.precision)) {
- currentValue = currentValue.toFixed(props2.precision);
- }
- }
- return currentValue;
- });
- const toPrecision = (num, pre) => {
- if (isUndefined2(pre))
- pre = numPrecision.value;
- if (pre === 0)
- return Math.round(num);
- let snum = String(num);
- const pointPos = snum.indexOf(".");
- if (pointPos === -1)
- return num;
- const nums = snum.replace(".", "").split("");
- const datum = nums[pointPos + pre];
- if (!datum)
- return num;
- const length = snum.length;
- if (snum.charAt(length - 1) === "5") {
- snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
- }
- return Number.parseFloat(Number(snum).toFixed(pre));
- };
- const getPrecision = (value) => {
- if (isNil_default(value))
- return 0;
- const valueString = value.toString();
- const dotPosition = valueString.indexOf(".");
- let precision = 0;
- if (dotPosition !== -1) {
- precision = valueString.length - dotPosition - 1;
- }
- return precision;
- };
- const ensurePrecision = (val, coefficient = 1) => {
- if (!isNumber2(val))
- return data.currentValue;
- if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
- return val;
- } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
- return val;
- }
- return toPrecision(val + props2.step * coefficient);
- };
- const handleKeydown = (event) => {
- var _a2;
- const e = event;
- if (props2.disabledScientific && ["e", "E"].includes(e.key)) {
- e.preventDefault();
- return;
- }
- const keyHandlers = {
- [EVENT_CODE.up]: () => {
- e.preventDefault();
- increase();
- },
- [EVENT_CODE.down]: () => {
- e.preventDefault();
- decrease();
- }
- };
- (_a2 = keyHandlers[e.key]) == null ? void 0 : _a2.call(keyHandlers);
- };
- const increase = () => {
- if (props2.readonly || inputNumberDisabled.value || maxDisabled.value)
- return;
- const value = Number(displayValue.value) || 0;
- const newVal = ensurePrecision(value);
- setCurrentValue(newVal);
- emit(INPUT_EVENT, data.currentValue);
- setCurrentValueToModelValue();
- };
- const decrease = () => {
- if (props2.readonly || inputNumberDisabled.value || minDisabled.value)
- return;
- const value = Number(displayValue.value) || 0;
- const newVal = ensurePrecision(value, -1);
- setCurrentValue(newVal);
- emit(INPUT_EVENT, data.currentValue);
- setCurrentValueToModelValue();
- };
- const verifyValue = (value, update2) => {
- const { max: max4, min: min4, step: step2, precision, stepStrictly, valueOnClear } = props2;
- if (max4 < min4) {
- throwError("InputNumber", "min should not be greater than max.");
- }
- let newVal = Number(value);
- if (isNil_default(value) || Number.isNaN(newVal)) {
- return null;
- }
- if (value === "") {
- if (valueOnClear === null) {
- return null;
- }
- newVal = isString(valueOnClear) ? { min: min4, max: max4 }[valueOnClear] : valueOnClear;
- }
- if (stepStrictly) {
- newVal = toPrecision(Math.round(newVal / step2) * step2, precision);
- if (newVal !== value) {
- update2 && emit(UPDATE_MODEL_EVENT, newVal);
- }
- }
- if (!isUndefined2(precision)) {
- newVal = toPrecision(newVal, precision);
- }
- if (newVal > max4 || newVal < min4) {
- newVal = newVal > max4 ? max4 : min4;
- update2 && emit(UPDATE_MODEL_EVENT, newVal);
- }
- return newVal;
- };
- const setCurrentValue = (value, emitChange = true) => {
- var _a2;
- const oldVal = data.currentValue;
- const newVal = verifyValue(value);
- if (!emitChange) {
- emit(UPDATE_MODEL_EVENT, newVal);
- return;
- }
- if (oldVal === newVal && value)
- return;
- data.userInput = null;
- emit(UPDATE_MODEL_EVENT, newVal);
- if (oldVal !== newVal) {
- emit(CHANGE_EVENT, newVal, oldVal);
- }
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn());
- }
- data.currentValue = newVal;
- };
- const handleInput = (value) => {
- data.userInput = value;
- const newVal = value === "" ? null : Number(value);
- emit(INPUT_EVENT, newVal);
- setCurrentValue(newVal, false);
- };
- const handleInputChange = (value) => {
- const newVal = value !== "" ? Number(value) : "";
- if (isNumber2(newVal) && !Number.isNaN(newVal) || value === "") {
- setCurrentValue(newVal);
- }
- setCurrentValueToModelValue();
- data.userInput = null;
- };
- const focus = () => {
- var _a2, _b;
- (_b = (_a2 = input.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
- };
- const blur = () => {
- var _a2, _b;
- (_b = (_a2 = input.value) == null ? void 0 : _a2.blur) == null ? void 0 : _b.call(_a2);
- };
- const handleFocus = (event) => {
- emit("focus", event);
- };
- const handleBlur = (event) => {
- var _a2, _b;
- data.userInput = null;
- if (data.currentValue === null && ((_a2 = input.value) == null ? void 0 : _a2.input)) {
- input.value.input.value = "";
- }
- emit("blur", event);
- if (props2.validateEvent) {
- (_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn());
- }
- };
- const setCurrentValueToModelValue = () => {
- if (data.currentValue !== props2.modelValue) {
- data.currentValue = props2.modelValue;
- }
- };
- const handleWheel = (e) => {
- if (document.activeElement === e.target)
- e.preventDefault();
- };
- watch(() => props2.modelValue, (value, oldValue) => {
- const newValue = verifyValue(value, true);
- if (data.userInput === null && newValue !== oldValue) {
- data.currentValue = newValue;
- }
- }, { immediate: true });
- watch(() => props2.precision, () => {
- data.currentValue = verifyValue(props2.modelValue);
- });
- onMounted(() => {
- var _a2;
- const { min: min4, max: max4, modelValue } = props2;
- const innerInput = (_a2 = input.value) == null ? void 0 : _a2.input;
- innerInput.setAttribute("role", "spinbutton");
- if (Number.isFinite(max4)) {
- innerInput.setAttribute("aria-valuemax", String(max4));
- } else {
- innerInput.removeAttribute("aria-valuemax");
- }
- if (Number.isFinite(min4)) {
- innerInput.setAttribute("aria-valuemin", String(min4));
- } else {
- innerInput.removeAttribute("aria-valuemin");
- }
- innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
- innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
- if (!isNumber2(modelValue) && modelValue != null) {
- let val = Number(modelValue);
- if (Number.isNaN(val)) {
- val = null;
- }
- emit(UPDATE_MODEL_EVENT, val);
- }
- innerInput.addEventListener("wheel", handleWheel, { passive: false });
- });
- onUpdated(() => {
- var _a2, _b;
- const innerInput = (_a2 = input.value) == null ? void 0 : _a2.input;
- innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
- });
- expose({
- focus,
- blur
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ns).b(),
- unref(ns).m(unref(inputNumberSize)),
- unref(ns).is("disabled", unref(inputNumberDisabled)),
- unref(ns).is("without-controls", !_ctx.controls),
- unref(ns).is("controls-right", unref(controlsAtRight)),
- unref(ns).is(_ctx.align, !!_ctx.align)
- ]),
- onDragstart: withModifiers(() => {
- }, ["prevent"])
- }, [
- _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
- key: 0,
- role: "button",
- "aria-label": unref(t)("el.inputNumber.decrease"),
- class: normalizeClass([unref(ns).e("decrease"), unref(ns).is("disabled", unref(minDisabled))]),
- onKeydown: withKeys(decrease, ["enter"])
- }, [
- renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- unref(controlsAtRight) ? (openBlock(), createBlock(unref(arrow_down_default), { key: 0 })) : (openBlock(), createBlock(unref(minus_default), { key: 1 }))
- ]),
- _: 1
- })
- ])
- ], 42, ["aria-label", "onKeydown"])), [
- [unref(vRepeatClick), decrease]
- ]) : createCommentVNode("v-if", true),
- _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
- key: 1,
- role: "button",
- "aria-label": unref(t)("el.inputNumber.increase"),
- class: normalizeClass([unref(ns).e("increase"), unref(ns).is("disabled", unref(maxDisabled))]),
- onKeydown: withKeys(increase, ["enter"])
- }, [
- renderSlot(_ctx.$slots, "increase-icon", {}, () => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- unref(controlsAtRight) ? (openBlock(), createBlock(unref(arrow_up_default), { key: 0 })) : (openBlock(), createBlock(unref(plus_default), { key: 1 }))
- ]),
- _: 1
- })
- ])
- ], 42, ["aria-label", "onKeydown"])), [
- [unref(vRepeatClick), increase]
- ]) : createCommentVNode("v-if", true),
- createVNode(unref(ElInput), {
- id: _ctx.id,
- ref_key: "input",
- ref: input,
- type: "number",
- step: _ctx.step,
- "model-value": unref(displayValue),
- placeholder: _ctx.placeholder,
- readonly: _ctx.readonly,
- disabled: unref(inputNumberDisabled),
- size: unref(inputNumberSize),
- max: _ctx.max,
- min: _ctx.min,
- name: _ctx.name,
- "aria-label": _ctx.ariaLabel,
- "validate-event": false,
- inputmode: _ctx.inputmode,
- onKeydown: handleKeydown,
- onBlur: handleBlur,
- onFocus: handleFocus,
- onInput: handleInput,
- onChange: handleInputChange
- }, createSlots({
- _: 2
- }, [
- _ctx.$slots.prefix ? {
- name: "prefix",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "prefix")
- ])
- } : void 0,
- _ctx.$slots.suffix ? {
- name: "suffix",
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, "suffix")
- ])
- } : void 0
- ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "inputmode"])
- ], 42, ["onDragstart"]);
- };
- }
- });
- var InputNumber = _export_sfc(_sfc_main385, [["__file", "input-number.vue"]]);
- // node_modules/element-plus/es/components/input-number/index.mjs
- var ElInputNumber = withInstall(InputNumber);
- // node_modules/element-plus/es/components/input-tag/src/input-tag.mjs
- var inputTagProps = buildProps({
- modelValue: {
- type: definePropType(Array)
- },
- max: Number,
- tagType: { ...tagProps.type, default: "info" },
- tagEffect: tagProps.effect,
- trigger: {
- type: definePropType(String),
- default: EVENT_CODE.enter
- },
- draggable: Boolean,
- delimiter: {
- type: [String, RegExp],
- default: ""
- },
- size: useSizeProp,
- clearable: Boolean,
- clearIcon: {
- type: iconPropType,
- default: circle_close_default
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- readonly: Boolean,
- autofocus: Boolean,
- id: {
- type: String,
- default: void 0
- },
- tabindex: {
- type: [String, Number],
- default: 0
- },
- maxlength: {
- type: [String, Number]
- },
- minlength: {
- type: [String, Number]
- },
- placeholder: String,
- autocomplete: {
- type: String,
- default: "off"
- },
- saveOnBlur: {
- type: Boolean,
- default: true
- },
- collapseTags: Boolean,
- collapseTagsTooltip: Boolean,
- maxCollapseTags: {
- type: Number,
- default: 1
- },
- ariaLabel: String
- });
- var inputTagEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isArray(value) || isUndefined2(value),
- [CHANGE_EVENT]: (value) => isArray(value) || isUndefined2(value),
- [INPUT_EVENT]: (value) => isString(value),
- "add-tag": (value) => isString(value) || isArray(value),
- "remove-tag": (value) => isString(value),
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent,
- clear: () => true
- };
- // node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag.mjs
- function useInputTag({ props: props2, emit, formItem }) {
- const disabled = useFormDisabled();
- const size3 = useFormSize();
- const inputRef = shallowRef();
- const inputValue = ref();
- const tagTooltipRef = ref();
- const tagSize = computed(() => {
- return ["small"].includes(size3.value) ? "small" : "default";
- });
- const placeholder = computed(() => {
- var _a2;
- return ((_a2 = props2.modelValue) == null ? void 0 : _a2.length) ? void 0 : props2.placeholder;
- });
- const closable = computed(() => !(props2.readonly || disabled.value));
- const inputLimit = computed(() => {
- var _a2, _b;
- return isUndefined2(props2.max) ? false : ((_b = (_a2 = props2.modelValue) == null ? void 0 : _a2.length) != null ? _b : 0) >= props2.max;
- });
- const showTagList = computed(() => {
- var _a2;
- return props2.collapseTags ? (_a2 = props2.modelValue) == null ? void 0 : _a2.slice(0, props2.maxCollapseTags) : props2.modelValue;
- });
- const collapseTagList = computed(() => {
- var _a2;
- return props2.collapseTags ? (_a2 = props2.modelValue) == null ? void 0 : _a2.slice(props2.maxCollapseTags) : [];
- });
- const addTagsEmit = (value) => {
- var _a2;
- const list = [...(_a2 = props2.modelValue) != null ? _a2 : [], ...castArray_default(value)];
- emit(UPDATE_MODEL_EVENT, list);
- emit(CHANGE_EVENT, list);
- emit("add-tag", value);
- inputValue.value = void 0;
- };
- const getDelimitedTags = (input) => {
- var _a2, _b;
- const tags = input.split(props2.delimiter).filter((val) => val && val !== input);
- if (props2.max) {
- const maxInsert = props2.max - ((_b = (_a2 = props2.modelValue) == null ? void 0 : _a2.length) != null ? _b : 0);
- tags.splice(maxInsert);
- }
- return tags.length === 1 ? tags[0] : tags;
- };
- const handleInput = (event) => {
- if (inputLimit.value) {
- inputValue.value = void 0;
- return;
- }
- if (isComposing.value)
- return;
- if (props2.delimiter && inputValue.value) {
- const tags = getDelimitedTags(inputValue.value);
- if (tags.length) {
- addTagsEmit(tags);
- }
- }
- emit(INPUT_EVENT, event.target.value);
- };
- const handleKeydown = (event) => {
- var _a2;
- if (isComposing.value)
- return;
- switch (event.code) {
- case props2.trigger:
- event.preventDefault();
- event.stopPropagation();
- handleAddTag();
- break;
- case EVENT_CODE.numpadEnter:
- if (props2.trigger === EVENT_CODE.enter) {
- event.preventDefault();
- event.stopPropagation();
- handleAddTag();
- }
- break;
- case EVENT_CODE.backspace:
- if (!inputValue.value && ((_a2 = props2.modelValue) == null ? void 0 : _a2.length)) {
- event.preventDefault();
- event.stopPropagation();
- handleRemoveTag(props2.modelValue.length - 1);
- }
- break;
- }
- };
- const handleAddTag = () => {
- var _a2;
- const value = (_a2 = inputValue.value) == null ? void 0 : _a2.trim();
- if (!value || inputLimit.value)
- return;
- addTagsEmit(value);
- };
- const handleRemoveTag = (index) => {
- var _a2;
- const value = ((_a2 = props2.modelValue) != null ? _a2 : []).slice();
- const [item] = value.splice(index, 1);
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value);
- emit("remove-tag", item);
- };
- const handleClear = () => {
- inputValue.value = void 0;
- emit(UPDATE_MODEL_EVENT, void 0);
- emit(CHANGE_EVENT, void 0);
- emit("clear");
- };
- const handleDragged = (draggingIndex, dropIndex, type4) => {
- var _a2;
- const value = ((_a2 = props2.modelValue) != null ? _a2 : []).slice();
- const [draggedItem] = value.splice(draggingIndex, 1);
- const step2 = dropIndex > draggingIndex && type4 === "before" ? -1 : dropIndex < draggingIndex && type4 === "after" ? 1 : 0;
- value.splice(dropIndex + step2, 0, draggedItem);
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value);
- };
- const focus = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
- };
- const { wrapperRef, isFocused } = useFocusController(inputRef, {
- disabled,
- beforeBlur(event) {
- var _a2;
- return (_a2 = tagTooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event);
- },
- afterBlur() {
- var _a2;
- if (props2.saveOnBlur) {
- handleAddTag();
- } else {
- inputValue.value = void 0;
- }
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn());
- }
- }
- });
- const {
- isComposing,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd
- } = useComposition({ afterComposition: handleInput });
- watch(() => props2.modelValue, () => {
- var _a2;
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, CHANGE_EVENT).catch((err) => debugWarn());
- }
- });
- return {
- inputRef,
- wrapperRef,
- tagTooltipRef,
- isFocused,
- isComposing,
- inputValue,
- size: size3,
- tagSize,
- placeholder,
- closable,
- disabled,
- inputLimit,
- showTagList,
- collapseTagList,
- handleDragged,
- handleInput,
- handleKeydown,
- handleAddTag,
- handleRemoveTag,
- handleClear,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd,
- focus,
- blur
- };
- }
- // node_modules/element-plus/es/components/input-tag/src/composables/use-hovering.mjs
- function useHovering() {
- const hovering = ref(false);
- const handleMouseEnter = () => {
- hovering.value = true;
- };
- const handleMouseLeave = () => {
- hovering.value = false;
- };
- return {
- hovering,
- handleMouseEnter,
- handleMouseLeave
- };
- }
- // node_modules/element-plus/es/constants/form.mjs
- var MINIMUM_INPUT_WIDTH = 11;
- // node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
- function useCalcInputWidth() {
- const calculatorRef = shallowRef();
- const calculatorWidth = ref(0);
- const inputStyle = computed(() => ({
- minWidth: `${Math.max(calculatorWidth.value, MINIMUM_INPUT_WIDTH)}px`
- }));
- const resetCalculatorWidth = () => {
- var _a2, _b;
- calculatorWidth.value = (_b = (_a2 = calculatorRef.value) == null ? void 0 : _a2.getBoundingClientRect().width) != null ? _b : 0;
- };
- useResizeObserver(calculatorRef, resetCalculatorWidth);
- return {
- calculatorRef,
- calculatorWidth,
- inputStyle
- };
- }
- // node_modules/element-plus/es/components/input-tag/src/composables/use-drag-tag.mjs
- function useDragTag({
- wrapperRef,
- handleDragged,
- afterDragged
- }) {
- const ns = useNamespace("input-tag");
- const dropIndicatorRef = shallowRef();
- const showDropIndicator = ref(false);
- let draggingIndex;
- let draggingTag;
- let dropIndex;
- let dropType;
- function getTagClassName(index) {
- return `.${ns.e("inner")} .${ns.namespace.value}-tag:nth-child(${index + 1})`;
- }
- function handleDragStart(event, index) {
- draggingIndex = index;
- draggingTag = wrapperRef.value.querySelector(getTagClassName(index));
- if (draggingTag) {
- draggingTag.style.opacity = "0.5";
- }
- event.dataTransfer.effectAllowed = "move";
- }
- function handleDragOver(event, index) {
- dropIndex = index;
- event.preventDefault();
- event.dataTransfer.dropEffect = "move";
- if (isUndefined2(draggingIndex) || draggingIndex === index) {
- showDropIndicator.value = false;
- return;
- }
- const dropPosition = wrapperRef.value.querySelector(getTagClassName(index)).getBoundingClientRect();
- const dropPrev = !(draggingIndex + 1 === index);
- const dropNext = !(draggingIndex - 1 === index);
- const distance = event.clientX - dropPosition.left;
- const prevPercent = dropPrev ? dropNext ? 0.5 : 1 : -1;
- const nextPercent = dropNext ? dropPrev ? 0.5 : 0 : 1;
- if (distance <= dropPosition.width * prevPercent) {
- dropType = "before";
- } else if (distance > dropPosition.width * nextPercent) {
- dropType = "after";
- } else {
- dropType = void 0;
- }
- const innerEl = wrapperRef.value.querySelector(`.${ns.e("inner")}`);
- const innerPosition = innerEl.getBoundingClientRect();
- const gap = Number.parseFloat(getStyle(innerEl, "gap")) / 2;
- const indicatorTop = dropPosition.top - innerPosition.top;
- let indicatorLeft = -9999;
- if (dropType === "before") {
- indicatorLeft = Math.max(dropPosition.left - innerPosition.left - gap, Math.floor(-gap / 2));
- } else if (dropType === "after") {
- const left = dropPosition.right - innerPosition.left;
- indicatorLeft = left + (innerPosition.width === left ? Math.floor(gap / 2) : gap);
- }
- setStyle(dropIndicatorRef.value, {
- top: `${indicatorTop}px`,
- left: `${indicatorLeft}px`
- });
- showDropIndicator.value = !!dropType;
- }
- function handleDragEnd(event) {
- event.preventDefault();
- if (draggingTag) {
- draggingTag.style.opacity = "";
- }
- if (dropType && !isUndefined2(draggingIndex) && !isUndefined2(dropIndex) && draggingIndex !== dropIndex) {
- handleDragged(draggingIndex, dropIndex, dropType);
- }
- showDropIndicator.value = false;
- draggingIndex = void 0;
- draggingTag = null;
- dropIndex = void 0;
- dropType = void 0;
- afterDragged == null ? void 0 : afterDragged();
- }
- return {
- dropIndicatorRef,
- showDropIndicator,
- handleDragStart,
- handleDragOver,
- handleDragEnd
- };
- }
- // node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag-dom.mjs
- function useInputTagDom({
- props: props2,
- isFocused,
- hovering,
- disabled,
- inputValue,
- size: size3,
- validateState,
- validateIcon,
- needStatusIcon
- }) {
- const attrs = useAttrs();
- const slots = useSlots();
- const ns = useNamespace("input-tag");
- const nsInput = useNamespace("input");
- const containerKls = computed(() => [
- ns.b(),
- ns.is("focused", isFocused.value),
- ns.is("hovering", hovering.value),
- ns.is("disabled", disabled.value),
- ns.m(size3.value),
- ns.e("wrapper"),
- attrs.class
- ]);
- const containerStyle = computed(() => [attrs.style]);
- const innerKls = computed(() => {
- var _a2, _b;
- return [
- ns.e("inner"),
- ns.is("draggable", props2.draggable),
- ns.is("left-space", !((_a2 = props2.modelValue) == null ? void 0 : _a2.length) && !slots.prefix),
- ns.is("right-space", !((_b = props2.modelValue) == null ? void 0 : _b.length) && !showSuffix.value)
- ];
- });
- const showClear = computed(() => {
- var _a2;
- return props2.clearable && !disabled.value && !props2.readonly && (((_a2 = props2.modelValue) == null ? void 0 : _a2.length) || inputValue.value) && (isFocused.value || hovering.value);
- });
- const showSuffix = computed(() => {
- return slots.suffix || showClear.value || validateState.value && validateIcon.value && needStatusIcon.value;
- });
- return {
- ns,
- nsInput,
- containerKls,
- containerStyle,
- innerKls,
- showClear,
- showSuffix
- };
- }
- // node_modules/element-plus/es/components/input-tag/src/input-tag2.mjs
- var __default__70 = defineComponent({
- name: "ElInputTag",
- inheritAttrs: false
- });
- var _sfc_main386 = defineComponent({
- ...__default__70,
- props: inputTagProps,
- emits: inputTagEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const attrs = useAttrs2();
- const slots = useSlots();
- const { form, formItem } = useFormItem();
- const { inputId } = useFormItemInputId(props2, { formItemContext: formItem });
- const needStatusIcon = computed(() => {
- var _a2;
- return (_a2 = form == null ? void 0 : form.statusIcon) != null ? _a2 : false;
- });
- const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
- const validateIcon = computed(() => {
- return validateState.value && ValidateComponentsMap[validateState.value];
- });
- const {
- inputRef,
- wrapperRef,
- tagTooltipRef,
- isFocused,
- inputValue,
- size: size3,
- tagSize,
- placeholder,
- closable,
- disabled,
- showTagList,
- collapseTagList,
- handleDragged,
- handleInput,
- handleKeydown,
- handleRemoveTag,
- handleClear,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd,
- focus,
- blur
- } = useInputTag({ props: props2, emit, formItem });
- const { hovering, handleMouseEnter, handleMouseLeave } = useHovering();
- const { calculatorRef, inputStyle } = useCalcInputWidth();
- const {
- dropIndicatorRef,
- showDropIndicator,
- handleDragStart,
- handleDragOver,
- handleDragEnd
- } = useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
- const {
- ns,
- nsInput,
- containerKls,
- containerStyle,
- innerKls,
- showClear,
- showSuffix
- } = useInputTagDom({
- props: props2,
- hovering,
- isFocused,
- inputValue,
- disabled,
- size: size3,
- validateState,
- validateIcon,
- needStatusIcon
- });
- expose({
- focus,
- blur
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "wrapperRef",
- ref: wrapperRef,
- class: normalizeClass(unref(containerKls)),
- style: normalizeStyle(unref(containerStyle)),
- onMouseenter: unref(handleMouseEnter),
- onMouseleave: unref(handleMouseLeave)
- }, [
- unref(slots).prefix ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("prefix"))
- }, [
- renderSlot(_ctx.$slots, "prefix")
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(innerKls))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showTagList), (item, index) => {
- return openBlock(), createBlock(unref(ElTag), {
- key: index,
- size: unref(tagSize),
- closable: unref(closable),
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- draggable: unref(closable) && _ctx.draggable,
- "disable-transitions": "",
- onClose: ($event) => unref(handleRemoveTag)(index),
- onDragstart: (event) => unref(handleDragStart)(event, index),
- onDragover: (event) => unref(handleDragOver)(event, index),
- onDragend: unref(handleDragEnd),
- onDrop: withModifiers(() => {
- }, ["stop"])
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "tag", {
- value: item,
- index
- }, () => [
- createTextVNode(toDisplayString(item), 1)
- ])
- ]),
- _: 2
- }, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend", "onDrop"]);
- }), 128)),
- _ctx.collapseTags && _ctx.modelValue && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(unref(ElTooltip), {
- key: 0,
- ref_key: "tagTooltipRef",
- ref: tagTooltipRef,
- disabled: !_ctx.collapseTagsTooltip,
- "fallback-placements": ["bottom", "top", "right", "left"],
- effect: _ctx.tagEffect,
- placement: "bottom"
- }, {
- default: withCtx(() => [
- createVNode(unref(ElTag), {
- closable: false,
- size: unref(tagSize),
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": ""
- }, {
- default: withCtx(() => [
- createTextVNode(" + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags), 1)
- ]),
- _: 1
- }, 8, ["size", "type", "effect"])
- ]),
- content: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("input-tag-list"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(collapseTagList), (item, index) => {
- return openBlock(), createBlock(unref(ElTag), {
- key: index,
- size: unref(tagSize),
- closable: unref(closable),
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": "",
- onClose: ($event) => unref(handleRemoveTag)(index + _ctx.maxCollapseTags)
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "tag", {
- value: item,
- index: index + _ctx.maxCollapseTags
- }, () => [
- createTextVNode(toDisplayString(item), 1)
- ])
- ]),
- _: 2
- }, 1032, ["size", "closable", "type", "effect", "onClose"]);
- }), 128))
- ], 2)
- ]),
- _: 3
- }, 8, ["disabled", "effect"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("input-wrapper"))
- }, [
- withDirectives(createBaseVNode("input", mergeProps({
- id: unref(inputId),
- ref_key: "inputRef",
- ref: inputRef,
- "onUpdate:modelValue": ($event) => isRef(inputValue) ? inputValue.value = $event : null
- }, unref(attrs), {
- type: "text",
- minlength: _ctx.minlength,
- maxlength: _ctx.maxlength,
- disabled: unref(disabled),
- readonly: _ctx.readonly,
- autocomplete: _ctx.autocomplete,
- tabindex: _ctx.tabindex,
- placeholder: unref(placeholder),
- autofocus: _ctx.autofocus,
- ariaLabel: _ctx.ariaLabel,
- class: unref(ns).e("input"),
- style: unref(inputStyle),
- onCompositionstart: unref(handleCompositionStart),
- onCompositionupdate: unref(handleCompositionUpdate),
- onCompositionend: unref(handleCompositionEnd),
- onInput: unref(handleInput),
- onKeydown: unref(handleKeydown)
- }), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown"]), [
- [vModelText, unref(inputValue)]
- ]),
- createBaseVNode("span", {
- ref_key: "calculatorRef",
- ref: calculatorRef,
- "aria-hidden": "true",
- class: normalizeClass(unref(ns).e("input-calculator")),
- textContent: toDisplayString(unref(inputValue))
- }, null, 10, ["textContent"])
- ], 2),
- withDirectives(createBaseVNode("div", {
- ref_key: "dropIndicatorRef",
- ref: dropIndicatorRef,
- class: normalizeClass(unref(ns).e("drop-indicator"))
- }, null, 2), [
- [vShow, unref(showDropIndicator)]
- ])
- ], 2),
- unref(showSuffix) ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("suffix"))
- }, [
- renderSlot(_ctx.$slots, "suffix"),
- unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([unref(ns).e("icon"), unref(ns).e("clear")]),
- onMousedown: withModifiers(unref(NOOP), ["prevent"]),
- onClick: unref(handleClear)
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onMousedown", "onClick"])) : createCommentVNode("v-if", true),
- unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass([
- unref(nsInput).e("icon"),
- unref(nsInput).e("validateIcon"),
- unref(nsInput).is("loading", unref(validateState) === "validating")
- ])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ], 46, ["onMouseenter", "onMouseleave"]);
- };
- }
- });
- var InputTag = _export_sfc(_sfc_main386, [["__file", "input-tag.vue"]]);
- // node_modules/element-plus/es/components/input-tag/index.mjs
- var ElInputTag = withInstall(InputTag);
- // node_modules/element-plus/es/components/link/src/link.mjs
- var linkProps = buildProps({
- type: {
- type: String,
- values: ["primary", "success", "warning", "info", "danger", "default"],
- default: void 0
- },
- underline: {
- type: [Boolean, String],
- values: [true, false, "always", "never", "hover"],
- default: void 0
- },
- disabled: Boolean,
- href: { type: String, default: "" },
- target: {
- type: String,
- default: "_self"
- },
- icon: {
- type: iconPropType
- }
- });
- var linkEmits = {
- click: (evt) => evt instanceof MouseEvent
- };
- // node_modules/element-plus/es/components/link/src/link2.mjs
- var __default__71 = defineComponent({
- name: "ElLink"
- });
- var _sfc_main387 = defineComponent({
- ...__default__71,
- props: linkProps,
- emits: linkEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const globalConfig2 = useGlobalConfig("link");
- useDeprecated({
- scope: "el-link",
- from: "The underline option (boolean)",
- replacement: "'always' | 'hover' | 'never'",
- version: "3.0.0",
- ref: "https://element-plus.org/en-US/component/link.html#underline"
- }, computed(() => isBoolean2(props2.underline)));
- const ns = useNamespace("link");
- const linkKls = computed(() => {
- var _a2, _b, _c;
- return [
- ns.b(),
- ns.m((_c = (_b = props2.type) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.type) != null ? _c : "default"),
- ns.is("disabled", props2.disabled),
- ns.is("underline", underline.value === "always"),
- ns.is("hover-underline", underline.value === "hover" && !props2.disabled)
- ];
- });
- const underline = computed(() => {
- var _a2, _b, _c;
- if (isBoolean2(props2.underline)) {
- return props2.underline ? "hover" : "never";
- } else
- return (_c = (_b = props2.underline) != null ? _b : (_a2 = globalConfig2.value) == null ? void 0 : _a2.underline) != null ? _c : "hover";
- });
- function handleClick(event) {
- if (!props2.disabled)
- emit("click", event);
- }
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("a", {
- class: normalizeClass(unref(linkKls)),
- href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
- target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
- onClick: handleClick
- }, [
- _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true),
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
- key: 1,
- class: normalizeClass(unref(ns).e("inner"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)) : createCommentVNode("v-if", true),
- _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 2 }) : createCommentVNode("v-if", true)
- ], 10, ["href", "target"]);
- };
- }
- });
- var Link = _export_sfc(_sfc_main387, [["__file", "link.vue"]]);
- // node_modules/element-plus/es/components/link/index.mjs
- var ElLink = withInstall(Link);
- // node_modules/element-plus/es/components/menu/src/utils/submenu.mjs
- var SubMenu = class {
- constructor(parent2, domNode) {
- this.parent = parent2;
- this.domNode = domNode;
- this.subIndex = 0;
- this.subIndex = 0;
- this.init();
- }
- init() {
- this.subMenuItems = this.domNode.querySelectorAll("li");
- this.addListeners();
- }
- gotoSubIndex(idx) {
- if (idx === this.subMenuItems.length) {
- idx = 0;
- } else if (idx < 0) {
- idx = this.subMenuItems.length - 1;
- }
- this.subMenuItems[idx].focus();
- this.subIndex = idx;
- }
- addListeners() {
- const parentNode = this.parent.domNode;
- Array.prototype.forEach.call(this.subMenuItems, (el) => {
- el.addEventListener("keydown", (event) => {
- let prevDef = false;
- switch (event.code) {
- case EVENT_CODE.down: {
- this.gotoSubIndex(this.subIndex + 1);
- prevDef = true;
- break;
- }
- case EVENT_CODE.up: {
- this.gotoSubIndex(this.subIndex - 1);
- prevDef = true;
- break;
- }
- case EVENT_CODE.tab: {
- triggerEvent(parentNode, "mouseleave");
- break;
- }
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- case EVENT_CODE.space: {
- prevDef = true;
- event.currentTarget.click();
- break;
- }
- }
- if (prevDef) {
- event.preventDefault();
- event.stopPropagation();
- }
- return false;
- });
- });
- }
- };
- // node_modules/element-plus/es/components/menu/src/utils/menu-item.mjs
- var MenuItem = class {
- constructor(domNode, namespace) {
- this.domNode = domNode;
- this.submenu = null;
- this.submenu = null;
- this.init(namespace);
- }
- init(namespace) {
- this.domNode.setAttribute("tabindex", "0");
- const menuChild = this.domNode.querySelector(`.${namespace}-menu`);
- if (menuChild) {
- this.submenu = new SubMenu(this, menuChild);
- }
- this.addListeners();
- }
- addListeners() {
- this.domNode.addEventListener("keydown", (event) => {
- let prevDef = false;
- switch (event.code) {
- case EVENT_CODE.down: {
- triggerEvent(event.currentTarget, "mouseenter");
- this.submenu && this.submenu.gotoSubIndex(0);
- prevDef = true;
- break;
- }
- case EVENT_CODE.up: {
- triggerEvent(event.currentTarget, "mouseenter");
- this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1);
- prevDef = true;
- break;
- }
- case EVENT_CODE.tab: {
- triggerEvent(event.currentTarget, "mouseleave");
- break;
- }
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- case EVENT_CODE.space: {
- prevDef = true;
- event.currentTarget.click();
- break;
- }
- }
- if (prevDef) {
- event.preventDefault();
- }
- });
- }
- };
- // node_modules/element-plus/es/components/menu/src/utils/menu-bar.mjs
- var Menu = class {
- constructor(domNode, namespace) {
- this.domNode = domNode;
- this.init(namespace);
- }
- init(namespace) {
- const menuChildren = this.domNode.childNodes;
- Array.from(menuChildren).forEach((child) => {
- if (child.nodeType === 1) {
- new MenuItem(child, namespace);
- }
- });
- }
- };
- // node_modules/element-plus/es/components/menu/src/menu-collapse-transition.mjs
- var __default__72 = defineComponent({
- name: "ElMenuCollapseTransition"
- });
- var _sfc_main388 = defineComponent({
- ...__default__72,
- setup(__props) {
- const ns = useNamespace("menu");
- const listeners = {
- onBeforeEnter: (el) => el.style.opacity = "0.2",
- onEnter(el, done) {
- addClass(el, `${ns.namespace.value}-opacity-transition`);
- el.style.opacity = "1";
- done();
- },
- onAfterEnter(el) {
- removeClass(el, `${ns.namespace.value}-opacity-transition`);
- el.style.opacity = "";
- },
- onBeforeLeave(el) {
- if (!el.dataset)
- el.dataset = {};
- if (hasClass(el, ns.m("collapse"))) {
- removeClass(el, ns.m("collapse"));
- el.dataset.oldOverflow = el.style.overflow;
- el.dataset.scrollWidth = el.clientWidth.toString();
- addClass(el, ns.m("collapse"));
- } else {
- addClass(el, ns.m("collapse"));
- el.dataset.oldOverflow = el.style.overflow;
- el.dataset.scrollWidth = el.clientWidth.toString();
- removeClass(el, ns.m("collapse"));
- }
- el.style.width = `${el.scrollWidth}px`;
- el.style.overflow = "hidden";
- },
- onLeave(el) {
- addClass(el, "horizontal-collapse-transition");
- el.style.width = `${el.dataset.scrollWidth}px`;
- }
- };
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, mergeProps({ mode: "out-in" }, unref(listeners)), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16);
- };
- }
- });
- var ElMenuCollapseTransition = _export_sfc(_sfc_main388, [["__file", "menu-collapse-transition.vue"]]);
- // node_modules/element-plus/es/components/menu/src/use-menu.mjs
- function useMenu(instance, currentIndex) {
- const indexPath = computed(() => {
- let parent2 = instance.parent;
- const path = [currentIndex.value];
- while (parent2.type.name !== "ElMenu") {
- if (parent2.props.index) {
- path.unshift(parent2.props.index);
- }
- parent2 = parent2.parent;
- }
- return path;
- });
- const parentMenu = computed(() => {
- let parent2 = instance.parent;
- while (parent2 && !["ElMenu", "ElSubMenu"].includes(parent2.type.name)) {
- parent2 = parent2.parent;
- }
- return parent2;
- });
- return {
- parentMenu,
- indexPath
- };
- }
- // node_modules/element-plus/es/components/menu/src/use-menu-color.mjs
- function useMenuColor(props2) {
- const menuBarColor = computed(() => {
- const color = props2.backgroundColor;
- return color ? new TinyColor(color).shade(20).toString() : "";
- });
- return menuBarColor;
- }
- // node_modules/element-plus/es/components/menu/src/use-menu-css-var.mjs
- var useMenuCssVar = (props2, level) => {
- const ns = useNamespace("menu");
- return computed(() => ns.cssVarBlock({
- "text-color": props2.textColor || "",
- "hover-text-color": props2.textColor || "",
- "bg-color": props2.backgroundColor || "",
- "hover-bg-color": useMenuColor(props2).value || "",
- "active-color": props2.activeTextColor || "",
- level: `${level}`
- }));
- };
- // node_modules/element-plus/es/components/menu/src/tokens.mjs
- var MENU_INJECTION_KEY = "rootMenu";
- var SUB_MENU_INJECTION_KEY = "subMenu:";
- // node_modules/element-plus/es/components/menu/src/sub-menu.mjs
- var subMenuProps = buildProps({
- index: {
- type: String,
- required: true
- },
- showTimeout: Number,
- hideTimeout: Number,
- popperClass: String,
- disabled: Boolean,
- teleported: {
- type: Boolean,
- default: void 0
- },
- popperOffset: Number,
- expandCloseIcon: {
- type: iconPropType
- },
- expandOpenIcon: {
- type: iconPropType
- },
- collapseCloseIcon: {
- type: iconPropType
- },
- collapseOpenIcon: {
- type: iconPropType
- }
- });
- var COMPONENT_NAME15 = "ElSubMenu";
- var SubMenu2 = defineComponent({
- name: COMPONENT_NAME15,
- props: subMenuProps,
- setup(props2, { slots, expose }) {
- const instance = getCurrentInstance();
- const { indexPath, parentMenu } = useMenu(instance, computed(() => props2.index));
- const nsMenu = useNamespace("menu");
- const nsSubMenu = useNamespace("sub-menu");
- const rootMenu = inject(MENU_INJECTION_KEY);
- if (!rootMenu)
- throwError(COMPONENT_NAME15, "can not inject root menu");
- const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
- if (!subMenu)
- throwError(COMPONENT_NAME15, "can not inject sub menu");
- const items = ref({});
- const subMenus = ref({});
- let timeout;
- const mouseInChild = ref(false);
- const verticalTitleRef = ref();
- const vPopper = ref();
- const currentPlacement = computed(() => mode.value === "horizontal" && isFirstLevel.value ? "bottom-start" : "right-start");
- const subMenuTitleIcon = computed(() => {
- return mode.value === "horizontal" && isFirstLevel.value || mode.value === "vertical" && !rootMenu.props.collapse ? props2.expandCloseIcon && props2.expandOpenIcon ? opened.value ? props2.expandOpenIcon : props2.expandCloseIcon : arrow_down_default : props2.collapseCloseIcon && props2.collapseOpenIcon ? opened.value ? props2.collapseOpenIcon : props2.collapseCloseIcon : arrow_right_default;
- });
- const isFirstLevel = computed(() => subMenu.level === 0);
- const appendToBody = computed(() => {
- const value = props2.teleported;
- return isUndefined2(value) ? isFirstLevel.value : value;
- });
- const menuTransitionName = computed(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
- const fallbackPlacements = computed(() => mode.value === "horizontal" && isFirstLevel.value ? [
- "bottom-start",
- "bottom-end",
- "top-start",
- "top-end",
- "right-start",
- "left-start"
- ] : [
- "right-start",
- "right",
- "right-end",
- "left-start",
- "bottom-start",
- "bottom-end",
- "top-start",
- "top-end"
- ]);
- const opened = computed(() => rootMenu.openedMenus.includes(props2.index));
- const active = computed(() => [...Object.values(items.value), ...Object.values(subMenus.value)].some(({ active: active2 }) => active2));
- const mode = computed(() => rootMenu.props.mode);
- const persistent = computed(() => rootMenu.props.persistent);
- const item = reactive({
- index: props2.index,
- indexPath,
- active
- });
- const ulStyle = useMenuCssVar(rootMenu.props, subMenu.level + 1);
- const subMenuPopperOffset = computed(() => {
- var _a2;
- return (_a2 = props2.popperOffset) != null ? _a2 : rootMenu.props.popperOffset;
- });
- const subMenuPopperClass = computed(() => {
- var _a2;
- return (_a2 = props2.popperClass) != null ? _a2 : rootMenu.props.popperClass;
- });
- const subMenuShowTimeout = computed(() => {
- var _a2;
- return (_a2 = props2.showTimeout) != null ? _a2 : rootMenu.props.showTimeout;
- });
- const subMenuHideTimeout = computed(() => {
- var _a2;
- return (_a2 = props2.hideTimeout) != null ? _a2 : rootMenu.props.hideTimeout;
- });
- const doDestroy = () => {
- var _a2, _b, _c;
- return (_c = (_b = (_a2 = vPopper.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.popperInstanceRef) == null ? void 0 : _c.destroy();
- };
- const handleCollapseToggle = (value) => {
- if (!value) {
- doDestroy();
- }
- };
- const handleClick = () => {
- if (rootMenu.props.menuTrigger === "hover" && rootMenu.props.mode === "horizontal" || rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props2.disabled)
- return;
- rootMenu.handleSubMenuClick({
- index: props2.index,
- indexPath: indexPath.value,
- active: active.value
- });
- };
- const handleMouseenter = (event, showTimeout = subMenuShowTimeout.value) => {
- var _a2;
- if (event.type === "focus")
- return;
- if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props2.disabled) {
- subMenu.mouseInChild.value = true;
- return;
- }
- subMenu.mouseInChild.value = true;
- timeout == null ? void 0 : timeout();
- ({ stop: timeout } = useTimeoutFn(() => {
- rootMenu.openMenu(props2.index, indexPath.value);
- }, showTimeout));
- if (appendToBody.value) {
- (_a2 = parentMenu.value.vnode.el) == null ? void 0 : _a2.dispatchEvent(new MouseEvent("mouseenter"));
- }
- };
- const handleMouseleave = (deepDispatch = false) => {
- var _a2;
- if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical") {
- subMenu.mouseInChild.value = false;
- return;
- }
- timeout == null ? void 0 : timeout();
- subMenu.mouseInChild.value = false;
- ({ stop: timeout } = useTimeoutFn(() => !mouseInChild.value && rootMenu.closeMenu(props2.index, indexPath.value), subMenuHideTimeout.value));
- if (appendToBody.value && deepDispatch) {
- (_a2 = subMenu.handleMouseleave) == null ? void 0 : _a2.call(subMenu, true);
- }
- };
- watch(() => rootMenu.props.collapse, (value) => handleCollapseToggle(Boolean(value)));
- {
- const addSubMenu = (item2) => {
- subMenus.value[item2.index] = item2;
- };
- const removeSubMenu = (item2) => {
- delete subMenus.value[item2.index];
- };
- provide(`${SUB_MENU_INJECTION_KEY}${instance.uid}`, {
- addSubMenu,
- removeSubMenu,
- handleMouseleave,
- mouseInChild,
- level: subMenu.level + 1
- });
- }
- expose({
- opened
- });
- onMounted(() => {
- rootMenu.addSubMenu(item);
- subMenu.addSubMenu(item);
- });
- onBeforeUnmount(() => {
- subMenu.removeSubMenu(item);
- rootMenu.removeSubMenu(item);
- });
- return () => {
- var _a2;
- const titleTag = [
- (_a2 = slots.title) == null ? void 0 : _a2.call(slots),
- h(ElIcon, {
- class: nsSubMenu.e("icon-arrow"),
- style: {
- transform: opened.value ? props2.expandCloseIcon && props2.expandOpenIcon || props2.collapseCloseIcon && props2.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
- }
- }, {
- default: () => isString(subMenuTitleIcon.value) ? h(instance.appContext.components[subMenuTitleIcon.value]) : h(subMenuTitleIcon.value)
- })
- ];
- const child = rootMenu.isMenuPopup ? h(ElTooltip, {
- ref: vPopper,
- visible: opened.value,
- effect: "light",
- pure: true,
- offset: subMenuPopperOffset.value,
- showArrow: false,
- persistent: persistent.value,
- popperClass: subMenuPopperClass.value,
- placement: currentPlacement.value,
- teleported: appendToBody.value,
- fallbackPlacements: fallbackPlacements.value,
- transition: menuTransitionName.value,
- gpuAcceleration: false
- }, {
- content: () => {
- var _a22;
- return h("div", {
- class: [
- nsMenu.m(mode.value),
- nsMenu.m("popup-container"),
- subMenuPopperClass.value
- ],
- onMouseenter: (evt) => handleMouseenter(evt, 100),
- onMouseleave: () => handleMouseleave(true),
- onFocus: (evt) => handleMouseenter(evt, 100)
- }, [
- h("ul", {
- class: [
- nsMenu.b(),
- nsMenu.m("popup"),
- nsMenu.m(`popup-${currentPlacement.value}`)
- ],
- style: ulStyle.value
- }, [(_a22 = slots.default) == null ? void 0 : _a22.call(slots)])
- ]);
- },
- default: () => h("div", {
- class: nsSubMenu.e("title"),
- onClick: handleClick
- }, titleTag)
- }) : h(Fragment, {}, [
- h("div", {
- class: nsSubMenu.e("title"),
- ref: verticalTitleRef,
- onClick: handleClick
- }, titleTag),
- h(ElCollapseTransition, {}, {
- default: () => {
- var _a22;
- return withDirectives(h("ul", {
- role: "menu",
- class: [nsMenu.b(), nsMenu.m("inline")],
- style: ulStyle.value
- }, [(_a22 = slots.default) == null ? void 0 : _a22.call(slots)]), [[vShow, opened.value]]);
- }
- })
- ]);
- return h("li", {
- class: [
- nsSubMenu.b(),
- nsSubMenu.is("active", active.value),
- nsSubMenu.is("opened", opened.value),
- nsSubMenu.is("disabled", props2.disabled)
- ],
- role: "menuitem",
- ariaHaspopup: true,
- ariaExpanded: opened.value,
- onMouseenter: handleMouseenter,
- onMouseleave: () => handleMouseleave(),
- onFocus: handleMouseenter
- }, [child]);
- };
- }
- });
- // node_modules/element-plus/es/components/menu/src/menu.mjs
- var menuProps = buildProps({
- mode: {
- type: String,
- values: ["horizontal", "vertical"],
- default: "vertical"
- },
- defaultActive: {
- type: String,
- default: ""
- },
- defaultOpeneds: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- uniqueOpened: Boolean,
- router: Boolean,
- menuTrigger: {
- type: String,
- values: ["hover", "click"],
- default: "hover"
- },
- collapse: Boolean,
- backgroundColor: String,
- textColor: String,
- activeTextColor: String,
- closeOnClickOutside: Boolean,
- collapseTransition: {
- type: Boolean,
- default: true
- },
- ellipsis: {
- type: Boolean,
- default: true
- },
- popperOffset: {
- type: Number,
- default: 6
- },
- ellipsisIcon: {
- type: iconPropType,
- default: () => more_default
- },
- popperEffect: {
- type: definePropType(String),
- default: "dark"
- },
- popperClass: String,
- showTimeout: {
- type: Number,
- default: 300
- },
- hideTimeout: {
- type: Number,
- default: 300
- },
- persistent: {
- type: Boolean,
- default: true
- }
- });
- var checkIndexPath = (indexPath) => isArray(indexPath) && indexPath.every((path) => isString(path));
- var menuEmits = {
- close: (index, indexPath) => isString(index) && checkIndexPath(indexPath),
- open: (index, indexPath) => isString(index) && checkIndexPath(indexPath),
- select: (index, indexPath, item, routerResult) => isString(index) && checkIndexPath(indexPath) && isObject(item) && (isUndefined2(routerResult) || routerResult instanceof Promise)
- };
- var Menu2 = defineComponent({
- name: "ElMenu",
- props: menuProps,
- emits: menuEmits,
- setup(props2, { emit, slots, expose }) {
- const instance = getCurrentInstance();
- const router = instance.appContext.config.globalProperties.$router;
- const menu = ref();
- const subMenu = ref();
- const nsMenu = useNamespace("menu");
- const nsSubMenu = useNamespace("sub-menu");
- let moreItemWidth = 64;
- const sliceIndex = ref(-1);
- const openedMenus = ref(props2.defaultOpeneds && !props2.collapse ? props2.defaultOpeneds.slice(0) : []);
- const activeIndex = ref(props2.defaultActive);
- const items = ref({});
- const subMenus = ref({});
- const isMenuPopup = computed(() => props2.mode === "horizontal" || props2.mode === "vertical" && props2.collapse);
- const initMenu = () => {
- const activeItem = activeIndex.value && items.value[activeIndex.value];
- if (!activeItem || props2.mode === "horizontal" || props2.collapse)
- return;
- const indexPath = activeItem.indexPath;
- indexPath.forEach((index) => {
- const subMenu2 = subMenus.value[index];
- subMenu2 && openMenu(index, subMenu2.indexPath);
- });
- };
- const openMenu = (index, indexPath) => {
- if (openedMenus.value.includes(index))
- return;
- if (props2.uniqueOpened) {
- openedMenus.value = openedMenus.value.filter((index2) => indexPath.includes(index2));
- }
- openedMenus.value.push(index);
- emit("open", index, indexPath);
- };
- const close2 = (index) => {
- const i = openedMenus.value.indexOf(index);
- if (i !== -1) {
- openedMenus.value.splice(i, 1);
- }
- };
- const closeMenu = (index, indexPath) => {
- close2(index);
- emit("close", index, indexPath);
- };
- const handleSubMenuClick = ({
- index,
- indexPath
- }) => {
- const isOpened = openedMenus.value.includes(index);
- isOpened ? closeMenu(index, indexPath) : openMenu(index, indexPath);
- };
- const handleMenuItemClick = (menuItem) => {
- if (props2.mode === "horizontal" || props2.collapse) {
- openedMenus.value = [];
- }
- const { index, indexPath } = menuItem;
- if (isNil_default(index) || isNil_default(indexPath))
- return;
- if (props2.router && router) {
- const route = menuItem.route || index;
- const routerResult = router.push(route).then((res) => {
- if (!res)
- activeIndex.value = index;
- return res;
- });
- emit("select", index, indexPath, { index, indexPath, route }, routerResult);
- } else {
- activeIndex.value = index;
- emit("select", index, indexPath, { index, indexPath });
- }
- };
- const updateActiveIndex = (val) => {
- var _a2;
- const itemsInData = items.value;
- const item = itemsInData[val] || activeIndex.value && itemsInData[activeIndex.value] || itemsInData[props2.defaultActive];
- activeIndex.value = (_a2 = item == null ? void 0 : item.index) != null ? _a2 : val;
- };
- const calcMenuItemWidth = (menuItem) => {
- const computedStyle = getComputedStyle(menuItem);
- const marginLeft = Number.parseInt(computedStyle.marginLeft, 10);
- const marginRight = Number.parseInt(computedStyle.marginRight, 10);
- return menuItem.offsetWidth + marginLeft + marginRight || 0;
- };
- const calcSliceIndex = () => {
- var _a2, _b;
- if (!menu.value)
- return -1;
- 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));
- const computedMenuStyle = getComputedStyle(menu.value);
- const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10);
- const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10);
- const menuWidth = menu.value.clientWidth - paddingLeft - paddingRight;
- let calcWidth = 0;
- let sliceIndex2 = 0;
- items2.forEach((item, index) => {
- calcWidth += calcMenuItemWidth(item);
- if (calcWidth <= menuWidth - moreItemWidth) {
- sliceIndex2 = index + 1;
- }
- });
- return sliceIndex2 === items2.length ? -1 : sliceIndex2;
- };
- const getIndexPath = (index) => subMenus.value[index].indexPath;
- const debounce2 = (fn2, wait = 33.34) => {
- let timer;
- return () => {
- timer && clearTimeout(timer);
- timer = setTimeout(() => {
- fn2();
- }, wait);
- };
- };
- let isFirstTimeRender = true;
- const handleResize = () => {
- const el = unrefElement(subMenu);
- if (el)
- moreItemWidth = calcMenuItemWidth(el) || 64;
- if (sliceIndex.value === calcSliceIndex())
- return;
- const callback = () => {
- sliceIndex.value = -1;
- nextTick(() => {
- sliceIndex.value = calcSliceIndex();
- });
- };
- isFirstTimeRender ? callback() : debounce2(callback)();
- isFirstTimeRender = false;
- };
- watch(() => props2.defaultActive, (currentActive) => {
- if (!items.value[currentActive]) {
- activeIndex.value = "";
- }
- updateActiveIndex(currentActive);
- });
- watch(() => props2.collapse, (value) => {
- if (value)
- openedMenus.value = [];
- });
- watch(items.value, initMenu);
- let resizeStopper;
- watchEffect(() => {
- if (props2.mode === "horizontal" && props2.ellipsis)
- resizeStopper = useResizeObserver(menu, handleResize).stop;
- else
- resizeStopper == null ? void 0 : resizeStopper();
- });
- const mouseInChild = ref(false);
- {
- const addSubMenu = (item) => {
- subMenus.value[item.index] = item;
- };
- const removeSubMenu = (item) => {
- delete subMenus.value[item.index];
- };
- const addMenuItem = (item) => {
- items.value[item.index] = item;
- };
- const removeMenuItem = (item) => {
- delete items.value[item.index];
- };
- provide(MENU_INJECTION_KEY, reactive({
- props: props2,
- openedMenus,
- items,
- subMenus,
- activeIndex,
- isMenuPopup,
- addMenuItem,
- removeMenuItem,
- addSubMenu,
- removeSubMenu,
- openMenu,
- closeMenu,
- handleMenuItemClick,
- handleSubMenuClick
- }));
- provide(`${SUB_MENU_INJECTION_KEY}${instance.uid}`, {
- addSubMenu,
- removeSubMenu,
- mouseInChild,
- level: 0
- });
- }
- onMounted(() => {
- if (props2.mode === "horizontal") {
- new Menu(instance.vnode.el, nsMenu.namespace.value);
- }
- });
- {
- const open = (index) => {
- const { indexPath } = subMenus.value[index];
- indexPath.forEach((i) => openMenu(i, indexPath));
- };
- expose({
- open,
- close: close2,
- updateActiveIndex,
- handleResize
- });
- }
- const ulStyle = useMenuCssVar(props2, 0);
- return () => {
- var _a2, _b;
- let slot = (_b = (_a2 = slots.default) == null ? void 0 : _a2.call(slots)) != null ? _b : [];
- const vShowMore = [];
- if (props2.mode === "horizontal" && menu.value) {
- const originalSlot = flattedChildren(slot).filter((vnode) => {
- return (vnode == null ? void 0 : vnode.shapeFlag) !== 8;
- });
- const slotDefault = sliceIndex.value === -1 ? originalSlot : originalSlot.slice(0, sliceIndex.value);
- const slotMore = sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value);
- if ((slotMore == null ? void 0 : slotMore.length) && props2.ellipsis) {
- slot = slotDefault;
- vShowMore.push(h(SubMenu2, {
- ref: subMenu,
- index: "sub-menu-more",
- class: nsSubMenu.e("hide-arrow"),
- popperOffset: props2.popperOffset
- }, {
- title: () => h(ElIcon, {
- class: nsSubMenu.e("icon-more")
- }, {
- default: () => h(props2.ellipsisIcon)
- }),
- default: () => slotMore
- }));
- }
- }
- const directives = props2.closeOnClickOutside ? [
- [
- ClickOutside,
- () => {
- if (!openedMenus.value.length)
- return;
- if (!mouseInChild.value) {
- openedMenus.value.forEach((openedMenu) => emit("close", openedMenu, getIndexPath(openedMenu)));
- openedMenus.value = [];
- }
- }
- ]
- ] : [];
- const vMenu = withDirectives(h("ul", {
- key: String(props2.collapse),
- role: "menubar",
- ref: menu,
- style: ulStyle.value,
- class: {
- [nsMenu.b()]: true,
- [nsMenu.m(props2.mode)]: true,
- [nsMenu.m("collapse")]: props2.collapse
- }
- }, [...slot, ...vShowMore]), directives);
- if (props2.collapseTransition && props2.mode === "vertical") {
- return h(ElMenuCollapseTransition, () => vMenu);
- }
- return vMenu;
- };
- }
- });
- // node_modules/element-plus/es/components/menu/src/menu-item.mjs
- var menuItemProps = buildProps({
- index: {
- type: definePropType([String, null]),
- default: null
- },
- route: {
- type: definePropType([String, Object])
- },
- disabled: Boolean
- });
- var menuItemEmits = {
- click: (item) => isString(item.index) && isArray(item.indexPath)
- };
- // node_modules/element-plus/es/components/menu/src/menu-item2.mjs
- var COMPONENT_NAME16 = "ElMenuItem";
- var __default__73 = defineComponent({
- name: COMPONENT_NAME16
- });
- var _sfc_main389 = defineComponent({
- ...__default__73,
- props: menuItemProps,
- emits: menuItemEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- isPropAbsent(props2.index) && debugWarn();
- const instance = getCurrentInstance();
- const rootMenu = inject(MENU_INJECTION_KEY);
- const nsMenu = useNamespace("menu");
- const nsMenuItem = useNamespace("menu-item");
- if (!rootMenu)
- throwError(COMPONENT_NAME16, "can not inject root menu");
- const { parentMenu, indexPath } = useMenu(instance, toRef(props2, "index"));
- const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
- if (!subMenu)
- throwError(COMPONENT_NAME16, "can not inject sub menu");
- const active = computed(() => props2.index === rootMenu.activeIndex);
- const item = reactive({
- index: props2.index,
- indexPath,
- active
- });
- const handleClick = () => {
- if (!props2.disabled) {
- rootMenu.handleMenuItemClick({
- index: props2.index,
- indexPath: indexPath.value,
- route: props2.route
- });
- emit("click", item);
- }
- };
- onMounted(() => {
- subMenu.addSubMenu(item);
- rootMenu.addMenuItem(item);
- });
- onBeforeUnmount(() => {
- subMenu.removeSubMenu(item);
- rootMenu.removeMenuItem(item);
- });
- expose({
- parentMenu,
- rootMenu,
- active,
- nsMenu,
- nsMenuItem,
- handleClick
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("li", {
- class: normalizeClass([
- unref(nsMenuItem).b(),
- unref(nsMenuItem).is("active", unref(active)),
- unref(nsMenuItem).is("disabled", _ctx.disabled)
- ]),
- role: "menuitem",
- tabindex: "-1",
- onClick: handleClick
- }, [
- unref(parentMenu).type.name === "ElMenu" && unref(rootMenu).props.collapse && _ctx.$slots.title ? (openBlock(), createBlock(unref(ElTooltip), {
- key: 0,
- effect: unref(rootMenu).props.popperEffect,
- placement: "right",
- "fallback-placements": ["left"],
- persistent: unref(rootMenu).props.persistent
- }, {
- content: withCtx(() => [
- renderSlot(_ctx.$slots, "title")
- ]),
- default: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(unref(nsMenu).be("tooltip", "trigger"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)
- ]),
- _: 3
- }, 8, ["effect", "persistent"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- renderSlot(_ctx.$slots, "default"),
- renderSlot(_ctx.$slots, "title")
- ], 64))
- ], 2);
- };
- }
- });
- var MenuItem2 = _export_sfc(_sfc_main389, [["__file", "menu-item.vue"]]);
- // node_modules/element-plus/es/components/menu/src/menu-item-group.mjs
- var menuItemGroupProps = {
- title: String
- };
- // node_modules/element-plus/es/components/menu/src/menu-item-group2.mjs
- var __default__74 = defineComponent({
- name: "ElMenuItemGroup"
- });
- var _sfc_main390 = defineComponent({
- ...__default__74,
- props: menuItemGroupProps,
- setup(__props) {
- const ns = useNamespace("menu-item-group");
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("li", {
- class: normalizeClass(unref(ns).b())
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("title"))
- }, [
- !_ctx.$slots.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 })
- ], 2),
- createBaseVNode("ul", null, [
- renderSlot(_ctx.$slots, "default")
- ])
- ], 2);
- };
- }
- });
- var MenuItemGroup = _export_sfc(_sfc_main390, [["__file", "menu-item-group.vue"]]);
- // node_modules/element-plus/es/components/menu/index.mjs
- var ElMenu = withInstall(Menu2, {
- MenuItem: MenuItem2,
- MenuItemGroup,
- SubMenu: SubMenu2
- });
- var ElMenuItem = withNoopInstall(MenuItem2);
- var ElMenuItemGroup = withNoopInstall(MenuItemGroup);
- var ElSubMenu = withNoopInstall(SubMenu2);
- // node_modules/element-plus/es/components/page-header/src/page-header.mjs
- var pageHeaderProps = buildProps({
- icon: {
- type: iconPropType,
- default: () => back_default
- },
- title: String,
- content: {
- type: String,
- default: ""
- }
- });
- var pageHeaderEmits = {
- back: () => true
- };
- // node_modules/element-plus/es/components/page-header/src/page-header2.mjs
- var __default__75 = defineComponent({
- name: "ElPageHeader"
- });
- var _sfc_main391 = defineComponent({
- ...__default__75,
- props: pageHeaderProps,
- emits: pageHeaderEmits,
- setup(__props, { emit }) {
- const { t } = useLocale();
- const ns = useNamespace("page-header");
- function handleClick() {
- emit("back");
- }
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ns).b(),
- {
- [unref(ns).m("has-breadcrumb")]: !!_ctx.$slots.breadcrumb,
- [unref(ns).m("has-extra")]: !!_ctx.$slots.extra,
- [unref(ns).is("contentful")]: !!_ctx.$slots.default
- }
- ])
- }, [
- _ctx.$slots.breadcrumb ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("breadcrumb"))
- }, [
- renderSlot(_ctx.$slots, "breadcrumb")
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("header"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("left"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("back")),
- role: "button",
- tabindex: "0",
- onClick: handleClick
- }, [
- _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
- key: 0,
- "aria-label": _ctx.title || unref(t)("el.pageHeader.title"),
- class: normalizeClass(unref(ns).e("icon"))
- }, [
- renderSlot(_ctx.$slots, "icon", {}, () => [
- _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true)
- ])
- ], 10, ["aria-label"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("title"))
- }, [
- renderSlot(_ctx.$slots, "title", {}, () => [
- createTextVNode(toDisplayString(_ctx.title || unref(t)("el.pageHeader.title")), 1)
- ])
- ], 2)
- ], 2),
- createVNode(unref(ElDivider), { direction: "vertical" }),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("content"))
- }, [
- renderSlot(_ctx.$slots, "content", {}, () => [
- createTextVNode(toDisplayString(_ctx.content), 1)
- ])
- ], 2)
- ], 2),
- _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("extra"))
- }, [
- renderSlot(_ctx.$slots, "extra")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2),
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("main"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var PageHeader = _export_sfc(_sfc_main391, [["__file", "page-header.vue"]]);
- // node_modules/element-plus/es/components/page-header/index.mjs
- var ElPageHeader = withInstall(PageHeader);
- // node_modules/element-plus/es/components/pagination/src/constants.mjs
- var elPaginationKey = Symbol("elPaginationKey");
- // node_modules/element-plus/es/components/pagination/src/components/prev.mjs
- var paginationPrevProps = buildProps({
- disabled: Boolean,
- currentPage: {
- type: Number,
- default: 1
- },
- prevText: {
- type: String
- },
- prevIcon: {
- type: iconPropType
- }
- });
- var paginationPrevEmits = {
- click: (evt) => evt instanceof MouseEvent
- };
- // node_modules/element-plus/es/components/pagination/src/components/prev2.mjs
- var __default__76 = defineComponent({
- name: "ElPaginationPrev"
- });
- var _sfc_main392 = defineComponent({
- ...__default__76,
- props: paginationPrevProps,
- emits: paginationPrevEmits,
- setup(__props) {
- const props2 = __props;
- const { t } = useLocale();
- const internalDisabled = computed(() => props2.disabled || props2.currentPage <= 1);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("button", {
- type: "button",
- class: "btn-prev",
- disabled: unref(internalDisabled),
- "aria-label": _ctx.prevText || unref(t)("el.pagination.prev"),
- "aria-disabled": unref(internalDisabled),
- onClick: ($event) => _ctx.$emit("click", $event)
- }, [
- _ctx.prevText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.prevText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.prevIcon)))
- ]),
- _: 1
- }))
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
- };
- }
- });
- var Prev = _export_sfc(_sfc_main392, [["__file", "prev.vue"]]);
- // node_modules/element-plus/es/components/pagination/src/components/next.mjs
- var paginationNextProps = buildProps({
- disabled: Boolean,
- currentPage: {
- type: Number,
- default: 1
- },
- pageCount: {
- type: Number,
- default: 50
- },
- nextText: {
- type: String
- },
- nextIcon: {
- type: iconPropType
- }
- });
- // node_modules/element-plus/es/components/pagination/src/components/next2.mjs
- var __default__77 = defineComponent({
- name: "ElPaginationNext"
- });
- var _sfc_main393 = defineComponent({
- ...__default__77,
- props: paginationNextProps,
- emits: ["click"],
- setup(__props) {
- const props2 = __props;
- const { t } = useLocale();
- const internalDisabled = computed(() => props2.disabled || props2.currentPage === props2.pageCount || props2.pageCount === 0);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("button", {
- type: "button",
- class: "btn-next",
- disabled: unref(internalDisabled),
- "aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
- "aria-disabled": unref(internalDisabled),
- onClick: ($event) => _ctx.$emit("click", $event)
- }, [
- _ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
- ]),
- _: 1
- }))
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
- };
- }
- });
- var Next = _export_sfc(_sfc_main393, [["__file", "next.vue"]]);
- // node_modules/element-plus/es/components/select-v2/src/useProps.mjs
- var defaultProps = {
- label: "label",
- value: "value",
- disabled: "disabled",
- options: "options"
- };
- function useProps(props2) {
- const aliasProps = computed(() => ({ ...defaultProps, ...props2.props }));
- const getLabel = (option) => get_default(option, aliasProps.value.label);
- const getValue3 = (option) => get_default(option, aliasProps.value.value);
- const getDisabled = (option) => get_default(option, aliasProps.value.disabled);
- const getOptions = (option) => get_default(option, aliasProps.value.options);
- return {
- aliasProps,
- getLabel,
- getValue: getValue3,
- getDisabled,
- getOptions
- };
- }
- // node_modules/element-plus/es/components/select/src/token.mjs
- var selectGroupKey = Symbol("ElSelectGroup");
- var selectKey = Symbol("ElSelect");
- // node_modules/element-plus/es/components/select/src/option.mjs
- var COMPONENT_NAME17 = "ElOption";
- var optionProps = buildProps({
- value: {
- type: [String, Number, Boolean, Object],
- required: true
- },
- label: {
- type: [String, Number]
- },
- created: Boolean,
- disabled: Boolean
- });
- // node_modules/element-plus/es/utils/strings.mjs
- var escapeStringRegexp = (string3 = "") => string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
- var capitalize3 = (str) => capitalize(str);
- // node_modules/element-plus/es/components/select/src/useOption.mjs
- function useOption(props2, states) {
- const select = inject(selectKey);
- if (!select) {
- throwError(COMPONENT_NAME17, "usage: <el-select><el-option /></el-select/>");
- }
- const selectGroup = inject(selectGroupKey, { disabled: false });
- const itemSelected = computed(() => {
- return contains(castArray_default(select.props.modelValue), props2.value);
- });
- const limitReached = computed(() => {
- var _a2;
- if (select.props.multiple) {
- const modelValue = castArray_default((_a2 = select.props.modelValue) != null ? _a2 : []);
- return !itemSelected.value && modelValue.length >= select.props.multipleLimit && select.props.multipleLimit > 0;
- } else {
- return false;
- }
- });
- const currentLabel = computed(() => {
- var _a2;
- return (_a2 = props2.label) != null ? _a2 : isObject(props2.value) ? "" : props2.value;
- });
- const currentValue = computed(() => {
- return props2.value || props2.label || "";
- });
- const isDisabled = computed(() => {
- return props2.disabled || states.groupDisabled || limitReached.value;
- });
- const instance = getCurrentInstance();
- const contains = (arr = [], target2) => {
- if (!isObject(props2.value)) {
- return arr && arr.includes(target2);
- } else {
- const valueKey = select.props.valueKey;
- return arr && arr.some((item) => {
- return toRaw(get_default(item, valueKey)) === get_default(target2, valueKey);
- });
- }
- };
- const hoverItem = () => {
- if (!props2.disabled && !selectGroup.disabled) {
- select.states.hoveringIndex = select.optionsArray.indexOf(instance.proxy);
- }
- };
- const updateOption = (query) => {
- const regexp4 = new RegExp(escapeStringRegexp(query), "i");
- states.visible = regexp4.test(String(currentLabel.value)) || props2.created;
- };
- watch(() => currentLabel.value, () => {
- if (!props2.created && !select.props.remote)
- select.setSelected();
- });
- watch(() => props2.value, (val, oldVal) => {
- const { remote, valueKey } = select.props;
- const shouldUpdate = remote ? val !== oldVal : !isEqual_default(val, oldVal);
- if (shouldUpdate) {
- select.onOptionDestroy(oldVal, instance.proxy);
- select.onOptionCreate(instance.proxy);
- }
- if (!props2.created && !remote) {
- if (valueKey && isObject(val) && isObject(oldVal) && val[valueKey] === oldVal[valueKey]) {
- return;
- }
- select.setSelected();
- }
- });
- watch(() => selectGroup.disabled, () => {
- states.groupDisabled = selectGroup.disabled;
- }, { immediate: true });
- return {
- select,
- currentLabel,
- currentValue,
- itemSelected,
- isDisabled,
- hoverItem,
- updateOption
- };
- }
- // node_modules/element-plus/es/components/select/src/option2.mjs
- var _sfc_main394 = defineComponent({
- name: COMPONENT_NAME17,
- componentName: COMPONENT_NAME17,
- props: optionProps,
- setup(props2) {
- const ns = useNamespace("select");
- const id = useId();
- const containerKls = computed(() => [
- ns.be("dropdown", "item"),
- ns.is("disabled", unref(isDisabled)),
- ns.is("selected", unref(itemSelected)),
- ns.is("hovering", unref(hover))
- ]);
- const states = reactive({
- index: -1,
- groupDisabled: false,
- visible: true,
- hover: false
- });
- const {
- currentLabel,
- itemSelected,
- isDisabled,
- select,
- hoverItem,
- updateOption
- } = useOption(props2, states);
- const { visible, hover } = toRefs(states);
- const vm = getCurrentInstance().proxy;
- select.onOptionCreate(vm);
- onBeforeUnmount(() => {
- const key = vm.value;
- nextTick(() => {
- const { selected: selectedOptions } = select.states;
- const doesSelected = selectedOptions.some((item) => {
- return item.value === vm.value;
- });
- if (select.states.cachedOptions.get(key) === vm && !doesSelected) {
- select.states.cachedOptions.delete(key);
- }
- });
- select.onOptionDestroy(key, vm);
- });
- function selectOptionClick() {
- if (!isDisabled.value) {
- select.handleOptionSelect(vm);
- }
- }
- return {
- ns,
- id,
- containerKls,
- currentLabel,
- itemSelected,
- isDisabled,
- select,
- visible,
- hover,
- states,
- hoverItem,
- updateOption,
- selectOptionClick
- };
- }
- });
- function _sfc_render14(_ctx, _cache) {
- return withDirectives((openBlock(), createElementBlock("li", {
- id: _ctx.id,
- class: normalizeClass(_ctx.containerKls),
- role: "option",
- "aria-disabled": _ctx.isDisabled || void 0,
- "aria-selected": _ctx.itemSelected,
- onMousemove: _ctx.hoverItem,
- onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.currentLabel), 1)
- ])
- ], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
- [vShow, _ctx.visible]
- ]);
- }
- var Option = _export_sfc(_sfc_main394, [["render", _sfc_render14], ["__file", "option.vue"]]);
- // node_modules/element-plus/es/components/select/src/select-dropdown.mjs
- var _sfc_main395 = defineComponent({
- name: "ElSelectDropdown",
- componentName: "ElSelectDropdown",
- setup() {
- const select = inject(selectKey);
- const ns = useNamespace("select");
- const popperClass = computed(() => select.props.popperClass);
- const isMultiple = computed(() => select.props.multiple);
- const isFitInputWidth = computed(() => select.props.fitInputWidth);
- const minWidth = ref("");
- function updateMinWidth() {
- var _a2;
- minWidth.value = `${(_a2 = select.selectRef) == null ? void 0 : _a2.offsetWidth}px`;
- }
- onMounted(() => {
- updateMinWidth();
- useResizeObserver(select.selectRef, updateMinWidth);
- });
- return {
- ns,
- minWidth,
- popperClass,
- isMultiple,
- isFitInputWidth
- };
- }
- });
- function _sfc_render15(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([_ctx.ns.b("dropdown"), _ctx.ns.is("multiple", _ctx.isMultiple), _ctx.popperClass]),
- style: normalizeStyle({ [_ctx.isFitInputWidth ? "width" : "minWidth"]: _ctx.minWidth })
- }, [
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(_ctx.ns.be("dropdown", "header"))
- }, [
- renderSlot(_ctx.$slots, "header")
- ], 2)) : createCommentVNode("v-if", true),
- renderSlot(_ctx.$slots, "default"),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(_ctx.ns.be("dropdown", "footer"))
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 2)) : createCommentVNode("v-if", true)
- ], 6);
- }
- var ElSelectMenu = _export_sfc(_sfc_main395, [["render", _sfc_render15], ["__file", "select-dropdown.vue"]]);
- // node_modules/element-plus/es/components/select/src/useSelect.mjs
- var useSelect = (props2, emit) => {
- const { t } = useLocale();
- const contentId = useId();
- const nsSelect = useNamespace("select");
- const nsInput = useNamespace("input");
- const states = reactive({
- inputValue: "",
- options: /* @__PURE__ */ new Map(),
- cachedOptions: /* @__PURE__ */ new Map(),
- optionValues: [],
- selected: [],
- selectionWidth: 0,
- collapseItemWidth: 0,
- selectedLabel: "",
- hoveringIndex: -1,
- previousQuery: null,
- inputHovering: false,
- menuVisibleOnFocus: false,
- isBeforeHide: false
- });
- const selectRef = ref();
- const selectionRef = ref();
- const tooltipRef = ref();
- const tagTooltipRef = ref();
- const inputRef = ref();
- const prefixRef = ref();
- const suffixRef = ref();
- const menuRef = ref();
- const tagMenuRef = ref();
- const collapseItemRef = ref();
- const scrollbarRef = ref();
- const expanded = ref(false);
- const hoverOption = ref();
- const { form, formItem } = useFormItem();
- const { inputId } = useFormItemInputId(props2, {
- formItemContext: formItem
- });
- const { valueOnClear, isEmptyValue: isEmptyValue2 } = useEmptyValues(props2);
- const {
- isComposing,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd
- } = useComposition({
- afterComposition: (e) => onInput(e)
- });
- const selectDisabled = computed(() => props2.disabled || !!(form == null ? void 0 : form.disabled));
- const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {
- disabled: selectDisabled,
- afterFocus() {
- if (props2.automaticDropdown && !expanded.value) {
- expanded.value = true;
- states.menuVisibleOnFocus = true;
- }
- },
- beforeBlur(event) {
- var _a2, _b;
- return ((_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event)) || ((_b = tagTooltipRef.value) == null ? void 0 : _b.isFocusInsideContent(event));
- },
- afterBlur() {
- var _a2;
- expanded.value = false;
- states.menuVisibleOnFocus = false;
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "blur").catch((err) => debugWarn());
- }
- }
- });
- const hasModelValue = computed(() => {
- return isArray(props2.modelValue) ? props2.modelValue.length > 0 : !isEmptyValue2(props2.modelValue);
- });
- const needStatusIcon = computed(() => {
- var _a2;
- return (_a2 = form == null ? void 0 : form.statusIcon) != null ? _a2 : false;
- });
- const showClearBtn = computed(() => {
- return props2.clearable && !selectDisabled.value && hasModelValue.value && (isFocused.value || states.inputHovering);
- });
- const iconComponent = computed(() => props2.remote && props2.filterable && !props2.remoteShowSuffix ? "" : props2.suffixIcon);
- const iconReverse = computed(() => nsSelect.is("reverse", !!(iconComponent.value && expanded.value)));
- const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
- const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
- const debounce$1 = computed(() => props2.remote ? 300 : 0);
- const isRemoteSearchEmpty = computed(() => props2.remote && !states.inputValue && states.options.size === 0);
- const emptyText = computed(() => {
- if (props2.loading) {
- return props2.loadingText || t("el.select.loading");
- } else {
- if (props2.filterable && states.inputValue && states.options.size > 0 && filteredOptionsCount.value === 0) {
- return props2.noMatchText || t("el.select.noMatch");
- }
- if (states.options.size === 0) {
- return props2.noDataText || t("el.select.noData");
- }
- }
- return null;
- });
- const filteredOptionsCount = computed(() => optionsArray.value.filter((option) => option.visible).length);
- const optionsArray = computed(() => {
- const list = Array.from(states.options.values());
- const newList = [];
- states.optionValues.forEach((item) => {
- const index = list.findIndex((i) => i.value === item);
- if (index > -1) {
- newList.push(list[index]);
- }
- });
- return newList.length >= list.length ? newList : list;
- });
- const cachedOptionsArray = computed(() => Array.from(states.cachedOptions.values()));
- const showNewOption = computed(() => {
- const hasExistingOption = optionsArray.value.filter((option) => {
- return !option.created;
- }).some((option) => {
- return option.currentLabel === states.inputValue;
- });
- return props2.filterable && props2.allowCreate && states.inputValue !== "" && !hasExistingOption;
- });
- const updateOptions2 = () => {
- if (props2.filterable && isFunction(props2.filterMethod))
- return;
- if (props2.filterable && props2.remote && isFunction(props2.remoteMethod))
- return;
- optionsArray.value.forEach((option) => {
- var _a2;
- (_a2 = option.updateOption) == null ? void 0 : _a2.call(option, states.inputValue);
- });
- };
- const selectSize = useFormSize();
- const collapseTagSize = computed(() => ["small"].includes(selectSize.value) ? "small" : "default");
- const dropdownMenuVisible = computed({
- get() {
- return expanded.value && !isRemoteSearchEmpty.value;
- },
- set(val) {
- expanded.value = val;
- }
- });
- const shouldShowPlaceholder = computed(() => {
- if (props2.multiple && !isUndefined2(props2.modelValue)) {
- return castArray_default(props2.modelValue).length === 0 && !states.inputValue;
- }
- const value = isArray(props2.modelValue) ? props2.modelValue[0] : props2.modelValue;
- return props2.filterable || isUndefined2(value) ? !states.inputValue : true;
- });
- const currentPlaceholder = computed(() => {
- var _a2;
- const _placeholder = (_a2 = props2.placeholder) != null ? _a2 : t("el.select.placeholder");
- return props2.multiple || !hasModelValue.value ? _placeholder : states.selectedLabel;
- });
- const mouseEnterEventName = computed(() => isIOS ? null : "mouseenter");
- watch(() => props2.modelValue, (val, oldVal) => {
- if (props2.multiple) {
- if (props2.filterable && !props2.reserveKeyword) {
- states.inputValue = "";
- handleQueryChange("");
- }
- }
- setSelected();
- if (!isEqual_default(val, oldVal) && props2.validateEvent) {
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
- }
- }, {
- flush: "post",
- deep: true
- });
- watch(() => expanded.value, (val) => {
- if (val) {
- handleQueryChange(states.inputValue);
- } else {
- states.inputValue = "";
- states.previousQuery = null;
- states.isBeforeHide = true;
- }
- emit("visible-change", val);
- });
- watch(() => states.options.entries(), () => {
- if (!isClient)
- return;
- setSelected();
- if (props2.defaultFirstOption && (props2.filterable || props2.remote) && filteredOptionsCount.value) {
- checkDefaultFirstOption();
- }
- }, {
- flush: "post"
- });
- watch([() => states.hoveringIndex, optionsArray], ([val]) => {
- if (isNumber2(val) && val > -1) {
- hoverOption.value = optionsArray.value[val] || {};
- } else {
- hoverOption.value = {};
- }
- optionsArray.value.forEach((option) => {
- option.hover = hoverOption.value === option;
- });
- });
- watchEffect(() => {
- if (states.isBeforeHide)
- return;
- updateOptions2();
- });
- const handleQueryChange = (val) => {
- if (states.previousQuery === val || isComposing.value) {
- return;
- }
- states.previousQuery = val;
- if (props2.filterable && isFunction(props2.filterMethod)) {
- props2.filterMethod(val);
- } else if (props2.filterable && props2.remote && isFunction(props2.remoteMethod)) {
- props2.remoteMethod(val);
- }
- if (props2.defaultFirstOption && (props2.filterable || props2.remote) && filteredOptionsCount.value) {
- nextTick(checkDefaultFirstOption);
- } else {
- nextTick(updateHoveringIndex);
- }
- };
- const checkDefaultFirstOption = () => {
- const optionsInDropdown = optionsArray.value.filter((n) => n.visible && !n.disabled && !n.states.groupDisabled);
- const userCreatedOption = optionsInDropdown.find((n) => n.created);
- const firstOriginOption = optionsInDropdown[0];
- const valueList = optionsArray.value.map((item) => item.value);
- states.hoveringIndex = getValueIndex(valueList, userCreatedOption || firstOriginOption);
- };
- const setSelected = () => {
- if (!props2.multiple) {
- const value = isArray(props2.modelValue) ? props2.modelValue[0] : props2.modelValue;
- const option = getOption(value);
- states.selectedLabel = option.currentLabel;
- states.selected = [option];
- return;
- } else {
- states.selectedLabel = "";
- }
- const result2 = [];
- if (!isUndefined2(props2.modelValue)) {
- castArray_default(props2.modelValue).forEach((value) => {
- result2.push(getOption(value));
- });
- }
- states.selected = result2;
- };
- const getOption = (value) => {
- let option;
- const isObjectValue = isPlainObject(value);
- for (let i = states.cachedOptions.size - 1; i >= 0; i--) {
- const cachedOption = cachedOptionsArray.value[i];
- const isEqualValue = isObjectValue ? get_default(cachedOption.value, props2.valueKey) === get_default(value, props2.valueKey) : cachedOption.value === value;
- if (isEqualValue) {
- option = {
- value,
- currentLabel: cachedOption.currentLabel,
- get isDisabled() {
- return cachedOption.isDisabled;
- }
- };
- break;
- }
- }
- if (option)
- return option;
- const label = isObjectValue ? value.label : value != null ? value : "";
- const newOption = {
- value,
- currentLabel: label
- };
- return newOption;
- };
- const updateHoveringIndex = () => {
- states.hoveringIndex = optionsArray.value.findIndex((item) => states.selected.some((selected) => getValueKey(selected) === getValueKey(item)));
- };
- const resetSelectionWidth = () => {
- states.selectionWidth = Number.parseFloat(window.getComputedStyle(selectionRef.value).width);
- };
- const resetCollapseItemWidth = () => {
- states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
- };
- const updateTooltip = () => {
- var _a2, _b;
- (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- };
- const updateTagTooltip = () => {
- var _a2, _b;
- (_b = (_a2 = tagTooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- };
- const onInputChange = () => {
- if (states.inputValue.length > 0 && !expanded.value) {
- expanded.value = true;
- }
- handleQueryChange(states.inputValue);
- };
- const onInput = (event) => {
- states.inputValue = event.target.value;
- if (props2.remote) {
- debouncedOnInputChange();
- } else {
- return onInputChange();
- }
- };
- const debouncedOnInputChange = debounce_default(() => {
- onInputChange();
- }, debounce$1.value);
- const emitChange = (val) => {
- if (!isEqual_default(props2.modelValue, val)) {
- emit(CHANGE_EVENT, val);
- }
- };
- const getLastNotDisabledIndex = (value) => findLastIndex_default(value, (it2) => {
- const option = states.cachedOptions.get(it2);
- return option && !option.disabled && !option.states.groupDisabled;
- });
- const deletePrevTag = (e) => {
- if (!props2.multiple)
- return;
- if (e.code === EVENT_CODE.delete)
- return;
- if (e.target.value.length <= 0) {
- const value = castArray_default(props2.modelValue).slice();
- const lastNotDisabledIndex = getLastNotDisabledIndex(value);
- if (lastNotDisabledIndex < 0)
- return;
- const removeTagValue = value[lastNotDisabledIndex];
- value.splice(lastNotDisabledIndex, 1);
- emit(UPDATE_MODEL_EVENT, value);
- emitChange(value);
- emit("remove-tag", removeTagValue);
- }
- };
- const deleteTag = (event, tag) => {
- const index = states.selected.indexOf(tag);
- if (index > -1 && !selectDisabled.value) {
- const value = castArray_default(props2.modelValue).slice();
- value.splice(index, 1);
- emit(UPDATE_MODEL_EVENT, value);
- emitChange(value);
- emit("remove-tag", tag.value);
- }
- event.stopPropagation();
- focus();
- };
- const deleteSelected = (event) => {
- event.stopPropagation();
- const value = props2.multiple ? [] : valueOnClear.value;
- if (props2.multiple) {
- for (const item of states.selected) {
- if (item.isDisabled)
- value.push(item.value);
- }
- }
- emit(UPDATE_MODEL_EVENT, value);
- emitChange(value);
- states.hoveringIndex = -1;
- expanded.value = false;
- emit("clear");
- focus();
- };
- const handleOptionSelect = (option) => {
- var _a2;
- if (props2.multiple) {
- const value = castArray_default((_a2 = props2.modelValue) != null ? _a2 : []).slice();
- const optionIndex = getValueIndex(value, option);
- if (optionIndex > -1) {
- value.splice(optionIndex, 1);
- } else if (props2.multipleLimit <= 0 || value.length < props2.multipleLimit) {
- value.push(option.value);
- }
- emit(UPDATE_MODEL_EVENT, value);
- emitChange(value);
- if (option.created) {
- handleQueryChange("");
- }
- if (props2.filterable && !props2.reserveKeyword) {
- states.inputValue = "";
- }
- } else {
- emit(UPDATE_MODEL_EVENT, option.value);
- emitChange(option.value);
- expanded.value = false;
- }
- focus();
- if (expanded.value)
- return;
- nextTick(() => {
- scrollToOption(option);
- });
- };
- const getValueIndex = (arr, option) => {
- if (isUndefined2(option))
- return -1;
- if (!isObject(option.value))
- return arr.indexOf(option.value);
- return arr.findIndex((item) => {
- return isEqual_default(get_default(item, props2.valueKey), getValueKey(option));
- });
- };
- const scrollToOption = (option) => {
- var _a2, _b, _c, _d, _e;
- const targetOption = isArray(option) ? option[0] : option;
- let target2 = null;
- if (targetOption == null ? void 0 : targetOption.value) {
- const options = optionsArray.value.filter((item) => item.value === targetOption.value);
- if (options.length > 0) {
- target2 = options[0].$el;
- }
- }
- if (tooltipRef.value && target2) {
- 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")}`);
- if (menu) {
- scrollIntoView(menu, target2);
- }
- }
- (_e = scrollbarRef.value) == null ? void 0 : _e.handleScroll();
- };
- const onOptionCreate = (vm) => {
- states.options.set(vm.value, vm);
- states.cachedOptions.set(vm.value, vm);
- };
- const onOptionDestroy = (key, vm) => {
- if (states.options.get(key) === vm) {
- states.options.delete(key);
- }
- };
- const popperRef = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
- });
- const handleMenuEnter = () => {
- states.isBeforeHide = false;
- nextTick(() => {
- var _a2;
- (_a2 = scrollbarRef.value) == null ? void 0 : _a2.update();
- scrollToOption(states.selected);
- });
- };
- const focus = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2;
- if (expanded.value) {
- expanded.value = false;
- nextTick(() => {
- var _a22;
- return (_a22 = inputRef.value) == null ? void 0 : _a22.blur();
- });
- return;
- }
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
- };
- const handleClearClick = (event) => {
- deleteSelected(event);
- };
- const handleClickOutside = (event) => {
- expanded.value = false;
- if (isFocused.value) {
- const _event2 = new FocusEvent("blur", event);
- nextTick(() => handleBlur(_event2));
- }
- };
- const handleEsc = () => {
- if (states.inputValue.length > 0) {
- states.inputValue = "";
- } else {
- expanded.value = false;
- }
- };
- const toggleMenu = () => {
- if (selectDisabled.value)
- return;
- if (isIOS)
- states.inputHovering = true;
- if (states.menuVisibleOnFocus) {
- states.menuVisibleOnFocus = false;
- } else {
- expanded.value = !expanded.value;
- }
- };
- const selectOption = () => {
- if (!expanded.value) {
- toggleMenu();
- } else {
- const option = optionsArray.value[states.hoveringIndex];
- if (option && !option.isDisabled) {
- handleOptionSelect(option);
- }
- }
- };
- const getValueKey = (item) => {
- return isObject(item.value) ? get_default(item.value, props2.valueKey) : item.value;
- };
- const optionsAllDisabled = computed(() => optionsArray.value.filter((option) => option.visible).every((option) => option.isDisabled));
- const showTagList = computed(() => {
- if (!props2.multiple) {
- return [];
- }
- return props2.collapseTags ? states.selected.slice(0, props2.maxCollapseTags) : states.selected;
- });
- const collapseTagList = computed(() => {
- if (!props2.multiple) {
- return [];
- }
- return props2.collapseTags ? states.selected.slice(props2.maxCollapseTags) : [];
- });
- const navigateOptions = (direction2) => {
- if (!expanded.value) {
- expanded.value = true;
- return;
- }
- if (states.options.size === 0 || filteredOptionsCount.value === 0 || isComposing.value)
- return;
- if (!optionsAllDisabled.value) {
- if (direction2 === "next") {
- states.hoveringIndex++;
- if (states.hoveringIndex === states.options.size) {
- states.hoveringIndex = 0;
- }
- } else if (direction2 === "prev") {
- states.hoveringIndex--;
- if (states.hoveringIndex < 0) {
- states.hoveringIndex = states.options.size - 1;
- }
- }
- const option = optionsArray.value[states.hoveringIndex];
- if (option.isDisabled || !option.visible) {
- navigateOptions(direction2);
- }
- nextTick(() => scrollToOption(hoverOption.value));
- }
- };
- const getGapWidth = () => {
- if (!selectionRef.value)
- return 0;
- const style = window.getComputedStyle(selectionRef.value);
- return Number.parseFloat(style.gap || "6px");
- };
- const tagStyle = computed(() => {
- const gapWidth = getGapWidth();
- const inputSlotWidth = props2.filterable ? gapWidth + MINIMUM_INPUT_WIDTH : 0;
- const maxWidth = collapseItemRef.value && props2.maxCollapseTags === 1 ? states.selectionWidth - states.collapseItemWidth - gapWidth - inputSlotWidth : states.selectionWidth - inputSlotWidth;
- return { maxWidth: `${maxWidth}px` };
- });
- const collapseTagStyle = computed(() => {
- return { maxWidth: `${states.selectionWidth}px` };
- });
- const popupScroll = (data) => {
- emit("popup-scroll", data);
- };
- useResizeObserver(selectionRef, resetSelectionWidth);
- useResizeObserver(wrapperRef, updateTooltip);
- useResizeObserver(tagMenuRef, updateTagTooltip);
- useResizeObserver(collapseItemRef, resetCollapseItemWidth);
- let stop;
- watch(() => dropdownMenuVisible.value, (newVal) => {
- if (newVal) {
- stop = useResizeObserver(menuRef, updateTooltip).stop;
- } else {
- stop == null ? void 0 : stop();
- stop = void 0;
- }
- });
- onMounted(() => {
- setSelected();
- });
- return {
- inputId,
- contentId,
- nsSelect,
- nsInput,
- states,
- isFocused,
- expanded,
- optionsArray,
- hoverOption,
- selectSize,
- filteredOptionsCount,
- updateTooltip,
- updateTagTooltip,
- debouncedOnInputChange,
- onInput,
- deletePrevTag,
- deleteTag,
- deleteSelected,
- handleOptionSelect,
- scrollToOption,
- hasModelValue,
- shouldShowPlaceholder,
- currentPlaceholder,
- mouseEnterEventName,
- needStatusIcon,
- showClearBtn,
- iconComponent,
- iconReverse,
- validateState,
- validateIcon,
- showNewOption,
- updateOptions: updateOptions2,
- collapseTagSize,
- setSelected,
- selectDisabled,
- emptyText,
- handleCompositionStart,
- handleCompositionUpdate,
- handleCompositionEnd,
- onOptionCreate,
- onOptionDestroy,
- handleMenuEnter,
- focus,
- blur,
- handleClearClick,
- handleClickOutside,
- handleEsc,
- toggleMenu,
- selectOption,
- getValueKey,
- navigateOptions,
- dropdownMenuVisible,
- showTagList,
- collapseTagList,
- popupScroll,
- tagStyle,
- collapseTagStyle,
- popperRef,
- inputRef,
- tooltipRef,
- tagTooltipRef,
- prefixRef,
- suffixRef,
- selectRef,
- wrapperRef,
- selectionRef,
- scrollbarRef,
- menuRef,
- tagMenuRef,
- collapseItemRef
- };
- };
- // node_modules/element-plus/es/components/select/src/options.mjs
- var ElOptions = defineComponent({
- name: "ElOptions",
- setup(_2, { slots }) {
- const select = inject(selectKey);
- let cachedValueList = [];
- return () => {
- var _a2, _b;
- const children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
- const valueList = [];
- function filterOptions(children2) {
- if (!isArray(children2))
- return;
- children2.forEach((item) => {
- var _a22, _b2, _c, _d;
- const name = (_a22 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a22.name;
- if (name === "ElOptionGroup") {
- 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);
- } else if (name === "ElOption") {
- valueList.push((_d = item.props) == null ? void 0 : _d.value);
- } else if (isArray(item.children)) {
- filterOptions(item.children);
- }
- });
- }
- if (children.length) {
- filterOptions((_b = children[0]) == null ? void 0 : _b.children);
- }
- if (!isEqual_default(valueList, cachedValueList)) {
- cachedValueList = valueList;
- if (select) {
- select.states.optionValues = valueList;
- }
- }
- return children;
- };
- }
- });
- // node_modules/element-plus/es/components/select/src/select.mjs
- var selectProps = buildProps({
- name: String,
- id: String,
- modelValue: {
- type: definePropType([
- Array,
- String,
- Number,
- Boolean,
- Object
- ]),
- default: void 0
- },
- autocomplete: {
- type: String,
- default: "off"
- },
- automaticDropdown: Boolean,
- size: useSizeProp,
- effect: {
- type: definePropType(String),
- default: "light"
- },
- disabled: Boolean,
- clearable: Boolean,
- filterable: Boolean,
- allowCreate: Boolean,
- loading: Boolean,
- popperClass: {
- type: String,
- default: ""
- },
- popperStyle: {
- type: definePropType([String, Object])
- },
- popperOptions: {
- type: definePropType(Object),
- default: () => ({})
- },
- remote: Boolean,
- loadingText: String,
- noMatchText: String,
- noDataText: String,
- remoteMethod: {
- type: definePropType(Function)
- },
- filterMethod: {
- type: definePropType(Function)
- },
- multiple: Boolean,
- multipleLimit: {
- type: Number,
- default: 0
- },
- placeholder: {
- type: String
- },
- defaultFirstOption: Boolean,
- reserveKeyword: {
- type: Boolean,
- default: true
- },
- valueKey: {
- type: String,
- default: "value"
- },
- collapseTags: Boolean,
- collapseTagsTooltip: Boolean,
- maxCollapseTags: {
- type: Number,
- default: 1
- },
- teleported: useTooltipContentProps.teleported,
- persistent: {
- type: Boolean,
- default: true
- },
- clearIcon: {
- type: iconPropType,
- default: circle_close_default
- },
- fitInputWidth: Boolean,
- suffixIcon: {
- type: iconPropType,
- default: arrow_down_default
- },
- tagType: { ...tagProps.type, default: "info" },
- tagEffect: { ...tagProps.effect, default: "light" },
- validateEvent: {
- type: Boolean,
- default: true
- },
- remoteShowSuffix: Boolean,
- showArrow: {
- type: Boolean,
- default: true
- },
- offset: {
- type: Number,
- default: 12
- },
- placement: {
- type: definePropType(String),
- values: Ee,
- default: "bottom-start"
- },
- fallbackPlacements: {
- type: definePropType(Array),
- default: ["bottom-start", "top-start", "right", "left"]
- },
- tabindex: {
- type: [String, Number],
- default: 0
- },
- appendTo: useTooltipContentProps.appendTo,
- options: {
- type: definePropType(Array)
- },
- props: {
- type: definePropType(Object),
- default: () => defaultProps
- },
- ...useEmptyValuesProps,
- ...useAriaProps(["ariaLabel"])
- });
- var selectEmits = {
- [UPDATE_MODEL_EVENT]: (val) => true,
- [CHANGE_EVENT]: (val) => true,
- "popup-scroll": scrollbarEmits.scroll,
- "remove-tag": (val) => true,
- "visible-change": (visible) => true,
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent,
- clear: () => true
- };
- // node_modules/element-plus/es/components/select/src/option-group.mjs
- var _sfc_main396 = defineComponent({
- name: "ElOptionGroup",
- componentName: "ElOptionGroup",
- props: {
- label: String,
- disabled: Boolean
- },
- setup(props2) {
- const ns = useNamespace("select");
- const groupRef = ref();
- const instance = getCurrentInstance();
- const children = ref([]);
- provide(selectGroupKey, reactive({
- ...toRefs(props2)
- }));
- const visible = computed(() => children.value.some((option) => option.visible === true));
- const isOption = (node) => {
- var _a2;
- return node.type.name === "ElOption" && !!((_a2 = node.component) == null ? void 0 : _a2.proxy);
- };
- const flattedChildren2 = (node) => {
- const nodes = castArray_default(node);
- const children2 = [];
- nodes.forEach((child) => {
- var _a2;
- if (!isVNode(child))
- return;
- if (isOption(child)) {
- children2.push(child.component.proxy);
- } else if (isArray(child.children) && child.children.length) {
- children2.push(...flattedChildren2(child.children));
- } else if ((_a2 = child.component) == null ? void 0 : _a2.subTree) {
- children2.push(...flattedChildren2(child.component.subTree));
- }
- });
- return children2;
- };
- const updateChildren = () => {
- children.value = flattedChildren2(instance.subTree);
- };
- onMounted(() => {
- updateChildren();
- });
- useMutationObserver(groupRef, updateChildren, {
- attributes: true,
- subtree: true,
- childList: true
- });
- return {
- groupRef,
- visible,
- ns
- };
- }
- });
- function _sfc_render16(_ctx, _cache, $props, $setup, $data, $options) {
- return withDirectives((openBlock(), createElementBlock("ul", {
- ref: "groupRef",
- class: normalizeClass(_ctx.ns.be("group", "wrap"))
- }, [
- createBaseVNode("li", {
- class: normalizeClass(_ctx.ns.be("group", "title"))
- }, toDisplayString(_ctx.label), 3),
- createBaseVNode("li", null, [
- createBaseVNode("ul", {
- class: normalizeClass(_ctx.ns.b("group"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)
- ])
- ], 2)), [
- [vShow, _ctx.visible]
- ]);
- }
- var OptionGroup = _export_sfc(_sfc_main396, [["render", _sfc_render16], ["__file", "option-group.vue"]]);
- // node_modules/element-plus/es/components/select/src/select2.mjs
- var COMPONENT_NAME18 = "ElSelect";
- var _sfc_main397 = defineComponent({
- name: COMPONENT_NAME18,
- componentName: COMPONENT_NAME18,
- components: {
- ElSelectMenu,
- ElOption: Option,
- ElOptions,
- ElOptionGroup: OptionGroup,
- ElTag,
- ElScrollbar,
- ElTooltip,
- ElIcon
- },
- directives: { ClickOutside },
- props: selectProps,
- emits: [
- UPDATE_MODEL_EVENT,
- CHANGE_EVENT,
- "remove-tag",
- "clear",
- "visible-change",
- "focus",
- "blur",
- "popup-scroll"
- ],
- setup(props2, { emit, slots }) {
- const instance = getCurrentInstance();
- instance.appContext.config.warnHandler = (...args) => {
- if (!args[0] || args[0].includes('Slot "default" invoked outside of the render function')) {
- return;
- }
- console.warn(...args);
- };
- const modelValue = computed(() => {
- const { modelValue: rawModelValue, multiple } = props2;
- const fallback = multiple ? [] : void 0;
- if (isArray(rawModelValue)) {
- return multiple ? rawModelValue : fallback;
- }
- return multiple ? fallback : rawModelValue;
- });
- const _props = reactive({
- ...toRefs(props2),
- modelValue
- });
- const API = useSelect(_props, emit);
- const { calculatorRef, inputStyle } = useCalcInputWidth();
- const { getLabel, getValue: getValue3, getOptions, getDisabled } = useProps(props2);
- const getOptionProps = (option) => ({
- label: getLabel(option),
- value: getValue3(option),
- disabled: getDisabled(option)
- });
- const flatTreeSelectData = (data) => {
- return data.reduce((acc, item) => {
- acc.push(item);
- if (item.children && item.children.length > 0) {
- acc.push(...flatTreeSelectData(item.children));
- }
- return acc;
- }, []);
- };
- const manuallyRenderSlots = (vnodes) => {
- const children = flattedChildren(vnodes || []);
- children.forEach((item) => {
- var _a2;
- if (isObject(item) && (item.type.name === "ElOption" || item.type.name === "ElTree")) {
- const _name = item.type.name;
- if (_name === "ElTree") {
- const treeData = ((_a2 = item.props) == null ? void 0 : _a2.data) || [];
- const flatData = flatTreeSelectData(treeData);
- flatData.forEach((treeItem) => {
- treeItem.currentLabel = treeItem.label || (isObject(treeItem.value) ? "" : treeItem.value);
- API.onOptionCreate(treeItem);
- });
- } else if (_name === "ElOption") {
- const obj = { ...item.props };
- obj.currentLabel = obj.label || (isObject(obj.value) ? "" : obj.value);
- API.onOptionCreate(obj);
- }
- }
- });
- };
- watch(() => {
- var _a2;
- const slotsContent = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
- return slotsContent;
- }, (newSlot) => {
- if (props2.persistent) {
- return;
- }
- manuallyRenderSlots(newSlot);
- }, {
- immediate: true
- });
- provide(selectKey, reactive({
- props: _props,
- states: API.states,
- selectRef: API.selectRef,
- optionsArray: API.optionsArray,
- setSelected: API.setSelected,
- handleOptionSelect: API.handleOptionSelect,
- onOptionCreate: API.onOptionCreate,
- onOptionDestroy: API.onOptionDestroy
- }));
- const selectedLabel = computed(() => {
- if (!props2.multiple) {
- return API.states.selectedLabel;
- }
- return API.states.selected.map((i) => i.currentLabel);
- });
- onBeforeUnmount(() => {
- instance.appContext.config.warnHandler = void 0;
- });
- return {
- ...API,
- modelValue,
- selectedLabel,
- calculatorRef,
- inputStyle,
- getLabel,
- getValue: getValue3,
- getOptions,
- getDisabled,
- getOptionProps
- };
- }
- });
- function _sfc_render17(_ctx, _cache) {
- const _component_el_tag = resolveComponent("el-tag");
- const _component_el_tooltip = resolveComponent("el-tooltip");
- const _component_el_icon = resolveComponent("el-icon");
- const _component_el_option = resolveComponent("el-option");
- const _component_el_option_group = resolveComponent("el-option-group");
- const _component_el_options = resolveComponent("el-options");
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
- const _component_el_select_menu = resolveComponent("el-select-menu");
- const _directive_click_outside = resolveDirective("click-outside");
- return withDirectives((openBlock(), createElementBlock("div", {
- ref: "selectRef",
- class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
- [toHandlerKey(_ctx.mouseEnterEventName)]: ($event) => _ctx.states.inputHovering = true,
- onMouseleave: ($event) => _ctx.states.inputHovering = false
- }, [
- createVNode(_component_el_tooltip, {
- ref: "tooltipRef",
- visible: _ctx.dropdownMenuVisible,
- placement: _ctx.placement,
- teleported: _ctx.teleported,
- "popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
- "popper-style": _ctx.popperStyle,
- "popper-options": _ctx.popperOptions,
- "fallback-placements": _ctx.fallbackPlacements,
- effect: _ctx.effect,
- pure: "",
- trigger: "click",
- transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
- "stop-popper-mouse-event": false,
- "gpu-acceleration": false,
- persistent: _ctx.persistent,
- "append-to": _ctx.appendTo,
- "show-arrow": _ctx.showArrow,
- offset: _ctx.offset,
- onBeforeShow: _ctx.handleMenuEnter,
- onHide: ($event) => _ctx.states.isBeforeHide = false
- }, {
- default: withCtx(() => {
- var _a2;
- return [
- createBaseVNode("div", {
- ref: "wrapperRef",
- class: normalizeClass([
- _ctx.nsSelect.e("wrapper"),
- _ctx.nsSelect.is("focused", _ctx.isFocused),
- _ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
- _ctx.nsSelect.is("filterable", _ctx.filterable),
- _ctx.nsSelect.is("disabled", _ctx.selectDisabled)
- ]),
- onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
- }, [
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
- key: 0,
- ref: "prefixRef",
- class: normalizeClass(_ctx.nsSelect.e("prefix"))
- }, [
- renderSlot(_ctx.$slots, "prefix")
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- ref: "selectionRef",
- class: normalizeClass([
- _ctx.nsSelect.e("selection"),
- _ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.states.selected.length)
- ])
- }, [
- _ctx.multiple ? renderSlot(_ctx.$slots, "tag", {
- key: 0,
- data: _ctx.states.selected,
- deleteTag: _ctx.deleteTag,
- selectDisabled: _ctx.selectDisabled
- }, () => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
- return openBlock(), createElementBlock("div", {
- key: _ctx.getValueKey(item),
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
- }, [
- createVNode(_component_el_tag, {
- closable: !_ctx.selectDisabled && !item.isDisabled,
- size: _ctx.collapseTagSize,
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": "",
- style: normalizeStyle(_ctx.tagStyle),
- onClose: ($event) => _ctx.deleteTag($event, item)
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
- }, [
- renderSlot(_ctx.$slots, "label", {
- label: item.currentLabel,
- value: item.value
- }, () => [
- createTextVNode(toDisplayString(item.currentLabel), 1)
- ])
- ], 2)
- ]),
- _: 2
- }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
- ], 2);
- }), 128)),
- _ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
- key: 0,
- ref: "tagTooltipRef",
- disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
- "fallback-placements": ["bottom", "top", "right", "left"],
- effect: _ctx.effect,
- placement: "bottom",
- "popper-class": _ctx.popperClass,
- "popper-style": _ctx.popperStyle,
- teleported: _ctx.teleported
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- ref: "collapseItemRef",
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
- }, [
- createVNode(_component_el_tag, {
- closable: false,
- size: _ctx.collapseTagSize,
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": "",
- style: normalizeStyle(_ctx.collapseTagStyle)
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
- }, " + " + toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags), 3)
- ]),
- _: 1
- }, 8, ["size", "type", "effect", "style"])
- ], 2)
- ]),
- content: withCtx(() => [
- createBaseVNode("div", {
- ref: "tagMenuRef",
- class: normalizeClass(_ctx.nsSelect.e("selection"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (item) => {
- return openBlock(), createElementBlock("div", {
- key: _ctx.getValueKey(item),
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
- }, [
- createVNode(_component_el_tag, {
- class: "in-tooltip",
- closable: !_ctx.selectDisabled && !item.isDisabled,
- size: _ctx.collapseTagSize,
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": "",
- onClose: ($event) => _ctx.deleteTag($event, item)
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
- }, [
- renderSlot(_ctx.$slots, "label", {
- label: item.currentLabel,
- value: item.value
- }, () => [
- createTextVNode(toDisplayString(item.currentLabel), 1)
- ])
- ], 2)
- ]),
- _: 2
- }, 1032, ["closable", "size", "type", "effect", "onClose"])
- ], 2);
- }), 128))
- ], 2)
- ]),
- _: 3
- }, 8, ["disabled", "effect", "popper-class", "popper-style", "teleported"])) : createCommentVNode("v-if", true)
- ]) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass([
- _ctx.nsSelect.e("selected-item"),
- _ctx.nsSelect.e("input-wrapper"),
- _ctx.nsSelect.is("hidden", !_ctx.filterable)
- ])
- }, [
- withDirectives(createBaseVNode("input", {
- id: _ctx.inputId,
- ref: "inputRef",
- "onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
- type: "text",
- name: _ctx.name,
- class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
- disabled: _ctx.selectDisabled,
- autocomplete: _ctx.autocomplete,
- style: normalizeStyle(_ctx.inputStyle),
- tabindex: _ctx.tabindex,
- role: "combobox",
- readonly: !_ctx.filterable,
- spellcheck: "false",
- "aria-activedescendant": ((_a2 = _ctx.hoverOption) == null ? void 0 : _a2.id) || "",
- "aria-controls": _ctx.contentId,
- "aria-expanded": _ctx.dropdownMenuVisible,
- "aria-label": _ctx.ariaLabel,
- "aria-autocomplete": "none",
- "aria-haspopup": "listbox",
- onKeydown: [
- withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
- withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
- withKeys(withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
- withKeys(withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
- withKeys(withModifiers(_ctx.deletePrevTag, ["stop"]), ["delete"])
- ],
- onCompositionstart: _ctx.handleCompositionStart,
- onCompositionupdate: _ctx.handleCompositionUpdate,
- onCompositionend: _ctx.handleCompositionEnd,
- onInput: _ctx.onInput,
- onClick: withModifiers(_ctx.toggleMenu, ["stop"])
- }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
- [vModelText, _ctx.states.inputValue]
- ]),
- _ctx.filterable ? (openBlock(), createElementBlock("span", {
- key: 0,
- ref: "calculatorRef",
- "aria-hidden": "true",
- class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
- textContent: toDisplayString(_ctx.states.inputValue)
- }, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
- ], 2),
- _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([
- _ctx.nsSelect.e("selected-item"),
- _ctx.nsSelect.e("placeholder"),
- _ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
- ])
- }, [
- _ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
- key: 0,
- label: _ctx.currentPlaceholder,
- value: _ctx.modelValue
- }, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
- ]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
- ], 2)) : createCommentVNode("v-if", true)
- ], 2),
- createBaseVNode("div", {
- ref: "suffixRef",
- class: normalizeClass(_ctx.nsSelect.e("suffix"))
- }, [
- _ctx.iconComponent && !_ctx.showClearBtn ? (openBlock(), createBlock(_component_el_icon, {
- key: 0,
- class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
- key: 1,
- class: normalizeClass([
- _ctx.nsSelect.e("caret"),
- _ctx.nsSelect.e("icon"),
- _ctx.nsSelect.e("clear")
- ]),
- onClick: _ctx.handleClearClick
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
- _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
- key: 2,
- class: normalizeClass([
- _ctx.nsInput.e("icon"),
- _ctx.nsInput.e("validateIcon"),
- _ctx.nsInput.is("loading", _ctx.validateState === "validating")
- ])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 10, ["onClick"])
- ];
- }),
- content: withCtx(() => [
- createVNode(_component_el_select_menu, { ref: "menuRef" }, {
- default: withCtx(() => [
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "header")
- ], 10, ["onClick"])) : createCommentVNode("v-if", true),
- withDirectives(createVNode(_component_el_scrollbar, {
- id: _ctx.contentId,
- ref: "scrollbarRef",
- tag: "ul",
- "wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
- "view-class": _ctx.nsSelect.be("dropdown", "list"),
- class: normalizeClass([_ctx.nsSelect.is("empty", _ctx.filteredOptionsCount === 0)]),
- role: "listbox",
- "aria-label": _ctx.ariaLabel,
- "aria-orientation": "vertical",
- onScroll: _ctx.popupScroll
- }, {
- default: withCtx(() => [
- _ctx.showNewOption ? (openBlock(), createBlock(_component_el_option, {
- key: 0,
- value: _ctx.states.inputValue,
- created: true
- }, null, 8, ["value"])) : createCommentVNode("v-if", true),
- createVNode(_component_el_options, null, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default", {}, () => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
- var _a2;
- return openBlock(), createElementBlock(Fragment, { key: index }, [
- ((_a2 = _ctx.getOptions(option)) == null ? void 0 : _a2.length) ? (openBlock(), createBlock(_component_el_option_group, {
- key: 0,
- label: _ctx.getLabel(option),
- disabled: _ctx.getDisabled(option)
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getOptions(option), (item) => {
- return openBlock(), createBlock(_component_el_option, mergeProps({
- key: _ctx.getValue(item)
- }, _ctx.getOptionProps(item)), null, 16);
- }), 128))
- ]),
- _: 2
- }, 1032, ["label", "disabled"])) : (openBlock(), createBlock(_component_el_option, normalizeProps(mergeProps({ key: 1 }, _ctx.getOptionProps(option))), null, 16))
- ], 64);
- }), 128))
- ])
- ]),
- _: 3
- })
- ]),
- _: 3
- }, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
- [vShow, _ctx.states.options.size > 0 && !_ctx.loading]
- ]),
- _ctx.$slots.loading && _ctx.loading ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
- }, [
- renderSlot(_ctx.$slots, "loading")
- ], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.emptyText), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
- key: 3,
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 10, ["onClick"])) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 512)
- ]),
- _: 3
- }, 8, ["visible", "placement", "teleported", "popper-class", "popper-style", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
- ], 16, ["onMouseleave"])), [
- [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
- ]);
- }
- var Select = _export_sfc(_sfc_main397, [["render", _sfc_render17], ["__file", "select.vue"]]);
- // node_modules/element-plus/es/components/select/index.mjs
- var ElSelect = withInstall(Select, {
- Option,
- OptionGroup
- });
- var ElOption = withNoopInstall(Option);
- var ElOptionGroup = withNoopInstall(OptionGroup);
- // node_modules/element-plus/es/components/pagination/src/usePagination.mjs
- var usePagination = () => inject(elPaginationKey, {});
- // node_modules/element-plus/es/components/pagination/src/components/sizes.mjs
- var paginationSizesProps = buildProps({
- pageSize: {
- type: Number,
- required: true
- },
- pageSizes: {
- type: definePropType(Array),
- default: () => mutable([10, 20, 30, 40, 50, 100])
- },
- popperClass: {
- type: String
- },
- disabled: Boolean,
- teleported: Boolean,
- size: {
- type: String,
- values: componentSizes
- },
- appendSizeTo: String
- });
- // node_modules/element-plus/es/components/pagination/src/components/sizes2.mjs
- var __default__78 = defineComponent({
- name: "ElPaginationSizes"
- });
- var _sfc_main398 = defineComponent({
- ...__default__78,
- props: paginationSizesProps,
- emits: ["page-size-change"],
- setup(__props, { emit }) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("pagination");
- const pagination = usePagination();
- const innerPageSize = ref(props2.pageSize);
- watch(() => props2.pageSizes, (newVal, oldVal) => {
- if (isEqual_default(newVal, oldVal))
- return;
- if (isArray(newVal)) {
- const pageSize = newVal.includes(props2.pageSize) ? props2.pageSize : props2.pageSizes[0];
- emit("page-size-change", pageSize);
- }
- });
- watch(() => props2.pageSize, (newVal) => {
- innerPageSize.value = newVal;
- });
- const innerPageSizes = computed(() => props2.pageSizes);
- function handleChange(val) {
- var _a2;
- if (val !== innerPageSize.value) {
- innerPageSize.value = val;
- (_a2 = pagination.handleSizeChange) == null ? void 0 : _a2.call(pagination, Number(val));
- }
- }
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(ns).e("sizes"))
- }, [
- createVNode(unref(ElSelect), {
- "model-value": innerPageSize.value,
- disabled: _ctx.disabled,
- "popper-class": _ctx.popperClass,
- size: _ctx.size,
- teleported: _ctx.teleported,
- "validate-event": false,
- "append-to": _ctx.appendSizeTo,
- onChange: handleChange
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
- return openBlock(), createBlock(unref(ElOption), {
- key: item,
- value: item,
- label: item + unref(t)("el.pagination.pagesize")
- }, null, 8, ["value", "label"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
- ], 2);
- };
- }
- });
- var Sizes = _export_sfc(_sfc_main398, [["__file", "sizes.vue"]]);
- // node_modules/element-plus/es/components/pagination/src/components/jumper.mjs
- var paginationJumperProps = buildProps({
- size: {
- type: String,
- values: componentSizes
- }
- });
- // node_modules/element-plus/es/components/pagination/src/components/jumper2.mjs
- var __default__79 = defineComponent({
- name: "ElPaginationJumper"
- });
- var _sfc_main399 = defineComponent({
- ...__default__79,
- props: paginationJumperProps,
- setup(__props) {
- const { t } = useLocale();
- const ns = useNamespace("pagination");
- const { pageCount, disabled, currentPage, changeEvent } = usePagination();
- const userInput = ref();
- const innerValue = computed(() => {
- var _a2;
- return (_a2 = userInput.value) != null ? _a2 : currentPage == null ? void 0 : currentPage.value;
- });
- function handleInput(val) {
- userInput.value = val ? +val : "";
- }
- function handleChange(val) {
- val = Math.trunc(+val);
- changeEvent == null ? void 0 : changeEvent(val);
- userInput.value = void 0;
- }
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(ns).e("jump")),
- disabled: unref(disabled)
- }, [
- createBaseVNode("span", {
- class: normalizeClass([unref(ns).e("goto")])
- }, toDisplayString(unref(t)("el.pagination.goto")), 3),
- createVNode(unref(ElInput), {
- size: _ctx.size,
- class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
- min: 1,
- max: unref(pageCount),
- disabled: unref(disabled),
- "model-value": unref(innerValue),
- "validate-event": false,
- "aria-label": unref(t)("el.pagination.page"),
- type: "number",
- "onUpdate:modelValue": handleInput,
- onChange: handleChange
- }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
- createBaseVNode("span", {
- class: normalizeClass([unref(ns).e("classifier")])
- }, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
- ], 10, ["disabled"]);
- };
- }
- });
- var Jumper = _export_sfc(_sfc_main399, [["__file", "jumper.vue"]]);
- // node_modules/element-plus/es/components/pagination/src/components/total.mjs
- var paginationTotalProps = buildProps({
- total: {
- type: Number,
- default: 1e3
- }
- });
- // node_modules/element-plus/es/components/pagination/src/components/total2.mjs
- var __default__80 = defineComponent({
- name: "ElPaginationTotal"
- });
- var _sfc_main400 = defineComponent({
- ...__default__80,
- props: paginationTotalProps,
- setup(__props) {
- const { t } = useLocale();
- const ns = useNamespace("pagination");
- const { disabled } = usePagination();
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- class: normalizeClass(unref(ns).e("total")),
- disabled: unref(disabled)
- }, toDisplayString(unref(t)("el.pagination.total", {
- total: _ctx.total
- })), 11, ["disabled"]);
- };
- }
- });
- var Total = _export_sfc(_sfc_main400, [["__file", "total.vue"]]);
- // node_modules/element-plus/es/components/pagination/src/components/pager.mjs
- var paginationPagerProps = buildProps({
- currentPage: {
- type: Number,
- default: 1
- },
- pageCount: {
- type: Number,
- required: true
- },
- pagerCount: {
- type: Number,
- default: 7
- },
- disabled: Boolean
- });
- // node_modules/element-plus/es/components/pagination/src/components/pager2.mjs
- var __default__81 = defineComponent({
- name: "ElPaginationPager"
- });
- var _sfc_main401 = defineComponent({
- ...__default__81,
- props: paginationPagerProps,
- emits: [CHANGE_EVENT],
- setup(__props, { emit }) {
- const props2 = __props;
- const nsPager = useNamespace("pager");
- const nsIcon = useNamespace("icon");
- const { t } = useLocale();
- const showPrevMore = ref(false);
- const showNextMore = ref(false);
- const quickPrevHover = ref(false);
- const quickNextHover = ref(false);
- const quickPrevFocus = ref(false);
- const quickNextFocus = ref(false);
- const pagers = computed(() => {
- const pagerCount = props2.pagerCount;
- const halfPagerCount = (pagerCount - 1) / 2;
- const currentPage = Number(props2.currentPage);
- const pageCount = Number(props2.pageCount);
- let showPrevMore2 = false;
- let showNextMore2 = false;
- if (pageCount > pagerCount) {
- if (currentPage > pagerCount - halfPagerCount) {
- showPrevMore2 = true;
- }
- if (currentPage < pageCount - halfPagerCount) {
- showNextMore2 = true;
- }
- }
- const array4 = [];
- if (showPrevMore2 && !showNextMore2) {
- const startPage = pageCount - (pagerCount - 2);
- for (let i = startPage; i < pageCount; i++) {
- array4.push(i);
- }
- } else if (!showPrevMore2 && showNextMore2) {
- for (let i = 2; i < pagerCount; i++) {
- array4.push(i);
- }
- } else if (showPrevMore2 && showNextMore2) {
- const offset3 = Math.floor(pagerCount / 2) - 1;
- for (let i = currentPage - offset3; i <= currentPage + offset3; i++) {
- array4.push(i);
- }
- } else {
- for (let i = 2; i < pageCount; i++) {
- array4.push(i);
- }
- }
- return array4;
- });
- const prevMoreKls = computed(() => [
- "more",
- "btn-quickprev",
- nsIcon.b(),
- nsPager.is("disabled", props2.disabled)
- ]);
- const nextMoreKls = computed(() => [
- "more",
- "btn-quicknext",
- nsIcon.b(),
- nsPager.is("disabled", props2.disabled)
- ]);
- const tabindex = computed(() => props2.disabled ? -1 : 0);
- watch(() => [props2.pageCount, props2.pagerCount, props2.currentPage], ([pageCount, pagerCount, currentPage]) => {
- const halfPagerCount = (pagerCount - 1) / 2;
- let showPrev = false;
- let showNext = false;
- if (pageCount > pagerCount) {
- showPrev = currentPage > pagerCount - halfPagerCount;
- showNext = currentPage < pageCount - halfPagerCount;
- }
- quickPrevHover.value && (quickPrevHover.value = showPrev);
- quickNextHover.value && (quickNextHover.value = showNext);
- showPrevMore.value = showPrev;
- showNextMore.value = showNext;
- }, { immediate: true });
- function onMouseEnter(forward = false) {
- if (props2.disabled)
- return;
- if (forward) {
- quickPrevHover.value = true;
- } else {
- quickNextHover.value = true;
- }
- }
- function onFocus(forward = false) {
- if (forward) {
- quickPrevFocus.value = true;
- } else {
- quickNextFocus.value = true;
- }
- }
- function onEnter(e) {
- const target2 = e.target;
- if (target2.tagName.toLowerCase() === "li" && Array.from(target2.classList).includes("number")) {
- const newPage = Number(target2.textContent);
- if (newPage !== props2.currentPage) {
- emit(CHANGE_EVENT, newPage);
- }
- } else if (target2.tagName.toLowerCase() === "li" && Array.from(target2.classList).includes("more")) {
- onPagerClick(e);
- }
- }
- function onPagerClick(event) {
- const target2 = event.target;
- if (target2.tagName.toLowerCase() === "ul" || props2.disabled) {
- return;
- }
- let newPage = Number(target2.textContent);
- const pageCount = props2.pageCount;
- const currentPage = props2.currentPage;
- const pagerCountOffset = props2.pagerCount - 2;
- if (target2.className.includes("more")) {
- if (target2.className.includes("quickprev")) {
- newPage = currentPage - pagerCountOffset;
- } else if (target2.className.includes("quicknext")) {
- newPage = currentPage + pagerCountOffset;
- }
- }
- if (!Number.isNaN(+newPage)) {
- if (newPage < 1) {
- newPage = 1;
- }
- if (newPage > pageCount) {
- newPage = pageCount;
- }
- }
- if (newPage !== currentPage) {
- emit(CHANGE_EVENT, newPage);
- }
- }
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("ul", {
- class: normalizeClass(unref(nsPager).b()),
- onClick: onPagerClick,
- onKeyup: withKeys(onEnter, ["enter"])
- }, [
- _ctx.pageCount > 0 ? (openBlock(), createElementBlock("li", {
- key: 0,
- class: normalizeClass([[
- unref(nsPager).is("active", _ctx.currentPage === 1),
- unref(nsPager).is("disabled", _ctx.disabled)
- ], "number"]),
- "aria-current": _ctx.currentPage === 1,
- "aria-label": unref(t)("el.pagination.currentPage", { pager: 1 }),
- tabindex: unref(tabindex)
- }, " 1 ", 10, ["aria-current", "aria-label", "tabindex"])) : createCommentVNode("v-if", true),
- showPrevMore.value ? (openBlock(), createElementBlock("li", {
- key: 1,
- class: normalizeClass(unref(prevMoreKls)),
- tabindex: unref(tabindex),
- "aria-label": unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
- onMouseenter: ($event) => onMouseEnter(true),
- onMouseleave: ($event) => quickPrevHover.value = false,
- onFocus: ($event) => onFocus(true),
- onBlur: ($event) => quickPrevFocus.value = false
- }, [
- (quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(d_arrow_left_default), { key: 0 })) : (openBlock(), createBlock(unref(more_filled_default), { key: 1 }))
- ], 42, ["tabindex", "aria-label", "onMouseenter", "onMouseleave", "onFocus", "onBlur"])) : createCommentVNode("v-if", true),
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagers), (pager) => {
- return openBlock(), createElementBlock("li", {
- key: pager,
- class: normalizeClass([[
- unref(nsPager).is("active", _ctx.currentPage === pager),
- unref(nsPager).is("disabled", _ctx.disabled)
- ], "number"]),
- "aria-current": _ctx.currentPage === pager,
- "aria-label": unref(t)("el.pagination.currentPage", { pager }),
- tabindex: unref(tabindex)
- }, toDisplayString(pager), 11, ["aria-current", "aria-label", "tabindex"]);
- }), 128)),
- showNextMore.value ? (openBlock(), createElementBlock("li", {
- key: 2,
- class: normalizeClass(unref(nextMoreKls)),
- tabindex: unref(tabindex),
- "aria-label": unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
- onMouseenter: ($event) => onMouseEnter(),
- onMouseleave: ($event) => quickNextHover.value = false,
- onFocus: ($event) => onFocus(),
- onBlur: ($event) => quickNextFocus.value = false
- }, [
- (quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(d_arrow_right_default), { key: 0 })) : (openBlock(), createBlock(unref(more_filled_default), { key: 1 }))
- ], 42, ["tabindex", "aria-label", "onMouseenter", "onMouseleave", "onFocus", "onBlur"])) : createCommentVNode("v-if", true),
- _ctx.pageCount > 1 ? (openBlock(), createElementBlock("li", {
- key: 3,
- class: normalizeClass([[
- unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount),
- unref(nsPager).is("disabled", _ctx.disabled)
- ], "number"]),
- "aria-current": _ctx.currentPage === _ctx.pageCount,
- "aria-label": unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
- tabindex: unref(tabindex)
- }, toDisplayString(_ctx.pageCount), 11, ["aria-current", "aria-label", "tabindex"])) : createCommentVNode("v-if", true)
- ], 42, ["onKeyup"]);
- };
- }
- });
- var Pager = _export_sfc(_sfc_main401, [["__file", "pager.vue"]]);
- // node_modules/element-plus/es/components/pagination/src/pagination.mjs
- var isAbsent = (v2) => typeof v2 !== "number";
- var paginationProps = buildProps({
- pageSize: Number,
- defaultPageSize: Number,
- total: Number,
- pageCount: Number,
- pagerCount: {
- type: Number,
- validator: (value) => {
- return isNumber2(value) && Math.trunc(value) === value && value > 4 && value < 22 && value % 2 === 1;
- },
- default: 7
- },
- currentPage: Number,
- defaultCurrentPage: Number,
- layout: {
- type: String,
- default: ["prev", "pager", "next", "jumper", "->", "total"].join(", ")
- },
- pageSizes: {
- type: definePropType(Array),
- default: () => mutable([10, 20, 30, 40, 50, 100])
- },
- popperClass: {
- type: String,
- default: ""
- },
- prevText: {
- type: String,
- default: ""
- },
- prevIcon: {
- type: iconPropType,
- default: () => arrow_left_default
- },
- nextText: {
- type: String,
- default: ""
- },
- nextIcon: {
- type: iconPropType,
- default: () => arrow_right_default
- },
- teleported: {
- type: Boolean,
- default: true
- },
- small: Boolean,
- size: useSizeProp,
- background: Boolean,
- disabled: Boolean,
- hideOnSinglePage: Boolean,
- appendSizeTo: String
- });
- var paginationEmits = {
- "update:current-page": (val) => isNumber2(val),
- "update:page-size": (val) => isNumber2(val),
- "size-change": (val) => isNumber2(val),
- change: (currentPage, pageSize) => isNumber2(currentPage) && isNumber2(pageSize),
- "current-change": (val) => isNumber2(val),
- "prev-click": (val) => isNumber2(val),
- "next-click": (val) => isNumber2(val)
- };
- var componentName = "ElPagination";
- var Pagination = defineComponent({
- name: componentName,
- props: paginationProps,
- emits: paginationEmits,
- setup(props2, { emit, slots }) {
- const { t } = useLocale();
- const ns = useNamespace("pagination");
- const vnodeProps = getCurrentInstance().vnode.props || {};
- const _globalSize = useGlobalSize();
- const _size = computed(() => {
- var _a2;
- return props2.small ? "small" : (_a2 = props2.size) != null ? _a2 : _globalSize.value;
- });
- useDeprecated({
- from: "small",
- replacement: "size",
- version: "3.0.0",
- scope: "el-pagination",
- ref: "https://element-plus.org/zh-CN/component/pagination.html"
- }, computed(() => !!props2.small));
- const hasCurrentPageListener = "onUpdate:currentPage" in vnodeProps || "onUpdate:current-page" in vnodeProps || "onCurrentChange" in vnodeProps;
- const hasPageSizeListener = "onUpdate:pageSize" in vnodeProps || "onUpdate:page-size" in vnodeProps || "onSizeChange" in vnodeProps;
- const assertValidUsage = computed(() => {
- if (isAbsent(props2.total) && isAbsent(props2.pageCount))
- return false;
- if (!isAbsent(props2.currentPage) && !hasCurrentPageListener)
- return false;
- if (props2.layout.includes("sizes")) {
- if (!isAbsent(props2.pageCount)) {
- if (!hasPageSizeListener)
- return false;
- } else if (!isAbsent(props2.total)) {
- if (!isAbsent(props2.pageSize)) {
- if (!hasPageSizeListener) {
- return false;
- }
- }
- }
- }
- return true;
- });
- const innerPageSize = ref(isAbsent(props2.defaultPageSize) ? 10 : props2.defaultPageSize);
- const innerCurrentPage = ref(isAbsent(props2.defaultCurrentPage) ? 1 : props2.defaultCurrentPage);
- const pageSizeBridge = computed({
- get() {
- return isAbsent(props2.pageSize) ? innerPageSize.value : props2.pageSize;
- },
- set(v2) {
- if (isAbsent(props2.pageSize)) {
- innerPageSize.value = v2;
- }
- if (hasPageSizeListener) {
- emit("update:page-size", v2);
- emit("size-change", v2);
- }
- }
- });
- const pageCountBridge = computed(() => {
- let pageCount = 0;
- if (!isAbsent(props2.pageCount)) {
- pageCount = props2.pageCount;
- } else if (!isAbsent(props2.total)) {
- pageCount = Math.max(1, Math.ceil(props2.total / pageSizeBridge.value));
- }
- return pageCount;
- });
- const currentPageBridge = computed({
- get() {
- return isAbsent(props2.currentPage) ? innerCurrentPage.value : props2.currentPage;
- },
- set(v2) {
- let newCurrentPage = v2;
- if (v2 < 1) {
- newCurrentPage = 1;
- } else if (v2 > pageCountBridge.value) {
- newCurrentPage = pageCountBridge.value;
- }
- if (isAbsent(props2.currentPage)) {
- innerCurrentPage.value = newCurrentPage;
- }
- if (hasCurrentPageListener) {
- emit("update:current-page", newCurrentPage);
- emit("current-change", newCurrentPage);
- }
- }
- });
- watch(pageCountBridge, (val) => {
- if (currentPageBridge.value > val)
- currentPageBridge.value = val;
- });
- watch([currentPageBridge, pageSizeBridge], (value) => {
- emit(CHANGE_EVENT, ...value);
- }, { flush: "post" });
- function handleCurrentChange2(val) {
- currentPageBridge.value = val;
- }
- function handleSizeChange(val) {
- pageSizeBridge.value = val;
- const newPageCount = pageCountBridge.value;
- if (currentPageBridge.value > newPageCount) {
- currentPageBridge.value = newPageCount;
- }
- }
- function prev() {
- if (props2.disabled)
- return;
- currentPageBridge.value -= 1;
- emit("prev-click", currentPageBridge.value);
- }
- function next() {
- if (props2.disabled)
- return;
- currentPageBridge.value += 1;
- emit("next-click", currentPageBridge.value);
- }
- function addClass2(element, cls) {
- if (element) {
- if (!element.props) {
- element.props = {};
- }
- element.props.class = [element.props.class, cls].join(" ");
- }
- }
- provide(elPaginationKey, {
- pageCount: pageCountBridge,
- disabled: computed(() => props2.disabled),
- currentPage: currentPageBridge,
- changeEvent: handleCurrentChange2,
- handleSizeChange
- });
- return () => {
- var _a2, _b;
- if (!assertValidUsage.value) {
- debugWarn(componentName, t("el.pagination.deprecationWarning"));
- return null;
- }
- if (!props2.layout)
- return null;
- if (props2.hideOnSinglePage && pageCountBridge.value <= 1)
- return null;
- const rootChildren = [];
- const rightWrapperChildren = [];
- const rightWrapperRoot = h("div", { class: ns.e("rightwrapper") }, rightWrapperChildren);
- const TEMPLATE_MAP = {
- prev: h(Prev, {
- disabled: props2.disabled,
- currentPage: currentPageBridge.value,
- prevText: props2.prevText,
- prevIcon: props2.prevIcon,
- onClick: prev
- }),
- jumper: h(Jumper, {
- size: _size.value
- }),
- pager: h(Pager, {
- currentPage: currentPageBridge.value,
- pageCount: pageCountBridge.value,
- pagerCount: props2.pagerCount,
- onChange: handleCurrentChange2,
- disabled: props2.disabled
- }),
- next: h(Next, {
- disabled: props2.disabled,
- currentPage: currentPageBridge.value,
- pageCount: pageCountBridge.value,
- nextText: props2.nextText,
- nextIcon: props2.nextIcon,
- onClick: next
- }),
- sizes: h(Sizes, {
- pageSize: pageSizeBridge.value,
- pageSizes: props2.pageSizes,
- popperClass: props2.popperClass,
- disabled: props2.disabled,
- teleported: props2.teleported,
- size: _size.value,
- appendSizeTo: props2.appendSizeTo
- }),
- slot: (_b = (_a2 = slots == null ? void 0 : slots.default) == null ? void 0 : _a2.call(slots)) != null ? _b : null,
- total: h(Total, { total: isAbsent(props2.total) ? 0 : props2.total })
- };
- const components = props2.layout.split(",").map((item) => item.trim());
- let haveRightWrapper = false;
- components.forEach((c2) => {
- if (c2 === "->") {
- haveRightWrapper = true;
- return;
- }
- if (!haveRightWrapper) {
- rootChildren.push(TEMPLATE_MAP[c2]);
- } else {
- rightWrapperChildren.push(TEMPLATE_MAP[c2]);
- }
- });
- addClass2(rootChildren[0], ns.is("first"));
- addClass2(rootChildren[rootChildren.length - 1], ns.is("last"));
- if (haveRightWrapper && rightWrapperChildren.length > 0) {
- addClass2(rightWrapperChildren[0], ns.is("first"));
- addClass2(rightWrapperChildren[rightWrapperChildren.length - 1], ns.is("last"));
- rootChildren.push(rightWrapperRoot);
- }
- return h("div", {
- class: [
- ns.b(),
- ns.is("background", props2.background),
- ns.m(_size.value)
- ]
- }, rootChildren);
- };
- }
- });
- // node_modules/element-plus/es/components/pagination/index.mjs
- var ElPagination = withInstall(Pagination);
- // node_modules/element-plus/es/components/popconfirm/src/popconfirm.mjs
- var popconfirmProps = buildProps({
- title: String,
- confirmButtonText: String,
- cancelButtonText: String,
- confirmButtonType: {
- type: String,
- values: buttonTypes,
- default: "primary"
- },
- cancelButtonType: {
- type: String,
- values: buttonTypes,
- default: "text"
- },
- icon: {
- type: iconPropType,
- default: () => question_filled_default
- },
- iconColor: {
- type: String,
- default: "#f90"
- },
- hideIcon: Boolean,
- hideAfter: {
- type: Number,
- default: 200
- },
- teleported: useTooltipContentProps.teleported,
- persistent: useTooltipContentProps.persistent,
- width: {
- type: [String, Number],
- default: 150
- }
- });
- var popconfirmEmits = {
- confirm: (e) => e instanceof MouseEvent,
- cancel: (e) => e instanceof MouseEvent
- };
- // node_modules/element-plus/es/components/popconfirm/src/popconfirm2.mjs
- var __default__82 = defineComponent({
- name: "ElPopconfirm"
- });
- var _sfc_main402 = defineComponent({
- ...__default__82,
- props: popconfirmProps,
- emits: popconfirmEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { t } = useLocale();
- const ns = useNamespace("popconfirm");
- const tooltipRef = ref();
- const popperRef = computed(() => {
- var _a2;
- return (_a2 = unref(tooltipRef)) == null ? void 0 : _a2.popperRef;
- });
- const hidePopper = () => {
- var _a2, _b;
- (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.onClose) == null ? void 0 : _b.call(_a2);
- };
- const style = computed(() => {
- return {
- width: addUnit(props2.width)
- };
- });
- const confirm = (e) => {
- emit("confirm", e);
- hidePopper();
- };
- const cancel = (e) => {
- emit("cancel", e);
- hidePopper();
- };
- const finalConfirmButtonText = computed(() => props2.confirmButtonText || t("el.popconfirm.confirmButtonText"));
- const finalCancelButtonText = computed(() => props2.cancelButtonText || t("el.popconfirm.cancelButtonText"));
- expose({
- popperRef,
- hide: hidePopper
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTooltip), mergeProps({
- ref_key: "tooltipRef",
- ref: tooltipRef,
- trigger: "click",
- effect: "light"
- }, _ctx.$attrs, {
- "popper-class": `${unref(ns).namespace.value}-popover`,
- "popper-style": unref(style),
- teleported: _ctx.teleported,
- "fallback-placements": ["bottom", "top", "right", "left"],
- "hide-after": _ctx.hideAfter,
- persistent: _ctx.persistent
- }), {
- content: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("main"))
- }, [
- !_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("icon")),
- style: normalizeStyle({ color: _ctx.iconColor })
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- }, 8, ["class", "style"])) : createCommentVNode("v-if", true),
- createTextVNode(" " + toDisplayString(_ctx.title), 1)
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("action"))
- }, [
- renderSlot(_ctx.$slots, "actions", {
- confirm,
- cancel
- }, () => [
- createVNode(unref(ElButton), {
- size: "small",
- type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
- text: _ctx.cancelButtonType === "text",
- onClick: cancel
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(finalCancelButtonText)), 1)
- ]),
- _: 1
- }, 8, ["type", "text"]),
- createVNode(unref(ElButton), {
- size: "small",
- type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
- text: _ctx.confirmButtonType === "text",
- onClick: confirm
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(unref(finalConfirmButtonText)), 1)
- ]),
- _: 1
- }, 8, ["type", "text"])
- ])
- ], 2)
- ], 2)
- ]),
- default: withCtx(() => [
- _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
- };
- }
- });
- var Popconfirm = _export_sfc(_sfc_main402, [["__file", "popconfirm.vue"]]);
- // node_modules/element-plus/es/components/popconfirm/index.mjs
- var ElPopconfirm = withInstall(Popconfirm);
- // node_modules/element-plus/es/components/popover/src/popover.mjs
- var popoverProps = buildProps({
- trigger: useTooltipTriggerProps.trigger,
- triggerKeys: useTooltipTriggerProps.triggerKeys,
- placement: dropdownProps.placement,
- disabled: useTooltipTriggerProps.disabled,
- visible: useTooltipContentProps.visible,
- transition: useTooltipContentProps.transition,
- popperOptions: dropdownProps.popperOptions,
- tabindex: dropdownProps.tabindex,
- content: useTooltipContentProps.content,
- popperStyle: useTooltipContentProps.popperStyle,
- popperClass: useTooltipContentProps.popperClass,
- enterable: {
- ...useTooltipContentProps.enterable,
- default: true
- },
- effect: {
- ...useTooltipContentProps.effect,
- default: "light"
- },
- teleported: useTooltipContentProps.teleported,
- appendTo: useTooltipContentProps.appendTo,
- title: String,
- width: {
- type: [String, Number],
- default: 150
- },
- offset: {
- type: Number,
- default: void 0
- },
- showAfter: {
- type: Number,
- default: 0
- },
- hideAfter: {
- type: Number,
- default: 200
- },
- autoClose: {
- type: Number,
- default: 0
- },
- showArrow: {
- type: Boolean,
- default: true
- },
- persistent: {
- type: Boolean,
- default: true
- },
- "onUpdate:visible": {
- type: Function
- }
- });
- var popoverEmits = {
- "update:visible": (value) => isBoolean2(value),
- "before-enter": () => true,
- "before-leave": () => true,
- "after-enter": () => true,
- "after-leave": () => true
- };
- // node_modules/element-plus/es/components/popover/src/popover2.mjs
- var updateEventKeyRaw = `onUpdate:visible`;
- var __default__83 = defineComponent({
- name: "ElPopover"
- });
- var _sfc_main403 = defineComponent({
- ...__default__83,
- props: popoverProps,
- emits: popoverEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const onUpdateVisible = computed(() => {
- return props2[updateEventKeyRaw];
- });
- const ns = useNamespace("popover");
- const tooltipRef = ref();
- const popperRef = computed(() => {
- var _a2;
- return (_a2 = unref(tooltipRef)) == null ? void 0 : _a2.popperRef;
- });
- const style = computed(() => {
- return [
- {
- width: addUnit(props2.width)
- },
- props2.popperStyle
- ];
- });
- const kls = computed(() => {
- return [ns.b(), props2.popperClass, { [ns.m("plain")]: !!props2.content }];
- });
- const gpuAcceleration = computed(() => {
- return props2.transition === `${ns.namespace.value}-fade-in-linear`;
- });
- const hide2 = () => {
- var _a2;
- (_a2 = tooltipRef.value) == null ? void 0 : _a2.hide();
- };
- const beforeEnter = () => {
- emit("before-enter");
- };
- const beforeLeave = () => {
- emit("before-leave");
- };
- const afterEnter = () => {
- emit("after-enter");
- };
- const afterLeave = () => {
- emit("update:visible", false);
- emit("after-leave");
- };
- expose({
- popperRef,
- hide: hide2
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElTooltip), mergeProps({
- ref_key: "tooltipRef",
- ref: tooltipRef
- }, _ctx.$attrs, {
- trigger: _ctx.trigger,
- "trigger-keys": _ctx.triggerKeys,
- placement: _ctx.placement,
- disabled: _ctx.disabled,
- visible: _ctx.visible,
- transition: _ctx.transition,
- "popper-options": _ctx.popperOptions,
- tabindex: _ctx.tabindex,
- content: _ctx.content,
- offset: _ctx.offset,
- "show-after": _ctx.showAfter,
- "hide-after": _ctx.hideAfter,
- "auto-close": _ctx.autoClose,
- "show-arrow": _ctx.showArrow,
- "aria-label": _ctx.title,
- effect: _ctx.effect,
- enterable: _ctx.enterable,
- "popper-class": unref(kls),
- "popper-style": unref(style),
- teleported: _ctx.teleported,
- "append-to": _ctx.appendTo,
- persistent: _ctx.persistent,
- "gpu-acceleration": unref(gpuAcceleration),
- "onUpdate:visible": unref(onUpdateVisible),
- onBeforeShow: beforeEnter,
- onBeforeHide: beforeLeave,
- onShow: afterEnter,
- onHide: afterLeave
- }), {
- content: withCtx(() => [
- _ctx.title ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("title")),
- role: "title"
- }, toDisplayString(_ctx.title), 3)) : createCommentVNode("v-if", true),
- renderSlot(_ctx.$slots, "default", {}, () => [
- createTextVNode(toDisplayString(_ctx.content), 1)
- ])
- ]),
- default: withCtx(() => [
- _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 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"]);
- };
- }
- });
- var Popover = _export_sfc(_sfc_main403, [["__file", "popover.vue"]]);
- // node_modules/element-plus/es/components/popover/src/directive.mjs
- var attachEvents = (el, binding) => {
- const popperComponent = binding.arg || binding.value;
- const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
- if (popover) {
- popover.triggerRef = el;
- }
- };
- var PopoverDirective = {
- mounted(el, binding) {
- attachEvents(el, binding);
- },
- updated(el, binding) {
- attachEvents(el, binding);
- }
- };
- var VPopover = "popover";
- // node_modules/element-plus/es/components/popover/index.mjs
- var ElPopoverDirective = withInstallDirective(PopoverDirective, VPopover);
- var ElPopover = withInstall(Popover, {
- directive: ElPopoverDirective
- });
- // node_modules/element-plus/es/components/progress/src/progress.mjs
- var progressProps = buildProps({
- type: {
- type: String,
- default: "line",
- values: ["line", "circle", "dashboard"]
- },
- percentage: {
- type: Number,
- default: 0,
- validator: (val) => val >= 0 && val <= 100
- },
- status: {
- type: String,
- default: "",
- values: ["", "success", "exception", "warning"]
- },
- indeterminate: Boolean,
- duration: {
- type: Number,
- default: 3
- },
- strokeWidth: {
- type: Number,
- default: 6
- },
- strokeLinecap: {
- type: definePropType(String),
- default: "round"
- },
- textInside: Boolean,
- width: {
- type: Number,
- default: 126
- },
- showText: {
- type: Boolean,
- default: true
- },
- color: {
- type: definePropType([
- String,
- Array,
- Function
- ]),
- default: ""
- },
- striped: Boolean,
- stripedFlow: Boolean,
- format: {
- type: definePropType(Function),
- default: (percentage) => `${percentage}%`
- }
- });
- // node_modules/element-plus/es/components/progress/src/progress2.mjs
- var __default__84 = defineComponent({
- name: "ElProgress"
- });
- var _sfc_main404 = defineComponent({
- ...__default__84,
- props: progressProps,
- setup(__props) {
- const props2 = __props;
- const STATUS_COLOR_MAP = {
- success: "#13ce66",
- exception: "#ff4949",
- warning: "#e6a23c",
- default: "#20a0ff"
- };
- const ns = useNamespace("progress");
- const barStyle = computed(() => {
- const barStyle2 = {
- width: `${props2.percentage}%`,
- animationDuration: `${props2.duration}s`
- };
- const color = getCurrentColor(props2.percentage);
- if (color.includes("gradient")) {
- barStyle2.background = color;
- } else {
- barStyle2.backgroundColor = color;
- }
- return barStyle2;
- });
- const relativeStrokeWidth = computed(() => (props2.strokeWidth / props2.width * 100).toFixed(1));
- const radius = computed(() => {
- if (["circle", "dashboard"].includes(props2.type)) {
- return Number.parseInt(`${50 - Number.parseFloat(relativeStrokeWidth.value) / 2}`, 10);
- }
- return 0;
- });
- const trackPath = computed(() => {
- const r = radius.value;
- const isDashboard = props2.type === "dashboard";
- return `
- M 50 50
- m 0 ${isDashboard ? "" : "-"}${r}
- a ${r} ${r} 0 1 1 0 ${isDashboard ? "-" : ""}${r * 2}
- a ${r} ${r} 0 1 1 0 ${isDashboard ? "" : "-"}${r * 2}
- `;
- });
- const perimeter = computed(() => 2 * Math.PI * radius.value);
- const rate = computed(() => props2.type === "dashboard" ? 0.75 : 1);
- const strokeDashoffset = computed(() => {
- const offset3 = -1 * perimeter.value * (1 - rate.value) / 2;
- return `${offset3}px`;
- });
- const trailPathStyle = computed(() => ({
- strokeDasharray: `${perimeter.value * rate.value}px, ${perimeter.value}px`,
- strokeDashoffset: strokeDashoffset.value
- }));
- const circlePathStyle = computed(() => ({
- strokeDasharray: `${perimeter.value * rate.value * (props2.percentage / 100)}px, ${perimeter.value}px`,
- strokeDashoffset: strokeDashoffset.value,
- transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
- }));
- const stroke = computed(() => {
- let ret;
- if (props2.color) {
- ret = getCurrentColor(props2.percentage);
- } else {
- ret = STATUS_COLOR_MAP[props2.status] || STATUS_COLOR_MAP.default;
- }
- return ret;
- });
- const statusIcon = computed(() => {
- if (props2.status === "warning") {
- return warning_filled_default;
- }
- if (props2.type === "line") {
- return props2.status === "success" ? circle_check_default : circle_close_default;
- } else {
- return props2.status === "success" ? check_default : close_default;
- }
- });
- const progressTextSize = computed(() => {
- return props2.type === "line" ? 12 + props2.strokeWidth * 0.4 : props2.width * 0.111111 + 2;
- });
- const content = computed(() => props2.format(props2.percentage));
- function getColors(color) {
- const span = 100 / color.length;
- const seriesColors = color.map((seriesColor, index) => {
- if (isString(seriesColor)) {
- return {
- color: seriesColor,
- percentage: (index + 1) * span
- };
- }
- return seriesColor;
- });
- return seriesColors.sort((a2, b2) => a2.percentage - b2.percentage);
- }
- const getCurrentColor = (percentage) => {
- var _a2;
- const { color } = props2;
- if (isFunction(color)) {
- return color(percentage);
- } else if (isString(color)) {
- return color;
- } else {
- const colors = getColors(color);
- for (const color2 of colors) {
- if (color2.percentage > percentage)
- return color2.color;
- }
- return (_a2 = colors[colors.length - 1]) == null ? void 0 : _a2.color;
- }
- };
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ns).b(),
- unref(ns).m(_ctx.type),
- unref(ns).is(_ctx.status),
- {
- [unref(ns).m("without-text")]: !_ctx.showText,
- [unref(ns).m("text-inside")]: _ctx.textInside
- }
- ]),
- role: "progressbar",
- "aria-valuenow": _ctx.percentage,
- "aria-valuemin": "0",
- "aria-valuemax": "100"
- }, [
- _ctx.type === "line" ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).b("bar"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).be("bar", "outer")),
- style: normalizeStyle({ height: `${_ctx.strokeWidth}px` })
- }, [
- createBaseVNode("div", {
- class: normalizeClass([
- unref(ns).be("bar", "inner"),
- { [unref(ns).bem("bar", "inner", "indeterminate")]: _ctx.indeterminate },
- { [unref(ns).bem("bar", "inner", "striped")]: _ctx.striped },
- { [unref(ns).bem("bar", "inner", "striped-flow")]: _ctx.stripedFlow }
- ]),
- style: normalizeStyle(unref(barStyle))
- }, [
- (_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).be("bar", "innerText"))
- }, [
- renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
- createBaseVNode("span", null, toDisplayString(unref(content)), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true)
- ], 6)
- ], 6)
- ], 2)) : (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).b("circle")),
- style: normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
- }, [
- (openBlock(), createElementBlock("svg", { viewBox: "0 0 100 100" }, [
- createBaseVNode("path", {
- class: normalizeClass(unref(ns).be("circle", "track")),
- d: unref(trackPath),
- stroke: `var(${unref(ns).cssVarName("fill-color-light")}, #e5e9f2)`,
- "stroke-linecap": _ctx.strokeLinecap,
- "stroke-width": unref(relativeStrokeWidth),
- fill: "none",
- style: normalizeStyle(unref(trailPathStyle))
- }, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
- createBaseVNode("path", {
- class: normalizeClass(unref(ns).be("circle", "path")),
- d: unref(trackPath),
- stroke: unref(stroke),
- fill: "none",
- opacity: _ctx.percentage ? 1 : 0,
- "stroke-linecap": _ctx.strokeLinecap,
- "stroke-width": unref(relativeStrokeWidth),
- style: normalizeStyle(unref(circlePathStyle))
- }, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
- ]))
- ], 6)),
- (_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass(unref(ns).e("text")),
- style: normalizeStyle({ fontSize: `${unref(progressTextSize)}px` })
- }, [
- renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
- !_ctx.status ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(unref(content)), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(statusIcon))))
- ]),
- _: 1
- }))
- ])
- ], 6)) : createCommentVNode("v-if", true)
- ], 10, ["aria-valuenow"]);
- };
- }
- });
- var Progress = _export_sfc(_sfc_main404, [["__file", "progress.vue"]]);
- // node_modules/element-plus/es/components/progress/index.mjs
- var ElProgress = withInstall(Progress);
- // node_modules/element-plus/es/components/rate/src/rate2.mjs
- var rateProps = buildProps({
- modelValue: {
- type: Number,
- default: 0
- },
- id: {
- type: String,
- default: void 0
- },
- lowThreshold: {
- type: Number,
- default: 2
- },
- highThreshold: {
- type: Number,
- default: 4
- },
- max: {
- type: Number,
- default: 5
- },
- colors: {
- type: definePropType([Array, Object]),
- default: () => mutable(["", "", ""])
- },
- voidColor: {
- type: String,
- default: ""
- },
- disabledVoidColor: {
- type: String,
- default: ""
- },
- icons: {
- type: definePropType([Array, Object]),
- default: () => [star_filled_default, star_filled_default, star_filled_default]
- },
- voidIcon: {
- type: iconPropType,
- default: () => star_default
- },
- disabledVoidIcon: {
- type: iconPropType,
- default: () => star_filled_default
- },
- disabled: Boolean,
- allowHalf: Boolean,
- showText: Boolean,
- showScore: Boolean,
- textColor: {
- type: String,
- default: ""
- },
- texts: {
- type: definePropType(Array),
- default: () => mutable([
- "Extremely bad",
- "Disappointed",
- "Fair",
- "Satisfied",
- "Surprise"
- ])
- },
- scoreTemplate: {
- type: String,
- default: "{value}"
- },
- size: useSizeProp,
- clearable: Boolean,
- ...useAriaProps(["ariaLabel"])
- });
- var rateEmits = {
- [CHANGE_EVENT]: (value) => isNumber2(value),
- [UPDATE_MODEL_EVENT]: (value) => isNumber2(value)
- };
- // node_modules/element-plus/es/components/rate/src/rate.mjs
- var __default__85 = defineComponent({
- name: "ElRate"
- });
- var _sfc_main405 = defineComponent({
- ...__default__85,
- props: rateProps,
- emits: rateEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- function getValueFromMap(value, map2) {
- const isExcludedObject = (val) => isObject(val);
- const matchedKeys = Object.keys(map2).map((key) => +key).filter((key) => {
- const val = map2[key];
- const excluded = isExcludedObject(val) ? val.excluded : false;
- return excluded ? value < key : value <= key;
- }).sort((a2, b2) => a2 - b2);
- const matchedValue = map2[matchedKeys[0]];
- return isExcludedObject(matchedValue) && matchedValue.value || matchedValue;
- }
- const formContext = inject(formContextKey, void 0);
- const formItemContext = inject(formItemContextKey, void 0);
- const rateSize = useFormSize();
- const ns = useNamespace("rate");
- const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext
- });
- const currentValue = ref(props2.modelValue);
- const hoverIndex = ref(-1);
- const pointerAtLeftHalf = ref(true);
- const rateClasses = computed(() => [ns.b(), ns.m(rateSize.value)]);
- const rateDisabled = computed(() => props2.disabled || (formContext == null ? void 0 : formContext.disabled));
- const rateStyles = computed(() => {
- return ns.cssVarBlock({
- "void-color": props2.voidColor,
- "disabled-void-color": props2.disabledVoidColor,
- "fill-color": activeColor.value
- });
- });
- const text = computed(() => {
- let result2 = "";
- if (props2.showScore) {
- result2 = props2.scoreTemplate.replace(/\{\s*value\s*\}/, rateDisabled.value ? `${props2.modelValue}` : `${currentValue.value}`);
- } else if (props2.showText) {
- result2 = props2.texts[Math.ceil(currentValue.value) - 1];
- }
- return result2;
- });
- const valueDecimal = computed(() => props2.modelValue * 100 - Math.floor(props2.modelValue) * 100);
- const colorMap = computed(() => isArray(props2.colors) ? {
- [props2.lowThreshold]: props2.colors[0],
- [props2.highThreshold]: { value: props2.colors[1], excluded: true },
- [props2.max]: props2.colors[2]
- } : props2.colors);
- const activeColor = computed(() => {
- const color = getValueFromMap(currentValue.value, colorMap.value);
- return isObject(color) ? "" : color;
- });
- const decimalStyle = computed(() => {
- let width = "";
- if (rateDisabled.value) {
- width = `${valueDecimal.value}%`;
- } else if (props2.allowHalf) {
- width = "50%";
- }
- return {
- color: activeColor.value,
- width
- };
- });
- const componentMap = computed(() => {
- let icons = isArray(props2.icons) ? [...props2.icons] : { ...props2.icons };
- icons = markRaw(icons);
- return isArray(icons) ? {
- [props2.lowThreshold]: icons[0],
- [props2.highThreshold]: {
- value: icons[1],
- excluded: true
- },
- [props2.max]: icons[2]
- } : icons;
- });
- const decimalIconComponent = computed(() => getValueFromMap(props2.modelValue, componentMap.value));
- const voidComponent = computed(() => rateDisabled.value ? isString(props2.disabledVoidIcon) ? props2.disabledVoidIcon : markRaw(props2.disabledVoidIcon) : isString(props2.voidIcon) ? props2.voidIcon : markRaw(props2.voidIcon));
- const activeComponent = computed(() => getValueFromMap(currentValue.value, componentMap.value));
- function showDecimalIcon(item) {
- const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props2.modelValue && item > props2.modelValue;
- const showWhenAllowHalf = props2.allowHalf && pointerAtLeftHalf.value && item - 0.5 <= currentValue.value && item > currentValue.value;
- return showWhenDisabled || showWhenAllowHalf;
- }
- function emitValue(value) {
- if (props2.clearable && value === props2.modelValue) {
- value = 0;
- }
- emit(UPDATE_MODEL_EVENT, value);
- if (props2.modelValue !== value) {
- emit(CHANGE_EVENT, value);
- }
- }
- function selectValue(value) {
- if (rateDisabled.value) {
- return;
- }
- if (props2.allowHalf && pointerAtLeftHalf.value) {
- emitValue(currentValue.value);
- } else {
- emitValue(value);
- }
- }
- function handleKey(e) {
- if (rateDisabled.value) {
- return;
- }
- let _currentValue = currentValue.value;
- const code = e.code;
- if (code === EVENT_CODE.up || code === EVENT_CODE.right) {
- if (props2.allowHalf) {
- _currentValue += 0.5;
- } else {
- _currentValue += 1;
- }
- e.stopPropagation();
- e.preventDefault();
- } else if (code === EVENT_CODE.left || code === EVENT_CODE.down) {
- if (props2.allowHalf) {
- _currentValue -= 0.5;
- } else {
- _currentValue -= 1;
- }
- e.stopPropagation();
- e.preventDefault();
- }
- _currentValue = _currentValue < 0 ? 0 : _currentValue;
- _currentValue = _currentValue > props2.max ? props2.max : _currentValue;
- emit(UPDATE_MODEL_EVENT, _currentValue);
- emit(CHANGE_EVENT, _currentValue);
- return _currentValue;
- }
- function setCurrentValue(value, event) {
- if (rateDisabled.value) {
- return;
- }
- if (props2.allowHalf && event) {
- let target2 = event.target;
- if (hasClass(target2, ns.e("item"))) {
- target2 = target2.querySelector(`.${ns.e("icon")}`);
- }
- if (target2.clientWidth === 0 || hasClass(target2, ns.e("decimal"))) {
- target2 = target2.parentNode;
- }
- pointerAtLeftHalf.value = event.offsetX * 2 <= target2.clientWidth;
- currentValue.value = pointerAtLeftHalf.value ? value - 0.5 : value;
- } else {
- currentValue.value = value;
- }
- hoverIndex.value = value;
- }
- function resetCurrentValue() {
- if (rateDisabled.value) {
- return;
- }
- if (props2.allowHalf) {
- pointerAtLeftHalf.value = props2.modelValue !== Math.floor(props2.modelValue);
- }
- currentValue.value = props2.modelValue;
- hoverIndex.value = -1;
- }
- watch(() => props2.modelValue, (val) => {
- currentValue.value = val;
- pointerAtLeftHalf.value = props2.modelValue !== Math.floor(props2.modelValue);
- });
- if (!props2.modelValue) {
- emit(UPDATE_MODEL_EVENT, 0);
- }
- expose({
- setCurrentValue,
- resetCurrentValue
- });
- return (_ctx, _cache) => {
- var _a2;
- return openBlock(), createElementBlock("div", {
- id: unref(inputId),
- class: normalizeClass([unref(rateClasses), unref(ns).is("disabled", unref(rateDisabled))]),
- role: "slider",
- "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "rating" : void 0,
- "aria-labelledby": unref(isLabeledByFormItem) ? (_a2 = unref(formItemContext)) == null ? void 0 : _a2.labelId : void 0,
- "aria-valuenow": currentValue.value,
- "aria-valuetext": unref(text) || void 0,
- "aria-valuemin": "0",
- "aria-valuemax": _ctx.max,
- tabindex: "0",
- style: normalizeStyle(unref(rateStyles)),
- onKeydown: handleKey
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.max, (item, key) => {
- return openBlock(), createElementBlock("span", {
- key,
- class: normalizeClass(unref(ns).e("item")),
- onMousemove: ($event) => setCurrentValue(item, $event),
- onMouseleave: resetCurrentValue,
- onClick: ($event) => selectValue(item)
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass([
- unref(ns).e("icon"),
- { hover: hoverIndex.value === item },
- unref(ns).is("active", item <= currentValue.value)
- ])
- }, {
- default: withCtx(() => [
- !showDecimalIcon(item) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(activeComponent)), null, null, 512)), [
- [vShow, item <= currentValue.value]
- ]),
- withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(voidComponent)), null, null, 512)), [
- [vShow, !(item <= currentValue.value)]
- ])
- ], 64)) : createCommentVNode("v-if", true),
- showDecimalIcon(item) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- (openBlock(), createBlock(resolveDynamicComponent(unref(voidComponent)), {
- class: normalizeClass([unref(ns).em("decimal", "box")])
- }, null, 8, ["class"])),
- createVNode(unref(ElIcon), {
- style: normalizeStyle(unref(decimalStyle)),
- class: normalizeClass([unref(ns).e("icon"), unref(ns).e("decimal")])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(decimalIconComponent))))
- ]),
- _: 1
- }, 8, ["style", "class"])
- ], 64)) : createCommentVNode("v-if", true)
- ]),
- _: 2
- }, 1032, ["class"])
- ], 42, ["onMousemove", "onClick"]);
- }), 128)),
- _ctx.showText || _ctx.showScore ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass(unref(ns).e("text")),
- style: normalizeStyle({ color: _ctx.textColor })
- }, toDisplayString(unref(text)), 7)) : createCommentVNode("v-if", true)
- ], 46, ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuetext", "aria-valuemax"]);
- };
- }
- });
- var Rate = _export_sfc(_sfc_main405, [["__file", "rate.vue"]]);
- // node_modules/element-plus/es/components/rate/index.mjs
- var ElRate = withInstall(Rate);
- // node_modules/element-plus/es/components/result/src/result.mjs
- var IconMap = {
- primary: "icon-primary",
- success: "icon-success",
- warning: "icon-warning",
- error: "icon-error",
- info: "icon-info"
- };
- var IconComponentMap = {
- [IconMap.primary]: info_filled_default,
- [IconMap.success]: circle_check_filled_default,
- [IconMap.warning]: warning_filled_default,
- [IconMap.error]: circle_close_filled_default,
- [IconMap.info]: info_filled_default
- };
- var resultProps = buildProps({
- title: {
- type: String,
- default: ""
- },
- subTitle: {
- type: String,
- default: ""
- },
- icon: {
- type: String,
- values: ["primary", "success", "warning", "info", "error"],
- default: "info"
- }
- });
- // node_modules/element-plus/es/components/result/src/result2.mjs
- var __default__86 = defineComponent({
- name: "ElResult"
- });
- var _sfc_main406 = defineComponent({
- ...__default__86,
- props: resultProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("result");
- const resultIcon = computed(() => {
- const icon = props2.icon;
- const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
- const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
- return {
- class: iconClass,
- component: iconComponent
- };
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("icon"))
- }, [
- renderSlot(_ctx.$slots, "icon", {}, () => [
- unref(resultIcon).component ? (openBlock(), createBlock(resolveDynamicComponent(unref(resultIcon).component), {
- key: 0,
- class: normalizeClass(unref(resultIcon).class)
- }, null, 8, ["class"])) : createCommentVNode("v-if", true)
- ])
- ], 2),
- _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("title"))
- }, [
- renderSlot(_ctx.$slots, "title", {}, () => [
- createBaseVNode("p", null, toDisplayString(_ctx.title), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- _ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("subtitle"))
- }, [
- renderSlot(_ctx.$slots, "sub-title", {}, () => [
- createBaseVNode("p", null, toDisplayString(_ctx.subTitle), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass(unref(ns).e("extra"))
- }, [
- renderSlot(_ctx.$slots, "extra")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var Result = _export_sfc(_sfc_main406, [["__file", "result.vue"]]);
- // node_modules/element-plus/es/components/result/index.mjs
- var ElResult = withInstall(Result);
- // node_modules/element-plus/es/components/row/src/row.mjs
- var RowJustify = [
- "start",
- "center",
- "end",
- "space-around",
- "space-between",
- "space-evenly"
- ];
- var RowAlign = ["top", "middle", "bottom"];
- var rowProps = buildProps({
- tag: {
- type: String,
- default: "div"
- },
- gutter: {
- type: Number,
- default: 0
- },
- justify: {
- type: String,
- values: RowJustify,
- default: "start"
- },
- align: {
- type: String,
- values: RowAlign
- }
- });
- // node_modules/element-plus/es/components/row/src/row2.mjs
- var __default__87 = defineComponent({
- name: "ElRow"
- });
- var _sfc_main407 = defineComponent({
- ...__default__87,
- props: rowProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("row");
- const gutter = computed(() => props2.gutter);
- provide(rowContextKey, {
- gutter
- });
- const style = computed(() => {
- const styles = {};
- if (!props2.gutter) {
- return styles;
- }
- styles.marginRight = styles.marginLeft = `-${props2.gutter / 2}px`;
- return styles;
- });
- const rowKls = computed(() => [
- ns.b(),
- ns.is(`justify-${props2.justify}`, props2.justify !== "start"),
- ns.is(`align-${props2.align}`, !!props2.align)
- ]);
- return (_ctx, _cache) => {
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
- class: normalizeClass(unref(rowKls)),
- style: normalizeStyle(unref(style))
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["class", "style"]);
- };
- }
- });
- var Row = _export_sfc(_sfc_main407, [["__file", "row.vue"]]);
- // node_modules/element-plus/es/components/row/index.mjs
- var ElRow = withInstall(Row);
- // node_modules/element-plus/es/components/select-v2/src/group-item.mjs
- var _sfc_main408 = defineComponent({
- props: {
- item: {
- type: Object,
- required: true
- },
- style: {
- type: Object
- },
- height: Number
- },
- setup() {
- const ns = useNamespace("select");
- return {
- ns
- };
- }
- });
- function _sfc_render18(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(_ctx.ns.be("group", "title")),
- style: normalizeStyle({ ..._ctx.style, lineHeight: `${_ctx.height}px` })
- }, toDisplayString(_ctx.item.label), 7);
- }
- var GroupItem = _export_sfc(_sfc_main408, [["render", _sfc_render18], ["__file", "group-item.vue"]]);
- // node_modules/element-plus/es/components/select-v2/src/useOption.mjs
- function useOption2(props2, { emit }) {
- return {
- hoverItem: () => {
- if (!props2.disabled) {
- emit("hover", props2.index);
- }
- },
- selectOptionClick: () => {
- if (!props2.disabled) {
- emit("select", props2.item, props2.index);
- }
- }
- };
- }
- // node_modules/element-plus/es/components/select-v2/src/defaults.mjs
- var selectV2Props = buildProps({
- allowCreate: Boolean,
- autocomplete: {
- type: definePropType(String),
- default: "none"
- },
- automaticDropdown: Boolean,
- clearable: Boolean,
- clearIcon: {
- type: iconPropType,
- default: circle_close_default
- },
- effect: {
- type: definePropType(String),
- default: "light"
- },
- collapseTags: Boolean,
- collapseTagsTooltip: Boolean,
- maxCollapseTags: {
- type: Number,
- default: 1
- },
- defaultFirstOption: Boolean,
- disabled: Boolean,
- estimatedOptionHeight: {
- type: Number,
- default: void 0
- },
- filterable: Boolean,
- filterMethod: {
- type: definePropType(Function)
- },
- height: {
- type: Number,
- default: 274
- },
- itemHeight: {
- type: Number,
- default: 34
- },
- id: String,
- loading: Boolean,
- loadingText: String,
- modelValue: {
- type: definePropType([Array, String, Number, Boolean, Object]),
- default: void 0
- },
- multiple: Boolean,
- multipleLimit: {
- type: Number,
- default: 0
- },
- name: String,
- noDataText: String,
- noMatchText: String,
- remoteMethod: {
- type: definePropType(Function)
- },
- reserveKeyword: {
- type: Boolean,
- default: true
- },
- options: {
- type: definePropType(Array),
- required: true
- },
- placeholder: {
- type: String
- },
- teleported: useTooltipContentProps.teleported,
- persistent: {
- type: Boolean,
- default: true
- },
- popperClass: useTooltipContentProps.popperClass,
- popperStyle: useTooltipContentProps.popperStyle,
- popperOptions: {
- type: definePropType(Object),
- default: () => ({})
- },
- remote: Boolean,
- size: useSizeProp,
- props: {
- type: definePropType(Object),
- default: () => defaultProps
- },
- valueKey: {
- type: String,
- default: "value"
- },
- scrollbarAlwaysOn: Boolean,
- validateEvent: {
- type: Boolean,
- default: true
- },
- offset: {
- type: Number,
- default: 12
- },
- showArrow: {
- type: Boolean,
- default: true
- },
- placement: {
- type: definePropType(String),
- values: Ee,
- default: "bottom-start"
- },
- fallbackPlacements: {
- type: definePropType(Array),
- default: ["bottom-start", "top-start", "right", "left"]
- },
- tagType: { ...tagProps.type, default: "info" },
- tagEffect: { ...tagProps.effect, default: "light" },
- tabindex: {
- type: [String, Number],
- default: 0
- },
- appendTo: useTooltipContentProps.appendTo,
- fitInputWidth: {
- type: [Boolean, Number],
- default: true,
- validator(val) {
- return isBoolean2(val) || isNumber2(val);
- }
- },
- suffixIcon: {
- type: iconPropType,
- default: arrow_down_default
- },
- ...useEmptyValuesProps,
- ...useAriaProps(["ariaLabel"])
- });
- var optionV2Props = buildProps({
- data: Array,
- disabled: Boolean,
- hovering: Boolean,
- item: {
- type: definePropType(Object),
- required: true
- },
- index: Number,
- style: Object,
- selected: Boolean,
- created: Boolean
- });
- var selectV2Emits = {
- [UPDATE_MODEL_EVENT]: (val) => true,
- [CHANGE_EVENT]: (val) => true,
- "remove-tag": (val) => true,
- "visible-change": (visible) => true,
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent,
- clear: () => true
- };
- var optionV2Emits = {
- hover: (index) => isNumber2(index),
- select: (val, index) => true
- };
- // node_modules/element-plus/es/components/select-v2/src/token.mjs
- var selectV2InjectionKey = Symbol("ElSelectV2Injection");
- // node_modules/element-plus/es/components/select-v2/src/option-item.mjs
- var _sfc_main409 = defineComponent({
- props: optionV2Props,
- emits: optionV2Emits,
- setup(props2, { emit }) {
- const select = inject(selectV2InjectionKey);
- const ns = useNamespace("select");
- const { hoverItem, selectOptionClick } = useOption2(props2, { emit });
- const { getLabel } = useProps(select.props);
- return {
- ns,
- hoverItem,
- selectOptionClick,
- getLabel
- };
- }
- });
- function _sfc_render19(_ctx, _cache, $props, $setup, $data, $options) {
- return openBlock(), createElementBlock("li", {
- "aria-selected": _ctx.selected,
- style: normalizeStyle(_ctx.style),
- class: normalizeClass([
- _ctx.ns.be("dropdown", "item"),
- _ctx.ns.is("selected", _ctx.selected),
- _ctx.ns.is("disabled", _ctx.disabled),
- _ctx.ns.is("created", _ctx.created),
- _ctx.ns.is("hovering", _ctx.hovering)
- ]),
- onMousemove: _ctx.hoverItem,
- onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "default", {
- item: _ctx.item,
- index: _ctx.index,
- disabled: _ctx.disabled
- }, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.getLabel(_ctx.item)), 1)
- ])
- ], 46, ["aria-selected", "onMousemove", "onClick"]);
- }
- var OptionItem = _export_sfc(_sfc_main409, [["render", _sfc_render19], ["__file", "option-item.vue"]]);
- // node_modules/memoize-one/dist/memoize-one.esm.js
- var safeIsNaN = Number.isNaN || function ponyfill(value) {
- return typeof value === "number" && value !== value;
- };
- function isEqual2(first, second) {
- if (first === second) {
- return true;
- }
- if (safeIsNaN(first) && safeIsNaN(second)) {
- return true;
- }
- return false;
- }
- function areInputsEqual(newInputs, lastInputs) {
- if (newInputs.length !== lastInputs.length) {
- return false;
- }
- for (var i = 0; i < newInputs.length; i++) {
- if (!isEqual2(newInputs[i], lastInputs[i])) {
- return false;
- }
- }
- return true;
- }
- function memoizeOne(resultFn, isEqual3) {
- if (isEqual3 === void 0) {
- isEqual3 = areInputsEqual;
- }
- var cache2 = null;
- function memoized() {
- var newArgs = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- newArgs[_i] = arguments[_i];
- }
- if (cache2 && cache2.lastThis === this && isEqual3(newArgs, cache2.lastArgs)) {
- return cache2.lastResult;
- }
- var lastResult = resultFn.apply(this, newArgs);
- cache2 = {
- lastResult,
- lastArgs: newArgs,
- lastThis: this
- };
- return lastResult;
- }
- memoized.clear = function clear() {
- cache2 = null;
- };
- return memoized;
- }
- // node_modules/element-plus/es/components/virtual-list/src/hooks/use-cache.mjs
- var useCache = () => {
- const vm = getCurrentInstance();
- const props2 = vm.proxy.$props;
- return computed(() => {
- const _getItemStyleCache = (_2, __, ___) => ({});
- return props2.perfMode ? memoize_default(_getItemStyleCache) : memoizeOne(_getItemStyleCache);
- });
- };
- // node_modules/element-plus/es/components/virtual-list/src/defaults.mjs
- var DEFAULT_DYNAMIC_LIST_ITEM_SIZE = 50;
- var ITEM_RENDER_EVT = "itemRendered";
- var SCROLL_EVT = "scroll";
- var FORWARD = "forward";
- var BACKWARD = "backward";
- var AUTO_ALIGNMENT = "auto";
- var SMART_ALIGNMENT = "smart";
- var START_ALIGNMENT = "start";
- var CENTERED_ALIGNMENT = "center";
- var END_ALIGNMENT = "end";
- var HORIZONTAL = "horizontal";
- var VERTICAL = "vertical";
- var LTR = "ltr";
- var RTL = "rtl";
- var RTL_OFFSET_NAG = "negative";
- var RTL_OFFSET_POS_ASC = "positive-ascending";
- var RTL_OFFSET_POS_DESC = "positive-descending";
- var ScrollbarSizeKey = {
- [HORIZONTAL]: "height",
- [VERTICAL]: "width"
- };
- var ScrollbarDirKey = {
- [HORIZONTAL]: "left",
- [VERTICAL]: "top"
- };
- var SCROLLBAR_MIN_SIZE = 20;
- // node_modules/element-plus/es/components/virtual-list/src/hooks/use-wheel.mjs
- var LayoutKeys = {
- [HORIZONTAL]: "deltaX",
- [VERTICAL]: "deltaY"
- };
- var useWheel = ({ atEndEdge, atStartEdge, layout: layout2 }, onWheelDelta) => {
- let frameHandle;
- let offset3 = 0;
- const hasReachedEdge = (offset22) => {
- const edgeReached = offset22 < 0 && atStartEdge.value || offset22 > 0 && atEndEdge.value;
- return edgeReached;
- };
- const onWheel = (e) => {
- cAF(frameHandle);
- const newOffset = e[LayoutKeys[layout2.value]];
- if (hasReachedEdge(offset3) && hasReachedEdge(offset3 + newOffset))
- return;
- offset3 += newOffset;
- if (!isFirefox()) {
- e.preventDefault();
- }
- frameHandle = rAF(() => {
- onWheelDelta(offset3);
- offset3 = 0;
- });
- };
- return {
- hasReachedEdge,
- onWheel
- };
- };
- // node_modules/element-plus/es/components/virtual-list/src/props.mjs
- var itemSize = buildProp({
- type: definePropType([Number, Function]),
- required: true
- });
- var estimatedItemSize = buildProp({
- type: Number
- });
- var cache = buildProp({
- type: Number,
- default: 2
- });
- var direction = buildProp({
- type: String,
- values: ["ltr", "rtl"],
- default: "ltr"
- });
- var initScrollOffset = buildProp({
- type: Number,
- default: 0
- });
- var total = buildProp({
- type: Number,
- required: true
- });
- var layout = buildProp({
- type: String,
- values: ["horizontal", "vertical"],
- default: VERTICAL
- });
- var virtualizedProps = buildProps({
- className: {
- type: String,
- default: ""
- },
- containerElement: {
- type: definePropType([String, Object]),
- default: "div"
- },
- data: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- direction,
- height: {
- type: [String, Number],
- required: true
- },
- innerElement: {
- type: [String, Object],
- default: "div"
- },
- style: {
- type: definePropType([Object, String, Array])
- },
- useIsScrolling: Boolean,
- width: {
- type: [Number, String],
- required: false
- },
- perfMode: {
- type: Boolean,
- default: true
- },
- scrollbarAlwaysOn: Boolean
- });
- var virtualizedListProps = buildProps({
- cache,
- estimatedItemSize,
- layout,
- initScrollOffset,
- total,
- itemSize,
- ...virtualizedProps
- });
- var scrollbarSize = {
- type: Number,
- default: 6
- };
- var startGap = { type: Number, default: 0 };
- var endGap = { type: Number, default: 2 };
- var virtualizedGridProps = buildProps({
- columnCache: cache,
- columnWidth: itemSize,
- estimatedColumnWidth: estimatedItemSize,
- estimatedRowHeight: estimatedItemSize,
- initScrollLeft: initScrollOffset,
- initScrollTop: initScrollOffset,
- itemKey: {
- type: definePropType(Function),
- default: ({
- columnIndex,
- rowIndex
- }) => `${rowIndex}:${columnIndex}`
- },
- rowCache: cache,
- rowHeight: itemSize,
- totalColumn: total,
- totalRow: total,
- hScrollbarSize: scrollbarSize,
- vScrollbarSize: scrollbarSize,
- scrollbarStartGap: startGap,
- scrollbarEndGap: endGap,
- role: String,
- ...virtualizedProps
- });
- var virtualizedScrollbarProps = buildProps({
- alwaysOn: Boolean,
- class: String,
- layout,
- total,
- ratio: {
- type: Number,
- required: true
- },
- clientSize: {
- type: Number,
- required: true
- },
- scrollFrom: {
- type: Number,
- required: true
- },
- scrollbarSize,
- startGap,
- endGap,
- visible: Boolean
- });
- // node_modules/element-plus/es/components/virtual-list/src/utils.mjs
- var getScrollDir = (prev, cur) => prev < cur ? FORWARD : BACKWARD;
- var isHorizontal = (dir) => dir === LTR || dir === RTL || dir === HORIZONTAL;
- var isRTL = (dir) => dir === RTL;
- var cachedRTLResult = null;
- function getRTLOffsetType(recalculate = false) {
- if (cachedRTLResult === null || recalculate) {
- const outerDiv = document.createElement("div");
- const outerStyle = outerDiv.style;
- outerStyle.width = "50px";
- outerStyle.height = "50px";
- outerStyle.overflow = "scroll";
- outerStyle.direction = "rtl";
- const innerDiv = document.createElement("div");
- const innerStyle = innerDiv.style;
- innerStyle.width = "100px";
- innerStyle.height = "100px";
- outerDiv.appendChild(innerDiv);
- document.body.appendChild(outerDiv);
- if (outerDiv.scrollLeft > 0) {
- cachedRTLResult = RTL_OFFSET_POS_DESC;
- } else {
- outerDiv.scrollLeft = 1;
- if (outerDiv.scrollLeft === 0) {
- cachedRTLResult = RTL_OFFSET_NAG;
- } else {
- cachedRTLResult = RTL_OFFSET_POS_ASC;
- }
- }
- document.body.removeChild(outerDiv);
- return cachedRTLResult;
- }
- return cachedRTLResult;
- }
- function renderThumbStyle2({ move, size: size3, bar }, layout2) {
- const style = {};
- const translate2 = `translate${bar.axis}(${move}px)`;
- style[bar.size] = size3;
- style.transform = translate2;
- if (layout2 === "horizontal") {
- style.height = "100%";
- } else {
- style.width = "100%";
- }
- return style;
- }
- // node_modules/element-plus/es/components/virtual-list/src/components/scrollbar.mjs
- var ScrollBar = defineComponent({
- name: "ElVirtualScrollBar",
- props: virtualizedScrollbarProps,
- emits: ["scroll", "start-move", "stop-move"],
- setup(props2, { emit }) {
- const GAP2 = computed(() => props2.startGap + props2.endGap);
- const nsVirtualScrollbar = useNamespace("virtual-scrollbar");
- const nsScrollbar = useNamespace("scrollbar");
- const trackRef = ref();
- const thumbRef = ref();
- let frameHandle = null;
- let onselectstartStore = null;
- const state = reactive({
- isDragging: false,
- traveled: 0
- });
- const bar = computed(() => BAR_MAP[props2.layout]);
- const trackSize = computed(() => props2.clientSize - unref(GAP2));
- const trackStyle = computed(() => ({
- position: "absolute",
- width: `${HORIZONTAL === props2.layout ? trackSize.value : props2.scrollbarSize}px`,
- height: `${HORIZONTAL === props2.layout ? props2.scrollbarSize : trackSize.value}px`,
- [ScrollbarDirKey[props2.layout]]: "2px",
- right: "2px",
- bottom: "2px",
- borderRadius: "4px"
- }));
- const thumbSize = computed(() => {
- const ratio = props2.ratio;
- if (ratio >= 100) {
- return Number.POSITIVE_INFINITY;
- }
- if (ratio >= 50) {
- return ratio * trackSize.value / 100;
- }
- const SCROLLBAR_MAX_SIZE = trackSize.value / 3;
- return Math.floor(Math.min(Math.max(ratio * trackSize.value / 100, SCROLLBAR_MIN_SIZE), SCROLLBAR_MAX_SIZE));
- });
- const thumbStyle = computed(() => {
- if (!Number.isFinite(thumbSize.value)) {
- return {
- display: "none"
- };
- }
- const thumb = `${thumbSize.value}px`;
- const style = renderThumbStyle2({
- bar: bar.value,
- size: thumb,
- move: state.traveled
- }, props2.layout);
- return style;
- });
- const totalSteps = computed(() => Math.ceil(props2.clientSize - thumbSize.value - unref(GAP2)));
- const attachEvents2 = () => {
- window.addEventListener("mousemove", onMouseMove);
- window.addEventListener("mouseup", onMouseUp);
- const thumbEl = unref(thumbRef);
- if (!thumbEl)
- return;
- onselectstartStore = document.onselectstart;
- document.onselectstart = () => false;
- thumbEl.addEventListener("touchmove", onMouseMove, { passive: true });
- thumbEl.addEventListener("touchend", onMouseUp);
- };
- const detachEvents = () => {
- window.removeEventListener("mousemove", onMouseMove);
- window.removeEventListener("mouseup", onMouseUp);
- document.onselectstart = onselectstartStore;
- onselectstartStore = null;
- const thumbEl = unref(thumbRef);
- if (!thumbEl)
- return;
- thumbEl.removeEventListener("touchmove", onMouseMove);
- thumbEl.removeEventListener("touchend", onMouseUp);
- };
- const onThumbMouseDown = (e) => {
- e.stopImmediatePropagation();
- if (e.ctrlKey || [1, 2].includes(e.button)) {
- return;
- }
- state.isDragging = true;
- state[bar.value.axis] = e.currentTarget[bar.value.offset] - (e[bar.value.client] - e.currentTarget.getBoundingClientRect()[bar.value.direction]);
- emit("start-move");
- attachEvents2();
- };
- const onMouseUp = () => {
- state.isDragging = false;
- state[bar.value.axis] = 0;
- emit("stop-move");
- detachEvents();
- };
- const onMouseMove = (e) => {
- const { isDragging: isDragging2 } = state;
- if (!isDragging2)
- return;
- if (!thumbRef.value || !trackRef.value)
- return;
- const prevPage = state[bar.value.axis];
- if (!prevPage)
- return;
- cAF(frameHandle);
- const offset3 = (trackRef.value.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]) * -1;
- const thumbClickPosition = thumbRef.value[bar.value.offset] - prevPage;
- const distance = offset3 - thumbClickPosition;
- frameHandle = rAF(() => {
- state.traveled = Math.max(0, Math.min(distance, totalSteps.value));
- emit("scroll", distance, totalSteps.value);
- });
- };
- const clickTrackHandler = (e) => {
- const offset3 = Math.abs(e.target.getBoundingClientRect()[bar.value.direction] - e[bar.value.client]);
- const thumbHalf = thumbRef.value[bar.value.offset] / 2;
- const distance = offset3 - thumbHalf;
- state.traveled = Math.max(0, Math.min(distance, totalSteps.value));
- emit("scroll", distance, totalSteps.value);
- };
- watch(() => props2.scrollFrom, (v2) => {
- if (state.isDragging)
- return;
- state.traveled = Math.ceil(v2 * totalSteps.value);
- });
- onBeforeUnmount(() => {
- detachEvents();
- });
- return () => {
- return h("div", {
- role: "presentation",
- ref: trackRef,
- class: [
- nsVirtualScrollbar.b(),
- props2.class,
- (props2.alwaysOn || state.isDragging) && "always-on"
- ],
- style: trackStyle.value,
- onMousedown: withModifiers(clickTrackHandler, ["stop", "prevent"]),
- onTouchstartPrevent: onThumbMouseDown
- }, h("div", {
- ref: thumbRef,
- class: nsScrollbar.e("thumb"),
- style: thumbStyle.value,
- onMousedown: onThumbMouseDown
- }, []));
- };
- }
- });
- // node_modules/element-plus/es/components/virtual-list/src/builders/build-list.mjs
- var createList = ({
- name,
- getOffset: getOffset3,
- getItemSize,
- getItemOffset,
- getEstimatedTotalSize: getEstimatedTotalSize2,
- getStartIndexForOffset,
- getStopIndexForStartIndex,
- initCache,
- clearCache,
- validateProps
- }) => {
- return defineComponent({
- name: name != null ? name : "ElVirtualList",
- props: virtualizedListProps,
- emits: [ITEM_RENDER_EVT, SCROLL_EVT],
- setup(props2, { emit, expose }) {
- validateProps(props2);
- const instance = getCurrentInstance();
- const ns = useNamespace("vl");
- const dynamicSizeCache = ref(initCache(props2, instance));
- const getItemStyleCache = useCache();
- const windowRef = ref();
- const innerRef = ref();
- const scrollbarRef = ref();
- const states = ref({
- isScrolling: false,
- scrollDir: "forward",
- scrollOffset: isNumber2(props2.initScrollOffset) ? props2.initScrollOffset : 0,
- updateRequested: false,
- isScrollbarDragging: false,
- scrollbarAlwaysOn: props2.scrollbarAlwaysOn
- });
- const itemsToRender = computed(() => {
- const { total: total2, cache: cache2 } = props2;
- const { isScrolling, scrollDir, scrollOffset } = unref(states);
- if (total2 === 0) {
- return [0, 0, 0, 0];
- }
- const startIndex = getStartIndexForOffset(props2, scrollOffset, unref(dynamicSizeCache));
- const stopIndex = getStopIndexForStartIndex(props2, startIndex, scrollOffset, unref(dynamicSizeCache));
- const cacheBackward = !isScrolling || scrollDir === BACKWARD ? Math.max(1, cache2) : 1;
- const cacheForward = !isScrolling || scrollDir === FORWARD ? Math.max(1, cache2) : 1;
- return [
- Math.max(0, startIndex - cacheBackward),
- Math.max(0, Math.min(total2 - 1, stopIndex + cacheForward)),
- startIndex,
- stopIndex
- ];
- });
- const estimatedTotalSize = computed(() => getEstimatedTotalSize2(props2, unref(dynamicSizeCache)));
- const _isHorizontal = computed(() => isHorizontal(props2.layout));
- const windowStyle = computed(() => [
- {
- position: "relative",
- [`overflow-${_isHorizontal.value ? "x" : "y"}`]: "scroll",
- WebkitOverflowScrolling: "touch",
- willChange: "transform"
- },
- {
- direction: props2.direction,
- height: isNumber2(props2.height) ? `${props2.height}px` : props2.height,
- width: isNumber2(props2.width) ? `${props2.width}px` : props2.width
- },
- props2.style
- ]);
- const innerStyle = computed(() => {
- const size3 = unref(estimatedTotalSize);
- const horizontal = unref(_isHorizontal);
- return {
- height: horizontal ? "100%" : `${size3}px`,
- pointerEvents: unref(states).isScrolling ? "none" : void 0,
- width: horizontal ? `${size3}px` : "100%"
- };
- });
- const clientSize = computed(() => _isHorizontal.value ? props2.width : props2.height);
- const { onWheel } = useWheel({
- atStartEdge: computed(() => states.value.scrollOffset <= 0),
- atEndEdge: computed(() => states.value.scrollOffset >= estimatedTotalSize.value),
- layout: computed(() => props2.layout)
- }, (offset3) => {
- var _a2, _b;
- (_b = (_a2 = scrollbarRef.value).onMouseUp) == null ? void 0 : _b.call(_a2);
- scrollTo(Math.min(states.value.scrollOffset + offset3, estimatedTotalSize.value - clientSize.value));
- });
- useEventListener(windowRef, "wheel", onWheel, {
- passive: false
- });
- const emitEvents = () => {
- const { total: total2 } = props2;
- if (total2 > 0) {
- const [cacheStart, cacheEnd, visibleStart, visibleEnd] = unref(itemsToRender);
- emit(ITEM_RENDER_EVT, cacheStart, cacheEnd, visibleStart, visibleEnd);
- }
- const { scrollDir, scrollOffset, updateRequested } = unref(states);
- emit(SCROLL_EVT, scrollDir, scrollOffset, updateRequested);
- };
- const scrollVertically = (e) => {
- const { clientHeight, scrollHeight, scrollTop } = e.currentTarget;
- const _states = unref(states);
- if (_states.scrollOffset === scrollTop) {
- return;
- }
- const scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
- states.value = {
- ..._states,
- isScrolling: true,
- scrollDir: getScrollDir(_states.scrollOffset, scrollOffset),
- scrollOffset,
- updateRequested: false
- };
- nextTick(resetIsScrolling);
- };
- const scrollHorizontally = (e) => {
- const { clientWidth, scrollLeft, scrollWidth } = e.currentTarget;
- const _states = unref(states);
- if (_states.scrollOffset === scrollLeft) {
- return;
- }
- const { direction: direction2 } = props2;
- let scrollOffset = scrollLeft;
- if (direction2 === RTL) {
- switch (getRTLOffsetType()) {
- case RTL_OFFSET_NAG: {
- scrollOffset = -scrollLeft;
- break;
- }
- case RTL_OFFSET_POS_DESC: {
- scrollOffset = scrollWidth - clientWidth - scrollLeft;
- break;
- }
- }
- }
- scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
- states.value = {
- ..._states,
- isScrolling: true,
- scrollDir: getScrollDir(_states.scrollOffset, scrollOffset),
- scrollOffset,
- updateRequested: false
- };
- nextTick(resetIsScrolling);
- };
- const onScroll = (e) => {
- unref(_isHorizontal) ? scrollHorizontally(e) : scrollVertically(e);
- emitEvents();
- };
- const onScrollbarScroll = (distanceToGo, totalSteps) => {
- const offset3 = (estimatedTotalSize.value - clientSize.value) / totalSteps * distanceToGo;
- scrollTo(Math.min(estimatedTotalSize.value - clientSize.value, offset3));
- };
- const scrollTo = (offset3) => {
- offset3 = Math.max(offset3, 0);
- if (offset3 === unref(states).scrollOffset) {
- return;
- }
- states.value = {
- ...unref(states),
- scrollOffset: offset3,
- scrollDir: getScrollDir(unref(states).scrollOffset, offset3),
- updateRequested: true
- };
- nextTick(resetIsScrolling);
- };
- const scrollToItem = (idx, alignment = AUTO_ALIGNMENT) => {
- const { scrollOffset } = unref(states);
- idx = Math.max(0, Math.min(idx, props2.total - 1));
- scrollTo(getOffset3(props2, idx, alignment, scrollOffset, unref(dynamicSizeCache)));
- };
- const getItemStyle = (idx) => {
- const { direction: direction2, itemSize: itemSize3, layout: layout2 } = props2;
- const itemStyleCache = getItemStyleCache.value(clearCache && itemSize3, clearCache && layout2, clearCache && direction2);
- let style;
- if (hasOwn(itemStyleCache, String(idx))) {
- style = itemStyleCache[idx];
- } else {
- const offset3 = getItemOffset(props2, idx, unref(dynamicSizeCache));
- const size3 = getItemSize(props2, idx, unref(dynamicSizeCache));
- const horizontal = unref(_isHorizontal);
- const isRtl = direction2 === RTL;
- const offsetHorizontal = horizontal ? offset3 : 0;
- itemStyleCache[idx] = style = {
- position: "absolute",
- left: isRtl ? void 0 : `${offsetHorizontal}px`,
- right: isRtl ? `${offsetHorizontal}px` : void 0,
- top: !horizontal ? `${offset3}px` : 0,
- height: !horizontal ? `${size3}px` : "100%",
- width: horizontal ? `${size3}px` : "100%"
- };
- }
- return style;
- };
- const resetIsScrolling = () => {
- states.value.isScrolling = false;
- nextTick(() => {
- getItemStyleCache.value(-1, null, null);
- });
- };
- const resetScrollTop = () => {
- const window2 = windowRef.value;
- if (window2) {
- window2.scrollTop = 0;
- }
- };
- onMounted(() => {
- if (!isClient)
- return;
- const { initScrollOffset: initScrollOffset2 } = props2;
- const windowElement = unref(windowRef);
- if (isNumber2(initScrollOffset2) && windowElement) {
- if (unref(_isHorizontal)) {
- windowElement.scrollLeft = initScrollOffset2;
- } else {
- windowElement.scrollTop = initScrollOffset2;
- }
- }
- emitEvents();
- });
- onUpdated(() => {
- const { direction: direction2, layout: layout2 } = props2;
- const { scrollOffset, updateRequested } = unref(states);
- const windowElement = unref(windowRef);
- if (updateRequested && windowElement) {
- if (layout2 === HORIZONTAL) {
- if (direction2 === RTL) {
- switch (getRTLOffsetType()) {
- case RTL_OFFSET_NAG: {
- windowElement.scrollLeft = -scrollOffset;
- break;
- }
- case RTL_OFFSET_POS_ASC: {
- windowElement.scrollLeft = scrollOffset;
- break;
- }
- default: {
- const { clientWidth, scrollWidth } = windowElement;
- windowElement.scrollLeft = scrollWidth - clientWidth - scrollOffset;
- break;
- }
- }
- } else {
- windowElement.scrollLeft = scrollOffset;
- }
- } else {
- windowElement.scrollTop = scrollOffset;
- }
- }
- });
- onActivated(() => {
- unref(windowRef).scrollTop = unref(states).scrollOffset;
- });
- const api = {
- ns,
- clientSize,
- estimatedTotalSize,
- windowStyle,
- windowRef,
- innerRef,
- innerStyle,
- itemsToRender,
- scrollbarRef,
- states,
- getItemStyle,
- onScroll,
- onScrollbarScroll,
- onWheel,
- scrollTo,
- scrollToItem,
- resetScrollTop
- };
- expose({
- windowRef,
- innerRef,
- getItemStyleCache,
- scrollTo,
- scrollToItem,
- resetScrollTop,
- states
- });
- return api;
- },
- render(ctx) {
- var _a2;
- const {
- $slots,
- className,
- clientSize,
- containerElement,
- data,
- getItemStyle,
- innerElement,
- itemsToRender,
- innerStyle,
- layout: layout2,
- total: total2,
- onScroll,
- onScrollbarScroll,
- states,
- useIsScrolling,
- windowStyle,
- ns
- } = ctx;
- const [start, end] = itemsToRender;
- const Container2 = resolveDynamicComponent(containerElement);
- const Inner = resolveDynamicComponent(innerElement);
- const children = [];
- if (total2 > 0) {
- for (let i = start; i <= end; i++) {
- children.push(h(Fragment, { key: i }, (_a2 = $slots.default) == null ? void 0 : _a2.call($slots, {
- data,
- index: i,
- isScrolling: useIsScrolling ? states.isScrolling : void 0,
- style: getItemStyle(i)
- })));
- }
- }
- const InnerNode = [
- h(Inner, {
- style: innerStyle,
- ref: "innerRef"
- }, !isString(Inner) ? {
- default: () => children
- } : children)
- ];
- const scrollbar = h(ScrollBar, {
- ref: "scrollbarRef",
- clientSize,
- layout: layout2,
- onScroll: onScrollbarScroll,
- ratio: clientSize * 100 / this.estimatedTotalSize,
- scrollFrom: states.scrollOffset / (this.estimatedTotalSize - clientSize),
- total: total2,
- alwaysOn: states.scrollbarAlwaysOn
- });
- const listContainer = h(Container2, {
- class: [ns.e("window"), className],
- style: windowStyle,
- onScroll,
- ref: "windowRef",
- key: 0
- }, !isString(Container2) ? { default: () => [InnerNode] } : [InnerNode]);
- return h("div", {
- key: 0,
- class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
- }, [listContainer, scrollbar]);
- }
- });
- };
- // node_modules/element-plus/es/components/virtual-list/src/components/fixed-size-list.mjs
- var FixedSizeList = createList({
- name: "ElFixedSizeList",
- getItemOffset: ({ itemSize: itemSize3 }, index) => index * itemSize3,
- getItemSize: ({ itemSize: itemSize3 }) => itemSize3,
- getEstimatedTotalSize: ({ total: total2, itemSize: itemSize3 }) => itemSize3 * total2,
- getOffset: ({ height, total: total2, itemSize: itemSize3, layout: layout2, width }, index, alignment, scrollOffset) => {
- const size3 = isHorizontal(layout2) ? width : height;
- const lastItemOffset = Math.max(0, total2 * itemSize3 - size3);
- const maxOffset = Math.min(lastItemOffset, index * itemSize3);
- const minOffset = Math.max(0, (index + 1) * itemSize3 - size3);
- if (alignment === SMART_ALIGNMENT) {
- if (scrollOffset >= minOffset - size3 && scrollOffset <= maxOffset + size3) {
- alignment = AUTO_ALIGNMENT;
- } else {
- alignment = CENTERED_ALIGNMENT;
- }
- }
- switch (alignment) {
- case START_ALIGNMENT: {
- return maxOffset;
- }
- case END_ALIGNMENT: {
- return minOffset;
- }
- case CENTERED_ALIGNMENT: {
- const middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
- if (middleOffset < Math.ceil(size3 / 2)) {
- return 0;
- } else if (middleOffset > lastItemOffset + Math.floor(size3 / 2)) {
- return lastItemOffset;
- } else {
- return middleOffset;
- }
- }
- case AUTO_ALIGNMENT:
- default: {
- if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
- return scrollOffset;
- } else if (scrollOffset < minOffset) {
- return minOffset;
- } else {
- return maxOffset;
- }
- }
- }
- },
- getStartIndexForOffset: ({ total: total2, itemSize: itemSize3 }, offset3) => Math.max(0, Math.min(total2 - 1, Math.floor(offset3 / itemSize3))),
- getStopIndexForStartIndex: ({ height, total: total2, itemSize: itemSize3, layout: layout2, width }, startIndex, scrollOffset) => {
- const offset3 = startIndex * itemSize3;
- const size3 = isHorizontal(layout2) ? width : height;
- const numVisibleItems = Math.ceil((size3 + scrollOffset - offset3) / itemSize3);
- return Math.max(0, Math.min(total2 - 1, startIndex + numVisibleItems - 1));
- },
- initCache() {
- return void 0;
- },
- clearCache: true,
- validateProps() {
- }
- });
- // node_modules/element-plus/es/components/virtual-list/src/components/dynamic-size-list.mjs
- var getItemFromCache = (props2, index, listCache) => {
- const { itemSize: itemSize3 } = props2;
- const { items, lastVisitedIndex } = listCache;
- if (index > lastVisitedIndex) {
- let offset3 = 0;
- if (lastVisitedIndex >= 0) {
- const item = items[lastVisitedIndex];
- offset3 = item.offset + item.size;
- }
- for (let i = lastVisitedIndex + 1; i <= index; i++) {
- const size3 = itemSize3(i);
- items[i] = {
- offset: offset3,
- size: size3
- };
- offset3 += size3;
- }
- listCache.lastVisitedIndex = index;
- }
- return items[index];
- };
- var findItem = (props2, listCache, offset3) => {
- const { items, lastVisitedIndex } = listCache;
- const lastVisitedOffset = lastVisitedIndex > 0 ? items[lastVisitedIndex].offset : 0;
- if (lastVisitedOffset >= offset3) {
- return bs(props2, listCache, 0, lastVisitedIndex, offset3);
- }
- return es(props2, listCache, Math.max(0, lastVisitedIndex), offset3);
- };
- var bs = (props2, listCache, low, high, offset3) => {
- while (low <= high) {
- const mid = low + Math.floor((high - low) / 2);
- const currentOffset = getItemFromCache(props2, mid, listCache).offset;
- if (currentOffset === offset3) {
- return mid;
- } else if (currentOffset < offset3) {
- low = mid + 1;
- } else if (currentOffset > offset3) {
- high = mid - 1;
- }
- }
- return Math.max(0, low - 1);
- };
- var es = (props2, listCache, index, offset3) => {
- const { total: total2 } = props2;
- let exponent = 1;
- while (index < total2 && getItemFromCache(props2, index, listCache).offset < offset3) {
- index += exponent;
- exponent *= 2;
- }
- return bs(props2, listCache, Math.floor(index / 2), Math.min(index, total2 - 1), offset3);
- };
- var getEstimatedTotalSize = ({ total: total2 }, { items, estimatedItemSize: estimatedItemSize2, lastVisitedIndex }) => {
- let totalSizeOfMeasuredItems = 0;
- if (lastVisitedIndex >= total2) {
- lastVisitedIndex = total2 - 1;
- }
- if (lastVisitedIndex >= 0) {
- const item = items[lastVisitedIndex];
- totalSizeOfMeasuredItems = item.offset + item.size;
- }
- const numUnmeasuredItems = total2 - lastVisitedIndex - 1;
- const totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize2;
- return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
- };
- var DynamicSizeList = createList({
- name: "ElDynamicSizeList",
- getItemOffset: (props2, index, listCache) => getItemFromCache(props2, index, listCache).offset,
- getItemSize: (_2, index, { items }) => items[index].size,
- getEstimatedTotalSize,
- getOffset: (props2, index, alignment, scrollOffset, listCache) => {
- const { height, layout: layout2, width } = props2;
- const size3 = isHorizontal(layout2) ? width : height;
- const item = getItemFromCache(props2, index, listCache);
- const estimatedTotalSize = getEstimatedTotalSize(props2, listCache);
- const maxOffset = Math.max(0, Math.min(estimatedTotalSize - size3, item.offset));
- const minOffset = Math.max(0, item.offset - size3 + item.size);
- if (alignment === SMART_ALIGNMENT) {
- if (scrollOffset >= minOffset - size3 && scrollOffset <= maxOffset + size3) {
- alignment = AUTO_ALIGNMENT;
- } else {
- alignment = CENTERED_ALIGNMENT;
- }
- }
- switch (alignment) {
- case START_ALIGNMENT: {
- return maxOffset;
- }
- case END_ALIGNMENT: {
- return minOffset;
- }
- case CENTERED_ALIGNMENT: {
- return Math.round(minOffset + (maxOffset - minOffset) / 2);
- }
- case AUTO_ALIGNMENT:
- default: {
- if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
- return scrollOffset;
- } else if (scrollOffset < minOffset) {
- return minOffset;
- } else {
- return maxOffset;
- }
- }
- }
- },
- getStartIndexForOffset: (props2, offset3, listCache) => findItem(props2, listCache, offset3),
- getStopIndexForStartIndex: (props2, startIndex, scrollOffset, listCache) => {
- const { height, total: total2, layout: layout2, width } = props2;
- const size3 = isHorizontal(layout2) ? width : height;
- const item = getItemFromCache(props2, startIndex, listCache);
- const maxOffset = scrollOffset + size3;
- let offset3 = item.offset + item.size;
- let stopIndex = startIndex;
- while (stopIndex < total2 - 1 && offset3 < maxOffset) {
- stopIndex++;
- offset3 += getItemFromCache(props2, stopIndex, listCache).size;
- }
- return stopIndex;
- },
- initCache({ estimatedItemSize: estimatedItemSize2 = DEFAULT_DYNAMIC_LIST_ITEM_SIZE }, instance) {
- const cache2 = {
- items: {},
- estimatedItemSize: estimatedItemSize2,
- lastVisitedIndex: -1
- };
- cache2.clearCacheAfterIndex = (index, forceUpdate = true) => {
- var _a2, _b;
- cache2.lastVisitedIndex = Math.min(cache2.lastVisitedIndex, index - 1);
- (_a2 = instance.exposed) == null ? void 0 : _a2.getItemStyleCache(-1);
- if (forceUpdate) {
- (_b = instance.proxy) == null ? void 0 : _b.$forceUpdate();
- }
- };
- return cache2;
- },
- clearCache: false,
- validateProps: ({ itemSize: itemSize3 }) => {
- }
- });
- // node_modules/element-plus/es/components/select-v2/src/select-dropdown.mjs
- var props = {
- loading: Boolean,
- data: {
- type: Array,
- required: true
- },
- hoveringIndex: Number,
- width: Number
- };
- var ElSelectMenu2 = defineComponent({
- name: "ElSelectDropdown",
- props,
- setup(props2, {
- slots,
- expose
- }) {
- const select = inject(selectV2InjectionKey);
- const ns = useNamespace("select");
- const {
- getLabel,
- getValue: getValue3,
- getDisabled
- } = useProps(select.props);
- const cachedHeights = ref([]);
- const listRef = ref();
- const size3 = computed(() => props2.data.length);
- watch(() => size3.value, () => {
- var _a2, _b;
- (_b = (_a2 = select.tooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- });
- const isSized = computed(() => isUndefined2(select.props.estimatedOptionHeight));
- const listProps = computed(() => {
- if (isSized.value) {
- return {
- itemSize: select.props.itemHeight
- };
- }
- return {
- estimatedSize: select.props.estimatedOptionHeight,
- itemSize: (idx) => cachedHeights.value[idx]
- };
- });
- const contains = (arr = [], target2) => {
- const {
- props: {
- valueKey
- }
- } = select;
- if (!isObject(target2)) {
- return arr.includes(target2);
- }
- return arr && arr.some((item) => {
- return toRaw(get_default(item, valueKey)) === get_default(target2, valueKey);
- });
- };
- const isEqual3 = (selected, target2) => {
- if (!isObject(target2)) {
- return selected === target2;
- } else {
- const {
- valueKey
- } = select.props;
- return get_default(selected, valueKey) === get_default(target2, valueKey);
- }
- };
- const isItemSelected = (modelValue, target2) => {
- if (select.props.multiple) {
- return contains(modelValue, getValue3(target2));
- }
- return isEqual3(modelValue, getValue3(target2));
- };
- const isItemDisabled = (modelValue, selected) => {
- const {
- disabled,
- multiple,
- multipleLimit
- } = select.props;
- return disabled || !selected && (multiple ? multipleLimit > 0 && modelValue.length >= multipleLimit : false);
- };
- const isItemHovering = (target2) => props2.hoveringIndex === target2;
- const scrollToItem = (index) => {
- const list = listRef.value;
- if (list) {
- list.scrollToItem(index);
- }
- };
- const resetScrollTop = () => {
- const list = listRef.value;
- if (list) {
- list.resetScrollTop();
- }
- };
- const exposed = {
- listRef,
- isSized,
- isItemDisabled,
- isItemHovering,
- isItemSelected,
- scrollToItem,
- resetScrollTop
- };
- expose(exposed);
- const Item = (itemProps) => {
- const {
- index,
- data,
- style
- } = itemProps;
- const sized = unref(isSized);
- const {
- itemSize: itemSize3,
- estimatedSize
- } = unref(listProps);
- const {
- modelValue
- } = select.props;
- const {
- onSelect,
- onHover
- } = select;
- const item = data[index];
- if (item.type === "Group") {
- return createVNode(GroupItem, {
- "item": item,
- "style": style,
- "height": sized ? itemSize3 : estimatedSize
- }, null);
- }
- const isSelected = isItemSelected(modelValue, item);
- const isDisabled = isItemDisabled(modelValue, isSelected);
- const isHovering = isItemHovering(index);
- return createVNode(OptionItem, mergeProps(itemProps, {
- "selected": isSelected,
- "disabled": getDisabled(item) || isDisabled,
- "created": !!item.created,
- "hovering": isHovering,
- "item": item,
- "onSelect": onSelect,
- "onHover": onHover
- }), {
- default: (props3) => {
- var _a2;
- return ((_a2 = slots.default) == null ? void 0 : _a2.call(slots, props3)) || createVNode("span", null, [getLabel(item)]);
- }
- });
- };
- const {
- onKeyboardNavigate,
- onKeyboardSelect
- } = select;
- const onForward = () => {
- onKeyboardNavigate("forward");
- };
- const onBackward = () => {
- onKeyboardNavigate("backward");
- };
- const onKeydown = (e) => {
- const {
- code
- } = e;
- const {
- tab,
- esc,
- down,
- up,
- enter,
- numpadEnter
- } = EVENT_CODE;
- if ([esc, down, up, enter, numpadEnter].includes(code)) {
- e.preventDefault();
- e.stopPropagation();
- }
- switch (code) {
- case tab:
- case esc:
- break;
- case down:
- onForward();
- break;
- case up:
- onBackward();
- break;
- case enter:
- case numpadEnter:
- onKeyboardSelect();
- break;
- }
- };
- return () => {
- var _a2, _b, _c, _d;
- const {
- data,
- width
- } = props2;
- const {
- height,
- multiple,
- scrollbarAlwaysOn
- } = select.props;
- const isScrollbarAlwaysOn = computed(() => {
- return isIOS ? true : scrollbarAlwaysOn;
- });
- const List = unref(isSized) ? FixedSizeList : DynamicSizeList;
- return createVNode("div", {
- "class": [ns.b("dropdown"), ns.is("multiple", multiple)],
- "style": {
- width: `${width}px`
- }
- }, [(_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({
- "ref": listRef
- }, unref(listProps), {
- "className": ns.be("dropdown", "list"),
- "scrollbarAlwaysOn": isScrollbarAlwaysOn.value,
- "data": data,
- "height": height,
- "width": width,
- "total": data.length,
- "onKeydown": onKeydown
- }), {
- default: (props3) => createVNode(Item, props3, null)
- }), (_d = slots.footer) == null ? void 0 : _d.call(slots)]);
- };
- }
- });
- // node_modules/element-plus/es/components/select-v2/src/useAllowCreate.mjs
- function useAllowCreate(props2, states) {
- const { aliasProps, getLabel, getValue: getValue3 } = useProps(props2);
- const createOptionCount = ref(0);
- const cachedSelectedOption = ref();
- const enableAllowCreateMode = computed(() => {
- return props2.allowCreate && props2.filterable;
- });
- watch(() => props2.options, (options) => {
- const optionLabelsSet = new Set(options.map((option) => getLabel(option)));
- states.createdOptions = states.createdOptions.filter((createdOption) => !optionLabelsSet.has(getLabel(createdOption)));
- });
- function hasExistingOption(query) {
- const hasOption = (option) => getLabel(option) === query;
- return props2.options && props2.options.some(hasOption) || states.createdOptions.some(hasOption);
- }
- function selectNewOption(option) {
- if (!enableAllowCreateMode.value) {
- return;
- }
- if (props2.multiple && option.created) {
- createOptionCount.value++;
- } else {
- cachedSelectedOption.value = option;
- }
- }
- function createNewOption(query) {
- if (enableAllowCreateMode.value) {
- if (query && query.length > 0) {
- if (hasExistingOption(query)) {
- states.createdOptions = states.createdOptions.filter((createdOption) => getLabel(createdOption) !== states.previousQuery);
- return;
- }
- const newOption = {
- [aliasProps.value.value]: query,
- [aliasProps.value.label]: query,
- created: true,
- [aliasProps.value.disabled]: false
- };
- if (states.createdOptions.length >= createOptionCount.value) {
- states.createdOptions[createOptionCount.value] = newOption;
- } else {
- states.createdOptions.push(newOption);
- }
- } else {
- if (props2.multiple) {
- states.createdOptions.length = createOptionCount.value;
- } else {
- const selectedOption = cachedSelectedOption.value;
- states.createdOptions.length = 0;
- if (selectedOption && selectedOption.created) {
- states.createdOptions.push(selectedOption);
- }
- }
- }
- }
- }
- function removeNewOption(option) {
- if (!enableAllowCreateMode.value || !option || !option.created || option.created && props2.reserveKeyword && states.inputValue === getLabel(option)) {
- return;
- }
- const idx = states.createdOptions.findIndex((it2) => getValue3(it2) === getValue3(option));
- if (~idx) {
- states.createdOptions.splice(idx, 1);
- createOptionCount.value--;
- }
- }
- function clearAllNewOption() {
- if (enableAllowCreateMode.value) {
- states.createdOptions.length = 0;
- createOptionCount.value = 0;
- }
- }
- return {
- createNewOption,
- removeNewOption,
- selectNewOption,
- clearAllNewOption
- };
- }
- // node_modules/element-plus/es/components/select-v2/src/useSelect.mjs
- var useSelect2 = (props2, emit) => {
- const { t } = useLocale();
- const nsSelect = useNamespace("select");
- const nsInput = useNamespace("input");
- const { form: elForm, formItem: elFormItem } = useFormItem();
- const { inputId } = useFormItemInputId(props2, {
- formItemContext: elFormItem
- });
- const { aliasProps, getLabel, getValue: getValue3, getDisabled, getOptions } = useProps(props2);
- const { valueOnClear, isEmptyValue: isEmptyValue2 } = useEmptyValues(props2);
- const states = reactive({
- inputValue: "",
- cachedOptions: [],
- createdOptions: [],
- hoveringIndex: -1,
- inputHovering: false,
- selectionWidth: 0,
- collapseItemWidth: 0,
- previousQuery: null,
- previousValue: void 0,
- selectedLabel: "",
- menuVisibleOnFocus: false,
- isBeforeHide: false
- });
- const popperSize = ref(-1);
- const selectRef = ref();
- const selectionRef = ref();
- const tooltipRef = ref();
- const tagTooltipRef = ref();
- const inputRef = ref();
- const prefixRef = ref();
- const suffixRef = ref();
- const menuRef = ref();
- const tagMenuRef = ref();
- const collapseItemRef = ref();
- const {
- isComposing,
- handleCompositionStart,
- handleCompositionEnd,
- handleCompositionUpdate
- } = useComposition({
- afterComposition: (e) => onInput(e)
- });
- const selectDisabled = computed(() => props2.disabled || !!(elForm == null ? void 0 : elForm.disabled));
- const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {
- disabled: selectDisabled,
- afterFocus() {
- if (props2.automaticDropdown && !expanded.value) {
- expanded.value = true;
- states.menuVisibleOnFocus = true;
- }
- },
- beforeBlur(event) {
- var _a2, _b;
- return ((_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event)) || ((_b = tagTooltipRef.value) == null ? void 0 : _b.isFocusInsideContent(event));
- },
- afterBlur() {
- var _a2;
- expanded.value = false;
- states.menuVisibleOnFocus = false;
- if (props2.validateEvent) {
- (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "blur").catch((err) => debugWarn());
- }
- }
- });
- const allOptions = computed(() => filterOptions(""));
- const hasOptions = computed(() => {
- if (props2.loading)
- return false;
- return props2.options.length > 0 || states.createdOptions.length > 0;
- });
- const filteredOptions = ref([]);
- const expanded = ref(false);
- const needStatusIcon = computed(() => {
- var _a2;
- return (_a2 = elForm == null ? void 0 : elForm.statusIcon) != null ? _a2 : false;
- });
- const popupHeight = computed(() => {
- const totalHeight = filteredOptions.value.length * props2.itemHeight;
- return totalHeight > props2.height ? props2.height : totalHeight;
- });
- const hasModelValue = computed(() => {
- return props2.multiple ? isArray(props2.modelValue) && props2.modelValue.length > 0 : !isEmptyValue2(props2.modelValue);
- });
- const showClearBtn = computed(() => {
- return props2.clearable && !selectDisabled.value && hasModelValue.value && (isFocused.value || states.inputHovering);
- });
- const iconComponent = computed(() => props2.remote && props2.filterable ? "" : props2.suffixIcon);
- const iconReverse = computed(() => iconComponent.value && nsSelect.is("reverse", expanded.value));
- const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
- const validateIcon = computed(() => {
- if (!validateState.value)
- return;
- return ValidateComponentsMap[validateState.value];
- });
- const debounce$1 = computed(() => props2.remote ? 300 : 0);
- const emptyText = computed(() => {
- if (props2.loading) {
- return props2.loadingText || t("el.select.loading");
- } else {
- if (props2.remote && !states.inputValue && !hasOptions.value)
- return false;
- if (props2.filterable && states.inputValue && hasOptions.value && filteredOptions.value.length === 0) {
- return props2.noMatchText || t("el.select.noMatch");
- }
- if (!hasOptions.value) {
- return props2.noDataText || t("el.select.noData");
- }
- }
- return null;
- });
- const isFilterMethodValid = computed(() => props2.filterable && isFunction(props2.filterMethod));
- const isRemoteMethodValid = computed(() => props2.filterable && props2.remote && isFunction(props2.remoteMethod));
- const filterOptions = (query) => {
- const regexp4 = new RegExp(escapeStringRegexp(query), "i");
- const isValidOption = (o2) => {
- if (isFilterMethodValid.value || isRemoteMethodValid.value)
- return true;
- return query ? regexp4.test(getLabel(o2) || "") : true;
- };
- if (props2.loading) {
- return [];
- }
- return [...states.createdOptions, ...props2.options].reduce((all, item) => {
- const options = getOptions(item);
- if (isArray(options)) {
- const filtered = options.filter(isValidOption);
- if (filtered.length > 0) {
- all.push({
- label: getLabel(item),
- type: "Group"
- }, ...filtered);
- }
- } else if (props2.remote || isValidOption(item)) {
- all.push(item);
- }
- return all;
- }, []);
- };
- const updateOptions2 = () => {
- filteredOptions.value = filterOptions(states.inputValue);
- };
- const allOptionsValueMap = computed(() => {
- const valueMap = /* @__PURE__ */ new Map();
- allOptions.value.forEach((option, index) => {
- valueMap.set(getValueKey(getValue3(option)), { option, index });
- });
- return valueMap;
- });
- const filteredOptionsValueMap = computed(() => {
- const valueMap = /* @__PURE__ */ new Map();
- filteredOptions.value.forEach((option, index) => {
- valueMap.set(getValueKey(getValue3(option)), { option, index });
- });
- return valueMap;
- });
- const optionsAllDisabled = computed(() => filteredOptions.value.every((option) => getDisabled(option)));
- const selectSize = useFormSize();
- const collapseTagSize = computed(() => selectSize.value === "small" ? "small" : "default");
- const calculatePopperSize = () => {
- var _a2;
- if (isNumber2(props2.fitInputWidth)) {
- popperSize.value = props2.fitInputWidth;
- return;
- }
- const width = ((_a2 = selectRef.value) == null ? void 0 : _a2.offsetWidth) || 200;
- if (!props2.fitInputWidth && hasOptions.value) {
- nextTick(() => {
- popperSize.value = Math.max(width, calculateLabelMaxWidth());
- });
- } else {
- popperSize.value = width;
- }
- };
- const calculateLabelMaxWidth = () => {
- var _a2, _b;
- const canvas = document.createElement("canvas");
- const ctx = canvas.getContext("2d");
- const selector = nsSelect.be("dropdown", "item");
- const dom = ((_b = (_a2 = menuRef.value) == null ? void 0 : _a2.listRef) == null ? void 0 : _b.innerRef) || document;
- const dropdownItemEl = dom.querySelector(`.${selector}`);
- if (dropdownItemEl === null || ctx === null)
- return 0;
- const style = getComputedStyle(dropdownItemEl);
- const padding = Number.parseFloat(style.paddingLeft) + Number.parseFloat(style.paddingRight);
- ctx.font = `bold ${style.font.replace(new RegExp(`\\b${style.fontWeight}\\b`), "")}`;
- const maxWidth = filteredOptions.value.reduce((max4, option) => {
- const metrics = ctx.measureText(getLabel(option));
- return Math.max(metrics.width, max4);
- }, 0);
- return maxWidth + padding;
- };
- const getGapWidth = () => {
- if (!selectionRef.value)
- return 0;
- const style = window.getComputedStyle(selectionRef.value);
- return Number.parseFloat(style.gap || "6px");
- };
- const tagStyle = computed(() => {
- const gapWidth = getGapWidth();
- const inputSlotWidth = props2.filterable ? gapWidth + MINIMUM_INPUT_WIDTH : 0;
- const maxWidth = collapseItemRef.value && props2.maxCollapseTags === 1 ? states.selectionWidth - states.collapseItemWidth - gapWidth - inputSlotWidth : states.selectionWidth - inputSlotWidth;
- return { maxWidth: `${maxWidth}px` };
- });
- const collapseTagStyle = computed(() => {
- return { maxWidth: `${states.selectionWidth}px` };
- });
- const shouldShowPlaceholder = computed(() => {
- if (isArray(props2.modelValue)) {
- return props2.modelValue.length === 0 && !states.inputValue;
- }
- return props2.filterable ? !states.inputValue : true;
- });
- const currentPlaceholder = computed(() => {
- var _a2;
- const _placeholder = (_a2 = props2.placeholder) != null ? _a2 : t("el.select.placeholder");
- return props2.multiple || !hasModelValue.value ? _placeholder : states.selectedLabel;
- });
- const popperRef = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
- });
- const indexRef = computed(() => {
- if (props2.multiple) {
- const len = props2.modelValue.length;
- if (props2.modelValue.length > 0 && filteredOptionsValueMap.value.has(props2.modelValue[len - 1])) {
- const { index } = filteredOptionsValueMap.value.get(props2.modelValue[len - 1]);
- return index;
- }
- } else {
- if (!isEmptyValue2(props2.modelValue) && filteredOptionsValueMap.value.has(props2.modelValue)) {
- const { index } = filteredOptionsValueMap.value.get(props2.modelValue);
- return index;
- }
- }
- return -1;
- });
- const dropdownMenuVisible = computed({
- get() {
- return expanded.value && emptyText.value !== false;
- },
- set(val) {
- expanded.value = val;
- }
- });
- const showTagList = computed(() => {
- if (!props2.multiple) {
- return [];
- }
- return props2.collapseTags ? states.cachedOptions.slice(0, props2.maxCollapseTags) : states.cachedOptions;
- });
- const collapseTagList = computed(() => {
- if (!props2.multiple) {
- return [];
- }
- return props2.collapseTags ? states.cachedOptions.slice(props2.maxCollapseTags) : [];
- });
- const {
- createNewOption,
- removeNewOption,
- selectNewOption,
- clearAllNewOption
- } = useAllowCreate(props2, states);
- const toggleMenu = () => {
- if (selectDisabled.value)
- return;
- if (states.menuVisibleOnFocus) {
- states.menuVisibleOnFocus = false;
- } else {
- expanded.value = !expanded.value;
- }
- };
- const onInputChange = () => {
- if (states.inputValue.length > 0 && !expanded.value) {
- expanded.value = true;
- }
- createNewOption(states.inputValue);
- nextTick(() => {
- handleQueryChange(states.inputValue);
- });
- };
- const debouncedOnInputChange = debounce_default(onInputChange, debounce$1.value);
- const handleQueryChange = (val) => {
- if (states.previousQuery === val || isComposing.value) {
- return;
- }
- states.previousQuery = val;
- if (props2.filterable && isFunction(props2.filterMethod)) {
- props2.filterMethod(val);
- } else if (props2.filterable && props2.remote && isFunction(props2.remoteMethod)) {
- props2.remoteMethod(val);
- }
- if (props2.defaultFirstOption && (props2.filterable || props2.remote) && filteredOptions.value.length) {
- nextTick(checkDefaultFirstOption);
- } else {
- nextTick(updateHoveringIndex);
- }
- };
- const checkDefaultFirstOption = () => {
- const optionsInDropdown = filteredOptions.value.filter((n) => !n.disabled && n.type !== "Group");
- const userCreatedOption = optionsInDropdown.find((n) => n.created);
- const firstOriginOption = optionsInDropdown[0];
- states.hoveringIndex = getValueIndex(filteredOptions.value, userCreatedOption || firstOriginOption);
- };
- const emitChange = (val) => {
- if (!isEqual_default(props2.modelValue, val)) {
- emit(CHANGE_EVENT, val);
- }
- };
- const update2 = (val) => {
- emit(UPDATE_MODEL_EVENT, val);
- emitChange(val);
- states.previousValue = props2.multiple ? String(val) : val;
- nextTick(() => {
- if (props2.multiple && isArray(props2.modelValue)) {
- const cachedOptions = states.cachedOptions.slice();
- const selectedOptions = props2.modelValue.map((value) => getOption(value, cachedOptions));
- if (!isEqual_default(states.cachedOptions, selectedOptions)) {
- states.cachedOptions = selectedOptions;
- }
- } else {
- initStates(true);
- }
- });
- };
- const getValueIndex = (arr = [], value) => {
- if (!isObject(value)) {
- return arr.indexOf(value);
- }
- const valueKey = props2.valueKey;
- let index = -1;
- arr.some((item, i) => {
- if (get_default(item, valueKey) === get_default(value, valueKey)) {
- index = i;
- return true;
- }
- return false;
- });
- return index;
- };
- const getValueKey = (item) => {
- return isObject(item) ? get_default(item, props2.valueKey) : item;
- };
- const handleResize = () => {
- calculatePopperSize();
- };
- const resetSelectionWidth = () => {
- states.selectionWidth = Number.parseFloat(window.getComputedStyle(selectionRef.value).width);
- };
- const resetCollapseItemWidth = () => {
- states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
- };
- const updateTooltip = () => {
- var _a2, _b;
- (_b = (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- };
- const updateTagTooltip = () => {
- var _a2, _b;
- (_b = (_a2 = tagTooltipRef.value) == null ? void 0 : _a2.updatePopper) == null ? void 0 : _b.call(_a2);
- };
- const onSelect = (option) => {
- if (props2.multiple) {
- let selectedOptions = props2.modelValue.slice();
- const index = getValueIndex(selectedOptions, getValue3(option));
- if (index > -1) {
- selectedOptions = [
- ...selectedOptions.slice(0, index),
- ...selectedOptions.slice(index + 1)
- ];
- states.cachedOptions.splice(index, 1);
- removeNewOption(option);
- } else if (props2.multipleLimit <= 0 || selectedOptions.length < props2.multipleLimit) {
- selectedOptions = [...selectedOptions, getValue3(option)];
- states.cachedOptions.push(option);
- selectNewOption(option);
- }
- update2(selectedOptions);
- if (option.created) {
- handleQueryChange("");
- }
- if (props2.filterable && !props2.reserveKeyword) {
- states.inputValue = "";
- }
- } else {
- states.selectedLabel = getLabel(option);
- update2(getValue3(option));
- expanded.value = false;
- selectNewOption(option);
- if (!option.created) {
- clearAllNewOption();
- }
- }
- focus();
- };
- const deleteTag = (event, option) => {
- let selectedOptions = props2.modelValue.slice();
- const index = getValueIndex(selectedOptions, getValue3(option));
- if (index > -1 && !selectDisabled.value) {
- selectedOptions = [
- ...props2.modelValue.slice(0, index),
- ...props2.modelValue.slice(index + 1)
- ];
- states.cachedOptions.splice(index, 1);
- update2(selectedOptions);
- emit("remove-tag", getValue3(option));
- removeNewOption(option);
- }
- event.stopPropagation();
- focus();
- };
- const focus = () => {
- var _a2;
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
- };
- const blur = () => {
- var _a2;
- if (expanded.value) {
- expanded.value = false;
- nextTick(() => {
- var _a22;
- return (_a22 = inputRef.value) == null ? void 0 : _a22.blur();
- });
- return;
- }
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
- };
- const handleEsc = () => {
- if (states.inputValue.length > 0) {
- states.inputValue = "";
- } else {
- expanded.value = false;
- }
- };
- const getLastNotDisabledIndex = (value) => findLastIndex_default(value, (it2) => !states.cachedOptions.some((option) => getValue3(option) === it2 && getDisabled(option)));
- const handleDel = (e) => {
- if (!props2.multiple)
- return;
- if (e.code === EVENT_CODE.delete)
- return;
- if (states.inputValue.length === 0) {
- e.preventDefault();
- const selected = props2.modelValue.slice();
- const lastNotDisabledIndex = getLastNotDisabledIndex(selected);
- if (lastNotDisabledIndex < 0)
- return;
- const removeTagValue = selected[lastNotDisabledIndex];
- selected.splice(lastNotDisabledIndex, 1);
- const option = states.cachedOptions[lastNotDisabledIndex];
- states.cachedOptions.splice(lastNotDisabledIndex, 1);
- removeNewOption(option);
- update2(selected);
- emit("remove-tag", removeTagValue);
- }
- };
- const handleClear = () => {
- let emptyValue;
- if (isArray(props2.modelValue)) {
- emptyValue = [];
- } else {
- emptyValue = valueOnClear.value;
- }
- states.selectedLabel = "";
- expanded.value = false;
- update2(emptyValue);
- emit("clear");
- clearAllNewOption();
- focus();
- };
- const onKeyboardNavigate = (direction2, hoveringIndex = void 0) => {
- const options = filteredOptions.value;
- if (!["forward", "backward"].includes(direction2) || selectDisabled.value || options.length <= 0 || optionsAllDisabled.value || isComposing.value) {
- return;
- }
- if (!expanded.value) {
- return toggleMenu();
- }
- if (isUndefined2(hoveringIndex)) {
- hoveringIndex = states.hoveringIndex;
- }
- let newIndex = -1;
- if (direction2 === "forward") {
- newIndex = hoveringIndex + 1;
- if (newIndex >= options.length) {
- newIndex = 0;
- }
- } else if (direction2 === "backward") {
- newIndex = hoveringIndex - 1;
- if (newIndex < 0 || newIndex >= options.length) {
- newIndex = options.length - 1;
- }
- }
- const option = options[newIndex];
- if (getDisabled(option) || option.type === "Group") {
- return onKeyboardNavigate(direction2, newIndex);
- } else {
- states.hoveringIndex = newIndex;
- scrollToItem(newIndex);
- }
- };
- const onKeyboardSelect = () => {
- if (!expanded.value) {
- return toggleMenu();
- } else if (~states.hoveringIndex && filteredOptions.value[states.hoveringIndex]) {
- onSelect(filteredOptions.value[states.hoveringIndex]);
- }
- };
- const onHoverOption = (idx) => {
- states.hoveringIndex = idx != null ? idx : -1;
- };
- const updateHoveringIndex = () => {
- if (!props2.multiple) {
- states.hoveringIndex = filteredOptions.value.findIndex((item) => {
- return getValueKey(getValue3(item)) === getValueKey(props2.modelValue);
- });
- } else {
- states.hoveringIndex = filteredOptions.value.findIndex((item) => props2.modelValue.some((modelValue) => getValueKey(modelValue) === getValueKey(getValue3(item))));
- }
- };
- const onInput = (event) => {
- states.inputValue = event.target.value;
- if (props2.remote) {
- debouncedOnInputChange();
- } else {
- return onInputChange();
- }
- };
- const handleClickOutside = (event) => {
- expanded.value = false;
- if (isFocused.value) {
- const _event2 = new FocusEvent("blur", event);
- handleBlur(_event2);
- }
- };
- const handleMenuEnter = () => {
- states.isBeforeHide = false;
- return nextTick(() => {
- if (~indexRef.value) {
- scrollToItem(states.hoveringIndex);
- }
- });
- };
- const scrollToItem = (index) => {
- menuRef.value.scrollToItem(index);
- };
- const getOption = (value, cachedOptions) => {
- const selectValue = getValueKey(value);
- if (allOptionsValueMap.value.has(selectValue)) {
- const { option } = allOptionsValueMap.value.get(selectValue);
- return option;
- }
- if (cachedOptions && cachedOptions.length) {
- const option = cachedOptions.find((option2) => getValueKey(getValue3(option2)) === selectValue);
- if (option) {
- return option;
- }
- }
- return {
- [aliasProps.value.value]: value,
- [aliasProps.value.label]: value
- };
- };
- const initStates = (needUpdateSelectedLabel = false) => {
- if (props2.multiple) {
- if (props2.modelValue.length > 0) {
- const cachedOptions = states.cachedOptions.slice();
- states.cachedOptions.length = 0;
- states.previousValue = props2.modelValue.toString();
- for (const value of props2.modelValue) {
- const option = getOption(value, cachedOptions);
- states.cachedOptions.push(option);
- }
- } else {
- states.cachedOptions = [];
- states.previousValue = void 0;
- }
- } else {
- if (hasModelValue.value) {
- states.previousValue = props2.modelValue;
- const options = filteredOptions.value;
- const selectedItemIndex = options.findIndex((option) => getValueKey(getValue3(option)) === getValueKey(props2.modelValue));
- if (~selectedItemIndex) {
- states.selectedLabel = getLabel(options[selectedItemIndex]);
- } else {
- if (!states.selectedLabel || needUpdateSelectedLabel) {
- states.selectedLabel = getValueKey(props2.modelValue);
- }
- }
- } else {
- states.selectedLabel = "";
- states.previousValue = void 0;
- }
- }
- clearAllNewOption();
- calculatePopperSize();
- };
- watch(() => props2.fitInputWidth, () => {
- calculatePopperSize();
- });
- watch(expanded, (val) => {
- if (val) {
- if (!props2.persistent) {
- calculatePopperSize();
- }
- handleQueryChange("");
- } else {
- states.inputValue = "";
- states.previousQuery = null;
- states.isBeforeHide = true;
- createNewOption("");
- }
- emit("visible-change", val);
- });
- watch(() => props2.modelValue, (val, oldVal) => {
- var _a2;
- const isValEmpty = !val || isArray(val) && val.length === 0;
- if (isValEmpty || props2.multiple && !isEqual_default(val.toString(), states.previousValue) || !props2.multiple && getValueKey(val) !== getValueKey(states.previousValue)) {
- initStates(true);
- }
- if (!isEqual_default(val, oldVal) && props2.validateEvent) {
- (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change").catch((err) => debugWarn());
- }
- }, {
- deep: true
- });
- watch(() => props2.options, () => {
- const input = inputRef.value;
- if (!input || input && document.activeElement !== input) {
- initStates();
- }
- }, {
- deep: true,
- flush: "post"
- });
- watch(() => filteredOptions.value, () => {
- calculatePopperSize();
- return menuRef.value && nextTick(menuRef.value.resetScrollTop);
- });
- watchEffect(() => {
- if (states.isBeforeHide)
- return;
- updateOptions2();
- });
- watchEffect(() => {
- const { valueKey, options } = props2;
- const duplicateValue = /* @__PURE__ */ new Map();
- for (const item of options) {
- const optionValue = getValue3(item);
- let v2 = optionValue;
- if (isObject(v2)) {
- v2 = get_default(optionValue, valueKey);
- }
- if (duplicateValue.get(v2)) {
- break;
- } else {
- duplicateValue.set(v2, true);
- }
- }
- });
- onMounted(() => {
- initStates();
- });
- useResizeObserver(selectRef, handleResize);
- useResizeObserver(selectionRef, resetSelectionWidth);
- useResizeObserver(menuRef, updateTooltip);
- useResizeObserver(wrapperRef, updateTooltip);
- useResizeObserver(tagMenuRef, updateTagTooltip);
- useResizeObserver(collapseItemRef, resetCollapseItemWidth);
- return {
- inputId,
- collapseTagSize,
- currentPlaceholder,
- expanded,
- emptyText,
- popupHeight,
- debounce: debounce$1,
- allOptions,
- filteredOptions,
- iconComponent,
- iconReverse,
- tagStyle,
- collapseTagStyle,
- popperSize,
- dropdownMenuVisible,
- hasModelValue,
- shouldShowPlaceholder,
- selectDisabled,
- selectSize,
- needStatusIcon,
- showClearBtn,
- states,
- isFocused,
- nsSelect,
- nsInput,
- inputRef,
- menuRef,
- tagMenuRef,
- tooltipRef,
- tagTooltipRef,
- selectRef,
- wrapperRef,
- selectionRef,
- prefixRef,
- suffixRef,
- collapseItemRef,
- popperRef,
- validateState,
- validateIcon,
- showTagList,
- collapseTagList,
- debouncedOnInputChange,
- deleteTag,
- getLabel,
- getValue: getValue3,
- getDisabled,
- getValueKey,
- handleClear,
- handleClickOutside,
- handleDel,
- handleEsc,
- focus,
- blur,
- handleMenuEnter,
- handleResize,
- resetSelectionWidth,
- updateTooltip,
- updateTagTooltip,
- updateOptions: updateOptions2,
- toggleMenu,
- scrollTo: scrollToItem,
- onInput,
- onKeyboardNavigate,
- onKeyboardSelect,
- onSelect,
- onHover: onHoverOption,
- handleCompositionStart,
- handleCompositionEnd,
- handleCompositionUpdate
- };
- };
- // node_modules/element-plus/es/components/select-v2/src/select.mjs
- var _sfc_main410 = defineComponent({
- name: "ElSelectV2",
- components: {
- ElSelectMenu: ElSelectMenu2,
- ElTag,
- ElTooltip,
- ElIcon
- },
- directives: { ClickOutside },
- props: selectV2Props,
- emits: selectV2Emits,
- setup(props2, { emit }) {
- const modelValue = computed(() => {
- const { modelValue: rawModelValue, multiple } = props2;
- const fallback = multiple ? [] : void 0;
- if (isArray(rawModelValue)) {
- return multiple ? rawModelValue : fallback;
- }
- return multiple ? fallback : rawModelValue;
- });
- const API = useSelect2(reactive({
- ...toRefs(props2),
- modelValue
- }), emit);
- const { calculatorRef, inputStyle } = useCalcInputWidth();
- provide(selectV2InjectionKey, {
- props: reactive({
- ...toRefs(props2),
- height: API.popupHeight,
- modelValue
- }),
- expanded: API.expanded,
- tooltipRef: API.tooltipRef,
- onSelect: API.onSelect,
- onHover: API.onHover,
- onKeyboardNavigate: API.onKeyboardNavigate,
- onKeyboardSelect: API.onKeyboardSelect
- });
- const selectedLabel = computed(() => {
- if (!props2.multiple) {
- return API.states.selectedLabel;
- }
- return API.states.cachedOptions.map((i) => i.label);
- });
- return {
- ...API,
- modelValue,
- selectedLabel,
- calculatorRef,
- inputStyle
- };
- }
- });
- function _sfc_render20(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_tag = resolveComponent("el-tag");
- const _component_el_tooltip = resolveComponent("el-tooltip");
- const _component_el_icon = resolveComponent("el-icon");
- const _component_el_select_menu = resolveComponent("el-select-menu");
- const _directive_click_outside = resolveDirective("click-outside");
- return withDirectives((openBlock(), createElementBlock("div", {
- ref: "selectRef",
- class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
- onMouseenter: ($event) => _ctx.states.inputHovering = true,
- onMouseleave: ($event) => _ctx.states.inputHovering = false
- }, [
- createVNode(_component_el_tooltip, {
- ref: "tooltipRef",
- visible: _ctx.dropdownMenuVisible,
- teleported: _ctx.teleported,
- "popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
- "popper-style": _ctx.popperStyle,
- "gpu-acceleration": false,
- "stop-popper-mouse-event": false,
- "popper-options": _ctx.popperOptions,
- "fallback-placements": _ctx.fallbackPlacements,
- effect: _ctx.effect,
- placement: _ctx.placement,
- pure: "",
- transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
- trigger: "click",
- persistent: _ctx.persistent,
- "append-to": _ctx.appendTo,
- "show-arrow": _ctx.showArrow,
- offset: _ctx.offset,
- onBeforeShow: _ctx.handleMenuEnter,
- onHide: ($event) => _ctx.states.isBeforeHide = false
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- ref: "wrapperRef",
- class: normalizeClass([
- _ctx.nsSelect.e("wrapper"),
- _ctx.nsSelect.is("focused", _ctx.isFocused),
- _ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
- _ctx.nsSelect.is("filterable", _ctx.filterable),
- _ctx.nsSelect.is("disabled", _ctx.selectDisabled)
- ]),
- onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
- }, [
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
- key: 0,
- ref: "prefixRef",
- class: normalizeClass(_ctx.nsSelect.e("prefix"))
- }, [
- renderSlot(_ctx.$slots, "prefix")
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- ref: "selectionRef",
- class: normalizeClass([
- _ctx.nsSelect.e("selection"),
- _ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.modelValue.length)
- ])
- }, [
- _ctx.multiple ? renderSlot(_ctx.$slots, "tag", {
- key: 0,
- data: _ctx.states.cachedOptions,
- deleteTag: _ctx.deleteTag,
- selectDisabled: _ctx.selectDisabled
- }, () => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
- return openBlock(), createElementBlock("div", {
- key: _ctx.getValueKey(_ctx.getValue(item)),
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
- }, [
- createVNode(_component_el_tag, {
- closable: !_ctx.selectDisabled && !_ctx.getDisabled(item),
- size: _ctx.collapseTagSize,
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": "",
- style: normalizeStyle(_ctx.tagStyle),
- onClose: ($event) => _ctx.deleteTag($event, item)
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
- }, [
- renderSlot(_ctx.$slots, "label", {
- label: _ctx.getLabel(item),
- value: _ctx.getValue(item)
- }, () => [
- createTextVNode(toDisplayString(_ctx.getLabel(item)), 1)
- ])
- ], 2)
- ]),
- _: 2
- }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
- ], 2);
- }), 128)),
- _ctx.collapseTags && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
- key: 0,
- ref: "tagTooltipRef",
- disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
- "fallback-placements": ["bottom", "top", "right", "left"],
- effect: _ctx.effect,
- placement: "bottom",
- "popper-class": _ctx.popperClass,
- "popper-style": _ctx.popperStyle,
- teleported: _ctx.teleported
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- ref: "collapseItemRef",
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
- }, [
- createVNode(_component_el_tag, {
- closable: false,
- size: _ctx.collapseTagSize,
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- style: normalizeStyle(_ctx.collapseTagStyle),
- "disable-transitions": ""
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
- }, " + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags), 3)
- ]),
- _: 1
- }, 8, ["size", "type", "effect", "style"])
- ], 2)
- ]),
- content: withCtx(() => [
- createBaseVNode("div", {
- ref: "tagMenuRef",
- class: normalizeClass(_ctx.nsSelect.e("selection"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (selected) => {
- return openBlock(), createElementBlock("div", {
- key: _ctx.getValueKey(_ctx.getValue(selected)),
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
- }, [
- createVNode(_component_el_tag, {
- class: "in-tooltip",
- closable: !_ctx.selectDisabled && !_ctx.getDisabled(selected),
- size: _ctx.collapseTagSize,
- type: _ctx.tagType,
- effect: _ctx.tagEffect,
- "disable-transitions": "",
- onClose: ($event) => _ctx.deleteTag($event, selected)
- }, {
- default: withCtx(() => [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
- }, [
- renderSlot(_ctx.$slots, "label", {
- label: _ctx.getLabel(selected),
- value: _ctx.getValue(selected)
- }, () => [
- createTextVNode(toDisplayString(_ctx.getLabel(selected)), 1)
- ])
- ], 2)
- ]),
- _: 2
- }, 1032, ["closable", "size", "type", "effect", "onClose"])
- ], 2);
- }), 128))
- ], 2)
- ]),
- _: 3
- }, 8, ["disabled", "effect", "popper-class", "popper-style", "teleported"])) : createCommentVNode("v-if", true)
- ]) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass([
- _ctx.nsSelect.e("selected-item"),
- _ctx.nsSelect.e("input-wrapper"),
- _ctx.nsSelect.is("hidden", !_ctx.filterable)
- ])
- }, [
- withDirectives(createBaseVNode("input", {
- id: _ctx.inputId,
- ref: "inputRef",
- "onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
- style: normalizeStyle(_ctx.inputStyle),
- autocomplete: _ctx.autocomplete,
- tabindex: _ctx.tabindex,
- "aria-autocomplete": "list",
- "aria-haspopup": "listbox",
- autocapitalize: "off",
- "aria-expanded": _ctx.expanded,
- "aria-label": _ctx.ariaLabel,
- class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
- disabled: _ctx.selectDisabled,
- role: "combobox",
- readonly: !_ctx.filterable,
- spellcheck: "false",
- type: "text",
- name: _ctx.name,
- onInput: _ctx.onInput,
- onCompositionstart: _ctx.handleCompositionStart,
- onCompositionupdate: _ctx.handleCompositionUpdate,
- onCompositionend: _ctx.handleCompositionEnd,
- onKeydown: [
- withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"]),
- withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"]),
- withKeys(withModifiers(_ctx.onKeyboardSelect, ["stop", "prevent"]), ["enter"]),
- withKeys(withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
- withKeys(withModifiers(_ctx.handleDel, ["stop"]), ["delete"])
- ],
- onClick: withModifiers(_ctx.toggleMenu, ["stop"])
- }, null, 46, ["id", "onUpdate:modelValue", "autocomplete", "tabindex", "aria-expanded", "aria-label", "disabled", "readonly", "name", "onInput", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown", "onClick"]), [
- [vModelText, _ctx.states.inputValue]
- ]),
- _ctx.filterable ? (openBlock(), createElementBlock("span", {
- key: 0,
- ref: "calculatorRef",
- "aria-hidden": "true",
- class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
- textContent: toDisplayString(_ctx.states.inputValue)
- }, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
- ], 2),
- _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([
- _ctx.nsSelect.e("selected-item"),
- _ctx.nsSelect.e("placeholder"),
- _ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
- ])
- }, [
- _ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
- key: 0,
- label: _ctx.currentPlaceholder,
- value: _ctx.modelValue
- }, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
- ]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
- ], 2)) : createCommentVNode("v-if", true)
- ], 2),
- createBaseVNode("div", {
- ref: "suffixRef",
- class: normalizeClass(_ctx.nsSelect.e("suffix"))
- }, [
- _ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
- key: 0,
- class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsInput.e("icon"), _ctx.iconReverse])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
- ]),
- _: 1
- }, 8, ["class"])), [
- [vShow, !_ctx.showClearBtn]
- ]) : createCommentVNode("v-if", true),
- _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
- key: 1,
- class: normalizeClass([
- _ctx.nsSelect.e("caret"),
- _ctx.nsInput.e("icon"),
- _ctx.nsSelect.e("clear")
- ]),
- onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
- _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
- key: 2,
- class: normalizeClass([
- _ctx.nsInput.e("icon"),
- _ctx.nsInput.e("validateIcon"),
- _ctx.nsInput.is("loading", _ctx.validateState === "validating")
- ])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 10, ["onClick"])
- ]),
- content: withCtx(() => [
- createVNode(_component_el_select_menu, {
- ref: "menuRef",
- data: _ctx.filteredOptions,
- width: _ctx.popperSize,
- "hovering-index": _ctx.states.hoveringIndex,
- "scrollbar-always-on": _ctx.scrollbarAlwaysOn
- }, createSlots({
- default: withCtx((scope) => [
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(scope)))
- ]),
- _: 2
- }, [
- _ctx.$slots.header ? {
- name: "header",
- fn: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "header")
- ], 10, ["onClick"])
- ])
- } : void 0,
- _ctx.$slots.loading && _ctx.loading ? {
- name: "loading",
- fn: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
- }, [
- renderSlot(_ctx.$slots, "loading")
- ], 2)
- ])
- } : _ctx.loading || _ctx.filteredOptions.length === 0 ? {
- name: "empty",
- fn: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.emptyText), 1)
- ])
- ], 2)
- ])
- } : void 0,
- _ctx.$slots.footer ? {
- name: "footer",
- fn: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 10, ["onClick"])
- ])
- } : void 0
- ]), 1032, ["data", "width", "hovering-index", "scrollbar-always-on"])
- ]),
- _: 3
- }, 8, ["visible", "teleported", "popper-class", "popper-style", "popper-options", "fallback-placements", "effect", "placement", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
- ], 42, ["onMouseenter", "onMouseleave"])), [
- [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
- ]);
- }
- var Select2 = _export_sfc(_sfc_main410, [["render", _sfc_render20], ["__file", "select.vue"]]);
- // node_modules/element-plus/es/components/select-v2/index.mjs
- var ElSelectV2 = withInstall(Select2);
- // node_modules/element-plus/es/components/skeleton/src/skeleton.mjs
- var skeletonProps = buildProps({
- animated: Boolean,
- count: {
- type: Number,
- default: 1
- },
- rows: {
- type: Number,
- default: 3
- },
- loading: {
- type: Boolean,
- default: true
- },
- throttle: {
- type: definePropType([Number, Object])
- }
- });
- // node_modules/element-plus/es/components/skeleton/src/skeleton-item.mjs
- var skeletonItemProps = buildProps({
- variant: {
- type: String,
- values: [
- "circle",
- "rect",
- "h1",
- "h3",
- "text",
- "caption",
- "p",
- "image",
- "button"
- ],
- default: "text"
- }
- });
- // node_modules/element-plus/es/components/skeleton/src/skeleton-item2.mjs
- var __default__88 = defineComponent({
- name: "ElSkeletonItem"
- });
- var _sfc_main411 = defineComponent({
- ...__default__88,
- props: skeletonItemProps,
- setup(__props) {
- const ns = useNamespace("skeleton");
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).e("item"), unref(ns).e(_ctx.variant)])
- }, [
- _ctx.variant === "image" ? (openBlock(), createBlock(unref(picture_filled_default), { key: 0 })) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var SkeletonItem = _export_sfc(_sfc_main411, [["__file", "skeleton-item.vue"]]);
- // node_modules/element-plus/es/hooks/use-throttle-render/index.mjs
- var useThrottleRender = (loading, throttle2 = 0) => {
- if (throttle2 === 0)
- return loading;
- const initVal = isObject(throttle2) && Boolean(throttle2.initVal);
- const throttled = ref(initVal);
- let timeoutHandle = null;
- const dispatchThrottling = (timer) => {
- if (isUndefined2(timer)) {
- throttled.value = loading.value;
- return;
- }
- if (timeoutHandle) {
- clearTimeout(timeoutHandle);
- }
- timeoutHandle = setTimeout(() => {
- throttled.value = loading.value;
- }, timer);
- };
- const dispatcher = (type4) => {
- if (type4 === "leading") {
- if (isNumber2(throttle2)) {
- dispatchThrottling(throttle2);
- } else {
- dispatchThrottling(throttle2.leading);
- }
- } else {
- if (isObject(throttle2)) {
- dispatchThrottling(throttle2.trailing);
- } else {
- throttled.value = false;
- }
- }
- };
- onMounted(() => dispatcher("leading"));
- watch(() => loading.value, (val) => {
- dispatcher(val ? "leading" : "trailing");
- });
- return throttled;
- };
- // node_modules/element-plus/es/components/skeleton/src/skeleton2.mjs
- var __default__89 = defineComponent({
- name: "ElSkeleton"
- });
- var _sfc_main412 = defineComponent({
- ...__default__89,
- props: skeletonProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const ns = useNamespace("skeleton");
- const uiLoading = useThrottleRender(toRef(props2, "loading"), props2.throttle);
- expose({
- uiLoading
- });
- return (_ctx, _cache) => {
- return unref(uiLoading) ? (openBlock(), createElementBlock("div", mergeProps({
- key: 0,
- class: [unref(ns).b(), unref(ns).is("animated", _ctx.animated)]
- }, _ctx.$attrs), [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (i) => {
- return openBlock(), createElementBlock(Fragment, { key: i }, [
- unref(uiLoading) ? renderSlot(_ctx.$slots, "template", { key: i }, () => [
- createVNode(SkeletonItem, {
- class: normalizeClass(unref(ns).is("first")),
- variant: "p"
- }, null, 8, ["class"]),
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, (item) => {
- return openBlock(), createBlock(SkeletonItem, {
- key: item,
- class: normalizeClass([
- unref(ns).e("paragraph"),
- unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
- ]),
- variant: "p"
- }, null, 8, ["class"]);
- }), 128))
- ]) : createCommentVNode("v-if", true)
- ], 64);
- }), 128))
- ], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)));
- };
- }
- });
- var Skeleton = _export_sfc(_sfc_main412, [["__file", "skeleton.vue"]]);
- // node_modules/element-plus/es/components/skeleton/index.mjs
- var ElSkeleton = withInstall(Skeleton, {
- SkeletonItem
- });
- var ElSkeletonItem = withNoopInstall(SkeletonItem);
- // node_modules/element-plus/es/components/slider/src/constants.mjs
- var sliderContextKey = Symbol("sliderContextKey");
- // node_modules/element-plus/es/components/slider/src/slider2.mjs
- var sliderProps = buildProps({
- modelValue: {
- type: definePropType([Number, Array]),
- default: 0
- },
- id: {
- type: String,
- default: void 0
- },
- min: {
- type: Number,
- default: 0
- },
- max: {
- type: Number,
- default: 100
- },
- step: {
- type: Number,
- default: 1
- },
- showInput: Boolean,
- showInputControls: {
- type: Boolean,
- default: true
- },
- size: useSizeProp,
- inputSize: useSizeProp,
- showStops: Boolean,
- showTooltip: {
- type: Boolean,
- default: true
- },
- formatTooltip: {
- type: definePropType(Function),
- default: void 0
- },
- disabled: Boolean,
- range: Boolean,
- vertical: Boolean,
- height: String,
- debounce: {
- type: Number,
- default: 300
- },
- rangeStartLabel: {
- type: String,
- default: void 0
- },
- rangeEndLabel: {
- type: String,
- default: void 0
- },
- formatValueText: {
- type: definePropType(Function),
- default: void 0
- },
- tooltipClass: {
- type: String,
- default: void 0
- },
- placement: {
- type: String,
- values: Ee,
- default: "top"
- },
- marks: {
- type: definePropType(Object)
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- persistent: {
- type: Boolean,
- default: true
- },
- ...useAriaProps(["ariaLabel"])
- });
- var isValidValue = (value) => isNumber2(value) || isArray(value) && value.every(isNumber2);
- var sliderEmits = {
- [UPDATE_MODEL_EVENT]: isValidValue,
- [INPUT_EVENT]: isValidValue,
- [CHANGE_EVENT]: isValidValue
- };
- // node_modules/element-plus/es/components/slider/src/button.mjs
- var sliderButtonProps = buildProps({
- modelValue: {
- type: Number,
- default: 0
- },
- vertical: Boolean,
- tooltipClass: String,
- placement: {
- type: String,
- values: Ee,
- default: "top"
- }
- });
- var sliderButtonEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isNumber2(value)
- };
- // node_modules/element-plus/es/components/slider/src/composables/use-slider-button.mjs
- var useTooltip = (props2, formatTooltip, showTooltip) => {
- const tooltip = ref();
- const tooltipVisible = ref(false);
- const enableFormat = computed(() => {
- return formatTooltip.value instanceof Function;
- });
- const formatValue = computed(() => {
- return enableFormat.value && formatTooltip.value(props2.modelValue) || props2.modelValue;
- });
- const displayTooltip = debounce_default(() => {
- showTooltip.value && (tooltipVisible.value = true);
- }, 50);
- const hideTooltip = debounce_default(() => {
- showTooltip.value && (tooltipVisible.value = false);
- }, 50);
- return {
- tooltip,
- tooltipVisible,
- formatValue,
- displayTooltip,
- hideTooltip
- };
- };
- var useSliderButton = (props2, initData, emit) => {
- const {
- disabled,
- min: min4,
- max: max4,
- step: step2,
- showTooltip,
- persistent,
- precision,
- sliderSize,
- formatTooltip,
- emitChange,
- resetSize,
- updateDragging
- } = inject(sliderContextKey);
- const { tooltip, tooltipVisible, formatValue, displayTooltip, hideTooltip } = useTooltip(props2, formatTooltip, showTooltip);
- const button = ref();
- const currentPosition = computed(() => {
- return `${(props2.modelValue - min4.value) / (max4.value - min4.value) * 100}%`;
- });
- const wrapperStyle = computed(() => {
- return props2.vertical ? { bottom: currentPosition.value } : { left: currentPosition.value };
- });
- const handleMouseEnter = () => {
- initData.hovering = true;
- displayTooltip();
- };
- const handleMouseLeave = () => {
- initData.hovering = false;
- if (!initData.dragging) {
- hideTooltip();
- }
- };
- const onButtonDown = (event) => {
- if (disabled.value)
- return;
- event.preventDefault();
- onDragStart(event);
- window.addEventListener("mousemove", onDragging);
- window.addEventListener("touchmove", onDragging);
- window.addEventListener("mouseup", onDragEnd);
- window.addEventListener("touchend", onDragEnd);
- window.addEventListener("contextmenu", onDragEnd);
- button.value.focus();
- };
- const incrementPosition = (amount) => {
- if (disabled.value)
- return;
- initData.newPosition = Number.parseFloat(currentPosition.value) + amount / (max4.value - min4.value) * 100;
- setPosition(initData.newPosition);
- emitChange();
- };
- const onLeftKeyDown = () => {
- incrementPosition(-step2.value);
- };
- const onRightKeyDown = () => {
- incrementPosition(step2.value);
- };
- const onPageDownKeyDown = () => {
- incrementPosition(-step2.value * 4);
- };
- const onPageUpKeyDown = () => {
- incrementPosition(step2.value * 4);
- };
- const onHomeKeyDown = () => {
- if (disabled.value)
- return;
- setPosition(0);
- emitChange();
- };
- const onEndKeyDown = () => {
- if (disabled.value)
- return;
- setPosition(100);
- emitChange();
- };
- const onKeyDown = (event) => {
- let isPreventDefault = true;
- switch (event.code) {
- case EVENT_CODE.left:
- case EVENT_CODE.down:
- onLeftKeyDown();
- break;
- case EVENT_CODE.right:
- case EVENT_CODE.up:
- onRightKeyDown();
- break;
- case EVENT_CODE.home:
- onHomeKeyDown();
- break;
- case EVENT_CODE.end:
- onEndKeyDown();
- break;
- case EVENT_CODE.pageDown:
- onPageDownKeyDown();
- break;
- case EVENT_CODE.pageUp:
- onPageUpKeyDown();
- break;
- default:
- isPreventDefault = false;
- break;
- }
- isPreventDefault && event.preventDefault();
- };
- const getClientXY2 = (event) => {
- let clientX;
- let clientY;
- if (event.type.startsWith("touch")) {
- clientY = event.touches[0].clientY;
- clientX = event.touches[0].clientX;
- } else {
- clientY = event.clientY;
- clientX = event.clientX;
- }
- return {
- clientX,
- clientY
- };
- };
- const onDragStart = (event) => {
- initData.dragging = true;
- initData.isClick = true;
- const { clientX, clientY } = getClientXY2(event);
- if (props2.vertical) {
- initData.startY = clientY;
- } else {
- initData.startX = clientX;
- }
- initData.startPosition = Number.parseFloat(currentPosition.value);
- initData.newPosition = initData.startPosition;
- };
- const onDragging = (event) => {
- if (initData.dragging) {
- initData.isClick = false;
- displayTooltip();
- resetSize();
- let diff;
- const { clientX, clientY } = getClientXY2(event);
- if (props2.vertical) {
- initData.currentY = clientY;
- diff = (initData.startY - initData.currentY) / sliderSize.value * 100;
- } else {
- initData.currentX = clientX;
- diff = (initData.currentX - initData.startX) / sliderSize.value * 100;
- }
- initData.newPosition = initData.startPosition + diff;
- setPosition(initData.newPosition);
- }
- };
- const onDragEnd = () => {
- if (initData.dragging) {
- setTimeout(() => {
- initData.dragging = false;
- if (!initData.hovering) {
- hideTooltip();
- }
- if (!initData.isClick) {
- setPosition(initData.newPosition);
- }
- emitChange();
- }, 0);
- window.removeEventListener("mousemove", onDragging);
- window.removeEventListener("touchmove", onDragging);
- window.removeEventListener("mouseup", onDragEnd);
- window.removeEventListener("touchend", onDragEnd);
- window.removeEventListener("contextmenu", onDragEnd);
- }
- };
- const setPosition = async (newPosition) => {
- if (newPosition === null || Number.isNaN(+newPosition))
- return;
- if (newPosition < 0) {
- newPosition = 0;
- } else if (newPosition > 100) {
- newPosition = 100;
- }
- const lengthPerStep = 100 / ((max4.value - min4.value) / step2.value);
- const steps = Math.round(newPosition / lengthPerStep);
- let value = steps * lengthPerStep * (max4.value - min4.value) * 0.01 + min4.value;
- value = Number.parseFloat(value.toFixed(precision.value));
- if (value !== props2.modelValue) {
- emit(UPDATE_MODEL_EVENT, value);
- }
- if (!initData.dragging && props2.modelValue !== initData.oldValue) {
- initData.oldValue = props2.modelValue;
- }
- await nextTick();
- initData.dragging && displayTooltip();
- tooltip.value.updatePopper();
- };
- watch(() => initData.dragging, (val) => {
- updateDragging(val);
- });
- useEventListener(button, "touchstart", onButtonDown, { passive: false });
- return {
- disabled,
- button,
- tooltip,
- tooltipVisible,
- showTooltip,
- persistent,
- wrapperStyle,
- formatValue,
- handleMouseEnter,
- handleMouseLeave,
- onButtonDown,
- onKeyDown,
- setPosition
- };
- };
- // node_modules/element-plus/es/components/slider/src/button2.mjs
- var __default__90 = defineComponent({
- name: "ElSliderButton"
- });
- var _sfc_main413 = defineComponent({
- ...__default__90,
- props: sliderButtonProps,
- emits: sliderButtonEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("slider");
- const initData = reactive({
- hovering: false,
- dragging: false,
- isClick: false,
- startX: 0,
- currentX: 0,
- startY: 0,
- currentY: 0,
- startPosition: 0,
- newPosition: 0,
- oldValue: props2.modelValue
- });
- const tooltipPersistent = computed(() => !showTooltip.value ? false : persistent.value);
- const {
- disabled,
- button,
- tooltip,
- showTooltip,
- persistent,
- tooltipVisible,
- wrapperStyle,
- formatValue,
- handleMouseEnter,
- handleMouseLeave,
- onButtonDown,
- onKeyDown,
- setPosition
- } = useSliderButton(props2, initData, emit);
- const { hovering, dragging } = toRefs(initData);
- expose({
- onButtonDown,
- onKeyDown,
- setPosition,
- hovering,
- dragging
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "button",
- ref: button,
- class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
- style: normalizeStyle(unref(wrapperStyle)),
- tabindex: unref(disabled) ? -1 : 0,
- onMouseenter: unref(handleMouseEnter),
- onMouseleave: unref(handleMouseLeave),
- onMousedown: unref(onButtonDown),
- onFocus: unref(handleMouseEnter),
- onBlur: unref(handleMouseLeave),
- onKeydown: unref(onKeyDown)
- }, [
- createVNode(unref(ElTooltip), {
- ref_key: "tooltip",
- ref: tooltip,
- visible: unref(tooltipVisible),
- placement: _ctx.placement,
- "fallback-placements": ["top", "bottom", "right", "left"],
- "stop-popper-mouse-event": false,
- "popper-class": _ctx.tooltipClass,
- disabled: !unref(showTooltip),
- persistent: unref(tooltipPersistent)
- }, {
- content: withCtx(() => [
- createBaseVNode("span", null, toDisplayString(unref(formatValue)), 1)
- ]),
- default: withCtx(() => [
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("button"), { hover: unref(hovering), dragging: unref(dragging) }])
- }, null, 2)
- ]),
- _: 1
- }, 8, ["visible", "placement", "popper-class", "disabled", "persistent"])
- ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"]);
- };
- }
- });
- var SliderButton = _export_sfc(_sfc_main413, [["__file", "button.vue"]]);
- // node_modules/element-plus/es/components/slider/src/marker.mjs
- var sliderMarkerProps = buildProps({
- mark: {
- type: definePropType([String, Object]),
- default: void 0
- }
- });
- var SliderMarker = defineComponent({
- name: "ElSliderMarker",
- props: sliderMarkerProps,
- setup(props2) {
- const ns = useNamespace("slider");
- const label = computed(() => {
- return isString(props2.mark) ? props2.mark : props2.mark.label;
- });
- const style = computed(() => isString(props2.mark) ? void 0 : props2.mark.style);
- return () => h("div", {
- class: ns.e("marks-text"),
- style: style.value
- }, label.value);
- }
- });
- // node_modules/element-plus/es/components/slider/src/composables/use-slide.mjs
- var useSlide = (props2, initData, emit) => {
- const { form: elForm, formItem: elFormItem } = useFormItem();
- const slider = shallowRef();
- const firstButton = ref();
- const secondButton = ref();
- const buttonRefs = {
- firstButton,
- secondButton
- };
- const sliderDisabled = computed(() => {
- return props2.disabled || (elForm == null ? void 0 : elForm.disabled) || false;
- });
- const minValue = computed(() => {
- return Math.min(initData.firstValue, initData.secondValue);
- });
- const maxValue = computed(() => {
- return Math.max(initData.firstValue, initData.secondValue);
- });
- const barSize = computed(() => {
- return props2.range ? `${100 * (maxValue.value - minValue.value) / (props2.max - props2.min)}%` : `${100 * (initData.firstValue - props2.min) / (props2.max - props2.min)}%`;
- });
- const barStart = computed(() => {
- return props2.range ? `${100 * (minValue.value - props2.min) / (props2.max - props2.min)}%` : "0%";
- });
- const runwayStyle = computed(() => {
- return props2.vertical ? { height: props2.height } : {};
- });
- const barStyle = computed(() => {
- return props2.vertical ? {
- height: barSize.value,
- bottom: barStart.value
- } : {
- width: barSize.value,
- left: barStart.value
- };
- });
- const resetSize = () => {
- if (slider.value) {
- const rect = slider.value.getBoundingClientRect();
- initData.sliderSize = rect[props2.vertical ? "height" : "width"];
- }
- };
- const getButtonRefByPercent = (percent) => {
- const targetValue = props2.min + percent * (props2.max - props2.min) / 100;
- if (!props2.range) {
- return firstButton;
- }
- let buttonRefName;
- if (Math.abs(minValue.value - targetValue) < Math.abs(maxValue.value - targetValue)) {
- buttonRefName = initData.firstValue < initData.secondValue ? "firstButton" : "secondButton";
- } else {
- buttonRefName = initData.firstValue > initData.secondValue ? "firstButton" : "secondButton";
- }
- return buttonRefs[buttonRefName];
- };
- const setPosition = (percent) => {
- const buttonRef = getButtonRefByPercent(percent);
- buttonRef.value.setPosition(percent);
- return buttonRef;
- };
- const setFirstValue = (firstValue) => {
- initData.firstValue = firstValue != null ? firstValue : props2.min;
- _emit(props2.range ? [minValue.value, maxValue.value] : firstValue != null ? firstValue : props2.min);
- };
- const setSecondValue = (secondValue) => {
- initData.secondValue = secondValue;
- if (props2.range) {
- _emit([minValue.value, maxValue.value]);
- }
- };
- const _emit = (val) => {
- emit(UPDATE_MODEL_EVENT, val);
- emit(INPUT_EVENT, val);
- };
- const emitChange = async () => {
- await nextTick();
- emit(CHANGE_EVENT, props2.range ? [minValue.value, maxValue.value] : props2.modelValue);
- };
- const handleSliderPointerEvent = (event) => {
- var _a2, _b, _c, _d, _e, _f;
- if (sliderDisabled.value || initData.dragging)
- return;
- resetSize();
- let newPercent = 0;
- if (props2.vertical) {
- const clientY = (_c = (_b = (_a2 = event.touches) == null ? void 0 : _a2.item(0)) == null ? void 0 : _b.clientY) != null ? _c : event.clientY;
- const sliderOffsetBottom = slider.value.getBoundingClientRect().bottom;
- newPercent = (sliderOffsetBottom - clientY) / initData.sliderSize * 100;
- } else {
- const clientX = (_f = (_e = (_d = event.touches) == null ? void 0 : _d.item(0)) == null ? void 0 : _e.clientX) != null ? _f : event.clientX;
- const sliderOffsetLeft = slider.value.getBoundingClientRect().left;
- newPercent = (clientX - sliderOffsetLeft) / initData.sliderSize * 100;
- }
- if (newPercent < 0 || newPercent > 100)
- return;
- return setPosition(newPercent);
- };
- const onSliderWrapperPrevent = (event) => {
- var _a2, _b;
- if (((_a2 = buttonRefs["firstButton"].value) == null ? void 0 : _a2.dragging) || ((_b = buttonRefs["secondButton"].value) == null ? void 0 : _b.dragging)) {
- event.preventDefault();
- }
- };
- const onSliderDown = async (event) => {
- const buttonRef = handleSliderPointerEvent(event);
- if (buttonRef) {
- await nextTick();
- buttonRef.value.onButtonDown(event);
- }
- };
- const onSliderClick = (event) => {
- const buttonRef = handleSliderPointerEvent(event);
- if (buttonRef) {
- emitChange();
- }
- };
- const onSliderMarkerDown = (position) => {
- if (sliderDisabled.value || initData.dragging)
- return;
- const buttonRef = setPosition(position);
- if (buttonRef) {
- emitChange();
- }
- };
- return {
- elFormItem,
- slider,
- firstButton,
- secondButton,
- sliderDisabled,
- minValue,
- maxValue,
- runwayStyle,
- barStyle,
- resetSize,
- setPosition,
- emitChange,
- onSliderWrapperPrevent,
- onSliderClick,
- onSliderDown,
- onSliderMarkerDown,
- setFirstValue,
- setSecondValue
- };
- };
- // node_modules/element-plus/es/components/slider/src/composables/use-stops.mjs
- var useStops = (props2, initData, minValue, maxValue) => {
- const stops = computed(() => {
- if (!props2.showStops || props2.min > props2.max)
- return [];
- if (props2.step === 0) {
- return [];
- }
- const stopCount = (props2.max - props2.min) / props2.step;
- const stepWidth = 100 * props2.step / (props2.max - props2.min);
- const result2 = Array.from({ length: stopCount - 1 }).map((_2, index) => (index + 1) * stepWidth);
- if (props2.range) {
- return result2.filter((step2) => {
- return step2 < 100 * (minValue.value - props2.min) / (props2.max - props2.min) || step2 > 100 * (maxValue.value - props2.min) / (props2.max - props2.min);
- });
- } else {
- return result2.filter((step2) => step2 > 100 * (initData.firstValue - props2.min) / (props2.max - props2.min));
- }
- });
- const getStopStyle = (position) => {
- return props2.vertical ? { bottom: `${position}%` } : { left: `${position}%` };
- };
- return {
- stops,
- getStopStyle
- };
- };
- // node_modules/element-plus/es/components/slider/src/composables/use-marks.mjs
- var useMarks = (props2) => {
- return computed(() => {
- if (!props2.marks) {
- return [];
- }
- const marksKeys = Object.keys(props2.marks);
- return marksKeys.map(Number.parseFloat).sort((a2, b2) => a2 - b2).filter((point) => point <= props2.max && point >= props2.min).map((point) => ({
- point,
- position: (point - props2.min) * 100 / (props2.max - props2.min),
- mark: props2.marks[point]
- }));
- });
- };
- // node_modules/element-plus/es/components/slider/src/composables/use-watch.mjs
- var useWatch = (props2, initData, minValue, maxValue, emit, elFormItem) => {
- const _emit = (val) => {
- emit(UPDATE_MODEL_EVENT, val);
- emit(INPUT_EVENT, val);
- };
- const valueChanged = () => {
- if (props2.range) {
- return ![minValue.value, maxValue.value].every((item, index) => item === initData.oldValue[index]);
- } else {
- return props2.modelValue !== initData.oldValue;
- }
- };
- const setValues = () => {
- var _a2, _b;
- if (props2.min > props2.max) {
- throwError("Slider", "min should not be greater than max.");
- }
- const val = props2.modelValue;
- if (props2.range && isArray(val)) {
- if (val[1] < props2.min) {
- _emit([props2.min, props2.min]);
- } else if (val[0] > props2.max) {
- _emit([props2.max, props2.max]);
- } else if (val[0] < props2.min) {
- _emit([props2.min, val[1]]);
- } else if (val[1] > props2.max) {
- _emit([val[0], props2.max]);
- } else {
- initData.firstValue = val[0];
- initData.secondValue = val[1];
- if (valueChanged()) {
- if (props2.validateEvent) {
- (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change").catch((err) => debugWarn());
- }
- initData.oldValue = val.slice();
- }
- }
- } else if (!props2.range && isNumber2(val) && !Number.isNaN(val)) {
- if (val < props2.min) {
- _emit(props2.min);
- } else if (val > props2.max) {
- _emit(props2.max);
- } else {
- initData.firstValue = val;
- if (valueChanged()) {
- if (props2.validateEvent) {
- (_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn());
- }
- initData.oldValue = val;
- }
- }
- }
- };
- setValues();
- watch(() => initData.dragging, (val) => {
- if (!val) {
- setValues();
- }
- });
- watch(() => props2.modelValue, (val, oldVal) => {
- if (initData.dragging || isArray(val) && isArray(oldVal) && val.every((item, index) => item === oldVal[index]) && initData.firstValue === val[0] && initData.secondValue === val[1]) {
- return;
- }
- setValues();
- }, {
- deep: true
- });
- watch(() => [props2.min, props2.max], () => {
- setValues();
- });
- };
- // node_modules/element-plus/es/components/slider/src/composables/use-lifecycle.mjs
- var useLifecycle = (props2, initData, resetSize) => {
- const sliderWrapper = ref();
- onMounted(async () => {
- if (props2.range) {
- if (isArray(props2.modelValue)) {
- initData.firstValue = Math.max(props2.min, props2.modelValue[0]);
- initData.secondValue = Math.min(props2.max, props2.modelValue[1]);
- } else {
- initData.firstValue = props2.min;
- initData.secondValue = props2.max;
- }
- initData.oldValue = [initData.firstValue, initData.secondValue];
- } else {
- if (!isNumber2(props2.modelValue) || Number.isNaN(props2.modelValue)) {
- initData.firstValue = props2.min;
- } else {
- initData.firstValue = Math.min(props2.max, Math.max(props2.min, props2.modelValue));
- }
- initData.oldValue = initData.firstValue;
- }
- useEventListener(window, "resize", resetSize);
- await nextTick();
- resetSize();
- });
- return {
- sliderWrapper
- };
- };
- // node_modules/element-plus/es/components/slider/src/slider.mjs
- var __default__91 = defineComponent({
- name: "ElSlider"
- });
- var _sfc_main414 = defineComponent({
- ...__default__91,
- props: sliderProps,
- emits: sliderEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("slider");
- const { t } = useLocale();
- const initData = reactive({
- firstValue: 0,
- secondValue: 0,
- oldValue: 0,
- dragging: false,
- sliderSize: 1
- });
- const {
- elFormItem,
- slider,
- firstButton,
- secondButton,
- sliderDisabled,
- minValue,
- maxValue,
- runwayStyle,
- barStyle,
- resetSize,
- emitChange,
- onSliderWrapperPrevent,
- onSliderClick,
- onSliderDown,
- onSliderMarkerDown,
- setFirstValue,
- setSecondValue
- } = useSlide(props2, initData, emit);
- const { stops, getStopStyle } = useStops(props2, initData, minValue, maxValue);
- const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext: elFormItem
- });
- const sliderWrapperSize = useFormSize();
- const sliderInputSize = computed(() => props2.inputSize || sliderWrapperSize.value);
- const groupLabel = computed(() => {
- return props2.ariaLabel || t("el.slider.defaultLabel", {
- min: props2.min,
- max: props2.max
- });
- });
- const firstButtonLabel = computed(() => {
- if (props2.range) {
- return props2.rangeStartLabel || t("el.slider.defaultRangeStartLabel");
- } else {
- return groupLabel.value;
- }
- });
- const firstValueText = computed(() => {
- return props2.formatValueText ? props2.formatValueText(firstValue.value) : `${firstValue.value}`;
- });
- const secondButtonLabel = computed(() => {
- return props2.rangeEndLabel || t("el.slider.defaultRangeEndLabel");
- });
- const secondValueText = computed(() => {
- return props2.formatValueText ? props2.formatValueText(secondValue.value) : `${secondValue.value}`;
- });
- const sliderKls = computed(() => [
- ns.b(),
- ns.m(sliderWrapperSize.value),
- ns.is("vertical", props2.vertical),
- { [ns.m("with-input")]: props2.showInput }
- ]);
- const markList = useMarks(props2);
- useWatch(props2, initData, minValue, maxValue, emit, elFormItem);
- const precision = computed(() => {
- const precisions = [props2.min, props2.max, props2.step].map((item) => {
- const decimal = `${item}`.split(".")[1];
- return decimal ? decimal.length : 0;
- });
- return Math.max.apply(null, precisions);
- });
- const { sliderWrapper } = useLifecycle(props2, initData, resetSize);
- const { firstValue, secondValue, sliderSize } = toRefs(initData);
- const updateDragging = (val) => {
- initData.dragging = val;
- };
- useEventListener(sliderWrapper, "touchstart", onSliderWrapperPrevent, {
- passive: false
- });
- useEventListener(sliderWrapper, "touchmove", onSliderWrapperPrevent, {
- passive: false
- });
- provide(sliderContextKey, {
- ...toRefs(props2),
- sliderSize,
- disabled: sliderDisabled,
- precision,
- emitChange,
- resetSize,
- updateDragging
- });
- expose({
- onSliderClick
- });
- return (_ctx, _cache) => {
- var _a2, _b;
- return openBlock(), createElementBlock("div", {
- id: _ctx.range ? unref(inputId) : void 0,
- ref_key: "sliderWrapper",
- ref: sliderWrapper,
- class: normalizeClass(unref(sliderKls)),
- role: _ctx.range ? "group" : void 0,
- "aria-label": _ctx.range && !unref(isLabeledByFormItem) ? unref(groupLabel) : void 0,
- "aria-labelledby": _ctx.range && unref(isLabeledByFormItem) ? (_a2 = unref(elFormItem)) == null ? void 0 : _a2.labelId : void 0
- }, [
- createBaseVNode("div", {
- ref_key: "slider",
- ref: slider,
- class: normalizeClass([
- unref(ns).e("runway"),
- { "show-input": _ctx.showInput && !_ctx.range },
- unref(ns).is("disabled", unref(sliderDisabled))
- ]),
- style: normalizeStyle(unref(runwayStyle)),
- onMousedown: unref(onSliderDown),
- onTouchstartPassive: unref(onSliderDown)
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("bar")),
- style: normalizeStyle(unref(barStyle))
- }, null, 6),
- createVNode(SliderButton, {
- id: !_ctx.range ? unref(inputId) : void 0,
- ref_key: "firstButton",
- ref: firstButton,
- "model-value": unref(firstValue),
- vertical: _ctx.vertical,
- "tooltip-class": _ctx.tooltipClass,
- placement: _ctx.placement,
- role: "slider",
- "aria-label": _ctx.range || !unref(isLabeledByFormItem) ? unref(firstButtonLabel) : void 0,
- "aria-labelledby": !_ctx.range && unref(isLabeledByFormItem) ? (_b = unref(elFormItem)) == null ? void 0 : _b.labelId : void 0,
- "aria-valuemin": _ctx.min,
- "aria-valuemax": _ctx.range ? unref(secondValue) : _ctx.max,
- "aria-valuenow": unref(firstValue),
- "aria-valuetext": unref(firstValueText),
- "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
- "aria-disabled": unref(sliderDisabled),
- "onUpdate:modelValue": unref(setFirstValue)
- }, 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"]),
- _ctx.range ? (openBlock(), createBlock(SliderButton, {
- key: 0,
- ref_key: "secondButton",
- ref: secondButton,
- "model-value": unref(secondValue),
- vertical: _ctx.vertical,
- "tooltip-class": _ctx.tooltipClass,
- placement: _ctx.placement,
- role: "slider",
- "aria-label": unref(secondButtonLabel),
- "aria-valuemin": unref(firstValue),
- "aria-valuemax": _ctx.max,
- "aria-valuenow": unref(secondValue),
- "aria-valuetext": unref(secondValueText),
- "aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
- "aria-disabled": unref(sliderDisabled),
- "onUpdate:modelValue": unref(setSecondValue)
- }, 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),
- _ctx.showStops ? (openBlock(), createElementBlock("div", { key: 1 }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(stops), (item, key) => {
- return openBlock(), createElementBlock("div", {
- key,
- class: normalizeClass(unref(ns).e("stop")),
- style: normalizeStyle(unref(getStopStyle)(item))
- }, null, 6);
- }), 128))
- ])) : createCommentVNode("v-if", true),
- unref(markList).length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
- createBaseVNode("div", null, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(markList), (item, key) => {
- return openBlock(), createElementBlock("div", {
- key,
- style: normalizeStyle(unref(getStopStyle)(item.position)),
- class: normalizeClass([unref(ns).e("stop"), unref(ns).e("marks-stop")])
- }, null, 6);
- }), 128))
- ]),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("marks"))
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(markList), (item, key) => {
- return openBlock(), createBlock(unref(SliderMarker), {
- key,
- mark: item.mark,
- style: normalizeStyle(unref(getStopStyle)(item.position)),
- onMousedown: withModifiers(($event) => unref(onSliderMarkerDown)(item.position), ["stop"])
- }, null, 8, ["mark", "style", "onMousedown"]);
- }), 128))
- ], 2)
- ], 64)) : createCommentVNode("v-if", true)
- ], 46, ["onMousedown", "onTouchstartPassive"]),
- _ctx.showInput && !_ctx.range ? (openBlock(), createBlock(unref(ElInputNumber), {
- key: 0,
- ref: "input",
- "model-value": unref(firstValue),
- class: normalizeClass(unref(ns).e("input")),
- step: _ctx.step,
- disabled: unref(sliderDisabled),
- controls: _ctx.showInputControls,
- min: _ctx.min,
- max: _ctx.max,
- precision: unref(precision),
- debounce: _ctx.debounce,
- size: unref(sliderInputSize),
- "onUpdate:modelValue": unref(setFirstValue),
- onChange: unref(emitChange)
- }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "debounce", "size", "onUpdate:modelValue", "onChange"])) : createCommentVNode("v-if", true)
- ], 10, ["id", "role", "aria-label", "aria-labelledby"]);
- };
- }
- });
- var Slider = _export_sfc(_sfc_main414, [["__file", "slider.vue"]]);
- // node_modules/element-plus/es/components/slider/index.mjs
- var ElSlider = withInstall(Slider);
- // node_modules/element-plus/es/components/space/src/item.mjs
- var spaceItemProps = buildProps({
- prefixCls: {
- type: String
- }
- });
- var SpaceItem = defineComponent({
- name: "ElSpaceItem",
- props: spaceItemProps,
- setup(props2, { slots }) {
- const ns = useNamespace("space");
- const classes = computed(() => `${props2.prefixCls || ns.b()}__item`);
- return () => h("div", { class: classes.value }, renderSlot(slots, "default"));
- }
- });
- // node_modules/element-plus/es/components/space/src/use-space.mjs
- var SIZE_MAP = {
- small: 8,
- default: 12,
- large: 16
- };
- function useSpace(props2) {
- const ns = useNamespace("space");
- const classes = computed(() => [ns.b(), ns.m(props2.direction), props2.class]);
- const horizontalSize = ref(0);
- const verticalSize = ref(0);
- const containerStyle = computed(() => {
- const wrapKls = props2.wrap || props2.fill ? { flexWrap: "wrap" } : {};
- const alignment = {
- alignItems: props2.alignment
- };
- const gap = {
- rowGap: `${verticalSize.value}px`,
- columnGap: `${horizontalSize.value}px`
- };
- return [wrapKls, alignment, gap, props2.style];
- });
- const itemStyle = computed(() => {
- return props2.fill ? { flexGrow: 1, minWidth: `${props2.fillRatio}%` } : {};
- });
- watchEffect(() => {
- const { size: size3 = "small", wrap: wrap2, direction: dir, fill: fill2 } = props2;
- if (isArray(size3)) {
- const [h3 = 0, v2 = 0] = size3;
- horizontalSize.value = h3;
- verticalSize.value = v2;
- } else {
- let val;
- if (isNumber2(size3)) {
- val = size3;
- } else {
- val = SIZE_MAP[size3 || "small"] || SIZE_MAP.small;
- }
- if ((wrap2 || fill2) && dir === "horizontal") {
- horizontalSize.value = verticalSize.value = val;
- } else {
- if (dir === "horizontal") {
- horizontalSize.value = val;
- verticalSize.value = 0;
- } else {
- verticalSize.value = val;
- horizontalSize.value = 0;
- }
- }
- }
- });
- return {
- classes,
- containerStyle,
- itemStyle
- };
- }
- // node_modules/element-plus/es/components/space/src/space.mjs
- var spaceProps = buildProps({
- direction: {
- type: String,
- values: ["horizontal", "vertical"],
- default: "horizontal"
- },
- class: {
- type: definePropType([
- String,
- Object,
- Array
- ]),
- default: ""
- },
- style: {
- type: definePropType([String, Array, Object]),
- default: ""
- },
- alignment: {
- type: definePropType(String),
- default: "center"
- },
- prefixCls: {
- type: String
- },
- spacer: {
- type: definePropType([Object, String, Number, Array]),
- default: null,
- validator: (val) => isVNode(val) || isNumber2(val) || isString(val)
- },
- wrap: Boolean,
- fill: Boolean,
- fillRatio: {
- type: Number,
- default: 100
- },
- size: {
- type: [String, Array, Number],
- values: componentSizes,
- validator: (val) => {
- return isNumber2(val) || isArray(val) && val.length === 2 && val.every(isNumber2);
- }
- }
- });
- var Space = defineComponent({
- name: "ElSpace",
- props: spaceProps,
- setup(props2, { slots }) {
- const { classes, containerStyle, itemStyle } = useSpace(props2);
- function extractChildren(children, parentKey = "", extractedChildren = []) {
- const { prefixCls } = props2;
- children.forEach((child, loopKey) => {
- if (isFragment(child)) {
- if (isArray(child.children)) {
- child.children.forEach((nested, key) => {
- if (isFragment(nested) && isArray(nested.children)) {
- extractChildren(nested.children, `${parentKey + key}-`, extractedChildren);
- } else {
- if (isVNode(nested) && (nested == null ? void 0 : nested.type) === Comment) {
- extractedChildren.push(nested);
- } else {
- extractedChildren.push(createVNode(SpaceItem, {
- style: itemStyle.value,
- prefixCls,
- key: `nested-${parentKey + key}`
- }, {
- default: () => [nested]
- }, PatchFlags.PROPS | PatchFlags.STYLE, ["style", "prefixCls"]));
- }
- }
- });
- }
- } else if (isValidElementNode(child)) {
- extractedChildren.push(createVNode(SpaceItem, {
- style: itemStyle.value,
- prefixCls,
- key: `LoopKey${parentKey + loopKey}`
- }, {
- default: () => [child]
- }, PatchFlags.PROPS | PatchFlags.STYLE, ["style", "prefixCls"]));
- }
- });
- return extractedChildren;
- }
- return () => {
- var _a2;
- const { spacer, direction: direction2 } = props2;
- const children = renderSlot(slots, "default", { key: 0 }, () => []);
- if (((_a2 = children.children) != null ? _a2 : []).length === 0)
- return null;
- if (isArray(children.children)) {
- let extractedChildren = extractChildren(children.children);
- if (spacer) {
- const len = extractedChildren.length - 1;
- extractedChildren = extractedChildren.reduce((acc, child, idx) => {
- const children2 = [...acc, child];
- if (idx !== len) {
- children2.push(createVNode("span", {
- style: [
- itemStyle.value,
- direction2 === "vertical" ? "width: 100%" : null
- ],
- key: idx
- }, [
- isVNode(spacer) ? spacer : createTextVNode(spacer, PatchFlags.TEXT)
- ], PatchFlags.STYLE));
- }
- return children2;
- }, []);
- }
- return createVNode("div", {
- class: classes.value,
- style: containerStyle.value
- }, extractedChildren, PatchFlags.STYLE | PatchFlags.CLASS);
- }
- return children.children;
- };
- }
- });
- // node_modules/element-plus/es/components/space/index.mjs
- var ElSpace = withInstall(Space);
- // node_modules/element-plus/es/components/statistic/src/statistic.mjs
- var statisticProps = buildProps({
- decimalSeparator: {
- type: String,
- default: "."
- },
- groupSeparator: {
- type: String,
- default: ","
- },
- precision: {
- type: Number,
- default: 0
- },
- formatter: Function,
- value: {
- type: definePropType([Number, Object]),
- default: 0
- },
- prefix: String,
- suffix: String,
- title: String,
- valueStyle: {
- type: definePropType([String, Object, Array])
- }
- });
- // node_modules/element-plus/es/components/statistic/src/statistic2.mjs
- var __default__92 = defineComponent({
- name: "ElStatistic"
- });
- var _sfc_main415 = defineComponent({
- ...__default__92,
- props: statisticProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const ns = useNamespace("statistic");
- const displayValue = computed(() => {
- const { value, formatter: formatter2, precision, decimalSeparator, groupSeparator } = props2;
- if (isFunction(formatter2))
- return formatter2(value);
- if (!isNumber2(value) || Number.isNaN(value))
- return value;
- let [integer4, decimal = ""] = String(value).split(".");
- decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
- integer4 = integer4.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
- return [integer4, decimal].join(decimal ? decimalSeparator : "");
- });
- expose({
- displayValue
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("head"))
- }, [
- renderSlot(_ctx.$slots, "title", {}, () => [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("content"))
- }, [
- _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("prefix"))
- }, [
- renderSlot(_ctx.$slots, "prefix", {}, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.prefix), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("number")),
- style: normalizeStyle(_ctx.valueStyle)
- }, toDisplayString(unref(displayValue)), 7),
- _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("suffix"))
- }, [
- renderSlot(_ctx.$slots, "suffix", {}, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.suffix), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true)
- ], 2)
- ], 2);
- };
- }
- });
- var Statistic = _export_sfc(_sfc_main415, [["__file", "statistic.vue"]]);
- // node_modules/element-plus/es/components/statistic/index.mjs
- var ElStatistic = withInstall(Statistic);
- // node_modules/element-plus/es/components/countdown/src/countdown.mjs
- var countdownProps = buildProps({
- format: {
- type: String,
- default: "HH:mm:ss"
- },
- prefix: String,
- suffix: String,
- title: String,
- value: {
- type: definePropType([Number, Object]),
- default: 0
- },
- valueStyle: {
- type: definePropType([String, Object, Array])
- }
- });
- var countdownEmits = {
- finish: () => true,
- [CHANGE_EVENT]: (value) => isNumber2(value)
- };
- // node_modules/element-plus/es/components/countdown/src/utils.mjs
- var timeUnits2 = [
- ["Y", 1e3 * 60 * 60 * 24 * 365],
- ["M", 1e3 * 60 * 60 * 24 * 30],
- ["D", 1e3 * 60 * 60 * 24],
- ["H", 1e3 * 60 * 60],
- ["m", 1e3 * 60],
- ["s", 1e3],
- ["S", 1]
- ];
- var getTime = (value) => {
- return isNumber2(value) ? new Date(value).getTime() : value.valueOf();
- };
- var formatTime = (timestamp2, format2) => {
- let timeLeft = timestamp2;
- const escapeRegex = /\[([^\]]*)]/g;
- const replacedText = timeUnits2.reduce((current, [name, unit4]) => {
- const replaceRegex = new RegExp(`${name}+(?![^\\[\\]]*\\])`, "g");
- if (replaceRegex.test(current)) {
- const value = Math.floor(timeLeft / unit4);
- timeLeft -= value * unit4;
- return current.replace(replaceRegex, (match) => String(value).padStart(match.length, "0"));
- }
- return current;
- }, format2);
- return replacedText.replace(escapeRegex, "$1");
- };
- // node_modules/element-plus/es/components/countdown/src/countdown2.mjs
- var __default__93 = defineComponent({
- name: "ElCountdown"
- });
- var _sfc_main416 = defineComponent({
- ...__default__93,
- props: countdownProps,
- emits: countdownEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- let timer;
- const rawValue = ref(0);
- const displayValue = computed(() => formatTime(rawValue.value, props2.format));
- const formatter2 = (val) => formatTime(val, props2.format);
- const stopTimer = () => {
- if (timer) {
- cAF(timer);
- timer = void 0;
- }
- };
- const startTimer = () => {
- const timestamp2 = getTime(props2.value);
- const frameFunc = () => {
- let diff = timestamp2 - Date.now();
- emit(CHANGE_EVENT, diff);
- if (diff <= 0) {
- diff = 0;
- stopTimer();
- emit("finish");
- } else {
- timer = rAF(frameFunc);
- }
- rawValue.value = diff;
- };
- timer = rAF(frameFunc);
- };
- onMounted(() => {
- rawValue.value = getTime(props2.value) - Date.now();
- watch(() => [props2.value, props2.format], () => {
- stopTimer();
- startTimer();
- }, {
- immediate: true
- });
- });
- onBeforeUnmount(() => {
- stopTimer();
- });
- expose({
- displayValue
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElStatistic), {
- value: rawValue.value,
- title: _ctx.title,
- prefix: _ctx.prefix,
- suffix: _ctx.suffix,
- "value-style": _ctx.valueStyle,
- formatter: formatter2
- }, createSlots({
- _: 2
- }, [
- renderList(_ctx.$slots, (_2, name) => {
- return {
- name,
- fn: withCtx(() => [
- renderSlot(_ctx.$slots, name)
- ])
- };
- })
- ]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
- };
- }
- });
- var Countdown = _export_sfc(_sfc_main416, [["__file", "countdown.vue"]]);
- // node_modules/element-plus/es/components/countdown/index.mjs
- var ElCountdown = withInstall(Countdown);
- // node_modules/element-plus/es/components/steps/src/steps2.mjs
- var stepsProps = buildProps({
- space: {
- type: [Number, String],
- default: ""
- },
- active: {
- type: Number,
- default: 0
- },
- direction: {
- type: String,
- default: "horizontal",
- values: ["horizontal", "vertical"]
- },
- alignCenter: {
- type: Boolean
- },
- simple: {
- type: Boolean
- },
- finishStatus: {
- type: String,
- values: ["wait", "process", "finish", "error", "success"],
- default: "finish"
- },
- processStatus: {
- type: String,
- values: ["wait", "process", "finish", "error", "success"],
- default: "process"
- }
- });
- var stepsEmits = {
- [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber2)
- };
- // node_modules/element-plus/es/components/steps/src/tokens.mjs
- var STEPS_INJECTION_KEY = "ElSteps";
- // node_modules/element-plus/es/components/steps/src/steps.mjs
- var __default__94 = defineComponent({
- name: "ElSteps"
- });
- var _sfc_main417 = defineComponent({
- ...__default__94,
- props: stepsProps,
- emits: stepsEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("steps");
- const {
- children: steps,
- addChild: addStep,
- removeChild: removeStep,
- ChildrenSorter: StepsSorter
- } = useOrderedChildren(getCurrentInstance(), "ElStep");
- watch(steps, () => {
- steps.value.forEach((instance, index) => {
- instance.setIndex(index);
- });
- });
- provide(STEPS_INJECTION_KEY, { props: props2, steps, addStep, removeStep });
- watch(() => props2.active, (newVal, oldVal) => {
- emit(CHANGE_EVENT, newVal, oldVal);
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
- }, [
- renderSlot(_ctx.$slots, "default"),
- createVNode(unref(StepsSorter))
- ], 2);
- };
- }
- });
- var Steps = _export_sfc(_sfc_main417, [["__file", "steps.vue"]]);
- // node_modules/element-plus/es/components/steps/src/item.mjs
- var stepProps = buildProps({
- title: {
- type: String,
- default: ""
- },
- icon: {
- type: iconPropType
- },
- description: {
- type: String,
- default: ""
- },
- status: {
- type: String,
- values: ["", "wait", "process", "finish", "error", "success"],
- default: ""
- }
- });
- // node_modules/element-plus/es/components/steps/src/item2.mjs
- var __default__95 = defineComponent({
- name: "ElStep"
- });
- var _sfc_main418 = defineComponent({
- ...__default__95,
- props: stepProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("step");
- const index = ref(-1);
- const lineStyle = ref({});
- const internalStatus = ref("");
- const parent2 = inject(STEPS_INJECTION_KEY);
- const currentInstance = getCurrentInstance();
- onMounted(() => {
- watch([
- () => parent2.props.active,
- () => parent2.props.processStatus,
- () => parent2.props.finishStatus
- ], ([active]) => {
- updateStatus(active);
- }, { immediate: true });
- });
- const currentStatus = computed(() => {
- return props2.status || internalStatus.value;
- });
- const prevInternalStatus = computed(() => {
- const prevStep = parent2.steps.value[index.value - 1];
- return prevStep ? prevStep.internalStatus.value : "wait";
- });
- const isCenter = computed(() => {
- return parent2.props.alignCenter;
- });
- const isVertical = computed(() => {
- return parent2.props.direction === "vertical";
- });
- const isSimple = computed(() => {
- return parent2.props.simple;
- });
- const stepsCount = computed(() => {
- return parent2.steps.value.length;
- });
- const isLast = computed(() => {
- var _a2;
- return ((_a2 = parent2.steps.value[stepsCount.value - 1]) == null ? void 0 : _a2.uid) === currentInstance.uid;
- });
- const space = computed(() => {
- return isSimple.value ? "" : parent2.props.space;
- });
- const containerKls = computed(() => {
- return [
- ns.b(),
- ns.is(isSimple.value ? "simple" : parent2.props.direction),
- ns.is("flex", isLast.value && !space.value && !isCenter.value),
- ns.is("center", isCenter.value && !isVertical.value && !isSimple.value)
- ];
- });
- const style = computed(() => {
- const style2 = {
- flexBasis: isNumber2(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
- };
- if (isVertical.value)
- return style2;
- if (isLast.value) {
- style2.maxWidth = `${100 / stepsCount.value}%`;
- }
- return style2;
- });
- const setIndex = (val) => {
- index.value = val;
- };
- const calcProgress = (status) => {
- const isWait = status === "wait";
- const style2 = {
- transitionDelay: `${isWait ? "-" : ""}${150 * index.value}ms`
- };
- const step2 = status === parent2.props.processStatus || isWait ? 0 : 100;
- style2.borderWidth = step2 && !isSimple.value ? "1px" : 0;
- style2[parent2.props.direction === "vertical" ? "height" : "width"] = `${step2}%`;
- lineStyle.value = style2;
- };
- const updateStatus = (activeIndex) => {
- if (activeIndex > index.value) {
- internalStatus.value = parent2.props.finishStatus;
- } else if (activeIndex === index.value && prevInternalStatus.value !== "error") {
- internalStatus.value = parent2.props.processStatus;
- } else {
- internalStatus.value = "wait";
- }
- const prevChild = parent2.steps.value[index.value - 1];
- if (prevChild)
- prevChild.calcProgress(internalStatus.value);
- };
- const stepItemState = {
- uid: currentInstance.uid,
- getVnode: () => currentInstance.vnode,
- currentStatus,
- internalStatus,
- setIndex,
- calcProgress
- };
- parent2.addStep(stepItemState);
- onBeforeUnmount(() => {
- parent2.removeStep(stepItemState);
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- style: normalizeStyle(unref(style)),
- class: normalizeClass(unref(containerKls))
- }, [
- createCommentVNode(" icon & line "),
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("head"), unref(ns).is(unref(currentStatus))])
- }, [
- !unref(isSimple) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("line"))
- }, [
- createBaseVNode("i", {
- class: normalizeClass(unref(ns).e("line-inner")),
- style: normalizeStyle(lineStyle.value)
- }, null, 6)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("icon"), unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
- }, [
- renderSlot(_ctx.$slots, "icon", {}, () => [
- _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("icon-inner"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- }, 8, ["class"])) : unref(currentStatus) === "success" ? (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
- }, {
- default: withCtx(() => [
- createVNode(unref(check_default))
- ]),
- _: 1
- }, 8, ["class"])) : unref(currentStatus) === "error" ? (openBlock(), createBlock(unref(ElIcon), {
- key: 2,
- class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
- }, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 1
- }, 8, ["class"])) : !unref(isSimple) ? (openBlock(), createElementBlock("div", {
- key: 3,
- class: normalizeClass(unref(ns).e("icon-inner"))
- }, toDisplayString(index.value + 1), 3)) : createCommentVNode("v-if", true)
- ])
- ], 2)
- ], 2),
- createCommentVNode(" title & description "),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("main"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("title"), unref(ns).is(unref(currentStatus))])
- }, [
- renderSlot(_ctx.$slots, "title", {}, () => [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ])
- ], 2),
- unref(isSimple) ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("arrow"))
- }, null, 2)) : (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([unref(ns).e("description"), unref(ns).is(unref(currentStatus))])
- }, [
- renderSlot(_ctx.$slots, "description", {}, () => [
- createTextVNode(toDisplayString(_ctx.description), 1)
- ])
- ], 2))
- ], 2)
- ], 6);
- };
- }
- });
- var Step = _export_sfc(_sfc_main418, [["__file", "item.vue"]]);
- // node_modules/element-plus/es/components/steps/index.mjs
- var ElSteps = withInstall(Steps, {
- Step
- });
- var ElStep = withNoopInstall(Step);
- // node_modules/element-plus/es/utils/vue/validator.mjs
- var isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
- // node_modules/element-plus/es/components/switch/src/switch.mjs
- var switchProps = buildProps({
- modelValue: {
- type: [Boolean, String, Number],
- default: false
- },
- disabled: Boolean,
- loading: Boolean,
- size: {
- type: String,
- validator: isValidComponentSize
- },
- width: {
- type: [String, Number],
- default: ""
- },
- inlinePrompt: Boolean,
- inactiveActionIcon: {
- type: iconPropType
- },
- activeActionIcon: {
- type: iconPropType
- },
- activeIcon: {
- type: iconPropType
- },
- inactiveIcon: {
- type: iconPropType
- },
- activeText: {
- type: String,
- default: ""
- },
- inactiveText: {
- type: String,
- default: ""
- },
- activeValue: {
- type: [Boolean, String, Number],
- default: true
- },
- inactiveValue: {
- type: [Boolean, String, Number],
- default: false
- },
- name: {
- type: String,
- default: ""
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- beforeChange: {
- type: definePropType(Function)
- },
- id: String,
- tabindex: {
- type: [String, Number]
- },
- ...useAriaProps(["ariaLabel"])
- });
- var switchEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isBoolean2(val) || isString(val) || isNumber2(val),
- [CHANGE_EVENT]: (val) => isBoolean2(val) || isString(val) || isNumber2(val),
- [INPUT_EVENT]: (val) => isBoolean2(val) || isString(val) || isNumber2(val)
- };
- // node_modules/element-plus/es/components/switch/src/switch2.mjs
- var COMPONENT_NAME19 = "ElSwitch";
- var __default__96 = defineComponent({
- name: COMPONENT_NAME19
- });
- var _sfc_main419 = defineComponent({
- ...__default__96,
- props: switchProps,
- emits: switchEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { formItem } = useFormItem();
- const switchSize = useFormSize();
- const ns = useNamespace("switch");
- const { inputId } = useFormItemInputId(props2, {
- formItemContext: formItem
- });
- const switchDisabled = useFormDisabled(computed(() => props2.loading));
- const isControlled = ref(props2.modelValue !== false);
- const input = ref();
- const core = ref();
- const switchKls = computed(() => [
- ns.b(),
- ns.m(switchSize.value),
- ns.is("disabled", switchDisabled.value),
- ns.is("checked", checked.value)
- ]);
- const labelLeftKls = computed(() => [
- ns.e("label"),
- ns.em("label", "left"),
- ns.is("active", !checked.value)
- ]);
- const labelRightKls = computed(() => [
- ns.e("label"),
- ns.em("label", "right"),
- ns.is("active", checked.value)
- ]);
- const coreStyle = computed(() => ({
- width: addUnit(props2.width)
- }));
- watch(() => props2.modelValue, () => {
- isControlled.value = true;
- });
- const actualValue = computed(() => {
- return isControlled.value ? props2.modelValue : false;
- });
- const checked = computed(() => actualValue.value === props2.activeValue);
- if (![props2.activeValue, props2.inactiveValue].includes(actualValue.value)) {
- emit(UPDATE_MODEL_EVENT, props2.inactiveValue);
- emit(CHANGE_EVENT, props2.inactiveValue);
- emit(INPUT_EVENT, props2.inactiveValue);
- }
- watch(checked, (val) => {
- var _a2;
- input.value.checked = val;
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn());
- }
- });
- const handleChange = () => {
- const val = checked.value ? props2.inactiveValue : props2.activeValue;
- emit(UPDATE_MODEL_EVENT, val);
- emit(CHANGE_EVENT, val);
- emit(INPUT_EVENT, val);
- nextTick(() => {
- input.value.checked = checked.value;
- });
- };
- const switchValue = () => {
- if (switchDisabled.value)
- return;
- const { beforeChange } = props2;
- if (!beforeChange) {
- handleChange();
- return;
- }
- const shouldChange = beforeChange();
- const isPromiseOrBool = [
- isPromise(shouldChange),
- isBoolean2(shouldChange)
- ].includes(true);
- if (!isPromiseOrBool) {
- throwError(COMPONENT_NAME19, "beforeChange must return type `Promise<boolean>` or `boolean`");
- }
- if (isPromise(shouldChange)) {
- shouldChange.then((result2) => {
- if (result2) {
- handleChange();
- }
- }).catch((e) => {
- });
- } else if (shouldChange) {
- handleChange();
- }
- };
- const focus = () => {
- var _a2, _b;
- (_b = (_a2 = input.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
- };
- onMounted(() => {
- input.value.checked = checked.value;
- });
- expose({
- focus,
- checked
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(switchKls)),
- onClick: withModifiers(switchValue, ["prevent"])
- }, [
- createBaseVNode("input", {
- id: unref(inputId),
- ref_key: "input",
- ref: input,
- class: normalizeClass(unref(ns).e("input")),
- type: "checkbox",
- role: "switch",
- "aria-checked": unref(checked),
- "aria-disabled": unref(switchDisabled),
- "aria-label": _ctx.ariaLabel,
- name: _ctx.name,
- "true-value": _ctx.activeValue,
- "false-value": _ctx.inactiveValue,
- disabled: unref(switchDisabled),
- tabindex: _ctx.tabindex,
- onChange: handleChange,
- onKeydown: withKeys(switchValue, ["enter"])
- }, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
- !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass(unref(labelLeftKls))
- }, [
- _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true),
- !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
- key: 1,
- "aria-hidden": unref(checked)
- }, toDisplayString(_ctx.inactiveText), 9, ["aria-hidden"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("span", {
- ref_key: "core",
- ref: core,
- class: normalizeClass(unref(ns).e("core")),
- style: normalizeStyle(unref(coreStyle))
- }, [
- _ctx.inlinePrompt ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("inner"))
- }, [
- _ctx.activeIcon || _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).is("icon"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
- key: 1,
- class: normalizeClass(unref(ns).is("text")),
- "aria-hidden": !unref(checked)
- }, toDisplayString(unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, ["aria-hidden"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("action"))
- }, [
- _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).is("loading"))
- }, {
- default: withCtx(() => [
- createVNode(unref(loading_default))
- ]),
- _: 1
- }, 8, ["class"])) : unref(checked) ? renderSlot(_ctx.$slots, "active-action", { key: 1 }, () => [
- _ctx.activeActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeActionIcon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true)
- ]) : !unref(checked) ? renderSlot(_ctx.$slots, "inactive-action", { key: 2 }, () => [
- _ctx.inactiveActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveActionIcon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true)
- ]) : createCommentVNode("v-if", true)
- ], 2)
- ], 6),
- !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
- key: 1,
- class: normalizeClass(unref(labelRightKls))
- }, [
- _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
- ]),
- _: 1
- })) : createCommentVNode("v-if", true),
- !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
- key: 1,
- "aria-hidden": !unref(checked)
- }, toDisplayString(_ctx.activeText), 9, ["aria-hidden"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ], 10, ["onClick"]);
- };
- }
- });
- var Switch = _export_sfc(_sfc_main419, [["__file", "switch.vue"]]);
- // node_modules/element-plus/es/components/switch/index.mjs
- var ElSwitch = withInstall(Switch);
- // node_modules/element-plus/es/components/table/src/util.mjs
- var getCell = function(event) {
- var _a2;
- return (_a2 = event.target) == null ? void 0 : _a2.closest("td");
- };
- var orderBy2 = function(array4, sortKey, reverse2, sortMethod, sortBy2) {
- if (!sortKey && !sortMethod && (!sortBy2 || isArray(sortBy2) && !sortBy2.length)) {
- return array4;
- }
- if (isString(reverse2)) {
- reverse2 = reverse2 === "descending" ? -1 : 1;
- } else {
- reverse2 = reverse2 && reverse2 < 0 ? -1 : 1;
- }
- const getKey = sortMethod ? null : function(value, index) {
- if (sortBy2) {
- return flatMap_default(castArray_default(sortBy2), (by) => {
- if (isString(by)) {
- return get_default(value, by);
- } else {
- return by(value, index, array4);
- }
- });
- }
- if (sortKey !== "$key") {
- if (isObject(value) && "$value" in value)
- value = value.$value;
- }
- return [
- isObject(value) ? sortKey ? get_default(value, sortKey) : null : value
- ];
- };
- const compare = function(a2, b2) {
- var _a2, _b, _c, _d, _e, _f;
- if (sortMethod) {
- return sortMethod(a2.value, b2.value);
- }
- for (let i = 0, len = (_b = (_a2 = a2.key) == null ? void 0 : _a2.length) != null ? _b : 0; i < len; i++) {
- if (((_c = a2.key) == null ? void 0 : _c[i]) < ((_d = b2.key) == null ? void 0 : _d[i])) {
- return -1;
- }
- if (((_e = a2.key) == null ? void 0 : _e[i]) > ((_f = b2.key) == null ? void 0 : _f[i])) {
- return 1;
- }
- }
- return 0;
- };
- return array4.map((value, index) => {
- return {
- value,
- index,
- key: getKey ? getKey(value, index) : null
- };
- }).sort((a2, b2) => {
- let order = compare(a2, b2);
- if (!order) {
- order = a2.index - b2.index;
- }
- return order * +reverse2;
- }).map((item) => item.value);
- };
- var getColumnById = function(table, columnId) {
- let column2 = null;
- table.columns.forEach((item) => {
- if (item.id === columnId) {
- column2 = item;
- }
- });
- return column2;
- };
- var getColumnByKey = function(table, columnKey) {
- let column2 = null;
- for (let i = 0; i < table.columns.length; i++) {
- const item = table.columns[i];
- if (item.columnKey === columnKey) {
- column2 = item;
- break;
- }
- }
- if (!column2)
- throwError("ElTable", `No column matching with column-key: ${columnKey}`);
- return column2;
- };
- var getColumnByCell = function(table, cell, namespace) {
- const matches2 = (cell.className || "").match(new RegExp(`${namespace}-table_[^\\s]+`, "gm"));
- if (matches2) {
- return getColumnById(table, matches2[0]);
- }
- return null;
- };
- var getRowIdentity = (row, rowKey2) => {
- if (!row)
- throw new Error("Row is required when get row identity");
- if (isString(rowKey2)) {
- if (!rowKey2.includes(".")) {
- return `${row[rowKey2]}`;
- }
- const key = rowKey2.split(".");
- let current = row;
- for (const element of key) {
- current = current[element];
- }
- return `${current}`;
- } else if (isFunction(rowKey2)) {
- return rowKey2.call(null, row);
- }
- return "";
- };
- var getKeysMap = function(array4, rowKey2, flatten2 = false, childrenKey = "children") {
- const data = array4 || [];
- const arrayMap2 = {};
- data.forEach((row, index) => {
- arrayMap2[getRowIdentity(row, rowKey2)] = { row, index };
- if (flatten2) {
- const children = row[childrenKey];
- if (isArray(children)) {
- Object.assign(arrayMap2, getKeysMap(children, rowKey2, true, childrenKey));
- }
- }
- });
- return arrayMap2;
- };
- function mergeOptions(defaults2, config) {
- const options = {};
- let key;
- for (key in defaults2) {
- options[key] = defaults2[key];
- }
- for (key in config) {
- if (hasOwn(config, key)) {
- const value = config[key];
- if (!isUndefined2(value)) {
- options[key] = value;
- }
- }
- }
- return options;
- }
- function parseWidth(width) {
- if (width === "")
- return width;
- if (!isUndefined2(width)) {
- width = Number.parseInt(width, 10);
- if (Number.isNaN(width)) {
- width = "";
- }
- }
- return width;
- }
- function parseMinWidth(minWidth) {
- if (minWidth === "")
- return minWidth;
- if (!isUndefined2(minWidth)) {
- minWidth = parseWidth(minWidth);
- if (Number.isNaN(minWidth)) {
- minWidth = 80;
- }
- }
- return minWidth;
- }
- function parseHeight(height) {
- if (isNumber2(height)) {
- return height;
- }
- if (isString(height)) {
- if (/^\d+(?:px)?$/.test(height)) {
- return Number.parseInt(height, 10);
- } else {
- return height;
- }
- }
- return null;
- }
- function compose(...funcs) {
- if (funcs.length === 0) {
- return (arg) => arg;
- }
- if (funcs.length === 1) {
- return funcs[0];
- }
- return funcs.reduce((a2, b2) => (...args) => a2(b2(...args)));
- }
- function toggleRowStatus(statusArr, row, newVal, tableTreeProps, selectable, rowIndex, rowKey2) {
- let _rowIndex = rowIndex != null ? rowIndex : 0;
- let changed = false;
- const getIndex = () => {
- if (!rowKey2) {
- return statusArr.indexOf(row);
- }
- const id = getRowIdentity(row, rowKey2);
- return statusArr.findIndex((item) => getRowIdentity(item, rowKey2) === id);
- };
- const index = getIndex();
- const included = index !== -1;
- const isRowSelectable = selectable == null ? void 0 : selectable.call(null, row, _rowIndex);
- const toggleStatus = (type4) => {
- if (type4 === "add") {
- statusArr.push(row);
- } else {
- statusArr.splice(index, 1);
- }
- changed = true;
- };
- const getChildrenCount = (row2) => {
- let count = 0;
- const children = (tableTreeProps == null ? void 0 : tableTreeProps.children) && row2[tableTreeProps.children];
- if (children && isArray(children)) {
- count += children.length;
- children.forEach((item) => {
- count += getChildrenCount(item);
- });
- }
- return count;
- };
- if (!selectable || isRowSelectable) {
- if (isBoolean2(newVal)) {
- if (newVal && !included) {
- toggleStatus("add");
- } else if (!newVal && included) {
- toggleStatus("remove");
- }
- } else {
- included ? toggleStatus("remove") : toggleStatus("add");
- }
- }
- if (!(tableTreeProps == null ? void 0 : tableTreeProps.checkStrictly) && (tableTreeProps == null ? void 0 : tableTreeProps.children) && isArray(row[tableTreeProps.children])) {
- row[tableTreeProps.children].forEach((item) => {
- const childChanged = toggleRowStatus(statusArr, item, newVal != null ? newVal : !included, tableTreeProps, selectable, _rowIndex + 1, rowKey2);
- _rowIndex += getChildrenCount(item) + 1;
- if (childChanged) {
- changed = childChanged;
- }
- });
- }
- return changed;
- }
- function walkTreeNode(root2, cb, childrenKey = "children", lazyKey = "hasChildren", lazy = false) {
- const isNil2 = (array4) => !(isArray(array4) && array4.length);
- function _walker(parent2, children, level) {
- cb(parent2, children, level);
- children.forEach((item) => {
- if (item[lazyKey] && lazy) {
- cb(item, null, level + 1);
- return;
- }
- const children2 = item[childrenKey];
- if (!isNil2(children2)) {
- _walker(item, children2, level + 1);
- }
- });
- }
- root2.forEach((item) => {
- if (item[lazyKey] && lazy) {
- cb(item, null, 0);
- return;
- }
- const children = item[childrenKey];
- if (!isNil2(children)) {
- _walker(item, children, 0);
- }
- });
- }
- var getTableOverflowTooltipProps = (props2, innerText, row, column2) => {
- const popperOptions = {
- strategy: "fixed",
- ...props2.popperOptions
- };
- const tooltipFormatterContent = isFunction(column2 == null ? void 0 : column2.tooltipFormatter) ? column2.tooltipFormatter({
- row,
- column: column2,
- cellValue: getProp(row, column2.property).value
- }) : void 0;
- if (isVNode(tooltipFormatterContent)) {
- return {
- slotContent: tooltipFormatterContent,
- content: null,
- ...props2,
- popperOptions
- };
- }
- return {
- slotContent: null,
- content: tooltipFormatterContent != null ? tooltipFormatterContent : innerText,
- ...props2,
- popperOptions
- };
- };
- var removePopper = null;
- function createTablePopper(props2, popperContent, row, column2, trigger, table) {
- var _a2;
- const tableOverflowTooltipProps = getTableOverflowTooltipProps(props2, popperContent, row, column2);
- const mergedProps = {
- ...tableOverflowTooltipProps,
- slotContent: void 0
- };
- if ((removePopper == null ? void 0 : removePopper.trigger) === trigger) {
- const comp = (_a2 = removePopper.vm) == null ? void 0 : _a2.component;
- merge_default(comp == null ? void 0 : comp.props, mergedProps);
- if (comp && tableOverflowTooltipProps.slotContent) {
- comp.slots.content = () => [tableOverflowTooltipProps.slotContent];
- }
- return;
- }
- removePopper == null ? void 0 : removePopper();
- const parentNode = table == null ? void 0 : table.refs.tableWrapper;
- const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
- const vm = createVNode(ElTooltip, {
- virtualTriggering: true,
- virtualRef: trigger,
- appendTo: parentNode,
- placement: "top",
- transition: "none",
- offset: 0,
- hideAfter: 0,
- ...mergedProps
- }, tableOverflowTooltipProps.slotContent ? {
- content: () => tableOverflowTooltipProps.slotContent
- } : void 0);
- vm.appContext = { ...table.appContext, ...table };
- const container = document.createElement("div");
- render(vm, container);
- vm.component.exposed.onOpen();
- const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
- removePopper = () => {
- var _a22, _b;
- if ((_b = (_a22 = vm.component) == null ? void 0 : _a22.exposed) == null ? void 0 : _b.onClose) {
- vm.component.exposed.onClose();
- }
- render(null, container);
- const currentRemovePopper = removePopper;
- scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", currentRemovePopper);
- currentRemovePopper.trigger = void 0;
- currentRemovePopper.vm = void 0;
- removePopper = null;
- };
- removePopper.trigger = trigger != null ? trigger : void 0;
- removePopper.vm = vm;
- scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
- }
- function getCurrentColumns(column2) {
- if (column2.children) {
- return flatMap_default(column2.children, getCurrentColumns);
- } else {
- return [column2];
- }
- }
- function getColSpan(colSpan, column2) {
- return colSpan + column2.colSpan;
- }
- var isFixedColumn = (index, fixed, store, realColumns) => {
- let start = 0;
- let after2 = index;
- const columns2 = store.states.columns.value;
- if (realColumns) {
- const curColumns = getCurrentColumns(realColumns[index]);
- const preColumns = columns2.slice(0, columns2.indexOf(curColumns[0]));
- start = preColumns.reduce(getColSpan, 0);
- after2 = start + curColumns.reduce(getColSpan, 0) - 1;
- } else {
- start = index;
- }
- let fixedLayout;
- switch (fixed) {
- case "left":
- if (after2 < store.states.fixedLeafColumnsLength.value) {
- fixedLayout = "left";
- }
- break;
- case "right":
- if (start >= columns2.length - store.states.rightFixedLeafColumnsLength.value) {
- fixedLayout = "right";
- }
- break;
- default:
- if (after2 < store.states.fixedLeafColumnsLength.value) {
- fixedLayout = "left";
- } else if (start >= columns2.length - store.states.rightFixedLeafColumnsLength.value) {
- fixedLayout = "right";
- }
- }
- return fixedLayout ? {
- direction: fixedLayout,
- start,
- after: after2
- } : {};
- };
- var getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset3 = 0) => {
- const classes = [];
- const { direction: direction2, start, after: after2 } = isFixedColumn(index, fixed, store, realColumns);
- if (direction2) {
- const isLeft = direction2 === "left";
- classes.push(`${namespace}-fixed-column--${direction2}`);
- if (isLeft && after2 + offset3 === store.states.fixedLeafColumnsLength.value - 1) {
- classes.push("is-last-column");
- } else if (!isLeft && start - offset3 === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
- classes.push("is-first-column");
- }
- }
- return classes;
- };
- function getOffset(offset3, column2) {
- return offset3 + (isNull_default(column2.realWidth) || Number.isNaN(column2.realWidth) ? Number(column2.width) : column2.realWidth);
- }
- var getFixedColumnOffset = (index, fixed, store, realColumns) => {
- const {
- direction: direction2,
- start = 0,
- after: after2 = 0
- } = isFixedColumn(index, fixed, store, realColumns);
- if (!direction2) {
- return;
- }
- const styles = {};
- const isLeft = direction2 === "left";
- const columns2 = store.states.columns.value;
- if (isLeft) {
- styles.left = columns2.slice(0, start).reduce(getOffset, 0);
- } else {
- styles.right = columns2.slice(after2 + 1).reverse().reduce(getOffset, 0);
- }
- return styles;
- };
- var ensurePosition = (style, key) => {
- if (!style)
- return;
- if (!Number.isNaN(style[key])) {
- style[key] = `${style[key]}px`;
- }
- };
- // node_modules/element-plus/es/components/table/src/store/expand.mjs
- function useExpand(watcherData) {
- const instance = getCurrentInstance();
- const defaultExpandAll = ref(false);
- const expandRows = ref([]);
- const updateExpandRows = () => {
- const data = watcherData.data.value || [];
- const rowKey2 = watcherData.rowKey.value;
- if (defaultExpandAll.value) {
- expandRows.value = data.slice();
- } else if (rowKey2) {
- const expandRowsMap = getKeysMap(expandRows.value, rowKey2);
- expandRows.value = data.reduce((prev, row) => {
- const rowId = getRowIdentity(row, rowKey2);
- const rowInfo = expandRowsMap[rowId];
- if (rowInfo) {
- prev.push(row);
- }
- return prev;
- }, []);
- } else {
- expandRows.value = [];
- }
- };
- const toggleRowExpansion = (row, expanded) => {
- const changed = toggleRowStatus(expandRows.value, row, expanded, void 0, void 0, void 0, watcherData.rowKey.value);
- if (changed) {
- instance.emit("expand-change", row, expandRows.value.slice());
- }
- };
- const setExpandRowKeys = (rowKeys) => {
- instance.store.assertRowKey();
- const data = watcherData.data.value || [];
- const rowKey2 = watcherData.rowKey.value;
- const keysMap = getKeysMap(data, rowKey2);
- expandRows.value = rowKeys.reduce((prev, cur) => {
- const info = keysMap[cur];
- if (info) {
- prev.push(info.row);
- }
- return prev;
- }, []);
- };
- const isRowExpanded = (row) => {
- const rowKey2 = watcherData.rowKey.value;
- if (rowKey2) {
- const expandMap = getKeysMap(expandRows.value, rowKey2);
- return !!expandMap[getRowIdentity(row, rowKey2)];
- }
- return expandRows.value.includes(row);
- };
- return {
- updateExpandRows,
- toggleRowExpansion,
- setExpandRowKeys,
- isRowExpanded,
- states: {
- expandRows,
- defaultExpandAll
- }
- };
- }
- // node_modules/element-plus/es/components/table/src/store/current.mjs
- function useCurrent(watcherData) {
- const instance = getCurrentInstance();
- const _currentRowKey = ref(null);
- const currentRow = ref(null);
- const setCurrentRowKey = (key) => {
- instance.store.assertRowKey();
- _currentRowKey.value = key;
- setCurrentRowByKey(key);
- };
- const restoreCurrentRowKey = () => {
- _currentRowKey.value = null;
- };
- const setCurrentRowByKey = (key) => {
- var _a2;
- const { data, rowKey: rowKey2 } = watcherData;
- let _currentRow = null;
- if (rowKey2.value) {
- _currentRow = (_a2 = (unref(data) || []).find((item) => getRowIdentity(item, rowKey2.value) === key)) != null ? _a2 : null;
- }
- currentRow.value = _currentRow != null ? _currentRow : null;
- instance.emit("current-change", currentRow.value, null);
- };
- const updateCurrentRow = (_currentRow) => {
- const oldCurrentRow = currentRow.value;
- if (_currentRow && _currentRow !== oldCurrentRow) {
- currentRow.value = _currentRow;
- instance.emit("current-change", currentRow.value, oldCurrentRow);
- return;
- }
- if (!_currentRow && oldCurrentRow) {
- currentRow.value = null;
- instance.emit("current-change", null, oldCurrentRow);
- }
- };
- const updateCurrentRowData = () => {
- const rowKey2 = watcherData.rowKey.value;
- const data = watcherData.data.value || [];
- const oldCurrentRow = currentRow.value;
- if (oldCurrentRow && !data.includes(oldCurrentRow)) {
- if (rowKey2) {
- const currentRowKey = getRowIdentity(oldCurrentRow, rowKey2);
- setCurrentRowByKey(currentRowKey);
- } else {
- currentRow.value = null;
- }
- if (isNull_default(currentRow.value)) {
- instance.emit("current-change", null, oldCurrentRow);
- }
- } else if (_currentRowKey.value) {
- setCurrentRowByKey(_currentRowKey.value);
- restoreCurrentRowKey();
- }
- };
- return {
- setCurrentRowKey,
- restoreCurrentRowKey,
- setCurrentRowByKey,
- updateCurrentRow,
- updateCurrentRowData,
- states: {
- _currentRowKey,
- currentRow
- }
- };
- }
- // node_modules/element-plus/es/components/table/src/store/tree.mjs
- function useTree(watcherData) {
- const expandRowKeys = ref([]);
- const treeData = ref({});
- const indent = ref(16);
- const lazy = ref(false);
- const lazyTreeNodeMap = ref({});
- const lazyColumnIdentifier = ref("hasChildren");
- const childrenColumnName = ref("children");
- const checkStrictly = ref(false);
- const instance = getCurrentInstance();
- const normalizedData = computed(() => {
- if (!watcherData.rowKey.value)
- return {};
- const data = watcherData.data.value || [];
- return normalize(data);
- });
- const normalizedLazyNode = computed(() => {
- const rowKey2 = watcherData.rowKey.value;
- const keys3 = Object.keys(lazyTreeNodeMap.value);
- const res = {};
- if (!keys3.length)
- return res;
- keys3.forEach((key) => {
- if (lazyTreeNodeMap.value[key].length) {
- const item = { children: [] };
- lazyTreeNodeMap.value[key].forEach((row) => {
- const currentRowKey = getRowIdentity(row, rowKey2);
- item.children.push(currentRowKey);
- if (row[lazyColumnIdentifier.value] && !res[currentRowKey]) {
- res[currentRowKey] = { children: [] };
- }
- });
- res[key] = item;
- }
- });
- return res;
- });
- const normalize = (data) => {
- const rowKey2 = watcherData.rowKey.value;
- const res = {};
- walkTreeNode(data, (parent2, children, level) => {
- const parentId = getRowIdentity(parent2, rowKey2);
- if (isArray(children)) {
- res[parentId] = {
- children: children.map((row) => getRowIdentity(row, rowKey2)),
- level
- };
- } else if (lazy.value) {
- res[parentId] = {
- children: [],
- lazy: true,
- level
- };
- }
- }, childrenColumnName.value, lazyColumnIdentifier.value, lazy.value);
- return res;
- };
- const updateTreeData = (ifChangeExpandRowKeys = false, ifExpandAll) => {
- var _a2, _b;
- ifExpandAll || (ifExpandAll = (_a2 = instance.store) == null ? void 0 : _a2.states.defaultExpandAll.value);
- const nested = normalizedData.value;
- const normalizedLazyNode_ = normalizedLazyNode.value;
- const keys3 = Object.keys(nested);
- const newTreeData = {};
- if (keys3.length) {
- const oldTreeData = unref(treeData);
- const rootLazyRowKeys = [];
- const getExpanded = (oldValue, key) => {
- if (ifChangeExpandRowKeys) {
- if (expandRowKeys.value) {
- return ifExpandAll || expandRowKeys.value.includes(key);
- } else {
- return !!(ifExpandAll || (oldValue == null ? void 0 : oldValue.expanded));
- }
- } else {
- const included = ifExpandAll || expandRowKeys.value && expandRowKeys.value.includes(key);
- return !!((oldValue == null ? void 0 : oldValue.expanded) || included);
- }
- };
- keys3.forEach((key) => {
- const oldValue = oldTreeData[key];
- const newValue = { ...nested[key] };
- newValue.expanded = getExpanded(oldValue, key);
- if (newValue.lazy) {
- const { loaded = false, loading = false } = oldValue || {};
- newValue.loaded = !!loaded;
- newValue.loading = !!loading;
- rootLazyRowKeys.push(key);
- }
- newTreeData[key] = newValue;
- });
- const lazyKeys = Object.keys(normalizedLazyNode_);
- if (lazy.value && lazyKeys.length && rootLazyRowKeys.length) {
- lazyKeys.forEach((key) => {
- var _a22;
- const oldValue = oldTreeData[key];
- const lazyNodeChildren = normalizedLazyNode_[key].children;
- if (rootLazyRowKeys.includes(key)) {
- if (((_a22 = newTreeData[key].children) == null ? void 0 : _a22.length) !== 0) {
- throw new Error("[ElTable]children must be an empty array.");
- }
- newTreeData[key].children = lazyNodeChildren;
- } else {
- const { loaded = false, loading = false } = oldValue || {};
- newTreeData[key] = {
- lazy: true,
- loaded: !!loaded,
- loading: !!loading,
- expanded: getExpanded(oldValue, key),
- children: lazyNodeChildren,
- level: void 0
- };
- }
- });
- }
- }
- treeData.value = newTreeData;
- (_b = instance.store) == null ? void 0 : _b.updateTableScrollY();
- };
- watch(() => expandRowKeys.value, () => {
- updateTreeData(true);
- });
- watch(() => normalizedData.value, () => {
- updateTreeData();
- });
- watch(() => normalizedLazyNode.value, () => {
- updateTreeData();
- });
- const updateTreeExpandKeys = (value) => {
- expandRowKeys.value = value;
- updateTreeData();
- };
- const isUseLazy = (data) => {
- return lazy.value && data && "loaded" in data && !data.loaded;
- };
- const toggleTreeExpansion = (row, expanded) => {
- instance.store.assertRowKey();
- const rowKey2 = watcherData.rowKey.value;
- const id = getRowIdentity(row, rowKey2);
- const data = id && treeData.value[id];
- if (id && data && "expanded" in data) {
- const oldExpanded = data.expanded;
- expanded = isUndefined2(expanded) ? !data.expanded : expanded;
- treeData.value[id].expanded = expanded;
- if (oldExpanded !== expanded) {
- instance.emit("expand-change", row, expanded);
- }
- isUseLazy(data) && loadData(row, id, data);
- instance.store.updateTableScrollY();
- }
- };
- const loadOrToggle = (row) => {
- instance.store.assertRowKey();
- const rowKey2 = watcherData.rowKey.value;
- const id = getRowIdentity(row, rowKey2);
- const data = treeData.value[id];
- if (isUseLazy(data)) {
- loadData(row, id, data);
- } else {
- toggleTreeExpansion(row, void 0);
- }
- };
- const loadData = (row, key, treeNode) => {
- const { load } = instance.props;
- if (load && !treeData.value[key].loaded) {
- treeData.value[key].loading = true;
- load(row, treeNode, (data) => {
- if (!isArray(data)) {
- throw new TypeError("[ElTable] data must be an array");
- }
- treeData.value[key].loading = false;
- treeData.value[key].loaded = true;
- treeData.value[key].expanded = true;
- if (data.length) {
- lazyTreeNodeMap.value[key] = data;
- }
- instance.emit("expand-change", row, true);
- });
- }
- };
- const updateKeyChildren = (key, data) => {
- const { lazy: lazy2, rowKey: rowKey2 } = instance.props;
- if (!lazy2)
- return;
- if (!rowKey2)
- throw new Error("[Table] rowKey is required in updateKeyChild");
- if (lazyTreeNodeMap.value[key]) {
- lazyTreeNodeMap.value[key] = data;
- }
- };
- return {
- loadData,
- loadOrToggle,
- toggleTreeExpansion,
- updateTreeExpandKeys,
- updateTreeData,
- updateKeyChildren,
- normalize,
- states: {
- expandRowKeys,
- treeData,
- indent,
- lazy,
- lazyTreeNodeMap,
- lazyColumnIdentifier,
- childrenColumnName,
- checkStrictly
- }
- };
- }
- // node_modules/element-plus/es/components/table/src/store/watcher.mjs
- var sortData = (data, states) => {
- const sortingColumn = states.sortingColumn;
- if (!sortingColumn || isString(sortingColumn.sortable)) {
- return data;
- }
- return orderBy2(data, states.sortProp, states.sortOrder, sortingColumn.sortMethod, sortingColumn.sortBy);
- };
- var doFlattenColumns = (columns2) => {
- const result2 = [];
- columns2.forEach((column2) => {
- if (column2.children && column2.children.length > 0) {
- result2.push.apply(result2, doFlattenColumns(column2.children));
- } else {
- result2.push(column2);
- }
- });
- return result2;
- };
- function useWatcher() {
- var _a2;
- const instance = getCurrentInstance();
- const { size: tableSize } = toRefs((_a2 = instance.proxy) == null ? void 0 : _a2.$props);
- const rowKey2 = ref(null);
- const data = ref([]);
- const _data = ref([]);
- const isComplex = ref(false);
- const _columns = ref([]);
- const originColumns = ref([]);
- const columns2 = ref([]);
- const fixedColumns = ref([]);
- const rightFixedColumns = ref([]);
- const leafColumns = ref([]);
- const fixedLeafColumns = ref([]);
- const rightFixedLeafColumns = ref([]);
- const updateOrderFns = [];
- const leafColumnsLength = ref(0);
- const fixedLeafColumnsLength = ref(0);
- const rightFixedLeafColumnsLength = ref(0);
- const isAllSelected = ref(false);
- const selection = ref([]);
- const reserveSelection = ref(false);
- const selectOnIndeterminate = ref(false);
- const selectable = ref(null);
- const filters = ref({});
- const filteredData = ref(null);
- const sortingColumn = ref(null);
- const sortProp = ref(null);
- const sortOrder = ref(null);
- const hoverRow = ref(null);
- const selectedMap = computed(() => {
- return rowKey2.value ? getKeysMap(selection.value, rowKey2.value) : void 0;
- });
- watch(data, () => {
- var _a22;
- if (instance.state) {
- scheduleLayout(false);
- const needUpdateFixed = instance.props.tableLayout === "auto";
- if (needUpdateFixed) {
- (_a22 = instance.refs.tableHeaderRef) == null ? void 0 : _a22.updateFixedColumnStyle();
- }
- }
- }, {
- deep: true
- });
- const assertRowKey = () => {
- if (!rowKey2.value)
- throw new Error("[ElTable] prop row-key is required");
- };
- const updateChildFixed = (column2) => {
- var _a22;
- (_a22 = column2.children) == null ? void 0 : _a22.forEach((childColumn) => {
- childColumn.fixed = column2.fixed;
- updateChildFixed(childColumn);
- });
- };
- const updateColumns = () => {
- _columns.value.forEach((column2) => {
- updateChildFixed(column2);
- });
- fixedColumns.value = _columns.value.filter((column2) => [true, "left"].includes(column2.fixed));
- const selectColumn = _columns.value.find((column2) => column2.type === "selection");
- let selectColFixLeft;
- if (selectColumn && selectColumn.fixed !== "right" && !fixedColumns.value.includes(selectColumn)) {
- const selectColumnIndex = _columns.value.indexOf(selectColumn);
- if (selectColumnIndex === 0 && fixedColumns.value.length) {
- fixedColumns.value.unshift(selectColumn);
- selectColFixLeft = true;
- }
- }
- rightFixedColumns.value = _columns.value.filter((column2) => column2.fixed === "right");
- const notFixedColumns = _columns.value.filter((column2) => (selectColFixLeft ? column2.type !== "selection" : true) && !column2.fixed);
- originColumns.value = Array.from(fixedColumns.value).concat(notFixedColumns).concat(rightFixedColumns.value);
- const leafColumns2 = doFlattenColumns(notFixedColumns);
- const fixedLeafColumns2 = doFlattenColumns(fixedColumns.value);
- const rightFixedLeafColumns2 = doFlattenColumns(rightFixedColumns.value);
- leafColumnsLength.value = leafColumns2.length;
- fixedLeafColumnsLength.value = fixedLeafColumns2.length;
- rightFixedLeafColumnsLength.value = rightFixedLeafColumns2.length;
- columns2.value = Array.from(fixedLeafColumns2).concat(leafColumns2).concat(rightFixedLeafColumns2);
- isComplex.value = fixedColumns.value.length > 0 || rightFixedColumns.value.length > 0;
- };
- const scheduleLayout = (needUpdateColumns, immediate = false) => {
- if (needUpdateColumns) {
- updateColumns();
- }
- if (immediate) {
- instance.state.doLayout();
- } else {
- instance.state.debouncedUpdateLayout();
- }
- };
- const isSelected = (row) => {
- if (selectedMap.value) {
- return !!selectedMap.value[getRowIdentity(row, rowKey2.value)];
- } else {
- return selection.value.includes(row);
- }
- };
- const clearSelection = () => {
- isAllSelected.value = false;
- const oldSelection = selection.value;
- selection.value = [];
- if (oldSelection.length) {
- instance.emit("selection-change", []);
- }
- };
- const cleanSelection = () => {
- var _a22, _b;
- let deleted;
- if (rowKey2.value) {
- deleted = [];
- const childrenKey = (_b = (_a22 = instance == null ? void 0 : instance.store) == null ? void 0 : _a22.states) == null ? void 0 : _b.childrenColumnName.value;
- const dataMap = getKeysMap(data.value, rowKey2.value, true, childrenKey);
- for (const key in selectedMap.value) {
- if (hasOwn(selectedMap.value, key) && !dataMap[key]) {
- deleted.push(selectedMap.value[key].row);
- }
- }
- } else {
- deleted = selection.value.filter((item) => !data.value.includes(item));
- }
- if (deleted.length) {
- const newSelection = selection.value.filter((item) => !deleted.includes(item));
- selection.value = newSelection;
- instance.emit("selection-change", newSelection.slice());
- }
- };
- const getSelectionRows = () => {
- return (selection.value || []).slice();
- };
- const toggleRowSelection = (row, selected, emitChange = true, ignoreSelectable = false) => {
- var _a22, _b, _c, _d;
- const treeProps2 = {
- children: (_b = (_a22 = instance == null ? void 0 : instance.store) == null ? void 0 : _a22.states) == null ? void 0 : _b.childrenColumnName.value,
- checkStrictly: (_d = (_c = instance == null ? void 0 : instance.store) == null ? void 0 : _c.states) == null ? void 0 : _d.checkStrictly.value
- };
- const changed = toggleRowStatus(selection.value, row, selected, treeProps2, ignoreSelectable ? void 0 : selectable.value, data.value.indexOf(row), rowKey2.value);
- if (changed) {
- const newSelection = (selection.value || []).slice();
- if (emitChange) {
- instance.emit("select", newSelection, row);
- }
- instance.emit("selection-change", newSelection);
- }
- };
- const _toggleAllSelection = () => {
- var _a22, _b;
- const value = selectOnIndeterminate.value ? !isAllSelected.value : !(isAllSelected.value || selection.value.length);
- isAllSelected.value = value;
- let selectionChanged = false;
- let childrenCount = 0;
- const rowKey22 = (_b = (_a22 = instance == null ? void 0 : instance.store) == null ? void 0 : _a22.states) == null ? void 0 : _b.rowKey.value;
- const { childrenColumnName } = instance.store.states;
- const treeProps2 = {
- children: childrenColumnName.value,
- checkStrictly: false
- };
- data.value.forEach((row, index) => {
- const rowIndex = index + childrenCount;
- if (toggleRowStatus(selection.value, row, value, treeProps2, selectable.value, rowIndex, rowKey22)) {
- selectionChanged = true;
- }
- childrenCount += getChildrenCount(getRowIdentity(row, rowKey22));
- });
- if (selectionChanged) {
- instance.emit("selection-change", selection.value ? selection.value.slice() : []);
- }
- instance.emit("select-all", (selection.value || []).slice());
- };
- const updateAllSelected = () => {
- var _a22;
- if (((_a22 = data.value) == null ? void 0 : _a22.length) === 0) {
- isAllSelected.value = false;
- return;
- }
- const { childrenColumnName } = instance.store.states;
- let rowIndex = 0;
- let selectedCount = 0;
- const checkSelectedStatus = (data2) => {
- var _a3;
- for (const row of data2) {
- const isRowSelectable = selectable.value && selectable.value.call(null, row, rowIndex);
- if (!isSelected(row)) {
- if (!selectable.value || isRowSelectable) {
- return false;
- }
- } else {
- selectedCount++;
- }
- rowIndex++;
- if (((_a3 = row[childrenColumnName.value]) == null ? void 0 : _a3.length) && !checkSelectedStatus(row[childrenColumnName.value])) {
- return false;
- }
- }
- return true;
- };
- const isAllSelected_ = checkSelectedStatus(data.value || []);
- isAllSelected.value = selectedCount === 0 ? false : isAllSelected_;
- };
- const getChildrenCount = (rowKey22) => {
- var _a22;
- if (!instance || !instance.store)
- return 0;
- const { treeData } = instance.store.states;
- let count = 0;
- const children = (_a22 = treeData.value[rowKey22]) == null ? void 0 : _a22.children;
- if (children) {
- count += children.length;
- children.forEach((childKey) => {
- count += getChildrenCount(childKey);
- });
- }
- return count;
- };
- const updateFilters = (column2, values2) => {
- const filters_ = {};
- castArray_default(column2).forEach((col) => {
- filters.value[col.id] = values2;
- filters_[col.columnKey || col.id] = values2;
- });
- return filters_;
- };
- const updateSort = (column2, prop, order) => {
- if (sortingColumn.value && sortingColumn.value !== column2) {
- sortingColumn.value.order = null;
- }
- sortingColumn.value = column2;
- sortProp.value = prop;
- sortOrder.value = order;
- };
- const execFilter = () => {
- let sourceData = unref(_data);
- Object.keys(filters.value).forEach((columnId) => {
- const values2 = filters.value[columnId];
- if (!values2 || values2.length === 0)
- return;
- const column2 = getColumnById({
- columns: columns2.value
- }, columnId);
- if (column2 && column2.filterMethod) {
- sourceData = sourceData.filter((row) => {
- return values2.some((value) => column2.filterMethod.call(null, value, row, column2));
- });
- }
- });
- filteredData.value = sourceData;
- };
- const execSort = () => {
- var _a22;
- data.value = sortData((_a22 = filteredData.value) != null ? _a22 : [], {
- sortingColumn: sortingColumn.value,
- sortProp: sortProp.value,
- sortOrder: sortOrder.value
- });
- };
- const execQuery = (ignore = void 0) => {
- if (!(ignore == null ? void 0 : ignore.filter)) {
- execFilter();
- }
- execSort();
- };
- const clearFilter = (columnKeys) => {
- const { tableHeaderRef } = instance.refs;
- if (!tableHeaderRef)
- return;
- const panels = Object.assign({}, tableHeaderRef.filterPanels);
- const keys3 = Object.keys(panels);
- if (!keys3.length)
- return;
- if (isString(columnKeys)) {
- columnKeys = [columnKeys];
- }
- if (isArray(columnKeys)) {
- const columns_ = columnKeys.map((key) => getColumnByKey({
- columns: columns2.value
- }, key));
- keys3.forEach((key) => {
- const column2 = columns_.find((col) => col.id === key);
- if (column2) {
- column2.filteredValue = [];
- }
- });
- instance.store.commit("filterChange", {
- column: columns_,
- values: [],
- silent: true,
- multi: true
- });
- } else {
- keys3.forEach((key) => {
- const column2 = columns2.value.find((col) => col.id === key);
- if (column2) {
- column2.filteredValue = [];
- }
- });
- filters.value = {};
- instance.store.commit("filterChange", {
- column: {},
- values: [],
- silent: true
- });
- }
- };
- const clearSort = () => {
- if (!sortingColumn.value)
- return;
- updateSort(null, null, null);
- instance.store.commit("changeSortCondition", {
- silent: true
- });
- };
- const {
- setExpandRowKeys,
- toggleRowExpansion,
- updateExpandRows,
- states: expandStates,
- isRowExpanded
- } = useExpand({
- data,
- rowKey: rowKey2
- });
- const {
- updateTreeExpandKeys,
- toggleTreeExpansion,
- updateTreeData,
- updateKeyChildren,
- loadOrToggle,
- states: treeStates
- } = useTree({
- data,
- rowKey: rowKey2
- });
- const {
- updateCurrentRowData,
- updateCurrentRow,
- setCurrentRowKey,
- states: currentData
- } = useCurrent({
- data,
- rowKey: rowKey2
- });
- const setExpandRowKeysAdapter = (val) => {
- setExpandRowKeys(val);
- updateTreeExpandKeys(val);
- };
- const toggleRowExpansionAdapter = (row, expanded) => {
- const hasExpandColumn = columns2.value.some(({ type: type4 }) => type4 === "expand");
- if (hasExpandColumn) {
- toggleRowExpansion(row, expanded);
- } else {
- toggleTreeExpansion(row, expanded);
- }
- };
- return {
- assertRowKey,
- updateColumns,
- scheduleLayout,
- isSelected,
- clearSelection,
- cleanSelection,
- getSelectionRows,
- toggleRowSelection,
- _toggleAllSelection,
- toggleAllSelection: null,
- updateAllSelected,
- updateFilters,
- updateCurrentRow,
- updateSort,
- execFilter,
- execSort,
- execQuery,
- clearFilter,
- clearSort,
- toggleRowExpansion,
- setExpandRowKeysAdapter,
- setCurrentRowKey,
- toggleRowExpansionAdapter,
- isRowExpanded,
- updateExpandRows,
- updateCurrentRowData,
- loadOrToggle,
- updateTreeData,
- updateKeyChildren,
- states: {
- tableSize,
- rowKey: rowKey2,
- data,
- _data,
- isComplex,
- _columns,
- originColumns,
- columns: columns2,
- fixedColumns,
- rightFixedColumns,
- leafColumns,
- fixedLeafColumns,
- rightFixedLeafColumns,
- updateOrderFns,
- leafColumnsLength,
- fixedLeafColumnsLength,
- rightFixedLeafColumnsLength,
- isAllSelected,
- selection,
- reserveSelection,
- selectOnIndeterminate,
- selectable,
- filters,
- filteredData,
- sortingColumn,
- sortProp,
- sortOrder,
- hoverRow,
- ...expandStates,
- ...treeStates,
- ...currentData
- }
- };
- }
- // node_modules/element-plus/es/components/table/src/store/index.mjs
- function replaceColumn(array4, column2) {
- return array4.map((item) => {
- var _a2;
- if (item.id === column2.id) {
- return column2;
- } else if ((_a2 = item.children) == null ? void 0 : _a2.length) {
- item.children = replaceColumn(item.children, column2);
- }
- return item;
- });
- }
- function sortColumn(array4) {
- array4.forEach((item) => {
- var _a2, _b;
- item.no = (_a2 = item.getColumnIndex) == null ? void 0 : _a2.call(item);
- if ((_b = item.children) == null ? void 0 : _b.length) {
- sortColumn(item.children);
- }
- });
- array4.sort((cur, pre) => cur.no - pre.no);
- }
- function useStore() {
- const instance = getCurrentInstance();
- const watcher = useWatcher();
- const ns = useNamespace("table");
- const mutations = {
- setData(states, data) {
- const dataInstanceChanged = unref(states._data) !== data;
- states.data.value = data;
- states._data.value = data;
- instance.store.execQuery();
- instance.store.updateCurrentRowData();
- instance.store.updateExpandRows();
- instance.store.updateTreeData(instance.store.states.defaultExpandAll.value);
- if (unref(states.reserveSelection)) {
- instance.store.assertRowKey();
- } else {
- if (dataInstanceChanged) {
- instance.store.clearSelection();
- } else {
- instance.store.cleanSelection();
- }
- }
- instance.store.updateAllSelected();
- if (instance.$ready) {
- instance.store.scheduleLayout();
- }
- },
- insertColumn(states, column2, parent2, updateColumnOrder) {
- var _a2;
- const array4 = unref(states._columns);
- let newColumns = [];
- if (!parent2) {
- array4.push(column2);
- newColumns = array4;
- } else {
- if (parent2 && !parent2.children) {
- parent2.children = [];
- }
- (_a2 = parent2.children) == null ? void 0 : _a2.push(column2);
- newColumns = replaceColumn(array4, parent2);
- }
- sortColumn(newColumns);
- states._columns.value = newColumns;
- states.updateOrderFns.push(updateColumnOrder);
- if (column2.type === "selection") {
- states.selectable.value = column2.selectable;
- states.reserveSelection.value = column2.reserveSelection;
- }
- if (instance.$ready) {
- instance.store.updateColumns();
- instance.store.scheduleLayout();
- }
- },
- updateColumnOrder(states, column2) {
- var _a2;
- const newColumnIndex = (_a2 = column2.getColumnIndex) == null ? void 0 : _a2.call(column2);
- if (newColumnIndex === column2.no)
- return;
- sortColumn(states._columns.value);
- if (instance.$ready) {
- instance.store.updateColumns();
- }
- },
- removeColumn(states, column2, parent2, updateColumnOrder) {
- var _a2;
- const array4 = unref(states._columns) || [];
- if (parent2) {
- (_a2 = parent2.children) == null ? void 0 : _a2.splice(parent2.children.findIndex((item) => item.id === column2.id), 1);
- nextTick(() => {
- var _a22;
- if (((_a22 = parent2.children) == null ? void 0 : _a22.length) === 0) {
- delete parent2.children;
- }
- });
- states._columns.value = replaceColumn(array4, parent2);
- } else {
- const index = array4.indexOf(column2);
- if (index > -1) {
- array4.splice(index, 1);
- states._columns.value = array4;
- }
- }
- const updateFnIndex = states.updateOrderFns.indexOf(updateColumnOrder);
- updateFnIndex > -1 && states.updateOrderFns.splice(updateFnIndex, 1);
- if (instance.$ready) {
- instance.store.updateColumns();
- instance.store.scheduleLayout();
- }
- },
- sort(states, options) {
- const { prop, order, init } = options;
- if (prop) {
- const column2 = unref(states.columns).find((column22) => column22.property === prop);
- if (column2) {
- column2.order = order;
- instance.store.updateSort(column2, prop, order);
- instance.store.commit("changeSortCondition", { init });
- }
- }
- },
- changeSortCondition(states, options) {
- const { sortingColumn, sortProp, sortOrder } = states;
- const columnValue = unref(sortingColumn), propValue = unref(sortProp), orderValue = unref(sortOrder);
- if (isNull_default(orderValue)) {
- states.sortingColumn.value = null;
- states.sortProp.value = null;
- }
- const ignore = { filter: true };
- instance.store.execQuery(ignore);
- if (!options || !(options.silent || options.init)) {
- instance.emit("sort-change", {
- column: columnValue,
- prop: propValue,
- order: orderValue
- });
- }
- instance.store.updateTableScrollY();
- },
- filterChange(_states, options) {
- const { column: column2, values: values2, silent } = options;
- const newFilters = instance.store.updateFilters(column2, values2);
- instance.store.execQuery();
- if (!silent) {
- instance.emit("filter-change", newFilters);
- }
- instance.store.updateTableScrollY();
- },
- toggleAllSelection() {
- var _a2, _b;
- (_b = (_a2 = instance.store).toggleAllSelection) == null ? void 0 : _b.call(_a2);
- },
- rowSelectedChanged(_states, row) {
- instance.store.toggleRowSelection(row);
- instance.store.updateAllSelected();
- },
- setHoverRow(states, row) {
- states.hoverRow.value = row;
- },
- setCurrentRow(_states, row) {
- instance.store.updateCurrentRow(row);
- }
- };
- const commit = function(name, ...args) {
- const mutations2 = instance.store.mutations;
- if (mutations2[name]) {
- mutations2[name].apply(instance, [
- instance.store.states,
- ...args
- ]);
- } else {
- throw new Error(`Action not found: ${name}`);
- }
- };
- const updateTableScrollY = function() {
- nextTick(() => instance.layout.updateScrollY.apply(instance.layout));
- };
- return {
- ns,
- ...watcher,
- mutations,
- commit,
- updateTableScrollY
- };
- }
- // node_modules/element-plus/es/components/table/src/store/helper.mjs
- var InitialStateMap = {
- rowKey: "rowKey",
- defaultExpandAll: "defaultExpandAll",
- selectOnIndeterminate: "selectOnIndeterminate",
- indent: "indent",
- lazy: "lazy",
- data: "data",
- ["treeProps.hasChildren"]: {
- key: "lazyColumnIdentifier",
- default: "hasChildren"
- },
- ["treeProps.children"]: {
- key: "childrenColumnName",
- default: "children"
- },
- ["treeProps.checkStrictly"]: {
- key: "checkStrictly",
- default: false
- }
- };
- function createStore(table, props2) {
- if (!table) {
- throw new Error("Table is required.");
- }
- const store = useStore();
- store.toggleAllSelection = debounce_default(store._toggleAllSelection, 10);
- Object.keys(InitialStateMap).forEach((key) => {
- handleValue(getArrKeysValue(props2, key), key, store);
- });
- proxyTableProps(store, props2);
- return store;
- }
- function proxyTableProps(store, props2) {
- Object.keys(InitialStateMap).forEach((key) => {
- watch(() => getArrKeysValue(props2, key), (value) => {
- handleValue(value, key, store);
- });
- });
- }
- function handleValue(value, propsKey, store) {
- let newVal = value;
- let storeKey = InitialStateMap[propsKey];
- if (isObject(storeKey)) {
- newVal = newVal || storeKey.default;
- storeKey = storeKey.key;
- }
- store.states[storeKey].value = newVal;
- }
- function getArrKeysValue(props2, key) {
- if (key.includes(".")) {
- const keyList = key.split(".");
- let value = props2;
- keyList.forEach((k) => {
- value = value[k];
- });
- return value;
- } else {
- return props2[key];
- }
- }
- // node_modules/element-plus/es/components/table/src/table-layout.mjs
- var TableLayout = class {
- constructor(options) {
- this.observers = [];
- this.table = null;
- this.store = null;
- this.columns = [];
- this.fit = true;
- this.showHeader = true;
- this.height = ref(null);
- this.scrollX = ref(false);
- this.scrollY = ref(false);
- this.bodyWidth = ref(null);
- this.fixedWidth = ref(null);
- this.rightFixedWidth = ref(null);
- this.gutterWidth = 0;
- for (const name in options) {
- if (hasOwn(options, name)) {
- if (isRef(this[name])) {
- this[name].value = options[name];
- } else {
- this[name] = options[name];
- }
- }
- }
- if (!this.table) {
- throw new Error("Table is required for Table Layout");
- }
- if (!this.store) {
- throw new Error("Store is required for Table Layout");
- }
- }
- updateScrollY() {
- const height = this.height.value;
- if (isNull_default(height))
- return false;
- const scrollBarRef = this.table.refs.scrollBarRef;
- if (this.table.vnode.el && (scrollBarRef == null ? void 0 : scrollBarRef.wrapRef)) {
- let scrollY = true;
- const prevScrollY = this.scrollY.value;
- scrollY = scrollBarRef.wrapRef.scrollHeight > scrollBarRef.wrapRef.clientHeight;
- this.scrollY.value = scrollY;
- return prevScrollY !== scrollY;
- }
- return false;
- }
- setHeight(value, prop = "height") {
- if (!isClient)
- return;
- const el = this.table.vnode.el;
- value = parseHeight(value);
- this.height.value = Number(value);
- if (!el && (value || value === 0)) {
- nextTick(() => this.setHeight(value, prop));
- return;
- }
- if (el && isNumber2(value)) {
- el.style[prop] = `${value}px`;
- this.updateElsHeight();
- } else if (el && isString(value)) {
- el.style[prop] = value;
- this.updateElsHeight();
- }
- }
- setMaxHeight(value) {
- this.setHeight(value, "max-height");
- }
- getFlattenColumns() {
- const flattenColumns = [];
- const columns2 = this.table.store.states.columns.value;
- columns2.forEach((column2) => {
- if (column2.isColumnGroup) {
- flattenColumns.push.apply(flattenColumns, column2.columns);
- } else {
- flattenColumns.push(column2);
- }
- });
- return flattenColumns;
- }
- updateElsHeight() {
- this.updateScrollY();
- this.notifyObservers("scrollable");
- }
- headerDisplayNone(elm) {
- if (!elm)
- return true;
- let headerChild = elm;
- while (headerChild.tagName !== "DIV") {
- if (getComputedStyle(headerChild).display === "none") {
- return true;
- }
- headerChild = headerChild.parentElement;
- }
- return false;
- }
- updateColumnsWidth() {
- var _a2;
- if (!isClient)
- return;
- const fit = this.fit;
- const bodyWidth = (_a2 = this.table.vnode.el) == null ? void 0 : _a2.clientWidth;
- let bodyMinWidth = 0;
- const flattenColumns = this.getFlattenColumns();
- const flexColumns = flattenColumns.filter((column2) => !isNumber2(column2.width));
- flattenColumns.forEach((column2) => {
- if (isNumber2(column2.width) && column2.realWidth)
- column2.realWidth = null;
- });
- if (flexColumns.length > 0 && fit) {
- flattenColumns.forEach((column2) => {
- bodyMinWidth += Number(column2.width || column2.minWidth || 80);
- });
- if (bodyMinWidth <= bodyWidth) {
- this.scrollX.value = false;
- const totalFlexWidth = bodyWidth - bodyMinWidth;
- if (flexColumns.length === 1) {
- flexColumns[0].realWidth = Number(flexColumns[0].minWidth || 80) + totalFlexWidth;
- } else {
- const allColumnsWidth = flexColumns.reduce((prev, column2) => prev + Number(column2.minWidth || 80), 0);
- const flexWidthPerPixel = totalFlexWidth / allColumnsWidth;
- let noneFirstWidth = 0;
- flexColumns.forEach((column2, index) => {
- if (index === 0)
- return;
- const flexWidth = Math.floor(Number(column2.minWidth || 80) * flexWidthPerPixel);
- noneFirstWidth += flexWidth;
- column2.realWidth = Number(column2.minWidth || 80) + flexWidth;
- });
- flexColumns[0].realWidth = Number(flexColumns[0].minWidth || 80) + totalFlexWidth - noneFirstWidth;
- }
- } else {
- this.scrollX.value = true;
- flexColumns.forEach((column2) => {
- column2.realWidth = Number(column2.minWidth);
- });
- }
- this.bodyWidth.value = Math.max(bodyMinWidth, bodyWidth);
- this.table.state.resizeState.value.width = this.bodyWidth.value;
- } else {
- flattenColumns.forEach((column2) => {
- if (!column2.width && !column2.minWidth) {
- column2.realWidth = 80;
- } else {
- column2.realWidth = Number(column2.width || column2.minWidth);
- }
- bodyMinWidth += column2.realWidth;
- });
- this.scrollX.value = bodyMinWidth > bodyWidth;
- this.bodyWidth.value = bodyMinWidth;
- }
- const fixedColumns = this.store.states.fixedColumns.value;
- if (fixedColumns.length > 0) {
- let fixedWidth = 0;
- fixedColumns.forEach((column2) => {
- fixedWidth += Number(column2.realWidth || column2.width);
- });
- this.fixedWidth.value = fixedWidth;
- }
- const rightFixedColumns = this.store.states.rightFixedColumns.value;
- if (rightFixedColumns.length > 0) {
- let rightFixedWidth = 0;
- rightFixedColumns.forEach((column2) => {
- rightFixedWidth += Number(column2.realWidth || column2.width);
- });
- this.rightFixedWidth.value = rightFixedWidth;
- }
- this.notifyObservers("columns");
- }
- addObserver(observer) {
- this.observers.push(observer);
- }
- removeObserver(observer) {
- const index = this.observers.indexOf(observer);
- if (index !== -1) {
- this.observers.splice(index, 1);
- }
- }
- notifyObservers(event) {
- const observers = this.observers;
- observers.forEach((observer) => {
- var _a2, _b;
- switch (event) {
- case "columns":
- (_a2 = observer.state) == null ? void 0 : _a2.onColumnsChange(this);
- break;
- case "scrollable":
- (_b = observer.state) == null ? void 0 : _b.onScrollableChange(this);
- break;
- default:
- throw new Error(`Table Layout don't have event ${event}.`);
- }
- });
- }
- };
- // node_modules/element-plus/es/components/table/src/filter-panel.mjs
- var { CheckboxGroup: ElCheckboxGroup2 } = ElCheckbox;
- var _sfc_main420 = defineComponent({
- name: "ElTableFilterPanel",
- components: {
- ElCheckbox,
- ElCheckboxGroup: ElCheckboxGroup2,
- ElScrollbar,
- ElTooltip,
- ElIcon,
- ArrowDown: arrow_down_default,
- ArrowUp: arrow_up_default
- },
- directives: { ClickOutside },
- props: {
- placement: {
- type: String,
- default: "bottom-start"
- },
- store: {
- type: Object
- },
- column: {
- type: Object
- },
- upDataColumn: {
- type: Function
- },
- appendTo: useTooltipContentProps.appendTo
- },
- setup(props2) {
- const instance = getCurrentInstance();
- const { t } = useLocale();
- const ns = useNamespace("table-filter");
- const parent2 = instance == null ? void 0 : instance.parent;
- if (props2.column && !parent2.filterPanels.value[props2.column.id]) {
- parent2.filterPanels.value[props2.column.id] = instance;
- }
- const tooltipVisible = ref(false);
- const tooltip = ref(null);
- const filters = computed(() => {
- return props2.column && props2.column.filters;
- });
- const filterClassName = computed(() => {
- if (props2.column && props2.column.filterClassName) {
- return `${ns.b()} ${props2.column.filterClassName}`;
- }
- return ns.b();
- });
- const filterValue = computed({
- get: () => {
- var _a2;
- return (((_a2 = props2.column) == null ? void 0 : _a2.filteredValue) || [])[0];
- },
- set: (value) => {
- if (filteredValue.value) {
- if (!isPropAbsent(value)) {
- filteredValue.value.splice(0, 1, value);
- } else {
- filteredValue.value.splice(0, 1);
- }
- }
- }
- });
- const filteredValue = computed({
- get() {
- if (props2.column) {
- return props2.column.filteredValue || [];
- }
- return [];
- },
- set(value) {
- var _a2;
- if (props2.column) {
- (_a2 = props2.upDataColumn) == null ? void 0 : _a2.call(props2, "filteredValue", value);
- }
- }
- });
- const multiple = computed(() => {
- if (props2.column) {
- return props2.column.filterMultiple;
- }
- return true;
- });
- const isActive = (filter2) => {
- return filter2.value === filterValue.value;
- };
- const hidden = () => {
- tooltipVisible.value = false;
- };
- const showFilterPanel = (e) => {
- e.stopPropagation();
- tooltipVisible.value = !tooltipVisible.value;
- };
- const hideFilterPanel = () => {
- tooltipVisible.value = false;
- };
- const handleConfirm = () => {
- confirmFilter(filteredValue.value);
- hidden();
- };
- const handleReset = () => {
- filteredValue.value = [];
- confirmFilter(filteredValue.value);
- hidden();
- };
- const handleSelect = (_filterValue) => {
- filterValue.value = _filterValue;
- if (!isPropAbsent(_filterValue)) {
- confirmFilter(filteredValue.value);
- } else {
- confirmFilter([]);
- }
- hidden();
- };
- const confirmFilter = (filteredValue2) => {
- var _a2, _b;
- (_a2 = props2.store) == null ? void 0 : _a2.commit("filterChange", {
- column: props2.column,
- values: filteredValue2
- });
- (_b = props2.store) == null ? void 0 : _b.updateAllSelected();
- };
- watch(tooltipVisible, (value) => {
- var _a2;
- if (props2.column) {
- (_a2 = props2.upDataColumn) == null ? void 0 : _a2.call(props2, "filterOpened", value);
- }
- }, {
- immediate: true
- });
- const popperPaneRef = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = tooltip.value) == null ? void 0 : _a2.popperRef) == null ? void 0 : _b.contentRef;
- });
- return {
- tooltipVisible,
- multiple,
- filterClassName,
- filteredValue,
- filterValue,
- filters,
- handleConfirm,
- handleReset,
- handleSelect,
- isPropAbsent,
- isActive,
- t,
- ns,
- showFilterPanel,
- hideFilterPanel,
- popperPaneRef,
- tooltip
- };
- }
- });
- function _sfc_render21(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_checkbox = resolveComponent("el-checkbox");
- const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
- const _component_arrow_up = resolveComponent("arrow-up");
- const _component_arrow_down = resolveComponent("arrow-down");
- const _component_el_icon = resolveComponent("el-icon");
- const _component_el_tooltip = resolveComponent("el-tooltip");
- const _directive_click_outside = resolveDirective("click-outside");
- return openBlock(), createBlock(_component_el_tooltip, {
- ref: "tooltip",
- visible: _ctx.tooltipVisible,
- offset: 0,
- placement: _ctx.placement,
- "show-arrow": false,
- "stop-popper-mouse-event": false,
- teleported: "",
- effect: "light",
- pure: "",
- "popper-class": _ctx.filterClassName,
- persistent: "",
- "append-to": _ctx.appendTo
- }, {
- content: withCtx(() => [
- _ctx.multiple ? (openBlock(), createElementBlock("div", { key: 0 }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("content"))
- }, [
- createVNode(_component_el_scrollbar, {
- "wrap-class": _ctx.ns.e("wrap")
- }, {
- default: withCtx(() => [
- createVNode(_component_el_checkbox_group, {
- modelValue: _ctx.filteredValue,
- "onUpdate:modelValue": ($event) => _ctx.filteredValue = $event,
- class: normalizeClass(_ctx.ns.e("checkbox-group"))
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filters, (filter2) => {
- return openBlock(), createBlock(_component_el_checkbox, {
- key: filter2.value,
- value: filter2.value
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(filter2.text), 1)
- ]),
- _: 2
- }, 1032, ["value"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["modelValue", "onUpdate:modelValue", "class"])
- ]),
- _: 1
- }, 8, ["wrap-class"])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("bottom"))
- }, [
- createBaseVNode("button", {
- class: normalizeClass({ [_ctx.ns.is("disabled")]: _ctx.filteredValue.length === 0 }),
- disabled: _ctx.filteredValue.length === 0,
- type: "button",
- onClick: _ctx.handleConfirm
- }, toDisplayString(_ctx.t("el.table.confirmFilter")), 11, ["disabled", "onClick"]),
- createBaseVNode("button", {
- type: "button",
- onClick: _ctx.handleReset
- }, toDisplayString(_ctx.t("el.table.resetFilter")), 9, ["onClick"])
- ], 2)
- ])) : (openBlock(), createElementBlock("ul", {
- key: 1,
- class: normalizeClass(_ctx.ns.e("list"))
- }, [
- createBaseVNode("li", {
- class: normalizeClass([
- _ctx.ns.e("list-item"),
- {
- [_ctx.ns.is("active")]: _ctx.isPropAbsent(_ctx.filterValue)
- }
- ]),
- onClick: ($event) => _ctx.handleSelect(null)
- }, toDisplayString(_ctx.t("el.table.clearFilter")), 11, ["onClick"]),
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filters, (filter2) => {
- return openBlock(), createElementBlock("li", {
- key: filter2.value,
- class: normalizeClass([_ctx.ns.e("list-item"), _ctx.ns.is("active", _ctx.isActive(filter2))]),
- label: filter2.value,
- onClick: ($event) => _ctx.handleSelect(filter2.value)
- }, toDisplayString(filter2.text), 11, ["label", "onClick"]);
- }), 128))
- ], 2))
- ]),
- default: withCtx(() => [
- withDirectives((openBlock(), createElementBlock("span", {
- class: normalizeClass([
- `${_ctx.ns.namespace.value}-table__column-filter-trigger`,
- `${_ctx.ns.namespace.value}-none-outline`
- ]),
- onClick: _ctx.showFilterPanel
- }, [
- createVNode(_component_el_icon, null, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "filter-icon", {}, () => {
- var _a2;
- return [
- ((_a2 = _ctx.column) == null ? void 0 : _a2.filterOpened) ? (openBlock(), createBlock(_component_arrow_up, { key: 0 })) : (openBlock(), createBlock(_component_arrow_down, { key: 1 }))
- ];
- })
- ]),
- _: 3
- })
- ], 10, ["onClick"])), [
- [_directive_click_outside, _ctx.hideFilterPanel, _ctx.popperPaneRef]
- ])
- ]),
- _: 3
- }, 8, ["visible", "placement", "popper-class", "append-to"]);
- }
- var FilterPanel = _export_sfc(_sfc_main420, [["render", _sfc_render21], ["__file", "filter-panel.vue"]]);
- // node_modules/element-plus/es/components/table/src/layout-observer.mjs
- function useLayoutObserver(root2) {
- const instance = getCurrentInstance();
- onBeforeMount(() => {
- tableLayout.value.addObserver(instance);
- });
- onMounted(() => {
- onColumnsChange(tableLayout.value);
- onScrollableChange(tableLayout.value);
- });
- onUpdated(() => {
- onColumnsChange(tableLayout.value);
- onScrollableChange(tableLayout.value);
- });
- onUnmounted(() => {
- tableLayout.value.removeObserver(instance);
- });
- const tableLayout = computed(() => {
- const layout2 = root2.layout;
- if (!layout2) {
- throw new Error("Can not find table layout.");
- }
- return layout2;
- });
- const onColumnsChange = (layout2) => {
- var _a2;
- const cols = ((_a2 = root2.vnode.el) == null ? void 0 : _a2.querySelectorAll("colgroup > col")) || [];
- if (!cols.length)
- return;
- const flattenColumns = layout2.getFlattenColumns();
- const columnsMap = {};
- flattenColumns.forEach((column2) => {
- columnsMap[column2.id] = column2;
- });
- for (let i = 0, j = cols.length; i < j; i++) {
- const col = cols[i];
- const name = col.getAttribute("name");
- const column2 = columnsMap[name];
- if (column2) {
- col.setAttribute("width", column2.realWidth || column2.width);
- }
- }
- };
- const onScrollableChange = (layout2) => {
- var _a2, _b;
- const cols = ((_a2 = root2.vnode.el) == null ? void 0 : _a2.querySelectorAll("colgroup > col[name=gutter]")) || [];
- for (let i = 0, j = cols.length; i < j; i++) {
- const col = cols[i];
- col.setAttribute("width", layout2.scrollY.value ? layout2.gutterWidth : "0");
- }
- const ths = ((_b = root2.vnode.el) == null ? void 0 : _b.querySelectorAll("th.gutter")) || [];
- for (let i = 0, j = ths.length; i < j; i++) {
- const th = ths[i];
- th.style.width = layout2.scrollY.value ? `${layout2.gutterWidth}px` : "0";
- th.style.display = layout2.scrollY.value ? "" : "none";
- }
- };
- return {
- tableLayout: tableLayout.value,
- onColumnsChange,
- onScrollableChange
- };
- }
- // node_modules/element-plus/es/components/table/src/tokens.mjs
- var TABLE_INJECTION_KEY = Symbol("ElTable");
- // node_modules/element-plus/es/components/table/src/table-header/event-helper.mjs
- function useEvent(props2, emit) {
- const instance = getCurrentInstance();
- const parent2 = inject(TABLE_INJECTION_KEY);
- const handleFilterClick = (event) => {
- event.stopPropagation();
- return;
- };
- const handleHeaderClick = (event, column2) => {
- if (!column2.filters && column2.sortable) {
- handleSortClick(event, column2, false);
- } else if (column2.filterable && !column2.sortable) {
- handleFilterClick(event);
- }
- parent2 == null ? void 0 : parent2.emit("header-click", column2, event);
- };
- const handleHeaderContextMenu = (event, column2) => {
- parent2 == null ? void 0 : parent2.emit("header-contextmenu", column2, event);
- };
- const draggingColumn = ref(null);
- const dragging = ref(false);
- const dragState = ref();
- const handleMouseDown = (event, column2) => {
- var _a2, _b;
- if (!isClient)
- return;
- if (column2.children && column2.children.length > 0)
- return;
- if (draggingColumn.value && props2.border) {
- dragging.value = true;
- const table = parent2;
- emit("set-drag-visible", true);
- const tableEl = table == null ? void 0 : table.vnode.el;
- const tableLeft = tableEl == null ? void 0 : tableEl.getBoundingClientRect().left;
- const columnEl = (_b = (_a2 = instance == null ? void 0 : instance.vnode) == null ? void 0 : _a2.el) == null ? void 0 : _b.querySelector(`th.${column2.id}`);
- const columnRect = columnEl.getBoundingClientRect();
- const minLeft = columnRect.left - tableLeft + 30;
- addClass(columnEl, "noclick");
- dragState.value = {
- startMouseLeft: event.clientX,
- startLeft: columnRect.right - tableLeft,
- startColumnLeft: columnRect.left - tableLeft,
- tableLeft
- };
- const resizeProxy = table == null ? void 0 : table.refs.resizeProxy;
- resizeProxy.style.left = `${dragState.value.startLeft}px`;
- document.onselectstart = function() {
- return false;
- };
- document.ondragstart = function() {
- return false;
- };
- const handleMouseMove2 = (event2) => {
- const deltaLeft = event2.clientX - dragState.value.startMouseLeft;
- const proxyLeft = dragState.value.startLeft + deltaLeft;
- resizeProxy.style.left = `${Math.max(minLeft, proxyLeft)}px`;
- };
- const handleMouseUp = () => {
- if (dragging.value) {
- const { startColumnLeft, startLeft } = dragState.value;
- const finalLeft = Number.parseInt(resizeProxy.style.left, 10);
- const columnWidth = finalLeft - startColumnLeft;
- column2.width = column2.realWidth = columnWidth;
- table == null ? void 0 : table.emit("header-dragend", column2.width, startLeft - startColumnLeft, column2, event);
- requestAnimationFrame(() => {
- props2.store.scheduleLayout(false, true);
- });
- document.body.style.cursor = "";
- dragging.value = false;
- draggingColumn.value = null;
- dragState.value = void 0;
- emit("set-drag-visible", false);
- }
- document.removeEventListener("mousemove", handleMouseMove2);
- document.removeEventListener("mouseup", handleMouseUp);
- document.onselectstart = null;
- document.ondragstart = null;
- setTimeout(() => {
- removeClass(columnEl, "noclick");
- }, 0);
- };
- document.addEventListener("mousemove", handleMouseMove2);
- document.addEventListener("mouseup", handleMouseUp);
- }
- };
- const handleMouseMove = (event, column2) => {
- var _a2;
- if (column2.children && column2.children.length > 0)
- return;
- const el = event.target;
- if (!isElement2(el)) {
- return;
- }
- const target2 = el == null ? void 0 : el.closest("th");
- if (!column2 || !column2.resizable || !target2)
- return;
- if (!dragging.value && props2.border) {
- const rect = target2.getBoundingClientRect();
- const bodyStyle = document.body.style;
- const isLastTh = ((_a2 = target2.parentNode) == null ? void 0 : _a2.lastElementChild) === target2;
- const allowDarg = props2.allowDragLastColumn || !isLastTh;
- if (rect.width > 12 && rect.right - event.clientX < 8 && allowDarg) {
- bodyStyle.cursor = "col-resize";
- if (hasClass(target2, "is-sortable")) {
- target2.style.cursor = "col-resize";
- }
- draggingColumn.value = column2;
- } else if (!dragging.value) {
- bodyStyle.cursor = "";
- if (hasClass(target2, "is-sortable")) {
- target2.style.cursor = "pointer";
- }
- draggingColumn.value = null;
- }
- }
- };
- const handleMouseOut = () => {
- if (!isClient)
- return;
- document.body.style.cursor = "";
- };
- const toggleOrder = ({ order, sortOrders }) => {
- if (order === "")
- return sortOrders[0];
- const index = sortOrders.indexOf(order || null);
- return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
- };
- const handleSortClick = (event, column2, givenOrder) => {
- var _a2;
- event.stopPropagation();
- const order = column2.order === givenOrder ? null : givenOrder || toggleOrder(column2);
- const target2 = (_a2 = event.target) == null ? void 0 : _a2.closest("th");
- if (target2) {
- if (hasClass(target2, "noclick")) {
- removeClass(target2, "noclick");
- return;
- }
- }
- if (!column2.sortable)
- return;
- const clickTarget = event.currentTarget;
- if (["ascending", "descending"].some((str) => hasClass(clickTarget, str) && !column2.sortOrders.includes(str))) {
- return;
- }
- const states = props2.store.states;
- let sortProp = states.sortProp.value;
- let sortOrder;
- const sortingColumn = states.sortingColumn.value;
- if (sortingColumn !== column2 || sortingColumn === column2 && isNull_default(sortingColumn.order)) {
- if (sortingColumn) {
- sortingColumn.order = null;
- }
- states.sortingColumn.value = column2;
- sortProp = column2.property;
- }
- if (!order) {
- sortOrder = column2.order = null;
- } else {
- sortOrder = column2.order = order;
- }
- states.sortProp.value = sortProp;
- states.sortOrder.value = sortOrder;
- parent2 == null ? void 0 : parent2.store.commit("changeSortCondition");
- };
- return {
- handleHeaderClick,
- handleHeaderContextMenu,
- handleMouseDown,
- handleMouseMove,
- handleMouseOut,
- handleSortClick,
- handleFilterClick
- };
- }
- // node_modules/element-plus/es/components/table/src/table-header/style.helper.mjs
- function useStyle(props2) {
- const parent2 = inject(TABLE_INJECTION_KEY);
- const ns = useNamespace("table");
- const getHeaderRowStyle = (rowIndex) => {
- const headerRowStyle = parent2 == null ? void 0 : parent2.props.headerRowStyle;
- if (isFunction(headerRowStyle)) {
- return headerRowStyle.call(null, { rowIndex });
- }
- return headerRowStyle;
- };
- const getHeaderRowClass = (rowIndex) => {
- const classes = [];
- const headerRowClassName = parent2 == null ? void 0 : parent2.props.headerRowClassName;
- if (isString(headerRowClassName)) {
- classes.push(headerRowClassName);
- } else if (isFunction(headerRowClassName)) {
- classes.push(headerRowClassName.call(null, { rowIndex }));
- }
- return classes.join(" ");
- };
- const getHeaderCellStyle = (rowIndex, columnIndex, row, column2) => {
- var _a2;
- let headerCellStyles = (_a2 = parent2 == null ? void 0 : parent2.props.headerCellStyle) != null ? _a2 : {};
- if (isFunction(headerCellStyles)) {
- headerCellStyles = headerCellStyles.call(null, {
- rowIndex,
- columnIndex,
- row,
- column: column2
- });
- }
- const fixedStyle = getFixedColumnOffset(columnIndex, column2.fixed, props2.store, row);
- ensurePosition(fixedStyle, "left");
- ensurePosition(fixedStyle, "right");
- return Object.assign({}, headerCellStyles, fixedStyle);
- };
- const getHeaderCellClass = (rowIndex, columnIndex, row, column2) => {
- const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column2.fixed, props2.store, row);
- const classes = [
- column2.id,
- column2.order,
- column2.headerAlign,
- column2.className,
- column2.labelClassName,
- ...fixedClasses
- ];
- if (!column2.children) {
- classes.push("is-leaf");
- }
- if (column2.sortable) {
- classes.push("is-sortable");
- }
- const headerCellClassName = parent2 == null ? void 0 : parent2.props.headerCellClassName;
- if (isString(headerCellClassName)) {
- classes.push(headerCellClassName);
- } else if (isFunction(headerCellClassName)) {
- classes.push(headerCellClassName.call(null, {
- rowIndex,
- columnIndex,
- row,
- column: column2
- }));
- }
- classes.push(ns.e("cell"));
- return classes.filter((className) => Boolean(className)).join(" ");
- };
- return {
- getHeaderRowStyle,
- getHeaderRowClass,
- getHeaderCellStyle,
- getHeaderCellClass
- };
- }
- // node_modules/element-plus/es/components/table/src/table-header/utils-helper.mjs
- var getAllColumns = (columns2) => {
- const result2 = [];
- columns2.forEach((column2) => {
- if (column2.children) {
- result2.push(column2);
- result2.push.apply(result2, getAllColumns(column2.children));
- } else {
- result2.push(column2);
- }
- });
- return result2;
- };
- var convertToRows = (originColumns) => {
- let maxLevel = 1;
- const traverse = (column2, parent2) => {
- if (parent2) {
- column2.level = parent2.level + 1;
- if (maxLevel < column2.level) {
- maxLevel = column2.level;
- }
- }
- if (column2.children) {
- let colSpan = 0;
- column2.children.forEach((subColumn) => {
- traverse(subColumn, column2);
- colSpan += subColumn.colSpan;
- });
- column2.colSpan = colSpan;
- } else {
- column2.colSpan = 1;
- }
- };
- originColumns.forEach((column2) => {
- column2.level = 1;
- traverse(column2, void 0);
- });
- const rows = [];
- for (let i = 0; i < maxLevel; i++) {
- rows.push([]);
- }
- const allColumns = getAllColumns(originColumns);
- allColumns.forEach((column2) => {
- if (!column2.children) {
- column2.rowSpan = maxLevel - column2.level + 1;
- } else {
- column2.rowSpan = 1;
- column2.children.forEach((col) => col.isSubColumn = true);
- }
- rows[column2.level - 1].push(column2);
- });
- return rows;
- };
- function useUtils(props2) {
- const parent2 = inject(TABLE_INJECTION_KEY);
- const columnRows = computed(() => {
- return convertToRows(props2.store.states.originColumns.value);
- });
- const isGroup = computed(() => {
- const result2 = columnRows.value.length > 1;
- if (result2 && parent2) {
- parent2.state.isGroup.value = true;
- }
- return result2;
- });
- const toggleAllSelection = (event) => {
- event.stopPropagation();
- parent2 == null ? void 0 : parent2.store.commit("toggleAllSelection");
- };
- return {
- isGroup,
- toggleAllSelection,
- columnRows
- };
- }
- // node_modules/element-plus/es/components/table/src/table-header/index.mjs
- var TableHeader = defineComponent({
- name: "ElTableHeader",
- components: {
- ElCheckbox
- },
- props: {
- fixed: {
- type: String,
- default: ""
- },
- store: {
- required: true,
- type: Object
- },
- border: Boolean,
- defaultSort: {
- type: Object,
- default: () => {
- return {
- prop: "",
- order: ""
- };
- }
- },
- appendFilterPanelTo: {
- type: String
- },
- allowDragLastColumn: {
- type: Boolean
- }
- },
- setup(props2, { emit }) {
- const instance = getCurrentInstance();
- const parent2 = inject(TABLE_INJECTION_KEY);
- const ns = useNamespace("table");
- const filterPanels = ref({});
- const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent2);
- const isTableLayoutAuto = (parent2 == null ? void 0 : parent2.props.tableLayout) === "auto";
- const saveIndexSelection = reactive(/* @__PURE__ */ new Map());
- const theadRef = ref();
- let delayId;
- const updateFixedColumnStyle = () => {
- delayId = setTimeout(() => {
- if (saveIndexSelection.size > 0) {
- saveIndexSelection.forEach((column2, key) => {
- const el = theadRef.value.querySelector(`.${key.replace(/\s/g, ".")}`);
- if (el) {
- const width = el.getBoundingClientRect().width;
- column2.width = width || column2.width;
- }
- });
- saveIndexSelection.clear();
- }
- });
- };
- watch(saveIndexSelection, updateFixedColumnStyle);
- onBeforeUnmount(() => {
- if (delayId) {
- clearTimeout(delayId);
- delayId = void 0;
- }
- });
- onMounted(async () => {
- await nextTick();
- await nextTick();
- const { prop, order } = props2.defaultSort;
- parent2 == null ? void 0 : parent2.store.commit("sort", { prop, order, init: true });
- updateFixedColumnStyle();
- });
- const {
- handleHeaderClick,
- handleHeaderContextMenu,
- handleMouseDown,
- handleMouseMove,
- handleMouseOut,
- handleSortClick,
- handleFilterClick
- } = useEvent(props2, emit);
- const {
- getHeaderRowStyle,
- getHeaderRowClass,
- getHeaderCellStyle,
- getHeaderCellClass
- } = useStyle(props2);
- const { isGroup, toggleAllSelection, columnRows } = useUtils(props2);
- instance.state = {
- onColumnsChange,
- onScrollableChange
- };
- instance.filterPanels = filterPanels;
- return {
- ns,
- filterPanels,
- onColumnsChange,
- onScrollableChange,
- columnRows,
- getHeaderRowClass,
- getHeaderRowStyle,
- getHeaderCellClass,
- getHeaderCellStyle,
- handleHeaderClick,
- handleHeaderContextMenu,
- handleMouseDown,
- handleMouseMove,
- handleMouseOut,
- handleSortClick,
- handleFilterClick,
- isGroup,
- toggleAllSelection,
- saveIndexSelection,
- isTableLayoutAuto,
- theadRef,
- updateFixedColumnStyle
- };
- },
- render() {
- const {
- ns,
- isGroup,
- columnRows,
- getHeaderCellStyle,
- getHeaderCellClass,
- getHeaderRowClass,
- getHeaderRowStyle,
- handleHeaderClick,
- handleHeaderContextMenu,
- handleMouseDown,
- handleMouseMove,
- handleSortClick,
- handleMouseOut,
- store,
- $parent,
- saveIndexSelection,
- isTableLayoutAuto
- } = this;
- let rowSpan = 1;
- return h("thead", {
- ref: "theadRef",
- class: { [ns.is("group")]: isGroup }
- }, columnRows.map((subColumns, rowIndex) => h("tr", {
- class: getHeaderRowClass(rowIndex),
- key: rowIndex,
- style: getHeaderRowStyle(rowIndex)
- }, subColumns.map((column2, cellIndex) => {
- if (column2.rowSpan > rowSpan) {
- rowSpan = column2.rowSpan;
- }
- const _class = getHeaderCellClass(rowIndex, cellIndex, subColumns, column2);
- if (isTableLayoutAuto && column2.fixed) {
- saveIndexSelection.set(_class, column2);
- }
- return h("th", {
- class: _class,
- colspan: column2.colSpan,
- key: `${column2.id}-thead`,
- rowspan: column2.rowSpan,
- style: getHeaderCellStyle(rowIndex, cellIndex, subColumns, column2),
- onClick: ($event) => {
- var _a2;
- if ((_a2 = $event.currentTarget) == null ? void 0 : _a2.classList.contains("noclick")) {
- return;
- }
- handleHeaderClick($event, column2);
- },
- onContextmenu: ($event) => handleHeaderContextMenu($event, column2),
- onMousedown: ($event) => handleMouseDown($event, column2),
- onMousemove: ($event) => handleMouseMove($event, column2),
- onMouseout: handleMouseOut
- }, [
- h("div", {
- class: [
- "cell",
- column2.filteredValue && column2.filteredValue.length > 0 ? "highlight" : ""
- ]
- }, [
- column2.renderHeader ? column2.renderHeader({
- column: column2,
- $index: cellIndex,
- store,
- _self: $parent
- }) : column2.label,
- column2.sortable && h("span", {
- onClick: ($event) => handleSortClick($event, column2),
- class: "caret-wrapper"
- }, [
- h("i", {
- onClick: ($event) => handleSortClick($event, column2, "ascending"),
- class: "sort-caret ascending"
- }),
- h("i", {
- onClick: ($event) => handleSortClick($event, column2, "descending"),
- class: "sort-caret descending"
- })
- ]),
- column2.filterable && h(FilterPanel, {
- store,
- placement: column2.filterPlacement || "bottom-start",
- appendTo: $parent == null ? void 0 : $parent.appendFilterPanelTo,
- column: column2,
- upDataColumn: (key, value) => {
- column2[key] = value;
- }
- }, {
- "filter-icon": () => column2.renderFilterIcon ? column2.renderFilterIcon({
- filterOpened: column2.filterOpened
- }) : null
- })
- ])
- ]);
- }))));
- }
- });
- // node_modules/element-plus/es/components/table/src/table-body/events-helper.mjs
- function isGreaterThan(a2, b2, epsilon = 0.03) {
- return a2 - b2 > epsilon;
- }
- function useEvents(props2) {
- const parent2 = inject(TABLE_INJECTION_KEY);
- const tooltipContent = ref("");
- const tooltipTrigger = ref(h("div"));
- const handleEvent = (event, row, name) => {
- var _a2, _b, _c;
- const table = parent2;
- const cell = getCell(event);
- let column2 = null;
- const namespace = (_a2 = table == null ? void 0 : table.vnode.el) == null ? void 0 : _a2.dataset.prefix;
- if (cell) {
- column2 = getColumnByCell({
- columns: (_c = (_b = props2.store) == null ? void 0 : _b.states.columns.value) != null ? _c : []
- }, cell, namespace);
- if (column2) {
- table == null ? void 0 : table.emit(`cell-${name}`, row, column2, cell, event);
- }
- }
- table == null ? void 0 : table.emit(`row-${name}`, row, column2, event);
- };
- const handleDoubleClick = (event, row) => {
- handleEvent(event, row, "dblclick");
- };
- const handleClick = (event, row) => {
- var _a2;
- (_a2 = props2.store) == null ? void 0 : _a2.commit("setCurrentRow", row);
- handleEvent(event, row, "click");
- };
- const handleContextMenu = (event, row) => {
- handleEvent(event, row, "contextmenu");
- };
- const handleMouseEnter = debounce_default((index) => {
- var _a2;
- (_a2 = props2.store) == null ? void 0 : _a2.commit("setHoverRow", index);
- }, 30);
- const handleMouseLeave = debounce_default(() => {
- var _a2;
- (_a2 = props2.store) == null ? void 0 : _a2.commit("setHoverRow", null);
- }, 30);
- const getPadding = (el) => {
- const style = window.getComputedStyle(el, null);
- const paddingLeft = Number.parseInt(style.paddingLeft, 10) || 0;
- const paddingRight = Number.parseInt(style.paddingRight, 10) || 0;
- const paddingTop = Number.parseInt(style.paddingTop, 10) || 0;
- const paddingBottom = Number.parseInt(style.paddingBottom, 10) || 0;
- return {
- left: paddingLeft,
- right: paddingRight,
- top: paddingTop,
- bottom: paddingBottom
- };
- };
- const toggleRowClassByCell = (rowSpan, event, toggle) => {
- var _a2;
- let node = (_a2 = event == null ? void 0 : event.target) == null ? void 0 : _a2.parentNode;
- while (rowSpan > 1) {
- node = node == null ? void 0 : node.nextSibling;
- if (!node || node.nodeName !== "TR")
- break;
- toggle(node, "hover-row hover-fixed-row");
- rowSpan--;
- }
- };
- const handleCellMouseEnter = (event, row, tooltipOptions) => {
- var _a2, _b, _c, _d, _e, _f, _g, _h;
- if (!parent2)
- return;
- const table = parent2;
- const cell = getCell(event);
- const namespace = (_a2 = table == null ? void 0 : table.vnode.el) == null ? void 0 : _a2.dataset.prefix;
- let column2 = null;
- if (cell) {
- column2 = getColumnByCell({
- columns: (_c = (_b = props2.store) == null ? void 0 : _b.states.columns.value) != null ? _c : []
- }, cell, namespace);
- if (!column2) {
- return;
- }
- if (cell.rowSpan > 1) {
- toggleRowClassByCell(cell.rowSpan, event, addClass);
- }
- const hoverState = table.hoverState = {
- cell,
- column: column2,
- row
- };
- table == null ? void 0 : table.emit("cell-mouse-enter", hoverState.row, hoverState.column, hoverState.cell, event);
- }
- if (!tooltipOptions) {
- if (((_d = removePopper) == null ? void 0 : _d.trigger) === cell) {
- (_e = removePopper) == null ? void 0 : _e();
- }
- return;
- }
- const cellChild = event.target.querySelector(".cell");
- if (!(hasClass(cellChild, `${namespace}-tooltip`) && cellChild.childNodes.length)) {
- return;
- }
- const range4 = document.createRange();
- range4.setStart(cellChild, 0);
- range4.setEnd(cellChild, cellChild.childNodes.length);
- const { width: rangeWidth, height: rangeHeight } = range4.getBoundingClientRect();
- const { width: cellChildWidth, height: cellChildHeight } = cellChild.getBoundingClientRect();
- const { top, left, right, bottom } = getPadding(cellChild);
- const horizontalPadding = left + right;
- const verticalPadding = top + bottom;
- if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight) || isGreaterThan(cellChild.scrollWidth, cellChildWidth)) {
- createTablePopper(tooltipOptions, (_f = (cell == null ? void 0 : cell.innerText) || (cell == null ? void 0 : cell.textContent)) != null ? _f : "", row, column2, cell, table);
- } else if (((_g = removePopper) == null ? void 0 : _g.trigger) === cell) {
- (_h = removePopper) == null ? void 0 : _h();
- }
- };
- const handleCellMouseLeave = (event) => {
- const cell = getCell(event);
- if (!cell)
- return;
- if (cell.rowSpan > 1) {
- toggleRowClassByCell(cell.rowSpan, event, removeClass);
- }
- const oldHoverState = parent2 == null ? void 0 : parent2.hoverState;
- 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);
- };
- return {
- handleDoubleClick,
- handleClick,
- handleContextMenu,
- handleMouseEnter,
- handleMouseLeave,
- handleCellMouseEnter,
- handleCellMouseLeave,
- tooltipContent,
- tooltipTrigger
- };
- }
- // node_modules/element-plus/es/components/table/src/table-body/styles-helper.mjs
- function useStyles(props2) {
- const parent2 = inject(TABLE_INJECTION_KEY);
- const ns = useNamespace("table");
- const getRowStyle = (row, rowIndex) => {
- const rowStyle = parent2 == null ? void 0 : parent2.props.rowStyle;
- if (isFunction(rowStyle)) {
- return rowStyle.call(null, {
- row,
- rowIndex
- });
- }
- return rowStyle || null;
- };
- const getRowClass = (row, rowIndex) => {
- var _a2;
- const classes = [ns.e("row")];
- if ((parent2 == null ? void 0 : parent2.props.highlightCurrentRow) && row === ((_a2 = props2.store) == null ? void 0 : _a2.states.currentRow.value)) {
- classes.push("current-row");
- }
- if (props2.stripe && rowIndex % 2 === 1) {
- classes.push(ns.em("row", "striped"));
- }
- const rowClassName = parent2 == null ? void 0 : parent2.props.rowClassName;
- if (isString(rowClassName)) {
- classes.push(rowClassName);
- } else if (isFunction(rowClassName)) {
- classes.push(rowClassName.call(null, {
- row,
- rowIndex
- }));
- }
- return classes;
- };
- const getCellStyle = (rowIndex, columnIndex, row, column2) => {
- const cellStyle = parent2 == null ? void 0 : parent2.props.cellStyle;
- let cellStyles = cellStyle != null ? cellStyle : {};
- if (isFunction(cellStyle)) {
- cellStyles = cellStyle.call(null, {
- rowIndex,
- columnIndex,
- row,
- column: column2
- });
- }
- const fixedStyle = getFixedColumnOffset(columnIndex, props2 == null ? void 0 : props2.fixed, props2.store);
- ensurePosition(fixedStyle, "left");
- ensurePosition(fixedStyle, "right");
- return Object.assign({}, cellStyles, fixedStyle);
- };
- const getCellClass = (rowIndex, columnIndex, row, column2, offset3) => {
- const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props2 == null ? void 0 : props2.fixed, props2.store, void 0, offset3);
- const classes = [column2.id, column2.align, column2.className, ...fixedClasses];
- const cellClassName = parent2 == null ? void 0 : parent2.props.cellClassName;
- if (isString(cellClassName)) {
- classes.push(cellClassName);
- } else if (isFunction(cellClassName)) {
- classes.push(cellClassName.call(null, {
- rowIndex,
- columnIndex,
- row,
- column: column2
- }));
- }
- classes.push(ns.e("cell"));
- return classes.filter((className) => Boolean(className)).join(" ");
- };
- const getSpan = (row, column2, rowIndex, columnIndex) => {
- let rowspan = 1;
- let colspan = 1;
- const fn2 = parent2 == null ? void 0 : parent2.props.spanMethod;
- if (isFunction(fn2)) {
- const result2 = fn2({
- row,
- column: column2,
- rowIndex,
- columnIndex
- });
- if (isArray(result2)) {
- rowspan = result2[0];
- colspan = result2[1];
- } else if (isObject(result2)) {
- rowspan = result2.rowspan;
- colspan = result2.colspan;
- }
- }
- return { rowspan, colspan };
- };
- const getColspanRealWidth = (columns2, colspan, index) => {
- if (colspan < 1) {
- return columns2[index].realWidth;
- }
- const widthArr = columns2.map(({ realWidth, width }) => realWidth || width).slice(index, index + colspan);
- return Number(widthArr.reduce((acc, width) => Number(acc) + Number(width), -1));
- };
- return {
- getRowStyle,
- getRowClass,
- getCellStyle,
- getCellClass,
- getSpan,
- getColspanRealWidth
- };
- }
- // node_modules/element-plus/es/components/table/src/table-body/td-wrapper.mjs
- var __default__97 = defineComponent({
- name: "TableTdWrapper"
- });
- var _sfc_main421 = defineComponent({
- ...__default__97,
- props: {
- colspan: {
- type: Number,
- default: 1
- },
- rowspan: {
- type: Number,
- default: 1
- }
- },
- setup(__props) {
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("td", {
- colspan: __props.colspan,
- rowspan: __props.rowspan
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 8, ["colspan", "rowspan"]);
- };
- }
- });
- var TdWrapper = _export_sfc(_sfc_main421, [["__file", "td-wrapper.vue"]]);
- // node_modules/element-plus/es/components/table/src/table-body/render-helper.mjs
- function useRender(props2) {
- const parent2 = inject(TABLE_INJECTION_KEY);
- const ns = useNamespace("table");
- const {
- handleDoubleClick,
- handleClick,
- handleContextMenu,
- handleMouseEnter,
- handleMouseLeave,
- handleCellMouseEnter,
- handleCellMouseLeave,
- tooltipContent,
- tooltipTrigger
- } = useEvents(props2);
- const {
- getRowStyle,
- getRowClass,
- getCellStyle,
- getCellClass,
- getSpan,
- getColspanRealWidth
- } = useStyles(props2);
- const firstDefaultColumnIndex = computed(() => {
- var _a2;
- return (_a2 = props2.store) == null ? void 0 : _a2.states.columns.value.findIndex(({ type: type4 }) => type4 === "default");
- });
- const getKeyOfRow = (row, index) => {
- var _a2;
- const rowKey2 = (_a2 = parent2 == null ? void 0 : parent2.props) == null ? void 0 : _a2.rowKey;
- if (rowKey2) {
- return getRowIdentity(row, rowKey2);
- }
- return index;
- };
- const rowRender = (row, $index, treeRowData, expanded = false) => {
- const { tooltipEffect, tooltipOptions, store } = props2;
- const { indent, columns: columns2 } = store.states;
- const rowClasses = getRowClass(row, $index);
- let display = true;
- if (treeRowData) {
- rowClasses.push(ns.em("row", `level-${treeRowData.level}`));
- display = !!treeRowData.display;
- }
- const displayStyle = display ? null : { display: "none" };
- return h("tr", {
- style: [displayStyle, getRowStyle(row, $index)],
- class: rowClasses,
- key: getKeyOfRow(row, $index),
- onDblclick: ($event) => handleDoubleClick($event, row),
- onClick: ($event) => handleClick($event, row),
- onContextmenu: ($event) => handleContextMenu($event, row),
- onMouseenter: () => handleMouseEnter($index),
- onMouseleave: handleMouseLeave
- }, columns2.value.map((column2, cellIndex) => {
- const { rowspan, colspan } = getSpan(row, column2, $index, cellIndex);
- if (!rowspan || !colspan) {
- return null;
- }
- const columnData = Object.assign({}, column2);
- columnData.realWidth = getColspanRealWidth(columns2.value, colspan, cellIndex);
- const data = {
- store,
- _self: props2.context || parent2,
- column: columnData,
- row,
- $index,
- cellIndex,
- expanded
- };
- if (cellIndex === firstDefaultColumnIndex.value && treeRowData) {
- data.treeNode = {
- indent: treeRowData.level && treeRowData.level * indent.value,
- level: treeRowData.level
- };
- if (isBoolean2(treeRowData.expanded)) {
- data.treeNode.expanded = treeRowData.expanded;
- if ("loading" in treeRowData) {
- data.treeNode.loading = treeRowData.loading;
- }
- if ("noLazyChildren" in treeRowData) {
- data.treeNode.noLazyChildren = treeRowData.noLazyChildren;
- }
- }
- }
- const baseKey = `${getKeyOfRow(row, $index)},${cellIndex}`;
- const patchKey = columnData.columnKey || columnData.rawColumnKey || "";
- const mergedTooltipOptions = column2.showOverflowTooltip && merge_default({
- effect: tooltipEffect
- }, tooltipOptions, column2.showOverflowTooltip);
- return h(TdWrapper, {
- style: getCellStyle($index, cellIndex, row, column2),
- class: getCellClass($index, cellIndex, row, column2, colspan - 1),
- key: `${patchKey}${baseKey}`,
- rowspan,
- colspan,
- onMouseenter: ($event) => handleCellMouseEnter($event, row, mergedTooltipOptions),
- onMouseleave: handleCellMouseLeave
- }, {
- default: () => cellChildren(cellIndex, column2, data)
- });
- }));
- };
- const cellChildren = (_cellIndex, column2, data) => {
- return column2.renderCell(data);
- };
- const wrappedRowRender = (row, $index) => {
- const store = props2.store;
- const { isRowExpanded, assertRowKey } = store;
- const { treeData, lazyTreeNodeMap, childrenColumnName, rowKey: rowKey2 } = store.states;
- const columns2 = store.states.columns.value;
- const hasExpandColumn = columns2.some(({ type: type4 }) => type4 === "expand");
- if (hasExpandColumn) {
- const expanded = isRowExpanded(row);
- const tr = rowRender(row, $index, void 0, expanded);
- const renderExpanded = parent2 == null ? void 0 : parent2.renderExpanded;
- if (!renderExpanded) {
- console.error("[Element Error]renderExpanded is required.");
- return tr;
- }
- const rows = [[tr]];
- if (parent2.props.preserveExpandedContent || expanded) {
- rows[0].push(h("tr", {
- key: `expanded-row__${tr.key}`,
- style: { display: expanded ? "" : "none" }
- }, [
- h("td", {
- colspan: columns2.length,
- class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
- }, [renderExpanded({ row, $index, store, expanded })])
- ]));
- }
- return rows;
- } else if (Object.keys(treeData.value).length) {
- assertRowKey();
- const key = getRowIdentity(row, rowKey2.value);
- let cur = treeData.value[key];
- let treeRowData = null;
- if (cur) {
- treeRowData = {
- expanded: cur.expanded,
- level: cur.level,
- display: true,
- noLazyChildren: void 0,
- loading: void 0
- };
- if (isBoolean2(cur.lazy)) {
- if (treeRowData && isBoolean2(cur.loaded) && cur.loaded) {
- treeRowData.noLazyChildren = !(cur.children && cur.children.length);
- }
- treeRowData.loading = cur.loading;
- }
- }
- const tmp = [rowRender(row, $index, treeRowData != null ? treeRowData : void 0)];
- if (cur) {
- let i = 0;
- const traverse = (children, parent22) => {
- if (!(children && children.length && parent22))
- return;
- children.forEach((node) => {
- const innerTreeRowData = {
- display: parent22.display && parent22.expanded,
- level: parent22.level + 1,
- expanded: false,
- noLazyChildren: false,
- loading: false
- };
- const childKey = getRowIdentity(node, rowKey2.value);
- if (isPropAbsent(childKey)) {
- throw new Error("For nested data item, row-key is required.");
- }
- cur = { ...treeData.value[childKey] };
- if (cur) {
- innerTreeRowData.expanded = cur.expanded;
- cur.level = cur.level || innerTreeRowData.level;
- cur.display = !!(cur.expanded && innerTreeRowData.display);
- if (isBoolean2(cur.lazy)) {
- if (isBoolean2(cur.loaded) && cur.loaded) {
- innerTreeRowData.noLazyChildren = !(cur.children && cur.children.length);
- }
- innerTreeRowData.loading = cur.loading;
- }
- }
- i++;
- tmp.push(rowRender(node, $index + i, innerTreeRowData));
- if (cur) {
- const nodes2 = lazyTreeNodeMap.value[childKey] || node[childrenColumnName.value];
- traverse(nodes2, cur);
- }
- });
- };
- cur.display = true;
- const nodes = lazyTreeNodeMap.value[key] || row[childrenColumnName.value];
- traverse(nodes, cur);
- }
- return tmp;
- } else {
- return rowRender(row, $index, void 0);
- }
- };
- return {
- wrappedRowRender,
- tooltipContent,
- tooltipTrigger
- };
- }
- // node_modules/element-plus/es/components/table/src/table-body/defaults.mjs
- var defaultProps2 = {
- store: {
- required: true,
- type: Object
- },
- stripe: Boolean,
- tooltipEffect: String,
- tooltipOptions: {
- type: Object
- },
- context: {
- default: () => ({}),
- type: Object
- },
- rowClassName: [String, Function],
- rowStyle: [Object, Function],
- fixed: {
- type: String,
- default: ""
- },
- highlight: Boolean
- };
- // node_modules/element-plus/es/components/table/src/table-body/index.mjs
- var TableBody = defineComponent({
- name: "ElTableBody",
- props: defaultProps2,
- setup(props2) {
- var _a2;
- const instance = getCurrentInstance();
- const parent2 = inject(TABLE_INJECTION_KEY);
- const ns = useNamespace("table");
- const { wrappedRowRender, tooltipContent, tooltipTrigger } = useRender(props2);
- const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent2);
- const hoveredCellList = [];
- watch((_a2 = props2.store) == null ? void 0 : _a2.states.hoverRow, (newVal, oldVal) => {
- var _a22, _b;
- const el = instance == null ? void 0 : instance.vnode.el;
- const rows = Array.from((el == null ? void 0 : el.children) || []).filter((e) => e == null ? void 0 : e.classList.contains(`${ns.e("row")}`));
- let rowNum = newVal;
- const childNodes = (_a22 = rows[rowNum]) == null ? void 0 : _a22.childNodes;
- if (childNodes == null ? void 0 : childNodes.length) {
- let control = 0;
- const indexes = Array.from(childNodes).reduce((acc, item, index) => {
- var _a3, _b2;
- if (((_a3 = childNodes[index]) == null ? void 0 : _a3.colSpan) > 1) {
- control = (_b2 = childNodes[index]) == null ? void 0 : _b2.colSpan;
- }
- if (item.nodeName !== "TD" && control === 0) {
- acc.push(index);
- }
- control > 0 && control--;
- return acc;
- }, []);
- indexes.forEach((rowIndex) => {
- var _a3;
- rowNum = newVal;
- while (rowNum > 0) {
- const preChildNodes = (_a3 = rows[rowNum - 1]) == null ? void 0 : _a3.childNodes;
- if (preChildNodes[rowIndex] && preChildNodes[rowIndex].nodeName === "TD" && preChildNodes[rowIndex].rowSpan > 1) {
- addClass(preChildNodes[rowIndex], "hover-cell");
- hoveredCellList.push(preChildNodes[rowIndex]);
- break;
- }
- rowNum--;
- }
- });
- } else {
- hoveredCellList.forEach((item) => removeClass(item, "hover-cell"));
- hoveredCellList.length = 0;
- }
- if (!((_b = props2.store) == null ? void 0 : _b.states.isComplex.value) || !isClient)
- return;
- rAF(() => {
- const oldRow = rows[oldVal];
- const newRow = rows[newVal];
- if (oldRow && !oldRow.classList.contains("hover-fixed-row")) {
- removeClass(oldRow, "hover-row");
- }
- if (newRow) {
- addClass(newRow, "hover-row");
- }
- });
- });
- onUnmounted(() => {
- var _a22;
- (_a22 = removePopper) == null ? void 0 : _a22();
- });
- return {
- ns,
- onColumnsChange,
- onScrollableChange,
- wrappedRowRender,
- tooltipContent,
- tooltipTrigger
- };
- },
- render() {
- const { wrappedRowRender, store } = this;
- const data = (store == null ? void 0 : store.states.data.value) || [];
- return h("tbody", { tabIndex: -1 }, [
- data.reduce((acc, row) => {
- return acc.concat(wrappedRowRender(row, acc.length));
- }, [])
- ]);
- }
- });
- // node_modules/element-plus/es/components/table/src/table-footer/mapState-helper.mjs
- function useMapState() {
- const table = inject(TABLE_INJECTION_KEY);
- const store = table == null ? void 0 : table.store;
- const leftFixedLeafCount = computed(() => {
- var _a2;
- return (_a2 = store == null ? void 0 : store.states.fixedLeafColumnsLength.value) != null ? _a2 : 0;
- });
- const rightFixedLeafCount = computed(() => {
- var _a2;
- return (_a2 = store == null ? void 0 : store.states.rightFixedColumns.value.length) != null ? _a2 : 0;
- });
- const columnsCount = computed(() => {
- var _a2;
- return (_a2 = store == null ? void 0 : store.states.columns.value.length) != null ? _a2 : 0;
- });
- const leftFixedCount = computed(() => {
- var _a2;
- return (_a2 = store == null ? void 0 : store.states.fixedColumns.value.length) != null ? _a2 : 0;
- });
- const rightFixedCount = computed(() => {
- var _a2;
- return (_a2 = store == null ? void 0 : store.states.rightFixedColumns.value.length) != null ? _a2 : 0;
- });
- return {
- leftFixedLeafCount,
- rightFixedLeafCount,
- columnsCount,
- leftFixedCount,
- rightFixedCount,
- columns: computed(() => {
- var _a2;
- return (_a2 = store == null ? void 0 : store.states.columns.value) != null ? _a2 : [];
- })
- };
- }
- // node_modules/element-plus/es/components/table/src/table-footer/style-helper.mjs
- function useStyle2(props2) {
- const { columns: columns2 } = useMapState();
- const ns = useNamespace("table");
- const getCellClasses = (columns22, cellIndex) => {
- const column2 = columns22[cellIndex];
- const classes = [
- ns.e("cell"),
- column2.id,
- column2.align,
- column2.labelClassName,
- ...getFixedColumnsClass(ns.b(), cellIndex, column2.fixed, props2.store)
- ];
- if (column2.className) {
- classes.push(column2.className);
- }
- if (!column2.children) {
- classes.push(ns.is("leaf"));
- }
- return classes;
- };
- const getCellStyles = (column2, cellIndex) => {
- const fixedStyle = getFixedColumnOffset(cellIndex, column2.fixed, props2.store);
- ensurePosition(fixedStyle, "left");
- ensurePosition(fixedStyle, "right");
- return fixedStyle;
- };
- return {
- getCellClasses,
- getCellStyles,
- columns: columns2
- };
- }
- // node_modules/element-plus/es/components/table/src/table-footer/index.mjs
- var TableFooter = defineComponent({
- name: "ElTableFooter",
- props: {
- fixed: {
- type: String,
- default: ""
- },
- store: {
- required: true,
- type: Object
- },
- summaryMethod: Function,
- sumText: String,
- border: Boolean,
- defaultSort: {
- type: Object,
- default: () => {
- return {
- prop: "",
- order: ""
- };
- }
- }
- },
- setup(props2) {
- const parent2 = inject(TABLE_INJECTION_KEY);
- const ns = useNamespace("table");
- const { getCellClasses, getCellStyles, columns: columns2 } = useStyle2(props2);
- const { onScrollableChange, onColumnsChange } = useLayoutObserver(parent2);
- return {
- ns,
- onScrollableChange,
- onColumnsChange,
- getCellClasses,
- getCellStyles,
- columns: columns2
- };
- },
- render() {
- const { columns: columns2, getCellStyles, getCellClasses, summaryMethod, sumText } = this;
- const data = this.store.states.data.value;
- let sums = [];
- if (summaryMethod) {
- sums = summaryMethod({
- columns: columns2,
- data
- });
- } else {
- columns2.forEach((column2, index) => {
- if (index === 0) {
- sums[index] = sumText;
- return;
- }
- const values2 = data.map((item) => Number(item[column2.property]));
- const precisions = [];
- let notNumber = true;
- values2.forEach((value) => {
- if (!Number.isNaN(+value)) {
- notNumber = false;
- const decimal = `${value}`.split(".")[1];
- precisions.push(decimal ? decimal.length : 0);
- }
- });
- const precision = Math.max.apply(null, precisions);
- if (!notNumber) {
- sums[index] = values2.reduce((prev, curr) => {
- const value = Number(curr);
- if (!Number.isNaN(+value)) {
- return Number.parseFloat((prev + curr).toFixed(Math.min(precision, 20)));
- } else {
- return prev;
- }
- }, 0);
- } else {
- sums[index] = "";
- }
- });
- }
- return h(h("tfoot", [
- h("tr", {}, [
- ...columns2.map((column2, cellIndex) => h("td", {
- key: cellIndex,
- colspan: column2.colSpan,
- rowspan: column2.rowSpan,
- class: getCellClasses(columns2, cellIndex),
- style: getCellStyles(column2, cellIndex)
- }, [
- h("div", {
- class: ["cell", column2.labelClassName]
- }, [sums[cellIndex]])
- ]))
- ])
- ]));
- }
- });
- // node_modules/element-plus/es/components/table/src/table/utils-helper.mjs
- function useUtils2(store) {
- const setCurrentRow = (row) => {
- store.commit("setCurrentRow", row);
- };
- const getSelectionRows = () => {
- return store.getSelectionRows();
- };
- const toggleRowSelection = (row, selected, ignoreSelectable = true) => {
- store.toggleRowSelection(row, selected, false, ignoreSelectable);
- store.updateAllSelected();
- };
- const clearSelection = () => {
- store.clearSelection();
- };
- const clearFilter = (columnKeys) => {
- store.clearFilter(columnKeys);
- };
- const toggleAllSelection = () => {
- store.commit("toggleAllSelection");
- };
- const toggleRowExpansion = (row, expanded) => {
- store.toggleRowExpansionAdapter(row, expanded);
- };
- const clearSort = () => {
- store.clearSort();
- };
- const sort = (prop, order) => {
- store.commit("sort", { prop, order });
- };
- const updateKeyChildren = (key, data) => {
- store.updateKeyChildren(key, data);
- };
- return {
- setCurrentRow,
- getSelectionRows,
- toggleRowSelection,
- clearSelection,
- clearFilter,
- toggleAllSelection,
- toggleRowExpansion,
- clearSort,
- sort,
- updateKeyChildren
- };
- }
- // node_modules/element-plus/es/components/table/src/table/style-helper.mjs
- function useStyle3(props2, layout2, store, table) {
- const isHidden2 = ref(false);
- const renderExpanded = ref(null);
- const resizeProxyVisible = ref(false);
- const setDragVisible = (visible) => {
- resizeProxyVisible.value = visible;
- };
- const resizeState = ref({
- width: null,
- height: null,
- headerHeight: null
- });
- const isGroup = ref(false);
- const scrollbarViewStyle = {
- display: "inline-block",
- verticalAlign: "middle"
- };
- const tableWidth = ref();
- const tableScrollHeight = ref(0);
- const bodyScrollHeight = ref(0);
- const headerScrollHeight = ref(0);
- const footerScrollHeight = ref(0);
- const appendScrollHeight = ref(0);
- watchEffect(() => {
- var _a2;
- layout2.setHeight((_a2 = props2.height) != null ? _a2 : null);
- });
- watchEffect(() => {
- var _a2;
- layout2.setMaxHeight((_a2 = props2.maxHeight) != null ? _a2 : null);
- });
- watch(() => [props2.currentRowKey, store.states.rowKey], ([currentRowKey, rowKey2]) => {
- if (!unref(rowKey2) || !unref(currentRowKey))
- return;
- store.setCurrentRowKey(`${currentRowKey}`);
- }, {
- immediate: true
- });
- watch(() => props2.data, (data) => {
- table.store.commit("setData", data);
- }, {
- immediate: true,
- deep: true
- });
- watchEffect(() => {
- if (props2.expandRowKeys) {
- store.setExpandRowKeysAdapter(props2.expandRowKeys);
- }
- });
- const handleMouseLeave = () => {
- table.store.commit("setHoverRow", null);
- if (table.hoverState)
- table.hoverState = null;
- };
- const handleHeaderFooterMousewheel = (_event2, data) => {
- const { pixelX, pixelY } = data;
- if (Math.abs(pixelX) >= Math.abs(pixelY)) {
- table.refs.bodyWrapper.scrollLeft += data.pixelX / 5;
- }
- };
- const shouldUpdateHeight = computed(() => {
- return props2.height || props2.maxHeight || store.states.fixedColumns.value.length > 0 || store.states.rightFixedColumns.value.length > 0;
- });
- const tableBodyStyles = computed(() => {
- return {
- width: layout2.bodyWidth.value ? `${layout2.bodyWidth.value}px` : ""
- };
- });
- const doLayout = () => {
- if (shouldUpdateHeight.value) {
- layout2.updateElsHeight();
- }
- layout2.updateColumnsWidth();
- if (typeof window === "undefined")
- return;
- requestAnimationFrame(syncPosition);
- };
- onMounted(async () => {
- await nextTick();
- store.updateColumns();
- bindEvents();
- requestAnimationFrame(doLayout);
- const el = table.vnode.el;
- const tableHeader = table.refs.headerWrapper;
- if (props2.flexible && el && el.parentElement) {
- el.parentElement.style.minWidth = "0";
- }
- resizeState.value = {
- width: tableWidth.value = el.offsetWidth,
- height: el.offsetHeight,
- headerHeight: props2.showHeader && tableHeader ? tableHeader.offsetHeight : null
- };
- store.states.columns.value.forEach((column2) => {
- if (column2.filteredValue && column2.filteredValue.length) {
- table.store.commit("filterChange", {
- column: column2,
- values: column2.filteredValue,
- silent: true
- });
- }
- });
- table.$ready = true;
- });
- const setScrollClassByEl = (el, className) => {
- if (!el)
- return;
- const classList = Array.from(el.classList).filter((item) => !item.startsWith("is-scrolling-"));
- classList.push(layout2.scrollX.value ? className : "is-scrolling-none");
- el.className = classList.join(" ");
- };
- const setScrollClass = (className) => {
- const { tableWrapper } = table.refs;
- setScrollClassByEl(tableWrapper, className);
- };
- const hasScrollClass = (className) => {
- const { tableWrapper } = table.refs;
- return !!(tableWrapper && tableWrapper.classList.contains(className));
- };
- const syncPosition = function() {
- if (!table.refs.scrollBarRef)
- return;
- if (!layout2.scrollX.value) {
- const scrollingNoneClass = "is-scrolling-none";
- if (!hasScrollClass(scrollingNoneClass)) {
- setScrollClass(scrollingNoneClass);
- }
- return;
- }
- const scrollContainer = table.refs.scrollBarRef.wrapRef;
- if (!scrollContainer)
- return;
- const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
- const { headerWrapper, footerWrapper } = table.refs;
- if (headerWrapper)
- headerWrapper.scrollLeft = scrollLeft;
- if (footerWrapper)
- footerWrapper.scrollLeft = scrollLeft;
- const maxScrollLeftPosition = scrollWidth - offsetWidth - 1;
- if (scrollLeft >= maxScrollLeftPosition) {
- setScrollClass("is-scrolling-right");
- } else if (scrollLeft === 0) {
- setScrollClass("is-scrolling-left");
- } else {
- setScrollClass("is-scrolling-middle");
- }
- };
- const bindEvents = () => {
- if (!table.refs.scrollBarRef)
- return;
- if (table.refs.scrollBarRef.wrapRef) {
- useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
- passive: true
- });
- }
- if (props2.fit) {
- useResizeObserver(table.vnode.el, resizeListener);
- } else {
- useEventListener(window, "resize", resizeListener);
- }
- useResizeObserver(table.refs.bodyWrapper, () => {
- var _a2, _b;
- resizeListener();
- (_b = (_a2 = table.refs) == null ? void 0 : _a2.scrollBarRef) == null ? void 0 : _b.update();
- });
- };
- const resizeListener = () => {
- var _a2, _b, _c, _d;
- const el = table.vnode.el;
- if (!table.$ready || !el)
- return;
- let shouldUpdateLayout = false;
- const {
- width: oldWidth,
- height: oldHeight,
- headerHeight: oldHeaderHeight
- } = resizeState.value;
- const width = tableWidth.value = el.offsetWidth;
- if (oldWidth !== width) {
- shouldUpdateLayout = true;
- }
- const height = el.offsetHeight;
- if ((props2.height || shouldUpdateHeight.value) && oldHeight !== height) {
- shouldUpdateLayout = true;
- }
- const tableHeader = props2.tableLayout === "fixed" ? table.refs.headerWrapper : (_a2 = table.refs.tableHeaderRef) == null ? void 0 : _a2.$el;
- if (props2.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
- shouldUpdateLayout = true;
- }
- tableScrollHeight.value = ((_b = table.refs.tableWrapper) == null ? void 0 : _b.scrollHeight) || 0;
- headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
- footerScrollHeight.value = ((_c = table.refs.footerWrapper) == null ? void 0 : _c.offsetHeight) || 0;
- appendScrollHeight.value = ((_d = table.refs.appendWrapper) == null ? void 0 : _d.offsetHeight) || 0;
- bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value - appendScrollHeight.value;
- if (shouldUpdateLayout) {
- resizeState.value = {
- width,
- height,
- headerHeight: props2.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
- };
- doLayout();
- }
- };
- const tableSize = useFormSize();
- const bodyWidth = computed(() => {
- const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout2;
- return bodyWidth_.value ? `${bodyWidth_.value - (scrollY.value ? gutterWidth : 0)}px` : "";
- });
- const tableLayout = computed(() => {
- if (props2.maxHeight)
- return "fixed";
- return props2.tableLayout;
- });
- const emptyBlockStyle = computed(() => {
- if (props2.data && props2.data.length)
- return;
- let height = "100%";
- if (props2.height && bodyScrollHeight.value) {
- height = `${bodyScrollHeight.value}px`;
- }
- const width = tableWidth.value;
- return {
- width: width ? `${width}px` : "",
- height
- };
- });
- const scrollbarStyle = computed(() => {
- if (props2.height) {
- return {
- height: "100%"
- };
- }
- if (props2.maxHeight) {
- if (!Number.isNaN(Number(props2.maxHeight))) {
- return {
- maxHeight: `${+props2.maxHeight - headerScrollHeight.value - footerScrollHeight.value}px`
- };
- } else {
- return {
- maxHeight: `calc(${props2.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
- };
- }
- }
- return {};
- });
- return {
- isHidden: isHidden2,
- renderExpanded,
- setDragVisible,
- isGroup,
- handleMouseLeave,
- handleHeaderFooterMousewheel,
- tableSize,
- emptyBlockStyle,
- resizeProxyVisible,
- bodyWidth,
- resizeState,
- doLayout,
- tableBodyStyles,
- tableLayout,
- scrollbarViewStyle,
- scrollbarStyle
- };
- }
- // node_modules/element-plus/es/components/table/src/table/key-render-helper.mjs
- function useKeyRender(table) {
- const observer = ref();
- const initWatchDom = () => {
- const el = table.vnode.el;
- const columnsWrapper = el.querySelector(".hidden-columns");
- const config = { childList: true, subtree: true };
- const updateOrderFns = table.store.states.updateOrderFns;
- observer.value = new MutationObserver(() => {
- updateOrderFns.forEach((fn2) => fn2());
- });
- observer.value.observe(columnsWrapper, config);
- };
- onMounted(() => {
- initWatchDom();
- });
- onUnmounted(() => {
- var _a2;
- (_a2 = observer.value) == null ? void 0 : _a2.disconnect();
- });
- }
- // node_modules/element-plus/es/components/table/src/table/defaults.mjs
- var defaultProps3 = {
- data: {
- type: Array,
- default: () => []
- },
- size: useSizeProp,
- width: [String, Number],
- height: [String, Number],
- maxHeight: [String, Number],
- fit: {
- type: Boolean,
- default: true
- },
- stripe: Boolean,
- border: Boolean,
- rowKey: [String, Function],
- showHeader: {
- type: Boolean,
- default: true
- },
- showSummary: Boolean,
- sumText: String,
- summaryMethod: Function,
- rowClassName: [String, Function],
- rowStyle: [Object, Function],
- cellClassName: [String, Function],
- cellStyle: [Object, Function],
- headerRowClassName: [String, Function],
- headerRowStyle: [Object, Function],
- headerCellClassName: [String, Function],
- headerCellStyle: [Object, Function],
- highlightCurrentRow: Boolean,
- currentRowKey: [String, Number],
- emptyText: String,
- expandRowKeys: Array,
- defaultExpandAll: Boolean,
- defaultSort: Object,
- tooltipEffect: String,
- tooltipOptions: Object,
- spanMethod: Function,
- selectOnIndeterminate: {
- type: Boolean,
- default: true
- },
- indent: {
- type: Number,
- default: 16
- },
- treeProps: {
- type: Object,
- default: () => {
- return {
- hasChildren: "hasChildren",
- children: "children",
- checkStrictly: false
- };
- }
- },
- lazy: Boolean,
- load: Function,
- style: {
- type: Object,
- default: () => ({})
- },
- className: {
- type: String,
- default: ""
- },
- tableLayout: {
- type: String,
- default: "fixed"
- },
- scrollbarAlwaysOn: Boolean,
- flexible: Boolean,
- showOverflowTooltip: [Boolean, Object],
- tooltipFormatter: Function,
- appendFilterPanelTo: String,
- scrollbarTabindex: {
- type: [Number, String],
- default: void 0
- },
- allowDragLastColumn: {
- type: Boolean,
- default: true
- },
- preserveExpandedContent: Boolean,
- nativeScrollbar: Boolean
- };
- // node_modules/element-plus/es/components/table/src/h-helper.mjs
- function hColgroup(props2) {
- const isAuto = props2.tableLayout === "auto";
- let columns2 = props2.columns || [];
- if (isAuto) {
- if (columns2.every(({ width }) => isUndefined2(width))) {
- columns2 = [];
- }
- }
- const getPropsData = (column2) => {
- const propsData = {
- key: `${props2.tableLayout}_${column2.id}`,
- style: {},
- name: void 0
- };
- if (isAuto) {
- propsData.style = {
- width: `${column2.width}px`
- };
- } else {
- propsData.name = column2.id;
- }
- return propsData;
- };
- return h("colgroup", {}, columns2.map((column2) => h("col", getPropsData(column2))));
- }
- hColgroup.props = ["columns", "tableLayout"];
- // node_modules/element-plus/es/components/table/src/composables/use-scrollbar.mjs
- var useScrollbar = () => {
- const scrollBarRef = ref();
- const scrollTo = (options, yCoord) => {
- const scrollbar = scrollBarRef.value;
- if (scrollbar) {
- scrollbar.scrollTo(options, yCoord);
- }
- };
- const setScrollPosition = (position, offset3) => {
- const scrollbar = scrollBarRef.value;
- if (scrollbar && isNumber2(offset3) && ["Top", "Left"].includes(position)) {
- scrollbar[`setScroll${position}`](offset3);
- }
- };
- const setScrollTop = (top) => setScrollPosition("Top", top);
- const setScrollLeft = (left) => setScrollPosition("Left", left);
- return {
- scrollBarRef,
- scrollTo,
- setScrollTop,
- setScrollLeft
- };
- };
- // node_modules/normalize-wheel-es/dist/index.mjs
- var v = false;
- var o;
- var f;
- var s;
- var u;
- var d;
- var N2;
- var l;
- var p;
- var m;
- var w;
- var D;
- var x;
- var E2;
- var M;
- var F;
- function a() {
- if (!v) {
- v = true;
- 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);
- 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) {
- o = n[1] ? parseFloat(n[1]) : n[5] ? parseFloat(n[5]) : NaN, o && document && document.documentMode && (o = document.documentMode);
- var r = /(?:Trident\/(\d+.\d+))/.exec(e);
- 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;
- } else o = f = s = d = u = NaN;
- if (i) {
- if (i[1]) {
- var t = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);
- l = t ? parseFloat(t[1].replace("_", ".")) : true;
- } else l = false;
- p = !!i[2], m = !!i[3];
- } else l = p = m = false;
- }
- }
- var _ = { ie: function() {
- return a() || o;
- }, ieCompatibilityMode: function() {
- return a() || N2 > o;
- }, ie64: function() {
- return _.ie() && D;
- }, firefox: function() {
- return a() || f;
- }, opera: function() {
- return a() || s;
- }, webkit: function() {
- return a() || u;
- }, safari: function() {
- return _.webkit();
- }, chrome: function() {
- return a() || d;
- }, windows: function() {
- return a() || p;
- }, osx: function() {
- return a() || l;
- }, linux: function() {
- return a() || m;
- }, iphone: function() {
- return a() || x;
- }, mobile: function() {
- return a() || x || E2 || w || F;
- }, nativeApp: function() {
- return a() || M;
- }, android: function() {
- return a() || w;
- }, ipad: function() {
- return a() || E2;
- } };
- var A = _;
- var c = !!(typeof window < "u" && window.document && window.document.createElement);
- var U2 = { canUseDOM: c, canUseWorkers: typeof Worker < "u", canUseEventListeners: c && !!(window.addEventListener || window.attachEvent), canUseViewport: c && !!window.screen, isInWorker: !c };
- var h2 = U2;
- var X2;
- h2.canUseDOM && (X2 = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
- function S(e, n) {
- if (!h2.canUseDOM || n && !("addEventListener" in document)) return false;
- var i = "on" + e, r = i in document;
- if (!r) {
- var t = document.createElement("div");
- t.setAttribute(i, "return;"), r = typeof t[i] == "function";
- }
- return !r && X2 && e === "wheel" && (r = document.implementation.hasFeature("Events.wheel", "3.0")), r;
- }
- var b = S;
- var O = 10;
- var I2 = 40;
- var P2 = 800;
- function T(e) {
- var n = 0, i = 0, r = 0, t = 0;
- 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 };
- }
- T.getEventType = function() {
- return A.firefox() ? "DOMMouseScroll" : b("wheel") ? "wheel" : "mousewheel";
- };
- var Y = T;
- // node_modules/element-plus/es/directives/mousewheel/index.mjs
- var mousewheel = function(element, callback) {
- if (element && element.addEventListener) {
- const fn2 = function(event) {
- const normalized = Y(event);
- callback && Reflect.apply(callback, this, [event, normalized]);
- };
- element.addEventListener("wheel", fn2, { passive: true });
- }
- };
- var Mousewheel = {
- beforeMount(el, binding) {
- mousewheel(el, binding.value);
- }
- };
- // node_modules/element-plus/es/components/table/src/table.mjs
- var tableIdSeed = 1;
- var _sfc_main422 = defineComponent({
- name: "ElTable",
- directives: {
- Mousewheel
- },
- components: {
- TableHeader,
- TableBody,
- TableFooter,
- ElScrollbar,
- hColgroup
- },
- props: defaultProps3,
- emits: [
- "select",
- "select-all",
- "selection-change",
- "cell-mouse-enter",
- "cell-mouse-leave",
- "cell-contextmenu",
- "cell-click",
- "cell-dblclick",
- "row-click",
- "row-contextmenu",
- "row-dblclick",
- "header-click",
- "header-contextmenu",
- "sort-change",
- "filter-change",
- "current-change",
- "header-dragend",
- "expand-change",
- "scroll"
- ],
- setup(props2) {
- const { t } = useLocale();
- const ns = useNamespace("table");
- const table = getCurrentInstance();
- provide(TABLE_INJECTION_KEY, table);
- const store = createStore(table, props2);
- table.store = store;
- const layout2 = new TableLayout({
- store: table.store,
- table,
- fit: props2.fit,
- showHeader: props2.showHeader
- });
- table.layout = layout2;
- const isEmpty3 = computed(() => (store.states.data.value || []).length === 0);
- const {
- setCurrentRow,
- getSelectionRows,
- toggleRowSelection,
- clearSelection,
- clearFilter,
- toggleAllSelection,
- toggleRowExpansion,
- clearSort,
- sort,
- updateKeyChildren
- } = useUtils2(store);
- const {
- isHidden: isHidden2,
- renderExpanded,
- setDragVisible,
- isGroup,
- handleMouseLeave,
- handleHeaderFooterMousewheel,
- tableSize,
- emptyBlockStyle,
- resizeProxyVisible,
- bodyWidth,
- resizeState,
- doLayout,
- tableBodyStyles,
- tableLayout,
- scrollbarViewStyle,
- scrollbarStyle
- } = useStyle3(props2, layout2, store, table);
- const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar();
- const debouncedUpdateLayout = debounce_default(doLayout, 50);
- const tableId = `${ns.namespace.value}-table_${tableIdSeed++}`;
- table.tableId = tableId;
- table.state = {
- isGroup,
- resizeState,
- doLayout,
- debouncedUpdateLayout
- };
- const computedSumText = computed(() => {
- var _a2;
- return (_a2 = props2.sumText) != null ? _a2 : t("el.table.sumText");
- });
- const computedEmptyText = computed(() => {
- var _a2;
- return (_a2 = props2.emptyText) != null ? _a2 : t("el.table.emptyText");
- });
- const columns2 = computed(() => {
- return convertToRows(store.states.originColumns.value)[0];
- });
- useKeyRender(table);
- onBeforeUnmount(() => {
- debouncedUpdateLayout.cancel();
- });
- return {
- ns,
- layout: layout2,
- store,
- columns: columns2,
- handleHeaderFooterMousewheel,
- handleMouseLeave,
- tableId,
- tableSize,
- isHidden: isHidden2,
- isEmpty: isEmpty3,
- renderExpanded,
- resizeProxyVisible,
- resizeState,
- isGroup,
- bodyWidth,
- tableBodyStyles,
- emptyBlockStyle,
- debouncedUpdateLayout,
- setCurrentRow,
- getSelectionRows,
- toggleRowSelection,
- clearSelection,
- clearFilter,
- toggleAllSelection,
- toggleRowExpansion,
- clearSort,
- doLayout,
- sort,
- updateKeyChildren,
- t,
- setDragVisible,
- context: table,
- computedSumText,
- computedEmptyText,
- tableLayout,
- scrollbarViewStyle,
- scrollbarStyle,
- scrollBarRef,
- scrollTo,
- setScrollLeft,
- setScrollTop,
- allowDragLastColumn: props2.allowDragLastColumn
- };
- }
- });
- function _sfc_render22(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_hColgroup = resolveComponent("hColgroup");
- const _component_table_header = resolveComponent("table-header");
- const _component_table_body = resolveComponent("table-body");
- const _component_table_footer = resolveComponent("table-footer");
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
- const _directive_mousewheel = resolveDirective("mousewheel");
- return openBlock(), createElementBlock("div", {
- ref: "tableWrapper",
- class: normalizeClass([
- {
- [_ctx.ns.m("fit")]: _ctx.fit,
- [_ctx.ns.m("striped")]: _ctx.stripe,
- [_ctx.ns.m("border")]: _ctx.border || _ctx.isGroup,
- [_ctx.ns.m("hidden")]: _ctx.isHidden,
- [_ctx.ns.m("group")]: _ctx.isGroup,
- [_ctx.ns.m("fluid-height")]: _ctx.maxHeight,
- [_ctx.ns.m("scrollable-x")]: _ctx.layout.scrollX.value,
- [_ctx.ns.m("scrollable-y")]: _ctx.layout.scrollY.value,
- [_ctx.ns.m("enable-row-hover")]: !_ctx.store.states.isComplex.value,
- [_ctx.ns.m("enable-row-transition")]: (_ctx.store.states.data.value || []).length !== 0 && (_ctx.store.states.data.value || []).length < 100,
- "has-footer": _ctx.showSummary
- },
- _ctx.ns.m(_ctx.tableSize),
- _ctx.className,
- _ctx.ns.b(),
- _ctx.ns.m(`layout-${_ctx.tableLayout}`)
- ]),
- style: normalizeStyle(_ctx.style),
- "data-prefix": _ctx.ns.namespace.value,
- onMouseleave: _ctx.handleMouseLeave
- }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("inner-wrapper"))
- }, [
- createBaseVNode("div", {
- ref: "hiddenColumns",
- class: "hidden-columns"
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 512),
- _ctx.showHeader && _ctx.tableLayout === "fixed" ? withDirectives((openBlock(), createElementBlock("div", {
- key: 0,
- ref: "headerWrapper",
- class: normalizeClass(_ctx.ns.e("header-wrapper"))
- }, [
- createBaseVNode("table", {
- ref: "tableHeader",
- class: normalizeClass(_ctx.ns.e("header")),
- style: normalizeStyle(_ctx.tableBodyStyles),
- border: "0",
- cellpadding: "0",
- cellspacing: "0"
- }, [
- createVNode(_component_hColgroup, {
- columns: _ctx.store.states.columns.value,
- "table-layout": _ctx.tableLayout
- }, null, 8, ["columns", "table-layout"]),
- createVNode(_component_table_header, {
- ref: "tableHeaderRef",
- border: _ctx.border,
- "default-sort": _ctx.defaultSort,
- store: _ctx.store,
- "append-filter-panel-to": _ctx.appendFilterPanelTo,
- "allow-drag-last-column": _ctx.allowDragLastColumn,
- onSetDragVisible: _ctx.setDragVisible
- }, null, 8, ["border", "default-sort", "store", "append-filter-panel-to", "allow-drag-last-column", "onSetDragVisible"])
- ], 6)
- ], 2)), [
- [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
- ]) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- ref: "bodyWrapper",
- class: normalizeClass(_ctx.ns.e("body-wrapper"))
- }, [
- createVNode(_component_el_scrollbar, {
- ref: "scrollBarRef",
- "view-style": _ctx.scrollbarViewStyle,
- "wrap-style": _ctx.scrollbarStyle,
- always: _ctx.scrollbarAlwaysOn,
- tabindex: _ctx.scrollbarTabindex,
- native: _ctx.nativeScrollbar,
- onScroll: ($event) => _ctx.$emit("scroll", $event)
- }, {
- default: withCtx(() => [
- createBaseVNode("table", {
- ref: "tableBody",
- class: normalizeClass(_ctx.ns.e("body")),
- cellspacing: "0",
- cellpadding: "0",
- border: "0",
- style: normalizeStyle({
- width: _ctx.bodyWidth,
- tableLayout: _ctx.tableLayout
- })
- }, [
- createVNode(_component_hColgroup, {
- columns: _ctx.store.states.columns.value,
- "table-layout": _ctx.tableLayout
- }, null, 8, ["columns", "table-layout"]),
- _ctx.showHeader && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_header, {
- key: 0,
- ref: "tableHeaderRef",
- class: normalizeClass(_ctx.ns.e("body-header")),
- border: _ctx.border,
- "default-sort": _ctx.defaultSort,
- store: _ctx.store,
- "append-filter-panel-to": _ctx.appendFilterPanelTo,
- onSetDragVisible: _ctx.setDragVisible
- }, null, 8, ["class", "border", "default-sort", "store", "append-filter-panel-to", "onSetDragVisible"])) : createCommentVNode("v-if", true),
- createVNode(_component_table_body, {
- context: _ctx.context,
- highlight: _ctx.highlightCurrentRow,
- "row-class-name": _ctx.rowClassName,
- "tooltip-effect": _ctx.tooltipEffect,
- "tooltip-options": _ctx.tooltipOptions,
- "row-style": _ctx.rowStyle,
- store: _ctx.store,
- stripe: _ctx.stripe
- }, null, 8, ["context", "highlight", "row-class-name", "tooltip-effect", "tooltip-options", "row-style", "store", "stripe"]),
- _ctx.showSummary && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_footer, {
- key: 1,
- class: normalizeClass(_ctx.ns.e("body-footer")),
- border: _ctx.border,
- "default-sort": _ctx.defaultSort,
- store: _ctx.store,
- "sum-text": _ctx.computedSumText,
- "summary-method": _ctx.summaryMethod
- }, null, 8, ["class", "border", "default-sort", "store", "sum-text", "summary-method"])) : createCommentVNode("v-if", true)
- ], 6),
- _ctx.isEmpty ? (openBlock(), createElementBlock("div", {
- key: 0,
- ref: "emptyBlock",
- style: normalizeStyle(_ctx.emptyBlockStyle),
- class: normalizeClass(_ctx.ns.e("empty-block"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.ns.e("empty-text"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => [
- createTextVNode(toDisplayString(_ctx.computedEmptyText), 1)
- ])
- ], 2)
- ], 6)) : createCommentVNode("v-if", true),
- _ctx.$slots.append ? (openBlock(), createElementBlock("div", {
- key: 1,
- ref: "appendWrapper",
- class: normalizeClass(_ctx.ns.e("append-wrapper"))
- }, [
- renderSlot(_ctx.$slots, "append")
- ], 2)) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 8, ["view-style", "wrap-style", "always", "tabindex", "native", "onScroll"])
- ], 2),
- _ctx.showSummary && _ctx.tableLayout === "fixed" ? withDirectives((openBlock(), createElementBlock("div", {
- key: 1,
- ref: "footerWrapper",
- class: normalizeClass(_ctx.ns.e("footer-wrapper"))
- }, [
- createBaseVNode("table", {
- class: normalizeClass(_ctx.ns.e("footer")),
- cellspacing: "0",
- cellpadding: "0",
- border: "0",
- style: normalizeStyle(_ctx.tableBodyStyles)
- }, [
- createVNode(_component_hColgroup, {
- columns: _ctx.store.states.columns.value,
- "table-layout": _ctx.tableLayout
- }, null, 8, ["columns", "table-layout"]),
- createVNode(_component_table_footer, {
- border: _ctx.border,
- "default-sort": _ctx.defaultSort,
- store: _ctx.store,
- "sum-text": _ctx.computedSumText,
- "summary-method": _ctx.summaryMethod
- }, null, 8, ["border", "default-sort", "store", "sum-text", "summary-method"])
- ], 6)
- ], 2)), [
- [vShow, !_ctx.isEmpty],
- [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
- ]) : createCommentVNode("v-if", true),
- _ctx.border || _ctx.isGroup ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass(_ctx.ns.e("border-left-patch"))
- }, null, 2)) : createCommentVNode("v-if", true)
- ], 2),
- withDirectives(createBaseVNode("div", {
- ref: "resizeProxy",
- class: normalizeClass(_ctx.ns.e("column-resize-proxy"))
- }, null, 2), [
- [vShow, _ctx.resizeProxyVisible]
- ])
- ], 46, ["data-prefix", "onMouseleave"]);
- }
- var Table = _export_sfc(_sfc_main422, [["render", _sfc_render22], ["__file", "table.vue"]]);
- // node_modules/element-plus/es/components/table/src/config.mjs
- var defaultClassNames = {
- selection: "table-column--selection",
- expand: "table__expand-column"
- };
- var cellStarts = {
- default: {
- order: ""
- },
- selection: {
- width: 48,
- minWidth: 48,
- realWidth: 48,
- order: ""
- },
- expand: {
- width: 48,
- minWidth: 48,
- realWidth: 48,
- order: ""
- },
- index: {
- width: 48,
- minWidth: 48,
- realWidth: 48,
- order: ""
- }
- };
- var getDefaultClassName = (type4) => {
- return defaultClassNames[type4] || "";
- };
- var cellForced = {
- selection: {
- renderHeader({
- store,
- column: column2
- }) {
- var _a2;
- function isDisabled() {
- return store.states.data.value && store.states.data.value.length === 0;
- }
- return h(ElCheckbox, {
- disabled: isDisabled(),
- size: store.states.tableSize.value,
- indeterminate: store.states.selection.value.length > 0 && !store.states.isAllSelected.value,
- "onUpdate:modelValue": (_a2 = store.toggleAllSelection) != null ? _a2 : void 0,
- modelValue: store.states.isAllSelected.value,
- ariaLabel: column2.label
- });
- },
- renderCell({
- row,
- column: column2,
- store,
- $index
- }) {
- return h(ElCheckbox, {
- disabled: column2.selectable ? !column2.selectable.call(null, row, $index) : false,
- size: store.states.tableSize.value,
- onChange: () => {
- store.commit("rowSelectedChanged", row);
- },
- onClick: (event) => event.stopPropagation(),
- modelValue: store.isSelected(row),
- ariaLabel: column2.label
- });
- },
- sortable: false,
- resizable: false
- },
- index: {
- renderHeader({
- column: column2
- }) {
- return column2.label || "#";
- },
- renderCell({
- column: column2,
- $index
- }) {
- let i = $index + 1;
- const index = column2.index;
- if (isNumber2(index)) {
- i = $index + index;
- } else if (isFunction(index)) {
- i = index($index);
- }
- return h("div", {}, [i]);
- },
- sortable: false
- },
- expand: {
- renderHeader({
- column: column2
- }) {
- return column2.label || "";
- },
- renderCell({
- column: column2,
- row,
- store,
- expanded
- }) {
- const { ns } = store;
- const classes = [ns.e("expand-icon")];
- if (!column2.renderExpand && expanded) {
- classes.push(ns.em("expand-icon", "expanded"));
- }
- const callback = function(e) {
- e.stopPropagation();
- store.toggleRowExpansion(row);
- };
- return h("div", {
- class: classes,
- onClick: callback
- }, {
- default: () => {
- if (column2.renderExpand) {
- return [
- column2.renderExpand({
- expanded
- })
- ];
- }
- return [
- h(ElIcon, null, {
- default: () => {
- return [h(arrow_right_default)];
- }
- })
- ];
- }
- });
- },
- sortable: false,
- resizable: false
- }
- };
- function defaultRenderCell({
- row,
- column: column2,
- $index
- }) {
- var _a2;
- const property2 = column2.property;
- const value = property2 && getProp(row, property2).value;
- if (column2 && column2.formatter) {
- return column2.formatter(row, column2, value, $index);
- }
- return ((_a2 = value == null ? void 0 : value.toString) == null ? void 0 : _a2.call(value)) || "";
- }
- function treeCellPrefix({
- row,
- treeNode,
- store
- }, createPlaceholder = false) {
- const { ns } = store;
- if (!treeNode) {
- if (createPlaceholder) {
- return [
- h("span", {
- class: ns.e("placeholder")
- })
- ];
- }
- return null;
- }
- const ele = [];
- const callback = function(e) {
- e.stopPropagation();
- if (treeNode.loading) {
- return;
- }
- store.loadOrToggle(row);
- };
- if (treeNode.indent) {
- ele.push(h("span", {
- class: ns.e("indent"),
- style: { "padding-left": `${treeNode.indent}px` }
- }));
- }
- if (isBoolean2(treeNode.expanded) && !treeNode.noLazyChildren) {
- const expandClasses = [
- ns.e("expand-icon"),
- treeNode.expanded ? ns.em("expand-icon", "expanded") : ""
- ];
- let icon = arrow_right_default;
- if (treeNode.loading) {
- icon = loading_default;
- }
- ele.push(h("div", {
- class: expandClasses,
- onClick: callback
- }, {
- default: () => {
- return [
- h(ElIcon, { class: { [ns.is("loading")]: treeNode.loading } }, {
- default: () => [h(icon)]
- })
- ];
- }
- }));
- } else {
- ele.push(h("span", {
- class: ns.e("placeholder")
- }));
- }
- return ele;
- }
- // node_modules/element-plus/es/components/table/src/table-column/watcher-helper.mjs
- function getAllAliases(props2, aliases) {
- return props2.reduce((prev, cur) => {
- prev[cur] = cur;
- return prev;
- }, aliases);
- }
- function useWatcher2(owner, props_) {
- const instance = getCurrentInstance();
- const registerComplexWatchers = () => {
- const props2 = ["fixed"];
- const aliases = {
- realWidth: "width",
- realMinWidth: "minWidth"
- };
- const allAliases = getAllAliases(props2, aliases);
- Object.keys(allAliases).forEach((key) => {
- const columnKey = aliases[key];
- if (hasOwn(props_, columnKey)) {
- watch(() => props_[columnKey], (newVal) => {
- let value = newVal;
- if (columnKey === "width" && key === "realWidth") {
- value = parseWidth(newVal);
- }
- if (columnKey === "minWidth" && key === "realMinWidth") {
- value = parseMinWidth(newVal);
- }
- instance.columnConfig.value[columnKey] = value;
- instance.columnConfig.value[key] = value;
- const updateColumns = columnKey === "fixed";
- owner.value.store.scheduleLayout(updateColumns);
- });
- }
- });
- };
- const registerNormalWatchers = () => {
- const props2 = [
- "label",
- "filters",
- "filterMultiple",
- "filteredValue",
- "sortable",
- "index",
- "formatter",
- "className",
- "labelClassName",
- "filterClassName",
- "showOverflowTooltip",
- "tooltipFormatter"
- ];
- const parentProps = ["showOverflowTooltip"];
- const aliases = {
- property: "prop",
- align: "realAlign",
- headerAlign: "realHeaderAlign"
- };
- const allAliases = getAllAliases(props2, aliases);
- Object.keys(allAliases).forEach((key) => {
- const columnKey = aliases[key];
- if (hasOwn(props_, columnKey)) {
- watch(() => props_[columnKey], (newVal) => {
- instance.columnConfig.value[key] = newVal;
- });
- }
- });
- parentProps.forEach((key) => {
- if (hasOwn(owner.value.props, key)) {
- watch(() => owner.value.props[key], (newVal) => {
- instance.columnConfig.value[key] = newVal;
- });
- }
- });
- };
- return {
- registerComplexWatchers,
- registerNormalWatchers
- };
- }
- // node_modules/element-plus/es/components/table/src/table-column/render-helper.mjs
- function useRender2(props2, slots, owner) {
- const instance = getCurrentInstance();
- const columnId = ref("");
- const isSubColumn = ref(false);
- const realAlign = ref();
- const realHeaderAlign = ref();
- const ns = useNamespace("table");
- watchEffect(() => {
- realAlign.value = props2.align ? `is-${props2.align}` : null;
- realAlign.value;
- });
- watchEffect(() => {
- realHeaderAlign.value = props2.headerAlign ? `is-${props2.headerAlign}` : realAlign.value;
- realHeaderAlign.value;
- });
- const columnOrTableParent = computed(() => {
- let parent2 = instance.vnode.vParent || instance.parent;
- while (parent2 && !parent2.tableId && !parent2.columnId) {
- parent2 = parent2.vnode.vParent || parent2.parent;
- }
- return parent2;
- });
- const hasTreeColumn = computed(() => {
- const { store } = instance.parent;
- if (!store)
- return false;
- const { treeData } = store.states;
- const treeDataValue = treeData.value;
- return treeDataValue && Object.keys(treeDataValue).length > 0;
- });
- const realWidth = ref(parseWidth(props2.width));
- const realMinWidth = ref(parseMinWidth(props2.minWidth));
- const setColumnWidth = (column2) => {
- if (realWidth.value)
- column2.width = realWidth.value;
- if (realMinWidth.value) {
- column2.minWidth = realMinWidth.value;
- }
- if (!realWidth.value && realMinWidth.value) {
- column2.width = void 0;
- }
- if (!column2.minWidth) {
- column2.minWidth = 80;
- }
- column2.realWidth = Number(isUndefined2(column2.width) ? column2.minWidth : column2.width);
- return column2;
- };
- const setColumnForcedProps = (column2) => {
- const type4 = column2.type;
- const source = cellForced[type4] || {};
- Object.keys(source).forEach((prop) => {
- const value = source[prop];
- if (prop !== "className" && !isUndefined2(value)) {
- column2[prop] = value;
- }
- });
- const className = getDefaultClassName(type4);
- if (className) {
- const forceClass = `${unref(ns.namespace)}-${className}`;
- column2.className = column2.className ? `${column2.className} ${forceClass}` : forceClass;
- }
- return column2;
- };
- const checkSubColumn = (children) => {
- if (isArray(children)) {
- children.forEach((child) => check(child));
- } else {
- check(children);
- }
- function check(item) {
- var _a2;
- if (((_a2 = item == null ? void 0 : item.type) == null ? void 0 : _a2.name) === "ElTableColumn") {
- item.vParent = instance;
- }
- }
- };
- const setColumnRenders = (column2) => {
- if (props2.renderHeader) ;
- else if (column2.type !== "selection") {
- column2.renderHeader = (scope) => {
- instance.columnConfig.value["label"];
- return renderSlot(slots, "header", scope, () => [column2.label]);
- };
- }
- if (slots["filter-icon"]) {
- column2.renderFilterIcon = (scope) => {
- return renderSlot(slots, "filter-icon", scope);
- };
- }
- if (slots.expand) {
- column2.renderExpand = (scope) => {
- return renderSlot(slots, "expand", scope);
- };
- }
- let originRenderCell = column2.renderCell;
- if (column2.type === "expand") {
- column2.renderCell = (data) => h("div", {
- class: "cell"
- }, [originRenderCell(data)]);
- owner.value.renderExpanded = (row) => {
- return slots.default ? slots.default(row) : slots.default;
- };
- } else {
- originRenderCell = originRenderCell || defaultRenderCell;
- column2.renderCell = (data) => {
- let children = null;
- if (slots.default) {
- const vnodes = slots.default(data);
- children = vnodes.some((v2) => v2.type !== Comment) ? vnodes : originRenderCell(data);
- } else {
- children = originRenderCell(data);
- }
- const { columns: columns2 } = owner.value.store.states;
- const firstUserColumnIndex = columns2.value.findIndex((item) => item.type === "default");
- const shouldCreatePlaceholder = hasTreeColumn.value && data.cellIndex === firstUserColumnIndex;
- const prefix = treeCellPrefix(data, shouldCreatePlaceholder);
- const props22 = {
- class: "cell",
- style: {}
- };
- if (column2.showOverflowTooltip) {
- props22.class = `${props22.class} ${unref(ns.namespace)}-tooltip`;
- props22.style = {
- width: `${(data.column.realWidth || Number(data.column.width)) - 1}px`
- };
- }
- checkSubColumn(children);
- return h("div", props22, [prefix, children]);
- };
- }
- return column2;
- };
- const getPropsData = (...propsKey) => {
- return propsKey.reduce((prev, cur) => {
- if (isArray(cur)) {
- cur.forEach((key) => {
- prev[key] = props2[key];
- });
- }
- return prev;
- }, {});
- };
- const getColumnElIndex = (children, child) => {
- return Array.prototype.indexOf.call(children, child);
- };
- const updateColumnOrder = () => {
- owner.value.store.commit("updateColumnOrder", instance.columnConfig.value);
- };
- return {
- columnId,
- realAlign,
- isSubColumn,
- realHeaderAlign,
- columnOrTableParent,
- setColumnWidth,
- setColumnForcedProps,
- setColumnRenders,
- getPropsData,
- getColumnElIndex,
- updateColumnOrder
- };
- }
- // node_modules/element-plus/es/components/table/src/table-column/defaults.mjs
- var defaultProps4 = {
- type: {
- type: String,
- default: "default"
- },
- label: String,
- className: String,
- labelClassName: String,
- property: String,
- prop: String,
- width: {
- type: [String, Number],
- default: ""
- },
- minWidth: {
- type: [String, Number],
- default: ""
- },
- renderHeader: Function,
- sortable: {
- type: [Boolean, String],
- default: false
- },
- sortMethod: Function,
- sortBy: [String, Function, Array],
- resizable: {
- type: Boolean,
- default: true
- },
- columnKey: String,
- align: String,
- headerAlign: String,
- showOverflowTooltip: {
- type: [Boolean, Object],
- default: void 0
- },
- tooltipFormatter: Function,
- fixed: [Boolean, String],
- formatter: Function,
- selectable: Function,
- reserveSelection: Boolean,
- filterMethod: Function,
- filteredValue: Array,
- filters: Array,
- filterPlacement: String,
- filterMultiple: {
- type: Boolean,
- default: true
- },
- filterClassName: String,
- index: [Number, Function],
- sortOrders: {
- type: Array,
- default: () => {
- return ["ascending", "descending", null];
- },
- validator: (val) => {
- return val.every((order) => ["ascending", "descending", null].includes(order));
- }
- }
- };
- // node_modules/element-plus/es/components/table/src/table-column/index.mjs
- var columnIdSeed = 1;
- var ElTableColumn = defineComponent({
- name: "ElTableColumn",
- components: {
- ElCheckbox
- },
- props: defaultProps4,
- setup(props2, { slots }) {
- const instance = getCurrentInstance();
- const columnConfig = ref({});
- const owner = computed(() => {
- let parent22 = instance.parent;
- while (parent22 && !parent22.tableId) {
- parent22 = parent22.parent;
- }
- return parent22;
- });
- const { registerNormalWatchers, registerComplexWatchers } = useWatcher2(owner, props2);
- const {
- columnId,
- isSubColumn,
- realHeaderAlign,
- columnOrTableParent,
- setColumnWidth,
- setColumnForcedProps,
- setColumnRenders,
- getPropsData,
- getColumnElIndex,
- realAlign,
- updateColumnOrder
- } = useRender2(props2, slots, owner);
- const parent2 = columnOrTableParent.value;
- columnId.value = `${"tableId" in parent2 && parent2.tableId || "columnId" in parent2 && parent2.columnId}_column_${columnIdSeed++}`;
- onBeforeMount(() => {
- isSubColumn.value = owner.value !== parent2;
- const type4 = props2.type || "default";
- const sortable = props2.sortable === "" ? true : props2.sortable;
- const showOverflowTooltip = type4 === "selection" ? false : isUndefined2(props2.showOverflowTooltip) ? parent2.props.showOverflowTooltip : props2.showOverflowTooltip;
- const tooltipFormatter = isUndefined2(props2.tooltipFormatter) ? parent2.props.tooltipFormatter : props2.tooltipFormatter;
- const defaults2 = {
- ...cellStarts[type4],
- id: columnId.value,
- type: type4,
- property: props2.prop || props2.property,
- align: realAlign,
- headerAlign: realHeaderAlign,
- showOverflowTooltip,
- tooltipFormatter,
- filterable: props2.filters || props2.filterMethod,
- filteredValue: [],
- filterPlacement: "",
- filterClassName: "",
- isColumnGroup: false,
- isSubColumn: false,
- filterOpened: false,
- sortable,
- index: props2.index,
- rawColumnKey: instance.vnode.key
- };
- const basicProps = [
- "columnKey",
- "label",
- "className",
- "labelClassName",
- "type",
- "renderHeader",
- "formatter",
- "fixed",
- "resizable"
- ];
- const sortProps = ["sortMethod", "sortBy", "sortOrders"];
- const selectProps2 = ["selectable", "reserveSelection"];
- const filterProps = [
- "filterMethod",
- "filters",
- "filterMultiple",
- "filterOpened",
- "filteredValue",
- "filterPlacement",
- "filterClassName"
- ];
- let column2 = getPropsData(basicProps, sortProps, selectProps2, filterProps);
- column2 = mergeOptions(defaults2, column2);
- const chains = compose(setColumnRenders, setColumnWidth, setColumnForcedProps);
- column2 = chains(column2);
- columnConfig.value = column2;
- registerNormalWatchers();
- registerComplexWatchers();
- });
- onMounted(() => {
- var _a2, _b;
- const parent22 = columnOrTableParent.value;
- const children = isSubColumn.value ? (_a2 = parent22.vnode.el) == null ? void 0 : _a2.children : (_b = parent22.refs.hiddenColumns) == null ? void 0 : _b.children;
- const getColumnIndex = () => getColumnElIndex(children || [], instance.vnode.el);
- columnConfig.value.getColumnIndex = getColumnIndex;
- const columnIndex = getColumnIndex();
- columnIndex > -1 && owner.value.store.commit("insertColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent22 && parent22.columnConfig.value : null, updateColumnOrder);
- });
- onBeforeUnmount(() => {
- const getColumnIndex = columnConfig.value.getColumnIndex;
- const columnIndex = getColumnIndex ? getColumnIndex() : -1;
- columnIndex > -1 && owner.value.store.commit("removeColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent2 && parent2.columnConfig.value : null, updateColumnOrder);
- });
- instance.columnId = columnId.value;
- instance.columnConfig = columnConfig;
- return;
- },
- render() {
- var _a2, _b, _c;
- try {
- const renderDefault = (_b = (_a2 = this.$slots).default) == null ? void 0 : _b.call(_a2, {
- row: {},
- column: {},
- $index: -1
- });
- const children = [];
- if (isArray(renderDefault)) {
- for (const childNode of renderDefault) {
- if (((_c = childNode.type) == null ? void 0 : _c.name) === "ElTableColumn" || childNode.shapeFlag & 2) {
- children.push(childNode);
- } else if (childNode.type === Fragment && isArray(childNode.children)) {
- childNode.children.forEach((vnode2) => {
- if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString(vnode2 == null ? void 0 : vnode2.children)) {
- children.push(vnode2);
- }
- });
- }
- }
- }
- const vnode = h("div", children);
- return vnode;
- } catch (e) {
- return h("div", []);
- }
- }
- });
- // node_modules/element-plus/es/components/table/index.mjs
- var ElTable = withInstall(Table, {
- TableColumn: ElTableColumn
- });
- var ElTableColumn2 = withNoopInstall(ElTableColumn);
- // node_modules/element-plus/es/components/table-v2/src/constants.mjs
- var SortOrder = ((SortOrder2) => {
- SortOrder2["ASC"] = "asc";
- SortOrder2["DESC"] = "desc";
- return SortOrder2;
- })(SortOrder || {});
- var Alignment = ((Alignment2) => {
- Alignment2["CENTER"] = "center";
- Alignment2["RIGHT"] = "right";
- return Alignment2;
- })(Alignment || {});
- var FixedDir = ((FixedDir2) => {
- FixedDir2["LEFT"] = "left";
- FixedDir2["RIGHT"] = "right";
- return FixedDir2;
- })(FixedDir || {});
- var oppositeOrderMap = {
- [
- "asc"
- /* ASC */
- ]: "desc",
- [
- "desc"
- /* DESC */
- ]: "asc"
- /* ASC */
- };
- // node_modules/element-plus/es/components/table-v2/src/private.mjs
- var placeholderSign = Symbol("placeholder");
- // node_modules/element-plus/es/components/table-v2/src/composables/utils.mjs
- var calcColumnStyle = (column2, fixedColumn, fixed) => {
- var _a2;
- const flex = {
- flexGrow: 0,
- flexShrink: 0,
- ...fixed ? {} : {
- flexGrow: column2.flexGrow || 0,
- flexShrink: column2.flexShrink || 1
- }
- };
- if (!fixed) {
- flex.flexShrink = 1;
- }
- const style = {
- ...(_a2 = column2.style) != null ? _a2 : {},
- ...flex,
- flexBasis: "auto",
- width: column2.width
- };
- if (!fixedColumn) {
- if (column2.maxWidth)
- style.maxWidth = column2.maxWidth;
- if (column2.minWidth)
- style.minWidth = column2.minWidth;
- }
- return style;
- };
- // node_modules/element-plus/es/components/table-v2/src/composables/use-columns.mjs
- function useColumns(props2, columns2, fixed) {
- const _columns = computed(() => unref(columns2).map((column2, index) => {
- var _a2, _b;
- return {
- ...column2,
- key: (_b = (_a2 = column2.key) != null ? _a2 : column2.dataKey) != null ? _b : index
- };
- }));
- const visibleColumns = computed(() => {
- return unref(_columns).filter((column2) => !column2.hidden);
- });
- const fixedColumnsOnLeft = computed(() => unref(visibleColumns).filter((column2) => column2.fixed === "left" || column2.fixed === true));
- const fixedColumnsOnRight = computed(() => unref(visibleColumns).filter((column2) => column2.fixed === "right"));
- const normalColumns = computed(() => unref(visibleColumns).filter((column2) => !column2.fixed));
- const mainColumns = computed(() => {
- const ret = [];
- unref(fixedColumnsOnLeft).forEach((column2) => {
- ret.push({
- ...column2,
- placeholderSign
- });
- });
- unref(normalColumns).forEach((column2) => {
- ret.push(column2);
- });
- unref(fixedColumnsOnRight).forEach((column2) => {
- ret.push({
- ...column2,
- placeholderSign
- });
- });
- return ret;
- });
- const hasFixedColumns = computed(() => {
- return unref(fixedColumnsOnLeft).length || unref(fixedColumnsOnRight).length;
- });
- const columnsStyles = computed(() => {
- return unref(_columns).reduce((style, column2) => {
- style[column2.key] = calcColumnStyle(column2, unref(fixed), props2.fixed);
- return style;
- }, {});
- });
- const columnsTotalWidth = computed(() => {
- return unref(visibleColumns).reduce((width, column2) => width + column2.width, 0);
- });
- const getColumn = (key) => {
- return unref(_columns).find((column2) => column2.key === key);
- };
- const getColumnStyle = (key) => {
- return unref(columnsStyles)[key];
- };
- const updateColumnWidth = (column2, width) => {
- column2.width = width;
- };
- function onColumnSorted(e) {
- var _a2;
- const { key } = e.currentTarget.dataset;
- if (!key)
- return;
- const { sortState, sortBy: sortBy2 } = props2;
- let order = SortOrder.ASC;
- if (isObject(sortState)) {
- order = oppositeOrderMap[sortState[key]];
- } else {
- order = oppositeOrderMap[sortBy2.order];
- }
- (_a2 = props2.onColumnSort) == null ? void 0 : _a2.call(props2, { column: getColumn(key), key, order });
- }
- return {
- columns: _columns,
- columnsStyles,
- columnsTotalWidth,
- fixedColumnsOnLeft,
- fixedColumnsOnRight,
- hasFixedColumns,
- mainColumns,
- normalColumns,
- visibleColumns,
- getColumn,
- getColumnStyle,
- updateColumnWidth,
- onColumnSorted
- };
- }
- // node_modules/element-plus/es/components/table-v2/src/composables/use-scrollbar.mjs
- var useScrollbar2 = (props2, {
- mainTableRef,
- leftTableRef,
- rightTableRef,
- onMaybeEndReached
- }) => {
- const scrollPos = ref({ scrollLeft: 0, scrollTop: 0 });
- function doScroll(params) {
- var _a2, _b, _c;
- const { scrollTop } = params;
- (_a2 = mainTableRef.value) == null ? void 0 : _a2.scrollTo(params);
- (_b = leftTableRef.value) == null ? void 0 : _b.scrollToTop(scrollTop);
- (_c = rightTableRef.value) == null ? void 0 : _c.scrollToTop(scrollTop);
- }
- function scrollTo(params) {
- scrollPos.value = params;
- doScroll(params);
- }
- function scrollToTop(scrollTop) {
- scrollPos.value.scrollTop = scrollTop;
- doScroll(unref(scrollPos));
- }
- function scrollToLeft(scrollLeft) {
- var _a2, _b;
- scrollPos.value.scrollLeft = scrollLeft;
- (_b = (_a2 = mainTableRef.value) == null ? void 0 : _a2.scrollTo) == null ? void 0 : _b.call(_a2, unref(scrollPos));
- }
- function onScroll(params) {
- var _a2;
- scrollTo(params);
- (_a2 = props2.onScroll) == null ? void 0 : _a2.call(props2, params);
- }
- function onVerticalScroll({ scrollTop }) {
- const { scrollTop: currentScrollTop } = unref(scrollPos);
- if (scrollTop !== currentScrollTop)
- scrollToTop(scrollTop);
- }
- function scrollToRow(row, strategy = "auto") {
- var _a2;
- (_a2 = mainTableRef.value) == null ? void 0 : _a2.scrollToRow(row, strategy);
- }
- watch(() => unref(scrollPos).scrollTop, (cur, prev) => {
- if (cur > prev)
- onMaybeEndReached();
- });
- return {
- scrollPos,
- scrollTo,
- scrollToLeft,
- scrollToTop,
- scrollToRow,
- onScroll,
- onVerticalScroll
- };
- };
- // node_modules/element-plus/es/components/table-v2/src/composables/use-row.mjs
- var useRow = (props2, {
- mainTableRef,
- leftTableRef,
- rightTableRef,
- tableInstance,
- ns,
- isScrolling
- }) => {
- const vm = getCurrentInstance();
- const { emit } = vm;
- const isResetting = shallowRef(false);
- const expandedRowKeys = ref(props2.defaultExpandedRowKeys || []);
- const lastRenderedRowIndex = ref(-1);
- const resetIndex = shallowRef(null);
- const rowHeights = ref({});
- const pendingRowHeights = ref({});
- const leftTableHeights = shallowRef({});
- const mainTableHeights = shallowRef({});
- const rightTableHeights = shallowRef({});
- const isDynamic = computed(() => isNumber2(props2.estimatedRowHeight));
- function onRowsRendered(params) {
- var _a2;
- (_a2 = props2.onRowsRendered) == null ? void 0 : _a2.call(props2, params);
- if (params.rowCacheEnd > unref(lastRenderedRowIndex)) {
- lastRenderedRowIndex.value = params.rowCacheEnd;
- }
- }
- function onRowHovered({ hovered, rowKey: rowKey2 }) {
- if (isScrolling.value) {
- return;
- }
- const tableRoot = tableInstance.vnode.el;
- const rows = tableRoot.querySelectorAll(`[rowkey="${String(rowKey2)}"]`);
- rows.forEach((row) => {
- if (hovered) {
- row.classList.add(ns.is("hovered"));
- } else {
- row.classList.remove(ns.is("hovered"));
- }
- });
- }
- function onRowExpanded({
- expanded,
- rowData,
- rowIndex,
- rowKey: rowKey2
- }) {
- var _a2, _b;
- const _expandedRowKeys = [...unref(expandedRowKeys)];
- const currentKeyIndex = _expandedRowKeys.indexOf(rowKey2);
- if (expanded) {
- if (currentKeyIndex === -1)
- _expandedRowKeys.push(rowKey2);
- } else {
- if (currentKeyIndex > -1)
- _expandedRowKeys.splice(currentKeyIndex, 1);
- }
- expandedRowKeys.value = _expandedRowKeys;
- emit("update:expandedRowKeys", _expandedRowKeys);
- (_a2 = props2.onRowExpand) == null ? void 0 : _a2.call(props2, {
- expanded,
- rowData,
- rowIndex,
- rowKey: rowKey2
- });
- (_b = props2.onExpandedRowsChange) == null ? void 0 : _b.call(props2, _expandedRowKeys);
- const tableRoot = tableInstance.vnode.el;
- const hoverRow = tableRoot.querySelector(`.${ns.is("hovered")}[rowkey="${String(rowKey2)}"]`);
- if (hoverRow) {
- nextTick(() => onRowHovered({ hovered: true, rowKey: rowKey2 }));
- }
- }
- const flushingRowHeights = debounce_default(() => {
- var _a2, _b, _c, _d;
- isResetting.value = true;
- rowHeights.value = { ...unref(rowHeights), ...unref(pendingRowHeights) };
- resetAfterIndex(unref(resetIndex), false);
- pendingRowHeights.value = {};
- resetIndex.value = null;
- (_a2 = mainTableRef.value) == null ? void 0 : _a2.forceUpdate();
- (_b = leftTableRef.value) == null ? void 0 : _b.forceUpdate();
- (_c = rightTableRef.value) == null ? void 0 : _c.forceUpdate();
- (_d = vm.proxy) == null ? void 0 : _d.$forceUpdate();
- isResetting.value = false;
- }, 0);
- function resetAfterIndex(index, forceUpdate = false) {
- if (!unref(isDynamic))
- return;
- [mainTableRef, leftTableRef, rightTableRef].forEach((tableRef) => {
- const table = unref(tableRef);
- if (table)
- table.resetAfterRowIndex(index, forceUpdate);
- });
- }
- function resetHeights(rowKey2, height, rowIdx) {
- const resetIdx = unref(resetIndex);
- if (resetIdx === null) {
- resetIndex.value = rowIdx;
- } else {
- if (resetIdx > rowIdx) {
- resetIndex.value = rowIdx;
- }
- }
- pendingRowHeights.value[rowKey2] = height;
- }
- function onRowHeightChange({ rowKey: rowKey2, height, rowIndex }, fixedDir) {
- if (!fixedDir) {
- mainTableHeights.value[rowKey2] = height;
- } else {
- if (fixedDir === FixedDir.RIGHT) {
- rightTableHeights.value[rowKey2] = height;
- } else {
- leftTableHeights.value[rowKey2] = height;
- }
- }
- const maximumHeight = Math.max(...[leftTableHeights, rightTableHeights, mainTableHeights].map((records) => records.value[rowKey2] || 0));
- if (unref(rowHeights)[rowKey2] !== maximumHeight) {
- resetHeights(rowKey2, maximumHeight, rowIndex);
- flushingRowHeights();
- }
- }
- return {
- expandedRowKeys,
- lastRenderedRowIndex,
- isDynamic,
- isResetting,
- rowHeights,
- resetAfterIndex,
- onRowExpanded,
- onRowHovered,
- onRowsRendered,
- onRowHeightChange
- };
- };
- // node_modules/element-plus/es/components/table-v2/src/composables/use-data.mjs
- var useData = (props2, { expandedRowKeys, lastRenderedRowIndex, resetAfterIndex }) => {
- const depthMap = ref({});
- const flattenedData = computed(() => {
- const depths = {};
- const { data: data2, rowKey: rowKey2 } = props2;
- const _expandedRowKeys = unref(expandedRowKeys);
- if (!_expandedRowKeys || !_expandedRowKeys.length)
- return data2;
- const array4 = [];
- const keysSet = /* @__PURE__ */ new Set();
- _expandedRowKeys.forEach((x2) => keysSet.add(x2));
- let copy = data2.slice();
- copy.forEach((x2) => depths[x2[rowKey2]] = 0);
- while (copy.length > 0) {
- const item = copy.shift();
- array4.push(item);
- if (keysSet.has(item[rowKey2]) && isArray(item.children) && item.children.length > 0) {
- copy = [...item.children, ...copy];
- item.children.forEach((child) => depths[child[rowKey2]] = depths[item[rowKey2]] + 1);
- }
- }
- depthMap.value = depths;
- return array4;
- });
- const data = computed(() => {
- const { data: data2, expandColumnKey: expandColumnKey2 } = props2;
- return expandColumnKey2 ? unref(flattenedData) : data2;
- });
- watch(data, (val, prev) => {
- if (val !== prev) {
- lastRenderedRowIndex.value = -1;
- resetAfterIndex(0, true);
- }
- });
- return {
- data,
- depthMap
- };
- };
- // node_modules/element-plus/es/components/table-v2/src/utils.mjs
- var sumReducer = (sum22, num) => sum22 + num;
- var sum2 = (listLike) => {
- return isArray(listLike) ? listLike.reduce(sumReducer, 0) : listLike;
- };
- var tryCall = (fLike, params, defaultRet = {}) => {
- return isFunction(fLike) ? fLike(params) : fLike != null ? fLike : defaultRet;
- };
- var enforceUnit = (style) => {
- ["width", "maxWidth", "minWidth", "height"].forEach((key) => {
- style[key] = addUnit(style[key]);
- });
- return style;
- };
- var componentToSlot = (ComponentLike) => isVNode(ComponentLike) ? (props2) => h(ComponentLike, props2) : ComponentLike;
- // node_modules/element-plus/es/components/table-v2/src/composables/use-styles.mjs
- var useStyles2 = (props2, {
- columnsTotalWidth,
- rowsHeight,
- fixedColumnsOnLeft,
- fixedColumnsOnRight
- }) => {
- const bodyWidth = computed(() => {
- const { fixed, width, vScrollbarSize } = props2;
- const ret = width - vScrollbarSize;
- return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret;
- });
- const mainTableHeight = computed(() => {
- const { height = 0, maxHeight = 0, footerHeight: footerHeight2, hScrollbarSize } = props2;
- if (maxHeight > 0) {
- const _fixedRowsHeight = unref(fixedRowsHeight);
- const _rowsHeight = unref(rowsHeight);
- const _headerHeight = unref(headerHeight);
- const total2 = _headerHeight + _fixedRowsHeight + _rowsHeight + hScrollbarSize;
- return Math.min(total2, maxHeight - footerHeight2);
- }
- return height - footerHeight2;
- });
- const fixedTableHeight = computed(() => {
- const { maxHeight } = props2;
- const tableHeight = unref(mainTableHeight);
- if (isNumber2(maxHeight) && maxHeight > 0)
- return tableHeight;
- const totalHeight = unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight);
- return Math.min(tableHeight, totalHeight);
- });
- const mapColumn = (column2) => column2.width;
- const leftTableWidth = computed(() => sum2(unref(fixedColumnsOnLeft).map(mapColumn)));
- const rightTableWidth = computed(() => sum2(unref(fixedColumnsOnRight).map(mapColumn)));
- const headerHeight = computed(() => sum2(props2.headerHeight));
- const fixedRowsHeight = computed(() => {
- var _a2;
- return (((_a2 = props2.fixedData) == null ? void 0 : _a2.length) || 0) * props2.rowHeight;
- });
- const windowHeight = computed(() => {
- return unref(mainTableHeight) - unref(headerHeight) - unref(fixedRowsHeight);
- });
- const rootStyle = computed(() => {
- const { style = {}, height, width } = props2;
- return enforceUnit({
- ...style,
- height,
- width
- });
- });
- const footerHeight = computed(() => enforceUnit({ height: props2.footerHeight }));
- const emptyStyle = computed(() => ({
- top: addUnit(unref(headerHeight)),
- bottom: addUnit(props2.footerHeight),
- width: addUnit(props2.width)
- }));
- return {
- bodyWidth,
- fixedTableHeight,
- mainTableHeight,
- leftTableWidth,
- rightTableWidth,
- windowHeight,
- footerHeight,
- emptyStyle,
- rootStyle,
- headerHeight
- };
- };
- // node_modules/element-plus/es/components/table-v2/src/use-table.mjs
- function useTable(props2) {
- const mainTableRef = ref();
- const leftTableRef = ref();
- const rightTableRef = ref();
- const {
- columns: columns2,
- columnsStyles,
- columnsTotalWidth,
- fixedColumnsOnLeft,
- fixedColumnsOnRight,
- hasFixedColumns,
- mainColumns,
- onColumnSorted
- } = useColumns(props2, toRef(props2, "columns"), toRef(props2, "fixed"));
- const {
- scrollTo,
- scrollToLeft,
- scrollToTop,
- scrollToRow,
- onScroll,
- onVerticalScroll,
- scrollPos
- } = useScrollbar2(props2, {
- mainTableRef,
- leftTableRef,
- rightTableRef,
- onMaybeEndReached
- });
- const ns = useNamespace("table-v2");
- const instance = getCurrentInstance();
- const isScrolling = shallowRef(false);
- const {
- expandedRowKeys,
- lastRenderedRowIndex,
- isDynamic,
- isResetting,
- rowHeights,
- resetAfterIndex,
- onRowExpanded,
- onRowHeightChange,
- onRowHovered,
- onRowsRendered
- } = useRow(props2, {
- mainTableRef,
- leftTableRef,
- rightTableRef,
- tableInstance: instance,
- ns,
- isScrolling
- });
- const { data, depthMap } = useData(props2, {
- expandedRowKeys,
- lastRenderedRowIndex,
- resetAfterIndex
- });
- const rowsHeight = computed(() => {
- const { estimatedRowHeight, rowHeight } = props2;
- const _data = unref(data);
- if (isNumber2(estimatedRowHeight)) {
- return Object.values(unref(rowHeights)).reduce((acc, curr) => acc + curr, 0);
- }
- return _data.length * rowHeight;
- });
- const {
- bodyWidth,
- fixedTableHeight,
- mainTableHeight,
- leftTableWidth,
- rightTableWidth,
- windowHeight,
- footerHeight,
- emptyStyle,
- rootStyle,
- headerHeight
- } = useStyles2(props2, {
- columnsTotalWidth,
- fixedColumnsOnLeft,
- fixedColumnsOnRight,
- rowsHeight
- });
- const containerRef = ref();
- const showEmpty = computed(() => {
- const noData = unref(data).length === 0;
- return isArray(props2.fixedData) ? props2.fixedData.length === 0 && noData : noData;
- });
- function getRowHeight(rowIndex) {
- const { estimatedRowHeight, rowHeight, rowKey: rowKey2 } = props2;
- if (!estimatedRowHeight)
- return rowHeight;
- return unref(rowHeights)[unref(data)[rowIndex][rowKey2]] || estimatedRowHeight;
- }
- const isEndReached = ref(false);
- function onMaybeEndReached() {
- const { onEndReached } = props2;
- if (!onEndReached)
- return;
- const { scrollTop } = unref(scrollPos);
- const _totalHeight = unref(rowsHeight);
- const clientHeight = unref(windowHeight);
- const remainDistance = _totalHeight - (scrollTop + clientHeight) + props2.hScrollbarSize;
- if (!isEndReached.value && unref(lastRenderedRowIndex) >= 0 && _totalHeight <= scrollTop + unref(mainTableHeight) - unref(headerHeight)) {
- isEndReached.value = true;
- onEndReached(remainDistance);
- } else {
- isEndReached.value = false;
- }
- }
- watch(() => unref(rowsHeight), () => isEndReached.value = false);
- watch(() => props2.expandedRowKeys, (val) => expandedRowKeys.value = val, {
- deep: true
- });
- return {
- columns: columns2,
- containerRef,
- mainTableRef,
- leftTableRef,
- rightTableRef,
- isDynamic,
- isResetting,
- isScrolling,
- hasFixedColumns,
- columnsStyles,
- columnsTotalWidth,
- data,
- expandedRowKeys,
- depthMap,
- fixedColumnsOnLeft,
- fixedColumnsOnRight,
- mainColumns,
- bodyWidth,
- emptyStyle,
- rootStyle,
- footerHeight,
- mainTableHeight,
- fixedTableHeight,
- leftTableWidth,
- rightTableWidth,
- showEmpty,
- getRowHeight,
- onColumnSorted,
- onRowHovered,
- onRowExpanded,
- onRowsRendered,
- onRowHeightChange,
- scrollTo,
- scrollToLeft,
- scrollToTop,
- scrollToRow,
- onScroll,
- onVerticalScroll
- };
- }
- // node_modules/element-plus/es/components/table-v2/src/tokens.mjs
- var TableV2InjectionKey = Symbol("tableV2");
- var TABLE_V2_GRID_INJECTION_KEY = "tableV2GridScrollLeft";
- // node_modules/element-plus/es/components/table-v2/src/common.mjs
- var classType = String;
- var columns = {
- type: definePropType(Array),
- required: true
- };
- var column = {
- type: definePropType(Object)
- };
- var fixedDataType = {
- type: definePropType(Array)
- };
- var dataType = {
- ...fixedDataType,
- required: true
- };
- var expandColumnKey = String;
- var expandKeys = {
- type: definePropType(Array),
- default: () => mutable([])
- };
- var requiredNumber = {
- type: Number,
- required: true
- };
- var rowKey = {
- type: definePropType([String, Number, Symbol]),
- default: "id"
- };
- var styleType = {
- type: definePropType(Object)
- };
- // node_modules/element-plus/es/components/table-v2/src/row.mjs
- var tableV2RowProps = buildProps({
- class: String,
- columns,
- columnsStyles: {
- type: definePropType(Object),
- required: true
- },
- depth: Number,
- expandColumnKey,
- estimatedRowHeight: {
- ...virtualizedGridProps.estimatedRowHeight,
- default: void 0
- },
- isScrolling: Boolean,
- onRowExpand: {
- type: definePropType(Function)
- },
- onRowHover: {
- type: definePropType(Function)
- },
- onRowHeightChange: {
- type: definePropType(Function)
- },
- rowData: {
- type: definePropType(Object),
- required: true
- },
- rowEventHandlers: {
- type: definePropType(Object)
- },
- rowIndex: {
- type: Number,
- required: true
- },
- rowKey,
- style: {
- type: definePropType(Object)
- }
- });
- // node_modules/element-plus/es/components/table-v2/src/header.mjs
- var requiredNumberType = {
- type: Number,
- required: true
- };
- var tableV2HeaderProps = buildProps({
- class: String,
- columns,
- fixedHeaderData: {
- type: definePropType(Array)
- },
- headerData: {
- type: definePropType(Array),
- required: true
- },
- headerHeight: {
- type: definePropType([Number, Array]),
- default: 50
- },
- rowWidth: requiredNumberType,
- rowHeight: {
- type: Number,
- default: 50
- },
- height: requiredNumberType,
- width: requiredNumberType
- });
- // node_modules/element-plus/es/components/table-v2/src/grid.mjs
- var tableV2GridProps = buildProps({
- columns,
- data: dataType,
- fixedData: fixedDataType,
- estimatedRowHeight: tableV2RowProps.estimatedRowHeight,
- width: requiredNumber,
- height: requiredNumber,
- headerWidth: requiredNumber,
- headerHeight: tableV2HeaderProps.headerHeight,
- bodyWidth: requiredNumber,
- rowHeight: requiredNumber,
- cache: virtualizedListProps.cache,
- useIsScrolling: Boolean,
- scrollbarAlwaysOn: virtualizedGridProps.scrollbarAlwaysOn,
- scrollbarStartGap: virtualizedGridProps.scrollbarStartGap,
- scrollbarEndGap: virtualizedGridProps.scrollbarEndGap,
- class: classType,
- style: styleType,
- containerStyle: styleType,
- getRowHeight: {
- type: definePropType(Function),
- required: true
- },
- rowKey: tableV2RowProps.rowKey,
- onRowsRendered: {
- type: definePropType(Function)
- },
- onScroll: {
- type: definePropType(Function)
- }
- });
- // node_modules/element-plus/es/components/table-v2/src/table.mjs
- var tableV2Props = buildProps({
- cache: tableV2GridProps.cache,
- estimatedRowHeight: tableV2RowProps.estimatedRowHeight,
- rowKey,
- headerClass: {
- type: definePropType([
- String,
- Function
- ])
- },
- headerProps: {
- type: definePropType([
- Object,
- Function
- ])
- },
- headerCellProps: {
- type: definePropType([
- Object,
- Function
- ])
- },
- headerHeight: tableV2HeaderProps.headerHeight,
- footerHeight: {
- type: Number,
- default: 0
- },
- rowClass: {
- type: definePropType([String, Function])
- },
- rowProps: {
- type: definePropType([Object, Function])
- },
- rowHeight: {
- type: Number,
- default: 50
- },
- cellProps: {
- type: definePropType([
- Object,
- Function
- ])
- },
- columns,
- data: dataType,
- dataGetter: {
- type: definePropType(Function)
- },
- fixedData: fixedDataType,
- expandColumnKey: tableV2RowProps.expandColumnKey,
- expandedRowKeys: expandKeys,
- defaultExpandedRowKeys: expandKeys,
- class: classType,
- fixed: Boolean,
- style: {
- type: definePropType(Object)
- },
- width: requiredNumber,
- height: requiredNumber,
- maxHeight: Number,
- useIsScrolling: Boolean,
- indentSize: {
- type: Number,
- default: 12
- },
- iconSize: {
- type: Number,
- default: 12
- },
- hScrollbarSize: virtualizedGridProps.hScrollbarSize,
- vScrollbarSize: virtualizedGridProps.vScrollbarSize,
- scrollbarAlwaysOn: virtualizedScrollbarProps.alwaysOn,
- sortBy: {
- type: definePropType(Object),
- default: () => ({})
- },
- sortState: {
- type: definePropType(Object),
- default: void 0
- },
- onColumnSort: {
- type: definePropType(Function)
- },
- onExpandedRowsChange: {
- type: definePropType(Function)
- },
- onEndReached: {
- type: definePropType(Function)
- },
- onRowExpand: tableV2RowProps.onRowExpand,
- onScroll: tableV2GridProps.onScroll,
- onRowsRendered: tableV2GridProps.onRowsRendered,
- rowEventHandlers: tableV2RowProps.rowEventHandlers
- });
- // node_modules/element-plus/es/components/table-v2/src/components/header.mjs
- var COMPONENT_NAME20 = "ElTableV2Header";
- var TableV2Header = defineComponent({
- name: COMPONENT_NAME20,
- props: tableV2HeaderProps,
- setup(props2, {
- slots,
- expose
- }) {
- const ns = useNamespace("table-v2");
- const scrollLeftInfo = inject(TABLE_V2_GRID_INJECTION_KEY);
- const headerRef = ref();
- const headerStyle = computed(() => enforceUnit({
- width: props2.width,
- height: props2.height
- }));
- const rowStyle = computed(() => enforceUnit({
- width: props2.rowWidth,
- height: props2.height
- }));
- const headerHeights = computed(() => castArray_default(unref(props2.headerHeight)));
- const scrollToLeft = (left) => {
- const headerEl = unref(headerRef);
- nextTick(() => {
- (headerEl == null ? void 0 : headerEl.scroll) && headerEl.scroll({
- left
- });
- });
- };
- const renderFixedRows = () => {
- const fixedRowClassName = ns.e("fixed-header-row");
- const {
- columns: columns2,
- fixedHeaderData,
- rowHeight
- } = props2;
- return fixedHeaderData == null ? void 0 : fixedHeaderData.map((fixedRowData, fixedRowIndex) => {
- var _a2;
- const style = enforceUnit({
- height: rowHeight,
- width: "100%"
- });
- return (_a2 = slots.fixed) == null ? void 0 : _a2.call(slots, {
- class: fixedRowClassName,
- columns: columns2,
- rowData: fixedRowData,
- rowIndex: -(fixedRowIndex + 1),
- style
- });
- });
- };
- const renderDynamicRows = () => {
- const dynamicRowClassName = ns.e("dynamic-header-row");
- const {
- columns: columns2
- } = props2;
- return unref(headerHeights).map((rowHeight, rowIndex) => {
- var _a2;
- const style = enforceUnit({
- width: "100%",
- height: rowHeight
- });
- return (_a2 = slots.dynamic) == null ? void 0 : _a2.call(slots, {
- class: dynamicRowClassName,
- columns: columns2,
- headerIndex: rowIndex,
- style
- });
- });
- };
- onUpdated(() => {
- if (scrollLeftInfo == null ? void 0 : scrollLeftInfo.value) {
- scrollToLeft(scrollLeftInfo.value);
- }
- });
- expose({
- scrollToLeft
- });
- return () => {
- if (props2.height <= 0)
- return;
- return createVNode("div", {
- "ref": headerRef,
- "class": props2.class,
- "style": unref(headerStyle),
- "role": "rowgroup"
- }, [createVNode("div", {
- "style": unref(rowStyle),
- "class": ns.e("header")
- }, [renderDynamicRows(), renderFixedRows()])]);
- };
- }
- });
- var Header2 = TableV2Header;
- // node_modules/element-plus/es/components/virtual-list/src/hooks/use-grid-wheel.mjs
- var useGridWheel = ({ atXEndEdge, atXStartEdge, atYEndEdge, atYStartEdge }, onWheelDelta) => {
- let frameHandle = null;
- let xOffset = 0;
- let yOffset = 0;
- const hasReachedEdge = (x2, y) => {
- const xEdgeReached = x2 <= 0 && atXStartEdge.value || x2 >= 0 && atXEndEdge.value;
- const yEdgeReached = y <= 0 && atYStartEdge.value || y >= 0 && atYEndEdge.value;
- return xEdgeReached && yEdgeReached;
- };
- const onWheel = (e) => {
- cAF(frameHandle);
- let x2 = e.deltaX;
- let y = e.deltaY;
- if (Math.abs(x2) > Math.abs(y)) {
- y = 0;
- } else {
- x2 = 0;
- }
- if (e.shiftKey && y !== 0) {
- x2 = y;
- y = 0;
- }
- if (hasReachedEdge(xOffset, yOffset) && hasReachedEdge(xOffset + x2, yOffset + y))
- return;
- xOffset += x2;
- yOffset += y;
- e.preventDefault();
- frameHandle = rAF(() => {
- onWheelDelta(xOffset, yOffset);
- xOffset = 0;
- yOffset = 0;
- });
- };
- return {
- hasReachedEdge,
- onWheel
- };
- };
- // node_modules/element-plus/es/components/virtual-list/src/builders/build-grid.mjs
- var createGrid = ({
- name,
- clearCache,
- getColumnPosition,
- getColumnStartIndexForOffset,
- getColumnStopIndexForStartIndex,
- getEstimatedTotalHeight: getEstimatedTotalHeight2,
- getEstimatedTotalWidth: getEstimatedTotalWidth2,
- getColumnOffset,
- getRowOffset,
- getRowPosition,
- getRowStartIndexForOffset,
- getRowStopIndexForStartIndex,
- initCache,
- injectToInstance,
- validateProps
- }) => {
- return defineComponent({
- name: name != null ? name : "ElVirtualList",
- props: virtualizedGridProps,
- emits: [ITEM_RENDER_EVT, SCROLL_EVT],
- setup(props2, { emit, expose, slots }) {
- const ns = useNamespace("vl");
- validateProps(props2);
- const instance = getCurrentInstance();
- const cache2 = ref(initCache(props2, instance));
- injectToInstance == null ? void 0 : injectToInstance(instance, cache2);
- const windowRef = ref();
- const hScrollbar = ref();
- const vScrollbar = ref();
- const innerRef = ref(null);
- const states = ref({
- isScrolling: false,
- scrollLeft: isNumber2(props2.initScrollLeft) ? props2.initScrollLeft : 0,
- scrollTop: isNumber2(props2.initScrollTop) ? props2.initScrollTop : 0,
- updateRequested: false,
- xAxisScrollDir: FORWARD,
- yAxisScrollDir: FORWARD
- });
- const getItemStyleCache = useCache();
- const parsedHeight = computed(() => Number.parseInt(`${props2.height}`, 10));
- const parsedWidth = computed(() => Number.parseInt(`${props2.width}`, 10));
- const columnsToRender = computed(() => {
- const { totalColumn, totalRow, columnCache } = props2;
- const { isScrolling, xAxisScrollDir, scrollLeft } = unref(states);
- if (totalColumn === 0 || totalRow === 0) {
- return [0, 0, 0, 0];
- }
- const startIndex = getColumnStartIndexForOffset(props2, scrollLeft, unref(cache2));
- const stopIndex = getColumnStopIndexForStartIndex(props2, startIndex, scrollLeft, unref(cache2));
- const cacheBackward = !isScrolling || xAxisScrollDir === BACKWARD ? Math.max(1, columnCache) : 1;
- const cacheForward = !isScrolling || xAxisScrollDir === FORWARD ? Math.max(1, columnCache) : 1;
- return [
- Math.max(0, startIndex - cacheBackward),
- Math.max(0, Math.min(totalColumn - 1, stopIndex + cacheForward)),
- startIndex,
- stopIndex
- ];
- });
- const rowsToRender = computed(() => {
- const { totalColumn, totalRow, rowCache } = props2;
- const { isScrolling, yAxisScrollDir, scrollTop } = unref(states);
- if (totalColumn === 0 || totalRow === 0) {
- return [0, 0, 0, 0];
- }
- const startIndex = getRowStartIndexForOffset(props2, scrollTop, unref(cache2));
- const stopIndex = getRowStopIndexForStartIndex(props2, startIndex, scrollTop, unref(cache2));
- const cacheBackward = !isScrolling || yAxisScrollDir === BACKWARD ? Math.max(1, rowCache) : 1;
- const cacheForward = !isScrolling || yAxisScrollDir === FORWARD ? Math.max(1, rowCache) : 1;
- return [
- Math.max(0, startIndex - cacheBackward),
- Math.max(0, Math.min(totalRow - 1, stopIndex + cacheForward)),
- startIndex,
- stopIndex
- ];
- });
- const estimatedTotalHeight = computed(() => getEstimatedTotalHeight2(props2, unref(cache2)));
- const estimatedTotalWidth = computed(() => getEstimatedTotalWidth2(props2, unref(cache2)));
- const windowStyle = computed(() => {
- var _a2;
- return [
- {
- position: "relative",
- overflow: "hidden",
- WebkitOverflowScrolling: "touch",
- willChange: "transform"
- },
- {
- direction: props2.direction,
- height: isNumber2(props2.height) ? `${props2.height}px` : props2.height,
- width: isNumber2(props2.width) ? `${props2.width}px` : props2.width
- },
- (_a2 = props2.style) != null ? _a2 : {}
- ];
- });
- const innerStyle = computed(() => {
- const width = `${unref(estimatedTotalWidth)}px`;
- const height = `${unref(estimatedTotalHeight)}px`;
- return {
- height,
- pointerEvents: unref(states).isScrolling ? "none" : void 0,
- width
- };
- });
- const emitEvents = () => {
- const { totalColumn, totalRow } = props2;
- if (totalColumn > 0 && totalRow > 0) {
- const [
- columnCacheStart,
- columnCacheEnd,
- columnVisibleStart,
- columnVisibleEnd
- ] = unref(columnsToRender);
- const [rowCacheStart, rowCacheEnd, rowVisibleStart, rowVisibleEnd] = unref(rowsToRender);
- emit(ITEM_RENDER_EVT, {
- columnCacheStart,
- columnCacheEnd,
- rowCacheStart,
- rowCacheEnd,
- columnVisibleStart,
- columnVisibleEnd,
- rowVisibleStart,
- rowVisibleEnd
- });
- }
- const {
- scrollLeft,
- scrollTop,
- updateRequested,
- xAxisScrollDir,
- yAxisScrollDir
- } = unref(states);
- emit(SCROLL_EVT, {
- xAxisScrollDir,
- scrollLeft,
- yAxisScrollDir,
- scrollTop,
- updateRequested
- });
- };
- const onScroll = (e) => {
- const {
- clientHeight,
- clientWidth,
- scrollHeight,
- scrollLeft,
- scrollTop,
- scrollWidth
- } = e.currentTarget;
- const _states = unref(states);
- if (_states.scrollTop === scrollTop && _states.scrollLeft === scrollLeft) {
- return;
- }
- let _scrollLeft = scrollLeft;
- if (isRTL(props2.direction)) {
- switch (getRTLOffsetType()) {
- case RTL_OFFSET_NAG:
- _scrollLeft = -scrollLeft;
- break;
- case RTL_OFFSET_POS_DESC:
- _scrollLeft = scrollWidth - clientWidth - scrollLeft;
- break;
- }
- }
- states.value = {
- ..._states,
- isScrolling: true,
- scrollLeft: _scrollLeft,
- scrollTop: Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight)),
- updateRequested: true,
- xAxisScrollDir: getScrollDir(_states.scrollLeft, _scrollLeft),
- yAxisScrollDir: getScrollDir(_states.scrollTop, scrollTop)
- };
- nextTick(() => resetIsScrolling());
- onUpdated2();
- emitEvents();
- };
- const onVerticalScroll = (distance, totalSteps) => {
- const height = unref(parsedHeight);
- const offset3 = (estimatedTotalHeight.value - height) / totalSteps * distance;
- scrollTo({
- scrollTop: Math.min(estimatedTotalHeight.value - height, offset3)
- });
- };
- const onHorizontalScroll = (distance, totalSteps) => {
- const width = unref(parsedWidth);
- const offset3 = (estimatedTotalWidth.value - width) / totalSteps * distance;
- scrollTo({
- scrollLeft: Math.min(estimatedTotalWidth.value - width, offset3)
- });
- };
- const { onWheel } = useGridWheel({
- atXStartEdge: computed(() => states.value.scrollLeft <= 0),
- atXEndEdge: computed(() => states.value.scrollLeft >= estimatedTotalWidth.value - unref(parsedWidth)),
- atYStartEdge: computed(() => states.value.scrollTop <= 0),
- atYEndEdge: computed(() => states.value.scrollTop >= estimatedTotalHeight.value - unref(parsedHeight))
- }, (x2, y) => {
- var _a2, _b, _c, _d;
- (_b = (_a2 = hScrollbar.value) == null ? void 0 : _a2.onMouseUp) == null ? void 0 : _b.call(_a2);
- (_d = (_c = vScrollbar.value) == null ? void 0 : _c.onMouseUp) == null ? void 0 : _d.call(_c);
- const width = unref(parsedWidth);
- const height = unref(parsedHeight);
- scrollTo({
- scrollLeft: Math.min(states.value.scrollLeft + x2, estimatedTotalWidth.value - width),
- scrollTop: Math.min(states.value.scrollTop + y, estimatedTotalHeight.value - height)
- });
- });
- useEventListener(windowRef, "wheel", onWheel, {
- passive: false
- });
- const scrollTo = ({
- scrollLeft = states.value.scrollLeft,
- scrollTop = states.value.scrollTop
- }) => {
- scrollLeft = Math.max(scrollLeft, 0);
- scrollTop = Math.max(scrollTop, 0);
- const _states = unref(states);
- if (scrollTop === _states.scrollTop && scrollLeft === _states.scrollLeft) {
- return;
- }
- states.value = {
- ..._states,
- xAxisScrollDir: getScrollDir(_states.scrollLeft, scrollLeft),
- yAxisScrollDir: getScrollDir(_states.scrollTop, scrollTop),
- scrollLeft,
- scrollTop,
- updateRequested: true
- };
- nextTick(() => resetIsScrolling());
- onUpdated2();
- emitEvents();
- };
- const scrollToItem = (rowIndex = 0, columnIdx = 0, alignment = AUTO_ALIGNMENT) => {
- const _states = unref(states);
- columnIdx = Math.max(0, Math.min(columnIdx, props2.totalColumn - 1));
- rowIndex = Math.max(0, Math.min(rowIndex, props2.totalRow - 1));
- const scrollBarWidth2 = getScrollBarWidth(ns.namespace.value);
- const _cache = unref(cache2);
- const estimatedHeight = getEstimatedTotalHeight2(props2, _cache);
- const estimatedWidth = getEstimatedTotalWidth2(props2, _cache);
- scrollTo({
- scrollLeft: getColumnOffset(props2, columnIdx, alignment, _states.scrollLeft, _cache, estimatedWidth > props2.width ? scrollBarWidth2 : 0),
- scrollTop: getRowOffset(props2, rowIndex, alignment, _states.scrollTop, _cache, estimatedHeight > props2.height ? scrollBarWidth2 : 0)
- });
- };
- const getItemStyle = (rowIndex, columnIndex) => {
- const { columnWidth, direction: direction2, rowHeight } = props2;
- const itemStyleCache = getItemStyleCache.value(clearCache && columnWidth, clearCache && rowHeight, clearCache && direction2);
- const key = `${rowIndex},${columnIndex}`;
- if (hasOwn(itemStyleCache, key)) {
- return itemStyleCache[key];
- } else {
- const [, left] = getColumnPosition(props2, columnIndex, unref(cache2));
- const _cache = unref(cache2);
- const rtl = isRTL(direction2);
- const [height, top] = getRowPosition(props2, rowIndex, _cache);
- const [width] = getColumnPosition(props2, columnIndex, _cache);
- itemStyleCache[key] = {
- position: "absolute",
- left: rtl ? void 0 : `${left}px`,
- right: rtl ? `${left}px` : void 0,
- top: `${top}px`,
- height: `${height}px`,
- width: `${width}px`
- };
- return itemStyleCache[key];
- }
- };
- const resetIsScrolling = () => {
- states.value.isScrolling = false;
- nextTick(() => {
- getItemStyleCache.value(-1, null, null);
- });
- };
- onMounted(() => {
- if (!isClient)
- return;
- const { initScrollLeft, initScrollTop } = props2;
- const windowElement = unref(windowRef);
- if (windowElement) {
- if (isNumber2(initScrollLeft)) {
- windowElement.scrollLeft = initScrollLeft;
- }
- if (isNumber2(initScrollTop)) {
- windowElement.scrollTop = initScrollTop;
- }
- }
- emitEvents();
- });
- const onUpdated2 = () => {
- const { direction: direction2 } = props2;
- const { scrollLeft, scrollTop, updateRequested } = unref(states);
- const windowElement = unref(windowRef);
- if (updateRequested && windowElement) {
- if (direction2 === RTL) {
- switch (getRTLOffsetType()) {
- case RTL_OFFSET_NAG: {
- windowElement.scrollLeft = -scrollLeft;
- break;
- }
- case RTL_OFFSET_POS_ASC: {
- windowElement.scrollLeft = scrollLeft;
- break;
- }
- default: {
- const { clientWidth, scrollWidth } = windowElement;
- windowElement.scrollLeft = scrollWidth - clientWidth - scrollLeft;
- break;
- }
- }
- } else {
- windowElement.scrollLeft = Math.max(0, scrollLeft);
- }
- windowElement.scrollTop = Math.max(0, scrollTop);
- }
- };
- const { resetAfterColumnIndex, resetAfterRowIndex, resetAfter } = instance.proxy;
- expose({
- windowRef,
- innerRef,
- getItemStyleCache,
- scrollTo,
- scrollToItem,
- states,
- resetAfterColumnIndex,
- resetAfterRowIndex,
- resetAfter
- });
- const renderScrollbars = () => {
- const {
- scrollbarAlwaysOn,
- scrollbarStartGap,
- scrollbarEndGap,
- totalColumn,
- totalRow
- } = props2;
- const width = unref(parsedWidth);
- const height = unref(parsedHeight);
- const estimatedWidth = unref(estimatedTotalWidth);
- const estimatedHeight = unref(estimatedTotalHeight);
- const { scrollLeft, scrollTop } = unref(states);
- const horizontalScrollbar = h(ScrollBar, {
- ref: hScrollbar,
- alwaysOn: scrollbarAlwaysOn,
- startGap: scrollbarStartGap,
- endGap: scrollbarEndGap,
- class: ns.e("horizontal"),
- clientSize: width,
- layout: "horizontal",
- onScroll: onHorizontalScroll,
- ratio: width * 100 / estimatedWidth,
- scrollFrom: scrollLeft / (estimatedWidth - width),
- total: totalRow,
- visible: true
- });
- const verticalScrollbar = h(ScrollBar, {
- ref: vScrollbar,
- alwaysOn: scrollbarAlwaysOn,
- startGap: scrollbarStartGap,
- endGap: scrollbarEndGap,
- class: ns.e("vertical"),
- clientSize: height,
- layout: "vertical",
- onScroll: onVerticalScroll,
- ratio: height * 100 / estimatedHeight,
- scrollFrom: scrollTop / (estimatedHeight - height),
- total: totalColumn,
- visible: true
- });
- return {
- horizontalScrollbar,
- verticalScrollbar
- };
- };
- const renderItems = () => {
- var _a2;
- const [columnStart, columnEnd] = unref(columnsToRender);
- const [rowStart, rowEnd] = unref(rowsToRender);
- const { data, totalColumn, totalRow, useIsScrolling, itemKey } = props2;
- const children = [];
- if (totalRow > 0 && totalColumn > 0) {
- for (let row = rowStart; row <= rowEnd; row++) {
- for (let column2 = columnStart; column2 <= columnEnd; column2++) {
- const key = itemKey({ columnIndex: column2, data, rowIndex: row });
- children.push(h(Fragment, { key }, (_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
- columnIndex: column2,
- data,
- isScrolling: useIsScrolling ? unref(states).isScrolling : void 0,
- style: getItemStyle(row, column2),
- rowIndex: row
- })));
- }
- }
- }
- return children;
- };
- const renderInner = () => {
- const Inner = resolveDynamicComponent(props2.innerElement);
- const children = renderItems();
- return [
- h(Inner, {
- style: unref(innerStyle),
- ref: innerRef
- }, !isString(Inner) ? {
- default: () => children
- } : children)
- ];
- };
- const renderWindow = () => {
- const Container2 = resolveDynamicComponent(props2.containerElement);
- const { horizontalScrollbar, verticalScrollbar } = renderScrollbars();
- const Inner = renderInner();
- return h("div", {
- key: 0,
- class: ns.e("wrapper"),
- role: props2.role
- }, [
- h(Container2, {
- class: props2.className,
- style: unref(windowStyle),
- onScroll,
- ref: windowRef
- }, !isString(Container2) ? { default: () => Inner } : Inner),
- horizontalScrollbar,
- verticalScrollbar
- ]);
- };
- return renderWindow;
- }
- });
- };
- // node_modules/element-plus/es/components/virtual-list/src/components/dynamic-size-grid.mjs
- var { max: max2, min: min2, floor: floor2 } = Math;
- var ACCESS_SIZER_KEY_MAP = {
- column: "columnWidth",
- row: "rowHeight"
- };
- var ACCESS_LAST_VISITED_KEY_MAP = {
- column: "lastVisitedColumnIndex",
- row: "lastVisitedRowIndex"
- };
- var getItemFromCache2 = (props2, index, gridCache, type4) => {
- const [cachedItems, sizer, lastVisited] = [
- gridCache[type4],
- props2[ACCESS_SIZER_KEY_MAP[type4]],
- gridCache[ACCESS_LAST_VISITED_KEY_MAP[type4]]
- ];
- if (index > lastVisited) {
- let offset3 = 0;
- if (lastVisited >= 0) {
- const item = cachedItems[lastVisited];
- offset3 = item.offset + item.size;
- }
- for (let i = lastVisited + 1; i <= index; i++) {
- const size3 = sizer(i);
- cachedItems[i] = {
- offset: offset3,
- size: size3
- };
- offset3 += size3;
- }
- gridCache[ACCESS_LAST_VISITED_KEY_MAP[type4]] = index;
- }
- return cachedItems[index];
- };
- var bs2 = (props2, gridCache, low, high, offset3, type4) => {
- while (low <= high) {
- const mid = low + floor2((high - low) / 2);
- const currentOffset = getItemFromCache2(props2, mid, gridCache, type4).offset;
- if (currentOffset === offset3) {
- return mid;
- } else if (currentOffset < offset3) {
- low = mid + 1;
- } else {
- high = mid - 1;
- }
- }
- return max2(0, low - 1);
- };
- var es2 = (props2, gridCache, idx, offset3, type4) => {
- const total2 = type4 === "column" ? props2.totalColumn : props2.totalRow;
- let exponent = 1;
- while (idx < total2 && getItemFromCache2(props2, idx, gridCache, type4).offset < offset3) {
- idx += exponent;
- exponent *= 2;
- }
- return bs2(props2, gridCache, floor2(idx / 2), min2(idx, total2 - 1), offset3, type4);
- };
- var findItem2 = (props2, gridCache, offset3, type4) => {
- const [cache2, lastVisitedIndex] = [
- gridCache[type4],
- gridCache[ACCESS_LAST_VISITED_KEY_MAP[type4]]
- ];
- const lastVisitedItemOffset = lastVisitedIndex > 0 ? cache2[lastVisitedIndex].offset : 0;
- if (lastVisitedItemOffset >= offset3) {
- return bs2(props2, gridCache, 0, lastVisitedIndex, offset3, type4);
- }
- return es2(props2, gridCache, max2(0, lastVisitedIndex), offset3, type4);
- };
- var getEstimatedTotalHeight = ({ totalRow }, { estimatedRowHeight, lastVisitedRowIndex, row }) => {
- let sizeOfVisitedRows = 0;
- if (lastVisitedRowIndex >= totalRow) {
- lastVisitedRowIndex = totalRow - 1;
- }
- if (lastVisitedRowIndex >= 0) {
- const item = row[lastVisitedRowIndex];
- sizeOfVisitedRows = item.offset + item.size;
- }
- const unvisitedItems = totalRow - lastVisitedRowIndex - 1;
- const sizeOfUnvisitedItems = unvisitedItems * estimatedRowHeight;
- return sizeOfVisitedRows + sizeOfUnvisitedItems;
- };
- var getEstimatedTotalWidth = ({ totalColumn }, { column: column2, estimatedColumnWidth, lastVisitedColumnIndex }) => {
- let sizeOfVisitedColumns = 0;
- if (lastVisitedColumnIndex > totalColumn) {
- lastVisitedColumnIndex = totalColumn - 1;
- }
- if (lastVisitedColumnIndex >= 0) {
- const item = column2[lastVisitedColumnIndex];
- sizeOfVisitedColumns = item.offset + item.size;
- }
- const unvisitedItems = totalColumn - lastVisitedColumnIndex - 1;
- const sizeOfUnvisitedItems = unvisitedItems * estimatedColumnWidth;
- return sizeOfVisitedColumns + sizeOfUnvisitedItems;
- };
- var ACCESS_ESTIMATED_SIZE_KEY_MAP = {
- column: getEstimatedTotalWidth,
- row: getEstimatedTotalHeight
- };
- var getOffset2 = (props2, index, alignment, scrollOffset, cache2, type4, scrollBarWidth2) => {
- const [size3, estimatedSizeAssociates] = [
- type4 === "row" ? props2.height : props2.width,
- ACCESS_ESTIMATED_SIZE_KEY_MAP[type4]
- ];
- const item = getItemFromCache2(props2, index, cache2, type4);
- const estimatedSize = estimatedSizeAssociates(props2, cache2);
- const maxOffset = max2(0, min2(estimatedSize - size3, item.offset));
- const minOffset = max2(0, item.offset - size3 + scrollBarWidth2 + item.size);
- if (alignment === SMART_ALIGNMENT) {
- if (scrollOffset >= minOffset - size3 && scrollOffset <= maxOffset + size3) {
- alignment = AUTO_ALIGNMENT;
- } else {
- alignment = CENTERED_ALIGNMENT;
- }
- }
- switch (alignment) {
- case START_ALIGNMENT: {
- return maxOffset;
- }
- case END_ALIGNMENT: {
- return minOffset;
- }
- case CENTERED_ALIGNMENT: {
- return Math.round(minOffset + (maxOffset - minOffset) / 2);
- }
- case AUTO_ALIGNMENT:
- default: {
- if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
- return scrollOffset;
- } else if (minOffset > maxOffset) {
- return minOffset;
- } else if (scrollOffset < minOffset) {
- return minOffset;
- } else {
- return maxOffset;
- }
- }
- }
- };
- var DynamicSizeGrid = createGrid({
- name: "ElDynamicSizeGrid",
- getColumnPosition: (props2, idx, cache2) => {
- const item = getItemFromCache2(props2, idx, cache2, "column");
- return [item.size, item.offset];
- },
- getRowPosition: (props2, idx, cache2) => {
- const item = getItemFromCache2(props2, idx, cache2, "row");
- return [item.size, item.offset];
- },
- getColumnOffset: (props2, columnIndex, alignment, scrollLeft, cache2, scrollBarWidth2) => getOffset2(props2, columnIndex, alignment, scrollLeft, cache2, "column", scrollBarWidth2),
- getRowOffset: (props2, rowIndex, alignment, scrollTop, cache2, scrollBarWidth2) => getOffset2(props2, rowIndex, alignment, scrollTop, cache2, "row", scrollBarWidth2),
- getColumnStartIndexForOffset: (props2, scrollLeft, cache2) => findItem2(props2, cache2, scrollLeft, "column"),
- getColumnStopIndexForStartIndex: (props2, startIndex, scrollLeft, cache2) => {
- const item = getItemFromCache2(props2, startIndex, cache2, "column");
- const maxOffset = scrollLeft + props2.width;
- let offset3 = item.offset + item.size;
- let stopIndex = startIndex;
- while (stopIndex < props2.totalColumn - 1 && offset3 < maxOffset) {
- stopIndex++;
- offset3 += getItemFromCache2(props2, startIndex, cache2, "column").size;
- }
- return stopIndex;
- },
- getEstimatedTotalHeight,
- getEstimatedTotalWidth,
- getRowStartIndexForOffset: (props2, scrollTop, cache2) => findItem2(props2, cache2, scrollTop, "row"),
- getRowStopIndexForStartIndex: (props2, startIndex, scrollTop, cache2) => {
- const { totalRow, height } = props2;
- const item = getItemFromCache2(props2, startIndex, cache2, "row");
- const maxOffset = scrollTop + height;
- let offset3 = item.size + item.offset;
- let stopIndex = startIndex;
- while (stopIndex < totalRow - 1 && offset3 < maxOffset) {
- stopIndex++;
- offset3 += getItemFromCache2(props2, stopIndex, cache2, "row").size;
- }
- return stopIndex;
- },
- injectToInstance: (instance, cache2) => {
- const resetAfter = ({ columnIndex, rowIndex }, forceUpdate) => {
- var _a2, _b;
- forceUpdate = isUndefined2(forceUpdate) ? true : forceUpdate;
- if (isNumber2(columnIndex)) {
- cache2.value.lastVisitedColumnIndex = Math.min(cache2.value.lastVisitedColumnIndex, columnIndex - 1);
- }
- if (isNumber2(rowIndex)) {
- cache2.value.lastVisitedRowIndex = Math.min(cache2.value.lastVisitedRowIndex, rowIndex - 1);
- }
- (_a2 = instance.exposed) == null ? void 0 : _a2.getItemStyleCache.value(-1, null, null);
- if (forceUpdate)
- (_b = instance.proxy) == null ? void 0 : _b.$forceUpdate();
- };
- const resetAfterColumnIndex = (columnIndex, forceUpdate) => {
- resetAfter({
- columnIndex
- }, forceUpdate);
- };
- const resetAfterRowIndex = (rowIndex, forceUpdate) => {
- resetAfter({
- rowIndex
- }, forceUpdate);
- };
- Object.assign(instance.proxy, {
- resetAfterColumnIndex,
- resetAfterRowIndex,
- resetAfter
- });
- },
- initCache: ({
- estimatedColumnWidth = DEFAULT_DYNAMIC_LIST_ITEM_SIZE,
- estimatedRowHeight = DEFAULT_DYNAMIC_LIST_ITEM_SIZE
- }) => {
- const cache2 = {
- column: {},
- estimatedColumnWidth,
- estimatedRowHeight,
- lastVisitedColumnIndex: -1,
- lastVisitedRowIndex: -1,
- row: {}
- };
- return cache2;
- },
- clearCache: false,
- validateProps: ({ columnWidth, rowHeight }) => {
- }
- });
- // node_modules/element-plus/es/components/virtual-list/src/components/fixed-size-grid.mjs
- var FixedSizeGrid = createGrid({
- name: "ElFixedSizeGrid",
- getColumnPosition: ({ columnWidth }, index) => [
- columnWidth,
- index * columnWidth
- ],
- getRowPosition: ({ rowHeight }, index) => [
- rowHeight,
- index * rowHeight
- ],
- getEstimatedTotalHeight: ({ totalRow, rowHeight }) => rowHeight * totalRow,
- getEstimatedTotalWidth: ({ totalColumn, columnWidth }) => columnWidth * totalColumn,
- getColumnOffset: ({ totalColumn, columnWidth, width }, columnIndex, alignment, scrollLeft, _2, scrollBarWidth2) => {
- width = Number(width);
- const lastColumnOffset = Math.max(0, totalColumn * columnWidth - width);
- const maxOffset = Math.min(lastColumnOffset, columnIndex * columnWidth);
- const minOffset = Math.max(0, columnIndex * columnWidth - width + scrollBarWidth2 + columnWidth);
- if (alignment === "smart") {
- if (scrollLeft >= minOffset - width && scrollLeft <= maxOffset + width) {
- alignment = AUTO_ALIGNMENT;
- } else {
- alignment = CENTERED_ALIGNMENT;
- }
- }
- switch (alignment) {
- case START_ALIGNMENT:
- return maxOffset;
- case END_ALIGNMENT:
- return minOffset;
- case CENTERED_ALIGNMENT: {
- const middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
- if (middleOffset < Math.ceil(width / 2)) {
- return 0;
- } else if (middleOffset > lastColumnOffset + Math.floor(width / 2)) {
- return lastColumnOffset;
- } else {
- return middleOffset;
- }
- }
- case AUTO_ALIGNMENT:
- default:
- if (scrollLeft >= minOffset && scrollLeft <= maxOffset) {
- return scrollLeft;
- } else if (minOffset > maxOffset) {
- return minOffset;
- } else if (scrollLeft < minOffset) {
- return minOffset;
- } else {
- return maxOffset;
- }
- }
- },
- getRowOffset: ({ rowHeight, height, totalRow }, rowIndex, align, scrollTop, _2, scrollBarWidth2) => {
- height = Number(height);
- const lastRowOffset = Math.max(0, totalRow * rowHeight - height);
- const maxOffset = Math.min(lastRowOffset, rowIndex * rowHeight);
- const minOffset = Math.max(0, rowIndex * rowHeight - height + scrollBarWidth2 + rowHeight);
- if (align === SMART_ALIGNMENT) {
- if (scrollTop >= minOffset - height && scrollTop <= maxOffset + height) {
- align = AUTO_ALIGNMENT;
- } else {
- align = CENTERED_ALIGNMENT;
- }
- }
- switch (align) {
- case START_ALIGNMENT:
- return maxOffset;
- case END_ALIGNMENT:
- return minOffset;
- case CENTERED_ALIGNMENT: {
- const middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
- if (middleOffset < Math.ceil(height / 2)) {
- return 0;
- } else if (middleOffset > lastRowOffset + Math.floor(height / 2)) {
- return lastRowOffset;
- } else {
- return middleOffset;
- }
- }
- case AUTO_ALIGNMENT:
- default:
- if (scrollTop >= minOffset && scrollTop <= maxOffset) {
- return scrollTop;
- } else if (minOffset > maxOffset) {
- return minOffset;
- } else if (scrollTop < minOffset) {
- return minOffset;
- } else {
- return maxOffset;
- }
- }
- },
- getColumnStartIndexForOffset: ({ columnWidth, totalColumn }, scrollLeft) => Math.max(0, Math.min(totalColumn - 1, Math.floor(scrollLeft / columnWidth))),
- getColumnStopIndexForStartIndex: ({ columnWidth, totalColumn, width }, startIndex, scrollLeft) => {
- const left = startIndex * columnWidth;
- const visibleColumnsCount = Math.ceil((width + scrollLeft - left) / columnWidth);
- return Math.max(0, Math.min(totalColumn - 1, startIndex + visibleColumnsCount - 1));
- },
- getRowStartIndexForOffset: ({ rowHeight, totalRow }, scrollTop) => Math.max(0, Math.min(totalRow - 1, Math.floor(scrollTop / rowHeight))),
- getRowStopIndexForStartIndex: ({ rowHeight, totalRow, height }, startIndex, scrollTop) => {
- const top = startIndex * rowHeight;
- const numVisibleRows = Math.ceil((height + scrollTop - top) / rowHeight);
- return Math.max(0, Math.min(totalRow - 1, startIndex + numVisibleRows - 1));
- },
- initCache: () => void 0,
- clearCache: true,
- validateProps: ({ columnWidth, rowHeight }) => {
- }
- });
- // node_modules/element-plus/es/components/table-v2/src/table-grid.mjs
- var COMPONENT_NAME21 = "ElTableV2Grid";
- var useTableGrid = (props2) => {
- const headerRef = ref();
- const bodyRef = ref();
- const scrollLeft = ref(0);
- const totalHeight = computed(() => {
- const {
- data,
- rowHeight,
- estimatedRowHeight
- } = props2;
- if (estimatedRowHeight) {
- return;
- }
- return data.length * rowHeight;
- });
- const fixedRowHeight = computed(() => {
- const {
- fixedData,
- rowHeight
- } = props2;
- return ((fixedData == null ? void 0 : fixedData.length) || 0) * rowHeight;
- });
- const headerHeight = computed(() => sum2(props2.headerHeight));
- const gridHeight = computed(() => {
- const {
- height
- } = props2;
- return Math.max(0, height - unref(headerHeight) - unref(fixedRowHeight));
- });
- const hasHeader = computed(() => {
- return unref(headerHeight) + unref(fixedRowHeight) > 0;
- });
- const itemKey = ({
- data,
- rowIndex
- }) => data[rowIndex][props2.rowKey];
- function onItemRendered({
- rowCacheStart,
- rowCacheEnd,
- rowVisibleStart,
- rowVisibleEnd
- }) {
- var _a2;
- (_a2 = props2.onRowsRendered) == null ? void 0 : _a2.call(props2, {
- rowCacheStart,
- rowCacheEnd,
- rowVisibleStart,
- rowVisibleEnd
- });
- }
- function resetAfterRowIndex(index, forceUpdate2) {
- var _a2;
- (_a2 = bodyRef.value) == null ? void 0 : _a2.resetAfterRowIndex(index, forceUpdate2);
- }
- function scrollTo(leftOrOptions, top) {
- const header$ = unref(headerRef);
- const body$ = unref(bodyRef);
- if (isObject(leftOrOptions)) {
- header$ == null ? void 0 : header$.scrollToLeft(leftOrOptions.scrollLeft);
- scrollLeft.value = leftOrOptions.scrollLeft;
- body$ == null ? void 0 : body$.scrollTo(leftOrOptions);
- } else {
- header$ == null ? void 0 : header$.scrollToLeft(leftOrOptions);
- scrollLeft.value = leftOrOptions;
- body$ == null ? void 0 : body$.scrollTo({
- scrollLeft: leftOrOptions,
- scrollTop: top
- });
- }
- }
- function scrollToTop(scrollTop) {
- var _a2;
- (_a2 = unref(bodyRef)) == null ? void 0 : _a2.scrollTo({
- scrollTop
- });
- }
- function scrollToRow(row, strategy) {
- var _a2;
- (_a2 = unref(bodyRef)) == null ? void 0 : _a2.scrollToItem(row, 1, strategy);
- }
- function forceUpdate() {
- var _a2, _b;
- (_a2 = unref(bodyRef)) == null ? void 0 : _a2.$forceUpdate();
- (_b = unref(headerRef)) == null ? void 0 : _b.$forceUpdate();
- }
- watch(() => props2.bodyWidth, () => {
- var _a2;
- if (isNumber2(props2.estimatedRowHeight))
- (_a2 = bodyRef.value) == null ? void 0 : _a2.resetAfter({
- columnIndex: 0
- }, false);
- });
- return {
- bodyRef,
- forceUpdate,
- fixedRowHeight,
- gridHeight,
- hasHeader,
- headerHeight,
- headerRef,
- totalHeight,
- itemKey,
- onItemRendered,
- resetAfterRowIndex,
- scrollTo,
- scrollToTop,
- scrollToRow,
- scrollLeft
- };
- };
- var TableGrid = defineComponent({
- name: COMPONENT_NAME21,
- props: tableV2GridProps,
- setup(props2, {
- slots,
- expose
- }) {
- const {
- ns
- } = inject(TableV2InjectionKey);
- const {
- bodyRef,
- fixedRowHeight,
- gridHeight,
- hasHeader,
- headerRef,
- headerHeight,
- totalHeight,
- forceUpdate,
- itemKey,
- onItemRendered,
- resetAfterRowIndex,
- scrollTo,
- scrollToTop,
- scrollToRow,
- scrollLeft
- } = useTableGrid(props2);
- provide(TABLE_V2_GRID_INJECTION_KEY, scrollLeft);
- onActivated(async () => {
- var _a2;
- await nextTick();
- const scrollTop = (_a2 = bodyRef.value) == null ? void 0 : _a2.states.scrollTop;
- scrollTop && scrollToTop(Math.round(scrollTop) + 1);
- });
- expose({
- forceUpdate,
- totalHeight,
- scrollTo,
- scrollToTop,
- scrollToRow,
- resetAfterRowIndex
- });
- const getColumnWidth = () => props2.bodyWidth;
- return () => {
- const {
- cache: cache2,
- columns: columns2,
- data,
- fixedData,
- useIsScrolling,
- scrollbarAlwaysOn,
- scrollbarEndGap,
- scrollbarStartGap,
- style,
- rowHeight,
- bodyWidth,
- estimatedRowHeight,
- headerWidth,
- height,
- width,
- getRowHeight,
- onScroll
- } = props2;
- const isDynamicRowEnabled = isNumber2(estimatedRowHeight);
- const Grid = isDynamicRowEnabled ? DynamicSizeGrid : FixedSizeGrid;
- const _headerHeight = unref(headerHeight);
- return createVNode("div", {
- "role": "table",
- "class": [ns.e("table"), props2.class],
- "style": style
- }, [createVNode(Grid, {
- "ref": bodyRef,
- "data": data,
- "useIsScrolling": useIsScrolling,
- "itemKey": itemKey,
- "columnCache": 0,
- "columnWidth": isDynamicRowEnabled ? getColumnWidth : bodyWidth,
- "totalColumn": 1,
- "totalRow": data.length,
- "rowCache": cache2,
- "rowHeight": isDynamicRowEnabled ? getRowHeight : rowHeight,
- "width": width,
- "height": unref(gridHeight),
- "class": ns.e("body"),
- "role": "rowgroup",
- "scrollbarStartGap": scrollbarStartGap,
- "scrollbarEndGap": scrollbarEndGap,
- "scrollbarAlwaysOn": scrollbarAlwaysOn,
- "onScroll": onScroll,
- "onItemRendered": onItemRendered,
- "perfMode": false
- }, {
- default: (params) => {
- var _a2;
- const rowData = data[params.rowIndex];
- return (_a2 = slots.row) == null ? void 0 : _a2.call(slots, {
- ...params,
- columns: columns2,
- rowData
- });
- }
- }), unref(hasHeader) && createVNode(Header2, {
- "ref": headerRef,
- "class": ns.e("header-wrapper"),
- "columns": columns2,
- "headerData": data,
- "headerHeight": props2.headerHeight,
- "fixedHeaderData": fixedData,
- "rowWidth": headerWidth,
- "rowHeight": rowHeight,
- "width": width,
- "height": Math.min(_headerHeight + unref(fixedRowHeight), height)
- }, {
- dynamic: slots.header,
- fixed: slots.row
- })]);
- };
- }
- });
- var Table2 = TableGrid;
- // node_modules/element-plus/es/components/table-v2/src/renderers/main-table.mjs
- function _isSlot3(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var MainTable = (props2, {
- slots
- }) => {
- const {
- mainTableRef,
- ...rest2
- } = props2;
- return createVNode(Table2, mergeProps({
- "ref": mainTableRef
- }, rest2), _isSlot3(slots) ? slots : {
- default: () => [slots]
- });
- };
- var MainTable$1 = MainTable;
- // node_modules/element-plus/es/components/table-v2/src/renderers/left-table.mjs
- function _isSlot4(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var LeftTable = (props2, {
- slots
- }) => {
- if (!props2.columns.length)
- return;
- const {
- leftTableRef,
- ...rest2
- } = props2;
- return createVNode(Table2, mergeProps({
- "ref": leftTableRef
- }, rest2), _isSlot4(slots) ? slots : {
- default: () => [slots]
- });
- };
- var LeftTable$1 = LeftTable;
- // node_modules/element-plus/es/components/table-v2/src/renderers/right-table.mjs
- function _isSlot5(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var LeftTable2 = (props2, {
- slots
- }) => {
- if (!props2.columns.length)
- return;
- const {
- rightTableRef,
- ...rest2
- } = props2;
- return createVNode(Table2, mergeProps({
- "ref": rightTableRef
- }, rest2), _isSlot5(slots) ? slots : {
- default: () => [slots]
- });
- };
- var RightTable = LeftTable2;
- // node_modules/element-plus/es/components/table-v2/src/components/row.mjs
- var useTableRow = (props2) => {
- const {
- isScrolling
- } = inject(TableV2InjectionKey);
- const measured = ref(false);
- const rowRef = ref();
- const measurable = computed(() => {
- return isNumber2(props2.estimatedRowHeight) && props2.rowIndex >= 0;
- });
- const doMeasure = (isInit = false) => {
- const $rowRef = unref(rowRef);
- if (!$rowRef)
- return;
- const {
- columns: columns2,
- onRowHeightChange,
- rowKey: rowKey2,
- rowIndex,
- style
- } = props2;
- const {
- height
- } = $rowRef.getBoundingClientRect();
- measured.value = true;
- nextTick(() => {
- if (isInit || height !== Number.parseInt(style.height)) {
- const firstColumn = columns2[0];
- const isPlaceholder = (firstColumn == null ? void 0 : firstColumn.placeholderSign) === placeholderSign;
- onRowHeightChange == null ? void 0 : onRowHeightChange({
- rowKey: rowKey2,
- height,
- rowIndex
- }, firstColumn && !isPlaceholder && firstColumn.fixed);
- }
- });
- };
- const eventHandlers = computed(() => {
- const {
- rowData,
- rowIndex,
- rowKey: rowKey2,
- onRowHover
- } = props2;
- const handlers2 = props2.rowEventHandlers || {};
- const eventHandlers2 = {};
- Object.entries(handlers2).forEach(([eventName, handler]) => {
- if (isFunction(handler)) {
- eventHandlers2[eventName] = (event) => {
- handler({
- event,
- rowData,
- rowIndex,
- rowKey: rowKey2
- });
- };
- }
- });
- if (onRowHover) {
- [{
- name: "onMouseleave",
- hovered: false
- }, {
- name: "onMouseenter",
- hovered: true
- }].forEach(({
- name,
- hovered
- }) => {
- const existedHandler = eventHandlers2[name];
- eventHandlers2[name] = (event) => {
- onRowHover({
- event,
- hovered,
- rowData,
- rowIndex,
- rowKey: rowKey2
- });
- existedHandler == null ? void 0 : existedHandler(event);
- };
- });
- }
- return eventHandlers2;
- });
- const onExpand = (expanded) => {
- const {
- onRowExpand,
- rowData,
- rowIndex,
- rowKey: rowKey2
- } = props2;
- onRowExpand == null ? void 0 : onRowExpand({
- expanded,
- rowData,
- rowIndex,
- rowKey: rowKey2
- });
- };
- onMounted(() => {
- if (unref(measurable)) {
- doMeasure(true);
- }
- });
- return {
- isScrolling,
- measurable,
- measured,
- rowRef,
- eventHandlers,
- onExpand
- };
- };
- var COMPONENT_NAME22 = "ElTableV2TableRow";
- var TableV2Row = defineComponent({
- name: COMPONENT_NAME22,
- props: tableV2RowProps,
- setup(props2, {
- expose,
- slots,
- attrs
- }) {
- const {
- eventHandlers,
- isScrolling,
- measurable,
- measured,
- rowRef,
- onExpand
- } = useTableRow(props2);
- expose({
- onExpand
- });
- return () => {
- const {
- columns: columns2,
- columnsStyles,
- expandColumnKey: expandColumnKey2,
- depth,
- rowData,
- rowIndex,
- style
- } = props2;
- let ColumnCells = columns2.map((column2, columnIndex) => {
- const expandable = isArray(rowData.children) && rowData.children.length > 0 && column2.key === expandColumnKey2;
- return slots.cell({
- column: column2,
- columns: columns2,
- columnIndex,
- depth,
- style: columnsStyles[column2.key],
- rowData,
- rowIndex,
- isScrolling: unref(isScrolling),
- expandIconProps: expandable ? {
- rowData,
- rowIndex,
- onExpand
- } : void 0
- });
- });
- if (slots.row) {
- ColumnCells = slots.row({
- cells: ColumnCells.map((node) => {
- if (isArray(node) && node.length === 1) {
- return node[0];
- }
- return node;
- }),
- style,
- columns: columns2,
- depth,
- rowData,
- rowIndex,
- isScrolling: unref(isScrolling)
- });
- }
- if (unref(measurable)) {
- const {
- height,
- ...exceptHeightStyle
- } = style || {};
- const _measured = unref(measured);
- return createVNode("div", mergeProps({
- "ref": rowRef,
- "class": props2.class,
- "style": _measured ? style : exceptHeightStyle,
- "role": "row"
- }, attrs, unref(eventHandlers)), [ColumnCells]);
- }
- return createVNode("div", mergeProps(attrs, {
- "ref": rowRef,
- "class": props2.class,
- "style": style,
- "role": "row"
- }, unref(eventHandlers)), [ColumnCells]);
- };
- }
- });
- var Row2 = TableV2Row;
- // node_modules/element-plus/es/components/table-v2/src/renderers/row.mjs
- function _isSlot6(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var RowRenderer = (props2, {
- slots
- }) => {
- const {
- columns: columns2,
- columnsStyles,
- depthMap,
- expandColumnKey: expandColumnKey2,
- expandedRowKeys,
- estimatedRowHeight,
- hasFixedColumns,
- rowData,
- rowIndex,
- style,
- isScrolling,
- rowProps: rowProps2,
- rowClass,
- rowKey: rowKey2,
- rowEventHandlers,
- ns,
- onRowHovered,
- onRowExpanded
- } = props2;
- const rowKls = tryCall(rowClass, {
- columns: columns2,
- rowData,
- rowIndex
- }, "");
- const additionalProps = tryCall(rowProps2, {
- columns: columns2,
- rowData,
- rowIndex
- });
- const _rowKey = rowData[rowKey2];
- const depth = depthMap[_rowKey] || 0;
- const canExpand = Boolean(expandColumnKey2);
- const isFixedRow = rowIndex < 0;
- const kls = [ns.e("row"), rowKls, {
- [ns.e(`row-depth-${depth}`)]: canExpand && rowIndex >= 0,
- [ns.is("expanded")]: canExpand && expandedRowKeys.includes(_rowKey),
- [ns.is("fixed")]: !depth && isFixedRow,
- [ns.is("customized")]: Boolean(slots.row)
- }];
- const onRowHover = hasFixedColumns ? onRowHovered : void 0;
- const _rowProps = {
- ...additionalProps,
- columns: columns2,
- columnsStyles,
- class: kls,
- depth,
- expandColumnKey: expandColumnKey2,
- estimatedRowHeight: isFixedRow ? void 0 : estimatedRowHeight,
- isScrolling,
- rowIndex,
- rowData,
- rowKey: _rowKey,
- rowEventHandlers,
- style
- };
- const handlerMouseEnter = (e) => {
- onRowHover == null ? void 0 : onRowHover({
- hovered: true,
- rowKey: _rowKey,
- event: e,
- rowData,
- rowIndex
- });
- };
- const handlerMouseLeave = (e) => {
- onRowHover == null ? void 0 : onRowHover({
- hovered: false,
- rowKey: _rowKey,
- event: e,
- rowData,
- rowIndex
- });
- };
- return createVNode(Row2, mergeProps(_rowProps, {
- "onRowExpand": onRowExpanded,
- "onMouseenter": handlerMouseEnter,
- "onMouseleave": handlerMouseLeave,
- "rowkey": _rowKey
- }), _isSlot6(slots) ? slots : {
- default: () => [slots]
- });
- };
- var Row3 = RowRenderer;
- // node_modules/element-plus/es/components/table-v2/src/components/cell.mjs
- var TableV2Cell = (props2, {
- slots
- }) => {
- var _a2;
- const {
- cellData,
- style
- } = props2;
- const displayText = ((_a2 = cellData == null ? void 0 : cellData.toString) == null ? void 0 : _a2.call(cellData)) || "";
- const defaultSlot = renderSlot(slots, "default", props2, () => [displayText]);
- return createVNode("div", {
- "class": props2.class,
- "title": displayText,
- "style": style
- }, [defaultSlot]);
- };
- TableV2Cell.displayName = "ElTableV2Cell";
- TableV2Cell.inheritAttrs = false;
- var TableCell = TableV2Cell;
- // node_modules/element-plus/es/components/table-v2/src/components/expand-icon.mjs
- var ExpandIcon = (props2) => {
- const {
- expanded,
- expandable,
- onExpand,
- style,
- size: size3
- } = props2;
- const expandIconProps = {
- onClick: expandable ? () => onExpand(!expanded) : void 0,
- class: props2.class
- };
- return createVNode(ElIcon, mergeProps(expandIconProps, {
- "size": size3,
- "style": style
- }), {
- default: () => [createVNode(arrow_right_default, null, null)]
- });
- };
- var ExpandIcon$1 = ExpandIcon;
- // node_modules/element-plus/es/components/table-v2/src/renderers/cell.mjs
- var CellRenderer = ({
- columns: columns2,
- column: column2,
- columnIndex,
- depth,
- expandIconProps,
- isScrolling,
- rowData,
- rowIndex,
- style,
- expandedRowKeys,
- ns,
- cellProps: _cellProps,
- expandColumnKey: expandColumnKey2,
- indentSize,
- iconSize,
- rowKey: rowKey2
- }, {
- slots
- }) => {
- const cellStyle = enforceUnit(style);
- if (column2.placeholderSign === placeholderSign) {
- return createVNode("div", {
- "class": ns.em("row-cell", "placeholder"),
- "style": cellStyle
- }, null);
- }
- const {
- cellRenderer,
- dataKey,
- dataGetter
- } = column2;
- const cellData = isFunction(dataGetter) ? dataGetter({
- columns: columns2,
- column: column2,
- columnIndex,
- rowData,
- rowIndex
- }) : get_default(rowData, dataKey != null ? dataKey : "");
- const extraCellProps = tryCall(_cellProps, {
- cellData,
- columns: columns2,
- column: column2,
- columnIndex,
- rowIndex,
- rowData
- });
- const cellProps = {
- class: ns.e("cell-text"),
- columns: columns2,
- column: column2,
- columnIndex,
- cellData,
- isScrolling,
- rowData,
- rowIndex
- };
- const columnCellRenderer = componentToSlot(cellRenderer);
- const Cell2 = columnCellRenderer ? columnCellRenderer(cellProps) : renderSlot(slots, "default", cellProps, () => [createVNode(TableCell, cellProps, null)]);
- const kls = [ns.e("row-cell"), column2.class, column2.align === Alignment.CENTER && ns.is("align-center"), column2.align === Alignment.RIGHT && ns.is("align-right")];
- const expandable = rowIndex >= 0 && expandColumnKey2 && column2.key === expandColumnKey2;
- const expanded = rowIndex >= 0 && expandedRowKeys.includes(rowData[rowKey2]);
- let IconOrPlaceholder;
- const iconStyle = `margin-inline-start: ${depth * indentSize}px;`;
- if (expandable) {
- if (isObject(expandIconProps)) {
- IconOrPlaceholder = createVNode(ExpandIcon$1, mergeProps(expandIconProps, {
- "class": [ns.e("expand-icon"), ns.is("expanded", expanded)],
- "size": iconSize,
- "expanded": expanded,
- "style": iconStyle,
- "expandable": true
- }), null);
- } else {
- IconOrPlaceholder = createVNode("div", {
- "style": [iconStyle, `width: ${iconSize}px; height: ${iconSize}px;`].join(" ")
- }, null);
- }
- }
- return createVNode("div", mergeProps({
- "class": kls,
- "style": cellStyle
- }, extraCellProps, {
- "role": "cell"
- }), [IconOrPlaceholder, Cell2]);
- };
- CellRenderer.inheritAttrs = false;
- var Cell = CellRenderer;
- // node_modules/element-plus/es/components/table-v2/src/header-row.mjs
- var tableV2HeaderRowProps = buildProps({
- class: String,
- columns,
- columnsStyles: {
- type: definePropType(Object),
- required: true
- },
- headerIndex: Number,
- style: { type: definePropType(Object) }
- });
- // node_modules/element-plus/es/components/table-v2/src/components/header-row.mjs
- var TableV2HeaderRow = defineComponent({
- name: "ElTableV2HeaderRow",
- props: tableV2HeaderRowProps,
- setup(props2, {
- slots
- }) {
- return () => {
- const {
- columns: columns2,
- columnsStyles,
- headerIndex,
- style
- } = props2;
- let Cells = columns2.map((column2, columnIndex) => {
- return slots.cell({
- columns: columns2,
- column: column2,
- columnIndex,
- headerIndex,
- style: columnsStyles[column2.key]
- });
- });
- if (slots.header) {
- Cells = slots.header({
- cells: Cells.map((node) => {
- if (isArray(node) && node.length === 1) {
- return node[0];
- }
- return node;
- }),
- columns: columns2,
- headerIndex
- });
- }
- return createVNode("div", {
- "class": props2.class,
- "style": style,
- "role": "row"
- }, [Cells]);
- };
- }
- });
- var HeaderRow = TableV2HeaderRow;
- // node_modules/element-plus/es/components/table-v2/src/renderers/header.mjs
- function _isSlot7(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var HeaderRenderer = ({
- columns: columns2,
- columnsStyles,
- headerIndex,
- style,
- headerClass,
- headerProps,
- ns
- }, {
- slots
- }) => {
- const param = {
- columns: columns2,
- headerIndex
- };
- const kls = [ns.e("header-row"), tryCall(headerClass, param, ""), {
- [ns.is("customized")]: Boolean(slots.header)
- }];
- const extraProps = {
- ...tryCall(headerProps, param),
- columnsStyles,
- class: kls,
- columns: columns2,
- headerIndex,
- style
- };
- return createVNode(HeaderRow, extraProps, _isSlot7(slots) ? slots : {
- default: () => [slots]
- });
- };
- var Header3 = HeaderRenderer;
- // node_modules/element-plus/es/components/table-v2/src/components/header-cell.mjs
- var HeaderCell = (props2, {
- slots
- }) => renderSlot(slots, "default", props2, () => {
- var _a2, _b;
- return [createVNode("div", {
- "class": props2.class,
- "title": (_a2 = props2.column) == null ? void 0 : _a2.title
- }, [(_b = props2.column) == null ? void 0 : _b.title])];
- });
- HeaderCell.displayName = "ElTableV2HeaderCell";
- HeaderCell.inheritAttrs = false;
- var HeaderCell$1 = HeaderCell;
- // node_modules/element-plus/es/components/table-v2/src/components/sort-icon.mjs
- var SortIcon = (props2) => {
- const {
- sortOrder
- } = props2;
- return createVNode(ElIcon, {
- "size": 14,
- "class": props2.class
- }, {
- default: () => [sortOrder === SortOrder.ASC ? createVNode(sort_up_default, null, null) : createVNode(sort_down_default, null, null)]
- });
- };
- var SortIcon$1 = SortIcon;
- // node_modules/element-plus/es/components/table-v2/src/renderers/header-cell.mjs
- var HeaderCellRenderer = (props2, {
- slots
- }) => {
- const {
- column: column2,
- ns,
- style,
- onColumnSorted
- } = props2;
- const cellStyle = enforceUnit(style);
- if (column2.placeholderSign === placeholderSign) {
- return createVNode("div", {
- "class": ns.em("header-row-cell", "placeholder"),
- "style": cellStyle
- }, null);
- }
- const {
- headerCellRenderer,
- headerClass,
- sortable
- } = column2;
- const cellProps = {
- ...props2,
- class: ns.e("header-cell-text")
- };
- const columnCellRenderer = componentToSlot(headerCellRenderer);
- const Cell2 = columnCellRenderer ? columnCellRenderer(cellProps) : renderSlot(slots, "default", cellProps, () => [createVNode(HeaderCell$1, cellProps, null)]);
- const {
- sortBy: sortBy2,
- sortState,
- headerCellProps
- } = props2;
- let sorting, sortOrder;
- if (sortState) {
- const order = sortState[column2.key];
- sorting = Boolean(oppositeOrderMap[order]);
- sortOrder = sorting ? order : SortOrder.ASC;
- } else {
- sorting = column2.key === sortBy2.key;
- sortOrder = sorting ? sortBy2.order : SortOrder.ASC;
- }
- 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")];
- const cellWrapperProps = {
- ...tryCall(headerCellProps, props2),
- onClick: column2.sortable ? onColumnSorted : void 0,
- class: cellKls,
- style: cellStyle,
- ["data-key"]: column2.key
- };
- return createVNode("div", mergeProps(cellWrapperProps, {
- "role": "columnheader"
- }), [Cell2, sortable && createVNode(SortIcon$1, {
- "class": [ns.e("sort-icon"), sorting && ns.is("sorting")],
- "sortOrder": sortOrder
- }, null)]);
- };
- var HeaderCell2 = HeaderCellRenderer;
- // node_modules/element-plus/es/components/table-v2/src/renderers/footer.mjs
- var Footer2 = (props2, {
- slots
- }) => {
- var _a2;
- return createVNode("div", {
- "class": props2.class,
- "style": props2.style
- }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
- };
- Footer2.displayName = "ElTableV2Footer";
- var Footer$1 = Footer2;
- // node_modules/element-plus/es/components/table-v2/src/renderers/empty.mjs
- var Footer3 = (props2, {
- slots
- }) => {
- const defaultSlot = renderSlot(slots, "default", {}, () => [createVNode(ElEmpty, null, null)]);
- return createVNode("div", {
- "class": props2.class,
- "style": props2.style
- }, [defaultSlot]);
- };
- Footer3.displayName = "ElTableV2Empty";
- var Empty2 = Footer3;
- // node_modules/element-plus/es/components/table-v2/src/renderers/overlay.mjs
- var Overlay2 = (props2, {
- slots
- }) => {
- var _a2;
- return createVNode("div", {
- "class": props2.class,
- "style": props2.style
- }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
- };
- Overlay2.displayName = "ElTableV2Overlay";
- var Overlay$1 = Overlay2;
- // node_modules/element-plus/es/components/table-v2/src/table-v2.mjs
- function _isSlot8(s2) {
- return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
- }
- var COMPONENT_NAME23 = "ElTableV2";
- var TableV2 = defineComponent({
- name: COMPONENT_NAME23,
- props: tableV2Props,
- setup(props2, {
- slots,
- expose
- }) {
- const ns = useNamespace("table-v2");
- const {
- columnsStyles,
- fixedColumnsOnLeft,
- fixedColumnsOnRight,
- mainColumns,
- mainTableHeight,
- fixedTableHeight,
- leftTableWidth,
- rightTableWidth,
- data,
- depthMap,
- expandedRowKeys,
- hasFixedColumns,
- mainTableRef,
- leftTableRef,
- rightTableRef,
- isDynamic,
- isResetting,
- isScrolling,
- bodyWidth,
- emptyStyle,
- rootStyle,
- footerHeight,
- showEmpty,
- scrollTo,
- scrollToLeft,
- scrollToTop,
- scrollToRow,
- getRowHeight,
- onColumnSorted,
- onRowHeightChange,
- onRowHovered,
- onRowExpanded,
- onRowsRendered,
- onScroll,
- onVerticalScroll
- } = useTable(props2);
- expose({
- scrollTo,
- scrollToLeft,
- scrollToTop,
- scrollToRow
- });
- provide(TableV2InjectionKey, {
- ns,
- isResetting,
- isScrolling
- });
- return () => {
- const {
- cache: cache2,
- cellProps,
- estimatedRowHeight,
- expandColumnKey: expandColumnKey2,
- fixedData,
- headerHeight,
- headerClass,
- headerProps,
- headerCellProps,
- sortBy: sortBy2,
- sortState,
- rowHeight,
- rowClass,
- rowEventHandlers,
- rowKey: rowKey2,
- rowProps: rowProps2,
- scrollbarAlwaysOn,
- indentSize,
- iconSize,
- useIsScrolling,
- vScrollbarSize,
- width
- } = props2;
- const _data = unref(data);
- const mainTableProps = {
- cache: cache2,
- class: ns.e("main"),
- columns: unref(mainColumns),
- data: _data,
- fixedData,
- estimatedRowHeight,
- bodyWidth: unref(bodyWidth),
- headerHeight,
- headerWidth: unref(bodyWidth),
- height: unref(mainTableHeight),
- mainTableRef,
- rowKey: rowKey2,
- rowHeight,
- scrollbarAlwaysOn,
- scrollbarStartGap: 2,
- scrollbarEndGap: vScrollbarSize,
- useIsScrolling,
- width,
- getRowHeight,
- onRowsRendered,
- onScroll
- };
- const leftColumnsWidth = unref(leftTableWidth);
- const _fixedTableHeight = unref(fixedTableHeight);
- const leftTableProps = {
- cache: cache2,
- class: ns.e("left"),
- columns: unref(fixedColumnsOnLeft),
- data: _data,
- fixedData,
- estimatedRowHeight,
- leftTableRef,
- rowHeight,
- bodyWidth: leftColumnsWidth,
- headerWidth: leftColumnsWidth,
- headerHeight,
- height: _fixedTableHeight,
- rowKey: rowKey2,
- scrollbarAlwaysOn,
- scrollbarStartGap: 2,
- scrollbarEndGap: vScrollbarSize,
- useIsScrolling,
- width: leftColumnsWidth,
- getRowHeight,
- onScroll: onVerticalScroll
- };
- const rightColumnsWidth = unref(rightTableWidth);
- const rightTableProps = {
- cache: cache2,
- class: ns.e("right"),
- columns: unref(fixedColumnsOnRight),
- data: _data,
- fixedData,
- estimatedRowHeight,
- rightTableRef,
- rowHeight,
- bodyWidth: rightColumnsWidth,
- headerWidth: rightColumnsWidth,
- headerHeight,
- height: _fixedTableHeight,
- rowKey: rowKey2,
- scrollbarAlwaysOn,
- scrollbarStartGap: 2,
- scrollbarEndGap: vScrollbarSize,
- width: rightColumnsWidth,
- style: `--${unref(ns.namespace)}-table-scrollbar-size: ${vScrollbarSize}px`,
- useIsScrolling,
- getRowHeight,
- onScroll: onVerticalScroll
- };
- const _columnsStyles = unref(columnsStyles);
- const tableRowProps = {
- ns,
- depthMap: unref(depthMap),
- columnsStyles: _columnsStyles,
- expandColumnKey: expandColumnKey2,
- expandedRowKeys: unref(expandedRowKeys),
- estimatedRowHeight,
- hasFixedColumns: unref(hasFixedColumns),
- rowProps: rowProps2,
- rowClass,
- rowKey: rowKey2,
- rowEventHandlers,
- onRowHovered,
- onRowExpanded,
- onRowHeightChange
- };
- const tableCellProps = {
- cellProps,
- expandColumnKey: expandColumnKey2,
- indentSize,
- iconSize,
- rowKey: rowKey2,
- expandedRowKeys: unref(expandedRowKeys),
- ns
- };
- const tableHeaderProps = {
- ns,
- headerClass,
- headerProps,
- columnsStyles: _columnsStyles
- };
- const tableHeaderCellProps = {
- ns,
- sortBy: sortBy2,
- sortState,
- headerCellProps,
- onColumnSorted
- };
- const tableSlots = {
- row: (props22) => createVNode(Row3, mergeProps(props22, tableRowProps), {
- row: slots.row,
- cell: (props3) => {
- let _slot;
- return slots.cell ? createVNode(Cell, mergeProps(props3, tableCellProps, {
- "style": _columnsStyles[props3.column.key]
- }), _isSlot8(_slot = slots.cell(props3)) ? _slot : {
- default: () => [_slot]
- }) : createVNode(Cell, mergeProps(props3, tableCellProps, {
- "style": _columnsStyles[props3.column.key]
- }), null);
- }
- }),
- header: (props22) => createVNode(Header3, mergeProps(props22, tableHeaderProps), {
- header: slots.header,
- cell: (props3) => {
- let _slot2;
- return slots["header-cell"] ? createVNode(HeaderCell2, mergeProps(props3, tableHeaderCellProps, {
- "style": _columnsStyles[props3.column.key]
- }), _isSlot8(_slot2 = slots["header-cell"](props3)) ? _slot2 : {
- default: () => [_slot2]
- }) : createVNode(HeaderCell2, mergeProps(props3, tableHeaderCellProps, {
- "style": _columnsStyles[props3.column.key]
- }), null);
- }
- })
- };
- const rootKls = [props2.class, ns.b(), ns.e("root"), {
- [ns.is("dynamic")]: unref(isDynamic)
- }];
- const footerProps = {
- class: ns.e("footer"),
- style: unref(footerHeight)
- };
- return createVNode("div", {
- "class": rootKls,
- "style": unref(rootStyle)
- }, [createVNode(MainTable$1, mainTableProps, _isSlot8(tableSlots) ? tableSlots : {
- default: () => [tableSlots]
- }), createVNode(LeftTable$1, leftTableProps, _isSlot8(tableSlots) ? tableSlots : {
- default: () => [tableSlots]
- }), createVNode(RightTable, rightTableProps, _isSlot8(tableSlots) ? tableSlots : {
- default: () => [tableSlots]
- }), slots.footer && createVNode(Footer$1, footerProps, {
- default: slots.footer
- }), unref(showEmpty) && createVNode(Empty2, {
- "class": ns.e("empty"),
- "style": unref(emptyStyle)
- }, {
- default: slots.empty
- }), slots.overlay && createVNode(Overlay$1, {
- "class": ns.e("overlay")
- }, {
- default: slots.overlay
- })]);
- };
- }
- });
- var TableV2$1 = TableV2;
- // node_modules/element-plus/es/components/table-v2/src/auto-resizer.mjs
- var autoResizerProps = buildProps({
- disableWidth: Boolean,
- disableHeight: Boolean,
- onResize: {
- type: definePropType(Function)
- }
- });
- // node_modules/element-plus/es/components/table-v2/src/composables/use-auto-resize.mjs
- var useAutoResize = (props2) => {
- const sizer = ref();
- const width$ = ref(0);
- const height$ = ref(0);
- let resizerStopper;
- onMounted(() => {
- resizerStopper = useResizeObserver(sizer, ([entry]) => {
- const { width, height } = entry.contentRect;
- const { paddingLeft, paddingRight, paddingTop, paddingBottom } = getComputedStyle(entry.target);
- const left = Number.parseInt(paddingLeft) || 0;
- const right = Number.parseInt(paddingRight) || 0;
- const top = Number.parseInt(paddingTop) || 0;
- const bottom = Number.parseInt(paddingBottom) || 0;
- width$.value = width - left - right;
- height$.value = height - top - bottom;
- }).stop;
- });
- onBeforeUnmount(() => {
- resizerStopper == null ? void 0 : resizerStopper();
- });
- watch([width$, height$], ([width, height]) => {
- var _a2;
- (_a2 = props2.onResize) == null ? void 0 : _a2.call(props2, {
- width,
- height
- });
- });
- return {
- sizer,
- width: width$,
- height: height$
- };
- };
- // node_modules/element-plus/es/components/table-v2/src/components/auto-resizer.mjs
- var AutoResizer = defineComponent({
- name: "ElAutoResizer",
- props: autoResizerProps,
- setup(props2, {
- slots
- }) {
- const ns = useNamespace("auto-resizer");
- const {
- height,
- width,
- sizer
- } = useAutoResize(props2);
- const style = {
- width: "100%",
- height: "100%"
- };
- return () => {
- var _a2;
- return createVNode("div", {
- "ref": sizer,
- "class": ns.b(),
- "style": style
- }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
- height: height.value,
- width: width.value
- })]);
- };
- }
- });
- var AutoResizer$1 = AutoResizer;
- // node_modules/element-plus/es/components/table-v2/index.mjs
- var ElTableV2 = withInstall(TableV2$1);
- var ElAutoResizer = withInstall(AutoResizer$1);
- // node_modules/element-plus/es/components/tabs/src/constants.mjs
- var tabsRootContextKey = Symbol("tabsRootContextKey");
- // node_modules/element-plus/es/components/tabs/src/tab-bar.mjs
- var tabBarProps = buildProps({
- tabs: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- tabRefs: {
- type: definePropType(Object),
- default: () => mutable({})
- }
- });
- // node_modules/element-plus/es/components/tabs/src/tab-bar2.mjs
- var COMPONENT_NAME24 = "ElTabBar";
- var __default__98 = defineComponent({
- name: COMPONENT_NAME24
- });
- var _sfc_main423 = defineComponent({
- ...__default__98,
- props: tabBarProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const rootTabs = inject(tabsRootContextKey);
- if (!rootTabs)
- throwError(COMPONENT_NAME24, "<el-tabs><el-tab-bar /></el-tabs>");
- const ns = useNamespace("tabs");
- const barRef = ref();
- const barStyle = ref();
- const getBarStyle = () => {
- let offset3 = 0;
- let tabSize = 0;
- const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
- const sizeDir = sizeName === "width" ? "x" : "y";
- const position = sizeDir === "x" ? "left" : "top";
- props2.tabs.every((tab) => {
- if (isUndefined2(tab.paneName))
- return false;
- const $el = props2.tabRefs[tab.paneName];
- if (!$el)
- return false;
- if (!tab.active) {
- return true;
- }
- offset3 = $el[`offset${capitalize3(position)}`];
- tabSize = $el[`client${capitalize3(sizeName)}`];
- const tabStyles = window.getComputedStyle($el);
- if (sizeName === "width") {
- tabSize -= Number.parseFloat(tabStyles.paddingLeft) + Number.parseFloat(tabStyles.paddingRight);
- offset3 += Number.parseFloat(tabStyles.paddingLeft);
- }
- return false;
- });
- return {
- [sizeName]: `${tabSize}px`,
- transform: `translate${capitalize3(sizeDir)}(${offset3}px)`
- };
- };
- const update2 = () => barStyle.value = getBarStyle();
- const tabObservers = [];
- const observerTabs = () => {
- tabObservers.forEach((observer) => observer.stop());
- tabObservers.length = 0;
- Object.values(props2.tabRefs).forEach((tab) => {
- tabObservers.push(useResizeObserver(tab, update2));
- });
- };
- watch(() => props2.tabs, async () => {
- await nextTick();
- update2();
- observerTabs();
- }, { immediate: true });
- const barObserver = useResizeObserver(barRef, () => update2());
- onBeforeUnmount(() => {
- tabObservers.forEach((observer) => observer.stop());
- tabObservers.length = 0;
- barObserver.stop();
- });
- expose({
- ref: barRef,
- update: update2
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "barRef",
- ref: barRef,
- class: normalizeClass([unref(ns).e("active-bar"), unref(ns).is(unref(rootTabs).props.tabPosition)]),
- style: normalizeStyle(barStyle.value)
- }, null, 6);
- };
- }
- });
- var TabBar = _export_sfc(_sfc_main423, [["__file", "tab-bar.vue"]]);
- // node_modules/element-plus/es/components/tabs/src/tab-nav.mjs
- var tabNavProps = buildProps({
- panes: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- currentName: {
- type: [String, Number],
- default: ""
- },
- editable: Boolean,
- type: {
- type: String,
- values: ["card", "border-card", ""],
- default: ""
- },
- stretch: Boolean
- });
- var tabNavEmits = {
- tabClick: (tab, tabName, ev) => ev instanceof Event,
- tabRemove: (tab, ev) => ev instanceof Event
- };
- var COMPONENT_NAME25 = "ElTabNav";
- var TabNav = defineComponent({
- name: COMPONENT_NAME25,
- props: tabNavProps,
- emits: tabNavEmits,
- setup(props2, {
- expose,
- emit
- }) {
- const rootTabs = inject(tabsRootContextKey);
- if (!rootTabs)
- throwError(COMPONENT_NAME25, `<el-tabs><tab-nav /></el-tabs>`);
- const ns = useNamespace("tabs");
- const visibility = useDocumentVisibility();
- const focused = useWindowFocus();
- const navScroll$ = ref();
- const nav$ = ref();
- const el$ = ref();
- const tabRefsMap = ref({});
- const tabBarRef = ref();
- const scrollable = ref(false);
- const navOffset = ref(0);
- const isFocus = ref(false);
- const focusable = ref(true);
- const tracker = shallowRef();
- const sizeName = computed(() => ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height");
- const navStyle = computed(() => {
- const dir = sizeName.value === "width" ? "X" : "Y";
- return {
- transform: `translate${dir}(-${navOffset.value}px)`
- };
- });
- const scrollPrev = () => {
- if (!navScroll$.value)
- return;
- const containerSize = navScroll$.value[`offset${capitalize3(sizeName.value)}`];
- const currentOffset = navOffset.value;
- if (!currentOffset)
- return;
- const newOffset = currentOffset > containerSize ? currentOffset - containerSize : 0;
- navOffset.value = newOffset;
- };
- const scrollNext = () => {
- if (!navScroll$.value || !nav$.value)
- return;
- const navSize = nav$.value[`offset${capitalize3(sizeName.value)}`];
- const containerSize = navScroll$.value[`offset${capitalize3(sizeName.value)}`];
- const currentOffset = navOffset.value;
- if (navSize - currentOffset <= containerSize)
- return;
- const newOffset = navSize - currentOffset > containerSize * 2 ? currentOffset + containerSize : navSize - containerSize;
- navOffset.value = newOffset;
- };
- const scrollToActiveTab = async () => {
- const nav = nav$.value;
- if (!scrollable.value || !el$.value || !navScroll$.value || !nav)
- return;
- await nextTick();
- const activeTab = tabRefsMap.value[props2.currentName];
- if (!activeTab)
- return;
- const navScroll = navScroll$.value;
- const isHorizontal2 = ["top", "bottom"].includes(rootTabs.props.tabPosition);
- const activeTabBounding = activeTab.getBoundingClientRect();
- const navScrollBounding = navScroll.getBoundingClientRect();
- const maxOffset = isHorizontal2 ? nav.offsetWidth - navScrollBounding.width : nav.offsetHeight - navScrollBounding.height;
- const currentOffset = navOffset.value;
- let newOffset = currentOffset;
- if (isHorizontal2) {
- if (activeTabBounding.left < navScrollBounding.left) {
- newOffset = currentOffset - (navScrollBounding.left - activeTabBounding.left);
- }
- if (activeTabBounding.right > navScrollBounding.right) {
- newOffset = currentOffset + activeTabBounding.right - navScrollBounding.right;
- }
- } else {
- if (activeTabBounding.top < navScrollBounding.top) {
- newOffset = currentOffset - (navScrollBounding.top - activeTabBounding.top);
- }
- if (activeTabBounding.bottom > navScrollBounding.bottom) {
- newOffset = currentOffset + (activeTabBounding.bottom - navScrollBounding.bottom);
- }
- }
- newOffset = Math.max(newOffset, 0);
- navOffset.value = Math.min(newOffset, maxOffset);
- };
- const update2 = () => {
- var _a2;
- if (!nav$.value || !navScroll$.value)
- return;
- props2.stretch && ((_a2 = tabBarRef.value) == null ? void 0 : _a2.update());
- const navSize = nav$.value[`offset${capitalize3(sizeName.value)}`];
- const containerSize = navScroll$.value[`offset${capitalize3(sizeName.value)}`];
- const currentOffset = navOffset.value;
- if (containerSize < navSize) {
- scrollable.value = scrollable.value || {};
- scrollable.value.prev = currentOffset;
- scrollable.value.next = currentOffset + containerSize < navSize;
- if (navSize - currentOffset < containerSize) {
- navOffset.value = navSize - containerSize;
- }
- } else {
- scrollable.value = false;
- if (currentOffset > 0) {
- navOffset.value = 0;
- }
- }
- };
- const changeTab = (event) => {
- let step2 = 0;
- switch (event.code) {
- case EVENT_CODE.left:
- case EVENT_CODE.up:
- step2 = -1;
- break;
- case EVENT_CODE.right:
- case EVENT_CODE.down:
- step2 = 1;
- break;
- default:
- return;
- }
- const tabList = Array.from(event.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));
- const currentIndex = tabList.indexOf(event.target);
- let nextIndex = currentIndex + step2;
- if (nextIndex < 0) {
- nextIndex = tabList.length - 1;
- } else if (nextIndex >= tabList.length) {
- nextIndex = 0;
- }
- tabList[nextIndex].focus({
- preventScroll: true
- });
- tabList[nextIndex].click();
- setFocus();
- };
- const setFocus = () => {
- if (focusable.value)
- isFocus.value = true;
- };
- const removeFocus = () => isFocus.value = false;
- const setRefs = (el, key) => {
- tabRefsMap.value[key] = el;
- };
- const focusActiveTab = async () => {
- await nextTick();
- const activeTab = tabRefsMap.value[props2.currentName];
- activeTab == null ? void 0 : activeTab.focus({
- preventScroll: true
- });
- };
- watch(visibility, (visibility2) => {
- if (visibility2 === "hidden") {
- focusable.value = false;
- } else if (visibility2 === "visible") {
- setTimeout(() => focusable.value = true, 50);
- }
- });
- watch(focused, (focused2) => {
- if (focused2) {
- setTimeout(() => focusable.value = true, 50);
- } else {
- focusable.value = false;
- }
- });
- useResizeObserver(el$, update2);
- onMounted(() => setTimeout(() => scrollToActiveTab(), 0));
- onUpdated(() => update2());
- expose({
- scrollToActiveTab,
- removeFocus,
- focusActiveTab,
- tabListRef: nav$,
- tabBarRef,
- scheduleRender: () => triggerRef(tracker)
- });
- return () => {
- const scrollBtn = scrollable.value ? [createVNode("span", {
- "class": [ns.e("nav-prev"), ns.is("disabled", !scrollable.value.prev)],
- "onClick": scrollPrev
- }, [createVNode(ElIcon, null, {
- default: () => [createVNode(arrow_left_default, null, null)]
- })]), createVNode("span", {
- "class": [ns.e("nav-next"), ns.is("disabled", !scrollable.value.next)],
- "onClick": scrollNext
- }, [createVNode(ElIcon, null, {
- default: () => [createVNode(arrow_right_default, null, null)]
- })])] : null;
- const tabs = props2.panes.map((pane, index) => {
- var _a2, _b, _c, _d;
- const uid2 = pane.uid;
- const disabled = pane.props.disabled;
- const tabName = (_b = (_a2 = pane.props.name) != null ? _a2 : pane.index) != null ? _b : `${index}`;
- const closable = !disabled && (pane.isClosable || props2.editable);
- pane.index = `${index}`;
- const btnClose = closable ? createVNode(ElIcon, {
- "class": "is-icon-close",
- "onClick": (ev) => emit("tabRemove", pane, ev)
- }, {
- default: () => [createVNode(close_default, null, null)]
- }) : null;
- const tabLabelContent = ((_d = (_c = pane.slots).label) == null ? void 0 : _d.call(_c)) || pane.props.label;
- const tabindex = !disabled && pane.active ? 0 : -1;
- return createVNode("div", {
- "ref": (el) => setRefs(el, tabName),
- "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)],
- "id": `tab-${tabName}`,
- "key": `tab-${uid2}`,
- "aria-controls": `pane-${tabName}`,
- "role": "tab",
- "aria-selected": pane.active,
- "tabindex": tabindex,
- "onFocus": () => setFocus(),
- "onBlur": () => removeFocus(),
- "onClick": (ev) => {
- removeFocus();
- emit("tabClick", pane, tabName, ev);
- },
- "onKeydown": (ev) => {
- if (closable && (ev.code === EVENT_CODE.delete || ev.code === EVENT_CODE.backspace)) {
- emit("tabRemove", pane, ev);
- }
- }
- }, [...[tabLabelContent, btnClose]]);
- });
- tracker.value;
- return createVNode("div", {
- "ref": el$,
- "class": [ns.e("nav-wrap"), ns.is("scrollable", !!scrollable.value), ns.is(rootTabs.props.tabPosition)]
- }, [scrollBtn, createVNode("div", {
- "class": ns.e("nav-scroll"),
- "ref": navScroll$
- }, [props2.panes.length > 0 ? createVNode("div", {
- "class": [ns.e("nav"), ns.is(rootTabs.props.tabPosition), ns.is("stretch", props2.stretch && ["top", "bottom"].includes(rootTabs.props.tabPosition))],
- "ref": nav$,
- "style": navStyle.value,
- "role": "tablist",
- "onKeydown": changeTab
- }, [...[!props2.type ? createVNode(TabBar, {
- "ref": tabBarRef,
- "tabs": [...props2.panes],
- "tabRefs": tabRefsMap.value
- }, null) : null, tabs]]) : null])]);
- };
- }
- });
- // node_modules/element-plus/es/components/tabs/src/tabs.mjs
- var tabsProps = buildProps({
- type: {
- type: String,
- values: ["card", "border-card", ""],
- default: ""
- },
- closable: Boolean,
- addable: Boolean,
- modelValue: {
- type: [String, Number]
- },
- editable: Boolean,
- tabPosition: {
- type: String,
- values: ["top", "right", "bottom", "left"],
- default: "top"
- },
- beforeLeave: {
- type: definePropType(Function),
- default: () => true
- },
- stretch: Boolean
- });
- var isPaneName = (value) => isString(value) || isNumber2(value);
- var tabsEmits = {
- [UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
- tabClick: (pane, ev) => ev instanceof Event,
- tabChange: (name) => isPaneName(name),
- edit: (paneName, action) => ["remove", "add"].includes(action),
- tabRemove: (name) => isPaneName(name),
- tabAdd: () => true
- };
- var Tabs = defineComponent({
- name: "ElTabs",
- props: tabsProps,
- emits: tabsEmits,
- setup(props2, {
- emit,
- slots,
- expose
- }) {
- var _a2;
- const ns = useNamespace("tabs");
- const isVertical = computed(() => ["left", "right"].includes(props2.tabPosition));
- const {
- children: panes,
- addChild: registerPane,
- removeChild: unregisterPane,
- ChildrenSorter: PanesSorter
- } = useOrderedChildren(getCurrentInstance(), "ElTabPane");
- const nav$ = ref();
- const currentName = ref((_a2 = props2.modelValue) != null ? _a2 : "0");
- const setCurrentName = async (value, trigger = false) => {
- var _a22, _b, _c, _d;
- if (currentName.value === value || isUndefined2(value))
- return;
- try {
- let canLeave;
- if (props2.beforeLeave) {
- const result2 = props2.beforeLeave(value, currentName.value);
- canLeave = result2 instanceof Promise ? await result2 : result2;
- } else {
- canLeave = true;
- }
- if (canLeave !== false) {
- const isFocusInsidePane = (_a22 = panes.value.find((item) => item.paneName === currentName.value)) == null ? void 0 : _a22.isFocusInsidePane();
- currentName.value = value;
- if (trigger) {
- emit(UPDATE_MODEL_EVENT, value);
- emit("tabChange", value);
- }
- (_c = (_b = nav$.value) == null ? void 0 : _b.removeFocus) == null ? void 0 : _c.call(_b);
- if (isFocusInsidePane) {
- (_d = nav$.value) == null ? void 0 : _d.focusActiveTab();
- }
- }
- } catch (e) {
- }
- };
- const handleTabClick = (tab, tabName, event) => {
- if (tab.props.disabled)
- return;
- emit("tabClick", tab, event);
- setCurrentName(tabName, true);
- };
- const handleTabRemove = (pane, ev) => {
- if (pane.props.disabled || isUndefined2(pane.props.name))
- return;
- ev.stopPropagation();
- emit("edit", pane.props.name, "remove");
- emit("tabRemove", pane.props.name);
- };
- const handleTabAdd = () => {
- emit("edit", void 0, "add");
- emit("tabAdd");
- };
- const swapChildren = (vnode) => {
- const actualFirstChild = vnode.el.firstChild;
- const firstChild = ["bottom", "right"].includes(props2.tabPosition) ? vnode.children[0].el : vnode.children[1].el;
- if (actualFirstChild !== firstChild) {
- actualFirstChild.before(firstChild);
- }
- };
- watch(() => props2.modelValue, (modelValue) => setCurrentName(modelValue));
- watch(currentName, async () => {
- var _a22;
- await nextTick();
- (_a22 = nav$.value) == null ? void 0 : _a22.scrollToActiveTab();
- });
- provide(tabsRootContextKey, {
- props: props2,
- currentName,
- registerPane,
- unregisterPane,
- nav$
- });
- expose({
- currentName,
- get tabNavRef() {
- return omit_default(nav$.value, ["scheduleRender"]);
- }
- });
- return () => {
- const addSlot = slots["add-icon"];
- const newButton = props2.editable || props2.addable ? createVNode("div", {
- "class": [ns.e("new-tab"), isVertical.value && ns.e("new-tab-vertical")],
- "tabindex": "0",
- "onClick": handleTabAdd,
- "onKeydown": (ev) => {
- if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter].includes(ev.code))
- handleTabAdd();
- }
- }, [addSlot ? renderSlot(slots, "add-icon") : createVNode(ElIcon, {
- "class": ns.is("icon-plus")
- }, {
- default: () => [createVNode(plus_default, null, null)]
- })]) : null;
- const tabNav = () => createVNode(TabNav, {
- "ref": nav$,
- "currentName": currentName.value,
- "editable": props2.editable,
- "type": props2.type,
- "panes": panes.value,
- "stretch": props2.stretch,
- "onTabClick": handleTabClick,
- "onTabRemove": handleTabRemove
- }, null);
- const header = createVNode("div", {
- "class": [ns.e("header"), isVertical.value && ns.e("header-vertical"), ns.is(props2.tabPosition)]
- }, [createVNode(PanesSorter, null, {
- default: tabNav,
- $stable: true
- }), newButton]);
- const panels = createVNode("div", {
- "class": ns.e("content")
- }, [renderSlot(slots, "default")]);
- return createVNode("div", {
- "class": [ns.b(), ns.m(props2.tabPosition), {
- [ns.m("card")]: props2.type === "card",
- [ns.m("border-card")]: props2.type === "border-card"
- }],
- "onVnodeMounted": swapChildren,
- "onVnodeUpdated": swapChildren
- }, [panels, header]);
- };
- }
- });
- var Tabs$1 = Tabs;
- // node_modules/element-plus/es/components/tabs/src/tab-pane.mjs
- var tabPaneProps = buildProps({
- label: {
- type: String,
- default: ""
- },
- name: {
- type: [String, Number]
- },
- closable: Boolean,
- disabled: Boolean,
- lazy: Boolean
- });
- // node_modules/element-plus/es/components/tabs/src/tab-pane2.mjs
- var COMPONENT_NAME26 = "ElTabPane";
- var __default__99 = defineComponent({
- name: COMPONENT_NAME26
- });
- var _sfc_main424 = defineComponent({
- ...__default__99,
- props: tabPaneProps,
- setup(__props) {
- const props2 = __props;
- const instance = getCurrentInstance();
- const slots = useSlots();
- const tabsRoot = inject(tabsRootContextKey);
- if (!tabsRoot)
- throwError(COMPONENT_NAME26, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
- const ns = useNamespace("tab-pane");
- const paneRef = ref();
- const index = ref();
- const isClosable = computed(() => props2.closable || tabsRoot.props.closable);
- const active = computedEager(() => {
- var _a2;
- return tabsRoot.currentName.value === ((_a2 = props2.name) != null ? _a2 : index.value);
- });
- const loaded = ref(active.value);
- const paneName = computed(() => {
- var _a2;
- return (_a2 = props2.name) != null ? _a2 : index.value;
- });
- const shouldBeRender = computedEager(() => !props2.lazy || loaded.value || active.value);
- const isFocusInsidePane = () => {
- var _a2;
- return (_a2 = paneRef.value) == null ? void 0 : _a2.contains(document.activeElement);
- };
- watch(active, (val) => {
- if (val)
- loaded.value = true;
- });
- const pane = reactive({
- uid: instance.uid,
- getVnode: () => instance.vnode,
- slots,
- props: props2,
- paneName,
- active,
- index,
- isClosable,
- isFocusInsidePane
- });
- tabsRoot.registerPane(pane);
- onBeforeUnmount(() => {
- tabsRoot.unregisterPane(pane);
- });
- onBeforeUpdate(() => {
- var _a2;
- if (slots.label)
- (_a2 = tabsRoot.nav$.value) == null ? void 0 : _a2.scheduleRender();
- });
- return (_ctx, _cache) => {
- return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
- key: 0,
- id: `pane-${unref(paneName)}`,
- ref_key: "paneRef",
- ref: paneRef,
- class: normalizeClass(unref(ns).b()),
- role: "tabpanel",
- "aria-hidden": !unref(active),
- "aria-labelledby": `tab-${unref(paneName)}`
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 10, ["id", "aria-hidden", "aria-labelledby"])), [
- [vShow, unref(active)]
- ]) : createCommentVNode("v-if", true);
- };
- }
- });
- var TabPane = _export_sfc(_sfc_main424, [["__file", "tab-pane.vue"]]);
- // node_modules/element-plus/es/components/tabs/index.mjs
- var ElTabs = withInstall(Tabs$1, {
- TabPane
- });
- var ElTabPane = withNoopInstall(TabPane);
- // node_modules/element-plus/es/components/text/src/text2.mjs
- var textProps = buildProps({
- type: {
- type: String,
- values: ["primary", "success", "info", "warning", "danger", ""],
- default: ""
- },
- size: {
- type: String,
- values: componentSizes,
- default: ""
- },
- truncated: Boolean,
- lineClamp: {
- type: [String, Number]
- },
- tag: {
- type: String,
- default: "span"
- }
- });
- // node_modules/element-plus/es/components/text/src/text.mjs
- var __default__100 = defineComponent({
- name: "ElText"
- });
- var _sfc_main425 = defineComponent({
- ...__default__100,
- props: textProps,
- setup(__props) {
- const props2 = __props;
- const textRef = ref();
- const textSize = useFormSize();
- const ns = useNamespace("text");
- const textKls = computed(() => [
- ns.b(),
- ns.m(props2.type),
- ns.m(textSize.value),
- ns.is("truncated", props2.truncated),
- ns.is("line-clamp", !isUndefined2(props2.lineClamp))
- ]);
- const bindTitle = () => {
- var _a2, _b, _c, _d, _e, _f, _g;
- const inheritTitle = useAttrs().title;
- if (inheritTitle)
- return;
- let shouldAddTitle = false;
- const text = ((_a2 = textRef.value) == null ? void 0 : _a2.textContent) || "";
- if (props2.truncated) {
- const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
- const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
- if (width && scrollWidth && scrollWidth > width) {
- shouldAddTitle = true;
- }
- } else if (!isUndefined2(props2.lineClamp)) {
- const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
- const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
- if (height && scrollHeight && scrollHeight > height) {
- shouldAddTitle = true;
- }
- }
- if (shouldAddTitle) {
- (_f = textRef.value) == null ? void 0 : _f.setAttribute("title", text);
- } else {
- (_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
- }
- };
- onMounted(bindTitle);
- onUpdated(bindTitle);
- return (_ctx, _cache) => {
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
- ref_key: "textRef",
- ref: textRef,
- class: normalizeClass(unref(textKls)),
- style: normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["class", "style"]);
- };
- }
- });
- var Text2 = _export_sfc(_sfc_main425, [["__file", "text.vue"]]);
- // node_modules/element-plus/es/components/text/index.mjs
- var ElText = withInstall(Text2);
- // node_modules/element-plus/es/components/time-select/src/time-select2.mjs
- var import_dayjs18 = __toESM(require_dayjs_min(), 1);
- var import_customParseFormat3 = __toESM(require_customParseFormat(), 1);
- // node_modules/element-plus/es/components/time-select/src/time-select.mjs
- var timeSelectProps = buildProps({
- format: {
- type: String,
- default: "HH:mm"
- },
- modelValue: {
- type: definePropType(String)
- },
- disabled: Boolean,
- editable: {
- type: Boolean,
- default: true
- },
- effect: {
- type: definePropType(String),
- default: "light"
- },
- clearable: {
- type: Boolean,
- default: true
- },
- size: useSizeProp,
- placeholder: String,
- start: {
- type: String,
- default: "09:00"
- },
- end: {
- type: String,
- default: "18:00"
- },
- step: {
- type: String,
- default: "00:30"
- },
- minTime: {
- type: definePropType(String)
- },
- maxTime: {
- type: definePropType(String)
- },
- includeEndTime: Boolean,
- name: String,
- prefixIcon: {
- type: definePropType([String, Object]),
- default: () => clock_default
- },
- clearIcon: {
- type: definePropType([String, Object]),
- default: () => circle_close_default
- },
- ...useEmptyValuesProps
- });
- // node_modules/element-plus/es/components/time-select/src/utils.mjs
- var parseTime = (time) => {
- const values2 = (time || "").split(":");
- if (values2.length >= 2) {
- let hours = Number.parseInt(values2[0], 10);
- const minutes = Number.parseInt(values2[1], 10);
- const timeUpper = time.toUpperCase();
- if (timeUpper.includes("AM") && hours === 12) {
- hours = 0;
- } else if (timeUpper.includes("PM") && hours !== 12) {
- hours += 12;
- }
- return {
- hours,
- minutes
- };
- }
- return null;
- };
- var compareTime = (time1, time2) => {
- const value1 = parseTime(time1);
- if (!value1)
- return -1;
- const value2 = parseTime(time2);
- if (!value2)
- return -1;
- const minutes1 = value1.minutes + value1.hours * 60;
- const minutes2 = value2.minutes + value2.hours * 60;
- if (minutes1 === minutes2) {
- return 0;
- }
- return minutes1 > minutes2 ? 1 : -1;
- };
- var padTime = (time) => {
- return `${time}`.padStart(2, "0");
- };
- var formatTime2 = (time) => {
- return `${padTime(time.hours)}:${padTime(time.minutes)}`;
- };
- var nextTime = (time, step2) => {
- const timeValue = parseTime(time);
- if (!timeValue)
- return "";
- const stepValue = parseTime(step2);
- if (!stepValue)
- return "";
- const next = {
- hours: timeValue.hours,
- minutes: timeValue.minutes
- };
- next.minutes += stepValue.minutes;
- next.hours += stepValue.hours;
- next.hours += Math.floor(next.minutes / 60);
- next.minutes = next.minutes % 60;
- return formatTime2(next);
- };
- // node_modules/element-plus/es/components/time-select/src/time-select2.mjs
- var __default__101 = defineComponent({
- name: "ElTimeSelect"
- });
- var _sfc_main426 = defineComponent({
- ...__default__101,
- props: timeSelectProps,
- emits: [CHANGE_EVENT, "blur", "focus", "clear", UPDATE_MODEL_EVENT],
- setup(__props, { expose }) {
- const props2 = __props;
- import_dayjs18.default.extend(import_customParseFormat3.default);
- const { Option: ElOption2 } = ElSelect;
- const nsInput = useNamespace("input");
- const select = ref();
- const _disabled = useFormDisabled();
- const { lang } = useLocale();
- const value = computed(() => props2.modelValue);
- const start = computed(() => {
- const time = parseTime(props2.start);
- return time ? formatTime2(time) : null;
- });
- const end = computed(() => {
- const time = parseTime(props2.end);
- return time ? formatTime2(time) : null;
- });
- const step2 = computed(() => {
- const time = parseTime(props2.step);
- return time ? formatTime2(time) : null;
- });
- const minTime = computed(() => {
- const time = parseTime(props2.minTime || "");
- return time ? formatTime2(time) : null;
- });
- const maxTime = computed(() => {
- const time = parseTime(props2.maxTime || "");
- return time ? formatTime2(time) : null;
- });
- const items = computed(() => {
- var _a2;
- const result2 = [];
- const push = (formattedValue, rawValue) => {
- result2.push({
- value: formattedValue,
- disabled: compareTime(rawValue, minTime.value || "-1:-1") <= 0 || compareTime(rawValue, maxTime.value || "100:100") >= 0
- });
- };
- if (props2.start && props2.end && props2.step) {
- let current = start.value;
- let currentTime;
- while (current && end.value && compareTime(current, end.value) <= 0) {
- currentTime = (0, import_dayjs18.default)(current, "HH:mm").locale(lang.value).format(props2.format);
- push(currentTime, current);
- current = nextTime(current, step2.value);
- }
- if (props2.includeEndTime && end.value && ((_a2 = result2[result2.length - 1]) == null ? void 0 : _a2.value) !== end.value) {
- const formattedValue = (0, import_dayjs18.default)(end.value, "HH:mm").locale(lang.value).format(props2.format);
- push(formattedValue, end.value);
- }
- }
- return result2;
- });
- const blur = () => {
- var _a2, _b;
- (_b = (_a2 = select.value) == null ? void 0 : _a2.blur) == null ? void 0 : _b.call(_a2);
- };
- const focus = () => {
- var _a2, _b;
- (_b = (_a2 = select.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
- };
- expose({
- blur,
- focus
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(unref(ElSelect), {
- ref_key: "select",
- ref: select,
- "model-value": unref(value),
- disabled: unref(_disabled),
- clearable: _ctx.clearable,
- "clear-icon": _ctx.clearIcon,
- size: _ctx.size,
- effect: _ctx.effect,
- placeholder: _ctx.placeholder,
- "default-first-option": "",
- filterable: _ctx.editable,
- "empty-values": _ctx.emptyValues,
- "value-on-clear": _ctx.valueOnClear,
- "onUpdate:modelValue": (event) => _ctx.$emit(unref(UPDATE_MODEL_EVENT), event),
- onChange: (event) => _ctx.$emit(unref(CHANGE_EVENT), event),
- onBlur: (event) => _ctx.$emit("blur", event),
- onFocus: (event) => _ctx.$emit("focus", event),
- onClear: () => _ctx.$emit("clear")
- }, {
- prefix: withCtx(() => [
- _ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(nsInput).e("prefix-icon"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ]),
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item) => {
- return openBlock(), createBlock(unref(ElOption2), {
- key: item.value,
- label: item.value,
- value: item.value,
- disabled: item.disabled
- }, null, 8, ["label", "value", "disabled"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["model-value", "disabled", "clearable", "clear-icon", "size", "effect", "placeholder", "filterable", "empty-values", "value-on-clear", "onUpdate:modelValue", "onChange", "onBlur", "onFocus", "onClear"]);
- };
- }
- });
- var TimeSelect = _export_sfc(_sfc_main426, [["__file", "time-select.vue"]]);
- // node_modules/element-plus/es/components/time-select/index.mjs
- var ElTimeSelect = withInstall(TimeSelect);
- // node_modules/element-plus/es/components/timeline/src/tokens.mjs
- var TIMELINE_INJECTION_KEY = "timeline";
- // node_modules/element-plus/es/components/timeline/src/timeline.mjs
- var Timeline = defineComponent({
- name: "ElTimeline",
- setup(_2, { slots }) {
- const ns = useNamespace("timeline");
- provide(TIMELINE_INJECTION_KEY, slots);
- return () => {
- return h("ul", { class: [ns.b()] }, [renderSlot(slots, "default")]);
- };
- }
- });
- // node_modules/element-plus/es/components/timeline/src/timeline-item.mjs
- var timelineItemProps = buildProps({
- timestamp: {
- type: String,
- default: ""
- },
- hideTimestamp: Boolean,
- center: Boolean,
- placement: {
- type: String,
- values: ["top", "bottom"],
- default: "bottom"
- },
- type: {
- type: String,
- values: ["primary", "success", "warning", "danger", "info"],
- default: ""
- },
- color: {
- type: String,
- default: ""
- },
- size: {
- type: String,
- values: ["normal", "large"],
- default: "normal"
- },
- icon: {
- type: iconPropType
- },
- hollow: Boolean
- });
- // node_modules/element-plus/es/components/timeline/src/timeline-item2.mjs
- var __default__102 = defineComponent({
- name: "ElTimelineItem"
- });
- var _sfc_main427 = defineComponent({
- ...__default__102,
- props: timelineItemProps,
- setup(__props) {
- const props2 = __props;
- const ns = useNamespace("timeline-item");
- const defaultNodeKls = computed(() => [
- ns.e("node"),
- ns.em("node", props2.size || ""),
- ns.em("node", props2.type || ""),
- ns.is("hollow", props2.hollow)
- ]);
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("li", {
- class: normalizeClass([unref(ns).b(), { [unref(ns).e("center")]: _ctx.center }])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("tail"))
- }, null, 2),
- !_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(defaultNodeKls)),
- style: normalizeStyle({
- backgroundColor: _ctx.color
- })
- }, [
- _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("icon"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 6)) : createCommentVNode("v-if", true),
- _ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("dot"))
- }, [
- renderSlot(_ctx.$slots, "dot")
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("wrapper"))
- }, [
- !_ctx.hideTimestamp && _ctx.placement === "top" ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass([unref(ns).e("timestamp"), unref(ns).is("top")])
- }, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("content"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2),
- !_ctx.hideTimestamp && _ctx.placement === "bottom" ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass([unref(ns).e("timestamp"), unref(ns).is("bottom")])
- }, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true)
- ], 2)
- ], 2);
- };
- }
- });
- var TimelineItem = _export_sfc(_sfc_main427, [["__file", "timeline-item.vue"]]);
- // node_modules/element-plus/es/components/timeline/index.mjs
- var ElTimeline = withInstall(Timeline, {
- TimelineItem
- });
- var ElTimelineItem = withNoopInstall(TimelineItem);
- // node_modules/element-plus/es/components/tooltip-v2/src/common.mjs
- var tooltipV2CommonProps = buildProps({
- nowrap: Boolean
- });
- var TooltipV2Sides = ((TooltipV2Sides2) => {
- TooltipV2Sides2["top"] = "top";
- TooltipV2Sides2["bottom"] = "bottom";
- TooltipV2Sides2["left"] = "left";
- TooltipV2Sides2["right"] = "right";
- return TooltipV2Sides2;
- })(TooltipV2Sides || {});
- var tooltipV2Sides = Object.values(TooltipV2Sides);
- // node_modules/element-plus/es/components/tooltip-v2/src/arrow.mjs
- var tooltipV2ArrowProps = buildProps({
- width: {
- type: Number,
- default: 10
- },
- height: {
- type: Number,
- default: 10
- },
- style: {
- type: definePropType(Object),
- default: null
- }
- });
- var tooltipV2ArrowSpecialProps = buildProps({
- side: {
- type: definePropType(String),
- values: tooltipV2Sides,
- required: true
- }
- });
- // node_modules/element-plus/es/components/tooltip-v2/src/content2.mjs
- var tooltipV2Strategies = ["absolute", "fixed"];
- var tooltipV2Placements = [
- "top-start",
- "top-end",
- "top",
- "bottom-start",
- "bottom-end",
- "bottom",
- "left-start",
- "left-end",
- "left",
- "right-start",
- "right-end",
- "right"
- ];
- var tooltipV2ContentProps = buildProps({
- arrowPadding: {
- type: definePropType(Number),
- default: 5
- },
- effect: {
- type: definePropType(String),
- default: "light"
- },
- contentClass: String,
- placement: {
- type: definePropType(String),
- values: tooltipV2Placements,
- default: "bottom"
- },
- reference: {
- type: definePropType(Object),
- default: null
- },
- offset: {
- type: Number,
- default: 8
- },
- strategy: {
- type: definePropType(String),
- values: tooltipV2Strategies,
- default: "absolute"
- },
- showArrow: Boolean,
- ...useAriaProps(["ariaLabel"])
- });
- // node_modules/element-plus/es/components/tooltip-v2/src/root.mjs
- var tooltipV2RootProps = buildProps({
- delayDuration: {
- type: Number,
- default: 300
- },
- defaultOpen: Boolean,
- open: {
- type: Boolean,
- default: void 0
- },
- onOpenChange: {
- type: definePropType(Function)
- },
- "onUpdate:open": {
- type: definePropType(Function)
- }
- });
- // node_modules/element-plus/es/components/tooltip-v2/src/trigger.mjs
- var EventHandler = {
- type: definePropType(Function)
- };
- var tooltipV2TriggerProps = buildProps({
- onBlur: EventHandler,
- onClick: EventHandler,
- onFocus: EventHandler,
- onMouseDown: EventHandler,
- onMouseEnter: EventHandler,
- onMouseLeave: EventHandler
- });
- // node_modules/element-plus/es/components/tooltip-v2/src/tooltip.mjs
- var tooltipV2Props = buildProps({
- ...tooltipV2RootProps,
- ...tooltipV2ArrowProps,
- ...tooltipV2TriggerProps,
- ...tooltipV2ContentProps,
- alwaysOn: Boolean,
- fullTransition: Boolean,
- transitionProps: {
- type: definePropType(Object),
- default: null
- },
- teleported: Boolean,
- to: {
- type: definePropType([String, Object]),
- default: "body"
- }
- });
- // node_modules/element-plus/es/components/tooltip-v2/src/constants.mjs
- var tooltipV2RootKey = Symbol("tooltipV2");
- var tooltipV2ContentKey = Symbol("tooltipV2Content");
- var TOOLTIP_V2_OPEN = "tooltip_v2.open";
- // node_modules/element-plus/es/components/tooltip-v2/src/root2.mjs
- var __default__103 = defineComponent({
- name: "ElTooltipV2Root"
- });
- var _sfc_main428 = defineComponent({
- ...__default__103,
- props: tooltipV2RootProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const _open = ref(props2.defaultOpen);
- const triggerRef2 = ref(null);
- const open = computed({
- get: () => isPropAbsent(props2.open) ? _open.value : props2.open,
- set: (open2) => {
- var _a2;
- _open.value = open2;
- (_a2 = props2["onUpdate:open"]) == null ? void 0 : _a2.call(props2, open2);
- }
- });
- const isOpenDelayed = computed(() => isNumber2(props2.delayDuration) && props2.delayDuration > 0);
- const { start: onDelayedOpen, stop: clearTimer } = useTimeoutFn(() => {
- open.value = true;
- }, computed(() => props2.delayDuration), {
- immediate: false
- });
- const ns = useNamespace("tooltip-v2");
- const contentId = useId();
- const onNormalOpen = () => {
- clearTimer();
- open.value = true;
- };
- const onDelayOpen = () => {
- unref(isOpenDelayed) ? onDelayedOpen() : onNormalOpen();
- };
- const onOpen = onNormalOpen;
- const onClose = () => {
- clearTimer();
- open.value = false;
- };
- const onChange = (open2) => {
- var _a2;
- if (open2) {
- document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN));
- onOpen();
- }
- (_a2 = props2.onOpenChange) == null ? void 0 : _a2.call(props2, open2);
- };
- watch(open, onChange);
- onMounted(() => {
- document.addEventListener(TOOLTIP_V2_OPEN, onClose);
- });
- onBeforeUnmount(() => {
- clearTimer();
- document.removeEventListener(TOOLTIP_V2_OPEN, onClose);
- });
- provide(tooltipV2RootKey, {
- contentId,
- triggerRef: triggerRef2,
- ns,
- onClose,
- onDelayOpen,
- onOpen
- });
- expose({
- onOpen,
- onClose
- });
- return (_ctx, _cache) => {
- return renderSlot(_ctx.$slots, "default", { open: unref(open) });
- };
- }
- });
- var TooltipV2Root = _export_sfc(_sfc_main428, [["__file", "root.vue"]]);
- // node_modules/element-plus/es/components/tooltip-v2/src/arrow2.mjs
- var __default__104 = defineComponent({
- name: "ElTooltipV2Arrow"
- });
- var _sfc_main429 = defineComponent({
- ...__default__104,
- props: {
- ...tooltipV2ArrowProps,
- ...tooltipV2ArrowSpecialProps
- },
- setup(__props) {
- const props2 = __props;
- const { ns } = inject(tooltipV2RootKey);
- const { arrowRef } = inject(tooltipV2ContentKey);
- const arrowStyle = computed(() => {
- const { style, width, height } = props2;
- const namespace = ns.namespace.value;
- return {
- [`--${namespace}-tooltip-v2-arrow-width`]: `${width}px`,
- [`--${namespace}-tooltip-v2-arrow-height`]: `${height}px`,
- [`--${namespace}-tooltip-v2-arrow-border-width`]: `${width / 2}px`,
- [`--${namespace}-tooltip-v2-arrow-cover-width`]: width / 2 - 1,
- ...style || {}
- };
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", {
- ref_key: "arrowRef",
- ref: arrowRef,
- style: normalizeStyle(unref(arrowStyle)),
- class: normalizeClass(unref(ns).e("arrow"))
- }, null, 6);
- };
- }
- });
- var TooltipV2Arrow = _export_sfc(_sfc_main429, [["__file", "arrow.vue"]]);
- // node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
- var sides = ["top", "right", "bottom", "left"];
- var alignments = ["start", "end"];
- var placements = sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
- var min3 = Math.min;
- var max3 = Math.max;
- var round2 = Math.round;
- var floor3 = Math.floor;
- var createCoords = (v2) => ({
- x: v2,
- y: v2
- });
- var oppositeSideMap = {
- left: "right",
- right: "left",
- bottom: "top",
- top: "bottom"
- };
- var oppositeAlignmentMap = {
- start: "end",
- end: "start"
- };
- function clamp3(start, value, end) {
- return max3(start, min3(value, end));
- }
- function evaluate(value, param) {
- return typeof value === "function" ? value(param) : value;
- }
- function getSide(placement) {
- return placement.split("-")[0];
- }
- function getAlignment(placement) {
- return placement.split("-")[1];
- }
- function getOppositeAxis(axis) {
- return axis === "x" ? "y" : "x";
- }
- function getAxisLength(axis) {
- return axis === "y" ? "height" : "width";
- }
- var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
- function getSideAxis(placement) {
- return yAxisSides.has(getSide(placement)) ? "y" : "x";
- }
- function getAlignmentAxis(placement) {
- return getOppositeAxis(getSideAxis(placement));
- }
- function getAlignmentSides(placement, rects, rtl) {
- if (rtl === void 0) {
- rtl = false;
- }
- const alignment = getAlignment(placement);
- const alignmentAxis = getAlignmentAxis(placement);
- const length = getAxisLength(alignmentAxis);
- let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
- if (rects.reference[length] > rects.floating[length]) {
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
- }
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
- }
- function getExpandedPlacements(placement) {
- const oppositePlacement = getOppositePlacement(placement);
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
- }
- function getOppositeAlignmentPlacement(placement) {
- return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
- }
- var lrPlacement = ["left", "right"];
- var rlPlacement = ["right", "left"];
- var tbPlacement = ["top", "bottom"];
- var btPlacement = ["bottom", "top"];
- function getSideList(side, isStart, rtl) {
- switch (side) {
- case "top":
- case "bottom":
- if (rtl) return isStart ? rlPlacement : lrPlacement;
- return isStart ? lrPlacement : rlPlacement;
- case "left":
- case "right":
- return isStart ? tbPlacement : btPlacement;
- default:
- return [];
- }
- }
- function getOppositeAxisPlacements(placement, flipAlignment, direction2, rtl) {
- const alignment = getAlignment(placement);
- let list = getSideList(getSide(placement), direction2 === "start", rtl);
- if (alignment) {
- list = list.map((side) => side + "-" + alignment);
- if (flipAlignment) {
- list = list.concat(list.map(getOppositeAlignmentPlacement));
- }
- }
- return list;
- }
- function getOppositePlacement(placement) {
- return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
- }
- function expandPaddingObject(padding) {
- return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- ...padding
- };
- }
- function getPaddingObject(padding) {
- return typeof padding !== "number" ? expandPaddingObject(padding) : {
- top: padding,
- right: padding,
- bottom: padding,
- left: padding
- };
- }
- function rectToClientRect(rect) {
- const {
- x: x2,
- y,
- width,
- height
- } = rect;
- return {
- width,
- height,
- top: y,
- left: x2,
- right: x2 + width,
- bottom: y + height,
- x: x2,
- y
- };
- }
- // node_modules/@floating-ui/core/dist/floating-ui.core.mjs
- function computeCoordsFromPlacement(_ref, placement, rtl) {
- let {
- reference,
- floating
- } = _ref;
- const sideAxis = getSideAxis(placement);
- const alignmentAxis = getAlignmentAxis(placement);
- const alignLength = getAxisLength(alignmentAxis);
- const side = getSide(placement);
- const isVertical = sideAxis === "y";
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
- let coords;
- switch (side) {
- case "top":
- coords = {
- x: commonX,
- y: reference.y - floating.height
- };
- break;
- case "bottom":
- coords = {
- x: commonX,
- y: reference.y + reference.height
- };
- break;
- case "right":
- coords = {
- x: reference.x + reference.width,
- y: commonY
- };
- break;
- case "left":
- coords = {
- x: reference.x - floating.width,
- y: commonY
- };
- break;
- default:
- coords = {
- x: reference.x,
- y: reference.y
- };
- }
- switch (getAlignment(placement)) {
- case "start":
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
- break;
- case "end":
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
- break;
- }
- return coords;
- }
- var computePosition = async (reference, floating, config) => {
- const {
- placement = "bottom",
- strategy = "absolute",
- middleware = [],
- platform: platform2
- } = config;
- const validMiddleware = middleware.filter(Boolean);
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
- let rects = await platform2.getElementRects({
- reference,
- floating,
- strategy
- });
- let {
- x: x2,
- y
- } = computeCoordsFromPlacement(rects, placement, rtl);
- let statefulPlacement = placement;
- let middlewareData = {};
- let resetCount = 0;
- for (let i = 0; i < validMiddleware.length; i++) {
- const {
- name,
- fn: fn2
- } = validMiddleware[i];
- const {
- x: nextX,
- y: nextY,
- data,
- reset
- } = await fn2({
- x: x2,
- y,
- initialPlacement: placement,
- placement: statefulPlacement,
- strategy,
- middlewareData,
- rects,
- platform: platform2,
- elements: {
- reference,
- floating
- }
- });
- x2 = nextX != null ? nextX : x2;
- y = nextY != null ? nextY : y;
- middlewareData = {
- ...middlewareData,
- [name]: {
- ...middlewareData[name],
- ...data
- }
- };
- if (reset && resetCount <= 50) {
- resetCount++;
- if (typeof reset === "object") {
- if (reset.placement) {
- statefulPlacement = reset.placement;
- }
- if (reset.rects) {
- rects = reset.rects === true ? await platform2.getElementRects({
- reference,
- floating,
- strategy
- }) : reset.rects;
- }
- ({
- x: x2,
- y
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
- }
- i = -1;
- }
- }
- return {
- x: x2,
- y,
- placement: statefulPlacement,
- strategy,
- middlewareData
- };
- };
- async function detectOverflow(state, options) {
- var _await$platform$isEle;
- if (options === void 0) {
- options = {};
- }
- const {
- x: x2,
- y,
- platform: platform2,
- rects,
- elements,
- strategy
- } = state;
- const {
- boundary = "clippingAncestors",
- rootBoundary = "viewport",
- elementContext = "floating",
- altBoundary = false,
- padding = 0
- } = evaluate(options, state);
- const paddingObject = getPaddingObject(padding);
- const altContext = elementContext === "floating" ? "reference" : "floating";
- const element = elements[altBoundary ? altContext : elementContext];
- const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
- 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)),
- boundary,
- rootBoundary,
- strategy
- }));
- const rect = elementContext === "floating" ? {
- x: x2,
- y,
- width: rects.floating.width,
- height: rects.floating.height
- } : rects.reference;
- const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
- const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
- x: 1,
- y: 1
- } : {
- x: 1,
- y: 1
- };
- const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
- elements,
- rect,
- offsetParent,
- strategy
- }) : rect);
- return {
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
- };
- }
- var arrow = (options) => ({
- name: "arrow",
- options,
- async fn(state) {
- const {
- x: x2,
- y,
- placement,
- rects,
- platform: platform2,
- elements,
- middlewareData
- } = state;
- const {
- element,
- padding = 0
- } = evaluate(options, state) || {};
- if (element == null) {
- return {};
- }
- const paddingObject = getPaddingObject(padding);
- const coords = {
- x: x2,
- y
- };
- const axis = getAlignmentAxis(placement);
- const length = getAxisLength(axis);
- const arrowDimensions = await platform2.getDimensions(element);
- const isYAxis = axis === "y";
- const minProp = isYAxis ? "top" : "left";
- const maxProp = isYAxis ? "bottom" : "right";
- const clientProp = isYAxis ? "clientHeight" : "clientWidth";
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
- const startDiff = coords[axis] - rects.reference[axis];
- const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
- if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
- clientSize = elements.floating[clientProp] || rects.floating[length];
- }
- const centerToReference = endDiff / 2 - startDiff / 2;
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
- const minPadding = min3(paddingObject[minProp], largestPossiblePadding);
- const maxPadding = min3(paddingObject[maxProp], largestPossiblePadding);
- const min$1 = minPadding;
- const max4 = clientSize - arrowDimensions[length] - maxPadding;
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
- const offset3 = clamp3(min$1, center, max4);
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max4 : 0;
- return {
- [axis]: coords[axis] + alignmentOffset,
- data: {
- [axis]: offset3,
- centerOffset: center - offset3 - alignmentOffset,
- ...shouldAddOffset && {
- alignmentOffset
- }
- },
- reset: shouldAddOffset
- };
- }
- });
- var flip2 = function(options) {
- if (options === void 0) {
- options = {};
- }
- return {
- name: "flip",
- options,
- async fn(state) {
- var _middlewareData$arrow, _middlewareData$flip;
- const {
- placement,
- middlewareData,
- rects,
- initialPlacement,
- platform: platform2,
- elements
- } = state;
- const {
- mainAxis: checkMainAxis = true,
- crossAxis: checkCrossAxis = true,
- fallbackPlacements: specifiedFallbackPlacements,
- fallbackStrategy = "bestFit",
- fallbackAxisSideDirection = "none",
- flipAlignment = true,
- ...detectOverflowOptions
- } = evaluate(options, state);
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
- return {};
- }
- const side = getSide(placement);
- const initialSideAxis = getSideAxis(initialPlacement);
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
- }
- const placements2 = [initialPlacement, ...fallbackPlacements];
- const overflow = await detectOverflow(state, detectOverflowOptions);
- const overflows = [];
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
- if (checkMainAxis) {
- overflows.push(overflow[side]);
- }
- if (checkCrossAxis) {
- const sides2 = getAlignmentSides(placement, rects, rtl);
- overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
- }
- overflowsData = [...overflowsData, {
- placement,
- overflows
- }];
- if (!overflows.every((side2) => side2 <= 0)) {
- var _middlewareData$flip2, _overflowsData$filter;
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
- const nextPlacement = placements2[nextIndex];
- if (nextPlacement) {
- const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
- if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
- // overflows the main axis.
- overflowsData.every((d2) => getSideAxis(d2.placement) === initialSideAxis ? d2.overflows[0] > 0 : true)) {
- return {
- data: {
- index: nextIndex,
- overflows: overflowsData
- },
- reset: {
- placement: nextPlacement
- }
- };
- }
- }
- 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;
- if (!resetPlacement) {
- switch (fallbackStrategy) {
- case "bestFit": {
- var _overflowsData$filter2;
- const placement2 = (_overflowsData$filter2 = overflowsData.filter((d2) => {
- if (hasFallbackAxisSideDirection) {
- const currentSideAxis = getSideAxis(d2.placement);
- return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
- // reading directions favoring greater width.
- currentSideAxis === "y";
- }
- return true;
- }).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];
- if (placement2) {
- resetPlacement = placement2;
- }
- break;
- }
- case "initialPlacement":
- resetPlacement = initialPlacement;
- break;
- }
- }
- if (placement !== resetPlacement) {
- return {
- reset: {
- placement: resetPlacement
- }
- };
- }
- }
- return {};
- }
- };
- };
- var originSides = /* @__PURE__ */ new Set(["left", "top"]);
- async function convertValueToCoords(state, options) {
- const {
- placement,
- platform: platform2,
- elements
- } = state;
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
- const side = getSide(placement);
- const alignment = getAlignment(placement);
- const isVertical = getSideAxis(placement) === "y";
- const mainAxisMulti = originSides.has(side) ? -1 : 1;
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
- const rawValue = evaluate(options, state);
- let {
- mainAxis,
- crossAxis,
- alignmentAxis
- } = typeof rawValue === "number" ? {
- mainAxis: rawValue,
- crossAxis: 0,
- alignmentAxis: null
- } : {
- mainAxis: rawValue.mainAxis || 0,
- crossAxis: rawValue.crossAxis || 0,
- alignmentAxis: rawValue.alignmentAxis
- };
- if (alignment && typeof alignmentAxis === "number") {
- crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
- }
- return isVertical ? {
- x: crossAxis * crossAxisMulti,
- y: mainAxis * mainAxisMulti
- } : {
- x: mainAxis * mainAxisMulti,
- y: crossAxis * crossAxisMulti
- };
- }
- var offset = function(options) {
- if (options === void 0) {
- options = 0;
- }
- return {
- name: "offset",
- options,
- async fn(state) {
- var _middlewareData$offse, _middlewareData$arrow;
- const {
- x: x2,
- y,
- placement,
- middlewareData
- } = state;
- const diffCoords = await convertValueToCoords(state, options);
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
- return {};
- }
- return {
- x: x2 + diffCoords.x,
- y: y + diffCoords.y,
- data: {
- ...diffCoords,
- placement
- }
- };
- }
- };
- };
- var shift = function(options) {
- if (options === void 0) {
- options = {};
- }
- return {
- name: "shift",
- options,
- async fn(state) {
- const {
- x: x2,
- y,
- placement
- } = state;
- const {
- mainAxis: checkMainAxis = true,
- crossAxis: checkCrossAxis = false,
- limiter = {
- fn: (_ref) => {
- let {
- x: x3,
- y: y2
- } = _ref;
- return {
- x: x3,
- y: y2
- };
- }
- },
- ...detectOverflowOptions
- } = evaluate(options, state);
- const coords = {
- x: x2,
- y
- };
- const overflow = await detectOverflow(state, detectOverflowOptions);
- const crossAxis = getSideAxis(getSide(placement));
- const mainAxis = getOppositeAxis(crossAxis);
- let mainAxisCoord = coords[mainAxis];
- let crossAxisCoord = coords[crossAxis];
- if (checkMainAxis) {
- const minSide = mainAxis === "y" ? "top" : "left";
- const maxSide = mainAxis === "y" ? "bottom" : "right";
- const min4 = mainAxisCoord + overflow[minSide];
- const max4 = mainAxisCoord - overflow[maxSide];
- mainAxisCoord = clamp3(min4, mainAxisCoord, max4);
- }
- if (checkCrossAxis) {
- const minSide = crossAxis === "y" ? "top" : "left";
- const maxSide = crossAxis === "y" ? "bottom" : "right";
- const min4 = crossAxisCoord + overflow[minSide];
- const max4 = crossAxisCoord - overflow[maxSide];
- crossAxisCoord = clamp3(min4, crossAxisCoord, max4);
- }
- const limitedCoords = limiter.fn({
- ...state,
- [mainAxis]: mainAxisCoord,
- [crossAxis]: crossAxisCoord
- });
- return {
- ...limitedCoords,
- data: {
- x: limitedCoords.x - x2,
- y: limitedCoords.y - y,
- enabled: {
- [mainAxis]: checkMainAxis,
- [crossAxis]: checkCrossAxis
- }
- }
- };
- }
- };
- };
- // node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
- function hasWindow() {
- return typeof window !== "undefined";
- }
- function getNodeName(node) {
- if (isNode(node)) {
- return (node.nodeName || "").toLowerCase();
- }
- return "#document";
- }
- function getWindow(node) {
- var _node$ownerDocument;
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
- }
- function getDocumentElement(node) {
- var _ref;
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
- }
- function isNode(value) {
- if (!hasWindow()) {
- return false;
- }
- return value instanceof Node || value instanceof getWindow(value).Node;
- }
- function isElement3(value) {
- if (!hasWindow()) {
- return false;
- }
- return value instanceof Element || value instanceof getWindow(value).Element;
- }
- function isHTMLElement(value) {
- if (!hasWindow()) {
- return false;
- }
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
- }
- function isShadowRoot(value) {
- if (!hasWindow() || typeof ShadowRoot === "undefined") {
- return false;
- }
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
- }
- var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
- function isOverflowElement(element) {
- const {
- overflow,
- overflowX,
- overflowY,
- display
- } = getComputedStyle2(element);
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
- }
- var tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
- function isTableElement(element) {
- return tableElements.has(getNodeName(element));
- }
- var topLayerSelectors = [":popover-open", ":modal"];
- function isTopLayer(element) {
- return topLayerSelectors.some((selector) => {
- try {
- return element.matches(selector);
- } catch (_e) {
- return false;
- }
- });
- }
- var transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
- var willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
- var containValues = ["paint", "layout", "strict", "content"];
- function isContainingBlock(elementOrCss) {
- const webkit = isWebKit();
- const css = isElement3(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
- 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));
- }
- function getContainingBlock(element) {
- let currentNode = getParentNode(element);
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
- if (isContainingBlock(currentNode)) {
- return currentNode;
- } else if (isTopLayer(currentNode)) {
- return null;
- }
- currentNode = getParentNode(currentNode);
- }
- return null;
- }
- function isWebKit() {
- if (typeof CSS === "undefined" || !CSS.supports) return false;
- return CSS.supports("-webkit-backdrop-filter", "none");
- }
- var lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
- function isLastTraversableNode(node) {
- return lastTraversableNodeNames.has(getNodeName(node));
- }
- function getComputedStyle2(element) {
- return getWindow(element).getComputedStyle(element);
- }
- function getNodeScroll(element) {
- if (isElement3(element)) {
- return {
- scrollLeft: element.scrollLeft,
- scrollTop: element.scrollTop
- };
- }
- return {
- scrollLeft: element.scrollX,
- scrollTop: element.scrollY
- };
- }
- function getParentNode(node) {
- if (getNodeName(node) === "html") {
- return node;
- }
- const result2 = (
- // Step into the shadow DOM of the parent of a slotted node.
- node.assignedSlot || // DOM Element detected.
- node.parentNode || // ShadowRoot detected.
- isShadowRoot(node) && node.host || // Fallback.
- getDocumentElement(node)
- );
- return isShadowRoot(result2) ? result2.host : result2;
- }
- function getNearestOverflowAncestor(node) {
- const parentNode = getParentNode(node);
- if (isLastTraversableNode(parentNode)) {
- return node.ownerDocument ? node.ownerDocument.body : node.body;
- }
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
- return parentNode;
- }
- return getNearestOverflowAncestor(parentNode);
- }
- function getOverflowAncestors(node, list, traverseIframes) {
- var _node$ownerDocument2;
- if (list === void 0) {
- list = [];
- }
- if (traverseIframes === void 0) {
- traverseIframes = true;
- }
- const scrollableAncestor = getNearestOverflowAncestor(node);
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
- const win = getWindow(scrollableAncestor);
- if (isBody) {
- const frameElement = getFrameElement(win);
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
- }
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
- }
- function getFrameElement(win) {
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
- }
- // node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
- function getCssDimensions(element) {
- const css = getComputedStyle2(element);
- let width = parseFloat(css.width) || 0;
- let height = parseFloat(css.height) || 0;
- const hasOffset = isHTMLElement(element);
- const offsetWidth = hasOffset ? element.offsetWidth : width;
- const offsetHeight = hasOffset ? element.offsetHeight : height;
- const shouldFallback = round2(width) !== offsetWidth || round2(height) !== offsetHeight;
- if (shouldFallback) {
- width = offsetWidth;
- height = offsetHeight;
- }
- return {
- width,
- height,
- $: shouldFallback
- };
- }
- function unwrapElement(element) {
- return !isElement3(element) ? element.contextElement : element;
- }
- function getScale(element) {
- const domElement = unwrapElement(element);
- if (!isHTMLElement(domElement)) {
- return createCoords(1);
- }
- const rect = domElement.getBoundingClientRect();
- const {
- width,
- height,
- $
- } = getCssDimensions(domElement);
- let x2 = ($ ? round2(rect.width) : rect.width) / width;
- let y = ($ ? round2(rect.height) : rect.height) / height;
- if (!x2 || !Number.isFinite(x2)) {
- x2 = 1;
- }
- if (!y || !Number.isFinite(y)) {
- y = 1;
- }
- return {
- x: x2,
- y
- };
- }
- var noOffsets = createCoords(0);
- function getVisualOffsets(element) {
- const win = getWindow(element);
- if (!isWebKit() || !win.visualViewport) {
- return noOffsets;
- }
- return {
- x: win.visualViewport.offsetLeft,
- y: win.visualViewport.offsetTop
- };
- }
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
- if (isFixed === void 0) {
- isFixed = false;
- }
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
- return false;
- }
- return isFixed;
- }
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
- if (includeScale === void 0) {
- includeScale = false;
- }
- if (isFixedStrategy === void 0) {
- isFixedStrategy = false;
- }
- const clientRect = element.getBoundingClientRect();
- const domElement = unwrapElement(element);
- let scale = createCoords(1);
- if (includeScale) {
- if (offsetParent) {
- if (isElement3(offsetParent)) {
- scale = getScale(offsetParent);
- }
- } else {
- scale = getScale(element);
- }
- }
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
- let x2 = (clientRect.left + visualOffsets.x) / scale.x;
- let y = (clientRect.top + visualOffsets.y) / scale.y;
- let width = clientRect.width / scale.x;
- let height = clientRect.height / scale.y;
- if (domElement) {
- const win = getWindow(domElement);
- const offsetWin = offsetParent && isElement3(offsetParent) ? getWindow(offsetParent) : offsetParent;
- let currentWin = win;
- let currentIFrame = getFrameElement(currentWin);
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
- const iframeScale = getScale(currentIFrame);
- const iframeRect = currentIFrame.getBoundingClientRect();
- const css = getComputedStyle2(currentIFrame);
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
- x2 *= iframeScale.x;
- y *= iframeScale.y;
- width *= iframeScale.x;
- height *= iframeScale.y;
- x2 += left;
- y += top;
- currentWin = getWindow(currentIFrame);
- currentIFrame = getFrameElement(currentWin);
- }
- }
- return rectToClientRect({
- width,
- height,
- x: x2,
- y
- });
- }
- function getWindowScrollBarX(element, rect) {
- const leftScroll = getNodeScroll(element).scrollLeft;
- if (!rect) {
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
- }
- return rect.left + leftScroll;
- }
- function getHTMLOffset(documentElement, scroll) {
- const htmlRect = documentElement.getBoundingClientRect();
- const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
- const y = htmlRect.top + scroll.scrollTop;
- return {
- x: x2,
- y
- };
- }
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
- let {
- elements,
- rect,
- offsetParent,
- strategy
- } = _ref;
- const isFixed = strategy === "fixed";
- const documentElement = getDocumentElement(offsetParent);
- const topLayer = elements ? isTopLayer(elements.floating) : false;
- if (offsetParent === documentElement || topLayer && isFixed) {
- return rect;
- }
- let scroll = {
- scrollLeft: 0,
- scrollTop: 0
- };
- let scale = createCoords(1);
- const offsets = createCoords(0);
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
- scroll = getNodeScroll(offsetParent);
- }
- if (isHTMLElement(offsetParent)) {
- const offsetRect = getBoundingClientRect(offsetParent);
- scale = getScale(offsetParent);
- offsets.x = offsetRect.x + offsetParent.clientLeft;
- offsets.y = offsetRect.y + offsetParent.clientTop;
- }
- }
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
- return {
- width: rect.width * scale.x,
- height: rect.height * scale.y,
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
- };
- }
- function getClientRects(element) {
- return Array.from(element.getClientRects());
- }
- function getDocumentRect(element) {
- const html = getDocumentElement(element);
- const scroll = getNodeScroll(element);
- const body = element.ownerDocument.body;
- const width = max3(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
- const height = max3(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
- let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
- const y = -scroll.scrollTop;
- if (getComputedStyle2(body).direction === "rtl") {
- x2 += max3(html.clientWidth, body.clientWidth) - width;
- }
- return {
- width,
- height,
- x: x2,
- y
- };
- }
- var SCROLLBAR_MAX = 25;
- function getViewportRect(element, strategy) {
- const win = getWindow(element);
- const html = getDocumentElement(element);
- const visualViewport = win.visualViewport;
- let width = html.clientWidth;
- let height = html.clientHeight;
- let x2 = 0;
- let y = 0;
- if (visualViewport) {
- width = visualViewport.width;
- height = visualViewport.height;
- const visualViewportBased = isWebKit();
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
- x2 = visualViewport.offsetLeft;
- y = visualViewport.offsetTop;
- }
- }
- const windowScrollbarX = getWindowScrollBarX(html);
- if (windowScrollbarX <= 0) {
- const doc = html.ownerDocument;
- const body = doc.body;
- const bodyStyles = getComputedStyle(body);
- const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
- const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
- if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
- width -= clippingStableScrollbarWidth;
- }
- } else if (windowScrollbarX <= SCROLLBAR_MAX) {
- width += windowScrollbarX;
- }
- return {
- width,
- height,
- x: x2,
- y
- };
- }
- var absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
- function getInnerBoundingClientRect(element, strategy) {
- const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
- const top = clientRect.top + element.clientTop;
- const left = clientRect.left + element.clientLeft;
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
- const width = element.clientWidth * scale.x;
- const height = element.clientHeight * scale.y;
- const x2 = left * scale.x;
- const y = top * scale.y;
- return {
- width,
- height,
- x: x2,
- y
- };
- }
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
- let rect;
- if (clippingAncestor === "viewport") {
- rect = getViewportRect(element, strategy);
- } else if (clippingAncestor === "document") {
- rect = getDocumentRect(getDocumentElement(element));
- } else if (isElement3(clippingAncestor)) {
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
- } else {
- const visualOffsets = getVisualOffsets(element);
- rect = {
- x: clippingAncestor.x - visualOffsets.x,
- y: clippingAncestor.y - visualOffsets.y,
- width: clippingAncestor.width,
- height: clippingAncestor.height
- };
- }
- return rectToClientRect(rect);
- }
- function hasFixedPositionAncestor(element, stopNode) {
- const parentNode = getParentNode(element);
- if (parentNode === stopNode || !isElement3(parentNode) || isLastTraversableNode(parentNode)) {
- return false;
- }
- return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
- }
- function getClippingElementAncestors(element, cache2) {
- const cachedResult = cache2.get(element);
- if (cachedResult) {
- return cachedResult;
- }
- let result2 = getOverflowAncestors(element, [], false).filter((el) => isElement3(el) && getNodeName(el) !== "body");
- let currentContainingBlockComputedStyle = null;
- const elementIsFixed = getComputedStyle2(element).position === "fixed";
- let currentNode = elementIsFixed ? getParentNode(element) : element;
- while (isElement3(currentNode) && !isLastTraversableNode(currentNode)) {
- const computedStyle = getComputedStyle2(currentNode);
- const currentNodeIsContaining = isContainingBlock(currentNode);
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
- currentContainingBlockComputedStyle = null;
- }
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
- if (shouldDropCurrentNode) {
- result2 = result2.filter((ancestor) => ancestor !== currentNode);
- } else {
- currentContainingBlockComputedStyle = computedStyle;
- }
- currentNode = getParentNode(currentNode);
- }
- cache2.set(element, result2);
- return result2;
- }
- function getClippingRect(_ref) {
- let {
- element,
- boundary,
- rootBoundary,
- strategy
- } = _ref;
- const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
- const firstClippingAncestor = clippingAncestors[0];
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
- accRect.top = max3(rect.top, accRect.top);
- accRect.right = min3(rect.right, accRect.right);
- accRect.bottom = min3(rect.bottom, accRect.bottom);
- accRect.left = max3(rect.left, accRect.left);
- return accRect;
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
- return {
- width: clippingRect.right - clippingRect.left,
- height: clippingRect.bottom - clippingRect.top,
- x: clippingRect.left,
- y: clippingRect.top
- };
- }
- function getDimensions(element) {
- const {
- width,
- height
- } = getCssDimensions(element);
- return {
- width,
- height
- };
- }
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
- const documentElement = getDocumentElement(offsetParent);
- const isFixed = strategy === "fixed";
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
- let scroll = {
- scrollLeft: 0,
- scrollTop: 0
- };
- const offsets = createCoords(0);
- function setLeftRTLScrollbarOffset() {
- offsets.x = getWindowScrollBarX(documentElement);
- }
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
- scroll = getNodeScroll(offsetParent);
- }
- if (isOffsetParentAnElement) {
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
- offsets.x = offsetRect.x + offsetParent.clientLeft;
- offsets.y = offsetRect.y + offsetParent.clientTop;
- } else if (documentElement) {
- setLeftRTLScrollbarOffset();
- }
- }
- if (isFixed && !isOffsetParentAnElement && documentElement) {
- setLeftRTLScrollbarOffset();
- }
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
- const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
- const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
- return {
- x: x2,
- y,
- width: rect.width,
- height: rect.height
- };
- }
- function isStaticPositioned(element) {
- return getComputedStyle2(element).position === "static";
- }
- function getTrueOffsetParent(element, polyfill) {
- if (!isHTMLElement(element) || getComputedStyle2(element).position === "fixed") {
- return null;
- }
- if (polyfill) {
- return polyfill(element);
- }
- let rawOffsetParent = element.offsetParent;
- if (getDocumentElement(element) === rawOffsetParent) {
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
- }
- return rawOffsetParent;
- }
- function getOffsetParent(element, polyfill) {
- const win = getWindow(element);
- if (isTopLayer(element)) {
- return win;
- }
- if (!isHTMLElement(element)) {
- let svgOffsetParent = getParentNode(element);
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
- if (isElement3(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
- return svgOffsetParent;
- }
- svgOffsetParent = getParentNode(svgOffsetParent);
- }
- return win;
- }
- let offsetParent = getTrueOffsetParent(element, polyfill);
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
- }
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
- return win;
- }
- return offsetParent || getContainingBlock(element) || win;
- }
- var getElementRects = async function(data) {
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
- const getDimensionsFn = this.getDimensions;
- const floatingDimensions = await getDimensionsFn(data.floating);
- return {
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
- floating: {
- x: 0,
- y: 0,
- width: floatingDimensions.width,
- height: floatingDimensions.height
- }
- };
- };
- function isRTL2(element) {
- return getComputedStyle2(element).direction === "rtl";
- }
- var platform = {
- convertOffsetParentRelativeRectToViewportRelativeRect,
- getDocumentElement,
- getClippingRect,
- getOffsetParent,
- getElementRects,
- getClientRects,
- getDimensions,
- getScale,
- isElement: isElement3,
- isRTL: isRTL2
- };
- function rectsAreEqual(a2, b2) {
- return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
- }
- function observeMove(element, onMove) {
- let io = null;
- let timeoutId;
- const root2 = getDocumentElement(element);
- function cleanup() {
- var _io;
- clearTimeout(timeoutId);
- (_io = io) == null || _io.disconnect();
- io = null;
- }
- function refresh(skip, threshold) {
- if (skip === void 0) {
- skip = false;
- }
- if (threshold === void 0) {
- threshold = 1;
- }
- cleanup();
- const elementRectForRootMargin = element.getBoundingClientRect();
- const {
- left,
- top,
- width,
- height
- } = elementRectForRootMargin;
- if (!skip) {
- onMove();
- }
- if (!width || !height) {
- return;
- }
- const insetTop = floor3(top);
- const insetRight = floor3(root2.clientWidth - (left + width));
- const insetBottom = floor3(root2.clientHeight - (top + height));
- const insetLeft = floor3(left);
- const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
- const options = {
- rootMargin,
- threshold: max3(0, min3(1, threshold)) || 1
- };
- let isFirstUpdate = true;
- function handleObserve(entries) {
- const ratio = entries[0].intersectionRatio;
- if (ratio !== threshold) {
- if (!isFirstUpdate) {
- return refresh();
- }
- if (!ratio) {
- timeoutId = setTimeout(() => {
- refresh(false, 1e-7);
- }, 1e3);
- } else {
- refresh(false, ratio);
- }
- }
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
- refresh();
- }
- isFirstUpdate = false;
- }
- try {
- io = new IntersectionObserver(handleObserve, {
- ...options,
- // Handle <iframe>s
- root: root2.ownerDocument
- });
- } catch (_e) {
- io = new IntersectionObserver(handleObserve, options);
- }
- io.observe(element);
- }
- refresh(true);
- return cleanup;
- }
- function autoUpdate(reference, floating, update2, options) {
- if (options === void 0) {
- options = {};
- }
- const {
- ancestorScroll = true,
- ancestorResize = true,
- elementResize = typeof ResizeObserver === "function",
- layoutShift = typeof IntersectionObserver === "function",
- animationFrame = false
- } = options;
- const referenceEl = unwrapElement(reference);
- const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
- ancestors.forEach((ancestor) => {
- ancestorScroll && ancestor.addEventListener("scroll", update2, {
- passive: true
- });
- ancestorResize && ancestor.addEventListener("resize", update2);
- });
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
- let reobserveFrame = -1;
- let resizeObserver = null;
- if (elementResize) {
- resizeObserver = new ResizeObserver((_ref) => {
- let [firstEntry] = _ref;
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
- resizeObserver.unobserve(floating);
- cancelAnimationFrame(reobserveFrame);
- reobserveFrame = requestAnimationFrame(() => {
- var _resizeObserver;
- (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
- });
- }
- update2();
- });
- if (referenceEl && !animationFrame) {
- resizeObserver.observe(referenceEl);
- }
- resizeObserver.observe(floating);
- }
- let frameId;
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
- if (animationFrame) {
- frameLoop();
- }
- function frameLoop() {
- const nextRefRect = getBoundingClientRect(reference);
- if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
- update2();
- }
- prevRefRect = nextRefRect;
- frameId = requestAnimationFrame(frameLoop);
- }
- update2();
- return () => {
- var _resizeObserver2;
- ancestors.forEach((ancestor) => {
- ancestorScroll && ancestor.removeEventListener("scroll", update2);
- ancestorResize && ancestor.removeEventListener("resize", update2);
- });
- cleanupIo == null || cleanupIo();
- (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
- resizeObserver = null;
- if (animationFrame) {
- cancelAnimationFrame(frameId);
- }
- };
- }
- var detectOverflow2 = detectOverflow;
- var offset2 = offset;
- var shift2 = shift;
- var flip3 = flip2;
- var arrow2 = arrow;
- var computePosition2 = (reference, floating, options) => {
- const cache2 = /* @__PURE__ */ new Map();
- const mergedOptions = {
- platform,
- ...options
- };
- const platformWithCache = {
- ...mergedOptions.platform,
- _c: cache2
- };
- return computePosition(reference, floating, {
- ...mergedOptions,
- platform: platformWithCache
- });
- };
- // node_modules/element-plus/es/components/visual-hidden/src/visual-hidden.mjs
- var visualHiddenProps = buildProps({
- style: {
- type: definePropType([String, Object, Array]),
- default: () => ({})
- }
- });
- // node_modules/element-plus/es/components/visual-hidden/src/visual-hidden2.mjs
- var __default__105 = defineComponent({
- name: "ElVisuallyHidden"
- });
- var _sfc_main430 = defineComponent({
- ...__default__105,
- props: visualHiddenProps,
- setup(__props) {
- const props2 = __props;
- const computedStyle = computed(() => {
- return [
- props2.style,
- {
- position: "absolute",
- border: 0,
- width: 1,
- height: 1,
- padding: 0,
- margin: -1,
- overflow: "hidden",
- clip: "rect(0, 0, 0, 0)",
- whiteSpace: "nowrap",
- wordWrap: "normal"
- }
- ];
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, { style: unref(computedStyle) }), [
- renderSlot(_ctx.$slots, "default")
- ], 16);
- };
- }
- });
- var ElVisuallyHidden = _export_sfc(_sfc_main430, [["__file", "visual-hidden.vue"]]);
- // node_modules/element-plus/es/hooks/use-floating/index.mjs
- var useFloatingProps = buildProps({});
- var unrefReference = (elRef) => {
- if (!isClient)
- return;
- if (!elRef)
- return elRef;
- const unrefEl = unrefElement(elRef);
- if (unrefEl)
- return unrefEl;
- return isRef(elRef) ? unrefEl : elRef;
- };
- var getPositionDataWithUnit = (record, key) => {
- const value = record == null ? void 0 : record[key];
- return isNil_default(value) ? "" : `${value}px`;
- };
- var useFloating = ({
- middleware,
- placement,
- strategy
- }) => {
- const referenceRef = ref();
- const contentRef = ref();
- const x2 = ref();
- const y = ref();
- const middlewareData = ref({});
- const states = {
- x: x2,
- y,
- placement,
- strategy,
- middlewareData
- };
- const update2 = async () => {
- if (!isClient)
- return;
- const referenceEl = unrefReference(referenceRef);
- const contentEl = unrefElement(contentRef);
- if (!referenceEl || !contentEl)
- return;
- const data = await computePosition2(referenceEl, contentEl, {
- placement: unref(placement),
- strategy: unref(strategy),
- middleware: unref(middleware)
- });
- keysOf(states).forEach((key) => {
- states[key].value = data[key];
- });
- };
- onMounted(() => {
- watchEffect(() => {
- update2();
- });
- });
- return {
- ...states,
- update: update2,
- referenceRef,
- contentRef
- };
- };
- var arrowMiddleware = ({
- arrowRef,
- padding
- }) => {
- return {
- name: "arrow",
- options: {
- element: arrowRef,
- padding
- },
- fn(args) {
- const arrowEl = unref(arrowRef);
- if (!arrowEl)
- return {};
- return arrow2({
- element: arrowEl,
- padding
- }).fn(args);
- }
- };
- };
- // node_modules/element-plus/es/components/tooltip-v2/src/content.mjs
- var __default__106 = defineComponent({
- name: "ElTooltipV2Content"
- });
- var _sfc_main431 = defineComponent({
- ...__default__106,
- props: { ...tooltipV2ContentProps, ...tooltipV2CommonProps },
- setup(__props) {
- const props2 = __props;
- const { triggerRef: triggerRef2, contentId } = inject(tooltipV2RootKey);
- const placement = ref(props2.placement);
- const strategy = ref(props2.strategy);
- const arrowRef = ref(null);
- const { referenceRef, contentRef, middlewareData, x: x2, y, update: update2 } = useFloating({
- placement,
- strategy,
- middleware: computed(() => {
- const middleware = [offset2(props2.offset)];
- if (props2.showArrow) {
- middleware.push(arrowMiddleware({
- arrowRef
- }));
- }
- return middleware;
- })
- });
- const zIndex2 = useZIndex().nextZIndex();
- const ns = useNamespace("tooltip-v2");
- const side = computed(() => {
- return placement.value.split("-")[0];
- });
- const contentStyle = computed(() => {
- return {
- position: unref(strategy),
- top: `${unref(y) || 0}px`,
- left: `${unref(x2) || 0}px`,
- zIndex: zIndex2
- };
- });
- const arrowStyle = computed(() => {
- if (!props2.showArrow)
- return {};
- const { arrow: arrow3 } = unref(middlewareData);
- return {
- [`--${ns.namespace.value}-tooltip-v2-arrow-x`]: `${arrow3 == null ? void 0 : arrow3.x}px` || "",
- [`--${ns.namespace.value}-tooltip-v2-arrow-y`]: `${arrow3 == null ? void 0 : arrow3.y}px` || ""
- };
- });
- const contentClass = computed(() => [
- ns.e("content"),
- ns.is("dark", props2.effect === "dark"),
- ns.is(unref(strategy)),
- props2.contentClass
- ]);
- watch(arrowRef, () => update2());
- watch(() => props2.placement, (val) => placement.value = val);
- onMounted(() => {
- watch(() => props2.reference || triggerRef2.value, (el) => {
- referenceRef.value = el || void 0;
- }, {
- immediate: true
- });
- });
- provide(tooltipV2ContentKey, { arrowRef });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "contentRef",
- ref: contentRef,
- style: normalizeStyle(unref(contentStyle)),
- "data-tooltip-v2-root": ""
- }, [
- !_ctx.nowrap ? (openBlock(), createElementBlock("div", {
- key: 0,
- "data-side": unref(side),
- class: normalizeClass(unref(contentClass))
- }, [
- renderSlot(_ctx.$slots, "default", {
- contentStyle: unref(contentStyle),
- contentClass: unref(contentClass)
- }),
- createVNode(unref(ElVisuallyHidden), {
- id: unref(contentId),
- role: "tooltip"
- }, {
- default: withCtx(() => [
- _ctx.ariaLabel ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
- createTextVNode(toDisplayString(_ctx.ariaLabel), 1)
- ], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 })
- ]),
- _: 3
- }, 8, ["id"]),
- renderSlot(_ctx.$slots, "arrow", {
- style: normalizeStyle(unref(arrowStyle)),
- side: unref(side)
- })
- ], 10, ["data-side"])) : createCommentVNode("v-if", true)
- ], 4);
- };
- }
- });
- var TooltipV2Content = _export_sfc(_sfc_main431, [["__file", "content.vue"]]);
- // node_modules/element-plus/es/components/tooltip-v2/src/forward-ref.mjs
- var forwardRefProps = buildProps({
- setRef: {
- type: definePropType(Function),
- required: true
- },
- onlyChild: Boolean
- });
- var ForwardRef = defineComponent({
- props: forwardRefProps,
- setup(props2, {
- slots
- }) {
- const fragmentRef = ref();
- const setRef = composeRefs(fragmentRef, (el) => {
- if (el) {
- props2.setRef(el.nextElementSibling);
- } else {
- props2.setRef(null);
- }
- });
- return () => {
- var _a2;
- const [firstChild] = ((_a2 = slots.default) == null ? void 0 : _a2.call(slots)) || [];
- const child = props2.onlyChild ? ensureOnlyChild(firstChild.children) : firstChild.children;
- return createVNode(Fragment, {
- "ref": setRef
- }, [child]);
- };
- }
- });
- // node_modules/element-plus/es/components/tooltip-v2/src/trigger2.mjs
- var __default__107 = defineComponent({
- name: "ElTooltipV2Trigger"
- });
- var _sfc_main432 = defineComponent({
- ...__default__107,
- props: {
- ...tooltipV2CommonProps,
- ...tooltipV2TriggerProps
- },
- setup(__props) {
- const props2 = __props;
- const { onClose, onOpen, onDelayOpen, triggerRef: triggerRef2, contentId } = inject(tooltipV2RootKey);
- let isMousedown = false;
- const setTriggerRef = (el) => {
- triggerRef2.value = el;
- };
- const onMouseup = () => {
- isMousedown = false;
- };
- const onMouseenter = composeEventHandlers(props2.onMouseEnter, onDelayOpen);
- const onMouseleave = composeEventHandlers(props2.onMouseLeave, onClose);
- const onMousedown = composeEventHandlers(props2.onMouseDown, () => {
- onClose();
- isMousedown = true;
- document.addEventListener("mouseup", onMouseup, { once: true });
- });
- const onFocus = composeEventHandlers(props2.onFocus, () => {
- if (!isMousedown)
- onOpen();
- });
- const onBlur = composeEventHandlers(props2.onBlur, onClose);
- const onClick = composeEventHandlers(props2.onClick, (e) => {
- if (e.detail === 0)
- onClose();
- });
- const events = {
- blur: onBlur,
- click: onClick,
- focus: onFocus,
- mousedown: onMousedown,
- mouseenter: onMouseenter,
- mouseleave: onMouseleave
- };
- const setEvents = (el, events2, type4) => {
- if (el) {
- Object.entries(events2).forEach(([name, handler]) => {
- el[type4](name, handler);
- });
- }
- };
- watch(triggerRef2, (triggerEl, previousTriggerEl) => {
- setEvents(triggerEl, events, "addEventListener");
- setEvents(previousTriggerEl, events, "removeEventListener");
- if (triggerEl) {
- triggerEl.setAttribute("aria-describedby", contentId.value);
- }
- });
- onBeforeUnmount(() => {
- setEvents(triggerRef2.value, events, "removeEventListener");
- document.removeEventListener("mouseup", onMouseup);
- });
- return (_ctx, _cache) => {
- return _ctx.nowrap ? (openBlock(), createBlock(unref(ForwardRef), {
- key: 0,
- "set-ref": setTriggerRef,
- "only-child": ""
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- })) : (openBlock(), createElementBlock("button", mergeProps({
- key: 1,
- ref_key: "triggerRef",
- ref: triggerRef2
- }, _ctx.$attrs), [
- renderSlot(_ctx.$slots, "default")
- ], 16));
- };
- }
- });
- var TooltipV2Trigger = _export_sfc(_sfc_main432, [["__file", "trigger.vue"]]);
- // node_modules/element-plus/es/components/tooltip-v2/src/tooltip2.mjs
- var __default__108 = defineComponent({
- name: "ElTooltipV2"
- });
- var _sfc_main433 = defineComponent({
- ...__default__108,
- props: tooltipV2Props,
- setup(__props) {
- const props2 = __props;
- const refedProps = toRefs(props2);
- const arrowProps = reactive(pick_default(refedProps, Object.keys(tooltipV2ArrowProps)));
- const contentProps = reactive(pick_default(refedProps, Object.keys(tooltipV2ContentProps)));
- const rootProps = reactive(pick_default(refedProps, Object.keys(tooltipV2RootProps)));
- const triggerProps = reactive(pick_default(refedProps, Object.keys(tooltipV2TriggerProps)));
- return (_ctx, _cache) => {
- return openBlock(), createBlock(TooltipV2Root, normalizeProps(guardReactiveProps(rootProps)), {
- default: withCtx(({ open }) => [
- createVNode(TooltipV2Trigger, mergeProps(triggerProps, { nowrap: "" }), {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "trigger")
- ]),
- _: 3
- }, 16),
- createVNode(unref(ElTeleport), {
- to: _ctx.to,
- disabled: !_ctx.teleported
- }, {
- default: withCtx(() => [
- _ctx.fullTransition ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, _ctx.transitionProps)), {
- default: withCtx(() => [
- _ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
- arrow: withCtx(({ style, side }) => [
- _ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
- style,
- side
- }), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
- ]),
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16)) : createCommentVNode("v-if", true)
- ]),
- _: 2
- }, 1040)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- _ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
- arrow: withCtx(({ style, side }) => [
- _ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
- style,
- side
- }), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
- ]),
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 16)) : createCommentVNode("v-if", true)
- ], 64))
- ]),
- _: 2
- }, 1032, ["to", "disabled"])
- ]),
- _: 3
- }, 16);
- };
- }
- });
- var TooltipV2 = _export_sfc(_sfc_main433, [["__file", "tooltip.vue"]]);
- // node_modules/element-plus/es/components/tooltip-v2/index.mjs
- var ElTooltipV2 = withInstall(TooltipV2);
- // node_modules/element-plus/es/components/transfer/src/transfer.mjs
- var LEFT_CHECK_CHANGE_EVENT = "left-check-change";
- var RIGHT_CHECK_CHANGE_EVENT = "right-check-change";
- var transferProps = buildProps({
- data: {
- type: definePropType(Array),
- default: () => []
- },
- titles: {
- type: definePropType(Array),
- default: () => []
- },
- buttonTexts: {
- type: definePropType(Array),
- default: () => []
- },
- filterPlaceholder: String,
- filterMethod: {
- type: definePropType(Function)
- },
- leftDefaultChecked: {
- type: definePropType(Array),
- default: () => []
- },
- rightDefaultChecked: {
- type: definePropType(Array),
- default: () => []
- },
- renderContent: {
- type: definePropType(Function)
- },
- modelValue: {
- type: definePropType(Array),
- default: () => []
- },
- format: {
- type: definePropType(Object),
- default: () => ({})
- },
- filterable: Boolean,
- props: {
- type: definePropType(Object),
- default: () => mutable({
- label: "label",
- key: "key",
- disabled: "disabled"
- })
- },
- targetOrder: {
- type: String,
- values: ["original", "push", "unshift"],
- default: "original"
- },
- validateEvent: {
- type: Boolean,
- default: true
- }
- });
- var transferCheckedChangeFn = (value, movedKeys) => [value, movedKeys].every(isArray) || isArray(value) && isNil_default(movedKeys);
- var transferEmits = {
- [CHANGE_EVENT]: (value, direction2, movedKeys) => [value, movedKeys].every(isArray) && ["left", "right"].includes(direction2),
- [UPDATE_MODEL_EVENT]: (value) => isArray(value),
- [LEFT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn,
- [RIGHT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn
- };
- // node_modules/element-plus/es/components/transfer/src/transfer-panel.mjs
- var CHECKED_CHANGE_EVENT = "checked-change";
- var transferPanelProps = buildProps({
- data: transferProps.data,
- optionRender: {
- type: definePropType(Function)
- },
- placeholder: String,
- title: String,
- filterable: Boolean,
- format: transferProps.format,
- filterMethod: transferProps.filterMethod,
- defaultChecked: transferProps.leftDefaultChecked,
- props: transferProps.props
- });
- var transferPanelEmits = {
- [CHECKED_CHANGE_EVENT]: transferCheckedChangeFn
- };
- // node_modules/element-plus/es/components/transfer/src/composables/use-props-alias.mjs
- var usePropsAlias = (props2) => {
- const initProps = {
- label: "label",
- key: "key",
- disabled: "disabled"
- };
- return computed(() => ({
- ...initProps,
- ...props2.props
- }));
- };
- // node_modules/element-plus/es/components/transfer/src/composables/use-check.mjs
- var useCheck = (props2, panelState, emit) => {
- const propsAlias = usePropsAlias(props2);
- const filteredData = computed(() => {
- return props2.data.filter((item) => {
- if (isFunction(props2.filterMethod)) {
- return props2.filterMethod(panelState.query, item);
- } else {
- const label = String(item[propsAlias.value.label] || item[propsAlias.value.key]);
- return label.toLowerCase().includes(panelState.query.toLowerCase());
- }
- });
- });
- const checkableData = computed(() => filteredData.value.filter((item) => !item[propsAlias.value.disabled]));
- const checkedSummary = computed(() => {
- const checkedLength = panelState.checked.length;
- const dataLength = props2.data.length;
- const { noChecked, hasChecked } = props2.format;
- if (noChecked && hasChecked) {
- return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength.toString()).replace(/\${total}/g, dataLength.toString()) : noChecked.replace(/\${total}/g, dataLength.toString());
- } else {
- return `${checkedLength}/${dataLength}`;
- }
- });
- const isIndeterminate = computed(() => {
- const checkedLength = panelState.checked.length;
- return checkedLength > 0 && checkedLength < checkableData.value.length;
- });
- const updateAllChecked = () => {
- const checkableDataKeys = checkableData.value.map((item) => item[propsAlias.value.key]);
- panelState.allChecked = checkableDataKeys.length > 0 && checkableDataKeys.every((item) => panelState.checked.includes(item));
- };
- const handleAllCheckedChange = (value) => {
- panelState.checked = value ? checkableData.value.map((item) => item[propsAlias.value.key]) : [];
- };
- watch(() => panelState.checked, (val, oldVal) => {
- updateAllChecked();
- if (panelState.checkChangeByUser) {
- const movedKeys = val.concat(oldVal).filter((v2) => !val.includes(v2) || !oldVal.includes(v2));
- emit(CHECKED_CHANGE_EVENT, val, movedKeys);
- } else {
- emit(CHECKED_CHANGE_EVENT, val);
- panelState.checkChangeByUser = true;
- }
- });
- watch(checkableData, () => {
- updateAllChecked();
- });
- watch(() => props2.data, () => {
- const checked = [];
- const filteredDataKeys = filteredData.value.map((item) => item[propsAlias.value.key]);
- panelState.checked.forEach((item) => {
- if (filteredDataKeys.includes(item)) {
- checked.push(item);
- }
- });
- panelState.checkChangeByUser = false;
- panelState.checked = checked;
- });
- watch(() => props2.defaultChecked, (val, oldVal) => {
- if (oldVal && val.length === oldVal.length && val.every((item) => oldVal.includes(item)))
- return;
- const checked = [];
- const checkableDataKeys = checkableData.value.map((item) => item[propsAlias.value.key]);
- val.forEach((item) => {
- if (checkableDataKeys.includes(item)) {
- checked.push(item);
- }
- });
- panelState.checkChangeByUser = false;
- panelState.checked = checked;
- }, {
- immediate: true
- });
- return {
- filteredData,
- checkableData,
- checkedSummary,
- isIndeterminate,
- updateAllChecked,
- handleAllCheckedChange
- };
- };
- // node_modules/element-plus/es/components/transfer/src/transfer-panel2.mjs
- var __default__109 = defineComponent({
- name: "ElTransferPanel"
- });
- var _sfc_main434 = defineComponent({
- ...__default__109,
- props: transferPanelProps,
- emits: transferPanelEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const slots = useSlots();
- const OptionContent = ({ option }) => option;
- const { t } = useLocale();
- const ns = useNamespace("transfer");
- const panelState = reactive({
- checked: [],
- allChecked: false,
- query: "",
- checkChangeByUser: true
- });
- const propsAlias = usePropsAlias(props2);
- const {
- filteredData,
- checkedSummary,
- isIndeterminate,
- handleAllCheckedChange
- } = useCheck(props2, panelState, emit);
- const hasNoMatch = computed(() => !isEmpty2(panelState.query) && isEmpty2(filteredData.value));
- const hasFooter = computed(() => !isEmpty2(slots.default()[0].children));
- const { checked, allChecked, query } = toRefs(panelState);
- expose({
- query
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b("panel"))
- }, [
- createBaseVNode("p", {
- class: normalizeClass(unref(ns).be("panel", "header"))
- }, [
- createVNode(unref(ElCheckbox), {
- modelValue: unref(allChecked),
- "onUpdate:modelValue": ($event) => isRef(allChecked) ? allChecked.value = $event : null,
- indeterminate: unref(isIndeterminate),
- "validate-event": false,
- onChange: unref(handleAllCheckedChange)
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(_ctx.title) + " ", 1),
- createBaseVNode("span", null, toDisplayString(unref(checkedSummary)), 1)
- ]),
- _: 1
- }, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "onChange"])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).be("panel", "body"), unref(ns).is("with-footer", unref(hasFooter))])
- }, [
- _ctx.filterable ? (openBlock(), createBlock(unref(ElInput), {
- key: 0,
- modelValue: unref(query),
- "onUpdate:modelValue": ($event) => isRef(query) ? query.value = $event : null,
- class: normalizeClass(unref(ns).be("panel", "filter")),
- size: "default",
- placeholder: _ctx.placeholder,
- "prefix-icon": unref(search_default),
- clearable: "",
- "validate-event": false
- }, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder", "prefix-icon"])) : createCommentVNode("v-if", true),
- withDirectives(createVNode(unref(ElCheckboxGroup), {
- modelValue: unref(checked),
- "onUpdate:modelValue": ($event) => isRef(checked) ? checked.value = $event : null,
- "validate-event": false,
- class: normalizeClass([unref(ns).is("filterable", _ctx.filterable), unref(ns).be("panel", "list")])
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredData), (item) => {
- return openBlock(), createBlock(unref(ElCheckbox), {
- key: item[unref(propsAlias).key],
- class: normalizeClass(unref(ns).be("panel", "item")),
- value: item[unref(propsAlias).key],
- disabled: item[unref(propsAlias).disabled],
- "validate-event": false
- }, {
- default: withCtx(() => {
- var _a2;
- return [
- createVNode(OptionContent, {
- option: (_a2 = _ctx.optionRender) == null ? void 0 : _a2.call(_ctx, item)
- }, null, 8, ["option"])
- ];
- }),
- _: 2
- }, 1032, ["class", "value", "disabled"]);
- }), 128))
- ]),
- _: 1
- }, 8, ["modelValue", "onUpdate:modelValue", "class"]), [
- [vShow, !unref(hasNoMatch) && !unref(isEmpty2)(_ctx.data)]
- ]),
- withDirectives(createBaseVNode("div", {
- class: normalizeClass(unref(ns).be("panel", "empty"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => [
- createTextVNode(toDisplayString(unref(hasNoMatch) ? unref(t)("el.transfer.noMatch") : unref(t)("el.transfer.noData")), 1)
- ])
- ], 2), [
- [vShow, unref(hasNoMatch) || unref(isEmpty2)(_ctx.data)]
- ])
- ], 2),
- unref(hasFooter) ? (openBlock(), createElementBlock("p", {
- key: 0,
- class: normalizeClass(unref(ns).be("panel", "footer"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var TransferPanel = _export_sfc(_sfc_main434, [["__file", "transfer-panel.vue"]]);
- // node_modules/element-plus/es/components/transfer/src/composables/use-computed-data.mjs
- var useComputedData = (props2) => {
- const propsAlias = usePropsAlias(props2);
- const dataObj = computed(() => props2.data.reduce((o2, cur) => (o2[cur[propsAlias.value.key]] = cur) && o2, {}));
- const sourceData = computed(() => props2.data.filter((item) => !props2.modelValue.includes(item[propsAlias.value.key])));
- const targetData = computed(() => {
- if (props2.targetOrder === "original") {
- return props2.data.filter((item) => props2.modelValue.includes(item[propsAlias.value.key]));
- } else {
- return props2.modelValue.reduce((arr, cur) => {
- const val = dataObj.value[cur];
- if (val) {
- arr.push(val);
- }
- return arr;
- }, []);
- }
- });
- return {
- sourceData,
- targetData
- };
- };
- // node_modules/element-plus/es/components/transfer/src/composables/use-move.mjs
- var useMove = (props2, checkedState, emit) => {
- const propsAlias = usePropsAlias(props2);
- const _emit = (value, direction2, movedKeys) => {
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value, direction2, movedKeys);
- };
- const addToLeft = () => {
- const currentValue = props2.modelValue.slice();
- checkedState.rightChecked.forEach((item) => {
- const index = currentValue.indexOf(item);
- if (index > -1) {
- currentValue.splice(index, 1);
- }
- });
- _emit(currentValue, "left", checkedState.rightChecked);
- };
- const addToRight = () => {
- let currentValue = props2.modelValue.slice();
- const itemsToBeMoved = props2.data.filter((item) => {
- const itemKey = item[propsAlias.value.key];
- return checkedState.leftChecked.includes(itemKey) && !props2.modelValue.includes(itemKey);
- }).map((item) => item[propsAlias.value.key]);
- currentValue = props2.targetOrder === "unshift" ? itemsToBeMoved.concat(currentValue) : currentValue.concat(itemsToBeMoved);
- if (props2.targetOrder === "original") {
- currentValue = props2.data.filter((item) => currentValue.includes(item[propsAlias.value.key])).map((item) => item[propsAlias.value.key]);
- }
- _emit(currentValue, "right", checkedState.leftChecked);
- };
- return {
- addToLeft,
- addToRight
- };
- };
- // node_modules/element-plus/es/components/transfer/src/composables/use-checked-change.mjs
- var useCheckedChange = (checkedState, emit) => {
- const onSourceCheckedChange = (val, movedKeys) => {
- checkedState.leftChecked = val;
- if (!movedKeys)
- return;
- emit(LEFT_CHECK_CHANGE_EVENT, val, movedKeys);
- };
- const onTargetCheckedChange = (val, movedKeys) => {
- checkedState.rightChecked = val;
- if (!movedKeys)
- return;
- emit(RIGHT_CHECK_CHANGE_EVENT, val, movedKeys);
- };
- return {
- onSourceCheckedChange,
- onTargetCheckedChange
- };
- };
- // node_modules/element-plus/es/components/transfer/src/transfer2.mjs
- var __default__110 = defineComponent({
- name: "ElTransfer"
- });
- var _sfc_main435 = defineComponent({
- ...__default__110,
- props: transferProps,
- emits: transferEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const slots = useSlots();
- const { t } = useLocale();
- const ns = useNamespace("transfer");
- const { formItem } = useFormItem();
- const checkedState = reactive({
- leftChecked: [],
- rightChecked: []
- });
- const propsAlias = usePropsAlias(props2);
- const { sourceData, targetData } = useComputedData(props2);
- const { onSourceCheckedChange, onTargetCheckedChange } = useCheckedChange(checkedState, emit);
- const { addToLeft, addToRight } = useMove(props2, checkedState, emit);
- const leftPanel = ref();
- const rightPanel = ref();
- const clearQuery = (which) => {
- switch (which) {
- case "left":
- leftPanel.value.query = "";
- break;
- case "right":
- rightPanel.value.query = "";
- break;
- }
- };
- const hasButtonTexts = computed(() => props2.buttonTexts.length === 2);
- const leftPanelTitle = computed(() => props2.titles[0] || t("el.transfer.titles.0"));
- const rightPanelTitle = computed(() => props2.titles[1] || t("el.transfer.titles.1"));
- const panelFilterPlaceholder = computed(() => props2.filterPlaceholder || t("el.transfer.filterPlaceholder"));
- watch(() => props2.modelValue, () => {
- var _a2;
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn());
- }
- });
- const optionRender = computed(() => (option) => {
- var _a2;
- if (props2.renderContent)
- return props2.renderContent(h, option);
- const defaultSlotVNodes = (((_a2 = slots.default) == null ? void 0 : _a2.call(slots, { option })) || []).filter((node) => node.type !== Comment);
- if (defaultSlotVNodes.length) {
- return defaultSlotVNodes;
- }
- return h("span", option[propsAlias.value.label] || option[propsAlias.value.key]);
- });
- expose({
- clearQuery,
- leftPanel,
- rightPanel
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).b())
- }, [
- createVNode(TransferPanel, {
- ref_key: "leftPanel",
- ref: leftPanel,
- data: unref(sourceData),
- "option-render": unref(optionRender),
- placeholder: unref(panelFilterPlaceholder),
- title: unref(leftPanelTitle),
- filterable: _ctx.filterable,
- format: _ctx.format,
- "filter-method": _ctx.filterMethod,
- "default-checked": _ctx.leftDefaultChecked,
- props: props2.props,
- onCheckedChange: unref(onSourceCheckedChange)
- }, {
- empty: withCtx(() => [
- renderSlot(_ctx.$slots, "left-empty")
- ]),
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "left-footer")
- ]),
- _: 3
- }, 8, ["data", "option-render", "placeholder", "title", "filterable", "format", "filter-method", "default-checked", "props", "onCheckedChange"]),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("buttons"))
- }, [
- createVNode(unref(ElButton), {
- type: "primary",
- class: normalizeClass([unref(ns).e("button"), unref(ns).is("with-texts", unref(hasButtonTexts))]),
- disabled: unref(isEmpty2)(checkedState.rightChecked),
- onClick: unref(addToLeft)
- }, {
- default: withCtx(() => [
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_left_default))
- ]),
- _: 1
- }),
- !unref(isUndefined2)(_ctx.buttonTexts[0]) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.buttonTexts[0]), 1)) : createCommentVNode("v-if", true)
- ]),
- _: 1
- }, 8, ["class", "disabled", "onClick"]),
- createVNode(unref(ElButton), {
- type: "primary",
- class: normalizeClass([unref(ns).e("button"), unref(ns).is("with-texts", unref(hasButtonTexts))]),
- disabled: unref(isEmpty2)(checkedState.leftChecked),
- onClick: unref(addToRight)
- }, {
- default: withCtx(() => [
- !unref(isUndefined2)(_ctx.buttonTexts[1]) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.buttonTexts[1]), 1)) : createCommentVNode("v-if", true),
- createVNode(unref(ElIcon), null, {
- default: withCtx(() => [
- createVNode(unref(arrow_right_default))
- ]),
- _: 1
- })
- ]),
- _: 1
- }, 8, ["class", "disabled", "onClick"])
- ], 2),
- createVNode(TransferPanel, {
- ref_key: "rightPanel",
- ref: rightPanel,
- data: unref(targetData),
- "option-render": unref(optionRender),
- placeholder: unref(panelFilterPlaceholder),
- filterable: _ctx.filterable,
- format: _ctx.format,
- "filter-method": _ctx.filterMethod,
- title: unref(rightPanelTitle),
- "default-checked": _ctx.rightDefaultChecked,
- props: props2.props,
- onCheckedChange: unref(onTargetCheckedChange)
- }, {
- empty: withCtx(() => [
- renderSlot(_ctx.$slots, "right-empty")
- ]),
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "right-footer")
- ]),
- _: 3
- }, 8, ["data", "option-render", "placeholder", "filterable", "format", "filter-method", "title", "default-checked", "props", "onCheckedChange"])
- ], 2);
- };
- }
- });
- var Transfer = _export_sfc(_sfc_main435, [["__file", "transfer.vue"]]);
- // node_modules/element-plus/es/components/transfer/index.mjs
- var ElTransfer = withInstall(Transfer);
- // node_modules/element-plus/es/components/tree/src/model/util.mjs
- var NODE_KEY = "$treeNodeId";
- var markNodeData = function(node, data) {
- if (!data || data[NODE_KEY])
- return;
- Object.defineProperty(data, NODE_KEY, {
- value: node.id,
- enumerable: false,
- configurable: false,
- writable: false
- });
- };
- var getNodeKey = (key, data) => data == null ? void 0 : data[key || NODE_KEY];
- var handleCurrentChange = (store, emit, setCurrent) => {
- const preCurrentNode = store.value.currentNode;
- setCurrent();
- const currentNode = store.value.currentNode;
- if (preCurrentNode === currentNode)
- return;
- emit("current-change", currentNode ? currentNode.data : null, currentNode);
- };
- // node_modules/element-plus/es/components/tree/src/model/node.mjs
- var getChildState = (node) => {
- let all = true;
- let none = true;
- let allWithoutDisable = true;
- for (let i = 0, j = node.length; i < j; i++) {
- const n = node[i];
- if (n.checked !== true || n.indeterminate) {
- all = false;
- if (!n.disabled) {
- allWithoutDisable = false;
- }
- }
- if (n.checked !== false || n.indeterminate) {
- none = false;
- }
- }
- return { all, none, allWithoutDisable, half: !all && !none };
- };
- var reInitChecked = function(node) {
- if (node.childNodes.length === 0 || node.loading)
- return;
- const { all, none, half } = getChildState(node.childNodes);
- if (all) {
- node.checked = true;
- node.indeterminate = false;
- } else if (half) {
- node.checked = false;
- node.indeterminate = true;
- } else if (none) {
- node.checked = false;
- node.indeterminate = false;
- }
- const parent2 = node.parent;
- if (!parent2 || parent2.level === 0)
- return;
- if (!node.store.checkStrictly) {
- reInitChecked(parent2);
- }
- };
- var getPropertyFromData = function(node, prop) {
- const props2 = node.store.props;
- const data = node.data || {};
- const config = props2[prop];
- if (isFunction(config)) {
- return config(data, node);
- } else if (isString(config)) {
- return data[config];
- } else if (isUndefined2(config)) {
- const dataProp = data[prop];
- return isUndefined2(dataProp) ? "" : dataProp;
- }
- };
- var setCanFocus = function(childNodes, focus) {
- childNodes.forEach((item) => {
- item.canFocus = focus;
- setCanFocus(item.childNodes, focus);
- });
- };
- var nodeIdSeed = 0;
- var Node3 = class _Node {
- constructor(options) {
- this.isLeafByUser = void 0;
- this.isLeaf = void 0;
- this.id = nodeIdSeed++;
- this.text = null;
- this.checked = false;
- this.indeterminate = false;
- this.data = null;
- this.expanded = false;
- this.parent = null;
- this.visible = true;
- this.isCurrent = false;
- this.canFocus = false;
- for (const name in options) {
- if (hasOwn(options, name)) {
- this[name] = options[name];
- }
- }
- this.level = 0;
- this.loaded = false;
- this.childNodes = [];
- this.loading = false;
- if (this.parent) {
- this.level = this.parent.level + 1;
- }
- }
- initialize() {
- var _a2;
- const store = this.store;
- if (!store) {
- throw new Error("[Node]store is required!");
- }
- store.registerNode(this);
- const props2 = store.props;
- if (props2 && typeof props2.isLeaf !== "undefined") {
- const isLeaf2 = getPropertyFromData(this, "isLeaf");
- if (isBoolean2(isLeaf2)) {
- this.isLeafByUser = isLeaf2;
- }
- }
- if (store.lazy !== true && this.data) {
- this.setData(this.data);
- if (store.defaultExpandAll) {
- this.expanded = true;
- this.canFocus = true;
- }
- } else if (this.level > 0 && store.lazy && store.defaultExpandAll && !this.isLeafByUser) {
- this.expand();
- }
- if (!isArray(this.data)) {
- markNodeData(this, this.data);
- }
- if (!this.data)
- return;
- const defaultExpandedKeys = store.defaultExpandedKeys;
- const key = store.key;
- if (key && !isNil_default(this.key) && defaultExpandedKeys && defaultExpandedKeys.includes(this.key)) {
- this.expand(null, store.autoExpandParent);
- }
- if (key && store.currentNodeKey !== void 0 && this.key === store.currentNodeKey) {
- store.currentNode = this;
- store.currentNode.isCurrent = true;
- }
- if (store.lazy) {
- store._initDefaultCheckedNode(this);
- }
- this.updateLeafState();
- if (this.level === 1 || ((_a2 = this.parent) == null ? void 0 : _a2.expanded) === true)
- this.canFocus = true;
- }
- setData(data) {
- if (!isArray(data)) {
- markNodeData(this, data);
- }
- this.data = data;
- this.childNodes = [];
- let children;
- if (this.level === 0 && isArray(this.data)) {
- children = this.data;
- } else {
- children = getPropertyFromData(this, "children") || [];
- }
- for (let i = 0, j = children.length; i < j; i++) {
- this.insertChild({ data: children[i] });
- }
- }
- get label() {
- return getPropertyFromData(this, "label");
- }
- get key() {
- const nodeKey = this.store.key;
- if (this.data)
- return this.data[nodeKey];
- return null;
- }
- get disabled() {
- return getPropertyFromData(this, "disabled");
- }
- get nextSibling() {
- const parent2 = this.parent;
- if (parent2) {
- const index = parent2.childNodes.indexOf(this);
- if (index > -1) {
- return parent2.childNodes[index + 1];
- }
- }
- return null;
- }
- get previousSibling() {
- const parent2 = this.parent;
- if (parent2) {
- const index = parent2.childNodes.indexOf(this);
- if (index > -1) {
- return index > 0 ? parent2.childNodes[index - 1] : null;
- }
- }
- return null;
- }
- contains(target2, deep = true) {
- return (this.childNodes || []).some((child) => child === target2 || deep && child.contains(target2));
- }
- remove() {
- const parent2 = this.parent;
- if (parent2) {
- parent2.removeChild(this);
- }
- }
- insertChild(child, index, batch) {
- if (!child)
- throw new Error("InsertChild error: child is required.");
- if (!(child instanceof _Node)) {
- if (!batch) {
- const children = this.getChildren(true);
- if (!(children == null ? void 0 : children.includes(child.data))) {
- if (isUndefined2(index) || index < 0) {
- children == null ? void 0 : children.push(child.data);
- } else {
- children == null ? void 0 : children.splice(index, 0, child.data);
- }
- }
- }
- Object.assign(child, {
- parent: this,
- store: this.store
- });
- child = reactive(new _Node(child));
- if (child instanceof _Node) {
- child.initialize();
- }
- }
- child.level = this.level + 1;
- if (isUndefined2(index) || index < 0) {
- this.childNodes.push(child);
- } else {
- this.childNodes.splice(index, 0, child);
- }
- this.updateLeafState();
- }
- insertBefore(child, ref2) {
- let index;
- if (ref2) {
- index = this.childNodes.indexOf(ref2);
- }
- this.insertChild(child, index);
- }
- insertAfter(child, ref2) {
- let index;
- if (ref2) {
- index = this.childNodes.indexOf(ref2);
- if (index !== -1)
- index += 1;
- }
- this.insertChild(child, index);
- }
- removeChild(child) {
- const children = this.getChildren() || [];
- const dataIndex = children.indexOf(child.data);
- if (dataIndex > -1) {
- children.splice(dataIndex, 1);
- }
- const index = this.childNodes.indexOf(child);
- if (index > -1) {
- this.store && this.store.deregisterNode(child);
- child.parent = null;
- this.childNodes.splice(index, 1);
- }
- this.updateLeafState();
- }
- removeChildByData(data) {
- let targetNode = null;
- for (let i = 0; i < this.childNodes.length; i++) {
- if (this.childNodes[i].data === data) {
- targetNode = this.childNodes[i];
- break;
- }
- }
- if (targetNode) {
- this.removeChild(targetNode);
- }
- }
- expand(callback, expandParent) {
- const done = () => {
- if (expandParent) {
- let parent2 = this.parent;
- while (parent2 && parent2.level > 0) {
- parent2.expanded = true;
- parent2 = parent2.parent;
- }
- }
- this.expanded = true;
- if (callback)
- callback();
- setCanFocus(this.childNodes, true);
- };
- if (this.shouldLoadData()) {
- this.loadData((data) => {
- if (isArray(data)) {
- if (this.checked) {
- this.setChecked(true, true);
- } else if (!this.store.checkStrictly) {
- reInitChecked(this);
- }
- done();
- }
- });
- } else {
- done();
- }
- }
- doCreateChildren(array4, defaultProps6 = {}) {
- array4.forEach((item) => {
- this.insertChild(Object.assign({ data: item }, defaultProps6), void 0, true);
- });
- }
- collapse() {
- this.expanded = false;
- setCanFocus(this.childNodes, false);
- }
- shouldLoadData() {
- return Boolean(this.store.lazy === true && this.store.load && !this.loaded);
- }
- updateLeafState() {
- if (this.store.lazy === true && this.loaded !== true && typeof this.isLeafByUser !== "undefined") {
- this.isLeaf = this.isLeafByUser;
- return;
- }
- const childNodes = this.childNodes;
- if (!this.store.lazy || this.store.lazy === true && this.loaded === true) {
- this.isLeaf = !childNodes || childNodes.length === 0;
- return;
- }
- this.isLeaf = false;
- }
- setChecked(value, deep, recursion, passValue) {
- this.indeterminate = value === "half";
- this.checked = value === true;
- if (this.store.checkStrictly)
- return;
- if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
- const { all, allWithoutDisable } = getChildState(this.childNodes);
- if (!this.isLeaf && !all && allWithoutDisable) {
- this.checked = false;
- value = false;
- }
- const handleDescendants = () => {
- if (deep) {
- const childNodes = this.childNodes;
- for (let i = 0, j = childNodes.length; i < j; i++) {
- const child = childNodes[i];
- passValue = passValue || value !== false;
- const isCheck = child.disabled ? child.checked : passValue;
- child.setChecked(isCheck, deep, true, passValue);
- }
- const { half, all: all2 } = getChildState(childNodes);
- if (!all2) {
- this.checked = all2;
- this.indeterminate = half;
- }
- }
- };
- if (this.shouldLoadData()) {
- this.loadData(() => {
- handleDescendants();
- reInitChecked(this);
- }, {
- checked: value !== false
- });
- return;
- } else {
- handleDescendants();
- }
- }
- const parent2 = this.parent;
- if (!parent2 || parent2.level === 0)
- return;
- if (!recursion) {
- reInitChecked(parent2);
- }
- }
- getChildren(forceInit = false) {
- if (this.level === 0)
- return this.data;
- const data = this.data;
- if (!data)
- return null;
- const props2 = this.store.props;
- let children = "children";
- if (props2) {
- children = props2.children || "children";
- }
- if (isUndefined2(data[children])) {
- data[children] = null;
- }
- if (forceInit && !data[children]) {
- data[children] = [];
- }
- return data[children];
- }
- updateChildren() {
- const newData = this.getChildren() || [];
- const oldData = this.childNodes.map((node) => node.data);
- const newDataMap = {};
- const newNodes = [];
- newData.forEach((item, index) => {
- const key = item[NODE_KEY];
- const isNodeExists = !!key && oldData.findIndex((data) => (data == null ? void 0 : data[NODE_KEY]) === key) >= 0;
- if (isNodeExists) {
- newDataMap[key] = { index, data: item };
- } else {
- newNodes.push({ index, data: item });
- }
- });
- if (!this.store.lazy) {
- oldData.forEach((item) => {
- if (!newDataMap[item == null ? void 0 : item[NODE_KEY]])
- this.removeChildByData(item);
- });
- }
- newNodes.forEach(({ index, data }) => {
- this.insertChild({ data }, index);
- });
- this.updateLeafState();
- }
- loadData(callback, defaultProps6 = {}) {
- if (this.store.lazy === true && this.store.load && !this.loaded && (!this.loading || Object.keys(defaultProps6).length)) {
- this.loading = true;
- const resolve = (children) => {
- this.childNodes = [];
- this.doCreateChildren(children, defaultProps6);
- this.loaded = true;
- this.loading = false;
- this.updateLeafState();
- if (callback) {
- callback.call(this, children);
- }
- };
- const reject2 = () => {
- this.loading = false;
- };
- this.store.load(this, resolve, reject2);
- } else {
- if (callback) {
- callback.call(this);
- }
- }
- }
- eachNode(callback) {
- const arr = [this];
- while (arr.length) {
- const node = arr.shift();
- arr.unshift(...node.childNodes);
- callback(node);
- }
- }
- reInitChecked() {
- if (this.store.checkStrictly)
- return;
- reInitChecked(this);
- }
- };
- // node_modules/element-plus/es/components/tree/src/model/tree-store.mjs
- var TreeStore = class {
- constructor(options) {
- this.lazy = false;
- this.checkStrictly = false;
- this.autoExpandParent = false;
- this.defaultExpandAll = false;
- this.checkDescendants = false;
- this.currentNode = null;
- this.currentNodeKey = null;
- for (const option in options) {
- if (hasOwn(options, option)) {
- this[option] = options[option];
- }
- }
- this.nodesMap = {};
- }
- initialize() {
- this.root = new Node3({
- data: this.data,
- store: this
- });
- this.root.initialize();
- if (this.lazy && this.load) {
- const loadFn = this.load;
- loadFn(this.root, (data) => {
- this.root.doCreateChildren(data);
- this._initDefaultCheckedNodes();
- }, NOOP);
- } else {
- this._initDefaultCheckedNodes();
- }
- }
- filter(value) {
- const filterNodeMethod = this.filterNodeMethod;
- const lazy = this.lazy;
- const traverse = async function(node) {
- const childNodes = node.root ? node.root.childNodes : node.childNodes;
- for (const [index, child] of childNodes.entries()) {
- child.visible = !!(filterNodeMethod == null ? void 0 : filterNodeMethod.call(child, value, child.data, child));
- if (index % 80 === 0 && index > 0) {
- await nextTick();
- }
- await traverse(child);
- }
- if (!node.visible && childNodes.length) {
- let allHidden = true;
- allHidden = !childNodes.some((child) => child.visible);
- if (node.root) {
- node.root.visible = allHidden === false;
- } else {
- node.visible = allHidden === false;
- }
- }
- if (!value)
- return;
- if (node.visible && !node.isLeaf) {
- if (!lazy || node.loaded) {
- node.expand();
- }
- }
- };
- traverse(this);
- }
- setData(newVal) {
- const instanceChanged = newVal !== this.root.data;
- if (instanceChanged) {
- this.nodesMap = {};
- this.root.setData(newVal);
- this._initDefaultCheckedNodes();
- this.setCurrentNodeKey(this.currentNodeKey);
- } else {
- this.root.updateChildren();
- }
- }
- getNode(data) {
- if (data instanceof Node3)
- return data;
- const key = isObject(data) ? getNodeKey(this.key, data) : data;
- return this.nodesMap[key] || null;
- }
- insertBefore(data, refData) {
- var _a2;
- const refNode = this.getNode(refData);
- (_a2 = refNode.parent) == null ? void 0 : _a2.insertBefore({ data }, refNode);
- }
- insertAfter(data, refData) {
- var _a2;
- const refNode = this.getNode(refData);
- (_a2 = refNode.parent) == null ? void 0 : _a2.insertAfter({ data }, refNode);
- }
- remove(data) {
- const node = this.getNode(data);
- if (node && node.parent) {
- if (node === this.currentNode) {
- this.currentNode = null;
- }
- node.parent.removeChild(node);
- }
- }
- append(data, parentData) {
- const parentNode = !isPropAbsent(parentData) ? this.getNode(parentData) : this.root;
- if (parentNode) {
- parentNode.insertChild({ data });
- }
- }
- _initDefaultCheckedNodes() {
- const defaultCheckedKeys = this.defaultCheckedKeys || [];
- const nodesMap = this.nodesMap;
- defaultCheckedKeys.forEach((checkedKey) => {
- const node = nodesMap[checkedKey];
- if (node) {
- node.setChecked(true, !this.checkStrictly);
- }
- });
- }
- _initDefaultCheckedNode(node) {
- const defaultCheckedKeys = this.defaultCheckedKeys || [];
- if (!isNil_default(node.key) && defaultCheckedKeys.includes(node.key)) {
- node.setChecked(true, !this.checkStrictly);
- }
- }
- setDefaultCheckedKey(newVal) {
- if (newVal !== this.defaultCheckedKeys) {
- this.defaultCheckedKeys = newVal;
- this._initDefaultCheckedNodes();
- }
- }
- registerNode(node) {
- const key = this.key;
- if (!node || !node.data)
- return;
- if (!key) {
- this.nodesMap[node.id] = node;
- } else {
- const nodeKey = node.key;
- if (!isNil_default(nodeKey))
- this.nodesMap[nodeKey] = node;
- }
- }
- deregisterNode(node) {
- const key = this.key;
- if (!key || !node || !node.data)
- return;
- node.childNodes.forEach((child) => {
- this.deregisterNode(child);
- });
- delete this.nodesMap[node.key];
- }
- getCheckedNodes(leafOnly = false, includeHalfChecked = false) {
- const checkedNodes = [];
- const traverse = function(node) {
- const childNodes = node.root ? node.root.childNodes : node.childNodes;
- childNodes.forEach((child) => {
- if ((child.checked || includeHalfChecked && child.indeterminate) && (!leafOnly || leafOnly && child.isLeaf)) {
- checkedNodes.push(child.data);
- }
- traverse(child);
- });
- };
- traverse(this);
- return checkedNodes;
- }
- getCheckedKeys(leafOnly = false) {
- return this.getCheckedNodes(leafOnly).map((data) => (data || {})[this.key]);
- }
- getHalfCheckedNodes() {
- const nodes = [];
- const traverse = function(node) {
- const childNodes = node.root ? node.root.childNodes : node.childNodes;
- childNodes.forEach((child) => {
- if (child.indeterminate) {
- nodes.push(child.data);
- }
- traverse(child);
- });
- };
- traverse(this);
- return nodes;
- }
- getHalfCheckedKeys() {
- return this.getHalfCheckedNodes().map((data) => (data || {})[this.key]);
- }
- _getAllNodes() {
- const allNodes = [];
- const nodesMap = this.nodesMap;
- for (const nodeKey in nodesMap) {
- if (hasOwn(nodesMap, nodeKey)) {
- allNodes.push(nodesMap[nodeKey]);
- }
- }
- return allNodes;
- }
- updateChildren(key, data) {
- const node = this.nodesMap[key];
- if (!node)
- return;
- const childNodes = node.childNodes;
- for (let i = childNodes.length - 1; i >= 0; i--) {
- const child = childNodes[i];
- this.remove(child.data);
- }
- for (let i = 0, j = data.length; i < j; i++) {
- const child = data[i];
- this.append(child, node.data);
- }
- }
- _setCheckedKeys(key, leafOnly = false, checkedKeys) {
- const allNodes = this._getAllNodes().sort((a2, b2) => a2.level - b2.level);
- const cache2 = /* @__PURE__ */ Object.create(null);
- const keys3 = Object.keys(checkedKeys);
- allNodes.forEach((node) => node.setChecked(false, false));
- const cacheCheckedChild = (node) => {
- node.childNodes.forEach((child) => {
- var _a2;
- cache2[child.data[key]] = true;
- if ((_a2 = child.childNodes) == null ? void 0 : _a2.length) {
- cacheCheckedChild(child);
- }
- });
- };
- for (let i = 0, j = allNodes.length; i < j; i++) {
- const node = allNodes[i];
- const nodeKey = node.data[key].toString();
- const checked = keys3.includes(nodeKey);
- if (!checked) {
- if (node.checked && !cache2[nodeKey]) {
- node.setChecked(false, false);
- }
- continue;
- }
- if (node.childNodes.length) {
- cacheCheckedChild(node);
- }
- if (node.isLeaf || this.checkStrictly) {
- node.setChecked(true, false);
- continue;
- }
- node.setChecked(true, true);
- if (leafOnly) {
- node.setChecked(false, false);
- const traverse = function(node2) {
- const childNodes = node2.childNodes;
- childNodes.forEach((child) => {
- if (!child.isLeaf) {
- child.setChecked(false, false);
- }
- traverse(child);
- });
- };
- traverse(node);
- }
- }
- }
- setCheckedNodes(array4, leafOnly = false) {
- const key = this.key;
- const checkedKeys = {};
- array4.forEach((item) => {
- checkedKeys[(item || {})[key]] = true;
- });
- this._setCheckedKeys(key, leafOnly, checkedKeys);
- }
- setCheckedKeys(keys3, leafOnly = false) {
- this.defaultCheckedKeys = keys3;
- const key = this.key;
- const checkedKeys = {};
- keys3.forEach((key2) => {
- checkedKeys[key2] = true;
- });
- this._setCheckedKeys(key, leafOnly, checkedKeys);
- }
- setDefaultExpandedKeys(keys3) {
- keys3 = keys3 || [];
- this.defaultExpandedKeys = keys3;
- keys3.forEach((key) => {
- const node = this.getNode(key);
- if (node)
- node.expand(null, this.autoExpandParent);
- });
- }
- setChecked(data, checked, deep) {
- const node = this.getNode(data);
- if (node) {
- node.setChecked(!!checked, deep);
- }
- }
- getCurrentNode() {
- return this.currentNode;
- }
- setCurrentNode(currentNode) {
- const prevCurrentNode = this.currentNode;
- if (prevCurrentNode) {
- prevCurrentNode.isCurrent = false;
- }
- this.currentNode = currentNode;
- this.currentNode.isCurrent = true;
- }
- setUserCurrentNode(node, shouldAutoExpandParent = true) {
- var _a2;
- const key = node[this.key];
- const currNode = this.nodesMap[key];
- this.setCurrentNode(currNode);
- if (shouldAutoExpandParent && this.currentNode && this.currentNode.level > 1) {
- (_a2 = this.currentNode.parent) == null ? void 0 : _a2.expand(null, true);
- }
- }
- setCurrentNodeKey(key, shouldAutoExpandParent = true) {
- var _a2;
- this.currentNodeKey = key;
- if (isPropAbsent(key)) {
- this.currentNode && (this.currentNode.isCurrent = false);
- this.currentNode = null;
- return;
- }
- const node = this.getNode(key);
- if (node) {
- this.setCurrentNode(node);
- if (shouldAutoExpandParent && this.currentNode && this.currentNode.level > 1) {
- (_a2 = this.currentNode.parent) == null ? void 0 : _a2.expand(null, true);
- }
- }
- }
- };
- // node_modules/element-plus/es/components/tree/src/tokens.mjs
- var ROOT_TREE_INJECTION_KEY = "RootTree";
- var NODE_INSTANCE_INJECTION_KEY = "NodeInstance";
- var TREE_NODE_MAP_INJECTION_KEY = "TreeNodeMap";
- // node_modules/element-plus/es/components/tree/src/tree-node-content.mjs
- var _sfc_main436 = defineComponent({
- name: "ElTreeNodeContent",
- props: {
- node: {
- type: Object,
- required: true
- },
- renderContent: Function
- },
- setup(props2) {
- const ns = useNamespace("tree");
- const nodeInstance = inject(NODE_INSTANCE_INJECTION_KEY);
- const tree = inject(ROOT_TREE_INJECTION_KEY);
- return () => {
- const node = props2.node;
- const { data, store } = node;
- return props2.renderContent ? props2.renderContent(h, { _self: nodeInstance, node, data, store }) : renderSlot(tree.ctx.slots, "default", { node, data }, () => [
- h(ElText, { tag: "span", truncated: true, class: ns.be("node", "label") }, () => [node.label])
- ]);
- };
- }
- });
- var NodeContent2 = _export_sfc(_sfc_main436, [["__file", "tree-node-content.vue"]]);
- // node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs
- function useNodeExpandEventBroadcast(props2) {
- const parentNodeMap = inject(TREE_NODE_MAP_INJECTION_KEY, null);
- const currentNodeMap = {
- treeNodeExpand: (node) => {
- var _a2;
- if (props2.node !== node) {
- (_a2 = props2.node) == null ? void 0 : _a2.collapse();
- }
- },
- children: []
- };
- if (parentNodeMap) {
- parentNodeMap.children.push(currentNodeMap);
- }
- provide(TREE_NODE_MAP_INJECTION_KEY, currentNodeMap);
- return {
- broadcastExpanded: (node) => {
- if (!props2.accordion)
- return;
- for (const childNode of currentNodeMap.children) {
- childNode.treeNodeExpand(node);
- }
- }
- };
- }
- // node_modules/element-plus/es/components/tree/src/model/useDragNode.mjs
- var dragEventsKey = Symbol("dragEvents");
- function useDragNodeHandler({
- props: props2,
- ctx,
- el$,
- dropIndicator$,
- store
- }) {
- const ns = useNamespace("tree");
- const dragState = ref({
- showDropIndicator: false,
- draggingNode: null,
- dropNode: null,
- allowDrop: true,
- dropType: null
- });
- const treeNodeDragStart = ({ event, treeNode }) => {
- if (!event.dataTransfer)
- return;
- if (isFunction(props2.allowDrag) && !props2.allowDrag(treeNode.node)) {
- event.preventDefault();
- return false;
- }
- event.dataTransfer.effectAllowed = "move";
- try {
- event.dataTransfer.setData("text/plain", "");
- } catch (e) {
- }
- dragState.value.draggingNode = treeNode;
- ctx.emit("node-drag-start", treeNode.node, event);
- };
- const treeNodeDragOver = ({ event, treeNode }) => {
- if (!event.dataTransfer)
- return;
- const dropNode = treeNode;
- const oldDropNode = dragState.value.dropNode;
- if (oldDropNode && oldDropNode.node.id !== dropNode.node.id) {
- removeClass(oldDropNode.$el, ns.is("drop-inner"));
- }
- const draggingNode = dragState.value.draggingNode;
- if (!draggingNode || !dropNode)
- return;
- let dropPrev = true;
- let dropInner = true;
- let dropNext = true;
- let userAllowDropInner = true;
- if (isFunction(props2.allowDrop)) {
- dropPrev = props2.allowDrop(draggingNode.node, dropNode.node, "prev");
- userAllowDropInner = dropInner = props2.allowDrop(draggingNode.node, dropNode.node, "inner");
- dropNext = props2.allowDrop(draggingNode.node, dropNode.node, "next");
- }
- event.dataTransfer.dropEffect = dropInner || dropPrev || dropNext ? "move" : "none";
- if ((dropPrev || dropInner || dropNext) && (oldDropNode == null ? void 0 : oldDropNode.node.id) !== dropNode.node.id) {
- if (oldDropNode) {
- ctx.emit("node-drag-leave", draggingNode.node, oldDropNode.node, event);
- }
- ctx.emit("node-drag-enter", draggingNode.node, dropNode.node, event);
- }
- if (dropPrev || dropInner || dropNext) {
- dragState.value.dropNode = dropNode;
- } else {
- dragState.value.dropNode = null;
- }
- if (dropNode.node.nextSibling === draggingNode.node) {
- dropNext = false;
- }
- if (dropNode.node.previousSibling === draggingNode.node) {
- dropPrev = false;
- }
- if (dropNode.node.contains(draggingNode.node, false)) {
- dropInner = false;
- }
- if (draggingNode.node === dropNode.node || draggingNode.node.contains(dropNode.node)) {
- dropPrev = false;
- dropInner = false;
- dropNext = false;
- }
- const dropEl = dropNode.$el;
- const targetPosition = dropEl.querySelector(`.${ns.be("node", "content")}`).getBoundingClientRect();
- const treePosition = el$.value.getBoundingClientRect();
- let dropType;
- const prevPercent = dropPrev ? dropInner ? 0.25 : dropNext ? 0.45 : 1 : -1;
- const nextPercent = dropNext ? dropInner ? 0.75 : dropPrev ? 0.55 : 0 : 1;
- let indicatorTop = -9999;
- const distance = event.clientY - targetPosition.top;
- if (distance < targetPosition.height * prevPercent) {
- dropType = "before";
- } else if (distance > targetPosition.height * nextPercent) {
- dropType = "after";
- } else if (dropInner) {
- dropType = "inner";
- } else {
- dropType = "none";
- }
- const iconPosition = dropEl.querySelector(`.${ns.be("node", "expand-icon")}`).getBoundingClientRect();
- const dropIndicator = dropIndicator$.value;
- if (dropType === "before") {
- indicatorTop = iconPosition.top - treePosition.top;
- } else if (dropType === "after") {
- indicatorTop = iconPosition.bottom - treePosition.top;
- }
- dropIndicator.style.top = `${indicatorTop}px`;
- dropIndicator.style.left = `${iconPosition.right - treePosition.left}px`;
- if (dropType === "inner") {
- addClass(dropEl, ns.is("drop-inner"));
- } else {
- removeClass(dropEl, ns.is("drop-inner"));
- }
- dragState.value.showDropIndicator = dropType === "before" || dropType === "after";
- dragState.value.allowDrop = dragState.value.showDropIndicator || userAllowDropInner;
- dragState.value.dropType = dropType;
- ctx.emit("node-drag-over", draggingNode.node, dropNode.node, event);
- };
- const treeNodeDragEnd = (event) => {
- var _a2, _b;
- const { draggingNode, dropType, dropNode } = dragState.value;
- event.preventDefault();
- if (event.dataTransfer) {
- event.dataTransfer.dropEffect = "move";
- }
- if ((draggingNode == null ? void 0 : draggingNode.node.data) && dropNode) {
- const draggingNodeCopy = { data: draggingNode.node.data };
- if (dropType !== "none") {
- draggingNode.node.remove();
- }
- if (dropType === "before") {
- (_a2 = dropNode.node.parent) == null ? void 0 : _a2.insertBefore(draggingNodeCopy, dropNode.node);
- } else if (dropType === "after") {
- (_b = dropNode.node.parent) == null ? void 0 : _b.insertAfter(draggingNodeCopy, dropNode.node);
- } else if (dropType === "inner") {
- dropNode.node.insertChild(draggingNodeCopy);
- }
- if (dropType !== "none") {
- store.value.registerNode(draggingNodeCopy);
- if (store.value.key) {
- draggingNode.node.eachNode((node) => {
- var _a22;
- (_a22 = store.value.nodesMap[node.data[store.value.key]]) == null ? void 0 : _a22.setChecked(node.checked, !store.value.checkStrictly);
- });
- }
- }
- removeClass(dropNode.$el, ns.is("drop-inner"));
- ctx.emit("node-drag-end", draggingNode.node, dropNode.node, dropType, event);
- if (dropType !== "none") {
- ctx.emit("node-drop", draggingNode.node, dropNode.node, dropType, event);
- }
- }
- if (draggingNode && !dropNode) {
- ctx.emit("node-drag-end", draggingNode.node, null, dropType, event);
- }
- dragState.value.showDropIndicator = false;
- dragState.value.draggingNode = null;
- dragState.value.dropNode = null;
- dragState.value.allowDrop = true;
- };
- provide(dragEventsKey, {
- treeNodeDragStart,
- treeNodeDragOver,
- treeNodeDragEnd
- });
- return {
- dragState
- };
- }
- // node_modules/element-plus/es/components/tree/src/tree-node.mjs
- var _sfc_main437 = defineComponent({
- name: "ElTreeNode",
- components: {
- ElCollapseTransition,
- ElCheckbox,
- NodeContent: NodeContent2,
- ElIcon,
- Loading: loading_default
- },
- props: {
- node: {
- type: Node3,
- default: () => ({})
- },
- props: {
- type: Object,
- default: () => ({})
- },
- accordion: Boolean,
- renderContent: Function,
- renderAfterExpand: Boolean,
- showCheckbox: Boolean
- },
- emits: ["node-expand"],
- setup(props2, ctx) {
- const ns = useNamespace("tree");
- const { broadcastExpanded } = useNodeExpandEventBroadcast(props2);
- const tree = inject(ROOT_TREE_INJECTION_KEY);
- const expanded = ref(false);
- const childNodeRendered = ref(false);
- const oldChecked = ref();
- const oldIndeterminate = ref();
- const node$ = ref();
- const dragEvents = inject(dragEventsKey);
- const instance = getCurrentInstance();
- provide(NODE_INSTANCE_INJECTION_KEY, instance);
- if (props2.node.expanded) {
- expanded.value = true;
- childNodeRendered.value = true;
- }
- const childrenKey = tree.props.props["children"] || "children";
- watch(() => {
- var _a2;
- const children = (_a2 = props2.node.data) == null ? void 0 : _a2[childrenKey];
- return children && [...children];
- }, () => {
- props2.node.updateChildren();
- });
- watch(() => props2.node.indeterminate, (val) => {
- handleSelectChange(props2.node.checked, val);
- });
- watch(() => props2.node.checked, (val) => {
- handleSelectChange(val, props2.node.indeterminate);
- });
- watch(() => props2.node.childNodes.length, () => props2.node.reInitChecked());
- watch(() => props2.node.expanded, (val) => {
- nextTick(() => expanded.value = val);
- if (val) {
- childNodeRendered.value = true;
- }
- });
- const getNodeKey$1 = (node) => {
- return getNodeKey(tree.props.nodeKey, node.data);
- };
- const getNodeClass = (node) => {
- const nodeClassFunc = props2.props.class;
- if (!nodeClassFunc) {
- return {};
- }
- let className;
- if (isFunction(nodeClassFunc)) {
- const { data } = node;
- className = nodeClassFunc(data, node);
- } else {
- className = nodeClassFunc;
- }
- if (isString(className)) {
- return { [className]: true };
- } else {
- return className;
- }
- };
- const handleSelectChange = (checked, indeterminate) => {
- if (oldChecked.value !== checked || oldIndeterminate.value !== indeterminate) {
- tree.ctx.emit("check-change", props2.node.data, checked, indeterminate);
- }
- oldChecked.value = checked;
- oldIndeterminate.value = indeterminate;
- };
- const handleClick = (e) => {
- handleCurrentChange(tree.store, tree.ctx.emit, () => {
- var _a2;
- const nodeKeyProp = (_a2 = tree == null ? void 0 : tree.props) == null ? void 0 : _a2.nodeKey;
- if (nodeKeyProp) {
- const curNodeKey = getNodeKey$1(props2.node);
- tree.store.value.setCurrentNodeKey(curNodeKey);
- } else {
- tree.store.value.setCurrentNode(props2.node);
- }
- });
- tree.currentNode.value = props2.node;
- if (tree.props.expandOnClickNode) {
- handleExpandIconClick();
- }
- if ((tree.props.checkOnClickNode || props2.node.isLeaf && tree.props.checkOnClickLeaf && props2.showCheckbox) && !props2.node.disabled) {
- handleCheckChange(!props2.node.checked);
- }
- tree.ctx.emit("node-click", props2.node.data, props2.node, instance, e);
- };
- const handleContextMenu = (event) => {
- var _a2;
- if ((_a2 = tree.instance.vnode.props) == null ? void 0 : _a2["onNodeContextmenu"]) {
- event.stopPropagation();
- event.preventDefault();
- }
- tree.ctx.emit("node-contextmenu", event, props2.node.data, props2.node, instance);
- };
- const handleExpandIconClick = () => {
- if (props2.node.isLeaf)
- return;
- if (expanded.value) {
- tree.ctx.emit("node-collapse", props2.node.data, props2.node, instance);
- props2.node.collapse();
- } else {
- props2.node.expand(() => {
- ctx.emit("node-expand", props2.node.data, props2.node, instance);
- });
- }
- };
- const handleCheckChange = (value) => {
- props2.node.setChecked(value, !(tree == null ? void 0 : tree.props.checkStrictly));
- nextTick(() => {
- const store = tree.store.value;
- tree.ctx.emit("check", props2.node.data, {
- checkedNodes: store.getCheckedNodes(),
- checkedKeys: store.getCheckedKeys(),
- halfCheckedNodes: store.getHalfCheckedNodes(),
- halfCheckedKeys: store.getHalfCheckedKeys()
- });
- });
- };
- const handleChildNodeExpand = (nodeData, node, instance2) => {
- broadcastExpanded(node);
- tree.ctx.emit("node-expand", nodeData, node, instance2);
- };
- const handleDragStart = (event) => {
- if (!tree.props.draggable)
- return;
- dragEvents.treeNodeDragStart({ event, treeNode: props2 });
- };
- const handleDragOver = (event) => {
- event.preventDefault();
- if (!tree.props.draggable)
- return;
- dragEvents.treeNodeDragOver({
- event,
- treeNode: { $el: node$.value, node: props2.node }
- });
- };
- const handleDrop = (event) => {
- event.preventDefault();
- };
- const handleDragEnd = (event) => {
- if (!tree.props.draggable)
- return;
- dragEvents.treeNodeDragEnd(event);
- };
- return {
- ns,
- node$,
- tree,
- expanded,
- childNodeRendered,
- oldChecked,
- oldIndeterminate,
- getNodeKey: getNodeKey$1,
- getNodeClass,
- handleSelectChange,
- handleClick,
- handleContextMenu,
- handleExpandIconClick,
- handleCheckChange,
- handleChildNodeExpand,
- handleDragStart,
- handleDragOver,
- handleDrop,
- handleDragEnd,
- CaretRight: caret_right_default
- };
- }
- });
- function _sfc_render23(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_icon = resolveComponent("el-icon");
- const _component_el_checkbox = resolveComponent("el-checkbox");
- const _component_loading = resolveComponent("loading");
- const _component_node_content = resolveComponent("node-content");
- const _component_el_tree_node = resolveComponent("el-tree-node");
- const _component_el_collapse_transition = resolveComponent("el-collapse-transition");
- return withDirectives((openBlock(), createElementBlock("div", {
- ref: "node$",
- class: normalizeClass([
- _ctx.ns.b("node"),
- _ctx.ns.is("expanded", _ctx.expanded),
- _ctx.ns.is("current", _ctx.node.isCurrent),
- _ctx.ns.is("hidden", !_ctx.node.visible),
- _ctx.ns.is("focusable", !_ctx.node.disabled),
- _ctx.ns.is("checked", !_ctx.node.disabled && _ctx.node.checked),
- _ctx.getNodeClass(_ctx.node)
- ]),
- role: "treeitem",
- tabindex: "-1",
- "aria-expanded": _ctx.expanded,
- "aria-disabled": _ctx.node.disabled,
- "aria-checked": _ctx.node.checked,
- draggable: _ctx.tree.props.draggable,
- "data-key": _ctx.getNodeKey(_ctx.node),
- onClick: withModifiers(_ctx.handleClick, ["stop"]),
- onContextmenu: _ctx.handleContextMenu,
- onDragstart: withModifiers(_ctx.handleDragStart, ["stop"]),
- onDragover: withModifiers(_ctx.handleDragOver, ["stop"]),
- onDragend: withModifiers(_ctx.handleDragEnd, ["stop"]),
- onDrop: withModifiers(_ctx.handleDrop, ["stop"])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.be("node", "content")),
- style: normalizeStyle({ paddingLeft: (_ctx.node.level - 1) * _ctx.tree.props.indent + "px" })
- }, [
- _ctx.tree.props.icon || _ctx.CaretRight ? (openBlock(), createBlock(_component_el_icon, {
- key: 0,
- class: normalizeClass([
- _ctx.ns.be("node", "expand-icon"),
- _ctx.ns.is("leaf", _ctx.node.isLeaf),
- {
- expanded: !_ctx.node.isLeaf && _ctx.expanded
- }
- ]),
- onClick: withModifiers(_ctx.handleExpandIconClick, ["stop"])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.tree.props.icon || _ctx.CaretRight)))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
- _ctx.showCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
- key: 1,
- "model-value": _ctx.node.checked,
- indeterminate: _ctx.node.indeterminate,
- disabled: !!_ctx.node.disabled,
- onClick: withModifiers(() => {
- }, ["stop"]),
- onChange: _ctx.handleCheckChange
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick", "onChange"])) : createCommentVNode("v-if", true),
- _ctx.node.loading ? (openBlock(), createBlock(_component_el_icon, {
- key: 2,
- class: normalizeClass([_ctx.ns.be("node", "loading-icon"), _ctx.ns.is("loading")])
- }, {
- default: withCtx(() => [
- createVNode(_component_loading)
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- createVNode(_component_node_content, {
- node: _ctx.node,
- "render-content": _ctx.renderContent
- }, null, 8, ["node", "render-content"])
- ], 6),
- createVNode(_component_el_collapse_transition, null, {
- default: withCtx(() => [
- !_ctx.renderAfterExpand || _ctx.childNodeRendered ? withDirectives((openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(_ctx.ns.be("node", "children")),
- role: "group",
- "aria-expanded": _ctx.expanded,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.node.childNodes, (child) => {
- return openBlock(), createBlock(_component_el_tree_node, {
- key: _ctx.getNodeKey(child),
- "render-content": _ctx.renderContent,
- "render-after-expand": _ctx.renderAfterExpand,
- "show-checkbox": _ctx.showCheckbox,
- node: child,
- accordion: _ctx.accordion,
- props: _ctx.props,
- onNodeExpand: _ctx.handleChildNodeExpand
- }, null, 8, ["render-content", "render-after-expand", "show-checkbox", "node", "accordion", "props", "onNodeExpand"]);
- }), 128))
- ], 10, ["aria-expanded", "onClick"])), [
- [vShow, _ctx.expanded]
- ]) : createCommentVNode("v-if", true)
- ]),
- _: 1
- })
- ], 42, ["aria-expanded", "aria-disabled", "aria-checked", "draggable", "data-key", "onClick", "onContextmenu", "onDragstart", "onDragover", "onDragend", "onDrop"])), [
- [vShow, _ctx.node.visible]
- ]);
- }
- var ElTreeNode = _export_sfc(_sfc_main437, [["render", _sfc_render23], ["__file", "tree-node.vue"]]);
- // node_modules/element-plus/es/components/tree/src/model/useKeydown.mjs
- function useKeydown({ el$ }, store) {
- const ns = useNamespace("tree");
- onMounted(() => {
- initTabIndex();
- });
- onUpdated(() => {
- const checkboxItems = Array.from(el$.value.querySelectorAll("input[type=checkbox]"));
- checkboxItems.forEach((checkbox) => {
- checkbox.setAttribute("tabindex", "-1");
- });
- });
- function canNodeFocus(treeItems, nextIndex) {
- var _a2, _b;
- const currentNode = store.value.getNode(treeItems[nextIndex].dataset.key);
- return currentNode.canFocus && currentNode.visible && (((_a2 = currentNode.parent) == null ? void 0 : _a2.expanded) || ((_b = currentNode.parent) == null ? void 0 : _b.level) === 0);
- }
- const handleKeydown = (ev) => {
- const currentItem = ev.target;
- if (!currentItem.className.includes(ns.b("node")))
- return;
- const code = ev.code;
- const treeItems = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
- const currentIndex = treeItems.indexOf(currentItem);
- let nextIndex;
- if ([EVENT_CODE.up, EVENT_CODE.down].includes(code)) {
- ev.preventDefault();
- if (code === EVENT_CODE.up) {
- nextIndex = currentIndex === -1 ? 0 : currentIndex !== 0 ? currentIndex - 1 : treeItems.length - 1;
- const startIndex = nextIndex;
- while (true) {
- if (canNodeFocus(treeItems, nextIndex)) {
- break;
- }
- nextIndex--;
- if (nextIndex === startIndex) {
- nextIndex = -1;
- break;
- }
- if (nextIndex < 0) {
- nextIndex = treeItems.length - 1;
- }
- }
- } else {
- nextIndex = currentIndex === -1 ? 0 : currentIndex < treeItems.length - 1 ? currentIndex + 1 : 0;
- const startIndex = nextIndex;
- while (true) {
- if (canNodeFocus(treeItems, nextIndex)) {
- break;
- }
- nextIndex++;
- if (nextIndex === startIndex) {
- nextIndex = -1;
- break;
- }
- if (nextIndex >= treeItems.length) {
- nextIndex = 0;
- }
- }
- }
- nextIndex !== -1 && treeItems[nextIndex].focus();
- }
- if ([EVENT_CODE.left, EVENT_CODE.right].includes(code)) {
- ev.preventDefault();
- currentItem.click();
- }
- const hasInput = currentItem.querySelector('[type="checkbox"]');
- if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(code) && hasInput) {
- ev.preventDefault();
- hasInput.click();
- }
- };
- useEventListener(el$, "keydown", handleKeydown);
- const initTabIndex = () => {
- var _a2;
- if (!el$.value)
- return;
- const treeItems = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
- const checkboxItems = Array.from(el$.value.querySelectorAll("input[type=checkbox]"));
- checkboxItems.forEach((checkbox) => {
- checkbox.setAttribute("tabindex", "-1");
- });
- const checkedItem = el$.value.querySelectorAll(`.${ns.is("checked")}[role=treeitem]`);
- if (checkedItem.length) {
- checkedItem[0].setAttribute("tabindex", "0");
- return;
- }
- (_a2 = treeItems[0]) == null ? void 0 : _a2.setAttribute("tabindex", "0");
- };
- }
- // node_modules/element-plus/es/components/tree/src/tree.mjs
- var _sfc_main438 = defineComponent({
- name: "ElTree",
- components: { ElTreeNode },
- props: {
- data: {
- type: definePropType(Array),
- default: () => []
- },
- emptyText: {
- type: String
- },
- renderAfterExpand: {
- type: Boolean,
- default: true
- },
- nodeKey: String,
- checkStrictly: Boolean,
- defaultExpandAll: Boolean,
- expandOnClickNode: {
- type: Boolean,
- default: true
- },
- checkOnClickNode: Boolean,
- checkOnClickLeaf: {
- type: Boolean,
- default: true
- },
- checkDescendants: Boolean,
- autoExpandParent: {
- type: Boolean,
- default: true
- },
- defaultCheckedKeys: Array,
- defaultExpandedKeys: Array,
- currentNodeKey: [String, Number],
- renderContent: {
- type: definePropType(Function)
- },
- showCheckbox: Boolean,
- draggable: Boolean,
- allowDrag: {
- type: definePropType(Function)
- },
- allowDrop: {
- type: definePropType(Function)
- },
- props: {
- type: Object,
- default: () => ({
- children: "children",
- label: "label",
- disabled: "disabled"
- })
- },
- lazy: Boolean,
- highlightCurrent: Boolean,
- load: Function,
- filterNodeMethod: Function,
- accordion: Boolean,
- indent: {
- type: Number,
- default: 18
- },
- icon: {
- type: iconPropType
- }
- },
- emits: [
- "check-change",
- "current-change",
- "node-click",
- "node-contextmenu",
- "node-collapse",
- "node-expand",
- "check",
- "node-drag-start",
- "node-drag-end",
- "node-drop",
- "node-drag-leave",
- "node-drag-enter",
- "node-drag-over"
- ],
- setup(props2, ctx) {
- const { t } = useLocale();
- const ns = useNamespace("tree");
- const selectInfo = inject(selectKey, null);
- const store = ref(new TreeStore({
- key: props2.nodeKey,
- data: props2.data,
- lazy: props2.lazy,
- props: props2.props,
- load: props2.load,
- currentNodeKey: props2.currentNodeKey,
- checkStrictly: props2.checkStrictly,
- checkDescendants: props2.checkDescendants,
- defaultCheckedKeys: props2.defaultCheckedKeys,
- defaultExpandedKeys: props2.defaultExpandedKeys,
- autoExpandParent: props2.autoExpandParent,
- defaultExpandAll: props2.defaultExpandAll,
- filterNodeMethod: props2.filterNodeMethod
- }));
- store.value.initialize();
- const root2 = ref(store.value.root);
- const currentNode = ref(null);
- const el$ = ref(null);
- const dropIndicator$ = ref(null);
- const { broadcastExpanded } = useNodeExpandEventBroadcast(props2);
- const { dragState } = useDragNodeHandler({
- props: props2,
- ctx,
- el$,
- dropIndicator$,
- store
- });
- useKeydown({ el$ }, store);
- const isEmpty3 = computed(() => {
- const { childNodes } = root2.value;
- const hasFilteredOptions = selectInfo ? selectInfo.hasFilteredOptions !== 0 : false;
- return (!childNodes || childNodes.length === 0 || childNodes.every(({ visible }) => !visible)) && !hasFilteredOptions;
- });
- watch(() => props2.currentNodeKey, (newVal) => {
- store.value.setCurrentNodeKey(newVal != null ? newVal : null);
- });
- watch(() => props2.defaultCheckedKeys, (newVal, oldVal) => {
- if (isEqual_default(newVal, oldVal))
- return;
- store.value.setDefaultCheckedKey(newVal != null ? newVal : []);
- });
- watch(() => props2.defaultExpandedKeys, (newVal) => {
- store.value.setDefaultExpandedKeys(newVal != null ? newVal : []);
- });
- watch(() => props2.data, (newVal) => {
- store.value.setData(newVal);
- }, { deep: true });
- watch(() => props2.checkStrictly, (newVal) => {
- store.value.checkStrictly = newVal;
- });
- const filter2 = (value) => {
- if (!props2.filterNodeMethod)
- throw new Error("[Tree] filterNodeMethod is required when filter");
- store.value.filter(value);
- };
- const getNodeKey$1 = (node) => {
- return getNodeKey(props2.nodeKey, node.data);
- };
- const getNodePath = (data) => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in getNodePath");
- const node = store.value.getNode(data);
- if (!node)
- return [];
- const path = [node.data];
- let parent2 = node.parent;
- while (parent2 && parent2 !== root2.value) {
- path.push(parent2.data);
- parent2 = parent2.parent;
- }
- return path.reverse();
- };
- const getCheckedNodes = (leafOnly, includeHalfChecked) => {
- return store.value.getCheckedNodes(leafOnly, includeHalfChecked);
- };
- const getCheckedKeys = (leafOnly) => {
- return store.value.getCheckedKeys(leafOnly);
- };
- const getCurrentNode = () => {
- const currentNode2 = store.value.getCurrentNode();
- return currentNode2 ? currentNode2.data : null;
- };
- const getCurrentKey = () => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in getCurrentKey");
- const currentNode2 = getCurrentNode();
- return currentNode2 ? currentNode2[props2.nodeKey] : null;
- };
- const setCheckedNodes = (nodes, leafOnly) => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in setCheckedNodes");
- store.value.setCheckedNodes(nodes, leafOnly);
- };
- const setCheckedKeys = (keys3, leafOnly) => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in setCheckedKeys");
- store.value.setCheckedKeys(keys3, leafOnly);
- };
- const setChecked = (data, checked, deep) => {
- store.value.setChecked(data, checked, deep);
- };
- const getHalfCheckedNodes = () => {
- return store.value.getHalfCheckedNodes();
- };
- const getHalfCheckedKeys = () => {
- return store.value.getHalfCheckedKeys();
- };
- const setCurrentNode = (node, shouldAutoExpandParent = true) => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in setCurrentNode");
- handleCurrentChange(store, ctx.emit, () => {
- broadcastExpanded(node);
- store.value.setUserCurrentNode(node, shouldAutoExpandParent);
- });
- };
- const setCurrentKey = (key, shouldAutoExpandParent = true) => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in setCurrentKey");
- handleCurrentChange(store, ctx.emit, () => {
- broadcastExpanded();
- store.value.setCurrentNodeKey(key != null ? key : null, shouldAutoExpandParent);
- });
- };
- const getNode = (data) => {
- return store.value.getNode(data);
- };
- const remove2 = (data) => {
- store.value.remove(data);
- };
- const append = (data, parentNode) => {
- store.value.append(data, parentNode);
- };
- const insertBefore = (data, refNode) => {
- store.value.insertBefore(data, refNode);
- };
- const insertAfter = (data, refNode) => {
- store.value.insertAfter(data, refNode);
- };
- const handleNodeExpand = (nodeData, node, instance) => {
- broadcastExpanded(node);
- ctx.emit("node-expand", nodeData, node, instance);
- };
- const updateKeyChildren = (key, data) => {
- if (!props2.nodeKey)
- throw new Error("[Tree] nodeKey is required in updateKeyChild");
- store.value.updateChildren(key, data);
- };
- provide(ROOT_TREE_INJECTION_KEY, {
- ctx,
- props: props2,
- store,
- root: root2,
- currentNode,
- instance: getCurrentInstance()
- });
- provide(formItemContextKey, void 0);
- return {
- ns,
- store,
- root: root2,
- currentNode,
- dragState,
- el$,
- dropIndicator$,
- isEmpty: isEmpty3,
- filter: filter2,
- getNodeKey: getNodeKey$1,
- getNodePath,
- getCheckedNodes,
- getCheckedKeys,
- getCurrentNode,
- getCurrentKey,
- setCheckedNodes,
- setCheckedKeys,
- setChecked,
- getHalfCheckedNodes,
- getHalfCheckedKeys,
- setCurrentNode,
- setCurrentKey,
- t,
- getNode,
- remove: remove2,
- append,
- insertBefore,
- insertAfter,
- handleNodeExpand,
- updateKeyChildren
- };
- }
- });
- function _sfc_render24(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_tree_node = resolveComponent("el-tree-node");
- return openBlock(), createElementBlock("div", {
- ref: "el$",
- class: normalizeClass([
- _ctx.ns.b(),
- _ctx.ns.is("dragging", !!_ctx.dragState.draggingNode),
- _ctx.ns.is("drop-not-allow", !_ctx.dragState.allowDrop),
- _ctx.ns.is("drop-inner", _ctx.dragState.dropType === "inner"),
- { [_ctx.ns.m("highlight-current")]: _ctx.highlightCurrent }
- ]),
- role: "tree"
- }, [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.root.childNodes, (child) => {
- return openBlock(), createBlock(_component_el_tree_node, {
- key: _ctx.getNodeKey(child),
- node: child,
- props: _ctx.props,
- accordion: _ctx.accordion,
- "render-after-expand": _ctx.renderAfterExpand,
- "show-checkbox": _ctx.showCheckbox,
- "render-content": _ctx.renderContent,
- onNodeExpand: _ctx.handleNodeExpand
- }, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
- }), 128)),
- _ctx.isEmpty ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(_ctx.ns.e("empty-block"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => {
- var _a2;
- return [
- createBaseVNode("span", {
- class: normalizeClass(_ctx.ns.e("empty-text"))
- }, toDisplayString((_a2 = _ctx.emptyText) != null ? _a2 : _ctx.t("el.tree.emptyText")), 3)
- ];
- })
- ], 2)) : createCommentVNode("v-if", true),
- withDirectives(createBaseVNode("div", {
- ref: "dropIndicator$",
- class: normalizeClass(_ctx.ns.e("drop-indicator"))
- }, null, 2), [
- [vShow, _ctx.dragState.showDropIndicator]
- ])
- ], 2);
- }
- var Tree = _export_sfc(_sfc_main438, [["render", _sfc_render24], ["__file", "tree.vue"]]);
- // node_modules/element-plus/es/components/tree/index.mjs
- var ElTree = withInstall(Tree);
- // node_modules/element-plus/es/components/tree-select/src/select.mjs
- var useSelect3 = (props2, { attrs, emit }, {
- select,
- tree,
- key
- }) => {
- const ns = useNamespace("tree-select");
- watch(() => props2.data, () => {
- if (props2.filterable) {
- nextTick(() => {
- var _a2, _b;
- (_b = tree.value) == null ? void 0 : _b.filter((_a2 = select.value) == null ? void 0 : _a2.states.inputValue);
- });
- }
- }, { flush: "post" });
- const result2 = {
- ...pick_default(toRefs(props2), Object.keys(ElSelect.props)),
- ...attrs,
- class: computed(() => attrs.class),
- style: computed(() => attrs.style),
- "onUpdate:modelValue": (value) => emit(UPDATE_MODEL_EVENT, value),
- valueKey: key,
- popperClass: computed(() => {
- const classes = [ns.e("popper")];
- if (props2.popperClass)
- classes.push(props2.popperClass);
- return classes.join(" ");
- }),
- filterMethod: (keyword = "") => {
- var _a2;
- if (props2.filterMethod) {
- props2.filterMethod(keyword);
- } else if (props2.remoteMethod) {
- props2.remoteMethod(keyword);
- } else {
- (_a2 = tree.value) == null ? void 0 : _a2.filter(keyword);
- }
- }
- };
- return result2;
- };
- // node_modules/element-plus/es/components/tree-select/src/tree-select-option.mjs
- var component = defineComponent({
- extends: ElOption,
- setup(props2, ctx) {
- const result2 = ElOption.setup(props2, ctx);
- delete result2.selectOptionClick;
- const vm = getCurrentInstance().proxy;
- nextTick(() => {
- if (!result2.select.states.cachedOptions.get(vm.value)) {
- result2.select.onOptionCreate(vm);
- }
- });
- watch(() => ctx.attrs.visible, (val) => {
- nextTick(() => {
- result2.states.visible = val;
- });
- }, {
- immediate: true
- });
- return result2;
- },
- methods: {
- selectOptionClick() {
- this.$el.parentElement.click();
- }
- }
- });
- // node_modules/element-plus/es/components/tree-select/src/utils.mjs
- function isValidValue2(val) {
- return val || val === 0;
- }
- function isValidArray(val) {
- return isArray(val) && val.length;
- }
- function toValidArray(val) {
- return isArray(val) ? val : isValidValue2(val) ? [val] : [];
- }
- function treeFind(treeData, findCallback, getChildren, resultCallback, parent2) {
- for (let i = 0; i < treeData.length; i++) {
- const data = treeData[i];
- if (findCallback(data, i, treeData, parent2)) {
- return resultCallback ? resultCallback(data, i, treeData, parent2) : data;
- } else {
- const children = getChildren(data);
- if (isValidArray(children)) {
- const find2 = treeFind(children, findCallback, getChildren, resultCallback, data);
- if (find2)
- return find2;
- }
- }
- }
- }
- function treeEach(treeData, callback, getChildren, parent2) {
- for (let i = 0; i < treeData.length; i++) {
- const data = treeData[i];
- callback(data, i, treeData, parent2);
- const children = getChildren(data);
- if (isValidArray(children)) {
- treeEach(children, callback, getChildren, data);
- }
- }
- }
- // node_modules/element-plus/es/components/tree-select/src/tree.mjs
- var useTree2 = (props2, { attrs, slots, emit }, {
- select,
- tree,
- key
- }) => {
- watch([() => props2.modelValue, tree], () => {
- if (props2.showCheckbox) {
- nextTick(() => {
- const treeInstance = tree.value;
- if (treeInstance && !isEqual_default(treeInstance.getCheckedKeys(), toValidArray(props2.modelValue))) {
- treeInstance.setCheckedKeys(toValidArray(props2.modelValue));
- }
- });
- }
- }, {
- immediate: true,
- deep: true
- });
- const propsMap = computed(() => ({
- value: key.value,
- label: "label",
- children: "children",
- disabled: "disabled",
- isLeaf: "isLeaf",
- ...props2.props
- }));
- const getNodeValByProp = (prop, data) => {
- var _a2;
- const propVal = propsMap.value[prop];
- if (isFunction(propVal)) {
- return propVal(data, (_a2 = tree.value) == null ? void 0 : _a2.getNode(getNodeValByProp("value", data)));
- } else {
- return data[propVal];
- }
- };
- const defaultExpandedParentKeys = toValidArray(props2.modelValue).map((value) => {
- return treeFind(props2.data || [], (data) => getNodeValByProp("value", data) === value, (data) => getNodeValByProp("children", data), (data, index, array4, parent2) => parent2 && getNodeValByProp("value", parent2));
- }).filter((item) => isValidValue2(item));
- const cacheOptions = computed(() => {
- if (!props2.renderAfterExpand && !props2.lazy)
- return [];
- const options = [];
- treeEach(props2.data.concat(props2.cacheData), (node) => {
- const value = getNodeValByProp("value", node);
- options.push({
- value,
- currentLabel: getNodeValByProp("label", node),
- isDisabled: getNodeValByProp("disabled", node)
- });
- }, (data) => getNodeValByProp("children", data));
- return options;
- });
- const getChildCheckedKeys = () => {
- var _a2;
- return (_a2 = tree.value) == null ? void 0 : _a2.getCheckedKeys().filter((checkedKey) => {
- var _a22;
- const node = (_a22 = tree.value) == null ? void 0 : _a22.getNode(checkedKey);
- return !isNil_default(node) && isEmpty2(node.childNodes);
- });
- };
- return {
- ...pick_default(toRefs(props2), Object.keys(ElTree.props)),
- ...attrs,
- nodeKey: key,
- expandOnClickNode: computed(() => {
- return !props2.checkStrictly && props2.expandOnClickNode;
- }),
- defaultExpandedKeys: computed(() => {
- return props2.defaultExpandedKeys ? props2.defaultExpandedKeys.concat(defaultExpandedParentKeys) : defaultExpandedParentKeys;
- }),
- renderContent: (h3, { node, data, store }) => {
- return h3(component, {
- value: getNodeValByProp("value", data),
- label: getNodeValByProp("label", data),
- disabled: getNodeValByProp("disabled", data),
- visible: node.visible
- }, props2.renderContent ? () => props2.renderContent(h3, { node, data, store }) : slots.default ? () => slots.default({ node, data, store }) : void 0);
- },
- filterNodeMethod: (value, data, node) => {
- if (props2.filterNodeMethod)
- return props2.filterNodeMethod(value, data, node);
- if (!value)
- return true;
- const regexp4 = new RegExp(escapeStringRegexp(value), "i");
- return regexp4.test(getNodeValByProp("label", data) || "");
- },
- onNodeClick: (data, node, e) => {
- var _a2, _b, _c, _d;
- (_a2 = attrs.onNodeClick) == null ? void 0 : _a2.call(attrs, data, node, e);
- if (props2.showCheckbox && props2.checkOnClickNode)
- return;
- if (!props2.showCheckbox && (props2.checkStrictly || node.isLeaf)) {
- if (!getNodeValByProp("disabled", data)) {
- const option = (_b = select.value) == null ? void 0 : _b.states.options.get(getNodeValByProp("value", data));
- (_c = select.value) == null ? void 0 : _c.handleOptionSelect(option);
- }
- } else if (props2.expandOnClickNode) {
- e.proxy.handleExpandIconClick();
- }
- (_d = select.value) == null ? void 0 : _d.focus();
- },
- onCheck: (data, params) => {
- var _a2;
- if (!props2.showCheckbox)
- return;
- const dataValue = getNodeValByProp("value", data);
- const dataMap = {};
- treeEach([tree.value.store.root], (node) => dataMap[node.key] = node, (node) => node.childNodes);
- const uncachedCheckedKeys = params.checkedKeys;
- const cachedKeys = props2.multiple ? toValidArray(props2.modelValue).filter((item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item)) : [];
- const checkedKeys = cachedKeys.concat(uncachedCheckedKeys);
- if (props2.checkStrictly) {
- emit(UPDATE_MODEL_EVENT, props2.multiple ? checkedKeys : checkedKeys.includes(dataValue) ? dataValue : void 0);
- } else {
- if (props2.multiple) {
- const childKeys = getChildCheckedKeys();
- emit(UPDATE_MODEL_EVENT, cachedKeys.concat(childKeys));
- } else {
- const firstLeaf = treeFind([data], (data2) => !isValidArray(getNodeValByProp("children", data2)) && !getNodeValByProp("disabled", data2), (data2) => getNodeValByProp("children", data2));
- const firstLeafKey = firstLeaf ? getNodeValByProp("value", firstLeaf) : void 0;
- const hasCheckedChild = isValidValue2(props2.modelValue) && !!treeFind([data], (data2) => getNodeValByProp("value", data2) === props2.modelValue, (data2) => getNodeValByProp("children", data2));
- emit(UPDATE_MODEL_EVENT, firstLeafKey === props2.modelValue || hasCheckedChild ? void 0 : firstLeafKey);
- }
- }
- nextTick(() => {
- var _a22;
- const checkedKeys2 = toValidArray(props2.modelValue);
- tree.value.setCheckedKeys(checkedKeys2);
- (_a22 = attrs.onCheck) == null ? void 0 : _a22.call(attrs, data, {
- checkedKeys: tree.value.getCheckedKeys(),
- checkedNodes: tree.value.getCheckedNodes(),
- halfCheckedKeys: tree.value.getHalfCheckedKeys(),
- halfCheckedNodes: tree.value.getHalfCheckedNodes()
- });
- });
- (_a2 = select.value) == null ? void 0 : _a2.focus();
- },
- onNodeExpand: (data, node, e) => {
- var _a2;
- (_a2 = attrs.onNodeExpand) == null ? void 0 : _a2.call(attrs, data, node, e);
- nextTick(() => {
- if (!props2.checkStrictly && props2.lazy && props2.multiple && node.checked) {
- const dataMap = {};
- const uncachedCheckedKeys = tree.value.getCheckedKeys();
- treeEach([tree.value.store.root], (node2) => dataMap[node2.key] = node2, (node2) => node2.childNodes);
- const cachedKeys = toValidArray(props2.modelValue).filter((item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item));
- const childKeys = getChildCheckedKeys();
- emit(UPDATE_MODEL_EVENT, cachedKeys.concat(childKeys));
- }
- });
- },
- cacheOptions
- };
- };
- // node_modules/element-plus/es/components/tree-select/src/cache-options.mjs
- var CacheOptions = defineComponent({
- props: {
- data: {
- type: Array,
- default: () => []
- }
- },
- setup(props2) {
- const select = inject(selectKey);
- watch(() => props2.data, () => {
- var _a2;
- props2.data.forEach((item) => {
- if (!select.states.cachedOptions.has(item.value)) {
- select.states.cachedOptions.set(item.value, item);
- }
- });
- const inputs = ((_a2 = select.selectRef) == null ? void 0 : _a2.querySelectorAll("input")) || [];
- if (isClient && !Array.from(inputs).includes(document.activeElement)) {
- select.setSelected();
- }
- }, { flush: "post", immediate: true });
- return () => void 0;
- }
- });
- // node_modules/element-plus/es/components/tree-select/src/tree-select.mjs
- var _sfc_main439 = defineComponent({
- name: "ElTreeSelect",
- inheritAttrs: false,
- props: {
- ...ElSelect.props,
- ...ElTree.props,
- cacheData: {
- type: Array,
- default: () => []
- }
- },
- setup(props2, context) {
- const { slots, expose } = context;
- const select = ref();
- const tree = ref();
- const key = computed(() => props2.nodeKey || props2.valueKey || "value");
- const selectProps2 = useSelect3(props2, context, { select, tree, key });
- const { cacheOptions, ...treeProps2 } = useTree2(props2, context, {
- select,
- tree,
- key
- });
- const methods = reactive({});
- expose(methods);
- onMounted(() => {
- Object.assign(methods, {
- ...pick_default(tree.value, [
- "filter",
- "updateKeyChildren",
- "getCheckedNodes",
- "setCheckedNodes",
- "getCheckedKeys",
- "setCheckedKeys",
- "setChecked",
- "getHalfCheckedNodes",
- "getHalfCheckedKeys",
- "getCurrentKey",
- "getCurrentNode",
- "setCurrentKey",
- "setCurrentNode",
- "getNode",
- "remove",
- "append",
- "insertBefore",
- "insertAfter"
- ]),
- ...pick_default(select.value, ["focus", "blur", "selectedLabel"])
- });
- });
- return () => h(ElSelect, reactive({
- ...selectProps2,
- ref: (ref2) => select.value = ref2
- }), {
- ...slots,
- default: () => [
- h(CacheOptions, { data: cacheOptions.value }),
- h(ElTree, reactive({
- ...treeProps2,
- ref: (ref2) => tree.value = ref2
- }))
- ]
- });
- }
- });
- var TreeSelect = _export_sfc(_sfc_main439, [["__file", "tree-select.vue"]]);
- // node_modules/element-plus/es/components/tree-select/index.mjs
- var ElTreeSelect = withInstall(TreeSelect);
- // node_modules/element-plus/es/components/tree-v2/src/virtual-tree.mjs
- var ROOT_TREE_INJECTION_KEY2 = Symbol();
- var EMPTY_NODE = {
- key: -1,
- level: -1,
- data: {}
- };
- var TreeOptionsEnum = ((TreeOptionsEnum2) => {
- TreeOptionsEnum2["KEY"] = "id";
- TreeOptionsEnum2["LABEL"] = "label";
- TreeOptionsEnum2["CHILDREN"] = "children";
- TreeOptionsEnum2["DISABLED"] = "disabled";
- TreeOptionsEnum2["CLASS"] = "";
- return TreeOptionsEnum2;
- })(TreeOptionsEnum || {});
- var SetOperationEnum = ((SetOperationEnum2) => {
- SetOperationEnum2["ADD"] = "add";
- SetOperationEnum2["DELETE"] = "delete";
- return SetOperationEnum2;
- })(SetOperationEnum || {});
- var itemSize2 = {
- type: Number,
- default: 26
- };
- var treeProps = buildProps({
- data: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- emptyText: {
- type: String
- },
- height: {
- type: Number,
- default: 200
- },
- props: {
- type: definePropType(Object),
- default: () => mutable({
- children: "children",
- label: "label",
- disabled: "disabled",
- value: "id",
- class: ""
- /* CLASS */
- })
- },
- highlightCurrent: Boolean,
- showCheckbox: Boolean,
- defaultCheckedKeys: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- checkStrictly: Boolean,
- defaultExpandedKeys: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- indent: {
- type: Number,
- default: 16
- },
- itemSize: itemSize2,
- icon: {
- type: iconPropType
- },
- expandOnClickNode: {
- type: Boolean,
- default: true
- },
- checkOnClickNode: Boolean,
- checkOnClickLeaf: {
- type: Boolean,
- default: true
- },
- currentNodeKey: {
- type: definePropType([String, Number])
- },
- accordion: Boolean,
- filterMethod: {
- type: definePropType(Function)
- },
- perfMode: {
- type: Boolean,
- default: true
- },
- scrollbarAlwaysOn: Boolean
- });
- var treeNodeProps = buildProps({
- node: {
- type: definePropType(Object),
- default: () => mutable(EMPTY_NODE)
- },
- expanded: Boolean,
- checked: Boolean,
- indeterminate: Boolean,
- showCheckbox: Boolean,
- disabled: Boolean,
- current: Boolean,
- hiddenExpandIcon: Boolean,
- itemSize: itemSize2
- });
- var treeNodeContentProps = buildProps({
- node: {
- type: definePropType(Object),
- required: true
- }
- });
- var NODE_CLICK = "node-click";
- var NODE_DROP = "node-drop";
- var NODE_EXPAND = "node-expand";
- var NODE_COLLAPSE = "node-collapse";
- var CURRENT_CHANGE = "current-change";
- var NODE_CHECK = "check";
- var NODE_CHECK_CHANGE = "check-change";
- var NODE_CONTEXTMENU = "node-contextmenu";
- var treeEmits = {
- [NODE_CLICK]: (data, node, e) => data && node && e,
- [NODE_DROP]: (data, node, e) => data && node && e,
- [NODE_EXPAND]: (data, node) => data && node,
- [NODE_COLLAPSE]: (data, node) => data && node,
- [CURRENT_CHANGE]: (data, node) => data && node,
- [NODE_CHECK]: (data, checkedInfo) => data && checkedInfo,
- [NODE_CHECK_CHANGE]: (data, checked) => data && isBoolean2(checked),
- [NODE_CONTEXTMENU]: (evt, data, node) => evt && data && node
- };
- var treeNodeEmits = {
- click: (node, e) => !!(node && e),
- drop: (node, e) => !!(node && e),
- toggle: (node) => !!node,
- check: (node, checked) => node && isBoolean2(checked)
- };
- // node_modules/element-plus/es/components/tree-v2/src/composables/useCheck.mjs
- function useCheck2(props2, tree) {
- const checkedKeys = ref(/* @__PURE__ */ new Set());
- const indeterminateKeys = ref(/* @__PURE__ */ new Set());
- const { emit } = getCurrentInstance();
- watch([() => tree.value, () => props2.defaultCheckedKeys], () => {
- return nextTick(() => {
- _setCheckedKeys(props2.defaultCheckedKeys);
- });
- }, {
- immediate: true
- });
- const updateCheckedKeys = () => {
- if (!tree.value || !props2.showCheckbox || props2.checkStrictly) {
- return;
- }
- const { levelTreeNodeMap, maxLevel } = tree.value;
- const checkedKeySet = checkedKeys.value;
- const indeterminateKeySet = /* @__PURE__ */ new Set();
- for (let level = maxLevel - 1; level >= 1; --level) {
- const nodes = levelTreeNodeMap.get(level);
- if (!nodes)
- continue;
- nodes.forEach((node) => {
- const children = node.children;
- if (children) {
- let allChecked = true;
- let hasChecked = false;
- for (const childNode of children) {
- const key = childNode.key;
- if (checkedKeySet.has(key)) {
- hasChecked = true;
- } else if (indeterminateKeySet.has(key)) {
- allChecked = false;
- hasChecked = true;
- break;
- } else {
- allChecked = false;
- }
- }
- if (allChecked) {
- checkedKeySet.add(node.key);
- } else if (hasChecked) {
- indeterminateKeySet.add(node.key);
- checkedKeySet.delete(node.key);
- } else {
- checkedKeySet.delete(node.key);
- indeterminateKeySet.delete(node.key);
- }
- }
- });
- }
- indeterminateKeys.value = indeterminateKeySet;
- };
- const isChecked = (node) => checkedKeys.value.has(node.key);
- const isIndeterminate = (node) => indeterminateKeys.value.has(node.key);
- const toggleCheckbox = (node, isChecked2, nodeClick = true, immediateUpdate = true) => {
- const checkedKeySet = checkedKeys.value;
- const toggle = (node2, checked) => {
- checkedKeySet[checked ? SetOperationEnum.ADD : SetOperationEnum.DELETE](node2.key);
- const children = node2.children;
- if (!props2.checkStrictly && children) {
- children.forEach((childNode) => {
- if (!childNode.disabled) {
- toggle(childNode, checked);
- }
- });
- }
- };
- toggle(node, isChecked2);
- if (immediateUpdate) {
- updateCheckedKeys();
- }
- if (nodeClick) {
- afterNodeCheck(node, isChecked2);
- }
- };
- const afterNodeCheck = (node, checked) => {
- const { checkedNodes, checkedKeys: checkedKeys2 } = getChecked();
- const { halfCheckedNodes, halfCheckedKeys } = getHalfChecked();
- emit(NODE_CHECK, node.data, {
- checkedKeys: checkedKeys2,
- checkedNodes,
- halfCheckedKeys,
- halfCheckedNodes
- });
- emit(NODE_CHECK_CHANGE, node.data, checked);
- };
- function getCheckedKeys(leafOnly = false) {
- return getChecked(leafOnly).checkedKeys;
- }
- function getCheckedNodes(leafOnly = false) {
- return getChecked(leafOnly).checkedNodes;
- }
- function getHalfCheckedKeys() {
- return getHalfChecked().halfCheckedKeys;
- }
- function getHalfCheckedNodes() {
- return getHalfChecked().halfCheckedNodes;
- }
- function getChecked(leafOnly = false) {
- const checkedNodes = [];
- const keys3 = [];
- if ((tree == null ? void 0 : tree.value) && props2.showCheckbox) {
- const { treeNodeMap } = tree.value;
- checkedKeys.value.forEach((key) => {
- const node = treeNodeMap.get(key);
- if (node && (!leafOnly || leafOnly && node.isLeaf)) {
- keys3.push(key);
- checkedNodes.push(node.data);
- }
- });
- }
- return {
- checkedKeys: keys3,
- checkedNodes
- };
- }
- function getHalfChecked() {
- const halfCheckedNodes = [];
- const halfCheckedKeys = [];
- if ((tree == null ? void 0 : tree.value) && props2.showCheckbox) {
- const { treeNodeMap } = tree.value;
- indeterminateKeys.value.forEach((key) => {
- const node = treeNodeMap.get(key);
- if (node) {
- halfCheckedKeys.push(key);
- halfCheckedNodes.push(node.data);
- }
- });
- }
- return {
- halfCheckedNodes,
- halfCheckedKeys
- };
- }
- function setCheckedKeys(keys3) {
- checkedKeys.value.clear();
- indeterminateKeys.value.clear();
- nextTick(() => {
- _setCheckedKeys(keys3);
- });
- }
- function setChecked(key, isChecked2) {
- if ((tree == null ? void 0 : tree.value) && props2.showCheckbox) {
- const node = tree.value.treeNodeMap.get(key);
- if (node) {
- toggleCheckbox(node, isChecked2, false);
- }
- }
- }
- function _setCheckedKeys(keys3) {
- if (tree == null ? void 0 : tree.value) {
- const { treeNodeMap } = tree.value;
- if (props2.showCheckbox && treeNodeMap && (keys3 == null ? void 0 : keys3.length) > 0) {
- for (const key of keys3) {
- const node = treeNodeMap.get(key);
- if (node && !isChecked(node)) {
- toggleCheckbox(node, true, false, false);
- }
- }
- updateCheckedKeys();
- }
- }
- }
- return {
- updateCheckedKeys,
- toggleCheckbox,
- isChecked,
- isIndeterminate,
- getCheckedKeys,
- getCheckedNodes,
- getHalfCheckedKeys,
- getHalfCheckedNodes,
- setChecked,
- setCheckedKeys
- };
- }
- // node_modules/element-plus/es/components/tree-v2/src/composables/useFilter.mjs
- function useFilter(props2, tree) {
- const hiddenNodeKeySet = ref(/* @__PURE__ */ new Set([]));
- const hiddenExpandIconKeySet = ref(/* @__PURE__ */ new Set([]));
- const filterable = computed(() => {
- return isFunction(props2.filterMethod);
- });
- function doFilter(query) {
- var _a2;
- if (!filterable.value) {
- return;
- }
- const expandKeySet = /* @__PURE__ */ new Set();
- const hiddenExpandIconKeys = hiddenExpandIconKeySet.value;
- const hiddenKeys = hiddenNodeKeySet.value;
- const family = [];
- const nodes = ((_a2 = tree.value) == null ? void 0 : _a2.treeNodes) || [];
- const filter2 = props2.filterMethod;
- hiddenKeys.clear();
- function traverse(nodes2) {
- nodes2.forEach((node) => {
- family.push(node);
- if (filter2 == null ? void 0 : filter2(query, node.data, node)) {
- family.forEach((member) => {
- expandKeySet.add(member.key);
- });
- } else if (node.isLeaf) {
- hiddenKeys.add(node.key);
- }
- const children = node.children;
- if (children) {
- traverse(children);
- }
- if (!node.isLeaf) {
- if (!expandKeySet.has(node.key)) {
- hiddenKeys.add(node.key);
- } else if (children) {
- let allHidden = true;
- for (const childNode of children) {
- if (!hiddenKeys.has(childNode.key)) {
- allHidden = false;
- break;
- }
- }
- if (allHidden) {
- hiddenExpandIconKeys.add(node.key);
- } else {
- hiddenExpandIconKeys.delete(node.key);
- }
- }
- }
- family.pop();
- });
- }
- traverse(nodes);
- return expandKeySet;
- }
- function isForceHiddenExpandIcon(node) {
- return hiddenExpandIconKeySet.value.has(node.key);
- }
- return {
- hiddenExpandIconKeySet,
- hiddenNodeKeySet,
- doFilter,
- isForceHiddenExpandIcon
- };
- }
- // node_modules/element-plus/es/components/tree-v2/src/composables/useTree.mjs
- function useTree3(props2, emit) {
- const expandedKeySet = ref(/* @__PURE__ */ new Set());
- const currentKey = ref();
- const tree = shallowRef();
- const listRef = ref();
- const {
- isIndeterminate,
- isChecked,
- toggleCheckbox,
- getCheckedKeys,
- getCheckedNodes,
- getHalfCheckedKeys,
- getHalfCheckedNodes,
- setChecked,
- setCheckedKeys
- } = useCheck2(props2, tree);
- const { doFilter, hiddenNodeKeySet, isForceHiddenExpandIcon } = useFilter(props2, tree);
- const valueKey = computed(() => {
- var _a2;
- return ((_a2 = props2.props) == null ? void 0 : _a2.value) || TreeOptionsEnum.KEY;
- });
- const childrenKey = computed(() => {
- var _a2;
- return ((_a2 = props2.props) == null ? void 0 : _a2.children) || TreeOptionsEnum.CHILDREN;
- });
- const disabledKey = computed(() => {
- var _a2;
- return ((_a2 = props2.props) == null ? void 0 : _a2.disabled) || TreeOptionsEnum.DISABLED;
- });
- const labelKey = computed(() => {
- var _a2;
- return ((_a2 = props2.props) == null ? void 0 : _a2.label) || TreeOptionsEnum.LABEL;
- });
- const flattenTree = computed(() => {
- var _a2;
- const expandedKeys = expandedKeySet.value;
- const hiddenKeys = hiddenNodeKeySet.value;
- const flattenNodes = [];
- const nodes = ((_a2 = tree.value) == null ? void 0 : _a2.treeNodes) || [];
- const stack = [];
- for (let i = nodes.length - 1; i >= 0; --i) {
- stack.push(nodes[i]);
- }
- while (stack.length) {
- const node = stack.pop();
- if (hiddenKeys.has(node.key))
- continue;
- flattenNodes.push(node);
- if (node.children && expandedKeys.has(node.key)) {
- for (let i = node.children.length - 1; i >= 0; --i) {
- stack.push(node.children[i]);
- }
- }
- }
- return flattenNodes;
- });
- const isNotEmpty = computed(() => {
- return flattenTree.value.length > 0;
- });
- function createTree(data) {
- const treeNodeMap = /* @__PURE__ */ new Map();
- const levelTreeNodeMap = /* @__PURE__ */ new Map();
- let maxLevel = 1;
- function traverse(nodes, level = 1, parent2 = void 0) {
- var _a2;
- const siblings = [];
- for (const rawNode of nodes) {
- const value = getKey(rawNode);
- const node = {
- level,
- key: value,
- data: rawNode
- };
- node.label = getLabel(rawNode);
- node.parent = parent2;
- const children = getChildren(rawNode);
- node.disabled = getDisabled(rawNode);
- node.isLeaf = !children || children.length === 0;
- node.expanded = expandedKeySet.value.has(value);
- if (children && children.length) {
- node.children = traverse(children, level + 1, node);
- }
- siblings.push(node);
- treeNodeMap.set(value, node);
- if (!levelTreeNodeMap.has(level)) {
- levelTreeNodeMap.set(level, []);
- }
- (_a2 = levelTreeNodeMap.get(level)) == null ? void 0 : _a2.push(node);
- }
- if (level > maxLevel) {
- maxLevel = level;
- }
- return siblings;
- }
- const treeNodes = traverse(data);
- return {
- treeNodeMap,
- levelTreeNodeMap,
- maxLevel,
- treeNodes
- };
- }
- function filter2(query) {
- const keys3 = doFilter(query);
- if (keys3) {
- expandedKeySet.value = keys3;
- }
- }
- function getChildren(node) {
- return node[childrenKey.value];
- }
- function getKey(node) {
- if (!node) {
- return "";
- }
- return node[valueKey.value];
- }
- function getDisabled(node) {
- return node[disabledKey.value];
- }
- function getLabel(node) {
- return node[labelKey.value];
- }
- function toggleExpand(node) {
- const expandedKeys = expandedKeySet.value;
- if (expandedKeys.has(node.key)) {
- collapseNode(node);
- } else {
- expandNode(node);
- }
- }
- function setExpandedKeys(keys3) {
- const expandedKeys = /* @__PURE__ */ new Set();
- const nodeMap = tree.value.treeNodeMap;
- keys3.forEach((k) => {
- let node = nodeMap.get(k);
- while (node && !expandedKeys.has(node.key)) {
- expandedKeys.add(node.key);
- node.expanded = true;
- node = node.parent;
- }
- });
- expandedKeySet.value = expandedKeys;
- }
- function handleNodeClick(node, e) {
- emit(NODE_CLICK, node.data, node, e);
- handleCurrentChange2(node);
- if (props2.expandOnClickNode) {
- toggleExpand(node);
- }
- if (props2.showCheckbox && (props2.checkOnClickNode || node.isLeaf && props2.checkOnClickLeaf) && !node.disabled) {
- toggleCheckbox(node, !isChecked(node), true);
- }
- }
- function handleNodeDrop(node, e) {
- emit(NODE_DROP, node.data, node, e);
- }
- function handleCurrentChange2(node) {
- if (!isCurrent(node)) {
- currentKey.value = node.key;
- emit(CURRENT_CHANGE, node.data, node);
- }
- }
- function handleNodeCheck(node, checked) {
- toggleCheckbox(node, checked);
- }
- function expandNode(node) {
- const keySet = expandedKeySet.value;
- if (tree.value && props2.accordion) {
- const { treeNodeMap } = tree.value;
- keySet.forEach((key) => {
- const treeNode = treeNodeMap.get(key);
- if (node && node.level === (treeNode == null ? void 0 : treeNode.level)) {
- keySet.delete(key);
- treeNode.expanded = false;
- }
- });
- }
- keySet.add(node.key);
- node.expanded = true;
- emit(NODE_EXPAND, node.data, node);
- }
- function collapseNode(node) {
- expandedKeySet.value.delete(node.key);
- node.expanded = false;
- emit(NODE_COLLAPSE, node.data, node);
- }
- function isDisabled(node) {
- return !!node.disabled;
- }
- function isCurrent(node) {
- const current = currentKey.value;
- return current !== void 0 && current === node.key;
- }
- function getCurrentNode() {
- var _a2, _b;
- if (!currentKey.value)
- return void 0;
- return (_b = (_a2 = tree.value) == null ? void 0 : _a2.treeNodeMap.get(currentKey.value)) == null ? void 0 : _b.data;
- }
- function getCurrentKey() {
- return currentKey.value;
- }
- function setCurrentKey(key) {
- currentKey.value = key;
- }
- function setData2(data) {
- tree.value = createTree(data);
- }
- function getNode(data) {
- var _a2;
- const key = isObject(data) ? getKey(data) : data;
- return (_a2 = tree.value) == null ? void 0 : _a2.treeNodeMap.get(key);
- }
- function scrollToNode(key, strategy = "auto") {
- const node = getNode(key);
- if (node && listRef.value) {
- listRef.value.scrollToItem(flattenTree.value.indexOf(node), strategy);
- }
- }
- function scrollTo(offset3) {
- var _a2;
- (_a2 = listRef.value) == null ? void 0 : _a2.scrollTo(offset3);
- }
- watch(() => props2.currentNodeKey, (key) => {
- currentKey.value = key;
- }, {
- immediate: true
- });
- watch(() => props2.defaultExpandedKeys, (key) => {
- expandedKeySet.value = new Set(key);
- }, {
- immediate: true
- });
- watch(() => props2.data, (data) => {
- setData2(data);
- }, {
- immediate: true
- });
- return {
- tree,
- flattenTree,
- isNotEmpty,
- listRef,
- getKey,
- getChildren,
- toggleExpand,
- toggleCheckbox,
- isChecked,
- isIndeterminate,
- isDisabled,
- isCurrent,
- isForceHiddenExpandIcon,
- handleNodeClick,
- handleNodeDrop,
- handleNodeCheck,
- getCurrentNode,
- getCurrentKey,
- setCurrentKey,
- getCheckedKeys,
- getCheckedNodes,
- getHalfCheckedKeys,
- getHalfCheckedNodes,
- setChecked,
- setCheckedKeys,
- filter: filter2,
- setData: setData2,
- getNode,
- expandNode,
- collapseNode,
- setExpandedKeys,
- scrollToNode,
- scrollTo
- };
- }
- // node_modules/element-plus/es/components/tree-v2/src/tree-node-content.mjs
- var ElNodeContent = defineComponent({
- name: "ElTreeNodeContent",
- props: treeNodeContentProps,
- setup(props2) {
- const tree = inject(ROOT_TREE_INJECTION_KEY2);
- const ns = useNamespace("tree");
- return () => {
- const node = props2.node;
- const { data } = node;
- 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]);
- };
- }
- });
- // node_modules/element-plus/es/components/tree-v2/src/tree-node.mjs
- var __default__111 = defineComponent({
- name: "ElTreeNode"
- });
- var _sfc_main440 = defineComponent({
- ...__default__111,
- props: treeNodeProps,
- emits: treeNodeEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const tree = inject(ROOT_TREE_INJECTION_KEY2);
- const ns = useNamespace("tree");
- const indent = computed(() => {
- var _a2;
- return (_a2 = tree == null ? void 0 : tree.props.indent) != null ? _a2 : 16;
- });
- const icon = computed(() => {
- var _a2;
- return (_a2 = tree == null ? void 0 : tree.props.icon) != null ? _a2 : caret_right_default;
- });
- const getNodeClass = (node) => {
- const nodeClassFunc = tree == null ? void 0 : tree.props.props.class;
- if (!nodeClassFunc)
- return {};
- let className;
- if (isFunction(nodeClassFunc)) {
- const { data } = node;
- className = nodeClassFunc(data, node);
- } else {
- className = nodeClassFunc;
- }
- return isString(className) ? { [className]: true } : className;
- };
- const handleClick = (e) => {
- emit("click", props2.node, e);
- };
- const handleDrop = (e) => {
- emit("drop", props2.node, e);
- };
- const handleExpandIconClick = () => {
- emit("toggle", props2.node);
- };
- const handleCheckChange = (value) => {
- emit("check", props2.node, value);
- };
- const handleContextMenu = (event) => {
- var _a2, _b, _c, _d;
- 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"]) {
- event.stopPropagation();
- event.preventDefault();
- }
- tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props2.node) == null ? void 0 : _d.data, props2.node);
- };
- return (_ctx, _cache) => {
- var _a2, _b, _c;
- return openBlock(), createElementBlock("div", {
- ref: "node$",
- class: normalizeClass([
- unref(ns).b("node"),
- unref(ns).is("expanded", _ctx.expanded),
- unref(ns).is("current", _ctx.current),
- unref(ns).is("focusable", !_ctx.disabled),
- unref(ns).is("checked", !_ctx.disabled && _ctx.checked),
- getNodeClass(_ctx.node)
- ]),
- role: "treeitem",
- tabindex: "-1",
- "aria-expanded": _ctx.expanded,
- "aria-disabled": _ctx.disabled,
- "aria-checked": _ctx.checked,
- "data-key": (_a2 = _ctx.node) == null ? void 0 : _a2.key,
- onClick: withModifiers(handleClick, ["stop"]),
- onContextmenu: handleContextMenu,
- onDragover: withModifiers(() => {
- }, ["prevent"]),
- onDragenter: withModifiers(() => {
- }, ["prevent"]),
- onDrop: withModifiers(handleDrop, ["stop"])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).be("node", "content")),
- style: normalizeStyle({
- paddingLeft: `${(_ctx.node.level - 1) * unref(indent)}px`,
- height: _ctx.itemSize + "px"
- })
- }, [
- unref(icon) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([
- unref(ns).is("leaf", !!((_b = _ctx.node) == null ? void 0 : _b.isLeaf)),
- unref(ns).is("hidden", _ctx.hiddenExpandIcon),
- {
- expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
- },
- unref(ns).be("node", "expand-icon")
- ]),
- onClick: withModifiers(handleExpandIconClick, ["stop"])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(icon))))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
- _ctx.showCheckbox ? (openBlock(), createBlock(unref(ElCheckbox), {
- key: 1,
- "model-value": _ctx.checked,
- indeterminate: _ctx.indeterminate,
- disabled: _ctx.disabled,
- onChange: handleCheckChange,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : createCommentVNode("v-if", true),
- createVNode(unref(ElNodeContent), {
- node: { ..._ctx.node, expanded: _ctx.expanded }
- }, null, 8, ["node"])
- ], 6)
- ], 42, ["aria-expanded", "aria-disabled", "aria-checked", "data-key", "onClick", "onDragover", "onDragenter", "onDrop"]);
- };
- }
- });
- var ElTreeNode2 = _export_sfc(_sfc_main440, [["__file", "tree-node.vue"]]);
- // node_modules/element-plus/es/components/tree-v2/src/tree.mjs
- var __default__112 = defineComponent({
- name: "ElTreeV2"
- });
- var _sfc_main441 = defineComponent({
- ...__default__112,
- props: treeProps,
- emits: treeEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const slots = useSlots();
- const treeNodeSize = computed(() => props2.itemSize);
- provide(ROOT_TREE_INJECTION_KEY2, {
- ctx: {
- emit,
- slots
- },
- props: props2,
- instance: getCurrentInstance()
- });
- provide(formItemContextKey, void 0);
- const { t } = useLocale();
- const ns = useNamespace("tree");
- const {
- flattenTree,
- isNotEmpty,
- listRef,
- toggleExpand,
- isIndeterminate,
- isChecked,
- isDisabled,
- isCurrent,
- isForceHiddenExpandIcon,
- handleNodeClick,
- handleNodeDrop,
- handleNodeCheck,
- toggleCheckbox,
- getCurrentNode,
- getCurrentKey,
- setCurrentKey,
- getCheckedKeys,
- getCheckedNodes,
- getHalfCheckedKeys,
- getHalfCheckedNodes,
- setChecked,
- setCheckedKeys,
- filter: filter2,
- setData: setData2,
- getNode,
- expandNode,
- collapseNode,
- setExpandedKeys,
- scrollToNode,
- scrollTo
- } = useTree3(props2, emit);
- expose({
- toggleCheckbox,
- getCurrentNode,
- getCurrentKey,
- setCurrentKey,
- getCheckedKeys,
- getCheckedNodes,
- getHalfCheckedKeys,
- getHalfCheckedNodes,
- setChecked,
- setCheckedKeys,
- filter: filter2,
- setData: setData2,
- getNode,
- expandNode,
- collapseNode,
- setExpandedKeys,
- scrollToNode,
- scrollTo
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b(), { [unref(ns).m("highlight-current")]: _ctx.highlightCurrent }]),
- role: "tree"
- }, [
- unref(isNotEmpty) ? (openBlock(), createBlock(unref(FixedSizeList), {
- key: 0,
- ref_key: "listRef",
- ref: listRef,
- "class-name": unref(ns).b("virtual-list"),
- data: unref(flattenTree),
- total: unref(flattenTree).length,
- height: _ctx.height,
- "item-size": unref(treeNodeSize),
- "perf-mode": _ctx.perfMode,
- "scrollbar-always-on": _ctx.scrollbarAlwaysOn
- }, {
- default: withCtx(({ data, index, style }) => [
- (openBlock(), createBlock(ElTreeNode2, {
- key: data[index].key,
- style: normalizeStyle(style),
- node: data[index],
- expanded: data[index].expanded,
- "show-checkbox": _ctx.showCheckbox,
- checked: unref(isChecked)(data[index]),
- indeterminate: unref(isIndeterminate)(data[index]),
- "item-size": unref(treeNodeSize),
- disabled: unref(isDisabled)(data[index]),
- current: unref(isCurrent)(data[index]),
- "hidden-expand-icon": unref(isForceHiddenExpandIcon)(data[index]),
- onClick: unref(handleNodeClick),
- onToggle: unref(toggleExpand),
- onCheck: unref(handleNodeCheck),
- onDrop: unref(handleNodeDrop)
- }, null, 8, ["style", "node", "expanded", "show-checkbox", "checked", "indeterminate", "item-size", "disabled", "current", "hidden-expand-icon", "onClick", "onToggle", "onCheck", "onDrop"]))
- ]),
- _: 1
- }, 8, ["class-name", "data", "total", "height", "item-size", "perf-mode", "scrollbar-always-on"])) : (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).e("empty-block"))
- }, [
- renderSlot(_ctx.$slots, "empty", {}, () => {
- var _a2;
- return [
- createBaseVNode("span", {
- class: normalizeClass(unref(ns).e("empty-text"))
- }, toDisplayString((_a2 = _ctx.emptyText) != null ? _a2 : unref(t)("el.tree.emptyText")), 3)
- ];
- })
- ], 2))
- ], 2);
- };
- }
- });
- var TreeV2 = _export_sfc(_sfc_main441, [["__file", "tree.vue"]]);
- // node_modules/element-plus/es/components/tree-v2/index.mjs
- var ElTreeV2 = withInstall(TreeV2);
- // node_modules/element-plus/es/components/upload/src/constants.mjs
- var uploadContextKey = Symbol("uploadContextKey");
- // node_modules/element-plus/es/components/upload/src/ajax.mjs
- var SCOPE3 = "ElUpload";
- var UploadAjaxError = class extends Error {
- constructor(message2, status, method5, url2) {
- super(message2);
- this.name = "UploadAjaxError";
- this.status = status;
- this.method = method5;
- this.url = url2;
- }
- };
- function getError(action, option, xhr) {
- let msg;
- if (xhr.response) {
- msg = `${xhr.response.error || xhr.response}`;
- } else if (xhr.responseText) {
- msg = `${xhr.responseText}`;
- } else {
- msg = `fail to ${option.method} ${action} ${xhr.status}`;
- }
- return new UploadAjaxError(msg, xhr.status, option.method, action);
- }
- function getBody(xhr) {
- const text = xhr.responseText || xhr.response;
- if (!text) {
- return text;
- }
- try {
- return JSON.parse(text);
- } catch (e) {
- return text;
- }
- }
- var ajaxUpload = (option) => {
- if (typeof XMLHttpRequest === "undefined")
- throwError(SCOPE3, "XMLHttpRequest is undefined");
- const xhr = new XMLHttpRequest();
- const action = option.action;
- if (xhr.upload) {
- xhr.upload.addEventListener("progress", (evt) => {
- const progressEvt = evt;
- progressEvt.percent = evt.total > 0 ? evt.loaded / evt.total * 100 : 0;
- option.onProgress(progressEvt);
- });
- }
- const formData = new FormData();
- if (option.data) {
- for (const [key, value] of Object.entries(option.data)) {
- if (isArray(value) && value.length)
- formData.append(key, ...value);
- else
- formData.append(key, value);
- }
- }
- formData.append(option.filename, option.file, option.file.name);
- xhr.addEventListener("error", () => {
- option.onError(getError(action, option, xhr));
- });
- xhr.addEventListener("load", () => {
- if (xhr.status < 200 || xhr.status >= 300) {
- return option.onError(getError(action, option, xhr));
- }
- option.onSuccess(getBody(xhr));
- });
- xhr.open(option.method, action, true);
- if (option.withCredentials && "withCredentials" in xhr) {
- xhr.withCredentials = true;
- }
- const headers = option.headers || {};
- if (headers instanceof Headers) {
- headers.forEach((value, key) => xhr.setRequestHeader(key, value));
- } else {
- for (const [key, value] of Object.entries(headers)) {
- if (isNil_default(value))
- continue;
- xhr.setRequestHeader(key, String(value));
- }
- }
- xhr.send(formData);
- return xhr;
- };
- // node_modules/element-plus/es/components/upload/src/upload.mjs
- var uploadListTypes = ["text", "picture", "picture-card"];
- var fileId = 1;
- var genFileId = () => Date.now() + fileId++;
- var uploadBaseProps = buildProps({
- action: {
- type: String,
- default: "#"
- },
- headers: {
- type: definePropType(Object)
- },
- method: {
- type: String,
- default: "post"
- },
- data: {
- type: definePropType([Object, Function, Promise]),
- default: () => mutable({})
- },
- multiple: Boolean,
- name: {
- type: String,
- default: "file"
- },
- drag: Boolean,
- withCredentials: Boolean,
- showFileList: {
- type: Boolean,
- default: true
- },
- accept: {
- type: String,
- default: ""
- },
- fileList: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- autoUpload: {
- type: Boolean,
- default: true
- },
- listType: {
- type: String,
- values: uploadListTypes,
- default: "text"
- },
- httpRequest: {
- type: definePropType(Function),
- default: ajaxUpload
- },
- disabled: Boolean,
- limit: Number
- });
- var uploadProps = buildProps({
- ...uploadBaseProps,
- beforeUpload: {
- type: definePropType(Function),
- default: NOOP
- },
- beforeRemove: {
- type: definePropType(Function)
- },
- onRemove: {
- type: definePropType(Function),
- default: NOOP
- },
- onChange: {
- type: definePropType(Function),
- default: NOOP
- },
- onPreview: {
- type: definePropType(Function),
- default: NOOP
- },
- onSuccess: {
- type: definePropType(Function),
- default: NOOP
- },
- onProgress: {
- type: definePropType(Function),
- default: NOOP
- },
- onError: {
- type: definePropType(Function),
- default: NOOP
- },
- onExceed: {
- type: definePropType(Function),
- default: NOOP
- },
- crossorigin: {
- type: definePropType(String)
- }
- });
- // node_modules/element-plus/es/components/upload/src/upload-list.mjs
- var uploadListProps = buildProps({
- files: {
- type: definePropType(Array),
- default: () => mutable([])
- },
- disabled: Boolean,
- handlePreview: {
- type: definePropType(Function),
- default: NOOP
- },
- listType: {
- type: String,
- values: uploadListTypes,
- default: "text"
- },
- crossorigin: {
- type: definePropType(String)
- }
- });
- var uploadListEmits = {
- remove: (file) => !!file
- };
- // node_modules/element-plus/es/components/upload/src/upload-list2.mjs
- var __default__113 = defineComponent({
- name: "ElUploadList"
- });
- var _sfc_main442 = defineComponent({
- ...__default__113,
- props: uploadListProps,
- emits: uploadListEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const { t } = useLocale();
- const nsUpload = useNamespace("upload");
- const nsIcon = useNamespace("icon");
- const nsList = useNamespace("list");
- const disabled = useFormDisabled();
- const focusing = ref(false);
- const containerKls = computed(() => [
- nsUpload.b("list"),
- nsUpload.bm("list", props2.listType),
- nsUpload.is("disabled", props2.disabled)
- ]);
- const handleRemove = (file) => {
- emit("remove", file);
- };
- return (_ctx, _cache) => {
- return openBlock(), createBlock(TransitionGroup, {
- tag: "ul",
- class: normalizeClass(unref(containerKls)),
- name: unref(nsList).b()
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.files, (file, index) => {
- return openBlock(), createElementBlock("li", {
- key: file.uid || file.name,
- class: normalizeClass([
- unref(nsUpload).be("list", "item"),
- unref(nsUpload).is(file.status),
- { focusing: focusing.value }
- ]),
- tabindex: "0",
- onKeydown: withKeys(($event) => !unref(disabled) && handleRemove(file), ["delete"]),
- onFocus: ($event) => focusing.value = true,
- onBlur: ($event) => focusing.value = false,
- onClick: ($event) => focusing.value = false
- }, [
- renderSlot(_ctx.$slots, "default", {
- file,
- index
- }, () => [
- _ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("img", {
- key: 0,
- class: normalizeClass(unref(nsUpload).be("list", "item-thumbnail")),
- src: file.url,
- crossorigin: _ctx.crossorigin,
- alt: ""
- }, null, 10, ["src", "crossorigin"])) : createCommentVNode("v-if", true),
- file.status === "uploading" || _ctx.listType !== "picture-card" ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(nsUpload).be("list", "item-info"))
- }, [
- createBaseVNode("a", {
- class: normalizeClass(unref(nsUpload).be("list", "item-name")),
- onClick: withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(nsIcon).m("document"))
- }, {
- default: withCtx(() => [
- createVNode(unref(document_default))
- ]),
- _: 1
- }, 8, ["class"]),
- createBaseVNode("span", {
- class: normalizeClass(unref(nsUpload).be("list", "item-file-name")),
- title: file.name
- }, toDisplayString(file.name), 11, ["title"])
- ], 10, ["onClick"]),
- file.status === "uploading" ? (openBlock(), createBlock(unref(ElProgress), {
- key: 0,
- type: _ctx.listType === "picture-card" ? "circle" : "line",
- "stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
- percentage: Number(file.percentage),
- style: normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
- }, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("label", {
- class: normalizeClass(unref(nsUpload).be("list", "item-status-label"))
- }, [
- _ctx.listType === "text" ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([unref(nsIcon).m("upload-success"), unref(nsIcon).m("circle-check")])
- }, {
- default: withCtx(() => [
- createVNode(unref(circle_check_default))
- ]),
- _: 1
- }, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass([unref(nsIcon).m("upload-success"), unref(nsIcon).m("check")])
- }, {
- default: withCtx(() => [
- createVNode(unref(check_default))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true)
- ], 2),
- !unref(disabled) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 2,
- class: normalizeClass(unref(nsIcon).m("close")),
- onClick: ($event) => handleRemove(file)
- }, {
- default: withCtx(() => [
- createVNode(unref(close_default))
- ]),
- _: 2
- }, 1032, ["class", "onClick"])) : createCommentVNode("v-if", true),
- createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
- createCommentVNode(" This is a bug which needs to be fixed "),
- createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
- !unref(disabled) ? (openBlock(), createElementBlock("i", {
- key: 3,
- class: normalizeClass(unref(nsIcon).m("close-tip"))
- }, toDisplayString(unref(t)("el.upload.deleteTip")), 3)) : createCommentVNode("v-if", true),
- _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("span", {
- key: 4,
- class: normalizeClass(unref(nsUpload).be("list", "item-actions"))
- }, [
- createBaseVNode("span", {
- class: normalizeClass(unref(nsUpload).be("list", "item-preview")),
- onClick: ($event) => _ctx.handlePreview(file)
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(nsIcon).m("zoom-in"))
- }, {
- default: withCtx(() => [
- createVNode(unref(zoom_in_default))
- ]),
- _: 1
- }, 8, ["class"])
- ], 10, ["onClick"]),
- !unref(disabled) ? (openBlock(), createElementBlock("span", {
- key: 0,
- class: normalizeClass(unref(nsUpload).be("list", "item-delete")),
- onClick: ($event) => handleRemove(file)
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(nsIcon).m("delete"))
- }, {
- default: withCtx(() => [
- createVNode(unref(delete_default))
- ]),
- _: 1
- }, 8, ["class"])
- ], 10, ["onClick"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true)
- ])
- ], 42, ["onKeydown", "onFocus", "onBlur", "onClick"]);
- }), 128)),
- renderSlot(_ctx.$slots, "append")
- ]),
- _: 3
- }, 8, ["class", "name"]);
- };
- }
- });
- var UploadList = _export_sfc(_sfc_main442, [["__file", "upload-list.vue"]]);
- // node_modules/element-plus/es/components/upload/src/upload-dragger.mjs
- var uploadDraggerProps = buildProps({
- disabled: Boolean
- });
- var uploadDraggerEmits = {
- file: (file) => isArray(file)
- };
- // node_modules/element-plus/es/components/upload/src/upload-dragger2.mjs
- var COMPONENT_NAME27 = "ElUploadDrag";
- var __default__114 = defineComponent({
- name: COMPONENT_NAME27
- });
- var _sfc_main443 = defineComponent({
- ...__default__114,
- props: uploadDraggerProps,
- emits: uploadDraggerEmits,
- setup(__props, { emit }) {
- const uploaderContext = inject(uploadContextKey);
- if (!uploaderContext) {
- throwError(COMPONENT_NAME27, "usage: <el-upload><el-upload-dragger /></el-upload>");
- }
- const ns = useNamespace("upload");
- const dragover = ref(false);
- const disabled = useFormDisabled();
- const onDrop = (e) => {
- if (disabled.value)
- return;
- dragover.value = false;
- e.stopPropagation();
- const files = Array.from(e.dataTransfer.files);
- const items = e.dataTransfer.items || [];
- files.forEach((file, index) => {
- var _a2;
- const item = items[index];
- const entry = (_a2 = item == null ? void 0 : item.webkitGetAsEntry) == null ? void 0 : _a2.call(item);
- if (entry) {
- file.isDirectory = entry.isDirectory;
- }
- });
- emit("file", files);
- };
- const onDragover = () => {
- if (!disabled.value)
- dragover.value = true;
- };
- const onDragleave = (e) => {
- if (!e.currentTarget.contains(e.relatedTarget))
- dragover.value = false;
- };
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([unref(ns).b("dragger"), unref(ns).is("dragover", dragover.value)]),
- onDrop: withModifiers(onDrop, ["prevent"]),
- onDragover: withModifiers(onDragover, ["prevent"]),
- onDragleave: withModifiers(onDragleave, ["prevent"])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 42, ["onDrop", "onDragover", "onDragleave"]);
- };
- }
- });
- var UploadDragger = _export_sfc(_sfc_main443, [["__file", "upload-dragger.vue"]]);
- // node_modules/element-plus/es/components/upload/src/upload-content.mjs
- var uploadContentProps = buildProps({
- ...uploadBaseProps,
- beforeUpload: {
- type: definePropType(Function),
- default: NOOP
- },
- onRemove: {
- type: definePropType(Function),
- default: NOOP
- },
- onStart: {
- type: definePropType(Function),
- default: NOOP
- },
- onSuccess: {
- type: definePropType(Function),
- default: NOOP
- },
- onProgress: {
- type: definePropType(Function),
- default: NOOP
- },
- onError: {
- type: definePropType(Function),
- default: NOOP
- },
- onExceed: {
- type: definePropType(Function),
- default: NOOP
- }
- });
- // node_modules/element-plus/es/components/upload/src/upload-content2.mjs
- var __default__115 = defineComponent({
- name: "ElUploadContent",
- inheritAttrs: false
- });
- var _sfc_main444 = defineComponent({
- ...__default__115,
- props: uploadContentProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const ns = useNamespace("upload");
- const disabled = useFormDisabled();
- const requests = shallowRef({});
- const inputRef = shallowRef();
- const uploadFiles = (files) => {
- if (files.length === 0)
- return;
- const { autoUpload, limit, fileList, multiple, onStart, onExceed } = props2;
- if (limit && fileList.length + files.length > limit) {
- onExceed(files, fileList);
- return;
- }
- if (!multiple) {
- files = files.slice(0, 1);
- }
- for (const file of files) {
- const rawFile = file;
- rawFile.uid = genFileId();
- onStart(rawFile);
- if (autoUpload)
- upload(rawFile);
- }
- };
- const upload = async (rawFile) => {
- inputRef.value.value = "";
- if (!props2.beforeUpload) {
- return doUpload(rawFile);
- }
- let hookResult;
- let beforeData = {};
- try {
- const originData = props2.data;
- const beforeUploadPromise = props2.beforeUpload(rawFile);
- beforeData = isPlainObject(props2.data) ? cloneDeep_default(props2.data) : props2.data;
- hookResult = await beforeUploadPromise;
- if (isPlainObject(props2.data) && isEqual_default(originData, beforeData)) {
- beforeData = cloneDeep_default(props2.data);
- }
- } catch (e) {
- hookResult = false;
- }
- if (hookResult === false) {
- props2.onRemove(rawFile);
- return;
- }
- let file = rawFile;
- if (hookResult instanceof Blob) {
- if (hookResult instanceof File) {
- file = hookResult;
- } else {
- file = new File([hookResult], rawFile.name, {
- type: rawFile.type
- });
- }
- }
- doUpload(Object.assign(file, {
- uid: rawFile.uid
- }), beforeData);
- };
- const resolveData = async (data, rawFile) => {
- if (isFunction(data)) {
- return data(rawFile);
- }
- return data;
- };
- const doUpload = async (rawFile, beforeData) => {
- const {
- headers,
- data,
- method: method5,
- withCredentials,
- name: filename,
- action,
- onProgress,
- onSuccess,
- onError,
- httpRequest
- } = props2;
- try {
- beforeData = await resolveData(beforeData != null ? beforeData : data, rawFile);
- } catch (e) {
- props2.onRemove(rawFile);
- return;
- }
- const { uid: uid2 } = rawFile;
- const options = {
- headers: headers || {},
- withCredentials,
- file: rawFile,
- data: beforeData,
- method: method5,
- filename,
- action,
- onProgress: (evt) => {
- onProgress(evt, rawFile);
- },
- onSuccess: (res) => {
- onSuccess(res, rawFile);
- delete requests.value[uid2];
- },
- onError: (err) => {
- onError(err, rawFile);
- delete requests.value[uid2];
- }
- };
- const request = httpRequest(options);
- requests.value[uid2] = request;
- if (request instanceof Promise) {
- request.then(options.onSuccess, options.onError);
- }
- };
- const handleChange = (e) => {
- const files = e.target.files;
- if (!files)
- return;
- uploadFiles(Array.from(files));
- };
- const handleClick = () => {
- if (!disabled.value) {
- inputRef.value.value = "";
- inputRef.value.click();
- }
- };
- const handleKeydown = () => {
- handleClick();
- };
- const abort = (file) => {
- const _reqs = entriesOf(requests.value).filter(file ? ([uid2]) => String(file.uid) === uid2 : () => true);
- _reqs.forEach(([uid2, req]) => {
- if (req instanceof XMLHttpRequest)
- req.abort();
- delete requests.value[uid2];
- });
- };
- expose({
- abort,
- upload
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass([
- unref(ns).b(),
- unref(ns).m(_ctx.listType),
- unref(ns).is("drag", _ctx.drag),
- unref(ns).is("disabled", unref(disabled))
- ]),
- tabindex: unref(disabled) ? "-1" : "0",
- onClick: handleClick,
- onKeydown: withKeys(withModifiers(handleKeydown, ["self"]), ["enter", "space"])
- }, [
- _ctx.drag ? (openBlock(), createBlock(UploadDragger, {
- key: 0,
- disabled: unref(disabled),
- onFile: uploadFiles
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["disabled"])) : renderSlot(_ctx.$slots, "default", { key: 1 }),
- createBaseVNode("input", {
- ref_key: "inputRef",
- ref: inputRef,
- class: normalizeClass(unref(ns).e("input")),
- name: _ctx.name,
- disabled: unref(disabled),
- multiple: _ctx.multiple,
- accept: _ctx.accept,
- type: "file",
- onChange: handleChange,
- onClick: withModifiers(() => {
- }, ["stop"])
- }, null, 42, ["name", "disabled", "multiple", "accept", "onClick"])
- ], 42, ["tabindex", "onKeydown"]);
- };
- }
- });
- var UploadContent = _export_sfc(_sfc_main444, [["__file", "upload-content.vue"]]);
- // node_modules/element-plus/es/components/upload/src/use-handlers.mjs
- var SCOPE4 = "ElUpload";
- var revokeFileObjectURL = (file) => {
- var _a2;
- if ((_a2 = file.url) == null ? void 0 : _a2.startsWith("blob:")) {
- URL.revokeObjectURL(file.url);
- }
- };
- var useHandlers = (props2, uploadRef) => {
- const uploadFiles = useVModel(props2, "fileList", void 0, { passive: true });
- const getFile = (rawFile) => uploadFiles.value.find((file) => file.uid === rawFile.uid);
- function abort(file) {
- var _a2;
- (_a2 = uploadRef.value) == null ? void 0 : _a2.abort(file);
- }
- function clearFiles(states = ["ready", "uploading", "success", "fail"]) {
- uploadFiles.value = uploadFiles.value.filter((row) => !states.includes(row.status));
- }
- function removeFile(file) {
- uploadFiles.value = uploadFiles.value.filter((uploadFile) => uploadFile.uid !== file.uid);
- }
- const handleError = (err, rawFile) => {
- const file = getFile(rawFile);
- if (!file)
- return;
- console.error(err);
- file.status = "fail";
- removeFile(file);
- props2.onError(err, file, uploadFiles.value);
- props2.onChange(file, uploadFiles.value);
- };
- const handleProgress = (evt, rawFile) => {
- const file = getFile(rawFile);
- if (!file)
- return;
- props2.onProgress(evt, file, uploadFiles.value);
- file.status = "uploading";
- file.percentage = Math.round(evt.percent);
- };
- const handleSuccess = (response, rawFile) => {
- const file = getFile(rawFile);
- if (!file)
- return;
- file.status = "success";
- file.response = response;
- props2.onSuccess(response, file, uploadFiles.value);
- props2.onChange(file, uploadFiles.value);
- };
- const handleStart = (file) => {
- if (isNil_default(file.uid))
- file.uid = genFileId();
- const uploadFile = {
- name: file.name,
- percentage: 0,
- status: "ready",
- size: file.size,
- raw: file,
- uid: file.uid
- };
- if (props2.listType === "picture-card" || props2.listType === "picture") {
- try {
- uploadFile.url = URL.createObjectURL(file);
- } catch (err) {
- debugWarn(SCOPE4, err.message);
- props2.onError(err, uploadFile, uploadFiles.value);
- }
- }
- uploadFiles.value = [...uploadFiles.value, uploadFile];
- props2.onChange(uploadFile, uploadFiles.value);
- };
- const handleRemove = async (file) => {
- const uploadFile = file instanceof File ? getFile(file) : file;
- if (!uploadFile)
- throwError(SCOPE4, "file to be removed not found");
- const doRemove = (file2) => {
- abort(file2);
- removeFile(file2);
- props2.onRemove(file2, uploadFiles.value);
- revokeFileObjectURL(file2);
- };
- if (props2.beforeRemove) {
- const before2 = await props2.beforeRemove(uploadFile, uploadFiles.value);
- if (before2 !== false)
- doRemove(uploadFile);
- } else {
- doRemove(uploadFile);
- }
- };
- function submit() {
- uploadFiles.value.filter(({ status }) => status === "ready").forEach(({ raw }) => {
- var _a2;
- return raw && ((_a2 = uploadRef.value) == null ? void 0 : _a2.upload(raw));
- });
- }
- watch(() => props2.listType, (val) => {
- if (val !== "picture-card" && val !== "picture") {
- return;
- }
- uploadFiles.value = uploadFiles.value.map((file) => {
- const { raw, url: url2 } = file;
- if (!url2 && raw) {
- try {
- file.url = URL.createObjectURL(raw);
- } catch (err) {
- props2.onError(err, file, uploadFiles.value);
- }
- }
- return file;
- });
- });
- watch(uploadFiles, (files) => {
- for (const file of files) {
- file.uid || (file.uid = genFileId());
- file.status || (file.status = "success");
- }
- }, { immediate: true, deep: true });
- return {
- uploadFiles,
- abort,
- clearFiles,
- handleError,
- handleProgress,
- handleStart,
- handleSuccess,
- handleRemove,
- submit,
- revokeFileObjectURL
- };
- };
- // node_modules/element-plus/es/components/upload/src/upload2.mjs
- var __default__116 = defineComponent({
- name: "ElUpload"
- });
- var _sfc_main445 = defineComponent({
- ...__default__116,
- props: uploadProps,
- setup(__props, { expose }) {
- const props2 = __props;
- const disabled = useFormDisabled();
- const uploadRef = shallowRef();
- const {
- abort,
- submit,
- clearFiles,
- uploadFiles,
- handleStart,
- handleError,
- handleRemove,
- handleSuccess,
- handleProgress,
- revokeFileObjectURL: revokeFileObjectURL2
- } = useHandlers(props2, uploadRef);
- const isPictureCard = computed(() => props2.listType === "picture-card");
- const uploadContentProps2 = computed(() => ({
- ...props2,
- fileList: uploadFiles.value,
- onStart: handleStart,
- onProgress: handleProgress,
- onSuccess: handleSuccess,
- onError: handleError,
- onRemove: handleRemove
- }));
- onBeforeUnmount(() => {
- uploadFiles.value.forEach(revokeFileObjectURL2);
- });
- provide(uploadContextKey, {
- accept: toRef(props2, "accept")
- });
- expose({
- abort,
- submit,
- clearFiles,
- handleStart,
- handleRemove
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", null, [
- unref(isPictureCard) && _ctx.showFileList ? (openBlock(), createBlock(UploadList, {
- key: 0,
- disabled: unref(disabled),
- "list-type": _ctx.listType,
- files: unref(uploadFiles),
- crossorigin: _ctx.crossorigin,
- "handle-preview": _ctx.onPreview,
- onRemove: unref(handleRemove)
- }, createSlots({
- append: withCtx(() => [
- createVNode(UploadContent, mergeProps({
- ref_key: "uploadRef",
- ref: uploadRef
- }, unref(uploadContentProps2)), {
- default: withCtx(() => [
- _ctx.$slots.trigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }) : createCommentVNode("v-if", true),
- !_ctx.$slots.trigger && _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 16)
- ]),
- _: 2
- }, [
- _ctx.$slots.file ? {
- name: "default",
- fn: withCtx(({ file, index }) => [
- renderSlot(_ctx.$slots, "file", {
- file,
- index
- })
- ])
- } : void 0
- ]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true),
- !unref(isPictureCard) || unref(isPictureCard) && !_ctx.showFileList ? (openBlock(), createBlock(UploadContent, mergeProps({
- key: 1,
- ref_key: "uploadRef",
- ref: uploadRef
- }, unref(uploadContentProps2)), {
- default: withCtx(() => [
- _ctx.$slots.trigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }) : createCommentVNode("v-if", true),
- !_ctx.$slots.trigger && _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
- ]),
- _: 3
- }, 16)) : createCommentVNode("v-if", true),
- _ctx.$slots.trigger ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("v-if", true),
- renderSlot(_ctx.$slots, "tip"),
- !unref(isPictureCard) && _ctx.showFileList ? (openBlock(), createBlock(UploadList, {
- key: 3,
- disabled: unref(disabled),
- "list-type": _ctx.listType,
- files: unref(uploadFiles),
- crossorigin: _ctx.crossorigin,
- "handle-preview": _ctx.onPreview,
- onRemove: unref(handleRemove)
- }, createSlots({
- _: 2
- }, [
- _ctx.$slots.file ? {
- name: "default",
- fn: withCtx(({ file, index }) => [
- renderSlot(_ctx.$slots, "file", {
- file,
- index
- })
- ])
- } : void 0
- ]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true)
- ]);
- };
- }
- });
- var Upload = _export_sfc(_sfc_main445, [["__file", "upload.vue"]]);
- // node_modules/element-plus/es/components/upload/index.mjs
- var ElUpload = withInstall(Upload);
- // node_modules/element-plus/es/components/watermark/src/watermark.mjs
- var watermarkProps = buildProps({
- zIndex: {
- type: Number,
- default: 9
- },
- rotate: {
- type: Number,
- default: -22
- },
- width: Number,
- height: Number,
- image: String,
- content: {
- type: definePropType([String, Array]),
- default: "Element Plus"
- },
- font: {
- type: definePropType(Object)
- },
- gap: {
- type: definePropType(Array),
- default: () => [100, 100]
- },
- offset: {
- type: definePropType(Array)
- }
- });
- // node_modules/element-plus/es/components/watermark/src/utils.mjs
- function toLowercaseSeparator(key) {
- return key.replace(/([A-Z])/g, "-$1").toLowerCase();
- }
- function getStyleStr(style) {
- return Object.keys(style).map((key) => `${toLowercaseSeparator(key)}: ${style[key]};`).join(" ");
- }
- function getPixelRatio() {
- return window.devicePixelRatio || 1;
- }
- var reRendering = (mutation, watermarkElement) => {
- let flag = false;
- if (mutation.removedNodes.length && watermarkElement) {
- flag = Array.from(mutation.removedNodes).includes(watermarkElement);
- }
- if (mutation.type === "attributes" && mutation.target === watermarkElement) {
- flag = true;
- }
- return flag;
- };
- // node_modules/element-plus/es/components/watermark/src/useClips.mjs
- var FontGap = 3;
- var TEXT_ALIGN_RATIO_MAP = {
- left: [0, 0.5],
- start: [0, 0.5],
- center: [0.5, 0],
- right: [1, -0.5],
- end: [1, -0.5]
- };
- function prepareCanvas(width, height, ratio = 1) {
- const canvas = document.createElement("canvas");
- const ctx = canvas.getContext("2d");
- const realWidth = width * ratio;
- const realHeight = height * ratio;
- canvas.setAttribute("width", `${realWidth}px`);
- canvas.setAttribute("height", `${realHeight}px`);
- ctx.save();
- return [ctx, canvas, realWidth, realHeight];
- }
- function useClips() {
- function getClips(content, rotate, ratio, width, height, font, gapX, gapY, space) {
- const [ctx, canvas, contentWidth, contentHeight] = prepareCanvas(width, height, ratio);
- if (content instanceof HTMLImageElement) {
- ctx.drawImage(content, 0, 0, contentWidth, contentHeight);
- } else {
- const {
- color,
- fontSize,
- fontStyle,
- fontWeight,
- fontFamily,
- textAlign,
- textBaseline
- } = font;
- const mergedFontSize = Number(fontSize) * ratio;
- ctx.font = `${fontStyle} normal ${fontWeight} ${mergedFontSize}px/${height}px ${fontFamily}`;
- ctx.fillStyle = color;
- ctx.textAlign = textAlign;
- ctx.textBaseline = textBaseline;
- const contents = isArray(content) ? content : [content];
- contents == null ? void 0 : contents.forEach((item, index) => {
- const [alignRatio, spaceRatio] = TEXT_ALIGN_RATIO_MAP[textAlign];
- ctx.fillText(item != null ? item : "", contentWidth * alignRatio + space * spaceRatio, index * (mergedFontSize + FontGap * ratio));
- });
- }
- const angle = Math.PI / 180 * Number(rotate);
- const maxSize = Math.max(width, height);
- const [rCtx, rCanvas, realMaxSize] = prepareCanvas(maxSize, maxSize, ratio);
- rCtx.translate(realMaxSize / 2, realMaxSize / 2);
- rCtx.rotate(angle);
- if (contentWidth > 0 && contentHeight > 0) {
- rCtx.drawImage(canvas, -contentWidth / 2, -contentHeight / 2);
- }
- function getRotatePos(x2, y) {
- const targetX = x2 * Math.cos(angle) - y * Math.sin(angle);
- const targetY = x2 * Math.sin(angle) + y * Math.cos(angle);
- return [targetX, targetY];
- }
- let left = 0;
- let right = 0;
- let top = 0;
- let bottom = 0;
- const halfWidth = contentWidth / 2;
- const halfHeight = contentHeight / 2;
- const points = [
- [0 - halfWidth, 0 - halfHeight],
- [0 + halfWidth, 0 - halfHeight],
- [0 + halfWidth, 0 + halfHeight],
- [0 - halfWidth, 0 + halfHeight]
- ];
- points.forEach(([x2, y]) => {
- const [targetX, targetY] = getRotatePos(x2, y);
- left = Math.min(left, targetX);
- right = Math.max(right, targetX);
- top = Math.min(top, targetY);
- bottom = Math.max(bottom, targetY);
- });
- const cutLeft = left + realMaxSize / 2;
- const cutTop = top + realMaxSize / 2;
- const cutWidth = right - left;
- const cutHeight = bottom - top;
- const realGapX = gapX * ratio;
- const realGapY = gapY * ratio;
- const filledWidth = (cutWidth + realGapX) * 2;
- const filledHeight = cutHeight + realGapY;
- const [fCtx, fCanvas] = prepareCanvas(filledWidth, filledHeight);
- function drawImg(targetX = 0, targetY = 0) {
- fCtx.drawImage(rCanvas, cutLeft, cutTop, cutWidth, cutHeight, targetX, targetY, cutWidth, cutHeight);
- }
- drawImg();
- drawImg(cutWidth + realGapX, -cutHeight / 2 - realGapY / 2);
- drawImg(cutWidth + realGapX, +cutHeight / 2 + realGapY / 2);
- return [fCanvas.toDataURL(), filledWidth / ratio, filledHeight / ratio];
- }
- return getClips;
- }
- // node_modules/element-plus/es/components/watermark/src/watermark2.mjs
- var __default__117 = defineComponent({
- name: "ElWatermark"
- });
- var _sfc_main446 = defineComponent({
- ...__default__117,
- props: watermarkProps,
- setup(__props) {
- const props2 = __props;
- const style = {
- position: "relative"
- };
- const color = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.color) != null ? _b : "rgba(0,0,0,.15)";
- });
- const fontSize = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontSize) != null ? _b : 16;
- });
- const fontWeight = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontWeight) != null ? _b : "normal";
- });
- const fontStyle = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontStyle) != null ? _b : "normal";
- });
- const fontFamily = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.fontFamily) != null ? _b : "sans-serif";
- });
- const textAlign = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.textAlign) != null ? _b : "center";
- });
- const textBaseline = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.font) == null ? void 0 : _a2.textBaseline) != null ? _b : "hanging";
- });
- const gapX = computed(() => props2.gap[0]);
- const gapY = computed(() => props2.gap[1]);
- const gapXCenter = computed(() => gapX.value / 2);
- const gapYCenter = computed(() => gapY.value / 2);
- const offsetLeft = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.offset) == null ? void 0 : _a2[0]) != null ? _b : gapXCenter.value;
- });
- const offsetTop = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.offset) == null ? void 0 : _a2[1]) != null ? _b : gapYCenter.value;
- });
- const getMarkStyle = () => {
- const markStyle = {
- zIndex: props2.zIndex,
- position: "absolute",
- left: 0,
- top: 0,
- width: "100%",
- height: "100%",
- pointerEvents: "none",
- backgroundRepeat: "repeat"
- };
- let positionLeft = offsetLeft.value - gapXCenter.value;
- let positionTop = offsetTop.value - gapYCenter.value;
- if (positionLeft > 0) {
- markStyle.left = `${positionLeft}px`;
- markStyle.width = `calc(100% - ${positionLeft}px)`;
- positionLeft = 0;
- }
- if (positionTop > 0) {
- markStyle.top = `${positionTop}px`;
- markStyle.height = `calc(100% - ${positionTop}px)`;
- positionTop = 0;
- }
- markStyle.backgroundPosition = `${positionLeft}px ${positionTop}px`;
- return markStyle;
- };
- const containerRef = shallowRef(null);
- const watermarkRef = shallowRef();
- const stopObservation = ref(false);
- const destroyWatermark = () => {
- if (watermarkRef.value) {
- watermarkRef.value.remove();
- watermarkRef.value = void 0;
- }
- };
- const appendWatermark = (base64Url, markWidth) => {
- var _a2;
- if (containerRef.value && watermarkRef.value) {
- stopObservation.value = true;
- watermarkRef.value.setAttribute("style", getStyleStr({
- ...getMarkStyle(),
- backgroundImage: `url('${base64Url}')`,
- backgroundSize: `${Math.floor(markWidth)}px`
- }));
- (_a2 = containerRef.value) == null ? void 0 : _a2.append(watermarkRef.value);
- setTimeout(() => {
- stopObservation.value = false;
- });
- }
- };
- const getMarkSize = (ctx) => {
- let defaultWidth = 120;
- let defaultHeight = 64;
- let space = 0;
- const { image, content, width, height, rotate } = props2;
- if (!image && ctx.measureText) {
- ctx.font = `${Number(fontSize.value)}px ${fontFamily.value}`;
- const contents = isArray(content) ? content : [content];
- let maxWidth = 0;
- let maxHeight = 0;
- contents.forEach((item) => {
- const {
- width: width2,
- fontBoundingBoxAscent,
- fontBoundingBoxDescent,
- actualBoundingBoxAscent,
- actualBoundingBoxDescent
- } = ctx.measureText(item);
- const height2 = isUndefined2(fontBoundingBoxAscent) ? actualBoundingBoxAscent + actualBoundingBoxDescent : fontBoundingBoxAscent + fontBoundingBoxDescent;
- if (width2 > maxWidth)
- maxWidth = Math.ceil(width2);
- if (height2 > maxHeight)
- maxHeight = Math.ceil(height2);
- });
- defaultWidth = maxWidth;
- defaultHeight = maxHeight * contents.length + (contents.length - 1) * FontGap;
- const angle = Math.PI / 180 * Number(rotate);
- space = Math.ceil(Math.abs(Math.sin(angle) * defaultHeight) / 2);
- defaultWidth += space;
- }
- return [width != null ? width : defaultWidth, height != null ? height : defaultHeight, space];
- };
- const getClips = useClips();
- const renderWatermark = () => {
- const canvas = document.createElement("canvas");
- const ctx = canvas.getContext("2d");
- const image = props2.image;
- const content = props2.content;
- const rotate = props2.rotate;
- if (ctx) {
- if (!watermarkRef.value) {
- watermarkRef.value = document.createElement("div");
- }
- const ratio = getPixelRatio();
- const [markWidth, markHeight, space] = getMarkSize(ctx);
- const drawCanvas = (drawContent) => {
- const [textClips, clipWidth] = getClips(drawContent || "", rotate, ratio, markWidth, markHeight, {
- color: color.value,
- fontSize: fontSize.value,
- fontStyle: fontStyle.value,
- fontWeight: fontWeight.value,
- fontFamily: fontFamily.value,
- textAlign: textAlign.value,
- textBaseline: textBaseline.value
- }, gapX.value, gapY.value, space);
- appendWatermark(textClips, clipWidth);
- };
- if (image) {
- const img = new Image();
- img.onload = () => {
- drawCanvas(img);
- };
- img.onerror = () => {
- drawCanvas(content);
- };
- img.crossOrigin = "anonymous";
- img.referrerPolicy = "no-referrer";
- img.src = image;
- } else {
- drawCanvas(content);
- }
- }
- };
- onMounted(() => {
- renderWatermark();
- });
- watch(() => props2, () => {
- renderWatermark();
- }, {
- deep: true,
- flush: "post"
- });
- onBeforeUnmount(() => {
- destroyWatermark();
- });
- const onMutate = (mutations) => {
- if (stopObservation.value) {
- return;
- }
- mutations.forEach((mutation) => {
- if (reRendering(mutation, watermarkRef.value)) {
- destroyWatermark();
- renderWatermark();
- }
- });
- };
- useMutationObserver(containerRef, onMutate, {
- attributes: true,
- subtree: true,
- childList: true
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "containerRef",
- ref: containerRef,
- style: normalizeStyle([style])
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 4);
- };
- }
- });
- var Watermark = _export_sfc(_sfc_main446, [["__file", "watermark.vue"]]);
- // node_modules/element-plus/es/components/watermark/index.mjs
- var ElWatermark = withInstall(Watermark);
- // node_modules/element-plus/es/components/tour/src/mask.mjs
- var maskProps = buildProps({
- zIndex: {
- type: Number,
- default: 1001
- },
- visible: Boolean,
- fill: {
- type: String,
- default: "rgba(0,0,0,0.5)"
- },
- pos: {
- type: definePropType(Object)
- },
- targetAreaClickable: {
- type: Boolean,
- default: true
- }
- });
- // node_modules/element-plus/es/components/tour/src/helper.mjs
- var useTarget = (target2, open, gap, mergedMask, scrollIntoViewOptions) => {
- const posInfo = ref(null);
- const getTargetEl = () => {
- let targetEl;
- if (isString(target2.value)) {
- targetEl = document.querySelector(target2.value);
- } else if (isFunction(target2.value)) {
- targetEl = target2.value();
- } else {
- targetEl = target2.value;
- }
- return targetEl;
- };
- const updatePosInfo = () => {
- const targetEl = getTargetEl();
- if (!targetEl || !open.value) {
- posInfo.value = null;
- return;
- }
- if (!isInViewPort(targetEl)) {
- targetEl.scrollIntoView(scrollIntoViewOptions.value);
- }
- const { left, top, width, height } = targetEl.getBoundingClientRect();
- posInfo.value = {
- left,
- top,
- width,
- height,
- radius: 0
- };
- };
- onMounted(() => {
- watch([open, target2], () => {
- updatePosInfo();
- }, {
- immediate: true
- });
- window.addEventListener("resize", updatePosInfo);
- });
- onBeforeUnmount(() => {
- window.removeEventListener("resize", updatePosInfo);
- });
- const getGapOffset = (index) => {
- var _a2;
- return (_a2 = isArray(gap.value.offset) ? gap.value.offset[index] : gap.value.offset) != null ? _a2 : 6;
- };
- const mergedPosInfo = computed(() => {
- var _a2;
- if (!posInfo.value)
- return posInfo.value;
- const gapOffsetX = getGapOffset(0);
- const gapOffsetY = getGapOffset(1);
- const gapRadius = ((_a2 = gap.value) == null ? void 0 : _a2.radius) || 2;
- return {
- left: posInfo.value.left - gapOffsetX,
- top: posInfo.value.top - gapOffsetY,
- width: posInfo.value.width + gapOffsetX * 2,
- height: posInfo.value.height + gapOffsetY * 2,
- radius: gapRadius
- };
- });
- const triggerTarget = computed(() => {
- const targetEl = getTargetEl();
- if (!mergedMask.value || !targetEl || !window.DOMRect) {
- return targetEl || void 0;
- }
- return {
- getBoundingClientRect() {
- var _a2, _b, _c, _d;
- return window.DOMRect.fromRect({
- width: ((_a2 = mergedPosInfo.value) == null ? void 0 : _a2.width) || 0,
- height: ((_b = mergedPosInfo.value) == null ? void 0 : _b.height) || 0,
- x: ((_c = mergedPosInfo.value) == null ? void 0 : _c.left) || 0,
- y: ((_d = mergedPosInfo.value) == null ? void 0 : _d.top) || 0
- });
- }
- };
- });
- return {
- mergedPosInfo,
- triggerTarget
- };
- };
- var tourKey = Symbol("ElTour");
- function isInViewPort(element) {
- const viewWidth = window.innerWidth || document.documentElement.clientWidth;
- const viewHeight = window.innerHeight || document.documentElement.clientHeight;
- const { top, right, bottom, left } = element.getBoundingClientRect();
- return top >= 0 && left >= 0 && right <= viewWidth && bottom <= viewHeight;
- }
- var useFloating2 = (referenceRef, contentRef, arrowRef, placement, strategy, offset$1, zIndex2, showArrow) => {
- const x2 = ref();
- const y = ref();
- const middlewareData = ref({});
- const states = {
- x: x2,
- y,
- placement,
- strategy,
- middlewareData
- };
- const middleware = computed(() => {
- const _middleware = [
- offset2(unref(offset$1)),
- flip3(),
- shift2(),
- overflowMiddleware()
- ];
- if (unref(showArrow) && unref(arrowRef)) {
- _middleware.push(arrow2({
- element: unref(arrowRef)
- }));
- }
- return _middleware;
- });
- const update2 = async () => {
- if (!isClient)
- return;
- const referenceEl = unref(referenceRef);
- const contentEl = unref(contentRef);
- if (!referenceEl || !contentEl)
- return;
- const data = await computePosition2(referenceEl, contentEl, {
- placement: unref(placement),
- strategy: unref(strategy),
- middleware: unref(middleware)
- });
- keysOf(states).forEach((key) => {
- states[key].value = data[key];
- });
- };
- const contentStyle = computed(() => {
- if (!unref(referenceRef)) {
- return {
- position: "fixed",
- top: "50%",
- left: "50%",
- transform: "translate3d(-50%, -50%, 0)",
- maxWidth: "100vw",
- zIndex: unref(zIndex2)
- };
- }
- const { overflow } = unref(middlewareData);
- return {
- position: unref(strategy),
- zIndex: unref(zIndex2),
- top: unref(y) != null ? `${unref(y)}px` : "",
- left: unref(x2) != null ? `${unref(x2)}px` : "",
- maxWidth: (overflow == null ? void 0 : overflow.maxWidth) ? `${overflow == null ? void 0 : overflow.maxWidth}px` : ""
- };
- });
- const arrowStyle = computed(() => {
- if (!unref(showArrow))
- return {};
- const { arrow: arrow22 } = unref(middlewareData);
- return {
- left: (arrow22 == null ? void 0 : arrow22.x) != null ? `${arrow22 == null ? void 0 : arrow22.x}px` : "",
- top: (arrow22 == null ? void 0 : arrow22.y) != null ? `${arrow22 == null ? void 0 : arrow22.y}px` : ""
- };
- });
- let cleanup;
- onMounted(() => {
- const referenceEl = unref(referenceRef);
- const contentEl = unref(contentRef);
- if (referenceEl && contentEl) {
- cleanup = autoUpdate(referenceEl, contentEl, update2);
- }
- watchEffect(() => {
- update2();
- });
- });
- onBeforeUnmount(() => {
- cleanup && cleanup();
- });
- return {
- update: update2,
- contentStyle,
- arrowStyle
- };
- };
- var overflowMiddleware = () => {
- return {
- name: "overflow",
- async fn(state) {
- const overflow = await detectOverflow2(state);
- let overWidth = 0;
- if (overflow.left > 0)
- overWidth = overflow.left;
- if (overflow.right > 0)
- overWidth = overflow.right;
- const floatingWidth = state.rects.floating.width;
- return {
- data: {
- maxWidth: floatingWidth - overWidth
- }
- };
- }
- };
- };
- // node_modules/element-plus/es/components/tour/src/mask2.mjs
- var __default__118 = defineComponent({
- name: "ElTourMask",
- inheritAttrs: false
- });
- var _sfc_main447 = defineComponent({
- ...__default__118,
- props: maskProps,
- setup(__props) {
- const props2 = __props;
- const { ns } = inject(tourKey);
- const radius = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.pos) == null ? void 0 : _a2.radius) != null ? _b : 2;
- });
- const roundInfo = computed(() => {
- const v2 = radius.value;
- const baseInfo = `a${v2},${v2} 0 0 1`;
- return {
- topRight: `${baseInfo} ${v2},${v2}`,
- bottomRight: `${baseInfo} ${-v2},${v2}`,
- bottomLeft: `${baseInfo} ${-v2},${-v2}`,
- topLeft: `${baseInfo} ${v2},${-v2}`
- };
- });
- const path = computed(() => {
- const width = window.innerWidth;
- const height = window.innerHeight;
- const info = roundInfo.value;
- const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
- const _radius = radius.value;
- 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;
- });
- const maskStyle = computed(() => ({
- position: "fixed",
- left: 0,
- right: 0,
- top: 0,
- bottom: 0,
- zIndex: props2.zIndex,
- pointerEvents: props2.pos && props2.targetAreaClickable ? "none" : "auto"
- }));
- const pathStyle = computed(() => ({
- fill: props2.fill,
- pointerEvents: "auto",
- cursor: "auto"
- }));
- useLockscreen(toRef(props2, "visible"), {
- ns
- });
- return (_ctx, _cache) => {
- return _ctx.visible ? (openBlock(), createElementBlock("div", mergeProps({
- key: 0,
- class: unref(ns).e("mask"),
- style: unref(maskStyle)
- }, _ctx.$attrs), [
- (openBlock(), createElementBlock("svg", { style: {
- width: "100%",
- height: "100%"
- } }, [
- createBaseVNode("path", {
- class: normalizeClass(unref(ns).e("hollow")),
- style: normalizeStyle(unref(pathStyle)),
- d: unref(path)
- }, null, 14, ["d"])
- ]))
- ], 16)) : createCommentVNode("v-if", true);
- };
- }
- });
- var ElTourMask = _export_sfc(_sfc_main447, [["__file", "mask.vue"]]);
- // node_modules/element-plus/es/components/tour/src/content.mjs
- var tourStrategies = ["absolute", "fixed"];
- var tourPlacements = [
- "top-start",
- "top-end",
- "top",
- "bottom-start",
- "bottom-end",
- "bottom",
- "left-start",
- "left-end",
- "left",
- "right-start",
- "right-end",
- "right"
- ];
- var tourContentProps = buildProps({
- placement: {
- type: definePropType(String),
- values: tourPlacements,
- default: "bottom"
- },
- reference: {
- type: definePropType(Object),
- default: null
- },
- strategy: {
- type: definePropType(String),
- values: tourStrategies,
- default: "absolute"
- },
- offset: {
- type: Number,
- default: 10
- },
- showArrow: Boolean,
- zIndex: {
- type: Number,
- default: 2001
- }
- });
- var tourContentEmits = {
- close: () => true
- };
- // node_modules/element-plus/es/components/tour/src/content2.mjs
- var __default__119 = defineComponent({
- name: "ElTourContent"
- });
- var _sfc_main448 = defineComponent({
- ...__default__119,
- props: tourContentProps,
- emits: tourContentEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const placement = ref(props2.placement);
- const strategy = ref(props2.strategy);
- const contentRef = ref(null);
- const arrowRef = ref(null);
- watch(() => props2.placement, () => {
- placement.value = props2.placement;
- });
- const { contentStyle, arrowStyle } = useFloating2(toRef(props2, "reference"), contentRef, arrowRef, placement, strategy, toRef(props2, "offset"), toRef(props2, "zIndex"), toRef(props2, "showArrow"));
- const side = computed(() => {
- return placement.value.split("-")[0];
- });
- const { ns } = inject(tourKey);
- const onCloseRequested = () => {
- emit("close");
- };
- const onFocusoutPrevented = (event) => {
- if (event.detail.focusReason === "pointer") {
- event.preventDefault();
- }
- };
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "contentRef",
- ref: contentRef,
- style: normalizeStyle(unref(contentStyle)),
- class: normalizeClass(unref(ns).e("content")),
- "data-side": unref(side),
- tabindex: "-1"
- }, [
- createVNode(unref(ElFocusTrap), {
- loop: "",
- trapped: "",
- "focus-start-el": "container",
- "focus-trap-el": contentRef.value || void 0,
- onReleaseRequested: onCloseRequested,
- onFocusoutPrevented
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["focus-trap-el"]),
- _ctx.showArrow ? (openBlock(), createElementBlock("span", {
- key: 0,
- ref_key: "arrowRef",
- ref: arrowRef,
- style: normalizeStyle(unref(arrowStyle)),
- class: normalizeClass(unref(ns).e("arrow"))
- }, null, 6)) : createCommentVNode("v-if", true)
- ], 14, ["data-side"]);
- };
- }
- });
- var ElTourContent = _export_sfc(_sfc_main448, [["__file", "content.vue"]]);
- // node_modules/element-plus/es/components/tour/src/steps.mjs
- var ElTourSteps = defineComponent({
- name: "ElTourSteps",
- props: {
- current: {
- type: Number,
- default: 0
- }
- },
- emits: ["update-total"],
- setup(props2, { slots, emit }) {
- let cacheTotal = 0;
- return () => {
- var _a2, _b;
- const children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
- const result2 = [];
- let total2 = 0;
- function filterSteps(children2) {
- if (!isArray(children2))
- return;
- children2.forEach((item) => {
- var _a22;
- const name = (_a22 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a22.name;
- if (name === "ElTourStep") {
- result2.push(item);
- total2 += 1;
- }
- });
- }
- if (children.length) {
- filterSteps(flattedChildren((_b = children[0]) == null ? void 0 : _b.children));
- }
- if (cacheTotal !== total2) {
- cacheTotal = total2;
- emit("update-total", total2);
- }
- if (result2.length) {
- return result2[props2.current];
- }
- return null;
- };
- }
- });
- // node_modules/element-plus/es/components/tour/src/tour2.mjs
- var tourProps = buildProps({
- modelValue: Boolean,
- current: {
- type: Number,
- default: 0
- },
- showArrow: {
- type: Boolean,
- default: true
- },
- showClose: {
- type: Boolean,
- default: true
- },
- closeIcon: {
- type: iconPropType
- },
- placement: tourContentProps.placement,
- contentStyle: {
- type: definePropType([Object])
- },
- mask: {
- type: definePropType([Boolean, Object]),
- default: true
- },
- gap: {
- type: definePropType(Object),
- default: () => ({
- offset: 6,
- radius: 2
- })
- },
- zIndex: {
- type: Number
- },
- scrollIntoViewOptions: {
- type: definePropType([Boolean, Object]),
- default: () => ({
- block: "center"
- })
- },
- type: {
- type: definePropType(String)
- },
- appendTo: {
- type: teleportProps.to.type,
- default: "body"
- },
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- targetAreaClickable: {
- type: Boolean,
- default: true
- }
- });
- var tourEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isBoolean2(value),
- ["update:current"]: (current) => isNumber2(current),
- close: (current) => isNumber2(current),
- finish: () => true,
- change: (current) => isNumber2(current)
- };
- // node_modules/element-plus/es/components/tour/src/tour.mjs
- var __default__120 = defineComponent({
- name: "ElTour"
- });
- var _sfc_main449 = defineComponent({
- ...__default__120,
- props: tourProps,
- emits: tourEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("tour");
- const total2 = ref(0);
- const currentStep = ref();
- const current = useVModel(props2, "current", emit, {
- passive: true
- });
- const currentTarget = computed(() => {
- var _a2;
- return (_a2 = currentStep.value) == null ? void 0 : _a2.target;
- });
- const kls = computed(() => [
- ns.b(),
- mergedType.value === "primary" ? ns.m("primary") : ""
- ]);
- const mergedPlacement = computed(() => {
- var _a2;
- return ((_a2 = currentStep.value) == null ? void 0 : _a2.placement) || props2.placement;
- });
- const mergedContentStyle = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.contentStyle) != null ? _b : props2.contentStyle;
- });
- const mergedMask = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.mask) != null ? _b : props2.mask;
- });
- const mergedShowMask = computed(() => !!mergedMask.value && props2.modelValue);
- const mergedMaskStyle = computed(() => isBoolean2(mergedMask.value) ? void 0 : mergedMask.value);
- const mergedShowArrow = computed(() => {
- var _a2, _b;
- return !!currentTarget.value && ((_b = (_a2 = currentStep.value) == null ? void 0 : _a2.showArrow) != null ? _b : props2.showArrow);
- });
- const mergedScrollIntoViewOptions = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.scrollIntoViewOptions) != null ? _b : props2.scrollIntoViewOptions;
- });
- const mergedType = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = currentStep.value) == null ? void 0 : _a2.type) != null ? _b : props2.type;
- });
- const { nextZIndex } = useZIndex();
- const nowZIndex = nextZIndex();
- const mergedZIndex = computed(() => {
- var _a2;
- return (_a2 = props2.zIndex) != null ? _a2 : nowZIndex;
- });
- const { mergedPosInfo: pos, triggerTarget } = useTarget(currentTarget, toRef(props2, "modelValue"), toRef(props2, "gap"), mergedMask, mergedScrollIntoViewOptions);
- watch(() => props2.modelValue, (val) => {
- if (!val) {
- current.value = 0;
- }
- });
- const onEscClose = () => {
- if (props2.closeOnPressEscape) {
- emit(UPDATE_MODEL_EVENT, false);
- emit("close", current.value);
- }
- };
- const onUpdateTotal = (val) => {
- total2.value = val;
- };
- const slots = useSlots();
- provide(tourKey, {
- currentStep,
- current,
- total: total2,
- showClose: toRef(props2, "showClose"),
- closeIcon: toRef(props2, "closeIcon"),
- mergedType,
- ns,
- slots,
- updateModelValue(modelValue) {
- emit(UPDATE_MODEL_EVENT, modelValue);
- },
- onClose() {
- emit("close", current.value);
- },
- onFinish() {
- emit("finish");
- },
- onChange() {
- emit(CHANGE_EVENT, current.value);
- }
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock(Fragment, null, [
- createVNode(unref(ElTeleport), { to: _ctx.appendTo }, {
- default: withCtx(() => {
- var _a2, _b;
- return [
- createBaseVNode("div", mergeProps({ class: unref(kls) }, _ctx.$attrs), [
- createVNode(ElTourMask, {
- visible: unref(mergedShowMask),
- fill: (_a2 = unref(mergedMaskStyle)) == null ? void 0 : _a2.color,
- style: normalizeStyle((_b = unref(mergedMaskStyle)) == null ? void 0 : _b.style),
- pos: unref(pos),
- "z-index": unref(mergedZIndex),
- "target-area-clickable": _ctx.targetAreaClickable
- }, null, 8, ["visible", "fill", "style", "pos", "z-index", "target-area-clickable"]),
- _ctx.modelValue ? (openBlock(), createBlock(ElTourContent, {
- key: unref(current),
- reference: unref(triggerTarget),
- placement: unref(mergedPlacement),
- "show-arrow": unref(mergedShowArrow),
- "z-index": unref(mergedZIndex),
- style: normalizeStyle(unref(mergedContentStyle)),
- onClose: onEscClose
- }, {
- default: withCtx(() => [
- createVNode(unref(ElTourSteps), {
- current: unref(current),
- onUpdateTotal
- }, {
- default: withCtx(() => [
- renderSlot(_ctx.$slots, "default")
- ]),
- _: 3
- }, 8, ["current"])
- ]),
- _: 3
- }, 8, ["reference", "placement", "show-arrow", "z-index", "style"])) : createCommentVNode("v-if", true)
- ], 16)
- ];
- }),
- _: 3
- }, 8, ["to"]),
- createCommentVNode(" just for IDE "),
- createCommentVNode("v-if", true)
- ], 64);
- };
- }
- });
- var Tour = _export_sfc(_sfc_main449, [["__file", "tour.vue"]]);
- // node_modules/element-plus/es/components/tour/src/step.mjs
- var tourStepProps = buildProps({
- target: {
- type: definePropType([String, Object, Function])
- },
- title: String,
- description: String,
- showClose: {
- type: Boolean,
- default: void 0
- },
- closeIcon: {
- type: iconPropType
- },
- showArrow: {
- type: Boolean,
- default: void 0
- },
- placement: tourContentProps.placement,
- mask: {
- type: definePropType([Boolean, Object]),
- default: void 0
- },
- contentStyle: {
- type: definePropType([Object])
- },
- prevButtonProps: {
- type: definePropType(Object)
- },
- nextButtonProps: {
- type: definePropType(Object)
- },
- scrollIntoViewOptions: {
- type: definePropType([Boolean, Object]),
- default: void 0
- },
- type: {
- type: definePropType(String)
- }
- });
- var tourStepEmits = {
- close: () => true
- };
- // node_modules/element-plus/es/components/tour/src/step2.mjs
- var __default__121 = defineComponent({
- name: "ElTourStep"
- });
- var _sfc_main450 = defineComponent({
- ...__default__121,
- props: tourStepProps,
- emits: tourStepEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const { Close } = CloseComponents;
- const { t } = useLocale();
- const {
- currentStep,
- current,
- total: total2,
- showClose,
- closeIcon,
- mergedType,
- ns,
- slots: tourSlots,
- updateModelValue,
- onClose: tourOnClose,
- onFinish: tourOnFinish,
- onChange
- } = inject(tourKey);
- watch(props2, (val) => {
- currentStep.value = val;
- }, {
- immediate: true
- });
- const mergedShowClose = computed(() => {
- var _a2;
- return (_a2 = props2.showClose) != null ? _a2 : showClose.value;
- });
- const mergedCloseIcon = computed(() => {
- var _a2, _b;
- return (_b = (_a2 = props2.closeIcon) != null ? _a2 : closeIcon.value) != null ? _b : Close;
- });
- const filterButtonProps = (btnProps) => {
- if (!btnProps)
- return;
- return omit_default(btnProps, ["children", "onClick"]);
- };
- const onPrev = () => {
- var _a2, _b;
- current.value -= 1;
- if ((_a2 = props2.prevButtonProps) == null ? void 0 : _a2.onClick) {
- (_b = props2.prevButtonProps) == null ? void 0 : _b.onClick();
- }
- onChange();
- };
- const onNext = () => {
- var _a2;
- if (current.value >= total2.value - 1) {
- onFinish();
- } else {
- current.value += 1;
- }
- if ((_a2 = props2.nextButtonProps) == null ? void 0 : _a2.onClick) {
- props2.nextButtonProps.onClick();
- }
- onChange();
- };
- const onFinish = () => {
- onClose();
- tourOnFinish();
- };
- const onClose = () => {
- updateModelValue(false);
- tourOnClose();
- emit("close");
- };
- const handleKeydown = (e) => {
- const target2 = e.target;
- if (target2 == null ? void 0 : target2.isContentEditable)
- return;
- const actions = {
- [EVENT_CODE.left]: () => current.value > 0 && onPrev(),
- [EVENT_CODE.right]: onNext
- };
- const action = actions[e.code];
- if (action) {
- e.preventDefault();
- action();
- }
- };
- onMounted(() => {
- window.addEventListener("keydown", handleKeydown);
- });
- onBeforeUnmount(() => {
- window.removeEventListener("keydown", handleKeydown);
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock(Fragment, null, [
- unref(mergedShowClose) ? (openBlock(), createElementBlock("button", {
- key: 0,
- "aria-label": "Close",
- class: normalizeClass(unref(ns).e("closebtn")),
- type: "button",
- onClick: onClose
- }, [
- createVNode(unref(ElIcon), {
- class: normalizeClass(unref(ns).e("close"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(mergedCloseIcon))))
- ]),
- _: 1
- }, 8, ["class"])
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("header", {
- class: normalizeClass([unref(ns).e("header"), { "show-close": unref(showClose) }])
- }, [
- renderSlot(_ctx.$slots, "header", {}, () => [
- createBaseVNode("span", {
- role: "heading",
- class: normalizeClass(unref(ns).e("title"))
- }, toDisplayString(_ctx.title), 3)
- ])
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("body"))
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createBaseVNode("span", null, toDisplayString(_ctx.description), 1)
- ])
- ], 2),
- createBaseVNode("footer", {
- class: normalizeClass(unref(ns).e("footer"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).b("indicators"))
- }, [
- unref(tourSlots).indicators ? (openBlock(), createBlock(resolveDynamicComponent(unref(tourSlots).indicators), {
- key: 0,
- current: unref(current),
- total: unref(total2)
- }, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(total2), (item, index) => {
- return openBlock(), createElementBlock("span", {
- key: item,
- class: normalizeClass([unref(ns).b("indicator"), index === unref(current) ? "is-active" : ""])
- }, null, 2);
- }), 128))
- ], 2),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).b("buttons"))
- }, [
- unref(current) > 0 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
- key: 0,
- size: "small",
- type: unref(mergedType)
- }, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
- default: withCtx(() => {
- var _a2, _b;
- return [
- createTextVNode(toDisplayString((_b = (_a2 = _ctx.prevButtonProps) == null ? void 0 : _a2.children) != null ? _b : unref(t)("el.tour.previous")), 1)
- ];
- }),
- _: 1
- }, 16, ["type"])) : createCommentVNode("v-if", true),
- unref(current) <= unref(total2) - 1 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
- key: 1,
- size: "small",
- type: unref(mergedType) === "primary" ? "default" : "primary"
- }, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
- default: withCtx(() => {
- var _a2, _b;
- return [
- 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)
- ];
- }),
- _: 1
- }, 16, ["type"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 2)
- ], 64);
- };
- }
- });
- var TourStep = _export_sfc(_sfc_main450, [["__file", "step.vue"]]);
- // node_modules/element-plus/es/components/tour/index.mjs
- var ElTour = withInstall(Tour, {
- TourStep
- });
- var ElTourStep = withNoopInstall(TourStep);
- // node_modules/element-plus/es/components/anchor/src/anchor.mjs
- var anchorProps = buildProps({
- container: {
- type: definePropType([
- String,
- Object
- ])
- },
- offset: {
- type: Number,
- default: 0
- },
- bound: {
- type: Number,
- default: 15
- },
- duration: {
- type: Number,
- default: 300
- },
- marker: {
- type: Boolean,
- default: true
- },
- type: {
- type: definePropType(String),
- default: "default"
- },
- direction: {
- type: definePropType(String),
- default: "vertical"
- },
- selectScrollTop: Boolean
- });
- var anchorEmits = {
- change: (href) => isString(href),
- click: (e, href) => e instanceof MouseEvent && (isString(href) || isUndefined2(href))
- };
- // node_modules/element-plus/es/components/anchor/src/constants.mjs
- var anchorKey = Symbol("anchor");
- // node_modules/element-plus/es/utils/dom/element.mjs
- var getElement = (target2) => {
- if (!isClient || target2 === "")
- return null;
- if (isString(target2)) {
- try {
- return document.querySelector(target2);
- } catch (e) {
- return null;
- }
- }
- return target2;
- };
- // node_modules/element-plus/es/utils/throttleByRaf.mjs
- function throttleByRaf(cb) {
- let timer = 0;
- const throttle2 = (...args) => {
- if (timer) {
- cAF(timer);
- }
- timer = rAF(() => {
- cb(...args);
- timer = 0;
- });
- };
- throttle2.cancel = () => {
- cAF(timer);
- timer = 0;
- };
- return throttle2;
- }
- // node_modules/element-plus/es/components/anchor/src/anchor2.mjs
- var __default__122 = defineComponent({
- name: "ElAnchor"
- });
- var _sfc_main451 = defineComponent({
- ...__default__122,
- props: anchorProps,
- emits: anchorEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const slots = useSlots();
- const currentAnchor = ref("");
- const markerStyle = ref({});
- const anchorRef = ref(null);
- const markerRef = ref(null);
- const containerEl = ref();
- const links = {};
- let isScrolling = false;
- let currentScrollTop = 0;
- const ns = useNamespace("anchor");
- const cls = computed(() => [
- ns.b(),
- props2.type === "underline" ? ns.m("underline") : "",
- ns.m(props2.direction)
- ]);
- const addLink = (state) => {
- links[state.href] = state.el;
- };
- const removeLink = (href) => {
- delete links[href];
- };
- const setCurrentAnchor = (href) => {
- const activeHref = currentAnchor.value;
- if (activeHref !== href) {
- currentAnchor.value = href;
- emit(CHANGE_EVENT, href);
- }
- };
- let clearAnimate = null;
- const scrollToAnchor = (href) => {
- if (!containerEl.value)
- return;
- const target2 = getElement(href);
- if (!target2)
- return;
- if (clearAnimate)
- clearAnimate();
- isScrolling = true;
- const scrollEle = getScrollElement(target2, containerEl.value);
- const distance = getOffsetTopDistance(target2, scrollEle);
- const max4 = scrollEle.scrollHeight - scrollEle.clientHeight;
- const to = Math.min(distance - props2.offset, max4);
- clearAnimate = animateScrollTo(containerEl.value, currentScrollTop, to, props2.duration, () => {
- setTimeout(() => {
- isScrolling = false;
- }, 20);
- });
- };
- const scrollTo = (href) => {
- if (href) {
- setCurrentAnchor(href);
- scrollToAnchor(href);
- }
- };
- const handleClick = (e, href) => {
- emit("click", e, href);
- scrollTo(href);
- };
- const handleScroll2 = throttleByRaf(() => {
- if (containerEl.value) {
- currentScrollTop = getScrollTop(containerEl.value);
- }
- const currentHref = getCurrentHref();
- if (isScrolling || isUndefined2(currentHref))
- return;
- setCurrentAnchor(currentHref);
- });
- const getCurrentHref = () => {
- if (!containerEl.value)
- return;
- const scrollTop = getScrollTop(containerEl.value);
- const anchorTopList = [];
- for (const href of Object.keys(links)) {
- const target2 = getElement(href);
- if (!target2)
- continue;
- const scrollEle = getScrollElement(target2, containerEl.value);
- const distance = getOffsetTopDistance(target2, scrollEle);
- anchorTopList.push({
- top: distance - props2.offset - props2.bound,
- href
- });
- }
- anchorTopList.sort((prev, next) => prev.top - next.top);
- for (let i = 0; i < anchorTopList.length; i++) {
- const item = anchorTopList[i];
- const next = anchorTopList[i + 1];
- if (i === 0 && scrollTop === 0) {
- return props2.selectScrollTop ? item.href : "";
- }
- if (item.top <= scrollTop && (!next || next.top > scrollTop)) {
- return item.href;
- }
- }
- };
- const getContainer = () => {
- const el = getElement(props2.container);
- if (!el || isWindow(el)) {
- containerEl.value = window;
- } else {
- containerEl.value = el;
- }
- };
- useEventListener(containerEl, "scroll", handleScroll2);
- const updateMarkerStyle = () => {
- nextTick(() => {
- if (!anchorRef.value || !markerRef.value || !currentAnchor.value) {
- markerStyle.value = {};
- return;
- }
- const currentLinkEl = links[currentAnchor.value];
- if (!currentLinkEl) {
- markerStyle.value = {};
- return;
- }
- const anchorRect = anchorRef.value.getBoundingClientRect();
- const markerRect = markerRef.value.getBoundingClientRect();
- const linkRect = currentLinkEl.getBoundingClientRect();
- if (props2.direction === "horizontal") {
- const left = linkRect.left - anchorRect.left;
- markerStyle.value = {
- left: `${left}px`,
- width: `${linkRect.width}px`,
- opacity: 1
- };
- } else {
- const top = linkRect.top - anchorRect.top + (linkRect.height - markerRect.height) / 2;
- markerStyle.value = {
- top: `${top}px`,
- opacity: 1
- };
- }
- });
- };
- watch(currentAnchor, updateMarkerStyle);
- watch(() => {
- var _a2;
- return (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
- }, updateMarkerStyle);
- onMounted(() => {
- getContainer();
- const hash = decodeURIComponent(window.location.hash);
- const target2 = getElement(hash);
- if (target2) {
- scrollTo(hash);
- } else {
- handleScroll2();
- }
- });
- watch(() => props2.container, () => {
- getContainer();
- });
- provide(anchorKey, {
- ns,
- direction: props2.direction,
- currentAnchor,
- addLink,
- removeLink,
- handleClick
- });
- expose({
- scrollTo
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "anchorRef",
- ref: anchorRef,
- class: normalizeClass(unref(cls))
- }, [
- _ctx.marker ? (openBlock(), createElementBlock("div", {
- key: 0,
- ref_key: "markerRef",
- ref: markerRef,
- class: normalizeClass(unref(ns).e("marker")),
- style: normalizeStyle(markerStyle.value)
- }, null, 6)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("list"))
- }, [
- renderSlot(_ctx.$slots, "default")
- ], 2)
- ], 2);
- };
- }
- });
- var Anchor = _export_sfc(_sfc_main451, [["__file", "anchor.vue"]]);
- // node_modules/element-plus/es/components/anchor/src/anchor-link.mjs
- var anchorLinkProps = buildProps({
- title: String,
- href: String
- });
- // node_modules/element-plus/es/components/anchor/src/anchor-link2.mjs
- var __default__123 = defineComponent({
- name: "ElAnchorLink"
- });
- var _sfc_main452 = defineComponent({
- ...__default__123,
- props: anchorLinkProps,
- setup(__props) {
- const props2 = __props;
- const linkRef = ref(null);
- const {
- ns,
- direction: direction2,
- currentAnchor,
- addLink,
- removeLink,
- handleClick: contextHandleClick
- } = inject(anchorKey);
- const cls = computed(() => [
- ns.e("link"),
- ns.is("active", currentAnchor.value === props2.href)
- ]);
- const handleClick = (e) => {
- contextHandleClick(e, props2.href);
- };
- watch(() => props2.href, (val, oldVal) => {
- nextTick(() => {
- if (oldVal)
- removeLink(oldVal);
- if (val) {
- addLink({
- href: val,
- el: linkRef.value
- });
- }
- });
- });
- onMounted(() => {
- const { href } = props2;
- if (href) {
- addLink({
- href,
- el: linkRef.value
- });
- }
- });
- onBeforeUnmount(() => {
- const { href } = props2;
- if (href) {
- removeLink(href);
- }
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- class: normalizeClass(unref(ns).e("item"))
- }, [
- createBaseVNode("a", {
- ref_key: "linkRef",
- ref: linkRef,
- class: normalizeClass(unref(cls)),
- href: _ctx.href,
- onClick: handleClick
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- createTextVNode(toDisplayString(_ctx.title), 1)
- ])
- ], 10, ["href"]),
- _ctx.$slots["sub-link"] && unref(direction2) === "vertical" ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).e("list"))
- }, [
- renderSlot(_ctx.$slots, "sub-link")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var AnchorLink = _export_sfc(_sfc_main452, [["__file", "anchor-link.vue"]]);
- // node_modules/element-plus/es/components/anchor/index.mjs
- var ElAnchor = withInstall(Anchor, {
- AnchorLink
- });
- var ElAnchorLink = withNoopInstall(AnchorLink);
- // node_modules/element-plus/es/components/segmented/src/segmented.mjs
- var defaultProps5 = {
- label: "label",
- value: "value",
- disabled: "disabled"
- };
- var segmentedProps = buildProps({
- direction: {
- type: definePropType(String),
- default: "horizontal"
- },
- options: {
- type: definePropType(Array),
- default: () => []
- },
- modelValue: {
- type: [String, Number, Boolean],
- default: void 0
- },
- props: {
- type: definePropType(Object),
- default: () => defaultProps5
- },
- block: Boolean,
- size: useSizeProp,
- disabled: Boolean,
- validateEvent: {
- type: Boolean,
- default: true
- },
- id: String,
- name: String,
- ...useAriaProps(["ariaLabel"])
- });
- var segmentedEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val),
- [CHANGE_EVENT]: (val) => isString(val) || isNumber2(val) || isBoolean2(val)
- };
- // node_modules/element-plus/es/components/segmented/src/segmented2.mjs
- var __default__124 = defineComponent({
- name: "ElSegmented"
- });
- var _sfc_main453 = defineComponent({
- ...__default__124,
- props: segmentedProps,
- emits: segmentedEmits,
- setup(__props, { emit }) {
- const props2 = __props;
- const ns = useNamespace("segmented");
- const segmentedId = useId();
- const segmentedSize = useFormSize();
- const _disabled = useFormDisabled();
- const { formItem } = useFormItem();
- const { inputId, isLabeledByFormItem } = useFormItemInputId(props2, {
- formItemContext: formItem
- });
- const segmentedRef = ref(null);
- const activeElement = useActiveElement();
- const state = reactive({
- isInit: false,
- width: 0,
- height: 0,
- translateX: 0,
- translateY: 0,
- focusVisible: false
- });
- const handleChange = (item) => {
- const value = getValue3(item);
- emit(UPDATE_MODEL_EVENT, value);
- emit(CHANGE_EVENT, value);
- };
- const aliasProps = computed(() => ({ ...defaultProps5, ...props2.props }));
- const intoAny = (item) => item;
- const getValue3 = (item) => {
- return isObject(item) ? item[aliasProps.value.value] : item;
- };
- const getLabel = (item) => {
- return isObject(item) ? item[aliasProps.value.label] : item;
- };
- const getDisabled = (item) => {
- return !!(_disabled.value || (isObject(item) ? item[aliasProps.value.disabled] : false));
- };
- const getSelected = (item) => {
- return props2.modelValue === getValue3(item);
- };
- const getOption = (value) => {
- return props2.options.find((item) => getValue3(item) === value);
- };
- const getItemCls = (item) => {
- return [
- ns.e("item"),
- ns.is("selected", getSelected(item)),
- ns.is("disabled", getDisabled(item))
- ];
- };
- const updateSelect = () => {
- if (!segmentedRef.value)
- return;
- const selectedItem = segmentedRef.value.querySelector(".is-selected");
- const selectedItemInput = segmentedRef.value.querySelector(".is-selected input");
- if (!selectedItem || !selectedItemInput) {
- state.width = 0;
- state.height = 0;
- state.translateX = 0;
- state.translateY = 0;
- state.focusVisible = false;
- return;
- }
- state.isInit = true;
- if (props2.direction === "vertical") {
- state.height = selectedItem.offsetHeight;
- state.translateY = selectedItem.offsetTop;
- } else {
- state.width = selectedItem.offsetWidth;
- state.translateX = selectedItem.offsetLeft;
- }
- try {
- state.focusVisible = selectedItemInput.matches(":focus-visible");
- } catch (e) {
- }
- };
- const segmentedCls = computed(() => [
- ns.b(),
- ns.m(segmentedSize.value),
- ns.is("block", props2.block)
- ]);
- const selectedStyle = computed(() => ({
- width: props2.direction === "vertical" ? "100%" : `${state.width}px`,
- height: props2.direction === "vertical" ? `${state.height}px` : "100%",
- transform: props2.direction === "vertical" ? `translateY(${state.translateY}px)` : `translateX(${state.translateX}px)`,
- display: state.isInit ? "block" : "none"
- }));
- const selectedCls = computed(() => [
- ns.e("item-selected"),
- ns.is("disabled", getDisabled(getOption(props2.modelValue))),
- ns.is("focus-visible", state.focusVisible)
- ]);
- const name = computed(() => {
- return props2.name || segmentedId.value;
- });
- useResizeObserver(segmentedRef, updateSelect);
- watch(activeElement, updateSelect);
- watch(() => props2.modelValue, () => {
- var _a2;
- updateSelect();
- if (props2.validateEvent) {
- (_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change").catch((err) => debugWarn());
- }
- }, {
- flush: "post"
- });
- return (_ctx, _cache) => {
- return _ctx.options.length ? (openBlock(), createElementBlock("div", {
- key: 0,
- id: unref(inputId),
- ref_key: "segmentedRef",
- ref: segmentedRef,
- class: normalizeClass(unref(segmentedCls)),
- role: "radiogroup",
- "aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "segmented" : void 0,
- "aria-labelledby": unref(isLabeledByFormItem) ? unref(formItem).labelId : void 0
- }, [
- createBaseVNode("div", {
- class: normalizeClass([unref(ns).e("group"), unref(ns).m(props2.direction)])
- }, [
- createBaseVNode("div", {
- style: normalizeStyle(unref(selectedStyle)),
- class: normalizeClass(unref(selectedCls))
- }, null, 6),
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
- return openBlock(), createElementBlock("label", {
- key: index,
- class: normalizeClass(getItemCls(item))
- }, [
- createBaseVNode("input", {
- class: normalizeClass(unref(ns).e("item-input")),
- type: "radio",
- name: unref(name),
- disabled: getDisabled(item),
- checked: getSelected(item),
- onChange: ($event) => handleChange(item)
- }, null, 42, ["name", "disabled", "checked", "onChange"]),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("item-label"))
- }, [
- renderSlot(_ctx.$slots, "default", {
- item: intoAny(item)
- }, () => [
- createTextVNode(toDisplayString(getLabel(item)), 1)
- ])
- ], 2)
- ], 2);
- }), 128))
- ], 2)
- ], 10, ["id", "aria-label", "aria-labelledby"])) : createCommentVNode("v-if", true);
- };
- }
- });
- var Segmented = _export_sfc(_sfc_main453, [["__file", "segmented.vue"]]);
- // node_modules/element-plus/es/components/segmented/index.mjs
- var ElSegmented = withInstall(Segmented);
- // node_modules/element-plus/es/components/mention/src/helper.mjs
- var filterOption = (pattern4, option) => {
- const lowerCase2 = pattern4.toLowerCase();
- const label = option.label || option.value;
- return label.toLowerCase().includes(lowerCase2);
- };
- var getMentionCtx = (inputEl, prefix, split2) => {
- const { selectionEnd } = inputEl;
- if (selectionEnd === null)
- return;
- const inputValue = inputEl.value;
- const prefixArray = castArray_default(prefix);
- let splitIndex = -1;
- let mentionCtx;
- for (let i = selectionEnd - 1; i >= 0; --i) {
- const char = inputValue[i];
- if (char === split2 || char === "\n" || char === "\r") {
- splitIndex = i;
- continue;
- }
- if (prefixArray.includes(char)) {
- const end = splitIndex === -1 ? selectionEnd : splitIndex;
- const pattern4 = inputValue.slice(i + 1, end);
- mentionCtx = {
- pattern: pattern4,
- start: i + 1,
- end,
- prefix: char,
- prefixIndex: i,
- splitIndex,
- selectionEnd
- };
- break;
- }
- }
- return mentionCtx;
- };
- var getCursorPosition = (element, options = {
- debug: false,
- useSelectionEnd: false
- }) => {
- const selectionStart = element.selectionStart !== null ? element.selectionStart : 0;
- const selectionEnd = element.selectionEnd !== null ? element.selectionEnd : 0;
- const position = options.useSelectionEnd ? selectionEnd : selectionStart;
- const properties = [
- "direction",
- "boxSizing",
- "width",
- "height",
- "overflowX",
- "overflowY",
- "borderTopWidth",
- "borderRightWidth",
- "borderBottomWidth",
- "borderLeftWidth",
- "borderStyle",
- "paddingTop",
- "paddingRight",
- "paddingBottom",
- "paddingLeft",
- "fontStyle",
- "fontVariant",
- "fontWeight",
- "fontStretch",
- "fontSize",
- "fontSizeAdjust",
- "lineHeight",
- "fontFamily",
- "textAlign",
- "textTransform",
- "textIndent",
- "textDecoration",
- "letterSpacing",
- "wordSpacing",
- "tabSize",
- "MozTabSize"
- ];
- if (options.debug) {
- const el = document.querySelector("#input-textarea-caret-position-mirror-div");
- if (el == null ? void 0 : el.parentNode)
- el.parentNode.removeChild(el);
- }
- const div = document.createElement("div");
- div.id = "input-textarea-caret-position-mirror-div";
- document.body.appendChild(div);
- const style = div.style;
- const computed2 = window.getComputedStyle(element);
- const isInput = element.nodeName === "INPUT";
- style.whiteSpace = isInput ? "nowrap" : "pre-wrap";
- if (!isInput)
- style.wordWrap = "break-word";
- style.position = "absolute";
- if (!options.debug)
- style.visibility = "hidden";
- properties.forEach((prop) => {
- if (isInput && prop === "lineHeight") {
- if (computed2.boxSizing === "border-box") {
- const height = Number.parseInt(computed2.height);
- const outerHeight = Number.parseInt(computed2.paddingTop) + Number.parseInt(computed2.paddingBottom) + Number.parseInt(computed2.borderTopWidth) + Number.parseInt(computed2.borderBottomWidth);
- const targetHeight = outerHeight + Number.parseInt(computed2.lineHeight);
- if (height > targetHeight) {
- style.lineHeight = `${height - outerHeight}px`;
- } else if (height === targetHeight) {
- style.lineHeight = computed2.lineHeight;
- } else {
- style.lineHeight = "0";
- }
- } else {
- style.lineHeight = computed2.height;
- }
- } else {
- style[prop] = computed2[prop];
- }
- });
- if (isFirefox()) {
- if (element.scrollHeight > Number.parseInt(computed2.height)) {
- style.overflowY = "scroll";
- }
- } else {
- style.overflow = "hidden";
- }
- div.textContent = element.value.slice(0, Math.max(0, position));
- if (isInput && div.textContent) {
- div.textContent = div.textContent.replace(/\s/g, " ");
- }
- const span = document.createElement("span");
- span.textContent = element.value.slice(Math.max(0, position)) || ".";
- span.style.position = "relative";
- span.style.left = `${-element.scrollLeft}px`;
- span.style.top = `${-element.scrollTop}px`;
- div.appendChild(span);
- const relativePosition = {
- top: span.offsetTop + Number.parseInt(computed2.borderTopWidth),
- left: span.offsetLeft + Number.parseInt(computed2.borderLeftWidth),
- height: Number.parseInt(computed2.fontSize) * 1.5
- };
- if (options.debug) {
- span.style.backgroundColor = "#aaa";
- } else {
- document.body.removeChild(div);
- }
- if (relativePosition.left >= element.clientWidth) {
- relativePosition.left = element.clientWidth;
- }
- return relativePosition;
- };
- // node_modules/element-plus/es/components/mention/src/mention.mjs
- var mentionProps = buildProps({
- ...inputProps,
- options: {
- type: definePropType(Array),
- default: () => []
- },
- prefix: {
- type: definePropType([String, Array]),
- default: "@",
- validator: (val) => {
- if (isString(val))
- return val.length === 1;
- return val.every((v2) => isString(v2) && v2.length === 1);
- }
- },
- split: {
- type: String,
- default: " ",
- validator: (val) => val.length === 1
- },
- filterOption: {
- type: definePropType([Boolean, Function]),
- default: () => filterOption,
- validator: (val) => {
- if (val === false)
- return true;
- return isFunction(val);
- }
- },
- placement: {
- type: definePropType(String),
- default: "bottom"
- },
- showArrow: Boolean,
- offset: {
- type: Number,
- default: 0
- },
- whole: Boolean,
- checkIsWhole: {
- type: definePropType(Function)
- },
- modelValue: String,
- loading: Boolean,
- popperClass: {
- type: String,
- default: ""
- },
- popperOptions: {
- type: definePropType(Object),
- default: () => ({})
- }
- });
- var mentionEmits = {
- [UPDATE_MODEL_EVENT]: (value) => isString(value),
- "whole-remove": (pattern4, prefix) => isString(pattern4) && isString(prefix),
- input: (value) => isString(value),
- search: (pattern4, prefix) => isString(pattern4) && isString(prefix),
- select: (option, prefix) => isString(option.value) && isString(prefix),
- focus: (evt) => evt instanceof FocusEvent,
- blur: (evt) => evt instanceof FocusEvent
- };
- // node_modules/element-plus/es/components/mention/src/mention-dropdown.mjs
- var mentionDropdownProps = buildProps({
- options: {
- type: definePropType(Array),
- default: () => []
- },
- loading: Boolean,
- disabled: Boolean,
- contentId: String,
- ariaLabel: String
- });
- var mentionDropdownEmits = {
- select: (option) => isString(option.value)
- };
- // node_modules/element-plus/es/components/mention/src/mention-dropdown2.mjs
- var __default__125 = defineComponent({
- name: "ElMentionDropdown"
- });
- var _sfc_main454 = defineComponent({
- ...__default__125,
- props: mentionDropdownProps,
- emits: mentionDropdownEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const ns = useNamespace("mention");
- const { t } = useLocale();
- const hoveringIndex = ref(-1);
- const scrollbarRef = ref();
- const optionRefs = ref();
- const dropdownRef = ref();
- const optionkls = (item, index) => [
- ns.be("dropdown", "item"),
- ns.is("hovering", hoveringIndex.value === index),
- ns.is("disabled", item.disabled || props2.disabled)
- ];
- const handleSelect = (item) => {
- if (item.disabled || props2.disabled)
- return;
- emit("select", item);
- };
- const handleMouseEnter = (index) => {
- hoveringIndex.value = index;
- };
- const filteredAllDisabled = computed(() => props2.disabled || props2.options.every((item) => item.disabled));
- const hoverOption = computed(() => props2.options[hoveringIndex.value]);
- const selectHoverOption = () => {
- if (!hoverOption.value)
- return;
- emit("select", hoverOption.value);
- };
- const navigateOptions = (direction2) => {
- const { options } = props2;
- if (options.length === 0 || filteredAllDisabled.value)
- return;
- if (direction2 === "next") {
- hoveringIndex.value++;
- if (hoveringIndex.value === options.length) {
- hoveringIndex.value = 0;
- }
- } else if (direction2 === "prev") {
- hoveringIndex.value--;
- if (hoveringIndex.value < 0) {
- hoveringIndex.value = options.length - 1;
- }
- }
- const option = options[hoveringIndex.value];
- if (option.disabled) {
- navigateOptions(direction2);
- return;
- }
- nextTick(() => scrollToOption(option));
- };
- const scrollToOption = (option) => {
- var _a2, _b, _c, _d;
- const { options } = props2;
- const index = options.findIndex((item) => item.value === option.value);
- const target2 = (_a2 = optionRefs.value) == null ? void 0 : _a2[index];
- if (target2) {
- const menu = (_c = (_b = dropdownRef.value) == null ? void 0 : _b.querySelector) == null ? void 0 : _c.call(_b, `.${ns.be("dropdown", "wrap")}`);
- if (menu) {
- scrollIntoView(menu, target2);
- }
- }
- (_d = scrollbarRef.value) == null ? void 0 : _d.handleScroll();
- };
- const resetHoveringIndex = () => {
- if (filteredAllDisabled.value || props2.options.length === 0) {
- hoveringIndex.value = -1;
- } else {
- hoveringIndex.value = 0;
- }
- };
- watch(() => props2.options, resetHoveringIndex, {
- immediate: true
- });
- expose({
- hoveringIndex,
- navigateOptions,
- selectHoverOption,
- hoverOption
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "dropdownRef",
- ref: dropdownRef,
- class: normalizeClass(unref(ns).b("dropdown"))
- }, [
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
- key: 0,
- class: normalizeClass(unref(ns).be("dropdown", "header"))
- }, [
- renderSlot(_ctx.$slots, "header")
- ], 2)) : createCommentVNode("v-if", true),
- withDirectives(createVNode(unref(ElScrollbar), {
- id: _ctx.contentId,
- ref_key: "scrollbarRef",
- ref: scrollbarRef,
- tag: "ul",
- "wrap-class": unref(ns).be("dropdown", "wrap"),
- "view-class": unref(ns).be("dropdown", "list"),
- role: "listbox",
- "aria-label": _ctx.ariaLabel,
- "aria-orientation": "vertical"
- }, {
- default: withCtx(() => [
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
- return openBlock(), createElementBlock("li", {
- id: `${_ctx.contentId}-${index}`,
- ref_for: true,
- ref_key: "optionRefs",
- ref: optionRefs,
- key: index,
- class: normalizeClass(optionkls(item, index)),
- role: "option",
- "aria-disabled": item.disabled || _ctx.disabled || void 0,
- "aria-selected": hoveringIndex.value === index,
- onMousemove: ($event) => handleMouseEnter(index),
- onClick: withModifiers(($event) => handleSelect(item), ["stop"])
- }, [
- renderSlot(_ctx.$slots, "label", {
- item,
- index
- }, () => {
- var _a2;
- return [
- createBaseVNode("span", null, toDisplayString((_a2 = item.label) != null ? _a2 : item.value), 1)
- ];
- })
- ], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"]);
- }), 128))
- ]),
- _: 3
- }, 8, ["id", "wrap-class", "view-class", "aria-label"]), [
- [vShow, _ctx.options.length > 0 && !_ctx.loading]
- ]),
- _ctx.loading ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(unref(ns).be("dropdown", "loading"))
- }, [
- renderSlot(_ctx.$slots, "loading", {}, () => [
- createTextVNode(toDisplayString(unref(t)("el.mention.loading")), 1)
- ])
- ], 2)) : createCommentVNode("v-if", true),
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
- key: 2,
- class: normalizeClass(unref(ns).be("dropdown", "footer"))
- }, [
- renderSlot(_ctx.$slots, "footer")
- ], 2)) : createCommentVNode("v-if", true)
- ], 2);
- };
- }
- });
- var ElMentionDropdown = _export_sfc(_sfc_main454, [["__file", "mention-dropdown.vue"]]);
- // node_modules/element-plus/es/components/mention/src/mention2.mjs
- var __default__126 = defineComponent({
- name: "ElMention",
- inheritAttrs: false
- });
- var _sfc_main455 = defineComponent({
- ...__default__126,
- props: mentionProps,
- emits: mentionEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const passInputProps = computed(() => pick_default(props2, Object.keys(inputProps)));
- const ns = useNamespace("mention");
- const disabled = useFormDisabled();
- const contentId = useId();
- const elInputRef = ref();
- const tooltipRef = ref();
- const dropdownRef = ref();
- const visible = ref(false);
- const cursorStyle = ref();
- const mentionCtx = ref();
- const computedPlacement = computed(() => props2.showArrow ? props2.placement : `${props2.placement}-start`);
- const computedFallbackPlacements = computed(() => props2.showArrow ? ["bottom", "top"] : ["bottom-start", "top-start"]);
- const filteredOptions = computed(() => {
- const { filterOption: filterOption2, options } = props2;
- if (!mentionCtx.value || !filterOption2)
- return options;
- return options.filter((option) => filterOption2(mentionCtx.value.pattern, option));
- });
- const dropdownVisible = computed(() => {
- return visible.value && (!!filteredOptions.value.length || props2.loading);
- });
- const hoveringId = computed(() => {
- var _a2;
- return `${contentId.value}-${(_a2 = dropdownRef.value) == null ? void 0 : _a2.hoveringIndex}`;
- });
- const handleInputChange = (value) => {
- emit(UPDATE_MODEL_EVENT, value);
- emit(INPUT_EVENT, value);
- syncAfterCursorMove();
- };
- const handleInputKeyDown = (event) => {
- var _a2, _b, _c, _d;
- if (!("code" in event) || ((_a2 = elInputRef.value) == null ? void 0 : _a2.isComposing))
- return;
- switch (event.code) {
- case EVENT_CODE.left:
- case EVENT_CODE.right:
- syncAfterCursorMove();
- break;
- case EVENT_CODE.up:
- case EVENT_CODE.down:
- if (!visible.value)
- return;
- event.preventDefault();
- (_b = dropdownRef.value) == null ? void 0 : _b.navigateOptions(event.code === EVENT_CODE.up ? "prev" : "next");
- break;
- case EVENT_CODE.enter:
- case EVENT_CODE.numpadEnter:
- if (!visible.value)
- return;
- event.preventDefault();
- if ((_c = dropdownRef.value) == null ? void 0 : _c.hoverOption) {
- (_d = dropdownRef.value) == null ? void 0 : _d.selectHoverOption();
- } else {
- visible.value = false;
- }
- break;
- case EVENT_CODE.esc:
- if (!visible.value)
- return;
- event.preventDefault();
- visible.value = false;
- break;
- case EVENT_CODE.backspace:
- if (props2.whole && mentionCtx.value) {
- const { splitIndex, selectionEnd, pattern: pattern4, prefixIndex, prefix } = mentionCtx.value;
- const inputEl = getInputEl();
- if (!inputEl)
- return;
- const inputValue = inputEl.value;
- const matchOption = props2.options.find((item) => item.value === pattern4);
- const isWhole = isFunction(props2.checkIsWhole) ? props2.checkIsWhole(pattern4, prefix) : matchOption;
- if (isWhole && splitIndex !== -1 && splitIndex + 1 === selectionEnd) {
- event.preventDefault();
- const newValue = inputValue.slice(0, prefixIndex) + inputValue.slice(splitIndex + 1);
- emit(UPDATE_MODEL_EVENT, newValue);
- emit(INPUT_EVENT, newValue);
- emit("whole-remove", pattern4, prefix);
- const newSelectionEnd = prefixIndex;
- nextTick(() => {
- inputEl.selectionStart = newSelectionEnd;
- inputEl.selectionEnd = newSelectionEnd;
- syncDropdownVisible();
- });
- }
- }
- }
- };
- const { wrapperRef } = useFocusController(elInputRef, {
- disabled,
- afterFocus() {
- syncAfterCursorMove();
- },
- beforeBlur(event) {
- var _a2;
- return (_a2 = tooltipRef.value) == null ? void 0 : _a2.isFocusInsideContent(event);
- },
- afterBlur() {
- visible.value = false;
- }
- });
- const handleInputMouseDown = () => {
- syncAfterCursorMove();
- };
- const handleSelect = (item) => {
- if (!mentionCtx.value)
- return;
- const inputEl = getInputEl();
- if (!inputEl)
- return;
- const inputValue = inputEl.value;
- const { split: split2 } = props2;
- const newEndPart = inputValue.slice(mentionCtx.value.end);
- const alreadySeparated = newEndPart.startsWith(split2);
- const newMiddlePart = `${item.value}${alreadySeparated ? "" : split2}`;
- const newValue = inputValue.slice(0, mentionCtx.value.start) + newMiddlePart + newEndPart;
- emit(UPDATE_MODEL_EVENT, newValue);
- emit(INPUT_EVENT, newValue);
- emit("select", item, mentionCtx.value.prefix);
- const newSelectionEnd = mentionCtx.value.start + newMiddlePart.length + (alreadySeparated ? 1 : 0);
- nextTick(() => {
- inputEl.selectionStart = newSelectionEnd;
- inputEl.selectionEnd = newSelectionEnd;
- inputEl.focus();
- syncDropdownVisible();
- });
- };
- const getInputEl = () => {
- var _a2, _b;
- return props2.type === "textarea" ? (_a2 = elInputRef.value) == null ? void 0 : _a2.textarea : (_b = elInputRef.value) == null ? void 0 : _b.input;
- };
- const syncAfterCursorMove = () => {
- setTimeout(() => {
- syncCursor();
- syncDropdownVisible();
- nextTick(() => {
- var _a2;
- return (_a2 = tooltipRef.value) == null ? void 0 : _a2.updatePopper();
- });
- }, 0);
- };
- const syncCursor = () => {
- const inputEl = getInputEl();
- if (!inputEl)
- return;
- const caretPosition = getCursorPosition(inputEl);
- const inputRect = inputEl.getBoundingClientRect();
- const elInputRect = elInputRef.value.$el.getBoundingClientRect();
- cursorStyle.value = {
- position: "absolute",
- width: 0,
- height: `${caretPosition.height}px`,
- left: `${caretPosition.left + inputRect.left - elInputRect.left}px`,
- top: `${caretPosition.top + inputRect.top - elInputRect.top}px`
- };
- };
- const syncDropdownVisible = () => {
- const inputEl = getInputEl();
- if (document.activeElement !== inputEl) {
- visible.value = false;
- return;
- }
- const { prefix, split: split2 } = props2;
- mentionCtx.value = getMentionCtx(inputEl, prefix, split2);
- if (mentionCtx.value && mentionCtx.value.splitIndex === -1) {
- visible.value = true;
- emit("search", mentionCtx.value.pattern, mentionCtx.value.prefix);
- return;
- }
- visible.value = false;
- };
- expose({
- input: elInputRef,
- tooltip: tooltipRef,
- dropdownVisible
- });
- return (_ctx, _cache) => {
- return openBlock(), createElementBlock("div", {
- ref_key: "wrapperRef",
- ref: wrapperRef,
- class: normalizeClass(unref(ns).b())
- }, [
- createVNode(unref(ElInput), mergeProps(mergeProps(unref(passInputProps), _ctx.$attrs), {
- ref_key: "elInputRef",
- ref: elInputRef,
- "model-value": _ctx.modelValue,
- disabled: unref(disabled),
- role: unref(dropdownVisible) ? "combobox" : void 0,
- "aria-activedescendant": unref(dropdownVisible) ? unref(hoveringId) || "" : void 0,
- "aria-controls": unref(dropdownVisible) ? unref(contentId) : void 0,
- "aria-expanded": unref(dropdownVisible) || void 0,
- "aria-label": _ctx.ariaLabel,
- "aria-autocomplete": unref(dropdownVisible) ? "none" : void 0,
- "aria-haspopup": unref(dropdownVisible) ? "listbox" : void 0,
- onInput: handleInputChange,
- onKeydown: handleInputKeyDown,
- onMousedown: handleInputMouseDown
- }), createSlots({
- _: 2
- }, [
- renderList(_ctx.$slots, (_2, name) => {
- return {
- name,
- fn: withCtx((slotProps) => [
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))
- ])
- };
- })
- ]), 1040, ["model-value", "disabled", "role", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "aria-autocomplete", "aria-haspopup"]),
- createVNode(unref(ElTooltip), {
- ref_key: "tooltipRef",
- ref: tooltipRef,
- visible: unref(dropdownVisible),
- "popper-class": [unref(ns).e("popper"), _ctx.popperClass],
- "popper-options": _ctx.popperOptions,
- placement: unref(computedPlacement),
- "fallback-placements": unref(computedFallbackPlacements),
- effect: "light",
- pure: "",
- offset: _ctx.offset,
- "show-arrow": _ctx.showArrow
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- style: normalizeStyle(cursorStyle.value)
- }, null, 4)
- ]),
- content: withCtx(() => {
- var _a2;
- return [
- createVNode(ElMentionDropdown, {
- ref_key: "dropdownRef",
- ref: dropdownRef,
- options: unref(filteredOptions),
- disabled: unref(disabled),
- loading: _ctx.loading,
- "content-id": unref(contentId),
- "aria-label": _ctx.ariaLabel,
- onSelect: handleSelect,
- onClick: withModifiers((_a2 = elInputRef.value) == null ? void 0 : _a2.focus, ["stop"])
- }, createSlots({
- _: 2
- }, [
- renderList(_ctx.$slots, (_2, name) => {
- return {
- name,
- fn: withCtx((slotProps) => [
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))
- ])
- };
- })
- ]), 1032, ["options", "disabled", "loading", "content-id", "aria-label", "onClick"])
- ];
- }),
- _: 3
- }, 8, ["visible", "popper-class", "popper-options", "placement", "fallback-placements", "offset", "show-arrow"])
- ], 2);
- };
- }
- });
- var Mention = _export_sfc(_sfc_main455, [["__file", "mention.vue"]]);
- // node_modules/element-plus/es/components/mention/index.mjs
- var ElMention = withInstall(Mention);
- // node_modules/element-plus/es/component.mjs
- var Components = [
- ElAffix,
- ElAlert,
- ElAutocomplete,
- ElAutoResizer,
- ElAvatar,
- ElBacktop,
- ElBadge,
- ElBreadcrumb,
- ElBreadcrumbItem,
- ElButton,
- ElButtonGroup,
- ElCalendar,
- ElCard,
- ElCarousel,
- ElCarouselItem,
- ElCascader,
- ElCascaderPanel,
- ElCheckTag,
- ElCheckbox,
- ElCheckboxButton,
- ElCheckboxGroup,
- ElCol,
- ElCollapse,
- ElCollapseItem,
- ElCollapseTransition,
- ElColorPickerPanel,
- ElColorPicker,
- ElConfigProvider,
- ElContainer,
- ElAside,
- ElFooter,
- ElHeader,
- ElMain,
- ElDatePicker,
- ElDatePickerPanel,
- ElDescriptions,
- ElDescriptionsItem,
- ElDialog,
- ElDivider,
- ElDrawer,
- ElDropdown,
- ElDropdownItem,
- ElDropdownMenu,
- ElEmpty,
- ElForm,
- ElFormItem,
- ElIcon,
- ElImage,
- ElImageViewer,
- ElInput,
- ElInputNumber,
- ElInputTag,
- ElLink,
- ElMenu,
- ElMenuItem,
- ElMenuItemGroup,
- ElSubMenu,
- ElPageHeader,
- ElPagination,
- ElPopconfirm,
- ElPopover,
- ElPopper,
- ElProgress,
- ElRadio,
- ElRadioButton,
- ElRadioGroup,
- ElRate,
- ElResult,
- ElRow,
- ElScrollbar,
- ElSelect,
- ElOption,
- ElOptionGroup,
- ElSelectV2,
- ElSkeleton,
- ElSkeletonItem,
- ElSlider,
- ElSpace,
- ElStatistic,
- ElCountdown,
- ElSteps,
- ElStep,
- ElSwitch,
- ElTable,
- ElTableColumn2,
- ElTableV2,
- ElTabs,
- ElTabPane,
- ElTag,
- ElText,
- ElTimePicker,
- ElTimeSelect,
- ElTimeline,
- ElTimelineItem,
- ElTooltip,
- ElTooltipV2,
- ElTransfer,
- ElTree,
- ElTreeSelect,
- ElTreeV2,
- ElUpload,
- ElWatermark,
- ElTour,
- ElTourStep,
- ElAnchor,
- ElAnchorLink,
- ElSegmented,
- ElMention,
- ElSplitter,
- ElSplitterPanel
- ];
- // node_modules/element-plus/es/components/infinite-scroll/src/index.mjs
- var SCOPE5 = "ElInfiniteScroll";
- var CHECK_INTERVAL = 50;
- var DEFAULT_DELAY = 200;
- var DEFAULT_DISTANCE = 0;
- var attributes = {
- delay: {
- type: Number,
- default: DEFAULT_DELAY
- },
- distance: {
- type: Number,
- default: DEFAULT_DISTANCE
- },
- disabled: {
- type: Boolean,
- default: false
- },
- immediate: {
- type: Boolean,
- default: true
- }
- };
- var getScrollOptions = (el, instance) => {
- return Object.entries(attributes).reduce((acm, [name, option]) => {
- var _a2, _b;
- const { type: type4, default: defaultValue } = option;
- const attrVal = el.getAttribute(`infinite-scroll-${name}`);
- let value = (_b = (_a2 = instance[attrVal]) != null ? _a2 : attrVal) != null ? _b : defaultValue;
- value = value === "false" ? false : value;
- value = type4(value);
- acm[name] = Number.isNaN(value) ? defaultValue : value;
- return acm;
- }, {});
- };
- var destroyObserver = (el) => {
- const { observer } = el[SCOPE5];
- if (observer) {
- observer.disconnect();
- delete el[SCOPE5].observer;
- }
- };
- var handleScroll = (el, cb) => {
- const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE5];
- const { disabled, distance } = getScrollOptions(el, instance);
- const { clientHeight, scrollHeight, scrollTop } = containerEl;
- const delta = scrollTop - lastScrollTop;
- el[SCOPE5].lastScrollTop = scrollTop;
- if (observer || disabled || delta < 0)
- return;
- let shouldTrigger = false;
- if (container === el) {
- shouldTrigger = scrollHeight - (clientHeight + scrollTop) <= distance;
- } else {
- const { clientTop, scrollHeight: height } = el;
- const offsetTop = getOffsetTopDistance(el, containerEl);
- shouldTrigger = scrollTop + clientHeight >= offsetTop + clientTop + height - distance;
- }
- if (shouldTrigger) {
- cb.call(instance);
- }
- };
- function checkFull(el, cb) {
- const { containerEl, instance } = el[SCOPE5];
- const { disabled } = getScrollOptions(el, instance);
- if (disabled || containerEl.clientHeight === 0)
- return;
- if (containerEl.scrollHeight <= containerEl.clientHeight) {
- cb.call(instance);
- } else {
- destroyObserver(el);
- }
- }
- var InfiniteScroll = {
- async mounted(el, binding) {
- const { instance, value: cb } = binding;
- if (!isFunction(cb)) {
- throwError(SCOPE5, "'v-infinite-scroll' binding value must be a function");
- }
- await nextTick();
- const { delay: delay2, immediate } = getScrollOptions(el, instance);
- const container = getScrollContainer(el, true);
- const containerEl = container === window ? document.documentElement : container;
- const onScroll = throttle_default(handleScroll.bind(null, el, cb), delay2);
- if (!container)
- return;
- el[SCOPE5] = {
- instance,
- container,
- containerEl,
- delay: delay2,
- cb,
- onScroll,
- lastScrollTop: containerEl.scrollTop
- };
- if (immediate) {
- const observer = new MutationObserver(throttle_default(checkFull.bind(null, el, cb), CHECK_INTERVAL));
- el[SCOPE5].observer = observer;
- observer.observe(el, { childList: true, subtree: true });
- checkFull(el, cb);
- }
- container.addEventListener("scroll", onScroll);
- },
- unmounted(el) {
- if (!el[SCOPE5])
- return;
- const { container, onScroll } = el[SCOPE5];
- container == null ? void 0 : container.removeEventListener("scroll", onScroll);
- destroyObserver(el);
- },
- async updated(el) {
- if (!el[SCOPE5]) {
- await nextTick();
- } else {
- const { containerEl, cb, observer } = el[SCOPE5];
- if (containerEl.clientHeight && observer) {
- checkFull(el, cb);
- }
- }
- }
- };
- // node_modules/element-plus/es/components/infinite-scroll/index.mjs
- var _InfiniteScroll = InfiniteScroll;
- _InfiniteScroll.install = (app) => {
- app.directive("InfiniteScroll", _InfiniteScroll);
- };
- var ElInfiniteScroll = _InfiniteScroll;
- // node_modules/element-plus/es/components/loading/src/loading.mjs
- function createLoadingComponent(options, appContext) {
- let afterLeaveTimer;
- const afterLeaveFlag = ref(false);
- const data = reactive({
- ...options,
- originalPosition: "",
- originalOverflow: "",
- visible: false
- });
- function setText(text) {
- data.text = text;
- }
- function destroySelf() {
- const target2 = data.parent;
- const ns = vm.ns;
- if (!target2.vLoadingAddClassList) {
- let loadingNumber = target2.getAttribute("loading-number");
- loadingNumber = Number.parseInt(loadingNumber) - 1;
- if (!loadingNumber) {
- removeClass(target2, ns.bm("parent", "relative"));
- target2.removeAttribute("loading-number");
- } else {
- target2.setAttribute("loading-number", loadingNumber.toString());
- }
- removeClass(target2, ns.bm("parent", "hidden"));
- }
- removeElLoadingChild();
- loadingInstance.unmount();
- }
- function removeElLoadingChild() {
- var _a2, _b;
- (_b = (_a2 = vm.$el) == null ? void 0 : _a2.parentNode) == null ? void 0 : _b.removeChild(vm.$el);
- }
- function close2() {
- var _a2;
- if (options.beforeClose && !options.beforeClose())
- return;
- afterLeaveFlag.value = true;
- clearTimeout(afterLeaveTimer);
- afterLeaveTimer = setTimeout(handleAfterLeave, 400);
- data.visible = false;
- (_a2 = options.closed) == null ? void 0 : _a2.call(options);
- }
- function handleAfterLeave() {
- if (!afterLeaveFlag.value)
- return;
- const target2 = data.parent;
- afterLeaveFlag.value = false;
- target2.vLoadingAddClassList = void 0;
- destroySelf();
- }
- const elLoadingComponent = defineComponent({
- name: "ElLoading",
- setup(_2, { expose }) {
- const { ns, zIndex: zIndex2 } = useGlobalComponentSettings("loading");
- expose({
- ns,
- zIndex: zIndex2
- });
- return () => {
- const svg = data.spinner || data.svg;
- const spinner = h("svg", {
- class: "circular",
- viewBox: data.svgViewBox ? data.svgViewBox : "0 0 50 50",
- ...svg ? { innerHTML: svg } : {}
- }, [
- h("circle", {
- class: "path",
- cx: "25",
- cy: "25",
- r: "20",
- fill: "none"
- })
- ]);
- const spinnerText = data.text ? h("p", { class: ns.b("text") }, [data.text]) : void 0;
- return h(Transition, {
- name: ns.b("fade"),
- onAfterLeave: handleAfterLeave
- }, {
- default: withCtx(() => [
- withDirectives(createVNode("div", {
- style: {
- backgroundColor: data.background || ""
- },
- class: [
- ns.b("mask"),
- data.customClass,
- data.fullscreen ? "is-fullscreen" : ""
- ]
- }, [
- h("div", {
- class: ns.b("spinner")
- }, [spinner, spinnerText])
- ]), [[vShow, data.visible]])
- ])
- });
- };
- }
- });
- const loadingInstance = createApp(elLoadingComponent);
- Object.assign(loadingInstance._context, appContext != null ? appContext : {});
- const vm = loadingInstance.mount(document.createElement("div"));
- return {
- ...toRefs(data),
- setText,
- removeElLoadingChild,
- close: close2,
- handleAfterLeave,
- vm,
- get $el() {
- return vm.$el;
- }
- };
- }
- // node_modules/element-plus/es/components/loading/src/service.mjs
- var fullscreenInstance = void 0;
- var Loading = function(options = {}) {
- if (!isClient)
- return void 0;
- const resolved = resolveOptions(options);
- if (resolved.fullscreen && fullscreenInstance) {
- return fullscreenInstance;
- }
- const instance = createLoadingComponent({
- ...resolved,
- closed: () => {
- var _a2;
- (_a2 = resolved.closed) == null ? void 0 : _a2.call(resolved);
- if (resolved.fullscreen)
- fullscreenInstance = void 0;
- }
- }, Loading._context);
- addStyle(resolved, resolved.parent, instance);
- addClassList(resolved, resolved.parent, instance);
- resolved.parent.vLoadingAddClassList = () => addClassList(resolved, resolved.parent, instance);
- let loadingNumber = resolved.parent.getAttribute("loading-number");
- if (!loadingNumber) {
- loadingNumber = "1";
- } else {
- loadingNumber = `${Number.parseInt(loadingNumber) + 1}`;
- }
- resolved.parent.setAttribute("loading-number", loadingNumber);
- resolved.parent.appendChild(instance.$el);
- nextTick(() => instance.visible.value = resolved.visible);
- if (resolved.fullscreen) {
- fullscreenInstance = instance;
- }
- return instance;
- };
- var resolveOptions = (options) => {
- var _a2, _b, _c, _d;
- let target2;
- if (isString(options.target)) {
- target2 = (_a2 = document.querySelector(options.target)) != null ? _a2 : document.body;
- } else {
- target2 = options.target || document.body;
- }
- return {
- parent: target2 === document.body || options.body ? document.body : target2,
- background: options.background || "",
- svg: options.svg || "",
- svgViewBox: options.svgViewBox || "",
- spinner: options.spinner || false,
- text: options.text || "",
- fullscreen: target2 === document.body && ((_b = options.fullscreen) != null ? _b : true),
- lock: (_c = options.lock) != null ? _c : false,
- customClass: options.customClass || "",
- visible: (_d = options.visible) != null ? _d : true,
- beforeClose: options.beforeClose,
- closed: options.closed,
- target: target2
- };
- };
- var addStyle = async (options, parent2, instance) => {
- const { nextZIndex } = instance.vm.zIndex || instance.vm._.exposed.zIndex;
- const maskStyle = {};
- if (options.fullscreen) {
- instance.originalPosition.value = getStyle(document.body, "position");
- instance.originalOverflow.value = getStyle(document.body, "overflow");
- maskStyle.zIndex = nextZIndex();
- } else if (options.parent === document.body) {
- instance.originalPosition.value = getStyle(document.body, "position");
- await nextTick();
- for (const property2 of ["top", "left"]) {
- const scroll = property2 === "top" ? "scrollTop" : "scrollLeft";
- maskStyle[property2] = `${options.target.getBoundingClientRect()[property2] + document.body[scroll] + document.documentElement[scroll] - Number.parseInt(getStyle(document.body, `margin-${property2}`), 10)}px`;
- }
- for (const property2 of ["height", "width"]) {
- maskStyle[property2] = `${options.target.getBoundingClientRect()[property2]}px`;
- }
- } else {
- instance.originalPosition.value = getStyle(parent2, "position");
- }
- for (const [key, value] of Object.entries(maskStyle)) {
- instance.$el.style[key] = value;
- }
- };
- var addClassList = (options, parent2, instance) => {
- const ns = instance.vm.ns || instance.vm._.exposed.ns;
- if (!["absolute", "fixed", "sticky"].includes(instance.originalPosition.value)) {
- addClass(parent2, ns.bm("parent", "relative"));
- } else {
- removeClass(parent2, ns.bm("parent", "relative"));
- }
- if (options.fullscreen && options.lock) {
- addClass(parent2, ns.bm("parent", "hidden"));
- } else {
- removeClass(parent2, ns.bm("parent", "hidden"));
- }
- };
- Loading._context = null;
- // node_modules/element-plus/es/components/loading/src/directive.mjs
- var INSTANCE_KEY = Symbol("ElLoading");
- var getAttributeName = (name) => {
- return `element-loading-${hyphenate(name)}`;
- };
- var createInstance = (el, binding) => {
- var _a2, _b, _c, _d;
- const vm = binding.instance;
- const getBindingProp = (key) => isObject(binding.value) ? binding.value[key] : void 0;
- const resolveExpression = (key) => {
- const data = isString(key) && (vm == null ? void 0 : vm[key]) || key;
- return ref(data);
- };
- const getProp2 = (name) => resolveExpression(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
- const fullscreen = (_a2 = getBindingProp("fullscreen")) != null ? _a2 : binding.modifiers.fullscreen;
- const options = {
- text: getProp2("text"),
- svg: getProp2("svg"),
- svgViewBox: getProp2("svgViewBox"),
- spinner: getProp2("spinner"),
- background: getProp2("background"),
- customClass: getProp2("customClass"),
- fullscreen,
- target: (_b = getBindingProp("target")) != null ? _b : fullscreen ? void 0 : el,
- body: (_c = getBindingProp("body")) != null ? _c : binding.modifiers.body,
- lock: (_d = getBindingProp("lock")) != null ? _d : binding.modifiers.lock
- };
- const instance = Loading(options);
- instance._context = vLoading._context;
- el[INSTANCE_KEY] = {
- options,
- instance
- };
- };
- var updateOptions = (originalOptions, newOptions) => {
- for (const key of Object.keys(originalOptions)) {
- if (isRef(originalOptions[key]))
- originalOptions[key].value = newOptions[key];
- }
- };
- var vLoading = {
- mounted(el, binding) {
- if (binding.value) {
- createInstance(el, binding);
- }
- },
- updated(el, binding) {
- const instance = el[INSTANCE_KEY];
- if (!binding.value) {
- instance == null ? void 0 : instance.instance.close();
- el[INSTANCE_KEY] = null;
- return;
- }
- if (!instance)
- createInstance(el, binding);
- else {
- updateOptions(instance.options, isObject(binding.value) ? binding.value : {
- text: el.getAttribute(getAttributeName("text")),
- svg: el.getAttribute(getAttributeName("svg")),
- svgViewBox: el.getAttribute(getAttributeName("svgViewBox")),
- spinner: el.getAttribute(getAttributeName("spinner")),
- background: el.getAttribute(getAttributeName("background")),
- customClass: el.getAttribute(getAttributeName("customClass"))
- });
- }
- },
- unmounted(el) {
- var _a2;
- (_a2 = el[INSTANCE_KEY]) == null ? void 0 : _a2.instance.close();
- el[INSTANCE_KEY] = null;
- }
- };
- vLoading._context = null;
- // node_modules/element-plus/es/components/loading/index.mjs
- var ElLoading = {
- install(app) {
- Loading._context = app._context;
- vLoading._context = app._context;
- app.directive("loading", vLoading);
- app.config.globalProperties.$loading = Loading;
- },
- directive: vLoading,
- service: Loading
- };
- // node_modules/element-plus/es/components/message/src/message2.mjs
- var messageTypes = [
- "primary",
- "success",
- "info",
- "warning",
- "error"
- ];
- var messagePlacement = [
- "top",
- "top-left",
- "top-right",
- "bottom",
- "bottom-left",
- "bottom-right"
- ];
- var MESSAGE_DEFAULT_PLACEMENT = "top";
- var messageDefaults = mutable({
- customClass: "",
- dangerouslyUseHTMLString: false,
- duration: 3e3,
- icon: void 0,
- id: "",
- message: "",
- onClose: void 0,
- showClose: false,
- type: "info",
- plain: false,
- offset: 16,
- placement: void 0,
- zIndex: 0,
- grouping: false,
- repeatNum: 1,
- appendTo: isClient ? document.body : void 0
- });
- var messageProps = buildProps({
- customClass: {
- type: String,
- default: messageDefaults.customClass
- },
- dangerouslyUseHTMLString: {
- type: Boolean,
- default: messageDefaults.dangerouslyUseHTMLString
- },
- duration: {
- type: Number,
- default: messageDefaults.duration
- },
- icon: {
- type: iconPropType,
- default: messageDefaults.icon
- },
- id: {
- type: String,
- default: messageDefaults.id
- },
- message: {
- type: definePropType([
- String,
- Object,
- Function
- ]),
- default: messageDefaults.message
- },
- onClose: {
- type: definePropType(Function),
- default: messageDefaults.onClose
- },
- showClose: {
- type: Boolean,
- default: messageDefaults.showClose
- },
- type: {
- type: String,
- values: messageTypes,
- default: messageDefaults.type
- },
- plain: {
- type: Boolean,
- default: messageDefaults.plain
- },
- offset: {
- type: Number,
- default: messageDefaults.offset
- },
- placement: {
- type: String,
- values: messagePlacement,
- default: messageDefaults.placement
- },
- zIndex: {
- type: Number,
- default: messageDefaults.zIndex
- },
- grouping: {
- type: Boolean,
- default: messageDefaults.grouping
- },
- repeatNum: {
- type: Number,
- default: messageDefaults.repeatNum
- }
- });
- var messageEmits = {
- destroy: () => true
- };
- // node_modules/element-plus/es/components/message/src/instance.mjs
- var placementInstances = shallowReactive({});
- var getOrCreatePlacementInstances = (placement) => {
- if (!placementInstances[placement]) {
- placementInstances[placement] = shallowReactive([]);
- }
- return placementInstances[placement];
- };
- var getInstance = (id, placement) => {
- const instances = placementInstances[placement] || [];
- const idx = instances.findIndex((instance) => instance.id === id);
- const current = instances[idx];
- let prev;
- if (idx > 0) {
- prev = instances[idx - 1];
- }
- return { current, prev };
- };
- var getLastOffset = (id, placement) => {
- const { prev } = getInstance(id, placement);
- if (!prev)
- return 0;
- return prev.vm.exposed.bottom.value;
- };
- var getOffsetOrSpace = (id, offset3, placement) => {
- const instances = placementInstances[placement] || [];
- const idx = instances.findIndex((instance) => instance.id === id);
- return idx > 0 ? 16 : offset3;
- };
- // node_modules/element-plus/es/components/message/src/message.mjs
- var __default__127 = defineComponent({
- name: "ElMessage"
- });
- var _sfc_main456 = defineComponent({
- ...__default__127,
- props: messageProps,
- emits: messageEmits,
- setup(__props, { expose, emit }) {
- const props2 = __props;
- const { Close } = TypeComponents;
- const isStartTransition = ref(false);
- const { ns, zIndex: zIndex2 } = useGlobalComponentSettings("message");
- const { currentZIndex, nextZIndex } = zIndex2;
- const messageRef = ref();
- const visible = ref(false);
- const height = ref(0);
- let stopTimer = void 0;
- const badgeType = computed(() => props2.type ? props2.type === "error" ? "danger" : props2.type : "info");
- const typeClass = computed(() => {
- const type4 = props2.type;
- return { [ns.bm("icon", type4)]: type4 && TypeComponentsMap[type4] };
- });
- const iconComponent = computed(() => props2.icon || TypeComponentsMap[props2.type] || "");
- const placement = computed(() => props2.placement || MESSAGE_DEFAULT_PLACEMENT);
- const lastOffset = computed(() => getLastOffset(props2.id, placement.value));
- const offset3 = computed(() => {
- return getOffsetOrSpace(props2.id, props2.offset, placement.value) + lastOffset.value;
- });
- const bottom = computed(() => height.value + offset3.value);
- const horizontalClass = computed(() => {
- if (placement.value.includes("left"))
- return ns.is("left");
- if (placement.value.includes("right"))
- return ns.is("right");
- return ns.is("center");
- });
- const verticalProperty = computed(() => placement.value.startsWith("top") ? "top" : "bottom");
- const customStyle = computed(() => ({
- [verticalProperty.value]: `${offset3.value}px`,
- zIndex: currentZIndex.value
- }));
- function startTimer() {
- if (props2.duration === 0)
- return;
- ({ stop: stopTimer } = useTimeoutFn(() => {
- close2();
- }, props2.duration));
- }
- function clearTimer() {
- stopTimer == null ? void 0 : stopTimer();
- }
- function close2() {
- visible.value = false;
- nextTick(() => {
- var _a2;
- if (!isStartTransition.value) {
- (_a2 = props2.onClose) == null ? void 0 : _a2.call(props2);
- emit("destroy");
- }
- });
- }
- function keydown({ code }) {
- if (code === EVENT_CODE.esc) {
- close2();
- }
- }
- onMounted(() => {
- startTimer();
- nextZIndex();
- visible.value = true;
- });
- watch(() => props2.repeatNum, () => {
- clearTimer();
- startTimer();
- });
- useEventListener(document, "keydown", keydown);
- useResizeObserver(messageRef, () => {
- height.value = messageRef.value.getBoundingClientRect().height;
- });
- expose({
- visible,
- bottom,
- close: close2
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, {
- name: unref(ns).b("fade"),
- onBeforeEnter: ($event) => isStartTransition.value = true,
- onBeforeLeave: _ctx.onClose,
- onAfterLeave: ($event) => _ctx.$emit("destroy"),
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("div", {
- id: _ctx.id,
- ref_key: "messageRef",
- ref: messageRef,
- class: normalizeClass([
- unref(ns).b(),
- { [unref(ns).m(_ctx.type)]: _ctx.type },
- unref(ns).is("closable", _ctx.showClose),
- unref(ns).is("plain", _ctx.plain),
- unref(ns).is("bottom", unref(verticalProperty) === "bottom"),
- unref(horizontalClass),
- _ctx.customClass
- ]),
- style: normalizeStyle(unref(customStyle)),
- role: "alert",
- onMouseenter: clearTimer,
- onMouseleave: startTimer
- }, [
- _ctx.repeatNum > 1 ? (openBlock(), createBlock(unref(ElBadge), {
- key: 0,
- value: _ctx.repeatNum,
- type: unref(badgeType),
- class: normalizeClass(unref(ns).e("badge"))
- }, null, 8, ["value", "type", "class"])) : createCommentVNode("v-if", true),
- unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 1,
- class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- renderSlot(_ctx.$slots, "default", {}, () => [
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", {
- key: 0,
- class: normalizeClass(unref(ns).e("content"))
- }, toDisplayString(_ctx.message), 3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
- createBaseVNode("p", {
- class: normalizeClass(unref(ns).e("content")),
- innerHTML: _ctx.message
- }, null, 10, ["innerHTML"])
- ], 2112))
- ]),
- _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
- key: 2,
- class: normalizeClass(unref(ns).e("closeBtn")),
- onClick: withModifiers(close2, ["stop"])
- }, {
- default: withCtx(() => [
- createVNode(unref(Close))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
- ], 46, ["id"]), [
- [vShow, visible.value]
- ])
- ]),
- _: 3
- }, 8, ["name", "onBeforeEnter", "onBeforeLeave", "onAfterLeave"]);
- };
- }
- });
- var MessageConstructor = _export_sfc(_sfc_main456, [["__file", "message.vue"]]);
- // node_modules/element-plus/es/components/message/src/method.mjs
- var seed = 1;
- var normalizeAppendTo = (normalized) => {
- const appendTo = normalized.appendTo;
- if (!appendTo) {
- normalized.appendTo = document.body;
- } else if (isString(normalized.appendTo)) {
- let appendTo2 = document.querySelector(normalized.appendTo);
- if (!isElement2(appendTo2)) {
- appendTo2 = document.body;
- }
- normalized.appendTo = appendTo2;
- }
- };
- var normalizePlacement = (normalized) => {
- if (!normalized.placement && isString(messageConfig.placement) && messageConfig.placement) {
- normalized.placement = messageConfig.placement;
- }
- if (!normalized.placement) {
- normalized.placement = MESSAGE_DEFAULT_PLACEMENT;
- }
- if (!messagePlacement.includes(normalized.placement)) {
- debugWarn("ElMessage", `Invalid placement: ${normalized.placement}. Falling back to '${MESSAGE_DEFAULT_PLACEMENT}'.`);
- normalized.placement = MESSAGE_DEFAULT_PLACEMENT;
- }
- };
- var normalizeOptions = (params) => {
- const options = !params || isString(params) || isVNode(params) || isFunction(params) ? { message: params } : params;
- const normalized = {
- ...messageDefaults,
- ...options
- };
- normalizeAppendTo(normalized);
- normalizePlacement(normalized);
- if (isBoolean2(messageConfig.grouping) && !normalized.grouping) {
- normalized.grouping = messageConfig.grouping;
- }
- if (isNumber2(messageConfig.duration) && normalized.duration === 3e3) {
- normalized.duration = messageConfig.duration;
- }
- if (isNumber2(messageConfig.offset) && normalized.offset === 16) {
- normalized.offset = messageConfig.offset;
- }
- if (isBoolean2(messageConfig.showClose) && !normalized.showClose) {
- normalized.showClose = messageConfig.showClose;
- }
- if (isBoolean2(messageConfig.plain) && !normalized.plain) {
- normalized.plain = messageConfig.plain;
- }
- return normalized;
- };
- var closeMessage = (instance) => {
- const placement = instance.props.placement || MESSAGE_DEFAULT_PLACEMENT;
- const instances = placementInstances[placement];
- const idx = instances.indexOf(instance);
- if (idx === -1)
- return;
- instances.splice(idx, 1);
- const { handler } = instance;
- handler.close();
- };
- var createMessage = ({ appendTo, ...options }, context) => {
- const id = `message_${seed++}`;
- const userOnClose = options.onClose;
- const container = document.createElement("div");
- const props2 = {
- ...options,
- id,
- onClose: () => {
- userOnClose == null ? void 0 : userOnClose();
- closeMessage(instance);
- },
- onDestroy: () => {
- render(null, container);
- }
- };
- const vnode = createVNode(MessageConstructor, props2, isFunction(props2.message) || isVNode(props2.message) ? {
- default: isFunction(props2.message) ? props2.message : () => props2.message
- } : null);
- vnode.appContext = context || message._context;
- render(vnode, container);
- appendTo.appendChild(container.firstElementChild);
- const vm = vnode.component;
- const handler = {
- close: () => {
- vm.exposed.close();
- }
- };
- const instance = {
- id,
- vnode,
- vm,
- handler,
- props: vnode.component.props
- };
- return instance;
- };
- var message = (options = {}, context) => {
- if (!isClient)
- return { close: () => void 0 };
- const normalized = normalizeOptions(options);
- const instances = getOrCreatePlacementInstances(normalized.placement || MESSAGE_DEFAULT_PLACEMENT);
- if (normalized.grouping && instances.length) {
- const instance2 = instances.find(({ vnode: vm }) => {
- var _a2;
- return ((_a2 = vm.props) == null ? void 0 : _a2.message) === normalized.message;
- });
- if (instance2) {
- instance2.props.repeatNum += 1;
- instance2.props.type = normalized.type;
- return instance2.handler;
- }
- }
- if (isNumber2(messageConfig.max) && instances.length >= messageConfig.max) {
- return { close: () => void 0 };
- }
- const instance = createMessage(normalized, context);
- instances.push(instance);
- return instance.handler;
- };
- messageTypes.forEach((type4) => {
- message[type4] = (options = {}, appContext) => {
- const normalized = normalizeOptions(options);
- return message({ ...normalized, type: type4 }, appContext);
- };
- });
- function closeAll(type4) {
- for (const placement in placementInstances) {
- if (hasOwn(placementInstances, placement)) {
- const instances = [...placementInstances[placement]];
- for (const instance of instances) {
- if (!type4 || type4 === instance.props.type) {
- instance.handler.close();
- }
- }
- }
- }
- }
- function closeAllByPlacement(placement) {
- if (!placementInstances[placement])
- return;
- const instances = [...placementInstances[placement]];
- instances.forEach((instance) => instance.handler.close());
- }
- message.closeAll = closeAll;
- message.closeAllByPlacement = closeAllByPlacement;
- message._context = null;
- // node_modules/element-plus/es/components/message/index.mjs
- var ElMessage = withInstallFunction(message, "$message");
- // node_modules/element-plus/es/directives/trap-focus/index.mjs
- var FOCUSABLE_CHILDREN = "_trap-focus-children";
- var FOCUS_STACK = [];
- var FOCUS_HANDLER = (e) => {
- if (FOCUS_STACK.length === 0)
- return;
- const focusableElement = FOCUS_STACK[FOCUS_STACK.length - 1][FOCUSABLE_CHILDREN];
- if (focusableElement.length > 0 && e.code === EVENT_CODE.tab) {
- if (focusableElement.length === 1) {
- e.preventDefault();
- if (document.activeElement !== focusableElement[0]) {
- focusableElement[0].focus();
- }
- return;
- }
- const goingBackward = e.shiftKey;
- const isFirst = e.target === focusableElement[0];
- const isLast = e.target === focusableElement[focusableElement.length - 1];
- if (isFirst && goingBackward) {
- e.preventDefault();
- focusableElement[focusableElement.length - 1].focus();
- }
- if (isLast && !goingBackward) {
- e.preventDefault();
- focusableElement[0].focus();
- }
- }
- };
- var TrapFocus = {
- beforeMount(el) {
- el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
- FOCUS_STACK.push(el);
- if (FOCUS_STACK.length <= 1) {
- document.addEventListener("keydown", FOCUS_HANDLER);
- }
- },
- updated(el) {
- nextTick(() => {
- el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
- });
- },
- unmounted() {
- FOCUS_STACK.shift();
- if (FOCUS_STACK.length === 0) {
- document.removeEventListener("keydown", FOCUS_HANDLER);
- }
- }
- };
- // node_modules/element-plus/es/components/message-box/src/index.mjs
- var _sfc_main457 = defineComponent({
- name: "ElMessageBox",
- directives: {
- TrapFocus
- },
- components: {
- ElButton,
- ElFocusTrap,
- ElInput,
- ElOverlay,
- ElIcon,
- ...TypeComponents
- },
- inheritAttrs: false,
- props: {
- buttonSize: {
- type: String,
- validator: isValidComponentSize
- },
- modal: {
- type: Boolean,
- default: true
- },
- lockScroll: {
- type: Boolean,
- default: true
- },
- showClose: {
- type: Boolean,
- default: true
- },
- closeOnClickModal: {
- type: Boolean,
- default: true
- },
- closeOnPressEscape: {
- type: Boolean,
- default: true
- },
- closeOnHashChange: {
- type: Boolean,
- default: true
- },
- center: Boolean,
- draggable: Boolean,
- overflow: Boolean,
- roundButton: Boolean,
- container: {
- type: String,
- default: "body"
- },
- boxType: {
- type: String,
- default: ""
- }
- },
- emits: ["vanish", "action"],
- setup(props2, { emit }) {
- const {
- locale,
- zIndex: zIndex2,
- ns,
- size: btnSize
- } = useGlobalComponentSettings("message-box", computed(() => props2.buttonSize));
- const { t } = locale;
- const { nextZIndex } = zIndex2;
- const visible = ref(false);
- const state = reactive({
- autofocus: true,
- beforeClose: null,
- callback: null,
- cancelButtonText: "",
- cancelButtonClass: "",
- confirmButtonText: "",
- confirmButtonClass: "",
- customClass: "",
- customStyle: {},
- dangerouslyUseHTMLString: false,
- distinguishCancelAndClose: false,
- icon: "",
- closeIcon: "",
- inputPattern: null,
- inputPlaceholder: "",
- inputType: "text",
- inputValue: "",
- inputValidator: void 0,
- inputErrorMessage: "",
- message: "",
- modalFade: true,
- modalClass: "",
- showCancelButton: false,
- showConfirmButton: true,
- type: "",
- title: void 0,
- showInput: false,
- action: "",
- confirmButtonLoading: false,
- cancelButtonLoading: false,
- confirmButtonLoadingIcon: markRaw(loading_default),
- cancelButtonLoadingIcon: markRaw(loading_default),
- confirmButtonDisabled: false,
- editorErrorMessage: "",
- validateError: false,
- zIndex: nextZIndex()
- });
- const typeClass = computed(() => {
- const type4 = state.type;
- return { [ns.bm("icon", type4)]: type4 && TypeComponentsMap[type4] };
- });
- const contentId = useId();
- const inputId = useId();
- const iconComponent = computed(() => {
- const type4 = state.type;
- return state.icon || type4 && TypeComponentsMap[type4] || "";
- });
- const hasMessage = computed(() => !!state.message);
- const rootRef = ref();
- const headerRef = ref();
- const focusStartRef = ref();
- const inputRef = ref();
- const confirmRef = ref();
- const confirmButtonClasses = computed(() => state.confirmButtonClass);
- watch(() => state.inputValue, async (val) => {
- await nextTick();
- if (props2.boxType === "prompt" && val) {
- validate();
- }
- }, { immediate: true });
- watch(() => visible.value, (val) => {
- var _a2, _b;
- if (val) {
- if (props2.boxType !== "prompt") {
- if (state.autofocus) {
- focusStartRef.value = (_b = (_a2 = confirmRef.value) == null ? void 0 : _a2.$el) != null ? _b : rootRef.value;
- } else {
- focusStartRef.value = rootRef.value;
- }
- }
- state.zIndex = nextZIndex();
- }
- if (props2.boxType !== "prompt")
- return;
- if (val) {
- nextTick().then(() => {
- var _a22;
- if (inputRef.value && inputRef.value.$el) {
- if (state.autofocus) {
- focusStartRef.value = (_a22 = getInputElement()) != null ? _a22 : rootRef.value;
- } else {
- focusStartRef.value = rootRef.value;
- }
- }
- });
- } else {
- state.editorErrorMessage = "";
- state.validateError = false;
- }
- });
- const draggable2 = computed(() => props2.draggable);
- const overflow = computed(() => props2.overflow);
- const { isDragging: isDragging2 } = useDraggable(rootRef, headerRef, draggable2, overflow);
- onMounted(async () => {
- await nextTick();
- if (props2.closeOnHashChange) {
- window.addEventListener("hashchange", doClose);
- }
- });
- onBeforeUnmount(() => {
- if (props2.closeOnHashChange) {
- window.removeEventListener("hashchange", doClose);
- }
- });
- function doClose() {
- if (!visible.value)
- return;
- visible.value = false;
- nextTick(() => {
- if (state.action)
- emit("action", state.action);
- });
- }
- const handleWrapperClick = () => {
- if (props2.closeOnClickModal) {
- handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
- }
- };
- const overlayEvent = useSameTarget(handleWrapperClick);
- const handleInputEnter = (e) => {
- if (state.inputType !== "textarea") {
- e.preventDefault();
- return handleAction("confirm");
- }
- };
- const handleAction = (action) => {
- var _a2;
- if (props2.boxType === "prompt" && action === "confirm" && !validate()) {
- return;
- }
- state.action = action;
- if (state.beforeClose) {
- (_a2 = state.beforeClose) == null ? void 0 : _a2.call(state, action, state, doClose);
- } else {
- doClose();
- }
- };
- const validate = () => {
- if (props2.boxType === "prompt") {
- const inputPattern = state.inputPattern;
- if (inputPattern && !inputPattern.test(state.inputValue || "")) {
- state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
- state.validateError = true;
- return false;
- }
- const inputValidator = state.inputValidator;
- if (isFunction(inputValidator)) {
- const validateResult = inputValidator(state.inputValue);
- if (validateResult === false) {
- state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
- state.validateError = true;
- return false;
- }
- if (isString(validateResult)) {
- state.editorErrorMessage = validateResult;
- state.validateError = true;
- return false;
- }
- }
- }
- state.editorErrorMessage = "";
- state.validateError = false;
- return true;
- };
- const getInputElement = () => {
- var _a2, _b;
- const inputRefs = (_a2 = inputRef.value) == null ? void 0 : _a2.$refs;
- return (_b = inputRefs == null ? void 0 : inputRefs.input) != null ? _b : inputRefs == null ? void 0 : inputRefs.textarea;
- };
- const handleClose = () => {
- handleAction("close");
- };
- const onCloseRequested = () => {
- if (props2.closeOnPressEscape) {
- handleClose();
- }
- };
- if (props2.lockScroll) {
- useLockscreen(visible);
- }
- return {
- ...toRefs(state),
- ns,
- overlayEvent,
- visible,
- hasMessage,
- typeClass,
- contentId,
- inputId,
- btnSize,
- iconComponent,
- confirmButtonClasses,
- rootRef,
- focusStartRef,
- headerRef,
- inputRef,
- isDragging: isDragging2,
- confirmRef,
- doClose,
- handleClose,
- onCloseRequested,
- handleWrapperClick,
- handleInputEnter,
- handleAction,
- t
- };
- }
- });
- function _sfc_render25(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_el_icon = resolveComponent("el-icon");
- const _component_el_input = resolveComponent("el-input");
- const _component_el_button = resolveComponent("el-button");
- const _component_el_focus_trap = resolveComponent("el-focus-trap");
- const _component_el_overlay = resolveComponent("el-overlay");
- return openBlock(), createBlock(Transition, {
- name: "fade-in-linear",
- onAfterLeave: ($event) => _ctx.$emit("vanish"),
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createVNode(_component_el_overlay, {
- "z-index": _ctx.zIndex,
- "overlay-class": [_ctx.ns.is("message-box"), _ctx.modalClass],
- mask: _ctx.modal
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- role: "dialog",
- "aria-label": _ctx.title,
- "aria-modal": "true",
- "aria-describedby": !_ctx.showInput ? _ctx.contentId : void 0,
- class: normalizeClass(`${_ctx.ns.namespace.value}-overlay-message-box`),
- onClick: _ctx.overlayEvent.onClick,
- onMousedown: _ctx.overlayEvent.onMousedown,
- onMouseup: _ctx.overlayEvent.onMouseup
- }, [
- createVNode(_component_el_focus_trap, {
- loop: "",
- trapped: _ctx.visible,
- "focus-trap-el": _ctx.rootRef,
- "focus-start-el": _ctx.focusStartRef,
- onReleaseRequested: _ctx.onCloseRequested
- }, {
- default: withCtx(() => [
- createBaseVNode("div", {
- ref: "rootRef",
- class: normalizeClass([
- _ctx.ns.b(),
- _ctx.customClass,
- _ctx.ns.is("draggable", _ctx.draggable),
- _ctx.ns.is("dragging", _ctx.isDragging),
- { [_ctx.ns.m("center")]: _ctx.center }
- ]),
- style: normalizeStyle(_ctx.customStyle),
- tabindex: "-1",
- onClick: withModifiers(() => {
- }, ["stop"])
- }, [
- _ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", {
- key: 0,
- ref: "headerRef",
- class: normalizeClass([_ctx.ns.e("header"), { "show-close": _ctx.showClose }])
- }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("title"))
- }, [
- _ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
- key: 0,
- class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- createBaseVNode("span", null, toDisplayString(_ctx.title), 1)
- ], 2),
- _ctx.showClose ? (openBlock(), createElementBlock("button", {
- key: 0,
- type: "button",
- class: normalizeClass(_ctx.ns.e("headerbtn")),
- "aria-label": _ctx.t("el.messagebox.close"),
- onClick: ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"),
- onKeydown: withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
- }, [
- createVNode(_component_el_icon, {
- class: normalizeClass(_ctx.ns.e("close"))
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || "close")))
- ]),
- _: 1
- }, 8, ["class"])
- ], 42, ["aria-label", "onClick", "onKeydown"])) : createCommentVNode("v-if", true)
- ], 2)) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- id: _ctx.contentId,
- class: normalizeClass(_ctx.ns.e("content"))
- }, [
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("container"))
- }, [
- _ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
- key: 0,
- class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- _ctx.hasMessage ? (openBlock(), createElementBlock("div", {
- key: 1,
- class: normalizeClass(_ctx.ns.e("message"))
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
- key: 0,
- for: _ctx.showInput ? _ctx.inputId : void 0,
- textContent: toDisplayString(_ctx.message)
- }, null, 8, ["for", "textContent"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
- key: 1,
- for: _ctx.showInput ? _ctx.inputId : void 0,
- innerHTML: _ctx.message
- }, null, 8, ["for", "innerHTML"]))
- ])
- ], 2)) : createCommentVNode("v-if", true)
- ], 2),
- withDirectives(createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("input"))
- }, [
- createVNode(_component_el_input, {
- id: _ctx.inputId,
- ref: "inputRef",
- modelValue: _ctx.inputValue,
- "onUpdate:modelValue": ($event) => _ctx.inputValue = $event,
- type: _ctx.inputType,
- placeholder: _ctx.inputPlaceholder,
- "aria-invalid": _ctx.validateError,
- class: normalizeClass({ invalid: _ctx.validateError }),
- onKeydown: withKeys(_ctx.handleInputEnter, ["enter"])
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("errormsg")),
- style: normalizeStyle({
- visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
- })
- }, toDisplayString(_ctx.editorErrorMessage), 7)
- ], 2), [
- [vShow, _ctx.showInput]
- ])
- ], 10, ["id"]),
- createBaseVNode("div", {
- class: normalizeClass(_ctx.ns.e("btns"))
- }, [
- _ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
- key: 0,
- loading: _ctx.cancelButtonLoading,
- "loading-icon": _ctx.cancelButtonLoadingIcon,
- class: normalizeClass([_ctx.cancelButtonClass]),
- round: _ctx.roundButton,
- size: _ctx.btnSize,
- onClick: ($event) => _ctx.handleAction("cancel"),
- onKeydown: withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"])
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
- ]),
- _: 1
- }, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : createCommentVNode("v-if", true),
- withDirectives(createVNode(_component_el_button, {
- ref: "confirmRef",
- type: "primary",
- loading: _ctx.confirmButtonLoading,
- "loading-icon": _ctx.confirmButtonLoadingIcon,
- class: normalizeClass([_ctx.confirmButtonClasses]),
- round: _ctx.roundButton,
- disabled: _ctx.confirmButtonDisabled,
- size: _ctx.btnSize,
- onClick: ($event) => _ctx.handleAction("confirm"),
- onKeydown: withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"])
- }, {
- default: withCtx(() => [
- createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
- ]),
- _: 1
- }, 8, ["loading", "loading-icon", "class", "round", "disabled", "size", "onClick", "onKeydown"]), [
- [vShow, _ctx.showConfirmButton]
- ])
- ], 2)
- ], 14, ["onClick"])
- ]),
- _: 3
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
- ], 42, ["aria-label", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
- ]),
- _: 3
- }, 8, ["z-index", "overlay-class", "mask"]), [
- [vShow, _ctx.visible]
- ])
- ]),
- _: 3
- }, 8, ["onAfterLeave"]);
- }
- var MessageBoxConstructor = _export_sfc(_sfc_main457, [["render", _sfc_render25], ["__file", "index.vue"]]);
- // node_modules/element-plus/es/components/message-box/src/messageBox.mjs
- var messageInstance = /* @__PURE__ */ new Map();
- var getAppendToElement = (props2) => {
- let appendTo = document.body;
- if (props2.appendTo) {
- if (isString(props2.appendTo)) {
- appendTo = document.querySelector(props2.appendTo);
- }
- if (isElement2(props2.appendTo)) {
- appendTo = props2.appendTo;
- }
- if (!isElement2(appendTo)) {
- appendTo = document.body;
- }
- }
- return appendTo;
- };
- var initInstance = (props2, container, appContext = null) => {
- const vnode = createVNode(MessageBoxConstructor, props2, isFunction(props2.message) || isVNode(props2.message) ? {
- default: isFunction(props2.message) ? props2.message : () => props2.message
- } : null);
- vnode.appContext = appContext;
- render(vnode, container);
- getAppendToElement(props2).appendChild(container.firstElementChild);
- return vnode.component;
- };
- var genContainer = () => {
- return document.createElement("div");
- };
- var showMessage = (options, appContext) => {
- const container = genContainer();
- options.onVanish = () => {
- render(null, container);
- messageInstance.delete(vm);
- };
- options.onAction = (action) => {
- const currentMsg = messageInstance.get(vm);
- let resolve;
- if (options.showInput) {
- resolve = { value: vm.inputValue, action };
- } else {
- resolve = action;
- }
- if (options.callback) {
- options.callback(resolve, instance.proxy);
- } else {
- if (action === "cancel" || action === "close") {
- if (options.distinguishCancelAndClose && action !== "cancel") {
- currentMsg.reject("close");
- } else {
- currentMsg.reject("cancel");
- }
- } else {
- currentMsg.resolve(resolve);
- }
- }
- };
- const instance = initInstance(options, container, appContext);
- const vm = instance.proxy;
- for (const prop in options) {
- if (hasOwn(options, prop) && !hasOwn(vm.$props, prop)) {
- if (prop === "closeIcon" && isObject(options[prop])) {
- vm[prop] = markRaw(options[prop]);
- } else {
- vm[prop] = options[prop];
- }
- }
- }
- vm.visible = true;
- return vm;
- };
- function MessageBox(options, appContext = null) {
- if (!isClient)
- return Promise.reject();
- let callback;
- if (isString(options) || isVNode(options)) {
- options = {
- message: options
- };
- } else {
- callback = options.callback;
- }
- return new Promise((resolve, reject2) => {
- const vm = showMessage(options, appContext != null ? appContext : MessageBox._context);
- messageInstance.set(vm, {
- options,
- callback,
- resolve,
- reject: reject2
- });
- });
- }
- var MESSAGE_BOX_VARIANTS = ["alert", "confirm", "prompt"];
- var MESSAGE_BOX_DEFAULT_OPTS = {
- alert: { closeOnPressEscape: false, closeOnClickModal: false },
- confirm: { showCancelButton: true },
- prompt: { showCancelButton: true, showInput: true }
- };
- MESSAGE_BOX_VARIANTS.forEach((boxType) => {
- MessageBox[boxType] = messageBoxFactory(boxType);
- });
- function messageBoxFactory(boxType) {
- return (message2, title, options, appContext) => {
- let titleOrOpts = "";
- if (isObject(title)) {
- options = title;
- titleOrOpts = "";
- } else if (isUndefined2(title)) {
- titleOrOpts = "";
- } else {
- titleOrOpts = title;
- }
- return MessageBox(Object.assign({
- title: titleOrOpts,
- message: message2,
- type: "",
- ...MESSAGE_BOX_DEFAULT_OPTS[boxType]
- }, options, {
- boxType
- }), appContext);
- };
- }
- MessageBox.close = () => {
- messageInstance.forEach((_2, vm) => {
- vm.doClose();
- });
- messageInstance.clear();
- };
- MessageBox._context = null;
- // node_modules/element-plus/es/components/message-box/index.mjs
- var _MessageBox = MessageBox;
- _MessageBox.install = (app) => {
- _MessageBox._context = app._context;
- app.config.globalProperties.$msgbox = _MessageBox;
- app.config.globalProperties.$messageBox = _MessageBox;
- app.config.globalProperties.$alert = _MessageBox.alert;
- app.config.globalProperties.$confirm = _MessageBox.confirm;
- app.config.globalProperties.$prompt = _MessageBox.prompt;
- };
- var ElMessageBox = _MessageBox;
- // node_modules/element-plus/es/components/notification/src/notification.mjs
- var notificationTypes = [
- "primary",
- "success",
- "info",
- "warning",
- "error"
- ];
- var notificationProps = buildProps({
- customClass: {
- type: String,
- default: ""
- },
- dangerouslyUseHTMLString: Boolean,
- duration: {
- type: Number,
- default: 4500
- },
- icon: {
- type: iconPropType
- },
- id: {
- type: String,
- default: ""
- },
- message: {
- type: definePropType([
- String,
- Object,
- Function
- ]),
- default: ""
- },
- offset: {
- type: Number,
- default: 0
- },
- onClick: {
- type: definePropType(Function),
- default: () => void 0
- },
- onClose: {
- type: definePropType(Function),
- required: true
- },
- position: {
- type: String,
- values: ["top-right", "top-left", "bottom-right", "bottom-left"],
- default: "top-right"
- },
- showClose: {
- type: Boolean,
- default: true
- },
- title: {
- type: String,
- default: ""
- },
- type: {
- type: String,
- values: [...notificationTypes, ""],
- default: ""
- },
- zIndex: Number,
- closeIcon: {
- type: iconPropType,
- default: close_default
- }
- });
- var notificationEmits = {
- destroy: () => true
- };
- // node_modules/element-plus/es/components/notification/src/notification2.mjs
- var __default__128 = defineComponent({
- name: "ElNotification"
- });
- var _sfc_main458 = defineComponent({
- ...__default__128,
- props: notificationProps,
- emits: notificationEmits,
- setup(__props, { expose }) {
- const props2 = __props;
- const { ns, zIndex: zIndex2 } = useGlobalComponentSettings("notification");
- const { nextZIndex, currentZIndex } = zIndex2;
- const visible = ref(false);
- let timer = void 0;
- const typeClass = computed(() => {
- const type4 = props2.type;
- return type4 && TypeComponentsMap[props2.type] ? ns.m(type4) : "";
- });
- const iconComponent = computed(() => {
- if (!props2.type)
- return props2.icon;
- return TypeComponentsMap[props2.type] || props2.icon;
- });
- const horizontalClass = computed(() => props2.position.endsWith("right") ? "right" : "left");
- const verticalProperty = computed(() => props2.position.startsWith("top") ? "top" : "bottom");
- const positionStyle = computed(() => {
- var _a2;
- return {
- [verticalProperty.value]: `${props2.offset}px`,
- zIndex: (_a2 = props2.zIndex) != null ? _a2 : currentZIndex.value
- };
- });
- function startTimer() {
- if (props2.duration > 0) {
- ({ stop: timer } = useTimeoutFn(() => {
- if (visible.value)
- close2();
- }, props2.duration));
- }
- }
- function clearTimer() {
- timer == null ? void 0 : timer();
- }
- function close2() {
- visible.value = false;
- }
- function onKeydown({ code }) {
- if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {
- clearTimer();
- } else if (code === EVENT_CODE.esc) {
- if (visible.value) {
- close2();
- }
- } else {
- startTimer();
- }
- }
- onMounted(() => {
- startTimer();
- nextZIndex();
- visible.value = true;
- });
- useEventListener(document, "keydown", onKeydown);
- expose({
- visible,
- close: close2
- });
- return (_ctx, _cache) => {
- return openBlock(), createBlock(Transition, {
- name: unref(ns).b("fade"),
- onBeforeLeave: _ctx.onClose,
- onAfterLeave: ($event) => _ctx.$emit("destroy"),
- persisted: ""
- }, {
- default: withCtx(() => [
- withDirectives(createBaseVNode("div", {
- id: _ctx.id,
- class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
- style: normalizeStyle(unref(positionStyle)),
- role: "alert",
- onMouseenter: clearTimer,
- onMouseleave: startTimer,
- onClick: _ctx.onClick
- }, [
- unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
- ]),
- _: 1
- }, 8, ["class"])) : createCommentVNode("v-if", true),
- createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("group"))
- }, [
- createBaseVNode("h2", {
- class: normalizeClass(unref(ns).e("title")),
- textContent: toDisplayString(_ctx.title)
- }, null, 10, ["textContent"]),
- withDirectives(createBaseVNode("div", {
- class: normalizeClass(unref(ns).e("content")),
- style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
- }, [
- renderSlot(_ctx.$slots, "default", {}, () => [
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", { key: 0 }, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
- createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
- createBaseVNode("p", { innerHTML: _ctx.message }, null, 8, ["innerHTML"])
- ], 2112))
- ])
- ], 6), [
- [vShow, _ctx.message]
- ]),
- _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
- key: 0,
- class: normalizeClass(unref(ns).e("closeBtn")),
- onClick: withModifiers(close2, ["stop"])
- }, {
- default: withCtx(() => [
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon)))
- ]),
- _: 1
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
- ], 2)
- ], 46, ["id", "onClick"]), [
- [vShow, visible.value]
- ])
- ]),
- _: 3
- }, 8, ["name", "onBeforeLeave", "onAfterLeave"]);
- };
- }
- });
- var NotificationConstructor = _export_sfc(_sfc_main458, [["__file", "notification.vue"]]);
- // node_modules/element-plus/es/components/notification/src/notify.mjs
- var notifications = {
- "top-left": [],
- "top-right": [],
- "bottom-left": [],
- "bottom-right": []
- };
- var GAP_SIZE = 16;
- var seed2 = 1;
- var notify = function(options = {}, context) {
- if (!isClient)
- return { close: () => void 0 };
- if (isString(options) || isVNode(options)) {
- options = { message: options };
- }
- const position = options.position || "top-right";
- let verticalOffset = options.offset || 0;
- notifications[position].forEach(({ vm: vm2 }) => {
- var _a2;
- verticalOffset += (((_a2 = vm2.el) == null ? void 0 : _a2.offsetHeight) || 0) + GAP_SIZE;
- });
- verticalOffset += GAP_SIZE;
- const id = `notification_${seed2++}`;
- const userOnClose = options.onClose;
- const props2 = {
- ...options,
- offset: verticalOffset,
- id,
- onClose: () => {
- close(id, position, userOnClose);
- }
- };
- let appendTo = document.body;
- if (isElement2(options.appendTo)) {
- appendTo = options.appendTo;
- } else if (isString(options.appendTo)) {
- appendTo = document.querySelector(options.appendTo);
- }
- if (!isElement2(appendTo)) {
- appendTo = document.body;
- }
- const container = document.createElement("div");
- const vm = createVNode(NotificationConstructor, props2, isFunction(props2.message) ? props2.message : isVNode(props2.message) ? () => props2.message : null);
- vm.appContext = isUndefined2(context) ? notify._context : context;
- vm.props.onDestroy = () => {
- render(null, container);
- };
- render(vm, container);
- notifications[position].push({ vm });
- appendTo.appendChild(container.firstElementChild);
- return {
- close: () => {
- vm.component.exposed.visible.value = false;
- }
- };
- };
- notificationTypes.forEach((type4) => {
- notify[type4] = (options = {}, appContext) => {
- if (isString(options) || isVNode(options)) {
- options = {
- message: options
- };
- }
- return notify({ ...options, type: type4 }, appContext);
- };
- });
- function close(id, position, userOnClose) {
- const orientedNotifications = notifications[position];
- const idx = orientedNotifications.findIndex(({ vm: vm2 }) => {
- var _a2;
- return ((_a2 = vm2.component) == null ? void 0 : _a2.props.id) === id;
- });
- if (idx === -1)
- return;
- const { vm } = orientedNotifications[idx];
- if (!vm)
- return;
- userOnClose == null ? void 0 : userOnClose(vm);
- const removedHeight = vm.el.offsetHeight;
- const verticalPos = position.split("-")[0];
- orientedNotifications.splice(idx, 1);
- const len = orientedNotifications.length;
- if (len < 1)
- return;
- for (let i = idx; i < len; i++) {
- const { el, component: component2 } = orientedNotifications[i].vm;
- const pos = Number.parseInt(el.style[verticalPos], 10) - removedHeight - GAP_SIZE;
- component2.props.offset = pos;
- }
- }
- function closeAll2() {
- for (const orientedNotifications of Object.values(notifications)) {
- orientedNotifications.forEach(({ vm }) => {
- vm.component.exposed.visible.value = false;
- });
- }
- }
- function updateOffsets(position = "top-right") {
- var _a2, _b, _c;
- let verticalOffset = ((_b = (_a2 = notifications[position][0]) == null ? void 0 : _a2.vm.props) == null ? void 0 : _b.offset) || 0;
- for (const { vm } of notifications[position]) {
- vm.component.props.offset = verticalOffset;
- verticalOffset += (((_c = vm.el) == null ? void 0 : _c.offsetHeight) || 0) + GAP_SIZE;
- }
- }
- notify.closeAll = closeAll2;
- notify.updateOffsets = updateOffsets;
- notify._context = null;
- // node_modules/element-plus/es/components/notification/index.mjs
- var ElNotification = withInstallFunction(notify, "$notify");
- // node_modules/element-plus/es/plugin.mjs
- var Plugins = [
- ElInfiniteScroll,
- ElLoading,
- ElMessage,
- ElMessageBox,
- ElNotification,
- ElPopoverDirective
- ];
- // node_modules/element-plus/es/defaults.mjs
- var installer = makeInstaller([...Components, ...Plugins]);
- // node_modules/element-plus/es/index.mjs
- var import_dayjs19 = __toESM(require_dayjs_min(), 1);
- // node_modules/element-plus/es/hooks/use-focus/index.mjs
- var useFocus = (el) => {
- return {
- focus: () => {
- var _a2, _b;
- (_b = (_a2 = el.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
- }
- };
- };
- // node_modules/element-plus/es/hooks/use-modal/index.mjs
- var modalStack = [];
- var closeModal = (e) => {
- if (modalStack.length === 0)
- return;
- if (e.code === EVENT_CODE.esc) {
- e.stopPropagation();
- const topModal = modalStack[modalStack.length - 1];
- topModal.handleClose();
- }
- };
- var useModal = (instance, visibleRef) => {
- watch(visibleRef, (val) => {
- if (val) {
- modalStack.push(instance);
- } else {
- modalStack.splice(modalStack.indexOf(instance), 1);
- }
- });
- };
- if (isClient)
- useEventListener(document, "keydown", closeModal);
- // node_modules/element-plus/es/hooks/use-prevent-global/index.mjs
- var usePreventGlobal = (indicator, evt, cb) => {
- const prevent = (e) => {
- if (cb(e))
- e.stopImmediatePropagation();
- };
- let stop = void 0;
- watch(() => indicator.value, (val) => {
- if (val) {
- stop = useEventListener(document, evt, prevent, true);
- } else {
- stop == null ? void 0 : stop();
- }
- }, { immediate: true });
- };
- // node_modules/element-plus/es/utils/vue/global-node.mjs
- var globalNodes = [];
- var target = !isClient ? void 0 : document.body;
- function createGlobalNode(id) {
- const el = document.createElement("div");
- if (id !== void 0) {
- el.setAttribute("id", id);
- }
- if (target) {
- target.appendChild(el);
- globalNodes.push(el);
- }
- return el;
- }
- function removeGlobalNode(el) {
- globalNodes.splice(globalNodes.indexOf(el), 1);
- el.remove();
- }
- // node_modules/element-plus/es/hooks/use-teleport/index.mjs
- var useTeleport = (contentRenderer, appendToBody) => {
- const isTeleportVisible = ref(false);
- if (!isClient) {
- return {
- isTeleportVisible,
- showTeleport: NOOP,
- hideTeleport: NOOP,
- renderTeleport: NOOP
- };
- }
- let $el = null;
- const showTeleport = () => {
- isTeleportVisible.value = true;
- if ($el !== null)
- return;
- $el = createGlobalNode();
- };
- const hideTeleport = () => {
- isTeleportVisible.value = false;
- if ($el !== null) {
- removeGlobalNode($el);
- $el = null;
- }
- };
- const renderTeleport = () => {
- return appendToBody.value !== true ? contentRenderer() : isTeleportVisible.value ? [h(Teleport, { to: $el }, contentRenderer())] : void 0;
- };
- onUnmounted(hideTeleport);
- return {
- isTeleportVisible,
- showTeleport,
- hideTeleport,
- renderTeleport
- };
- };
- // node_modules/element-plus/es/hooks/use-transition-fallthrough/index.mjs
- var AFTER_APPEAR = "after-appear";
- var AFTER_ENTER = "after-enter";
- var AFTER_LEAVE = "after-leave";
- var APPEAR = "appear";
- var APPEAR_CANCELLED = "appear-cancelled";
- var BEFORE_ENTER = "before-enter";
- var BEFORE_LEAVE = "before-leave";
- var ENTER = "enter";
- var ENTER_CANCELLED = "enter-cancelled";
- var LEAVE = "leave";
- var LEAVE_CANCELLED = "leave-cancelled";
- var useTransitionFallthroughEmits = [
- AFTER_APPEAR,
- AFTER_ENTER,
- AFTER_LEAVE,
- APPEAR,
- APPEAR_CANCELLED,
- BEFORE_ENTER,
- BEFORE_LEAVE,
- ENTER,
- ENTER_CANCELLED,
- LEAVE,
- LEAVE_CANCELLED
- ];
- var useTransitionFallthrough = () => {
- const { emit } = getCurrentInstance();
- return {
- onAfterAppear: () => {
- emit(AFTER_APPEAR);
- },
- onAfterEnter: () => {
- emit(AFTER_ENTER);
- },
- onAfterLeave: () => {
- emit(AFTER_LEAVE);
- },
- onAppearCancelled: () => {
- emit(APPEAR_CANCELLED);
- },
- onBeforeEnter: () => {
- emit(BEFORE_ENTER);
- },
- onBeforeLeave: () => {
- emit(BEFORE_LEAVE);
- },
- onEnter: () => {
- emit(ENTER);
- },
- onEnterCancelled: () => {
- emit(ENTER_CANCELLED);
- },
- onLeave: () => {
- emit(LEAVE);
- },
- onLeaveCancelled: () => {
- emit(LEAVE_CANCELLED);
- }
- };
- };
- // node_modules/element-plus/es/hooks/use-intermediate-render/index.mjs
- var useDelayedRender = ({
- indicator,
- intermediateIndicator,
- shouldSetIntermediate = () => true,
- beforeShow,
- afterShow,
- afterHide,
- beforeHide
- }) => {
- watch(() => unref(indicator), (val) => {
- if (val) {
- beforeShow == null ? void 0 : beforeShow();
- nextTick(() => {
- if (!unref(indicator))
- return;
- if (shouldSetIntermediate("show")) {
- intermediateIndicator.value = true;
- }
- });
- } else {
- beforeHide == null ? void 0 : beforeHide();
- nextTick(() => {
- if (unref(indicator))
- return;
- if (shouldSetIntermediate("hide")) {
- intermediateIndicator.value = false;
- }
- });
- }
- });
- watch(() => intermediateIndicator.value, (val) => {
- if (val) {
- afterShow == null ? void 0 : afterShow();
- } else {
- afterHide == null ? void 0 : afterHide();
- }
- });
- };
- // node_modules/element-plus/es/index.mjs
- var install = installer.install;
- var version3 = installer.version;
- var export_dayjs = import_dayjs19.default;
- export {
- BAR_MAP,
- CAROUSEL_ITEM_NAME,
- CASCADER_PANEL_INJECTION_KEY,
- CHANGE_EVENT,
- ClickOutside,
- CommonPicker,
- CommonProps,
- DEFAULT_DIALOG_TRANSITION,
- DEFAULT_EMPTY_VALUES,
- DEFAULT_FORMATS_DATE,
- DEFAULT_FORMATS_DATEPICKER,
- DEFAULT_FORMATS_TIME,
- DEFAULT_VALUE_ON_CLEAR,
- COLLECTION_INJECTION_KEY2 as DROPDOWN_COLLECTION_INJECTION_KEY,
- COLLECTION_ITEM_INJECTION_KEY2 as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY,
- DROPDOWN_INJECTION_KEY,
- DROPDOWN_INSTANCE_INJECTION_KEY,
- DefaultProps,
- DynamicSizeGrid,
- DynamicSizeList,
- EVENT_CODE,
- Effect,
- ElAffix,
- ElAlert,
- ElAnchor,
- ElAnchorLink,
- ElAside,
- ElAutoResizer,
- ElAutocomplete,
- ElAvatar,
- ElBacktop,
- ElBadge,
- ElBreadcrumb,
- ElBreadcrumbItem,
- ElButton,
- ElButtonGroup,
- ElCalendar,
- ElCard,
- ElCarousel,
- ElCarouselItem,
- ElCascader,
- ElCascaderPanel,
- ElCheckTag,
- ElCheckbox,
- ElCheckboxButton,
- ElCheckboxGroup,
- ElCol,
- ElCollapse,
- ElCollapseItem,
- ElCollapseTransition,
- ElCollection2 as ElCollection,
- ElCollectionItem2 as ElCollectionItem,
- ElColorPicker,
- ElColorPickerPanel,
- ElConfigProvider,
- ElContainer,
- ElCountdown,
- ElDatePicker,
- ElDatePickerPanel,
- ElDescriptions,
- ElDescriptionsItem,
- ElDialog,
- ElDivider,
- ElDrawer,
- ElDropdown,
- ElDropdownItem,
- ElDropdownMenu,
- ElEmpty,
- ElFooter,
- ElForm,
- ElFormItem,
- ElHeader,
- ElIcon,
- ElImage,
- ElImageViewer,
- ElInfiniteScroll,
- ElInput,
- ElInputNumber,
- ElInputTag,
- ElLink,
- ElLoading,
- vLoading as ElLoadingDirective,
- Loading as ElLoadingService,
- ElMain,
- ElMention,
- ElMenu,
- ElMenuItem,
- ElMenuItemGroup,
- ElMessage,
- ElMessageBox,
- ElNotification,
- ElOption,
- ElOptionGroup,
- ElOverlay,
- ElPageHeader,
- ElPagination,
- ElPopconfirm,
- ElPopover,
- ElPopoverDirective,
- ElPopper,
- ElPopperArrow,
- ElPopperContent,
- ElPopperTrigger,
- ElProgress,
- ElRadio,
- ElRadioButton,
- ElRadioGroup,
- ElRate,
- ElResult,
- ElRow,
- ElScrollbar,
- ElSegmented,
- ElSelect,
- ElSelectV2,
- ElSkeleton,
- ElSkeletonItem,
- ElSlider,
- ElSpace,
- ElSplitter,
- ElSplitterPanel,
- ElStatistic,
- ElStep,
- ElSteps,
- ElSubMenu,
- ElSwitch,
- ElTabPane,
- ElTable,
- ElTableColumn2 as ElTableColumn,
- ElTableV2,
- ElTabs,
- ElTag,
- ElText,
- ElTimePicker,
- ElTimeSelect,
- ElTimeline,
- ElTimelineItem,
- ElTooltip,
- ElTour,
- ElTourStep,
- ElTransfer,
- ElTree,
- ElTreeSelect,
- ElTreeV2,
- ElUpload,
- ElWatermark,
- FIRST_KEYS,
- FIRST_LAST_KEYS,
- FORWARD_REF_INJECTION_KEY,
- FixedSizeGrid,
- FixedSizeList,
- GAP,
- ID_INJECTION_KEY,
- INPUT_EVENT,
- INSTALLED_KEY,
- IconComponentMap,
- IconMap,
- LAST_KEYS,
- LEFT_CHECK_CHANGE_EVENT,
- MENU_INJECTION_KEY,
- MESSAGE_DEFAULT_PLACEMENT,
- MINIMUM_INPUT_WIDTH,
- Mousewheel,
- NODE_INSTANCE_INJECTION_KEY,
- PICKER_BASE_INJECTION_KEY,
- PICKER_POPPER_OPTIONS_INJECTION_KEY,
- POPPER_CONTENT_INJECTION_KEY,
- POPPER_INJECTION_KEY,
- RIGHT_CHECK_CHANGE_EVENT,
- ROOT_COMMON_COLOR_INJECTION_KEY,
- ROOT_COMMON_PICKER_INJECTION_KEY,
- ROOT_PICKER_INJECTION_KEY,
- ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,
- ROOT_TREE_INJECTION_KEY,
- RowAlign,
- RowJustify,
- SCOPE,
- SIZE_INJECTION_KEY,
- STEPS_INJECTION_KEY,
- SUB_MENU_INJECTION_KEY,
- TIMELINE_INJECTION_KEY,
- TOOLTIP_INJECTION_KEY,
- TREE_NODE_MAP_INJECTION_KEY,
- TableV2$1 as TableV2,
- Alignment as TableV2Alignment,
- FixedDir as TableV2FixedDir,
- placeholderSign as TableV2Placeholder,
- SortOrder as TableV2SortOrder,
- TimePickPanel,
- TrapFocus,
- UPDATE_MODEL_EVENT,
- WEEK_DAYS,
- ZINDEX_INJECTION_KEY,
- affixEmits,
- affixProps,
- alertEffects,
- alertEmits,
- alertProps,
- anchorEmits,
- anchorProps,
- ariaProps,
- arrowMiddleware,
- autoResizerProps,
- autocompleteEmits,
- autocompleteProps,
- avatarEmits,
- avatarProps,
- backtopEmits,
- backtopProps,
- badgeProps,
- breadcrumbItemProps,
- breadcrumbKey,
- breadcrumbProps,
- buildLocaleContext,
- buildTimeList,
- buildTranslator,
- buttonEmits,
- buttonGroupContextKey,
- buttonNativeTypes,
- buttonProps,
- buttonTypes,
- calendarEmits,
- calendarProps,
- cardContextKey,
- cardProps,
- carouselContextKey,
- carouselEmits,
- carouselItemProps,
- carouselProps,
- cascaderEmits,
- cascaderPanelEmits,
- cascaderPanelProps,
- cascaderProps,
- checkTagEmits,
- checkTagProps,
- checkboxEmits,
- checkboxGroupContextKey,
- checkboxGroupEmits,
- checkboxGroupProps,
- checkboxProps,
- colProps,
- collapseContextKey,
- collapseEmits,
- collapseItemProps,
- collapseProps,
- colorPickerEmits,
- colorPickerPanelContextKey,
- colorPickerPanelEmits,
- colorPickerPanelProps,
- colorPickerProps,
- columnAlignment,
- componentSizeMap,
- componentSizes,
- configProviderContextKey,
- configProviderProps,
- countdownEmits,
- countdownProps,
- createModelToggleComposable,
- dateEquals,
- datePickTypes,
- datePickerPanelProps,
- datePickerProps,
- dayOrDaysToDate,
- export_dayjs as dayjs,
- installer as default,
- defaultInitialZIndex,
- defaultNamespace,
- defaultProps5 as defaultProps,
- descriptionItemProps,
- descriptionProps,
- dialogContextKey,
- dialogEmits,
- dialogInjectionKey,
- dialogProps,
- dividerProps,
- drawerEmits,
- drawerProps,
- dropdownItemProps,
- dropdownMenuProps,
- dropdownProps,
- elPaginationKey,
- emitChangeFn3 as emitChangeFn,
- emptyProps,
- emptyValuesContextKey,
- extractDateFormat,
- extractTimeFormat,
- formContextKey,
- formEmits,
- formItemContextKey,
- formItemProps,
- formItemValidateStates,
- formMetaProps,
- formProps,
- formatter,
- genFileId,
- getPositionDataWithUnit,
- iconProps,
- imageEmits,
- imageProps,
- imageViewerEmits,
- imageViewerProps,
- inputEmits,
- inputNumberEmits,
- inputNumberProps,
- inputProps,
- inputTagEmits,
- inputTagProps,
- install,
- linkEmits,
- linkProps,
- localeContextKey,
- makeInstaller,
- makeList,
- mentionEmits,
- mentionProps,
- menuEmits,
- menuItemEmits,
- menuItemGroupProps,
- menuItemProps,
- menuProps,
- messageConfig,
- messageDefaults,
- messageEmits,
- messagePlacement,
- messageProps,
- messageTypes,
- namespaceContextKey,
- notificationEmits,
- notificationProps,
- notificationTypes,
- overlayEmits,
- overlayProps,
- pageHeaderEmits,
- pageHeaderProps,
- paginationEmits,
- paginationProps,
- parseDate,
- popconfirmEmits,
- popconfirmProps,
- popoverEmits,
- popoverProps,
- popperArrowProps,
- popperContentEmits,
- popperContentProps,
- popperCoreConfigProps,
- popperProps,
- popperTriggerProps,
- progressProps,
- provideGlobalConfig,
- radioButtonProps,
- radioEmits,
- radioGroupEmits,
- radioGroupKey,
- radioGroupProps,
- radioProps,
- radioPropsBase,
- rangeArr,
- rateEmits,
- rateProps,
- renderThumbStyle,
- resultProps,
- roleTypes,
- rowContextKey,
- rowProps,
- scrollbarContextKey,
- scrollbarEmits,
- scrollbarProps,
- segmentedEmits,
- segmentedProps,
- selectEmits,
- selectGroupKey,
- selectKey,
- selectProps,
- selectV2InjectionKey,
- skeletonItemProps,
- skeletonProps,
- sliderContextKey,
- sliderEmits,
- sliderProps,
- spaceItemProps,
- spaceProps,
- splitterPanelProps,
- splitterProps,
- statisticProps,
- stepProps,
- stepsEmits,
- stepsProps,
- subMenuProps,
- switchEmits,
- switchProps,
- tabBarProps,
- tabNavEmits,
- tabNavProps,
- tabPaneProps,
- tableV2Props,
- tableV2RowProps,
- tabsEmits,
- tabsProps,
- tabsRootContextKey,
- tagEmits,
- tagProps,
- textProps,
- thumbProps,
- timePickerDefaultProps,
- timePickerRangeTriggerProps,
- timePickerRngeTriggerProps,
- timeSelectProps,
- timeUnits,
- timelineItemProps,
- tooltipEmits,
- tourContentEmits,
- tourContentProps,
- tourEmits,
- tourPlacements,
- tourProps,
- tourStepEmits,
- tourStepProps,
- tourStrategies,
- transferCheckedChangeFn,
- transferEmits,
- transferProps,
- translate,
- uploadBaseProps,
- uploadContentProps,
- uploadContextKey,
- uploadDraggerEmits,
- uploadDraggerProps,
- uploadListEmits,
- uploadListProps,
- uploadListTypes,
- uploadProps,
- useAriaProps,
- useAttrs2 as useAttrs,
- useCalcInputWidth,
- useCascaderConfig,
- useComposition,
- useCursor,
- useDelayedRender,
- useDelayedToggle,
- useDelayedToggleProps,
- useDeprecated,
- useDialog,
- useDisabled,
- useDraggable,
- useEmptyValues,
- useEmptyValuesProps,
- useEscapeKeydown,
- useFloating,
- useFloatingProps,
- useFocus,
- useFocusController,
- useFormDisabled,
- useFormItem,
- useFormItemInputId,
- useFormSize,
- useForwardRef,
- useForwardRefDirective,
- useGetDerivedNamespace,
- useGlobalComponentSettings,
- useGlobalConfig,
- useGlobalSize,
- useId,
- useIdInjection,
- useLocale,
- useLockscreen,
- useModal,
- useModelToggle,
- useModelToggleEmits,
- useModelToggleProps,
- useNamespace,
- useOrderedChildren,
- usePopper,
- usePopperArrowProps,
- usePopperContainer,
- usePopperContainerId,
- usePopperContentEmits,
- usePopperContentProps,
- usePopperCoreConfigProps,
- usePopperProps,
- usePopperTriggerProps,
- usePreventGlobal,
- useProp,
- useSameTarget,
- useSize,
- useSizeProp,
- useSizeProps,
- useSpace,
- useTeleport,
- useThrottleRender,
- useTimeout,
- useTooltipContentProps,
- useTooltipModelToggle,
- useTooltipModelToggleEmits,
- useTooltipModelToggleProps,
- useTooltipProps,
- useTooltipTriggerProps,
- useTransitionFallthrough,
- useTransitionFallthroughEmits,
- useZIndex,
- vLoading,
- vRepeatClick,
- valueEquals,
- version3 as version,
- virtualizedGridProps,
- virtualizedListProps,
- virtualizedProps,
- virtualizedScrollbarProps,
- watermarkProps,
- zIndexContextKey
- };
- /*! Bundled license information:
- lodash-es/lodash.default.js:
- lodash-es/lodash.js:
- (**
- * @license
- * Lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" -o ./`
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- *)
- @element-plus/icons-vue/dist/index.js:
- (*! Element Plus Icons Vue v2.3.2 *)
- normalize-wheel-es/dist/index.mjs:
- (**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- *)
- */
- //# sourceMappingURL=element-plus.js.map
|